gcc/libgfortran
Feng Wang d3642f893a For the 60th anniversary of Chinese people��s Anti-Japan war victory.
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.

From-SVN: r101688
2005-07-07 07:54:58 +00:00
..
generated re PR libfortran/22142 ([4.0 only] eoshift: boundary not filled in correctly) 2005-06-28 23:07:20 +00:00
intrinsics unpack_generic.c: Remove const from parameter. 2005-07-01 07:44:50 +02:00
io For the 60th anniversary of Chinese people��s Anti-Japan war victory. 2005-07-07 07:54:58 +00:00
m4 re PR libfortran/22142 ([4.0 only] eoshift: boundary not filled in correctly) 2005-06-28 23:07:20 +00:00
runtime c99_functions.c (log10l): New log10l function for systems where this is not available. 2005-06-23 18:50:25 +00:00
.cvsignore ignore autom4te.cache 2004-08-23 23:51:56 +00:00
ChangeLog For the 60th anniversary of Chinese people��s Anti-Japan war victory. 2005-07-07 07:54:58 +00:00
Makefile.am re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics) 2005-06-24 23:07:13 +00:00
Makefile.in re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics) 2005-06-24 23:07:13 +00:00
acinclude.m4 acinclude.m4 (LIBGFOR_CHECK_ATTRIBUTE_VISIBILITY): New. 2004-12-12 00:59:05 -08:00
aclocal.m4 re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics) 2005-06-24 23:07:13 +00:00
c99_protos.h re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics) 2005-06-24 23:07:13 +00:00
config.h.in re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics) 2005-06-24 23:07:13 +00:00
configure re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics) 2005-06-24 23:07:13 +00:00
configure.ac re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics) 2005-06-24 23:07:13 +00:00
fmain.c Merge tree-ssa-20020619-branch into mainline. 2004-05-13 02:41:07 -04:00
libgfortran.h c99_functions.c (log10l): New log10l function for systems where this is not available. 2005-06-23 18:50:25 +00:00
libtool-version libtool-version: New. 2004-07-04 09:06:54 +00:00
mk-kinds-h.sh c99_functions.c (log10l): New log10l function for systems where this is not available. 2005-06-23 18:50:25 +00:00
mk-sik-inc.sh mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. 2004-09-01 17:51:42 +00:00
mk-srk-inc.sh mk-sik-inc.sh: Use a temporary string instead of 'echo -n'. 2004-09-01 17:51:42 +00:00