Go to file
Jason Merrill 72954a4f44 c-common.c (handle_warn_unused_result_attribute): New function.
* c-common.c (handle_warn_unused_result_attribute): New function.
	(c_common_attribute_table): Add warn_unused_result.
	(c_expand_expr): Issue warning when result of inlined function
	with warn_unused_result attribute is ignored.
	* calls.c (expand_call): Issue warning when result of function
	with warn_unused_result attribute is ignored.
	* c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
	* expr.c (expr_wfl_stack): Define.
	(expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
	pass const0_rtx as target.  Chain locations into expr_wfl_stack.
	* tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
	bit if inlined function has warn_unused_result attribute.
	* input.h (expr_wfl_stack): Declare.
	* doc/extend.texi: Document warn_unused_result attribute.

	* gcc.dg/attr-warn-unused-result.c: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r71424
2003-09-16 09:58:27 +02:00
boehm-gc * libtool.m4 (LD): Correct powerpc64 host match. 2003-09-09 15:54:39 +09:30
config * config/no-executables.m4: New file. 2003-08-27 19:14:13 +00:00
contrib * gcc_build: Fix handling of -t option. Add -x option. 2003-08-21 18:59:05 +00:00
fastjar
gcc c-common.c (handle_warn_unused_result_attribute): New function. 2003-09-16 09:58:27 +02:00
include Index: include/ChangeLog 2003-09-16 01:51:07 +00:00
INSTALL
intl
libf2c * libtool.m4 (LD): Correct powerpc64 host match. 2003-09-09 15:54:39 +09:30
libffi prep_cif.c (initialize_aggregate): Include tail padding in structure size. 2003-09-12 09:24:40 +09:30
libiberty Index: include/ChangeLog 2003-09-16 01:51:07 +00:00
libjava URLStreamHandler.java (parseURL): If original file ends with "/", so must canonical result. 2003-09-12 01:08:18 +00:00
libobjc * libtool.m4 (LD): Correct powerpc64 host match. 2003-09-09 15:54:39 +09:30
libstdc++-v3 Daily bump. 2003-09-16 00:16:06 +00:00
maintainer-scripts gcc_release (build_sources): Create/update the LAST_UPDATED file in the source directory with information... 2003-08-24 13:28:53 +00:00
zlib * libtool.m4 (LD): Correct powerpc64 host match. 2003-09-09 15:54:39 +09:30
.cvsignore
ABOUT-NLS
ChangeLog * MAINTAINERS: Update my e-mail address. 2003-09-09 20:30:34 +00:00
config-ml.in
config.guess
config.if
config.rpath
config.sub
configure configure: Regenerate. 2003-09-04 18:53:48 -04:00
configure.in configure: Regenerate. 2003-09-04 18:53:48 -04:00
COPYING
COPYING.LIB
install-sh
libtool.m4 * libtool.m4 (LD): Correct powerpc64 host match. 2003-09-09 15:54:39 +09:30
ltcf-c.sh
ltcf-cxx.sh
ltcf-gcj.sh
ltconfig
ltmain.sh
MAINTAINERS * MAINTAINERS: Update my e-mail address. 2003-09-09 20:30:34 +00:00
Makefile.def
Makefile.in
Makefile.tpl
missing
mkdep
mkinstalldirs
move-if-change
README
README.SCO
symlink-tree
ylwrap

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.