Re: gcc vs clang for non-power-2 atomic structures

2019-08-23 Thread Iain Sandoe
Hi Joseph, > On 23 Aug 2019, at 17:14, Joseph Myers wrote: > > On Fri, 23 Aug 2019, Iain Sandoe wrote: > >> absolutely, it’s the psABI that’s lacking here - the compilers (as commented >> by Richard Smith in a referenced thread) should not be making ABI up… > > With over 50 target architecture

Re: gcc vs clang for non-power-2 atomic structures

2019-08-23 Thread Jim Wilson
I was pointed at https://bugs.llvm.org/show_bug.cgi?id=26462 for the LLVM discussion of this problem. Another issue here is that we should have ABI testing for atomic. For instance, gcc/testsuite/gcc.dg/compat has no atomic testcases. Likewise g++.dg/compat. Jim

Re: gcc vs clang for non-power-2 atomic structures

2019-08-23 Thread Joseph Myers
On Fri, 23 Aug 2019, Iain Sandoe wrote: > absolutely, it’s the psABI that’s lacking here - the compilers (as commented > by Richard Smith in a referenced thread) should not be making ABI up… With over 50 target architectures supported in GCC, most of which probably don't have anyone maintaining

Re: gcc vs clang for non-power-2 atomic structures

2019-08-23 Thread Jonathan Wakely
On Fri, 23 Aug 2019, 11:13 Iain Sandoe, wrote: > > > > On 23 Aug 2019, at 10:35, Jonathan Wakely wrote: > > > > On Fri, 23 Aug 2019 at 08:21, Iain Sandoe wrote: > >> > >> Hi Jim, > >> > >>> On 23 Aug 2019, at 00:56, Jim Wilson wrote: > >>> > >>> We got a change request for the RISC-V psABI to d

Re: gcc vs clang for non-power-2 atomic structures

2019-08-23 Thread Iain Sandoe
> On 23 Aug 2019, at 10:35, Jonathan Wakely wrote: > > On Fri, 23 Aug 2019 at 08:21, Iain Sandoe wrote: >> >> Hi Jim, >> >>> On 23 Aug 2019, at 00:56, Jim Wilson wrote: >>> >>> We got a change request for the RISC-V psABI to define the atomic >>> structure size and alignment. And looking

Re: gcc vs clang for non-power-2 atomic structures

2019-08-23 Thread Jonathan Wakely
On Fri, 23 Aug 2019 at 08:21, Iain Sandoe wrote: > > Hi Jim, > > > On 23 Aug 2019, at 00:56, Jim Wilson wrote: > > > > We got a change request for the RISC-V psABI to define the atomic > > structure size and alignment. And looking at this, it turned out that > > gcc and clang are implementing th

Re: gcc vs clang for non-power-2 atomic structures

2019-08-23 Thread Iain Sandoe
Hi Jim, > On 23 Aug 2019, at 00:56, Jim Wilson wrote: > > We got a change request for the RISC-V psABI to define the atomic > structure size and alignment. And looking at this, it turned out that > gcc and clang are implementing this differently. Consider this > testcase > > rohan:2274$ cat t