This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/45722] [4.6 Regression] FAIL: gcc.c-torture/execute/20040709-2.c execution at -O1 and -Os
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 12 Nov 2010 17:43:20 +0000
- Subject: [Bug middle-end/45722] [4.6 Regression] FAIL: gcc.c-torture/execute/20040709-2.c execution at -O1 and -Os
- Auto-submitted: auto-generated
- References: <bug-45722-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45722
--- Comment #34 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2010-11-12 17:36:43 UTC ---
> The patch in comment #16 makes sense (it's similar to what we do in
> memcpy folding to avoid the situation - and to avoid re-writing of
> strict-alignment target handling in memory reference expanding).
Why not always build the COMPONENT_REF if there is a COMPONENT_REF? Testing
DECL_PACKED in the optimizer isn't really appropriate.