This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/30726] New: bootstrap support for x86_64-*-solaris2.10
- From: "pdb_ml at yahoo dot com dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Feb 2007 07:38:13 -0000
- Subject: [Bug bootstrap/30726] New: bootstrap support for x86_64-*-solaris2.10
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Request: Add x86_64-*-solaris2.10 support to the bootstrap process.
Additional Info:
While i386-*-solaris2.10 builds a compiler capable of build x86_64/amd64 object
files with the -m64 command line option, it was not possible (for me) to build
a compiler that default to 64-bit code generation for this platform.
Support for this is available on Solaris/SPARC with sparc-sun-solaris2* vs
sparc64-sun-solaris2*, and all the hard work has been done (in that code
generation works) but I was unable to find the correct of flags to change in
gcc/config.gcc and gcc/config/i386/* to make 64-bit the default compilation
mode of the generated compiler.
I have been working at this myself for two days now and always seem to run into
problems, with either the generated compiler reverting to generating 32-bit
code, the assembler rejecting the generated code (various reasons, probably
related to incorrect flags being passed to 'as'), or 98% files generated in
64-bit mode and one or two being generated in 32-bit causing link errors.
To-date I have made new target in gcc/config.gcc for x86_64-*-solaris2.10 based
on the existing i*86-*-solaris2* code and tried modifying
gcc/config/i386-sol10.h to change the default multi-lib. Also I have looked at
TARGET_64BIT and tried setting TARGET_64BIT_DEFAULT by hacking the biarch.?
file.
Suggestions / Pointers / Patches I can could use or test would be greatly
appreciated!
Many thanks in Advance,
Peter Bray
Sydney, Australia
PS: Test system - Sun Ultra 40 (AMD Opteron 280) running Solaris 10 11/06,
using gcc-4.1.2rc1 (20060128) and /usr/sfw/bin/{gcc,gas} and Sun's "ld"
PPS: To Mark and the 4.1.2 release team, I can confirm gcc-4.1.2rc1 builds fine
for sparc-sun-solaris2.10 (with and without --cpu=v9), sparcv9-sun-solaris2.10
and i386-pc-solaris2.10. The SPARC variant had to be built with Sun as/ld as
the recommended combination (several sources) of GNU as (2.17) and Sun ld
results in the DWARF2 debug(-g)/ld align bug is Sun's ld, according to
opensolaris.org snv53 has a fix for this issue, but that is not available as a
patch to Solaris 10 (yet).
--
Summary: bootstrap support for x86_64-*-solaris2.10
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pdb_ml at yahoo dot com dot au
GCC host triplet: i386-*-solaris2.10
GCC target triplet: x86_64-*-solaris2.10
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30726