https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69383
Bug ID: 69383 Summary: [6 Regression] r232586 breaks Firefox build Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: trippels at gcc dot gnu.org Target Milestone: --- With r232586 I get: trippels@gcc2-power8 src % /home/trippels/gcc_test/usr/local/bin/c++ -o Unified_cpp_gfx_graphite2_src0.o -c -I../../../dist/stl_wrappers -I../../../dist/system_wrappers -include /home/trippels/gecko-dev/config/gcc_hidden.h -DGRAPHITE2_STATIC -DPACKAGE_VERSION='"moz"' -DPACKAGE_BUGREPORT='"http://bugzilla.mozilla.org/"' -DGRAPHITE2_NFILEFACE -DGRAPHITE2_NTRACING -DGRAPHITE2_NSEGCACHE -DGRAPHITE2_CUSTOM_HEADER='"MozGrMalloc.h"' -DMOZ_GLUE_IN_PROGRAM -DAB_CD=en-US -DNO_NSPR_10_SUPPORT -I/home/trippels/gecko-dev/gfx/graphite2/src -I. -I../../../dist/include -I/usr/include/nspr4 -I/home/trippels/moz-build-dir/dist/include/nss -I/usr/include/pixman-1 -fPIC -DMOZILLA_CLIENT -include ../../../mozilla-config.h -MD -MP -MF .deps/Unified_cpp_gfx_graphite2_src0.o.pp -Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Werror=endif-labels -Werror=int-to-pointer-cast -Werror=missing-braces -Werror=pointer-arith -Werror=return-type -Werror=sequence-point -Werror=unused-label -Werror=trigraphs -Werror=type-limits -Wno-invalid-offsetof -Wcast-align -std=c++1z -w -flto=60 --param lto-partitions=60 -ffunction-sections -fdata-sections -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -O3 -fomit-frame-pointer /home/trippels/moz-build-dir/gfx/graphite2/src/Unified_cpp_gfx_graphite2_src0.cpp In file included from ../../../dist/system_wrappers/stdlib.h:3:0, from ../../../dist/include/mozilla/mozalloc.h:15, from ../../../dist/stl_wrappers/cstdlib:39, from /home/trippels/gecko-dev/gfx/graphite2/src/inc/Main.h:29, from /home/trippels/gecko-dev/gfx/graphite2/src/Bidi.cpp:27, from /home/trippels/moz-build-dir/gfx/graphite2/src/Unified_cpp_gfx_graphite2_src0.cpp:2: /home/trippels/gcc_test/usr/local/include/c++/6.0.0/stdlib.h:37:12: error: ‘std::abort’ has not been declared using std::abort; ^~~~~ /home/trippels/gcc_test/usr/local/include/c++/6.0.0/stdlib.h:38:12: error: ‘std::atexit’ has not been declared using std::atexit; ^~~~~~ /home/trippels/gcc_test/usr/local/include/c++/6.0.0/stdlib.h:39:12: error: ‘std::exit’ has not been declared using std::exit; ^~~~ ... trippels@gcc2-power8 tmp % cat foo.cpp #include <stdlib.h> trippels@gcc2-power8 tmp % cat stdlib.h #include_next <stdlib.h> trippels@gcc2-power8 tmp % cat cstdlib #include <stdlib.h> trippels@gcc2-power8 tmp % g++ -c -I./ foo.cpp In file included from ./stdlib.h:1:0, from foo.cpp:1: /home/trippels/gcc_test/usr/local/include/c++/6.0.0/stdlib.h:37:12: error: ‘std::abort’ has not been declared using std::abort; ^~~~~ /home/trippels/gcc_test/usr/local/include/c++/6.0.0/stdlib.h:38:12: error: ‘std::atexit’ has not been declared using std::atexit; ^~~~~~ /home/trippels/gcc_test/usr/local/include/c++/6.0.0/stdlib.h:39:12: error: ‘std::exit’ has not been declared using std::exit; ^~~~