[PATCH] FreeBSD: Stop linking _p libs for -pg as of FreeBSD 14

2021-08-12 Thread Andreas Tobler via Gcc-patches
Hi, I would like to commit the attached patch to trunk and after a settling period also to all open branches. Is this ok? TIA, Andreas From a8a602620917efad2579c0dc24b178c0f2b18ff3 Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Thu, 12 Aug 2021 22:35:52 +0200 Subject: [PATCH] FreeBSD

Re: [PATCH] libgcc: aarch64: Get hwcap for FreeBSD

2020-05-07 Thread Andreas Tobler
On 07.05.20 09:25, Kyrylo Tkachov wrote: Hi Andreas, -Original Message- From: Gcc-patches On Behalf Of Andreas Tobler Sent: 06 May 2020 21:17 To: GCC Patches Subject: [PATCH] libgcc: aarch64: Get hwcap for FreeBSD Hi all, Since FreeBSD 12, FreeBSD has a sys/auxv.h header too

Re: [PATCH] testsuite:analyzer: Fix header include for FreeBSD

2020-05-06 Thread Andreas Tobler
On 06.05.20 22:27, Kamil Rytarowski wrote: On 06.05.2020 22:25, Andreas Tobler wrote: On 06.05.20 22:12, Jakub Jelinek wrote: On Wed, May 06, 2020 at 09:54:47PM +0200, Andreas Tobler wrote: --- a/gcc/testsuite/gcc.dg/analyzer/alloca-leak.c +++ b/gcc/testsuite/gcc.dg/analyzer/alloca-leak.c

Re: [PATCH] testsuite:analyzer: Fix header include for FreeBSD

2020-05-06 Thread Andreas Tobler
On 06.05.20 22:12, Jakub Jelinek wrote: On Wed, May 06, 2020 at 09:54:47PM +0200, Andreas Tobler wrote: --- a/gcc/testsuite/gcc.dg/analyzer/alloca-leak.c +++ b/gcc/testsuite/gcc.dg/analyzer/alloca-leak.c @@ -1,5 +1,6 @@ -#include - +#include It needs to be: +#if __has_include() +#include

[PATCH] libgcc: aarch64: Get hwcap for FreeBSD

2020-05-06 Thread Andreas Tobler
Hi all, Since FreeBSD 12, FreeBSD has a sys/auxv.h header too but it doesn't provide the getauxval function. Instead it offers the elf_aux_info function which provides a similar functionality. This patch gets the hwcap for FreeBSD. Is this ok for trunk? TIA, Andreas +2020-05-05 Andreas

Re: [PATCH] testsuite:analyzer: Fix header include for FreeBSD

2020-05-06 Thread Andreas Tobler
ne too. K, fine with me. I'll commit this solution once I finished testing. Thanks, Andreas +2020-05-07 Andreas Tobler + + * gcc.dg/analyzer/alloca-leak.c: Include alloca.h only if + available. + * gcc.dg/analyzer/data-model-1.c: Likewise + * gcc.dg/analyzer/ma

Re: [PATCH] testsuite:analyzer: Fix header include for FreeBSD

2020-05-03 Thread Andreas Tobler
On 03.05.20 18:27, Kamil Rytarowski wrote: On 01.05.2020 21:49, Andreas Tobler wrote: Hi all, FreeBSD does not have the alloca.h header. Do not include it in the test cases which do include alloca.h. There are two versions of this patch available, the one attached which uses ifdef or another

Re: [committed] Darwin: Fix bootstrap break from libsanitizer changes

2020-05-01 Thread Andreas Tobler
On 01.05.20 21:02, Iain Sandoe wrote: Hi, The recent libsanitizer change seems to have had a corrupt chunk, that caused it to apply a change part way through the SUBTARGET_INIT_BUILTINS macro, leading to a bootstrap fail in stage1. tested on x86_64-darwin16, applied to master, Sorry for the

[PATCH] testsuite:analyzer: Fix header include for FreeBSD

2020-05-01 Thread Andreas Tobler
Tobler + + * gcc.dg/analyzer/alloca-leak.c: Do not include + alloca.h for FreeBSD. + * gcc.dg/analyzer/data-model-1.c: Likewise + * gcc.dg/analyzer/malloc-1.c: Likewise. + * gcc.dg/analyzer/malloc-paths-8.c: Likewise. + 2020-05-01 Andreas Tobler

Re: [PATCH] libsanitizer: Add missign file and regen Makefile.in

2020-05-01 Thread Andreas Tobler
On 23.01.20 21:09, Jeff Law wrote: On Wed, 2020-01-22 at 22:23 +0100, Andreas Tobler wrote: Hi all, I'm digginig out old patches and I want to complete the libasan support for FreeBSD x86_64. The below one was not that obvious when you have been away for the past years. In the last import

Re: [PATCH] libsanitizer: Add missign file and regen Makefile.in

2020-01-25 Thread Andreas Tobler
On 23.01.20 21:09, Jeff Law wrote: On Wed, 2020-01-22 at 22:23 +0100, Andreas Tobler wrote: Hi all, I'm digginig out old patches and I want to complete the libasan support for FreeBSD x86_64. The below one was not that obvious when you have been away for the past years. In the last import

[PATCH] testsuite: Enable asan tests on FreeBSD x86_64

2020-01-22 Thread Andreas Tobler
: Likewise. * g++.dg/asan/interception-malloc-test-1.C: Likewise diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 70d7e8869e1..7e3534f84de 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,16 @@ +2020-01-22 Andreas Tobler + + * gcc.dg

[PATCH]: gcc: Enable bits for sanitizer support on FreeBSD x86_64

2020-01-22 Thread Andreas Tobler
-*-freebsd* targets. * asan/asan_interceptors.h: Define ASAN_INTERCEPT_SWAPCONTEXT for FreeBSD. From 93978ce66c4eeff0bde2f44f8c0809fc66165e5b Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Tue, 21 Jan 2020 22:17:09 +0100 diff --git a/gcc/config/freebsd.h b/gcc/config/freebsd.h index

[PATCH] libsanitizer: Add missign file and regen Makefile.in

2020-01-22 Thread Andreas Tobler
Hi all, I'm digginig out old patches and I want to complete the libasan support for FreeBSD x86_64. The below one was not that obvious when you have been away for the past years. In the last import the sanitizer_platform_limits_freebsd.cpp got forgotten. Fix this. Ok for trunk once it's

Re: [PATCH] C testsuite, silence a FreeBSD libc warning

2019-10-26 Thread Andreas Tobler
On 04.10.19 19:04, Jeff Law wrote: On 9/30/19 12:47 PM, Andreas Tobler wrote: On 30.09.19 20:37, Kamil Rytarowski wrote: On 30.09.2019 19:47, Jakub Jelinek wrote: On Mon, Sep 30, 2019 at 07:41:00PM +0200, Andreas Tobler wrote: --- fprintf-2.c    (revision 276292) +++ fprintf-2.c    (working

Re: [patch, libgomp] testsuite remove alloca header

2019-10-02 Thread Andreas Tobler
On 02.10.19 12:19, Thomas Schwinge wrote: Hi! On 2019-09-30T15:22:52+0200, Jakub Jelinek wrote: On Mon, Sep 30, 2019 at 03:16:00PM +0200, Andreas Tobler wrote: here on FreeBSD we lack the alloca.h header so two test cases fail to compile. Do the same as I did six years ago for another test

Re: [PATCH] libstdc++ testsuite, silence a FreeBSD libm warning

2019-09-30 Thread Andreas Tobler
On 30.09.19 19:09, Andreas Tobler wrote: Hi all, the attached patch tries to silence a warning from the msun of FreeBSD. When compiling the special_functions testcases, I get excess errors because of this warning: warning: tgammal has lower than advertised precision With the patch, all

Re: [PATCH] C testsuite, silence a FreeBSD libc warning

2019-09-30 Thread Andreas Tobler
On 30.09.19 20:37, Kamil Rytarowski wrote: On 30.09.2019 19:47, Jakub Jelinek wrote: On Mon, Sep 30, 2019 at 07:41:00PM +0200, Andreas Tobler wrote: --- fprintf-2.c (revision 276292) +++ fprintf-2.c (working copy) @@ -1,7 +1,8 @@ /* Verify that calls to fprintf don't get eliminated even

Re: [PATCH] C testsuite, silence a FreeBSD libc warning

2019-09-30 Thread Andreas Tobler
On 30.09.19 19:47, Jakub Jelinek wrote: On Mon, Sep 30, 2019 at 07:41:00PM +0200, Andreas Tobler wrote: --- fprintf-2.c (revision 276292) +++ fprintf-2.c (working copy) @@ -1,7 +1,8 @@ /* Verify that calls to fprintf don't get eliminated even if their result on success can be computed

Re: [PATCH] C testsuite, silence a FreeBSD libc warning

2019-09-30 Thread Andreas Tobler
On 30.09.19 19:20, Jakub Jelinek wrote: On Mon, Sep 30, 2019 at 07:15:59PM +0200, Andreas Tobler wrote: Hi all, the below patch tries to silence a warning from the FreeBSD libc. This warning currently makes all the test cases fail where we make use of the tmpnam() function. --- /usr/local/bin

[PATCH] C testsuite, silence a FreeBSD libc warning

2019-09-30 Thread Andreas Tobler
used unsafely; consider using mkstemp() --- With this patch, all the *printf* test cases in the gcc part are now passing. What dou you think? TIA, Andreas 2019-09-30 Andreas Tobler * lib/prune.exp (prune_gcc_output): Silence a FreeBSD libc warning. Index: lib/prune.exp

[PATCH] libstdc++ testsuite, silence a FreeBSD libm warning

2019-09-30 Thread Andreas Tobler
do you think? TIA, Andreas 2019-09-30 Andreas Tobler * testsuite/lib/prune.exp (libstdc++-dg-prune): Ignore the FreeBSD warning about lower advertised precision of tgammal. Index: testsuite/lib/prune.exp

[PATCH] Include netinet/in.h in include/experimental/internet

2019-09-30 Thread Andreas Tobler
pass here. Any comments? TIA, Andreas Commit one-liner: Include netinet/in.h in include/experimental/internet 2019-09-30 Andreas Tobler * include/experimental/internet: Include netinet/in.h if we have _GLIBCXX_HAVE_NETINET_IN_H defined. Index: include/experimental/internet

[patch, libgomp] testsuite remove alloca header

2019-09-30 Thread Andreas Tobler
Hi, here on FreeBSD we lack the alloca.h header so two test cases fail to compile. Do the same as I did six years ago for another test case: 'Remove alloca.h and replace it with __builtin_alloca" Is this ok for trunk? TIA, Andreas 2019-09-30 Andreas Tobler * test

Re: [PATCH] FreeBSD PowerPC use secure-plt

2019-09-30 Thread Andreas Tobler
On 26.09.19 08:13, Andreas Tobler wrote: Hi Segher, On 26.09.19 00:49, Segher Boessenkool wrote: On Wed, Sep 25, 2019 at 10:46:57PM +0200, Andreas Tobler wrote: --- gcc/config/rs6000/t-freebsd64 (revision 276090) +++ gcc/config/rs6000/t-freebsd64 (working copy) @@ -27,3 +27,6

Re: [PATCH] FreeBSD PowerPC use secure-plt

2019-09-26 Thread Andreas Tobler
Hi Segher, On 26.09.19 00:49, Segher Boessenkool wrote: On Wed, Sep 25, 2019 at 10:46:57PM +0200, Andreas Tobler wrote: --- gcc/config/rs6000/t-freebsd64 (revision 276090) +++ gcc/config/rs6000/t-freebsd64 (working copy) @@ -27,3 +27,6 @@ MULTILIB_EXCEPTIONS

[PATCH] FreeBSD PowerPC use secure-plt

2019-09-25 Thread Andreas Tobler
Hi all, the attached patch makes use of the secure-plt for 32-bit PowerPC on FreeBSD 13 and upwards. The OS support will arrive in FreeBSD 13.0 I'd like to commit this patch to head and later to all open branches. Comments appreciated! If I do not get any, I'll commit in a few days. TIA,

Re: [patch] Multilib support for amd64 FreeBSD

2019-05-11 Thread Andreas Tobler
On 25.04.19 22:07, Andreas Tobler wrote: On 18.03.19 22:28, Andreas Tobler wrote: On 18.03.19 22:22, Jeff Law wrote: On 3/17/19 2:40 PM, Andreas Tobler wrote: Hi all, this patch adds support for multilib on x86_64-unknown-freebsd* The multilibs are 32-bit. This patch is functionality tested

Re: [patch] Multilib support for amd64 FreeBSD

2019-05-11 Thread Andreas Tobler
On 25.04.19 22:07, Andreas Tobler wrote: On 18.03.19 22:28, Andreas Tobler wrote: On 18.03.19 22:22, Jeff Law wrote: On 3/17/19 2:40 PM, Andreas Tobler wrote: Hi all, this patch adds support for multilib on x86_64-unknown-freebsd* The multilibs are 32-bit. This patch is functionality tested

Re: [patch] Multilib support for amd64 FreeBSD

2019-04-25 Thread Andreas Tobler
On 18.03.19 22:28, Andreas Tobler wrote: On 18.03.19 22:22, Jeff Law wrote: On 3/17/19 2:40 PM, Andreas Tobler wrote: Hi all, this patch adds support for multilib on x86_64-unknown-freebsd* The multilibs are 32-bit. This patch is functionality tested on gcc8 and gcc9. Test suite testing

Re: [patch] Multilib support for amd64 FreeBSD

2019-03-18 Thread Andreas Tobler
On 18.03.19 22:22, Jeff Law wrote: On 3/17/19 2:40 PM, Andreas Tobler wrote: Hi all, this patch adds support for multilib on x86_64-unknown-freebsd* The multilibs are 32-bit. This patch is functionality tested on gcc8 and gcc9. Test suite testing is a bit tricky since the FreeBSD dynamic

[patch] Multilib support for amd64 FreeBSD

2019-03-17 Thread Andreas Tobler
to commit this patch? Afair trunk is in stage4, right? The patch itself only affects x86_64-unknown-freebsd. TIA, Andreas 2019-03-17 Andreas Tobler * config/i386/freebsd64.h: Add bits for 32-bit multilib support. * config/i386/t-freebsd64: New file. * config.gcc: Add

Re: [patch] Fix bootstrap powerpc*-*-freebsd* targets

2018-12-16 Thread Andreas Tobler
On 12.12.18 21:32, Andreas Tobler wrote: this patch fixes bootstrap for my powerpc*-unknown-freebsd* targets. The definition of GNU_USER_DYNAMIC_LINKER was recently moved to linux.h. But the GNU_USER_DYNAMIC_LINKER is still used in rs6000/sysv4.h. So I add an empty definition with guard

[patch][aarch64-*-*freebsd*] Enable TARGET_DEFAULT_ASYNC_UNWIND_TABLES

2018-12-12 Thread Andreas Tobler
Hi all, I have this patch since a longer time in my tree. No obvious fallout visible. I'm going to commit this patch in the next days if no one objects. TIA, Andreas 2018-12-12 Andreas Tobler * config.gcc: Enable TARGET_DEFAULT_ASYNC_UNWIND_TABLES on aarch64*-*-freebsd

[patch] Fix bootstrap for non linux powerpc targets

2018-12-12 Thread Andreas Tobler
for trunk? TIA, Andreas 2018-12-12 Andreas Tobler * config/rs6000/sysv4.h: Add an empty definition for GNU_USER_DYNAMIC_LINKER for all targets which do not include linux.h where GNU_USER_DYNAMIC_LINKER is defined. Index: sysv4.h

Re: Remove support for FreeBSD 4.x (and earlier)

2018-05-28 Thread Andreas Tobler
On 28.05.18 08:57, Gerald Pfeifer wrote: On Thu, 24 May 2018, Jeff Law wrote: Happy to trust you on what versions can be dropped and the resulting simplifications. Is it worth noting those old versions as deprecated/obsolete in config.gcc? Good catch, Jeff, thanks. Updated patch (also wrt.

Re: [PATCH][arm][FreeBSD] PR libgcc/84292

2018-04-27 Thread Andreas Tobler
On 26.04.18 09:49, Richard Biener wrote: On Wed, Apr 25, 2018 at 10:41 PM, Andreas Tobler <andreast-l...@fgznet.ch> wrote: Hi all, I'm going to commit this patch to all active branches as soon as the branch status permits. Built and tested on native armv5 FreeBSD12. If you think it i

[PATCH][arm][FreeBSD] PR libgcc/84292

2018-04-25 Thread Andreas Tobler
Hi all, I'm going to commit this patch to all active branches as soon as the branch status permits. Built and tested on native armv5 FreeBSD12. Thanks, Andreas 2018-04-25 Andreas Tobler <andre...@gcc.gnu.org> Maryse Levavasseur <maryse.levavass...@stormshield.eu>

Re: [PATCH] use shasum instead of sha512sum on FreeBSD and DragonFly

2018-01-15 Thread Andreas Tobler
On 15.01.18 13:59, Jonathan Wakely wrote: boru on Freenode's #gcc channel pointed out that contrib/download_prerequisites should use shasum for FreeBSD, not sha512sum (which comes from GNU coreutils on GNU/Linux). I checked FreeBSD 11.0 and 10.2 and neither has sha512sum, not does DragonFly

[patch][libgcc] FreeBSD amd64 unwind fix

2017-11-02 Thread Andreas Tobler
). No regressions. If there are no objections, I'm going to commit the patch below to all active branches in the next days. Thanks, Andreas 2017-11-02 Andreas Tobler <andre...@gcc.gnu.org> PR libgcc/82635 * config/i386/freebsd-unwind.h (MD_FALLBACK_FRAME_STATE_FOR): Use a

Re: [patch][arm] gcc-7-branch: Fix bootstrap on FreeBSD

2017-10-17 Thread Andreas Tobler
Hi Kyrill, On 17.10.17 12:02, Kyrill Tkachov wrote: On 16/10/17 20:00, Andreas Tobler wrote: Hi all, I struggled over a bootstrap issue while building gcc-7 for armv7-*-freebsd* I got a 'permission denied' while creating the arm-tables.opt file. The source tree is located on a nfs server

[patch][arm] gcc-7-branch: Fix bootstrap on FreeBSD

2017-10-16 Thread Andreas Tobler
Hi all, I struggled over a bootstrap issue while building gcc-7 for armv7-*-freebsd* I got a 'permission denied' while creating the arm-tables.opt file. The source tree is located on a nfs server. The below patch fixed it for me. Ok to apply? TIA, Andreas 2017-10-16 Andreas Tobler <an

Re: [patch][arm][FreeBSD] gcc-6/5: add support for armv7*-*-freebsd*

2017-10-10 Thread Andreas Tobler
On 08.10.17 23:12, Andreas Tobler wrote: Hi all, and here is the patch for gcc-6/5 branch to add support for armv7*-*-freebsd* The difference towards trunk is the missing of target_cpu_cname which is solved differently. I'm aware of the gcc-5 branch status and I will not apply before gcc-5.5

Re: [patch][arm][FreeBSD] gcc-7 branch: add support for armv7*-*-freebsd*

2017-10-10 Thread Andreas Tobler
On 08.10.17 22:58, Andreas Tobler wrote: Hi all, here is the patch witch adds support for armv7*-*-freebsd* on the gcc-7 branch. The difference towards trunk is the target_cpu_cname. I'll commit this one if no objections pop up. Committed in 253603 Andreas 2017-10-08 Andreas Tobler

Re: [patch][arm][FreeBSD] add support for armv7*-*-freebsd*

2017-10-10 Thread Andreas Tobler
On 08.10.17 22:51, Andreas Tobler wrote: Hi all, I'm going to commit this patch if no objections pop up. We (FreeBSD folks) have added a new target tripplet for armv7*-*-freebsd* To be able to build GCC we need the below changes. Results will be posted to the usual place, once they completed

[patch][arm][FreeBSD] gcc-6/5: add support for armv7*-*-freebsd*

2017-10-08 Thread Andreas Tobler
on the gcc-5 branch if the branch gets closed. If you have any objections, please speak up. TIA, Andreas 2017-10-08 Andreas Tobler <andre...@gcc.gnu.org> * config.gcc: (armv7*-*-freebsd*): New target. Define TARGET_FREEBSD_ARMv7 * config/arm/freebsd.

[patch][arm][FreeBSD] gcc-7 branch: add support for armv7*-*-freebsd*

2017-10-08 Thread Andreas Tobler
Hi all, here is the patch witch adds support for armv7*-*-freebsd* on the gcc-7 branch. The difference towards trunk is the target_cpu_cname. I'll commit this one if no objections pop up. TIA, Andreas 2017-10-08 Andreas Tobler <andre...@gcc.gnu.org> * config.gcc:

[patch][arm][FreeBSD] add support for armv7*-*-freebsd*

2017-10-08 Thread Andreas Tobler
define. I'll post similar patches for gcc-7, gcc-6 and gcc-5 branches. They differ a bit... Please speak up if you do not agree. TIA, Andreas 2017-10-08 Andreas Tobler <andre...@gcc.gnu.org> * config.gcc (armv7*-*-freebsd*): New target. (armv6*-*-freebsd*): Remove ob

[committed] Fix bootstrap on armv6-*-freebsd

2017-06-20 Thread Andreas Tobler
Hi All, I committed the chunk below to fix bootstrap on armv6*-*-freebsd. Andreas 2017-06-20 Andreas Tobler <andre...@gcc.gnu.org> * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to arm1176jzf-s. Index: conf

Re: [patch] FreeBSD arm: make _Unwind_G/SetIP available as function.

2017-05-17 Thread Andreas Tobler
On 07.05.17 21:23, Andreas Tobler wrote: Hi all, On FreeBSD we make use of the functions _Unwind_GetIP, _Unwind_GetIPInfo and _Unwind_SetIP outside of GCC. All other FreeBSD targets have these functions available except arm. Now since the GCC port for arm*-*-freebsd* is used more often

Re: [patch] FreeBSD arm libgcc config.host

2017-05-10 Thread Andreas Tobler
On 07.05.17 21:30, Andreas Tobler wrote: Hi all, I'm going to commit the below patch to all active branches. (8,7,6,5) It makes arm*-*-freebsd* use the generic FreeBSD t-slibgcc-elf-ver definition. This makes all FreeBSD targets 'consistent' in this area. If not ok, please speak up soon

[patch] FreeBSD arm libgcc config.host

2017-05-07 Thread Andreas Tobler
Hi all, I'm going to commit the below patch to all active branches. (8,7,6,5) It makes arm*-*-freebsd* use the generic FreeBSD t-slibgcc-elf-ver definition. This makes all FreeBSD targets 'consistent' in this area. If not ok, please speak up soon. TIA, Andreas 2017-05-07 Andreas Tobler

[patch] FreeBSD arm: make _Unwind_G/SetIP available as function.

2017-05-07 Thread Andreas Tobler
better idea, I welcome the input. TIA, Andreas 2017-05-07 Andreas Tobler <andre...@gcc.gnu.org> * config/arm/unwind-arm.h: Make _Unwind_GetIP, _Unwind_GetIPInfo and _Unwind_SetIP available as functions for arm*-*-freebsd*. * config/arm/unwind-arm.c: Implement the

[patch] aarch64 FreeBSD MCOUNT_NAME

2017-04-08 Thread Andreas Tobler
Hi all, I'm going to commit the attached patch to trunk and all active branches in the next hours. Again, a few tests fixed. Also, I added a comment which I missed in my last commmit. Thanks, Andreas 2017-04-08 Andreas Tobler <andre...@gcc.gnu.org> * config/aarch64/a

[patch] aarch64 FreeBSD wchar_t

2017-04-07 Thread Andreas Tobler
Hi all, I'm going to commit this patch to all active branches (5,6,7) in the next hours. A few failures less in the testsuite. Thanks, Andreas 2017-04-07 Andreas Tobler <andre...@gcc.gnu.org> * config/aarch64/aarch64-freebsd.h: Define WCHA

Re: [PATCH, aarch64] add unwind support for aarch64-*-freebsd*

2017-03-09 Thread Andreas Tobler
On 09.03.17 22:44, Gerald Pfeifer wrote: On Thu, 9 Mar 2017, Andreas Tobler wrote: Ping! Why are you pinging this, Andreas? Are you seeking review to make sure this is appropriate? 2017-02-16 John Marino <gnu...@marino.st> * config/aarch64/freebsd-unwind.h: Ne

Re: [PATCH, aarch64] add unwind support for aarch64-*-freebsd*

2017-03-09 Thread Andreas Tobler
Ping! TIA, Andreas On 16.02.17 20:21, Andreas Tobler wrote: Hi all, the attached patch adds unwind support for aarch64-*-freebsd*. John used to catch unwind tests in ada. So far it bootstraps and I see no regressions. is this ok for trunk? TIA, Andreas 2017-02-16 John Marino <

Re: [PATCH PR79562] fix bootstrap on FreeBSD

2017-02-17 Thread Andreas Tobler
On 16.02.17 22:20, Andreas Tobler wrote: On 16.02.17 22:03, Jakub Jelinek wrote: On Thu, Feb 16, 2017 at 09:57:48PM +0100, Andreas Tobler wrote: is this patch ok for trunk? Fixes bootstrap for x86_64-*-freebsd12 where the internal struct rtentry has gone from userland. TIA, Andreas 2017-02

Re: [PATCH PR79562] fix bootstrap on FreeBSD

2017-02-16 Thread Andreas Tobler
On 16.02.17 22:03, Jakub Jelinek wrote: On Thu, Feb 16, 2017 at 09:57:48PM +0100, Andreas Tobler wrote: is this patch ok for trunk? Fixes bootstrap for x86_64-*-freebsd12 where the internal struct rtentry has gone from userland. TIA, Andreas 2017-02-16 Andreas Tobler <andre...@gcc.gnu.

[PATCH PR79562] fix bootstrap on FreeBSD

2017-02-16 Thread Andreas Tobler
Hi all, is this patch ok for trunk? Fixes bootstrap for x86_64-*-freebsd12 where the internal struct rtentry has gone from userland. TIA, Andreas 2017-02-16 Andreas Tobler <andre...@gcc.gnu.org> PR sanitizer/79562 * sanitizer_common/sanitizer_platform_limits_po

[PATCH, aarch64] add unwind support for aarch64-*-freebsd*

2017-02-16 Thread Andreas Tobler
Hi all, the attached patch adds unwind support for aarch64-*-freebsd*. John used to catch unwind tests in ada. So far it bootstraps and I see no regressions. is this ok for trunk? TIA, Andreas 2017-02-16 John Marino * config/aarch64/freebsd-unwind.h: New file.

Re: [RFC] fix bootstrap on aarch64-*-freebsd and probably others

2017-01-23 Thread Andreas Tobler
On 23.01.17 18:48, Jakub Jelinek wrote: On Mon, Jan 23, 2017 at 06:42:15PM +0100, Andreas Tobler wrote: Something like below? If ok, I can commit, right? Thanks, Andreas 2017-01-23 Andreas Tobler <andre...@gcc.gnu.org> * config/aarch64/aarch64.c (aarch64_elf_asm_const

Re: [RFC] fix bootstrap on aarch64-*-freebsd and probably others

2017-01-23 Thread Andreas Tobler
On 23.01.17 11:07, Richard Earnshaw (lists) wrote: On 21/01/17 20:15, Andreas Tobler wrote: On 21.01.17 00:42, Jakub Jelinek wrote: On Fri, Jan 20, 2017 at 01:37:13PM -0700, Jeff Law wrote: Which is best will depend on what the front/mid ends might have done to apply the documented limit

Re: [RFC] fix bootstrap on aarch64-*-freebsd and probably others

2017-01-21 Thread Andreas Tobler
On 21.01.17 00:42, Jakub Jelinek wrote: On Fri, Jan 20, 2017 at 01:37:13PM -0700, Jeff Law wrote: Which is best will depend on what the front/mid ends might have done to apply the documented limit. Here I know not enough to give a decision. In tree the priority_type is unsigned short. In

Re: [RFC] fix bootstrap on aarch64-*-freebsd and probably others

2017-01-20 Thread Andreas Tobler
On 20.01.17 17:12, Richard Earnshaw (lists) wrote: On 19/01/17 06:38, Andreas Tobler wrote: On 19.01.17 00:33, Jeff Law wrote: On 01/18/2017 11:43 AM, Andreas Tobler wrote: Hi all, I have the following issue here on aarch64-*-freebsd: (sorry if the format is hardly readable) .. /export

Re: [RFC] fix bootstrap on aarch64-*-freebsd and probably others

2017-01-18 Thread Andreas Tobler
On 19.01.17 00:33, Jeff Law wrote: On 01/18/2017 11:43 AM, Andreas Tobler wrote: Hi all, I have the following issue here on aarch64-*-freebsd: (sorry if the format is hardly readable) .. /export/devel/net/src/gcc/head/gcc/gcc/config/aarch64/aarch64.c: In function 'void

[RFC] fix bootstrap on aarch64-*-freebsd and probably others

2017-01-18 Thread Andreas Tobler
Hi all, I have the following issue here on aarch64-*-freebsd: (sorry if the format is hardly readable) .. /export/devel/net/src/gcc/head/gcc/gcc/config/aarch64/aarch64.c: In function 'void aarch64_elf_asm_destructor(rtx, int)':

Re: [patch] aarch64-*-freebsd* support for gcc.

2017-01-09 Thread Andreas Tobler
On 13.10.16 17:14, Jeff Law wrote: On 10/12/2016 01:43 PM, Andreas Tobler wrote: libgcc: 2016-10-10 Andreas Tobler <andre...@gcc.gnu.org> * config.host: Add support for aarch64-*-freebsd*. gcc: 2016-10-10 Andreas Tobler <andre...@gcc.gnu.org> * config.gcc:

Re: [PATCH] Fix late dwarf generated early from optimized out globals

2017-01-09 Thread Andreas Tobler
On 09.01.17 18:36, Jakub Jelinek wrote: On Mon, Jan 09, 2017 at 06:25:05PM +0100, Andreas Tobler wrote: On 09.01.17 12:25, Jakub Jelinek wrote: On Mon, Jan 09, 2017 at 11:53:38AM +0100, Richard Biener wrote: Ok, attached the part I bootstrapped successfully on amd64-*-freebsd12 and aarch64

Re: [PATCH] Fix late dwarf generated early from optimized out globals

2017-01-09 Thread Andreas Tobler
17-01-09 Andreas Tobler <andre...@gcc.gnu.org> Backport from mainline 2016-09-19 Richard Biener <rguent...@suse.de> * dwarf2out.c (dwarf2out_late_global_decl): When being during the early debug phase do not add locations but only const valu

Re: [PATCH] Fix late dwarf generated early from optimized out globals

2017-01-05 Thread Andreas Tobler
On 05.01.17 13:05, Richard Biener wrote: On Wed, 4 Jan 2017, Andreas Tobler wrote: On 04.01.17 10:21, Richard Biener wrote: On Wed, 28 Dec 2016, Andreas Tobler wrote: On 28.12.16 19:24, Richard Biener wrote: On December 27, 2016 11:17:00 PM GMT+01:00, Andreas Tobler <andreas

Re: [PATCH] Fix late dwarf generated early from optimized out globals

2017-01-04 Thread Andreas Tobler
On 04.01.17 10:21, Richard Biener wrote: On Wed, 28 Dec 2016, Andreas Tobler wrote: On 28.12.16 19:24, Richard Biener wrote: On December 27, 2016 11:17:00 PM GMT+01:00, Andreas Tobler <andreast-l...@fgznet.ch> wrote: On 16.09.16 13:30, Richard Biener wrote: On Thu, 15 Sep 2016, R

Re: [PATCH] Fix late dwarf generated early from optimized out globals

2016-12-28 Thread Andreas Tobler
On 28.12.16 19:24, Richard Biener wrote: On December 27, 2016 11:17:00 PM GMT+01:00, Andreas Tobler <andreast-l...@fgznet.ch> wrote: On 16.09.16 13:30, Richard Biener wrote: On Thu, 15 Sep 2016, Richard Biener wrote: This addresses sth I needed to address with the early LTO debug p

Re: [PATCH] Fix late dwarf generated early from optimized out globals

2016-12-27 Thread Andreas Tobler
On 16.09.16 13:30, Richard Biener wrote: On Thu, 15 Sep 2016, Richard Biener wrote: This addresses sth I needed to address with the early LTO debug patches (you might now figure I'm piecemail merging stuff from that patch). When the cgraph code optimizes out a global we call the

Re: [PATCH/AARCH64] Improved -mcpu/mtune/march=native handling

2016-11-11 Thread Andreas Tobler
On 11.11.16 11:06, Richard Earnshaw wrote: On 11/11/16 02:56, Andrew Pinski wrote: As I mentioned in my other emails, parsing /proc/cpuinfo has one issue is that the current parsing assumes many different things about the format. So the best way to do this is to parse

Re: [PATCH] Fix assembler arguments for -m16

2016-11-06 Thread Andreas Tobler
On 06.11.16 21:38, Uros Bizjak wrote: On Sun, Nov 6, 2016 at 5:48 PM, Gerald Pfeifer wrote: It appears this got stuck. Uros, is this okay? I can handle the commit if you approve. Looks good to me, so OK if tested on non-glibc system. Results w/o patch:

Re: [patch] aarch64-*-freebsd* support for gcc.

2016-10-12 Thread Andreas Tobler
Hi Jeff, On 10.10.16 23:10, Jeff Law wrote: On 10/10/2016 03:07 PM, Andreas Tobler wrote: Hi all, the attached patch brings support for the aarch64-*-freebsd* target. Bootstraped and tested, results on the list. Not that many results due to board instabilities I lack a cavium ;) Ok

Re: [patch] aarch64-*-freebsd* support for gcc.

2016-10-10 Thread Andreas Tobler
On 10.10.16 23:10, Jeff Law wrote: On 10/10/2016 03:07 PM, Andreas Tobler wrote: Hi all, the attached patch brings support for the aarch64-*-freebsd* target. Bootstraped and tested, results on the list. Not that many results due to board instabilities I lack a cavium ;) Ok for main

[patch] aarch64-*-freebsd* support for gcc.

2016-10-10 Thread Andreas Tobler
Andreas Tobler <andre...@gcc.gnu.org> * config.host: Add support for aarch64-*-freebsd*. gcc: 2016-10-10 Andreas Tobler <andre...@gcc.gnu.org> * config.gcc: Add aarch64-*-freebsd* support. * config.host: Likewise. * config/aarch64/aarch64-freebsd

Re: [patch] FreeBSD armv6 unaligned access

2016-06-10 Thread Andreas Tobler
Hi Gerald, On 10.06.16 22:26, Gerald Pfeifer wrote: On Fri, 10 Jun 2016, Andreas Tobler wrote: FreeBSD 11 will bring unaligned access support for armv6 and up. This patch enables it. If no objection I'll commit it to trunk, gcc-6 branch and gcc-5 branch in the next days. As FreeBSD

[patch] FreeBSD armv6 unaligned access

2016-06-10 Thread Andreas Tobler
Hi all, FreeBSD 11 will bring unaligned access support for armv6 and up. This patch enables it. If no objection I'll commit it to trunk, gcc-6 branch and gcc-5 branch in the next days. Thanks, Andreas 2016-06-10 Andreas Tobler <andre...@gcc.gnu.org> * config/arm/freebsd.h:

Re: [patch] config.gcc FreeBSD ARM

2016-05-30 Thread Andreas Tobler
On 27.05.16 22:34, Andreas Tobler wrote: Hi all, The FreeBSD ARM people eliminated the extra armv6hf target and moved the hardfloat 'functionality' into the armv6-*-freebsd11+ target. This applies / will apply (FreeBSD11 is not released yet. Planned date in September 16) to FreeBSD11

[patch] config.gcc FreeBSD ARM

2016-05-27 Thread Andreas Tobler
. The armv6hf is not life on FreeBSD10. This simplifies life a bit. I'll commit the attached patch to all the active branches. Regarding the gcc-5 branch, do I have permission to apply? TIA, Andreas 2016-05-27 Andreas Tobler <andre...@gcc.gnu.org> * config.gcc: Move hard float s

[PATCH] bootstrap/69611

2016-02-03 Thread Andreas Tobler
float128. The patch was tested by Michael Meissner on different POWER machines. Ok to commit to trunk? TIA, Andreas 2016-02-03 Andreas Tobler <andre...@gcc.gnu.org> PR bootstrap/69611 * config/rs6000/sfp-machine.h: Guard __sfp_exceptions with __FLOAT128__ to compil

Re: [patch] libsanitizer

2016-01-14 Thread Andreas Tobler
On 13.01.16 18:39, Bernd Schmidt wrote: On 01/11/2016 07:37 PM, Andreas Tobler wrote: +# Do a configure time check for -ldl +AC_CHECK_LIB(dl, dlsym, + [link_sanitizer_common="-lrt $link_sanitizer_common"]) + I'll give it a test run. If that works (with -ldl instead of -lr

Re: [patch] libsanitizer

2016-01-11 Thread Andreas Tobler
Hi Bernd, On 11.01.16 19:28, Bernd Schmidt wrote: On 11/10/2015 11:00 PM, Andreas Tobler wrote: the attached patch removes the hard-coded requirement for the link operation with -ldl. On FreeBSD we do not need that, it breaks compilation. # Common libraries that we need to link against

Re: [patch] libsanitizer

2016-01-11 Thread Andreas Tobler
On 11.01.16 19:57, Jakub Jelinek wrote: On Mon, Jan 11, 2016 at 07:37:30PM +0100, Andreas Tobler wrote: @@ -104,6 +104,10 @@ AC_CHECK_LIB(rt, shm_open, [link_sanitizer_common="-lrt $link_sanitizer_common"]) +# Do a configure time check for -ldl +AC_CHECK_LIB

Re: [patch] ARM FreeBSD fix bootstrap

2016-01-07 Thread Andreas Tobler
On 06.01.16 11:39, Richard Earnshaw (lists) wrote: On 05/01/16 21:03, Andreas Tobler wrote: On 05.01.16 11:32, Richard Earnshaw (lists) wrote: On 23/12/15 19:28, Andreas Tobler wrote: 2015-12-23 Andreas Tobler <andre...@gcc.gnu.org> * config/arm/freebsd.h:

Re: [patch] ARM FreeBSD fix bootstrap

2016-01-05 Thread Andreas Tobler
On 05.01.16 11:32, Richard Earnshaw (lists) wrote: On 23/12/15 19:28, Andreas Tobler wrote: 2015-12-23 Andreas Tobler <andre...@gcc.gnu.org> * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check unaligned_

Re: [patch] ARM FreeBSD fix bootstrap

2016-01-04 Thread Andreas Tobler
Ping :) TIA, Andreas On 23.12.15 20:28, Andreas Tobler wrote: On 23.12.15 11:22, Richard Earnshaw (lists) wrote: On 22/12/15 19:53, Andreas Tobler wrote: Hi all, the commit for PR68617 broke boostrap on armv6*-*-freebsd*. We still have unaligned_access = 0 on armv6 here on FreeBSD

Re: [patch] Fix dynamic linker spec for FreeBSD powerpc64

2015-12-25 Thread Andreas Tobler
On 22.12.15 20:18, Andreas Tobler wrote: Hi all, The attached patch fixes a problem you get if you build dynamic binaries for a 32-bit powerpc target on a 64-bit powerpc host. At the time I did this port I didn't fully understand all the scenarios you might run into. The issue is this, on all

Re: [patch] ARM FreeBSD fix bootstrap

2015-12-23 Thread Andreas Tobler
Hi Kyrill, On 23.12.15 10:40, Kyrill Tkachov wrote: On 22/12/15 19:53, Andreas Tobler wrote: Hi all, the commit for PR68617 broke boostrap on armv6*-*-freebsd*. We still have unaligned_access = 0 on armv6 here on FreeBSD. The commit from the above PR overrides my SUBTARGET_OVERRIDE_OPTIONS

Re: [patch] ARM FreeBSD fix bootstrap

2015-12-23 Thread Andreas Tobler
On 23.12.15 11:22, Richard Earnshaw (lists) wrote: On 22/12/15 19:53, Andreas Tobler wrote: Hi all, the commit for PR68617 broke boostrap on armv6*-*-freebsd*. We still have unaligned_access = 0 on armv6 here on FreeBSD. The commit from the above PR overrides my SUBTARGET_OVERRIDE_OPTIONS I

[patch] ARM FreeBSD fix bootstrap

2015-12-22 Thread Andreas Tobler
fixes this, bootstrap ongoing but passed the breaking stage where genmddeps bus errored. Is this patch ok for trunk once bootstrap completes? TIA, Andreas 2015-12-22 Andreas Tobler <andre...@gcc.gnu.org> * config/arm/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Adjust to

[patch] Fix dynamic linker spec for FreeBSD powerpc64

2015-12-22 Thread Andreas Tobler
this patch to trunk, gcc-5 and gcc-49 branch in the next days. It is FreeBSD powerpc64 only and it is a bug. Thanks, Andreas 2015-12-22 Andreas Tobler <andre...@gcc.gnu.org> * config/rs6000/freebsd64.h: Delete FREEBSD_DYNAMIC_LINKER32/64 defines. Use FBSD_DYNAMIC_LINKER i

Re: [patch] remove WCHAR_TYPE definition for FreeBSD PowerPC64

2015-12-09 Thread Andreas Tobler
On 06.12.15 23:54, Andreas Tobler wrote: Hi, I'm going to commit this patch to trunk, 5.4 and 4.9 branch if there are no objections. The redefinition of WCHAR_TYPE for PowerPC64 is wrong since its beginning. My fault. We use the definition from freebsd.h. Committed to trunk. But I left

[patch] remove WCHAR_TYPE definition for FreeBSD PowerPC64

2015-12-06 Thread Andreas Tobler
Hi, I'm going to commit this patch to trunk, 5.4 and 4.9 branch if there are no objections. The redefinition of WCHAR_TYPE for PowerPC64 is wrong since its beginning. My fault. We use the definition from freebsd.h. Thanks, Andreas 2015-12-06 Andreas Tobler <andre...@gcc.gnu.

Re: [patch] add ELFv2 check to FreeBSD PowerPC64

2015-12-04 Thread Andreas Tobler
On 01.12.15 22:47, Andreas Tobler wrote: On 29.11.15 22:15, Andreas Tobler wrote: Hi all, I'd like to commit this patch to trunk. It is FreeBSD only. If nobody objects I'll commit it within two days. Thanks, Andreas 2015-11-29 Andreas Tobler <andre...@gcc.gnu.org> *

Re: [PATCH] fix PR65726

2015-12-04 Thread Andreas Tobler
On 01.12.15 22:55, Jeff Law wrote: On 12/01/2015 02:50 PM, Andreas Tobler wrote: On 30.11.15 23:30, Jeff Law wrote: On 11/26/2015 11:49 AM, Andreas Tobler wrote: Hi all, the attached patch fixes the build issue from this ticket if bootstrap is disabled. Tested on x86_64-*-linux

Re: [patch] RFC asan support for i?86/x86_64-*freebsd*

2015-12-01 Thread Andreas Tobler
Hi! On 01.12.15 13:22, Uros Bizjak wrote: 2015-11-29 Andreas Tobler <andre...@gcc.gnu.org> * config/i386/i386.h: Define two new macros: SUBTARGET_SHADOW_OFFSET_64 and SUBTARGET_SHADOW_OFFSET_32. * config/i386/i386.c (ix86_asan_shadow_offset): Use these macros. * config/i386/da

  1   2   3   >