Skip to content

Commit

Permalink
gh-104584: Fix assert in DEOPT macro -- should fix buildbot (#106131)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jun 27, 2023
1 parent 0762775 commit bb578a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Python/ceval_macros.h
Expand Up @@ -264,11 +264,12 @@ GETITEM(PyObject *v, Py_ssize_t i) {
#define UPDATE_MISS_STATS(INSTNAME) ((void)0)
#endif

// NOTE: in the uops version, opcode may be > 255
#define DEOPT_IF(COND, INSTNAME) \
if ((COND)) { \
/* This is only a single jump on release builds! */ \
UPDATE_MISS_STATS((INSTNAME)); \
assert(_PyOpcode_Deopt[opcode] == (INSTNAME)); \
assert(opcode >= 256 || _PyOpcode_Deopt[opcode] == (INSTNAME)); \

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (1.1.1u)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.1.1)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu SSL tests with OpenSSL (3.0.9)

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Hypothesis tests on Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]

Check warning on line 272 in Python/ceval_macros.h

View workflow job for this annotation

GitHub Actions / Ubuntu

comparison is always false due to limited range of data type [-Wtype-limits]
GO_TO_INSTRUCTION(INSTNAME); \
}

Expand Down

0 comments on commit bb578a0

Please sign in to comment.