From 3f78a936c0f7ae644a1f90dc78a0e2bb6c57ec15 Mon Sep 17 00:00:00 2001 From: jsm28 Date: Mon, 18 Dec 2000 23:50:58 +0000 Subject: * 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 --- gcc/c-common.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/c-common.h') 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) \ -- cgit v1.2.1