From 6d7ba95b9675f0df6c3bf43ccb316ecab5e94980 Mon Sep 17 00:00:00 2001 From: fche Date: Wed, 14 Sep 2005 18:14:07 +0000 Subject: [PATCH] 2005-09-14 Frank Ch. Eigler PR 1257 * Makefile.am (AM_CFLAGS): Add -fexceptions. * loc2c.c (c_translate_location): Invoke *fail properly. * Makefile.in: Regenerated. --- ChangeLog | 7 +++++++ Makefile.am | 2 +- Makefile.in | 2 +- loc2c.c | 6 +++--- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 033cb9bb7..64d6cd018 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-09-14 Frank Ch. Eigler + + PR 1257 + * Makefile.am (AM_CFLAGS): Add -fexceptions. + * loc2c.c (c_translate_location): Invoke *fail properly. + * Makefile.in: Regenerated. + 2005-09-13 Graydon Hoare PR 1260 diff --git a/Makefile.am b/Makefile.am index 7d38c1ebd..e793a6b9a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,7 +4,7 @@ AM_CPPFLAGS = -DPKGLIBDIR='"${libexecdir}/${PACKAGE}"' \ -DPKGDATADIR='"${pkgdatadir}"' -AM_CFLAGS = -std=gnu99 -D_GNU_SOURCE \ +AM_CFLAGS = -std=gnu99 -D_GNU_SOURCE -fexceptions \ -Wall -Werror -Wshadow -Wunused -Wformat=2 -W AM_CXXFLAGS = -Wall diff --git a/Makefile.in b/Makefile.in index 01aad421c..fa5aa0e25 100644 --- a/Makefile.in +++ b/Makefile.in @@ -194,7 +194,7 @@ target_alias = @target_alias@ AM_CPPFLAGS = -DPKGLIBDIR='"${libexecdir}/${PACKAGE}"' \ -DPKGDATADIR='"${pkgdatadir}"' -AM_CFLAGS = -std=gnu99 -D_GNU_SOURCE \ +AM_CFLAGS = -std=gnu99 -D_GNU_SOURCE -fexceptions \ -Wall -Werror -Wshadow -Wunused -Wformat=2 -W AM_CXXFLAGS = -Wall diff --git a/loc2c.c b/loc2c.c index a6b4d8dac..70d3cca8e 100644 --- a/loc2c.c +++ b/loc2c.c @@ -978,13 +978,13 @@ c_translate_location (struct obstack *pool, default: /* Shouldn't happen. */ case -1: - FAIL (*input, N_("dwarf_addrloclists (form %#x): %s"), - dwarf_whatform (fb_attr), dwarf_errmsg (-1)); + (*fail) (fail_arg, N_("dwarf_addrloclists (form %#x): %s"), + dwarf_whatform (fb_attr), dwarf_errmsg (-1)); return NULL; case 0: /* Shouldn't happen. */ inaccessible: - FAIL (*input, N_("not accessible at this address")); + (*fail) (fail_arg, N_("not accessible at this address")); return NULL; } -- 2.43.5