public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104713] New: gcc does not reject -march=i686 -fcf-protection
@ 2022-02-28 10:15 bunk at stusta dot de
  2022-02-28 10:25 ` [Bug target/104713] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: bunk at stusta dot de @ 2022-02-28 10:15 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104713
           Summary: gcc does not reject -march=i686 -fcf-protection
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bunk at stusta dot de
  Target Milestone: ---

To support the Geode in OLPC, the toolchain definition of i686 does include
CMOV but it does not include multi-byte NOPs.

https://bugs.debian.org/1004894 is due to autodetection for -fcf-protection
that incorrectly succeeds with -march=i686.

The bug is likely in
https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/config/i386/i386-options.cc;h=805539364108eee07f5bda527acd6f39f3f7bf95;hb=HEAD#l2929

A similar problem in a different place was bug 84148.

Testcase:
$ touch test.c
$ gcc -m32 -march=i586 -fcf-protection -c test.c
cc1: error: ‘-fcf-protection’ is not compatible with this target
$ gcc -m32 -march=i686 -fcf-protection -c test.c
$

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

end of thread, other threads:[~2023-05-16 11:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-28 10:15 [Bug target/104713] New: gcc does not reject -march=i686 -fcf-protection bunk at stusta dot de
2022-02-28 10:25 ` [Bug target/104713] " pinskia at gcc dot gnu.org
2022-02-28 10:36 ` bunk at stusta dot de
2022-02-28 11:02 ` jakub at gcc dot gnu.org
2022-02-28 11:42 ` bunk at stusta dot de
2023-03-20  8:42 ` jay+ggcc@jp-hosting.net
2023-03-20  9:01 ` bunk at stusta dot de
2023-03-20 11:20 ` jay+ggcc@jp-hosting.net
2023-03-23 16:37 ` jay+ggcc@jp-hosting.net
2023-03-24 10:15 ` jay+ggcc@jp-hosting.net
2023-05-16 11:48 ` jay+ggcc@jp-hosting.net

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