summaryrefslogtreecommitdiff
path: root/gcc/config/pdp11
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/pdp11')
-rw-r--r--gcc/config/pdp11/pdp11.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h
index 08b9d675cde..494d8ce33f8 100644
--- a/gcc/config/pdp11/pdp11.h
+++ b/gcc/config/pdp11/pdp11.h
@@ -372,11 +372,10 @@ extern int current_first_parm_offset;
/* Offset of first parameter from the argument pointer register value.
For the pdp11, this is nonzero to account for the return address.
1 - return address
- 2 - frame pointer (always saved, even when not used!!!!)
- -- change some day !!!:q!
+ 2 - frame pointer, if needed
*/
-#define FIRST_PARM_OFFSET(FNDECL) 4
+#define FIRST_PARM_OFFSET(FNDECL) ((frame_pointer_needed) ? 4 : 2)
/* Define how to find the value returned by a function.
VALTYPE is the data type of the value (as a tree).