Re: gcc-in-cxx branch created

2008-06-24 Thread Ross Smith
Ian Lance Taylor wrote: I expect that we will find it appropriate to use STL containers, as in for (Type::iterator p = container.begin(); p != container.end(); ++p) For loops like this I'd recommend using some kind of FOREACH macro (the functional equivalent of BOOST_FOREACH; this is easy t

Re: CFA expression failure

2008-06-24 Thread H.J. Lu
On Tue, Jun 24, 2008 at 08:40:18PM -0700, H.J. Lu wrote: > On Wed, Jun 25, 2008 at 10:02:40AM +0800, Joey Ye wrote: > > Daniel, > > > > We generate following DWARF2 instructions for stack alignment prologue. > > Basically we use expression to calculate CFA. But it run into some > > segfault in lib

Re: CFA expression failure

2008-06-24 Thread H.J. Lu
On Wed, Jun 25, 2008 at 10:02:40AM +0800, Joey Ye wrote: > Daniel, > > We generate following DWARF2 instructions for stack alignment prologue. > Basically we use expression to calculate CFA. But it run into some > segfault in libmudflap and libjava. Do you have any hints what's wrong? > > DW_CF

Re: gcc-in-cxx branch created

2008-06-24 Thread Ivan Levashew
Ian Lance Taylor пишет: Ivan Levashew <[EMAIL PROTECTED]> writes: Ian Lance Taylor пишет: The other major TODO is to work out the details of using STL containers with GC allocated objects. This means teaching gengtype how to generate code to traverse STL containers, which would then be used d

CFA expression failure

2008-06-24 Thread Ye, Joey
Daniel, We generate following DWARF2 instructions for stack alignment prologue. Basically we use expression to calculate CFA. But it run into some segfault in libmudflap and libjava. Do you have any hints what's wrong? DW_CFA_def_cfa: r4 (esp) ofs 4 DW_CFA_offset: r8 (eip) at cfa-4 DW_CFA_n

Re: how can I contribute ?

2008-06-24 Thread Diego Novillo
On Wed, Jun 25, 2008 at 03:36, Fabien Chêne <[EMAIL PROTECTED]> wrote: > How can I process ? Do I need GNU copyright assignment ? Do I > need SVN right access after approval ? Otherwise, can I send the > patch on gcc-patches so that someone else will commit it for me ? I suggest reading the intro

how can I contribute ?

2008-06-24 Thread Fabien Chêne
Hi! I would like to contribute to GCC. For now, I plan to fix bugs in the C++ FE. Later, I will be pleased to contribute to libstdc++. I have started to work on PR32519 and I've got a patch for it. How can I process ? Do I need GNU copyright assignment ? Do I need SVN right access after approval ?

Re: Cross-compiler for Alpha architecture

2008-06-24 Thread Yann E. MORIN
Ioannis, all, On Tuesday 24 June 2008 20:50:11 [EMAIL PROTECTED] wrote: > > I am trying to build a cross-compiler for an alphaev56-unknown-linux-gnu > > system, using crosstool-ng. The host is a i686-unknown-linux-gnu. [--SNIP--] > > I managed to get as far as described here: > > http://sourceware

gcc4.3.1 optimizations with restrict / -fargument-noalias / VLA

2008-06-24 Thread Markus
I've been experimenting which optimizations gcc is willing to apply depending on the kind of function arguments and compiler flags. Perhaps someone can comment on what strange behavior I experienced: If I understand the concept of C99's "restrict" qualifier for function arguments correctly,

Re: Cross-compiler for Alpha architecture

2008-06-24 Thread venetis
Hello again, Does no one have any idea about the problem I described in my previous message? Do you need more information to check it? If so, let me know. Thanks! Ioannis

Re: Some bugs in the GCC 4.3 release notes

2008-06-24 Thread Benjamin Kosnik
> > Also, the parallel mode page is somewhat unclear as to exactly _how_ > > to substitute the parallel algorithms "on a piecemeal basis." > > Let me add the libstdc++ list where the experts are. Usually, user > support questions should go to [EMAIL PROTECTED], not the general > lists which is a

Re: gcc-in-cxx branch created

2008-06-24 Thread Ian Lance Taylor
Bruno Haible <[EMAIL PROTECTED]> writes: > What is the level of C++ that "new developers" need to master, in order to > understand the code in general and to fix bugs in average areas? I don't know. I think we will have to find out. I expect that we will find it appropriate to use STL container

Re: [PATCH,rs6000] split up crtsavres into individual files

2008-06-24 Thread Nathan Froyd
On Tue, Jun 24, 2008 at 10:42:57AM +1000, Ben Elliston wrote: > On Mon, 2008-06-23 at 15:52 -0700, Andrew Pinski wrote: > > This introduced a few warnings while building libgcc for > > powerpc64-linux-gnu: > > I see lots and lots of these myself: > > Please fix! :-) I believe this patch fixes th

Re: gcc-in-cxx branch created

2008-06-24 Thread Tom Tromey
> "Kaveh" == Kaveh R GHAZI <[EMAIL PROTECTED]> writes: Kaveh> We could also extend -Wc++-compat to warn about more things, using C++ Kaveh> reserved keywords like "class" in C comes to mind. This isn't super hard, and IMO is worth doing (right now -Wc++-compat seems almost silly in its limita

Re: gcc-in-cxx branch created

2008-06-24 Thread Gabriel Dos Reis
On Tue, Jun 24, 2008 at 6:20 AM, Bruno Haible <[EMAIL PROTECTED]> wrote: > > What is the level of C++ that "new developers" need to master, in order to > understand the code in general and to fix bugs in average areas? > > Bruno What is covered in `Accelerated C++' by A. Koenig should be enough, I

Re: gcc-in-cxx branch created

2008-06-24 Thread Gabriel Dos Reis
On Tue, Jun 24, 2008 at 5:47 AM, Bruno Haible <[EMAIL PROTECTED]> wrote: > Gabriel Dos Reis wrote: >> There is a subset of C++ templates stable enough over the years, that can be >> used without fear, uncertainty and doubt. > > Absolutely. Can you specify this "usable" subset of C++ templates forma

Re: gcc-in-cxx branch created

2008-06-24 Thread Bruno Haible
Ian Lance Taylor wrote: > Whether we use C or C++, we need to try to ensure that interfaces are > easy to understand, that the code is reasonably modular, that the > internal documentation corresponds to the code, that it is possible > for new developers to write new passes and to fix bugs. Fully

Re: gcc-in-cxx branch created

2008-06-24 Thread Bruno Haible
Gabriel Dos Reis wrote: > There is a subset of C++ templates stable enough over the years, that can be > used without fear, uncertainty and doubt. Absolutely. Can you specify this "usable" subset of C++ templates formally? That would be valuable advice for maintainers. So that maintainers can deci

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-24 Thread Joseph S. Myers
On Tue, 24 Jun 2008, Hans-Peter Nilsson wrote: > There's background in > . Neither > Richi nor me could find the union-assignment "gcc extension" at > a glance, probably because it's not an *extension* but an > implementation-defined behavior, an

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-24 Thread Hans-Peter Nilsson
> Date: Tue, 24 Jun 2008 10:36:15 +0100 > From: Andrew Haley <[EMAIL PROTECTED]> > I thought cast-through-pointer-to-union didn't work and was already > disallowed; we've been around all this already. We also bless assignments through unions, and this could be argued as assigning through a union,

Re: RFA and RFC: tweak -fstrict-aliasing docs, provide pointer-cast example

2008-06-24 Thread Andrew Haley
Hans-Peter Nilsson wrote: > There's background in > . Neither > Richi nor me could find the union-assignment "gcc extension" at > a glance, probably because it's not an *extension* but an > implementation-defined behavior, and actually duly docume

Re: gcc-in-cxx branch created

2008-06-24 Thread Richard Guenther
On Tue, Jun 24, 2008 at 3:54 AM, Tom Tromey <[EMAIL PROTECTED]> wrote: >> "Ian" == Ian Lance Taylor <[EMAIL PROTECTED]> writes: > > Ian> The other major TODO is to work out the details of using STL > Ian> containers with GC allocated objects. This means teaching gengtype > Ian> how to generate

Re: gcc-in-cxx branch created

2008-06-24 Thread Gabriel Dos Reis
On Mon, Jun 23, 2008 at 6:14 AM, Bruno Haible <[EMAIL PROTECTED]> wrote: > Arnaud Charlet wrote: >> One possibility is to do what we do for Ada: have a style/coding checker >> built into the compiler (C++ front-end) as a special switch, and enable this >> switch during bootstrap, so that any such c

Re: gcc-in-cxx branch created

2008-06-24 Thread Gabriel Dos Reis
On Sun, Jun 22, 2008 at 6:24 PM, Bruno Haible <[EMAIL PROTECTED]> wrote: > Dear Ian, > > A comment regarding the GCC-in-C++ idea. In slide 16 you merely answer > > "C++ is too complicated!" > > with > > "Maintainers will ensure that gcc continues to be maintainable." > > C++ has, for example, 12