error.c (print_whitespace): Remove.
authorNeil Booth <neil@daikokuya.co.uk>
Thu, 25 Jul 2002 21:13:36 +0000 (21:13 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Thu, 25 Jul 2002 21:13:36 +0000 (21:13 +0000)
cp:
* error.c (print_whitespace): Remove.
* g++spec.c (LIBUNWIND): Move.
* mangle.c (mangled_position, write_signed_number): Remove.

From-SVN: r55760

gcc/cp/ChangeLog
gcc/cp/error.c
gcc/cp/g++spec.c
gcc/cp/mangle.c

index 79a59c4..4ee3d41 100644 (file)
@@ -1,5 +1,11 @@
 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
 
+       * error.c (print_whitespace): Remove.
+       * g++spec.c (LIBUNWIND): Move.
+       * mangle.c (mangled_position, write_signed_number): Remove.
+
+2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
+
        * decl2.c (cxx_decode_option): Similarly.
 
 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
index 8bef22c..3a8f5e0 100644 (file)
@@ -45,11 +45,6 @@ enum pad { none, before, after };
    print_non_consecutive_character ((BUFFER), '<')
 #define print_template_argument_list_end(BUFFER)  \
    print_non_consecutive_character ((BUFFER), '>')
-#define print_whitespace(BUFFER, TFI)        \
-   do {                                      \
-     output_add_space (BUFFER);              \
-     put_whitespace (TFI) = none;            \
-   } while (0)
 #define print_tree_identifier(BUFFER, TID) \
    output_add_string ((BUFFER), IDENTIFIER_POINTER (TID))
 #define print_identifier(BUFFER, ID) output_add_string ((BUFFER), (ID))
index 4087e4a..706b969 100644 (file)
@@ -43,10 +43,6 @@ Boston, MA 02111-1307, USA.  */
 #define LIBSTDCXX_PROFILE "-lstdc++"
 #endif
 
-#ifndef LIBUNWIND
-#define LIBUNWIND "-lunwind"
-#endif
-
 void
 lang_specific_driver (in_argc, in_argv, in_added_libraries)
      int *in_argc;
@@ -277,6 +273,9 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries)
       arglist[j++] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
       added_libraries++;
 #ifdef USE_LIBUNWIND_EXCEPTIONS
+# ifndef LIBUNWIND
+#  define LIBUNWIND "-lunwind"
+# endif
       arglist[j++] = LIBUNWIND;
       added_libraries++;
 #endif
index fc92d6e..ed6c547 100644 (file)
@@ -214,11 +214,6 @@ static void write_java_integer_type_codes PARAMS ((tree));
 #define write_string(STRING)                                          \
   obstack_grow (&G.name_obstack, (STRING), strlen (STRING))
 
-/* Return the position at which the next character will be appended to
-   the mangled representation.  */
-#define mangled_position()                                              \
-  obstack_object_size (&G.name_obstack)
-
 /* Non-zero if NODE1 and NODE2 are both TREE_LIST nodes and have the
    same purpose (context, which may be a type) and value (template
    decl).  See write_template_prefix for more information on what this
@@ -231,10 +226,6 @@ static void write_java_integer_type_codes PARAMS ((tree));
        || TREE_PURPOSE (NODE1) == TREE_PURPOSE (NODE2))             \
    && TREE_VALUE (NODE1) == TREE_VALUE (NODE2))
 
-/* Write out a signed quantity in base 10.  */
-#define write_signed_number(NUMBER) \
-  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)