Bug 28270 - [4.0/4.1/4.2 regression] ICE on invalid inline asm
Summary: [4.0/4.1/4.2 regression] ICE on invalid inline asm
Status: RESOLVED DUPLICATE of bug 26655
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.2.0
: P4 normal
Target Milestone: 4.0.4
Assignee: Not yet assigned to anyone
URL:
Keywords: error-recovery, ice-on-invalid-code, monitored
Depends on:
Blocks:
 
Reported: 2006-07-05 12:56 UTC by Volker Reichelt
Modified: 2006-07-21 20:24 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Reichelt 2006-07-05 12:56:19 UTC
The following invalid code snippet triggers an ICE since GCC 3.1:

============================================================
void foo(long double d)
{
  asm("" :: "a" (d));
}
============================================================

bug.c: In function 'foo':
bug.c:3: error: impossible register constraint in 'asm'
bug.c:4: internal compiler error: in ix86_secondary_memory_needed, at config/i386/i386.c:16554
Please submit a full bug report, [etc.]

Maybe related to PR26655.
Comment 1 Jan Hubicka 2006-07-21 20:24:27 UTC

*** This bug has been marked as a duplicate of 26655 ***
Comment 2 patchapp@dberlin.org 2006-07-23 09:35:19 UTC
Subject: Bug number PR target/28270

A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00992.html
Comment 3 Jan Hubicka 2006-08-04 17:05:52 UTC
Subject: Bug 28270

Author: hubicka
Date: Fri Aug  4 17:05:38 2006
New Revision: 115928

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115928
Log:
	PR target/26655
	PR target/28270
	* reload.c (push_reload): Patch out the mismathcing instruction; return early.
	(find_reload): Bail out if the instruction was patched out.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/reload.c