gcc/gcc ChangeLog c-decl.c calls.c common.opt ...

dj@gcc.gnu.org dj@gcc.gnu.org
Tue May 3 17:56:00 GMT 2005


CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dj@gcc.gnu.org	2005-05-03 17:55:58

Modified files:
	gcc            : ChangeLog c-decl.c calls.c common.opt 
	                 diagnostic.c diagnostic.h function.c opts.c 
	                 opts.h toplev.c 
	gcc/doc        : invoke.texi 

Log message:
	* c-decl.c (store_parm_decls_oldstyle): Let diagnostic machinery
	decide if the warning will be printed.
	* calls.c (expand_call): Likewise.
	* function.c (init-function_start): Likewise.
	
	* common.opt (-fdiagnostics-show-option): New.
	* opts.c (option_enabled): Accept the option index instead of a
	pointer to the option descriptor.
	* opts.h (option_enabled): Likewise.
	* toplev.c (print_switch_values): Pass option index, not option
	descriptor.
	* diagnostic.h (diagnostic_info): Add option_index.
	* diagnostic.c: Include opts.h.
	(diagnostic_set_info): Initialize option_index.
	(diagnostic_report_diagnostic): Amend option name if appropriate.
	(warning): Check to see if the specified warning is enabled.
	Store option index.
	* doc/invoke.texi (-fdiagnostics-show-options): Document.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8581&r2=2.8582
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&r1=1.651&r2=1.652
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/calls.c.diff?cvsroot=gcc&r1=1.387&r2=1.388
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/common.opt.diff?cvsroot=gcc&r1=1.68&r2=1.69
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/diagnostic.c.diff?cvsroot=gcc&r1=1.149&r2=1.150
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/diagnostic.h.diff?cvsroot=gcc&r1=1.72&r2=1.73
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/function.c.diff?cvsroot=gcc&r1=1.618&r2=1.619
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/opts.c.diff?cvsroot=gcc&r1=1.105&r2=1.106
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/opts.h.diff?cvsroot=gcc&r1=1.20&r2=1.21
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/toplev.c.diff?cvsroot=gcc&r1=1.953&r2=1.954
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/invoke.texi.diff?cvsroot=gcc&r1=1.611&r2=1.612



More information about the Gcc-cvs mailing list