Re: Strange vect.exp test results

2011-05-30 Thread Ira Rosen
gcc-ow...@gcc.gnu.org wrote on 30/05/2011 06:36:36 PM: > > Hi, > > I've been playing with the vectorizer for my port, and of course I use > the testsuite to check the generated code. I fail to understand some > of the FAILs I get. For example, in slp-3.c, the test contains: > > /* { dg-final { s

Re: how to distinguish patched GCCs

2011-05-30 Thread Ian Lance Taylor
Matthias Kretz writes: > Richard and Jonathan don't like it - or doubt its effectiveness. > > Ian supports the idea. Jakub and Nathan mentioned that they already do > something like it, so can I count that as "like"? :) > > Should I write a patch or not? How are the chances that it gets accepted

Re: using plugin and lto: problem linking c-pragma symbol

2011-05-30 Thread Basile Starynkevitch
On Mon, 30 May 2011 16:19:31 -0400 Diego Novillo wrote: > On Mon, May 30, 2011 at 13:44, Basile Starynkevitch > wrote: > > > Diego and other people interested in plugins, what do you think of such > > a proposal? > > I don't think that would work. Plugins need to know at what level > they are

Re: using plugin and lto: problem linking c-pragma symbol

2011-05-30 Thread Basile Starynkevitch
On Mon, 30 May 2011 22:15:29 +0200 Richard Guenther wrote: > On Mon, May 30, 2011 at 7:44 PM, Basile Starynkevitch > wrote: > > On Mon, 30 May 2011 17:58:48 +0200 > > Richard Guenther wrote: > > > >> You can't use language specific functions form a plugin that should be > >> usable at link time

Re: using plugin and lto: problem linking c-pragma symbol

2011-05-30 Thread Diego Novillo
On Mon, May 30, 2011 at 13:44, Basile Starynkevitch wrote: > Diego and other people interested in plugins, what do you think of such > a proposal? I don't think that would work. Plugins need to know at what level they are working. FE plugins would have access to functions and data that gimple

Re: LTO streaming problems when LTO_tags are > 255

2011-05-30 Thread Richard Guenther
On Mon, May 30, 2011 at 9:16 PM, Diego Novillo wrote: > The new routines lto_output_int_in_range and lto_input_int_in_range do > not seem to be working right.  In the pph branch, we have an LTO_tags > enum with a range [0 - 351].  This is causing two things: > > - The writer gets out of sync with

Re: using plugin and lto: problem linking c-pragma symbol

2011-05-30 Thread Richard Guenther
On Mon, May 30, 2011 at 7:44 PM, Basile Starynkevitch wrote: > On Mon, 30 May 2011 17:58:48 +0200 > Richard Guenther wrote: > >> On Mon, May 30, 2011 at 5:53 PM, Pierre Vittet wrote: >> > Hello, >> > >> > I try to use the plugin pragma-plugin.c which is given in the testsuite >> > (gcc/testsuite

Re: LTO streaming problems when LTO_tags are > 255

2011-05-30 Thread Basile Starynkevitch
On Mon, 30 May 2011 15:16:16 -0400 Diego Novillo wrote: [...] > > lto_output_int_in_range(...) > [ ... ] > 1322 val -= min; > 1323 lto_output_1_stream (obs, val & 255); > 1324 if (range >= 0xff) > 1325lto_output_1_stream (obs, (val << 8) & 255); > 1326 if (range >= 0xf

LTO streaming problems when LTO_tags are > 255

2011-05-30 Thread Diego Novillo
The new routines lto_output_int_in_range and lto_input_int_in_range do not seem to be working right. In the pph branch, we have an LTO_tags enum with a range [0 - 351]. This is causing two things: - The writer gets out of sync with the reader because, we emit delimiters with output_zero. This w

Re: using plugin and lto: problem linking c-pragma symbol

2011-05-30 Thread Basile Starynkevitch
On Mon, 30 May 2011 17:58:48 +0200 Richard Guenther wrote: > On Mon, May 30, 2011 at 5:53 PM, Pierre Vittet wrote: > > Hello, > > > > I try to use the plugin pragma-plugin.c which is given in the testsuite > > (gcc/testsuite/g++.dg/plugin/pragma_plugin.c), I have compiled it as a > > shared libr

Registration deadline extended - Workshop on Essential Abstractions in GCC

2011-05-30 Thread Vini Kanvar
Workshop on Essential Abstractions in GCC, 2011 (http://www.cse.iitb.ac.in/grc/gcc-workshop-11) --- Organized by: GCC Resource Center (http://www.cse.iitb.ac.in/grc). Venue:Department of Computer Science and Enginee

Re: using plugin and lto: problem linking c-pragma symbol

2011-05-30 Thread Richard Guenther
On Mon, May 30, 2011 at 5:53 PM, Pierre Vittet wrote: > Hello, > > I try to use the plugin pragma-plugin.c which is given in the testsuite > (gcc/testsuite/g++.dg/plugin/pragma_plugin.c), I have compiled it as a > shared library. > > If I try it on a simple c file it works, however, if I use -flto

using plugin and lto: problem linking c-pragma symbol

2011-05-30 Thread Pierre Vittet
Hello, I try to use the plugin pragma-plugin.c which is given in the testsuite (gcc/testsuite/g++.dg/plugin/pragma_plugin.c), I have compiled it as a shared library. If I try it on a simple c file it works, however, if I use -flto it causes an error: gcc -fplugin=./pragma_plugin.so -flto t

Strange vect.exp test results

2011-05-30 Thread Frederic Riss
Hi, I've been playing with the vectorizer for my port, and of course I use the testsuite to check the generated code. I fail to understand some of the FAILs I get. For example, in slp-3.c, the test contains: /* { dg-final { scan-tree-dump-times "vectorized 3 loops" 1 "vect" { xfail vect_no_align

will c++0x "final keyword" trigger devirtualization?

2011-05-30 Thread Vincenzo Innocente
I noticed that gcc 4.7 implements the c++0x "final keyword" and jumped to test it. I'm hoping that eventually the keyword will be used to trigger "devirtualization optimization" for instance in this example I expect "geta" and "getb" to be compiled in th every same object code struct A { vi

Re: how to distinguish patched GCCs

2011-05-30 Thread Matthias Kretz
Hi, On Thursday 26 May 2011 12:06:18 Matthias Kretz wrote: > if you like the idea Richard and Jonathan don't like it - or doubt its effectiveness. Ian supports the idea. Jakub and Nathan mentioned that they already do something like it, so can I count that as "like"? :) Should I write a patch

Re: GCC on GPU - graphite OpenCL (was: WHOPR Linux distribution)

2011-05-30 Thread Tobias Burnus
On 05/30/2011 12:10 PM, Robert Beeporbop wrote: I have some questions for the gcc developers: Also, I had a couple other general development questions: ~ Has anyone been working on GPU support, automatically-utilized or otherwise? I have not used it - nor have I seen much documentation, bu

Re: WHOPR Linux distribution

2011-05-30 Thread Robert Beeporbop
--- On Mon, 5/30/11, Richard Guenther wrote: > On Mon, May 30, 2011 at 1:14 PM, > Robert Beeporbop > wrote: > > Thank you for the information! > > > > So it sounds like right now, I could use 4.6.0 > (4.7.0?), and be architecture-independent between processors > of the same type. Like, code coul

Re: WHOPR Linux distribution

2011-05-30 Thread Richard Guenther
On Mon, May 30, 2011 at 1:14 PM, Robert Beeporbop wrote: > Thank you for the information! > > So it sounds like right now, I could use 4.6.0 (4.7.0?), and be > architecture-independent between processors of the same type. Like, code > could be compiled to GIMPLE with no optimization for generic

Re: WHOPR Linux distribution

2011-05-30 Thread Robert Beeporbop
Thank you for the information! So it sounds like right now, I could use 4.6.0 (4.7.0?), and be architecture-independent between processors of the same type. Like, code could be compiled to GIMPLE with no optimization for generic x86, then optimized and linked differently depending on the target

Re: WHOPR Linux distribution

2011-05-30 Thread Richard Guenther
On Mon, May 30, 2011 at 12:10 PM, Robert Beeporbop wrote: > Thanks to all the gcc developers! > > I am working on a Linux distribution which compiles all binaries statically > at run-time with WHOPR. I hope to: > >  = Have everything running insanely fast. I did some testing with a couple > prog

WHOPR Linux distribution

2011-05-30 Thread Robert Beeporbop
Thanks to all the gcc developers! I am working on a Linux distribution which compiles all binaries statically at run-time with WHOPR. I hope to: = Have everything running insanely fast. I did some testing with a couple programs using gcc 4.5 with WHOPR and other new optimizations, and compare