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 debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-08-20 08:12 -------
With - 1, we get:
(plus:DI (symbol_ref:DI ("a") [flags 0x1402] <var_decl 0x42510ba0 a>)
    (const_int -1 [0xffffffffffffffff]))

While with +1, we get:
(const:SI (plus:SI (symbol_ref:SI ("a") [flags 0x1402] <var_decl 0x42510b40 a>)
        (const_int 1 [0x1])))

Notice the wrapper of const.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32563


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