------- Comment #18 from fxcoudert at gcc dot gnu dot org  2008-02-22 00:34 
-------
Created an attachment (id=15203)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15203&action=view)
Partial patch

Another approach, maybe more efficient, is to offer a target hook to "fix
builtins" after they're defined. That's the approach Andrew favoured in PR
25850. Putting together Andrew's code, the list of functions to fix by Mike
(where non-builtins have been removed, and variadic functions are fixed
conditionaly on macos_version_min, as per Geoff's advice... we get the patch
attached. The only thing remaining, as far as I can see, is to find where to
call this single target hook: Paolo, Uros, could you work that bit out? (It's
probably trivial for someone who knows the guts of the middle-end, but I
don't.)

PS: I also need to find how to make that part of darwin.c compiled only for
PowerPC. The "#if defined (TARGET_TOC)" trick is apparently used in other
places in darwin.c, but I'm a bit reluctant. Isn't there a Better Way?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25477

Reply via email to