Re: pragma-like warning turn off ?

2007-08-21 Thread Ian Lance Taylor
"Sunzir Deepur" <[EMAIL PROTECTED]> writes: > On 21 Aug 2007 21:19:07 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > > "Sunzir Deepur" <[EMAIL PROTECTED]> writes: > > > > > is there a way to turn off warnings for selective lines ? > > > > No. > > can you please explain me the complexity of

Re: pragma-like warning turn off ?

2007-08-21 Thread Sunzir Deepur
Hi Ian, On 21 Aug 2007 21:19:07 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: > "Sunzir Deepur" <[EMAIL PROTECTED]> writes: > > > is there a way to turn off warnings for selective lines ? > > No. can you please explain me the complexity of adding this feature ? if you'd to add it, how would

Re: recent troubles with float vectors & bitwise ops

2007-08-21 Thread tbp
Ian Lance Taylor wrote: What does it mean to do a bitwise-or of a floating point value? Apparently enough for a small vendor like Intel to propose such things as orps, andps, andnps, and xorps. So, that's what i feared... it was intentional. And now i guess the only sanctioned access to those o

Re: recent troubles with float vectors & bitwise ops

2007-08-21 Thread Ian Lance Taylor
tbp <[EMAIL PROTECTED]> writes: > vecop.cc:4: error: invalid operands of types 'float __vector__' and > 'float __vector__' to binary 'operator|' > vecop.cc:5: error: invalid operands of types 'float __vector__' and > 'float __vector__' to binary 'operator&' > vecop.cc:6: error: invalid operands of

recent troubles with float vectors & bitwise ops

2007-08-21 Thread tbp
Hello, # cat vecop.cc template T foo() { T a = { 0, 1, 2, 3 }, b = { 4, 5, 6, 7 }, c = a | b, d = c & b, e = d ^ b; return e; } int main() { typedef float v4sf_t __attribute__ ((__vector_size__ (16)));

Re: Implementing VMX128 AltiVec Variant

2007-08-21 Thread Tristan Gingold
On Aug 21, 2007, at 11:49 PM, Gordan Bobic wrote: These are the only place I found references to them, apart from the files in the gcc/ada directory: gcc/ada/g-alveop.adb gcc/ada/g-alveop.ads gcc/ada/g-alleve.adb gcc/ada/g-alleve.ads I ignored these - I am making a rash assumption here tha

Re: Implementing VMX128 AltiVec Variant

2007-08-21 Thread Ian Lance Taylor
Gordan Bobic <[EMAIL PROTECTED]> writes: > Just out of interest, I only downloaded the core, gcc and g++ tar > balls of the source. Why are the above ada files in there if they are > irrelevant for a C/C++ only build? I think the gcc tar ball actually includes everything. I think you just need t

Re: Implementing VMX128 AltiVec Variant

2007-08-21 Thread Gordan Bobic
Ian Lance Taylor wrote: Gordan Bobic <[EMAIL PROTECTED]> writes: These are the only place I found references to them, apart from the files in the gcc/ada directory: gcc/ada/g-alveop.adb gcc/ada/g-alveop.ads gcc/ada/g-alleve.adb gcc/ada/g-alleve.ads I ignored these - I am making a rash assumpt

Re: Implementing VMX128 AltiVec Variant

2007-08-21 Thread Ian Lance Taylor
Gordan Bobic <[EMAIL PROTECTED]> writes: > These are the only place I found references to them, apart from the > files in the gcc/ada directory: > > gcc/ada/g-alveop.adb > gcc/ada/g-alveop.ads > gcc/ada/g-alleve.adb > gcc/ada/g-alleve.ads > > I ignored these - I am making a rash assumption here

Implementing VMX128 AltiVec Variant

2007-08-21 Thread Gordan Bobic
Hi, For those of you who don't know, VMX128 is a slightly modified version of VMX (AltiVec) in the Xenon processor (i.e. XBox 360). I'm trying to implement support for this in GCC. The principal difference that makes -maltivec not work is that some VMX instructions are missing. Namely, the f

Constant multidimensional array pointers inside a class

2007-08-21 Thread Jay L. T. Cornwall
Hi, The subject is quite a mouthful, so here is the gist of what I'm trying to do: class MyClass { public: MyClass(float *arr1D, const int width, const int comps) : _arr3D((float (*)[width][comps])arr1D) {} protected: const float (*const _arr3D)[???][???]; }; The idea is to pass in a fla

Fwd: Re: Why is building a cross compiler "out-of-the-box" always broken?

2007-08-21 Thread Segher Boessenkool
(Stephen typoed the gcc address, forwarding) From: Segher Boessenkool <[EMAIL PROTECTED]> Date: 21 augustus 2007 17:10:30 GMT+02:00 To: "Stephen M. Kenton" <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: Re: Why is building a cross compiler "out-of-the-box" always broken? I got 17 "minim