[Bug middle-end/19650] [4.0 Regression] miscompilation of correct code

2005-01-26 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-27 01:45 --- Note here is the reduced C testcase which shows that this is not PHI-OPT bug as PHI-OPT does nothing: int g(void); void h(int); int a1[2]={0,1}; int main(void) { int a = g(); _Bool i = a==2; h(a1[i]);

[Bug middle-end/19650] [4.0 Regression] miscompilation of correct code

2005-01-26 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-27 01:26 --- Here is the most reduced testcase I came up with (this might be another type mismatch problem in tree-ssa-phiopt but I could be wrong if you replace a1[0][i] by a[0][a==2] it works): int g(void); void h(i

[Bug middle-end/19650] [4.0 Regression] miscompilation of correct code

2005-01-26 Thread dalej at apple dot com
--- Additional Comments From dalej at apple dot com 2005-01-27 01:21 --- OK, thanks, I'll go fix it. I mostly put it in here in case somebody was working on a dup. -- What|Removed |Added -

[Bug middle-end/19650] [4.0 Regression] miscompilation of correct code

2005-01-26 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-27 01:14 --- And yes it looks like we are messing up the RTL generation for the printf, there is we don't compare D.2150 to 2 at all. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19650

[Bug middle-end/19650] [4.0 Regression] miscompilation of correct code

2005-01-26 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-27 01:08 --- Confirmed, This one is new to me. -- What|Removed |Added CC|