From fef1de5d11978712e2e74c0d8d057d1c7e05bbfa Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sat, 2 Dec 2000 10:13:49 +0000 Subject: [PATCH] * cppexp.c (parse_number): Update diagnostic test. From-SVN: r37947 --- gcc/ChangeLog | 4 ++++ gcc/cppexp.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ee903e9bae4..7acf966c368 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-12-02 Neil Booth + + * cppexp.c (parse_number): Update diagnostic test. + 2000-12-02 Bernd Schmidt * reload1.c (free_for_value_p): New function, frontend to diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 882908fda44..f7d17ed9422 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -205,8 +205,9 @@ parse_number (pfile, tok) if (CPP_WTRADITIONAL (pfile) && sufftab[i].u) cpp_warning (pfile, "traditional C rejects the `U' suffix"); - if (sufftab[i].l == 2 && !CPP_OPTION (pfile, extended_numbers)) - SYNTAX_ERROR ("too many 'l' suffixes in integer constant"); + if (sufftab[i].l == 2 && CPP_OPTION (pfile, pedantic) + && ! CPP_OPTION (pfile, c99)) + cpp_pedwarn (pfile, "too many 'l' suffixes in integer constant"); } if (base <= largest_digit) -- 2.30.2