Re: Size difference in base class between GCC releases

2012-08-27 Thread Jonathan Wakely
On 27 August 2012 21:16, Paul Koning wrote: > > On Aug 27, 2012, at 4:05 PM, Gabriel Dos Reis wrote: >> >> Is this message >> >> http://gcc.gnu.org/ml/gcc/2002-08/msg00874.html >> >> relevant to your case? >> >> -- Gaby > > Yes, that looks like the exact case. And the mail thread seem

Re: Size difference in base class between GCC releases

2012-08-27 Thread Jonathan Wakely
On 27 August 2012 20:49 Paul Koning wrote: > > On Aug 27, 2012, at 3:33 PM, Jonathan Wakely wrote: > >> On 27 August 2012 19:48, Paul_Koningwrote: >>> I'm doing some checking of data structure layouts in different releases of >>> our code -- which were produced by different releases of GCC (3.3.3

Re: Size difference in base class between GCC releases

2012-08-27 Thread Gabriel Dos Reis
On Mon, Aug 27, 2012 at 3:16 PM, wrote: > On Aug 27, 2012, at 4:05 PM, Gabriel Dos Reis wrote: > >> On Mon, Aug 27, 2012 at 1:48 PM, wrote: >>> I'm doing some checking of data structure layouts in different releases of >>> our code -- which were produced by different releases of GCC (3.3.3 vs.

Re: Size difference in base class between GCC releases

2012-08-27 Thread Paul_Koning
On Aug 27, 2012, at 4:05 PM, Gabriel Dos Reis wrote: > On Mon, Aug 27, 2012 at 1:48 PM, wrote: >> I'm doing some checking of data structure layouts in different releases of >> our code -- which were produced by different releases of GCC (3.3.3 vs. >> 4.5.4). >> >> One difference I'm seeing t

Re: Size difference in base class between GCC releases

2012-08-27 Thread Gabriel Dos Reis
On Mon, Aug 27, 2012 at 1:48 PM, wrote: > I'm doing some checking of data structure layouts in different releases of > our code -- which were produced by different releases of GCC (3.3.3 vs. > 4.5.4). > > One difference I'm seeing that is puzzling is in the handling of base > classes. Specifi

Re: Size difference in base class between GCC releases

2012-08-27 Thread Paul_Koning
On Aug 27, 2012, at 3:33 PM, Jonathan Wakely wrote: > On 27 August 2012 19:48, Paul_Koningwrote: >> I'm doing some checking of data structure layouts in different releases of >> our code -- which were produced by different releases of GCC (3.3.3 vs. >> 4.5.4). >> >> One difference I'm seeing t

Re: Size difference in base class between GCC releases

2012-08-27 Thread Jonathan Wakely
On 27 August 2012 19:48, Paul_Koningwrote: > I'm doing some checking of data structure layouts in different releases of > our code -- which were produced by different releases of GCC (3.3.3 vs. > 4.5.4). > > One difference I'm seeing that is puzzling is in the handling of base > classes. Specif

Re: Thoughts on Gengtype and Single Inheritance

2012-08-27 Thread Lawrence Crowl
On 8/27/12, Laurynas Biveinis wrote: > I don't have an opinion from the rest of compiler point of view, but > gengtype implementation-wise, it certainly looks doable. One minor > comment below - > >> GRAMMAR >> >> Support adding a second discriminator. This support is not for >> multiple inherita

Size difference in base class between GCC releases

2012-08-27 Thread Paul_Koning
I'm doing some checking of data structure layouts in different releases of our code -- which were produced by different releases of GCC (3.3.3 vs. 4.5.4). One difference I'm seeing that is puzzling is in the handling of base classes. Specifically, the case where a base class has padding at the

Re: C++ and gather-detailed-mem-stats

2012-08-27 Thread Michael Matz
Hi, On Fri, 24 Aug 2012, Diego Novillo wrote: > > void foo (int bar) __attribute__((add_location_pack)); > > > > that directs GNU C++ to add a __Gcc_call_location_pack typed > > argument at each call site (properly constructed of course)? > > I really like this idea. > > Couldn't we make it ev

Re: Question on calculating register pressure before ira pass

2012-08-27 Thread Vladimir Makarov
On 08/20/2012 05:00 AM, Bin.Cheng wrote: Hi, Currently I am working on improving hoist pass by calculating register pressure and using the info to guide hoist process. It works well and I will send a patch once I finish it. Sorry for the delay with the answer. Looking at the bigger picture, I b

Re: internal compiler error using lambda and this

2012-08-27 Thread Gerald Pfeifer
On Sun, 26 Aug 2012, Gerald Pfeifer wrote: > I tried this with a current snapshot of what will become GCC 4.8.0 > in several months, and now get this: > > $ cat x.cc > auto foo = [&](int a) { return a > this->b; }; > > $ g++ x.cc > x.cc:1:6: error: 'foo' does not name a type >auto foo

Re: internal compiler error using lambda and this

2012-08-27 Thread Florian Weimer
On 08/26/2012 01:09 AM, Gerald Pfeifer wrote: On Tue, 29 May 2012, Andreas Karrenbauer wrote: To whom it may concern: Please find a small code example which causes an internal compiler error with g++-4.7 (opensuse): Thanks for the report, Andreas. I tried this with a current snapshot of what

Re: Thoughts on Gengtype and Single Inheritance

2012-08-27 Thread Laurynas Biveinis
Lawrence - I don't have an opinion from the rest of compiler point of view, but gengtype implementation-wise, it certainly looks doable. One minor comment below - > GRAMMAR > > Support adding a second discriminator. This support is not for > multiple inheritance, but for single inheritance when