FreeBSD Bugzilla – Attachment 113390 Details for
Bug 154927
Update lang/llvm-gcc4 with FreeBSD specific patches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-llvm-gcc4.txt
patch-llvm-gcc4.txt (text/plain), 3.54 KB, created by
Pedro F. Giffuni
on 2011-04-10 02:50:10 UTC
(
hide
)
Description:
patch-llvm-gcc4.txt
Filename:
MIME Type:
Creator:
Pedro F. Giffuni
Created:
2011-04-10 02:50:10 UTC
Size:
3.54 KB
patch
obsolete
>diff -ruN llvm-gcc4.orig/files/patch-.._gcc_common.opt llvm-gcc4/files/patch-.._gcc_common.opt >--- llvm-gcc4.orig/files/patch-.._gcc_common.opt 1970-01-01 00:00:00.000000000 +0000 >+++ llvm-gcc4/files/patch-.._gcc_common.opt 2011-04-09 20:08:07.000000000 +0000 >@@ -0,0 +1,13 @@ >+--- ../gcc/common.opt.orig 2010-07-15 23:10:17.000000000 +0000 >++++ ../gcc/common.opt 2011-02-20 21:54:36.000000000 +0000 >+@@ -730,8 +730,8 @@ >+ >+ ; APPLE LOCAL begin optimization pragmas 3124235/3420242 >+ fmath-errno >+-Common Report Var(flag_errno_math) Init(1) PerFunc >+-Set errno after built-in math functions >++Common Report Var(flag_errno_math) Init(0) PerFunc >++FreeBSD does not set errno after built-in math functions >+ ; APPLE LOCAL end optimization pragmas 3124235/3420242 >+ >+ fmem-report >diff -ruN llvm-gcc4.orig/files/patch-.._gcc_config.gcc llvm-gcc4/files/patch-.._gcc_config.gcc >--- llvm-gcc4.orig/files/patch-.._gcc_config.gcc 1970-01-01 00:00:00.000000000 +0000 >+++ llvm-gcc4/files/patch-.._gcc_config.gcc 2011-04-09 20:19:54.000000000 +0000 >@@ -0,0 +1,31 @@ >+--- ../gcc/config.gcc.orig 2011-02-23 22:07:15.000000000 +0000 >++++ ../gcc/config.gcc 2011-02-24 10:11:03.000000000 +0000 >+@@ -1131,9 +1131,11 @@ >+ ;; >+ i[34567]86-*-freebsd*) >+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" >++ tmake_file="$(tmake_file) i386/t-crtstuff" >+ ;; >+ x86_64-*-freebsd*) >+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h" >++ tmake_file="$(tmake_file) i386/t-crtstuff" >+ ;; >+ i[34567]86-*-netbsdelf*) >+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" >+@@ -2629,6 +2631,16 @@ >+ # A Cirrus ARM variant. >+ with_cpu="ep9312" >+ ;; >++ i386-*-freebsd*) >++ if test $fbsd_major -ge 6; then >++ arch=i486 >++ else >++ arch=i386 >++ fi >++ cpu=generic >++ arch_without_sse2=yes >++ arch_without_64bit=yes >++ ;; >+ # APPLE LOCAL begin mainline 2006-04-19 4434601 >+ i386-*-*) >+ with_cpu=i386 >diff -ruN llvm-gcc4.orig/files/patch-.._gcc_gthr-posix.h llvm-gcc4/files/patch-.._gcc_gthr-posix.h >--- llvm-gcc4.orig/files/patch-.._gcc_gthr-posix.h 1970-01-01 00:00:00.000000000 +0000 >+++ llvm-gcc4/files/patch-.._gcc_gthr-posix.h 2011-04-09 20:29:30.000000000 +0000 >@@ -0,0 +1,35 @@ >+--- ../gcc/gthr-posix.h 2007/08/14 02:45:23 171825 >++++ ../gcc/gthr-posix.h 2008/04/21 20:40:42 178388 >+@@ -152,9 +152,12 @@ >+ it is passed so we cannot pretend that the interface is active if -pthreads >+ is not specified. On Solaris 2.5.1, the interface is not exposed at all so >+ we need to play the usual game with weak symbols. On Solaris 10 and up, a >+- working interface is always exposed. */ >++ working interface is always exposed. On FreeBSD 6 and later, libc also >++ exposes a dummy POSIX threads interface, similar to what Solaris 2.6 up >++ to 9 does. FreeBSD >= 700014 even provides a pthread_cancel stub in libc, >++ which means the alternate __gthread_active_p below cannot be used there. */ >+ >+-#if defined(__sun) && defined(__svr4__) >++#if defined(__FreeBSD__) || (defined(__sun) && defined(__svr4__)) >+ >+ static volatile int __gthread_active = -1; >+ >+@@ -197,7 +200,7 @@ >+ return __gthread_active_latest_value != 0; >+ } >+ >+-#else /* not Solaris */ >++#else /* neither FreeBSD nor Solaris */ >+ >+ static inline int >+ __gthread_active_p (void) >+@@ -207,7 +210,7 @@ >+ return __gthread_active_ptr != 0; >+ } >+ >+-#endif /* Solaris */ >++#endif /* FreeBSD or Solaris */ >+ >+ #else /* not SUPPORTS_WEAK */ >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 154927
:
113389
| 113390