summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gfortran.dg/hollerith_legacy.f90
Commit message (Collapse)AuthorAgeFilesLines
* PR target/35366jakub2008-11-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | PR fortran/33759 * fold-const.c (native_encode_string): New function. (native_encode_expr): Use it for STRING_CST. * trans-const.c (gfc_conv_constant_to_tree): Warn when converting an integer outside of LOGICAL's range to LOGICAL. * trans-intrinsic.c (gfc_conv_intrinsic_function, gfc_conv_intrinsic_array_transfer, gfc_conv_intrinsic_transfer): Use INTEGER_TYPE instead of BOOLEAN_TYPE for TRANSFER as argument of another TRANSFER. * gfortran.dg/hollerith.f90: Don't assume a 32-bit value stored into logical variable will be preserved. * gfortran.dg/transfer_simplify_4.f90: Remove undefined cases. Run at all optimization levels. Add a couple of new tests. * gfortran.dg/hollerith5.f90: New test. * gfortran.dg/hollerith_legacy.f90: Add dg-warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141790 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-12-17 Steven G. Kargl <kargls@comcast.net>kargl2005-12-171-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * decl.c (gfc_match_old_kind_spec,match_type_spec): Use gfc_std_notify to report nonstandard intrinsic type declarations. * gfortran.dg/imag_1.f: Fix nonstandard type declarations. * gfortran.dg/nested_modules_1.f90: Ditto. * gfortran.dg/hollerith_f95.f90: Ditto. * gfortran.dg/select_5.f90: Ditto. * gfortran.dg/secnds.f: Ditto. * gfortran.dg/hollerith2.f90: Ditto. * gfortran.dg/imag_2.f: Ditto. * gfortran.dg/ftell_2.f90: Ditto. * gfortran.dg/malloc_free_1.f90: Ditto. * gfortran.dg/logint-1.f: Ditto. * gfortran.dg/recursive_statement_functions.f90: Ditto. * gfortran.dg/e_d_fmt.f90: Ditto. * gfortran.dg/hollerith_legacy.f90: Ditto. * gfortran.dg/logint-2.f: Ditto. * gfortran.dg/enum_5.f90: Ditto. * gfortran.dg/f2c_2.f90: Ditto. * gfortran.dg/pr17143.f90: Ditto. * gfortran.dg/namelist_14.f90: Ditto. * gfortran.dg/logint-3.f: Ditto. * gfortran.dg/spread_scalar_source.f90: Ditto. * gfortran.dg/fmt_read_bz_bn.f90: Ditto. * gfortran.dg/namelist_11.f: Ditto. * gfortran.dg/g77/intrinsic-unix-bessel.f: Ditto. * gfortran.dg/g77/20010519-1.f * gfortran.dg/g77/alpha1.f: Ditto. * gfortran.dg/g77/990115-1.f: Ditto. * gfortran.dg/g77/erfc.f: Ditto. * gfortran.dg/g77/19990313-3.f: Ditto. * gfortran.dg/g77/f90-intrinsic-numeric.f: Ditto. * gfortran.dg/g77/20010426.f: Ditto. * gfortran.dg/g77/19990313-0.f: Ditto. * gfortran.dg/g77/f90-intrinsic-mathematical.f: Ditto. * gfortran.dg/g77/20000629-1.f: Ditto. * gfortran.dg/g77/970125-0.f: Ditto. * gfortran.dg/g77/8485.f: Ditto. * gfortran.dg/g77/f90-intrinsic-bit.f: Ditto. * gfortran.dg/g77/19990313-1.f: Ditto. * gfortran.dg/g77/int8421.f: Ditto. * gfortran.dg/g77/19990305-0.f: Ditto. * gfortran.dg/g77/947.f: Ditto. * gfortran.dg/g77/19990905-2.f: Ditto. * gfortran.dg/g77/cabs.f: Ditto. * gfortran.dg/g77/19990313-2.f: Ditto. * gfortran.dg/g77/20020307-1.f: Ditto. * gfortran.dg/g77/dcomplex.f: Ditto. * gfortran.dg/g77/19990502-1.f: Ditto. * gfortran.dg/g77/19981216-0.f: Ditto. * gfortran.dg/common_4.f90: Ditto. * gfortran.dg/entry_4.f90: Ditto. * gfortran.dg/equiv_constraint_2.f90: Ditto. * gfortran.dg/g77_intrinsics_funcs.f: Ditto. * gfortran.dg/namelist_12.f: Ditto. * gfortran.dg/scale_1.f90: Ditto. * gfortran.dg/modulo_1.f90 * gfortran.dg/hollerith.f90: Ditto. * gfortran.dg/direct_io_3.f90: Ditto. * gfortran.dg/ftell_1.f90: Ditto.: Ditto. * gfortran.dg/gnu_logical_1.F: Ditto. * gfortran.dg/unf_io_convert_1.f90: Ditto. * gfortran.dg/assign_1.f90: Ditto. * gfortran.dg/g77_intrinsics_sub.f: Ditto. * gfortran.dg/pr23095.f: Ditto. * gfortran.dg/read_float_1.f90: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108715 138bc75d-0d04-0410-961f-82ee72b054a4
* For the 60th anniversary of Chinese people��s Anti-Japan war victory.fengwang2005-07-071-0/+61
2005-07-07 Feng Wang <fengwang@nudt.edu.cn> PR fortran/16531 PR fortran/15966 PR fortran/18781 * arith.c (gfc_hollerith2int, gfc_hollerith2real, gfc_hollerith2complex, gfc_hollerith2character, gfc_hollerith2logical): New functions. (eval_intrinsic): Don't evaluate if Hollerith constant arguments exist. * arith.h (gfc_hollerith2int, gfc_hollerith2real, gfc_hollerith2complex, gfc_hollerith2character, gfc_hollerith2logical): Add prototypes. * expr.c (free_expr0): Free memery allocated for Hollerith constant. (gfc_copy_expr): Allocate and copy string if Expr is from Hollerith. (gfc_check_assign): Enable conversion from Hollerith to other. * gfortran.h (bt): Add BT_HOLLERITH. (gfc_expr): Add from_H flag. * intrinsic.c (gfc_type_letter): Return 'h' for BT_HOLLERITH. (add_conversions): Add conversions from Hollerith constant to other. (do_simplify): Don't simplify if Hollerith constant arguments exist. * io.c (resolve_tag): Enable array in FORMAT tag under GFC_STD_GNU. * misc.c (gfc_basetype_name): Return "HOLLERITH" for BT_HOLLERITH. (gfc_type_name): Print "HOLLERITH" for BT_HOLLERITH. * primary.c (match_hollerith_constant): New function. (gfc_match_literal_constant): Add match Hollerith before Integer. * simplify.c (gfc_convert_constant): Add conversion from Hollerith to other. * trans-const.c (gfc_conv_constant_to_tree): Use VIEW_CONVERT_EXPR to convert Hollerith constant to tree. * trans-io.c (gfc_convert_array_to_string): Get array's address and length to set string expr. (set_string): Deal with array assigned Hollerith constant and character array. * gfortran.texi: Document Hollerith constants as extention support. 2005-07-07 Feng Wang <fengwang@nudt.edu.cn> PR fortran/16531 PR fortran/15966 PR fortran/18781 * gfortran.dg/hollerith.f90: New. * gfortran.dg/hollerith2.f90: New. * gfortran.dg/hollerith3.f90: New. * gfortran.dg/hollerith4.f90: New. * gfortran.dg/hollerith_f95.f90: New. * gfortran.dg/hollerith_legacy.f90: New. * gfortran.dg/g77/cpp4.F: New. Port from g77. 2005-07-07 Feng Wang <fengwang@nudt.edu.cn> PR fortran/16531 * io/transfer.c (formatted_transfer): Enable FMT_A on other types to support Hollerith constants. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101688 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud