re PR tree-optimization/49309 (ICE with -fmudflap: verify_stmts failed: type mismatch...
authorAndrew Pinski <pinskia@gmail.com>
Thu, 14 Jul 2011 20:23:36 +0000 (13:23 -0700)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 14 Jul 2011 20:23:36 +0000 (13:23 -0700)
commit9bed2f0d159d8aecfabfc0f2a42bd278531a05dc
treef66709f8f324821ad9d4b30face7098dfab225b9
parent1f88caaae1c3c9dcb7a8fd3552b57c7d29284984
re PR tree-optimization/49309 (ICE with -fmudflap: verify_stmts failed: type mismatch in pointer plus expression)

2011-07-14  Andrew Pinski  <pinskia@gmail.com>

PR tree-opt/49309
* tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
Use fold_build2_loc instead of build2.
Use the correct type for the new tree.

2011-07-14  Andrew Pinski  <pinskia@gmail.com>

PR tree-opt/49309
* g++.dg/torture/pr49309.C: New testcase.

From-SVN: r176281
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr49309.C [new file with mode: 0644]
gcc/tree-mudflap.c