merge from gcc
authorDJ Delorie <dj@redhat.com>
Wed, 25 Feb 2004 02:04:37 +0000 (02:04 +0000)
committerDJ Delorie <dj@redhat.com>
Wed, 25 Feb 2004 02:04:37 +0000 (02:04 +0000)
include/ChangeLog
include/dyn-string.h
libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/testsuite/demangle-expected

index 4e1ab9fbee45dd3a904b0dfe35dc2b6c8411baaa..37c6cfdadf1bf2c6af137984e570436326cdab97 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-24  Ian Lance Taylor  <ian@wasabisystems.com>
+
+       * dyn-string.h: Update copyright date.
+
 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
 
        * dyn-string.h: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
index aa5e38504e89402898e5fe5596da3cec307aab44..85f88b12cf6684846baae81ba79f3b4d46822485 100644 (file)
@@ -1,5 +1,5 @@
 /* An abstract string datatype.
-   Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
    Contributed by Mark Mitchell (mark@markmitchell.com).
 
 This file is part of GCC.
index e21c34f4d947bc0b03bd178a136991ecd0bb9a4c..58a11425539b2c40fdb5bc21d231f6a16a9fefff 100644 (file)
@@ -1,5 +1,10 @@
 2004-02-24  Ian Lance Taylor  <ian@wasabisystems.com>
 
+       * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
+       parentheses around a cast.
+       * testsuite/demangle-expected: Adjust two test cases to match new
+       output.
+
        * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
 
        * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
index 1205fcbe403bf0215a3ed1cff051f768bba28306..47ec0956fb26b06fb83157aba250778144f44a5c 100644 (file)
@@ -3277,15 +3277,13 @@ d_print_comp (dpi, dc)
        d_print_expr_op (dpi, d_left (dc));
       else
        {
-         d_append_string_constant (dpi, "((");
+         d_append_char (dpi, '(');
          d_print_cast (dpi, d_left (dc));
          d_append_char (dpi, ')');
        }
       d_append_char (dpi, '(');
       d_print_comp (dpi, d_right (dc));
       d_append_char (dpi, ')');
-      if (d_left (dc)->type == DEMANGLE_COMPONENT_CAST)
-       d_append_char (dpi, ')');
       return;
 
     case DEMANGLE_COMPONENT_BINARY:
index 5ede7ab9ef880d192477d3767320167d87a3d454..df32587f816543752cecfe410fc6644ede21579f 100644 (file)
@@ -3591,13 +3591,13 @@ hairyfunc5
 # This is from gcc PR 8861
 --format=gnu-v3 --no-params
 _Z1fILi1ELc120EEv1AIXplT_cviLd810000000000000000703DAD7A370C5EEE
-void f<1, 120>(A<(1) + (((int)((double)810000000000000000703DAD7A370C5)))>)
+void f<1, 120>(A<(1) + ((int)((double)810000000000000000703DAD7A370C5))>)
 f<1, 120>
 #
 # This is also from gcc PR 8861
 --format=gnu-v3 --no-params
 _Z1fILi1EEv1AIXplT_cvingLf3f800000EEE
-void f<1>(A<(1) + (((int)(-((float)3f800000))))>)
+void f<1>(A<(1) + ((int)(-((float)3f800000)))>)
 f<1>
 #
 # This is from a libstdc++ debug mode patch.
This page took 0.035022 seconds and 4 git commands to generate.