diff options
author | obrien <obrien@FreeBSD.org> | 2000-02-14 19:39:38 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-02-14 19:39:38 +0800 |
commit | 00261c66b8f8aac0e83423f96cc44ec85a529f0c (patch) | |
tree | 33354bbbe3efe023fe90d266fab06c5d8800f5f0 /lang/gcc33/files/patch-fa | |
parent | 9f4c81715caf06920869c3550ef22b44ba73cf63 (diff) | |
download | freebsd-ports-gnome-00261c66b8f8aac0e83423f96cc44ec85a529f0c.tar.gz freebsd-ports-gnome-00261c66b8f8aac0e83423f96cc44ec85a529f0c.tar.zst freebsd-ports-gnome-00261c66b8f8aac0e83423f96cc44ec85a529f0c.zip |
Upgrade to the 2000-02-07 GCC 2.96 development snapshot.
Diffstat (limited to 'lang/gcc33/files/patch-fa')
-rw-r--r-- | lang/gcc33/files/patch-fa | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/lang/gcc33/files/patch-fa b/lang/gcc33/files/patch-fa index 7f5e0e611ae8..984c773d8c16 100644 --- a/lang/gcc33/files/patch-fa +++ b/lang/gcc33/files/patch-fa @@ -1,15 +1,15 @@ ---- gcc/c-common.c.orig Mon Feb 15 16:40:05 1999 -+++ gcc/c-common.c Tue Mar 30 03:35:22 1999 -@@ -61,7 +61,7 @@ - int, int, int)); - static void init_attributes PROTO((void)); - static void record_function_format PROTO((tree, tree, enum format_type, -- int, int)); -+ int, int, int)); - static void record_international_format PROTO((tree, tree, int)); - - /* Keep a stack of if statements. We record the number of compound -@@ -669,6 +669,7 @@ +--- gcc/c-common.c.orig Mon Jan 24 12:10:00 2000 ++++ gcc/c-common.c Tue Feb 1 02:43:39 2000 +@@ -152,7 +152,7 @@ + int, int, int)); + static void init_attributes PARAMS ((void)); + static void record_function_format PARAMS ((tree, tree, enum format_type, +- int, int)); ++ int, int, int)); + static void record_international_format PARAMS ((tree, tree, int)); + static tree c_find_base_decl PARAMS ((tree)); + static int default_valid_lang_attribute PARAMS ((tree, tree, tree, tree)); +@@ -812,6 +812,7 @@ = TREE_VALUE (TREE_CHAIN (TREE_CHAIN (args))); int format_num; int first_arg_num; @@ -17,8 +17,8 @@ enum format_type format_type; tree argument; int arg_num; -@@ -682,7 +683,7 @@ - +@@ -825,7 +826,7 @@ + if (TREE_CODE (format_type_id) != IDENTIFIER_NODE) { - error ("unrecognized format specifier"); @@ -26,9 +26,9 @@ continue; } else -@@ -690,12 +691,26 @@ - char *p = IDENTIFIER_POINTER (format_type_id); - +@@ -833,12 +834,26 @@ + const char *p = IDENTIFIER_POINTER (format_type_id); + if (!strcmp (p, "printf") || !strcmp (p, "__printf__")) + { + format_type = printf_format_type; @@ -52,8 +52,8 @@ + } else { - error ("`%s' is an unrecognized format function type", p); -@@ -766,7 +781,8 @@ + warning ("`%s' is an unrecognized format function type", p); +@@ -909,7 +924,8 @@ record_function_format (DECL_NAME (decl), DECL_ASSEMBLER_NAME (decl), @@ -63,7 +63,7 @@ break; } -@@ -1010,6 +1026,11 @@ +@@ -1213,6 +1229,11 @@ } format_char_info; static format_char_info print_char_table[] = { @@ -75,7 +75,7 @@ { "di", 0, T_I, T_I, T_I, T_L, T_LL, T_LL, T_ST, "-wp0 +" }, { "oxX", 0, T_UI, T_UI, T_UI, T_UL, T_ULL, T_ULL, T_ST, "-wp0#" }, { "u", 0, T_UI, T_UI, T_UI, T_UL, T_ULL, T_ULL, T_ST, "-wp0" }, -@@ -1070,6 +1091,7 @@ +@@ -1273,6 +1294,7 @@ tree name; /* identifier such as "printf" */ tree assembler_name; /* optional mangled identifier (for C++) */ enum format_type format_type; /* type of format (printf, scanf, etc.) */ @@ -83,7 +83,7 @@ int format_num; /* number of format argument */ int first_arg_num; /* number of first arg (zero for varargs) */ } function_format_info; -@@ -1102,25 +1124,25 @@ +@@ -1305,25 +1327,25 @@ init_function_format_info () { record_function_format (get_identifier ("printf"), NULL_TREE, @@ -119,7 +119,7 @@ record_international_format (get_identifier ("gettext"), NULL_TREE, 1); record_international_format (get_identifier ("dgettext"), NULL_TREE, 2); -@@ -1137,11 +1159,12 @@ +@@ -1340,11 +1362,12 @@ (e.g. for varargs such as vfprintf). */ static void @@ -133,7 +133,7 @@ int format_num; int first_arg_num; { -@@ -1165,6 +1188,7 @@ +@@ -1368,6 +1391,7 @@ } info->format_type = format_type; @@ -141,7 +141,7 @@ info->format_num = format_num; info->first_arg_num = first_arg_num; } -@@ -1314,7 +1338,8 @@ +@@ -1521,7 +1545,8 @@ if (integer_zerop (format_tree)) { @@ -151,7 +151,7 @@ return; } if (TREE_CODE (format_tree) != ADDR_EXPR) -@@ -1485,12 +1510,13 @@ +@@ -1710,12 +1735,13 @@ It will work on most machines, because size_t and int have the same mode. But might as well warn anyway, since it will fail on other machines. */ @@ -166,7 +166,7 @@ } } else -@@ -1535,6 +1561,53 @@ +@@ -1760,6 +1786,53 @@ } } } @@ -220,7 +220,7 @@ aflag = 0; -@@ -1604,7 +1677,8 @@ +@@ -1828,7 +1901,8 @@ switch (info->format_type) { case printf_format_type: |