Cross gcc Mailing List Archive

[Prev][Next][Index][Thread]

Re: Register parameters & m68k-unknown-coff



   Date: Sun, 26 Jan 1997 16:22:35 +0200 (EET)
   From: Iso-H <jd@ray.fi>

    I have problems with mixed register/stack parameter passing.

    I am using registers d0 and d1 for passing first and second parameter
    and stack for the rest.

    To get register parameter passing to work I added these 
    two macro to file "config/m68k/m68k-coff.h":

	  #undef TARGET_REGPARM
	  #define TARGET_REGPARM (1)

	  #undef  FUNCTION_ARG_REGNO_P
	  #define FUNCTION_ARG_REGNO_P(N) ((N)==0 || (N)==1)

    Everything seems to be ok until I used varargs; stack
    parameters works (actually everything works just ok, 
    if I use more than two fixed parameter!) , but register
    parameters not. 


References:

Home | Subject Index | Thread Index