This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] use bb_has_abnormal_pred in a few places


Nathan,

For revision 165772 you need also

-- /opt/gcc/_clean/gcc/tree-into-ssa.c	2010-10-21 15:13:29.000000000 +0200
+++ /opt/gcc/work/gcc/tree-into-ssa.c	2010-10-21 15:36:09.000000000 +0200
@@ -2063,8 +2063,6 @@ static void
 rewrite_update_enter_block (struct dom_walk_data *walk_data ATTRIBUTE_UNUSED,
 		            basic_block bb)
 {
-  edge e;
-  edge_iterator ei;
   bool is_abnormal_phi;
   gimple_stmt_iterator gsi;
 
@@ -2832,8 +2830,6 @@ create_new_def_for (tree old_name, gimpl
 
   if (gimple_code (stmt) == GIMPLE_PHI)
     {
-      edge e;
-      edge_iterator ei;
       basic_block bb = gimple_bb (stmt);
 
       /* If needed, mark NEW_NAME as occurring in an abnormal PHI node. */

otherwise one gets

/opt/gcc/build_w/./prev-gcc/xgcc -B/opt/gcc/build_w/./prev-gcc/ -B/opt/gcc/gcc4.6w/x86_64-apple-darwin10.4.0/bin/ -B/opt/gcc/gcc4.6w/x86_64-apple-darwin10.4.0/bin/ -B/opt/gcc/gcc4.6w/x86_64-apple-darwin10.4.0/lib/ -isystem /opt/gcc/gcc4.6w/x86_64-apple-darwin10.4.0/include -isystem /opt/gcc/gcc4.6w/x86_64-apple-darwin10.4.0/sys-include    -c   -g -O2 -gtoggle -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H -I. -I. -I../../work/gcc -I../../work/gcc/. -I../../work/gcc/../include -I../../work/gcc/../libcpp/include -I/opt/sw64/include  -I../../work/gcc/../libdecnumber -I../../work/gcc/../libdecnumber/dpd -I../libdecnumber  -I/opt/sw64/include -DCLOOG_PPL_BACKEND   -I/opt/sw64/include ../../work/gcc/tree-iterator.c -o tree-iterator.o
../../work/gcc/tree-into-ssa.c: In function 'rewrite_update_enter_block':
../../work/gcc/tree-into-ssa.c:2067:17: error: unused variable 'ei' [-Werror=unused-variable]
../../work/gcc/tree-into-ssa.c:2066:8: error: unused variable 'e' [-Werror=unused-variable]
../../work/gcc/tree-into-ssa.c: In function 'create_new_def_for':
../../work/gcc/tree-into-ssa.c:2836:21: error: unused variable 'ei' [-Werror=unused-variable]
../../work/gcc/tree-into-ssa.c:2835:12: error: unused variable 'e' [-Werror=unused-variable]
cc1: all warnings being treated as errors

TIA

Dominique


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]