This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/32746] [4.3 Regression] tree-ssa-operands int.comp error
- 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: 13 Jul 2007 02:26:15 -0000
- Subject: [Bug tree-optimization/32746] [4.3 Regression] tree-ssa-operands int.comp error
- References: <bug-32746-14789@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-07-13 02:26 -------
Reduced testcase:
struct RegisterLayout
{
int intmask;
};
struct Controller_t
{
static inline void
disableInterrupt()
{
*mpMaskRegister = 0;
};
static int * const mpMaskRegister;
};
extern char SimulatedRegisters[];
int * const Controller_t::mpMaskRegister
= &((RegisterLayout*)SimulatedRegisters)->intmask;
void f()
{
Controller_t::disableInterrupt();
}
----- CUT -----
FRE is where it goes wrong:
mpMaskRegister.0_1 = &((struct RegisterLayout *) (char *)
&SimulatedRegisters)->intmask;
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dberlin at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-07-13 02:26:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32746