[cfe-dev] [PATCH] Correct OpenBSD profiling test

Brad Smith brad at comstyle.com
Sun Jan 6 22:41:35 PST 2013


On Mon, Dec 31, 2012 at 06:47:07PM -0500, Brad Smith wrote:
> Here is a patch to fix the OpenBSD test for when the profiling flag
> is being used. The test should be looking for gcrt0.o not crt0.o.

Any comments? This is pretty straightforward.

> Index: test/Driver/openbsd.c
> ===================================================================
> --- test/Driver/openbsd.c	(revision 171329)
> +++ test/Driver/openbsd.c	(working copy)
> @@ -6,7 +6,7 @@
>  // RUN: %clang -no-canonical-prefixes -target i686-pc-openbsd -pg -pthread %s -### 2>&1 \
>  // RUN:   | FileCheck --check-prefix=CHECK-PG %s
>  // CHECK-PG: clang{{.*}}" "-cc1" "-triple" "i686-pc-openbsd"
> -// CHECK-PG: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lgcc" "-lpthread_p" "-lc_p" "-lgcc" "{{.*}}crtend.o"
> +// CHECK-PG: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}gcrt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lgcc" "-lpthread_p" "-lc_p" "-lgcc" "{{.*}}crtend.o"
>  
>  // Check that the new linker flags are passed to OpenBSD
>  // RUN: %clang -no-canonical-prefixes -target i686-pc-openbsd -r %s -### 2>&1 \

> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the cfe-dev mailing list