aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorJoseph Myers <jsm28@cam.ac.uk>2000-08-21 15:30:38 +0100
committerJoseph Myers <jsm28@gcc.gnu.org>2000-08-21 15:30:38 +0100
commit93e2382f2cf48b874a5f2ff6359f134878498b69 (patch)
treecbd1a1410505f0820a83aa92687d31f4e159e3d8 /gcc/c-common.h
parentf3d360aad1dbc188c0f0bbe7d44a32bdb20cd62c (diff)
downloadgcc-93e2382f2cf48b874a5f2ff6359f134878498b69.zip
gcc-93e2382f2cf48b874a5f2ff6359f134878498b69.tar.gz
gcc-93e2382f2cf48b874a5f2ff6359f134878498b69.tar.bz2
c-tree.h (flag_hosted): Move declaration from here...
* c-tree.h (flag_hosted): Move declaration from here... * c-common.h (flag_hosted): ... to here. (flag_noniso_default_format_attributes): New declaration. * c-decl.c (flag_noniso_default_format_attributes): New variable. (c_decode_option): Set it appropriately for options choosing language standard variant. * c-common.c (init_function_format_info): Only provide default format attributes if flag_hosted. Only provide the gettext formats if flag_noniso_default_format_attributes. Update comments. (check_format_info): Disable treatment of %a as a scanf flag in C99 mode. cp: * decl.c (flag_hosted, flag_noniso_default_format_attributes): New variables. * decl2.c (lang_decode_option): Disable gettext attributes for -ansi. From-SVN: r35843
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 50823df..0fc84a5 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -195,6 +195,15 @@ extern int flag_isoc99;
extern int flag_digraphs;
+/* Nonzero means environment is hosted (i.e., not freestanding) */
+
+extern int flag_hosted;
+
+/* Nonzero means add default format_arg attributes for functions not
+ in ISO C. */
+
+extern int flag_noniso_default_format_attributes;
+
/* Nonzero means warn about suggesting putting in ()'s. */
extern int warn_parentheses;