summaryrefslogtreecommitdiff
path: root/lang/cparser/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-12-17 16:59:19 +0000
committerjoerg <joerg@pkgsrc.org>2008-12-17 16:59:19 +0000
commitc96e2c0a32d27884a8b7e114f3adcdd2dd11c8ed (patch)
treeb8ffd1bdc950a240d1d2e9241414c4c2ef1f086f /lang/cparser/patches
parent8e3974719d6629c9aea7b9ab0f2f781553608fb2 (diff)
downloadpkgsrc-c96e2c0a32d27884a8b7e114f3adcdd2dd11c8ed.tar.gz
Update to cparser-0.9.7:
* lots of bugfixes * add/correct semantic checks * more/improved warnings * internal cleanups (introduce entity_t types) * support more GCC extensions * improved error recovery * support more switches for GCC compatibility * support for libc builtins * add a manpage
Diffstat (limited to 'lang/cparser/patches')
-rw-r--r--lang/cparser/patches/patch-aa23
-rw-r--r--lang/cparser/patches/patch-ab16
-rw-r--r--lang/cparser/patches/patch-ac13
3 files changed, 24 insertions, 28 deletions
diff --git a/lang/cparser/patches/patch-aa b/lang/cparser/patches/patch-aa
index 3484b2b65c7..4c9114b6739 100644
--- a/lang/cparser/patches/patch-aa
+++ b/lang/cparser/patches/patch-aa
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.1.1.1 2008/11/28 01:17:47 bjs Exp $
+$NetBSD: patch-aa,v 1.2 2008/12/17 16:59:19 joerg Exp $
---- Makefile.orig 2008-11-27 19:36:46.000000000 -0500
+--- Makefile.orig 2008-12-01 18:57:31.000000000 +0100
+++ Makefile
@@ -8,18 +8,18 @@ BUILDDIR ?= build
FIRM_CFLAGS ?= `pkg-config --cflags libfirm`
@@ -26,9 +26,9 @@ $NetBSD: patch-aa,v 1.1.1.1 2008/11/28 01:17:47 bjs Exp $
LFLAGS += $(FIRM_LIBS)
-@@ -51,13 +51,13 @@ SOURCES := \
- driver/firm_opt.c \
+@@ -55,13 +55,13 @@ SOURCES := \
driver/gen_firm_asm.c \
+ preprocessor.c
-OBJECTS = $(SOURCES:%.c=build/%.o)
+OBJECTS = $(SOURCES:%.c=build/%.lo)
@@ -44,9 +44,9 @@ $NetBSD: patch-aa,v 1.1.1.1 2008/11/28 01:17:47 bjs Exp $
Q = @
-@@ -93,7 +93,8 @@ UNUSED := $(shell mkdir -p $(DIRS))
+@@ -97,7 +97,8 @@ UNUSED := $(shell mkdir -p $(DIRS))
- $(GOAL): $(OBJECTS)
+ $(GOAL): $(OBJECTS) $(LIBFIRM_FILE)
@echo "===> LD $@"
- $(Q)$(CC) $(OBJECTS) $(LFLAGS) -o $(GOAL)
+ $(Q)$(LIBTOOL) --mode=link --tag=CC \
@@ -54,7 +54,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2008/11/28 01:17:47 bjs Exp $
splint: $(SPLINTS)
-@@ -123,36 +124,40 @@ builtins.h: builtins/builtins.c
+@@ -127,35 +128,42 @@ builtins.h: builtins/builtins.c create_b
main.c: builtins.h
@@ -89,7 +89,7 @@ $NetBSD: patch-aa,v 1.1.1.1 2008/11/28 01:17:47 bjs Exp $
@echo "===> LD $@"
- $(Q)gcc $(CPARSEROS_E) $(LFLAGS) -o $@
+ $(Q)$(LIBTOOL) --mode=link \
-+ $(CC) $(CPARSEROS_E) $(LFLAGS) -o $@
++ gcc $(CPARSEROS_E) $(LFLAGS) -o $@
cparser.bootstrap2: $(CPARSEROS2)
@echo "===> LD $@"
@@ -100,12 +100,11 @@ $NetBSD: patch-aa,v 1.1.1.1 2008/11/28 01:17:47 bjs Exp $
-build/%.o: %.c
+build/%.lo: %.c
@echo '===> CC $<'
-- $(Q)$(ICC) $(CPPFLAGS) $(ICC_CFLAGS) -c $< -o $@
-- $(Q)$(GCCO1) $(CPPFLAGS) $(CFLAGS) -O1 -c $< -o $@
+ #$(Q)$(ICC) $(CPPFLAGS) $(ICC_CFLAGS) -c $< -o $@
+ #$(Q)$(GCCO1) $(CPPFLAGS) $(CFLAGS) -O1 -c $< -o $@
- $(Q)$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
--
+ $(Q)$(LIBTOOL) --mode=compile --tag=CC \
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
+
clean:
@echo '===> CLEAN'
- $(Q)rm -rf build/* $(GOAL) .depend
diff --git a/lang/cparser/patches/patch-ab b/lang/cparser/patches/patch-ab
deleted file mode 100644
index d726c7d12f5..00000000000
--- a/lang/cparser/patches/patch-ab
+++ /dev/null
@@ -1,16 +0,0 @@
-$NetBSD: patch-ab,v 1.1.1.1 2008/11/28 01:17:47 bjs Exp $
-
-Quell warning about possible uninitialized use;
-someone may wish to look into this further.
-
---- parser.c.orig 2008-08-01 05:01:24.000000000 -0400
-+++ parser.c
-@@ -2402,7 +2402,7 @@ static initializer_t *parse_initializer(
- {
- type_t *type = skip_typeref(env->type);
- initializer_t *result = NULL;
-- size_t max_index;
-+ size_t max_index = 0;
-
- if(is_type_scalar(type)) {
- result = parse_scalar_initializer(type, env->must_be_constant);
diff --git a/lang/cparser/patches/patch-ac b/lang/cparser/patches/patch-ac
new file mode 100644
index 00000000000..f23d196ef5e
--- /dev/null
+++ b/lang/cparser/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2008/12/17 16:59:19 joerg Exp $
+
+--- ast.c.orig 2008-12-05 20:43:03.000000000 +0100
++++ ast.c
+@@ -206,7 +206,7 @@ static void print_const(const const_expr
+ #else
+ fprintf(out, "%.20Lg", val);
+ #endif
+- if (isfinite(val) && truncl(val) == val)
++ if (isfinite(val) && trunc(val) == val)
+ fputs(".0", out);
+ } else {
+ panic("unknown constant");