Bug 20214

Summary: [3.3/3.4/4.0/4.1 Regression] ICE with register name which is not a register in x86
Product: gcc Reporter: Andrew Pinski <pinskia>
Component: targetAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: minor CC: gcc-bugs
Priority: P2 Keywords: ice-on-invalid-code
Version: 4.0.0   
Target Milestone: 4.0.0   
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

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 ***