Bug in LIBGFOR_CHECK_ATTRIBUTE_ALIAS?

Danny Smith danny_smith_0000@yahoo.co.nz
Mon Aug 8 02:40:00 GMT 2005


This check for __attribute__((alias)) in libgfortan/acinclude.m4 looks wrong.
Why is the alias prefixed with __USER_LABEL_PREFIX__?

See, eg, the test for alias in /testsuite/gcc.dg/special/alias-1.c 

dnl Check whether the target supports symbol aliases.
AC_DEFUN([LIBGFOR_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")));],
    [bar();], have_attribute_alias=yes, have_attribute_alias=no)])
  if test $have_attribute_alias = yes; then
    AC_DEFINE(HAVE_ATTRIBUTE_ALIAS, 1,
      [Define to 1 if the target supports __attribute__((alias(...))).])
  fi])


Danny

Send instant messages to your online friends http://au.messenger.yahoo.com 



More information about the Fortran mailing list