* config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
pointer.
From-SVN: r166929
+2010-11-18 Paul Koning <ni1d@arrl.net>
+
+ * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
+ pointer.
+
2010-11-18 Paul Koning <ni1d@arrl.net>
* config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
/* 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).