head	1.4;
access;
symbols
	RELEASE_8_0_0:1.3
	RELEASE_7_2_0:1.3
	RELEASE_7_1_0:1.3
	RELEASE_6_4_0:1.3
	RELEASE_5_EOL:1.3
	RELEASE_7_0_0:1.3
	RELEASE_6_3_0:1.3
	PRE_XORG_7:1.3
	RELEASE_4_EOL:1.3
	RELEASE_6_2_0:1.3
	RELEASE_6_1_0:1.3
	RELEASE_5_5_0:1.3
	RELEASE_6_0_0:1.3
	RELEASE_5_4_0:1.3
	RELEASE_4_11_0:1.3
	RELEASE_5_3_0:1.3
	RELEASE_4_10_0:1.3
	RELEASE_5_2_1:1.3
	RELEASE_5_2_0:1.3
	RELEASE_4_9_0:1.3
	RELEASE_5_1_0:1.3
	RELEASE_4_8_0:1.3
	RELEASE_5_0_0:1.3
	RELEASE_4_7_0:1.3
	RELEASE_4_6_2:1.3
	RELEASE_4_6_1:1.3
	RELEASE_4_6_0:1.3
	RELEASE_5_0_DP1:1.3
	RELEASE_4_5_0:1.3
	RELEASE_4_4_0:1.3
	RELEASE_4_3_0:1.3
	gcc_2_95_3:1.3
	gcc_2_95_3_test1:1.3
	gcc_2_95_2_inital:1.2
	RELEASE_4_2_0:1.2
	RELEASE_4_1_1:1.2
	RELEASE_4_1_0:1.2
	RELEASE_3_5_0:1.2
	RELEASE_4_0_0:1.2
	RELEASE_3_4_0:1.2
	gcc_2_95_2:1.3
	RELEASE_3_3_0:1.2
	gcc_2_95_1:1.2
	gcc_2_95:1.2
	egcs_1_1_2:1.1
	RELEASE_3_2_0:1.1;
locks; strict;
comment	@# @;


1.4
date	2009.11.21.22.00.18;	author gerald;	state dead;
branches;
next	1.3;

1.3
date	2000.11.27.01.12.33;	author obrien;	state Exp;
branches;
next	1.2;

1.2
date	99.08.05.16.06.04;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	99.03.30.18.15.39;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Remove lang/gcc295 which is not used by any other port and had been
unused/unusable for most of last year.  Recommend lang/gcc44 instead.

Approved by:	maintainer
@
text
@--- gcc/toplev.c.orig	Thu Oct 21 00:01:37 1999
+++ gcc/toplev.c	Sun Nov 26 15:25:45 2000
@@@@ -771,6 +771,9 @@@@
 
 int flag_no_ident = 0;
 
+/* Nonzero means that -Wformat accepts certain system-dependent formats.  */
+int flag_format_extensions = 0;
+
 /* Table of supported debugging formats.  */
 static struct
 {
@@@@ -971,6 +974,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,
    "Suppress output of instruction numbers and line number notes in debugging dumps"},
   {"instrument-functions", &flag_instrument_function_entry_exit, 1,
@@@@ -1051,7 +1056,9 @@@@
   { "-Wconversion", "Warn about possibly confusing type conversions" },
   { "-Wno-conversion", "" },
   { "-Wformat", "Warn about printf format anomalies" },
+  { "-Wnon-const-format", "Warn about printf-like format strings" },
   { "-Wno-format", "" },
+  { "-Wno-format-extra-args", "" },
   { "-Wimplicit-function-declaration",
     "Warn about implicit function declarations" },
   { "-Wno-implicit-function-declaration", "" },
@


1.3
log
@Add "-Wnon-const-format" which checks for non-constant format strings for
auditing purposes.

Submitted by:	kris
Obtained from:	NetBSD
@
text
@@


1.2
log
@Update to GCC-2.95 (what would have been EGCS-1.2).
@
text
@d1 3
a3 3
--- gcc/toplev.c.orig	Mon Mar 22 15:23:26 1999
+++ gcc/toplev.c	Tue Mar 30 13:13:44 1999
@@@@ -754,6 +754,9 @@@@
d13 1
a13 1
@@@@ -954,6 +957,8 @@@@
d22 10
@


1.1
log
@Add FreeBSD's ``-fformat-extensions''.  Taken from 4.0-CURRENT, this allows
2.x/3.x people to compile kernels and world with EGCS.
@
text
@d1 3
a3 3
--- 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 @@@@
d5 1
a5 1
 extern int flag_dump_unnumbered;
a7 1
+
a9 1
 
d12 2
a13 1
@@@@ -915,6 +919,8 @@@@
d19 3
a21 3
   {"dump-unnumbered", &flag_dump_unnumbered, 1}
 };
 
@

