This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/14771] frontend doesn't record parentheses
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Feb 2006 18:31:44 -0000
- Subject: [Bug fortran/14771] frontend doesn't record parentheses
- References: <bug-14771-7283@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from tobi at gcc dot gnu dot org 2006-02-12 18:31 -------
Subject: Bug 14771
Author: tobi
Date: Sun Feb 12 18:31:40 2006
New Revision: 110894
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110894
Log:
fortran/
Backport r110819 and r110840 from the trunk
PR fortran/14771
* gfortran.h (gfc_intrinsic_op): Add INTRINSIC_PARENTHESES.
* dump-parse-tree (gfc_show_expr): Handle INTRINSIC_PARENTHESES.
* expr.c (simplify_intrinsic_op): Treat INTRINSIC_PARENTHESES as
if it were INTRINSIC_UPLUS.
* resolve.c (resolve_operator): Handle INTRINSIC_PARENTHESES.
* match.c (intrinsic_operators): Add INTRINSIC_PARENTHESES.
* matchexp.c (match_primary): Record parentheses surrounding
numeric expressions.
* module.c (intrinsics): Add INTRINSIC_PARENTHESES for module
dumping.
* trans-expr.c (gfc_conv_expr_op): Handle INTRINSIC_PARENTHESES.
PR fortran/14771
* arith.c (eval_intrinsic): Accept INTRINSIC_PARENTHESES.
* expr.c (check_intrinsic_op): Likewise.
* module.c (mio_expr): Likewise.
testsuite/
Backport r110819 and r110840 from the trunk
PR fortran/14771
* gfortran.dg/parens_1.f90: New.
* gfortran.dg/parens_2.f90: New.
* gfortran.dg/parens_3.f90: New.
* gfortran.dg/parens_4.f90: New.
* gfortran.dg/parens_5.f90: New.
Added:
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/parens_1.f90
- copied unchanged from r110819,
trunk/gcc/testsuite/gfortran.dg/parens_1.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/parens_2.f90
- copied unchanged from r110819,
trunk/gcc/testsuite/gfortran.dg/parens_2.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/parens_3.f90
- copied unchanged from r110819,
trunk/gcc/testsuite/gfortran.dg/parens_3.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/parens_4.f90
- copied unchanged from r110840,
trunk/gcc/testsuite/gfortran.dg/parens_4.f90
branches/gcc-4_1-branch/gcc/testsuite/gfortran.dg/parens_5.f90
- copied unchanged from r110840,
trunk/gcc/testsuite/gfortran.dg/parens_5.f90
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/arith.c
branches/gcc-4_1-branch/gcc/fortran/dump-parse-tree.c
branches/gcc-4_1-branch/gcc/fortran/expr.c
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/match.c
branches/gcc-4_1-branch/gcc/fortran/matchexp.c
branches/gcc-4_1-branch/gcc/fortran/module.c
branches/gcc-4_1-branch/gcc/fortran/resolve.c
branches/gcc-4_1-branch/gcc/fortran/trans-expr.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14771