This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/32746] [4.3 Regression] tree-ssa-operands int.comp error



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]