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]

Obvious fix applied to gcc.c-torture/compile/20011119-[12].c


This fixes some spurious failures that look like:
.../gcc/testsuite/gcc.c-torture/compile/20011119-1.c:4: error: 'foo' aliased to undefined symbol 'xxx'
for targets with non-empty USER_LABEL_PREFIX.
2005-03-31  J"orn Rennecke <joern.rennecke@st.com>

	Fix fallout from PR middle-end/15700:
	* gcc.c-torture/compile/20011119-1.c: Take
	__USER_LABEL_PREFIX__ into account.
	* gcc.c-torture/compile/20011119-2.c: Likewise.

Index: gcc.c-torture/compile/20011119-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20011119-1.c,v
retrieving revision 1.2
diff -p -r1.2 20011119-1.c
*** gcc.c-torture/compile/20011119-1.c	25 Mar 2002 20:55:20 -0000	1.2
--- gcc.c-torture/compile/20011119-1.c	31 Mar 2005 13:01:23 -0000
***************
*** 1,4 ****
  extern inline int foo (void) { return 23; }
! int xxx(void) __asm__("xxx");
  int xxx(void) { return 23; }
  extern int foo (void) __attribute__ ((weak, alias ("xxx")));
--- 1,8 ----
+ #define ASMNAME(cname)  ASMNAME2 (__USER_LABEL_PREFIX__, cname)
+ #define ASMNAME2(prefix, cname) STRING (prefix) cname
+ #define STRING(x)    #x
+ 
  extern inline int foo (void) { return 23; }
! int xxx(void) __asm__(ASMNAME ("xxx"));
  int xxx(void) { return 23; }
  extern int foo (void) __attribute__ ((weak, alias ("xxx")));
Index: gcc.c-torture/compile/20011119-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/compile/20011119-2.c,v
retrieving revision 1.2
diff -p -r1.2 20011119-2.c
*** gcc.c-torture/compile/20011119-2.c	25 Mar 2002 20:55:20 -0000	1.2
--- gcc.c-torture/compile/20011119-2.c	31 Mar 2005 13:01:23 -0000
***************
*** 1,6 ****
  extern inline int foo (void) { return 23; }
  int bar (void) { return foo (); }
  extern int foo (void) __attribute__ ((weak, alias ("xxx")));
  int baz (void) { return foo (); }
! int xxx(void) __asm__("xxx");
  int xxx(void) { return 23; }
--- 1,10 ----
+ #define ASMNAME(cname)  ASMNAME2 (__USER_LABEL_PREFIX__, cname)
+ #define ASMNAME2(prefix, cname) STRING (prefix) cname
+ #define STRING(x)    #x
+ 
  extern inline int foo (void) { return 23; }
  int bar (void) { return foo (); }
  extern int foo (void) __attribute__ ((weak, alias ("xxx")));
  int baz (void) { return foo (); }
! int xxx(void) __asm__(ASMNAME ("xxx"));
  int xxx(void) { return 23; }

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