This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
options for compiling C using C++ compiler [trying 1 more time]
- From: "John R" <x-list-subscriptions at hotmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 14 Dec 2005 18:49:18 -0800
- Subject: options for compiling C using C++ compiler [trying 1 more time]
- Bcc:
I'm working on a project where I post-process AST (.tu) output from gcc
using the -fdump-translation-unit option.
Problem is the C compiler does not generate useful AST data. So I actually
run the preprocessed source again thru g++ to get AST data. This works fine
unless there are constructs not allowed under C++. Particular problems are
bool and other keyword stuff and K&R style function declarations.
I'm trying to find the best way to minimize the problem via options or other
ways. I already use "-fpermissive" and this eases it a bit.
Suggestions?
-J
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/