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]

Pragma callback to insert text in input buffer?


Hi,

I need to handle certain pragmas such that something special is generated in the assembly output roughly at the place that corresponds to the place of the pragma in the source code. Doing this in gcc in a clean way is not possible I guess, so I have to apply a hack. The hack that I want to apply is to insert a text like "asm volatile(...)" in the input buffer of gcc by the pragma callback handler. Gcc will encounter this text after the #pragma is handled. Is this possible? If so how? I hope that cpp_push_buffer() makes this possible.

Regards,
Jan



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