Caused by: +2007-02-16 Geoffrey Keating <geoffk (AT) apple (DOT) com> + + * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min + to linker. Worked in: Failed with: And that is the only patch between those two testresults. From the .log: FAIL: objc.dg/pch/interface-1.m -g (test for excess errors) Excess errors: / error: interface-1.h: No such file or error: one or more PCH files were found, but they were invalid / error: use -Winvalid-pch for more warning: cannot find interface declaration for 'TestClass'
No.1 | | 130 bytes | |
-- pinskia at gcc dot gnu dot org changed: What |Removed |Added Target Milestone| |4.3.0
No.2 | | 434 bytes | |
Comment #1 from geoffk at gcc dot gnu dot org 2007-03-02 18:59 This is because gccspec.c is adding -shared-libgcc when it sees an C file, but inconsistently; it doesn't handle -x options, it doesn't handle the -objC flag. Darwin, it's wrong to add -shared-libgcc like this because the objective-C runtime uses setjmp/longjmp exceptions and some versions of Darwin don't have a shared libgcc to use.
No.3 | | 352 bytes | |
Comment #2 from geoffk at gcc dot gnu dot org 2007-03-07 00:16 The change to gccspec.c was made by Franz Sirl on 2001-06-16, revision 43421. The mail on gcc-patches is at <>. There's further discussion at <>. I think it's relying on the property that the GNU runtime is (always?) linked with the dynamic libgcc.
No.4 | | 250 bytes | |
Comment #3 from pinskia at gcc dot gnu dot org 2007-03-07 00:26 I should mention that with the GNU runtime, we want the shared libgcc for exceptions so any patch that breaks the GNU runtime linking with the shared libgcc should be rejected.
No.5 | | 476 bytes | |
Comment #4 from geoffk at gcc dot gnu dot org 2007-03-08 19:56 Subject: Bug 31013
Author: geoffk Date: Thu Mar 8 19:56:37 2007 New Revision: 122709
URL: Log: PR 31013 * gccspec.c (lang_specific_driver): Do nothing when NEXTBJC_RUNTIME is declared. * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is passed, use shared libgcc.
Comment #5 from geoffk at gcc dot gnu dot org 2007-03-08 20:31 This should be fixed now.
No.7 | | 399 bytes | |
Comment #6 from geoffk at gcc dot gnu dot org 2007-03-10 00:00 Subject: Bug 31013
Author: geoffk Date: Sat Mar 10 00:00:09 2007 New Revision: 122774
URL: Log: PR 31013 * gccspec.c (lang_specific_driver): Do nothing when NEXTBJC_RUNTIME is declared. * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is passed, use shared libgcc.
Modified:
Re: New: objc PCH is broken on powerpc-darwin again