Question about plugin pragmas

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, I am working on the development of gcc plugin. I use PLUGIN_PRAGMAS callback to register custom pragma, and add the custom pragma in my tested source file(between an 'if' and an 'else'). However, this will trigger an error saying "else without a previous if".
It seems this pragma will make an obstacle between the 'if' and the 'else'.
This is quite confusing, because if I modify the source of gcc(directives.c) directly, and register custom pragma using register_pragma_internal() in gcc source instead of plugin, the problem no longer exists, the 'else' succeeds to find the 'if'.
I wonder how to avoid this issue in plugin without modifying gcc source. Thanks for your help.






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux