AW: gcc-3.1 defaults to -march=i386 ??

quinte quinte17 at gmx.de
Tue Jul 9 00:55:53 PDT 2002


i think it should be mentioned, but plz remember... some of us (including
me) still have got an i586...

cu
Stephan

-----Ursprüngliche Nachricht-----
Von: lfs-dev-bounce at linuxfromscratch.org
[mailto:lfs-dev-bounce at linuxfromscratch.org]Im Auftrag von Greg Schafer
Gesendet: Dienstag, 9. Juli 2002 09:19
An: lfs-dev at linuxfromscratch.org
Betreff: gcc-3.1 defaults to -march=i386 ??


Hi

Yes its true.. if you don't pass any "-march=" flags to gcc-3.1
then your code gets compiled for i386!

If you don't believe me then try compiling hello.c like so:-

gcc -S -fverbose-asm hello.c

then have a look at the resultant hello.s

This contrasts markedly with gcc-2.95.x which, by default, compiles
for i586 but with the LFS patch, compiles for the default arch which
is i686 for the majority of LFS'ers.

Personally, I'm going to patch gcc-3.1 to compile for i686 by default.

Should the book be doing similar? Comments anyone?

Greg

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list