From: Graham Stott Date: Tue, 8 Jan 2002 10:21:56 +0000 (+0000) Subject: mangle.c (MANGLE_TRACE): Add parenthesis. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff0b0e4c4ee8092ea12e1dce0535a0ca6b12383e;p=gcc.git mangle.c (MANGLE_TRACE): Add parenthesis. * mangle.c (MANGLE_TRACE): Add parenthesis. (MANGLE_TRACE_TREE): Likewise. (write_signed_number): Likewise. (write_unsigned_number): Likewise. From-SVN: r48638 --- diff --git a/gcc/cp/mangle.c b/gcc/cp/mangle.c index a0260e19b68..63f3a0461ad 100644 --- a/gcc/cp/mangle.c +++ b/gcc/cp/mangle.c @@ -1,5 +1,5 @@ /* Name mangling for the 3.0 C++ ABI. - Copyright (C) 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. Written by Alex Samuel This file is part of GNU CC. @@ -65,10 +65,10 @@ /* Macros for tracing the write_* functions. */ #if DEBUG_MANGLE # define MANGLE_TRACE(FN, INPUT) \ - fprintf (stderr, " %-24s: %-24s\n", FN, INPUT) + fprintf (stderr, " %-24s: %-24s\n", (FN), (INPUT)) # define MANGLE_TRACE_TREE(FN, NODE) \ fprintf (stderr, " %-24s: %-24s (%p)\n", \ - FN, tree_code_name[TREE_CODE (NODE)], (void *) NODE) + (FN), tree_code_name[TREE_CODE (NODE)], (void *) (NODE)) #else # define MANGLE_TRACE(FN, INPUT) # define MANGLE_TRACE_TREE(FN, NODE) @@ -227,11 +227,11 @@ static void write_java_integer_type_codes PARAMS ((tree)); /* Write out a signed quantity in base 10. */ #define write_signed_number(NUMBER) \ - write_number (NUMBER, /*unsigned_p=*/0, 10) + write_number ((NUMBER), /*unsigned_p=*/0, 10) /* Write out an unsigned quantity in base 10. */ #define write_unsigned_number(NUMBER) \ - write_number (NUMBER, /*unsigned_p=*/1, 10) + write_number ((NUMBER), /*unsigned_p=*/1, 10) /* If DECL is a template instance, return non-zero and, if TEMPLATE_INFO is non-NULL, set *TEMPLATE_INFO to its template info.