diff options
author | Tobias Burnus <burnus@net-b.de> | 2007-12-08 22:46:56 +0100 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2007-12-08 22:46:56 +0100 |
commit | 00a4618b3f221641d3c617a55bdd2d22f13ae44d (patch) | |
tree | 68c3248c30a91eca167c87f49666a1386e036a1c /gcc/fortran/target-memory.h | |
parent | 1b271c9ba316d536d177249070d510f74a06af3f (diff) | |
download | gcc-00a4618b3f221641d3c617a55bdd2d22f13ae44d.zip gcc-00a4618b3f221641d3c617a55bdd2d22f13ae44d.tar.gz gcc-00a4618b3f221641d3c617a55bdd2d22f13ae44d.tar.bz2 |
re PR fortran/34342 (BOZ extensions not diagnosed as such with -std=f95)
2007-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/34342
PR fortran/34345
PR fortran/18026
PR fortran/29471
* gfortran.texi (BOZ literal constants): Improve documentation
and adapt for BOZ changes.
* Make-lang.ini (resolve.o): Add target-memory.h dependency.
* gfortran.h (gfc_expr): Add is_boz flag.
* expr.c: Include target-memory.h.
(gfc_check_assign): Support transferring BOZ for real/cmlx.
* resolve.c: Include target-memory.h
(resolve_ordinary_assign): Support transferring BOZ for real/cmlx.
* target-memory.c (gfc_convert_boz): New function.
* target-memory.c (gfc_convert_boz): Add prototype.
* primary.c (match_boz_constant): Set is_boz, enable F95 error
also without -pedantic, and allow for Fortran 2003 BOZ.
(match_real_constant): Fix comment.
* simplify.c
* (simplify_cmplx,gfc_simplify_dble,gfc_simplify_float,
gfc_simplify_real): Support Fortran 2003 BOZ.
2007-12-08 Tobias Burnus <burnus@net-b.de>
PR fortran/34342
PR fortran/34345
PR fortran/18026
PR fortran/29471
* gfortran.dg/boz_8.f90: New.
* gfortran.dg/boz_9.f90: New.
* gfortran.dg/boz_10.f90: New.
* gfortran.dg/boz_7.f90: Update dg-warning.
* gfortran.dg/pr16433.f: Add dg-error.
* gfortan.dg/ibits.f90: Update dg-warning.
* gfortran.dg/unf_io_convert_1.f90: Update/delete dg-warning.
* gfortran.dg/unf_io_convert_2.f90: Ditto.
From-SVN: r130713
Diffstat (limited to 'gcc/fortran/target-memory.h')
-rw-r--r-- | gcc/fortran/target-memory.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/fortran/target-memory.h b/gcc/fortran/target-memory.h index 0bb47dd..ac1ba0a 100644 --- a/gcc/fortran/target-memory.h +++ b/gcc/fortran/target-memory.h @@ -24,6 +24,9 @@ along with GCC; see the file COPYING3. If not see #include "gfortran.h" +/* Convert a BOZ to REAL or COMPLEX. */ +void gfc_convert_boz (gfc_expr *, gfc_typespec *); + /* Return the size of an expression in its target representation. */ size_t gfc_target_expr_size (gfc_expr *); |