On 10/12/2009 08:09 AM, Bingfeng Mei wrote:
Richard, Doesn't REGISTER_TARGET_PRAGMAS need to call c_register_pragma, etc, if we want to specify target-specific pragma? It becomes part of libbackend.a, which is linked to lto1. One solution I see is to put them into a separate file so the linker won't produce undefined references when they are not actually used by lto1.
The separate file solution is used by all of the other targets that have special pragmas, e.g. config/ia64/ia64-c.c.
r~