This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]