public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/108532] New: march used on the object but mcpu conflicts still produces an warning with LTO
@ 2023-01-24 21:46 pinskia at gcc dot gnu.org
  2023-01-25  7:39 ` [Bug target/108532] " rguenth at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-24 21:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108532

            Bug ID: 108532
           Summary: march used on the object but mcpu conflicts still
                    produces an warning with LTO
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: diagnostic, lto
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64-linux-gnu

cat t.c
int main(void) {}

~/upstream-gcc/bin/gcc -c -flto -march=armv8.4-a t.c
~/upstream-gcc/bin/gcc t.o -flto -mcpu=generic
lto1: warning: switch ‘-mcpu=generic’ conflicts with ‘-march=armv8.4-a’ switch
lto1: warning: switch ‘-mcpu=generic’ conflicts with ‘-march=armv8.4-a’ switch


This is wrong.
gcc version 13.0.0 20220808 (experimental)

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

* [Bug target/108532] march used on the object but mcpu conflicts still produces an warning with LTO
  2023-01-24 21:46 [Bug target/108532] New: march used on the object but mcpu conflicts still produces an warning with LTO pinskia at gcc dot gnu.org
@ 2023-01-25  7:39 ` rguenth at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-25  7:39 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108532

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
With streamable flags produced by the object files I wonder if it makes sense
to drop linker target arguments on the floor?  (they'd be effectively ignored
anyway in some way)

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

end of thread, other threads:[~2023-01-25  7:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-24 21:46 [Bug target/108532] New: march used on the object but mcpu conflicts still produces an warning with LTO pinskia at gcc dot gnu.org
2023-01-25  7:39 ` [Bug target/108532] " rguenth 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).