public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/17989] New: Add a warning for more than one -march option on command line
@ 2004-10-14  3:25 giovannibajo at libero dot it
  2004-10-14 13:29 ` [Bug target/17989] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: giovannibajo at libero dot it @ 2004-10-14  3:25 UTC (permalink / raw)
  To: gcc-bugs

It looks like conflicting -march options are not handled correctly. 
Specifically, if you specify both "-march=athlon-xp -march=pentium" on the 
command line, GCC still emits MMX instructions.

I think that the code parsing the -march option in the backend assumes that 
only one option is specified at a time. My suggestion is to emit a warning() if 
more than one option is found on the command line, which is easier to code and 
does not need to be maintained in future.

-- 
           Summary: Add a warning for more than one -march option on command
                    line
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: giovannibajo at libero dot it
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: x86-*-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17989


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

* [Bug target/17989] Add a warning for more than one -march option on command line
  2004-10-14  3:25 [Bug target/17989] New: Add a warning for more than one -march option on command line giovannibajo at libero dot it
@ 2004-10-14 13:29 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-14 13:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-14 13:29 -------
This bug report was a response to PR 17990 where we thought that -march=pentium was coming after 
the other march but I just tested that and it works.  With -march=pentium we don't output mmx/sse 
instructions at all.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17989


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

end of thread, other threads:[~2004-10-14 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-14  3:25 [Bug target/17989] New: Add a warning for more than one -march option on command line giovannibajo at libero dot it
2004-10-14 13:29 ` [Bug target/17989] " pinskia at gcc dot gnu dot org

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