aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorVladimir N. Makarov <vmakarov@cygnus.com>1998-07-08 12:16:05 +0000
committerVladimir Makarov <vmakarov@gcc.gnu.org>1998-07-08 12:16:05 +0000
commit795add948b87c51500c306fd95acf3388787e786 (patch)
tree1a09517983f5d1a0757410a58f92ae55ac9a33a9 /gcc/cp/decl.c
parent37785a19fde91819c6f441c49a7e56c5f1ae638c (diff)
downloadgcc-795add948b87c51500c306fd95acf3388787e786.zip
gcc-795add948b87c51500c306fd95acf3388787e786.tar.gz
gcc-795add948b87c51500c306fd95acf3388787e786.tar.bz2
toplev.c (lang_options): Add -Wlong-long, -Wno-long-long options.
* toplev.c (lang_options): Add -Wlong-long, -Wno-long-long options. * c-decl.c (warn_long_long): Define. (c_decode_option): Parse -Wlong-long, -Wno-long-long options. (grokdeclarator): Add flag `warn_long_long' as guard for warning "ANSI C does not support `long long'". * invoke.texi: Add description of options -Wlong-long, -Wno-long-long. * gcc.1: The same as above. * cp-tree.h (warn_long_long): Define. * decl.c (grokdeclarator): Add flag `warn_long_long' as guard for warning "ANSI C++ does not support `long long'". * decl2.c (warn_long_long): Define. (lang_decode_option): Parse -Wlong-long, -Wno-long-long options. From-SVN: r21007
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index f6b0cfe..d8522e0 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -8436,7 +8436,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
{
if (i == (int) RID_LONG && RIDBIT_SETP (i, specbits))
{
- if (pedantic && ! in_system_header)
+ if (pedantic && ! in_system_header && warn_long_long)
pedwarn ("ANSI C++ does not support `long long'");
if (longlong)
error ("`long long long' is too long for GCC");