------- Additional Comments From steven at gcc dot gnu dot org  2005-07-26 
08:26 -------
These are the only bugs I could find in expand_complex_addition: 
 
Index: tree-complex.c 
=================================================================== 
RCS file: /cvs/gcc/gcc/gcc/tree-complex.c,v 
retrieving revision 2.39 
diff -u -3 -p -r2.39 tree-complex.c 
--- tree-complex.c      25 Jul 2005 23:04:33 -0000      2.39 
+++ tree-complex.c      26 Jul 2005 08:26:07 -0000 
@@ -844,7 +844,7 @@ expand_complex_addition (block_stmt_iter 
 
     case PAIR (VARYING, ONLY_IMAG): 
       rr = ar; 
-      ri = gimplify_build2 (bsi, MINUS_EXPR, inner_type, ai, bi); 
+      ri = gimplify_build2 (bsi, code, inner_type, ai, bi); 
       break; 
 
     case PAIR (ONLY_REAL, VARYING): 
@@ -858,7 +858,7 @@ expand_complex_addition (block_stmt_iter 
       if (code == MINUS_EXPR) 
        goto general; 
       rr = br; 
-      ri = gimplify_build2 (bsi, MINUS_EXPR, inner_type, ai, bi); 
+      ri = gimplify_build2 (bsi, code, inner_type, ai, bi); 
       break; 
 
 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22504

Reply via email to