This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] sparc64-linux --with-cpu=ultrasparc fix


Jakub Jelinek wrote:

On Sat, May 01, 2004 at 01:39:45PM -0700, Dan Kegel wrote:


I'm having a bit of trouble configuring gcc-3.4.0 for sparc64-linux.
The resulting compiler defaults to sparc32, which is a problem
because it means having to figure out how to add
-mcpu=ultrasparc3 -Wa,-Av9a -m64 to CFLAGS for everything I build.
The worst part is that this even affects libgcc.a, which makes it
pretty hard to link any sparc64 executables. I could figure out
how mklibgcc and multilibbing work, and maybe thereby get a good 64 bit libgcc.a,
but I'd kind of like to avoid that for the moment, and just really get
gcc to default to 64 bit output.


What's the right way to get gcc to default to building 64 bit executables
when targeting sparc64-linux?



There was TARGET_CPU_ultrasparc3 missing in linux64.h. I've commited the following fix to the trunk, but as it is not a regression, I'm not sure if Mark is ok with this for gcc-3_4-branch.

Mark is OK with this. :-)

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]