https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83100
James Clarke <jrtc27 at jrtc27 dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jrtc27 at jrtc27 dot com --- Comment #1 from James Clarke <jrtc27 at jrtc27 dot com> --- This is due to the combination of `-O2`, `-fdata-sections` and constant implicitly-zeroed global variables (I assume as a result of https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01591.html): (experimental_powerpc-dchroot)jrtc27@partch:~$ cat pkix_errpaths.i const int a; (experimental_powerpc-dchroot)jrtc27@partch:~$ /usr/bin/powerpc-linux-gnu-gcc-8 -o pkix_errpaths.s -S -O2 -fdata-sections pkix_errpaths.i pkix_errpaths.i:1:1: internal compiler error: in get_variable_section, at varasm.c:1150 const int a; ^~~~~ Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.