2008-06-16 Ken Werner <ken.werner@de.ibm.com>
* libc/machine/spu/mk_syscalls: Provide .type and .size directives in generated assembler files. * libc/machine/spu/fprintf.S: Regenerate. * libc/machine/spu/fscanf.S: Regenerate. * libc/machine/spu/printf.S: Regenerate. * libc/machine/spu/scanf.S: Regenerate. * libc/machine/spu/snprintf.S: Regenerate. * libc/machine/spu/sprintf.S: Regenerate. * libc/machine/spu/sscanf.S: Regenerate. * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type and .size directives. * libc/machine/spu/setjmp.S (setjmp): Likewise. (longjmp): Likewise.
This commit is contained in:
parent
8ddb4e477e
commit
b243d287e4
|
@ -1,3 +1,19 @@
|
||||||
|
2008-06-16 Ken Werner <ken.werner@de.ibm.com>
|
||||||
|
|
||||||
|
* libc/machine/spu/mk_syscalls: Provide .type and .size directives
|
||||||
|
in generated assembler files.
|
||||||
|
* libc/machine/spu/fprintf.S: Regenerate.
|
||||||
|
* libc/machine/spu/fscanf.S: Regenerate.
|
||||||
|
* libc/machine/spu/printf.S: Regenerate.
|
||||||
|
* libc/machine/spu/scanf.S: Regenerate.
|
||||||
|
* libc/machine/spu/snprintf.S: Regenerate.
|
||||||
|
* libc/machine/spu/sprintf.S: Regenerate.
|
||||||
|
* libc/machine/spu/sscanf.S: Regenerate.
|
||||||
|
* libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type
|
||||||
|
and .size directives.
|
||||||
|
* libc/machine/spu/setjmp.S (setjmp): Likewise.
|
||||||
|
(longjmp): Likewise.
|
||||||
|
|
||||||
2008-06-11 Jeff Johnston <jjohnstn@redhat.com>
|
2008-06-11 Jeff Johnston <jjohnstn@redhat.com>
|
||||||
|
|
||||||
* libc/include/machine/_default_types.h: Fix GNUC check to
|
* libc/include/machine/_default_types.h: Fix GNUC check to
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
.text
|
.text
|
||||||
.align 4
|
.align 4
|
||||||
GLOBL fprintf
|
GLOBL fprintf
|
||||||
|
.type fprintf, @function
|
||||||
fprintf:
|
fprintf:
|
||||||
stqd $0, 16($sp) /* save caller address */
|
stqd $0, 16($sp) /* save caller address */
|
||||||
il $2, 2 /* number of fixed arguments */
|
il $2, 2 /* number of fixed arguments */
|
||||||
|
@ -53,3 +54,4 @@ fprintf:
|
||||||
a $sp, $sp, $2
|
a $sp, $sp, $2
|
||||||
lqd $0, 16($sp) /* load caller address */
|
lqd $0, 16($sp) /* load caller address */
|
||||||
bi $0 /* return to caller */
|
bi $0 /* return to caller */
|
||||||
|
.size fprintf, .-fprintf
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
.text
|
.text
|
||||||
.align 4
|
.align 4
|
||||||
GLOBL fscanf
|
GLOBL fscanf
|
||||||
|
.type fscanf, @function
|
||||||
fscanf:
|
fscanf:
|
||||||
stqd $0, 16($sp) /* save caller address */
|
stqd $0, 16($sp) /* save caller address */
|
||||||
il $2, 2 /* number of fixed arguments */
|
il $2, 2 /* number of fixed arguments */
|
||||||
|
@ -53,3 +54,4 @@ fscanf:
|
||||||
a $sp, $sp, $2
|
a $sp, $sp, $2
|
||||||
lqd $0, 16($sp) /* load caller address */
|
lqd $0, 16($sp) /* load caller address */
|
||||||
bi $0 /* return to caller */
|
bi $0 /* return to caller */
|
||||||
|
.size fscanf, .-fscanf
|
||||||
|
|
|
@ -69,6 +69,7 @@ while ($line = <DEFS>) {
|
||||||
print SOURCE " .text\n";
|
print SOURCE " .text\n";
|
||||||
print SOURCE " .align 4\n";
|
print SOURCE " .align 4\n";
|
||||||
print SOURCE " GLOBL ", $name, "\n";
|
print SOURCE " GLOBL ", $name, "\n";
|
||||||
|
print SOURCE " .type ", $name, ", \@function\n";
|
||||||
print SOURCE $name, ":\n";
|
print SOURCE $name, ":\n";
|
||||||
|
|
||||||
print SOURCE " stqd \$0, 16(\$sp) \/\* save caller address \*\/\n";
|
print SOURCE " stqd \$0, 16(\$sp) \/\* save caller address \*\/\n";
|
||||||
|
@ -93,6 +94,8 @@ while ($line = <DEFS>) {
|
||||||
print SOURCE " lqd \$0, 16(\$sp) \/\* load caller address \*\/\n";
|
print SOURCE " lqd \$0, 16(\$sp) \/\* load caller address \*\/\n";
|
||||||
print SOURCE " bi \$0 \/\* return to caller \*\/\n";
|
print SOURCE " bi \$0 \/\* return to caller \*\/\n";
|
||||||
|
|
||||||
|
print SOURCE " .size ", $name, ", .-", $name, "\n";
|
||||||
|
|
||||||
close(SOURCE);
|
close(SOURCE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
.text
|
.text
|
||||||
.align 4
|
.align 4
|
||||||
GLOBL printf
|
GLOBL printf
|
||||||
|
.type printf, @function
|
||||||
printf:
|
printf:
|
||||||
stqd $0, 16($sp) /* save caller address */
|
stqd $0, 16($sp) /* save caller address */
|
||||||
il $2, 1 /* number of fixed arguments */
|
il $2, 1 /* number of fixed arguments */
|
||||||
|
@ -47,3 +48,4 @@ printf:
|
||||||
a $sp, $sp, $2
|
a $sp, $sp, $2
|
||||||
lqd $0, 16($sp) /* load caller address */
|
lqd $0, 16($sp) /* load caller address */
|
||||||
bi $0 /* return to caller */
|
bi $0 /* return to caller */
|
||||||
|
.size printf, .-printf
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
.text
|
.text
|
||||||
.align 4
|
.align 4
|
||||||
GLOBL scanf
|
GLOBL scanf
|
||||||
|
.type scanf, @function
|
||||||
scanf:
|
scanf:
|
||||||
stqd $0, 16($sp) /* save caller address */
|
stqd $0, 16($sp) /* save caller address */
|
||||||
il $2, 1 /* number of fixed arguments */
|
il $2, 1 /* number of fixed arguments */
|
||||||
|
@ -47,3 +48,4 @@ scanf:
|
||||||
a $sp, $sp, $2
|
a $sp, $sp, $2
|
||||||
lqd $0, 16($sp) /* load caller address */
|
lqd $0, 16($sp) /* load caller address */
|
||||||
bi $0 /* return to caller */
|
bi $0 /* return to caller */
|
||||||
|
.size scanf, .-scanf
|
||||||
|
|
|
@ -36,6 +36,7 @@ Author: Andreas Neukoetter (ti95neuk@de.ibm.com)
|
||||||
.text
|
.text
|
||||||
.align 2
|
.align 2
|
||||||
.global setjmp
|
.global setjmp
|
||||||
|
.type setjmp, @function
|
||||||
setjmp:
|
setjmp:
|
||||||
stqd $80, 2*16($3)
|
stqd $80, 2*16($3)
|
||||||
stqd $81, 3*16($3)
|
stqd $81, 3*16($3)
|
||||||
|
@ -97,6 +98,7 @@ setjmp:
|
||||||
|
|
||||||
setjmp_ret:
|
setjmp_ret:
|
||||||
bi $0
|
bi $0
|
||||||
|
.size setjmp, .-setjmp
|
||||||
|
|
||||||
/*
|
/*
|
||||||
int longjmp( jmp_buf env, int val );
|
int longjmp( jmp_buf env, int val );
|
||||||
|
@ -104,6 +106,7 @@ setjmp_ret:
|
||||||
.text
|
.text
|
||||||
.align 2
|
.align 2
|
||||||
.global longjmp
|
.global longjmp
|
||||||
|
.type longjmp, @function
|
||||||
longjmp:
|
longjmp:
|
||||||
lr $127, $1
|
lr $127, $1
|
||||||
|
|
||||||
|
@ -176,4 +179,5 @@ longjmp:
|
||||||
|
|
||||||
longjmp_ret:
|
longjmp_ret:
|
||||||
bi $0
|
bi $0
|
||||||
|
.size longjmp, .-longjmp
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
.text
|
.text
|
||||||
.align 4
|
.align 4
|
||||||
GLOBL snprintf
|
GLOBL snprintf
|
||||||
|
.type snprintf, @function
|
||||||
snprintf:
|
snprintf:
|
||||||
stqd $0, 16($sp) /* save caller address */
|
stqd $0, 16($sp) /* save caller address */
|
||||||
il $2, 3 /* number of fixed arguments */
|
il $2, 3 /* number of fixed arguments */
|
||||||
|
@ -47,3 +48,4 @@ snprintf:
|
||||||
a $sp, $sp, $2
|
a $sp, $sp, $2
|
||||||
lqd $0, 16($sp) /* load caller address */
|
lqd $0, 16($sp) /* load caller address */
|
||||||
bi $0 /* return to caller */
|
bi $0 /* return to caller */
|
||||||
|
.size snprintf, .-snprintf
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
.text
|
.text
|
||||||
.align 4
|
.align 4
|
||||||
GLOBL sprintf
|
GLOBL sprintf
|
||||||
|
.type sprintf, @function
|
||||||
sprintf:
|
sprintf:
|
||||||
stqd $0, 16($sp) /* save caller address */
|
stqd $0, 16($sp) /* save caller address */
|
||||||
il $2, 2 /* number of fixed arguments */
|
il $2, 2 /* number of fixed arguments */
|
||||||
|
@ -47,3 +48,4 @@ sprintf:
|
||||||
a $sp, $sp, $2
|
a $sp, $sp, $2
|
||||||
lqd $0, 16($sp) /* load caller address */
|
lqd $0, 16($sp) /* load caller address */
|
||||||
bi $0 /* return to caller */
|
bi $0 /* return to caller */
|
||||||
|
.size sprintf, .-sprintf
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
.text
|
.text
|
||||||
.align 4
|
.align 4
|
||||||
GLOBL sscanf
|
GLOBL sscanf
|
||||||
|
.type sscanf, @function
|
||||||
sscanf:
|
sscanf:
|
||||||
stqd $0, 16($sp) /* save caller address */
|
stqd $0, 16($sp) /* save caller address */
|
||||||
il $2, 2 /* number of fixed arguments */
|
il $2, 2 /* number of fixed arguments */
|
||||||
|
@ -47,3 +48,4 @@ sscanf:
|
||||||
a $sp, $sp, $2
|
a $sp, $sp, $2
|
||||||
lqd $0, 16($sp) /* load caller address */
|
lqd $0, 16($sp) /* load caller address */
|
||||||
bi $0 /* return to caller */
|
bi $0 /* return to caller */
|
||||||
|
.size sscanf, .-sscanf
|
||||||
|
|
|
@ -85,6 +85,7 @@
|
||||||
|
|
||||||
.text
|
.text
|
||||||
.global __stack_reg_va
|
.global __stack_reg_va
|
||||||
|
.type __stack_reg_va, @function
|
||||||
|
|
||||||
__stack_reg_va:
|
__stack_reg_va:
|
||||||
|
|
||||||
|
@ -164,3 +165,6 @@ save_regs_2:
|
||||||
ai ptr, ptr, -16
|
ai ptr, ptr, -16
|
||||||
brz tmp, save_regs_1 /* if (tmp == 0) jump */
|
brz tmp, save_regs_1 /* if (tmp == 0) jump */
|
||||||
bi link /* finish to make va_list */
|
bi link /* finish to make va_list */
|
||||||
|
|
||||||
|
.size __stack_reg_va, .-__stack_reg_va
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue