Patch [PPC-Darwin] to fix ICE when Altivec argument is passed to function with no prototype.

Fariborz Jahanian fjahanian@apple.com
Fri Mar 4 16:46:00 GMT 2005


On Mar 4, 2005, at 8:18 AM, Mark Mitchell wrote:

> Fariborz Jahanian wrote:
>
> Yes, you need a target hook to use to check whether or not a 
> particular call is OK.
>
> Something like:
>
>   /* Returns NULL if an argument of the indicated TYPE can be passed to
>      an unprototyped function.  If this function returns non-NULL, the
>      string returned is an error message that explains why TYPE cannot
>      be passed to an unprototyped function.  */
>   const char *valid_arg_for_unprototyped_fn (tree type);

Sigh. I was trying to avoid this; no such luck :).

- fariborz

>
> and then modify the C front end to use that in appropriate places.
>
> -- 
> Mark Mitchell
> CodeSourcery, LLC
> mark@codesourcery.com
> (916) 791-8304



More information about the Gcc-patches mailing list