public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13863] New: [tree-ssa] gcc.dg/uninit-D.c fails
@ 2004-01-26  5:15 pinskia at gcc dot gnu dot org
  2004-01-26  5:16 ` [Bug c/13863] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-26  5:15 UTC (permalink / raw)
  To: gcc-bugs

The test gcc.dg/uninit-D.c fails on the tree-ssa because the tree-ssa warns about
initializing variable with self.

-- 
           Summary: [tree-ssa] gcc.dg/uninit-D.c fails
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: pinskia at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c/13863] [tree-ssa] gcc.dg/uninit-D.c fails
  2004-01-26  5:15 [Bug c/13863] New: [tree-ssa] gcc.dg/uninit-D.c fails pinskia at gcc dot gnu dot org
@ 2004-01-26  5:16 ` pinskia at gcc dot gnu dot org
  2004-01-31  3:42 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-26  5:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-26 05:16 -------
I will take care of it, basically my idea is to mark the variable somehow as 
initialized when converting between the language trees to gimple.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-26 05:16:26
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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

* [Bug c/13863] [tree-ssa] gcc.dg/uninit-D.c fails
  2004-01-26  5:15 [Bug c/13863] New: [tree-ssa] gcc.dg/uninit-D.c fails pinskia at gcc dot gnu dot org
  2004-01-26  5:16 ` [Bug c/13863] " pinskia at gcc dot gnu dot org
@ 2004-01-31  3:42 ` pinskia at gcc dot gnu dot org
  2004-02-06  5:26 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-31  3:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-31 03:42 -------
When I do this, I can remove the language hooks (which I had forgot to document).

-- 


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


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

* [Bug c/13863] [tree-ssa] gcc.dg/uninit-D.c fails
  2004-01-26  5:15 [Bug c/13863] New: [tree-ssa] gcc.dg/uninit-D.c fails pinskia at gcc dot gnu dot org
  2004-01-26  5:16 ` [Bug c/13863] " pinskia at gcc dot gnu dot org
  2004-01-31  3:42 ` pinskia at gcc dot gnu dot org
@ 2004-02-06  5:26 ` pinskia at gcc dot gnu dot org
  2004-02-06  6:43 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-06  5:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-06 05:26 -------
Using TREE_NO_WARNING should fix it in the front-end trees to gimplifier phase.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2004-01-26 05:16:26         |2004-02-06 05:26:47
               date|                            |


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


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

* [Bug c/13863] [tree-ssa] gcc.dg/uninit-D.c fails
  2004-01-26  5:15 [Bug c/13863] New: [tree-ssa] gcc.dg/uninit-D.c fails pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-02-06  5:26 ` pinskia at gcc dot gnu dot org
@ 2004-02-06  6:43 ` pinskia at gcc dot gnu dot org
  2004-02-06 15:20 ` cvs-commit at gcc dot gnu dot org
  2004-02-06 15:23 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-06  6:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-06 06:43 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-02/msg00530.html>, I should say I think this 
will work, I have not tested it yet.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


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


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

* [Bug c/13863] [tree-ssa] gcc.dg/uninit-D.c fails
  2004-01-26  5:15 [Bug c/13863] New: [tree-ssa] gcc.dg/uninit-D.c fails pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-02-06  6:43 ` pinskia at gcc dot gnu dot org
@ 2004-02-06 15:20 ` cvs-commit at gcc dot gnu dot org
  2004-02-06 15:23 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-02-06 15:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-02-06 15:20 -------
Subject: Bug 13863

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	tree-ssa-20020619-branch
Changes by:	pinskia@gcc.gnu.org	2004-02-06 15:20:31

Modified files:
	gcc            : ChangeLog.tree-ssa c-common.c c-common.h 
	                 c-lang.c c-simplify.c function.c 
	                 langhooks-def.h langhooks.c langhooks.h 
	gcc/cp         : ChangeLog.tree-ssa cp-lang.c 
	gcc/objc       : objc-lang.c 

Log message:
	2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c/13863
	* c-common.c (c_decl_uninit_1): Remove.
	(c_decl_uninit): Remove.
	* c-common.h (c_decl_uninit): Remove prototype.
	* c-lang.c (LANG_HOOKS_DECL_UNINIT): Delete.
	* objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Delete.
	* c-simplify.c (gimplify_decl_stmt): Set TREE_NO_WARNING
	on the decl where the initial is itself.
	* function.c (uninitialized_vars_warning): Remove old comment
	and check for DECL_INITIAL, replace with a check of TREE_NO_WARNING
	and do not call the langhook.
	* langhooks-def.h (LANG_HOOKS_DECL_UNINIT): Remove.
	(LANG_HOOKS_INITIALIZER): Remove usage of LANG_HOOKS_DECL_UNINIT.
	* langhooks.c (lhd_decl_uninit): Remove.
	* langhooks.h (lhd_decl_uninit): Remove prototype.
	
	2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c/13863
	* cp-lang.c (LANG_HOOKS_DECL_UNINIT): Remove.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.1159&r2=1.1.2.1160
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.344.2.59&r2=1.344.2.60
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.141.2.45&r2=1.141.2.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-lang.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.94.2.17&r2=1.94.2.18
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-simplify.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.4.91&r2=1.1.4.92
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/function.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.374.2.38&r2=1.374.2.39
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks-def.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.34.2.27&r2=1.34.2.28
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.31.2.21&r2=1.31.2.22
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/langhooks.h.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.42.2.28&r2=1.42.2.29
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.tree-ssa.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.1.2.68&r2=1.1.2.69
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-lang.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.36.2.28&r2=1.36.2.29
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/objc-lang.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.24.2.13&r2=1.24.2.14



-- 


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


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

* [Bug c/13863] [tree-ssa] gcc.dg/uninit-D.c fails
  2004-01-26  5:15 [Bug c/13863] New: [tree-ssa] gcc.dg/uninit-D.c fails pinskia at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2004-02-06 15:20 ` cvs-commit at gcc dot gnu dot org
@ 2004-02-06 15:23 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-06 15:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-02-06 15:23 -------
Fixed by the patch, on to PR 13127.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2004-02-06 15:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-26  5:15 [Bug c/13863] New: [tree-ssa] gcc.dg/uninit-D.c fails pinskia at gcc dot gnu dot org
2004-01-26  5:16 ` [Bug c/13863] " pinskia at gcc dot gnu dot org
2004-01-31  3:42 ` pinskia at gcc dot gnu dot org
2004-02-06  5:26 ` pinskia at gcc dot gnu dot org
2004-02-06  6:43 ` pinskia at gcc dot gnu dot org
2004-02-06 15:20 ` cvs-commit at gcc dot gnu dot org
2004-02-06 15:23 ` 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).