sparc "environments" versus -mcpu=...

Jeff Sturm jsturm@one-point.com
Tue Jan 8 16:48:00 GMT 2002


On Mon, 7 Jan 2002 lucier@math.purdue.edu wrote:
> The documentation for -m32 and -m64 on sparc says
> 
> >  Generate code for a 32-bit or 64-bit environment.
> 
> Is this totally independent of what I set for -mcpu=...?

That was my understanding, except that not all combinations of
-mcpu/-m32/-m64 are possible.

There are important distinctions between these options.  For instance, you
can link code with different -mcpu values, not so for -m32/64.

> But if I leave out the -m32, gcc ICE's on a file with the command line

Shouldn't cc1 reject these options?

Jeff



More information about the Gcc mailing list