This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15596] New: [3.5 Regression] Missed optimization with bitfields
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 May 2004 22:37:56 -0000
- Subject: [Bug tree-optimization/15596] New: [3.5 Regression] Missed optimization with bitfields
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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