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.