Bus error gcc compiler for any for ( x in array ) inside Objective-C++ template

2009-10-15 Thread John Holdsworth
Hi, I've encountered a bus error using Apple's gcc in Xcode 3.1, 3.2 compiling the following code or any containing for( x in y ) is used inside a template in Objective-C++. template class OODictionary { void boom() { NSArray *keys = nil; for ( NSString

problems with gcc installation

2009-10-15 Thread yzysea
Hi, I need to intall gcc-2.5.8 on opensolaris. In the "make" step, I get the following message: r...@opensolaris:/export/home/sea/Desktop/gcc-2.5.8# make cc -DIN_GCC -g -I. -I. -I./config \ -DGCC_INCLUDE_DIR=\"/usr/local/gcc258/lib/gcc-lib/i386-sun-sunos5.11/2.5.8/include\" \ -DGP

RE: Turning off unrolling to certain loops

2009-10-15 Thread Bingfeng Mei
Hello, I faced a similar issue a while ago. I filed a bug report (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36712) In the end, I implemented a simple tree-level unrolling pass in our port which uses all the existing infrastructure. It works quite well for our purpose, but I hesitated to submit

help: standard name of vector mode

2009-10-15 Thread 彭建章
I'm porting gcc , and use its autovectorization. How can I know wether a standard name support a vector mode ? Thanks!

Re: Turning off unrolling to certain loops

2009-10-15 Thread Zdenek Dvorak
Hi, > I faced a similar issue a while ago. I filed a bug report > (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36712) In the end, > I implemented a simple tree-level unrolling pass in our port > which uses all the existing infrastructure. It works quite well for > our purpose, but I hesitated t

GCC 4.4.2 Status Report (2009-10-15)

2009-10-15 Thread Jakub Jelinek
Status == GCC 4.4.2 release tarballs have been uploaded, the 4.4 branch is again open for commits under the usual release branch rules. I'll announce the release once mirrors had some time to download it. Quality Data Priority # Change from Last Report

Storing 16bit values in upper part of 32bit registers

2009-10-15 Thread Markus L
Hi, I am working with an architecture where the 32bit registers (rN) are divided into high (rNh) and low (rNl) 16bit sub registers that can in principle be individually accessed by the instructions in the IS. However the IS is designed so that it is beneficial to to store 16bit values in the high

Re: Storing 16bit values in upper part of 32bit registers

2009-10-15 Thread sumanth
Hi Marcus, Though I am novice in gcc , I think I can answer your question. As far as I know, your load instruction will take care of this issue. You need to restrict your load instruction so that it will place your return value of function in lower r

Re: Turning off unrolling to certain loops

2009-10-15 Thread Jean Christophe Beyler
You are entirely correct, I hadn't thought that through enough. So I backtracked and have just merged what Bingfeng Mei has done with your code and have now a corrected version of the loop unrolling. What I did was directly modified tree_unroll_loop to handle the case of a perfect unroll or not i

Re: GCC 4.4.2 Status Report (2009-10-15)

2009-10-15 Thread Ryan Mansfield
Jakub Jelinek wrote: Status == GCC 4.4.2 release tarballs have been uploaded, the 4.4 branch is again open for commits under the usual release branch rules. I'll announce the release once mirrors had some time to download it. The onlinedocs already point to 4.4.2 but there is a permission

Re: Storing 16bit values in upper part of 32bit registers

2009-10-15 Thread Richard Henderson
On 10/15/2009 07:41 AM, Markus L wrote: However the IS is designed so that it is beneficial to to store 16bit values in the high part of the registers (rNh) and also the calling conventions that we want follow require 16bit values to be passed and returned in rNh. What would be the "proper way"

RE: Turning off unrolling to certain loops

2009-10-15 Thread Bingfeng Mei
Jc, How did you implement #pragma unroll? I checked other compilers. The pragma should govern the next immediate loop. It took me a while to find a not-so-elegant way to do that. I also implemented #pragma ivdep. These information are supposed to be passed through both tree and RTL levels and suv

Question on C++-0x constexpr

2009-10-15 Thread Ed Smith-Rowland
I was toying around with constexpr in the standard library and tripped on this: // /bin/bin/g++ -std=c++0x -c template_constexpr.cpp template class A { static constexpr int foo() { retur

Re: Turning off unrolling to certain loops

2009-10-15 Thread Jean Christophe Beyler
I implemented it like this: - I modified c_parser_for_statement to include a pragma tree node in the loop with the unrolling request as an argument - Then during my pass to handle unrolling, I parse the loop to find the pragma. - I retrieve the unrolling factor and use a merge of Zdenek'

Re: help: standard name of vector mode

2009-10-15 Thread Ian Lance Taylor
彭建章 writes: > I'm porting gcc , and use its autovectorization. > How can I know wether a standard name support a vector mode ? The standard names all have modes built into them. If you are porting gcc, then you need to write a define_expand or define_insn in your MD file with a standard name w

Re: GCC 4.4.2 Status Report (2009-10-15)

2009-10-15 Thread Jakub Jelinek
On Thu, Oct 15, 2009 at 11:43:11AM -0400, Ryan Mansfield wrote: > Jakub Jelinek wrote: >> GCC 4.4.2 release tarballs have been uploaded, the 4.4 branch is again >> open for commits under the usual release branch rules. >> >> I'll announce the release once mirrors had some time to download it. > > T

Re: Question on C++-0x constexpr

2009-10-15 Thread Gabriel Dos Reis
On Thu, Oct 15, 2009 at 11:24 AM, Ed Smith-Rowland <3dw...@verizon.net> wrote: > I was toying around with constexpr in the standard library and tripped on > this: > > // /bin/bin/g++ -std=c+

Re: checking for debug a plugin on a production compiler?

2009-10-15 Thread Rafael Espindola
> a plugin foo.c is compiled as foo.so for that gcc-4.5, but since the plugin > is probably buggy, it is compiled with ENABLE_CHECKING. How would you do this? :-) The plugin should get the ENABLE_CHECKING definition from the auto-host.h used by the compiler, so they should always agree. > > Rega

Re: Bus error gcc compiler for any for ( x in array ) inside Objective-C++ template

2009-10-15 Thread Ian Lance Taylor
John Holdsworth writes: > I've encountered a bus error using Apple's gcc in Xcode 3.1, 3.2 > compiling the following code or any containing for( x in y ) is used > inside a template in Objective-C++. > > template > class OODictionary { > void boom() { > NSArray *keys = nil;

Re: help: standard name of vector mode

2009-10-15 Thread Hans-Peter Nilsson
On Thu, 15 Oct 2009, Åí½¨Õ wrote: > I'm porting gcc , and use its autovectorization. > How can I know wether a standard name support a vector mode ? I might misunderstand your question, but the vector modes that are supported are enumerated by the port. See e.g. gcc/config/i386/i386-modes.def,

Re: problems with gcc installation

2009-10-15 Thread Ben Elliston
On Thu, 2009-10-15 at 01:16 -0700, yzysea wrote: > I need to intall gcc-2.5.8 on opensolaris. In the "make" step, I get the > following message: This is the GCC development list, not a list for answering questions about how to compile up and use GCC. Please take your question to the gcc-h...@

gcc-4.5-20091015 is now available

2009-10-15 Thread gccadmin
Snapshot gcc-4.5-20091015 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.5-20091015/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 4.5 SVN branch with the following options: svn://gcc.gnu.org/svn/gcc/trunk

MicroBlaze update

2009-10-15 Thread Michael Eager
I have checked in updates on the gcc microblaze branch to bring it up to gcc-4.3.4. There are the following tags: microblaze-4.1.2 -- gcc-4.1.2 with MicroBlaze support microblaze-4.2.4 -- gcc-4.2.4 with MicroBlaze support microblaze-4.3.4 -- gcc-4.3.4 with MicroBlaze support -- Michae