[Patch, Fortran] Add Fortran 2008 obsolescent support for ENTRY
Jerry DeLisle
jvdelisle@verizon.net
Thu Jun 24 14:32:00 GMT 2010
On 06/24/2010 01:19 AM, Tobias Burnus wrote:
> On 06/24/2010 12:19 AM, Steve Kargl wrote:
>> On Wed, Jun 23, 2010 at 11:38:41PM +0200, Tobias Burnus wrote:
>>
>>> Fortran 2008 declares ENTRY as obsolescent. This patch adds the required
>>> diagnostics for -std=f2008; with -std=f95/f2003/gnu/legacy it is still
>>> supported - with -std=f2008 a warning is printed.
>>>
>>> Build and currently regtesting on x86-64-linux. If it succeeds:
>>>
>
> It didn't succeed...
>
>> +#define GFC_STD_F2008_OBS (1<<7) /* Obsolescent in F2008. */
>> +#define GFC_STD_F2008 (1<<7) /* New in F2008. */
>>
>> Shouldn't one of these be (1<<8)?
>>
> Well spotted! And indeed it should be "1<<8" - otherwise one gets
> warnings with -std=f2003 for F2008 constructs. However, this change is
> not enough. A check in libgfortran assumed that "-std=f2003< std_gnu"
> which is wrong for bit patterns. Fixed that one as well.
I wonder if there are other places where we did not use the std_gnu correctly
and we just don't see a problem yet. Several times in the past on IRC the
subject has come up about how to use that.
Jerry
Jerry
More information about the Gcc-patches
mailing list