This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic
- 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: 20 Aug 2007 08:12:16 -0000
- Subject: [Bug debug/32563] [4.2/4.3 regression] ICE on pointer arithmetic
- References: <bug-32563-1771@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-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