Re: C++ constant expressions in __attribute__

2009-03-07 Thread Gabriel Dos Reis
On Sat, Mar 7, 2009 at 4:45 PM, Joseph S. Myers wrote: > On Sat, 7 Mar 2009, Gabriel Dos Reis wrote: > >> May I forward your message to the CCC++ CWG? > > Certainly, it is a public message, as are all the previous discussions it > references.  I have not tried to engage with the C++ committee dire

Re: C++ constant expressions in __attribute__

2009-03-07 Thread Joseph S. Myers
On Sat, 7 Mar 2009, Gabriel Dos Reis wrote: > May I forward your message to the CCC++ CWG? Certainly, it is a public message, as are all the previous discussions it references. I have not tried to engage with the C++ committee directly since I am not a C++ expert and keeping up with C developm

Re: C++ constant expressions in __attribute__

2009-03-07 Thread Gabriel Dos Reis
May I forward your message to the CCC++ CWG? -- Gaby

Re: C++ constant expressions in __attribute__

2009-03-07 Thread Joseph S. Myers
On Sat, 7 Mar 2009, Gabriel Dos Reis wrote: > > (Not that I am impressed with the incompatibilities of C++0x attributes > > with existing practice or their ignoring all the hard issues with > > attributes that have actually come up in GCC implementation experience - > > along with the proposals ha

Re: C++ constant expressions in __attribute__

2009-03-07 Thread Gabriel Dos Reis
On Wed, Mar 4, 2009 at 9:37 AM, Joseph S. Myers wrote: > On Wed, 4 Mar 2009, Piotr Wyderski wrote: > >> Hello, >> >> Is it possible to allow C++ constant expressions (currently static const, >> and C++0x constexpr in the future) to be used as __attribute__ parameters >> in the upcomming version of

Re: C++ constant expressions in __attribute__

2009-03-04 Thread Joseph S. Myers
On Wed, 4 Mar 2009, Piotr Wyderski wrote: > Hello, > > Is it possible to allow C++ constant expressions (currently static const, > and C++0x constexpr in the future) to be used as __attribute__ parameters > in the upcomming version of GCC? In my code I have the following construction: What does

Re: C++ constant expressions in __attribute__

2009-03-04 Thread Piotr Wyderski
H.J. Lu wrote: > You can use __BIGGEST_ALIGNMENT__ for that purpose. Yes, _for that purpose_ it works perfectly. However, I would also like be able to align fields to cache line size. I have a set of C++ template cache geometry descriptors which provide a constant by the name of line_size: names

Re: C++ constant expressions in __attribute__

2009-03-04 Thread H.J. Lu
On Wed, Mar 4, 2009 at 6:14 AM, Piotr Wyderski wrote: > Hello, > > Is it possible to allow C++ constant expressions (currently static const, > and C++0x constexpr in the future) to be used as __attribute__ parameters > in the upcomming version of GCC? In my code I have the following construction:

C++ constant expressions in __attribute__

2009-03-04 Thread Piotr Wyderski
Hello, Is it possible to allow C++ constant expressions (currently static const, and C++0x constexpr in the future) to be used as __attribute__ parameters in the upcomming version of GCC? In my code I have the following construction: namespace simd { static const std::size_t vector_si