summaryrefslogtreecommitdiff
path: root/gcc/config/pdp11
diff options
context:
space:
mode:
authorPaul Koning <ni1d@arrl.net>2010-11-18 20:58:41 -0500
committerPaul Koning <pkoning@gcc.gnu.org>2010-11-18 20:58:41 -0500
commit7cf18eeea51ddaf914dbc4318ce98b6de94f257c (patch)
treef6810d5f493e3c5b2f8e20faeb97a87d4b0ab0de /gcc/config/pdp11
parent13478fb03982669ad0d8230f3a9220d10b80cb13 (diff)
downloadgcc-7cf18eeea51ddaf914dbc4318ce98b6de94f257c.tar.gz
pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame pointer.
* config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame pointer. From-SVN: r166929
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).