This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C6X port 8/11: A new FUNCTION_ARG macro


On 05/17/2011 06:34 AM, Paolo Bonzini wrote:
> On 05/12/2011 05:40 PM, Bernd Schmidt wrote:
>> +  if (targetm.calls.function_arg_round_to_arg_boundary (passed_mode,
>> type))
>> +    round_boundary = boundary;
>> +  else
>> +    round_boundary = PARM_BOUNDARY;
> 
> Why add an if, instead of making the new target hook
> function_arg_round_boundary?  The default implementation can then reuse
> default_function_arg_boundary and C6X will redefine it to
> c6x_function_arg_boundary.

Like this? Untested so far beyond making sure it builds.


Bernd

Attachment: farb.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]