Joerg Schilling wrote:
Hi,

I just found an annoying cc bug:

If I call cc -xarch=amd64 -fast ... I get a 32 bit binary
If I call cc -fast -xarch=amd64 ... I get a 64 bit binary

I would expect that the fact that I did specify a -xarch option
is suddificent.

Compiler options are evaluated left-to-right, with rightmost winning
for conflicting options, and -fast includes -xarch.

The Sun Studio article on AMD64 compiler options warns about this:
http://developer.sun.com/prodtech/cc/articles/amd64_migration.html

--
        -Alan Coopersmith-           [EMAIL PROTECTED]
         Sun Microsystems, Inc. - X Window System Engineering
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to