This is the mail archive of the gcc@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]

-msse, -mmmx and other "-m"-Options impossible?


Hi guys,

First I had made an interesting experience:

If i added -mmmx to my CFLAGS, it got disabled automatically.
But I knew my Pentium2 supports MMX.
Example:

gcc -v -Q -march=pentium2 -mmmx testfile.cpp

|
|
V

[...]

options enabled:  -fpeephole -ffunction-cse -fkeep-static-consts
 -fpcc-struct-return -fgcse-lm -fgcse-sm -fsched-interblock -fsched-spec
 -fbranch-count-reg -fexceptions -fcommon -fgnu-linker -fargument-alias
 -fident -fmath-errno -ftrapping-math -m80387 -mhard-float -mno-soft-float
 -mieee-fp -mfp-ret-in-387 -mmmx -mno-mmx -mcpu=pentium2 -march=pentium2

[...]

"-mno-mmx" got added after my nice -mmmx. :-(

This also happened if I didn't use -march=pentium2 but -mmmx.

Then I saw in the gentoo-linux forum that other users also had this problem,
also with -msse -maccumulate-outgoing-args etc., and with gcc-3.1.1 and 3.2.

It finally seemes that gcc automatically disables the
"-m"-optimization-options.

Why does it do that?
Are future releases of gcc going to support -mmmx, -msse etc.?
 
I'm really confused...

Ypsilon

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. GŁnstige DSL- & Modem/ISDN-Tarife!


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