Skip to content
Snippets Groups Projects
Commit 67165eb3 authored by Ian Lance Taylor's avatar Ian Lance Taylor Committed by Ian Lance Taylor
Browse files

attribs.c (register_attribute): Use CONST_CAST.

./:	* 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.

From-SVN: r148053
parent e74fe492
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment