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
ad92f794
Commit
ad92f794
authored
Jan 31, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(MACHINE_STATE_{SAVE,RESTORE}): Allow MOTOROLA syntax.
From-SVN: r11126
parent
b107aaf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
gcc/config/m68k/m68k.h
+19
-7
No files found.
gcc/config/m68k/m68k.h
View file @
ad92f794
/* Definitions of target machine for GNU compiler. Sun 68000/68020 version.
/* Definitions of target machine for GNU compiler. Sun 68000/68020 version.
Copyright (C) 1987,
1988, 1993, 1994, 1995
Free Software Foundation, Inc.
Copyright (C) 1987,
88, 93, 94, 95, 1996
Free Software Foundation, Inc.
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -926,15 +926,27 @@ while(0)
...
@@ -926,15 +926,27 @@ while(0)
/* Save all registers which may be clobbered by a function call. */
/* Save all registers which may be clobbered by a function call. */
#define MACHINE_STATE_SAVE(id) \
#ifdef MOTOROLA
asm (" movew cc,sp@-"); \
#define MACHINE_STATE_SAVE(id) \
asm (" moveml d0/d1/a0/a1,sp@-");
asm ("move.w %ccr,-(%sp)"); \
asm ("movm.l &0xc0c0,-(%sp)");
#else
#define MACHINE_STATE_SAVE(id) \
asm ("movew cc,sp@-"); \
asm ("moveml d0/d1/a0/a1,sp@-");
#endif
/* Restore all registers saved by MACHINE_STATE_SAVE. */
/* Restore all registers saved by MACHINE_STATE_SAVE. */
#define MACHINE_STATE_RESTORE(id) \
#ifdef MOTOROLA
asm (" moveml sp@+,d0/d1/a0/a1"); \
#define MACHINE_STATE_RESTORE(id) \
asm (" movew sp@+,cc");
asm ("movm.l (%sp)+,&0x0303"); \
asm ("move.w (%sp)+,%ccr");
#else
#define MACHINE_STATE_RESTORE(id) \
asm ("moveml sp@+,d0/d1/a0/a1"); \
asm ("movew sp@+,cc");
#endif
/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
/* EXIT_IGNORE_STACK should be nonzero if, when returning from a function,
the stack pointer does not matter. The value is tested only in
the stack pointer does not matter. The value is tested only in
...
...
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