gcc/libstdc++-v3
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
..
config Update sparc-linux-gnu libstdc++ ABI baseline. 2012-03-23 11:29:39 -07:00
doc faq.xml: Update outdated allocator documentation. 2012-05-03 00:20:38 +01:00
include PR c++/53322 - -Wunused-local-typedefs is not enabled by Wall or Wunused 2012-05-22 05:50:26 +02:00
libsupc++ re PR libstdc++/52689 (static linking with libstdc++ fails) 2012-03-29 06:14:32 +00:00
po re PR libstdc++/47058 ("--enable-maintainer-mode --disable-werror" wrongly upgrades warnings to errors in libstdc++) 2012-02-17 20:26:32 +00:00
python unordered_map.h (__unordered_map): Remove. 2012-04-13 00:33:10 +00:00
scripts testsuite_flags.in (cxxflags): Remove -ftrack-macro-expansion=0. 2012-05-03 20:23:42 +00:00
src forward_list (forward_list::splice_after): Check allocators are equal. 2012-04-22 14:27:16 +01:00
testsuite 9780-2.cc: Avoid -Wall warnings. 2012-05-21 23:40:55 +00:00
ChangeLog PR c++/53322 - -Wunused-local-typedefs is not enabled by Wall or Wunused 2012-05-22 05:50:26 +02:00
ChangeLog-1998 Move entries for 1998 and 1999 out of ChangeLog-2000 and into new 2005-05-24 23:20:39 +00:00
ChangeLog-1999 ChangeLog: Remove spurious white spaces and tabs. 2009-12-04 16:29:26 +00:00
ChangeLog-2000 ChangeLog: Remove spurious white spaces and tabs. 2009-12-04 16:29:26 +00:00
ChangeLog-2001
ChangeLog-2002 ChangeLog: Remove spurious white spaces and tabs. 2009-12-04 16:29:26 +00:00
ChangeLog-2003 ChangeLog: Remove spurious white spaces and tabs. 2009-12-04 16:29:26 +00:00
ChangeLog-2004 ChangeLog: Remove spurious white spaces and tabs. 2009-12-04 16:29:26 +00:00
ChangeLog-2005 ChangeLog: Remove spurious white spaces and tabs. 2009-12-04 16:29:26 +00:00
ChangeLog-2006 ChangeLog: Remove spurious white spaces and tabs. 2009-12-04 16:29:26 +00:00
ChangeLog-2007 ChangeLog: Remove spurious white spaces and tabs. 2009-12-04 16:29:26 +00:00
ChangeLog-2008 2009-04-13 Paolo Carlini <paolo.carlini@oracle.com> 2009-04-13 14:41:54 +00:00
ChangeLog-2009 Move 2009 ChangeLog to ChangeLog-2009. 2010-01-01 09:08:32 -08:00
ChangeLog-2010 Rotate ChangeLogs. 2011-01-02 08:22:05 -08:00
ChangeLog-2011 Roll ChangeLog file, move 2012 entries in the new ChangeLog. 2012-01-05 20:49:15 +00:00
Makefile.am [multiple changes] 2012-01-23 23:12:01 +00:00
Makefile.in re PR libstdc++/47058 ("--enable-maintainer-mode --disable-werror" wrongly upgrades warnings to errors in libstdc++) 2012-02-17 20:26:32 +00:00
README mainpage.html: Add in corrected links. 2008-02-12 02:10:57 +00:00
acinclude.m4 re PR libstdc++/52839 (double free or corruption running tr1/.../default_weaktoshared.exe) 2012-04-14 22:54:43 +09:30
aclocal.m4 aclocal.m4: Regenerate. 2011-01-11 16:43:25 +00:00
config.h.in Remove obsolete Solaris 8 support 2012-03-14 17:08:03 +00:00
configure Regenerate configure files for libtool.m4 change 2012-05-16 15:11:18 -07:00
configure.ac Remove obsolete Solaris 8 support 2012-03-14 17:08:03 +00:00
configure.host Remove obsolete Solaris 8 support 2012-03-14 17:08:03 +00:00
crossconfig.m4 crossconfig.m4: Since we know that all TPF builds are cross- builds and cannot run... 2012-05-02 15:34:31 -04:00
fragment.am re PR libstdc++/47058 ("--enable-maintainer-mode --disable-werror" wrongly upgrades warnings to errors in libstdc++) 2012-02-17 20:26:32 +00:00
linkage.m4 re PR libstdc++/32666 (FAIL: abi_check hppa) 2009-01-15 20:02:11 +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.