openbsd-ports/lang/gcc/3.3/patches/patch-gcc_c-common_h
2005-01-03 15:21:26 +00:00

26 lines
930 B
Plaintext

$OpenBSD: patch-gcc_c-common_h,v 1.1.1.1 2005/01/03 15:21:29 espie Exp $
--- gcc/c-common.h.orig Sun Dec 1 18:51:44 2002
+++ gcc/c-common.h Mon Jan 3 10:17:41 2005
@@ -501,7 +501,10 @@ extern int warn_format_nonliteral;
extern int warn_format_security;
+/* Warn about buffer size mismatches. */
+extern int warn_bounded;
+
/* C/ObjC language option variables. */
@@ -866,7 +869,10 @@ extern void check_function_arguments_rec
void *, tree,
unsigned HOST_WIDE_INT));
extern void check_function_format PARAMS ((int *, tree, tree));
+extern void check_function_bounded PARAMS ((int *, tree, tree));
extern void set_Wformat PARAMS ((int));
+extern tree handle_bounded_attribute PARAMS ((tree *, tree, tree,
+ int, bool *));
extern tree handle_format_attribute PARAMS ((tree *, tree, tree,
int, bool *));
extern tree handle_format_arg_attribute PARAMS ((tree *, tree, tree,