aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2007-07-30 19:36:10 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2007-07-30 19:36:10 +0000
commit2786eb8dbf8909fc0af3991043eaae77741cbeb0 (patch)
tree4265b03a4f2a2a03b5f62b846db43416b4643dcb /gcc
parentccfc4c91bb38ae91e4fe206fca657366e5f7caa7 (diff)
downloadgcc-2786eb8dbf8909fc0af3991043eaae77741cbeb0.zip
gcc-2786eb8dbf8909fc0af3991043eaae77741cbeb0.tar.gz
gcc-2786eb8dbf8909fc0af3991043eaae77741cbeb0.tar.bz2
lb1sf68.asm (FUNC): New macro.
gcc/ * config/m68k/lb1sf68.asm (FUNC): New macro. (__mulsi3): Use it. (__udivsi3): Likewise. (__divsi3): Likewise. (__umodsi3): Likewise. (__modsi3): Likewise. (__subdf3): Likewise. (__adddf3): Likewise. (__muldf3): Likewise. (__divdf3): Likewise. (__negdf2): Likewise. (__cmpdf2): Likewise. (__subsf3): Likewise. (__addsf3): Likewise. (__mulsf3): Likewise. (__divsf3): Likewise. (__negsf2): Likewise. (__cmpsf2): Likewise. (__eqdf2): Likewise. (__nedf2): Likewise. (__gtdf2): Likewise. (__gedf2): Likewise. (__ltdf2): Likewise. (__ledf2): Likewise. (__eqsf2): Likewise. (__nesf2): Likewise. (__gtsf2): Likewise. (__gesf2): Likewise. (__ltsf2): Likewise. (__lesf2): Likewise. From-SVN: r127069
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog34
-rw-r--r--gcc/config/m68k/lb1sf68.asm58
2 files changed, 75 insertions, 17 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a2371b0..a67cc1f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,37 @@
+2007-07-29 Mark Mitchell <mark@codesourcery.com>
+
+ gcc/
+ * config/m68k/lb1sf68.asm (FUNC): New macro.
+ (__mulsi3): Use it.
+ (__udivsi3): Likewise.
+ (__divsi3): Likewise.
+ (__umodsi3): Likewise.
+ (__modsi3): Likewise.
+ (__subdf3): Likewise.
+ (__adddf3): Likewise.
+ (__muldf3): Likewise.
+ (__divdf3): Likewise.
+ (__negdf2): Likewise.
+ (__cmpdf2): Likewise.
+ (__subsf3): Likewise.
+ (__addsf3): Likewise.
+ (__mulsf3): Likewise.
+ (__divsf3): Likewise.
+ (__negsf2): Likewise.
+ (__cmpsf2): Likewise.
+ (__eqdf2): Likewise.
+ (__nedf2): Likewise.
+ (__gtdf2): Likewise.
+ (__gedf2): Likewise.
+ (__ltdf2): Likewise.
+ (__ledf2): Likewise.
+ (__eqsf2): Likewise.
+ (__nesf2): Likewise.
+ (__gtsf2): Likewise.
+ (__gesf2): Likewise.
+ (__ltsf2): Likewise.
+ (__lesf2): Likewise.
+
2007-07-30 Ollie Wild <aaw@google.com>
* c-ppoutput.c (print_lines_directives_only): New function.
diff --git a/gcc/config/m68k/lb1sf68.asm b/gcc/config/m68k/lb1sf68.asm
index edb907c..d09213f 100644
--- a/gcc/config/m68k/lb1sf68.asm
+++ b/gcc/config/m68k/lb1sf68.asm
@@ -61,6 +61,18 @@ Boston, MA 02110-1301, USA. */
#define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
+/* Note that X is a function. */
+
+#ifdef __ELF__
+#define FUNC(x) .type SYM(x),function
+#else
+/* The .proc pseudo-op is accepted, but ignored, by GAS. We could just
+ define this to the empty string for non-ELF systems, but defining it
+ to .proc means that the information is available to the assembler if
+ the need arises. */
+#define FUNC(x) .proc
+#endif
+
/* Use the right prefix for registers. */
#define REG(x) CONCAT1 (__REGISTER_PREFIX__, x)
@@ -377,7 +389,7 @@ $_exception_handler:
#ifdef L_mulsi3
.text
- .proc
+ FUNC(__mulsi3)
.globl SYM (__mulsi3)
SYM (__mulsi3):
movew sp@(4), d0 /* x0 -> d0 */
@@ -400,7 +412,7 @@ SYM (__mulsi3):
#ifdef L_udivsi3
.text
- .proc
+ FUNC(__udivsi3)
.globl SYM (__udivsi3)
SYM (__udivsi3):
#ifndef __mcoldfire__
@@ -476,7 +488,7 @@ L2: subql IMM (1),d4
#ifdef L_divsi3
.text
- .proc
+ FUNC(__divsi3)
.globl SYM (__divsi3)
SYM (__divsi3):
movel d2, sp@-
@@ -514,7 +526,7 @@ L3: movel sp@+, d2
#ifdef L_umodsi3
.text
- .proc
+ FUNC(__umodsi3)
.globl SYM (__umodsi3)
SYM (__umodsi3):
movel sp@(8), d1 /* d1 = divisor */
@@ -540,7 +552,7 @@ SYM (__umodsi3):
#ifdef L_modsi3
.text
- .proc
+ FUNC(__modsi3)
.globl SYM (__modsi3)
SYM (__modsi3):
movel sp@(8), d1 /* d1 = divisor */
@@ -683,6 +695,7 @@ Ld$div$0:
|=============================================================================
| double __subdf3(double, double);
+ FUNC(__subdf3)
SYM (__subdf3):
bchg IMM (31),sp@(12) | change sign of second operand
| and fall through, so we always add
@@ -691,6 +704,7 @@ SYM (__subdf3):
|=============================================================================
| double __adddf3(double, double);
+ FUNC(__adddf3)
SYM (__adddf3):
#ifndef __mcoldfire__
link a6,IMM (0) | everything will be done in registers
@@ -1414,6 +1428,7 @@ Ladddf$nf:
|=============================================================================
| double __muldf3(double, double);
+ FUNC(__muldf3)
SYM (__muldf3):
#ifndef __mcoldfire__
link a6,IMM (0)
@@ -1746,6 +1761,7 @@ Lmuldf$b$den:
|=============================================================================
| double __divdf3(double, double);
+ FUNC(__divdf3)
SYM (__divdf3):
#ifndef __mcoldfire__
link a6,IMM (0)
@@ -2187,6 +2203,7 @@ Lround$0:
|=============================================================================
| double __negdf2(double, double);
+ FUNC(__negdf2)
SYM (__negdf2):
#ifndef __mcoldfire__
link a6,IMM (0)
@@ -2359,6 +2376,7 @@ Lcmpd$inop:
PICJUMP $_exception_handler
| int __cmpdf2(double, double);
+ FUNC(__cmpdf2)
SYM (__cmpdf2):
link a6,IMM (0)
pea 1
@@ -2587,6 +2605,7 @@ Lf$div$0:
|=============================================================================
| float __subsf3(float, float);
+ FUNC(__subsf3)
SYM (__subsf3):
bchg IMM (31),sp@(8) | change sign of second operand
| and fall through
@@ -2595,6 +2614,7 @@ SYM (__subsf3):
|=============================================================================
| float __addsf3(float, float);
+ FUNC(__addsf3)
SYM (__addsf3):
#ifndef __mcoldfire__
link a6,IMM (0) | everything will be done in registers
@@ -3081,6 +3101,7 @@ Laddsf$nf:
|=============================================================================
| float __mulsf3(float, float);
+ FUNC(__mulsf3)
SYM (__mulsf3):
#ifndef __mcoldfire__
link a6,IMM (0)
@@ -3295,6 +3316,7 @@ Lmulsf$b$den:
|=============================================================================
| float __divsf3(float, float);
+ FUNC(__divsf3)
SYM (__divsf3):
#ifndef __mcoldfire__
link a6,IMM (0)
@@ -3620,6 +3642,7 @@ Lround$0:
| and +/-INFINITY.
| float __negsf2(float);
+ FUNC(__negsf2)
SYM (__negsf2):
#ifndef __mcoldfire__
link a6,IMM (0)
@@ -3761,6 +3784,7 @@ Lcmpf$inop:
PICJUMP $_exception_handler
| int __cmpsf2(float, float);
+ FUNC(__cmpsf2)
SYM (__cmpsf2):
link a6,IMM (0)
pea 1
@@ -3859,7 +3883,7 @@ Lround$to$minus:
#ifdef L_eqdf2
.text
- .proc
+ FUNC(__eqdf2)
.globl SYM (__eqdf2)
SYM (__eqdf2):
link a6,IMM (0)
@@ -3875,7 +3899,7 @@ SYM (__eqdf2):
#ifdef L_nedf2
.text
- .proc
+ FUNC(__nedf2)
.globl SYM (__nedf2)
SYM (__nedf2):
link a6,IMM (0)
@@ -3891,7 +3915,7 @@ SYM (__nedf2):
#ifdef L_gtdf2
.text
- .proc
+ FUNC(__gtdf2)
.globl SYM (__gtdf2)
SYM (__gtdf2):
link a6,IMM (0)
@@ -3907,7 +3931,7 @@ SYM (__gtdf2):
#ifdef L_gedf2
.text
- .proc
+ FUNC(__gedf2)
.globl SYM (__gedf2)
SYM (__gedf2):
link a6,IMM (0)
@@ -3923,7 +3947,7 @@ SYM (__gedf2):
#ifdef L_ltdf2
.text
- .proc
+ FUNC(__ltdf2)
.globl SYM (__ltdf2)
SYM (__ltdf2):
link a6,IMM (0)
@@ -3939,7 +3963,7 @@ SYM (__ltdf2):
#ifdef L_ledf2
.text
- .proc
+ FUNC(__ledf2)
.globl SYM (__ledf2)
SYM (__ledf2):
link a6,IMM (0)
@@ -3958,7 +3982,7 @@ SYM (__ledf2):
#ifdef L_eqsf2
.text
- .proc
+ FUNC(__eqsf2)
.globl SYM (__eqsf2)
SYM (__eqsf2):
link a6,IMM (0)
@@ -3972,7 +3996,7 @@ SYM (__eqsf2):
#ifdef L_nesf2
.text
- .proc
+ FUNC(__nesf2)
.globl SYM (__nesf2)
SYM (__nesf2):
link a6,IMM (0)
@@ -3986,7 +4010,7 @@ SYM (__nesf2):
#ifdef L_gtsf2
.text
- .proc
+ FUNC(__gtsf2)
.globl SYM (__gtsf2)
SYM (__gtsf2):
link a6,IMM (0)
@@ -4000,7 +4024,7 @@ SYM (__gtsf2):
#ifdef L_gesf2
.text
- .proc
+ FUNC(__gesf2)
.globl SYM (__gesf2)
SYM (__gesf2):
link a6,IMM (0)
@@ -4014,7 +4038,7 @@ SYM (__gesf2):
#ifdef L_ltsf2
.text
- .proc
+ FUNC(__ltsf2)
.globl SYM (__ltsf2)
SYM (__ltsf2):
link a6,IMM (0)
@@ -4028,7 +4052,7 @@ SYM (__ltsf2):
#ifdef L_lesf2
.text
- .proc
+ FUNC(__lesf2)
.globl SYM (__lesf2)
SYM (__lesf2):
link a6,IMM (0)