8sa1-gcc/gcc/fortran
Paul Thomas 54129a64cd re PR fortran/25818 ([4.1 only] Problem with handling optional and entry master arguments)
2006-12-22  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25818
	* trans-array.c (gfc_trans_g77_array): If the variable is
	optional or not always present, make the statement conditional
	on presence of the argument.
	* gfortran.h : Add symbol_attribute not_always_present.
	* resolve.c (check_argument_lists): New function to check if
	arguments are not present in all entries.

	PR fortran/30084
	* module.c (mio_component_ref): Move treatment of unique name
	variables, during output, to fix_mio_expr.
	(fix_mio_expr): New function that fixes defective expressions
	before they are written to the module file.
	(mio_expr): Call the new function.
	(resolve_entries): Call check_argument_lists.

2006-12-22  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25818
	* gfortran.dg/entry_array_specs_2.f: New test.

	PR fortran/30084
	* gfortran.dg/nested_modules_6.f90: New test.

From-SVN: r120155
2006-12-22 20:49:00 +00:00
..
arith.c gfortran.h: Remove GFC_MPFR_TOO_OLD. 2006-10-28 23:31:22 +00:00
arith.h gfortran.h: Remove GFC_MPFR_TOO_OLD. 2006-10-28 23:31:22 +00:00
array.c Fix typo in previous check-in 2006-11-11 18:56:11 +01:00
bbt.c
ChangeLog re PR fortran/25818 ([4.1 only] Problem with handling optional and entry master arguments) 2006-12-22 20:49:00 +00:00
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
check.c re PR fortran/29758 (Runtime segfault in RESHAPE with insufficient elements in SOURCE) 2006-11-10 21:06:42 +00:00
config-lang.in configure.in: Require GMP-4.1+ and MPFR-2.2+. 2006-10-21 13:58:13 +00:00
convert.c
data.c data.c: Remove trailing periods from error messages. 2006-11-15 19:05:28 -08:00
decl.c re PR fortran/29992 ([4.1 only] INTERFACE equivalent to MODULE PROCEDURE?!) 2006-12-20 13:48:06 +00:00
dependency.c re PR fortran/30273 ([4.1 only] gfc_todo: Not Implemented: Unable to determine rank of expression) 2006-12-21 19:56:34 +00:00
dependency.h re PR fortran/30207 (ICE in gfc_dep_resolver with where (a < 0) a(:) = 1) 2006-12-17 18:28:07 +00:00
dump-parse-tree.c re PR fortran/23994 (PROTECTED attribute (F2003) is not implemented) 2006-12-10 20:53:07 +01:00
error.c re PR fortran/29711 ([4.2 only] error_print does not support %N$X) 2006-12-07 10:15:41 +01:00
expr.c re PR fortran/23994 (PROTECTED attribute (F2003) is not implemented) 2006-12-10 20:53:07 +01:00
f95-lang.c Move all varpool routines out of cgraph/cgraphunit to varpool.c 2006-12-11 08:07:52 +00:00
gfortran.h re PR fortran/25818 ([4.1 only] Problem with handling optional and entry master arguments) 2006-12-22 20:49:00 +00:00
gfortran.texi gfortran.texi: Added TeX support for document parts... 2006-12-16 18:41:48 -08:00
gfortranspec.c
interface.c * interface.c: Fix a comment typo. 2006-12-22 01:09:02 +00:00
intrinsic.c resolve.c (resolve_actual_arglist): Remove the special case for CHAR. 2006-11-24 21:45:36 +00:00
intrinsic.h [multiple changes] 2006-10-08 16:21:55 +00:00
intrinsic.texi gfortran.texi: Add volatile and internal-file namelist to Fortran 2003 status. 2006-11-08 10:23:53 +01:00
invoke.texi re PR libfortran/29568 (implement unformatted files with subrecords (Intel style)) 2006-12-01 21:04:38 +00:00
io.c re PR fortran/24285 ([4.2 only] format(1000(a,$))) 2006-11-18 12:16:42 +00:00
ioparm.def re PR fortran/25828 ([f2003] ACCESS='STREAM' io support) 2006-08-15 23:03:28 +00:00
iresolve.c re PR fortran/15441 (RRSPACING broken for denormals) 2006-10-09 20:55:29 +00:00
iso-fortran-env.def module.c (gfc_use_module): Uncomment the ISO_FORTRAN_ENV code. 2006-11-19 21:18:26 +00:00
lang-specs.h gfortran.h (gfc_add_intrinsic_modules_path, [...]): New prototypes. 2006-11-17 11:11:25 +00:00
lang.opt re PR libfortran/29568 (implement unformatted files with subrecords (Intel style)) 2006-12-01 21:04:38 +00:00
Make-lang.in Make-lang.in (fortran/options.o): Add $(PARAMS_H) dependency. 2006-12-14 14:39:44 -05:00
match.c re PR fortran/23994 (PROTECTED attribute (F2003) is not implemented) 2006-12-10 20:53:07 +01:00
match.h re PR fortran/23994 (PROTECTED attribute (F2003) is not implemented) 2006-12-10 20:53:07 +01:00
matchexp.c
mathbuiltins.def
misc.c data.c: Add 2006 to copyright years. 2006-11-11 18:10:24 +01:00
module.c re PR fortran/25818 ([4.1 only] Problem with handling optional and entry master arguments) 2006-12-22 20:49:00 +00:00
openmp.c Revert emutls patch. 2006-10-09 09:27:14 -07:00
options.c Make-lang.in (fortran/options.o): Add $(PARAMS_H) dependency. 2006-12-14 14:39:44 -05:00
parse.c re PR fortran/23994 (PROTECTED attribute (F2003) is not implemented) 2006-12-10 20:53:07 +01:00
parse.h
primary.c re PR fortran/23994 (PROTECTED attribute (F2003) is not implemented) 2006-12-10 20:53:07 +01:00
resolve.c re PR fortran/25818 ([4.1 only] Problem with handling optional and entry master arguments) 2006-12-22 20:49:00 +00:00
scanner.c gfortran.h (gfc_add_intrinsic_modules_path, [...]): New prototypes. 2006-11-17 11:11:25 +00:00
simplify.c re PR fortran/29391 ([4.2/4.1 only] LBOUND and UBOUND are broken) 2006-11-16 12:25:11 +00:00
st.c [multiple changes] 2006-10-19 04:51:14 +00:00
symbol.c re PR fortran/23994 (PROTECTED attribute (F2003) is not implemented) 2006-12-10 20:53:07 +01:00
trans-array.c re PR fortran/25818 ([4.1 only] Problem with handling optional and entry master arguments) 2006-12-22 20:49:00 +00:00
trans-array.h Merge gimple-tuples-branch into mainline. 2006-12-05 17:26:05 +00:00
trans-common.c re PR fortran/29537 (ICE in gfc_match_common for blank common in BLOCK DATA unit) 2006-11-01 00:38:58 +01:00
trans-const.c re PR fortran/19310 ([4.1 Only] unnecessary error for overflowing results) 2006-06-18 06:36:45 +00:00
trans-const.h trans.c (gfc_msg_bounds, [...]): Add strings for common runtime error messages. 2006-06-03 17:28:33 +00:00
trans-decl.c re PR fortran/25392 (ICEs with -ff2c) 2006-12-21 04:04:43 +01:00
trans-expr.c re PR fortran/30202 ([4.1 only] ICE in trans-array.c) 2006-12-21 13:59:57 +00:00
trans-intrinsic.c re PR fortran/30238 (associated(null-pointer, null-pointer) returns .true.) 2006-12-19 20:41:35 +01:00
trans-io.c re PR libfortran/30200 ([4.1 only] write(*,myfmt="(1X,a,'xyz')") "A" prints Az' instead of Axyz) 2006-12-15 19:48:08 +00:00
trans-openmp.c Merge gimple-tuples-branch into mainline. 2006-12-05 17:26:05 +00:00
trans-stmt.c re PR fortran/25392 (ICEs with -ff2c) 2006-12-21 04:04:43 +01:00
trans-stmt.h [multiple changes] 2006-10-19 04:51:14 +00:00
trans-types.c re PR fortran/25392 (ICEs with -ff2c) 2006-12-21 04:04:43 +01:00
trans-types.h
trans.c Merge gimple-tuples-branch into mainline. 2006-12-05 17:26:05 +00:00
trans.h re PR fortran/30003 ([4.1 only] Expressions with side effects in array references) 2006-12-05 19:45:25 +00:00
types.def Revert emutls patch. 2006-10-09 09:27:14 -07:00