backport: 20011009-1.c (COMMENT): Define.

Backport from mainline:
	2010-05-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.target/i386/20011009-1.c (COMMENT): Define.
	(main): Use it.
	* gcc.target/i386/pr25993.c [__sun__]: Use .globl.

	2010-05-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.target/i386/pr25993.c: Use @function as type specifier.

From-SVN: r160271
This commit is contained in:
Rainer Orth 2010-06-04 14:39:55 +00:00 committed by Rainer Orth
parent 8714514250
commit 44e6ab0969
3 changed files with 25 additions and 2 deletions

View File

@ -1,3 +1,16 @@
2010-06-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Backport from mainline:
2010-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.target/i386/20011009-1.c (COMMENT): Define.
(main): Use it.
* gcc.target/i386/pr25993.c [__sun__]: Use .globl.
2010-05-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc.target/i386/pr25993.c: Use @function as type specifier.
2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Backport from mainline:

View File

@ -4,11 +4,17 @@
extern void abort (void);
extern void exit (int);
#ifdef __sun__
#define COMMENT "/"
#else
#define COMMENT "#"
#endif
int main ()
{
int x;
asm ("movl $26, %0 # 26 |-> reg \n\t"
asm ("movl $26, %0 " COMMENT " 26 |-> reg \n\t"
"movl $28, %0" : "=r" (x));
if (x != 28)
abort ();

View File

@ -5,8 +5,12 @@
#ifndef __ASSEMBLER__
extern int func(void);
#else
#ifdef __sun__
.globl func
#else
.global func
.type func,%function
#endif
.type func,@function
.align 4
func:
ret