This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] hookize FUNCTION_ARG_BOUNDARY
- From: Richard Henderson <rth at redhat dot com>
- To: Nathan Froyd <froydnj at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 16 Nov 2010 07:43:01 -0800
- Subject: Re: [PATCH] hookize FUNCTION_ARG_BOUNDARY
- References: <20101116034229.GB24469@nightcrawler>
On 11/15/2010 07:42 PM, Nathan Froyd wrote:
> +/* If defined, a C expression that gives the alignment boundary, in bits,
> + of an argument with the specified mode and type. If it is not defined,
> + PARM_BOUNDARY is used for all arguments. */
> +#define FUNCTION_ARG_BOUNDARY(MODE, TYPE) \
> +/* Worker function for TARGET_FUNCTION_ARG_BOUNDARY. */
Paste-o with that #define, surely.
> +static unsigned int
> +pa_function_arg_boundary (enum machine_mode mode, const_tree type)
> +{
> + tree size = TYPE_SIZE (type);
> + bool singleword = (type
> + ? (integer_zerop (size)
> + || !TREE_CONSTANT (size)
> + || int_size_in_bytes (type) <= UNITS_PER_WORD)
> + : GET_MODE_SIZE (mode));
Missing a comparison vs U_P_W here.
> - : GET_MODE_SIZE(MODE) <= UNITS_PER_WORD) \
... from here.
r~