summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-18 23:50:58 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-18 23:50:58 +0000
commit3f78a936c0f7ae644a1f90dc78a0e2bb6c57ec15 (patch)
tree833e6694e53e2262c29a25430e076b0022d4b539 /gcc/c-common.h
parentef251760a3c204ac6e1e37bff3043fccb2fe5f22 (diff)
downloadgcc-3f78a936c0f7ae644a1f90dc78a0e2bb6c57ec15.tar.gz
* c-common.c (STD_C9L, ADJ_STD): Define.
(printf_length_specs, scanf_length_specs): Mark "ll" as standard STD_C9L. (T99_LL): Rename to T9L_LL. (T99_ULL): Rename to T9L_ULL. (print_char_table, scan_char_table): Use T9L_LL and T9L_ULL instead of T99_LL and T99_ULL. (check_format_info_main): Use ADJ_STD on all format standard versions being compared. * c-common.h: Declare warn_long_long. * c-tree.h: Don't declare warn_long_long. cp: * cp-tree.h: Don't declare warn_long_long. testsuite: * gcc.dg/format-warnll-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38369 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 437d95dcc3c..b31499ff7ea 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -416,6 +416,11 @@ extern int warn_parentheses;
extern int warn_conversion;
+/* Nonzero means warn about usage of long long,
+ when `-pedantic' and not C99. */
+
+extern int warn_long_long;
+
/* C types are partitioned into three subsets: object, function, and
incomplete types. */
#define C_TYPE_OBJECT_P(type) \