Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Edin Kadribasic
On Monday, Feb 23, 2004, at 00:23 Europe/Copenhagen, Sterling Hughes wrote: At 00:23 23/02/2004 +0100, Edin Kadribasic wrote: On Sunday, Feb 22, 2004, at 23:57 Europe/Copenhagen, Andi Gutmans wrote: Can someone check this on a non-intel CPU with a 32bit int? gcc 3.3 produces the same warning (t

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Sterling Hughes
> At 00:23 23/02/2004 +0100, Edin Kadribasic wrote: > > >On Sunday, Feb 22, 2004, at 23:57 Europe/Copenhagen, Andi Gutmans wrote: > >>Can someone check this on a non-intel CPU with a 32bit int? > > > >gcc 3.3 produces the same warning (this decimal constant is unsigned only > >in ISO C90) on Powe

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Andi Gutmans
At 00:23 23/02/2004 +0100, Edin Kadribasic wrote: On Sunday, Feb 22, 2004, at 23:57 Europe/Copenhagen, Andi Gutmans wrote: Can someone check this on a non-intel CPU with a 32bit int? gcc 3.3 produces the same warning (this decimal constant is unsigned only in ISO C90) on PowerPC G4. The code prod

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Edin Kadribasic
On Sunday, Feb 22, 2004, at 23:57 Europe/Copenhagen, Andi Gutmans wrote: Can someone check this on a non-intel CPU with a 32bit int? gcc 3.3 produces the same warning (this decimal constant is unsigned only in ISO C90) on PowerPC G4. The code produces no floating point exceptions though. c at the

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Michael Walter
Andi Gutmans wrote: At 23:49 22/02/2004 +0100, Michael Walter wrote: No, -2147483648 is the lower bound and 2147483647 is the upper bound for signed integers. -2147483648 = 1000 2147483647 = 0111 it still doesn't explain the FPE here. What d

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Michael Walter
Sterling Hughes wrote: George Schlossnagle wrote: On Feb 22, 2004, at 5:15 PM, Derick Rethans wrote: On Sun, 22 Feb 2004 [EMAIL PROTECTED] wrote: It's generating an idivl, which gives you an exception if the (signed) result is too large (a.k.a. integer overflow). Did you notice your compiler w

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Andi Gutmans
At 23:49 22/02/2004 +0100, Michael Walter wrote: No, -2147483648 is the lower bound and 2147483647 is the upper bound for signed integers. -2147483648 = 1000 2147483647 = 0111 it still doesn't explain the FPE here. What does explain it is th

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Sterling Hughes
> George Schlossnagle wrote: > > > >On Feb 22, 2004, at 5:15 PM, Derick Rethans wrote: > > > >>On Sun, 22 Feb 2004 [EMAIL PROTECTED] wrote: > >> > >>>It's generating an idivl, which gives you an exception if the (signed) > >>>result is too large (a.k.a. integer overflow). > >>> > >>>Did you notice

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Michael Walter
George Schlossnagle wrote: On Feb 22, 2004, at 5:15 PM, Derick Rethans wrote: On Sun, 22 Feb 2004 [EMAIL PROTECTED] wrote: It's generating an idivl, which gives you an exception if the (signed) result is too large (a.k.a. integer overflow). Did you notice your compiler warning "this decimal const

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Michael Walter
Derick Rethans wrote: >> [embarassing mistake] No, -2147483648 is the lower bound and 2147483647 is the upper bound for signed integers. Yes of course. -2147483648 = 1000 2147483647 = 0111 it still doesn't explain the FPE here. What does exp

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread George Schlossnagle
On Feb 22, 2004, at 5:15 PM, Derick Rethans wrote: On Sun, 22 Feb 2004 [EMAIL PROTECTED] wrote: It's generating an idivl, which gives you an exception if the (signed) result is too large (a.k.a. integer overflow). Did you notice your compiler warning "this decimal constant is unsigned only in IS

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Derick Rethans
On Sun, 22 Feb 2004 [EMAIL PROTECTED] wrote: > It's generating an idivl, which gives you an exception if the (signed) > result is too large (a.k.a. integer overflow). > > Did you notice your compiler warning "this decimal constant is unsigned > only in ISO C90"? ;) Yes I did > +2147483648 is: 10

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread cm
Derick Rethans wrote: > On Sun, 22 Feb 2004, Derick Rethans wrote: > > >>On Sun, 22 Feb 2004, Andi Gutmans wrote: >> >> >>>Huh? What platform crashes? Can you send reproducible C code? >> >>int main(void) { >>long a = -2147483648; >>long b = -1; >>long c; >> >>c = a % b; >>} > > > D

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Timm Friebe
On Sun, 2004-02-22 at 21:49, Derick Rethans wrote: > On Sun, 22 Feb 2004, Derick Rethans wrote: [...] > Does anybody has a clue *why* this gives a floating point error btw? Works fine with GCC 3.2.2, GCC 2.95.4 spits out "Internal compiler error in `float_signal', at toplev.c:2442", which I pasted

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Derick Rethans
On Sun, 22 Feb 2004, Michael Spector wrote: > On Sun, 22 Feb 2004, Derick Rethans wrote: > > > On Sun, 22 Feb 2004, Derick Rethans wrote: > > > > > On Sun, 22 Feb 2004, Andi Gutmans wrote: > > > > > > > Huh? What platform crashes? Can you send reproducible C code? > > > > > > int main(void) { > >

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Michael Spector
On Sun, 22 Feb 2004, Derick Rethans wrote: > On Sun, 22 Feb 2004, Derick Rethans wrote: > > > On Sun, 22 Feb 2004, Andi Gutmans wrote: > > > > > Huh? What platform crashes? Can you send reproducible C code? > > > > int main(void) { > > long a = -2147483648; > > long b = -1; > > long c

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2004-02-22 Thread Derick Rethans
On Sun, 22 Feb 2004, Derick Rethans wrote: > On Sun, 22 Feb 2004, Andi Gutmans wrote: > > > Huh? What platform crashes? Can you send reproducible C code? > > int main(void) { > long a = -2147483648; > long b = -1; > long c; > > c = a % b; > } Does anybody has a clue *why* this giv

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

2003-09-14 Thread Sebastian Bergmann
Zeev Suraski wrote: > zeev Sun Sep 14 13:37:01 2003 EDT > > Modified files: > /ZendEngine2 zend_operators.c > Log: > Commit 64-bit fixes to the standard operators > by Ard Biesheuvel ([EMAIL PROTECTED]) e:\home\php\php5\zend\zend_operators.c(672): error C2065: 'SIZEOF