+2004-08-01 Roger Sayle <roger@eyesopen.com>
+
+ * options.c (gfc_init_options): Don't warn about the use GNU
+ extensions by default.
+ (gfc_post_options): Warn about GNU extensions with -pedantic.
+ (gfc_handle_option): Don't warn about GNU extensions with -std=gnu.
+
2004-07-30 Richard Henderson <rth@redhat.com>
* trans-expr.c (gfc_conv_expr_reference): Create a CONST_DECL
gfc_option.allow_std = GFC_STD_F95_OBS | GFC_STD_F95_DEL
| GFC_STD_F2003_OBS | GFC_STD_F2003_DEL | GFC_STD_F2003 | GFC_STD_GNU;
gfc_option.warn_std = GFC_STD_F95_OBS | GFC_STD_F95_DEL
- | GFC_STD_F2003 | GFC_STD_GNU;
+ | GFC_STD_F2003;
return CL_F95;
}
flag_inline_trees = 2;
flag_inline_functions = 0;
}
-
+
+ /* If -pedantic, warn about the use of GNU extensions. */
+ if (pedantic && (gfc_option.allow_std & GFC_STD_GNU) != 0)
+ gfc_option.warn_std |= GFC_STD_GNU;
+
return false;
}
gfc_option.allow_std = GFC_STD_F95_OBS | GFC_STD_F95_DEL
| GFC_STD_F2003_OBS | GFC_STD_F2003_DEL | GFC_STD_F2003 | GFC_STD_GNU;
gfc_option.warn_std = GFC_STD_F95_OBS | GFC_STD_F95_DEL
- | GFC_STD_F2003_OBS | GFC_STD_F2003_DEL | GFC_STD_GNU;
+ | GFC_STD_F2003_OBS | GFC_STD_F2003_DEL;
break;
}