]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/Makefile.in
gcc:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Jan 2006 03:30:47 +0000 (03:30 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Jan 2006 03:30:47 +0000 (03:30 +0000)
commit1d7525088416d1e29abc78ed78cf09ed2cb13782
treed4a553c734fb691a872f7a7a3de2bf60d8a30c00
parent6614ba2d0669c07cf4ca63d81a8201d235e38bee
gcc:
* c.opt: Add -W(no-)overlength-strings.
* doc/invoke.texi: Document it.
* c-opts.c (c_common_handle_option): -pedantic implies
-Woverlength-strings, if not explicitly disabled already.
(c_common_post_options): -Woverlength-strings defaults to off, and
is always off for C++.
* c-common.c (fix_string_type): Issue warning about strings longer
than is portable only if warn_overlength_strings.  Rearrange code
a little for clarity.
* configure.in: Check for -Wno-overlength-strings as well before
enabling -pedantic in stage 1.
* Makefile.in (STRICT2_WARN): Add -Wno-overlength-strings.
(gcc.o-warn, insn-automata.o-warn, build/gencondmd.o-warn): Delete.

* genconditions.c (write_header, write_one_condition)
(write_conditions, write_writer): Consolidate very long strings
that were broken up to fit in C89 portable limit.  Don't use
printf when fputs will do.

gcc/testsuite:
* gcc.dg/Woverlength-strings.c
* gcc.dg/Woverlength-strings-pedantic-c89.c
* gcc.dg/Woverlength-strings-pedantic-c89-no.c
* gcc.dg/Woverlength-strings-pedantic-c99.c
* gcc.dg/Woverlength-strings-pedantic-c99-no.c: New tests.

==================================================================

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110360 138bc75d-0d04-0410-961f-82ee72b054a4
15 files changed:
gcc/ChangeLog
gcc/Makefile.in
gcc/c-common.c
gcc/c-opts.c
gcc/c.opt
gcc/configure
gcc/configure.ac
gcc/doc/invoke.texi
gcc/genconditions.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c89-no.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c89.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c99-no.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Woverlength-strings-pedantic-c99.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Woverlength-strings.c [new file with mode: 0644]