summaryrefslogtreecommitdiff
path: root/lang/gcc295/files/patch-fc
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-03-30 18:15:39 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-03-30 18:15:39 +0000
commit6a9f6dc39fbbf94d21b19d3fc2e7711bbd779566 (patch)
treedc314c30d72b1ca8a7a3abcfc188e26f819e2f40 /lang/gcc295/files/patch-fc
parentAdded ports/emulators/atari800 (diff)
Add FreeBSD's ``-fformat-extensions''. Taken from 4.0-CURRENT, this allows
2.x/3.x people to compile kernels and world with EGCS.
Diffstat (limited to 'lang/gcc295/files/patch-fc')
-rw-r--r--lang/gcc295/files/patch-fc22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/gcc295/files/patch-fc b/lang/gcc295/files/patch-fc
new file mode 100644
index 000000000000..24fefb020007
--- /dev/null
+++ b/lang/gcc295/files/patch-fc
@@ -0,0 +1,22 @@
+--- gcc/toplev.c.orig Sat Feb 27 10:33:02 1999
++++ gcc/toplev.c Tue Mar 30 03:37:57 1999
+@@ -728,6 +728,10 @@
+
+ extern int flag_dump_unnumbered;
+
++/* Nonzero means that -Wformat accepts certain system-dependent formats. */
++
++int flag_format_extensions = 0;
++
+
+ /* Table of supported debugging formats. */
+ static struct
+@@ -915,6 +919,8 @@
+ "Generate code to check every memory access" },
+ {"prefix-function-name", &flag_prefix_function_name, 1,
+ "Add a prefix to all function names" },
++ {"format-extensions", &flag_format_extensions, 1,
++ "-Wformat accepts certain FreeBSD system-dependent formats" },
+ {"dump-unnumbered", &flag_dump_unnumbered, 1}
+ };
+