2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org> * arith.c (gfc_convert_integer, gfc_convert_real, gfc_convert_complex): Move to ... * primary.c (convert_integer, convert_real, convert_complex): ... here. Rename and make static functions. (match_integer_constant): Use convert_integer (match_real_constant): Use convert_real. (match_complex_constant: Use convert_complex. * arith.h (gfc_convert_integer, gfc_convert_real, gfc_convert_complex): Remove prototypes. * array.c (match_array_cons_element): A BOZ cannot be a data statement value. Jump to a common exit point. * check.c (gfc_invalid_boz): New function. Emit error or warning for a BOZ in an invalid context. (boz_args_check): Move to top of file to prevent need of forward declaration. (is_boz_constant): New function. Check that BOZ expr is constant. (gfc_b z2real): New function. In-place conversion of BOZ literal constant to REAL in accordance to F2018. (gfc_boz2int): New function. In-place conversion of BOZ literal onstant to INTEGER in accordance to F2018. (gfc_check_achar, gfc_check_char, gfc_check_float): Use gfc_invalid_boz. Convert BOZ as needed. (gfc_check_bge_bgt_ble_blt): Enforce F2018 requirements on BGE, BGT, BLE, and BLT intrinsic functions. (gfc_check_cmplx): Re-organize to check kind, if present, first. Convert BOZ real and/or imaginary parts as needed in accordance to F2018. (gfc_check_complex): Use gfc_invalid_boz. Convert BOZ as needed. (gfc_check_dcmplx, gfc_check_dble ): Convert BOZ as needed. (gfc_check_dshift): Make dshift[lr] conform to F2018 standard. gfc_check_float (gfc_expr *a) (gfc_check_iand_ieor_ior): Make IAND, IEOR, and IOR conform to F2018 standard. (gfc_check_int): Conform to F2018 standard. (gfc_check_intconv): Deprecate SHORT and LONG aliases for INT2 and INT. Simply return for a BOZ argument. See gfc_simplify_intconv. (gfc_check_merge_bits): Make MERGE_BITS conform to Fortran 2018 standard. (gfc_check_real): Remove incorrect comment. Check kind, if present, first. Simply return for a BOZ argument. See gfc_simplify_real. (gfc_check_and): Re-do error handling for BOZ arguments. Remove special casing ts.type != BT_INTEGER or BT_LOGICAL. * decl.c (match_old_style_init): Check for BOZ in old-style initialization. Issue error or warning depending on -fallow-invalid-boz option. Issue error if variable is not an INTEGER or REAL and the value is BOZ. * expr.c (gfc_copy_expr): Copy a BT_BOZ gfc_expr. (gfc_check_assign): Re-do error handling for a BOZ in an assignment statement. Do in-place conversion of RHS based on LHS type of INTEGER or REAL. * gfortran.h (gfc_expr): Add a boz component. Remove is_boz component. (gfc_boz2int, gfc_boz2real, gfc_invalid_boz): New prototypes. * interface.c (gfc_extend_assign): Guard against replacing an intrinsic involving a BOZ literal constant on RHS. * invoke.texi: Doument -fallow-invalid-boz. * lang.opt: New option. -fallow-invalid-boz. * libgfortran.h (bt): Elevate BOZ to a basic type. * misc.c (gfc_basic_typename, gfc_typename): Translate BT_BOZ to BOZ. * primary.c (convert_integer, convert_real, convert_complex): to here. Rename and make static functions. * primary.c(match_boz_constant): Rewrite parsing of a BOZ. Re-do error handling. Deprecate 'X' for hexidecimal and postfix notation. Use -fallow-invalid-boz and gfc_invalid_boz to accept deprecated code. * resolve.c (resolve_ordinary_assign): Rework a RHS that is a BOZ literal constant. Use gfc_invalid_boz to allow previous nonstandard behavior. Remove range checking of BOZ conversion. * simplify.c (convert_boz): Remove function. (simplify_cmplx): Remove conversion of BOZ constants, because conversion is done in gfc_check_cmplx. (gfc_simplify_float): Remove conversion of BOZ constant, because conversion is done in gfc_check_float. (simplify_intconv): Use gfc_boz2int to convert BOZ to INTEGER. Remove range checking for BOZ conversion. (gfc_simplify_real): Use k, if present, to determine kind. Convert BOZ to REAL. Remove range checking for BOZ conversion. target-memory.c (gfc_convert_boz): Rewrite to deal with convert of a BOZ to a REAL value. 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org> * gfortran.dg/achar_5.f90: Fix for new BOZ handling. * arithmetic_overflow_1.f90: Ditto. * gfortran.dg/boz_11.f90: Ditto. * gfortran.dg/boz_12.f90: Ditto. * gfortran.dg/boz_4.f90: Ditto. * gfortran.dg/boz_5.f90: Ditto. * gfortran.dg/boz_6.f90: Ditto. * gfortran.dg/boz_7.f90: Ditto. * gfortran.dg/boz_8.f90: Ditto. * gfortran.dg/dec_structure_6.f90: Ditto. * gfortran.dg/dec_union_1.f90: Ditto. * gfortran.dg/dec_union_2.f90: Ditto. * gfortran.dg/dec_union_5.f90: Ditto. * gfortran.dg/dshift_3.f90: Ditto. * gfortran.dg/gnu_logical_2.f90: Ditto. * gfortran.dg/int_conv_1.f90: Ditto. * gfortran.dg/ishft_1.f90: Ditto. * gfortran.dg/nan_4.f90: Ditto. * gfortran.dg/no_range_check_3.f90: Ditto. * gfortran.dg/pr16433.f: Ditto. * gfortran.dg/pr44491.f90: Ditto. * gfortran.dg/pr58027.f90: Ditto. * gfortran.dg/pr81509_2.f90: Ditto. * gfortran.dg/unf_io_convert_1.f90: Ditto. * gfortran.dg/unf_io_convert_2.f90: Ditto. * gfortran.fortran-torture/execute/intrinsic_fraction_exponent.f90: Ditto. * gfortran.fortran-torture/execute/intrinsic_mvbits.f90: Ditto. * gfortran.fortran-torture/execute/intrinsic_nearest.f90: Ditto. * gfortran.fortran-torture/execute/seq_io.f90: Ditto. * gfortran.dg/gnu_logical_1.F: Delete test. * gfortran.dg/merge_bits_3.f90: New test. * gfortran.dg/merge_bits_3.f90: Ditto. * gfortran.dg/boz_int.f90: Ditto. * gfortran.dg/boz_bge.f90: Ditto. * gfortran.dg/boz_complex_1.f90: Ditto. * gfortran.dg/boz_complex_2.f90: Ditto. * gfortran.dg/boz_complex_3.f90: Ditto. * gfortran.dg/boz_dble.f90: Ditto. * gfortran.dg/boz_dshift_1.f90: Ditto. * gfortran.dg/boz_dshift_2.f90: Ditto. * gfortran.dg/boz_float_1.f90: Ditto. * gfortran.dg/boz_float_2.f90: Ditto. * gfortran.dg/boz_float_3.f90: Ditto. * gfortran.dg/boz_iand_1.f90: Ditto. * gfortran.dg/boz_iand_2.f90: Ditto. 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org> * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage * testsuite/libgomp.fortran/reduction5.f90: Ditto. From-SVN: r273747
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| appendix-a | Loading commit data... | |
| examples-4 | Loading commit data... | |
| affinity1.f90 | Loading commit data... | |
| affinity2.f90 | Loading commit data... | |
| aligned1.f03 | Loading commit data... | |
| alloc-comp-1.f90 | Loading commit data... | |
| alloc-comp-2.f90 | Loading commit data... | |
| alloc-comp-3.f90 | Loading commit data... | |
| allocatable1.f90 | Loading commit data... | |
| allocatable10.f90 | Loading commit data... | |
| allocatable11.f90 | Loading commit data... | |
| allocatable12.f90 | Loading commit data... | |
| allocatable2.f90 | Loading commit data... | |
| allocatable3.f90 | Loading commit data... | |
| allocatable4.f90 | Loading commit data... | |
| allocatable5.f90 | Loading commit data... | |
| allocatable6.f90 | Loading commit data... | |
| allocatable7.f90 | Loading commit data... | |
| allocatable8.f90 | Loading commit data... | |
| allocatable9.f90 | Loading commit data... | |
| associate1.f90 | Loading commit data... | |
| associate2.f90 | Loading commit data... | |
| associate3.f90 | Loading commit data... | |
| async_io_1.f90 | Loading commit data... | |
| async_io_2.f90 | Loading commit data... | |
| async_io_3.f90 | Loading commit data... | |
| async_io_4.f90 | Loading commit data... | |
| async_io_5.f90 | Loading commit data... | |
| async_io_6.f90 | Loading commit data... | |
| async_io_7.f90 | Loading commit data... | |
| async_io_8.f90 | Loading commit data... | |
| cancel-do-1.f90 | Loading commit data... | |
| cancel-do-2.f90 | Loading commit data... | |
| cancel-parallel-1.f90 | Loading commit data... | |
| cancel-parallel-3.f90 | Loading commit data... | |
| cancel-sections-1.f90 | Loading commit data... | |
| cancel-taskgroup-2.f90 | Loading commit data... | |
| character1.f90 | Loading commit data... | |
| character2.f90 | Loading commit data... | |
| collapse1.f90 | Loading commit data... | |
| collapse2.f90 | Loading commit data... | |
| collapse3.f90 | Loading commit data... | |
| collapse4.f90 | Loading commit data... | |
| condinc1.f | Loading commit data... | |
| condinc1.inc | Loading commit data... | |
| condinc2.f | Loading commit data... | |
| condinc3.f90 | Loading commit data... | |
| condinc4.f90 | Loading commit data... | |
| crayptr1.f90 | Loading commit data... | |
| crayptr2.f90 | Loading commit data... | |
| crayptr3.f90 | Loading commit data... | |
| declare-simd-1.f90 | Loading commit data... | |
| declare-simd-2.f90 | Loading commit data... | |
| declare-simd-3.f90 | Loading commit data... | |
| declare-simd-4.f90 | Loading commit data... | |
| declare-target-1.f90 | Loading commit data... | |
| declare-target-2.f90 | Loading commit data... | |
| depend-1.f90 | Loading commit data... | |
| depend-2.f90 | Loading commit data... | |
| depend-3.f90 | Loading commit data... | |
| display-affinity-1.f90 | Loading commit data... | |
| do1.f90 | Loading commit data... | |
| do2.f90 | Loading commit data... | |
| do_concurrent_5.f90 | Loading commit data... | |
| doacross1.f90 | Loading commit data... | |
| doacross2.f90 | Loading commit data... | |
| doacross3.f90 | Loading commit data... | |
| fortran.exp | Loading commit data... | |
| jacobi.f | Loading commit data... | |
| lastprivate1.f90 | Loading commit data... | |
| lastprivate2.f90 | Loading commit data... | |
| lib1.f90 | Loading commit data... | |
| lib2.f | Loading commit data... | |
| lib3.f | Loading commit data... | |
| lib4.f90 | Loading commit data... | |
| lock-1.f90 | Loading commit data... | |
| lock-2.f90 | Loading commit data... | |
| nested1.f90 | Loading commit data... | |
| nestedfn1.f90 | Loading commit data... | |
| nestedfn2.f90 | Loading commit data... | |
| nestedfn3.f90 | Loading commit data... | |
| nestedfn4.f90 | Loading commit data... | |
| nestedfn5.f90 | Loading commit data... | |
| omp_atomic1.f90 | Loading commit data... | |
| omp_atomic2.f90 | Loading commit data... | |
| omp_atomic3.f90 | Loading commit data... | |
| omp_atomic4.f90 | Loading commit data... | |
| omp_atomic5.f90 | Loading commit data... | |
| omp_cond1.f | Loading commit data... | |
| omp_cond2.f | Loading commit data... | |
| omp_cond3.F90 | Loading commit data... | |
| omp_cond4.F90 | Loading commit data... | |
| omp_hello.f | Loading commit data... | |
| omp_orphan.f | Loading commit data... | |
| omp_parse1.f90 | Loading commit data... | |
| omp_parse2.f90 | Loading commit data... | |
| omp_parse3.f90 | Loading commit data... | |
| omp_parse4.f90 | Loading commit data... | |
| omp_reduction.f | Loading commit data... | |
| omp_workshare1.f | Loading commit data... | |
| omp_workshare2.f | Loading commit data... | |
| openmp_version-1.f | Loading commit data... | |
| openmp_version-2.f90 | Loading commit data... | |
| parloops-exit-first-loop-alt-2.f95 | Loading commit data... | |
| parloops-exit-first-loop-alt.f95 | Loading commit data... | |
| pointer1.f90 | Loading commit data... | |
| pointer2.f90 | Loading commit data... | |
| pr25162.f | Loading commit data... | |
| pr25219.f90 | Loading commit data... | |
| pr27395-1.f90 | Loading commit data... | |
| pr27395-2.f90 | Loading commit data... | |
| pr27416-1.f90 | Loading commit data... | |
| pr27916-1.f90 | Loading commit data... | |
| pr27916-2.f90 | Loading commit data... | |
| pr28390.f | Loading commit data... | |
| pr29629.f90 | Loading commit data... | |
| pr32359.f90 | Loading commit data... | |
| pr32550.f90 | Loading commit data... | |
| pr33880.f90 | Loading commit data... | |
| pr34020.f90 | Loading commit data... | |
| pr35130.f90 | Loading commit data... | |
| pr42162.f90 | Loading commit data... | |
| pr46753.f90 | Loading commit data... | |
| pr48894.f90 | Loading commit data... | |
| pr49792-1.f90 | Loading commit data... | |
| pr49792-2.f90 | Loading commit data... | |
| pr63938-1.f90 | Loading commit data... | |
| pr63938-2.f90 | Loading commit data... | |
| pr65597.f90 | Loading commit data... | |
| pr66199-1.f90 | Loading commit data... | |
| pr66199-2.f90 | Loading commit data... | |
| pr66680.f90 | Loading commit data... | |
| pr71014.f90 | Loading commit data... | |
| pr71734-1.f90 | Loading commit data... | |
| pr71734-2.f90 | Loading commit data... | |
| pr81304.f90 | Loading commit data... | |
| pr81841.f90 | Loading commit data... | |
| pr84418-1.f90 | Loading commit data... | |
| pr84418-2.f90 | Loading commit data... | |
| pr88463-1.f90 | Loading commit data... | |
| pr88463-2.f90 | Loading commit data... | |
| pr90779.f90 | Loading commit data... | |
| procptr1.f90 | Loading commit data... | |
| recursion1.f90 | Loading commit data... | |
| reduction1.f90 | Loading commit data... | |
| reduction2.f90 | Loading commit data... | |
| reduction3.f90 | Loading commit data... | |
| reduction4.f90 | Loading commit data... | |
| reduction5.f90 | Loading commit data... | |
| reduction6.f90 | Loading commit data... | |
| reference1.f90 | Loading commit data... | |
| reference2.f90 | Loading commit data... | |
| retval1.f90 | Loading commit data... | |
| retval2.f90 | Loading commit data... | |
| sharing1.f90 | Loading commit data... | |
| sharing2.f90 | Loading commit data... | |
| simd1.f90 | Loading commit data... | |
| simd2.f90 | Loading commit data... | |
| simd3.f90 | Loading commit data... | |
| simd4.f90 | Loading commit data... | |
| simd5.f90 | Loading commit data... | |
| simd6.f90 | Loading commit data... | |
| simd7.f90 | Loading commit data... | |
| stack.f90 | Loading commit data... | |
| strassen.f90 | Loading commit data... | |
| tabs1.f90 | Loading commit data... | |
| tabs2.f | Loading commit data... | |
| target-allocatable-1-1.f90 | Loading commit data... | |
| target-allocatable-1-2.f90 | Loading commit data... | |
| target1.f90 | Loading commit data... | |
| target2.f90 | Loading commit data... | |
| target3.f90 | Loading commit data... | |
| target4.f90 | Loading commit data... | |
| target5.f90 | Loading commit data... | |
| target6.f90 | Loading commit data... | |
| target7.f90 | Loading commit data... | |
| target8.f90 | Loading commit data... | |
| task1.f90 | Loading commit data... | |
| task2.f90 | Loading commit data... | |
| task3.f90 | Loading commit data... | |
| task4.f90 | Loading commit data... | |
| taskgroup1.f90 | Loading commit data... | |
| taskloop1.f90 | Loading commit data... | |
| taskloop2.f90 | Loading commit data... | |
| taskloop3.f90 | Loading commit data... | |
| taskloop4.f90 | Loading commit data... | |
| threadprivate1.f90 | Loading commit data... | |
| threadprivate2.f90 | Loading commit data... | |
| threadprivate3.f90 | Loading commit data... | |
| threadprivate4.f90 | Loading commit data... | |
| udr1.f90 | Loading commit data... | |
| udr10.f90 | Loading commit data... | |
| udr11.f90 | Loading commit data... | |
| udr12.f90 | Loading commit data... | |
| udr13.f90 | Loading commit data... | |
| udr14.f90 | Loading commit data... | |
| udr15.f90 | Loading commit data... | |
| udr2.f90 | Loading commit data... | |
| udr3.f90 | Loading commit data... | |
| udr4.f90 | Loading commit data... | |
| udr5.f90 | Loading commit data... | |
| udr6.f90 | Loading commit data... | |
| udr7.f90 | Loading commit data... | |
| udr8.f90 | Loading commit data... | |
| udr9.f90 | Loading commit data... | |
| use_intrinsic_1.f90 | Loading commit data... | |
| vla1.f90 | Loading commit data... | |
| vla2.f90 | Loading commit data... | |
| vla3.f90 | Loading commit data... | |
| vla4.f90 | Loading commit data... | |
| vla5.f90 | Loading commit data... | |
| vla6.f90 | Loading commit data... | |
| vla7.f90 | Loading commit data... | |
| vla8.f90 | Loading commit data... | |
| workshare1.f90 | Loading commit data... | |
| workshare2.f90 | Loading commit data... |