Bug 21049 - [4.1 Regression] ICE with -fdump-tree-all and fortran
Summary: [4.1 Regression] ICE with -fdump-tree-all and fortran
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: 4.1.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
: 21103 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-15 19:32 UTC by Andrew Pinski
Modified: 2005-04-19 12:04 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-04-17 22:52:04


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2005-04-15 19:32:27 UTC
Try to compile the following code with -fdump-tree-all and you will get a seg fault:
      subroutine foo
      return
      end
Comment 1 Jerry DeLisle 2005-04-16 00:55:39 UTC
Confirmed on i686.  Was not there on 4/12/2005 build.
Comment 2 Andrew Pinski 2005-04-17 22:52:04 UTC
Confirmed.
Comment 3 Andrew Pinski 2005-04-18 17:20:08 UTC
Fixed.
Comment 4 GCC Commits 2005-04-18 17:21:10 UTC
Subject: Bug 21049

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	pinskia@gcc.gnu.org	2005-04-18 17:20:57

Modified files:
	gcc            : ChangeLog 

Log message:
	Add PR markers to:
	2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
	
	PR middle-end/21049
	* tree-cfg.c (dump_function_to_file): Do not crash if cfun or
	cfun->cfg are NULL.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8352&r2=2.8353

Comment 5 Andrew Pinski 2005-04-19 12:04:44 UTC
*** Bug 21103 has been marked as a duplicate of this bug. ***