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
This commit is contained in:
Paul Koning 2010-11-18 20:58:41 -05:00 committed by Paul Koning
parent 13478fb039
commit 7cf18eeea5
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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).