summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gfortran.fortran-torture
Commit message (Collapse)AuthorAgeFilesLines
...
* Document failure.pbrook2004-06-271-0/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83752 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.fortran-torture/execute/specfics.f90: Use correct typing.pbrook2004-06-271-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83751 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-26 Bud Davis <bdavis9659@comcast.net>bdavis2004-06-261-0/+5
| | | | | | | | | PR gfortran/16196 * unix.c(regular_file): create file if it does not exist. * gfortran.fortran-torture/execute/open_replace.f90: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83709 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.fortran-torture/execute/der_init_3.f90: Fix syntax error.tobi2004-06-251-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83654 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/15750pbrook2004-06-222-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | * io.c (gfc_match_inquire): Bugfix for iolength related stuff. (gfc_resolve_inquire): Resolve the iolength tag. Return SUCCESS at end of function if no failure has occured. * resolve.c (resolve_code): Resolve if iolength is encountered. * trans-io.c: (ioparm_iolength, iocall_iolength, iocall_iolength_done): New variables. (last_dt): Add IOLENGTH. (gfc_build_io_library_fndecls ): Set iolength related variables. (gfc_trans_iolength): Implement. (gfc_trans_dt_end): Treat iolength as a third form of data transfer. libgfortran/ PR fortran/15750 * inquire.c (st_inquire): Add comment * io.h (st_parameter): Add iolength. (st_iolength, st_iolength_done): Declare. * transfer.c (iolength_transfer, iolength_transfer_init, st_iolength, st_iolength_done): New functions. testsuite/ * gfortran.fortran-torture/execute/iolength_1.f90: New test. * gfortran.fortran-torture/execute/iolength_3.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83472 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.fortran-torture/execute/select_1.f90: Rename functiontobi2004-06-212-8/+8
| | | | | | | | | to fix type error. * gfortran.fortran-torture/execute/intrinsic_associated.f90: Remove trailing spaces. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83459 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-19 Bud Davis <bdavis9659@comcast.net>bdavis2004-06-191-0/+15
| | | | | | | | | PR gfortran/16080 * gfortran.fortran-torture/execute/read_null_string.f90: New file. * io/list_read.c(set_value): don't copy if the string is null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83388 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/tobi2004-06-151-0/+17
| | | | | | | | | | | | | | | PR fortran/15962 * match.c (match_case_selector): Call gfc_match_init_expr instead of gfc_match_expr. * resolve.c (validate_case_label_expr): No need to check for constant, since it wouldn't have been matched with the fix to match.c. testsuite/ PR fortran/15962 * gfortran.fortran-torture/execute/select_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83202 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/tobi2004-06-141-0/+9
| | | | | | | | | | | | | | PR fortran/15211 * trans-intrinsic.c (gfc_conv_intrinsic_len): Deal with arrays of strings. testsuite/ PR fortran/15211 * gfortran.fortran-torture/execute/intrinsic_len.f90: Also test LEN of a character array. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83126 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/tobi2004-06-141-0/+8
| | | | | | | | | | | | | | | | | | | | | 2004-06-05 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> Andrew Vaught <andyv@firstinter.net> PR fortran/14928 * gfortran.h (gfc_check_f): Add new field f3ml. * check.c (gfc_check_minloc_maxloc): Take argument list instead of individual arguments, reorder if necessary. * intrinsic.h (gfc_check_minloc_maxloc): ... adapt prototype. * intrinsic.c (add_sym_3ml): New function. (add_functions): Change to add_sym_3ml for MINLOC, MAXLOC. (check_specific): Catch special case MINLOC, MAXLOC. testsuite/ PR fortran/14928 * gfortran.fortran-torture/compile/mloc.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83111 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am (gfor_helper_src): Add runtime/normalize.f90.pbrook2004-06-131-0/+24
| | | | | | | | | | | | | | | * configure.ac: Add checks for nextafter and nextafterf. * Makefile.in, config.h.in, configure: Regenerate. * libgfortran.h (normalize_r4_i4, normalize_r8_i8): Declare. * intrinsics/rand.c (rand): Use normalize_r4_i4. * intrinsics/random.c (random_r4): Use normalize_r4_i4. (random_r8): Use normalize_r8_i8. * runtime/normalize.c: New file. testsuite/ * gfortran.fortran-torture/execute/random_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83070 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.fortran-torture/execute/contained_3.f90: New test.pbrook2004-06-121-0/+22
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83033 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/14923pbrook2004-06-121-0/+26
| | | | | | | | | | | | * intrinsics/date_and_time.c: New file. * Makefile.am (gfor_helper_src): Add intrinsics/date_and_time.c. * Makefile.in, aclocal.m4: Regenerate. * libgfortran.h: Prototype date_and_time(). testsuite/ * gfortran.fortran-torture/execute/date_time_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83032 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/tobi2004-06-121-2/+2
| | | | | | | | | | | | | | PR fortran/14957 * decl.c (gfc_match_end): Require END {SUBROUTINE|FUNCTION} for contained procedure. testsuite/ PR fortran/14957 * gfortran.fortran-torture/execute/stack_varsize.f90: Correct syntax errors in end statements of contained subroutines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83031 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/tobi2004-06-121-0/+13
| | | | | | | | | | | | | | | | PR fortran/12841 * interface.c (compare_parameter, compare_actual_formal): Don't check types and array shapes for NULL() * trans-expr.c (conv_function_call): No double indirection for NULL() ( I had accidentally committed the interface.c part before) testuite/ PR fortran/12841 * gfortran.fortran-torture/execute/null_arg.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83028 138bc75d-0d04-0410-961f-82ee72b054a4
* * intrinsics/args.c: Implement GETARG and IARGC.pbrook2004-06-121-0/+24
| | | | | | | | | | * Makefile.am: Add it. * Makefile.in: Regenerate. testsuite/ * gfortran.fortran-torture/execute/getarg_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83027 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-12 Bud Davis <bdavis9659@comcast.net>bdavis2004-06-121-0/+79
| | | | | | | | | PR gfortran/12839 * gfortran.fortran-torture/execute/nan_inf_fmt.f90: New test. * io/write.c(write_float): format inf and nan IAW F2003. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83024 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/14957tobi2004-06-101-2/+2
| | | | | | | | * gfortran.fortran-torture/execute/intrinsic_scale.f90: Make all arguments to test_* REAL and of the right size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82915 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/13249tobi2004-06-091-0/+10
| | | | | | | * gfortran.fortran-torture/compile/name_clash.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82836 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/tobi2004-06-091-0/+8
| | | | | | | | | | | | | | | PR fortran/13372 * module.c (write_symbol, write_symtree): Don't write symbols wrongly added to namespace. * trans-decl.c (gfc_create_module_variable): Don't create a backend decl for a symbol incorrectly added to namespace. testsuite/ PR fortran/13372 * gfortran.fortran-torture/compile/named_args_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82834 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-09 Bud Davis <bdavis9659@comcast.net>bdavis2004-06-091-0/+11
| | | | | | | | | | | | | PR gfortran/14897 * gfortran.fortran-torture/execute/t_edit.f90 * io/transfer.c (formatted_transfer): position is unique for T and TL edit descriptors. (data_transfer_init): set record length to size of internal file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82808 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-06-08 Bud Davis <bdavis9659@comcast.net>bdavis2004-06-091-0/+14
| | | | | | | | | | | PR gfortran/15755 * gfortran.fortran-torture/execute/backspace.c : New test. * io/backspace.c(st_backspace): call correct routine for formatted and un-formatted units. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82806 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.fortran-torture/execure/intrinsic_associated.f90pbrook2004-06-091-20/+17
| | | | | | | (pointer_to_section): Rewrite to use smaller array. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82805 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/tobi2004-06-031-0/+21
| | | | | | | | | | | | | | * gfortran.h (gfc_actual_arglist): New field missing_arg_type. * interface.c (compare_actual_formal): Keep type of omitted optional arguments. * trans-expr.c (gfc_conv_function_call): Add string length argument for omitted string argument. testsuite/ * gfortran.fortran-torture/execute/optstring_1.f90: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82608 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/tobi2004-06-021-0/+19
| | | | | | | | | | | | | | PR fortran/15557 * data.c (assign_substring_data_value): New function. (gfc_assign_data_value): Call the new function if we're dealing with a substring LHS. testsuite/ PR fortran/15557 * gfortran.fortran-torture/execute/data_3.f90: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82570 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/15620pbrook2004-05-302-0/+44
| | | | | | | | | | | | | | | | | * trans-decl.c (gfc_shadow_sym, gfc_restore_sym): New functions. * trans-expr.c (gfc_trans_string_copy): New function. (gfc_conv_statement_function): Use them. Create temp vars. Enforce character lengths. (gfc_conv_string_parameter): Use gfc_trans_string_copy. * trans-stmt.c (gfc_trans_forall_1): Use gfc_{shadow,restore}_sym. * trans.h (struct gfc_saved_var): Define. (gfc_shadow_sym, gfc_restore_sym): Add prototypes. testsuite/ * gfortran.fortran-torture/execute/st_function_1.f90: New test. * gfortran.fortran-torture/execute/st_function_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82452 138bc75d-0d04-0410-961f-82ee72b054a4
* * iresolve.c (gfc_resolve_random_number): Clean up conditional.pbrook2004-05-301-0/+33
| | | | | | | | | | | libgfortran/ * libgfortran.h (random_seed): Update prototype. * intrinsics/random.c: Disable old implementation and add new one. testsuite/ * gfortran.fortran-torture/execute/random_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82443 138bc75d-0d04-0410-961f-82ee72b054a4
* * trans-common.c (find_equivalence): Find multiple rules.pbrook2004-05-291-0/+15
| | | | | | | | testsuite/ * gfortran.fortran-torture/execute/equiv_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82411 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (check_inquiry): Remove bogus tests.pbrook2004-05-231-0/+8
| | | | | | | | testsuite/ * gfortran.fortran-torture/compile/inquiry_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82177 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.h (struct gfc_symbol): Add equiv_built.pbrook2004-05-232-0/+118
| | | | | | | | | | | | | | | | | | | | | * trans-common.c: Change int to HOST_WIDE_INT. Capitalize error messages. (current_length): Remove. (add_segments): New function. (build_equiv_decl): Create initialized common blocks. (build_common_decl): Always add decl to bindings. (create_common): Create initializers. (find_segment_info): Reformat to match coding conventions. (new_condition): Use add_segments. (add_condition, find_equivalence, add_equivalences): Move iteration inside functions. Only process each segment once. (new_segment, finish_equivalences, translate_common): Simplify. testsuite/ * gfortran.fortran-torture/execute/common_init_1.f90: New test. * gfortran.fortran-torture/execute/equiv_init.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82165 138bc75d-0d04-0410-961f-82ee72b054a4
* * f95-lang.c (gfc_init_builtin_functions): Use vold_list_node.pbrook2004-05-191-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Create decls for __builtin_pow{,f}. * gfortran.h (PREFIX_LEN): Define. * trans-decl.c (gfor_fndecl_math_powi): Add. (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove. (gfc_build_intrinsic_function_decls): Create decls for powi. * trans-expr.c (powi_table): Add. (gfc_conv_integer_power): Remove. (gfc_conv_powi): New function. (gfc_conv_cst_int_power): New function. (gfc_conv_power_op): Use new powi routines. * trans.h (struct gfc_powdecl_list): Add. (gfor_fndecl_math_powi): Add. (gfor_fndecl_math_powf, gfor_fndecl_math_pow): Remove. testsuite/ * gfortran.fortran-torture/execute/power.f90: Test constant integers. libgfortran/ * Makefile.am (i_pow_c): Set it. Add build rule. (gfor_built_src): Use it. (m4_files): add m4/pow.m4. * Makefile.in: Regenerate. * m4/pow.m4: New file. * generated/pow_*.c: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@82014 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/13930pbrook2004-05-181-0/+15
| | | | | | | | | | | | | | | * decl.c (add_init_expr_to_sym): Remove incorrect check. (default_initializer): Move to expr.c. (variable_decl): Don't assign default initializer to variables. * expr.c (gfc_default_initializer): Move to here. * gfortran.h (gfc_default_initializer): Add prototype. * resolve.c (resolve_symbol): Check for illegal initializers. Assign default initializer. testsuite/ * gfortran.fortran-torture/execute/der_init_4.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81966 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.fortran-torture/execute/cmplx.f90: Add test for bug intobi2004-05-181-0/+3
| | | | | | | constant folding. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81961 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/15311pbrook2004-05-151-0/+14
| | | | | | | | | * io/write.c (write_a): right justify A edit output. libgfortran/ * gfortran.fortran-torture/execute/write_a_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81895 138bc75d-0d04-0410-961f-82ee72b054a4
* testsuite:tobi2004-05-151-0/+4
| | | | | | | | | | | | | | PR fortran/13826 PR fortran/13940 * gfortran.fortran-torture/compile/data_1.f90: New test. (add second test) fortran: * primary.c (match_boz_constant): Use gfc_notify_std() for issuing a warning or an error. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81892 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran:tobi2004-05-151-0/+7
| | | | | | | | | | | | | | | | | PR fortran/13826 * primary.c (match_structure_constructor): Rename ... (gfc_match_structure_constructor): ... to this. Make non-static. (gfc_match_rvalue): Call renamed function. * match.h (gfc_match_structure_constructor): Declare. * match.c (gfc_match_data_constant): Handle structure constructor. testsuite: PR fortran/13826 * gfortran.fortran-torture/compile/data_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81891 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran/pbrook2004-05-141-0/+12
| | | | | | | | | * decl.c (variable_decl): Always apply default initializer. libgfortran/ * gfortran.fortran-torture/execute/def_init_3.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81865 138bc75d-0d04-0410-961f-82ee72b054a4
* * gfortran.fortran-torture/compile/noncontinuation_1.f90: Renametobi2004-05-141-0/+0
| | | | | | | | | | | this ... * gfortran.fortran-torture/compile/noncontinuation_1.f: ... to this. (Correcting previous mistake) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81850 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran:tobi2004-05-141-0/+3
| | | | | | | | | | | | * parse.c (gfc_statement_next_fixed): (Change from Andy's tree) Detect bad continuation line in fixed form sources. testsuite: * gfortran.fortran-torture/compile/noncontinuation_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81845 138bc75d-0d04-0410-961f-82ee72b054a4
* fortran:tobi2004-05-141-0/+28
| | | | | | | | | | | | | | | | PR fortran/14066 * match.c (gfc_match_do): Allow infinite loops with label-do-stmt. Do not enforce space after comma. testsuite: PR fortran/14066 * gfortran.fortran-torture/compile/do_1.f90: New test. Also fixed date on previous ChangeLog entries. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81842 138bc75d-0d04-0410-961f-82ee72b054a4
* testsuite:tobi2004-05-141-0/+4
| | | | | | | | | | | | | | | | | PR fortran/15051 * gfortran.fortran-torture/compile/empty_interface_1.f90: New test. fortran: PR fortran/15051 * parse.c (parse_interface): Allow empty INTERFACE, remove seen_body. Also added ChangeLog entry missing from previous commit, removed umlaut from ChangeLog, and fixed previous entry to use tabs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81841 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/15149bdavis2004-05-141-0/+11
| | | | | | | | | * gfortran.fortran-torture/execute/random_init.f90: New test. * libgfortan.h,intrinsics/random.c: Made random_seed visible. * runtime/main.c(init): Call random_seed as part of MAIN init. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81836 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/15314pbrook2004-05-131-0/+15
| | | | | | | * gfortran.fortran-torture/execute/der_init_s.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81818 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/15294bdavis2004-05-131-0/+46
| | | | | | | | * gfortran.fortran-torture/execute/adjustr.f90: New file. * io/intrinsic/string_intrinsics.c(adjustr): rework logic. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81771 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge tree-ssa-20020619-branch into mainline.dnovillo2004-05-13168-0/+5089
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81764 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud