Getting a virtual functions VT lookup index

2006-10-17 Thread Brendon Costa
Hi all, How can I find a FUNCTION_DECL node from a CALL_EXPR node for virtual function calls? Note: I am not after the node for the function that will be executed at runtime as I know this is not possible to determine in most situations. Thanks for any help in advance, Brendon. -

Re: Issue with hard regs

2006-10-17 Thread Rask Ingemann Lambertsen
On Mon, Oct 16, 2006 at 02:03:44PM +0300, [EMAIL PROTECTED] wrote: > I thought i had added the necessary information (new register classes, > character > to match for the reg class) however i get the following error message: > > "unable to find a register to spill in class" Please provide mor

Re: Abt RTL expression

2006-10-17 Thread Rask Ingemann Lambertsen
On Mon, Oct 16, 2006 at 09:32:58PM -0700, Mohamed Shafi wrote: > > In th document > http://gcc.gnu.org/onlinedocs/gccint/Insns.html#Insns > > it is said that "An integer that says which pattern in the machine > description matches > this insn, or -1 if the matching has not yet been attempted.Su

[cygwin] gcc/boehm-gc/misc.c:680: undefined reference to `_GC_get_thread_stack_base'

2006-10-17 Thread Christian Joensson
well, trying to bootstrap on cygwin current gcc with lava and libs, gets me into this ar rc .libs/libgcj-tools.a classpath/tools/libgcj_tools_la-tools.o ranlib .libs/libgcj-tools.a creating libgcj-tools.la (cd .libs && rm -f libgcj-tools.la && ln -s ../libgcj-tools.la libgcj-tools.la) /bin/sh ./

Re: Abt RTL expression

2006-10-17 Thread Mohamed Shafi
> It is because matching has not yet been attempted. ok.. so what is the option to get hold of a rtl dump after all the matching is done - Original Message From: Rask Ingemann Lambertsen <[EMAIL PROTECTED]> To: Mohamed Shafi <[EMAIL PROTECTED]> Cc: gcc@gcc.gnu.org; Revital1 Eres <[EMAIL

Re: g++ -print-prefix or -print-install-prefix

2006-10-17 Thread Benjamin Kosnik
> Why do you need this? For installed-compiler testing, the compiler > already searches the obvious places. (I'm not trying to be cute: I'm > genuinely curious.) This is needed if you need to find the C++ includes, but are not using the C++ compiler. > I agree that it would be nice if -print

Re: Abt RTL expression

2006-10-17 Thread Rask Ingemann Lambertsen
On Tue, Oct 17, 2006 at 01:10:02AM -0700, Mohamed Shafi wrote: > > It is because matching has not yet been attempted. > > ok.. so what is the option to get hold of a rtl dump after all the matching > is done -fdump-rtl-vregs, although if you want to see the prologue and epilogue code too, -fd

Re: [PATCH] COND_EXPRs in GIMPLE code and vectorizer

2006-10-17 Thread Roberto COSTA
Roberto COSTA wrote: Diego Novillo wrote: Roberto COSTA wrote on 09/28/06 05:51: If time allows me, I'd like to try to see what happens if COND_EXPRs are kept throughout the GIMPLE passes (I confess I'm curious). Logically, I see them as richer constructs (they carry more information than

Building gcc-4.2 failure on MinGW

2006-10-17 Thread Y.Tomino
Hello. gcc-4.2-20061007 and gcc-4.2-20061014 failed to build on MinGW. Does anybody see the same and understand? I used the options for configure that was --prefix=/mingw and --enabled-languages. My platform is WindowsXP, with MinGW and MSYS. Thank you. YT Case 1, C only: ... /home/usr/buil

generation of gt-*.h files

2006-10-17 Thread Basile STARYNKEVITCH
Dear All, I'm still a newbie, and do not understand very well the machinery behind the GCC garbage collector, in particular the following behavior on a recently svn update-ed GCC trunk. My system is an AMD64/Debian/Sid cd /usr/src/Lang/gcc # my trunk svn info Path: . URL: svn://gcc.gnu.org/svn/

build error

2006-10-17 Thread bob_rossi
Hi, I just ran these commands: svn -q checkout svn://gcc.gnu.org/svn/gcc/trunk gcc mkdir builddir cd builddir CFLAGS="-g" ../gcc/configure --enable-languages=c,c++ --enable-checking \ --disable-bootstrap --prefix=$PWD/../prefixdir make -s make install and I got the attached compile error. Is th

Re: How can a front-end know what integer mode corresponds to int_fastN_t?

2006-10-17 Thread Tobias Schlüter
FX Coudert <[EMAIL PROTECTED]> wrote on Mon, 16 Oct 2006: For Fortran 2003 standard conformance, the Fortran front-end has to know at compile-time what integer mode corresponds to some C99 types, like intmax_t, intN_t, int_leastN_t, int_fastN_t. For intN_t and int_leastN_t, I can see how to get

Expressions simplification statistic

2006-10-17 Thread Dino Puller
Hi all, i'm looking for a statistic of how many expressions simplification may be possible on source code, for example in some linux project. Otherwise how can i produce a statistic like that? tnx, Dino

Compiling with profiling flags

2006-10-17 Thread Revital1 Eres
Hello, Is there an option to change the name of the .gcno file that is generated by using profiling flags like -fprofile-generate and later used by -fprofile-use? I read that "For each source file compiled with `-fprofile-arcs', an accompanying `.gcda' file will be placed in the object file dire

"insn outside basic block" in custom back end

2006-10-17 Thread Frank Riese
Hi, I have the following problem with a back end I've written after the following changes in the machine header, to tell GCC that the machine is word-addressed with a word width of 16 Bit: #define BITS_PER_UNIT 16 #define UNITS_PER_WORD 1 #define BITS_PER_WORD 16 A

r117741

2006-10-17 Thread Jack Howarth
Geoff, I noticed that the automake maintainers accepted your patch for fixing the multilib issues in automake. However they also seemed to indicate that there would be no more 1.9.x automake releases. Is the r117741 svn checkin related to this issue? I ask because it was unclear to me how the

Re: r117741

2006-10-17 Thread David Fang
>I noticed that the automake maintainers accepted your patch for > fixing the multilib issues in automake. However they also seemed to > indicate that there would be no more 1.9.x automake releases. >Is the r117741 svn checkin related to this issue? I ask because it > was unclear to me how

Re: Issue with hard regs

2006-10-17 Thread Nikolaos Kavvadias
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Ian and fellow GCC'ers thanks for the info. Compiling "libgcc2.c" for MIPS (-mips1) works OK, I mean "divdi3" produces correct results. I'll get back to this in a couple of hours (at my home PC), but i think i had overseen something important her

Re: Proposed semantics for attributes in C++ (and in C?)

2006-10-17 Thread Mark Mitchell
Geoffrey Keating wrote: A typedef declaration which adds semantic attributes to a non-class type is valid, but again creates an entirely new type. >> It is invalid to do anything that would require either type_info or a mangled name for "Q", including using it as an argument to typeid, thowi

Re: generation of gt-*.h files

2006-10-17 Thread Mike Stump
On Oct 17, 2006, at 7:07 AM, Basile STARYNKEVITCH wrote: mv gcc/gt-tree-ssa-operands.h /tmp /usr/src/Lang/gcc/gcc/tree-ssa-operands.c:2571:34: error: gt-tree- ssa-operands.h: No such file or directory Patient: Doctor, it hurts when I hit myself in the head. Doctor: Don't do that. Why is th

Re: Expressions simplification statistic

2006-10-17 Thread Mike Stump
On Oct 17, 2006, at 8:05 AM, Dino Puller wrote: i'm looking for a statistic of how many expressions simplification may be possible on source code One way would be: http://www.cs.fit.edu/~mmahoney/compression/text.html though, this assumes a particular definition of simplification. For ot

Re: r117741

2006-10-17 Thread Geoffrey Keating
On 17/10/2006, at 11:45 AM, Jack Howarth wrote: Geoff, I noticed that the automake maintainers accepted your patch for fixing the multilib issues in automake. However they also seemed to indicate that there would be no more 1.9.x automake releases. Is the r117741 svn checkin related to th

Help with openGL

2006-10-17 Thread gbiaki
Hey folks, I have just downloaded the openGL libs through cygwin/setup.exe Included in the package are example programs which I would like to get running before continuing development. I'm no expert with gcc so I gues I'm probably doingsomething dumbass wrong. When I run make from within the exa

Re: r117741

2006-10-17 Thread Andrew Pinski
> On 17/10/2006, at 11:45 AM, Jack Howarth wrote: > > > Geoff, > >I noticed that the automake maintainers > > accepted your patch for fixing the multilib > > issues in automake. However they also seemed > > to indicate that there would be no more 1.9.x > > automake releases. > >Is the r117

Re: r117741

2006-10-17 Thread Geoffrey Keating
On 17/10/2006, at 1:39 PM, Andrew Pinski wrote: On 17/10/2006, at 11:45 AM, Jack Howarth wrote: Geoff, I noticed that the automake maintainers accepted your patch for fixing the multilib issues in automake. However they also seemed to indicate that there would be no more 1.9.x automake rel

Re: build error

2006-10-17 Thread Brian Dessent
Consider posting this kind of question to gcc-help@ instead. [EMAIL PROTECTED] wrote: > I just ran these commands: > > svn -q checkout svn://gcc.gnu.org/svn/gcc/trunk gcc > mkdir builddir > cd builddir > CFLAGS="-g" ../gcc/configure --enable-languages=c,c++ --enable-checking \ > --disable-boot

Re: r117741

2006-10-17 Thread Jack Howarth
Geoff, Should gcc/doc/install.texi be changed now to require automake version 1.10 or later rather than the current 1.9.3? Jack On Tue, Oct 17, 2006 at 12:36:21PM -0700, Geoffrey Keating wrote: > > Hi Jack, > > I believe all this was covered in my message to gcc-patches re

Re: Help with openGL

2006-10-17 Thread Mike Stump
On Oct 17, 2006, at 1:32 PM, gbiaki wrote: I have just downloaded the openGL libs through cygwin/setup.exe Wrong list. Try the cygwin list instead. Sent from the gcc - Dev mailing list archive at Nabble.com. :-(

How can I put gcc on NCR MP-RAS with no ncr compiler?

2006-10-17 Thread Saul Krasny
Hi, I need to put up a cc development environment on an MCR SVR4 MP RAS unix. The machines I have don't have any c compiler except the hidden one the os build uses. How can I go about this? Is there a place to download a prebuilt version. (What else will I need? for example make) Any help

Re: r117741

2006-10-17 Thread Joseph S. Myers
On Tue, 17 Oct 2006, Jack Howarth wrote: > Geoff, > Should gcc/doc/install.texi be changed now to require > automake version 1.10 or later rather than the current > 1.9.3? Upgrading the version of automake used will require upgrading the version of autoconf used. Because of the changes in i

Re: r117741

2006-10-17 Thread Jack Howarth
Geoff, The repost answers my questions. I was wondering if the changes required the new automake and if so whether they could be undone if someone regenerated those configure files with a version of automake before 1.10? It would appear that's not the case. Jack

98, it is! (was: C++ PATCH: PR 28261)

2006-10-17 Thread Gerald Pfeifer
On Tue, 17 Oct 2006, Mark Mitchell wrote: > This patch fixes PR c++/28261, an ICE-on-invalid when an > enum-definition appeared in an constructor parmeter declaration. Unless I'm mistaken, this means we are down to less than 100 serious regressions! (Richi has been giving me the current number t

Re: r117741

2006-10-17 Thread Geoffrey Keating
On 17/10/2006, at 3:27 PM, Jack Howarth wrote: Geoff, Should gcc/doc/install.texi be changed now to require automake version 1.10 or later rather than the current 1.9.3? No. Jack On Tue, Oct 17, 2006 at 12:36:21PM -0700, Geoffrey Keating wrote: Hi Jack, I believe

Re: How can I put gcc on NCR MP-RAS with no ncr compiler?

2006-10-17 Thread Mike Stump
On Oct 17, 2006, at 3:12 PM, Saul Krasny wrote: I need to put up a cc development environment on an MCR SVR4 MP RAS unix. The machines I have don't have any c compiler except the hidden one the os build uses. How can I go about this? Build a cross compiler. See the web site on how to buil

Donna Arellano wrote:

2006-10-17 Thread Donna Arellano
hi Donna i hope this is your mailbox. I was pleased to meet you the other day. I expect you was excited about New York. So much so much happening all the time, lots of great opportunities. And speaking of opportunities, the deal I was speaking you about other day embraces a company known as

GCC 4.2/4.3 Status Report (2006-10-17)

2006-10-17 Thread Mark Mitchell
As Gerald noticed, there are now fewer than 100 serious regressions open against mainline, which means that we've met the criteria for creating the 4.2 release branch. (We still have 17 P1s, so we've certainly got some work left to do before creating a 4.2 release, and I hope people will conti

Why does GCC allow '$' character in variable and function names?

2006-10-17 Thread Sajish V
I think that C does not allow special characters ( '~' '!' '@' '#' '$' '%' '^' '&' '*' ) in variable and function names. My knowledge is purely based on the books that I have been reading to learn C. To verify this when I tried to compile a C program using GCC with '$' in variable names and fun

Re: Why does GCC allow '$' character in variable and function names?

2006-10-17 Thread Ian Lance Taylor
Sajish V <[EMAIL PROTECTED]> writes: > I think that C does not allow special characters ( '~' '!' '@' '#' '$' '%' > '^' '&' '*' ) in variable and function names. My knowledge is purely based on > the books that I have been reading to learn C. > > To verify this when I tried to compile a C progr

expand_omp_parallel typo?

2006-10-17 Thread Marcin Dalecki
Looking at the function expand_omp_parallel in omp-low.c I have found the following line of code: bsi_insert_after (&si, t, TSI_SAME_STMT); Shouldn't this bee bsi_insert_after (&si, t, BSI_SAME_STMT); instead? Marcin Dalecki