public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* -msse, -mmmx and other "-m"-Options impossible?
@ 2002-10-02 18:59 benjaminkuester
  2002-10-02 19:32 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: benjaminkuester @ 2002-10-02 18:59 UTC (permalink / raw)
  To: gcc

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!

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

* Re: -msse, -mmmx and other "-m"-Options impossible?
  2002-10-02 18:59 -msse, -mmmx and other "-m"-Options impossible? benjaminkuester
@ 2002-10-02 19:32 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2002-10-02 19:32 UTC (permalink / raw)
  To: benjaminkuester; +Cc: gcc

On Thu, Oct 03, 2002 at 01:17:20AM +0200, benjaminkuester@gmx.de wrote:
>  -mieee-fp -mfp-ret-in-387 -mmmx -mno-mmx -mcpu=pentium2 -march=pentium2

That's no doubt confused by the fact that we had separate MASK_MMX 
and MASK_MMX_SET bits.  Ignore it.  Only pay attention to whether
you can get MMX code out the backend.


r~

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

end of thread, other threads:[~2002-10-03  0:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-02 18:59 -msse, -mmmx and other "-m"-Options impossible? benjaminkuester
2002-10-02 19:32 ` Richard Henderson

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).