Bug 20214 - [3.3/3.4/4.0/4.1 Regression] ICE with register name which is not a register in x86
Summary: [3.3/3.4/4.0/4.1 Regression] ICE with register name which is not a register i...
Status: RESOLVED DUPLICATE of bug 16888
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.0.0
: P2 minor
Target Milestone: 4.0.0
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-invalid-code
Depends on:
Blocks:
 
Reported: 2005-02-25 19:45 UTC by Andrew Pinski
Modified: 2005-04-07 06:31 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work: 3.0.4 2.95.3
Known to fail: 4.0.0 3.3.3 3.2.3 3.4.0
Last reconfirmed: 2005-03-01 01:20:28


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2005-02-25 19:46:00 UTC
The following invalid x86 code ICEs on the mainline and has since at least 3.2.3:
int main()
{
  register void *return_dst __asm__ ("r13");
  return *(int*)(return_dst);
}
Comment 1 Andrew Pinski 2005-02-25 19:49:43 UTC
By the way here is the ICE:
t4.c: In function ‘main’:
t4.c:5: internal compiler error: in print_reg, at config/i386/i386.c:6241
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 2 Andrew Pinski 2005-03-01 01:20:28 UTC
: Search converges between 2001-03-25-trunk (#12) and 2001-04-01-trunk (#13).

Confirmed.
Comment 3 Andrew Pinski 2005-04-07 06:31:33 UTC

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