This is the mail archive of the gcc-patches@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]

Committed, fix gcc.dg/alias-7.c regarding USER_LABEL_PREFIX.


See also <URL:http://gcc.gnu.org/ml/gcc-patches/2005-03/msg02655.html>
and <URL:http://gcc.gnu.org/ml/gcc-patches/2005-03/msg02844.html>.
RTH mentioned in the PR (I'm behind on mailing list reading)
that Joern fixed gcc.c-torture/compile/20011119-1.c and
gcc.c-torture/compile/20011119-2.c like that, so apparently
that's the preferred change and this is obvious.

It seems the ChangeLog entry for those changes is missing though.

	PR middle-end/20524
	* gcc.dg/alias-7.c: Prefix asm-declared name with
	__USER_LABEL_PREFIX__.

Index: alias-7.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/alias-7.c,v
retrieving revision 1.1
diff -p -c -r1.1 alias-7.c
*** alias-7.c	29 Mar 2005 15:37:29 -0000	1.1
--- alias-7.c	1 Apr 2005 06:53:48 -0000
***************
*** 4,10 ****

  extern void abort (void);

! int foo __asm__ ("foo") __attribute__((nocommon));
  extern __typeof (foo) bar __attribute__ ((weak, alias ("foo")));

  int
--- 4,14 ----

  extern void abort (void);

! #define ASMNAME(cname)  ASMNAME2 (__USER_LABEL_PREFIX__, cname)
! #define ASMNAME2(prefix, cname) STRING (prefix) cname
! #define STRING(x)    #x
!
! int foo __asm__ (ASMNAME ("foo")) __attribute__((nocommon));
  extern __typeof (foo) bar __attribute__ ((weak, alias ("foo")));

  int

brgds, H-P


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