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

[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 open

[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] 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

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 impor

[patch] fix cross build on powerpc*-*-freebsd

2012-09-28 Thread Andreas Tobler
he test suite on both branches? TIA, Andreas 2012-09-28 Andreas Tobler * config.gcc: Replace 'host' with 'target' when configuring for powerpc64*-*-freebsd. Index: gcc/config.gcc === --- gcc

Re: [patch] fix cross build on powerpc*-*-freebsd

2012-09-28 Thread Andreas Tobler
On 28.09.12 17:21, Ian Lance Taylor wrote: On Fri, Sep 28, 2012 at 4:30 AM, Andreas Tobler wrote: 2012-09-28 Andreas Tobler * config.gcc: Replace 'host' with 'target' when configuring for powerpc64*-*-freebsd. Counts as obvious. OK in any case.

[patch] fix bootstrap in libbacktrace for FreeBSD

2012-10-10 Thread Andreas Tobler
Hi, FreeBSD has already defined the various Elf_ stuff for 32 and 64-bit targets. Currently compilation in libbacktrace fails due to redefinition of these: - Elf_Ehdr - Elf_Sym - Elf_Shdr I 'fixed' this with ifndef'ing. See below. Bootstrap passed. Is something like this ok for trunk? Tha

Re: [patch] fix bootstrap in libbacktrace for FreeBSD

2012-10-10 Thread Andreas Tobler
On 10.10.12 17:36, Ian Lance Taylor wrote: On Wed, Oct 10, 2012 at 6:45 AM, Andreas Tobler wrote: FreeBSD has already defined the various Elf_ stuff for 32 and 64-bit targets. Currently compilation in libbacktrace fails due to redefinition of these: - Elf_Ehdr - Elf_Sym - Elf_Shdr I '

Re: [patch] fix bootstrap in libbacktrace for FreeBSD

2012-10-10 Thread Andreas Tobler
On 10.10.12 22:00, Ian Lance Taylor wrote: On Wed, Oct 10, 2012 at 12:30 PM, Andreas Tobler wrote: On 10.10.12 17:36, Ian Lance Taylor wrote: On Wed, Oct 10, 2012 at 6:45 AM, Andreas Tobler wrote: FreeBSD has already defined the various Elf_ stuff for 32 and 64-bit targets. Currently

[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 PR bootstrap/69611 * config/rs6000/sfp-machine.h: Guard __sfp_exceptions with __FLOAT128__ to compile only for __float128 capable

[patch] fix fortran regressions on FreeBSD10.0/11.0

2013-12-16 Thread Andreas Tobler
t in the next 24 hours. Thanks, Andreas 2013-12-17 Andreas Tobler * io/unix.c (tempfile_open): Only use the needed flag O_CLOEXEC. Index: io/unix.c === --- io/unix.c (revision 206039) +++ io/unix.c (working copy) @@ -

[patch] libgomp test fixes for FreeBSD

2013-12-17 Thread Andreas Tobler
on Linux/x86_64 and FreeBSD11.0 amd64. On FreeBSD we get all test cases pass. (on Linux too, no regression) Ok for trunk? Thanks, Andreas 2013-12-17 Andreas Tobler * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage

Re: [patch] libgomp test fixes for FreeBSD

2013-12-17 Thread Andreas Tobler
On 17.12.13 18:54, Jakub Jelinek wrote: > On Tue, Dec 17, 2013 at 06:42:22PM +0100, Andreas Tobler wrote: >> 2013-12-17 Andreas Tobler >> >> * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. > > In this case please also change the alloca (..

[patch] powerpc64 FreeBSD support for boehm-gc

2013-12-20 Thread Andreas Tobler
Hi, the below patch adds support for powerpc64 FreeBSD for the boehm-gc. The diff is already available in boehm-gc trunk. Ok for gcc trunk? Thanks, Andreas 2013-12-20 Andreas Tobler * include/private/gcconfig.h: Add FreeBSD powerpc64 defines. Index: include/private/gcconfig.h

Re: [patch] powerpc64 FreeBSD support for boehm-gc

2013-12-25 Thread Andreas Tobler
On 21.12.13 18:27, Andrew Haley wrote: > On 12/20/2013 10:15 PM, Andreas Tobler wrote: >> Ok for gcc trunk? > > OK, thanks. > May I get this one down to 4.8 too? Not really needed, but for completeness. Results will follow... Thanks, Andreas

Re: [patch] powerpc64 FreeBSD support for boehm-gc

2013-12-29 Thread Andreas Tobler
On 26.12.13 23:48, Andrew Haley wrote: > On 12/26/2013 12:11 AM, Andreas Tobler wrote: >> On 21.12.13 18:27, Andrew Haley wrote: >>> On 12/20/2013 10:15 PM, Andreas Tobler wrote: >>>> Ok for gcc trunk? >>> >>> OK, thanks. >>> >> &g

Re: [patch] testsuite enable PIE tests on DragonFly

2015-07-09 Thread Andreas Tobler
On 09.07.15 17:30, Jeff Law wrote: On 07/09/2015 07:53 AM, John Marino wrote: DragonFly supports PIE but the tests for it are disabled. The attached patch for the trunk will enable these checks on DragonFly. Thanks for considering this! John p.s. suggested gcc/testsuite/changelog entry: 2015-

Re: [PATCH] libffi testsuite: Don't run testsuite/libffi.call/float2.c on hppa*-*-hpux*

2015-10-26 Thread Andreas Tobler
Hi John, On 29.03.15 22:01, Andreas Tobler wrote: On 28.03.15 20:25, John David Anglin wrote: The libffi.call/float2.c test uses fabsl which was introduced in c99 and isn't available on hppa*-*-hpux*. In order to use the target selector with dg-run, I need to load target-supports-dg.e

[patch] gcc5 FreeBSD rs6000 PIE handling

2015-10-31 Thread Andreas Tobler
tions I'll commit this bit in the next days. It is FreeBSD only. Thanks, Andreas 2015-10-31 Andreas Tobler * config/rs6000/freebsd64.h (ASM_SPEC32): Adapt spec to handle PIE executables. Index: gcc/config/rs6000/f

[patch] gcc6 FreeBSD rs6000 PIE handling

2015-10-31 Thread Andreas Tobler
10-31 Andreas Tobler * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle PIE executables. Index: rs6000/freebsd64.h === --- rs6000/freebsd64.h (revision 229634) +++ rs6000/freebsd64.h (working copy) @@ -

Re: [patch] gcc6 FreeBSD rs6000 PIE handling

2015-11-02 Thread Andreas Tobler
On 31.10.15 22:34, Andreas Tobler wrote: Hi, this is the part for gcc trunk. As mentioned in the previous mail (same subject for gcc5) I forgot to adapt the PIE bits for FreeBSD powerpc64. The patch below lets me bootstrap a current gcc with itself. I'll commit this part if there a

Re: [patch] gcc5 FreeBSD rs6000 PIE handling

2015-11-02 Thread Andreas Tobler
On 31.10.15 22:28, Andreas Tobler wrote: Hi, I forgot to adapt the pie bits for powerpc64 FreeBSD back in May when I committed the pie support for FreeBSD. Without the below patch I'm not able to bootstrap a current gcc on FreeBSD powerpc64. The patch is against gcc-5, the patch for trunk

[patch] backport PIE support for FreeBSD to gcc-49

2015-11-09 Thread Andreas Tobler
Hi, any objections that I apply this patch to gcc-4.9? It is FreeBSD only. TIA, Andreas 2015-11-09 Andreas Tobler Backport from mainline 2015-05-18 Andreas Tobler * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build pie executables

[patch] backport remove of soft float for FreeBSD powerpc for gcc-4.9

2015-11-09 Thread Andreas Tobler
Hi all, any objections when I apply the below patch to gcc-4.9? TIA, Andreas 2015-11-09 Andreas Tobler Backport from mainline 2015-03-04 Andreas Tobler * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs. Index: gcc/config/rs6000/t-freebsd64

[patch] libsanitizer

2015-11-10 Thread Andreas Tobler
Hi all, the attached patch removes the hard-coded requirement for the link operation with -ldl. On FreeBSD we do not need that, it breaks compilation. The patch is tested against CentOS7.1 Ok to apply for trunk? TIA, Andreas 2015-11-10 Andreas Tobler * configure.ac: Replace the

Re: [patch] backport PIE support for FreeBSD to gcc-49

2015-11-11 Thread Andreas Tobler
On 09.11.15 13:38, Andreas Tobler wrote: Hi, any objections that I apply this patch to gcc-4.9? It is FreeBSD only. committed as: 230192 Andreas 2015-11-09 Andreas Tobler Backport from mainline 2015-05-18 Andreas Tobler * config/freebsd-spec.h

Re: [patch] backport remove of soft float for FreeBSD powerpc for gcc-4.9

2015-11-11 Thread Andreas Tobler
On 09.11.15 13:41, Andreas Tobler wrote: Hi all, any objections when I apply the below patch to gcc-4.9? committed as: 230193 Andreas 2015-11-09 Andreas Tobler Backport from mainline 2015-03-04 Andreas Tobler * config/rs6000/t-freebsd64: Remove 32-bit soft

[patch] update locale support fro FreeBSD

2015-11-12 Thread Andreas Tobler
and John are committed before stage3?) TIA, Andreas 2015-11-12 Andreas Tobler * acinclude.m4 (GLIBCXX_ENABLE_CLOCALE): Change locale implementation from darwin to DragonFly. * configure: Regenerate. * config/os/bsd/freebsd/ctype_configure_char.cc: Improve

Re: [PATCH] Enable libstdc++ numeric conversions on Cygwin

2015-11-12 Thread Andreas Tobler
On 12.11.15 14:39, Jonathan Wakely wrote: On 12/11/15 11:40 +, Jonathan Wakely wrote: On 18/09/15 12:01 -0400, Jennifer Yao wrote: Forgot to include the patch. On Fri, Sep 18, 2015 at 11:17 AM, Jennifer Yao wrote: A number of functions in libstdc++ are guarded by the _GLIBCXX_USE_C99 pre

Re: [patch] update locale support fro FreeBSD

2015-11-14 Thread Andreas Tobler
On 14.11.15 14:43, Jonathan Wakely wrote: On 13/11/15 15:28 +, Jonathan Wakely wrote: On 12/11/15 23:32 +0100, Andreas Tobler wrote: All, with the work from Jennifer Yao and John Marino we can now update the locale support on FreeBSD to the level of DragonFly. Results of this work can be

Re: [PATCH,x86,FreeBSD] Update FreeBSD/i386 to i586

2015-11-15 Thread Andreas Tobler
On 15.11.15 10:52, Gerald Pfeifer wrote: This is something I had first done and tested a while ago, but apparently failed to submit. It did not show in my running of the testsuite (bootstrap and testing without regressions on i386-unknown-freebsd10.1), but in some cases the use of i586 instructi

[patch] FreeBSD x86_64/i386 apply r125920

2015-11-16 Thread Andreas Tobler
Hi all, I'm going to apply the below patch to trunk if there are no objections. There are no regressions. From our pov, we should be in sync with Linux here. Also, I'm going to push this one out to 5.x after one week. Thanks, Andreas 2015-11-16 Andreas Tobler * c

Re: [patch] FreeBSD x86_64/i386 apply r125920

2015-11-18 Thread Andreas Tobler
On 16.11.15 23:20, Andreas Tobler wrote: Hi all, I'm going to apply the below patch to trunk if there are no objections. There are no regressions. From our pov, we should be in sync with Linux here. Also, I'm going to push this one out to 5.x after one week. Committed on trunk

Re: [patch] FreeBSD x86_64/i386 apply r125920

2015-11-24 Thread Andreas Tobler
On 18.11.15 21:49, Andreas Tobler wrote: On 16.11.15 23:20, Andreas Tobler wrote: Hi all, I'm going to apply the below patch to trunk if there are no objections. There are no regressions. From our pov, we should be in sync with Linux here. Also, I'm going to push this one out to

[PATCH] fix PR65726

2015-11-26 Thread Andreas Tobler
Hi all, the attached patch fixes the build issue from this ticket if bootstrap is disabled. Tested on x86_64-*-linux* and on x86_64-*-freebsd* with gcc and clang. Ok for trunk? And 5.3? Thanks, Andreas 2015-11-26 Andreas Tobler PR libffi/65726 * Makefile.def

[patch] c/c++ asan tests for FreeBSD

2015-11-29 Thread Andreas Tobler
Hi all, the attached patch prepares the testsuite, c and c++, for the upcoming ASAN support for FreeBSD (x86_64 first). I tested the patch on CentOS7.1 x86_64 and on FreeBSD x86_64. Results can be seen on the list. Is this ok for trunk? Thanks, Andreas 2015-11-29 Andreas Tobler

[patch] add ELFv2 check to FreeBSD PowerPC64

2015-11-29 Thread Andreas Tobler
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 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro. (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it

Re: [patch] c/c++ asan tests for FreeBSD

2015-11-29 Thread Andreas Tobler
On 29.11.15 20:32, Andreas Tobler wrote: Hi all, the attached patch prepares the testsuite, c and c++, for the upcoming ASAN support for FreeBSD (x86_64 first). I tested the patch on CentOS7.1 x86_64 and on FreeBSD x86_64. Results can be seen on the list. Is this ok for trunk? Aehm, an add

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

2015-11-29 Thread Andreas Tobler
does not need to link against -ldl. That is why I added an extra config check. But nevertheless I'd like to get some comments on the patch. Thanks to Jakub and Dan McGregor. Thanks, Andreas 2015-11-29 Andreas Tobler * config/i386/i386.h: Define two new m

Re: [patch] c/c++ asan tests for FreeBSD

2015-11-30 Thread Andreas Tobler
On 30.11.15 11:28, Bernd Schmidt wrote: On 11/29/2015 08:32 PM, Andreas Tobler wrote: Hi all, the attached patch prepares the testsuite, c and c++, for the upcoming ASAN support for FreeBSD (x86_64 first). I tested the patch on CentOS7.1 x86_64 and on FreeBSD x86_64. Results can be seen on

Re: [patch] c/c++ asan tests for FreeBSD

2015-11-30 Thread Andreas Tobler
On 30.11.15 17:22, Jakub Jelinek wrote: On Mon, Nov 30, 2015 at 05:17:29PM +0100, Bernd Schmidt wrote: On 11/30/2015 01:12 PM, Andreas Tobler wrote: On 30.11.15 11:28, Bernd Schmidt wrote: On 11/29/2015 08:32 PM, Andreas Tobler wrote: -/* { dg-do run { target { *-*-linux* } } } */ +/* { dg

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 * 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/darwin.h: Override the

Re: [patch] add ELFv2 check to FreeBSD PowerPC64

2015-12-01 Thread Andreas Tobler
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 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add

Re: [PATCH] fix PR65726

2015-12-01 Thread Andreas Tobler
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* and on x86_64-*-freebsd* with gcc and clang. Ok for trunk? And 5.3? Thanks, Andreas 2015

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* and on

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 * config/rs6000/f

[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 * config/r

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 lef

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 impor

[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: [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 b

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

[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, An

Re: [PATCH] FreeBSD PowerPC use secure-plt

2019-09-25 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

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

[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 *

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

2019-09-30 Thread Andreas Tobler
cases 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/int

[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] C testsuite, silence a FreeBSD libc warning

2019-09-30 Thread Andreas Tobler
sibly 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/prun

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

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 comput

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 ev

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, 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] testsuite:analyzer: Fix header include for FreeBSD

2020-05-06 Thread Andreas Tobler
ks fine 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/a

[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 An

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

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] 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 but it

[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 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to arm1176jzf-s. Index: config.gcc

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. c

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 4.2,

[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 Maryse Levavasseur PR libgcc/84292 * config/arm/freebsd-ato

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 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 is safe then it's fine

Re: Fallout on full bootstrap

2014-10-11 Thread Andreas Tobler
On 11.10.14 12:43, Jan-Benedict Glaw wrote: On Wed, 2014-10-08 17:10:01 -, hubi...@gcc.gnu.org wrote: URL: https://gcc.gnu.org/viewcvs?rev=216010&root=gcc&view=rev * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better pattern matching of MEM_REF. (check_st

Re: [PATCH] FreeBSD add functionality to build PIE executables.

2015-05-17 Thread Andreas Tobler
Ping?! Thanks, Andreas On 11.05.15 22:34, Andreas Tobler wrote: All, this patch adds the ability to build PIE executables for FreeBSD. The core is since a longer time in the code base of FreeBSD itself and is working fine. This patch makes it available for all FreeBSD targets. Tested on

Re: [PATCH] FreeBSD add functionality to build PIE executables.

2015-05-18 Thread Andreas Tobler
On 18.05.15 19:36, Jeff Law wrote: On 05/17/2015 02:42 PM, Andreas Tobler wrote: Ping?! Thanks, Andreas On 11.05.15 22:34, Andreas Tobler wrote: All, this patch adds the ability to build PIE executables for FreeBSD. The core is since a longer time in the code base of FreeBSD itself and is

[patch] testsuite enable PIE tests on FreeBSD

2015-05-20 Thread Andreas Tobler
Hi, the attached patch enables some PIE tests on FreeBSD. Ok for trunk? Thanks, Andreas 2015-05-20 Andreas Tobler * gcc.target/i386/pr32219-1.c: Enable test on FreeBSD. * gcc.target/i386/pr32219-2.c: Likewise. * gcc.target/i386/pr32219-3.c: Likewise

Re: [PATCH] Contribute FreeBSD unwind support (x86_64 and x86)

2015-05-20 Thread Andreas Tobler
On 20.05.15 21:49, John Marino wrote: I have maintained unwind support for FreeBSD i386 and x86_64 in my "gnat-aux" repository for many years (I created it). I've always intended on contributing it back to GCC, but I never got around to "proving" it worked until now. The version I've been using

Re: [patch] testsuite enable PIE tests on FreeBSD

2015-05-21 Thread Andreas Tobler
On 20.05.15 22:30, Jeff Law wrote: On 05/20/2015 11:04 AM, Andreas Tobler wrote: Hi, the attached patch enables some PIE tests on FreeBSD. Ok for trunk? Thanks, Andreas 2015-05-20 Andreas Tobler * gcc.target/i386/pr32219-1.c: Enable test on FreeBSD. * gcc.target/i386/pr32219

Re: [patch] testsuite enable PIE tests on FreeBSD

2015-05-21 Thread Andreas Tobler
On 21.05.15 20:14, Andreas Tobler wrote: On 20.05.15 22:30, Jeff Law wrote: On 05/20/2015 11:04 AM, Andreas Tobler wrote: Hi, the attached patch enables some PIE tests on FreeBSD. Ok for trunk? Thanks, Andreas 2015-05-20 Andreas Tobler * gcc.target/i386/pr32219-1.c: Enable test

Re: [patch] testsuite enable PIE tests on FreeBSD

2015-05-25 Thread Andreas Tobler
On 22.05.15 23:47, Jeff Law wrote: On 05/21/2015 02:01 PM, Andreas Tobler wrote: On 21.05.15 20:14, Andreas Tobler wrote: On 20.05.15 22:30, Jeff Law wrote: On 05/20/2015 11:04 AM, Andreas Tobler wrote: Hi, the attached patch enables some PIE tests on FreeBSD. Ok for trunk? Thanks

[patch] libjava testsuite

2015-05-25 Thread Andreas Tobler
Hi all, the below patch fixes the PR16923.c test case on FreeBSD (amd64/i386). Ok for trunk? Thanks, Andreas 2015-05-25 Andreas Tobler * testsuite/libjava.jni/jni.exp (gcj_jni_get_cxxflags_invocation): Add libiconv for FreeBSD to cxxflags. Index: testsuite/libjava.jni

Re: [PATCH] Contribute FreeBSD unwind support (x86_64 and x86)

2015-05-25 Thread Andreas Tobler
On 20.05.15 22:21, Andreas Tobler wrote: On 20.05.15 21:49, John Marino wrote: I have maintained unwind support for FreeBSD i386 and x86_64 in my "gnat-aux" repository for many years (I created it). I've always intended on contributing it back to GCC, but I never got around

Re: [patch] testsuite enable PIE tests on FreeBSD

2015-05-25 Thread Andreas Tobler
On 25.05.15 14:42, Dominique Dhumieres wrote: Wouldn't it be better to remove the target selector and instead add: /* { dg-require-effective-target pie } */ ... This allows the tests to be run on Darwin and fail because the code generated does not match the scan-assembler: FAIL: gcc.target/i

[patch] libjava signal handling for FreeBSD (amd64/i386)

2015-05-27 Thread Andreas Tobler
for trunk? Thanks, Andreas 2015-05-27 Andreas Tobler * configure.host: Add bits for FreeBSD amd64 and i386. * configure.ac: Add signal handler for FreeBSD (amd64/i386) * configure: Regenerate. * include/freebsd-signal.h: New file. Index: configure

[patch] fix bootstrap on FreeBSD i386/arm

2015-05-28 Thread Andreas Tobler
this and restores bootstrap on FreeBSD. Ok for trunk? Thanks, Andreas 2015-05-28 Andreas Tobler * configure.ac: Move the atoll check from AC_CHECK_FUNCS to gcc_AC_CHECK_DECLS. * configure: Regenerate. Index: configure.ac

Re: [patch] fix bootstrap on FreeBSD i386/arm

2015-05-30 Thread Andreas Tobler
Hi Steve, On 29.05.15 19:18, Steve Ellcey wrote: On Thu, 2015-05-28 at 23:54 +0200, Eric Botcazou wrote: This patch restores bootstrap on i386-*-freebsd*. The build was failing after the introduction of -std=c++98 configure/build flag. The -std=c++98 enables strict_ansi and on FreeBSD the libc

Re: [patch] fix bootstrap on FreeBSD i386/arm

2015-05-31 Thread Andreas Tobler
On 28.05.15 23:54, Eric Botcazou wrote: This patch restores bootstrap on i386-*-freebsd*. The build was failing after the introduction of -std=c++98 configure/build flag. The -std=c++98 enables strict_ansi and on FreeBSD the libc function atoll is not defined for this. Solaris (x86 and SPARC) i

Re: [patch] fix bootstrap on FreeBSD i386/arm

2015-05-31 Thread Andreas Tobler
Hi Jason, On 30.05.15 11:27, Andreas Tobler wrote: On 29.05.15 19:18, Steve Ellcey wrote: On Thu, 2015-05-28 at 23:54 +0200, Eric Botcazou wrote: This patch restores bootstrap on i386-*-freebsd*. The build was failing after the introduction of -std=c++98 configure/build flag. The -std=c++98

Re: [patch] fix bootstrap on FreeBSD i386/arm

2015-06-01 Thread Andreas Tobler
On 01.06.15 16:43, Steve Ellcey wrote: On Sat, 2015-05-30 at 11:27 +0200, Andreas Tobler wrote: I'm sorry. I totally forgot about autoheader... I'm testing this one now. Would you mind giving it a try? Thanks, Andreas This patch worked for me. I am curious about w

[PATCH] fix PR target/65535

2015-04-16 Thread Andreas Tobler
Hi all, the below is an attempt to warn a user when she/he builds a cross compiler for *-*-freebsd* without giving a major version number. Ok for trunk? Thanks, Andreas 2015-04-16 Andreas Tobler * config.gcc: Exit with a comment when we do not have a major version number

[PATCH] tetstsuite gcc.target/i386/ avx512*

2015-04-19 Thread Andreas Tobler
instead. FreeBSD lacks the "values.h" header. Done so and tested on FreeBSD amd64-unknown-freebsd11.0 and CentOS7.1. Ok for trunk? Thanks, Andreas 2015-04-19 Andreas Tobler * gcc.target/i386/avx512bw-vpermi2w-2.c: Fix includes to use actual headers. *

Re: [PATCH] tetstsuite gcc.target/i386/ avx512*

2015-04-22 Thread Andreas Tobler
Hi Kirill, On 21.04.15 10:28, Kirill Yukhin wrote: On 19 Apr 21:56, Andreas Tobler wrote: Done so and tested on FreeBSD amd64-unknown-freebsd11.0 and CentOS7.1. Ok for trunk? The patch is OK for trunk and for gcc-5 branch (when it is open). Thanks for fixing this! Done on trunk and gcc-5

[Committed] Restore bootstrap for ARM

2015-05-04 Thread Andreas Tobler
All, I committed the below as obvious. Andreas 2015-05-04 Andreas Tobler * config/arm/arm.c: Restore bootstrap. Index: config/arm/arm.c === --- config/arm/arm.c(revision 222767) +++ config/arm/arm.c(working

[PATCH] FreeBSD add functionality to build PIE executables.

2015-05-11 Thread Andreas Tobler
-testresults/2015-05/msg01324.html Is this ok for trunk and for 5.1X? Thanks, Andreas 2015-05-11 Andreas Tobler * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build pie executables. (FBSD_ENDFILE_SPEC): Likewise. * config/i386/freebsd.h (STARTFILE_SPEC

Re: [PATCH][ARM] testsuite, use arm_eabi #3

2014-11-25 Thread Andreas Tobler
On 11.11.14 00:45, Mike Stump wrote: On Nov 10, 2014, at 2:06 PM, Andreas Tobler wrote: another one. Here I'm not really sure if there are EABI variants which do _not_ support these test cases. I think the patch is fine, just watch for any follow-on comments from an eabi/arm e

[PATCH][ARM] FreeBSD arm support, EABI, v2

2014-11-27 Thread Andreas Tobler
Hi all, this is the second attempt. I reworked the issues Richard mentioned in the previous review. I also found one issue which will break build/bootstrap if I pass --enable-gnu-indirect-function, also fixed. One thing which came up is the way we generate code for the armv6*-*-freebsd* triplet

[patch] FreeBSD powerpc64 remove 32-bit soft-float multilibs.

2015-03-01 Thread Andreas Tobler
? Thanks, Andreas 2015-03-01 Andreas Tobler * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs. Index: gcc/config/rs6000/t-freebsd64 === --- gcc/config/rs6000/t-freebsd64 (revision 221089) +++ gcc/config

  1   2   3   >