This is the mail archive of the gcc@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: gfortran+libcpp: linking objects from c-compiler


>>>>> "Daniel" == Daniel Franke <franke.daniel@gmail.com> writes:

Daniel> Is it acceptable to simply link in the C-frontend object to
Daniel> gfortran (as C is a required language and the .o file will be
Daniel> available)? Do I need to do something else in addition or
Daniel> instead, like renaming or moving functions, pushing them to a
Daniel> library or anything else?

I think the usual rule is that c-* files are either specific to the C
front end, or in some cases, shared by the C family of front ends.

Perhaps this particular file could just be renamed and added to
libbackend.a.

This isn't completely ideal, because c-incpath.c refers to cpp_reader
and some front ends don't actually need libcpp ... but if I read the
Makefile correctly it looks like all the front ends already link to
libcpp, so maybe it isn't a big deal.

Tom


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