OSDN Git Service

./:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jun 2009 16:35:01 +0000 (16:35 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Jun 2009 16:35:01 +0000 (16:35 +0000)
commit402ba8662b12bb8d9715c0a08a34f39a40472b08
tree025683978bbcbc05c466d6f225a46ab0f8cd980d
parentb559b9e2e4ee465f2bdf3487f1c85ff46aaefd67
./:
* attribs.c (register_attribute): Use CONST_CAST.
* collect2.c (main): Use CONST_CAST2.
(scan_prog_file): Likewise.
* gcc.c (process_command, main): Likewise.
* toplev.c (toplev_main): Likewise.

* c-typeck.c (handle_warn_cast_qual): New static function,
partially broken out of build_c_cast.
(build_c_cast): Call handle_warn_cast_qual.
* doc/invoke.texi (Warning Options): Document new effect of
-Wcast-qual.
./java:
* jcf-io.c (find_class): Use CONST_CAST.
./testsuite:
* gcc.dg/cast-qual-3.c: New testcase.
* g++.dg/warn/Wcast-qual2.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148053 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/ChangeLog
gcc/attribs.c
gcc/c-typeck.c
gcc/collect2.c
gcc/doc/invoke.texi
gcc/gcc.c
gcc/java/ChangeLog
gcc/java/jcf-io.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wcast-qual2.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/cast-qual-3.c [new file with mode: 0644]
gcc/toplev.c