]> git.ipfire.org Git - thirdparty/gcc.git/commit
2018-08-10 Janus Weil <janus@gcc.gnu.org>
authorjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Aug 2018 14:08:53 +0000 (14:08 +0000)
committerjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Aug 2018 14:08:53 +0000 (14:08 +0000)
commit229c0ef777161ec5adfb71ef1611af502541ccda
tree11d80fa0ccfd814b4d9c2e52533951c7081beb60
parent4be4287a60f685ef8e050eceb34dd38ad8fd7f57
2018-08-10  Janus Weil  <janus@gcc.gnu.org>

PR fortran/57160
* invoke.texi (frontend-optimize): Mention short-circuiting.
* options.c (gfc_post_options): Disable -ffrontend-optimize with -Og.
* resolve.c (resolve_operator): Warn about short-circuiting only with
-ffrontend-optimize.
* trans-expr.c (gfc_conv_expr_op): Use short-circuiting operators only
with -ffrontend-optimize. Without that flag, make sure that both
operands are evaluated.

2018-08-10  Janus Weil  <janus@gcc.gnu.org>

PR fortran/57160
* gfortran.dg/actual_pointer_function_1.f90: Fix invalid test case.
* gfortran.dg/inline_matmul_23.f90: Add option "-ffrontend-optimize".
* gfortran.dg/short_circuiting_2.f90: New test case.
* gfortran.dg/short_circuiting_3.f90: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263471 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/invoke.texi
gcc/fortran/options.c
gcc/fortran/resolve.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/actual_pointer_function_1.f90
gcc/testsuite/gfortran.dg/inline_matmul_23.f90
gcc/testsuite/gfortran.dg/short_circuiting_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/short_circuiting_3.f90 [new file with mode: 0644]