public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/30265]  New: Compound literal can cause invalid gimple
@ 2006-12-20  5:07 pinskia at gcc dot gnu dot org
  2006-12-20  5:08 ` [Bug c/30265] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-20  5:07 UTC (permalink / raw)
  To: gcc-bugs

Testcase:
int f(float *);
int g(float x)
{
  return f(&(float){x}) + f(&x);
}
----
When we gimplify this we get:
g (x)
{
  int D.1613;
  float D.1612;
  int D.1614;
  int D.1615;

  D.1612 = x;
  D.1614 = f (&D.1612);
  D.1615 = f (&x);

Which is obvious invalid gimple as both D.1612 and x are non gimple registers
(and not aggergates).


-- 
           Summary: Compound literal can cause invalid gimple
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
OtherBugsDependingO 30142
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30265


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

end of thread, other threads:[~2007-04-21 21:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-20  5:07 [Bug c/30265] New: Compound literal can cause invalid gimple pinskia at gcc dot gnu dot org
2006-12-20  5:08 ` [Bug c/30265] " pinskia at gcc dot gnu dot org
2007-04-21 21:47 ` pinskia at gcc dot gnu dot org
2007-04-21 21:47 ` pinskia at gcc dot gnu dot 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).