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: Objective C/C++ Compiler Drivers


Hey all

I've built up a set of functions in making compiler drivers much
simpler now i would like some feedback on the patch it gives objc a
working compiler driver now and thanks to IainS for your Make-lang.in
to fix my compiler driver name and installing routines.

The routines follow the idea of the Fortran front-end in logic but its
much simpler in adding argument i think, once you do the initial check
it sets up plenty of variables then you tell it what your runtime
library is and if you need the math lib and if its a specific lib or
not. Then you transform the arguments into a new array and once that's
done you are free to do what you will.

I was unsure on where i should be sticking these routines so i just
created a file along side the objc driver (driver-utils.c) and put the
code in there, i had some problems moving things into gcc.c then i got
a little confused in what i was doing since it didn't seem to really
like my extern'd variables when the static lib was create it
complained about missing variable declarations which the driver was
going to declare and i got a bit messed up so i just started clean and
hope some of you guys could shed some light on where things might take
place better and hopefuly some more feedback on this not sure if its
quite what you all had in mind or not... :)

--Phil

Attachment: objc-driver.patch
Description: Binary data


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