Bug 25091

Summary: gcc-2.96-71 and -70 internal error (reg-stack.c/change_stack)
Product: [Retired] Red Hat Raw Hide Reporter: Mike Shaver <shaver>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: high    
Version: 1.0CC: dbaron
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-16 17:49:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
test case: stripped-down version of e_acos.c none

Description Mike Shaver 2001-01-27 21:18:23 UTC
When compiling fdlibm (from the Mozilla tree) with
  -O2 -finstrument-functions
I get an internal compiler error:

cc -Wall -O2 -finstrument-functions   -c -o e_acos.o e_acos.c
e_acos.c: In function `__ieee754_acos':
e_acos.c:37: Internal compiler error in change_stack, at reg-stack.c:2214

  -O -finstrument-functions
and
  -finstrument-functions
both work fine.

dbaron reports that it happens with -70 as well.

I'll attach a minimized test case.

Comment 1 Mike Shaver 2001-01-27 21:19:06 UTC
Created attachment 8390 [details]
test case: stripped-down version of e_acos.c

Comment 2 Jakub Jelinek 2001-01-27 23:34:17 UTC
This is probably dup of #21002, -finstrument-functions does not play
well with reg-stack and I haven't had time yet to debug this
(I consider it low priority though since -finstrument-functions is
a rarely used switch).

Comment 3 Christopher Blizzard 2001-02-16 17:49:35 UTC
I would get crashes in gcc with that flag in a lot of our C++ test cases, too. 
No profiler for us! :)

Comment 4 Jakub Jelinek 2001-03-14 16:26:12 UTC

*** This bug has been marked as a duplicate of 21002 ***