- 05 Apr, 2007 1 commit
-
-
pault authored
PR fortran/31292 * decl.c (gfc_match_modproc): Go up to the top of the namespace tree to find the module namespace for gfc_get_symbol. 2007-04-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/31292 * gfortran.dg/contained_module_proc_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123517 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 03 Apr, 2007 1 commit
-
-
fxcoudert authored
* fortran/gfortran.h (gfc_charlen_int_kind): New prototype. * fortran/trans-types.c (gfc_charlen_int_kind): New variable. (gfc_init_types): Define gfc_charlen_int_kind. * fortran/trans.h (gfor_fndecl_string_repeat): Remove prototype. * fortran/trans-decl.c (gfor_fndecl_string_repeat): Delete. (gfc_build_intrinsic_function_decls): Don't set gfor_fndecl_string_repeat. * fortran/trans-intrinsic.c (gfc_conv_intrinsic_repeat): Rewrite so that we don't have to call a library function. * fortran/simplify.c (gfc_simplify_repeat): Perform the necessary checks on the NCOPIES argument, and work with arbitrary size arguments. * intrinsics/string_intrinsics.c (string_repeat): Remove. * gfortran.dg/repeat_2.f90: New test. * gfortran.dg/repeat_3.f90: New test. * gfortran.dg/repeat_4.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123481 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 31 Mar, 2007 2 commits
-
-
burnus authored
* intrinsic.c (add_functions): Fix name of dummy argument for new_line and exit intrinsic. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123385 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
PR fortran/31160 * gfortran.texi: Add a section for the %VAL, %REF and %LOC extensions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123383 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 30 Mar, 2007 1 commit
-
-
espindola authored
* typeck.c (java_signed_or_unsigned_type): Remove. (java_signed_type): use get_signed_or_unsigned_type instead of java_signed_or_unsigned_type. (java_unsigned_type): Ditto. * lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove. * java-tree.h (java_signed_or_unsigned_type): Remove gcc/Changelog: * tree.h(get_signed_or_unsigned_type): New * fold-const.c (operand_equal_for_comparison_p): Use get_signed_or_unsigned_type instead of lang_hooks.types.signed_or_unsigned_type. * expr.c (store_expr): Ditto. * langhooks.c (get_signed_or_unsigned_type): New. (lhd_signed_or_unsigned_type): New * langhooks.h (lhd_signed_or_unsigned_type): New. * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define. gcc/treelang/ChangeLog: * treetree.c (tree_lang_signed_or_unsigned_type): Remove. (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE) Remove. gcc/ada/ChangeLog: * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type instead of gnat_signed_or_unsigned_type. * utils.c (gnat_signed_or_unsigned_type): Remove. * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove * gigi.h (gnat_signed_or_unsigned_type): Remove gcc/forrtan/trans-types.c: * trans-types.c (gfc_signed_or_unsigned_type): Remove. (gfc_unsigned_type): Use get_signed_or_unsigned_type instead of gfc_signed_or_unsigned_type. (gfc_signed_type): Ditto. * trans-types.h (gfc_signed_or_unsigned_type): Remove. * f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123373 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 29 Mar, 2007 2 commits
-
-
tobi authored
descend into all branches. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123355 138bc75d-0d04-0410-961f-82ee72b054a4
-
tobi authored
(find_conv): Compare pointers instead of calling strcmp. (find_sym): Likewise, but ensure that the compared pointer is in the global string table. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123346 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 28 Mar, 2007 1 commit
-
-
tobi authored
* gfc-internals.texi: Fix output filename. Merge type index into concept index. Start documentation of gfc_code structure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123309 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 27 Mar, 2007 1 commit
-
-
brooks authored
* Make-lang.in: Add rules to convert it to dvi, pdf, and info. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123251 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 26 Mar, 2007 2 commits
-
-
brooks authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123244 138bc75d-0d04-0410-961f-82ee72b054a4
-
brooks authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123236 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 25 Mar, 2007 1 commit
-
-
fxcoudert authored
* fortran/interface.c (check_operator_interface): Implement the standard checks on user operators extending intrinsic operators. * fortran/resolve.c (resolve_operator): If the ranks of operators don't match, don't error out but try the user-defined ones first. * gfortran.dg/operator_1.f90: New test. * gfortran.dg/operator_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123196 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 24 Mar, 2007 5 commits
-
-
fxcoudert authored
* expr.c (check_dimension): Fix logic of comparisons. * gfortran.dg/bounds_check_6.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123187 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
PR fortran/31215 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return int result that is non-zero if the expression is the function result. Only the characteristics of the result expression can be used in a procedure interface, so simplify LEN in situ using its character length. PR fortran/31219 PR fortran/31200 * trans-expr.c (gfc_conv_function_call): Do not use gfc_conv_expr_reference for actual pointer function with formal target because a temporary is created that does not transfer the reference correctly. Do not indirect formal pointer functions since it is the function reference that is needed. 2007-03-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/31219 * gfortran.dg/pointer_function_actual_1.f90: New test. PR fortran/31200 * gfortran.dg/pointer_function_actual_2.f90: New test. PR fortran/31215 * gfortran.dg/result_in_spec_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123184 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
PR fortran/31215 * trans-expr.c (gfc_apply_interface_mapping_to_expr): Return int result that is non-zero if the expression is the function result. Only the characteristics of the result expression can be used in a procedure interface, so simplify LEN in situ using its character length. PR fortran/31219 PR fortran/31200 * trans-expr.c (gfc_conv_function_call): Do not use gfc_conv_expr_reference for actual pointer function with formal target because a temporary is created that does not transfer the reference correctly. Do not indirect formal pointer functions since it is the function reference that is needed. 2007-03-24 Paul Thomas <pault@gcc.gnu.org> PR fortran/31219 * gfortran.dg/pointer_function_actual_1.f90: New test. PR fortran/31200 * gfortran.dg/pointer_function_actual_2.f90: New test. PR fortran/31215 * gfortran.dg/result_in_spec_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123183 138bc75d-0d04-0410-961f-82ee72b054a4
-
brooks authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123182 138bc75d-0d04-0410-961f-82ee72b054a4
-
brooks authored
(-Wcharacter-truncation): Add. (-Wnonstd-intrinsics): Correct spelling. (-std=): Edit. (-fintrinsic-modules-path): Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123181 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 23 Mar, 2007 1 commit
-
-
fxcoudert authored
* arith.c (complex_pow): Rewrite to handle large power. (gfc_arith_power): Handle large power in the real and integer cases. * gfortran.dg/integer_exponentiation_3.F90: New test. * gfortran.dg/integer_exponentiation_4.f90: New test. * gfortran.dg/integer_exponentiation_5.F90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123154 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 22 Mar, 2007 3 commits
-
-
fxcoudert authored
* trans-const.c (gfc_conv_mpz_to_tree): Allow integer constants larger than twice the width of a HOST_WIDE_INT. * gfortran.dg/no_range_check_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123136 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
PR fortran/31193 * trans-intrinsic.c (gfc_size_in_bytes): Remove function. (gfc_conv_intrinsic_array_transfer): Remove calls to previous. Explicitly extract TREE_TYPEs for source and mold. Use these to calculate length of source and mold, except for characters, where the se string_length is used. For mold, the TREE_TYPE is recalculated using gfc_get_character_type_len so that the result is correctly cast for character literals and substrings. Do not use gfc_typenode_for_spec for the final cast. 2006-03-22 Paul Thomas <pault@gcc.gnu.org> PR fortran/31193 * gfortran.dg/transfer_array_intrinsic_3.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123131 138bc75d-0d04-0410-961f-82ee72b054a4
-
tobi authored
fortran/ * decl.c (gfc_match_derived_decl): Reliably reject 'doubleprecision' and 'doublecomplex' as type names. testsuite/ * gfortran.dg/derived_name_1.f90: New. * gfortran.dg/derived_name_2.f: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123129 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 19 Mar, 2007 1 commit
-
-
fxcoudert authored
* trans-expr.c (gfc_trans_init_string_length): Length should never be negative. (gfc_conv_function_call): Likewise. * gfortran.dg/string_length_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123051 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 18 Mar, 2007 1 commit
-
-
pault authored
PR fortran/30531 PR fortran/31086 * symbo.c : Add gfc_derived_types. (gfc_free_dt_list): Free derived type list gfc_derived_types. (gfc_free_namespace): Remove call to gfc_free_dt_list. (gfc_symbol_done_2): Call gfc_free_dt_list. * gfortran.h : Declare gfc_derived_types to be external. Remove derived types field from gfc_namespace. * resolve.c (resolve_fl_derived): Refer to gfc_derived types rather than namespace derived_types. (resolve_fntype): Remove special treatment for module derived type functions. * trans-types.c (gfc_get_derived_type): Remove search for like derived types. Finish by copying back end declaration to like derived types in the derived type list gfc_derived_types. 2007-03-18 Paul Thomas <pault@gcc.gnu.org> PR fortran/30531 * gfortran.dg/used_types_14.f90: New test. PR fortran/31086 * gfortran.dg/used_types_15.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123037 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 17 Mar, 2007 2 commits
-
-
fxcoudert authored
* trans-expr.c (gfc_conv_powi): Make n argument unsigned hwi. (gfc_conv_cst_int_power): Handle integer exponent with care, since it might be too large for us. * gfortran.dg/integer_exponentiation_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123028 138bc75d-0d04-0410-961f-82ee72b054a4
-
fxcoudert authored
* invoke.texi: Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123018 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 16 Mar, 2007 2 commits
-
-
burnus authored
Tobias Burnus <burnus@net-b.de> PR fortran/31188 * expr.c (find_array_section): Allow non-expression-constant variables. 2007-03-16 Tobias Burnus <burnus@net-b.de> PR fortran/31188 * gfortran.dg/parameter_array_dummy.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122987 138bc75d-0d04-0410-961f-82ee72b054a4
-
burnus authored
* trans-decl.c (gfc_generate_function_code): Use all arguments of set_std. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122981 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 15 Mar, 2007 2 commits
-
-
fxcoudert authored
* lang.opt: Add -fbacktrace option. * invoke.texi: Document the new option. * trans-decl.c (gfc_build_builtin_function_decls): Add new option to the call to set_std. * options.c (gfc_init_options, gfc_handle_option): Handle the new option. * runtime/backtrace.c: New file. * runtime/environ.c (variable_table): New GFORTRAN_ERROR_BACKTRACE environment variable. * runtime/compile_options.c (set_std): Add new argument. * runtime/main.c (store_exe_path, full_exe_path): New functions. * runtime/error.c (sys_exit): Add call to show_backtrace. * libgfortran.h (options_t): New backtrace field. (store_exe_path, full_exe_path, show_backtrace): New prototypes. * configure.ac: Add checks for execinfo.h, execvp, pipe, dup2, close, fdopen, strcasestr, getrlimit, backtrace, backtrace_symbols and getppid. * Makefile.am: Add runtime/backtrace.c. * fmain.c (main): Add call to store_exe_path. * Makefile.in: Renegerate. * config.h.in: Renegerate. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122954 138bc75d-0d04-0410-961f-82ee72b054a4
-
pault authored
Paul Thomas <pault@gcc.gnu.org> PR fortran/30922 * decl.c (gfc_match_import): If the parent of the current name- space is null, try looking for an imported symbol in the parent of the proc_name interface. * resolve.c (resolve_fl_variable): Do not check for blocking of host association by a same symbol, if the symbol is in an interface body. 2007-03-15 Paul Thomas <pault@gcc.gnu.org> PR fortran/30879 * decl.c (match_data_constant): Before going on to try to match a name, try to match a structure component. PR fortran/30870 * resolve.c (resolve_actual_arglist): Do not reject a generic actual argument if it has a same name specific interface. PR fortran/31163 * trans-array.c (parse_interface): Do not nullify allocatable components if the symbol has the saved attribute. 2007-03-15 Paul Thomas <pault@gcc.gnu.org> PR fortran/30922 * gfortran.dg/import5.f90.f90: New test. PR fortran/30879 * gfortran.dg/data_components_1.f90: New test. PR fortran/30870 * gfortran.dg/generic_13.f90: New test. PR fortran/31163 * gfortran.dg/alloc_comp_basics_5.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122944 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 14 Mar, 2007 5 commits
-
-
fxcoudert authored
fold(convert()) by fold_convert(). (gfc_duplicate_allocatable): Likewise. * trans-intrinsic.c (gfc_conv_intrinsic_dot_product): Use build_int_cst instead of converting an integer_zero_node to the final type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122921 138bc75d-0d04-0410-961f-82ee72b054a4
-
jakub authored
* gfortran.dg/module_implicit_conversion.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122915 138bc75d-0d04-0410-961f-82ee72b054a4
-
brooks authored
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122908 138bc75d-0d04-0410-961f-82ee72b054a4
-
brooks authored
PR fortran/30948 PR fortran/30953 * intrinsics.texi (CHDIR): Fix argument names, note that STATUS must be a default integer. (CTIME): Fix argument names, note that RESULT must be a default integer. (EXIT): Note that STATUS must be a default integer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122905 138bc75d-0d04-0410-961f-82ee72b054a4
-
brooks authored
* intrinsic.texi: General whitespace cleanup, remove comment about missing intrinsics. (menu): Add lines for new entries listed below. (ACOSH): Mention specific function DACOSH, correct description phrasing. (ASINH): Mention specific function DASINH, correct description phrasing. (ATANH): Mention specific function DATANH, correct description phrasing. (COS): Add index entry for CCOS. (CPU_TIME): Correct "REAL" to "REAL(*)". (EXP): Add index entry for CEXP. (INT): Correct argument name to "A". (INT2): New entry. (INT8): New entry. (LONG): New entry. (MAX): Add index entries for specific variants. (MCLOCK): New entry. (MCLOCK8): New entry. (SECNDS): Adjust to a more standard form. (SECOND): New entry. (TIME): Add cross-reference to MCLOCK. (TIME8): Add cross-reference to MCLOCK8. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122902 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 11 Mar, 2007 1 commit
-
-
pault authored
PR fortran/30883 * parse.c (parse_interface): Use the default types from the formal namespace if a function or its result do not have a type after parsing the specification statements. 2007-03-11 Paul Thomas <pault@gcc.gnu.org> PR fortran/30883 * gfortran.dg/interface_11.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122822 138bc75d-0d04-0410-961f-82ee72b054a4
-
- 08 Mar, 2007 5 commits
-
-
brooks authored
(ACHAR): Reference it. (CHAR): Reference it. (IACHAR): Reference it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122729 138bc75d-0d04-0410-961f-82ee72b054a4
-
brooks authored
(RENAME): Likewise. (SYMLNK): Likewise. (SYSTEM): Likewise. (UNLINK): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122728 138bc75d-0d04-0410-961f-82ee72b054a4
-
brooks authored
(FSEEK): moved to correct place in alphabetical order. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122726 138bc75d-0d04-0410-961f-82ee72b054a4
-
dfranke authored
PR fortran/30947 * check.c (gfc_check_alarm_sub): Added check for default integer kind of status argument. * iresolve.c (gfc_resolve_alarm_sub): Removed conversion of status argument. * intrinsic.texi (ALARM): Extended documentation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122715 138bc75d-0d04-0410-961f-82ee72b054a4
-
dfranke authored
* intrinsic.texi (GERROR, ISATTY, TTYNAM): New. (ABORT, FLUSH, FNUM, IRAND, MALLOC, SIGNAL, SRAND): Fixed typo. * intrinsic.c (add_subroutines): Adjusted dummy argument names of GERROR and TTYNAM. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122712 138bc75d-0d04-0410-961f-82ee72b054a4
-