This is the mail archive of the gcc-patches@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] |
Thanks, Andrew Pinski
Backport from the mainline: 2005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
* tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of integer_zerop. * tree-gimple.c (is_gimple_min_invariant): Consider overflowed constants invariant.
Attachment:
t.diff.txt
Description: Text document
Testcases: compile: /* Testcase from Dale Johannesen <dalej@gcc.gnu.org>. */ struct { double x[1]; } g; void k( double *, double*); void h(int Tmp8) { int i; for(i = 1;i <= Tmp8;i++) k(&g.x[ + -1],&g.x[ Tmp8 + -1]); }
execute: void abort (void);
unsigned long foo () { unsigned long retval; retval = bar (); if (retval == -1) return 0; return 3; }
main () { if (foo () != 0) abort (); return 0; }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |