summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfche <fche>2005-09-14 18:14:07 +0000
committerfche <fche>2005-09-14 18:14:07 +0000
commit6d7ba95b9675f0df6c3bf43ccb316ecab5e94980 (patch)
tree36d1d2f9e998ae1eab3d467bfccbc39693761f53
parentb65817177f8210e33d82777d0e12d97b863d286d (diff)
downloadsystemtap-steved-6d7ba95b9675f0df6c3bf43ccb316ecab5e94980.tar.gz
systemtap-steved-6d7ba95b9675f0df6c3bf43ccb316ecab5e94980.tar.xz
systemtap-steved-6d7ba95b9675f0df6c3bf43ccb316ecab5e94980.zip
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.
-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;
}