public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98585] New: [11 Regression] target attribute resets cmodel on x86
@ 2021-01-07 17:04 law at redhat dot com
  2021-01-07 18:27 ` [Bug target/98585] " jakub at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: law at redhat dot com @ 2021-01-07 17:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 98585
           Summary: [11 Regression] target attribute resets cmodel on x86
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: law at redhat dot com
                CC: hjl.tools at gmail dot com, jakub at redhat dot com
  Target Milestone: ---

Using the "target" attribute on x86 causes a reset of the cmodel from the
command line.

Compile this testcase with -mcmodel-large with gcc-10.  You will see that we
use movabsq to load the address of "bar" into a register and use an indirect
jump.  With gcc-11 we make a direct jump/call.  This causes grub2 to FTBFS in
Fedora rawhide and RHEL 9.

This appears to be caused by ba948b37768c99cd8eb9f5b6fbd45fcf4bd15b78

void bar (void);

void
__attribute__ ((target ("bmi2")))
foo()
{
  bar ();
}

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

end of thread, other threads:[~2021-01-08 11:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-07 17:04 [Bug target/98585] New: [11 Regression] target attribute resets cmodel on x86 law at redhat dot com
2021-01-07 18:27 ` [Bug target/98585] " jakub at gcc dot gnu.org
2021-01-07 19:29 ` jakub at gcc dot gnu.org
2021-01-07 20:27 ` jakub at gcc dot gnu.org
2021-01-08  8:28 ` rguenth at gcc dot gnu.org
2021-01-08 11:29 ` cvs-commit at gcc dot gnu.org
2021-01-08 11:31 ` jakub at gcc dot gnu.org
2021-01-08 11:32 ` jakub 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).