re PR tree-optimization/34472 (gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work)
commit986d97ed88e7abef3addb0d867dc20378f5dd290
authorRichard Sandiford <rsandifo@nildram.co.uk>
Thu, 24 Jan 2008 17:46:31 +0000 (24 17:46 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 24 Jan 2008 17:46:31 +0000 (24 17:46 +0000)
tree02d656d3a2e8e318ab786560ad58d7de7b4687b7
parentfcc448088df39d4512d3f1fd1d85ea2c83c36cf9
re PR tree-optimization/34472 (gcc.dg/struct/wo_prof_malloc_size_var.c doesn't work)

gcc/
PR tree-optimization/34472
* ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
parameter to a "bool *" and set *DATA to false if there is
an unsafe access.  Do not delete the structure here.
(check_cond_exprs): Delete it here instead.
(check_cond_exprs, exclude_cold_structs): Do not increase
I when removing a structure.

From-SVN: r131798
gcc/ChangeLog
gcc/ipa-struct-reorg.c