public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/10538] no warning for "int a = a + 1" statements
       [not found] <20030429140600.10538.invi@your.toilet.ch>
@ 2003-08-07  4:24 ` pinskia at physics dot uc dot edu
  2003-08-17  5:06 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ 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=10538


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] 7+ messages in thread

* [Bug c++/10538] no warning for "int a = a + 1" statements
       [not found] <20030429140600.10538.invi@your.toilet.ch>
  2003-08-07  4:24 ` [Bug c++/10538] no warning for "int a = a + 1" statements pinskia at physics dot uc dot edu
@ 2003-08-17  5:06 ` pinskia at gcc dot gnu dot org
  2003-08-17 22:57 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-17  5:06 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=10538



------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-17 05:06 -------
I submitted a patch to fix this: <http://gcc.gnu.org/ml/gcc-patches/2003-08/
msg00952.html>.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/10538] no warning for "int a = a + 1" statements
       [not found] <20030429140600.10538.invi@your.toilet.ch>
  2003-08-07  4:24 ` [Bug c++/10538] no warning for "int a = a + 1" statements pinskia at physics dot uc dot edu
  2003-08-17  5:06 ` pinskia at gcc dot gnu dot org
@ 2003-08-17 22:57 ` pinskia at gcc dot gnu dot org
  2003-08-19 20:29 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-17 22:57 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=10538


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter dot barth at t-online
                   |                            |dot de


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-17 22:57 -------
*** Bug 5284 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/10538] no warning for "int a = a + 1" statements
       [not found] <20030429140600.10538.invi@your.toilet.ch>
                   ` (2 preceding siblings ...)
  2003-08-17 22:57 ` 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)
  6 siblings, 0 replies; 7+ 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=10538



------- Additional Comments From cvs-commit at gcc dot gnu dot org  2003-08-19 20:29 -------
Subject: Bug 10538

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] 7+ messages in thread

* [Bug c++/10538] no warning for "int a = a + 1" statements
       [not found] <20030429140600.10538.invi@your.toilet.ch>
                   ` (3 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:46 ` pinskia at gcc dot gnu dot org
  2004-03-26  5:03 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 7+ 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=10538


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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/10538] no warning for "int a = a + 1" statements
       [not found] <20030429140600.10538.invi@your.toilet.ch>
                   ` (4 preceding siblings ...)
  2003-08-19 20:33 ` pinskia at gcc dot gnu dot org
@ 2003-10-16 21:46 ` pinskia at gcc dot gnu dot org
  2004-03-26  5:03 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-16 21:46 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=10538


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |erickt at andrew dot cmu dot
                   |                            |edu


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-16 21:46 -------
*** Bug 12651 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/10538] no warning for "int a = a + 1" statements
       [not found] <20030429140600.10538.invi@your.toilet.ch>
                   ` (5 preceding siblings ...)
  2003-10-16 21:46 ` pinskia at gcc dot gnu dot org
@ 2004-03-26  5:03 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-26  5:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-03-26 05:03 -------
*** Bug 14739 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anders at kaseorg dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10538


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-03-26  5:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030429140600.10538.invi@your.toilet.ch>
2003-08-07  4:24 ` [Bug c++/10538] no warning for "int a = a + 1" statements pinskia at physics dot uc dot edu
2003-08-17  5:06 ` pinskia at gcc dot gnu dot org
2003-08-17 22:57 ` 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:46 ` pinskia at gcc dot gnu dot org
2004-03-26  5:03 ` 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).