Re: Including GMP/MPFR in GCC repository?

2006-10-12 Thread François-Xavier Coudert
First, please note that having gfortran testresults for one platform only means that "some version of the compiler was able to correctly compile GMP & MPFR", not that "GCC trunk is able to correctly compile GMP & MPFR". Nevertheless: * i386-unknown-freebsd (alpha-unknown-freebsd5.4) http://g

Re: Abt definition for structure tree

2006-10-12 Thread Ben Elliston
> Can anyone tell me where i can find the definition of tree. Take a look in tree.h. Ben

Re: Question about strange register calling truncates to SImode on x86_64

2006-10-12 Thread Kai Tietz
Hello Michael, thanks for description. I wasn't aware, that the upper 32 bits are zeroed. Does this means that even the stack has to be in the first 4 Gb, too. Or does this mov instruction does a sign-extention. Best regards, i.A. Kai Tietz

Re: building gcc

2006-10-12 Thread Paolo Bonzini
In particular, I was just wondering how do compile GCC with debug. Not how to debug it. I tried CFLAGS="-g" ./configure ..., but it still compiled with gcc -O2 -g. Anyways, if anyone knows a helpful configure trick that will help get me ready to debug gcc, please let me know. By default, GCC b

[PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols

2006-10-12 Thread Hiroki Kaminaga
Hi, Regarding the PR: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29413 Is below patch adequate to fix the problem? Works fine with me, but haven't done any regression test. Thanks in Advance (Hiroki Kaminaga) t -- Index: gcc/gcc/config/mips/mips.h ===

Get pragma's line code

2006-10-12 Thread Matteo Fioroni
Hi, I must get the informations (position in the file, file where #pragma was found, text that follow the #pragma in the line) of pragma's line code in C/C++ code. For do that I think that it's a good idea using the C/C++ gcc preprocessor. How can I patch the gcc so it can execute a my function

[cygwin] libjava/java/lang/natClass.cc:904: error: thread-local storage not supported for this target

2006-10-12 Thread Christian Joensson
Currently, and it's been there for a while, I get the following error on gcc trunk: /usr/local/src/trunk/objdir/./gcc/xgcc -shared-libgcc -B/usr/local/src/trunk/objdir/./gcc -nostdinc++ -L/usr/local/src/trunk/objdir/i686-pc-cygwin/libstdc++-v3/src -L/usr/local/src/trunk/objdir/i686-pc-cygwin/libs

Re: [cygwin] libjava/java/lang/natClass.cc:904: error: thread-local storage not supported for this target

2006-10-12 Thread Andrew Haley
Christian Joensson writes: > Currently, and it's been there for a while, I get the following error > on gcc trunk: > > ../../../gcc/libjava/java/lang/natClass.cc:904: error: thread-local > storage not supported for this target > make[3]: *** [java/lang/natClass.lo] Error 1 > make[3]: Leavin

Re: [cygwin] libjava/java/lang/natClass.cc:904: error: thread-local storage not supported for this target

2006-10-12 Thread Brian Dessent
Andrew Haley wrote: > That __thread variable is surrounded by HAVE_TLS. There is a > configure test which simply compiles this line: > > __thread int foo; > > and that configure test must succeed for HAVE_TLS to be set. So, to > fix this we need to find out if that program did compile, and if

Re: building gcc

2006-10-12 Thread Bob Rossi
On Thu, Oct 12, 2006 at 09:48:13AM +0200, Paolo Bonzini wrote: > > >In particular, I was just wondering how do compile GCC with debug. Not > >how to debug it. I tried CFLAGS="-g" ./configure ..., but it still > >compiled with gcc -O2 -g. Anyways, if anyone knows a helpful configure > >trick that w

Implicit conversions between vectors

2006-10-12 Thread Mark Shinwell
Currently we permit implicit conversions between vectors whose total bitsizes are equal but which are divided into differing numbers of subparts. It seems that in some circumstances this rule is overly lax. For example the following code, using vector types (whose definitions I have provided from

Re: Question about strange register calling truncates to SImode on x86_64

2006-10-12 Thread Michael Matz
Hi, On Thu, 12 Oct 2006, Kai Tietz wrote: > thanks for description. I wasn't aware, that the upper 32 bits are > zeroed. Does this means that even the stack has to be in the first 4 Gb, > too. Why should it? I.e. no, it doesn't have to. > Or does this mov instruction does a sign-extention.

Re: Implicit conversions between vectors

2006-10-12 Thread Paolo Bonzini
This lack of type safety is unsettling, and I wonder if it should be fixed with a patch along the lines of the (not yet fully tested) one below. Does that sound reasonable? It seems right to try to fix the generic code here, even though the testcase in hand is target-specific. If this approac

Re: [PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols

2006-10-12 Thread Andrew Pinski
On Thu, 2006-10-12 at 17:06 +0900, Hiroki Kaminaga wrote: > Hi, > > Regarding the PR: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29413 > > Is below patch adequate to fix the problem? > Works fine with me, but haven't done any regression test. As I mentioned in the bug report, the problem is t

Re: Implicit conversions between vectors

2006-10-12 Thread Andrew Pinski
On Thu, 2006-10-12 at 13:03 +0100, Mark Shinwell wrote: > typedef __builtin_neon_qi int8x8_t __attribute__ ((__vector_size__ (8))); > typedef __builtin_neon_hi int16x4_t __attribute__ ((__vector_size__ (8))); > ... > > int8x8_t f (int16x4_t a) > { >return a; > } This should error out

Re: building gcc

2006-10-12 Thread Ian Lance Taylor
Bob Rossi <[EMAIL PROTECTED]> writes: > Hopefully I'll be able to debug gcc nicely after this is built. Two > more questions that could save me a lot of time. Do you know where the > abstract syntax tree is stored in GCC after a file is parsed? I'm not sure what kind of answer you are looking for

Re: Implicit conversions between vectors

2006-10-12 Thread Mark Shinwell
Andrew Pinski wrote: On Thu, 2006-10-12 at 13:03 +0100, Mark Shinwell wrote: typedef __builtin_neon_qi int8x8_t __attribute__ ((__vector_size__ (8))); typedef __builtin_neon_hi int16x4_t __attribute__ ((__vector_size__ (8))); ... int8x8_t f (int16x4_t a) { return a; } This should

Re: Implicit conversions between vectors

2006-10-12 Thread Ian Lance Taylor
Mark Shinwell <[EMAIL PROTECTED]> writes: > Here, the compiler is not complaining about an attempt to implicitly > convert a vector of four 16-bit quantities to a vector of eight > 8-bit quantities. > > This lack of type safety is unsettling, and I wonder if it should be fixed > with a patch alon

Re: Implicit conversions between vectors

2006-10-12 Thread Mark Shinwell
Ian Lance Taylor wrote: I believe that the problem with changing this unconditionally is that the Altivec programming guidelines specify the rules which gcc currently follows: you are permitted to assign one vector variable to another, without an explicit cast, when the vectors are the same size.

Re: Implicit conversions between vectors

2006-10-12 Thread Andrew Pinski
On Thu, 2006-10-12 at 08:02 -0700, Ian Lance Taylor wrote: > It's been this way at least since 4.0. But it was rejected in 3.4.0. > I believe that the problem with changing this unconditionally is that > the Altivec programming guidelines specify the rules which gcc > currently follows: you are pe

Re: building gcc

2006-10-12 Thread Bob Rossi
On Thu, Oct 12, 2006 at 06:56:58AM -0400, Bob Rossi wrote: > On Thu, Oct 12, 2006 at 09:48:13AM +0200, Paolo Bonzini wrote: > > > > >In particular, I was just wondering how do compile GCC with debug. Not > > >how to debug it. I tried CFLAGS="-g" ./configure ..., but it still > > >compiled with gcc

Re: building gcc

2006-10-12 Thread Daniel Jacobowitz
On Thu, Oct 12, 2006 at 12:22:57PM -0400, Bob Rossi wrote: > and the gcc that is put into prefixdir is compiled with -O2 and -g, > which makes it hard to follow in the debugger. Anyone have a clue on how > to compile gcc so only -g is used, and not -O2? Typically, I use the > CFLAGS trick, but it d

Re: Including GMP/MPFR in GCC repository?

2006-10-12 Thread Kaveh R. GHAZI
On Thu, 12 Oct 2006, [ISO-8859-1] François-Xavier Coudert wrote: > First, please note that having gfortran testresults for one platform > only means that "some version of the compiler was able to correctly > compile GMP & MPFR", True. > not that "GCC trunk is able to correctly compile GMP & MPF

Re: aligned attribute and the new operator (pr/15795)

2006-10-12 Thread Mark Mitchell
[EMAIL PROTECTED] wrote: If we are willing to consider an ABI change, I think an approach that allows new to call some form of memalign would be better than having the compiler force alignment after calling new. Are we open to making an ABI change? Personally, I think an ABI change, at the

Re: building gcc

2006-10-12 Thread Bob Rossi
On Thu, Oct 12, 2006 at 12:25:04PM -0400, Daniel Jacobowitz wrote: > On Thu, Oct 12, 2006 at 12:22:57PM -0400, Bob Rossi wrote: > > and the gcc that is put into prefixdir is compiled with -O2 and -g, > > which makes it hard to follow in the debugger. Anyone have a clue on how > > to compile gcc so

Re: Including GMP/MPFR in GCC repository?

2006-10-12 Thread Kaveh R. GHAZI
On Wed, 11 Oct 2006, Steve Kargl wrote: > Kaveh, > > It should be straight forward to modify the current configure tests > in toplevel for the versions of gmp and mpfr you need. I would > recommend at least mpfr 2.2.0 (which would allow me to kill the ugly > hacks in gfortran). For gmp, you may

Re: Including GMP/MPFR in GCC repository?

2006-10-12 Thread Steve Kargl
On Thu, Oct 12, 2006 at 02:14:53PM -0400, Kaveh R. GHAZI wrote: > On Wed, 11 Oct 2006, Steve Kargl wrote: > > > > It should be straight forward to modify the current configure tests > > in toplevel for the versions of gmp and mpfr you need. I would > > recommend at least mpfr 2.2.0 (which would al

Re: Including GMP/MPFR in GCC repository?

2006-10-12 Thread DJ Delorie
> Okay for stage1? Ok, assuming everyone agrees to those versions ;-) > 2006-10-12 Kaveh R. Ghazi <[EMAIL PROTECTED]> > > * configure.in: Require GMP-4.1+ and MPFR-2.2+. > * configure: Regenerate.

gcc-4.0-20061012 is now available

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

Re: on removal of line number notes at the end of BBs

2006-10-12 Thread Jan Hubicka
> On Oct 11, 2006, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > > >> int x; int f() { x = 0; > >> while(1); } > > >> We get line number notes for code only up to "x = 0;". > > > I assume this is only a problem when not optimizing. > > The opposite, actually. It's optimization that breaks it

Tree node questions

2006-10-12 Thread Brendon Costa
Hi all, If I have a FUNCTION_DECL node that returns non-null for DECL_TEMPLATE_INFO() then it is a template or template instantiation. How can I tell if it is a full instantiation (I.e. not general template or partial specialisation)? Does this also apply to nodes that represent template types (s

Re: [PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols

2006-10-12 Thread Hiroki Kaminaga
From: Andrew Pinski <[EMAIL PROTECTED]> > As I mentioned in the bug report, the problem is that CC1_SPEC > is the wrong one. (snip) > The attached patch is the more correct way to solve this. Thanks alot! (Hiroki Kaminaga) t --

Additional tree node questions.

2006-10-12 Thread Brendon Costa
Sorry about the separate email. In addition to the previous questions I want to ask if there is a better way of achieving finding the type nodes for a functions exception specification list. For each FUNCTION_DECL node I find, I want to determine what its exception specification list is. I.e. the

Re: [PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols

2006-10-12 Thread Hiroki Kaminaga
From: Andrew Pinski <[EMAIL PROTECTED]> > On Thu, 2006-10-12 at 17:06 +0900, Hiroki Kaminaga wrote: > > Hi, > > > > Regarding the PR: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29413 > > > > Is below patch adequate to fix the problem? > > Works fine with me, but haven't done any regression t

abt compiler flags

2006-10-12 Thread Mohamed Shafi
Hello all, During regression tests if i want to disable some features like trampolines i can give -DNO_TRAMPOLINES as an compiler flag. Do i have similar flags for profiling and PIC? thanks in advance Regards, Shafi

Re: [PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols

2006-10-12 Thread Andrew Pinski
On Fri, 2006-10-13 at 14:32 +0900, Hiroki Kaminaga wrote: > > The attached patch is the more correct way to solve this. > > Your patch would cause `-profile' option not to set `-p' to cc1. Is this OK? Not really, the following patch on top of the previous fixes the above problem: Index: config/mip

Re: [PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols

2006-10-12 Thread Hiroki Kaminaga
From: Andrew Pinski <[EMAIL PROTECTED]> > > Your patch would cause `-profile' option not to set `-p' to cc1. Is this OK? > Not really, the following patch on top of the previous fixes the above > problem: > Index: config/mips/linux.h > ===

Re: abt compiler flags

2006-10-12 Thread Ben Elliston
> During regression tests if i want to disable some features like > trampolines i can give -DNO_TRAMPOLINES as an compiler flag. > > Do i have similar flags for profiling and PIC? You might like to check the manual. All of the answers you're looking for (well, okay, most) will be there: http:

Re: [PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols

2006-10-12 Thread Andrew Pinski
On Fri, 2006-10-13 at 14:45 +0900, Hiroki Kaminaga wrote: > How about appending to CC1_SPEC? > > -#ifndef CC1_SPEC > +#undef CC1_SPEC > #define CC1_SPEC "\ > %{gline:%{!g:%{!g0:%{!g1:%{!g2: -g1} \ > %{G*} %{EB:-meb} %{EL:-mel} %{EB:%{EL:%emay not use both -EB and -EL}} \ > %{save-temps: }