Re: wide-int, fortran

2014-01-07 Thread Richard Biener
On Sat, Jan 4, 2014 at 9:13 PM, Steve Kargl wrote: > On Wed, Jan 01, 2014 at 07:49:16PM -0800, Mike Stump wrote: >> On Nov 23, 2013, at 12:16 PM, Steve Kargl >> wrote: >>> On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: Richi has asked the we break the wide-int patch so that the

Re: wide-int, fortran

2014-01-04 Thread Steve Kargl
On Wed, Jan 01, 2014 at 07:49:16PM -0800, Mike Stump wrote: > On Nov 23, 2013, at 12:16 PM, Steve Kargl > wrote: >> On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: >>> Richi has asked the we break the wide-int patch so that the >>> individual port and front end maintainers can review

Re: wide-int, fortran

2014-01-01 Thread Mike Stump
On Nov 23, 2013, at 12:16 PM, Steve Kargl wrote: > On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: >> Richi has asked the we break the wide-int patch so that the individual port >> and front end maintainers can review their parts without have to go through >> the entire patch.Th

Re: wide-int, fortran

2013-11-24 Thread Kenneth Zadeck
On 11/24/2013 08:38 AM, N.M. Maclaren wrote: On Nov 24 2013, Kenneth Zadeck wrote: Thank you for your posting. That certainly clears up my understanding. If there is a clear description of the subset of C++ that the front-end is allowed to use, a pointer to it for the benefit of Fortran/C/Ad

Re: wide-int, fortran

2013-11-24 Thread Steven Bosscher
On Sun, Nov 24, 2013 at 2:38 PM, N.M. Maclaren wrote: > The main problem is that integer constant expressions in C are limited to > the built-in operators, of which the only tricky ones are division and > remainder (and, occasionally, multiplication) - see C11 6.6#3. Fortran > is not so limited, a

Re: wide-int, fortran

2013-11-24 Thread Tobias Burnus
Am 24.11.2013 13:56, schrieb Kenneth Zadeck: On 11/24/2013 05:50 AM, Tobias Burnus wrote: - if (hi || low < 0 ... + if (((!as || as->type != AS_ASSUMED_RANK) + && wi::geu_p (bound, GFC_TYPE_ARRAY_RANK (TREE_TYPE (desc + || wi::gtu_p (bound, GFC_MAX_DIMENSIONS)) gfc_error ("'dim' argument of

Re: wide-int, fortran

2013-11-24 Thread Tobias Schlüter
Hi, On 2013-11-24 22:38, N.M. Maclaren wrote: The main problem is that integer constant expressions in C are limited to the built-in operators, of which the only tricky ones are division and remainder (and, occasionally, multiplication) - see C11 6.6#3. Fortran is not so limited, and there are

Re: wide-int, fortran

2013-11-24 Thread N.M. Maclaren
On Nov 24 2013, Kenneth Zadeck wrote: Thank you for your posting. That certainly clears up my understanding. If there is a clear description of the subset of C++ that the front-end is allowed to use, a pointer to it for the benefit of Fortran/C/Ada/whatever people would be useful. But that's

Re: wide-int, fortran

2013-11-24 Thread Kenneth Zadeck
On 11/24/2013 05:50 AM, Tobias Burnus wrote: Mike Stump wrote: Richi has asked the we break the wide-int patch so that the individual port and front end maintainers can review their parts without have to go through the entire patch.This patch covers the fortran front end. Nice clean up.

Re: wide-int, fortran

2013-11-24 Thread Kenneth Zadeck
On 11/24/2013 05:16 AM, N.M. Maclaren wrote: On Nov 23 2013, Andrew Pinski wrote: On Sat, Nov 23, 2013 at 12:16 PM, Steve Kargl wrote: On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: Richi has asked the we break the wide-int patch so that the individual port and front end maint

Re: wide-int, fortran

2013-11-24 Thread Tobias Burnus
Mike Stump wrote: Richi has asked the we break the wide-int patch so that the individual port and front end maintainers can review their parts without have to go through the entire patch.This patch covers the fortran front end. Nice clean up. The new class looks much cleaner as it avoids

Re: wide-int, fortran

2013-11-24 Thread N.M. Maclaren
On Nov 23 2013, Andrew Pinski wrote: On Sat, Nov 23, 2013 at 12:16 PM, Steve Kargl wrote: On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: Richi has asked the we break the wide-int patch so that the individual port and front end maintainers can review their parts without have to

Re: wide-int, fortran

2013-11-23 Thread Andreas Schwab
Steve Kargl writes: > On Sat, Nov 23, 2013 at 01:31:04PM -0800, Andrew Pinski wrote: >> On Sat, Nov 23, 2013 at 12:16 PM, Steve Kargl >> wrote: >> > On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: >> >> Richi has asked the we break the wide-int patch so that the individual >> >> por

Re: wide-int, fortran

2013-11-23 Thread Andrew Pinski
On Sat, Nov 23, 2013 at 4:26 PM, Steve Kargl wrote: > On Sat, Nov 23, 2013 at 01:31:04PM -0800, Andrew Pinski wrote: >> On Sat, Nov 23, 2013 at 12:16 PM, Steve Kargl >> wrote: >> > On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: >> >> Richi has asked the we break the wide-int patch so

Re: wide-int, fortran

2013-11-23 Thread Steve Kargl
On Sat, Nov 23, 2013 at 01:31:04PM -0800, Andrew Pinski wrote: > On Sat, Nov 23, 2013 at 12:16 PM, Steve Kargl > wrote: > > On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: > >> Richi has asked the we break the wide-int patch so that the individual > >> port and front end maintainers c

Re: wide-int, fortran

2013-11-23 Thread Andrew Pinski
On Sat, Nov 23, 2013 at 1:31 PM, Andrew Pinski wrote: > On Sat, Nov 23, 2013 at 12:16 PM, Steve Kargl > wrote: >> On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: >>> Richi has asked the we break the wide-int patch so that the individual port >>> and front end maintainers can review t

Re: wide-int, fortran

2013-11-23 Thread Andrew Pinski
On Sat, Nov 23, 2013 at 12:16 PM, Steve Kargl wrote: > On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: >> Richi has asked the we break the wide-int patch so that the individual port >> and front end maintainers can review their parts without have to go through >> the entire patch.

Re: wide-int, fortran

2013-11-23 Thread Steve Kargl
On Sat, Nov 23, 2013 at 11:21:21AM -0800, Mike Stump wrote: > Richi has asked the we break the wide-int patch so that the individual port > and front end maintainers can review their parts without have to go through > the entire patch.This patch covers the fortran front end. > > Ok? > > +