public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/26134]  New: fold *(float*)(&complex_float_var) into REALPART_EXPR<complex_float_var>
@ 2006-02-06 16:58 pinskia at gcc dot gnu dot org
  2006-02-06 16:58 ` [Bug middle-end/26134] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06 16:58 UTC (permalink / raw)
  To: gcc-bugs

I was looking at some code which is mentioned to be in SPEC 2006 (I forgot
where I found the mentioning)
but anyways it has the following in it:

typedef _Complex float COMPLEX_FLOAT;
float real_part(COMPLEX_FLOAT a)
{
  return *(float*)(&a);
}

This should be converted to:

float real_part(COMPLEX_FLOAT a)
{
  return __real__ a;
}

So that the tree optimizers can work on it easier.


-- 
           Summary: fold *(float*)(&complex_float_var) into
                    REALPART_EXPR<complex_float_var>
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: missed-optimization, TREE
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-26134-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-03-16 13:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-06 16:58 [Bug middle-end/26134] New: fold *(float*)(&complex_float_var) into REALPART_EXPR<complex_float_var> pinskia at gcc dot gnu dot org
2006-02-06 16:58 ` [Bug middle-end/26134] " pinskia at gcc dot gnu dot org
2006-02-06 17:45 ` pinskia at gcc dot gnu dot org
2006-02-07 15:49 ` pinskia at gcc dot gnu dot org
2006-02-07 18:47 ` pluto at agmk dot net
2006-02-07 18:52 ` pinskia at gcc dot gnu dot org
2006-02-07 18:56 ` falk at debian dot org
2006-02-09 14:14 ` pinskia at gcc dot gnu dot org
2006-02-09 14:15 ` pinskia at gcc dot gnu dot org
     [not found] <bug-26134-4@http.gcc.gnu.org/bugzilla/>
2011-03-16 13:57 ` 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).