- 21 Jun, 2006 1 commit
-
-
fxcoudert authored
gfc_conv_cst_int_power, gfc_conv_string_tmp, gfc_conv_function_call): Replace calls to convert on constant integer nodes by build_int_cst. * trans-stmt.c (gfc_trans_do): Likewise. * trans-io.c (set_internal_unit, transfer_namelist_element): Likewise. * trans-decl.c (build_entry_thunks): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114868 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 20 Jun, 2006 2 commits
-
-
kargl authored
* simplify.c (gfc_simplify_rrspacing): Initialize and clear mpfr_t variable. * gfortran.dg/rrspacing_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114821 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
PR fortran/25049 PR fortran/25050 * check.c (non_init_transformational): New function. (find_substring_ref): New function to signal use of disallowed transformational intrinsic in an initialization expression. (gfc_check_all_any): Call previous if initialization expr. (gfc_check_count): The same. (gfc_check_cshift): The same. (gfc_check_dot_product): The same. (gfc_check_eoshift): The same. (gfc_check_minloc_maxloc): The same. (gfc_check_minval_maxval): The same. (gfc_check_gfc_check_product_sum): The same. (gfc_check_pack): The same. (gfc_check_spread): The same. (gfc_check_transpose): The same. (gfc_check_unpack): The same. PR fortran/18769 *intrinsic.c (add_functions): Add gfc_simplify_transfer. *intrinsic.h : Add prototype for gfc_simplify_transfer. *simplify.c (gfc_simplify_transfer) : New function to act as placeholder for eventual implementation. Emit error for now. PR fortran/16206 * expr.c (find_array_element): Eliminate cond...
-
- 18 Jun, 2006 3 commits
-
-
fxcoudert authored
* trans-intrinsic.c (gfc_conv_associated): Use pre and post blocks of the scalarization expression. * gfortran.dg/associated_4.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114757 138bc75d-0d04-0410-961f-82ee72b054a4
-
jvdelisle authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114754 138bc75d-0d04-0410-961f-82ee72b054a4
-
jvdelisle authored
PR fortran/19310 * arith.c (gfc_range_check): Return ARITH_OK if -fno-range-check. Add return of ARITH_NAN, ARITH_UNDERFLOW, and ARITH_OVERFLOW. (gfc_arith_divide): If -fno-range-check allow mpfr to divide by zero. * gfortran.h (gfc_option_t): Add new flag. * invoke.texi: Document new flag. * lang.opt: Add option -frange-check. * options.c (gfc_init_options): Initialize new flag. (gfc_handle_options): Set flag if invoked. * simplify.c (range_check): Add error messages for overflow, underflow, and other errors. * trans-const.c (gfc_conv_mpfr_to_tree): Build NaN and Inf from mpfr result. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114752 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 17 Jun, 2006 1 commit
-
-
gerald authored
instead of "Programming", following the Free Software Directory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114744 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 16 Jun, 2006 1 commit
-
-
fxcoudert authored
* trans-array.c (gfc_conv_ss_startstride): Correct the runtime conditions for bounds-checking. Check for nonzero stride. Don't check the last dimension of assumed-size arrays. Fix the dimension displayed in the error message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114724 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 15 Jun, 2006 1 commit
-
-
tkoenig authored
* trans-array.h (gfc_trans_create_temp_array): Add bool argument. * trans-arrray.c (gfc_trans_create_temp_array): Add extra argument "function" to show if we are translating a function. If we are translating a function, perform checks whether the size along any argument is negative. In that case, allocate size 0. (gfc_trans_allocate_storage): Add function argument (as false) to gfc_trans_create_temp_array call. * trans-expr.c (gfc_conv_function_call): Add function argument (as true) to gfc_trans_create_temp_array call. * trans-stmt.c (gfc_conv_elemental_dependencies): Add function argument (as false) to gfc_trans_create_temp_array call. * trans-intrinsic.c: Likewise. 2006-06-15 Thomas Koenig <Thomas.Koenig@online.de> * gfortran.dg/allocate_zerosize_2.f90: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114677 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 09 Jun, 2006 2 commits
-
-
pault authored
PR fortran/24558 PR fortran/20877 PR fortran/25047 * decl.c (get_proc_name): Add new argument to flag that a module function entry is being treated. If true, correct error condition, add symtree to module namespace and add a module procedure. (gfc_match_function_decl, gfc_match_entry, gfc_match_subroutine): Use the new argument in calls to get_proc_name. * resolve.c (resolve_entries): ENTRY symbol reference to to master entry namespace if a module function. * trans-decl.c (gfc_create_module_variable): Return if the symbol is an entry. * trans-exp.c (gfc_conv_variable): Check that parent_decl is not NULL. 2006-06-10 Paul Thomas <pault@gcc.gnu.org> PR fortran/24558 * gfortran.dg/entry_6.f90: New test. PR fortran/20877 PR fortran/25047 * gfortran.dg/entry_7.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114526 138bc75d-0d04-0410-961f-82ee72b054a4
-
jakub authored
* trans-openmp.c (gfc_omp_clause_default_ctor): New function. * trans.h (gfc_omp_clause_default_ctor): New prototype. * f95-lang.c (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Define. * testsuite/libgomp.fortran/pr27916-1.f90: New test. * testsuite/libgomp.fortran/pr27916-2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114520 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 08 Jun, 2006 3 commits
-
-
fxcoudert authored
* trans-expr.c (gfc_conv_substring): If the substring start is greater than its end, the length of the substring is zero, and not negative. (gfc_trans_string_copy): Don't generate a call to _gfortran_copy_string when destination length is zero. * gcc/testsuite/gfortran.dg/substr_2.f: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114496 138bc75d-0d04-0410-961f-82ee72b054a4
-
langton authored
PR fortran/27786 * trans-array.c (gfc_conv_array_ref): Eliminate bounds checking for assumed-size Cray pointees. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114495 138bc75d-0d04-0410-961f-82ee72b054a4
-
kargl authored
* intrinsic.c (add_subroutine): Make make_noreturn() conditional on the appropriate symbol name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114490 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 07 Jun, 2006 1 commit
-
-
pault authored
PR fortran/23091 * resolve.c (resolve_fl_variable): Error if an automatic object has the SAVE attribute. PR fortran/24168 * expr.c (simplify_intrinsic_op): Transfer the rank and the locus to the simplified expression. PR fortran/25090 PR fortran/25058 * gfortran.h : Add int entry_id to gfc_symbol. * resolve.c : Add static variables current_entry_id and specification_expr. (resolve_variable): During code resolution, check if a reference to a dummy variable in an executable expression is preceded by its appearance as a parameter in an entry. Likewise check its specification expressions. (resolve_code): Update current_entry_id on EXEC_ENTRY. (resolve_charlen, resolve_fl_variable): Set and reset specifiaction_expr. (is_non_constant_shape_array): Do not return on detection of a variable but continue to resolve all the expressions. (resolve_codes): set current_entry_id to an out of range value. 2006-06-07 Paul Thomas <pault@gcc.gnu.org> PR fortran/23091 * gfortran.dg/saved_automatic_1.f90: New test. PR fortran/24168 * gfortran.dg/array_simplify_1.f90: New test. PR fortran/25090 * gfortran.dg/entry_dummy_ref_1.f90: New test. PR fortran/25058 * gfortran.dg/entry_dummy_ref_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114461 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 06 Jun, 2006 2 commits
-
-
mrs authored
installing during build. java,fortran: * Make-lang.in: Rename to htmldir to build_htmldir to avoid installing during build. treelang: * Make-lang.in: Rename to gcc_htmldir to build_htmldir to avoid installing during build. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114426 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
PR fortran/27897 * match.c (gfc_match_common): Fix code typo. Remove sym->name, since sym is NULL, and replace with name. * fortran/ChangeLog : Fix typo: 20838 to 20839. * testsuite/ChangeLog : The same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114422 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 05 Jun, 2006 3 commits
-
-
fxcoudert authored
* resolve.c (compute_last_value_for_triplet): New function. (check_dimension): Correctly handle zero-sized array sections. Add checking on last element of array sections. * gfortran.dg/bounds_check_3.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114414 138bc75d-0d04-0410-961f-82ee72b054a4
-
kargl authored
* data.c (gfc_assign_data_value): Fix comment typo. Remove a spurious return. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114406 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
PR fortran/14067 * data.c (create_character_intializer): Add warning message for truncated string. PR fortran/16943 * symbol.c : Include flags.h. (gfc_add_type): If a procedure and types are the same do not throw an error unless standard is less than gnu or pedantic. PR fortran/20838 * parse.c (parse_do_block): Error if named block do construct does not have a named enddo. PR fortran/27655 * check.c (gfc_check_associated): Pick up EXPR_NULL for pointer as well as target and put error return at end of function. 2006-06-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/14067 * gfortran.dg/data_char_1.f90: Add messages for truncated strings. PR fortran/16943 * gfortran.dg/func_decl_2.f90: New test. PR fortran/20838 * gfortran.dg/do_2.f90: New test. PR fortran/27655 * gfortran.dg/associated_3.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114385 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 03 Jun, 2006 1 commit
-
-
fxcoudert authored
Add strings for common runtime error messages. (gfc_trans_runtime_check): Add a locus argument, use a string and not a string tree for the message. * trans.h (gfc_trans_runtime_check): Change prototype accordingly. (gfc_msg_bounds, gfc_msg_fault, gfc_msg_wrong_return): Add proto. * trans-const.c (gfc_strconst_bounds, gfc_strconst_fault, gfc_strconst_wrong_return, gfc_strconst_current_filename): Remove. (gfc_init_constants): Likewise. * trans-const.h: Likewise. * trans-decl.c (gfc_build_builtin_function_decls): Call to _gfortran_runtime_error has only one argument, the message string. * trans-array.h (gfc_conv_array_ref): Add a symbol argument and a locus. * trans-array.c (gfc_trans_array_bound_check): Build precise error messages. (gfc_conv_array_ref): Use the new symbol argument and the locus to build more precise error messages. (gfc_conv_ss_startstride): More precise error messages. * trans-expr.c (gfc_conv_variable): Give symbol reference and locus to gfc_conv_array_ref. (gfc_conv_function_call): Use the new prototype for gfc_trans_runtime_check. * trans-stmt.c (gfc_trans_goto): Build more precise error message. * trans-io.c (set_string): Likewise. * trans-intrinsic.c (gfc_conv_intrinsic_bound): Use new prototype for gfc_trans_runtime_check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114346 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 01 Jun, 2006 3 commits
-
-
tkoenig authored
PR fortran/27715 * arith.c: Cast the characters from the strings to unsigned char to avoid values less than 0 for extended ASCII. 2006-06-01 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/27715 * gfortran.dg/extended_char_comparison_1.f: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114317 138bc75d-0d04-0410-961f-82ee72b054a4
-
bothner authored
* scanner.c (gfc_gobble_whitespace): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114310 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
PR fortran/25098 PR fortran/25147 * interface.c (compare_parameter): Return 1 if the actual arg is external and the formal is a procedure. (compare_actual_formal): If the actual argument is a variable and the formal a procedure, this an error. If a gsymbol exists for a procedure of the same name, this is not yet resolved and the error is cleared. * trans-intrinsic.c (gfc_conv_associated): Make provision for zero array length or zero string length contingent on presence of target, for consistency with standard. 2006-06-01 Paul Thomas <pault@gcc.gnu.org> PR fortran/25098 * gfortran.dg/dummy_procedure_1.f90: New test. PR fortran/25147 * gfortran.dg/dummy_procedure_2.f90: New test. * gfortran.dg/associated_2.f90: Correct to make consistent with standard. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114296 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 30 May, 2006 1 commit
-
-
kargl authored
* symbol.c (check_conflict): Allow external, function, and subroutine attributes with Cray pointees. * trans-expr.c (gfc_conv_function_val): Translate Cray pointees that point to procedures. * gfortran.texi: Document new feature. * gfortran.dg/cray_pointers_7.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114252 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 29 May, 2006 4 commits
-
-
jvdelisle authored
PR fortran/27634 * io.c (check_format): Add error for missing period in format specifier unless -std=legacy. * gfortran.texi: Add description of expanded namelist read and missing period in format extensions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114213 138bc75d-0d04-0410-961f-82ee72b054a4
-
fxcoudert authored
* trans-array.c (gfc_conv_array_ref): Perform out-of-bounds checking for assumed-size arrrays for all but the last dimension. * gfortran.dg/bounds_check_2.f: Add new check for multidimensional arrays. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114210 138bc75d-0d04-0410-961f-82ee72b054a4
-
fxcoudert authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114188 138bc75d-0d04-0410-961f-82ee72b054a4
-
kazu authored
in error messages. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114183 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 28 May, 2006 1 commit
-
-
kazu authored
trans-intrinsic.c, trans-stmt.c, trans-types.c: Fix comment typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114170 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 27 May, 2006 2 commits
-
-
fxcoudert authored
* trans-array.c (gfc_conv_array_ref): Don't perform out-of-bounds checking for assumed-size arrrays. * gfortran.dg/bounds_check_2.f: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114153 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
* trans-intrinsic.c (gfc_conv_associated): If pointer in first arguments has zero array length of zero string length, return false. 2006-05-27 Paul Thomas <pault@gcc.gnu.org> * gfortran.dg/associated_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114149 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 26 May, 2006 3 commits
-
-
fxcoudert authored
* trans-array.c (gfc_trans_dummy_array_bias): Don't use stride as a temporary variable when -fbounds-check is enabled, since its value will be needed later. * gfortran.dg/bounds_check_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114142 138bc75d-0d04-0410-961f-82ee72b054a4
-
tkoenig authored
PR fortran/23151 * io.c (match_io): print (1,*) is an error. 2006-05-26 Thomas Koenig <Thomas.Koenig@online.de> PR fortran/23151 * gfortran.dg/inquire_9.f90: Fix illegal print syntax. * gfortran.dg/print_parentheses_1.f: New test. * gfortran.dg/print_parentheses_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114138 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
PR fortran/27709 * resolve.c (find_array_spec): Add gfc_symbol, derived, and use to track repeated component references. PR fortran/27155 PR fortran/27449 * trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Use se->string_length throughout and use memcpy to populate the expression returned to the scalarizer. (gfc_size_in_bytes): New function. 2006-05-26 Paul Thomas <pault@gcc.gnu.org> PR fortran/27709 * gfortran.dg/spec_expr_4.f90: New test. PR fortran/27155 * gfortran.dg/transfer_array_intrinsic_4.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114127 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 21 May, 2006 2 commits
-
-
pault authored
PR fortran/27613 * primary.c (gfc_match_rvalue): Test if symbol represents a direct recursive function reference. Error if array valued, go to function0 otherwise. 2006-05-21 Paul Thomas <pault@gcc.gnu.org> PR fortran/27613 * gfortran.dg/recursive_reference_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113951 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
PR fortran/25746 * interface.c (gfc_extend_assign): Use new code EXEC_ASSIGN_CALL. * gfortran.h : Put EXEC_ASSIGN_CALL in enum. * trans-stmt.c (gfc_conv_elemental_dependencies): New function. (gfc_trans_call): Call it. Add new boolian argument to flag need for dependency checking. Assert intent OUT and IN for arg1 and arg2. (gfc_trans_forall_1): Use new code EXEC_ASSIGN_CALL. trans-stmt.h : Modify prototype of gfc_trans_call. trans.c (gfc_trans_code): Add call for EXEC_ASSIGN_CALL. st.c (gfc_free_statement): Free actual for EXEC_ASSIGN_CALL. * dependency.c (gfc_check_fncall_dependency): Don't check other against itself. PR fortran/25090 * resolve.c : Remove resolving_index_expr. (entry_parameter): Remove. (gfc_resolve_expr, resolve_charlen, resolve_fl_variable): Remove calls to entry_parameter and references to resolving_index_expr. PR fortran/27584 * check.c (gfc_check_associated): Replace NULL assert with an error message, since it is possible to generate bad code that has us fall through to here.. PR fortran/19015 * iresolve.c (maxloc, minloc): If DIM is not present, pass the rank of ARRAY as the shape of the result. Otherwise, pass the shape of ARRAY, less the dimension DIM. (maxval, minval): The same, when DIM is present, otherwise no change. 2006-05-21 Paul Thomas <pault@gcc.gnu.org> PR fortran/25746 * gfortran.dg/elemental_subroutine_3.f90: New test. PR fortran/25090 * gfortran.dg/entry_dummy_ref_1.f90: Remove. PR fortran/27584 * gfortran.dg/associated_target_1.f90: New test. PR fortran/19015 * gfortran.dg/maxloc_shape_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113949 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 20 May, 2006 2 commits
-
-
hjl authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113942 138bc75d-0d04-0410-961f-82ee72b054a4
-
hjl authored
2006-05-19 H.J. Lu <hongjiu.lu@intel.com> PR fortran/27662 * trans-array.c (gfc_conv_expr_descriptor): Don't zere the first stride to indicate a temporary. * trans-expr.c (gfc_conv_function_call): Likewise. gcc/testsuite/ 2006-05-19 H.J. Lu <hongjiu.lu@intel.com> PR fortran/27662 * gfortran.dg/temporary_1.f90: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113922 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 18 May, 2006 1 commit
-
-
fengwang authored
Feng Wang <fengwang@nudt.edu.cn> PR fortran/27552 * dump-parse-tree.c (gfc_show_expr): Deal with Hollerith constants. * data.c (create_character_intializer): Set from_H flag if character is initialized by Hollerith constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113881 138bc75d-0d04-0410-961f-82ee72b054a4
-