Bug 23327 - Improper removal of struct field assignments by optimizer
Summary: Improper removal of struct field assignments by optimizer
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: regression (show other bugs)
Version: 4.0.1
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-11 15:58 UTC by Andrew Church
Modified: 2005-08-11 16:00 UTC (History)
1 user (show)

See Also:
Host: i686-pc-linux-gnu
Target: i686-pc-linux-gnu
Build: i686-pc-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Church 2005-08-11 15:58:08 UTC
GCC 4.0.0 and later optimize out struct assignments inappropriately when the
struct is used as an input to an asm().  For example, in:

struct {int a,b} args;
a
Comment 1 Andrew Church 2005-08-11 16:00:22 UTC
Sorry, accidentally submitted while typing--refiled as bug 23328.