public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/15596] New: [3.5 Regression] Missed optimization with bitfields
@ 2004-05-23 21:09 pinskia at gcc dot gnu dot org
  2004-05-23 21:48 ` [Bug tree-optimization/15596] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-23 21:09 UTC (permalink / raw)
  To: gcc-bugs

Source:
typedef struct {
  int a : 20;
  int b : 1;
  int c : 1;
  int d : 1;
} bitstr;

bitstr fun(int s, int l)
{
  bitstr res;
  res.a  = s;
  res.b  = 1;
  res.c  = 0;
  res.d  = l;
  return res;
}

This is caused by the nrv optimization.

-- 
           Summary: [3.5 Regression] Missed optimization with bitfields
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: critical
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-apple-darwin


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


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

end of thread, other threads:[~2005-09-27 16:15 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-23 21:09 [Bug tree-optimization/15596] New: [3.5 Regression] Missed optimization with bitfields pinskia at gcc dot gnu dot org
2004-05-23 21:48 ` [Bug tree-optimization/15596] " pinskia at gcc dot gnu dot org
2004-05-28  7:11 ` pinskia at gcc dot gnu dot org
2004-06-29 18:17 ` steven at gcc dot gnu dot org
2004-06-29 18:33 ` pinskia at gcc dot gnu dot org
2005-02-11 13:50 ` [Bug tree-optimization/15596] [4.0 " pinskia at gcc dot gnu dot org
2005-02-11 14:12 ` pinskia at gcc dot gnu dot org
2005-02-13  0:59 ` pinskia at gcc dot gnu dot org
2005-04-21  5:00 ` [Bug tree-optimization/15596] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2005-04-25  1:09 ` pinskia at gcc dot gnu dot org
2005-06-24 20:08 ` pinskia at gcc dot gnu dot org
2005-07-08  1:34 ` mmitchel at gcc dot gnu dot org
2005-09-25 11:37 ` bonzini at gcc dot gnu dot org
2005-09-27 16:16 ` mmitchel 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).