gcc/gcc/fortran
François-Xavier Coudert 0160a2c700 re PR fortran/31198 (wrong code: Max() with optional arguments)
PR fortran/31198

	* trans-intrinsic.c (trans-intrinsic.c): Handle optional
	arguments correctly for MIN and MAX intrinsics.

	* gfortran.dg/min_max_optional_1.f90: New test.
	* gfortran.dg/min_max_optional_2.f90: New test.
	* gfortran.dg/min_max_optional_3.f90: New test.

From-SVN: r126307
2007-07-04 07:25:39 +00:00
..
ChangeLog re PR fortran/31198 (wrong code: Max() with optional arguments) 2007-07-04 07:25:39 +00:00
ChangeLog-2002 * Split the ChangeLog into years. 2006-01-01 17:04:47 +00:00
ChangeLog-2003 * Split the ChangeLog into years. 2006-01-01 17:04:47 +00:00
ChangeLog-2004 * Split the ChangeLog into years. 2006-01-01 17:04:47 +00:00
ChangeLog-2005 * Split the ChangeLog into years. 2006-01-01 17:04:47 +00:00
ChangeLog-2006 Rotate ChangeLog. 2007-01-01 19:22:09 +00:00
ChangeLog.ptr [multiple changes] 2007-06-15 22:42:36 -07:00
Make-lang.in re PR fortran/30820 (-Wno-error not necessary in Make-lang.in any more?) 2007-05-19 20:33:45 +00:00
arith.c gfortran.h (gfc_expr): Remove from_H, add "representation" struct. 2007-05-28 11:20:29 -07:00
arith.h arith.h: Update copyright years. 2007-04-17 15:33:31 +02:00
array.c re PR fortran/31716 (segfault with real array bounds) 2007-05-24 05:03:51 +00:00
bbt.c [multiple changes] 2007-01-07 00:28:29 +00:00
check.c gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIZEOF. 2007-05-29 11:03:03 +02:00
config-lang.in configure.ac (strict1_warn): Rename to strict_warn. 2007-01-11 10:49:30 +00:00
convert.c decl.c, [...]: Update Copyright dates. 2007-01-07 19:39:52 +00:00
data.c re PR fortran/32432 (SEGV/endless loop after: "ERROR: ... already is initialized") 2007-07-03 22:14:55 +00:00
decl.c re PR fortran/32545 (Give an (compile time) error not a warning for wrong edit format statements) 2007-07-04 01:08:48 +00:00
dependency.c gfortran.h: Renamed 'enum gfc_generic_isym_id' to 'enum gfc_isym_id'... 2007-05-29 17:10:48 -04:00
dependency.h arith.h: Update copyright years. 2007-04-17 15:33:31 +02:00
dump-parse-tree.c re PR fortran/32460 (structure constructor not allowed if a USEd type has private components) 2007-06-24 18:19:11 +02:00
error.c re PR fortran/31668 (%VAL rejected for PROC_MODULE and PROC_INTERNAL procedures) 2007-04-25 10:32:21 +02:00
expr.c [multiple changes] 2007-07-02 02:47:21 +00:00
f95-lang.c re PR fortran/32239 (optimize power in loops, use __builtin_powi instead of _gfortran_pow_r4_i4) 2007-07-01 19:24:38 +03:00
gfc-internals.texi gfc-internals.texi: Fix typos. 2007-04-15 14:28:43 +00:00
gfortran.h Forgot this from previous commit. 2007-07-03 22:23:00 +00:00
gfortran.texi gfortran.texi (Fortran 2003): Add ISO Bind C. 2007-07-02 10:32:13 +02:00
gfortranspec.c re PR other/31400 (enable static linking of support libraries through -static-libXY) 2007-06-27 22:58:37 +00:00
interface.c re PR fortran/30940 (Fortran 2003: Scalar CHARACTER supplied to array dummy) 2007-07-03 21:16:42 +02:00
intrinsic.c re PR fortran/20373 (INTRINSIC symbols can be given the wrong type) 2007-06-30 12:26:55 -04:00
intrinsic.h gfortran.h (gfc_generic_isym_id): Add GFC_ISYM_SIZEOF. 2007-05-29 11:03:03 +02:00
intrinsic.texi gfortran.texi (Fortran 2003): Add ISO Bind C. 2007-07-02 10:32:13 +02:00
invoke.texi gfortran.texi: Cleaned up keyword index. 2007-04-29 06:49:08 -04:00
io.c re PR fortran/32545 (Give an (compile time) error not a warning for wrong edit format statements) 2007-07-04 01:08:48 +00:00
ioparm.def re PR libfortran/30014 (INQUIRE (iolength = xx) limited to kind=4) 2006-12-28 01:39:15 +00:00
iresolve.c re PR target/22539 (Internal compiler error with maximum sized array) 2007-05-04 14:02:18 -04:00
iso-c-binding.def [multiple changes] 2007-07-02 02:47:21 +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 arith.h: Update copyright years. 2007-04-17 15:33:31 +02:00
lang.opt re PR other/31400 (enable static linking of support libraries through -static-libXY) 2007-06-27 22:58:37 +00:00
match.c [multiple changes] 2007-07-02 02:47:21 +00:00
match.h [multiple changes] 2007-07-02 02:47:21 +00:00
matchexp.c openmp.c, [...]: Next installment in the massive whitespace patch. 2007-01-20 22:01:41 +00:00
mathbuiltins.def re PR fortran/21915 ([4.0 only] Would like atanh etc. as intrinsics) 2005-06-24 23:12:32 +00:00
misc.c [multiple changes] 2007-07-02 02:47:21 +00:00
module.c [multiple changes] 2007-07-02 02:47:21 +00:00
openmp.c openmp.c (resolve_omp_clauses): Adjust error message to better reflect the actual requirement. 2007-06-29 12:58:56 -04:00
options.c re PR other/31400 (enable static linking of support libraries through -static-libXY) 2007-06-27 22:58:37 +00:00
parse.c [multiple changes] 2007-07-02 02:47:21 +00:00
parse.h arith.h: Update copyright years. 2007-04-17 15:33:31 +02:00
primary.c [multiple changes] 2007-07-02 02:47:21 +00:00
resolve.c re PR fortran/32432 (SEGV/endless loop after: "ERROR: ... already is initialized") 2007-07-03 22:14:55 +00:00
scanner.c re PR fortran/31645 (Error on reading Byte Order Mark) 2007-04-29 10:45:57 +00:00
simplify.c re PR fortran/32472 (ICE in trans-const.c:106 for REPEAT initialization expression of non-parameter) 2007-06-30 13:08:19 +00:00
st.c openmp.c, [...]: Next installment in the massive whitespace patch. 2007-01-20 22:01:41 +00:00
symbol.c re PR fortran/32579 (problem using iso_c_binding (II)) 2007-07-03 21:45:59 +00:00
target-memory.c re PR fortran/29786 (Initialization of overlapping variables: Not implemented) 2007-06-11 22:39:21 +00:00
target-memory.h re PR fortran/29786 (Initialization of overlapping variables: Not implemented) 2007-06-11 22:39:21 +00:00
trans-array.c fortran frontend: 2007-07-01 15:08:59 +03:00
trans-array.h arith.h: Update copyright years. 2007-04-17 15:33:31 +02:00
trans-common.c [multiple changes] 2007-07-02 02:47:21 +00:00
trans-const.c [multiple changes] 2007-07-02 02:47:21 +00:00
trans-const.h trans-const.c (gfc_conv_mpz_to_tree): Use mpz_get_double_int. 2007-04-30 12:17:59 -07:00
trans-decl.c Fortran frontend: 2007-07-03 19:50:05 +03:00
trans-expr.c [multiple changes] 2007-07-02 02:47:21 +00:00
trans-intrinsic.c re PR fortran/31198 (wrong code: Max() with optional arguments) 2007-07-04 07:25:39 +00:00
trans-io.c [multiple changes] 2007-07-02 02:47:21 +00:00
trans-openmp.c gfortran.h: Renamed 'enum gfc_generic_isym_id' to 'enum gfc_isym_id'... 2007-05-29 17:10:48 -04:00
trans-stmt.c trans-stmt.c (gfc_trans_call): fix gcc_assert to a comparison, not an assignment. 2007-06-12 14:28:34 +00:00
trans-stmt.h [multiple changes] 2006-10-19 04:51:14 +00:00
trans-types.c [multiple changes] 2007-07-02 02:47:21 +00:00
trans-types.h really remove signed(_or_unsigned)?_type langhooks 2007-06-11 15:40:55 +00:00
trans.c re PR fortran/32140 (Miscompilation with -O1) 2007-06-20 14:57:10 +00:00
trans.h fortran frontend: 2007-07-01 15:08:59 +03:00
types.def arith.h: Update copyright years. 2007-04-17 15:33:31 +02:00