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] Pretty print VEC_COND_EXPR



On Sep 27, 2004, at 11:59 AM, Daniel Berlin wrote:


This just broke bootstrap
spc is undeclared.

oops... patch < ~/blah tricked me.


I tested this patch using anony cvs co and when I applied it to cvs co with write access, patch command applied it at the wrong place. As I indicated in ChangeLong as well as diffs, I am updating dump_generic_code() not print_call_name(). After applying patch, I looked at diffs before commit but missed function name... sorry.

Following will fix it. Once it builds, I will checkin.

-
Devang

Index: tree-pretty-print.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-pretty-print.c,v
retrieving revision 2.40
diff -Idpatel.pbxuser -c -3 -p -r2.40 tree-pretty-print.c
*** tree-pretty-print.c 27 Sep 2004 18:22:13 -0000      2.40
--- tree-pretty-print.c 27 Sep 2004 19:07:15 -0000
*************** dump_generic_node (pretty_printer *buffe
*** 1470,1475 ****
--- 1470,1485 ----
        pp_string (buffer, ">");
        break;

+ case VEC_COND_EXPR:
+ pp_string (buffer, " VEC_COND_EXPR < ");
+ dump_generic_node (buffer, TREE_OPERAND (node, 0), spc, flags, false);
+ pp_string (buffer, " , ");
+ dump_generic_node (buffer, TREE_OPERAND (node, 1), spc, flags, false);
+ pp_string (buffer, " , ");
+ dump_generic_node (buffer, TREE_OPERAND (node, 2), spc, flags, false);
+ pp_string (buffer, " > ");
+ break;
+
default:
NIY;
}
*************** print_call_name (pretty_printer *buffer,
*** 1971,1986 ****
dump_generic_node (buffer, op0, 0, 0, false);
break;


- case VEC_COND_EXPR:
- pp_string (buffer, " VEC_COND_EXPR < ");
- dump_generic_node (buffer, TREE_OPERAND (node, 0), spc, flags, false);
- pp_string (buffer, " , ");
- dump_generic_node (buffer, TREE_OPERAND (node, 1), spc, flags, false);
- pp_string (buffer, " , ");
- dump_generic_node (buffer, TREE_OPERAND (node, 2), spc, flags, false);
- pp_string (buffer, " > ");
- break;
-
default:
NIY;
}
--- 1981,1986 ----



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