diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-24 02:32:50 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-24 02:32:50 +0000 |
commit | 0765a988107643715d97ce1e022f7fd5cb9df134 (patch) | |
tree | 7aedc23adf4738c6653017bf6e14f3705090d94f /libiberty | |
parent | 02c7108110de9729976ef8aed85e268e2720ee05 (diff) | |
download | gcc-0765a988107643715d97ce1e022f7fd5cb9df134.tar.gz |
* dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
the associated #define of RETURN_ON_ALLOCATION_FAILURE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78347 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 5 | ||||
-rw-r--r-- | libiberty/dyn-string.c | 11 |
2 files changed, 6 insertions, 10 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 08b7d5b6b11..586fa1f0398 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2004-02-23 Ian Lance Taylor <ian@wasabisystems.com> + + * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and + the associated #define of RETURN_ON_ALLOCATION_FAILURE. + 2004-02-16 Matt Kraai <kraai@alumni.cmu.edu> * regex.c: Include <ansidecl.h>. diff --git a/libiberty/dyn-string.c b/libiberty/dyn-string.c index 1da76c2110d..5d48cdc6955 100644 --- a/libiberty/dyn-string.c +++ b/libiberty/dyn-string.c @@ -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 GNU CC. @@ -45,15 +45,6 @@ Boston, MA 02111-1307, USA. */ #include "libiberty.h" #include "dyn-string.h" -/* If this file is being compiled for inclusion in the C++ runtime - library, as part of the demangler implementation, we don't want to - abort if an allocation fails. Instead, percolate an error code up - through the call chain. */ - -#if defined(IN_LIBGCC2) || defined(IN_GLIBCPP_V3) -#define RETURN_ON_ALLOCATION_FAILURE -#endif - /* Performs in-place initialization of a dyn_string struct. This function can be used with a dyn_string struct on the stack or embedded in another object. The contents of of the string itself |