Re: GCC and out-of-range constant array indexes?

2010-10-07 Thread Ian Lance Taylor
Gary Funck writes: > Consider the following: > > $ cat -n t.c > 1 > 2 int A[10] = { 0 }; > 3 > 4 int main() > 5 { > 6A[10] = 10; > 7A[-1] = -1; > 8return 0; > 9 } > > In a compiler test case that I reviewed recently, there was the > exp

GCC and out-of-range constant array indexes?

2010-10-07 Thread Gary Funck
Consider the following: $ cat -n t.c 1 2 int A[10] = { 0 }; 3 4 int main() 5 { 6A[10] = 10; 7A[-1] = -1; 8return 0; 9 } In a compiler test case that I reviewed recently, there was the expectation that the compiler would issue a compile-

gcc-4.5-20101007 is now available

2010-10-07 Thread gccadmin
Snapshot gcc-4.5-20101007 is now available on ftp://gcc.gnu.org/pub/gcc/snapshots/4.5-20101007/ 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/branches

Re: %pc relative addressing of string literals/const data

2010-10-07 Thread Joakim Tjernlund
Michael Meissner wrote on 2010/10/07 20:21:38: > > On Thu, Oct 07, 2010 at 04:50:50PM +0200, Joakim Tjernlund wrote: > > Why not offer some of this on PowerPC32? mcmodel=small would probably be > > enough. > > Well as they say, contributions are welcome. Note, 32-bit mode doesn't need Yes, but

Re: toplevel *again* out of sync

2010-10-07 Thread Ralf Wildenhues
* Naveen H. S wrote on Mon, Oct 04, 2010 at 10:44:40AM CEST: > >> Nick, Naveen, the diff between the GCC and the src commits is this; > >> which variant is correct? > >> -noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" > >> +noconfigdirs="$noconfigdirs ${libgcj}" > > The following v

Re: rules for svn commit-ing a [gengtype] patch?

2010-10-07 Thread Diego Novillo
On Thu, Oct 7, 2010 at 11:23, Basile Starynkevitch wrote: > On Thu, 07 Oct 2010 10:55:46 -0700 > Ian Lance Taylor wrote: > >> Basile Starynkevitch writes: >> >> > Can we svn commit a patch after having compiled with a comment (like >> > those of Laurynas) without an Ok from a reviewer? (I believ

Re: rules for svn commit-ing a [gengtype] patch?

2010-10-07 Thread Basile Starynkevitch
On Thu, 07 Oct 2010 10:55:46 -0700 Ian Lance Taylor wrote: > Basile Starynkevitch writes: > > > Can we svn commit a patch after having compiled with a comment (like > > those of Laurynas) without an Ok from a reviewer? (I believe not, but I > > am thinking that some patches went into trunk with

Re: %pc relative addressing of string literals/const data

2010-10-07 Thread Michael Meissner
On Thu, Oct 07, 2010 at 04:50:50PM +0200, Joakim Tjernlund wrote: > Why not offer some of this on PowerPC32? mcmodel=small would probably be > enough. Well as they say, contributions are welcome. Note, 32-bit mode doesn't need this when compiling for the main program, since it does addis/addi al

Re: rules for svn commit-ing a [gengtype] patch?

2010-10-07 Thread Ian Lance Taylor
Basile Starynkevitch writes: > Can we svn commit a patch after having compiled with a comment (like > those of Laurynas) without an Ok from a reviewer? (I believe not, but I > am thinking that some patches went into trunk without an ok on > gcc-patches@). You do need to have an OK from somebody

rules for svn commit-ing a [gengtype] patch?

2010-10-07 Thread Basile Starynkevitch
Hello All, I am a bit confused about the (GCC social) rules to commit a patch to the GCC trunk svn, in particular after having read http://gcc.gnu.org/ml/gcc-patches/2010-10/msg00419.html and http://gcc.gnu.org/ml/gcc-patches/2010-10/msg00486.html and other messages in that thread. I also am not

Re: [wwwdocs] PATCH for Re: new mirror

2010-10-07 Thread James Miller
Hello Gerald, Our mirror address has been changed from http://gcc.parentinginformed.com/ to http://gcc.parentingamerica.com/ Please update your list to use the new URL. Also please use new e-mail to contact me when necessary: jmil...@parentingamerica.com. Thank you. Best wishes, James Mille

Re: Bootstrap broken on Cygwin, fix on the way.

2010-10-07 Thread Dave Korn
On 07/10/2010 05:01, Dave Korn wrote: > > FYI, in case anyone else runs into this and comes here looking for > information: a fix is on the way for the "multiple definitions of various > include-path-related things" problem currently breaking bootstrap on Cygwin. > Hope to have it working again

Re: %pc relative addressing of string literals/const data

2010-10-07 Thread Joakim Tjernlund
Michael Meissner wrote on 2010/10/07 15:00:25: > > On Tue, Oct 05, 2010 at 11:56:55AM -0700, Richard Henderson wrote: > > On 10/05/2010 06:54 AM, Joakim Tjernlund wrote: > > > Ian Lance Taylor wrote on 2010/10/05 15:47:38: > > >> Joakim Tjernlund writes: > > >>> While doing relocation work on u-

Re: %pc relative addressing of string literals/const data

2010-10-07 Thread Richard Guenther
On Wed, Oct 6, 2010 at 12:13 AM, Richard Henderson wrote: > On 10/05/2010 02:40 PM, Joakim Tjernlund wrote: >> Especially one that doesn't require each function >> to calculate the GOT address in the function prologue(why is that so?) > > Because PIC code can be called from non-PIC code and becaus

Re: %pc relative addressing of string literals/const data

2010-10-07 Thread Joakim Tjernlund
Richard Henderson wrote on 2010/10/06 00:13:22: > > On 10/05/2010 02:40 PM, Joakim Tjernlund wrote: > > Especially one that doesn't require each function > > to calculate the GOT address in the function prologue(why is that so?) > > Because PIC code can be called from non-PIC code and because > th

Re: %pc relative addressing of string literals/const data

2010-10-07 Thread Michael Meissner
On Tue, Oct 05, 2010 at 11:56:55AM -0700, Richard Henderson wrote: > On 10/05/2010 06:54 AM, Joakim Tjernlund wrote: > > Ian Lance Taylor wrote on 2010/10/05 15:47:38: > >> Joakim Tjernlund writes: > >>> While doing relocation work on u-boot I often whish for strings/const data > >>> to be access