https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82651
Bug ID: 82651 Summary: After -r 253879 GCC 8.0 can't build cross compiler for mingw32 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mateuszb at poczta dot onet.pl Target Milestone: --- -r 253878 works OK (for mingw32), -r 253879 breaks build cross compiler with error: g++ -fno-PIE -c -pipe -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I/home/ma/m/source/gcc-8/gcc -I/home/ma/m/source/gcc-8/gcc/. -I/home/ma/m/source/gcc-8/gcc/../include -I/home/ma/m/source/gcc-8/gcc/../libcpp/include -I/home/ma/m/build/for_cross/include -I/home/ma/m/build/for_cross/include -I/home/ma/m/build/for_cross/include -I/home/ma/m/source/gcc-8/gcc/../libdecnumber -I/home/ma/m/source/gcc-8/gcc/../libdecnumber/bid -I../libdecnumber -I/home/ma/m/source/gcc-8/gcc/../libbacktrace -I/home/ma/m/build/for_cross/include -o gimplify.o -MT gimplify.o -MMD -MP -MF ./.deps/gimplify.TPo /home/ma/m/source/gcc-8/gcc/gimplify.c In file included from ./tm.h:20:0, from /home/ma/m/source/gcc-8/gcc/backend.h:28, from /home/ma/m/source/gcc-8/gcc/gimplify.c:26: /home/ma/m/source/gcc-8/gcc/gimplify.c: In function ‘gimplify_status gimplify_decl_expr(tree_node**, gimple**)’: /home/ma/m/source/gcc-8/gcc/config/i386/i386.h:609:61: error: ‘ix86_cfun_abi’ was not declared in this scope #define TARGET_64BIT_MS_ABI (TARGET_64BIT && ix86_cfun_abi () == MS_ABI) ^ /home/ma/m/source/gcc-8/gcc/config/i386/cygming.h:35:22: note: in expansion of macro ‘TARGET_64BIT_MS_ABI’ #define TARGET_SEH (TARGET_64BIT_MS_ABI && flag_unwind_tables) ^ /home/ma/m/source/gcc-8/gcc/config/i386/cygming.h:40:31: note: in expansion of macro ‘TARGET_SEH’ #define MAX_STACK_ALIGNMENT (TARGET_SEH ? 128 : MAX_OFILE_ALIGNMENT) ^ /home/ma/m/source/gcc-8/gcc/defaults.h:1142:39: note: in expansion of macro ‘MAX_STACK_ALIGNMENT’ #define MAX_SUPPORTED_STACK_ALIGNMENT MAX_STACK_ALIGNMENT ^ /home/ma/m/source/gcc-8/gcc/gimplify.c:1659:28: note: in expansion of macro ‘MAX_SUPPORTED_STACK_ALIGNMENT’ && DECL_ALIGN (decl) <= MAX_SUPPORTED_STACK_ALIGNMENT ^ /home/ma/m/source/gcc-8/gcc/gimplify.c: In function ‘gimplify_status gimplify_target_expr(tree_node**, gimple**, gimple**)’: /home/ma/m/source/gcc-8/gcc/config/i386/i386.h:609:61: error: ‘ix86_cfun_abi’ was not declared in this scope #define TARGET_64BIT_MS_ABI (TARGET_64BIT && ix86_cfun_abi () == MS_ABI) ^ /home/ma/m/source/gcc-8/gcc/config/i386/cygming.h:35:22: note: in expansion of macro ‘TARGET_64BIT_MS_ABI’ #define TARGET_SEH (TARGET_64BIT_MS_ABI && flag_unwind_tables) ^ /home/ma/m/source/gcc-8/gcc/config/i386/cygming.h:40:31: note: in expansion of macro ‘TARGET_SEH’ #define MAX_STACK_ALIGNMENT (TARGET_SEH ? 128 : MAX_OFILE_ALIGNMENT) ^ /home/ma/m/source/gcc-8/gcc/defaults.h:1142:39: note: in expansion of macro ‘MAX_STACK_ALIGNMENT’ #define MAX_SUPPORTED_STACK_ALIGNMENT MAX_STACK_ALIGNMENT ^ /home/ma/m/source/gcc-8/gcc/gimplify.c:6510:32: note: in expansion of macro ‘MAX_SUPPORTED_STACK_ALIGNMENT’ && DECL_ALIGN (temp) <= MAX_SUPPORTED_STACK_ALIGNMENT ^ Makefile:1104: recipe for target 'gimplify.o' failed make[1]: *** [gimplify.o] Error 1 make[1]: Leaving directory '/home/ma/m/build/bc_gcc/gcc' Makefile:4285: recipe for target 'all-gcc' failed make: *** [all-gcc] Error 2