This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Move printf and fprintf builtins to middle-end.
- From: Roger Sayle <roger at eyesopen dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 20 Jul 2003 09:24:52 -0600 (MDT)
- Subject: Re: [PATCH] Move printf and fprintf builtins to middle-end.
On 20 Jul 2003, Gabriel Dos Reis wrote:
> Roger Sayle <roger@eyesopen.com> writes:
> | Another minor difference is that the fix_string_type function that was
> | originally used would generate a warning message if the string literal
> | was longer than that safely allowed by the C/C++ standards.
>
> C++ standard does not impose any upper bound on string literal length.
Indeed. I stand corrected, the pedwarn in c-common.c's fix_string_type
is guarded by "!c_dialect_cxx()". My apologies for any confusion.
We'd only generate bogus warnings in the C and Objective-C front-ends.
Roger
--