This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30364] [4.1/4.2/4.3 Regression] Wrong variable ranges due to constant folding
- 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: 4 Jan 2007 10:23:20 -0000
- Subject: [Bug middle-end/30364] [4.1/4.2/4.3 Regression] Wrong variable ranges due to constant folding
- References: <bug-30364-7904@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-01-04 10:23 -------
(In reply to comment #1)
> Is it really a middle-end issue?
Yes because fold is part of the middle-end that is most likely causing this
being translated into "a + b - 40".
And this is the reason why the way wrote it the second way works is because
fold does not see the full expression so it does not do the folding.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30364