public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/13748] New: [tree-ssa] ICE for gcc.dg/20031222-1.c
@ 2004-01-19 21:21 steven at gcc dot gnu dot org
  2004-01-19 22:20 ` [Bug c/13748] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: steven at gcc dot gnu dot org @ 2004-01-19 21:21 UTC (permalink / raw)
  To: gcc-bugs

$ ../cc1 20031222-1.c -std=c99 
 f 
 
20031222-1.c: In function `f': 
20031222-1.c:12: error: parse error before "int" 
20031222-1.c: At top level: 
20031222-1.c:13: internal compiler error: in cgraph_expand_function, at 
cgraphunit.c:633 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
$ 
 
Also happens at -O*. 
 
Starting program: /home/steven/devel/ssabuild/gcc/cc1 -std=c99 20031222-1.c 
 f 
 
20031222-1.c: In function `f': 
20031222-1.c:12: error: parse error before "int" 
 
Breakpoint 2, fancy_abort (file=0x84a9f80 "../../tree-ssa/gcc/cgraphunit.c", 
line=1075848328, 
    function=0x84a9f80 "../../tree-ssa/gcc/cgraphunit.c") at ../../tree-ssa/
gcc/diagnostic.c:584 
584       internal_error ("in %s, at %s:%d", function, trim_filename (file), 
line); 
(gdb) up 
#1  0x0839d643 in cgraph_expand_function (node=0x40202488) at ../../tree-ssa/
gcc/cgraphunit.c:633 
633         abort (); 
(gdb) l 
628          via lang_expand_decl_stmt.  */ 
629       (*lang_hooks.callgraph.expand_function) (decl); 
630 
631       /* Make sure that BE didn't gave up on compiling.  */ 
632       if (!TREE_ASM_WRITTEN (node->decl)) 
633         abort (); 
634 
635       current_function_decl = NULL; 
636       if (DECL_SAVED_TREE (node->decl) 
637           && !cgraph_preserve_function_body_p (node->decl)) 
(gdb) bt 
#0  fancy_abort (file=0x84a9f80 "../../tree-ssa/gcc/cgraphunit.c", 
line=1075848328, 
    function=0x84a9f80 "../../tree-ssa/gcc/cgraphunit.c") at ../../tree-ssa/
gcc/diagnostic.c:584 
#1  0x0839d643 in cgraph_expand_function (node=0x40202488) at ../../tree-ssa/
gcc/cgraphunit.c:633 
#2  0x0839d6c3 in cgraph_assemble_pending_functions () at ../../tree-ssa/gcc/
cgraphunit.c:143 
#3  0x0839dcda in cgraph_finalize_function (decl=0x40200d24, nested=false) 
    at ../../tree-ssa/gcc/cgraphunit.c:222 
#4  0x08063c99 in finish_function () at ../../tree-ssa/gcc/c-decl.c:6209 
#5  0x0804bcc3 in yyparse () at c-parse.y:349 
#6  0x08051d6b in c_parse_file () at c-parse.y:2839 
#7  0x0809443b in c_common_parse_file (set_yydebug=139108224) at ../../
tree-ssa/gcc/c-opts.c:1207 
#8  0x0834d8ad in toplev_main (argc=139108224, argv=0x854fc09) at ../../
tree-ssa/gcc/toplev.c:1850 
#9  0x40040d17 in __libc_start_main () from /lib/i686/libc.so.6 
#10 0x08049a21 in _start () at ../sysdeps/i386/elf/start.S:102 
(gdb) 
 
Tested cc1 was: 
GNU C version 3.5-tree-ssa 20040119 (merged 20040102) (i686-pc-linux-gnu) 
        compiled by GNU C version 3.5-tree-ssa 20040119 (merged 20040102). 
 
I'm assigning this to Honza as a cgraph problem.

-- 
           Summary: [tree-ssa] ICE for gcc.dg/20031222-1.c
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: hubicka at gcc dot gnu dot org
        ReportedBy: steven at gcc dot gnu dot org
                CC: dnovillo at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org


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


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

* [Bug c/13748] [tree-ssa] ICE for gcc.dg/20031222-1.c
  2004-01-19 21:21 [Bug c/13748] New: [tree-ssa] ICE for gcc.dg/20031222-1.c steven at gcc dot gnu dot org
@ 2004-01-19 22:20 ` pinskia at gcc dot gnu dot org
  2004-01-20  2:38 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-19 22:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-19 22:20 -------
Confirmed, I added this tests (I think there is another test also), so I know this is an error-recovery 
problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|ice-on-valid-code           |error-recovery, ice-on-
                   |                            |invalid-code
   Last reconfirmed|0000-00-00 00:00:00         |2004-01-19 22:20:51
               date|                            |
   Target Milestone|---                         |tree-ssa


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


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

* [Bug c/13748] [tree-ssa] ICE for gcc.dg/20031222-1.c
  2004-01-19 21:21 [Bug c/13748] New: [tree-ssa] ICE for gcc.dg/20031222-1.c steven at gcc dot gnu dot org
  2004-01-19 22:20 ` [Bug c/13748] " pinskia at gcc dot gnu dot org
@ 2004-01-20  2:38 ` pinskia at gcc dot gnu dot org
  2004-01-25  1:38 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-20  2:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-20 02:38 -------
I will take of this, this is really the C trying to finalize a function which has errors.  Steven can you 
fail them for now.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|hubicka at gcc dot gnu dot  |pinskia at gcc dot gnu dot
                   |org                         |org
             Status|NEW                         |ASSIGNED


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


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

* [Bug c/13748] [tree-ssa] ICE for gcc.dg/20031222-1.c
  2004-01-19 21:21 [Bug c/13748] New: [tree-ssa] ICE for gcc.dg/20031222-1.c steven at gcc dot gnu dot org
  2004-01-19 22:20 ` [Bug c/13748] " pinskia at gcc dot gnu dot org
  2004-01-20  2:38 ` pinskia at gcc dot gnu dot org
@ 2004-01-25  1:38 ` pinskia at gcc dot gnu dot org
  2004-01-25 21:08 ` pinskia at gcc dot gnu dot org
  2004-01-25 21:08 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-25  1:38 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-25 01:38 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-01/msg02685.html>.

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


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


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

* [Bug c/13748] [tree-ssa] ICE for gcc.dg/20031222-1.c
  2004-01-19 21:21 [Bug c/13748] New: [tree-ssa] ICE for gcc.dg/20031222-1.c steven at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-01-25 21:08 ` pinskia at gcc dot gnu dot org
@ 2004-01-25 21:08 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-01-25 21:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-01-25 21:08 -------
Subject: Bug 13748

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	tree-ssa-20020619-branch
Changes by:	pinskia@gcc.gnu.org	2004-01-25 21:08:02

Modified files:
	gcc            : ChangeLog.tree-ssa c-decl.c 

Log message:
	2004-01-25  Andrew Pinski  <pinskia@physics.uc.edu>
	
	PR c/13748
	* c-decl.c (finish_function): Do not pass
	the function on to optimizers if there was an error.

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.1126&r2=1.1.2.1127
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=tree-ssa-20020619-branch&r1=1.334.2.77&r2=1.334.2.78



-- 


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


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

* [Bug c/13748] [tree-ssa] ICE for gcc.dg/20031222-1.c
  2004-01-19 21:21 [Bug c/13748] New: [tree-ssa] ICE for gcc.dg/20031222-1.c steven at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-01-25  1:38 ` pinskia at gcc dot gnu dot org
@ 2004-01-25 21:08 ` pinskia at gcc dot gnu dot org
  2004-01-25 21:08 ` cvs-commit at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-25 21:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-25 21:08 -------
Fixed.

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


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


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

end of thread, other threads:[~2004-01-25 21:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-19 21:21 [Bug c/13748] New: [tree-ssa] ICE for gcc.dg/20031222-1.c steven at gcc dot gnu dot org
2004-01-19 22:20 ` [Bug c/13748] " pinskia at gcc dot gnu dot org
2004-01-20  2:38 ` pinskia at gcc dot gnu dot org
2004-01-25  1:38 ` pinskia at gcc dot gnu dot org
2004-01-25 21:08 ` pinskia at gcc dot gnu dot org
2004-01-25 21:08 ` cvs-commit 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).