Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2020-10-20 Thread Joerg Sonnenberger
On Wed, Oct 21, 2020 at 08:58:36AM +0900, Rin Okuyama wrote:
> I'm also one who feels hesitate to import Linux'ism into our basic
> components. However, for this problem in particular, I still think
> it is not a good choice to keep NetBSD support in driver-aarch64.c:
> 
> (a) Our sysctl(3)-based interface is not compliant to any standards,
> just like Linux's /proc/cpuinfo. But the latter is, unfortunately
> for us, the de facto standard.

It works properly in a chroot etc without needing new files. I would
call that a big plus.

Joerg


Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2020-10-20 Thread Rin Okuyama

Hi,
(tech-toolchain@ added to cc)

On 2020/10/16 1:49, Kamil Rytarowski wrote:

On 15.10.2020 17:14, Rin Okuyama wrote:

On 2020/10/15 16:12, matthew green wrote:

Martin Husemann writes:

On Thu, Oct 15, 2020 at 05:28:12PM +1100, matthew green wrote:

you could try reverting most of our changes to this file and
making sure you run with /proc mounted -o linux.  ryo@ recently
added additional /proc/cpuinfo support that should make this
just work with the upstream version, but i haven't had chance
to update and see if this is the case.


I've confirmed that -mtune=native works fine at least for A53,
even if all the local changes to driver-aarch64.c is reverted.
I will commit it soon.


If we go this route, we should make the relevant procfs nodes
independent
of -o linux.


that would be fine by me.


Nowadays, -o linux is turned on by default (unless nolinux is
specified explicitly). Still, native apps probably should not
depend on it.

This needs MI changes to procfs, not MD to aarch64. Should we
enable /proc/cpuinfo unconditionally?



I'm against the policy of restoring the /proc dependency for this corner
case in one application.

We need to upstream the NetBSD specific patches to mainline GCC.


I'm also one who feels hesitate to import Linux'ism into our basic
components. However, for this problem in particular, I still think
it is not a good choice to keep NetBSD support in driver-aarch64.c:

(a) Our sysctl(3)-based interface is not compliant to any standards,
just like Linux's /proc/cpuinfo. But the latter is, unfortunately
for us, the de facto standard.

(b) Because of (a), driver-aarch64.c is deeply depended on
/proc/cpuinfo. Our NetBSD support code

see diff to vendor branch here:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c.diff?r1=1.1.1.7=1.10=h

is something like a "glue code" which converts our convention to
/proc/cpuinfo style. We already do this in procfs. Why twice?

(c) I imagine that there would be little benefits for upstream to
merge NetBSD support into their repository. If they will merge,
I don't think the code is kept updated.

(d) Only -march=native and -mtune=native depends on this feature. I'm
OK with /proc/cpuinfo is left as is; only enabled when -onolinux is
not specified. IMO, it is users' responsibility that such a
additional feature fails with their non-standard system settings.

In short, I'm worried about future when mrg@ or someone else have to
maintain our glue code eternally, if this code is not reverted.

Thanks,
rin


Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2020-10-16 Thread Robert Elz
Date:Fri, 16 Oct 2020 04:07:31 +
From:"Thomas Mueller" 
Message-ID:  <20201016052422.e063084...@mail.netbsd.org>

  | Should I add ,linux to the end of the procfs line?

You can, but it isn't needed these days -- I used to mount procfs twice,
once without the linux option, on /proc, and once with, on /emul/linux/proc)
but there seems to be little point in that any more (even though the linux
/proc has a whole bunch of trash that has nothing to do with processes, and
should be, and generally is, available from /kern ... /proc/cpuinfo is an
example of that, though that one is missing from kernfs and should be added
there).

I do add "hidden" to the mount option list though, there's essentially
no point in including /proc /kern /dev/pts (or anything else like those)
in default df output (which is the only thing "hidden" generally affects).

kre



Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2020-10-15 Thread Thomas Mueller
Excerpt from Rin Okuyama:

> Nowadays, -o linux is turned on by default (unless nolinux is
> specified explicitly). Still, native apps probably should not
> depend on it.
 
> This needs MI changes to procfs, not MD to aarch64. Should we
> enable /proc/cpuinfo unconditionally?

My NetBSD system has no /kern and no /proc, do I need to mkdir these 
directories?  I just did.

kernfs and procfs were commented out in /etc/fstab .

Do I need to revive, new /etc/fstab being as shown below, is this good now?

Should I add ,linux to the end of the procfs line?

I might want to run Linux programs.

# NetBSD /targetroot/etc/fstab
# See /usr/share/examples/fstab/ for more examples.
NAME=WD2G19  /  ffs rw,log   1 1
NAME=WD2G17  none   swapsw,dp0 0
kernfs  /kern   kernfs  rw
ptyfs   /dev/ptsptyfs   rw
procfs  /proc   procfs  rw
/dev/cd0a   /cdrom  cd9660  ro,noauto

tmpfs   /var/shmtmpfs   rw,-m1777,-sram%25

Tom


Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2020-10-15 Thread Kamil Rytarowski
On 15.10.2020 17:14, Rin Okuyama wrote:
> On 2020/10/15 16:12, matthew green wrote:
>> Martin Husemann writes:
>>> On Thu, Oct 15, 2020 at 05:28:12PM +1100, matthew green wrote:
 you could try reverting most of our changes to this file and
 making sure you run with /proc mounted -o linux.  ryo@ recently
 added additional /proc/cpuinfo support that should make this
 just work with the upstream version, but i haven't had chance
 to update and see if this is the case.
> 
> I've confirmed that -mtune=native works fine at least for A53,
> even if all the local changes to driver-aarch64.c is reverted.
> I will commit it soon.
> 
>>> If we go this route, we should make the relevant procfs nodes
>>> independent
>>> of -o linux.
>>
>> that would be fine by me.
> 
> Nowadays, -o linux is turned on by default (unless nolinux is
> specified explicitly). Still, native apps probably should not
> depend on it.
> 
> This needs MI changes to procfs, not MD to aarch64. Should we
> enable /proc/cpuinfo unconditionally?


I'm against the policy of restoring the /proc dependency for this corner
case in one application.

We need to upstream the NetBSD specific patches to mainline GCC.



signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2020-10-15 Thread Rin Okuyama

On 2020/10/15 16:12, matthew green wrote:

Martin Husemann writes:

On Thu, Oct 15, 2020 at 05:28:12PM +1100, matthew green wrote:

you could try reverting most of our changes to this file and
making sure you run with /proc mounted -o linux.  ryo@ recently
added additional /proc/cpuinfo support that should make this
just work with the upstream version, but i haven't had chance
to update and see if this is the case.


I've confirmed that -mtune=native works fine at least for A53,
even if all the local changes to driver-aarch64.c is reverted.
I will commit it soon.


If we go this route, we should make the relevant procfs nodes independent
of -o linux.


that would be fine by me.


Nowadays, -o linux is turned on by default (unless nolinux is
specified explicitly). Still, native apps probably should not
depend on it.

This needs MI changes to procfs, not MD to aarch64. Should we
enable /proc/cpuinfo unconditionally?


i had to write the netbsd version of that code twice so far.
once for gcc 8.3 and 8.4, once for gcc 8.5 and 9.3, and i'd
really rather avoid having to write another version :)


Oh... Thank you very much for your hard works!

Thanks,
rin


re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2020-10-15 Thread matthew green
Martin Husemann writes:
> On Thu, Oct 15, 2020 at 05:28:12PM +1100, matthew green wrote:
> > you could try reverting most of our changes to this file and
> > making sure you run with /proc mounted -o linux.  ryo@ recently
> > added additional /proc/cpuinfo support that should make this
> > just work with the upstream version, but i haven't had chance
> > to update and see if this is the case.
> 
> If we go this route, we should make the relevant procfs nodes independent
> of -o linux.

that would be fine by me.

i had to write the netbsd version of that code twice so far.
once for gcc 8.3 and 8.4, once for gcc 8.5 and 9.3, and i'd
really rather avoid having to write another version :)


.mrg.


Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2020-10-15 Thread Martin Husemann
On Thu, Oct 15, 2020 at 05:28:12PM +1100, matthew green wrote:
> you could try reverting most of our changes to this file and
> making sure you run with /proc mounted -o linux.  ryo@ recently
> added additional /proc/cpuinfo support that should make this
> just work with the upstream version, but i haven't had chance
> to update and see if this is the case.

If we go this route, we should make the relevant procfs nodes independent
of -o linux.

Martin


re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2020-10-15 Thread matthew green
"Rin Okuyama" writes:
> Module Name:  src
> Committed By: rin
> Date: Tue Oct 13 07:12:00 UTC 2020
> 
> Modified Files:
>   src/external/gpl3/gcc/dist/gcc/config/aarch64: driver-aarch64.c
> 
> Log Message:
> Reduce diff with upstream a bit.
> No functional changes.

you could try reverting most of our changes to this file and
making sure you run with /proc mounted -o linux.  ryo@ recently
added additional /proc/cpuinfo support that should make this
just work with the upstream version, but i haven't had chance
to update and see if this is the case.

thanks!


.mrg.


Re: CVS commit: src/external/gpl3/gcc

2020-09-12 Thread Kamil Rytarowski
On 12.09.2020 23:36, Joerg Sonnenberger wrote:
> On Sat, Sep 12, 2020 at 10:24:16PM +0200, Kamil Rytarowski wrote:
>> On 12.09.2020 22:06, Joerg Sonnenberger wrote:
>>> On Fri, Sep 11, 2020 at 11:45:42PM +0200, Kamil Rytarowski wrote:
 On 11.09.2020 23:38, Joerg Sonnenberger wrote:
> On Fri, Sep 11, 2020 at 04:07:24PM +0200, Kamil Rytarowski wrote:
>> The current code is confusing, as it attempts to use unimplemented
>> _PTHREAD_GETTCB_EXT() and in one place uses _lwp_getprivate_fast() in
>> other _lwp_getprivate(). This caused my confusion... as I assumed that
>> _lwp_getprivate_fast() is internal and _lwp_getprivate() for public
>> consumption.
>
> _PTHREAD_GETTCB_EXT is a rump hack. There is no _lwp_getprivate_fast.
> There is __lwp_getprivate_fast, which originally wasn't implemented on
> architectures without a fast path (like VAX). Nowadays, all functional
> ports provide either __lwp_getprivate_fast (potentially with a fall-back
> to the system call) or __lwp_gettcb_fast. The difference is whether the
> TLS register is biased or not.
>

 Do you agree with this patch:

 http://netbsd.org/~kamil/patch-00278-_rtld_tls_self.txt
>>>
>>> No, I don't see the point.
>>>
>>
>> What's the alternative to use in 3rd party code?
> 
> Why do you need an alternative?
> 

I need tls_tcb of the calling thread.

https://github.com/llvm/llvm-project/blob/15b37e1cfa5f09af376a47a1bc67d67bb5c7848b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp#L406

https://github.com/llvm/llvm-project/blob/15b37e1cfa5f09af376a47a1bc67d67bb5c7848b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp#L458

What is the interface (ideally MI) for this for 3rd party code?

> Joerg
> 




signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/external/gpl3/gcc

2020-09-12 Thread Joerg Sonnenberger
On Sat, Sep 12, 2020 at 10:24:16PM +0200, Kamil Rytarowski wrote:
> On 12.09.2020 22:06, Joerg Sonnenberger wrote:
> > On Fri, Sep 11, 2020 at 11:45:42PM +0200, Kamil Rytarowski wrote:
> >> On 11.09.2020 23:38, Joerg Sonnenberger wrote:
> >>> On Fri, Sep 11, 2020 at 04:07:24PM +0200, Kamil Rytarowski wrote:
>  The current code is confusing, as it attempts to use unimplemented
>  _PTHREAD_GETTCB_EXT() and in one place uses _lwp_getprivate_fast() in
>  other _lwp_getprivate(). This caused my confusion... as I assumed that
>  _lwp_getprivate_fast() is internal and _lwp_getprivate() for public
>  consumption.
> >>>
> >>> _PTHREAD_GETTCB_EXT is a rump hack. There is no _lwp_getprivate_fast.
> >>> There is __lwp_getprivate_fast, which originally wasn't implemented on
> >>> architectures without a fast path (like VAX). Nowadays, all functional
> >>> ports provide either __lwp_getprivate_fast (potentially with a fall-back
> >>> to the system call) or __lwp_gettcb_fast. The difference is whether the
> >>> TLS register is biased or not.
> >>>
> >>
> >> Do you agree with this patch:
> >>
> >> http://netbsd.org/~kamil/patch-00278-_rtld_tls_self.txt
> > 
> > No, I don't see the point.
> > 
> 
> What's the alternative to use in 3rd party code?

Why do you need an alternative?

Joerg


Re: CVS commit: src/external/gpl3/gcc

2020-09-12 Thread Kamil Rytarowski
On 12.09.2020 22:06, Joerg Sonnenberger wrote:
> On Fri, Sep 11, 2020 at 11:45:42PM +0200, Kamil Rytarowski wrote:
>> On 11.09.2020 23:38, Joerg Sonnenberger wrote:
>>> On Fri, Sep 11, 2020 at 04:07:24PM +0200, Kamil Rytarowski wrote:
 The current code is confusing, as it attempts to use unimplemented
 _PTHREAD_GETTCB_EXT() and in one place uses _lwp_getprivate_fast() in
 other _lwp_getprivate(). This caused my confusion... as I assumed that
 _lwp_getprivate_fast() is internal and _lwp_getprivate() for public
 consumption.
>>>
>>> _PTHREAD_GETTCB_EXT is a rump hack. There is no _lwp_getprivate_fast.
>>> There is __lwp_getprivate_fast, which originally wasn't implemented on
>>> architectures without a fast path (like VAX). Nowadays, all functional
>>> ports provide either __lwp_getprivate_fast (potentially with a fall-back
>>> to the system call) or __lwp_gettcb_fast. The difference is whether the
>>> TLS register is biased or not.
>>>
>>
>> Do you agree with this patch:
>>
>> http://netbsd.org/~kamil/patch-00278-_rtld_tls_self.txt
> 
> No, I don't see the point.
> 

What's the alternative to use in 3rd party code?

> Joerg
> 




signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/external/gpl3/gcc

2020-09-12 Thread Joerg Sonnenberger
On Fri, Sep 11, 2020 at 11:45:42PM +0200, Kamil Rytarowski wrote:
> On 11.09.2020 23:38, Joerg Sonnenberger wrote:
> > On Fri, Sep 11, 2020 at 04:07:24PM +0200, Kamil Rytarowski wrote:
> >> The current code is confusing, as it attempts to use unimplemented
> >> _PTHREAD_GETTCB_EXT() and in one place uses _lwp_getprivate_fast() in
> >> other _lwp_getprivate(). This caused my confusion... as I assumed that
> >> _lwp_getprivate_fast() is internal and _lwp_getprivate() for public
> >> consumption.
> > 
> > _PTHREAD_GETTCB_EXT is a rump hack. There is no _lwp_getprivate_fast.
> > There is __lwp_getprivate_fast, which originally wasn't implemented on
> > architectures without a fast path (like VAX). Nowadays, all functional
> > ports provide either __lwp_getprivate_fast (potentially with a fall-back
> > to the system call) or __lwp_gettcb_fast. The difference is whether the
> > TLS register is biased or not.
> > 
> 
> Do you agree with this patch:
> 
> http://netbsd.org/~kamil/patch-00278-_rtld_tls_self.txt

No, I don't see the point.

Joerg


Re: CVS commit: src/external/gpl3/gcc

2020-09-11 Thread Kamil Rytarowski
On 11.09.2020 23:38, Joerg Sonnenberger wrote:
> On Fri, Sep 11, 2020 at 04:07:24PM +0200, Kamil Rytarowski wrote:
>> The current code is confusing, as it attempts to use unimplemented
>> _PTHREAD_GETTCB_EXT() and in one place uses _lwp_getprivate_fast() in
>> other _lwp_getprivate(). This caused my confusion... as I assumed that
>> _lwp_getprivate_fast() is internal and _lwp_getprivate() for public
>> consumption.
> 
> _PTHREAD_GETTCB_EXT is a rump hack. There is no _lwp_getprivate_fast.
> There is __lwp_getprivate_fast, which originally wasn't implemented on
> architectures without a fast path (like VAX). Nowadays, all functional
> ports provide either __lwp_getprivate_fast (potentially with a fall-back
> to the system call) or __lwp_gettcb_fast. The difference is whether the
> TLS register is biased or not.
> 

Do you agree with this patch:

http://netbsd.org/~kamil/patch-00278-_rtld_tls_self.txt

And then, using _rtld_tls_self() in sanitizers (and wherever someone
finds it useful)?

As an alternative we will use __lwp_gettcb_fast() or
__lwp_getprivate_fast() manually in 3rd party code, which seems fragile.

> Joerg
> 




signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/external/gpl3/gcc

2020-09-11 Thread Joerg Sonnenberger
On Fri, Sep 11, 2020 at 04:07:24PM +0200, Kamil Rytarowski wrote:
> The current code is confusing, as it attempts to use unimplemented
> _PTHREAD_GETTCB_EXT() and in one place uses _lwp_getprivate_fast() in
> other _lwp_getprivate(). This caused my confusion... as I assumed that
> _lwp_getprivate_fast() is internal and _lwp_getprivate() for public
> consumption.

_PTHREAD_GETTCB_EXT is a rump hack. There is no _lwp_getprivate_fast.
There is __lwp_getprivate_fast, which originally wasn't implemented on
architectures without a fast path (like VAX). Nowadays, all functional
ports provide either __lwp_getprivate_fast (potentially with a fall-back
to the system call) or __lwp_gettcb_fast. The difference is whether the
TLS register is biased or not.

Joerg


Re: CVS commit: src/external/gpl3/gcc

2020-09-11 Thread Kamil Rytarowski
On 11.09.2020 07:13, Rin Okuyama wrote:
> Hi again,
> 
> On 2020/09/10 21:53, Kamil Rytarowski wrote:
>> Module Name:    src
>> Committed By:    kamil
>> Date:    Thu Sep 10 12:53:06 UTC 2020
>>
>> Modified Files:
>> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
>>     sanitizer_linux_libcdep.cc
>> src/external/gpl3/gcc/lib: Makefile.sanitizer
>>
>> Log Message:
>> Avoid using internal RTLD/libpthread/libc symbol in sanitizers
>>
> ...
>> Index:
>> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc
>>
>> diff -u
>> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.15
>> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.16
>>
>> ---
>> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.15
>>    
>> Mon Sep  7 07:10:43 2020
>> +++
>> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc
>>    
>> Thu Sep 10 12:53:05 2020
>> @@ -47,6 +47,7 @@
>>   #if SANITIZER_NETBSD
>>   #include 
>>   #include 
>> +#include 
>>   #endif
>>    #if SANITIZER_SOLARIS
>> @@ -417,13 +418,7 @@ uptr ThreadSelf() {
>>    #if SANITIZER_NETBSD
>>   static struct tls_tcb * ThreadSelfTlsTcb() {
>> -  struct tls_tcb * tcb = NULL;
>> -# ifdef __HAVE___LWP_GETTCB_FAST
>> -  tcb = (struct tls_tcb *)__lwp_gettcb_fast();
>> -# elif defined(__HAVE___LWP_GETPRIVATE_FAST)
>> -  tcb = (struct tls_tcb *)__lwp_getprivate_fast();
>> -# endif
>> -  return tcb;
>> +  return (struct tls_tcb *)_lwp_getprivate();
>>   }
>>    uptr ThreadSelf() {
>>
> 
> This change breaks at least mips and powerpc, in which the return value of
> __lwp_getprivate(2), i.e., curlwp->l_private is not tcb address itself, but
> biased one. On the other hand, the return value of __lwp_gettcb_fast() is
> unbiased address; see sys/arch/{mips,powerpc}/include/mcontext.h.
> 
> For powerpc, I recently attempted to change l_private to store tcb address
> itself:
> 
> http://www.nerv.org/netbsd/?q=id:20200621T004000Z.95c1a18070b53713ce2c763df7f40743bf74172c
> 
> 
> But I reverted it soon as requested by joerg:
> 
> http://www.nerv.org/netbsd/?q=id:20200622T053457Z.05db3be87b5ad499f5d1adba755bc573fd241c87
> 
> 
> His reasoning was that kernel must not know the ABI details in userland.
> I fully agree with this. See above links for more details.
> 
> Thanks,
> rin

Thank you for noting it!

This is strange as I assumed that _lwp_getprivate() returns always the
correct private pointer and it is abstraction over fast ABI specific
calls . Also the usage of _lwp_getprivate() was suggested by Joerg back
then in sanitizers.

So we want exported to userland functionality to get the tls_tcb
pointer, something without using the internal RTLS/LIBPTHREAD/LIBC
namespaces.

The current code is confusing, as it attempts to use unimplemented
_PTHREAD_GETTCB_EXT() and in one place uses _lwp_getprivate_fast() in
other _lwp_getprivate(). This caused my confusion... as I assumed that
_lwp_getprivate_fast() is internal and _lwp_getprivate() for public
consumption.

https://nxr.netbsd.org/xref/src/lib/libpthread/pthread_int.h#266

263 static inline pthread_t __constfunc
264 pthread__self(void)
265 {
266 #if defined(_PTHREAD_GETTCB_EXT)
267 struct tls_tcb * const tcb = _PTHREAD_GETTCB_EXT();
268 #elif defined(__HAVE___LWP_GETTCB_FAST)
269 struct tls_tcb * const tcb = __lwp_gettcb_fast();
270 #else
271 struct tls_tcb * const tcb = __lwp_getprivate_fast();
272 #endif
273 return (pthread_t)tcb->tcb_pthread;
274 }

https://nxr.netbsd.org/xref/src/lib/libpthread/pthread.c#1268

   1268 #if defined(_PTHREAD_GETTCB_EXT)
   1269 pthread__main->pt_tls = _PTHREAD_GETTCB_EXT();
   1270 #elif defined(__HAVE___LWP_GETTCB_FAST)
   1271 pthread__main->pt_tls = __lwp_gettcb_fast();
   1272 #else
   1273 pthread__main->pt_tls = _lwp_getprivate();
   1274 #endif
   1275 pthread__main->pt_tls->tcb_pthread = pthread__main;

https://nxr.netbsd.org/xref/src/libexec/ld.elf_so/tls.c#294

293 #ifdef __HAVE___LWP_GETTCB_FAST
294 struct tls_tcb * const tcb = __lwp_gettcb_fast();
295 #else
296 struct tls_tcb * const tcb = __lwp_getprivate_fast();
297 #endif


1. Could we please synchronize above three code chunks, avoiding the
situation of having each of them implemented differently?

2. Could we please export _rtld_tls_self() or something similar and
register in  ?

Does this patch look good?

https://www.netbsd.org/~kamil/patch-00278-_rtld_tls_self.txt


In the worst case I will need to reexpose internal APIs in sanitizers
and pick one of the above tls_tcb retrieval implementations and use in
LLVM/GCC sanitizers.

PS. There is an ongoing GCC and Linux kernel discussion on a related
topic in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96200 "Implement
__builtin_thread_pointer() and 

Re: CVS commit: src/external/gpl3/gcc

2020-09-10 Thread Rin Okuyama

Hi again,

On 2020/09/10 21:53, Kamil Rytarowski wrote:

Module Name:src
Committed By:   kamil
Date:   Thu Sep 10 12:53:06 UTC 2020

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_linux_libcdep.cc
src/external/gpl3/gcc/lib: Makefile.sanitizer

Log Message:
Avoid using internal RTLD/libpthread/libc symbol in sanitizers


...

Index: 
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc
diff -u 
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.15
 
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.16
--- 
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.15
Mon Sep  7 07:10:43 2020
+++ 
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc
 Thu Sep 10 12:53:05 2020
@@ -47,6 +47,7 @@
  #if SANITIZER_NETBSD
  #include 
  #include 
+#include 
  #endif
  
  #if SANITIZER_SOLARIS

@@ -417,13 +418,7 @@ uptr ThreadSelf() {
  
  #if SANITIZER_NETBSD

  static struct tls_tcb * ThreadSelfTlsTcb() {
-  struct tls_tcb * tcb = NULL;
-# ifdef __HAVE___LWP_GETTCB_FAST
-  tcb = (struct tls_tcb *)__lwp_gettcb_fast();
-# elif defined(__HAVE___LWP_GETPRIVATE_FAST)
-  tcb = (struct tls_tcb *)__lwp_getprivate_fast();
-# endif
-  return tcb;
+  return (struct tls_tcb *)_lwp_getprivate();
  }
  
  uptr ThreadSelf() {




This change breaks at least mips and powerpc, in which the return value of
__lwp_getprivate(2), i.e., curlwp->l_private is not tcb address itself, but
biased one. On the other hand, the return value of __lwp_gettcb_fast() is
unbiased address; see sys/arch/{mips,powerpc}/include/mcontext.h.

For powerpc, I recently attempted to change l_private to store tcb address
itself:

http://www.nerv.org/netbsd/?q=id:20200621T004000Z.95c1a18070b53713ce2c763df7f40743bf74172c

But I reverted it soon as requested by joerg:

http://www.nerv.org/netbsd/?q=id:20200622T053457Z.05db3be87b5ad499f5d1adba755bc573fd241c87

His reasoning was that kernel must not know the ABI details in userland.
I fully agree with this. See above links for more details.

Thanks,
rin


Re: CVS commit: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common

2020-09-05 Thread Kamil Rytarowski
On 05.09.2020 15:35, matthew green wrote:
> Module Name:  src
> Committed By: mrg
> Date: Sat Sep  5 13:35:55 UTC 2020
> 
> Modified Files:
>   src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
>   sanitizer_linux.cc sanitizer_linux.h sanitizer_linux_libcdep.cc
>   sanitizer_platform_limits_netbsd.cc sanitizer_syscall_generic.inc
> 
> Log Message:
> fix various merge botches; we may need to re-port the ThreadLister code.
> 


LSan was ported and upstreamed post GCC-9:

https://github.com/llvm/llvm-project/commit/1b58389428ed07a7322ba9c2bcaeec99807f9457

https://github.com/llvm/llvm-project/commit/5fe1e55d35413b1904cfcf16ec15495398921fe5

https://github.com/llvm/llvm-project/commit/8827047551570b7ed7088765c3de2a8cce6823b8

https://github.com/llvm/llvm-project/commit/983d7ddd0b278b45d815cbac9197205b39c4860a

https://github.com/llvm/llvm-project/commit/fc356dcc11c10003ff22acff667b0a9f5e6c1e0f

https://github.com/llvm/llvm-project/commit/3a189bac9bb111c9a59339015ab0d4e2fed735f4

https://github.com/llvm/llvm-project/commit/02519fc7a6f8c528f67975a9f78ce64dabf402b4

And possibly something else:

https://github.com/llvm/llvm-project/commits?author=krytarowski

> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.33 -r1.34 \
> 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc
> cvs rdiff -u -r1.9 -r1.10 \
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h
> cvs rdiff -u -r1.12 -r1.13 \
> 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc
> cvs rdiff -u -r1.1.1.2 -r1.2 \
> 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.cc
> cvs rdiff -u -r1.8 -r1.9 \
> 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_syscall_generic.inc
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 
> 
> Modified files:
> 
> Index: 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc
> diff -u 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.33
>  
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.34
> --- 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc:1.33
>   Sat Sep  5 09:12:32 2020
> +++ 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc   
> Sat Sep  5 13:35:55 2020
> @@ -41,8 +41,6 @@
>  #undef stat
>  #endif
>  
> -#endif // SANITIZER_LINUX
> -
>  #if SANITIZER_NETBSD
>  #include 
>  #endif
> @@ -980,7 +978,6 @@ ThreadLister::ThreadLister(pid_t pid) : 
>if (internal_iserror(descriptor_)) {
>  Report("Can't open /proc/%d/task for reading.\n", pid);
>}
> -#endif
>  }
>  
>  ThreadLister::Result ThreadLister::ListThreads(
> @@ -1055,10 +1052,8 @@ bool ThreadLister::IsAlive(int tid) {
>  }
>  
>  ThreadLister::~ThreadLister() {
> -#ifndef SANITIZER_NETBSD
>if (!internal_iserror(descriptor_))
>  internal_close(descriptor_);
> -#endif
>  }
>  #endif
>  
> 
> Index: 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h
> diff -u 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h:1.9
>  
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h:1.10
> --- 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h:1.9
> Sat Sep  5 09:12:32 2020
> +++ 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h
> Sat Sep  5 13:35:55 2020
> @@ -69,6 +69,8 @@ uptr internal_clone(int (*fn)(void *), v
>  #endif
>  #elif SANITIZER_FREEBSD
>  void internal_sigdelset(__sanitizer_sigset_t *set, int signum);
> +#elif SANITIZER_NETBSD
> +uptr internal_prctl(int option, uptr arg2, uptr arg3, uptr arg4, uptr arg5);
>  #endif  // SANITIZER_LINUX
>  
>  #ifdef SANITIZER_NETBSD
> 
> Index: 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc
> diff -u 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.12
>  
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.13
> --- 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.12
>   Sat Sep  5 09:12:32 2020
> +++ 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc
>Sat Sep  5 13:35:55 2020
> @@ -72,6 +72,10 @@ struct __sanitizer::linux_dirent {
>  #include 
>  #endif
>  
> +#if SANITIZER_NETBSD
> +#include 
> +#endif
> +
>  namespace __sanitizer {
>  
>  SANITIZER_WEAK_ATTRIBUTE int
> 
> Index: 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.cc
> diff -u 
> src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.cc:1.1.1.2
>  
> 

Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/m68k

2020-08-16 Thread Rin Okuyama

Sorry for the late reply.

On 2020/08/11 1:16, Valery Ushakov wrote:

This sounds eerily similar to port-macppc/54827 - there's quite a bit
of confusion early on on my part there, but scroll to the last couple
of mails.  http://gnats.netbsd.org/54827

It looks like some logic changed in MI gcc8 that broke netbsd MD
config headers and I wonder if you see the same problem here.  For
macppc the fix was also to undo the netbsd change to STACK_BOUNDARY in
favor of PREFERRED_STACK_BOUNDARY.


Thank you for remaining me that PR. I was following discussion at
that time, but I'd forgotten that it was due to STACK_BOUNDARY.

On 2020/08/11 10:27, matthew green wrote:

May be we should also check other ports for similar gotcha proactively?


good idea.  no other gcc/config/*/*netbsd* files define the
nasty STACK_BOUNDARY macro so hopefully we're good now.


Yes, powerpc and m68k were the last ones.

We somehow gained a bit more experience to overcome troubles
caused by GCC. I think that we can deal with similar problems
better in the next time :).

Thanks,
rin


re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/m68k

2020-08-10 Thread matthew green
> May be we should also check other ports for similar gotcha proactively?

good idea.  no other gcc/config/*/*netbsd* files define the
nasty STACK_BOUNDARY macro so hopefully we're good now.

thanks!


.mrg.


Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/m68k

2020-08-10 Thread Valery Ushakov
On Mon, Aug 10, 2020 at 06:24:39 +, Rin Okuyama wrote:

> Modified Files:
>   src/external/gpl3/gcc/dist/gcc/config/m68k: netbsd-elf.h
> 
> Log Message:
> PR port-m68k/6
> 
> Reset STACK_BOUNDARY to default, 16, to fix strange freeze for amiga,
> when kernel is compiled by GCC8.

This sounds eerily similar to port-macppc/54827 - there's quite a bit
of confusion early on on my part there, but scroll to the last couple
of mails.  http://gnats.netbsd.org/54827

It looks like some logic changed in MI gcc8 that broke netbsd MD
config headers and I wonder if you see the same problem here.  For
macppc the fix was also to undo the netbsd change to STACK_BOUNDARY in
favor of PREFERRED_STACK_BOUNDARY.

May be we should also check other ports for similar gotcha proactively?

-uwe


re: CVS commit: src/external/gpl3/gcc/usr.bin/host-libcpp

2020-06-24 Thread matthew green
> Modified Files:
>   src/external/gpl3/gcc/usr.bin/host-libcpp: Makefile
> 
> Log Message:
> PR bin/55411 (Akihiko HAYASHI)
> 
> Remove stray ``&&'' introduced in the previous revision, so that
> host tools are correctly passed to configure script.
> 
> No similar problem for gcc.old. No release branches are affected.

thanks!


Re: CVS commit: src/external/gpl3/gcc

2020-06-02 Thread Rin Okuyama

On 2020/06/02 17:03, matthew green wrote:

Module Name:src
Committed By:   mrg
Date:   Tue Jun  2 08:03:59 UTC 2020

Modified Files:
src/external/gpl3/gcc: gcc2netbsd

Log Message:
don't elide fortran components.  we'd like to revive g77-as-gfortran.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gcc/gcc2netbsd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.


That sounds *REALLY* great!

I still use Fortran in my work ;).

Thanks,
rin


Re: CVS commit: src/external/gpl3/gcc/dist/gcc/config/aarch64

2020-05-18 Thread Jared McNeill
Unfortunately this breaks building on a 9.0 arm64 host because it is 
picking up /usr/include/aarch64/armreg.h and the one in 9.0 is missing a 
bunch of stuff. It works when using armreg.h from the source tree instead, 
eg:


-#include 
+#include "/path/to/src/sys/arch/aarch64/include/armreg.h"



On Tue, 28 Apr 2020, matthew green wrote:


Module Name:src
Committed By:   mrg
Date:   Tue Apr 28 03:00:23 UTC 2020

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/aarch64: driver-aarch64.c

Log Message:
slightly reduce the scope of #ifdef __NetBSD__ version of the
-m{cpu,tune,arch}=native handling code, and hopefully reduce
future effort by aligning inputs

- share common variables and setup more
- build a linux/arm64 like /proc/cpuinfo Features line and
 use that to match the new 'list of features' per gcc feature,
 based upon our sysctl(2) published info.  complete this list
 for all supported extensions.

now this feature works again.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
   src/external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




CVS commit: src/external/gpl3/gcc

2019-11-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Nov 28 19:31:27 UTC 2019

Modified Files:
src/external/gpl3/gcc: README.gcc8

Log Message:
note that earm and riscv switched to GCC 8.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/README.gcc8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/README.gcc8
diff -u src/external/gpl3/gcc/README.gcc8:1.5 src/external/gpl3/gcc/README.gcc8:1.6
--- src/external/gpl3/gcc/README.gcc8:1.5	Mon Nov 18 01:13:39 2019
+++ src/external/gpl3/gcc/README.gcc8	Thu Nov 28 19:31:27 2019
@@ -1,4 +1,4 @@
-$NetBSD: README.gcc8,v 1.5 2019/11/18 01:13:39 mrg Exp $
+$NetBSD: README.gcc8,v 1.6 2019/11/28 19:31:27 mrg Exp $
 
 new stuff:
 	cc1objcplus
@@ -28,20 +28,20 @@ architecture	tools	kernels	libgcc	native
 	-	---	--	--			---	
 aarch64		y	y	y	y		y		y	y	y
 alpha		y	y	y	y		y		?	?	?
-earmv4		y	y	y	y		y		y	?	?
-earmv4eb	y	?	y	y		?		?	?	?
-earm		y	?	y	y		?		?	?	?
-earmeb		y	?	y	y		?		?	?	?
-earmhf		y	?	y	y		?		?	?	?
-earmhfeb	y	?	y	y		?		?	?	?
-earmv6		y	?	y	y		?		?	?	?
-earmv6eb	y	?	y	y		?		?	?	?
-earmv6hf	y	?	y	y		?		?	?	?
-earmv6hfeb	y	?	y	y		?		?	?	?
-earmv7		y	?	y	y		?		?	?	?
-earmv7eb	y	?	y	y		?		?	?	?
-earmv7hf	y	y	y	y		y		y	n[3]	n
-earmv7hfeb	y	?	y	y		?		?	?	?
+earmv4		y	y	y	y		y		y	?	y
+earmv4eb	y	?	y	y		?		?	?	y
+earm		y	?	y	y		?		?	?	y
+earmeb		y	?	y	y		?		?	?	y
+earmhf		y	?	y	y		?		?	?	y
+earmhfeb	y	?	y	y		?		?	?	y
+earmv6		y	?	y	y		?		?	?	y
+earmv6eb	y	?	y	y		?		?	?	y
+earmv6hf	y	?	y	y		?		?	?	y
+earmv6hfeb	y	?	y	y		?		?	?	y
+earmv7		y	?	y	y		?		?	?	y
+earmv7eb	y	?	y	y		?		?	?	y
+earmv7hf	y	y	y	y		y		y	n[3]	y
+earmv7hfeb	y	?	y	y		?		?	?	y
 hppa		y	?	y	y		?		?	?	?
 i386		y	y	y	y		y		y	y	y
 ia64		y	y	y	y		y		y	n[4]	y
@@ -59,8 +59,8 @@ sparc		y	y	y	y		y		y	y	y
 sparc64		y	y	y	y		y		y	y	y
 vax		y	?	?	y		?		?	?	?
 x86_64		y	y	y	y		y		y	y	y
-riscv32		y	?	y	y		y		?	?	?	
-riscv64		y	?	y	y		y		?	?	?
+riscv32		y	?	y	y		y		?	?	y	
+riscv64		y	?	y	y		y		?	?	y
 --
 coldfire	?	N/A	?	?		?		N/A	N/A
 	-	---	--	--			---



CVS commit: src/external/gpl3/gcc

2019-11-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Nov 28 19:31:27 UTC 2019

Modified Files:
src/external/gpl3/gcc: README.gcc8

Log Message:
note that earm and riscv switched to GCC 8.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/README.gcc8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2019-11-17 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Nov 18 01:13:39 UTC 2019

Modified Files:
src/external/gpl3/gcc: README.gcc8
src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.h
src/external/gpl3/gcc/usr.bin/gcc/arch/ia64: defs.mk

Log Message:
few gcc 8 clean ups:
- port lsan_allocator.h to riscv and ia64.
- remove configure output garbage from ia64/defs.mk
- update README.gcc8 to reality:
  - arms mostly work, but not quite
  - most ports now build
  - some ports have switched


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/README.gcc8
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gcc/usr.bin/gcc/arch/ia64/defs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2019-11-17 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Nov 18 01:13:39 UTC 2019

Modified Files:
src/external/gpl3/gcc: README.gcc8
src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.h
src/external/gpl3/gcc/usr.bin/gcc/arch/ia64: defs.mk

Log Message:
few gcc 8 clean ups:
- port lsan_allocator.h to riscv and ia64.
- remove configure output garbage from ia64/defs.mk
- update README.gcc8 to reality:
  - arms mostly work, but not quite
  - most ports now build
  - some ports have switched


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/README.gcc8
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gcc/usr.bin/gcc/arch/ia64/defs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/README.gcc8
diff -u src/external/gpl3/gcc/README.gcc8:1.4 src/external/gpl3/gcc/README.gcc8:1.5
--- src/external/gpl3/gcc/README.gcc8:1.4	Sat Nov 16 11:50:58 2019
+++ src/external/gpl3/gcc/README.gcc8	Mon Nov 18 01:13:39 2019
@@ -1,4 +1,4 @@
-$NetBSD: README.gcc8,v 1.4 2019/11/16 11:50:58 mrg Exp $
+$NetBSD: README.gcc8,v 1.5 2019/11/18 01:13:39 mrg Exp $
 
 new stuff:
 	cc1objcplus
@@ -28,39 +28,39 @@ architecture	tools	kernels	libgcc	native
 	-	---	--	--			---	
 aarch64		y	y	y	y		y		y	y	y
 alpha		y	y	y	y		y		?	?	?
-earmv4		y	y	y	y		?		?	?	?
-earmv4eb	y	?	?	y		?		?	?	?
-earm		y	?	?	y		?		?	?	?
-earmeb		y	?	?	y		?		?	?	?
-earmhf		y	?	?	y		?		?	?	?
-earmhfeb	y	?	?	y		?		?	?	?
-earmv6		y	?	?	y		?		?	?	?
-earmv6eb	y	?	?	y		?		?	?	?
-earmv6hf	y	?	?	y		?		?	?	?
-earmv6hfeb	y	?	?	y		?		?	?	?
-earmv7		y	?	?	y		?		?	?	?
-earmv7eb	y	?	?	y		?		?	?	?
+earmv4		y	y	y	y		y		y	?	?
+earmv4eb	y	?	y	y		?		?	?	?
+earm		y	?	y	y		?		?	?	?
+earmeb		y	?	y	y		?		?	?	?
+earmhf		y	?	y	y		?		?	?	?
+earmhfeb	y	?	y	y		?		?	?	?
+earmv6		y	?	y	y		?		?	?	?
+earmv6eb	y	?	y	y		?		?	?	?
+earmv6hf	y	?	y	y		?		?	?	?
+earmv6hfeb	y	?	y	y		?		?	?	?
+earmv7		y	?	y	y		?		?	?	?
+earmv7eb	y	?	y	y		?		?	?	?
 earmv7hf	y	y	y	y		y		y	n[3]	n
-earmv7hfeb	y	?	?	y		?		?	?	?
-hppa		y	?	?	y		?		?	?	?
+earmv7hfeb	y	?	y	y		?		?	?	?
+hppa		y	?	y	y		?		?	?	?
 i386		y	y	y	y		y		y	y	y
-ia64		y	?	?	y		?		?	?	?
-m68000		y	?	?	y		?		?	?	?
-m68k		y	?	?	y		?		?	?	?
-mipseb		y	?	?	y		?		?	?	?
-mipsel		y	?	?	y		?		?	?	?
+ia64		y	y	y	y		y		y	n[4]	y
+m68000		y	?	y	y		?		?	?	?
+m68k		y	y	y	y		y		?	?	?
+mipseb		y	y	y	y		?		?	?	?
+mipsel		y	?	y	y		?		?	?	?
 mips64eb	y	y	y	y		y		y	y[2]	?
-mips64el	y	?	?	y		?		?	?	?
+mips64el	y	?	y	y		?		?	?	?
 powerpc		y	y	y	y		y		y	y[1]	?
-powerpc64	y	?	y	y		y		?	?	?
-sh3eb		y	?	?	y		?		?	?	?
-sh3el		y	?	?	y		?		?	?	?
+powerpc64	y	n	y	y		y		y	y	y
+sh3eb		y	y	y	y		y		y	yX	?
+sh3el		y	y	y	y		y		?	?	?
 sparc		y	y	y	y		y		y	y	y
 sparc64		y	y	y	y		y		y	y	y
 vax		y	?	?	y		?		?	?	?
 x86_64		y	y	y	y		y		y	y	y
-riscv32		y	?	?	y		?		?	?	?	
-riscv64		y	?	?	y		?		?	?	?
+riscv32		y	?	y	y		y		?	?	?	
+riscv64		y	?	y	y		y		?	?	?
 --
 coldfire	?	N/A	?	?		?		N/A	N/A
 	-	---	--	--			---
@@ -69,43 +69,43 @@ architecture	tools	kernels	libgcc	native
 [1] - many ipsec atf and c++ failures
 [2] - lots of failures, no idea if bad
 [3] - c++ exceptions are broken, all arm
+[4] - not upto userland yet
 
 CPU vs platform test table (for CPUs with multiple ports).  this is "make release" or just kernels.
 values:		y (yes), k (kernels only), n (failed), r (running), ? (not attempted)
 
 CPU		platform list
 ---		 
-		acorn32		cats		epoc32		evbarm-eb	evbarm-el	hpcarm		iyonix		netwinder	shark 		zaurus
-arm:		?		?		?		?		?		?		?		?		?		?
-earmv4:		?		?		?		k		k		?		-		?		?		-
-earm:		-		-		-		?		?		-		?		-		-		k
-earmhf:		-		-		-		r		?		-		-		-		-		-
-earmv6:		-		-		-		k		k		-		-		-		-		-
-earmv6hf:	-		-		-		k		k		-		-		-		-		-
-earmv7:		-		-		-		k		k		-		-		-		-		-
-earmv7hf:	-		-		-		k		k		-		-		-		-		-
+		acorn32		cats	epoc32	evbarm-eb	evbarm-el	hpcarm		iyonix		netwinder	shark 		zaurus
+earmv4:		k		k	k	k		k		k		-		k		y		-
+earm:		-		-	-	k		k		-		k		-		-		k
+earmhf:		-		-	-	k		k		-		-		-		-		-
+earmv6:		-		-	-	k		k		-		-		-		-		-
+earmv6hf:	-		-	-	k		k		-		-		-		-		-
+earmv7:		-		-	-	k		k		-		-		-		-		-
+earmv7hf:	-		-	-	k		k		-		-		-		-		-
 
-		amiga		atari		cesfic		hp300		luna68k		mac68k		mvme68k		news68k		next68k		sun3		x68k
-m68k:		?		?		k		?		?		y[1]		?		?		?		y 		?
+		amiga		atari	cesfic	hp300		luna68k		mac68k		mvme68k		news68k		next68k		sun3	x68k
+m68k:		k		k	k	k		k		y		k		k		k		y 	k
 
 		evbmips		emips		ews4800mips	mipsco		newsmips	sgimips
-mipseb:		?		?		?		?		?		?
+mipseb:		k		k		k		k		k		y
 
 		evbmips		algor		arc		cobalt		hpcmips		pmax
-mipsel:		?		?		?		?		?		?
+mipsel:		y		y		y		y		y		y
 
 		algor		evbmips		pmax
-mips64eb:	-		?		-
-mips64el:	?		?		?
-
-		amigappc	bebox		evbppc		ibmnws		macppc		mvmeppc		

CVS commit: src/external/gpl3/gcc

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Nov 16 11:50:58 UTC 2019

Modified Files:
src/external/gpl3/gcc: README.gcc8

Log Message:
note i386 and sparc* conversion.  note arm32 issues.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/README.gcc8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/README.gcc8
diff -u src/external/gpl3/gcc/README.gcc8:1.3 src/external/gpl3/gcc/README.gcc8:1.4
--- src/external/gpl3/gcc/README.gcc8:1.3	Sun Nov 10 10:31:38 2019
+++ src/external/gpl3/gcc/README.gcc8	Sat Nov 16 11:50:58 2019
@@ -1,4 +1,4 @@
-$NetBSD: README.gcc8,v 1.3 2019/11/10 10:31:38 mrg Exp $
+$NetBSD: README.gcc8,v 1.4 2019/11/16 11:50:58 mrg Exp $
 
 new stuff:
 	cc1objcplus
@@ -28,7 +28,7 @@ architecture	tools	kernels	libgcc	native
 	-	---	--	--			---	
 aarch64		y	y	y	y		y		y	y	y
 alpha		y	y	y	y		y		?	?	?
-earmv4		y	?	?	y		?		?	?	?
+earmv4		y	y	y	y		?		?	?	?
 earmv4eb	y	?	?	y		?		?	?	?
 earm		y	?	?	y		?		?	?	?
 earmeb		y	?	?	y		?		?	?	?
@@ -40,10 +40,10 @@ earmv6hf	y	?	?	y		?		?	?	?
 earmv6hfeb	y	?	?	y		?		?	?	?
 earmv7		y	?	?	y		?		?	?	?
 earmv7eb	y	?	?	y		?		?	?	?
-earmv7hf	y	?	?	y		?		?	?	?
+earmv7hf	y	y	y	y		y		y	n[3]	n
 earmv7hfeb	y	?	?	y		?		?	?	?
 hppa		y	?	?	y		?		?	?	?
-i386		y	?	?	y		?		?	?	?
+i386		y	y	y	y		y		y	y	y
 ia64		y	?	?	y		?		?	?	?
 m68000		y	?	?	y		?		?	?	?
 m68k		y	?	?	y		?		?	?	?
@@ -55,8 +55,8 @@ powerpc		y	y	y	y		y		y	y[1]	?
 powerpc64	y	?	y	y		y		?	?	?
 sh3eb		y	?	?	y		?		?	?	?
 sh3el		y	?	?	y		?		?	?	?
-sparc		y	y	y	y		y		y	?	?
-sparc64		y	?	?	y		?		?	?	?
+sparc		y	y	y	y		y		y	y	y
+sparc64		y	y	y	y		y		y	y	y
 vax		y	?	?	y		?		?	?	?
 x86_64		y	y	y	y		y		y	y	y
 riscv32		y	?	?	y		?		?	?	?	
@@ -68,6 +68,7 @@ architecture	tools	kernels	libgcc	native
 
 [1] - many ipsec atf and c++ failures
 [2] - lots of failures, no idea if bad
+[3] - c++ exceptions are broken, all arm
 
 CPU vs platform test table (for CPUs with multiple ports).  this is "make release" or just kernels.
 values:		y (yes), k (kernels only), n (failed), r (running), ? (not attempted)



CVS commit: src/external/gpl3/gcc

2019-11-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat Nov 16 11:50:58 UTC 2019

Modified Files:
src/external/gpl3/gcc: README.gcc8

Log Message:
note i386 and sparc* conversion.  note arm32 issues.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/README.gcc8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/usr.bin/host-libcpp

2019-11-14 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Nov 14 09:27:09 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/host-libcpp: Makefile

Log Message:
duplicate a some of Makefile.gnuhost.

should fix PR#53561.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile
diff -u src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile:1.3 src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile:1.4
--- src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile:1.3	Mon Jun 26 17:38:10 2017
+++ src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile	Thu Nov 14 09:27:08 2019
@@ -1,14 +1,32 @@
-#	$NetBSD: Makefile,v 1.3 2017/06/26 17:38:10 joerg Exp $
+#	$NetBSD: Makefile,v 1.4 2019/11/14 09:27:08 mrg Exp $
 
-libcpp/libcpp.a:
-	[ ! -d libcpp ] && mkdir libcpp || true
-	(cd libcpp; \
-		CC=${HOST_CC:Q} CXX=${HOST_CXX:Q}  \
+BUILD_ENV= \
+		AR=${HOST_AR:Q} \
+		AWK=${TOOL_AWK:Q} \
+		CC=${HOST_CC:Q} \
 		CFLAGS=${HOST_CFLAGS:Q} \
-		MAKE=${TOOL_GMAKE:Q} \
 		CONFIG_SHELL=${HOST_SH:Q} \
+		CPPFLAGS=${HOST_CPPFLAGS:Q} \
+		CXX=${HOST_CXX:Q} \
+		CXXFLAGS=${HOST_CXXFLAGS:Q} \
+		INSTALL=${HOST_INSTALL_FILE:Q} \
+		LDFLAGS=${HOST_LDFLAGS:Q} \
+		LEX=${LEX:Q} \
+		FLEX=${LEX:Q} \
+		M4=${TOOL_M4:Q} \
+		MAKE=${TOOL_GMAKE:Q} \
+		PATH="${TOOLDIR}/bin:$$PATH" \
+		RANLIB=${HOST_RANLIB:Q} \
+		YACC=${YACC:Q}
+
+GMAKE_J_ARGS?=	${MAKEFLAGS:[*]:M*-j*:C/.*(-j ?[0-9]*).*/\1/W}
+BUILD_COMMAND=	/usr/bin/env -i ${BUILD_ENV} ${TOOL_GMAKE} ${GMAKE_J_ARGS} -e
+
+libcpp/libcpp.a:
+	[ ! -d libcpp ] && mkdir libcpp || true
+	(cd libcpp && ${BUILD_ENV} && \
 		${HOST_SH} ${DIST}/libcpp/configure -v am_cv_func_iconv=no \
-		&& CC=${HOST_CC:Q} CXX=${HOST_CXX:Q} CFLAGS=${HOST_CFLAGS:Q} ${TOOL_GMAKE})
+		&& ${BUILD_COMMAND})
 
 cleandir:
 	-rm -rf libcpp



CVS commit: src/external/gpl3/gcc/usr.bin/host-libcpp

2019-11-14 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Thu Nov 14 09:27:09 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/host-libcpp: Makefile

Log Message:
duplicate a some of Makefile.gnuhost.

should fix PR#53561.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/gpl3/gcc/usr.bin/host-libcpp/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2019-11-10 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Nov 10 10:31:39 UTC 2019

Modified Files:
src/external/gpl3/gcc: README.gcc8

Log Message:
update a bunch of reality.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/README.gcc8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2019-11-10 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Nov 10 10:31:39 UTC 2019

Modified Files:
src/external/gpl3/gcc: README.gcc8

Log Message:
update a bunch of reality.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/README.gcc8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/README.gcc8
diff -u src/external/gpl3/gcc/README.gcc8:1.2 src/external/gpl3/gcc/README.gcc8:1.3
--- src/external/gpl3/gcc/README.gcc8:1.2	Fri Oct  4 08:51:32 2019
+++ src/external/gpl3/gcc/README.gcc8	Sun Nov 10 10:31:38 2019
@@ -1,4 +1,4 @@
-$NetBSD: README.gcc8,v 1.2 2019/10/04 08:51:32 mrg Exp $
+$NetBSD: README.gcc8,v 1.3 2019/11/10 10:31:38 mrg Exp $
 
 new stuff:
 	cc1objcplus
@@ -7,6 +7,11 @@ new stuff:
 	libvtv
 	libcet
 
+
+todo:
+	- audit all uses of new warning-disable variables and
+	  convert some from -Wno- to -Wno-error=
+
 arch/feature list.
 
 tools:		does build.sh tools work?
@@ -21,10 +26,8 @@ switched:	has port switched?  y (yes), n
 
 architecture	tools	kernels	libgcc	native-gcc	make release	runs	atf	switched
 	-	---	--	--			---	
-aarch64		y	y	y	y		?		?	?	?
-alpha		y	?	?	y		?		?	?	?
-arm		y	?	?	y		?		?	?	?
-armeb		y	?	?	y		?		?	?	?
+aarch64		y	y	y	y		y		y	y	y
+alpha		y	y	y	y		y		?	?	?
 earmv4		y	?	?	y		?		?	?	?
 earmv4eb	y	?	?	y		?		?	?	?
 earm		y	?	?	y		?		?	?	?
@@ -46,16 +49,16 @@ m68000		y	?	?	y		?		?	?	?
 m68k		y	?	?	y		?		?	?	?
 mipseb		y	?	?	y		?		?	?	?
 mipsel		y	?	?	y		?		?	?	?
-mips64eb	y	?	?	y		?		?	?	?
+mips64eb	y	y	y	y		y		y	y[2]	?
 mips64el	y	?	?	y		?		?	?	?
-powerpc		y	?	?	y		?		?	?	?
-powerpc64	y	?	?	y		?		?	?	?
+powerpc		y	y	y	y		y		y	y[1]	?
+powerpc64	y	?	y	y		y		?	?	?
 sh3eb		y	?	?	y		?		?	?	?
 sh3el		y	?	?	y		?		?	?	?
 sparc		y	y	y	y		y		y	?	?
 sparc64		y	?	?	y		?		?	?	?
 vax		y	?	?	y		?		?	?	?
-x86_64		y	y	y	y		y		y	?	?
+x86_64		y	y	y	y		y		y	y	y
 riscv32		y	?	?	y		?		?	?	?	
 riscv64		y	?	?	y		?		?	?	?
 --
@@ -63,6 +66,8 @@ coldfire	?	N/A	?	?		?		N/A	N/A
 	-	---	--	--			---
 architecture	tools	kernels	libgcc	native-gcc	make release	runs	atf
 
+[1] - many ipsec atf and c++ failures
+[2] - lots of failures, no idea if bad
 
 CPU vs platform test table (for CPUs with multiple ports).  this is "make release" or just kernels.
 values:		y (yes), k (kernels only), n (failed), r (running), ? (not attempted)
@@ -99,3 +104,7 @@ powerpc64:	-		-		?[9]		-		?[9]		-		?[9]	
 		dreamcast	evbsh3		hpcsh		landisk		mmeye
 sh3eb:		-		?		-		-		?
 sh3el:		?		?		?		?		-
+
+
+
+



CVS commit: src/external/gpl3/gcc

2019-11-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Nov  6 21:33:07 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc: c++config.h
symver-config.h
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc: auto-host.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc: config.h

Log Message:
oops, regen these again with right iconv prototype present.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/auto-host.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h:1.32 src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h:1.33
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h:1.32	Wed Nov  6 19:14:29 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h	Wed Nov  6 21:33:07 2019
@@ -1335,7 +1335,7 @@ namespace std
 #define _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL 1
 
 /* Define as const if the declaration of iconv() needs const. */
-#define _GLIBCXX_ICONV_CONST const
+#define _GLIBCXX_ICONV_CONST 
 
 /* Define to the sub-directory in which libtool stores uninstalled libraries.
*/

Index: src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h:1.4 src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h:1.5
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h:1.4	Wed Nov  6 19:14:29 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h	Wed Nov  6 21:33:07 2019
@@ -718,7 +718,7 @@
 #define HAVE___CXA_THREAD_ATEXIT_IMPL 1
 
 /* Define as const if the declaration of iconv() needs const. */
-#define ICONV_CONST const
+#define ICONV_CONST 
 
 /* Define to the sub-directory in which libtool stores uninstalled libraries.
*/

Index: src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/auto-host.h
diff -u src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/auto-host.h:1.16 src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/auto-host.h:1.17
--- src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/auto-host.h:1.16	Wed Nov  6 19:14:29 2019
+++ src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/auto-host.h	Wed Nov  6 21:33:07 2019
@@ -1973,7 +1973,7 @@
 
 /* Define as const if the declaration of iconv() needs const. */
 #ifndef USED_FOR_TARGET
-#define ICONV_CONST const
+#define ICONV_CONST 
 #endif
 
 

Index: src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc/config.h
diff -u src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc/config.h:1.7 src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc/config.h:1.8
--- src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc/config.h:1.7	Wed Nov  6 19:14:29 2019
+++ src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc/config.h	Wed Nov  6 21:33:07 2019
@@ -240,7 +240,7 @@
 #define HAVE_UNISTD_H 1
 
 /* Define as const if the declaration of iconv() needs const. */
-#define ICONV_CONST const
+#define ICONV_CONST 
 
 /* Define to the name of this package. */
 #define PACKAGE "cpplib"



CVS commit: src/external/gpl3/gcc

2019-11-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Nov  6 21:33:07 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc: c++config.h
symver-config.h
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc: auto-host.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc: config.h

Log Message:
oops, regen these again with right iconv prototype present.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/auto-host.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2019-11-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Nov  6 19:14:29 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64: c++config.h
gstdint.h symver-config.h
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc: auto-host.h
configargs.h defs.mk gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64: auto-host.h
configargs.h defs.mk gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc64: config.h

Log Message:
regen mknative for powerpc and powerpc64.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h
cvs rdiff -u -r1.19 -r1.20 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gstdint.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/symver-config.h
cvs rdiff -u -r1.15 -r1.16 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/auto-host.h
cvs rdiff -u -r1.41 -r1.42 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/configargs.h
cvs rdiff -u -r1.20 -r1.21 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/gtyp-input.list \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/tm.h
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/auto-host.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.20 -r1.21 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/configargs.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/gtyp-input.list \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/tm.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc/config.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc64/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2019-11-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Nov  6 19:14:29 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64: c++config.h
gstdint.h symver-config.h
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc: auto-host.h
configargs.h defs.mk gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64: auto-host.h
configargs.h defs.mk gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc64: config.h

Log Message:
regen mknative for powerpc and powerpc64.


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h
cvs rdiff -u -r1.19 -r1.20 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gstdint.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/symver-config.h
cvs rdiff -u -r1.15 -r1.16 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/auto-host.h
cvs rdiff -u -r1.41 -r1.42 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/configargs.h
cvs rdiff -u -r1.20 -r1.21 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/gtyp-input.list \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc/tm.h
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/auto-host.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.20 -r1.21 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/configargs.h
cvs rdiff -u -r1.10 -r1.11 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/gtyp-input.list \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/tm.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc/config.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc64/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h:1.31 src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h:1.32
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h:1.31	Thu Oct 24 18:17:27 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h	Wed Nov  6 19:14:29 2019
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp  */
+/* Generated from: NetBSD: mknative-gcc,v 1.103 2019/10/24 03:19:14 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 // Predefined symbols and macros -*- C++ -*-
@@ -1335,7 +1335,7 @@ namespace std
 #define _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL 1
 
 /* Define as const if the declaration of iconv() needs const. */
-#define _GLIBCXX_ICONV_CONST
+#define _GLIBCXX_ICONV_CONST const
 
 /* Define to the sub-directory in which libtool stores uninstalled libraries.
*/

Index: src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h:1.3 src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h:1.4
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h:1.3	Thu Oct 24 18:17:27 2019
+++ src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/symver-config.h	Wed Nov  6 19:14:29 2019
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp  */
+/* Generated from: NetBSD: mknative-gcc,v 1.103 2019/10/24 03:19:14 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 /* config.h.  Generated from config.h.in by configure.  */
@@ -718,7 +718,7 @@
 #define HAVE___CXA_THREAD_ATEXIT_IMPL 1
 
 /* Define as const if the declaration of iconv() needs const. */
-#define ICONV_CONST
+#define ICONV_CONST const
 
 /* Define to the sub-directory in which libtool stores uninstalled libraries.
*/

Index: src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h
diff -u src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h:1.19 src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h:1.20
--- src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h:1.19	Tue Nov  5 20:07:21 2019
+++ 

CVS commit: src/external/gpl3/gcc/dist/gcc/config

2019-11-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Nov  6 10:42:00 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc/config: netbsd.h

Log Message:
update the comment above LIB_SPEC to remove 2 wrong things we fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/external/gpl3/gcc/dist/gcc/config/netbsd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/gcc/config

2019-11-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Nov  6 10:42:00 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc/config: netbsd.h

Log Message:
update the comment above LIB_SPEC to remove 2 wrong things we fixed.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/external/gpl3/gcc/dist/gcc/config/netbsd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.32 src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.33
--- src/external/gpl3/gcc/dist/gcc/config/netbsd.h:1.32	Wed Oct  2 02:54:34 2019
+++ src/external/gpl3/gcc/dist/gcc/config/netbsd.h	Wed Nov  6 10:42:00 2019
@@ -99,13 +99,9 @@ along with GCC; see the file COPYING3.  
1. Select the appropriate set of libs, depending on whether we're
   profiling.
 
-   2. Include the pthread library if -pthread is specified (only
-  if threads are enabled).
+   2. Include the pthread library if -pthread is specified.
 
-   3. Include the posix library if -posix is specified.
-
-   FIXME: Could eliminate the duplication here if we were allowed to
-   use string concatenation.  */
+   3. Include the posix library if -posix is specified. */
 
 #define NETBSD_LIB_SPEC		\
   "%{pthread:			\



CVS commit: src/external/gpl3/gcc/dist/gcc

2019-11-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Nov  6 09:10:50 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: config.gcc
src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h

Log Message:
revert the powerpc config.gcc changes i made while merging,
they end up mis-ordering tm files.

revert the rs6000/netbsd64.h change and put it back as
SUBSUBTARGET_EXTRA_SPECS.

this seems to make the build work again, though mknative will
need a re-run for ppc*.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/external/gpl3/gcc/dist/gcc/config.gcc
cvs rdiff -u -r1.24 -r1.25 \
src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config.gcc
diff -u src/external/gpl3/gcc/dist/gcc/config.gcc:1.60 src/external/gpl3/gcc/dist/gcc/config.gcc:1.61
--- src/external/gpl3/gcc/dist/gcc/config.gcc:1.60	Wed Oct 16 07:35:14 2019
+++ src/external/gpl3/gcc/dist/gcc/config.gcc	Wed Nov  6 09:10:50 2019
@@ -2531,14 +2531,15 @@ powerpc*-*-freebsd*)
 	esac
 	;;
 powerpc*-*-netbsd*)
-	tm_file="${tm_file} dbxelf.h elfos.h ${nbsd_tm_file} freebsd-spec.h rs6000/sysv4.h rs6000/netbsd.h"
+	tm_file="${tm_file} ${nbsd_tm_file} dbxelf.h elfos.h freebsd-spec.h"
 	case ${target} in
 	powerpc64*)
 		tm_file="rs6000/biarch64.h ${tm_file}"
-		tm_file="${tm_file} rs6000/default64.h rs6000/netbsd64.h"
+		tm_file="${tm_file} rs6000/sysv4.h rs6000/default64.h rs6000/netbsd64.h"
 		tmake_file="${tmake_file} rs6000/t-netbsd64"
 		;;
 	*)
+		tm_file="${tm_file} rs6000/sysv4.h rs6000/netbsd.h"
 		tmake_file="${tmake_file} rs6000/t-netbsd"
 		;;
 	esac

Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h
diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.24 src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.25
--- src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.24	Tue Nov  5 20:06:41 2019
+++ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h	Wed Nov  6 09:10:50 2019
@@ -204,8 +204,8 @@ extern int dot_symbols;
 %{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}}" \
   ENDIAN_SELECT(" -mbig", " -mlittle", DEFAULT_ASM_ENDIAN)
 
-#undef	EXTRA_SPECS
-#define EXTRA_SPECS \
+#undef	SUBSUBTARGET_EXTRA_SPECS
+#define SUBSUBTARGET_EXTRA_SPECS \
   { "asm_spec_common",		ASM_SPEC_COMMON },			\
   { "asm_spec32",		ASM_SPEC32 },\
   { "asm_spec64",		ASM_SPEC64 },\



CVS commit: src/external/gpl3/gcc/dist/gcc

2019-11-06 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Nov  6 09:10:50 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: config.gcc
src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h

Log Message:
revert the powerpc config.gcc changes i made while merging,
they end up mis-ordering tm files.

revert the rs6000/netbsd64.h change and put it back as
SUBSUBTARGET_EXTRA_SPECS.

this seems to make the build work again, though mknative will
need a re-run for ppc*.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/external/gpl3/gcc/dist/gcc/config.gcc
cvs rdiff -u -r1.24 -r1.25 \
src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2019-11-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov  5 20:07:21 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64: auto-target.h defs.mk
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64: gcov-iov.h
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64: libgomp_f.h omp.h
src/external/gpl3/gcc/lib/libiberty: defs.mk
src/external/gpl3/gcc/lib/libiberty/arch/powerpc64: config.h
src/external/gpl3/gcc/lib/libobjc/arch/powerpc64: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64: c++config.h
cxxabi_tweaks.h defs.mk gstdint.h symver-config.h
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64: auto-host.h
bversion.h configargs.h defs.mk gtyp-input.list insn-modes.h
plugin-version.h tm.h
src/external/gpl3/gcc/usr.bin/include/arch: powerpc64.mk
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc64: config.h

Log Message:
regen powerpc64


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/backtrace-supported.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/config.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/auto-target.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64/gcov-iov.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/libgomp_f.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/omp.h
cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gcc/lib/libiberty/defs.mk
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libiberty/arch/powerpc64/config.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libobjc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.18 -r1.19 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/cxxabi_tweaks.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/defs.mk
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gstdint.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/symver-config.h
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/auto-host.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/bversion.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/plugin-version.h
cvs rdiff -u -r1.19 -r1.20 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/configargs.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/gtyp-input.list \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/tm.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/insn-modes.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/usr.bin/include/arch/powerpc64.mk
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc64/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/backtrace-supported.h
diff -u src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/backtrace-supported.h:1.5 src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/backtrace-supported.h:1.6
--- src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/backtrace-supported.h:1.5	Tue Feb  5 07:01:43 2019
+++ src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/backtrace-supported.h	Tue Nov  5 15:07:20 2019
@@ -1,9 +1,9 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gcc,v 1.99 2019/02/04 01:46:59 mrg Exp  */
+/* Generated from: NetBSD: mknative-gcc,v 1.103 2019/10/24 03:19:14 christos Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
 
 /* backtrace-supported.h.in -- Whether stack backtrace is supported.
-   Copyright (C) 2012-2017 Free Software Foundation, Inc.
+   Copyright (C) 2012-2018 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Google.
 
 Redistribution and use in source and binary forms, with or without

Index: src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/config.h
diff -u src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/config.h:1.3 src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/config.h:1.4
--- src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/config.h:1.3	Thu Jun  9 19:30:18 2016
+++ src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/config.h	Tue 

CVS commit: src/external/gpl3/gcc/dist/gcc/config/rs6000

2019-11-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov  5 20:06:41 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h

Log Message:
- Use EXTRA_SPECS like we did for aarch64 instead of SUBSUBTARGET_EXTRA_SPECS
  so that assembly specs get propagated (they were lost before)
- adjust the block register padding (like the other OS's) so that code compiles
- XXX: linker still broken for shared libraries because the os specific spec
  is not chosen


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 \
src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2019-11-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov  5 20:07:21 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64: auto-target.h defs.mk
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64: gcov-iov.h
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64: libgomp_f.h omp.h
src/external/gpl3/gcc/lib/libiberty: defs.mk
src/external/gpl3/gcc/lib/libiberty/arch/powerpc64: config.h
src/external/gpl3/gcc/lib/libobjc/arch/powerpc64: defs.mk
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64: c++config.h
cxxabi_tweaks.h defs.mk gstdint.h symver-config.h
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64: auto-host.h
bversion.h configargs.h defs.mk gtyp-input.list insn-modes.h
plugin-version.h tm.h
src/external/gpl3/gcc/usr.bin/include/arch: powerpc64.mk
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc64: config.h

Log Message:
regen powerpc64


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/backtrace-supported.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc64/config.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/auto-target.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gcc/lib/libgcc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64/gcov-iov.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/libgomp_f.h
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/lib/libgomp/arch/powerpc64/omp.h
cvs rdiff -u -r1.22 -r1.23 src/external/gpl3/gcc/lib/libiberty/defs.mk
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libiberty/arch/powerpc64/config.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/lib/libobjc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.18 -r1.19 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/cxxabi_tweaks.h
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/defs.mk
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gstdint.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/symver-config.h
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/auto-host.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/defs.mk
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/bversion.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/plugin-version.h
cvs rdiff -u -r1.19 -r1.20 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/configargs.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/gtyp-input.list \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/tm.h
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/insn-modes.h
cvs rdiff -u -r1.1 -r1.2 \
src/external/gpl3/gcc/usr.bin/include/arch/powerpc64.mk
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/usr.bin/libcpp/arch/powerpc64/config.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/gcc/config/rs6000

2019-11-05 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Nov  5 20:06:41 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/rs6000: netbsd64.h

Log Message:
- Use EXTRA_SPECS like we did for aarch64 instead of SUBSUBTARGET_EXTRA_SPECS
  so that assembly specs get propagated (they were lost before)
- adjust the block register padding (like the other OS's) so that code compiles
- XXX: linker still broken for shared libraries because the os specific spec
  is not chosen


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 \
src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h
diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.23 src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.24
--- src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h:1.23	Fri May 10 22:37:58 2019
+++ src/external/gpl3/gcc/dist/gcc/config/rs6000/netbsd64.h	Tue Nov  5 15:06:41 2019
@@ -204,8 +204,8 @@ extern int dot_symbols;
 %{,assembler|,assembler-with-cpp: %{mregnames} %{mno-regnames}}" \
   ENDIAN_SELECT(" -mbig", " -mlittle", DEFAULT_ASM_ENDIAN)
 
-#undef	SUBSUBTARGET_EXTRA_SPECS
-#define SUBSUBTARGET_EXTRA_SPECS \
+#undef	EXTRA_SPECS
+#define EXTRA_SPECS \
   { "asm_spec_common",		ASM_SPEC_COMMON },			\
   { "asm_spec32",		ASM_SPEC32 },\
   { "asm_spec64",		ASM_SPEC64 },\
@@ -296,7 +296,7 @@ extern int dot_symbols;
registers and memory.  FIRST is nonzero if this is the only
element.  */
 #define BLOCK_REG_PADDING(MODE, TYPE, FIRST) \
-  (!(FIRST) ? upward : FUNCTION_ARG_PADDING (MODE, TYPE))
+  (!(FIRST) ? PAD_UPWARD : targetm.calls.function_arg_padding (MODE, TYPE))
 
 /* NetBSD doesn't support saving and restoring 64-bit regs in a 32-bit
process.  */



CVS commit: src/external/gpl3/gcc/dist/gcc/config/pa

2019-11-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Nov  3 01:03:30 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/pa: pa-netbsd.h

Log Message:
netbsd/hppa uses 16 byte alignment.  the inherited default changed..


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/gcc/config/pa

2019-11-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Nov  3 01:03:30 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/pa: pa-netbsd.h

Log Message:
netbsd/hppa uses 16 byte alignment.  the inherited default changed..


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h
diff -u src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h:1.5 src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h:1.6
--- src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h:1.5	Fri Aug 19 05:11:10 2016
+++ src/external/gpl3/gcc/dist/gcc/config/pa/pa-netbsd.h	Sun Nov  3 01:03:30 2019
@@ -131,6 +131,10 @@ along with GCC; see the file COPYING3.  
 #undef PTRDIFF_TYPE
 #define PTRDIFF_TYPE "long int"
 
+/* NetBSD always uses 128 byte alignment.  */
+#undef MALLOC_ABI_ALIGNMENT
+#define MALLOC_ABI_ALIGNMENT 128
+
 #if 0
 #undef TARGET_SYNC_LIBCALL
 #define TARGET_SYNC_LIBCALL 1



CVS commit: src/external/gpl3/gcc

2019-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct 30 00:07:39 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/arm: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/armeb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb: c++config.h
symver-config.h
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/arm: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earm: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmeb: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmhf: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv4: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/aarch64: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/arm: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/armeb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earm: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmeb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmhf: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmhfeb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv4: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv4eb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv6: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv6eb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv6hf: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv6hfeb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv7: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv7eb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv7hf: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv7hfeb: config.h
Added Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/arm: arm-cpu-cdata.h
arm-cpu-data.h
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb: arm-cpu-cdata.h
arm-cpu-data.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earm: arm-cpu-cdata.h
arm-cpu-data.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmeb: arm-cpu-cdata.h
arm-cpu-data.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmhf: arm-cpu-cdata.h
arm-cpu-data.h

CVS commit: src/external/gpl3/gcc

2019-10-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct 30 00:07:39 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/arm: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/armeb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earm: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf: c++config.h
symver-config.h
src/external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb: c++config.h
symver-config.h
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/arm: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earm: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmeb: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmhf: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv4: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7: auto-host.h configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb: auto-host.h
configargs.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/aarch64: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/arm: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/armeb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earm: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmeb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmhf: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmhfeb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv4: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv4eb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv6: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv6eb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv6hf: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv6hfeb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv7: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv7eb: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv7hf: config.h
src/external/gpl3/gcc/usr.bin/libcpp/arch/earmv7hfeb: config.h
Added Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/arm: arm-cpu-cdata.h
arm-cpu-data.h
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb: arm-cpu-cdata.h
arm-cpu-data.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earm: arm-cpu-cdata.h
arm-cpu-data.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmeb: arm-cpu-cdata.h
arm-cpu-data.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmhf: arm-cpu-cdata.h
arm-cpu-data.h

CVS commit: src/external/gpl3/gcc/usr.bin/backend

2019-10-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 29 02:49:05 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/backend: Makefile

Log Message:
Add more -O0 files for vax, sort


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/external/gpl3/gcc/usr.bin/backend/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/usr.bin/backend/Makefile
diff -u src/external/gpl3/gcc/usr.bin/backend/Makefile:1.56 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.57
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.56	Wed Oct  2 02:52:00 2019
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Mon Oct 28 22:49:05 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.56 2019/10/02 06:52:00 mrg Exp $
+#	$NetBSD: Makefile,v 1.57 2019/10/29 02:49:05 christos Exp $
 
 LIBISPRIVATE=	yes
 
@@ -534,14 +534,17 @@ COPTS.builtins.c+=-O0
 COPTS.calls.c+=-O0
 COPTS.convert.c+=-O0
 COPTS.data-streamer-out.c+=-O0
-COPTS.dwarf2out.c+=-O0
 COPTS.dse.c+=-O0	# XXX port-vax/51967
+COPTS.dwarf2out.c+=-O0
 COPTS.expmed.c+=-O0
 COPTS.expr.c+=-O0 -Wno-error=tautological-compare
 COPTS.fixed-value.c+=-O0
 COPTS.fold-const.c+=-O0
+COPTS.generic-match.c+=-O0
 COPTS.gimple-fold.c+=-O0
+COPTS.gimple-match.c+=-O0
 COPTS.gimple-ssa-strength-reduction.c+=-O0
+COPTS.gimple-ssa-warn-restrict.c+=-O0
 COPTS.gimple.c+=-O0
 COPTS.internal-fn.c+=-O0
 COPTS.lto-streamer-out.c+=-O0
@@ -554,13 +557,13 @@ COPTS.stor-layout.c+=-O0
 COPTS.targhooks.c+=-O0
 COPTS.tree-affine.c+=-O0
 COPTS.tree-cfg.c+=-O0
+COPTS.tree-data-ref.c+=-O0
 COPTS.tree-eh.c+=-O0
 COPTS.tree-if-conv.c+=-O0
 COPTS.tree-object-size.c+=-O0
 COPTS.tree-parloops.c+=-O0
 COPTS.tree-predcom.c+=-O0
 COPTS.tree-pretty-print.c+=-O0
-COPTS.tree-ssa.c+=-O0
 COPTS.tree-ssa-alias.c+=-O0
 COPTS.tree-ssa-ccp.c+=-O0
 COPTS.tree-ssa-forwprop.c+=-O0
@@ -570,18 +573,21 @@ COPTS.tree-ssa-loop-niter.c+=-O0
 COPTS.tree-ssa-math-opts.c+=-O0
 COPTS.tree-ssa-pre.c+=-O0
 COPTS.tree-ssa-reassoc.c+=-O0
+COPTS.tree-ssa-strlen.c+=-O0
 COPTS.tree-ssa-uninit.c+=-O0
+COPTS.tree-ssa.c+=-O0
 COPTS.tree-switch-conversion.c+=-O0
 COPTS.tree-vect-data-refs.c+=-O0
-COPTS.tree-vect-loop.c+=-O0
 COPTS.tree-vect-loop-manip.c+=-O0
+COPTS.tree-vect-loop.c+=-O0
 COPTS.tree-vect-patterns.c+=-O0
 COPTS.tree-vect-stmts.c+=-O0
 COPTS.tree-vrp.c+=-O0
 COPTS.tree.c+=-O0
 COPTS.ubsan.c+=-O0
-COPTS.web.c+=-O0
 COPTS.varasm.c+=-O0
+COPTS.vr-values.c+=-O0
+COPTS.web.c+=-O0
 COPTS.wide-int.cc+=-O0
 .else
 COPTS.tree.c=	${${ACTIVE_CC} == "clang" :? -O0 :}



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2019-10-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 29 02:49:05 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/backend: Makefile

Log Message:
Add more -O0 files for vax, sort


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/external/gpl3/gcc/usr.bin/backend/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/lib

2019-10-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Oct 28 16:25:05 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/liblsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
vaxinate sanitizer_file.cc against the optimizer virus.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/lib/liblsan/Makefile
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libubsan/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/lib/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.30 src/external/gpl3/gcc/lib/libasan/Makefile:1.31
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.30	Sun Oct 13 17:18:20 2019
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Mon Oct 28 12:25:05 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2019/10/13 21:18:20 mrg Exp $
+# $NetBSD: Makefile,v 1.31 2019/10/28 16:25:05 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 NOSANITIZER=	# defined
@@ -51,6 +51,7 @@ CPPFLAGS+=-DCAN_SANITIZE_UB=0
 .if ${MACHINE_ARCH} == "vax"
 COPTS.asan_allocator.cc += -O1
 COPTS.asan_report.cc += -O1
+COPTS.sanitizer_file.cc += -O1
 COPTS.ubsan_diag.cc += -O1
 COPTS.ubsan_init.cc += -O1
 .endif

Index: src/external/gpl3/gcc/lib/liblsan/Makefile
diff -u src/external/gpl3/gcc/lib/liblsan/Makefile:1.5 src/external/gpl3/gcc/lib/liblsan/Makefile:1.6
--- src/external/gpl3/gcc/lib/liblsan/Makefile:1.5	Tue Oct  1 22:54:34 2019
+++ src/external/gpl3/gcc/lib/liblsan/Makefile	Mon Oct 28 12:25:05 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2019/10/02 02:54:34 mrg Exp $
+# $NetBSD: Makefile,v 1.6 2019/10/28 16:25:05 christos Exp $
 
 .include 
 
@@ -18,6 +18,7 @@ LSAN_SRCS+= \
 
 .if ${MACHINE_ARCH} == "vax"
 COPTS.lsan_allocator.cc += -O1
+COPTS.sanitizer_file.cc += -O1
 .endif
 
 LIB=	lsan

Index: src/external/gpl3/gcc/lib/libubsan/Makefile
diff -u src/external/gpl3/gcc/lib/libubsan/Makefile:1.15 src/external/gpl3/gcc/lib/libubsan/Makefile:1.16
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.15	Sat Oct  5 20:15:22 2019
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Mon Oct 28 12:25:05 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.15 2019/10/06 00:15:22 mrg Exp $
+#	$NetBSD: Makefile,v 1.16 2019/10/28 16:25:05 christos Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 LIBISCXX = yes
@@ -25,6 +25,10 @@ UBSAN_SRCS= \
 COPTS.${_s}.cc+=-frtti
 .endfor
 
+.if ${MACHINE_ARCH} == "vax"
+COPTS.sanitizer_file.cc += -O1
+.endif
+
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt



CVS commit: src/external/gpl3/gcc/lib

2019-10-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Oct 28 16:25:05 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libasan: Makefile
src/external/gpl3/gcc/lib/liblsan: Makefile
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
vaxinate sanitizer_file.cc against the optimizer virus.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/external/gpl3/gcc/lib/libasan/Makefile
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gcc/lib/liblsan/Makefile
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gcc/lib/libubsan/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/usr.bin/gcc/arch/alpha

2019-10-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 27 21:07:37 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/alpha: defs.mk

Log Message:
remove build output.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/usr.bin/gcc/arch/alpha/defs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/usr.bin/gcc/arch/alpha

2019-10-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 27 21:07:37 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/alpha: defs.mk

Log Message:
remove build output.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
src/external/gpl3/gcc/usr.bin/gcc/arch/alpha/defs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/usr.bin/gcc/arch/alpha/defs.mk
diff -u src/external/gpl3/gcc/usr.bin/gcc/arch/alpha/defs.mk:1.16 src/external/gpl3/gcc/usr.bin/gcc/arch/alpha/defs.mk:1.17
--- src/external/gpl3/gcc/usr.bin/gcc/arch/alpha/defs.mk:1.16	Wed Oct  2 03:15:01 2019
+++ src/external/gpl3/gcc/usr.bin/gcc/arch/alpha/defs.mk	Sun Oct 27 17:07:37 2019
@@ -1,854 +1,7 @@
 # This file is automatically generated.  DO NOT EDIT!
-# Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp 
+# Generated from: NetBSD: mknative-gcc,v 1.103 2019/10/24 03:19:14 christos Exp 
 # Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
 #
-running CONFIG_SHELL=/bin/sh /bin/sh /usr/src/external/gpl3/gcc/dist/gcc/configure --srcdir=/usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc --cache-file=./config.cache --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/support/send-pr.html --with-pkgversion=NetBSD nb1 20190930 --with-system-zlib --without-isl --enable-__cxa_atexit --enable-libstdcxx-time=rt --enable-libstdcxx-threads --with-diagnostics-color=auto-if-env --with-default-libstdcxx-abi=new --with-mpc-lib=/var/obj/mknative/alpha/usr/src/external/lgpl3/mpc/lib/libmpc --with-mpfr-lib=/var/obj/mknative/alpha/usr/src/external/lgpl3/mpfr/lib/libmpfr --with-gmp-lib=/var/obj/mknative/alpha/usr/src/external/lgpl3/gmp/lib/libgmp --with-mpc-include=/usr/src/external/lgpl3/mpc/dist/src --with-mpfr-include=/usr/src/external/lgpl3/mpfr/dist/src --with-gmp-include=/usr/src/external/lgpl3/gmp/lib/libgmp/arch/alpha --enable-tls --disable-multilib --disable-libstdcxx-pch --with-sysroot=/var/obj/mknative/alpha/usr
 /src/destdir.alpha --enable-languages=c,c++,lto,objc --program-transform-name=s,y,y, --disable-option-checking --build=x86_64-unknown-netbsd9.0 --host=alpha--netbsd --target=alpha--netbsd build_alias=x86_64-unknown-netbsd9.0 host_alias=alpha--netbsd target_alias=alpha--netbsd CC=/var/obj/mknative/alpha/usr/src/tooldir.NetBSD-9.0_BETA-amd64/bin/alpha--netbsd-gcc --sysroot=/var/obj/mknative/alpha/usr/src/destdir.alpha -L/var/obj/mknative/alpha/usr/src/destdir.alpha/lib -L/var/obj/mknative/alpha/usr/src/destdir.alpha/usr/lib -B/var/obj/mknative/alpha/usr/src/destdir.alpha/usr/lib/ -I/var/obj/mknative/alpha/usr/src/tools/gcc/.native/gcc/include CFLAGS= LDFLAGS=-static-libstdc++ -static-libgcc  CPPFLAGS= CXX=/var/obj/mknative/alpha/usr/src/tooldir.NetBSD-9.0_BETA-amd64/bin/alpha--netbsd-c++ --sysroot=/var/obj/mknative/alpha/usr/src/destdir.alpha -L/var/obj/mknative/alpha/usr/src/destdir.alpha/lib -L/var/obj/mknative/alpha/usr/src/destdir.alpha/usr/lib -B/var/obj/mknative/alpha/usr/src/de
 stdir.alpha/usr/lib/ -I/var/obj/mknative/alpha/usr/src/tools/gcc/.native/gcc/include --sysroot=/var/obj/mknative/alpha/usr/src/destdir.alpha CXXFLAGS= CPP=/var/obj/mknative/alpha/usr/src/tooldir.NetBSD-9.0_BETA-amd64/bin/alpha--netbsd-cpp -I/var/obj/mknative/alpha/usr/src/destdir.alpha/usr/include -I/var/obj/mknative/alpha/usr/src/destdir.alpha/usr/include/g++/bits GMPLIBS=-L/var/obj/mknative/alpha/usr/src/external/lgpl3/gmp/lib/libgmp -L/var/obj/mknative/alpha/usr/src/external/lgpl3/mpfr/lib/libmpfr -L/var/obj/mknative/alpha/usr/src/external/lgpl3/mpc/lib/libmpc -lmpc -lmpfr -lgmp GMPINC=-I/usr/src/external/lgpl3/gmp/lib/libgmp/arch/alpha -I/usr/src/external/lgpl3/mpfr/dist/src -I/usr/src/external/lgpl3/mpc/dist/src  ISLLIBS= ISLINC= --no-create --no-recursion
-configure: loading cache ./config.cache
-checking build system type... (cached) x86_64-unknown-netbsd9.0
-checking host system type... (cached) alpha--netbsd
-checking target system type... (cached) alpha--netbsd
-checking LIBRARY_PATH variable... ok
-checking GCC_EXEC_PREFIX variable... ok
-checking whether to place generated files in the source directory... no
-checking whether a default linker was specified... no
-checking whether a default assembler was specified... no
-checking for alpha--netbsd-gcc... (cached) /var/obj/mknative/alpha/usr/src/tooldir.NetBSD-9.0_BETA-amd64/bin/alpha--netbsd-gcc --sysroot=/var/obj/mknative/alpha/usr/src/destdir.alpha -L/var/obj/mknative/alpha/usr/src/destdir.alpha/lib -L/var/obj/mknative/alpha/usr/src/destdir.alpha/usr/lib -B/var/obj/mknative/alpha/usr/src/destdir.alpha/usr/lib/ -I/var/obj/mknative/alpha/usr/src/tools/gcc/.native/gcc/include
-checking for C compiler default output file name... a.out
-checking whether the C compiler works... yes
-checking whether we are cross compiling... yes
-checking for suffix of executables... 
-checking for 

CVS commit: src/external/gpl3/gcc/dist/libsanitizer/lsan

2019-10-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 26 18:36:25 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.h

Log Message:
add some more machines to the 32 bit part


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/libsanitizer/lsan

2019-10-26 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Oct 26 18:36:25 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.h

Log Message:
add some more machines to the 32 bit part


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h
diff -u src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.2 src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.3
--- src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h:1.2	Fri Oct  4 04:51:33 2019
+++ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h	Sat Oct 26 14:36:25 2019
@@ -51,6 +51,10 @@ struct ChunkMetadata {
 #if defined(__aarch64__) || defined(__i386__) || defined(__arm__) || \
 ((defined(__sparc__) || \
   defined(__powerpc__) || \
+  defined(__m68k__) || \
+  defined(__hppa__) || \
+  defined(__sh3__) || \
+  defined(__vax__) || \
   defined(__mips__)) && !defined(_LP64))
 static const uptr kRegionSizeLog = 20;
 static const uptr kNumRegions = SANITIZER_MMAP_RANGE_SIZE >> kRegionSizeLog;
@@ -68,7 +72,7 @@ struct AP32 {
 };
 typedef SizeClassAllocator32 PrimaryAllocator;
 #elif defined(__x86_64__) || defined(__powerpc64__) || defined(__sparc64__) || \
-  (defined(__mips64) && defined(_LP64))
+  defined(__alpha__) || (defined(__mips64) && defined(_LP64))
 struct AP64 {  // Allocator64 parameters. Deliberately using a short name.
   static const uptr kSpaceBeg = 0x6000ULL;
   static const uptr kSpaceSize =  0x400ULL; // 4T.



CVS commit: src/external/gpl3/gcc/dist/libsanitizer/asan

2019-10-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct 25 18:03:59 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/asan: asan_mapping.h

Log Message:
Unbreak the sanitizers for gcc. The sanitizer offset defined in
libsanitizer needs to match with the compiler concept of
TARGET_ASAN_SHADOW_OFFSET, since the compiler generates instructions
to access memory at that offset in the code, and expects the
sanitizer library to have mapped something there. If there is
disagreement, Mr. Segmentation Fault comes and resolves it for you.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/libsanitizer/asan

2019-10-25 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri Oct 25 18:03:59 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/asan: asan_mapping.h

Log Message:
Unbreak the sanitizers for gcc. The sanitizer offset defined in
libsanitizer needs to match with the compiler concept of
TARGET_ASAN_SHADOW_OFFSET, since the compiler generates instructions
to access memory at that offset in the code, and expects the
sanitizer library to have mapped something there. If there is
disagreement, Mr. Segmentation Fault comes and resolves it for you.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h
diff -u src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h:1.6 src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h:1.7
--- src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h:1.6	Tue Oct  1 06:38:23 2019
+++ src/external/gpl3/gcc/dist/libsanitizer/asan/asan_mapping.h	Fri Oct 25 14:03:59 2019
@@ -185,8 +185,10 @@ static const u64 kWindowsShadowOffset32 
 #define SHADOW_OFFSET kSystemZ_ShadowOffset64
 #  elif SANITIZER_FREEBSD
 #define SHADOW_OFFSET kFreeBSD_ShadowOffset64
-#  elif SANITIZER_NETBSD
-#define SHADOW_OFFSET kNetBSD_ShadowOffset64
+// XXX: see TARGET_ASAN_SHADOW_OFFSET in gcc.
+// for example ix86_asan_shadow_offset() in i386.c 
+// #  elif SANITIZER_NETBSD
+// #define SHADOW_OFFSET kNetBSD_ShadowOffset64
 #  elif SANITIZER_MAC
 #   define SHADOW_OFFSET kDefaultShadowOffset64
 #  elif defined(__mips64)



CVS commit: src/external/gpl3/gcc/usr.bin

2019-10-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 24 18:48:43 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin: Makefile.frontend

Log Message:
arm-common.c uses bitmap stuff so put the common-target.a before common.a


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/usr.bin/Makefile.frontend

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/usr.bin/Makefile.frontend
diff -u src/external/gpl3/gcc/usr.bin/Makefile.frontend:1.6 src/external/gpl3/gcc/usr.bin/Makefile.frontend:1.7
--- src/external/gpl3/gcc/usr.bin/Makefile.frontend:1.6	Fri Feb  1 05:34:18 2019
+++ src/external/gpl3/gcc/usr.bin/Makefile.frontend	Thu Oct 24 14:48:43 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.frontend,v 1.6 2019/02/01 10:34:18 mrg Exp $
+#	$NetBSD: Makefile.frontend,v 1.7 2019/10/24 18:48:43 christos Exp $
 
 BINDIR=		/usr/bin
 
@@ -14,8 +14,8 @@ DPADD+=			${FRONTENDOBJ}/libfrontend.a
 LDADD+=			-L${FRONTENDOBJ} -lfrontend
 .endif
 
-.include "../Makefile.common"
 .include "../Makefile.common-target"
+.include "../Makefile.common"
 .include "../Makefile.libcpp"
 .include "../Makefile.backtrace"
 .include "../Makefile.libiberty"



CVS commit: src/external/gpl3/gcc/usr.bin

2019-10-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 24 18:48:43 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin: Makefile.frontend

Log Message:
arm-common.c uses bitmap stuff so put the common-target.a before common.a


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/usr.bin/Makefile.frontend

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/usr.bin/common-target

2019-10-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 24 18:48:09 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/common-target: Makefile

Log Message:
arm-common.c needs stack-protector treatment


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/usr.bin/common-target/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/usr.bin/common-target/Makefile
diff -u src/external/gpl3/gcc/usr.bin/common-target/Makefile:1.8 src/external/gpl3/gcc/usr.bin/common-target/Makefile:1.9
--- src/external/gpl3/gcc/usr.bin/common-target/Makefile:1.8	Mon Feb  4 23:45:07 2019
+++ src/external/gpl3/gcc/usr.bin/common-target/Makefile	Thu Oct 24 14:48:09 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.8 2019/02/05 04:45:07 mrg Exp $
+#	$NetBSD: Makefile,v 1.9 2019/10/24 18:48:09 christos Exp $
 
 LIBISPRIVATE=	yes
 
@@ -21,6 +21,7 @@ CPPFLAGS+=	-I${GCCARCH} -I${BACKENDOBJ} 
 COPTS.prefix.c+=	-Wno-stack-protector
 COPTS.opts-common.c+=	-Wno-stack-protector
 COPTS.rs6000-common.c+=	-Wno-stack-protector
+COPTS.arm-common.c+=	-Wno-stack-protector
 
 GENPROG_ERROR_DEPENDS=errors.lo
 



CVS commit: src/external/gpl3/gcc/usr.bin/common-target

2019-10-24 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 24 18:48:09 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/common-target: Makefile

Log Message:
arm-common.c needs stack-protector treatment


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/usr.bin/common-target/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/libiberty

2019-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 24 03:31:38 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libiberty: sha1.c

Log Message:
mknative tries to build this file with c++ and c++ does not like types
inside offsetof() (a language limitation).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/libiberty/sha1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/libiberty

2019-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 24 03:31:38 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libiberty: sha1.c

Log Message:
mknative tries to build this file with c++ and c++ does not like types
inside offsetof() (a language limitation).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/libiberty/sha1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libiberty/sha1.c
diff -u src/external/gpl3/gcc/dist/libiberty/sha1.c:1.4 src/external/gpl3/gcc/dist/libiberty/sha1.c:1.5
--- src/external/gpl3/gcc/dist/libiberty/sha1.c:1.4	Tue Oct  1 06:38:22 2019
+++ src/external/gpl3/gcc/dist/libiberty/sha1.c	Wed Oct 23 23:31:38 2019
@@ -229,7 +229,7 @@ sha1_process_bytes (const void *buffer, 
   if (len >= 64)
 {
 #if !_STRING_ARCH_unaligned
-# ifdef __clang__
+# if defined(__clang__) || defined(__GNUC__)
 # define alignof(type) __alignof__(type)
 # else
 # define alignof(type) offsetof (struct { char c; type x; }, x)



CVS commit: src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf

2019-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 24 03:26:06 UTC 2019

Added Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf: arm-cpu-cdata.h
arm-cpu-data.h

Log Message:
add new files
XXX: all the arms need regen


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/arm-cpu-cdata.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/arm-cpu-data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf

2019-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 24 03:26:06 UTC 2019

Added Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf: arm-cpu-cdata.h
arm-cpu-data.h

Log Message:
add new files
XXX: all the arms need regen


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/arm-cpu-cdata.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/arm-cpu-data.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/arm-cpu-cdata.h
diff -u /dev/null src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/arm-cpu-cdata.h:1.1
--- /dev/null	Wed Oct 23 23:26:06 2019
+++ src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/arm-cpu-cdata.h	Wed Oct 23 23:26:06 2019
@@ -0,0 +1,3591 @@
+/* This file is automatically generated.  DO NOT EDIT! */
+/* Generated from: NetBSD: mknative-gcc,v 1.102 2019/10/16 06:57:24 mrg Exp  */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp  */
+
+/* -*- buffer-read-only: t -*-
+   Generated automatically by parsecpu.awk from arm-cpus.in.
+   Do not edit.
+
+   Copyright (C) 2011-2018 Free Software Foundation, Inc.
+
+   This file is part of GCC.
+
+   GCC is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as
+   published by the Free Software Foundation; either version 3,
+   or (at your option) any later version.
+
+   GCC is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public
+   License along with GCC; see the file COPYING3.  If not see
+   .  */
+
+static const cpu_arch_extension cpu_opttab_arm9e[] = {
+  {
+"nofp", true, false,
+{
+  isa_bit_vfpv2, isa_bit_vfpv3, isa_bit_vfpv4, isa_bit_neon, 
+  isa_bit_fpv5, isa_bit_fp_d32, isa_bit_fp16, isa_bit_fp16conv, 
+  isa_bit_crypto, isa_bit_fp_dbl, isa_nobit
+}
+  },
+  { NULL, false, false, {isa_nobit}}
+};
+
+static const cpu_arch_extension cpu_opttab_arm946es[] = {
+  {
+"nofp", true, false,
+{
+  isa_bit_vfpv2, isa_bit_vfpv3, isa_bit_vfpv4, isa_bit_neon, 
+  isa_bit_fpv5, isa_bit_fp_d32, isa_bit_fp16, isa_bit_fp16conv, 
+  isa_bit_crypto, isa_bit_fp_dbl, isa_nobit
+}
+  },
+  { NULL, false, false, {isa_nobit}}
+};
+
+static const cpu_arch_extension cpu_opttab_arm966es[] = {
+  {
+"nofp", true, false,
+{
+  isa_bit_vfpv2, isa_bit_vfpv3, isa_bit_vfpv4, isa_bit_neon, 
+  isa_bit_fpv5, isa_bit_fp_d32, isa_bit_fp16, isa_bit_fp16conv, 
+  isa_bit_crypto, isa_bit_fp_dbl, isa_nobit
+}
+  },
+  { NULL, false, false, {isa_nobit}}
+};
+
+static const cpu_arch_extension cpu_opttab_arm968es[] = {
+  {
+"nofp", true, false,
+{
+  isa_bit_vfpv2, isa_bit_vfpv3, isa_bit_vfpv4, isa_bit_neon, 
+  isa_bit_fpv5, isa_bit_fp_d32, isa_bit_fp16, isa_bit_fp16conv, 
+  isa_bit_crypto, isa_bit_fp_dbl, isa_nobit
+}
+  },
+  { NULL, false, false, {isa_nobit}}
+};
+
+static const cpu_arch_extension cpu_opttab_arm10e[] = {
+  {
+"nofp", true, false,
+{
+  isa_bit_vfpv2, isa_bit_vfpv3, isa_bit_vfpv4, isa_bit_neon, 
+  isa_bit_fpv5, isa_bit_fp_d32, isa_bit_fp16, isa_bit_fp16conv, 
+  isa_bit_crypto, isa_bit_fp_dbl, isa_nobit
+}
+  },
+  { NULL, false, false, {isa_nobit}}
+};
+
+static const cpu_arch_extension cpu_opttab_arm1020e[] = {
+  {
+"nofp", true, false,
+{
+  isa_bit_vfpv2, isa_bit_vfpv3, isa_bit_vfpv4, isa_bit_neon, 
+  isa_bit_fpv5, isa_bit_fp_d32, isa_bit_fp16, isa_bit_fp16conv, 
+  isa_bit_crypto, isa_bit_fp_dbl, isa_nobit
+}
+  },
+  { NULL, false, false, {isa_nobit}}
+};
+
+static const cpu_arch_extension cpu_opttab_arm1022e[] = {
+  {
+"nofp", true, false,
+{
+  isa_bit_vfpv2, isa_bit_vfpv3, isa_bit_vfpv4, isa_bit_neon, 
+  isa_bit_fpv5, isa_bit_fp_d32, isa_bit_fp16, isa_bit_fp16conv, 
+  isa_bit_crypto, isa_bit_fp_dbl, isa_nobit
+}
+  },
+  { NULL, false, false, {isa_nobit}}
+};
+
+static const cpu_arch_extension cpu_opttab_arm926ejs[] = {
+  {
+"nofp", true, false,
+{
+  isa_bit_vfpv2, isa_bit_vfpv3, isa_bit_vfpv4, isa_bit_neon, 
+  isa_bit_fpv5, isa_bit_fp_d32, isa_bit_fp16, isa_bit_fp16conv, 
+  isa_bit_crypto, isa_bit_fp_dbl, isa_nobit
+}
+  },
+  { NULL, false, false, {isa_nobit}}
+};
+
+static const cpu_arch_extension cpu_opttab_arm1026ejs[] = {
+  {
+"nofp", true, false,
+{
+  isa_bit_vfpv2, isa_bit_vfpv3, isa_bit_vfpv4, isa_bit_neon, 
+  isa_bit_fpv5, isa_bit_fp_d32, isa_bit_fp16, isa_bit_fp16conv, 
+  isa_bit_crypto, isa_bit_fp_dbl, isa_nobit
+}
+  },
+  { 

CVS commit: src/external/gpl3/gcc/dist/gcc

2019-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Oct 23 18:55:36 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: file-prefix-map.c

Log Message:
Since add_debug_regex_map is used in opts-global.c unconditionally, we can't
disable the code with #ifndef __NetBSD__ because it breaks cross-building.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/file-prefix-map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/gcc

2019-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Oct 23 18:55:36 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: file-prefix-map.c

Log Message:
Since add_debug_regex_map is used in opts-global.c unconditionally, we can't
disable the code with #ifndef __NetBSD__ because it breaks cross-building.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gcc/dist/gcc/file-prefix-map.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/file-prefix-map.c
diff -u src/external/gpl3/gcc/dist/gcc/file-prefix-map.c:1.2 src/external/gpl3/gcc/dist/gcc/file-prefix-map.c:1.3
--- src/external/gpl3/gcc/dist/gcc/file-prefix-map.c:1.2	Tue Oct  1 17:17:28 2019
+++ src/external/gpl3/gcc/dist/gcc/file-prefix-map.c	Wed Oct 23 14:55:36 2019
@@ -123,7 +123,8 @@ remap_macro_filename (const char *filena
   return remap_filename (macro_prefix_maps, filename);
 }
 
-#ifndef __NetBSD__
+/* Original GCC version disabled. The NetBSD version handles regex */
+#if 0
 /* Remap using -fdebug-prefix-map.  Return the GC-allocated new name
corresponding to FILENAME or FILENAME if no remapping was performed.  */
 const char *
@@ -131,7 +132,12 @@ remap_debug_filename (const char *filena
 {
   return remap_filename (debug_prefix_maps, filename);
 }
-#else
+#endif
+
+/*
+ * The following code is a NetBSD extension that allows regex and
+ * \[0-9] substitutition arguments.
+ */
 
 /* Perform user-specified mapping of debug filename prefixes.  Return
the new name corresponding to FILENAME.  */
@@ -238,4 +244,3 @@ remap_debug_filename (const char *filena
 {
return remap_debug_regex_filename (remap_debug_prefix_filename (filename));
 }
-#endif



re: CVS commit: src/external/gpl3/gcc/dist/libobjc

2019-10-16 Thread matthew green
> >> > Module Name: src
> >> > Committed By:christos
> >> > Date:Wed Oct 16 15:01:56 UTC 2019
> >> > 
> >> > Modified Files:
> >> >  src/external/gpl3/gcc/dist/libobjc: encoding.c
> >> > 
> >> > Log Message:
> >> > prevent DFmode re-definition.
> >> 
> >> i'm not a fan of this one.  i'd like to figure out
> >> what is really happening here..
> >> 
> >> i've been using the same hack, but i didn't want to
> >> commit it because i don't understand it.
> >> 
> >> 
> >> .mrg.
> >
> >I'd like to note that upstream adopted the same choice.
> >https://gcc.gnu.org/viewcvs/gcc?view=revision=269429
> 
> That's what we'll keep then :-)

works for me.  thanks!


Re: CVS commit: src/external/gpl3/gcc/dist/libobjc

2019-10-16 Thread Christos Zoulas
In article <20191016220250.ga23...@homeworld.netbsd.org>,
  wrote:
>On Thu, Oct 17, 2019 at 07:08:45AM +1100, matthew green wrote:
>> "Christos Zoulas" writes:
>> > Module Name:   src
>> > Committed By:  christos
>> > Date:  Wed Oct 16 15:01:56 UTC 2019
>> > 
>> > Modified Files:
>> >src/external/gpl3/gcc/dist/libobjc: encoding.c
>> > 
>> > Log Message:
>> > prevent DFmode re-definition.
>> 
>> i'm not a fan of this one.  i'd like to figure out
>> what is really happening here..
>> 
>> i've been using the same hack, but i didn't want to
>> commit it because i don't understand it.
>> 
>> 
>> .mrg.
>
>I'd like to note that upstream adopted the same choice.
>https://gcc.gnu.org/viewcvs/gcc?view=revision=269429

That's what we'll keep then :-)

christos




Re: CVS commit: src/external/gpl3/gcc/dist/libobjc

2019-10-16 Thread maya
On Thu, Oct 17, 2019 at 07:08:45AM +1100, matthew green wrote:
> "Christos Zoulas" writes:
> > Module Name:src
> > Committed By:   christos
> > Date:   Wed Oct 16 15:01:56 UTC 2019
> > 
> > Modified Files:
> > src/external/gpl3/gcc/dist/libobjc: encoding.c
> > 
> > Log Message:
> > prevent DFmode re-definition.
> 
> i'm not a fan of this one.  i'd like to figure out
> what is really happening here..
> 
> i've been using the same hack, but i didn't want to
> commit it because i don't understand it.
> 
> 
> .mrg.

I'd like to note that upstream adopted the same choice.
https://gcc.gnu.org/viewcvs/gcc?view=revision=269429


Re: CVS commit: src/external/gpl3/gcc/dist/libobjc

2019-10-16 Thread Christos Zoulas
In article <9715.1571256...@splode.eterna.com.au>,
matthew green   wrote:
>"Christos Zoulas" writes:
>> Module Name: src
>> Committed By:christos
>> Date:Wed Oct 16 15:01:56 UTC 2019
>> 
>> Modified Files:
>>  src/external/gpl3/gcc/dist/libobjc: encoding.c
>> 
>> Log Message:
>> prevent DFmode re-definition.
>
>i'm not a fan of this one.  i'd like to figure out
>what is really happening here..
>
>i've been using the same hack, but i didn't want to
>commit it because i don't understand it.

I've looked into it:
The definition comes from:

src/external/gpl3/gcc/usr.bin/gcc/arch/x86_64/insn-modes.h:317
#ifdef USE_ENUM_MODES
#define DFmode E_DFmode
#else
#define DFmode (scalar_float_mode ((scalar_float_mode::from_int) E_DFmode))
#endif

These defines are new in gcc8. The older gcc does not have E_DFmode,
and just uses the DFmode enum (which has now been renamed E_DFmode).

So the encoding.c has been changed to use the new E_DFmode in one place:


--- /usr/src/external/gpl3/gcc.old//dist/libobjc/encoding.c 2019-10-16 
17:44:57.910551512 -0400
+++ /usr/src/external/gpl3/gcc//dist/libobjc/encoding.c 2019-10-16 
17:45:05.111849735 -0400
@@ -1,5 +1,5 @@
 /* Encoding of types for Objective C.
-   Copyright (C) 1993-2017 Free Software Foundation, Inc.
+   Copyright (C) 1993-2018 Free Software Foundation, Inc.
Contributed by Kresten Krab Thorup
Bitfield support by Ovidiu Predescu
 
@@ -162,7 +162,7 @@
   case UNION_TYPE:
return MAX (MAX (comp, spec), objc_alignof_type (_stp) * __CHAR_BIT__);
break;
-  case DFmode:
+  case E_DFmode:
   case _C_LNG_LNG:
   case _C_ULNG_LNG:
return MAX (MAX (comp, spec), 64);

The only other place DFmode is used is:

/*  FIXME: while this file has no business including tm.h, this
definitely has no business defining this macro but it
is only way around without really rewritting this file,
should look after the branch of 3.4 to fix this.   */
#define rs6000_special_round_type_align(STRUCT, COMPUTED, SPECIFIED)\
  ({ const char *_fields = TYPE_FIELDS (STRUCT);\
  ((_fields != 0\
&& TYPE_MODE (strip_array_types (TREE_TYPE (_fields))) == DFmode)   \
   ? MAX (MAX (COMPUTED, SPECIFIED), 64)\
   : MAX (COMPUTED, SPECIFIED));})

So think that the right fix is to change the second DFmode to E_DFmode and
then delete the re-definition.

christos





re: CVS commit: src/external/gpl3/gcc/dist/libobjc

2019-10-16 Thread matthew green
"Christos Zoulas" writes:
> Module Name:  src
> Committed By: christos
> Date: Wed Oct 16 15:01:56 UTC 2019
> 
> Modified Files:
>   src/external/gpl3/gcc/dist/libobjc: encoding.c
> 
> Log Message:
> prevent DFmode re-definition.

i'm not a fan of this one.  i'd like to figure out
what is really happening here..

i've been using the same hack, but i didn't want to
commit it because i don't understand it.


.mrg.


CVS commit: src/external/gpl3/gcc/dist/libobjc

2019-10-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Oct 16 15:01:56 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libobjc: encoding.c

Log Message:
prevent DFmode re-definition.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/dist/libobjc/encoding.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libobjc/encoding.c
diff -u src/external/gpl3/gcc/dist/libobjc/encoding.c:1.10 src/external/gpl3/gcc/dist/libobjc/encoding.c:1.11
--- src/external/gpl3/gcc/dist/libobjc/encoding.c:1.10	Tue Oct  1 06:38:22 2019
+++ src/external/gpl3/gcc/dist/libobjc/encoding.c	Wed Oct 16 11:01:56 2019
@@ -81,6 +81,7 @@ see the files COPYING3 and COPYING.RUNTI
 #define DECL_MODE(TYPE) *(TYPE)
 #define TYPE_MODE(TYPE) *(TYPE)
 
+#undef DFmode
 #define DFmode  _C_DBL
 
 #define strip_array_types(TYPE)  ({const char *_field = (TYPE); \



CVS commit: src/external/gpl3/gcc/dist/libobjc

2019-10-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Oct 16 15:01:56 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libobjc: encoding.c

Log Message:
prevent DFmode re-definition.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/dist/libobjc/encoding.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/usr.bin/gcc/arch

2019-10-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct 16 07:38:04 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64: configargs.h
src/external/gpl3/gcc/usr.bin/gcc/arch/arm: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earm: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmeb: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmhf: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv4: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf: configargs.h defs.mk
gtyp-input.list tm.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb: configargs.h defs.mk
gtyp-input.list tm.h
Added Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/arm: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earm: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmeb: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmhf: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv4: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf: arm-cpu.h arm-isa.h
src/external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb: arm-cpu.h arm-isa.h

Log Message:
regen arm ports for config.gcc fix.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 \
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64/configargs.h
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/usr.bin/gcc/arch/arm/arm-cpu.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/arm/arm-isa.h
cvs rdiff -u -r1.34 -r1.35 \
src/external/gpl3/gcc/usr.bin/gcc/arch/arm/configargs.h
cvs rdiff -u -r1.19 -r1.20 src/external/gpl3/gcc/usr.bin/gcc/arch/arm/defs.mk
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gcc/usr.bin/gcc/arch/arm/gtyp-input.list
cvs rdiff -u -r1.10 -r1.11 src/external/gpl3/gcc/usr.bin/gcc/arch/arm/tm.h
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/usr.bin/gcc/arch/armeb/arm-cpu.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb/arm-isa.h
cvs rdiff -u -r1.35 -r1.36 \
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb/configargs.h
cvs rdiff -u -r1.19 -r1.20 \
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb/defs.mk
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gcc/usr.bin/gcc/arch/armeb/gtyp-input.list
cvs rdiff -u -r1.11 -r1.12 src/external/gpl3/gcc/usr.bin/gcc/arch/armeb/tm.h
cvs rdiff -u -r0 -r1.1 src/external/gpl3/gcc/usr.bin/gcc/arch/earm/arm-cpu.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/earm/arm-isa.h
cvs rdiff -u -r1.35 -r1.36 \
src/external/gpl3/gcc/usr.bin/gcc/arch/earm/configargs.h
cvs rdiff -u -r1.18 -r1.19 \
src/external/gpl3/gcc/usr.bin/gcc/arch/earm/defs.mk
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gcc/usr.bin/gcc/arch/earm/gtyp-input.list
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/usr.bin/gcc/arch/earm/tm.h
cvs rdiff -u -r0 -r1.1 \
src/external/gpl3/gcc/usr.bin/gcc/arch/earmeb/arm-cpu.h \
src/external/gpl3/gcc/usr.bin/gcc/arch/earmeb/arm-isa.h
cvs rdiff -u -r1.29 -r1.30 \

CVS commit: src/external/gpl3/gcc/dist/gcc

2019-10-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct 16 07:35:14 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: config.gcc

Log Message:
make sure to include bpabi.h before arm.h.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/external/gpl3/gcc/dist/gcc/config.gcc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/gcc

2019-10-16 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct 16 07:35:14 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: config.gcc

Log Message:
make sure to include bpabi.h before arm.h.


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/external/gpl3/gcc/dist/gcc/config.gcc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config.gcc
diff -u src/external/gpl3/gcc/dist/gcc/config.gcc:1.59 src/external/gpl3/gcc/dist/gcc/config.gcc:1.60
--- src/external/gpl3/gcc/dist/gcc/config.gcc:1.59	Wed Oct  2 05:58:03 2019
+++ src/external/gpl3/gcc/dist/gcc/config.gcc	Wed Oct 16 07:35:14 2019
@@ -1148,7 +1148,7 @@ arm*-*-freebsd*)# ARM Fr
 	with_tls=${with_tls:-gnu}
 	;;
 arm*-*-netbsdelf*)
-	tm_file="dbxelf.h elfos.h ${nbsd_tm_file} arm/elf.h arm/aout.h ${tm_file} arm/netbsd-elf.h"
+	tm_file="dbxelf.h elfos.h ${nbsd_tm_file} arm/elf.h arm/aout.h arm/netbsd-elf.h"
 	extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
 	tmake_file="${tmake_file} arm/t-arm"
 	case ${target} in
@@ -1169,6 +1169,7 @@ arm*-*-netbsdelf*)
 	with_cpu=${with_cpu:-strongarm}
 	;;
 	esac
+	tm_file="${tm_file} vxworks-dummy.h arm/arm.h"
 	case ${target} in
 	arm*-*-netbsdelf-*eabihf*)
 	tm_defines="${tm_defines} TARGET_DEFAULT_FLOAT_ABI=ARM_FLOAT_ABI_HARD"



CVS commit: src/external/gpl3/gcc/lib

2019-10-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 13 21:18:20 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer
src/external/gpl3/gcc/lib/libasan: Makefile

Log Message:
use sanitizer_platform_limits_netbsd.cc.
link asan with libm so it can find signgam.

basic libasan works now.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.29 -r1.30 src/external/gpl3/gcc/lib/libasan/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/lib/Makefile.sanitizer
diff -u src/external/gpl3/gcc/lib/Makefile.sanitizer:1.9 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.10
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.9	Wed Oct  2 06:51:59 2019
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Sun Oct 13 21:18:20 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.9 2019/10/02 06:51:59 mrg Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.10 2019/10/13 21:18:20 mrg Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -31,7 +31,7 @@ SANITIZER_SRCS+= \
 	sanitizer_mac.cc \
 	sanitizer_persistent_allocator.cc \
 	sanitizer_platform_limits_linux.cc \
-	sanitizer_platform_limits_posix.cc \
+	sanitizer_platform_limits_netbsd.cc \
 	sanitizer_posix.cc \
 	sanitizer_posix_libcdep.cc \
 	sanitizer_printf.cc \

Index: src/external/gpl3/gcc/lib/libasan/Makefile
diff -u src/external/gpl3/gcc/lib/libasan/Makefile:1.29 src/external/gpl3/gcc/lib/libasan/Makefile:1.30
--- src/external/gpl3/gcc/lib/libasan/Makefile:1.29	Wed Oct  2 02:54:34 2019
+++ src/external/gpl3/gcc/lib/libasan/Makefile	Sun Oct 13 21:18:20 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2019/10/02 02:54:34 mrg Exp $
+# $NetBSD: Makefile,v 1.30 2019/10/13 21:18:20 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 NOSANITIZER=	# defined
@@ -45,6 +45,7 @@ ASAN_SRCS= \
 LIB=	asan
 SRCS+=	${ASAN_SRCS} lsan_common.cc lsan_common_linux.cc
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt
+LIBDPLIBS+= m  ${NETBSDSRCDIR}/lib/libm
 CPPFLAGS+=-DCAN_SANITIZE_UB=0
 
 .if ${MACHINE_ARCH} == "vax"



CVS commit: src/external/gpl3/gcc/lib

2019-10-13 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 13 21:18:20 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib: Makefile.sanitizer
src/external/gpl3/gcc/lib/libasan: Makefile

Log Message:
use sanitizer_platform_limits_netbsd.cc.
link asan with libm so it can find signgam.

basic libasan works now.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.29 -r1.30 src/external/gpl3/gcc/lib/libasan/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/lib/libubsan

2019-10-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct  6 00:15:22 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
remove ubsan_handlers_cxx.cc from sources.  shouldn't be used with gcc.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/lib/libubsan/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/lib/libubsan

2019-10-05 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct  6 00:15:22 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libubsan: Makefile

Log Message:
remove ubsan_handlers_cxx.cc from sources.  shouldn't be used with gcc.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gcc/lib/libubsan/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/lib/libubsan/Makefile
diff -u src/external/gpl3/gcc/lib/libubsan/Makefile:1.14 src/external/gpl3/gcc/lib/libubsan/Makefile:1.15
--- src/external/gpl3/gcc/lib/libubsan/Makefile:1.14	Fri Oct  4 08:51:33 2019
+++ src/external/gpl3/gcc/lib/libubsan/Makefile	Sun Oct  6 00:15:22 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.14 2019/10/04 08:51:33 mrg Exp $
+#	$NetBSD: Makefile,v 1.15 2019/10/06 00:15:22 mrg Exp $
 
 UNSUPPORTED_COMPILER.clang=	# defined
 LIBISCXX = yes
@@ -15,7 +15,6 @@ UBSAN_SRCS= \
 	ubsan_diag.cc \
 	ubsan_flags.cc \
 	ubsan_handlers.cc \
-	ubsan_handlers_cxx.cc \
 	ubsan_init.cc \
 	ubsan_type_hash.cc \
 	ubsan_type_hash_itanium.cc \
@@ -26,8 +25,6 @@ UBSAN_SRCS= \
 COPTS.${_s}.cc+=-frtti
 .endfor
 
-COPTS.ubsan_handlers_cxx.cc+= -Wno-error=maybe-uninitialized
-
 LIB=	ubsan
 SRCS+=	${UBSAN_SRCS}
 LIBDPLIBS+= rt ${NETBSDSRCDIR}/lib/librt



Re: CVS commit: src/external/gpl3/gcc

2019-10-05 Thread Kamil Rytarowski
On 04.10.2019 10:51, matthew green wrote:
> Module Name:  src
> Committed By: mrg
> Date: Fri Oct  4 08:51:33 UTC 2019
> 
> Modified Files:
>   src/external/gpl3/gcc: README.gcc8
>   src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-netbsd.h
>   src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.cc
>   lsan_allocator.h
>   src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
>   sanitizer_platform_limits_netbsd.h
>   sanitizer_stoptheworld_linux_libcdep.cc
>   src/external/gpl3/gcc/dist/libsanitizer/ubsan: ubsan_handlers_cxx.cc
>   src/external/gpl3/gcc/lib/libsupc++: Makefile.common
>   src/external/gpl3/gcc/lib/libubsan: Makefile
>   src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64: configargs.h
> 
> Log Message:
> - update README.gcc8 to include current status
> - netbsd/arm64 uses 64 byte malloc alignment
> - make lsan compile on sparc*, mips*, ppc and arm64 again
> - add missing sparc, alpha and i386 abi compat for struct __sanitizer_addrinfo
> - avoid linux includes on arm64
> - avoid multiply defined __ubsan_handle_cfi_bad_type when UBSAN_CAN_USE_CXXABI
>   isn't defined, and, undefine it
> - bad_array_length.cc and bad_array_new.cc lose special build rules
> - regen arm64 mknative
> 
> 


ubsan_handlers_cxx.cc should be detached from the build (unless we will
adapt llvm libc++ abi).



signature.asc
Description: OpenPGP digital signature


CVS commit: src/external/gpl3/gcc/dist/gcc

2019-10-04 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Oct  4 12:46:43 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: ira-color.c

Log Message:
We might've switched modes, re-init the move cost table again if necessary.

Fixes unlikely segfault on VAX.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/dist/gcc/ira-color.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/gcc

2019-10-04 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Fri Oct  4 12:46:43 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: ira-color.c

Log Message:
We might've switched modes, re-init the move cost table again if necessary.

Fixes unlikely segfault on VAX.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gcc/dist/gcc/ira-color.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/ira-color.c
diff -u src/external/gpl3/gcc/dist/gcc/ira-color.c:1.6 src/external/gpl3/gcc/dist/gcc/ira-color.c:1.7
--- src/external/gpl3/gcc/dist/gcc/ira-color.c:1.6	Tue Oct  1 10:38:16 2019
+++ src/external/gpl3/gcc/dist/gcc/ira-color.c	Fri Oct  4 12:46:43 2019
@@ -1377,6 +1377,7 @@ update_costs_from_allocno (ira_allocno_t
 	 e.g. DImode for AREG on x86.  For such cases the
 	 register move cost will be maximal.  */
 	  mode = narrower_subreg_mode (mode, ALLOCNO_MODE (cp->second));
+	  ira_init_register_move_cost_if_necessary (mode);
 	  
 	  cost = (cp->second == allocno
 		  ? ira_register_move_cost[mode][rclass][aclass]



CVS commit: src/external/gpl3/gcc

2019-10-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Oct  4 08:51:33 UTC 2019

Modified Files:
src/external/gpl3/gcc: README.gcc8
src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-netbsd.h
src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.cc
lsan_allocator.h
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_platform_limits_netbsd.h
sanitizer_stoptheworld_linux_libcdep.cc
src/external/gpl3/gcc/dist/libsanitizer/ubsan: ubsan_handlers_cxx.cc
src/external/gpl3/gcc/lib/libsupc++: Makefile.common
src/external/gpl3/gcc/lib/libubsan: Makefile
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64: configargs.h

Log Message:
- update README.gcc8 to include current status
- netbsd/arm64 uses 64 byte malloc alignment
- make lsan compile on sparc*, mips*, ppc and arm64 again
- add missing sparc, alpha and i386 abi compat for struct __sanitizer_addrinfo
- avoid linux includes on arm64
- avoid multiply defined __ubsan_handle_cfi_bad_type when UBSAN_CAN_USE_CXXABI
  isn't defined, and, undefine it
- bad_array_length.cc and bad_array_new.cc lose special build rules
- regen arm64 mknative


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/README.gcc8
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.cc
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h
cvs rdiff -u -r1.1.1.1 -r1.2 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.h
cvs rdiff -u -r1.9 -r1.10 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
cvs rdiff -u -r1.1.1.4 -r1.2 \
src/external/gpl3/gcc/dist/libsanitizer/ubsan/ubsan_handlers_cxx.cc
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/lib/libubsan/Makefile
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64/configargs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/README.gcc8
diff -u src/external/gpl3/gcc/README.gcc8:1.1 src/external/gpl3/gcc/README.gcc8:1.2
--- src/external/gpl3/gcc/README.gcc8:1.1	Wed Oct  2 04:23:58 2019
+++ src/external/gpl3/gcc/README.gcc8	Fri Oct  4 08:51:32 2019
@@ -1,4 +1,4 @@
-$NetBSD: README.gcc8,v 1.1 2019/10/02 04:23:58 mrg Exp $
+$NetBSD: README.gcc8,v 1.2 2019/10/04 08:51:32 mrg Exp $
 
 new stuff:
 	cc1objcplus
@@ -21,43 +21,43 @@ switched:	has port switched?  y (yes), n
 
 architecture	tools	kernels	libgcc	native-gcc	make release	runs	atf	switched
 	-	---	--	--			---	
-aarch64		?	?	?	?		?		?	?	?
-alpha		?	?	?	?		?		?	?	?
-arm		?	?	?	?		?		?	?	?
-armeb		?	?	?	?		?		?	?	?
-earmv4		?	?	?	?		?		?	?	?
-earmv4eb	?	?	?	?		?		?	?	?
-earm		?	?	?	?		?		?	?	?
-earmeb		?	?	?	?		?		?	?	?
-earmhf		?	?	?	?		?		?	?	?
-earmhfeb	?	?	?	?		?		?	?	?
-earmv6		?	?	?	?		?		?	?	?
-earmv6eb	?	?	?	?		?		?	?	?
-earmv6hf	?	?	?	?		?		?	?	?
-earmv6hfeb	?	?	?	?		?		?	?	?
-earmv7		?	?	?	?		?		?	?	?
-earmv7eb	?	?	?	?		?		?	?	?
-earmv7hf	?	?	?	?		?		?	?	?
-earmv7hfeb	?	?	?	?		?		?	?	?
-hppa		?	?	?	?		?		?	?	?
-i386		?	?	?	?		?		?	?	?
-ia64		?	?	?	?		?		?	?	?
-m68000		?	?	?	?		?		?	?	?
-m68k		?	?	?	?		?		?	?	?
-mipseb		?	?	?	?		?		?	?	?
-mipsel		?	?	?	?		?		?	?	?
-mips64eb	?	?	?	?		?		?	?	?
-mips64el	?	?	?	?		?		?	?	?
-powerpc		?	?	?	?		?		?	?	?
-powerpc64	?	?	?	?		?		?	?	?
-sh3eb		?	?	?	?		?		?	?	?
-sh3el		?	?	?	?		?		?	?	?
-sparc		?	?	?	?		?		?	?	?
-sparc64		?	?	?	?		?		?	?	?
-vax		?	?	?	?		?		?	?	?
-x86_64		?	?	?	?		?		?	?	?
-riscv32		?	?	?	?		?		?	?	?	
-riscv64		?	?	?	?		?		?	?	?
+aarch64		y	y	y	y		?		?	?	?
+alpha		y	?	?	y		?		?	?	?
+arm		y	?	?	y		?		?	?	?
+armeb		y	?	?	y		?		?	?	?
+earmv4		y	?	?	y		?		?	?	?
+earmv4eb	y	?	?	y		?		?	?	?
+earm		y	?	?	y		?		?	?	?
+earmeb		y	?	?	y		?		?	?	?
+earmhf		y	?	?	y		?		?	?	?
+earmhfeb	y	?	?	y		?		?	?	?
+earmv6		y	?	?	y		?		?	?	?
+earmv6eb	y	?	?	y		?		?	?	?
+earmv6hf	y	?	?	y		?		?	?	?
+earmv6hfeb	y	?	?	y		?		?	?	?
+earmv7		y	?	?	y		?		?	?	?
+earmv7eb	y	?	?	y		?		?	?	?
+earmv7hf	y	?	?	y		?		?	?	?
+earmv7hfeb	y	?	?	y		?		?	?	?
+hppa		y	?	?	y		?		?	?	?
+i386		y	?	?	y		?		?	?	?
+ia64		y	?	?	y		?		?	?	?
+m68000		y	?	?	y		?		?	?	?
+m68k		y	?	?	y		?		?	?	?
+mipseb		y	?	?	y		?		?	?	?
+mipsel		y	?	?	y		?		?	?	?
+mips64eb	y	?	?	y		?		?	?	?
+mips64el	y	?	?	y		?		?	?	?
+powerpc		y	?	?	y		?		?	?	?
+powerpc64	y	?	?	y		?		?	?	?
+sh3eb		y	?	?	y		?		?	?	?
+sh3el		y	?	?	y		?		?	?	?
+sparc		y	y	y	y		y		y	?	?
+sparc64		y	?	?	y		?		?	?	?
+vax		y	?	?	y		?		?	?	?
+x86_64		y	y	y	y		y		y	?	?
+riscv32		y	?	?	y		?		?	?	?	
+riscv64		y	?	?	y		?		?	?	?
 --
 coldfire	?	N/A	?	?	

CVS commit: src/external/gpl3/gcc

2019-10-04 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Oct  4 08:51:33 UTC 2019

Modified Files:
src/external/gpl3/gcc: README.gcc8
src/external/gpl3/gcc/dist/gcc/config/aarch64: aarch64-netbsd.h
src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.cc
lsan_allocator.h
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_platform_limits_netbsd.h
sanitizer_stoptheworld_linux_libcdep.cc
src/external/gpl3/gcc/dist/libsanitizer/ubsan: ubsan_handlers_cxx.cc
src/external/gpl3/gcc/lib/libsupc++: Makefile.common
src/external/gpl3/gcc/lib/libubsan: Makefile
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64: configargs.h

Log Message:
- update README.gcc8 to include current status
- netbsd/arm64 uses 64 byte malloc alignment
- make lsan compile on sparc*, mips*, ppc and arm64 again
- add missing sparc, alpha and i386 abi compat for struct __sanitizer_addrinfo
- avoid linux includes on arm64
- avoid multiply defined __ubsan_handle_cfi_bad_type when UBSAN_CAN_USE_CXXABI
  isn't defined, and, undefine it
- bad_array_length.cc and bad_array_new.cc lose special build rules
- regen arm64 mknative


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/gpl3/gcc/README.gcc8
cvs rdiff -u -r1.3 -r1.4 \
src/external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h
cvs rdiff -u -r1.5 -r1.6 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.cc
cvs rdiff -u -r1.1.1.2 -r1.2 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.h
cvs rdiff -u -r1.1.1.1 -r1.2 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_netbsd.h
cvs rdiff -u -r1.9 -r1.10 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
cvs rdiff -u -r1.1.1.4 -r1.2 \
src/external/gpl3/gcc/dist/libsanitizer/ubsan/ubsan_handlers_cxx.cc
cvs rdiff -u -r1.14 -r1.15 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common
cvs rdiff -u -r1.13 -r1.14 src/external/gpl3/gcc/lib/libubsan/Makefile
cvs rdiff -u -r1.11 -r1.12 \
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64/configargs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



re: CVS commit: src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64

2019-10-02 Thread matthew green
"Nick Hudson" writes:
> Module Name:  src
> Committed By: skrll
> Date: Wed Oct  2 10:34:48 UTC 2019
> 
> Modified Files:
>   src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64: defs.mk
> 
> Log Message:
> Remove garbage. Maybe something is wrong with mknative or mrg's script?

thanks.  this happens when mknative is run a second time, not sure
why it's started happening yet.  appears to be mknative not me.

btw, if you were hitting this, you need to clean your tree because
this subdir shouldn't be used currently by anyone -- it's now got
gcc 8 bits, and the default for everyone is still gcc 7.


.mrg.


CVS commit: src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64

2019-10-02 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Oct  2 10:34:48 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64: defs.mk

Log Message:
Remove garbage. Maybe something is wrong with mknative or mrg's script?


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64/defs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64/defs.mk
diff -u src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64/defs.mk:1.6 src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64/defs.mk:1.7
--- src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64/defs.mk:1.6	Wed Oct  2 07:15:01 2019
+++ src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64/defs.mk	Wed Oct  2 10:34:48 2019
@@ -2,857 +2,6 @@
 # Generated from: NetBSD: mknative-gcc,v 1.101 2019/02/23 06:54:45 mrg Exp 
 # Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp 
 #
-running CONFIG_SHELL=/bin/sh /bin/sh /usr/src/external/gpl3/gcc/dist/gcc/configure --srcdir=/usr/src/tools/gcc/../../external/gpl3/gcc/dist/gcc --cache-file=./config.cache --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/support/send-pr.html --with-pkgversion=NetBSD nb1 20190930 --with-system-zlib --without-isl --enable-__cxa_atexit --enable-libstdcxx-time=rt --enable-libstdcxx-threads --with-diagnostics-color=auto-if-env --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419 --with-default-libstdcxx-abi=new --with-mpc-lib=/var/obj/mknative/evbarm-aarch64/usr/src/external/lgpl3/mpc/lib/libmpc --with-mpfr-lib=/var/obj/mknative/evbarm-aarch64/usr/src/external/lgpl3/mpfr/lib/libmpfr --with-gmp-lib=/var/obj/mknative/evbarm-aarch64/usr/src/external/lgpl3/gmp/lib/libgmp --with-mpc-include=/usr/src/external/lgpl3/mpc/dist/src --with-mpfr-include=/usr/src/external/lgpl3/mpfr/dist/src --with-gmp-include=/usr/src/external/lgpl3/gmp/lib/libgmp/arch/aarch64 --enabl
 e-tls --disable-multilib --disable-libstdcxx-pch --with-sysroot=/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm --enable-languages=c,c++,lto,objc --program-transform-name=s,y,y, --disable-option-checking --build=x86_64-unknown-netbsd9.0 --host=aarch64--netbsd --target=aarch64--netbsd build_alias=x86_64-unknown-netbsd9.0 host_alias=aarch64--netbsd target_alias=aarch64--netbsd CC=/var/obj/mknative/evbarm-aarch64/usr/src/tooldir.NetBSD-9.0_BETA-amd64/bin/aarch64--netbsd-gcc --sysroot=/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm -L/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm/lib -L/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm/usr/lib -B/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm/usr/lib/ -I/var/obj/mknative/evbarm-aarch64/usr/src/tools/gcc/.native/gcc/include CFLAGS= LDFLAGS=-static-libstdc++ -static-libgcc  CPPFLAGS= CXX=/var/obj/mknative/evbarm-aarch64/usr/src/tooldir.NetBSD-9.0_BETA-amd64/bin/aarch64--netbsd-c++ --sysroot=/var/obj/m
 knative/evbarm-aarch64/usr/src/destdir.evbarm -L/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm/lib -L/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm/usr/lib -B/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm/usr/lib/ -I/var/obj/mknative/evbarm-aarch64/usr/src/tools/gcc/.native/gcc/include --sysroot=/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm CXXFLAGS= CPP=/var/obj/mknative/evbarm-aarch64/usr/src/tooldir.NetBSD-9.0_BETA-amd64/bin/aarch64--netbsd-cpp -I/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm/usr/include -I/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm/usr/include/g++/bits GMPLIBS=-L/var/obj/mknative/evbarm-aarch64/usr/src/external/lgpl3/gmp/lib/libgmp -L/var/obj/mknative/evbarm-aarch64/usr/src/external/lgpl3/mpfr/lib/libmpfr -L/var/obj/mknative/evbarm-aarch64/usr/src/external/lgpl3/mpc/lib/libmpc -lmpc -lmpfr -lgmp GMPINC=-I/usr/src/external/lgpl3/gmp/lib/libgmp/arch/aarch64 -I/usr/src/external/lgpl3/mpfr/dist/src -I/usr/src
 /external/lgpl3/mpc/dist/src  ISLLIBS= ISLINC= --no-create --no-recursion
-configure: loading cache ./config.cache
-checking build system type... (cached) x86_64-unknown-netbsd9.0
-checking host system type... (cached) aarch64--netbsd
-checking target system type... (cached) aarch64--netbsd
-checking LIBRARY_PATH variable... ok
-checking GCC_EXEC_PREFIX variable... ok
-checking whether to place generated files in the source directory... no
-checking whether a default linker was specified... no
-checking whether a default assembler was specified... no
-checking for aarch64--netbsd-gcc... (cached) /var/obj/mknative/evbarm-aarch64/usr/src/tooldir.NetBSD-9.0_BETA-amd64/bin/aarch64--netbsd-gcc --sysroot=/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm -L/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm/lib -L/var/obj/mknative/evbarm-aarch64/usr/src/destdir.evbarm/usr/lib 

CVS commit: src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64

2019-10-02 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Wed Oct  2 10:34:48 UTC 2019

Modified Files:
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64: defs.mk

Log Message:
Remove garbage. Maybe something is wrong with mknative or mrg's script?


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gcc/usr.bin/gcc/arch/aarch64/defs.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc

2019-10-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct  2 07:15:06 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libbacktrace/arch/aarch64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/alpha:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/arm: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/armeb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earm: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmeb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmhf:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmhfeb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv4:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv4eb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6eb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6hf:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6hfeb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7eb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7hf:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7hfeb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/hppa: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/i386: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/ia64: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/m68000:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/m68k: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/mips64eb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/mips64el:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/mipseb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/mipsel:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/riscv32:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/sh3eb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/sh3el:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/sparc:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/sparc64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/vax: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/x86_64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libgcc/arch/aarch64: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/alpha: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/arm: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/armeb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earm: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmeb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmhf: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmhfeb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv4: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv4eb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv6: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv6eb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv6hf: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv6hfeb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv7: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv7eb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv7hf: auto-target.h

CVS commit: src/external/gpl3/gcc

2019-10-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct  2 07:15:06 UTC 2019

Modified Files:
src/external/gpl3/gcc/lib/libbacktrace/arch/aarch64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/alpha:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/arm: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/armeb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earm: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmeb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmhf:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmhfeb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv4:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv4eb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6eb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6hf:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv6hfeb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7eb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7hf:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/earmv7hfeb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/hppa: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/i386: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/ia64: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/m68000:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/m68k: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/mips64eb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/mips64el:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/mipseb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/mipsel:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/riscv32:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/riscv64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/sh3eb:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/sh3el:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/sparc:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/sparc64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/vax: backtrace-supported.h
config.h
src/external/gpl3/gcc/lib/libbacktrace/arch/x86_64:
backtrace-supported.h config.h
src/external/gpl3/gcc/lib/libgcc/arch/aarch64: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/alpha: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/arm: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/armeb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earm: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmeb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmhf: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmhfeb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv4: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv4eb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv6: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv6eb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv6hf: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv6hfeb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv7: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv7eb: auto-target.h
src/external/gpl3/gcc/lib/libgcc/arch/earmv7hf: auto-target.h

CVS commit: src/external/gpl3/gcc

2019-10-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct  2 06:52:00 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_linux_libcdep.cc sanitizer_platform_limits_posix.cc
src/external/gpl3/gcc/lib: Makefile.sanitizer
src/external/gpl3/gcc/lib/libsupc++: Makefile.common
src/external/gpl3/gcc/lib/libubsan: Makefile
src/external/gpl3/gcc/usr.bin/backend: Makefile
Removed Files:
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_procmaps_netbsd.cc

Log Message:
make most of this compile:
- sanitizer_procmaps_netbsd.cc is obsolete.
- fix merge botches where upstrem has as slightly different version
  is upstream than prior local
- libstdc++ default is now gnu++17
- ubsan needs UBSAN_CAN_USE_CXXABI set
- properly use $G_RTL_BASE_H not (empty) $RTL_BASE_H
- libbackend HH gains new generated insn-modes-inline.h, and read-md.c
  gains the HH dep.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc
cvs rdiff -u -r1.12 -r1.13 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
cvs rdiff -u -r1.3 -r0 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_procmaps_netbsd.cc
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/lib/libubsan/Makefile
cvs rdiff -u -r1.55 -r1.56 src/external/gpl3/gcc/usr.bin/backend/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc
diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.10 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.11
--- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc:1.10	Tue Oct  1 11:49:13 2019
+++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc	Wed Oct  2 06:51:59 2019
@@ -369,12 +369,6 @@ uptr ThreadSelf() {
 uptr ThreadSelf() { return (uptr)pthread_self(); }
 #endif  // SANITIZER_NETBSD
 
-#if SANITIZER_NETBSD
-uptr ThreadSelf() {
-  return (uptr)pthread_self();
-}
-#endif // SANITIZER_NETBSD
-
 #if !SANITIZER_GO
 static void GetTls(uptr *addr, uptr *size) {
 #if SANITIZER_LINUX && !SANITIZER_ANDROID

Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:1.12 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:1.13
--- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc:1.12	Tue Oct  1 10:38:23 2019
+++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc	Wed Oct  2 06:51:59 2019
@@ -76,18 +76,12 @@
 #include 
 #endif
 
-#if SANITIZER_FREEBSD
-# include 
-# include 
-# include 
-# include 
-#endif
-
 #if SANITIZER_NETBSD
 # include 
 # include 
 # define statfs statvfs
 # define d_ino d_fileno
+# include "sanitizer_platform_limits_netbsd.h"
 #endif
 
 #if SANITIZER_FREEBSD || SANITIZER_NETBSD

Index: src/external/gpl3/gcc/lib/Makefile.sanitizer
diff -u src/external/gpl3/gcc/lib/Makefile.sanitizer:1.8 src/external/gpl3/gcc/lib/Makefile.sanitizer:1.9
--- src/external/gpl3/gcc/lib/Makefile.sanitizer:1.8	Wed Oct  2 02:54:34 2019
+++ src/external/gpl3/gcc/lib/Makefile.sanitizer	Wed Oct  2 06:51:59 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.sanitizer,v 1.8 2019/10/02 02:54:34 mrg Exp $
+#	$NetBSD: Makefile.sanitizer,v 1.9 2019/10/02 06:51:59 mrg Exp $
 
 SANITIZER=${GCCDIST}/libsanitizer
 .PATH: ${SANITIZER}/interception ${SANITIZER}/sanitizer_common
@@ -37,7 +37,6 @@ SANITIZER_SRCS+= \
 	sanitizer_printf.cc \
 	sanitizer_procmaps_common.cc \
 	sanitizer_procmaps_freebsd.cc \
-	sanitizer_procmaps_netbsd.cc \
 	sanitizer_procmaps_linux.cc \
 	sanitizer_procmaps_mac.cc \
 	sanitizer_stackdepot.cc \

Index: src/external/gpl3/gcc/lib/libsupc++/Makefile.common
diff -u src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.13 src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.14
--- src/external/gpl3/gcc/lib/libsupc++/Makefile.common:1.13	Thu Feb 28 01:11:04 2019
+++ src/external/gpl3/gcc/lib/libsupc++/Makefile.common	Wed Oct  2 06:51:59 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.common,v 1.13 2019/02/28 01:11:04 mrg Exp $
+#	$NetBSD: Makefile.common,v 1.14 2019/10/02 06:51:59 mrg Exp $
 
 DIST=		${GCCDIST}
 GNUHOSTDIST=	${DIST}
@@ -57,7 +57,7 @@ STD_GNU14=	\
 		del_opvs.cc
 
 .for _f in ${STD_GNU14} ${G_FILESYSTEM_SOURCES:M*.cc}

CVS commit: src/external/gpl3/gcc

2019-10-02 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct  2 06:52:00 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_linux_libcdep.cc sanitizer_platform_limits_posix.cc
src/external/gpl3/gcc/lib: Makefile.sanitizer
src/external/gpl3/gcc/lib/libsupc++: Makefile.common
src/external/gpl3/gcc/lib/libubsan: Makefile
src/external/gpl3/gcc/usr.bin/backend: Makefile
Removed Files:
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_procmaps_netbsd.cc

Log Message:
make most of this compile:
- sanitizer_procmaps_netbsd.cc is obsolete.
- fix merge botches where upstrem has as slightly different version
  is upstream than prior local
- libstdc++ default is now gnu++17
- ubsan needs UBSAN_CAN_USE_CXXABI set
- properly use $G_RTL_BASE_H not (empty) $RTL_BASE_H
- libbackend HH gains new generated insn-modes-inline.h, and read-md.c
  gains the HH dep.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc
cvs rdiff -u -r1.12 -r1.13 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc
cvs rdiff -u -r1.3 -r0 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_procmaps_netbsd.cc
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gcc/lib/Makefile.sanitizer
cvs rdiff -u -r1.13 -r1.14 \
src/external/gpl3/gcc/lib/libsupc++/Makefile.common
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gcc/lib/libubsan/Makefile
cvs rdiff -u -r1.55 -r1.56 src/external/gpl3/gcc/usr.bin/backend/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/gcc

2019-10-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct  2 05:58:03 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: config.gcc

Log Message:
avoid multiple tm_file headers being listed and breaking builds.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/external/gpl3/gcc/dist/gcc/config.gcc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config.gcc
diff -u src/external/gpl3/gcc/dist/gcc/config.gcc:1.58 src/external/gpl3/gcc/dist/gcc/config.gcc:1.59
--- src/external/gpl3/gcc/dist/gcc/config.gcc:1.58	Wed Oct  2 02:54:34 2019
+++ src/external/gpl3/gcc/dist/gcc/config.gcc	Wed Oct  2 05:58:03 2019
@@ -1156,7 +1156,7 @@ arm*-*-netbsdelf*)
 	esac
 	case ${target} in
 	arm*-*-netbsdelf-*eabi*)
-	tm_file="$tm_file arm/bpabi.h arm/netbsd-elf.h arm/netbsd-eabi.h"
+	tm_file="${tm_file} arm/bpabi.h arm/netbsd-eabi.h"
 	# GCC 7 vs NetBSD/eabi -> avoid arm unwinder
 	#tmake_file="$tmake_file arm/t-bpabi"
 	tmake_file="$tmake_file arm/t-netbsdeabi"
@@ -1164,13 +1164,11 @@ arm*-*-netbsdelf*)
 	default_use_cxa_atexit=yes
 	;;
 	*)
-	tm_file="$tm_file arm/netbsd-elf.h"
 	tmake_file="$tmake_file arm/t-netbsd"
 	# NetBSD/arm (non-eabi) is only old platforms
 	with_cpu=${with_cpu:-strongarm}
 	;;
 	esac
-	tm_file="${tm_file} arm/arm.h"
 	case ${target} in
 	arm*-*-netbsdelf-*eabihf*)
 	tm_defines="${tm_defines} TARGET_DEFAULT_FLOAT_ABI=ARM_FLOAT_ABI_HARD"
@@ -2536,11 +2534,10 @@ powerpc*-*-netbsd*)
 	case ${target} in
 	powerpc64*)
 		tm_file="rs6000/biarch64.h ${tm_file}"
-		tm_file="${tm_file} rs6000/sysv4.h rs6000/default64.h rs6000/netbsd64.h"
+		tm_file="${tm_file} rs6000/default64.h rs6000/netbsd64.h"
 		tmake_file="${tmake_file} rs6000/t-netbsd64"
 		;;
 	*)
-		tm_file="${tm_file} rs6000/sysv4.h rs6000/netbsd.h"
 		tmake_file="${tmake_file} rs6000/t-netbsd"
 		;;
 	esac



CVS commit: src/external/gpl3/gcc/dist/gcc

2019-10-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct  2 05:58:03 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc: config.gcc

Log Message:
avoid multiple tm_file headers being listed and breaking builds.


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/external/gpl3/gcc/dist/gcc/config.gcc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist

2019-10-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct  2 05:04:59 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/alpha: elf.h
src/external/gpl3/gcc/dist/libsanitizer/asan: asan_stack.h
src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.cc
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_stoptheworld_linux_libcdep.cc

Log Message:
don't undef SDB_DEBUGGING_INFO.  obsolete (and triggers a warning.)
disable isInDeadlySignal() for now.
fix some compile errors in asan and lsan.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/gcc/config/alpha/elf.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_stack.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.cc
cvs rdiff -u -r1.8 -r1.9 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/gcc/config/alpha/elf.h
diff -u src/external/gpl3/gcc/dist/gcc/config/alpha/elf.h:1.9 src/external/gpl3/gcc/dist/gcc/config/alpha/elf.h:1.10
--- src/external/gpl3/gcc/dist/gcc/config/alpha/elf.h:1.9	Tue Oct  1 10:38:17 2019
+++ src/external/gpl3/gcc/dist/gcc/config/alpha/elf.h	Wed Oct  2 05:04:58 2019
@@ -22,8 +22,6 @@ along with GCC; see the file COPYING3.  
 #undef EXTENDED_COFF
 #define OBJECT_FORMAT_ELF
 
-/* ??? Move all SDB stuff from alpha.h to osf.h.  */
-#undef SDB_DEBUGGING_INFO
 #undef DBX_DEBUGGING_INFO
 
 #define DWARF2_DEBUGGING_INFO 1

Index: src/external/gpl3/gcc/dist/libsanitizer/asan/asan_stack.h
diff -u src/external/gpl3/gcc/dist/libsanitizer/asan/asan_stack.h:1.4 src/external/gpl3/gcc/dist/libsanitizer/asan/asan_stack.h:1.5
--- src/external/gpl3/gcc/dist/libsanitizer/asan/asan_stack.h:1.4	Sat Jan 19 12:10:11 2019
+++ src/external/gpl3/gcc/dist/libsanitizer/asan/asan_stack.h	Wed Oct  2 05:04:58 2019
@@ -42,7 +42,7 @@ void GetStackTraceWithPcBpAndContext(Buf
   // On FreeBSD the slow unwinding that leverages _Unwind_Backtrace()
   // yields the call stack of the signal's handler and not of the code
   // that raised the signal (as it does on Linux).
-  if ((SANITIZER_NETBSD || SANITIZER_FREEBSD) && t->isInDeadlySignal()) fast = true;
+  //if ((SANITIZER_NETBSD || SANITIZER_FREEBSD) && t->isInDeadlySignal()) fast = true;
   uptr stack_top = t->stack_top();
   uptr stack_bottom = t->stack_bottom();
   ScopedUnwinding unwind_scope(t);

Index: src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.cc
diff -u src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.cc:1.4 src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.cc:1.5
--- src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.cc:1.4	Tue Oct  1 21:13:44 2019
+++ src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.cc	Wed Oct  2 05:04:58 2019
@@ -28,8 +28,7 @@ namespace __lsan {
 static const uptr kMaxAllowedMallocSize = 1UL << 30;
 #elif defined(__mips64) || defined(__aarch64__)
 static const uptr kMaxAllowedMallocSize = 4UL << 30;
-#else
-#if _LP64
+#elif _LP64
 static const uptr kMaxAllowedMallocSize = 8UL << 30;
 #else
 static const uptr kMaxAllowedMallocSize = 8UL << 20;

Index: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
diff -u src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc:1.8 src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc:1.9
--- src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc:1.8	Tue Oct  1 11:49:13 2019
+++ src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc	Wed Oct  2 05:04:59 2019
@@ -26,7 +26,6 @@
 #include 
 #include  // for CLONE_* definitions
 #include 
-#include 
 #if SANITIZER_LINUX
 #include  // for PR_* definitions
 #endif
@@ -38,7 +37,13 @@
 // GLIBC 2.20+ sys/user does not include asm/ptrace.h
 # include 
 #endif
-#if SANITIZER_NETBSD
+#if SANITIZER_LINUX
+#include   // for user_regs_struct
+#if SANITIZER_ANDROID && SANITIZER_MIPS
+# include   // for mips SP register in sys/user.h
+#endif
+#elif SANITIZER_NETBSD
+# include 
 # define PTRACE_ATTACH PT_ATTACH
 # define PTRACE_GETREGS PT_GETREGS
 # define PTRACE_KILL PT_KILL
@@ -48,12 +53,6 @@
 # include 
 typedef struct reg user_regs;
 typedef struct reg user_regs_struct;
-#else
-# include   // for user_regs_struct
-# if SANITIZER_ANDROID && SANITIZER_MIPS
-#  include   // for mips SP register in sys/user.h
-#  endif
-# endif
 #endif
 #include  // for signal-related stuff
 



CVS commit: src/external/gpl3/gcc/dist

2019-10-01 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Oct  2 05:04:59 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/gcc/config/alpha: elf.h
src/external/gpl3/gcc/dist/libsanitizer/asan: asan_stack.h
src/external/gpl3/gcc/dist/libsanitizer/lsan: lsan_allocator.cc
src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common:
sanitizer_stoptheworld_linux_libcdep.cc

Log Message:
don't undef SDB_DEBUGGING_INFO.  obsolete (and triggers a warning.)
disable isInDeadlySignal() for now.
fix some compile errors in asan and lsan.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/gcc/config/alpha/elf.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/dist/libsanitizer/asan/asan_stack.h
cvs rdiff -u -r1.4 -r1.5 \
src/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_allocator.cc
cvs rdiff -u -r1.8 -r1.9 \

src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   3   >