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

Re: [PATCH] New pragma handling mechanism.


Dmitry Kurochkin wrote:
1. Add an argument to each pragma, like "requires statement",
"requires declaration".
2. Every pragma handler returns a pointer to struct or NULL. This
struct describes the parsed pragma. For example, private and shared
variables list for some OMP pragmas.
3. When front end gets a pragma token, it is parsed, then if the
pragma requires statement or declaration, front end parses it, and
attaches the return value from pragma handler to it.
4. During gimplification all attached pragmas are handled in some way.

What do you think of this?

Yes, that's roughly what I proposed. So, I think it's fine, but RTH thinks its over-engineered.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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