[Bug bootstrap/43733] bootstrap fails on Solaris 10 x86 with GNU as 2.15 and --with-arch=core2
--- Comment #26 from redi at gcc dot gnu dot org 2010-05-20 10:18 --- I tweaked the patch to apply it to 4.4.3 (replacing ASM_BYTE with .byte) and it fixes the bootstrap failure for this config: --enable-languages=c,c++,fortran --with-arch=core2 --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43733
[Bug bootstrap/43733] bootstrap fails on Solaris 10 x86 with GNU as 2.15 and --with-arch=core2
--- Comment #27 from uros at gcc dot gnu dot org 2010-05-20 18:52 --- Subject: Bug 43733 Author: uros Date: Thu May 20 18:52:03 2010 New Revision: 159636 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=159636 Log: PR target/43733 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode. * configure: Regenerate. * config.in: Regenerate. * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e instead of sahf only for 64bit targets. Modified: trunk/gcc/ChangeLog trunk/gcc/config.in trunk/gcc/config/i386/i386.md trunk/gcc/configure trunk/gcc/configure.ac -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43733
[Bug bootstrap/43733] bootstrap fails on Solaris 10 x86 with GNU as 2.15 and --with-arch=core2
--- Comment #24 from ubizjak at gmail dot com 2010-05-19 06:47 --- Can you try this patch: Index: configure.ac === --- configure.ac(revision 159481) +++ configure.ac(working copy) @@ -3254,9 +3254,10 @@ gcc_GAS_CHECK_FEATURE([sahf mnemonic], gcc_cv_as_ix86_sahf,,, - [sahf],, + [.code64 + sahf],, [AC_DEFINE(HAVE_AS_IX86_SAHF, 1, -[Define if your assembler supports the sahf mnemonic.])]) +[Define if your assembler supports the sahf mnemonic in 64bit mode.])]) gcc_GAS_CHECK_FEATURE([swap suffix], gcc_cv_as_ix86_swap,,, -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43733
[Bug bootstrap/43733] bootstrap fails on Solaris 10 x86 with GNU as 2.15 and --with-arch=core2
--- Comment #25 from ubizjak at gmail dot com 2010-05-19 12:21 --- Created an attachment (id=20698) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20698action=view) complete patch Can you please test the complete patch if it solves your bootstrap failure? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43733
[Bug bootstrap/43733] bootstrap fails on Solaris 10 x86 with GNU as 2.15 and --with-arch=core2
--- Comment #22 from ro at gcc dot gnu dot org 2010-04-28 18:13 --- (In reply to comment #20) I don't think it should be closed: the installation docs for Solaris x86 recommend to use the default binutils 2.15 and say it works fine, but that's not the case if you use --with-arch=core2, that should be documented (or even better, fixed) I think there are different issues here: gas 2.15 works fine *in a default configuration*. Once you start messing around with --with-arch, you can probably easily fine an arch value that this ancient gas (8 years by now) doesn't support. I don't think it's useful to document every possible variation here, especially since install.texi clearly states that current gas 2.20.1 works, too. The other (and primary) issue probably is that --with-arch=core2 might simply be wrong for a bi-arch compiler (as is --with-arch=pentium4). Could you try this with --with-arch-32=core2 instead? -- ro at gcc dot gnu dot org changed: What|Removed |Added CC||ro at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43733
[Bug bootstrap/43733] bootstrap fails on Solaris 10 x86 with GNU as 2.15 and --with-arch=core2
--- Comment #23 from redi at gcc dot gnu dot org 2010-04-28 18:38 --- core2 works fine for bi-arch linux builds, but I'll try your suggestion on Solaris asap I assume it will work, but 64bit code will not use the core2 instructions, which might be suboptimal (I want to use the cpu to the full potential!) I imagine it's also possible for the same problem to occur using -march=native, if the processor flags indicate core2 instructions will work. That said, 2.15 is an ancient gas (even though it's very common on Solaris 10) so I'm not too worried about this bug being fixed and I agree it's not worth changing the config docs. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43733
[Bug bootstrap/43733] bootstrap fails on Solaris 10 x86 with GNU as 2.15 and --with-arch=core2
--- Comment #21 from redi at gcc dot gnu dot org 2010-04-13 12:26 --- more accurate summary -- redi at gcc dot gnu dot org changed: What|Removed |Added Summary|bootstrap fails building|bootstrap fails on Solaris |libgfortran on Solaris x86 |10 x86 with GNU as 2.15 and |with GNU as |--with-arch=core2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43733