public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g
@ 2005-01-05 15:56 ghazi at gcc dot gnu dot org
  2005-01-05 15:59 ` Daniel Berlin
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2005-01-05 15:56 UTC (permalink / raw)
  To: gcc-bugs

When running the testsuite with -fpic/-fPIC, I get an additional failure in the 
testsuite with mainline:

FAIL: gcc.c-torture/execute/921215-1.c compilation,  -O3 -g 

The regression appeared sometime in the last day or so between these postings:
http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00135.html
http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00179.html

The compilation dies like this:

921215-1.c:22: internal compiler error: in gen_subprogram_die, at 
dwarf2out.c:11207

in the source we have:
11207             gcc_assert (errorcount);


The problem is that errorcount is zero, so the gcc_assert() dies.

To reproduce, compile the following with:
cc1 -fpreprocessed 921215-1.i -quiet -dumpbase 921215-1.c -mtune=pentiumpro -
auxbase 921215-1 -g -O3 -version -fpic -o 921215-1.s


# 1 "921215-1.c"
# 1 "/home/ghazi/tmpdisk/gcc-testing/40/egcc-CVS20050104/gcc/testsuite/gcc.c-
torture/execute//"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "921215-1.c"
main()
{

  void p(void ((*f) (void ())))
    {
      void r()
 {
   foo ();
 }

      f(r);
    }

  void q(void ((*f)()))
    {
      f();
    }

  p(q);

  exit(0);
}

foo(){}

-- 
           Summary: [4.0 regression] execute/921215-1.c fails with -fpic at
                    -O3 -g
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ghazi at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* Re: [Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g
  2005-01-05 15:56 [Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g ghazi at gcc dot gnu dot org
@ 2005-01-05 15:59 ` Daniel Berlin
  2005-01-05 16:00 ` [Bug debug/19267] " dberlin at dberlin dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Daniel Berlin @ 2005-01-05 15:59 UTC (permalink / raw)
  To: ghazi at gcc dot gnu dot org; +Cc: gcc-bugs



On Wed, 5 Jan 2005, ghazi at gcc dot gnu dot org wrote:

> When running the testsuite with -fpic/-fPIC, I get an additional failure in the
> testsuite with mainline:
>
> FAIL: gcc.c-torture/execute/921215-1.c compilation,  -O3 -g
>
> The regression appeared sometime in the last day or so between these postings:
> http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00135.html
> http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00179.html
>
> The compilation dies like this:
>
> 921215-1.c:22: internal compiler error: in gen_subprogram_die, at
> dwarf2out.c:11207
>
> in the source we have:
> 11207             gcc_assert (errorcount);
>
>
> The problem is that errorcount is zero, so the gcc_assert() dies.

I'm about to submit a patch that will fix this.


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

* [Bug debug/19267] [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g
  2005-01-05 15:56 [Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g ghazi at gcc dot gnu dot org
  2005-01-05 15:59 ` Daniel Berlin
@ 2005-01-05 16:00 ` dberlin at dberlin dot org
  2005-01-05 18:26 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dberlin at dberlin dot org @ 2005-01-05 16:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dberlin at gcc dot gnu dot org  2005-01-05 15:59 -------
Subject: Re:  New: [4.0 regression] execute/921215-1.c fails
 with -fpic at -O3 -g



On Wed, 5 Jan 2005, ghazi at gcc dot gnu dot org wrote:

> When running the testsuite with -fpic/-fPIC, I get an additional failure in the
> testsuite with mainline:
>
> FAIL: gcc.c-torture/execute/921215-1.c compilation,  -O3 -g
>
> The regression appeared sometime in the last day or so between these postings:
> http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00135.html
> http://gcc.gnu.org/ml/gcc-testresults/2005-01/msg00179.html
>
> The compilation dies like this:
>
> 921215-1.c:22: internal compiler error: in gen_subprogram_die, at
> dwarf2out.c:11207
>
> in the source we have:
> 11207             gcc_assert (errorcount);
>
>
> The problem is that errorcount is zero, so the gcc_assert() dies.

I'm about to submit a patch that will fix this.



-- 


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


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

* [Bug debug/19267] [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g
  2005-01-05 15:56 [Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g ghazi at gcc dot gnu dot org
  2005-01-05 15:59 ` Daniel Berlin
  2005-01-05 16:00 ` [Bug debug/19267] " dberlin at dberlin dot org
@ 2005-01-05 18:26 ` pinskia at gcc dot gnu dot org
  2005-01-06 14:51 ` cvs-commit at gcc dot gnu dot org
  2005-01-06 14:52 ` dberlin at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-05 18:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-05 18:26 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-01-05 18:26:06
               date|                            |
   Target Milestone|---                         |4.0.0


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


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

* [Bug debug/19267] [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g
  2005-01-05 15:56 [Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g ghazi at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-01-05 18:26 ` pinskia at gcc dot gnu dot org
@ 2005-01-06 14:51 ` cvs-commit at gcc dot gnu dot org
  2005-01-06 14:52 ` dberlin at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-06 14:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-06 14:50 -------
Subject: Bug 19267

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dberlin@gcc.gnu.org	2005-01-06 14:49:36

Modified files:
	gcc            : ChangeLog dwarf2out.c gimple-low.c tree.h 

Log message:
	2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
	
	Fix PR middle-end/19286
	Fix PR debug/19267
	* dwarf2out.c (gen_subprogram_die): If we've already tried to
	output this subprogram, simply ignore this attempt to do it again.
	(add_abstract_origin_attribute): Don't abort trying to add the abstract
	origin attribute if it's not possible.
	(gen_block_die): Don't ignore subblocks of "unused" blocks.
	(decls_for_scope): Ditto.
	* gimple-low.c (mark_blocks_with_used_subblocks): Remove.
	(mark_used_blocks): Don't call mark_blocks_with_used_subblocks.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7045&r2=2.7046
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/dwarf2out.c.diff?cvsroot=gcc&r1=1.565&r2=1.566
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gimple-low.c.diff?cvsroot=gcc&r1=2.15&r2=2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.h.diff?cvsroot=gcc&r1=1.675&r2=1.676



-- 


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


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

* [Bug debug/19267] [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g
  2005-01-05 15:56 [Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g ghazi at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-01-06 14:51 ` cvs-commit at gcc dot gnu dot org
@ 2005-01-06 14:52 ` dberlin at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2005-01-06 14:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dberlin at gcc dot gnu dot org  2005-01-06 14:52 -------
Fixed

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


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


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

end of thread, other threads:[~2005-01-06 14:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-05 15:56 [Bug debug/19267] New: [4.0 regression] execute/921215-1.c fails with -fpic at -O3 -g ghazi at gcc dot gnu dot org
2005-01-05 15:59 ` Daniel Berlin
2005-01-05 16:00 ` [Bug debug/19267] " dberlin at dberlin dot org
2005-01-05 18:26 ` pinskia at gcc dot gnu dot org
2005-01-06 14:51 ` cvs-commit at gcc dot gnu dot org
2005-01-06 14:52 ` dberlin 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).