Re: targed.md: copy_to_mode_reg or force_reg?

2009-02-24 Thread Joern Rennecke
Quoting Ian Lance Taylor : This seems a little bit unfair to me. Yes, it is a bit unfair. People are not treated as who they are, but as what they are perceived. I am sorry, Georg-Johann Lay, for mis-interpreting your initial post. Usually it works out all right because more than one person

Native support for vector shift

2009-02-24 Thread Bingfeng Mei
Hello, For the targets that support vectors, we can write the following code: typedef short V4H __attribute__ ((vector_size (8))); V4H tst(V4H a, V4H b){ return a + b; } Other operators such as -, *, |, &, ^ etc are also supported. However, vector shift is not supported by frontend, in

Re: generated movaps with unaligned memory

2009-02-24 Thread H.J. Lu
On Mon, Feb 23, 2009 at 11:46 PM, Jiri Olsa wrote: > On Mon, Feb 23, 2009 at 7:48 PM, H.J. Lu wrote: >> On Mon, Feb 23, 2009 at 10:39 AM, Jiri Olsa wrote: >>> On Mon, Feb 23, 2009 at 7:35 PM, H.J. Lu wrote: On Mon, Feb 23, 2009 at 10:05 AM, Jiri Olsa wrote: > Hi, > > my shared

Re: Native support for vector shift

2009-02-24 Thread Paolo Bonzini
> Currently, we have to use intrinsics to support such shift. Isn't syntax of > vector > shift intuitive enough to be supported natively? Someone may argue it breaks > the > C language. But vector is a GCC extension anyway. Support for vector > add/sub/etc > already break C syntax. Any thought?

Instrument gcc

2009-02-24 Thread Vincent R.
Hi, even if I am simple mortal I would like to understand or at least follow what is going on with gcc. Generally when I run gdb and try to breakpoint inside a function I get a undefined symbol or something like that. I suppose this is because gcc is not a simple static exe but depends on other bi

Re: Instrument gcc

2009-02-24 Thread Richard Guenther
On Tue, Feb 24, 2009 at 4:38 PM, Vincent R. wrote: > Hi, > > even if I am simple mortal I would like to understand or at least follow > what is going on with gcc. > Generally when I run gdb and try to breakpoint inside a function I get a > undefined symbol or something like that. > I suppose this

RE: Instrument gcc

2009-02-24 Thread Bingfeng Mei
Did you compile with -O0? A function may be inlined and a symbol may be optimized away with -O1 and above. Bingfeng > -Original Message- > From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On > Behalf Of Vincent R. > Sent: 24 February 2009 15:38 > To: gcc@gcc.gnu.org > Subjec

Re: Instrument gcc

2009-02-24 Thread Dave Korn
Richard Guenther wrote: > On Tue, Feb 24, 2009 at 4:38 PM, Vincent R. wrote: >> Let's say for instance I want to breakpoint the function >> init_exception_processing located in gcc/gcc/cp >> and related to c++ exceptions >> >> This GDB was configured as "i486-linux-gnu"... >> (gdb) b init_excepti

Re: Instrument gcc

2009-02-24 Thread Vincent R.
On Tue, 24 Feb 2009 16:43:08 +0100, Richard Guenther wrote: > On Tue, Feb 24, 2009 at 4:38 PM, Vincent R. > wrote: >> Hi, >> >> even if I am simple mortal I would like to understand or at least follow >> what is going on with gcc. >> Generally when I run gdb and try to breakpoint inside a functio

Re: Instrument gcc

2009-02-24 Thread Laurent GUERBY
On Tue, 2009-02-24 at 17:39 +0100, Vincent R. wrote: > And what if I want to debug a cross compiler, there is no cc1 or cc1plus > with the toolchain I use: Try arm-mingw32ce-gcc -v -c myfile.c it will tell you where is cc1 and the real commands launched by the driver. The xxx-gcc binary is not

Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Oliver Kellogg
Hi, On attempting a bootstrap of trunk r144402 with --enable-languages=c,ada,c++ using gcc version 3.3.5 20050117 (prerelease) (SUSE Linux) on i586 I get: gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wmissing-format-att

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Arnaud Charlet
The requirement is GCC >= 3.4 This is documented at: http://gcc.gnu.org/install/build.html ('Building the Ada compiler'), except that the online version matches GCC 4.3, not trunk. The trunk version (gcc/doc/install.texi) reads: << In order to build GNAT, the Ada compiler, you need a working GNAT

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Laurent GUERBY
On Wed, 2009-02-25 at 05:10 +0100, Oliver Kellogg wrote: > Hi, > > On attempting a bootstrap of trunk r144402 with --enable-languages=c,ada,c++ > using gcc version 3.3.5 20050117 (prerelease) (SUSE Linux) > on i586 I get: Must be quite ancient :) > I couldn't find these Ada installation instruct

gcc contractor

2009-02-24 Thread Ken.Moore
Hello, We are trying to locate someone from the gcc community in the U.S. who is experienced in modifying and building gcc 'C' compilers. We looked through http://www.gnu.org/prep/service.html ,but were finding a lot of the links are outdated or they no longer do this kind of work. If yo

Re: Instrument gcc

2009-02-24 Thread Dave Korn
Laurent GUERBY wrote: > On Tue, 2009-02-24 at 17:39 +0100, Vincent R. wrote: >> And what if I want to debug a cross compiler, there is no cc1 or cc1plus >> with the toolchain I use: > > Try > > arm-mingw32ce-gcc -v -c myfile.c > > it will tell you where is cc1 and the real commands launched > b

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Dave Korn
Laurent GUERBY wrote: > I'm not sure 3.4 will work for trunk I was just entirely unable to get 3.4.4 to bootstrap a 4.3.2 compiler. I used 4.3.0 and it worked. I forget what I used to build the 4.3.0 with in the first place. I think the documentation needs updating to say you'll need to use

Re: Native support for vector shift

2009-02-24 Thread Joseph S. Myers
On Tue, 24 Feb 2009, Bingfeng Mei wrote: > Currently, we have to use intrinsics to support such shift. Isn't syntax > of vector shift intuitive enough to be supported natively? Someone may > argue it breaks the C language. But vector is a GCC extension anyway. > Support for vector add/sub/etc a

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Laurent GUERBY
On Tue, 2009-02-24 at 18:59 +, Dave Korn wrote: > Laurent GUERBY wrote: > > > I'm not sure 3.4 will work for trunk > > I was just entirely unable to get 3.4.4 to bootstrap a 4.3.2 compiler. I > used 4.3.0 and it worked. I forget what I used to build the 4.3.0 with in the > first place.

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Dave Korn
Laurent GUERBY wrote: > On Tue, 2009-02-24 at 18:59 +, Dave Korn wrote: >> Laurent GUERBY wrote: >> >>> I'm not sure 3.4 will work for trunk >> I was just entirely unable to get 3.4.4 to bootstrap a 4.3.2 compiler. I >> used 4.3.0 and it worked. I forget what I used to build the 4.3.0 with

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Oliver Kellogg
On 2009-02-24 19:16:51, Laurent GUERBY wrote: > > > I couldn't find these Ada installation instructions. > > Any help appreciated. > > 4.1 works as Ada bootstrap compiler for trunk on many platforms. > > The documentation says: > > << > @section Building the Ada compiler > > In order to build GNAT,

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Laurent GUERBY
On Tue, 2009-02-24 at 19:36 +, Dave Korn wrote: > Laurent GUERBY wrote: > > On Tue, 2009-02-24 at 18:59 +, Dave Korn wrote: > >> Laurent GUERBY wrote: > >> > >>> I'm not sure 3.4 will work for trunk > >> I was just entirely unable to get 3.4.4 to bootstrap a 4.3.2 compiler. I > >> used

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Laurent GUERBY
On Tue, 2009-02-24 at 20:38 +0100, Oliver Kellogg wrote: > Ah, then I was not looking in the right place. > At http://gcc.gnu.org/install/build.html , I see: I believe this one is for released compilers, not SVN trunk. > > Building the Ada compiler > > > > In order to build GNAT, the Ada compile

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Joseph S. Myers
On Tue, 24 Feb 2009, Oliver Kellogg wrote: > Ah, then I was not looking in the right place. > At http://gcc.gnu.org/install/build.html , I see: > > > Building the Ada compiler > > > > In order to build GNAT, the Ada compiler, you need a working GNAT compiler > > (GNAT version 3.14 or later, or G

RE: Native support for vector shift

2009-02-24 Thread Bingfeng Mei
Yes, at least the first case (scalar operand 2) is supported by valarray. http://www.reading.ac.uk/SerDepts/su/Topic/Pgram/PgSWC+FP01/Workshop/stdlib/stdref/val_6244.htm#Non-member%20Binary%20Operators Additionally, if we follow valarray guideline, GCC should also support code like: V4H a, c; sh

Re: generated movaps with unaligned memory

2009-02-24 Thread Jiri Olsa
On Tue, Feb 24, 2009 at 3:53 PM, H.J. Lu wrote: > On Mon, Feb 23, 2009 at 11:46 PM, Jiri Olsa wrote: >> On Mon, Feb 23, 2009 at 7:48 PM, H.J. Lu wrote: >>> On Mon, Feb 23, 2009 at 10:39 AM, Jiri Olsa wrote: On Mon, Feb 23, 2009 at 7:35 PM, H.J. Lu wrote: > On Mon, Feb 23, 2009 at 10:0

Re: Instrument gcc

2009-02-24 Thread Vincent R.
On Tue, 24 Feb 2009 18:31:07 +, Dave Korn wrote: > Laurent GUERBY wrote: >> On Tue, 2009-02-24 at 17:39 +0100, Vincent R. wrote: >>> And what if I want to debug a cross compiler, there is no cc1 or cc1plus >>> with the toolchain I use: >> >> Try >> >> arm-mingw32ce-gcc -v -c myfile.c >> >>

Re: Native support for vector shift

2009-02-24 Thread Michael Meissner
On Tue, Feb 24, 2009 at 06:15:37AM -0800, Bingfeng Mei wrote: > Hello, > For the targets that support vectors, we can write the following code: > > typedef shortV4H __attribute__ ((vector_size (8))); > > V4H tst(V4H a, V4H b){ > return a + b; > } > > Other operators such as -, *, |, &, ^

RE: Native support for vector shift

2009-02-24 Thread Bingfeng Mei
Yes, I am aware of both types of vector shift. Our target VLIW actually supports both and I have implemented all related patterns in our porting. But it would be still nice to allow programmer explicitly use vector shift, preferably both types. Bingfeng > -Original Message- > From: Micha

Re: Native support for vector shift

2009-02-24 Thread Michael Meissner
On Tue, Feb 24, 2009 at 01:19:44PM -0800, Bingfeng Mei wrote: > Yes, I am aware of both types of vector shift. Our target VLIW > actually supports both and I have implemented all related patterns > in our porting. But it would be still nice to allow programmer > explicitly use vector shift, prefer

Re: Native support for vector shift

2009-02-24 Thread Andrew Pinski
On Tue, Feb 24, 2009 at 2:01 PM, Michael Meissner wrote: > On Tue, Feb 24, 2009 at 01:19:44PM -0800, Bingfeng Mei wrote: >> Yes, I am aware of both types of vector shift. Our target VLIW >> actually supports both and I have implemented all related patterns >> in our porting. But it would be still

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Gerald Pfeifer
On Tue, 24 Feb 2009, Laurent GUERBY wrote: >> At http://gcc.gnu.org/install/build.html , I see: > I believe this one is for released compilers, not SVN trunk. Actually, http://gcc.gnu.org/install/ is the latest from SVN on a nightly base. (I checked the crontab we have on gcc.gnu.org to be sure.)

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Laurent GUERBY
On Tue, 2009-02-24 at 23:32 +0100, Gerald Pfeifer wrote: > On Tue, 24 Feb 2009, Laurent GUERBY wrote: > >> At http://gcc.gnu.org/install/build.html , I see: > > I believe this one is for released compilers, not SVN trunk. > > Actually, http://gcc.gnu.org/install/ is the latest from SVN on a > nigh

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Joe Buck
On Tue, Feb 24, 2009 at 02:54:54PM -0800, Laurent GUERBY wrote: > In trunk install.texi: > > "In order to build GNAT, the Ada compiler, you need a working GNAT > compiler (GCC version 3.4 or later)." > > On the web: > > "In order to build GNAT, the Ada compiler, you need a working GNAT > compile

Re: Minimum required GNAT version for bootstrap of GNAT on gcc trunk

2009-02-24 Thread Joseph S. Myers
On Tue, 24 Feb 2009, Laurent GUERBY wrote: > On Tue, 2009-02-24 at 23:32 +0100, Gerald Pfeifer wrote: > > On Tue, 24 Feb 2009, Laurent GUERBY wrote: > > >> At http://gcc.gnu.org/install/build.html , I see: > > > I believe this one is for released compilers, not SVN trunk. > > > > Actually, http:/

Re: libiberty testsuite builds with wrong compiler

2009-02-24 Thread Kaveh R. GHAZI
On Mon, 23 Feb 2009, Paolo Bonzini wrote: > Jack Howarth wrote: > > The same issue in the libiberty testsuite run can be seen with > > the Apple regress server log at > > http://gcc.gnu.org/regtest/HEAD/native-lastbuild.txt.gzip. > > If you search for test-demangle, you will find... > > I'm sur

Re: Native support for vector shift

2009-02-24 Thread Paolo Bonzini
>> It shouldn't be too hard to add the support. I suspect the person who did >> the >> initial support may have been on a machine without vector shifts. > > Nope, because it was originally done by Aldy who did the VMX support > which had vector shifts. OTOH the support for vector lowering was w