From 727e39c7ffae766b3a74d9203f951b43c8d53aed Mon Sep 17 00:00:00 2001 From: Andrew Macleod Date: Tue, 10 Feb 1998 12:31:01 +0000 Subject: [PATCH] Add squangling support. (First cut at improved Name mangling) From-SVN: r17828 --- gcc/cp/ChangeLog | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6446d6ab94c..9bfe9944386 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,33 @@ +Tue Feb 10 15:30:55 EST 1998 Andrew MacLeod + + * 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. + (process_modifiers): New function, to handle constant, reference, + and pointer types. + (process_overload_item): New function, handles issue of type codes. + (build_overload_name): New function, start squangling and call + build_mangled_name. + (ALLOCATE_TYPEVEC, DEALLOCATE_TYPEVEC): Remove macro and expand inline. + (start_squangling): New function to initialize squangling structs. + (end_squangling): New function to destroy squangling structs. + (nrepeats): Rename variable to Nrepeats. + (issue_nrepeats): New function for issuing 'n' type repeats. + (check_ktype): New function to check for type K name compression. + (build_overload_nested_name): Add a check for K name compression. + (build_qualified_name): Add a check for K name compression and don't + use DECL_ASSEMBLER_NAME when squangling is on. + (check_btype): New function, checks for B type compression. + (build_static_name, build_decl_overload_real): Initiate squangling. + (build_typename_overload, build_overload_with_type): Initiate + squangling + Sun Feb 8 23:47:38 1998 scott snyder * method.c (make_thunk): Avoid name buffer overflow. -- 2.30.2