Bug 21654 - [4.1 Regression] gcc.dg/pch/inline-4.c fails
Summary: [4.1 Regression] gcc.dg/pch/inline-4.c fails
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: pch (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
Depends on:
Blocks:
 
Reported: 2005-05-18 20:57 UTC by Joseph S. Myers
Modified: 2005-05-24 16:27 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-05-18 21:23:46


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph S. Myers 2005-05-18 20:57:25 UTC
FAIL: gcc.dg/pch/inline-4.c  -O0  (test for excess errors)
FAIL: gcc.dg/pch/inline-4.c -O0 -g (test for excess errors)

have appeared on mainline between 20050517 and 20050518 on hppa2.0w-hpux. 
gcc-testresults shows them also failing on platforms including mips-sgi-irix6.5,
powerpc-unknown-linux-gnu, powerpc64-unknown-linux-gnu.

On hppa2.0w-hpux:

Executing on host: gcc
/home/gcc/nightlies/src-mainline-2005-05-18/gcc-mainline-2005-05-18/gcc/testsuite/gcc.dg/pch/inline-4.c
 -O0 -g -I. -fno-show-column -S  
-o inline-4.s    (timeout = 300)
./inline-4.h: In function 'getstring':
./inline-4.h:2: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Andrew Pinski 2005-05-18 21:23:46 UTC
Confirmed, hmm, I wonder if something is not marked as GTY.
Comment 2 Jan Hubicka 2005-05-23 09:09:32 UTC
I am having problems to reproduce it on my machines (i686,x86-64,powerpc64) so I need some help debugging the problem (at least backtrace to start with)
Honza
Comment 3 Jan Hubicka 2005-05-23 09:44:40 UTC
Subject: Re:  [4.1 Regression] gcc.dg/pch/inline-4.c fails

Hi,
I finally reproduced it on IA-64 machine.  I am testing the attached
fix. Can you please try if it fixes your problem too?

2005-05-23  Jan Hubicka  <jh@suse.cz>
	* tree-flow.h (stmt_ann_d): Kill GTY ((skip)) mark on BB.
Index: tree-flow.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-flow.h,v
retrieving revision 2.109
diff -c -3 -p -r2.109 tree-flow.h
*** tree-flow.h	17 May 2005 20:28:22 -0000	2.109
--- tree-flow.h	23 May 2005 09:40:11 -0000
*************** struct stmt_ann_d GTY(())
*** 308,314 ****
    unsigned makes_clobbering_call : 1;
  
    /* Basic block that contains this statement.  */
!   basic_block GTY ((skip (""))) bb;
  
    /* Operand cache for stmt.  */
    struct stmt_operands_d GTY ((skip (""))) operands;
--- 308,314 ----
    unsigned makes_clobbering_call : 1;
  
    /* Basic block that contains this statement.  */
!   basic_block bb;
  
    /* Operand cache for stmt.  */
    struct stmt_operands_d GTY ((skip (""))) operands;
Comment 4 jsm-csl@polyomino.org.uk 2005-05-23 15:46:01 UTC
Subject: Re:  [4.1 Regression] gcc.dg/pch/inline-4.c fails

On Mon, 23 May 2005, hubicka at ucw dot cz wrote:

> I finally reproduced it on IA-64 machine.  I am testing the attached
> fix. Can you please try if it fixes your problem too?

It appears to fix the problem on hppa2.0w-hp-hpux11.23 for me.

Comment 5 Andrew Pinski 2005-05-24 16:27:15 UTC
Fixed.