]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/primary.cc
re PR fortran/34342 (BOZ extensions not diagnosed as such with -std=f95)
authorTobias Burnus <burnus@net-b.de>
Sat, 8 Dec 2007 21:46:56 +0000 (22:46 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Sat, 8 Dec 2007 21:46:56 +0000 (22:46 +0100)
commit00a4618b3f221641d3c617a55bdd2d22f13ae44d
tree68c3248c30a91eca167c87f49666a1386e036a1c
parent1b271c9ba316d536d177249070d510f74a06af3f
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
19 files changed:
gcc/fortran/ChangeLog
gcc/fortran/Make-lang.in
gcc/fortran/expr.c
gcc/fortran/gfortran.h
gcc/fortran/gfortran.texi
gcc/fortran/primary.c
gcc/fortran/resolve.c
gcc/fortran/simplify.c
gcc/fortran/target-memory.c
gcc/fortran/target-memory.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/boz_10.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/boz_7.f90
gcc/testsuite/gfortran.dg/boz_8.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/boz_9.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/ibits.f90
gcc/testsuite/gfortran.dg/pr16433.f
gcc/testsuite/gfortran.dg/unf_io_convert_1.f90
gcc/testsuite/gfortran.dg/unf_io_convert_2.f90