public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: gcc for big-endian as default
@ 2000-08-02 13:34 Nick Clifton
  2000-08-02 13:52 ` Michael Meissner
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Clifton @ 2000-08-02 13:34 UTC (permalink / raw)
  To: naeem.m.afzal; +Cc: gcc

Hi Naeem,

: > How could I make gcc crosscompiler (ARM-LINUX) to compile with
: > target paltform as big-endian, so that when compiling with this
: > compiler, I dont have to use -mbig-endian every time.

The simplest method is to add the -mbig-endian switch to CC1_SPEC
defiend in gcc/config/arm/arm.h, like this:

  #define CC1_SPEC "-mbig-endian"

Note, that you will probably also want to change the defintion of
CPP_ENDIAN_DEFAULT_SPEC to reflect this change.

Also you ought to change the defintion of MULTILIB_DEFAULTS in
gcc/config/arm/linux-elf.h again to reflect this change.

Cheers
	Nick


^ permalink raw reply	[flat|nested] 4+ messages in thread
* gcc for big-endian as default
@ 2000-08-01 18:43 Afzal, Naeem M
  2000-08-02 12:44 ` Erik Mouw
  0 siblings, 1 reply; 4+ messages in thread
From: Afzal, Naeem M @ 2000-08-01 18:43 UTC (permalink / raw)
  To: 'gcc@gcc.gnu.org'

> Hi
> 
> How could I make gcc crosscompiler (ARM-LINUX) to compile with target
> paltform as big-endian, so that when compiling with this compiler, I dont
> have to use -mbig-endian every time.
> 
> thanks
> 
> -naeem

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-08-02 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-02 13:34 gcc for big-endian as default Nick Clifton
2000-08-02 13:52 ` Michael Meissner
  -- strict thread matches above, loose matches on Subject: below --
2000-08-01 18:43 Afzal, Naeem M
2000-08-02 12:44 ` Erik Mouw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).