Michael Meissner wrote: > On Wed, May 26, 2010 at 08:09:57PM +0200, Ulrich Weigand wrote: > > In the current patch, the SPU back-end uses somewhat of a hack to actually > > perform that call: it is included in the REGISTER_TARGET_PRAGMAS macro. > > Note that this macro is already being used by the SPU and several other > > back-end for similar hacks. It seems that it might be a good idea to > > replace this by something like a "register_target_extensions" callback > > in targetcm, but that can probably be done in a separate patch. > > Note, many of the things done by REGISTER_TARGET_PRAGMAS deal with the > preprocessor and keywords, which are used by the C-like front ends, but not > used for Ada, Fortran, etc. Those front ends don't link in libcpp. So, you > need something in <machine>-c.c that sets the hook, rather than moving it to > <machine>.c.
Indeed, that's why I suggested a targetcm hook instead of a targetm hook; this seems to be the intended purpose of targetcm ... Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE ulrich.weig...@de.ibm.com