diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-02-10 20:37:18 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-02-10 15:37:18 -0500 |
commit | 71cc65bdb7dc9acfa871c501bc1790ba76479395 (patch) | |
tree | d2acad5d7182214080bfcf22dee51527767f947e | |
parent | 74ccf2c2589dc13cb6b9f492c7f569f3d9f7ffc7 (diff) | |
download | gcc-71cc65bdb7dc9acfa871c501bc1790ba76479395.zip gcc-71cc65bdb7dc9acfa871c501bc1790ba76479395.tar.gz gcc-71cc65bdb7dc9acfa871c501bc1790ba76479395.tar.bz2 |
decl.c (grokdeclarator): Use DECL_USE_TEMPLATE instead when deciding to override DECL_ASSEMBLER_NAME.
* decl.c (grokdeclarator): Use DECL_USE_TEMPLATE instead
when deciding to override DECL_ASSEMBLER_NAME.
Co-Authored-By: Manfred Hollstein <manfred@s-direktnet.de>
From-SVN: r17835
-rw-r--r-- | gcc/cp/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 9bfe994..08854db 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,14 +1,18 @@ +Tue Feb 10 20:36:52 1998 Jason Merrill <jason@yorick.cygnus.com> + Manfred Hollstein <manfred@s-direktnet.de> + + * decl.c (grokdeclarator): Use DECL_USE_TEMPLATE instead + when deciding to override DECL_ASSEMBLER_NAME. + Tue Feb 10 15:30:55 EST 1998 Andrew MacLeod <amacleod@torpedo.to.cygnus.com> * decl2.c (lang_f_options): Add -fsquangle to option processing list. - * cp-tree.h (flag_do_squangling): Add declaration. - * lang-options.h: Add -fsquangle and -fno-squangle. - * method.c: Add macros and static variables for squangling. (build_overload_name): Rename to build_mangled_name, add logic for B - compression, and split into process_modifiers and process_overload_item. + compression, and split into process_modifiers and + process_overload_item. (process_modifiers): New function, to handle constant, reference, and pointer types. (process_overload_item): New function, handles issue of type codes. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index f61cec4..c4b229f 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -9930,7 +9930,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist) return NULL_TREE; if (ctype == NULL_TREE && DECL_LANGUAGE (decl) != lang_c - && (!DECL_TEMPLATE_SPECIALIZATION (decl) || + && (! DECL_USE_TEMPLATE (decl) || name_mangling_version < 1)) DECL_ASSEMBLER_NAME (decl) = current_namespace_id (declarator); |