GCC reuses stack slot in setjmp-calling function -- is it a bug or feature?

2013-04-15 Thread Konstantin Vladimirov
Hi, Minimal reproduction for x86: #include #include #include jmp_buf something_happened; int key_gdata = 2; int store_data; void __attribute__((noinline)) initiate(void) { longjmp(something_happened, 1); } int __attribute__ ((noinline)) foo(int x) { return x + 1; } int __attribute__((

Re: GCC reuses stack slot in setjmp-calling function -- is it a bug or feature?

2013-04-15 Thread Mikael Pettersson
Konstantin Vladimirov writes: > Hi, > > Minimal reproduction for x86: > > #include > #include > #include > > jmp_buf something_happened; > int key_gdata = 2; > > int store_data; > > void __attribute__((noinline)) > initiate(void) > { > longjmp(something_happened, 1); > }

Failure building current snapshot [Cygwin]

2013-04-15 Thread Angelo Graziosi
The current snapshot [*] fails to build on Cygwin as follow: [...] /work/gcc-4.9-20130414/Work/./gcc/xgcc -B/work/gcc-4.9-20130414/Work/./gcc/ -B/usr/local/gfortran/i686-pc-cygwin/bin/ -B/usr/local/gfortran/i686-pc-cygwin/lib/ -isystem /usr/local/gfortran/i686-pc-cygwin/include -isystem /usr

an idea about GSOC 2013

2013-04-15 Thread 胡子千
Hi all: I'm a student from Peking University, China. Recently i study the loop parallel on multicore computer. And i also find that this year's GCC GSOC has the tasks about the loop unrolling. So i want to find out if i can do something to improve the loop proformance on gcc. i hope to discuss this

Power/Energy Awareness in GCC

2013-04-15 Thread Ghassan Shobaki
Hi, Does GCC currently have any power/energy reduction optimizations or any performance optimizations that take power/energy consumption into account? We are currently working on a research project on instruction scheduling for low power (experimenting with different algorithms for minimizing

Re: Power/Energy Awareness in GCC

2013-04-15 Thread Tobias Burnus
Ghassan Shobaki wrote: We are currently working on a research project on instruction scheduling for low power (experimenting with different algorithms for minimizing switching power) and would like to find out if GCC already has such a scheduler and how it can be enabled, so that we can experime

Re: Failure building current snapshot [Cygwin]

2013-04-15 Thread Dave Korn
On 15/04/2013 15:50, Angelo Graziosi wrote: > The current snapshot [*] fails to build on Cygwin as follow: > /work/gcc-4.9-20130414/libgcc/config/i386/cygming-crtbegin.c: In > function ‘__gcc_register_frame’: > /work/gcc-4.9-20130414/libgcc/config/i386/cygming-crtbegin.c:106:19: > warning: array s

Re: Power/Energy Awareness in GCC

2013-04-15 Thread Andrey Belevantsev
On 15.04.2013 20:21, Tobias Burnus wrote: Ghassan Shobaki wrote: We are currently working on a research project on instruction scheduling for low power (experimenting with different algorithms for minimizing switching power) and would like to find out if GCC already has such a scheduler and how

Re: Failure building current snapshot [Cygwin]

2013-04-15 Thread Dave Korn
On 16/04/2013 07:05, Dave Korn wrote: > On 15/04/2013 15:50, Angelo Graziosi wrote: >> /work/gcc-4.9-20130414/libgcc/config/i386/cygming-crtbegin.c:120:1: >> error: unrecognizable insn: >> } >> ^ >> (insn 15 14 16 5 (set (reg:SI 63) >> (symbol_ref:SI ("GetModuleHandleA@4") [flags 0x441]