[cfe-commits] Patch for Driver/dragonfly.c and Driver/freebsd.c test failures

Krister Walfridsson krister.walfridsson at gmail.com
Fri Jul 3 22:20:24 PDT 2009


I get failures for
   clang/test/Driver/dragonfly.c
   clang/test/Driver/freebsd.c
when running on NetBSD.  The reason is that the compiler reports the
crtbegin.o as "/usr/lib/crtbegin.o", but the tests tries to match it
against "crtbegin.o".  The tests do however match crtend.o as
".*crtend.o", so I guess that it just an oversight?  Corrected by the
attached patch.

    /Krister
-------------- next part --------------
Index: freebsd.c
===================================================================
--- freebsd.c	(revision 74781)
+++ freebsd.c	(working copy)
@@ -2,6 +2,6 @@
 // RUN: cat %t.log &&
 // RUN: grep 'clang-cc" "-triple" "powerpc64-pc-freebsd8"' %t.log &&
 // RUN: grep 'as" "-o" ".*\.o" ".*\.s' %t.log &&
-// RUN: grep 'ld" "--eh-frame-hdr" "-dynamic-linker" ".*ld-elf.*" "-o" "a\.out" ".*crt1.o" ".*crti.o" "crtbegin.o" ".*\.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" ".*crtend.o" ".*crtn.o"' %t.log &&
+// RUN: grep 'ld" "--eh-frame-hdr" "-dynamic-linker" ".*ld-elf.*" "-o" "a\.out" ".*crt1.o" ".*crti.o" ".*crtbegin.o" ".*\.o" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed" ".*crtend.o" ".*crtn.o"' %t.log &&
 // RUN: true
 
Index: dragonfly.c
===================================================================
--- dragonfly.c	(revision 74781)
+++ dragonfly.c	(working copy)
@@ -1,6 +1,6 @@
 // RUN: clang -ccc-host-triple amd64-pc-dragonfly %s -### 2> %t.log &&
 // RUN: grep 'clang-cc" "-triple" "x86_64-pc-dragonfly"' %t.log &&
 // RUN: grep 'as" "-o" ".*\.o" ".*\.s' %t.log &&
-// RUN: grep 'ld" "-dynamic-linker" ".*ld-elf.*" "-o" "a\.out" ".*crt1.o" ".*crti.o" "crtbegin.o" ".*\.o" "-L.*/gcc.*" .* "-lc" "-lgcc" ".*crtend.o" ".*crtn.o"' %t.log &&
+// RUN: grep 'ld" "-dynamic-linker" ".*ld-elf.*" "-o" "a\.out" ".*crt1.o" ".*crti.o" ".*crtbegin.o" ".*\.o" "-L.*/gcc.*" .* "-lc" "-lgcc" ".*crtend.o" ".*crtn.o"' %t.log &&
 // RUN: true
 


More information about the cfe-commits mailing list