David Edelsohn <dje....@gmail.com> writes: > Index: gcc/config/rs6000/rs6000.c > =================================================================== > --- gcc/config/rs6000/rs6000.c (revision 219747) > +++ gcc/config/rs6000/rs6000.c (working copy) > @@ -5072,6 +5072,28 @@ rs6000_file_start (void) > putc ('\n', file); > } > > +#ifdef USING_ELFOS_H > + if (rs6000_default_cpu == 0 || rs6000_default_cpu[0] == '\0' > + || !global_options_set.x_rs6000_cpu_index) > + { > + fputs ("\t.machine ", asm_out_file); > + if ((TARGET_DEFAULT & OPTION_MASK_DIRECT_MOVE) != 0) > + fputs ("power8\n", asm_out_file); > + else if ((TARGET_DEFAULT & OPTION_MASK_POPCNTD) != 0) > + fputs ("power7\n", asm_out_file); > + else if ((TARGET_DEFAULT & OPTION_MASK_CMPB) != 0) > + fputs ("power6\n", asm_out_file); > + else if ((TARGET_DEFAULT & OPTION_MASK_POPCNTB) != 0) > + fputs ("power5\n", asm_out_file); > + else if ((TARGET_DEFAULT & OPTION_MASK_MFCRF) != 0) > + fputs ("power4\n", asm_out_file); > + else if ((TARGET_DEFAULT & OPTION_MASK_POWERPC64) != 0) > + fputs ("ppc64\n", asm_out_file); > + else > + fputs ("ppc\n", asm_out_file); > + } > +#endif > +
This is wrong, it doesn't account for -m64 on a --with-cpu=default32 compiler. /home/abuild/rpmbuild/BUILD/gcc-5.0.0-r219892/obj-powerpc64-suse-linux/./gcc/xgcc -B/home/abuild/rpmbuild/BUILD/gcc-5.0.0-r219892/obj-powerpc64-suse-linux/./gcc/ -B/usr/powerpc64-suse-linux/bin/ -B/usr/powerpc64-suse-linux/lib/ -isystem /usr/powerpc64-suse-linux/include -isystem /usr/powerpc64-suse-linux/sys-include -fmessage-length=0 -grecord-gcc-switches -O2 -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -U_FORTIFY_SOURCE -m64 -O2 -fmessage-length=0 -grecord-gcc-switches -O2 -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -U_FORTIFY_SOURCE -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -mlong-double-128 -mno-minimal-toc -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fPIC -mlong-double-128 -mno-minimal-toc -I. -I. -I../../.././gcc -I../../../../libgcc -I../../../../libgcc/. -I../../../../libgcc/../gcc -I../../../../libgcc/../include -I../../../../libgcc/../libdecnumber/dpd -I../../../../libgcc/../libdecnumber -DHAVE_CC_TLS -o _addvsi3.o -MT _addvsi3.o -MD -MP -MF _addvsi3.dep -DL_addvsi3 -c ../../../../libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS /tmp/ccaoVOii.s: Assembler messages: /tmp/ccaoVOii.s:33: Error: junk at end of line: `1' /tmp/ccaoVOii.s:55: Error: junk at end of line: `1' /tmp/ccaoVOii.s:95: Error: junk at end of line: `1' /tmp/ccaoVOii.s:116: Error: junk at end of line: `1' Makefile:466: recipe for target '_addvsi3.o' failed make[5]: *** [_addvsi3.o] Error 1 See <https://build.opensuse.org/package/live_build_log/devel:gcc/gcc5/openSUSE_Factory_PPC/ppc> for the full log file. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."