public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/5582] warn about using the extension "int x=x;"
[not found] <20020204110603.5582.coola@ngs.ru>
@ 2003-08-07 4:24 ` pinskia at physics dot uc dot edu
2003-08-17 5:08 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-07 4:24 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5582
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at physics dot uc
|dot org |dot edu
Status|NEW |ASSIGNED
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-07 04:24 -------
I am working on a patch.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/5582] warn about using the extension "int x=x;"
[not found] <20020204110603.5582.coola@ngs.ru>
2003-08-07 4:24 ` [Bug c/5582] warn about using the extension "int x=x;" pinskia at physics dot uc dot edu
@ 2003-08-17 5:08 ` pinskia at gcc dot gnu dot org
2003-08-19 20:29 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-17 5:08 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5582
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic, documentation
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-17 05:08 -------
I submitted a patch to fix this only when -pedantic is supplied: <http://gcc.gnu.org/ml/gcc-
patches/2003-08/msg00952.html>. We should document this also. I will submit a patch
to add this documentation later today.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/5582] warn about using the extension "int x=x;"
[not found] <20020204110603.5582.coola@ngs.ru>
2003-08-07 4:24 ` [Bug c/5582] warn about using the extension "int x=x;" pinskia at physics dot uc dot edu
2003-08-17 5:08 ` pinskia at gcc dot gnu dot org
@ 2003-08-19 20:29 ` cvs-commit at gcc dot gnu dot org
2003-08-19 20:33 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-08-19 20:29 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5582
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-08-19 20:29 -------
Subject: Bug 5582
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2003-08-19 20:29:01
Modified files:
gcc : c-common.h c.opt c-opts.c c-lang.c function.c
gcc/objc : objc-lang.c
gcc/doc : invoke.texi
gcc/cp : cp-lang.c
Log message:
PR c++/10538, PR c/5582
ChangeLog:
* langhooks-def.h (lhd_decl_uninit): Declare.
(LANG_HOOKS_DECL_UNINIT): New macro.
(LANG_HOOKS_INITIALIZER): Adjust.
* langhooks.h (struct lang_hooks): Add new field
decl_uninit.
* langhooks.c (lhd_decl_uninit): Define.
* c-common.c (c_decl_uninit_1): New function.
(c_decl_uninit): New function.
(warn_init_self): Define.
* c-common.h (c_decl_uninit): Declare.
(warn_init_self): Declare.
* c.opt: Introduce -Winit-self.
* c-opts.c (c_common_handle_options): Set warn_init_self.
* c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
* objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
* function.c (uninitialized_vars_warning): Call the language hook.
* doc/invoke.texi: Document -Winit-self.
cp/ChangeLog:
* cp/cp-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
testsuite:
* gcc.dg/uninit-D.c: New Test.
* gcc.dg/uninit-E.c: New Test.
* gcc.dg/uninit-F.c: New Test.
* gcc.dg/uninit-G.c: New Test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.h.diff?cvsroot=gcc&r1=1.202&r2=1.203
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c.opt.diff?cvsroot=gcc&r1=1.14&r2=1.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-opts.c.diff?cvsroot=gcc&r1=1.87&r2=1.88
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-lang.c.diff?cvsroot=gcc&r1=1.114&r2=1.115
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/function.c.diff?cvsroot=gcc&r1=1.449&r2=1.450
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/objc-lang.c.diff?cvsroot=gcc&r1=1.37&r2=1.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/invoke.texi.diff?cvsroot=gcc&r1=1.328&r2=1.329
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-lang.c.diff?cvsroot=gcc&r1=1.61&r2=1.62
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/5582] warn about using the extension "int x=x;"
[not found] <20020204110603.5582.coola@ngs.ru>
` (2 preceding siblings ...)
2003-08-19 20:29 ` cvs-commit at gcc dot gnu dot org
@ 2003-08-19 20:33 ` pinskia at gcc dot gnu dot org
2003-10-16 21:47 ` pinskia at gcc dot gnu dot org
2005-10-01 15:40 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-19 20:33 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5582
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-19 20:33 -------
Fixed on the mainline for 3.4 use -Winit-self for the warning.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/5582] warn about using the extension "int x=x;"
[not found] <20020204110603.5582.coola@ngs.ru>
` (3 preceding siblings ...)
2003-08-19 20:33 ` pinskia at gcc dot gnu dot org
@ 2003-10-16 21:47 ` pinskia at gcc dot gnu dot org
2005-10-01 15:40 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-16 21:47 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5582
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |simon dot marshall at misys
| |dot com
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-16 21:47 -------
*** Bug 12153 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/5582] warn about using the extension "int x=x;"
[not found] <20020204110603.5582.coola@ngs.ru>
` (4 preceding siblings ...)
2003-10-16 21:47 ` pinskia at gcc dot gnu dot org
@ 2005-10-01 15:40 ` pinskia at gcc dot gnu dot org
5 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-01 15:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-10-01 15:40 -------
*** Bug 24157 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |gahs at phys dot ksu dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5582
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-10-01 15:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20020204110603.5582.coola@ngs.ru>
2003-08-07 4:24 ` [Bug c/5582] warn about using the extension "int x=x;" pinskia at physics dot uc dot edu
2003-08-17 5:08 ` pinskia at gcc dot gnu dot org
2003-08-19 20:29 ` cvs-commit at gcc dot gnu dot org
2003-08-19 20:33 ` pinskia at gcc dot gnu dot org
2003-10-16 21:47 ` pinskia at gcc dot gnu dot org
2005-10-01 15:40 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).