Go to file
Jakub Jelinek 6f9fdf4db2 PR c/4475, c++/3780:
* c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
	* c-common.h (SWITCH_TYPE): Define.
	* c-typeck.c (c_start_case): Set SWITCH_TYPE.
	* stmt.c (all_cases_count): Set lastval to thisval at end of loop.
	Rename spareness variable to sparseness.
	(expand_end_case_type): Renamed from expand_end_case, use orig_type
	if non-NULL instead of TREE_TYPE (orig_index).
	* tree.h (expand_end_case_type): Renamed from expand_end_case.
	(expand_end_case): Define using expand_end_case_type.
	* c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
	to expand_end_case_type.
	* doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.

	* semantics.c (begin_switch_stmt): Clear SWITCH_TYPE.
	(finish_switch_cond): Set SWITCH_TYPE.

	* gcc.dg/Wswitch.c: Fix typos.  Don't return unconditionally
	before all tests.  Move warning one line above to match where it
	C frontend emits.
	* gcc.dg/Wswitch-2.c: New test.
	* g++.dg/warn/Wswitch-1.C: New test.
	* g++.dg/warn/Wswitch-2.C: New test.

From-SVN: r49497
2002-02-04 23:05:15 +01:00
boehm-gc 2002-02-01 Adam Megacz <adam@xwt.org> 2002-02-02 04:23:13 +00:00
config acinclude.m4: Fix spelling error of "separate" as "seperate". 2001-10-07 19:02:46 +01:00
contrib Contribute regression tester scripts 2002-02-02 05:23:34 +00:00
fastjar jartool.c (main): NULL-terminate new_argv. 2002-01-31 00:52:16 +00:00
gcc PR c/4475, c++/3780: 2002-02-04 23:05:15 +01:00
include minor typo 2002-02-03 08:10:29 -05:00
INSTALL README: Update wrt. 2001-06-13 14:51:33 +00:00
libchill re PR other/5299 (then -> than fixes) 2002-01-11 22:14:28 +00:00
libf2c Daily bump. 2002-02-02 08:16:46 +00:00
libffi Configure changes to enable cross compiling. 2002-01-31 22:25:31 +00:00
libiberty cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2. 2002-02-02 20:00:36 -08:00
libjava * Makefile.in: Rebuilt. 2002-02-02 21:14:29 +00:00
libobjc Fixed bug in loading of categories under certain special circumstances 2001-12-17 17:23:09 +00:00
libstdc++-v3 locale_facets.tcc (money_get::do_get(string)): Deal correctly with !(__io.flags() & ios_base::showbase) for case... 2002-02-04 19:51:32 +00:00
maintainer-scripts snapshot-README, [...]: Use expressions such as @DATE@ rather than hardcoded dates. 2002-01-29 14:08:04 +00:00
zlib re PR bootstrap/3281 (Installation failure (mkinstalldirs)) 2001-07-03 22:29:32 +00:00
.cvsignore gcc_update: Dump timestamp in LAST_UPDATED. 2001-07-26 23:00:45 -07:00
ChangeLog Contribute regression tester scripts 2002-02-02 05:23:34 +00:00
config-ml.in config-ml.in (powerpc-*-* | rs6000-*-*): Allow aix64 and pthread multilibs to be disabled. 2001-06-12 22:12:07 -04:00
config.guess config.guess: Import from master sources, rev 1.225. 2002-01-16 12:34:20 -08:00
config.if * config.if: Assume enable_libstdcxx_v3 is defined. 2001-02-05 11:02:20 +00:00
config.sub config.guess: Import from master sources, rev 1.225. 2002-01-16 12:34:20 -08:00
configure * configure, configure.in: Use temp file for long sed commands. 2001-12-05 07:40:39 -05:00
configure.in configure.in (*-*-netbsd*): New. 2002-01-27 02:41:37 +00:00
COPYING COPYING: Update to current ftp://ftp.gnu.org/pub/gnu/Licenses/COPYING-2.0 (fixes... 2000-12-18 21:47:20 +00:00
COPYING.LIB COPYING.LIB: Update to LGPL 2.1 from the FSF. 2001-01-29 13:32:47 +00:00
install-sh * install-sh: Use _inst.$$_ for temp file name. 2002-01-25 18:42:28 -05:00
libtool.m4 ltconfig, [...]: Upgraded to libtool 1.4a 1.641.2.254. 2001-05-20 18:55:59 +00:00
ltcf-c.sh backport: ltcf-c.sh: Use $objext, not $ac_objext. 2001-09-01 00:47:19 +00:00
ltcf-cxx.sh backport: ltcf-c.sh: Use $objext, not $ac_objext. 2001-09-01 00:47:19 +00:00
ltcf-gcj.sh backport: ltcf-c.sh: Use $objext, not $ac_objext. 2001-09-01 00:47:19 +00:00
ltconfig backport: ltcf-c.sh: Use $objext, not $ac_objext. 2001-09-01 00:47:19 +00:00
ltmain.sh backport: ltcf-c.sh: Use $objext, not $ac_objext. 2001-09-01 00:47:19 +00:00
MAINTAINERS Contribute regression tester scripts 2002-02-02 05:23:34 +00:00
Makefile.in Makefile.in (all-fastjar): Also depend on all-libiberty. 2002-01-17 17:15:47 -08:00
missing merge with /cvs/src 2000-07-22 04:08:22 -04:00
mkdep merge with /cvs/src 2000-07-22 04:08:22 -04:00
mkinstalldirs Initial revision 1997-08-21 18:57:35 -04:00
move-if-change FSF address fix in copyright header. 1999-01-11 07:12:18 -07:00
README * README: Remove version number. 2001-06-13 19:48:09 +01:00
symlink-tree Makefile.in: handle DOS-style absolute paths. 2000-12-09 11:06:19 -05:00
ylwrap ylwrap: Change absolute path checks to check for DOS style path names. 1998-10-08 17:26:54 -06:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the file COPYING
for copying permission.  The manuals, and some of the runtime
libraries, are under different terms; see the individual source files
for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs.html for how to report bugs usefully.