Bug 35675 - gcc hangs with -frtl-abstract-sequences -O[23s]
Summary: gcc hangs with -frtl-abstract-sequences -O[23s]
Status: RESOLVED DUPLICATE of bug 33009
Alias: None
Product: gcc
Classification: Unclassified
Component: rtl-optimization (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-24 04:05 UTC by Eric Weddington
Modified: 2008-03-24 14:46 UTC (History)
6 users (show)

See Also:
Host: mingw32
Target: avr-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
C test case (309 bytes, text/plain)
2008-03-24 04:06 UTC, Eric Weddington
Details
Preprocessed test case (1.32 KB, text/plain)
2008-03-24 04:07 UTC, Eric Weddington
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Weddington 2008-03-24 04:05:53 UTC
GCC hangs (never completes) with test case using -frtl-abstract-sequences.

Command line:
avr-gcc -mmcu=atmega169 -Os -frtl-abstract-sequences -c test.c -o test.o

The test case fails with -O[23s], but is successful with -O[01].
Comment 1 Eric Weddington 2008-03-24 04:06:56 UTC
Created attachment 15365 [details]
C test case
Comment 2 Eric Weddington 2008-03-24 04:07:25 UTC
Created attachment 15366 [details]
Preprocessed test case
Comment 3 Eric Weddington 2008-03-24 04:10:30 UTC
I've reduced the test case to the smallest that I could get to. Note that when the showtext() function call is replaced by its contents, the test case passed for -Os. Also, pgm_read_word() in the C test case is a macro (from the avr-libc library) that generates inline assembly.
Comment 4 Andrew Pinski 2008-03-24 08:59:19 UTC
This is most likely a dup of bug 33009.
Comment 5 Eric Weddington 2008-03-24 14:46:02 UTC
The patch in bug #33009 does indeed fix the problem that I'm seeing. Closing bug as duplicate of #33009.

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