PR tree-optimization/37433
* tree-ssa-ccp.c (ccp_fold): Properly guard folding of
function calls.
* gcc.c-torture/compile/pr37433.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140143
138bc75d-0d04-0410-961f-
82ee72b054a4
2008-09-09 Richard Guenther <rguenther@suse.de>
+ PR tree-optimization/37433
+ * tree-ssa-ccp.c (ccp_fold): Properly guard folding of
+ function calls.
+
+2008-09-09 Richard Guenther <rguenther@suse.de>
+
PR tree-optimization/37387
* tree-ssa-ifcombine.c (ifcombine_iforif): Convert the name
and bits to a common type.
2008-09-09 Richard Guenther <rguenther@suse.de>
+ PR tree-optimization/37433
+ * gcc.c-torture/compile/pr37433.c: New testcase.
+
+2008-09-09 Richard Guenther <rguenther@suse.de>
+
PR tree-optimization/37387
* gcc.c-torture/compile/pr37387.c: New testcase.
--- /dev/null
+int regex_subst(void)
+{
+ const void *subst = "";
+ return (*(int (*)(int))subst) (0);
+}
+
+int foobar (void)
+{
+ int x;
+ return (*(int (*)(void))&x) ();
+}
fn = val->value;
}
if (TREE_CODE (fn) == ADDR_EXPR
+ && TREE_CODE (TREE_OPERAND (fn, 0)) == FUNCTION_DECL
&& DECL_BUILT_IN (TREE_OPERAND (fn, 0)))
{
tree *args = XALLOCAVEC (tree, gimple_call_num_args (stmt));