Bug 15728 - [3.4.0] ICE when declaring asm label for built-in function
Summary: [3.4.0] ICE when declaring asm label for built-in function
Status: RESOLVED DUPLICATE of bug 15666
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 3.4.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-30 01:32 UTC by Ilya A. Volynets-Evenbakh
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: mips64-linux-gnu
Target: mips64-linux-gnu
Build: mips64-linux-gnu
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 Ilya A. Volynets-Evenbakh 2004-05-30 01:32:33 UTC
gcc-3.4 ICEs when compiling following code:
extern __inline char * f1 (char *s, char* s2)
{
  return __builtin_strstr (s,s2);
}
extern char *strstr (char *s, char* s2) __asm__("_L_strstr");;

tested to fail on mips-linux, mips64-linux, and is reported to also fail
on i686-linux.

I run into this problem while compiling glibc as of 2004-05-27.
It appears that gcc CVS HEAD as of 2004-05-20 is not affected.
Comment 1 Ilya A. Volynets-Evenbakh 2004-05-30 01:58:58 UTC
Forgot to mention that this problem only appears when optimization level is at
least -O2.
Comment 2 Andrew Pinski 2004-05-30 02:01:12 UTC
This is a dup of bug 15666.

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

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