public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6352: GCC 3.1 inliner regression from March
@ 2002-04-18  4:56 gbeauchesne
  0 siblings, 0 replies; 3+ messages in thread
From: gbeauchesne @ 2002-04-18  4:56 UTC (permalink / raw)
  To: gcc-gnats; +Cc: rth, mark


>Number:         6352
>Category:       c++
>Synopsis:       GCC 3.1 inliner regression from March
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 18 04:56:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gwenole Beauchesne
>Release:        GNU C++ version 3.1 20020418 (prerelease) (i686-pc-linux-gnu)
>Organization:
>Environment:
i586-mandrake-linux-gnu
>Description:
The testcase below, distilled from Mesa 4.0.2 (si-glu/libnurbs/nurbtess/quicksort.cc), ICEs in current gcc-3.1-branch. This is a regression from gcc-3.0.4.

[gb@kernel gcc]$ ./cc1plus -O1 -finline-functions ~/vrac/qsort.cpp
 void f() void g() void f() void g()
/home/gb/vrac/qsort.cpp:11: Internal compiler error in genrtl_finish_function,
   at cp/semantics.c:2622
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Compile the following testcase with -O1 -finline-functions and the current gcc-3.1-branch.

[gb@kernel gb]$ cat ~/vrac/qsort.cpp
static void g();

void f()
{
  void g();
  g();
}

void g()
{
}

BTW, do you want the full preprocessed source from Mesa?
>Fix:
Either don't use inlining or remove the declaration of g() in f().

Ah, as I happen to have a few prebuilt CVS snapshots around, the following might help to spot of the regressing change.

1) It works with
GNU C++ version 3.1 20020315 (prerelease) (i686-pc-linux-gnu)

2) But fails as above-mentioned with 
GNU C++ version 3.1 20020316 (prerelease) (i686-pc-linux-gnu)
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/6352: GCC 3.1 inliner regression from March
@ 2002-04-19  9:30 mmitchel
  0 siblings, 0 replies; 3+ messages in thread
From: mmitchel @ 2002-04-19  9:30 UTC (permalink / raw)
  To: gbeauchesne, gcc-bugs, gcc-prs, mark, mmitchel, rth

Synopsis: GCC 3.1 inliner regression from March

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Fri Apr 19 09:30:41 2002
State-Changed-Why:
    Fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6352


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

* Re: c++/6352: GCC 3.1 inliner regression from March
@ 2002-04-18  9:29 mmitchel
  0 siblings, 0 replies; 3+ messages in thread
From: mmitchel @ 2002-04-18  9:29 UTC (permalink / raw)
  To: gbeauchesne, gcc-bugs, gcc-prs, mark, mmitchel, nobody, rth

Synopsis: GCC 3.1 inliner regression from March

Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Thu Apr 18 09:29:37 2002
Responsible-Changed-Why:
    Working on a fix.
State-Changed-From-To: open->analyzed
State-Changed-By: mmitchel
State-Changed-When: Thu Apr 18 09:29:37 2002
State-Changed-Why:
    Confirmed as regression.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6352


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

end of thread, other threads:[~2002-04-19 16:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-18  4:56 c++/6352: GCC 3.1 inliner regression from March gbeauchesne
2002-04-18  9:29 mmitchel
2002-04-19  9:30 mmitchel

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).