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: [gomp RFA] Remove c-semantics.c from C++ front-end


I should make it clear that I consider using a branch for logically distinct changes (parser changes and OpenMP) is not very useful: each parser-related change (such as this one) would need to go to mainline separately rather than together or as part of a branch merge.

I was meaning to merge these parts at the beginning of stage1. If the series had continued it would have been too invasive now for mainline; I do not propose this one for mainline because there I'd remove c-semantics.c entirely.


While working on a structured design document, I had tried removing most of the C++ parser and leaving only the parts that parse expressions and statements (no decls). That was just to get an impression about the feasibility of this approach.

I had put stubs of the functions in the C++ front-end (e.g. finish_while_stmt) into my c-semantics.c; my plan was to extract code from the Bison actions into c-semantics.c. You're way ahead of me, so I'll wait.

> The parser will be posted when it parses the whole of GNU C.

Why not work on gomp-branch? (I suppose it depends on your expected timeline).

So I'll only commit this part, and not the one for break/continue. Thanks for screaming. :-)

Paolo


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