This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/87919] Incorrect fortran handling of -fno-* options


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87919

--- Comment #2 from Fritz Reese <foreese at gcc dot gnu.org> ---
Author: foreese
Date: Mon Dec  3 15:42:51 2018
New Revision: 266745

URL: https://gcc.gnu.org/viewcvs?rev=266745&root=gcc&view=rev
Log:
2018-12-03  Fritz Reese  <fritzoreese@gmail.com>
            Mark Eggleston <mark.eggleston@codethink.co.uk>

    PR fortran/87919

    gcc/fortran/ChangeLog:

        PR fortran/87919
        * options.c (SET_FLAG, SET_BITFLAG, SET_BITFLAG2): New macros.
        (set_dec_flags): Set/unset DEC and std flags according to value.
        (set_init_local_zero): New helper for -finit-local-zero flag group.
        (gfc_init_options): Fix disabling of init flags, array temporaries
        check, and dec flags when value is zero (from -fno-*).

    gcc/testsuite/ChangeLog:

        PR fortran/87919
        * gfortran.dg/array_temporaries_5.f90: New test.
        * gfortran.dg/dec_bitwise_ops_3.f90: Ditto.
        * gfortran.dg/dec_d_lines_3.f: Ditto.
        * gfortran.dg/dec_exp_4.f90: Ditto.
        * gfortran.dg/dec_exp_5.f90: Ditto.
        * gfortran.dg/dec_io_7.f90: Ditto.
        * gfortran.dg/dec_structure_24.f90: Ditto.
        * gfortran.dg/dec_structure_25.f90: Ditto.
        * gfortran.dg/dec_structure_26.f90: Ditto.
        * gfortran.dg/dec_structure_27.f90: Ditto.
        * gfortran.dg/dec_type_print_3.f90: Ditto.
        * gfortran.dg/init_flag_20.f90: Ditto.


Added:
    trunk/gcc/testsuite/gfortran.dg/array_temporaries_5.f90
    trunk/gcc/testsuite/gfortran.dg/dec_bitwise_ops_3.f90
    trunk/gcc/testsuite/gfortran.dg/dec_d_lines_3.f
    trunk/gcc/testsuite/gfortran.dg/dec_exp_4.f90
    trunk/gcc/testsuite/gfortran.dg/dec_exp_5.f90
    trunk/gcc/testsuite/gfortran.dg/dec_io_7.f90
    trunk/gcc/testsuite/gfortran.dg/dec_structure_24.f90
    trunk/gcc/testsuite/gfortran.dg/dec_structure_25.f90
    trunk/gcc/testsuite/gfortran.dg/dec_structure_26.f90
    trunk/gcc/testsuite/gfortran.dg/dec_structure_27.f90
    trunk/gcc/testsuite/gfortran.dg/dec_type_print_3.f90
    trunk/gcc/testsuite/gfortran.dg/init_flag_20.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/options.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]