gcc/libstdc++-v3/include
Dodji Seketeli 650dc14a73 PR c++/53322 - -Wunused-local-typedefs is not enabled by Wall or Wunused
As the audit trail of this shows, -Wunused-local-typedefs is not
turned on by -Wunused after all.  Sigh.

Now that we have the EnabledBy construct for the *.opt files, it's
more precise and concise to use that to make -Wunused-local-typedefs
be triggered by -Wunused.

I have changed the gcc+.dg/warn/Wunused-local-typedefs.C test case to
make it use -Wunused instead of -Wunused-local-typedefs.  I had to
adjust it to avoid the warnings due to the other -W* options triggered
by -Wunused there.

While testing the compiler, it turned out that some local typedefs
were not being used when the experimental "Concepts" support is turned
off, in the libstdc++ test suite.  I also had to remove some obvious
useless local typedef usage in the fortran front-end.  Fixed thus.

Bootstrapped and tested on x86_64-unknown-linux-gnu against trunk.

gcc/c-family/

	PR c++/53322
	* c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).

libstdc++-v3/

	PR c++/53322
	* include/bits/stl_algobase.h (lower_bound)
	(lexicographical_compare): Do not declare unused local typedefs
	here when Concepts are turned off.

gcc/fortran/

	PR c++/53322
	* f95-lang.c (gfc_init_builtin_functions): Remove the unused
	typedef builtin_type.

gcc/testsuite/

	PR c++/53322
	* g++.dg/warn/Wunused-local-typedefs.C: Adjust to use -Wunused
	instead of -Wunused-local-typedefs.

From-SVN: r187757
2012-05-22 05:50:26 +02:00
..
backward binders.h: Fix examples in doxygen comments and suggest using std::bind instead. 2011-11-20 21:14:56 +00:00
bits PR c++/53322 - -Wunused-local-typedefs is not enabled by Wall or Wunused 2012-05-22 05:50:26 +02:00
c PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
c_compatibility PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
c_global Remove obsolete Solaris 8 support 2012-03-14 17:08:03 +00:00
c_std cstdio: Remove extraneous extern. 2012-03-02 16:44:50 +00:00
debug re PR libstdc++/53263 (priority_queue is very slow if -D_GLIBCXX_DEBUG is used) 2012-05-11 19:21:31 +00:00
decimal PR libstdc++/36104 part four 2011-01-30 22:39:36 +00:00
ext re PR libstdc++/53339 (unordered_map::iterator requires Value to be complete type) 2012-05-15 10:00:19 +00:00
parallel PR libstdc++/51798 continued 2012-02-13 13:30:31 -08:00
precompiled stdc++.h: Add cstdalign. 2011-11-08 01:02:06 +00:00
profile PR libstdc++/52317 (cont) 2012-02-21 21:30:26 +00:00
std random.tcc (seed_seq::generate): Cast max() operands to size_t to ensure a template match. 2012-05-10 16:32:47 -04:00
tr1 Remove obsolete Solaris 8 support 2012-03-14 17:08:03 +00:00
tr2 type_traits (typelist): To __reflection_typelist. 2012-03-02 05:54:24 +00:00
Makefile.am [multiple changes] 2012-03-19 23:48:16 +00:00
Makefile.in [multiple changes] 2012-03-19 23:48:16 +00:00