Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
338818c7
Commit
338818c7
authored
Mar 03, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r382
parent
ab408a86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
gcc/config/m68k/m68k.c
+17
-17
gcc/config/m68k/m68k.h
+4
-4
No files found.
gcc/config/m68k/m68k.c
View file @
338818c7
...
@@ -92,30 +92,30 @@ output_function_prologue (stream, size)
...
@@ -92,30 +92,30 @@ output_function_prologue (stream, size)
if
(
fsize
<
0x8000
&&
!
TARGET_68040
)
if
(
fsize
<
0x8000
&&
!
TARGET_68040
)
{
{
#ifdef MOTOROLA
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
link.w %s,%I%d
\n
"
,
asm_fprintf
(
stream
,
"
\t
link.w %s,%
0
I%d
\n
"
,
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
#else
#else
asm_fprintf
(
stream
,
"
\t
link %s,%I%d
\n
"
,
asm_fprintf
(
stream
,
"
\t
link %s,%
0
I%d
\n
"
,
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
#endif
#endif
}
}
else
if
(
TARGET_68020
)
else
if
(
TARGET_68020
)
{
{
#ifdef MOTOROLA
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
link.l %s,%I%d
\n
"
,
asm_fprintf
(
stream
,
"
\t
link.l %s,%
0
I%d
\n
"
,
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
#else
#else
asm_fprintf
(
stream
,
"
\t
link %s,%I%d
\n
"
,
asm_fprintf
(
stream
,
"
\t
link %s,%
0
I%d
\n
"
,
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
#endif
#endif
}
}
else
else
{
{
#ifdef MOTOROLA
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
link.w %s,%I0
\n\t
add.l %I%d,%Rsp
\n
"
,
asm_fprintf
(
stream
,
"
\t
link.w %s,%I0
\n\t
add.l %
0
I%d,%Rsp
\n
"
,
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
#else
#else
asm_fprintf
(
stream
,
"
\t
link %s,%I0
\n\t
addl %I%d,%Rsp
\n
"
,
asm_fprintf
(
stream
,
"
\t
link %s,%I0
\n\t
addl %
0
I%d,%Rsp
\n
"
,
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
#endif
#endif
}
}
...
@@ -126,17 +126,17 @@ output_function_prologue (stream, size)
...
@@ -126,17 +126,17 @@ output_function_prologue (stream, size)
if
(
fsize
+
4
<
0x8000
)
if
(
fsize
+
4
<
0x8000
)
{
{
#ifdef MOTOROLA
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
add.w %I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
asm_fprintf
(
stream
,
"
\t
add.w %
0
I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
#else
#else
asm_fprintf
(
stream
,
"
\t
addw %I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
asm_fprintf
(
stream
,
"
\t
addw %
0
I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
#endif
#endif
}
}
else
else
{
{
#ifdef MOTOROLA
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
add.l %I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
asm_fprintf
(
stream
,
"
\t
add.l %
0
I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
#else
#else
asm_fprintf
(
stream
,
"
\t
addl %I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
asm_fprintf
(
stream
,
"
\t
addl %
0
I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
#endif
#endif
}
}
}
}
...
@@ -303,9 +303,9 @@ output_function_epilogue (stream, size)
...
@@ -303,9 +303,9 @@ output_function_epilogue (stream, size)
&&
(
mask
||
fmask
||
fpoffset
))
&&
(
mask
||
fmask
||
fpoffset
))
{
{
#ifdef MOTOROLA
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
mov.l %I%d,%Ra0
\n
"
,
-
fsize
);
asm_fprintf
(
stream
,
"
\t
mov.l %
0
I%d,%Ra0
\n
"
,
-
fsize
);
#else
#else
asm_fprintf
(
stream
,
"
\t
movel %I%d,%Ra0
\n
"
,
-
fsize
);
asm_fprintf
(
stream
,
"
\t
movel %
0
I%d,%Ra0
\n
"
,
-
fsize
);
#endif
#endif
fsize
=
0
,
big
=
1
;
fsize
=
0
,
big
=
1
;
}
}
...
@@ -485,22 +485,22 @@ output_function_epilogue (stream, size)
...
@@ -485,22 +485,22 @@ output_function_epilogue (stream, size)
if
(
fsize
+
4
<
0x8000
)
if
(
fsize
+
4
<
0x8000
)
{
{
#ifdef MOTOROLA
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
add.w %I%d,%Rsp
\n
"
,
fsize
+
4
);
asm_fprintf
(
stream
,
"
\t
add.w %
0
I%d,%Rsp
\n
"
,
fsize
+
4
);
#else
#else
asm_fprintf
(
stream
,
"
\t
addw %I%d,%Rsp
\n
"
,
fsize
+
4
);
asm_fprintf
(
stream
,
"
\t
addw %
0
I%d,%Rsp
\n
"
,
fsize
+
4
);
#endif
#endif
}
}
else
else
{
{
#ifdef MOTOROLA
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
add.l %I%d,%Rsp
\n
"
,
fsize
+
4
);
asm_fprintf
(
stream
,
"
\t
add.l %
0
I%d,%Rsp
\n
"
,
fsize
+
4
);
#else
#else
asm_fprintf
(
stream
,
"
\t
addl %I%d,%Rsp
\n
"
,
fsize
+
4
);
asm_fprintf
(
stream
,
"
\t
addl %
0
I%d,%Rsp
\n
"
,
fsize
+
4
);
#endif
#endif
}
}
}
}
if
(
current_function_pops_args
)
if
(
current_function_pops_args
)
asm_fprintf
(
stream
,
"
\t
rtd %I%d
\n
"
,
current_function_pops_args
);
asm_fprintf
(
stream
,
"
\t
rtd %
0
I%d
\n
"
,
current_function_pops_args
);
else
else
fprintf
(
stream
,
"
\t
rts
\n
"
);
fprintf
(
stream
,
"
\t
rts
\n
"
);
}
}
...
...
gcc/config/m68k/m68k.h
View file @
338818c7
...
@@ -970,8 +970,8 @@ __transfer_from_trampoline () \
...
@@ -970,8 +970,8 @@ __transfer_from_trampoline () \
{ \
{ \
register char *a0 asm ("%a0"); \
register char *a0 asm ("%a0"); \
asm ("___trampoline:"); \
asm ("___trampoline:"); \
asm volatile ("mov%.l %0,%@" : : "m" (a0[22])); \
asm volatile ("mov
e
%.l %0,%@" : : "m" (a0[22])); \
asm volatile ("mov%.l %1,%0" : "=a" (a0) : "m" (a0[18])); \
asm volatile ("mov
e
%.l %1,%0" : "=a" (a0) : "m" (a0[18])); \
asm ("rts":); \
asm ("rts":); \
}
}
...
@@ -1472,13 +1472,13 @@ __transfer_from_trampoline () \
...
@@ -1472,13 +1472,13 @@ __transfer_from_trampoline () \
`assemble_name' uses this. */
`assemble_name' uses this. */
#define ASM_OUTPUT_LABELREF(FILE,NAME) \
#define ASM_OUTPUT_LABELREF(FILE,NAME) \
asm_fprintf (FILE, "%U%s", NAME)
asm_fprintf (FILE, "%
0
U%s", NAME)
/* This is how to output an internal numbered label where
/* This is how to output an internal numbered label where
PREFIX is the class of label and NUM is the number within the class. */
PREFIX is the class of label and NUM is the number within the class. */
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
asm_fprintf (FILE, "%L%s%d:\n", PREFIX, NUM)
asm_fprintf (FILE, "%
0
L%s%d:\n", PREFIX, NUM)
/* This is how to store into the string LABEL
/* This is how to store into the string LABEL
the symbol_ref name of an internal numbered label where
the symbol_ref name of an internal numbered label where
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment