This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa]: Fix obvious bug in tree-pretty-print.c
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 17 May 2003 20:41:44 -0400 (EDT)
- Subject: [tree-ssa]: Fix obvious bug in tree-pretty-print.c
Noticed this one copying the MASK_POINTER macro to some other file.
2003-05-17 Daniel Berlin <dberlin@dberlin.org>
* tree-pretty-print.c (MASK_POINTER): Parameter is P, not node.
Index: tree-pretty-print.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-pretty-print.c,v
retrieving revision 1.1.2.26
diff -u -3 -p -r1.1.2.26 tree-pretty-print.c
--- tree-pretty-print.c 13 May 2003 02:16:39 -0000 1.1.2.26
+++ tree-pretty-print.c 18 May 2003 00:37:51 -0000
@@ -56,7 +56,7 @@ static void dump_vops PARAMS ((output_
(*lang_hooks.decl_printable_name) (TREE_OPERAND (NODE, 0), 1) : \
(*lang_hooks.decl_printable_name) (NODE, 1))
-#define MASK_POINTER(P) ((unsigned)((unsigned long)node & 0xffff))
+#define MASK_POINTER(P) ((unsigned)((unsigned long)(P) & 0xffff))
static output_buffer buffer;
static int initialized = 0;