diff options
-rw-r--r-- | gcc/cp/ChangeLog | 50 | ||||
-rw-r--r-- | gcc/cp/xref.c | 24 |
2 files changed, 62 insertions, 12 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 035408e..205b67b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,53 @@ +2002-01-08 Graham Stott <grahams@redhat.com> + + * xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis. + (PALLOC): Uppercase macro parameter and whitespace. + (SALLOC): Uppercase macro parameter. + (SFREE): Uppercase macros parameter, add parenthese and + whitespace. + (STREQL): Uppercase macro parameter and whitespace. + (STRNEQ): Likewise. + (STRLSS): Likewise. + (STRLEQ): Likewise. + (STRGTR): Likewise. + (STRGEQ): Likewise. + + * call.c (convert_like): Add parenthesis and wrap. + (convert_like_with_context): Likewise. + (ICS_RANK): Whitespace. + (NEED_TEMPORARY_P): Remove parenthesis. + + * class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and + whitespace. + (VTT_MARKED_BINFO_P): Likewise. + + * decl.c (BINDING_LEVEL): Add parenthesis. + (DEF_OPERATOR): Likewise. + + * errors.c (print_scope_operator): Add parenthesis. + (print_left_paren): Likewise. + (print_right_paren): Likewise. + (print_left_bracket): Likewise. + (print_right_bracket): Likewise. + (print_template_argument_list_start): Likewise. + (print_template_argument_list_end): Likewise. + (print_non_consecutive_character): Likewise. + (print_tree_identifier): Likewise. + (print_identifier): Likewise. + (NEXT_CODE): Uppercase macro parameter. + (ident_fndecl): Delete unused. + (GLOBAL_THING): Likewise. + + * mangle.c (MANGLE_TRACE): Add parenthesis. + (MANGLE_TRACE_TREE): Likewise. + (write_signed_number): Likewise. + (write_unsigned_number): Likewise. + + * pt.c (ccat): Uppercase macro parameter. + (cat): Likewise + + * search.c (SET_BINFO_ACCESS): Add parenthesis. + 2002-01-07 Jason Merrill <jason@redhat.com> * decl2.c (coerce_new_type): Downgrade error for size_t mismatch diff --git a/gcc/cp/xref.c b/gcc/cp/xref.c index 5a2127b..77272fb 100644 --- a/gcc/cp/xref.c +++ b/gcc/cp/xref.c @@ -1,6 +1,6 @@ /* Code for handling XREF output from GNU C++. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 2000 Free Software Foundation, Inc. + 2000, 2002 Free Software Foundation, Inc. Contributed by Michael Tiemann (tiemann@cygnus.com) This file is part of GNU CC. @@ -37,7 +37,7 @@ Boston, MA 02111-1307, USA. */ /* Nonzero if NAME as a file name is absolute. */ #ifndef FILE_NAME_ABSOLUTE_P -#define FILE_NAME_ABSOLUTE_P(NAME) (NAME[0] == '/') +#define FILE_NAME_ABSOLUTE_P(NAME) ((NAME)[0] == '/') #endif /* For cross referencing. */ @@ -57,19 +57,19 @@ int flag_gnu_xref; #define FALSE 0 #endif -#define PALLOC(typ) ((typ *) xcalloc(1,sizeof(typ))) +#define PALLOC(TYP) ((TYP *) xcalloc (1, sizeof (TYP))) /* Return a malloc'd copy of STR. */ -#define SALLOC(str) ((char *) ((str) == NULL ? NULL : xstrdup (str))) -#define SFREE(str) (str != NULL && (free(str),0)) - -#define STREQL(s1,s2) (strcmp((s1),(s2)) == 0) -#define STRNEQ(s1,s2) (strcmp((s1),(s2)) != 0) -#define STRLSS(s1,s2) (strcmp((s1),(s2)) < 0) -#define STRLEQ(s1,s2) (strcmp((s1),(s2)) <= 0) -#define STRGTR(s1,s2) (strcmp((s1),(s2)) > 0) -#define STRGEQ(s1,s2) (strcmp((s1),(s2)) >= 0) +#define SALLOC(STR) ((char *) ((STR) == NULL ? NULL : xstrdup (STR))) +#define SFREE(STR) ((STR) != NULL && (free (STR), 0)) + +#define STREQL(S1,S2) (strcmp ((S1), (S2)) == 0) +#define STRNEQ(S1,S2) (strcmp ((S1), (S2)) != 0) +#define STRLSS(S1,S2) (strcmp ((S1), (S2)) < 0) +#define STRLEQ(S1,S2) (strcmp ((S1), (S2)) <= 0) +#define STRGTR(S1,S2) (strcmp ((S1), (S2)) > 0) +#define STRGEQ(S1,S2) (strcmp ((S1), (S2)) >= 0) /************************************************************************/ /* */ |