1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/lang/egcs/files/patch-fc
David E. O'Brien 6a9f6dc39f Add FreeBSD's ``-fformat-extensions''. Taken from 4.0-CURRENT, this allows
2.x/3.x people to compile kernels and world with EGCS.
1999-03-30 18:15:39 +00:00

23 lines
676 B
Plaintext

--- 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}
};