Re: GCC changes for Fedora + riscv64

2018-04-10 Thread Andreas Schwab
On Apr 10 2018, Kito Cheng wrote: > You can use -r option (e.g. ./qemu-riscv64 -r 4.15) or set QEMU_UNAME > environment variable to change the uname for qemu. But be aware that the emulated environment still assumes that all system calls implemented by 4.15 are available, and qemu linux-user gen

Re: GCC changes for Fedora + riscv64

2018-04-10 Thread Kito Cheng
>> You can use -r option (e.g. ./qemu-riscv64 -r 4.15) or set QEMU_UNAME >> environment variable to change the uname for qemu. > > But be aware that the emulated environment still assumes that all system > calls implemented by 4.15 are available, and qemu linux-user generally > just passes them thr

libmvec in gcc to have vector math in fortran

2018-04-10 Thread Szabolcs Nagy
i had a query earlier about libmvec vector functions in fortran: https://gcc.gnu.org/ml/gcc/2017-11/msg7.html but there were no simple solutions to make math functions vectorizable in fortran, because it's hard to make libc headers with simd attributes visible to the fortran front end. i thi

Re: libmvec in gcc to have vector math in fortran

2018-04-10 Thread Janne Blomqvist
On Tue, Apr 10, 2018 at 12:45 PM, Szabolcs Nagy wrote: > i had a query earlier about libmvec vector functions in fortran: > https://gcc.gnu.org/ml/gcc/2017-11/msg7.html > > but there were no simple solutions to make math functions vectorizable > in fortran, because it's hard to make libc head

Re: libmvec in gcc to have vector math in fortran

2018-04-10 Thread Szabolcs Nagy
On 10/04/18 11:14, Janne Blomqvist wrote: As I mentioned previously in that thread you linked to, the fortran frontend never generates a direct call to libm sin(), or for that matter ZGVbN2v_sin(). Instead it generates a "call" to __builtin_sin(). And similarly for other libm functions that have

Re: libmvec in gcc to have vector math in fortran

2018-04-10 Thread Jakub Jelinek
On Tue, Apr 10, 2018 at 11:22:03AM +0100, Szabolcs Nagy wrote: > On 10/04/18 11:14, Janne Blomqvist wrote: > > As I mentioned previously in that thread you linked to, the fortran > > frontend never generates a direct call to libm sin(), or for that matter > > ZGVbN2v_sin(). Instead it generates a "

Re: libmvec in gcc to have vector math in fortran

2018-04-10 Thread Richard Biener
On Tue, Apr 10, 2018 at 12:29 PM, Jakub Jelinek wrote: > On Tue, Apr 10, 2018 at 11:22:03AM +0100, Szabolcs Nagy wrote: >> On 10/04/18 11:14, Janne Blomqvist wrote: >> > As I mentioned previously in that thread you linked to, the fortran >> > frontend never generates a direct call to libm sin(), o

Re: libmvec in gcc to have vector math in fortran

2018-04-10 Thread Richard Biener
On April 10, 2018 3:06:55 PM GMT+02:00, Jakub Jelinek wrote: >On Tue, Apr 10, 2018 at 02:55:43PM +0200, Richard Biener wrote: >> > And the easiest solution is in the Fortran FE based on some flag >> > (e.g. -mveclibabi=glibc) through a target hook add >> > __attribute__((__simd__ ("notinbranch")))

Re: libmvec in gcc to have vector math in fortran

2018-04-10 Thread Richard Biener
On April 10, 2018 3:06:55 PM GMT+02:00, Jakub Jelinek wrote: >On Tue, Apr 10, 2018 at 02:55:43PM +0200, Richard Biener wrote: >> > And the easiest solution is in the Fortran FE based on some flag >> > (e.g. -mveclibabi=glibc) through a target hook add >> > __attribute__((__simd__ ("notinbranch")))

Re: libmvec in gcc to have vector math in fortran

2018-04-10 Thread Jakub Jelinek
On Tue, Apr 10, 2018 at 02:55:43PM +0200, Richard Biener wrote: > > And the easiest solution is in the Fortran FE based on some flag > > (e.g. -mveclibabi=glibc) through a target hook add > > __attribute__((__simd__ ("notinbranch"))) > > to the builtins like __builtin_sin etc. that have them in the

Re: GCC changes for Fedora + riscv64

2018-04-10 Thread Jeff Law
On 04/10/2018 01:55 AM, Andreas Schwab wrote: > On Apr 10 2018, Kito Cheng wrote: > >> You can use -r option (e.g. ./qemu-riscv64 -r 4.15) or set QEMU_UNAME >> environment variable to change the uname for qemu. > > But be aware that the emulated environment still assumes that all system > calls

Re: GCC changes for Fedora + riscv64

2018-04-10 Thread Jeff Law
On 04/10/2018 12:27 AM, Richard W.M. Jones wrote: > On Mon, Apr 09, 2018 at 04:37:30PM -0600, Jeff Law wrote: >> Are you guys using qemu user mode emulation for testing purposes? When >> I've set up a suitable riscv64 rootfs and try to do anything nontrivial >> in it with qemu user mode emulation

Re: www.sgi.com/tech/stl/ is gone

2018-04-10 Thread Jonathan Wakely
On 19 March 2018 at 17:12, Jonathan Wakely wrote: > On 18 March 2018 at 23:37, Gerald Pfeifer wrote: >> ...redirecting to a dummy page. Unfortunately there are a fair >> number of references in the libstdc++ docs, see below. >> >> I'll take care of anything outside of libstdc++; can you please >

Re: Internal compiler error building libstdc++ for vax

2018-04-10 Thread Maciej W. Rozycki
On Sun, 8 Apr 2018, Jeff Law wrote: > I think you need to go back to my earlier reply and read it carefully. > In particular, you need an insn where the label_ref and pc are swapped. Ouch, there are no reversed interlocked branch instructions in the VAX ISA, so these would have to branch around

Re: Internal compiler error building libstdc++ for vax

2018-04-10 Thread Jeff Law
On 04/10/2018 01:27 PM, Maciej W. Rozycki wrote: > On Sun, 8 Apr 2018, Jeff Law wrote: > >> I think you need to go back to my earlier reply and read it carefully. >> In particular, you need an insn where the label_ref and pc are swapped. > > Ouch, there are no reversed interlocked branch instruc