1. 28 Aug, 2008 24 commits
    • gfortran.h (enum expr_t): New value `EXPR_COMPCALL'. · 8e1f752a
      2008-08-28  Daniel Kraft  <d@domob.eu>
      
      	* gfortran.h (enum expr_t): New value `EXPR_COMPCALL'.
      	(gfc_get_typebound_proc): New macro.
      	(struct gfc_expr): New union-member `compcall' for EXPR_COMPCALL.
      	(enum gfc_exec_op): New value `EXEC_COMPCALL'.
      	(gfc_find_typebound_proc): New argument.
      	(gfc_copy_ref), (gfc_match_varspec): Made public.
      	* decl.c (match_procedure_in_type): Use gfc_get_typebound_proc.
      	* expr.c (free_expr0), (gfc_copy_expr): Handle EXPR_COMPCALL.
      	(gfc_copy_ref): Made public and use new name.
      	(simplify_const_ref): Use new name of gfc_copy_ref.
      	(simplify_parameter_variable): Ditto.
      	(gfc_simplify_expr): gcc_unreachable for EXPR_COMPCALL.
      	* match.c (match_typebound_call): New method.
      	(gfc_match_call): Allow for CALL's to typebound procedures.
      	* module.c (binding_passing), (binding_overriding): New variables.
      	(expr_types): Add EXPR_COMPCALL.
      	(mio_expr): gcc_unreachable for EXPR_COMPCALL.
      	(mio_typebound_proc), (mio_typebound_symtree): New methods.
      	(mio_f2k_derived): Handle type-bound procedures.
      	* primary.c (gfc_match_varspec): Made public and parse trailing
      	references to type-bound procedures; new argument `sub_flag'.
      	(gfc_match_rvalue): New name and argument of gfc_match_varspec.
      	(match_variable): Ditto.
      	* resolve.c (update_arglist_pass): New method.
      	(update_compcall_arglist), (resolve_typebound_static): New methods.
      	(resolve_typebound_call), (resolve_compcall): New methods.
      	(gfc_resolve_expr): Handle EXPR_COMPCALL.
      	(resolve_code): Handle EXEC_COMPCALL.
      	(resolve_fl_derived): New argument to gfc_find_typebound_proc.
      	(resolve_typebound_procedure): Ditto and removed not-implemented error.
      	* st.c (gfc_free_statement): Handle EXEC_COMPCALL.
      	* symbol.c (gfc_find_typebound_proc): New argument `noaccess' and
      	implement access-checking.
      	* trans-expr.c (gfc_apply_interface_mapping_to_expr): gcc_unreachable
      	on EXPR_COMPCALL.
      	* trans-intrinsic.c (gfc_conv_intrinsic_bound): Add missing break.
      	* trans-openmp.c (gfc_trans_omp_array_reduction): Add missing
      	intialization of ref->type.
      
      2008-08-28  Daniel Kraft  <d@domob.eu>
      
      	* gfortran.dg/typebound_call_1.f03: New test.
      	* gfortran.dg/typebound_call_2.f03: New test.
      	* gfortran.dg/typebound_call_3.f03: New test.
      	* gfortran.dg/typebound_call_4.f03: New test.
      	* gfortran.dg/typebound_call_5.f03: New test.
      	* gfortran.dg/typebound_call_6.f03: New test.
      	* gfortran.dg/typebound_proc_1.f08: Don't expect not-implemented error.
      	* gfortran.dg/typebound_proc_2.f90: Ditto.
      	* gfortran.dg/typebound_proc_5.f03: Ditto.
      	* gfortran.dg/typebound_proc_6.f03: Ditto.
      	* gfortran.dg/typebound_proc_7.f03: Ditto.
      	* gfortran.dg/typebound_proc_8.f03: Ditto.
      
      From-SVN: r139724
      Daniel Kraft committed
    • stormy16.h (IRA_COVER_CLASSES): Define. · cf7442bb
              * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Define.
              * config/stormy16/stormy16.md (zero_extendqihi2): Fix length
              attribute.
      
      From-SVN: r139723
      Nick Clifton committed
    • v850.h (IRA_COVER_CLASSES): Define. · 724df8d2
              * config/v850/v850.h (IRA_COVER_CLASSES): Define.
              * config/v850/v850.md (return): Remove frame size restriction.
      
      From-SVN: r139722
      Nick Clifton committed
    • * config/mcore/mcore.h (IRA_COVER_CLASSES): Define. · d43b42f9
      From-SVN: r139721
      Nick Clifton committed
    • * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Define. · 888142a6
      From-SVN: r139720
      Nick Clifton committed
    • * config/fr30/fr30.h (IRA_COVER_CLASSES): Define. · b34126ed
      From-SVN: r139719
      Nick Clifton committed
    • * config/m32r/m32r.h (IRA_COVER_CLASSES): Define. · 728a0142
      From-SVN: r139718
      Nick Clifton committed
    • vfp11.md: Update license notice. · 874101ec
      2008-08-28  Paul Brook  <paul@codesourcery.com>
      
      	* config/arm/vfp11.md: Update license notice.
      	* config/arm/cortex-r4.md: Ditto.
      
      From-SVN: r139717
      Paul Brook committed
    • configure: Regenerate. · 307c39da
      2008-08-28  Laurent Guerby  <laurent@guerby.net>
      
      	* configure: Regenerate.
      
      From-SVN: r139716
      Laurent GUERBY committed
    • configure.ac (powerpc-*-darwin*, [...]): Enable bfd, binutils and opcodes. · e1514c3f
              * configure.ac (powerpc-*-darwin*, i?86-*-darwin*,x86_64-*-darwin9):
              Enable bfd, binutils and opcodes.
              * configure: Regenerate.
      
      From-SVN: r139715
      Tristan Gingold committed
    • re PR tree-optimization/37207 (ice at tree-ssa-ifcombine.c:222 for -Os) · 99781d25
      2008-08-28  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/37207
      	* tree-ssa-ifcombine.c (recognize_single_bit_test): Fix
      	tuplification bug.
      
      	* gcc.c-torture/compile/pr37207.c: New testcase.
      
      From-SVN: r139714
      Richard Guenther committed
    • re PR fortran/37253 (Segmentation fault with procedure pointer) · b7fdeec9
      2008-08-28  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/37253
      	* module.c (ab_attribute,attr_bits,mio_symbol_attribute): Take care of
      	saving attr.procedure and attr.proc_ptr to the module file.
      
      
      2008-08-28  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/37253
      	* gfortran.dg/proc_ptr_10.f90: New.
      
      From-SVN: r139713
      Janus Weil committed
    • re PR c++/36741 (Bogus "large integer implicitly truncated" passing size_t constant to new) · 5bdc1946
      2008-08-28  Dodji Seketeli  <dodji@redhat.com>
      
      	PR c++/36741
      	* tree.c (int_fits_type_p): Don't forget unsigned integers
      	  of type sizetype which higher end word equals -1.
      
      From-SVN: r139712
      Dodji Seketeli committed
    • target.h (struct vectorize): Add new target builtin. · 0fca40f5
      	* target.h (struct vectorize): Add new target builtin.
      	* tree-vectorizer.c (destroy_loop_vec_info): Call
      	vect_free_slp_instance instead of vect_free_slp_node.
      	* tree-vectorizer.h (enum slp_load_perm_type): New.
      	(struct _slp_instance): Add new fields.
      	(SLP_INSTANCE_LOAD_PERMUTATION): New.
      	(SLP_INSTANCE_LOADS): New.
      	(vect_free_slp_tree): Remove.
      	(vect_free_slp_instance): Declare.
      	(SLP_TREE_LOADS_PERM_TYPE, TARG_VEC_PERMUTE_COST): New.
      	(vectorizable_load): Add argument.
      	(vect_transform_slp_perm_load): New.
      	* tree-vect-analyze.c (vect_analyze_operations): Add an argument to
      	vectorizable_load.
      	(vect_get_place_in_interleaving_chain): New function.
      	(vect_free_slp_tree): Make static.
      	(vect_free_slp_instance): New function.
      	(vect_build_slp_tree): Add new arguments. Allow load permutations and
      	collect the load location in the interleaving chain.
      	(vect_supported_slp_permutation_p): New function.
      	(vect_supported_load_permutation_p): Likewise.
      	(vect_analyze_slp_instance): In case of loads permutation, call
      	vect_supported_load_permutation_p to check that the permutation is
      	supported.
      	* target-def.h (TARGET_VECTORIZE_BUILTIN_VEC_PERM): New.
      	* tree-vect-transform.c (vect_transform_stmt): Add new argument.
      	(vect_create_mask_and_perm): New function.
      	(vect_get_mask_element, vect_transform_slp_perm_load): Likewise.
      	(vectorizable_load): Add an argument. Don't keep the created vectors
      	statements in the node if permutation is required. Call
      	vect_transform_slp_perm_load to generate the permutation.
      	(vect_transform_stmt): Add new argument. Call vectorizable_load with
      	additional argument.
      	(vect_schedule_slp_instance): In case of loads permutation, allocate
      	vectorized statements structure for all the related SLP nodes. Call
      	vect_transform_stmt with addditional argument.
      	(vect_transform_loop): Call vect_transform_stmt with correct arguments.
      	* config/spu/spu.c (spu_builtin_vec_perm): New.
      	(TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
      	* config/spu/spu.h (TARG_VEC_PERMUTE_COS): Define.
      	* config/rs6000/rs6000.c (rs6000_builtin_vec_perm): New.
      	(TARGET_VECTORIZE_BUILTIN_VEC_PERM): Redefine.
      
      From-SVN: r139706
      Ira Rosen committed
    • acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): New. · b8c41c8e
      2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
      
              * acinclude.m4 ([GLIBCXX_CHECK_GTHREADS]): New. Checks for gthread
      	support used by c++0x thread library.
      	* configure.ac: Test unconditionally.
      	* configure: Regenerate.
      	* config.h.in: Regenerate.
      
      From-SVN: r139705
      Chris Fairles committed
    • gthr-posix.h (__gthread_create, [...]): New functions. · a75150ae
      2008-08-28  Chris Fairles  <chris.fairles@gmail.com>
      
              * gthr-posix.h (__gthread_create,  __gthread_join, __gthread_detach,
      	__gthread_mutex_timed_lock, __gthread_recursive_mutex_timed_lock,
      	__gthread_cond_signal, __gthread_cond_timedwait,
      	__gthread_cond_timedwait_recursive): New functions.
      	* gthr-posix.c (pthread_mutex_timedlock, pthread_cond_timedwait):
      	Likewise.
      	* gthr.h: Comment on defining __GTHREADS_CXX0X macro in conforming
      	thread interfaces.
      
      From-SVN: r139704
      Chris Fairles committed
    • re PR tree-optimization/37005 (GNAT Bug Box for cd2a24e.adb:37 at tree-vrp.c:392) · 0b45fd7a
      2008-08-28  Richard Guenther  <rguenther@suse.de>
      
      	PR middle-end/37005
      	* fold-const.c (maybe_canonicalize_comparison_1): Require
      	undefined overflow only for canonicalizing A +- CST cmp CST.
      	Make sure to not generate new constants that are not inside
      	their TYPE_MIN/MAX_VALUE range.
      	(maybe_canonicalize_comparison): Remove undefined overflow
      	checking from here.
      	(fold_binary): Remove now duplicate folding.
      
      From-SVN: r139702
      Richard Guenther committed
    • MAINTAINERS: Update my hppa and hpux entries. · 4717882f
      	* MAINTAINERS: Update my hppa and hpux entries.  Remove my vax entry.
      
      From-SVN: r139691
      John David Anglin committed
    • Makefile.am: Edit xml file list. · 41061822
      
      2008-08-27  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* doc/Makefile.am: Edit xml file list.
      	* doc/Makefile.in: Regenerate.
      	* configure: Regenerate.
      	* doc/xml/manual/intro.xml: Edit, correct links, structure.
      	* doc/xml/manual/configure.xml: Same.
      	* doc/xml/manual/debug.xml: Same.
      	* doc/xml/manual/test.xml: Same.
      	* doc/xml/manual/build.xml: Remove.
      	* doc/xml/manual/prerequisites.xml: Add.
      	* doc/html/*: Regenerate.
      
      From-SVN: r139690
      Benjamin Kosnik committed
    • c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT use not updated in the last change. · fd990e64
      2008-08-27  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* c-typeck.c (convert_for_assignment): Adjust WARN_FOR_ASSIGNMENT
      	use not updated in the last change.
      
      From-SVN: r139689
      Paolo Carlini committed
    • sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS. · d4d46566
      	* config/sh/sh.h (REG_CLASS_CONTENTS): Drop fr32 from FPUL_REGS.
      	(IRA_COVER_CLASSES): Add FPUL_REGS.
      
      From-SVN: r139688
      Kaz Kojima committed
    • Daily bump. · ab900e7b
      From-SVN: r139686
      GCC Administrator committed
    • ChangeLog: Fix spelling mistake. · 843724f7
      2008-08-28  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	* ChangeLog: Fix spelling mistake.
      
      From-SVN: r139683
      Manuel López-Ibáñez committed
    • re PR c++/37217 (-Wconversion causes ICE with __builtin_strcmp with one char compare) · 1bfb8f51
      2008-08-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR 37217
      	* c-common.c (conversion_warning): Check for null operands.
      testsuite/
      	* gcc.dg/pr37217.c: New.
      
      From-SVN: r139682
      Manuel López-Ibáñez committed
  2. 27 Aug, 2008 14 commits
  3. 26 Aug, 2008 2 commits
    • Neglected to commit two ChangeLogs · 7cf1a11c
      From-SVN: r139612
      Doug Gregor committed
    • c-common.c (do_switch_warnings): Look through the CONST_DECLs in the enumerators… · adf2edec
      c-common.c (do_switch_warnings): Look through the CONST_DECLs in the enumerators of an ENUMERAL_TYPE.
      
      2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
      
      	* c-common.c (do_switch_warnings): Look through the CONST_DECLs in
      	the enumerators of an ENUMERAL_TYPE.
      	* dbxout.c (dbxout_type): Ditto.
      
      2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
      
      	* typeck.c (type_after_usual_arithmetic_conversions): Don't do the
      	usual arithmetic conversions on scoped enumeration types.
      	(common_type): Ditto.
      	(default_conversion): Don't perform integral promotions on scoped
      	enumeration types. 
      	(build_array_ref): Scoped enumeration types can't be used as
      	subscripts.
      	* decl.c (start_enum): If building a C++0x scoped enumeration,
      	enter its scope. If provided with an underlying type, check that
      	underlying type and set up the enumeration type accordingly.
      	(finish_enum): Only compute an underlying type if the underlying
      	type isn't already fixed, and only convert the enumerator values
      	now if we've just computed the underlying type. Finish the scope
      	of C++0x scoped enumerations.
      	(build_enumerator): For enumerations with a fixed underlying type,
      	check the enumerator values when the enumerator is defined.
      	(lookup_enumerator): New.
      	* call.c (standard_conversion): Don't allow assignment from
      	integers to scoped enumeration types, even with -fpermissive.
      	Don't convert from scoped enumerations to bool or any arithmetic
      	types.
      	(build_conditional_expr): Don't per the usual arithmetic
      	conversions for scoped enumeration types.
      	(convert_like_real): Check complain to see if we should
      	produce warnings.
      	* error.c (class_key_or_enum_as_string): Print scoped enums.
      	* cp-tree.h (MAYBE_CLASS_TYPE_P): Check CLASS_TYPE_P, not
      	TYPE_LANG_FLAG_5.
      	(INTEGRAL_OR_UNSCOPED_ENUMERATION_TYPE_P): New.
      	(SCOPED_ENUM_P): New.
      	(UNSCOPED_ENUM_P): New.
      	(SET_SCOPED_ENUM_P): New.
      	(ENUM_UNDERLYING_TYPE): New.
      	* pt.c (lookup_template_class): Update the instantiation of enum
      	types to deal with C++0x scoped enumerations and underlying
      	types.
      	* name-lookup.c (begin_scope): Deal with scoped enumeration
      	scopes.
      	(lookup_qualified_name): Deal with lookup into enumeration types.
      	* name-lookup.h (enum scope_kind): Add sk_scoped_enum.
      	* parser.c (cp_parser_class_or_namespace_name): Rename to...
      	(cp_parser_qualifying_entity): ... this. Also, in C++0x mode,
      	parse a type-name that can be an enumeration type.
      	(cp_parser_nested_name_specifier_opt): Update with C++0x grammar.
      	(cp_parser_elaborated_type_specifier): Parse the
      	optional `struct' or `class' following enum (in C++0x).
      	(cp_parser_enum_specifier): Parse C++0x scoped enumerations and
      	enum-base clauses.
      
      2008-08-26  Douglas Gregor  <doug.gregor@gmail.com>
      
      	* g++.dg/cpp0x/scoped_enum_examples.C: New.
      	* g++.dg/cpp0x/scoped_enum.C: New.
      	* g++.dg/cpp0x/scoped_enum_98.C: New.
      	* g++.dg/cpp0x/enum_base_warn.C: New.
      	* g++.dg/cpp0x/enum_base.C: New.
      
      From-SVN: r139611
      Douglas Gregor committed