https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93520

            Bug ID: 93520
           Summary: Compilation of Python 3.9 with gcc 10 and -fanalyzer
                    fails with internal compiler error
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: cstratak at redhat dot com
  Target Milestone: ---

Created attachment 47746
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47746&action=edit
gcc 10 Python build log

With gcc 10 installed and compiling CPython from its source directory I get an
internal compiler error:

./configure && CFLAGS=-fanalyzer make

Snippet of error:

gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall
 -fanalyzer  -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter
-Wno-missing-field-initializers -Werror=implicit-function-declaration
-fvisibility=hidden  -I./Include/internal  -I. -I./Include    -DPy_BUILD_CORE
-o Objects/floatobject.o Objects/floatobject.c
during IPA pass: analyzer
Objects/floatobject.c: In function ‘_PyFloat_Pack2’:
Objects/floatobject.c:2061:13: internal compiler error: in add_constraint, at
analyzer/constraint-manager.cc:674
 2061 |     else if (Py_IS_NAN(x)) {
      |             ^

Full log attached.

Reply via email to