This is the mail archive of the gcc@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]

PROPOSAL: targetm.expand_tree_builtin hook


It already lives in the apple-ppc-branch, but I thought it might be of more general interest.
The hook would be invoked from c-common.c:expand_tree_builtin, and would facilitate
target-specific, eager (i.e., the moment you see the function call) TREE-to-TREE transformations.
On Darwin, we use it construct so-called "constant CFStrings", and I'm about to hook up
__builtin_altivec_compiletime_error to it as well (since using the RTL targetm.expand_builtin
hook is too little, too late).


Would there be interest (on behalf of the powers that be) in me whipping up such a patch for the mainline?

Thanks,

--Zem
--------------------------------------------------------------
Ziemowit Laski                 1 Infinite Loop, MS 301-2K
Mac OS X Compiler Group        Cupertino, CA USA  95014-2083
Apple Computer, Inc.           +1.408.974.6229  Fax .5477


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