summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
515b520)
* gcc.dg/lto/pr46940_0.c (ASMNAME, ASMNAME2, STRING): Define.
(_moz_foo, EXT__foo): Use ASMNAME.
From-SVN: r180276
+2011-10-20 Joseph Myers <joseph@codesourcery.com>
+
+ * gcc.dg/lto/pr46940_0.c (ASMNAME, ASMNAME2, STRING): Define.
+ (_moz_foo, EXT__foo): Use ASMNAME.
+
2011-10-20 Joseph Myers <joseph@codesourcery.com>
* lib/lto.exp (lto-execute): Use .exe suffix for test executable
2011-10-20 Joseph Myers <joseph@codesourcery.com>
* lib/lto.exp (lto-execute): Use .exe suffix for test executable
/* { dg-extra-ld-options "-fuse-linker-plugin" } */
#include <stdio.h>
/* { dg-extra-ld-options "-fuse-linker-plugin" } */
#include <stdio.h>
+#define ASMNAME(cname) ASMNAME2 (__USER_LABEL_PREFIX__, cname)
+#define ASMNAME2(prefix, cname) STRING (prefix) cname
+#define STRING(x) #x
+
extern __attribute__((visibility("hidden"))) void _moz_foo (void);
extern __attribute__((visibility("hidden"))) void _moz_foo (void);
-extern __typeof (_moz_foo) _moz_foo __asm__ ("" "INT__foo") __attribute__((__visibility__("hidden"))) ;
+extern __typeof (_moz_foo) _moz_foo __asm__ (ASMNAME ("INT__foo")) __attribute__((__visibility__("hidden"))) ;
void _moz_foo(void)
{
printf ("blah\n");
}
void _moz_foo(void)
{
printf ("blah\n");
}
-extern __typeof (_moz_foo) EXT__foo __asm__("" "_moz_foo") __attribute__((__alias__("" "INT__foo")));
+extern __typeof (_moz_foo) EXT__foo __asm__(ASMNAME ("_moz_foo")) __attribute__((__alias__("" "INT__foo")));