public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/103421] New: -march=bogus12323123423452345 -march=skylake-avx512 is accepted as a command line option
@ 2021-11-25 7:52 pinskia at gcc dot gnu.org
2021-11-25 7:53 ` [Bug target/103421] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-25 7:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103421
Bug ID: 103421
Summary: -march=bogus12323123423452345 -march=skylake-avx512 is
accepted as a command line option
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Target: x86_64
While looking into figuring out the best way of fixing an aarch64 issue I
decided to test what x86_64 does and lone and behold, x86_64 also allow bogus
values for -march too.
gcc -march=bogus12323123423452345 -march=skylake-avx512
gives no warning or error message.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/103421] -march=bogus12323123423452345 -march=skylake-avx512 is accepted as a command line option
2021-11-25 7:52 [Bug target/103421] New: -march=bogus12323123423452345 -march=skylake-avx512 is accepted as a command line option pinskia at gcc dot gnu.org
@ 2021-11-25 7:53 ` pinskia at gcc dot gnu.org
2021-11-25 14:00 ` rguenth at gcc dot gnu.org
2021-12-29 6:32 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-25 7:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103421
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Only the last march is passed down to cc1 which does the verification of the
option :).
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/103421] -march=bogus12323123423452345 -march=skylake-avx512 is accepted as a command line option
2021-11-25 7:52 [Bug target/103421] New: -march=bogus12323123423452345 -march=skylake-avx512 is accepted as a command line option pinskia at gcc dot gnu.org
2021-11-25 7:53 ` [Bug target/103421] " pinskia at gcc dot gnu.org
@ 2021-11-25 14:00 ` rguenth at gcc dot gnu.org
2021-12-29 6:32 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-25 14:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103421
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think that makes sense in some way, not sure we want
-march-for-check=bogus12323123423452345. Also consider -march=xyz
-moption-not-valid-for-xyz -march=but-for-this
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/103421] -march=bogus12323123423452345 -march=skylake-avx512 is accepted as a command line option
2021-11-25 7:52 [Bug target/103421] New: -march=bogus12323123423452345 -march=skylake-avx512 is accepted as a command line option pinskia at gcc dot gnu.org
2021-11-25 7:53 ` [Bug target/103421] " pinskia at gcc dot gnu.org
2021-11-25 14:00 ` rguenth at gcc dot gnu.org
@ 2021-12-29 6:32 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-29 6:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103421
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is actually a dup of bug 64534.
*** This bug has been marked as a duplicate of bug 64534 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-12-29 6:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-25 7:52 [Bug target/103421] New: -march=bogus12323123423452345 -march=skylake-avx512 is accepted as a command line option pinskia at gcc dot gnu.org
2021-11-25 7:53 ` [Bug target/103421] " pinskia at gcc dot gnu.org
2021-11-25 14:00 ` rguenth at gcc dot gnu.org
2021-12-29 6:32 ` pinskia at gcc dot gnu.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).