PR tree-optimization/46832
* tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
that the call has a lhs.
* gcc.c-torture/compile/pr46832.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167535
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-12-07 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/46832
+ * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
+ that the call has a lhs.
+
2010-12-07 Yao Qi <yao@codesourcery.com>
* Makefile.in: Add $(TARGET_H) to the regrename.o rule.
2010-12-07 Yao Qi <yao@codesourcery.com>
* Makefile.in: Add $(TARGET_H) to the regrename.o rule.
+2010-12-07 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/46832
+ * gcc.c-torture/compile/pr46832.c: New testcase.
+
2010-12-07 Jakub Jelinek <jakub@redhat.com>
PR debug/46799
2010-12-07 Jakub Jelinek <jakub@redhat.com>
PR debug/46799
--- /dev/null
+double pow(double x, double y);
+void foo( double x ) {
+ int j = (int) ((pow(x, 2)) < 0.0 ? (pow(x, 2))-0.5 : (pow(x, 2))+0.5);
+}
- else if (is_gimple_call (stmt))
+ else if (is_gimple_call (stmt)
+ && gimple_call_lhs (stmt))
{
tree fndecl = gimple_call_fndecl (stmt);
if (fndecl
{
tree fndecl = gimple_call_fndecl (stmt);
if (fndecl