Objective C/C++ Compiler Drivers

IainS developer@sandoe-acoustics.co.uk
Wed Aug 18 07:48:00 GMT 2010


Hi Philip,

On 18 Aug 2010, at 05:37, Philip Herron wrote:

> Following up this thread on gcc-help:
> http://gcc.gnu.org/ml/gcc-help/2010-08/msg00087.html

thanks for looking at this - ObjC* needs all the developers it can  
get :)

> The compiler driver code i added for both is a vanilla driver, which
> could fail though, since i don't tell anything to explicitly link  
> their
> respective runtime libraries

shouldn't be necessary to do anything explicit for a correctly  
installed compiler.

.. but ...
  you will still need to add the relevant  '-B's  & '-L's if you want  
to do uninstalled testing with the driver(s) named specifically -- the  
testsuite already handles the addition of -lxxx for objc/cpp when  
using the xgcc driver.

There is a 'gotcha' with headers that will break testing of darwin if  
you are not careful -- look at the objc-*.exp in gcc/testsuite/libs -  
they determine which runtime is in force and make sure to adjust the  
header paths accordingly.
[Darwin must find the system's installed ObjC headers when testing  
with -fnext-runtime, since the NeXT runtime is part of the system, not  
part of gcc.].

> though i would doubt the objc front-end i
> just tested would generate working code without doing that so i may be
> fine as is.

ObjC++ also needs to add lstdc++ (if you didn't so far, I've not read  
the patch yet).

> I am having problems with the objcp one so far it doesn't seem to get
> installed so i need to look into this though i would like to get a
> review on the patch as it stands so as i know i am on the right track.


I'll try and take a look later (although I'm not an approver of any  
sort, I should add).

cheers,
Iain



More information about the Gcc-patches mailing list