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
2d0933a2
Commit
2d0933a2
authored
Apr 06, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_function_prologue): pea/move: Fix typos.
asm_fprintf("add%.[wl] ...): Undo previous change. From-SVN: r6970
parent
a78a8d58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
6 deletions
+26
-6
gcc/config/m68k/m68k.c
+26
-6
No files found.
gcc/config/m68k/m68k.c
View file @
2d0933a2
...
...
@@ -93,7 +93,7 @@ output_function_prologue (stream, size)
if
(
frame_pointer_needed
)
{
if
(
fsize
==
0
&&
TARGET_68040
_ONLY
)
if
(
fsize
==
0
&&
TARGET_68040
)
{
/* on the 68040, pea + move is faster than link.w 0 */
#ifdef MOTOROLA
...
...
@@ -101,7 +101,7 @@ output_function_prologue (stream, size)
reg_names
[
FRAME_POINTER_REGNUM
],
reg_names
[
STACK_POINTER_REGNUM
],
reg_names
[
FRAME_POINTER_REGNUM
]);
#else
asm_fprintf
(
stream
,
"
\t
pea %s
\
@
\n\t
movel %s,%s
\n
"
,
asm_fprintf
(
stream
,
"
\t
pea %s@
\n\t
movel %s,%s
\n
"
,
reg_names
[
FRAME_POINTER_REGNUM
],
reg_names
[
STACK_POINTER_REGNUM
],
reg_names
[
FRAME_POINTER_REGNUM
]);
#endif
...
...
@@ -143,11 +143,21 @@ output_function_prologue (stream, size)
/* Adding negative number is faster on the 68040. */
if
(
fsize
+
4
<
0x8000
)
{
asm_fprintf
(
stream
,
"
\t
add%.w %0I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
/* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
add.w %0I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
#else
asm_fprintf
(
stream
,
"
\t
addw %0I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
#endif
}
else
{
asm_fprintf
(
stream
,
"
\t
add%.l %0I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
/* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
add.l %0I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
#else
asm_fprintf
(
stream
,
"
\t
addl %0I%d,%Rsp
\n
"
,
-
(
fsize
+
4
));
#endif
}
}
#ifdef SUPPORT_SUN_FPA
...
...
@@ -501,11 +511,21 @@ output_function_epilogue (stream, size)
{
if
(
fsize
+
4
<
0x8000
)
{
asm_fprintf
(
stream
,
"
\t
add%.w %0I%d,%Rsp
\n
"
,
fsize
+
4
);
/* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
add.w %0I%d,%Rsp
\n
"
,
fsize
+
4
);
#else
asm_fprintf
(
stream
,
"
\t
addw %0I%d,%Rsp
\n
"
,
fsize
+
4
);
#endif
}
else
{
asm_fprintf
(
stream
,
"
\t
add%.l %0I%d,%Rsp
\n
"
,
fsize
+
4
);
/* asm_fprintf() cannot handle %. */
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
add.l %0I%d,%Rsp
\n
"
,
fsize
+
4
);
#else
asm_fprintf
(
stream
,
"
\t
addl %0I%d,%Rsp
\n
"
,
fsize
+
4
);
#endif
}
}
if
(
current_function_pops_args
)
...
...
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