summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--Makefile.am2
-rw-r--r--Makefile.in2
-rw-r--r--loc2c.c6
4 files changed, 12 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 033cb9bb..64d6cd01 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-09-14 Frank Ch. Eigler <fche@elastic.org>
+
+ PR 1257
+ * Makefile.am (AM_CFLAGS): Add -fexceptions.
+ * loc2c.c (c_translate_location): Invoke *fail properly.
+ * Makefile.in: Regenerated.
+
2005-09-13 Graydon Hoare <graydon@redhat.com>
PR 1260
diff --git a/Makefile.am b/Makefile.am
index 7d38c1eb..e793a6b9 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 01aad421..fa5aa0e2 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 a6b4d8da..70d3cca8 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;
}