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
e4e873f1
Commit
e4e873f1
authored
Mar 25, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_function_prologue): Use link.w on 68040; emit pea fp + movl
sp,fp instead of linkw 0 for 6804.0 From-SVN: r6898
parent
629c5b50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
gcc/config/m68k/m68k.c
+16
-3
No files found.
gcc/config/m68k/m68k.c
View file @
e4e873f1
/* Subroutines for insn-output.c for Motorola 68000 family.
Copyright (C) 1987, 1993 Free Software Foundation, Inc.
Copyright (C) 1987, 1993
, 1994
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -93,8 +93,20 @@ output_function_prologue (stream, size)
if
(
frame_pointer_needed
)
{
/* Adding negative number is faster on the 68040. */
if
(
fsize
<
0x8000
&&
!
TARGET_68040
)
if
(
fsize
==
0
&&
TARGET_68040_ONLY
)
{
/* on the 68040, pea + move is faster than link.w 0 */
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
pea (%s)
\n\t
move.l %s,%s
\n
"
,
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
"
,
reg_names
[
FRAME_POINTER_REGNUM
],
reg_names
[
STACK_POINTER_REGNUM
],
reg_names
[
FRAME_POINTER_REGNUM
]);
#endif
}
else
if
(
fsize
<
0x8000
)
{
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
link.w %s,%0I%d
\n
"
,
...
...
@@ -116,6 +128,7 @@ output_function_prologue (stream, size)
}
else
{
/* Adding negative number is faster on the 68040. */
#ifdef MOTOROLA
asm_fprintf
(
stream
,
"
\t
link.w %s,%0I0
\n\t
add.l %0I%d,%Rsp
\n
"
,
reg_names
[
FRAME_POINTER_REGNUM
],
-
fsize
);
...
...
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