Re: "cc" clobber

2016-02-01 Thread David Wohlferd
On 1/26/2016 4:31 PM, Bernd Schmidt wrote: On 01/27/2016 12:12 AM, David Wohlferd wrote: I started by just commenting out the code in ix86_md_asm_adjust that unconditionally clobbered the flags. I figured this would allow the 'normal' "cc" handling to occur. But apparently there is no 'normal'

GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-01 Thread Bertram, Alexander
I wanted to share a project we've been working on for sometime within the context of Renjin, a new interpreter for the R language running on the JVM. We basically needed a way to compile C and Fortran code to JVM classes, and for the last year or two we've been working on tool chain that's compose

Re: "cc" clobber

2016-02-01 Thread Ulrich Weigand
David Wohlferd wrote: > On 1/26/2016 4:31 PM, Bernd Schmidt wrote: > > On 01/27/2016 12:12 AM, David Wohlferd wrote: > >> I started by just commenting out the code in ix86_md_asm_adjust that > >> unconditionally clobbered the flags. I figured this would allow the > >> 'normal' "cc" handling to occ

write, open and read statements in a fortran dll causing program to hang

2016-02-01 Thread Raavi M. Mohindar Rao
Hello, I have write, open and read statements in a fortran program and compile as, gfortran -c test.f90 and create a dll with gfortran -shared test.dll -o test.o I import this dll in C# with dllimport and call one of the routine. After the call the program hangs on write(*,*) statement. May I

Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-01 Thread Mikhail Maltsev
On 02/01/2016 03:34 PM, Bertram, Alexander wrote: > I wanted to share a project we've been working on for sometime within > the context of Renjin, > a new interpreter for the R language running on the JVM. > > We basically needed a way to compile C and Fortran code to JVM > classes, and for the la

Help about how to bootstrap gcc with local version glibc other than system one

2016-02-01 Thread Bin.Cheng
Hi, Recently I tried to bootstrap gcc against new glibc but failed. What I want to do is just bootstrap gcc against local version glibc other than system one, because I can't update glibc in that system. I tried this by configuring GCC using "--with-build-sysroot" or "--with-sysroot" or both, but

Re: Help about how to bootstrap gcc with local version glibc other than system one

2016-02-01 Thread Andreas Schwab
"Bin.Cheng" writes: > Seems to me Andrew was right in comment of PR69559, that we simply > couldn't bootstrap GCC with sysroot. The main use of sysroot is to build a cross compiler, which you cannot bootstrap anyway. > My question here is: If this is the case, how should I bootstrap a gcc > aga

Re: Help about how to bootstrap gcc with local version glibc other than system one

2016-02-01 Thread Bin.Cheng
On Mon, Feb 1, 2016 at 6:08 PM, Andreas Schwab wrote: > "Bin.Cheng" writes: > >> Seems to me Andrew was right in comment of PR69559, that we simply >> couldn't bootstrap GCC with sysroot. > > The main use of sysroot is to build a cross compiler, which you cannot > bootstrap anyway. > >> My questi

Re: Help about how to bootstrap gcc with local version glibc other than system one

2016-02-01 Thread Jeff Law
On 02/01/2016 12:07 PM, Bin.Cheng wrote: On Mon, Feb 1, 2016 at 6:08 PM, Andreas Schwab wrote: "Bin.Cheng" writes: Seems to me Andrew was right in comment of PR69559, that we simply couldn't bootstrap GCC with sysroot. The main use of sysroot is to build a cross compiler, which you cannot

Re: "cc" clobber

2016-02-01 Thread Richard Henderson
On 02/02/2016 01:58 AM, Ulrich Weigand wrote: I think on many targets a clobber "cc" works because the backend actually defines a register named "cc" to correspond to the flags. Therefore the normal handling of clobbering named hard registers catches this case as well. Yes. C.f. Sparc ADDITION

Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-01 Thread Manuel López-Ibáñez
On 01/02/16 12:34, Bertram, Alexander wrote: I wanted to share a project we've been working on for sometime within the context of Renjin, a new interpreter for the R language running on the JVM. We basically needed a way to compile C and Fortran code to JVM classes, and for the last year or two

Re: GCC-Bridge: A Gimple Compiler targeting the JVM

2016-02-01 Thread Bertram, Alexander
Thanks Mikhail and Manuel for the reactions! Mikhail, thanks for the tip on xmalloc, will take a look if that can help clean up the plugin code. Manuel, 0) Yes, we hope to make it faster! 1) Initially coding within GCC would have been too intimidating, but I think i've started to get a feel for

Re: "cc" clobber

2016-02-01 Thread David Wohlferd
On 2/1/2016 6:58 AM, Ulrich Weigand wrote: I think on many targets a clobber "cc" works because the backend actually defines a register named "cc" to correspond to the flags. Therefore the normal handling of clobbering named hard registers catches this case as well. This doesn't work on i386 bec

Re: "cc" clobber

2016-02-01 Thread David Wohlferd
On 2/1/2016 12:40 PM, Richard Henderson wrote: On 02/02/2016 01:58 AM, Ulrich Weigand wrote: I think on many targets a clobber "cc" works because the backend actually defines a register named "cc" to correspond to the flags. Therefore the normal handling of clobbering named hard registers catche

GCC compat testing and simulator question

2016-02-01 Thread Steve Ellcey
I have a question about the compatibility tests (gcc.dg/compat and g++.dg/compat). Do they work with remote/simulator testing? I was trying to run them with qemu and even though I am setting ALT_CC_UNDER_TEST and ALT_CXX_UNDER_TEST it doesn't look like my alternative compiler is ever getting run