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


On Sat, 4 Sep 2010, Philip Herron wrote:

> Hey all,
> 
> I started to work on this again for a little bit, i followed the
> gcc/gfrotranspec.c compiler driver since its such a pristine driver
> its hard not to copy it.

My previous comments still apply: copying code with random changes is bad 
and leads to gratuitous divergence as subsequent improvements don't get 
applied to all the copies, refactoring so that code can be shared is good.  
It may be possible to reduce the C, C++ and Fortran drivers to a single 
piece of shared code that takes a datastructure describing the libraries 
required by the respective languages; certainly, patches that increase 
code sharing and reduce the amount of ObjC-specific code needed for an 
ObjC-specific driver would be a much better start than going straight into 
writing that driver.

-- 
Joseph S. Myers
joseph@codesourcery.com


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