summaryrefslogtreecommitdiffstats
path: root/gcc/fortran
Commit message (Collapse)AuthorAgeFilesLines
...
* 2011-01-05 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2011-01-052-9/+64
| | | | | | | | | | | | | | | PR fortran/46017 * resolve.c (resolve_allocate_deallocate): Follow references to check for duplicate occurence of allocation/deallocation objects. 2011-01-05 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/46017 * gfortran.dg/allocate_error_2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168506 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-01-05 Janus Weil <janus@gcc.gnu.org>janus2011-01-052-3/+24
| | | | | | | | | | | | | | | PR fortran/47024 * trans-decl.c (gfc_trans_deferred_vars): Initialize the _vpr component of polymorphic allocatables according to their declared type. 2011-01-05 Janus Weil <janus@gcc.gnu.org> PR fortran/47024 * gfortran.dg/storage_size_3.f08: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168505 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-01-04 Janus Weil <janus@gcc.gnu.org>janus2011-01-042-0/+8
| | | | | | | | | | | | | | | PR fortran/46448 * class.c (gfc_find_derived_vtab): Set the module field for the copying routine to make sure it receives module name mangling. 2011-01-04 Janus Weil <janus@gcc.gnu.org> PR fortran/46448 * gfortran.dg/class_34.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168464 138bc75d-0d04-0410-961f-82ee72b054a4
* Update Copyright years for files modified in 2010.jakub2011-01-0312-12/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168438 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/jakub2011-01-032-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * gcc.c (process_command): Update copyright notice dates. * gcov.c (print_version): Likewise. * gcov-dump.c (print_version): Likewise. * mips-tfile.c (main): Likewise. * mips-tdump.c (main): Likewise. gcc/fortran/ * gfortranspec.c (lang_specific_driver): Update copyright notice dates. gcc/java/ * jcf-dump.c (version): Update copyright notice dates. libmudflap/ * mf-runtime.c (__mf_usage): Update copyright notice dates. libjava/ * gnu/gcj/convert/Convert.java (version): Update copyright notice dates. * gnu/gcj/tools/gcj_dbtool/Main.java (main): Likewise. libjava/classpath/ * gnu/java/rmi/registry/RegistryImpl.java (version): Update copyright notice dates. * tools/gnu/classpath/tools/orbd/Main.java (run): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168432 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-01-03 Janus Weil <janus@gcc.gnu.org>janus2011-01-032-1/+6
| | | | | | | * intrinsic.texi (LEADZ): Fix example. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168415 138bc75d-0d04-0410-961f-82ee72b054a4
* 2011-01-02 Janus Weil <janus@gcc.gnu.org>janus2011-01-022-1/+7
| | | | | | | | | | | | | | | PR fortran/46408 * class.c (gfc_find_derived_vtab): Use EXEC_INIT_ASSIGN for __copy_ routine. 2011-01-02 Janus Weil <janus@gcc.gnu.org> PR fortran/46408 * gfortran.dg/class_19.f03: Adjust counting of __builtin_free. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168409 138bc75d-0d04-0410-961f-82ee72b054a4
* Rotate ChangeLogs.hjl2011-01-022-5551/+5557
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168399 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-31 Janus Weil <janus@gcc.gnu.org>janus2010-12-312-6/+11
| | | | | | | | * intrinsic.texi (IANY): Correct section title. (IALL, IANY, IPARITY): Fix example codes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168380 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-31 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-12-312-1/+114
| | | | | | | | | | | | | | | | | | | | PR fortran/47065 * frontend-passes.c (count_arglist): Static variable to count the nesting of argument lists. (optimize_code): Set count_arglist to 1 if within a call statement, to 0 otherwise. (optimize_trim): New function. (optimize_expr): Adjust count_arglist. Call optimize_trim. 2010-12-31 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/47065 * gfortran.dg/trim_optimize_3.f90: New test. * gfortran.dg/trim_optimize_4.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168367 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-31 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-12-312-3/+12
| | | | | | | | | | | | | | | PR fortran/45338 * resolve.c (resolve_operator): Mark function for user-defined operator as referenced. 2010-12-31 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/45338 * gfortran.dg/userdef_operator_2.f90: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168366 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-31 Janus Weil <janus@gcc.gnu.org>janus2010-12-314-47/+65
| | | | | | | | | | | | | | | | | | | | | | PR fortran/46971 * gfortran.h (gfc_hash_value): Add prototype. * class.c (get_unique_type_string): Check if proc_name is present and make sure string contains an underscore. (get_unique_hashed_string): New function which creates a hashed string if the given unique string is too long. (gfc_hash_value): Moved here from decl.c, renamed and simplified. (gfc_build_class_symbol, gfc_find_derived_vtab): Use hashed strings. * decl.c (hash_value): Moved to class.c. (gfc_match_derived_decl): Renamed 'hash_value'. 2010-12-31 Janus Weil <janus@gcc.gnu.org> PR fortran/46971 * gfortran.dg/class_33.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168363 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-30 Janus Weil <janus@gcc.gnu.org>janus2010-12-303-2/+9
| | | | | | | | | | | | | | | PR fortran/47085 * match.c (gfc_match_allocate): Check for 'class_ok'. * primary.c (gfc_match_varspec): Ditto. 2010-12-30 Janus Weil <janus@gcc.gnu.org> PR fortran/47085 * gfortran.dg/allocate_class_1.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168340 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-29 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-12-292-0/+7
| | | | | | | | | * dump_parse_tree.c (show_components): Show ALLOCATABLE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168324 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-29 Janus Weil <janus@gcc.gnu.org>janus2010-12-292-2/+9
| | | | | | | | | | | | | | PR fortran/46838 * expr.c (gfc_default_initializer): Handle allocatable CLASS components. 2010-12-29 Janus Weil <janus@gcc.gnu.org> PR fortran/46838 * gfortran.dg/alloc_comp_class_2.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168322 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-29 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-12-292-0/+32
| | | | | | | | | | | | | | * frontend-passes.c (gfc_code_walker): Handle expressions in EXEC_CALL, EXEC_ASSIGN_CALL and EXEC_CALL_PPC. Separate cases in switch statements by blank lines. 2010-12-29 Thomas Koenig <tkoenig@gcc.gnu.org> * gfortran.dg/character_comparison_7.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168320 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-28 Janus Weil <janus@gcc.gnu.org>janus2010-12-282-0/+9
| | | | | | | | | | | | | | | | Daniel Franke <dfranke@gcc.gnu.org> PR fortran/45827 * module.c (mio_component_ref): Handle components of CLASS variables. 2010-12-28 Janus Weil <janus@gcc.gnu.org> PR fortran/45827 * gfortran.dg/class_32.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168302 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-27 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-12-272-0/+5
| | | | | | | | * dump-parse-tree.c (show_typespec): Also show character kind. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168276 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-24 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-12-242-24/+60
| | | | | | | | | | | | | | | | PR fortran/31821 * check.c (gfc_var_strlen): New function, also including substring references. (gfc_check_same_strlen): Use gfc_var_strlen. 2010-12-24 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/31821 * gfortran.dg/char_pointer_assign_6.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168224 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-23 Mikael Morin <mikael.morin@gcc.gnu.org>mikael2010-12-232-2/+9
| | | | | | | | | | | PR fortran/46978 Revert part of revision 164112 * trans-array.c (gfc_trans_create_temp_array): Set loop n'th upper bound from (possibly transposed) array's dim bounds. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168206 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-18 Tobias Burnus <burnus@net-b.de>burnus2010-12-183-17/+49
| | | | | | | | | | | | | | | | | PR fortran/46974 * target-memory.c (gfc_interpret_derived): Handle * C_PTR/C_FUNPTR. * trans-expr.c (gfc_trans_structure_assign): Ditto. (gfc_conv_expr): Avoid crashes using non-C_NULL_(FUN)PTR const expr. 2010-12-18 Tobias Burnus <burnus@net-b.de> PR fortran/46974 * gfortran.dg/c_ptr_tests_16.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168031 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-17 Janus Weil <janus@gcc.gnu.org>janus2010-12-172-1/+10
| | | | | | | | | | | | | | | | Tobias Burnus <burnus@gcc.gnu.org> PR fortran/46849 * resolve.c (resolve_symbol): Remove symbols that wrongly ended up in a local BLOCK namespace. 2010-12-17 Janus Weil <janus@gcc.gnu.org> PR fortran/46849 * gfortran.dg/block_9.f08: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167978 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/46945jakub2010-12-152-27/+32
| | | | | | | | | | | | * trans-array.c (gfc_array_init_size): Perform stride overflow checking and multiplication by element_size in size_type_node instead of sizetype, return value with size_type_node type instead of sometimes with sizetype and sometimes with gfc_array_index_type. * gfortran.dg/pr46945.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167871 138bc75d-0d04-0410-961f-82ee72b054a4
* Better error message for malloc() failurejb2010-12-153-5/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167863 138bc75d-0d04-0410-961f-82ee72b054a4
* PR 28105 Remove size<0 checks before calling malloc/reallocjb2010-12-152-70/+17
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167860 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-14 Tobias Burnus <burnus@net-b.de>burnus2010-12-142-1/+13
| | | | | | | | | | | | | | | PR fortran/46937 * trans-types.c (create_fn_spec): "."-annotate derived types with (proc-)pointer components. 2010-12-14 Tobias Burnus <burnus@net-b.de> PR fortran/46937 * gfortran.dg/pointer_intent_4.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167806 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/46874jakub2010-12-142-8/+26
| | | | | | | | | | * trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable dummy variables. * libgomp.fortran/allocatable6.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167798 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-13 Janus Weil <janus@gcc.gnu.org>janus2010-12-132-1/+7
| | | | | | | | | | | | | | PR fortran/46201 * trans-expr.c (gfc_conv_procedure_call): Handle procedure pointer components called on a dimensionful base object. 2010-12-13 Janus Weil <janus@gcc.gnu.org> PR fortran/46201 * gfortran.dg/proc_ptr_comp_27.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167767 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-13 Janus Weil <janus@gcc.gnu.org>janus2010-12-132-1/+7
| | | | | | | | | | | | | | PR fortran/46841 * trans-expr.c (gfc_trans_subcomponent_assign): Handle array-valued procedure pointer components. 2010-12-13 Janus Weil <janus@gcc.gnu.org> PR fortran/46841 * gfortran.dg/proc_ptr_comp_26.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167750 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/46884jakub2010-12-132-5/+22
| | | | | | | | | | | * symbol.c (gfc_new_charlen): If old_cl is non-NULL, put it at the ns->old_cl_list spot in the chain rather than at ns->cl_list. * gfortran.dg/pr46884.f: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167742 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-12 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-12-122-1/+5
| | | | | | | | * dump-parse-tree.c (show_expr): Add space for parens. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167732 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-12 Janus Weil <janus@gcc.gnu.org>janus2010-12-122-0/+7
| | | | | | | | | | | | | | PR fortran/46809 * resolve.c (resolve_select_type): Set the location of the first argument when generating the EXTENDS_TYPE_OF call. 2010-12-12 Janus Weil <janus@gcc.gnu.org> PR fortran/46809 * gfortran.dg/pointer_check_8.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167731 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-11 Jerry DeLisle <jvdelisle@gcc.gnu.org>jvdelisle2010-12-117-31/+54
| | | | | | | | | | | | | | | | | | | PR fortran/46705 * gfortran.h: New enum gfc_instring. (gfc_next_char_literal): Update prototype. * scanner.c (gfc_next_char_literal): Use new enum. Only give missing '&' warning for INSTRING_WARN. (gfc_next_char): Use new enum. (gfc_gobble_whitespace): Likewise. * io.c (next_char): Use new enum. (next_char_not_space): Likewise. (format_lex): Likewise. * match.c (gfc_match_parens): Likewise. (gfc_match_special_char): Likewise. (gfc_match_name_C): Likewise. * parse.c (next_fixed): Likewise. * primary.c (match_hollerith_constant): Likewise. (next_string_char): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167716 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-11 Tobias Burnus <burnus@net-b.de>burnus2010-12-113-8/+20
| | | | | | | | | | | | | | | | | PR fortran/46370 * primary.c (gfc_match_varspec): Pass information about * codimension to gfc_match_array_ref also for BT_CLASS. * resolve.c (resolve_procedure): Correct check for C612. 2010-12-11 Tobias Burnus <burnus@net-b.de> PR fortran/46370 * gfortran.dg/coarray_14.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167715 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-11 Mikael Morin <mikael@gcc.gnu.org>jvdelisle2010-12-112-10/+20
| | | | | | | | | | | | Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/46842 * trans-array.c (dim_ok): New helper function. (gfc_conv_expr_descriptor): Use new helper function to check function array is full. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167713 138bc75d-0d04-0410-961f-82ee72b054a4
* /burnus2010-12-102-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2010-12-10 Tobias Burnus <burnus@net-b.de> PR fortran/46540 * configure.ac: Add --disable-libquadmath and --disable-libquadmath-support. * configure: Regenerate. gcc/ 2010-12-10 Tobias Burnus <burnus@net-b.de> PR fortran/46540 * configure.ac: Handle --disable-libquadmath-support. * doc/install.texi: Document --disable-libquadmath and --disable-libquadmath-support * configure: Regenerate. * config.in: Regenerate. gcc/fortran/ 2010-12-10 Tobias Burnus <burnus@net-b.de> PR fortran/46540 * trans-types.c (gfc_init_kinds): Handle --disable-libquadmath-support. libgfortran/ 2010-12-10 Tobias Burnus <burnus@net-b.de> PR fortran/46540 * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Honour --disable-libquadmath-support. * configure.ac: Handle --disable-libquadmath-support. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167684 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-09 Steven G. Kargl <kargl@gcc.gnu.org>kargl2010-12-092-1/+5
| | | | | | | | * check.c (gfc_check_sngl): Insert missing space in error message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167645 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-09 Steven G. Kargl <kargl@gcc.gnu.org>kargl2010-12-092-1/+5
| | | | | | | * check.c (gfc_check_float): Insert missing space in error message. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167643 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-07 Tobias Burnus <burnus@net-b.de>burnus2010-12-072-20/+38
| | | | | | | | | | | | | | | | | | | | PR fortran/44352 * trans-expr.c (gfc_string_to_single_character): Return if not POINTER_TYPE_P. (gfc_trans_string_copy): gfc_build_addr_expr if src or dest is not a pointer. (gfc_trans_string_copy): Make sure the argument string type has a string length, fix indention, and remove not needed gfc_build_addr_expr. 2010-12-07 Tobias Burnus <burnus@net-b.de> PR fortran/44352 * gfortran.dg/string_4.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167569 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-04 Daniel Kraft <d@domob.eu>domob2010-12-042-1/+28
| | | | | | | | | | | | | | PR fortran/46794 * trans-expr.c (gfc_conv_power_op): Handle kind of result expression correctly for integer kind 1 and 2 operands. 2010-12-04 Daniel Kraft <d@domob.eu> PR fortran/46794 * gfortran.dg/power2.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167453 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-03 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-12-032-1/+8
| | | | | | | | | | PR fortran/44352 * dump-parse-tree.c (show_symbol): Don't show formal namespace for statement functions in order to avoid infinite recursion. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167416 138bc75d-0d04-0410-961f-82ee72b054a4
* Correct date on latest submissions.tkoenig2010-12-031-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167414 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-02 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-12-032-47/+62
| | | | | | | | | | | | | | | | | | | | | PR fortran/45159 * dependency.c (check_section_vs_section): Pre-calculate the relationship between the strides and the relationship between the start values. Use an integer constant one for that purpose. Forward dependencies for positive strides apply for where the lhs start <= rhs start and lhs stride <= rhs stride and vice versa for negative stride. No need to compare end expressions in either case (assume no bounds violation). 2010-12-02 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/45159 * gfortran.dg/dependency_38.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167413 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-12-02 Thomas Koenig <tkoenig@gcc.gnu.org>tkoenig2010-12-032-8/+21
| | | | | | | | | | | | | | * trans-array.c (gfc_could_be_alias): Handle BT_CLASS as well as BT_DERIVED. (gfc_array_allocate): Likewise. (gfc_conv_array_parameter): Likewise. (structure_alloc_comps): Likewise. (gfc_is_reallocatable_lhs): Likewise. (gfc_trans_deferred_array): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167412 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/46753jakub2010-12-022-7/+14
| | | | | | | | | | * trans-openmp.c (gfc_trans_omp_do): Use build2_loc instead of fold_build2_loc for OMP_FOR conditions. * libgomp.fortran/pr46753.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167372 138bc75d-0d04-0410-961f-82ee72b054a4
* PR fortran/28105 Overflow check for ALLOCATE statementjb2010-11-302-11/+139
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167317 138bc75d-0d04-0410-961f-82ee72b054a4
* * hwint.c: New. Extracted from toplev.c.jsm282010-11-302-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2): Move from toplev.h. * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2): Move to hwint.c. * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2): Move to hwint.h. * builtins.c, combine.c, config/i386/winnt.c, double-int.c, explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c, ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c, real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c, stor-layout.c, tree-dfa.c, tree-ssa-alias.c, tree-ssa-loop-niter.c, tree-vect-data-refs.c, tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c, tree-vrp.c: Don't include toplev.h. * genattrtab.c, genconditions.c, genemit.c, genextract.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include toplev.h in generated output. * Makefile.in (OBJS-common): Add hwint.o. Dependencies for above files changed to remove toplev.h. (hwint.o): New. (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o, insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on toplev.h. * config/i386/t-cygming (winnt.o): Don't depend on toplev.h. * config/i386/t-interix (winnt.o): Don't depend on toplev.h. fortran: * trans-common.c: Don't include toplev.h. java: * boehm.c: Don't include toplev.h. * Make-lang.in (java/boehm.o): Don't depend on toplev.h. lto: * lto-object.c: Don't include toplev.h. * Make-lang.in (lto/lto-object.o): Don't depend on toplev.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167301 138bc75d-0d04-0410-961f-82ee72b054a4
* * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.jsm282010-11-292-22/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>. (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill): Conditionally define. (GET_ENVIRONMENT): Poison. * configure.ac: Don't test for mincore. * configure: Regenerate. * config.in: Regenerate. * collect2-aix.c: Don't include <sys/mman.h>. * collect2.c: Don't include <signal.h>. (SIGCHLD): Don't define. (prefix_from_env): Use getenv instead of GET_ENVIRONMENT. * config/alpha/alpha.c: Include "splay-tree.h" instead of <splay-tree.h>. * config/arm/arm.c (arm_target_help): Use getenv instead of GET_ENVIRONMENT. * config/avr/driver-avr.c: Don't include <stdlib.h>. * config/frv/frv.c: Don't include <ctype.h>. * config/host-darwin.c: Don't include <sys/mman.h>. * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>. (MAP_FAILED): Don't define. * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>. * config/host-solaris.c: Don't include <sys/mman.h>. * config/i386/cygming.h: Don't include <stdio.h>. * config/i386/driver-i386.c: Don't include <stdlib.h>. * config/i386/host-cygwin.c: Don't include <sys/mman.h>. * config/iq2000/iq2000.c: Don't include <signal.h>. * config/m32c/m32c-pragma.c: Don't include <stdio.h>. * config/m68hc11/m68hc11.c: Don't include <stdio.h>. * config/mep/mep-pragma.c: Don't include <stdio.h>. * config/microblaze/microblaze.c: Don't include <signal.h>. * config/mips/mips.c: Don't include <signal.h>. * config/rs6000/host-darwin.c: Don't include <signal.h>. * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT. * defaults.h (GET_ENVIRONMENT): Don't define. * et-forest.h: Don't include <ansidecl.h> or <stddef.h>. * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>. (SIGCHLD, MAP_FAILED, kill): Don't define. (process_command): Use getenv instead of GET_ENVIRONMENT. * genhooks.c: Don't include <string.h>. * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or <sys/types.h>. (MAP_FAILED): Don't define. * ggc-page.c Don't include <sys/mman.h>. (MAP_ANONYMOUS, MAP_FAILED): Don't define. * ggc-zone.c: Don't include <sys/mman.h>. (MAP_ANONYMOUS, MAP_FAILED): Don't define. * graph.c: Include "config.h" instead of <config.h>. * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT. * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h". (SIGCHLD, kill): Don't define. * mips-tfile.c: Don't include <signal.h>. * opts.c: Don't include <signal.h> or <sys/resource.h>. (print_specific_help): Use getenv instead of GET_ENVIRONMENT. * passes.c: Don't include <signal.h>, <sys/resource.h> or <sys/times.h>. * sparseset.h: Don't include <assert.h>. * timevar.c: Don't include <sys/times.h> or <sys/resource.h>. * tlink.c: Don't include "libiberty.h". * toplev.c: Don't include <signal.h> or <sys/times.h>. * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>. * tree-switch-conversion.c: Don't include <signal.h>. * vmsdbgout.c: Don't include <errno.h> or <string.h>. c-family: * c-opts.c (check_deps_environment_vars): Use getenv instead of GET_ENVIRONMENT. * c-pch.c (O_BINARY): Don't define here. * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>. fortran: * gfortran.h (alloca): Don't include definitions. (NULL): Don't define. java: * boehm.c: Include "config.h" instead of <config.h>. * builtins.c: Don't include <stdarg.h>. * class.c: Don't include "stdio.h". (O_BINARY): Don't define here. * jcf-depend.c: Don't include <assert.h>. (jcf_dependency_set_dep_file, jcf_dependency_init, jcf_dependency_write): Use gcc_assert. * jcf-io.c (O_BINARY): Don't define here. * jcf-path.c: Don't include "tm.h". (jcf_path_init): Use getenv instead of GET_ENVIRONMENT. * resource.c: Don't include "stdio.h". (O_BINARY): Don't define here. * verify-impl.c: Don't include <stdio.h>. lto: * lto-endian.h: Delete. * lto-object.c: Don't include "libiberty.h". (O_BINARY): Don't define. * lto.c: Don't include "libiberty.h" or <sys/mman.h>. (O_BINARY): Don't define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167241 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-11-28 Janus Weil <janus@gcc.gnu.org>janus2010-11-282-2/+18
| | | | | | | | | | | | | PR fortran/46662 * resolve.c (update_ppc_arglist): Add check for abstract passed object. 2010-11-28 Janus Weil <janus@gcc.gnu.org> PR fortran/46662 * gfortran.dg/proc_ptr_comp_pass_7.f90: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167225 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-11-28 Paul Thomas <pault@gcc.gnu.org>pault2010-11-2810-7/+720
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR fortran/35810 * trans-array.c (gfc_trans_array_constructor): If the loop->to is a VAR_DECL, assume this is dynamic. In this case, use the counter to obtain the value and set loop->to appropriately. (gfc_conv_ss_descriptor): Always save the offset of a variable in info.saved_offset. (gfc_conv_ss_startstride): Do not attempt bound checking of the lhs of an assignment, if allocatable and f2003 is allowed. (gfc_conv_loop_setup): If possible, do not use an allocatable lhs variable for the loopspec. (gfc_is_reallocatable_lhs): New function. (get_std_lbound): New function. (gfc_alloc_allocatable_for_assignment): New function. * gfortran.h : Add flag_realloc_lhs to the options structure. * lang.opt : Add option f(no-)realloc-lhs. * invoke.texi : Document option f(no-)realloc-lhs. * options.c (gfc_init_options, gfc_post_options, gfc_handle_option): Incorporate f(no-)realloc-lhs with default to frealloc_lhs for -std > f95. * trans-array.h : Add primitive for previous. * trans-expr.c (gfc_conv_string_length): Return if character length is a variable and the expression is NULL. (gfc_conv_procedure_call): If the call is of the kind x = f(...) and the lhs is allocatable and reallocation on assignment OK, call gfc_alloc_allocatable_for_assignment. Do not generate the function call unless direct by reference. (realloc_lhs_loop_for_fcn_call): New function. (realloc_lhs_bounds_for_intrinsic_call): New function. (gfc_trans_arrayfunc_assign): Reallocation assignments need a loopinfo and for the loop bounds to be set. With intrinsic functions, free the lhs data and let the library allocate the data array. Done by the new functions above. (gfc_trans_assignment_1): If the lhs is allocatable and reallocation on assignment is allowed, mark the lhs and use gfc_alloc_allocatable_for_assignment to make the reallocation. * trans.h : Add is_alloc_lhs bitfield to gfc_ss structure. 2010-11-28 Paul Thomas <pault@gcc.gnu.org PR fortran/35810 * gfortran.dg/realloc_on_assign_1.f03: New test. * gfortran.dg/realloc_on_assign_2.f03: New test. * gfortran.dg/transpose_2.f90: dg-option -fno-realloc-lhs. * gfortran.dg/unpack_bounds_1.f90: The same. * gfortran.dg/cshift_bounds_2.f90: The same. * gfortran.dg/matmul_bounds_2.f90: The same. * gfortran.dg/matmul_bounds_3.f90: The same. * gfortran.dg/matmul_bounds_4.f90: The same. * gfortran.dg/matmul_bounds_5.f90: The same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167220 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud