mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test.
* acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from test. * configure: Regenerate. * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias. From-SVN: r117490
This commit is contained in:
parent
76be85be9c
commit
8887708edc
@ -1,3 +1,10 @@
|
||||
2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
|
||||
|
||||
* acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
|
||||
test.
|
||||
* configure: Regenerate.
|
||||
* fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
|
||||
|
||||
2006-09-26 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR middle-end/25261
|
||||
|
@ -47,11 +47,8 @@ AC_DEFUN([LIBGOMP_CHECK_ATTRIBUTE_ALIAS], [
|
||||
AC_CACHE_CHECK([whether the target supports symbol aliases],
|
||||
have_attribute_alias, [
|
||||
AC_TRY_LINK([
|
||||
#define ULP STR1(__USER_LABEL_PREFIX__)
|
||||
#define STR1(x) STR2(x)
|
||||
#define STR2(x) #x
|
||||
void foo(void) { }
|
||||
extern void bar(void) __attribute__((alias(ULP "foo")));],
|
||||
extern void bar(void) __attribute__((alias("foo")));],
|
||||
[bar();], have_attribute_alias=yes, have_attribute_alias=no)])
|
||||
if test $have_attribute_alias = yes; then
|
||||
AC_DEFINE(HAVE_ATTRIBUTE_ALIAS, 1,
|
||||
|
5
libgomp/configure
vendored
5
libgomp/configure
vendored
@ -9087,11 +9087,8 @@ cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
|
||||
#define ULP STR1(__USER_LABEL_PREFIX__)
|
||||
#define STR1(x) STR2(x)
|
||||
#define STR2(x) #x
|
||||
void foo(void) { }
|
||||
extern void bar(void) __attribute__((alias(ULP "foo")));
|
||||
extern void bar(void) __attribute__((alias("foo")));
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
@ -33,8 +33,11 @@
|
||||
|
||||
#ifdef HAVE_ATTRIBUTE_ALIAS
|
||||
/* Use internal aliases if possible. */
|
||||
#define ULP STR1(__USER_LABEL_PREFIX__)
|
||||
#define STR1(x) STR2(x)
|
||||
#define STR2(x) #x
|
||||
# define ialias_redirect(fn) \
|
||||
extern __typeof (fn) fn __asm__ ("gomp_ialias_" #fn) attribute_hidden;
|
||||
extern __typeof (fn) fn __asm__ (ULP "gomp_ialias_" #fn) attribute_hidden;
|
||||
ialias_redirect (omp_init_lock)
|
||||
ialias_redirect (omp_init_nest_lock)
|
||||
ialias_redirect (omp_destroy_lock)
|
||||
|
Loading…
Reference in New Issue
Block a user