This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/21171] [4.0/4.1 Regression] Generates wrong code (w/ optimization) when copying data from a table to a table in a structure
- 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: 26 Apr 2005 19:51:25 -0000
- Subject: [Bug tree-optimization/21171] [4.0/4.1 Regression] Generates wrong code (w/ optimization) when copying data from a table to a table in a structure
- References: <20050423081814.21171.sami.kantoluoto@embedtronics.fi>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-26 19:51 -------
The problem comes from dce but the problem is that IV OPT is making the pointer as "unsigned int *",
because the field's type is just "unsigned int[]" but since the orginal type of the struct is volatile, we
don't have a vop as it is volatile store. And since IV opts just copies the vops and not run aliasing (which
right now causes a different issue on 4.0 branch), we don't get a vop.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0 Regression] Generates |[4.0/4.1 Regression]
|wrong code (w/ optimization)|Generates wrong code (w/
|when copying data from a |optimization) when copying
|table to a table in a |data from a table to a table
|structure |in a structure
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21171