diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1999-07-09 07:05:23 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1999-07-09 07:05:23 -0400 |
commit | 6f1b4c42790b1a8083ae217facb58eb3f0cfa819 (patch) | |
tree | f2f5e66b69e7e045db05f19c706201f1b67d06f8 /gcc/cp/xref.c | |
parent | 22b452e755aa611d40f7c9317686ce50ce5c6fff (diff) | |
download | gcc-6f1b4c42790b1a8083ae217facb58eb3f0cfa819.zip gcc-6f1b4c42790b1a8083ae217facb58eb3f0cfa819.tar.gz gcc-6f1b4c42790b1a8083ae217facb58eb3f0cfa819.tar.bz2 |
pt.c (do_decl_instantiation): Downgrade duplicate instantiation errors to pedwarn.
* pt.c (do_decl_instantiation): Downgrade duplicate instantiation
errors to pedwarn.
* typeck.c (comptypes): Simplify C code in look_hard.
* xref.c (PALLOC): Use xcalloc, not calloc.
(SALLOC): Use xmalloc, not malloc.
* rtti.c (synthesize_tinfo_fn): Add missing call to pop_momentary.
* search.c (note_debug_info_needed): Don't search if WRITE_SYMBOLS
is NO_DEBUG.
* decl.c (duplicate_decls): If a redeclaration doesn't match the
initial declaration, then don't save the inline info and by all
means don't mark the function as a builtin function.
* decl.c (lookup_name_real): Set NONCLASS to 1 if
CURRENT_CLASS_TYPE is 0.
* class.c (duplicate_tag_error): Set TYPE_NONCOPIED_PARTS to
NULL_TREE.
From-SVN: r28044
Diffstat (limited to 'gcc/cp/xref.c')
-rw-r--r-- | gcc/cp/xref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/xref.c b/gcc/cp/xref.c index 6e06eda..003910c 100644 --- a/gcc/cp/xref.c +++ b/gcc/cp/xref.c @@ -58,13 +58,13 @@ int flag_gnu_xref; #define FALSE 0 #endif -#define PALLOC(typ) ((typ *) calloc(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 \ - : (char *) strcpy ((char *) malloc (strlen ((str)) + 1), (str)))) + : (char *) strcpy ((char *) xmalloc (strlen ((str)) + 1), (str)))) #define SFREE(str) (str != NULL && (free(str),0)) #define STREQL(s1,s2) (strcmp((s1),(s2)) == 0) |