[PATCH] RISC-V: Support for FreeBSD

2018-01-28 Thread Kito Cheng
Hi all: This patch enable RISC-V support FreeBSD, Ruslan (RISC-V FreeBSD maintainer) and me has been tested on FreeBSD 12 for building kernel and whole user space programs/libraries. gcc/ChangeLog 2018-01-29 Ruslan Bukin Kito Cheng * config.gcc (riscv*-*-freebsd

Re: [patch, fortran] Reject character lengths unequal to one in BIND(C)

2018-01-28 Thread Steve Kargl
On Sun, Jan 28, 2018 at 05:00:21PM +0100, Thomas Koenig wrote: > Hello world, > > At the moment, gfortran silently accepts > >type, bind(c) :: a > character(len=2,kind=c_char) :: b >end type a > > translating this into I don't know what. With the -fc-prototypes > option, we now get

Re: [PATCH] i386: Add TARGET_INDIRECT_BRANCH_REGISTER

2018-01-28 Thread H.J. Lu
On Sat, Jan 27, 2018 at 2:12 PM, H.J. Lu wrote: > For > > --- > struct C { > virtual ~C(); > virtual void f(); > }; > > void > f (C *p) > { > p->f(); > p->f(); > } > --- > > -mindirect-branch=thunk-extern -O2 on x86-64 GNU/Linux generates: > > _Z1fP1C: > .LFB0: > .cfi_startproc >

[patch, fortran] Reject character lengths unequal to one in BIND(C)

2018-01-28 Thread Thomas Koenig
Hello world, At the moment, gfortran silently accepts type, bind(c) :: a character(len=2,kind=c_char) :: b end type a translating this into I don't know what. With the -fc-prototypes option, we now get typedef struct a { char b; } a; which is clearly bogus. Any user code which ha