aboutsummaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2014-01-28 20:06:44 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2014-01-28 20:06:44 +0100
commite191f502605992cb2344af710b55fa125a91eee3 (patch)
treeee5d46ff5b6a7231c31b428d9ae431db19757728 /libiberty
parentd2ca60c021ffc3a781e491d467ab6b2eca7b50ee (diff)
downloadgcc-e191f502605992cb2344af710b55fa125a91eee3.zip
gcc-e191f502605992cb2344af710b55fa125a91eee3.tar.gz
gcc-e191f502605992cb2344af710b55fa125a91eee3.tar.bz2
Avoid "'dc' may be uninitialized" warning.
libiberty/ * cp-demangle.c (d_demangle_callback): Put an abort call in place, to help the compiler. From-SVN: r207200
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog5
-rw-r--r--libiberty/cp-demangle.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 083ec79..0a4496b 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,8 @@
+2014-01-28 Thomas Schwinge <thomas@codesourcery.com>
+
+ * cp-demangle.c (d_demangle_callback): Put an abort call in place,
+ to help the compiler.
+
2014-01-21 Tom Tromey <tromey@redhat.com>
* _doprint.c (checkit): Use stdarg, not VA_* macros.
diff --git a/libiberty/cp-demangle.c b/libiberty/cp-demangle.c
index bf2ffa9..3d5d33e 100644
--- a/libiberty/cp-demangle.c
+++ b/libiberty/cp-demangle.c
@@ -1,5 +1,5 @@
/* Demangler for g++ V3 ABI.
- Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2014
Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@wasabisystems.com>.
@@ -5824,6 +5824,8 @@ d_demangle_callback (const char *mangled, int options,
NULL);
d_advance (&di, strlen (d_str (&di)));
break;
+ default:
+ abort (); /* We have listed all the cases. */
}
/* If DMGL_PARAMS is set, then if we didn't consume the entire