This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/33763] [4.6/4.7/4.8 Regression] Bogus inlining failed in call to `xxx': redefined extern inline functions are not considered for inlining


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33763

--- Comment #35 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-09 15:39:35 UTC ---
(In reply to comment #34)
> (In reply to comment #31)
> Just so you know, the proposed patch would break glibc builds.  Here's a
> reduced test case that reproduces an issue compiling glibc's s_isnan.c on
> amd64...
> 
> extern int foo() __attribute__((__const__, __nothrow__));
> extern int foo() __asm__("__GI_foo") __attribute__ ((visibility("hidden")));
> extern __inline int __attribute__((__always_inline__)) foo() {
>   return 0;
> }
> int foo() {
>   return 0;
> }
> extern __typeof__(foo) __EI_foo __asm__("foo")
> __attribute__((alias("__GI_foo")));
> 
> On Debian, gcc-4.6 compiles this code OK, while gcc-4.7 (which has this patch
> applied) errors out with:
> /tmp/pr33763_broken.c:9:24: error: '__EI_foo' aliased to external symbol
> '__GI_foo'

Yes, I know - the patch had fallout in the testsuite and I dropped the ball
on this bugreport.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]