Index...
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 27 May 2011 13:29:57 +0000 (13:29 +0000)
committerWilliam Schmidt <wschmidt@gcc.gnu.org>
Fri, 27 May 2011 13:29:57 +0000 (13:29 +0000)
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog (revision 174330)
+++ gcc/ChangeLog (working copy)
@@ -1,3 +1,9 @@
+2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+ PR tree-optimization/49170
+ * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
+ sincos or cexp.
+
 2011-05-27  Richard Guenther  <rguenther@suse.de>

  PR middle-end/49189
Index: gcc/tree-ssa-math-opts.c
===================================================================
--- gcc/tree-ssa-math-opts.c (revision 174330)
+++ gcc/tree-ssa-math-opts.c (working copy)
@@ -1093,6 +1093,10 @@ execute_cse_sincos (void)
  CASE_FLT_FN (BUILT_IN_COS):
  CASE_FLT_FN (BUILT_IN_SIN):
  CASE_FLT_FN (BUILT_IN_CEXPI):
+   /* Make sure we have either sincos or cexp.  */
+   if (!TARGET_HAS_SINCOS && !TARGET_C99_FUNCTIONS)
+     break;
+
    arg = gimple_call_arg (stmt, 0);
    if (TREE_CODE (arg) == SSA_NAME)
      cfg_changed |= execute_cse_sincos_1 (arg);

From-SVN: r174331

gcc/ChangeLog
gcc/tree-ssa-math-opts.c

index 6271933bd1347db4e475f165ffb4a6de8e4eb50c..60f09e4963144807bf771b9b3761a9350d6e110a 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
+
+       PR tree-optimization/49170
+       * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
+       sincos or cexp.
+       
 2011-05-27  Richard Guenther  <rguenther@suse.de>
 
        PR middle-end/49189
index cd601e3dd0cb3c050e18478c7960ed6015576819..975ce9b1e5f2d584411df00e82f77c239fd152ba 100644 (file)
@@ -1093,6 +1093,10 @@ execute_cse_sincos (void)
                CASE_FLT_FN (BUILT_IN_COS):
                CASE_FLT_FN (BUILT_IN_SIN):
                CASE_FLT_FN (BUILT_IN_CEXPI):
+                 /* Make sure we have either sincos or cexp.  */
+                 if (!TARGET_HAS_SINCOS && !TARGET_C99_FUNCTIONS)
+                   break;
+
                  arg = gimple_call_arg (stmt, 0);
                  if (TREE_CODE (arg) == SSA_NAME)
                    cfg_changed |= execute_cse_sincos_1 (arg);