gcc/libstdc++-v3
Dodji Seketeli 3797cb21ff PR c++/33255 - Support -Wunused-local-typedefs warning
gcc/

	* c-decl.c (lookup_name): Use the new
	maybe_record_typedef_use.
	(pushdecl): Use the new
	record_locally_defined_typedef.
	(store_parm_decls): Allocate cfun->language.
	(finish_function): Use the new maybe_warn_unused_local_typedefs,
	and free cfun->language.
	(c_push_function_context): Allocate cfun->language here only if
	needed.
	(c_pop_function_context): Likewise, mark cfun->language
	for collection only when it should be done.
	* c-common.c (handle_used_attribute): Don't ignore TYPE_DECL
	nodes.
	* c-typeck.c (c_expr_sizeof_type, c_cast_expr): Use the new
	maybe_record_local_typedef_use.

gcc/c-family

	* c-common.h (struct c_language_function::local_typedefs): New
	field.
	(record_locally_defined_typedef, maybe_record_typedef_use)
	(maybe_warn_unused_local_typedefs): Declare new functions.
	* c-common.c (record_locally_defined_typedef)
	(maybe_record_typedef_use)
	(maybe_warn_unused_local_typedefs): Define new functions.
	* c.opt: Declare new -Wunused-local-typedefs flag.

gcc/cp

	* name-lookup.c (pushdecl_maybe_friend_1): Use the new
	record_locally_defined_typedef.
	* decl.c (finish_function): Use the new
	maybe_warn_unused_local_typedefs.
	(grokfield): Use the new record_locally_defined_typedef.
	* parser.c (lookup_name): Use the new maybe_record_typedef_use.

gcc/doc/

	* invoke.texi: Update documentation for -Wunused-local-typedefs.

gcc/testsuite/

	* g++.dg/warn/Wunused-local-typedefs.C: New test file.
	* c-c++-common/Wunused-local-typedefs.c: Likewise.

libstdc++-v3/

	* include/ext/bitmap_allocator.h
	(__detail::__mini_vector::__lower_bound): Remove unused typedef.
	* src/istream.cc (std::operator>>(basic_istream<char>& __in,
	basic_string<char>& __str)): Likewise.
	(std::getline): Likewise.
	* src/valarray.cc (__valarray_product): Likewise.

From-SVN: r178692
2011-09-08 15:54:24 +02:00
..
config error_constants.h: Fix commas. 2011-08-30 08:57:52 +00:00
doc *: Image and image filename changes. 2011-08-15 00:54:18 +00:00
include PR c++/33255 - Support -Wunused-local-typedefs warning 2011-09-08 15:54:24 +02:00
libsupc++ user.cfg.in (PDF_HYPERLINKS): To NO. 2011-08-07 07:27:06 +00:00
po fragment.am (CONFIG_CXXFLAGS): Add -frandom-seed. 2011-07-22 13:52:51 +00:00
python fragment.am (CONFIG_CXXFLAGS): Add -frandom-seed. 2011-07-22 13:52:51 +00:00
scripts make_graph_test_infos.xml: Edit. 2011-08-15 00:51:06 +00:00
src PR c++/33255 - Support -Wunused-local-typedefs warning 2011-09-08 15:54:24 +02:00
testsuite at.cc: Revert to... 2011-09-08 01:24:11 +00:00
acinclude.m4 configure: Regenerated. 2011-08-29 21:57:24 +02:00
aclocal.m4 aclocal.m4: Regenerate. 2011-01-11 16:43:25 +00:00
ChangeLog PR c++/33255 - Support -Wunused-local-typedefs warning 2011-09-08 15:54:24 +02:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010 Rotate ChangeLogs. 2011-01-02 08:22:05 -08:00
config.h.in configure: Regenerated. 2011-08-29 21:57:24 +02:00
configure configure: Regenerated. 2011-08-29 21:57:24 +02:00
configure.ac Handle different versions of Solaris 8 <iso/math_iso.h>, <iso/stdlib_iso.h> 2011-08-29 12:54:55 +00:00
configure.host Handle different versions of Solaris 8 <iso/math_iso.h>, <iso/stdlib_iso.h> 2011-08-29 12:54:55 +00:00
crossconfig.m4 re PR debug/23205 ([C++/unit-at-a-time] stabs debug info omitted for global const variables) 2011-07-18 11:04:18 +00:00
fragment.am fragment.am (CONFIG_CXXFLAGS): Add -frandom-seed. 2011-07-22 13:52:51 +00:00
linkage.m4
Makefile.am run_doxygen: Allow doxygen 1.7.1 again. 2010-12-31 22:20:22 +00:00
Makefile.in fragment.am (CONFIG_CXXFLAGS): Add -frandom-seed. 2011-07-22 13:52:51 +00:00
README

file: libstdc++-v3/README

New users may wish to point their web browsers to the file
index.html in the 'doc/html' subdirectory.  It contains brief
building instructions and notes on how to configure the library in
interesting ways.