public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/66047] New: [5/6 Regression] vlc compilation failure with target attribute
@ 2015-05-07  9:45 jakub at gcc dot gnu.org
  2015-05-07  9:48 ` [Bug target/66047] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-05-07  9:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66047
           Summary: [5/6 Regression] vlc compilation failure with target
                    attribute
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

__attribute__((target ("sse2"), noinline)) static void
foo (void)
{
  asm volatile ("" : : : "memory");
}

void
bar (void)
{
  foo ();
}

fails to compile with -O2 -m32 -mno-sse starting with r220520.  There is no
user error here, the bug is that the compiler chose to use sseregparm calling
convention when it isn't appropriate (not all callers support it).  Plus, in
this particular case there is no difference between sseregparm and normal
calling convention...

__attribute__((target ("sse2"), noinline)) static float
foo (float x, float y)
{
  return x + y;
}

float
bar (float x, float y)
{
  return foo (x + 1.0f, y) - 1.0f;
}

used to be wrong-code in between introduction of target attribute (supposedly
r138075 if we use -Dtarget=option for older releases) and r220519, now is
similarly rejects-valid.


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

end of thread, other threads:[~2022-01-09  0:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-07  9:45 [Bug target/66047] New: [5/6 Regression] vlc compilation failure with target attribute jakub at gcc dot gnu.org
2015-05-07  9:48 ` [Bug target/66047] " jakub at gcc dot gnu.org
2015-05-12 22:30 ` hubicka at gcc dot gnu.org
2015-05-13 15:54 ` [Bug target/66047] [5 " hubicka at gcc dot gnu.org
2015-05-13 17:42 ` manu at gcc dot gnu.org
2015-05-17 19:41 ` hubicka at gcc dot gnu.org
2015-05-17 19:44 ` [Bug target/66047] " hubicka at gcc dot gnu.org
2015-07-16  9:19 ` rguenth at gcc dot gnu.org
2022-01-09  0:46 ` 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).