1. 13 Jun, 2005 13 commits
    • re PR fortran/22038 (Forall with mask broken) · a8e12e4d
      fortran/
      2005-06-13  Jakub Jelinek  <jakub@redhat.com>
      
      	PR fortran/22038
      	* trans-stmt.c (gfc_trans_forall_loop): Only increment maskindex
      	in the innermost loop.
      
      testsuite/
      2005-06-13  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
      
      	PR fortran/22038
      	* gfortran.dg/forall_1.f90: Un-XFAIL.
      
      From-SVN: r100887
      Tobias Schlüter committed
    • re PR c++/20789 (ICE with incomplete type in template) · 8fe4d24b
      cp:
      	PR c++/20789
      	* decl.c (cp_finish_decl): Clear runtime runtime initialization if
      	in-class decl's initializer is bad.
      
      	PR c++/21929
      	* parser.c (struct cp_parser): Document that scope could be
      	error_mark.
      	(cp_parser_diagnose_invalid_type_name): Cope with error_mark for
      	scope.
      	(cp_parser_nested_name_specifier): Return NULL_TREE on error.
      	(cp_parser_postfix_expression): Deal with null or error_mark
      	scope.
      	(cp_parser_elaborated_type_specifier): Adjust
      	cp_parser_nested_name_specifier call.
      
      	* parser (cp_parser_skip_to_end_of_block_or_statement): Cleanup.
      testsuite:
      	PR c++/21929
      	* g++.dg/parse/crash26.C: New.
      
      	PR c++/20789
      	* g++.dg/init/member1.C: New.
      
      From-SVN: r100880
      Nathan Sidwell committed
    • Revert scc_operand patch. · 56fc483e
      	* config/rs6000/predicates.md (scc_operand): Delete.
      	* config/rs6000/rs6000.md (scc_operand): Change to scc_eq_operand.
      
      From-SVN: r100879
      David Edelsohn committed
    • trans-expr.c (gfc_conv_function_call): Return int instead of void. · dda895f9
      	* trans-expr.c (gfc_conv_function_call): Return int instead of
      	void.  Use a local variable for has_alternate_specifier and
      	return it.  Avoid modification of function type's return value
      	in place, since it may be shared.
      	* trans.h (has_alternate_specifier): Remove.
      	(gfc_conv_function_call): Change return type.
      	* trans-stmt.c (has_alternate_specifier): Remove.
      	(gfc_trans_call): Add a local has_alternate_specifier variable,
      	set it from gfc_conv_function_call return value.
      
      	* gfortran.dg/altreturn_1.f90: New test.
      
      From-SVN: r100878
      Jakub Jelinek committed
    • re PR middle-end/21985 (miscompiled or wrong code snippet?) · adacecf1
      	PR middle-end/21985
      	* fold-const.c (split_address_to_core_and_offset): Always return
      	the address of the base object.
      
      	* gcc.dg/tree-ssa/pr21985.c: New test.
      
      From-SVN: r100877
      Zdenek Dvorak committed
    • treetree.c (tree_code_get_expression): Call build_function_call_expr to build function calls. · 75d93ef7
       2005-06-12  Rafael ?vila de Esp?ndola   <rafael.espindola@gmail.com>
      
               * treetree.c (tree_code_get_expression): Call build_function_call_expr
      	to build function calls.
      
      From-SVN: r100876
      Rafael Ávila de Espíndola committed
    • * doc/invoke.texi (Blackfin Options): Document -mlong-calls. · b6877196
      From-SVN: r100875
      Bernd Schmidt committed
    • top level: · f610dd5f
      	* depcomp: Update from automake CVS.  Add 'ia64hp' stanza.
      	In 'cpp' stanza, support '#line' as well as '# '.
      config:
      	* depstand.m4, lead-dot.m4: New files.
      libcpp:
      	* configure.ac: Invoke ZW_CREATE_DEPDIR and
      	ZW_PROG_COMPILER_DEPENDENCIES.
      	* aclocal.m4, configure: Regenerate.
      	* Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE):
      	New variables.
      	(distclean): Clean up $(DEPDIR) and its contents.
      	(.c.o): Use $(COMPILE).
      	Include $(DEPDIR)/*.Po for most object->header dependencies.
      
      From-SVN: r100874
      Zack Weinberg committed
    • trans-array.c (gfc_conv_descriptor_data_get): Rename from gfc_conv_descriptor_data. · 4c73896d
              * trans-array.c (gfc_conv_descriptor_data_get): Rename from
              gfc_conv_descriptor_data.  Cast the result to the DATAPTR type.
              (gfc_conv_descriptor_data_set, gfc_conv_descriptor_data_addr): New.
              (gfc_trans_allocate_array_storage): Use them.
              (gfc_array_allocate, gfc_array_deallocate): Likewise.
              (gfc_trans_dummy_array_bias, gfc_conv_expr_descriptor): Likewise.
              (gfc_trans_deferred_array): Likewise.
              * trans-expr.c (gfc_conv_function_call): Likewise.
              (gfc_trans_subcomponent_assign): Likewise.
              (gfc_trans_pointer_assignment): Likewise.
              * trans-intrinsic.c (gfc_conv_allocated): Likewise.
              * trans-types.c (gfc_array_descriptor_base): New.
              (gfc_get_element_type): Use GFC_TYPE_ARRAY_DATAPTR_TYPE.
              (gfc_get_array_descriptor_base): Break out from ...
              (gfc_get_array_type_bounds): ... here.  Create type variants.
              * trans-array.h (gfc_conv_descriptor_data_get): Declare.
              (gfc_conv_descriptor_data_set, gfc_conv_descriptor_data_addr): Declare.
      
      From-SVN: r100872
      Richard Henderson committed
    • New test. · 9204496d
      From-SVN: r100871
      Richard Henderson committed
    • re PR tree-optimization/21994 (complex throwing functions cause ICE) · 5d6b3bba
              PR tree-opt/21994
              * tree-complex.c (update_complex_components_on_edge): New.
              (update_parameter_components): Use it.
              (update_phi_components): Likewise.
              (expand_complex_move): Likewise for is_ctrl_altering_stmt.
      
      From-SVN: r100870
      Richard Henderson committed
    • re PR tree-optimization/14796 ([tree-ssa] combine two shifts into one) · a165e746
      2005-06-12  James A. Morrison  <phython@gcc.gnu.org>
      
              PR tree-optimization/14796
              * fold-const (fold_binary): Transform (X << C) >> C into X & (-1>>C)
              for unsigned types.
      
      From-SVN: r100869
      James A. Morrison committed
    • Daily bump. · 61e58d36
      [[Split portion of a mixed commit.]]
      
      From-SVN: r100867.2
      GCC Administrator committed
  2. 12 Jun, 2005 14 commits
  3. 11 Jun, 2005 8 commits
    • re PR fortran/17792 ([4.0 only] deallocate does not return stat) · 94631c1e
      	PR fortran/17792
      	PR fortran/21375
      	* gfortran.dg/deallocate_statO.f90:  New test.
      
      From-SVN: r100847
      Steven G. Kargl committed
    • rtl.h (to_rtx_code): Remove. · 411e6c1e
              * rtl.h (to_rtx_code): Remove.
              * machmode.h (to_machine_mode): Likewise.
              * read-rtl.c (apply_mode_macro): Replace to_machine_mode with
              explicit cast.
              (apply_mode_maps): Likewise.
              (read_rtx_1): Likewise.
              (apply_code_macro): Replace to to_rtx_code with explicit cast.
              (check_code_macro): Likewise.
              (read_rtx_1): Likewise.
      
      From-SVN: r100846
      Gabriel Dos Reis committed
    • re PR fortran/17792 ([4.0 only] deallocate does not return stat) · 364667a1
      PR fortran/17792
      PR fortran/21375
      * trans-array.c (gfc_array_deallocate): pstat is new argument
        (gfc_array_allocate): update gfc_array_deallocate() call.
        (gfc_trans_deferred_array): ditto.
      * trans-array.h: update gfc_array_deallocate() prototype.
      * trans-decl.c (gfc_build_builtin_function_decls): update declaration
      * trans-stmt.c (gfc_trans_deallocate): Implement STAT= feature.
      
      From-SVN: r100845
      Steven G. Kargl committed
    • c-typeck.c (convert_for_assignment): Avoid cheking OPT_Wc___compat, as it is always true. · c6bdf92e
              * c-typeck.c (convert_for_assignment): Avoid cheking
              OPT_Wc___compat, as it is always true.
      
      From-SVN: r100843
      Gabriel Dos Reis committed
    • [multiple changes] · 39328081
      2005-06-11  Thomas Koenig  <Thomas.Koenig@onlinde.de>
      
      	PR libfortran/21333
      	* Makefile.am: Add in_pack_c4.c, in_pack_c8.c, in_unpack_c4.c
      	and in_unpack_c8.c.
      	* Makefile.in: Regenerate.
      	* libgfortran.h:  Declare internal_pack_c4, internal_pack_c8,
      	internal_unpack_c4 and internal_unpack_c8.
      	* m4/in_pack.m4: Use rtype_ccode insteald of rtype_kind
      	in function name.
      	Use sizeof (rtype_name) as size for memory allocation.
      	* m4/in_unpack.m4: Use rtype_ccode insteald of rtype_kind
      	in function name.
      	Use sizeof (rtype_name) for calculation of sizes for memcpy.
      	* runtime/in_pack_generic.c:  For real, integer and logical
      	call internal_pack_4 if size==4 and internal_pack_8 if
      	size==8.
      	For complex, call internal_pack_c4 if size==8 and
      	internal_pack_c8 if size==16.
      	* runtime/in_unpack_generic.c: For real, integer and logical
              call internal_unpack_4 if size==4 and internal_unpack_8 if
              size==8.
              For complex, call internal_unpack_c4 if size==8 and
              internal_unpack_c8 if size==16.
      	* generated/in_pack_i4.c:  Regenerated.
      	* generated/in_pack_i8.c:  Regenerated.
      	* generated/in_unpack_i4.c:  Regenerated.
      	* generated/in_unpack_i8.c:  Regenerated.
      	* generated/in_pack_c4.c:  New file.
      	* generated/in_pack_c8.c:  New file.
      	* generated/in_unpack_c4.c:  New file.
      	* generated/in_unpack_c8.c:  New file.
      
      2005-05-11  Thomas Koenig  <Thomas.Koenig@online.de>
      
      	* gfortran.fortran-torture/execute/in-pack.f90:  New test.
      
      From-SVN: r100842
      Thomas Koenig committed
    • lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step is an… · e4d693c1
      lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step is an INTEGER_CST before calling int_cst_value.
      
      2005-06-11  Daniel Berlin  <dberlin@dberlin.org>
      
      	* lambda-code.c (replace_uses_equiv_to_x_with_y): Verify the step
      	is an INTEGER_CST before calling int_cst_value.
      
      From-SVN: r100839
      Daniel Berlin committed
    • Daily bump. · e8f92731
      [[Split portion of a mixed commit.]]
      
      From-SVN: r100836.2
      GCC Administrator committed
  4. 10 Jun, 2005 5 commits