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]

[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;


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