Re: __LDBL_MAX__ exceeds range of 'long double'

2005-03-07 Thread James E Wilson
Jonathan Wakely wrote: Sorry for the late reply. It does indeed fix the problem I saw with 4.0 on FreeBSD, but I'm now seeing this with 3.4.4 20050228 too, so I think it's a regression introduced in the last 6 weeks or so. Is the same fix safe to apply to 3.4? Yes, it should also be safe for gcc-3.

Re: __LDBL_MAX__ exceeds range of 'long double'

2005-03-02 Thread Jonathan Wakely
On Mon, Feb 21, 2005 at 09:14:22PM -0800, James E Wilson wrote: > Jonathan Wakely wrote: > >$ gcc4x -c bug.c -pedantic -save-temps > >bug.c: In function 'main': > >bug.c:1: error: floating constant exceeds range of 'long double' > > This is easy enough to explain. Grepping for the message shows

Re: __LDBL_MAX__ exceeds range of 'long double'

2005-02-21 Thread James E Wilson
Jonathan Wakely wrote: $ gcc4x -c bug.c -pedantic -save-temps bug.c: In function 'main': bug.c:1: error: floating constant exceeds range of 'long double' This is easy enough to explain. Grepping for the message shows that it is printed from c-lex.c, and is only printed when -pedantic. -save-temp

Re: __LDBL_MAX__ exceeds range of 'long double'

2005-02-17 Thread Jonathan Wakely
On Thu, Feb 17, 2005 at 01:22:30PM +, Jonathan Wakely wrote: > > I'm hoping someone knows what this is due to, can't see anything in bugzilla. > > $ cat bug.c > long double f = __LDBL_MAX__; > $ gcc4x -c bug.c > $ gcc4x -c bug.c -pedantic -save-temps > bug.c: In function 'main': > bug.c:1: e

__LDBL_MAX__ exceeds range of 'long double'

2005-02-17 Thread Jonathan Wakely
I'm hoping someone knows what this is due to, can't see anything in bugzilla. $ cat bug.c long double f = __LDBL_MAX__; $ gcc4x -c bug.c $ gcc4x -c bug.c -pedantic -save-temps bug.c: In function 'main': bug.c:1: error: floating constant exceeds range of 'long double' I only get the error with -p