[Patch, Fortran] Add Fortran 2008 obsolescent support for ENTRY

Tobias Burnus burnus@net-b.de
Thu Jun 24 10:44:00 GMT 2010


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.

Build and successfully regtested on x86-84-linux.
OK for the trunk?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: F2008-obs2.diff
Type: text/x-patch
Size: 9727 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100624/9251a79d/attachment.bin>


More information about the Gcc-patches mailing list