1. 08 Oct, 2010 19 commits
    • mcore.h (INCOMING_RETURN_ADDR_RTX): Define. · fd02e833
      	* config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
      	* config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
      
      From-SVN: r165161
      Nathan Froyd committed
    • [multiple changes] · 8779dffa
      2010-10-08  Thomas Quinot  <quinot@adacore.com>
      
      	* xsnames.adb: Remove obsolete file.
      	* make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
      
      2010-10-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* exp_aggr.adb: Complete previous change.
      
      2010-10-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
      	extended return must match statically the return subtype of the
      	enclosing function if the type is an elementary type or if it is
      	constrained.
      
      2010-10-08  Vincent Celier  <celier@adacore.com>
      
      	* prj-nmsc.adb (Add_Source): Report all duplicate units and source file
      	names.  Do not report the same duplicate unit several times.
      	* prj.ads (Source_Data): New Boolean component Duplicate_Unit,
      	defaulted to False, to avoid reporting the same unit as duplicate
      	several times.
      
      From-SVN: r165160
      Arnaud Charlet committed
    • [multiple changes] · 094cefda
      2010-10-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
      	others choice is a literal analyze it now to enable later optimizations.
      	* exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
      	and components can be handled by the backend even if it is of a limited
      	type.
      
      2010-10-08  Arnaud Charlet  <charlet@adacore.com>
      
      	* a-rttiev.adb (task Timer): Since this package may be elaborated
      	before System.Interrupt, we need to call Setup_Interrupt_Mask
      	explicitly to ensure that this task has the proper signal mask.
      
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* freeze.adb (Freeze_Entity): For array case, move some processing for
      	pragma Pack, Component_Size clause and atomic/volatile components here
      	instead of trying to do the job in Sem_Ch13 and Freeze.
      	* layout.adb: Use new Addressable function
      	* sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
      	Component_Size): Move some handling to freeze point in
      	Freeze.Freeze_Entity.
      	* sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
      	freeze point in Freese.Freeze_Entity.
      	* sem_util.ads, sem_util.adb (Addressable): New function.
      
      From-SVN: r165159
      Arnaud Charlet committed
    • [multiple changes] · 0ac2a660
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* sprint.adb: Minor reformatting.
      
      2010-10-08  Javier Miranda  <miranda@adacore.com>
      
      	* exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
      
      From-SVN: r165158
      Arnaud Charlet committed
    • [multiple changes] · ef237104
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch3.adb: Minor reformatting.
      
      2010-10-08  Vincent Celier  <celier@adacore.com>
      
      	* ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
      	not a reserved word.
      	* prj-proc.adb (Expression): Process string list external references.
      	* prj-strt.adb (External_Reference): Parse external_as_list external
      	references.
      	* prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
      	(Set_Expression_Kind_Of): Ditto
      	* prj.adb (Initialize): Set external_as_list as a reserved word
      	* projects.texi: Document new string external reference external_as_list
      	* scans.ads (Token_Type): New token Tok_External_As_List
      	* snames.ads-tmpl: New standard name Name_External_As_List
      
      From-SVN: r165157
      Arnaud Charlet committed
    • [multiple changes] · 2604ec03
      2010-10-08  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_prag.adb: Minor reformatting.
      
      2010-10-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (Derived_Type_Declaration): In the private part of an
      	instance, it is legal to derive from a non-limited actual when the
      	formal type is untagged limited.
      	* sem_ch12.adb (Instantiate_Type): For a formal private type, use
      	analyzed formal as Generic_Parent_Type, to simplify later checks.
      
      2010-10-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_res.adb (Insert_Default): If default value is already a
      	raise_constraint_error do not rewrite it as new raise node, to prevent
      	infinite loops in the warning removal machinery.
      
      From-SVN: r165156
      Arnaud Charlet committed
    • [multiple changes] · c86ee18a
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_util.adb, sem_prag.adb: Minor reformatting
      
      2010-10-08  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
      	Add section on pragma Implemented.
      
      2010-10-08  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
      	concrete parent with a concrete constructor, the inherited constructor
      	is abstract even if the derived type is a null extension.
      
      From-SVN: r165155
      Arnaud Charlet committed
    • [multiple changes] · bfae1846
      2010-10-08  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch4.adb: Minor reformatting.
      
      2010-10-08  Hristian Kirtchev  <kirtchev@adacore.com>
      
      	* einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
      	(Implemented_By_Entry): Removed.
      	(Set_Implemented_By_Entry): Removed.
      	(Write_Entity_Flags): Remove the output for Implemented_By_Entry.
      	* einfo.ads: Remove flag Implemented_By_Entry and its usage in entities.
      	(Implemented_By_Entry): Removed along with its associated pragma Inline.
      	(Set_Implemented_By_Entry): Removed along with its associated pragma
      	Inline.
      	* exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
      	(Build_Dispatching_Call_Equivalent): New routine.
      	(Build_Dispatching_Requeue): New routine.
      	(Build_Dispatching_Requeue_To_Any): New routine.
      	(Build_Normal_Requeue): New routine.
      	(Build_Skip_Statement): New routine.
      	(Expand_N_Requeue_Statement): Rewritten. The logic has been split into
      	several subroutines.
      	* par-prag.adb: Replace Pragma_Implemented_By_Entry by
      	Pragma_Implemented.
      	* sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
      	pragma Implemented.
      	(Check_Pragma_Implemented): New routines.
      	(Inherit_Pragma_Implemented): New routine.
      	* sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
      	dispatching requeue.
      	* sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
      	and adding Implemented.
      	(Ada_2012_Pragma): New routine.
      	(Analyze_Pragma, case Implemented): Perform all necessary checks
      	concerning pragma Implemented and register the pragma as a
      	representation item with the procedure_LOCAL_NAME.
      	(Analyze_Pragma, case Implemented_By_Entry): Removed.
      	* sem_util.adb (Implementation_Kind): New routine.
      	* sem_util.ads (Implementation_Kind): New routine.
      	* snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
      	Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
      	add Pragma_Implemented. Add special names By_Any, By_Entry and
      	By_Protected_Procedure.
      
      2010-10-08  Javier Miranda  <miranda@adacore.com>
      
      	* exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
      	variable Has_Static_DT by invocation of function Building_Static_DT.
      
      2010-10-08  Vincent Celier  <celier@adacore.com>
      
      	* g-dirope.adb (Remove_Dir): Do not change the current directory when
      	doing a recursive remove of a subdirectory.
      
      2010-10-08  Javier Miranda  <miranda@adacore.com>
      
      	* exp_ch6.ad (Freeze_Subprogram): Factorize code.
      	* exp_disp.adb (Make_Secondary_DT): Factorize code.
      	(Make_DT): Factorize code.
      
      From-SVN: r165154
      Arnaud Charlet committed
    • sem_ch4.adb: Minor reformatting. · 40b93859
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch4.adb: Minor reformatting.
      
      2010-10-08  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch6.adb (Check_Conformance): Check null exclusion match for full
      	conformance.
      
      From-SVN: r165153
      Robert Dewar committed
    • [multiple changes] · d7bab7e6
      2010-10-08  Thomas Quinot  <quinot@adacore.com>
      
      	* sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
      	consistency with Gen_T in Instantiate_Type.
      	Introduce constant A_Gen_Obj to avoid repeated queries for
      	Defining_Identifier (Analyzed_Formal).
      
      2010-10-08  Vincent Celier  <celier@adacore.com>
      
      	* prj-nmsc.adb: Minor comment fix.
      
      From-SVN: r165152
      Arnaud Charlet committed
    • future (uses_allocator<packaged_task<>,>): Add; minor formatting tweaks. · 135a0d0a
      2010-10-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/std/future (uses_allocator<packaged_task<>,>): Add;
      	minor formatting tweaks.
      
      From-SVN: r165151
      Paolo Carlini committed
    • re PR debug/45656 (gfortran.dg/forall_4.f90 -O3, wrong code with -g) · 5f262d13
      PR debug/45656
      * cse.c (cse_extended_basic_block): Preserve cc0 info across
      debug isnsn.  Skip them when searching for cc0 setter.
      (set_live_p): Skip debug insns when searching for cc0 user.
      
      From-SVN: r165150
      Alexandre Oliva committed
    • re PR debug/45673 (-fcompare-debug failure with minor difference in dumps) · 7de9e0a1
      PR debug/45673
      PR debug/45604
      PR debug/45419
      PR debug/45408
      * tree-pretty-print.c (dump_generic_node): Explicitly dump the
      type of MEM_REFs to INTEGER_CSTs.
      
      From-SVN: r165149
      Alexandre Oliva committed
    • m68hc11.c (m68hc11_print_operand): Call m68hc11_print_operand_address. · 5bd84829
      	* config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
      	m68hc11_print_operand_address.
      
      From-SVN: r165148
      Nathan Froyd committed
    • future: Enable allocator support. · d3ec3e15
      	* include/std/future: Enable allocator support.
      	* testsuite/30_threads/packaged_task/cons/alloc.cc: Expect PASS.
      	* testsuite/30_threads/promise/cons/alloc.cc: Expect PASS.
      
      From-SVN: r165147
      Jonathan Wakely committed
    • builtins.c (rewrite_call_expr): Move code to... · 43ea30dc
      	* builtins.c (rewrite_call_expr): Move code to...
      	(rewrite_call_expr_valist): ...here.  Call
      	build_call_expr_loc_array.
      	(rewrite_call_expr_array): New function.
      	(fold_builtin_sprintf_chk_1): New function.
      	(fold_builtin_sprintf_chk): Call it.
      	(gimple_fold_builtin_sprintf_chk): Likewise.
      	(fold_builtin_snprintf_chk_1): New function.
      	(fold_builtin_snprintf_chk): Call it.
      	(gimple_fold_builtin_snprintf_chk): Likewise.
      	(gimple_rewrite_call_expr): Delete.
      
      From-SVN: r165146
      Nathan Froyd committed
    • * lto.c (lto_balanced_map): Fix accounting of program size. · 937f7f69
      From-SVN: r165145
      Jan Hubicka committed
    • re PR libstdc++/45893 ([C++0x] [DR 817] Finish updating std::bind to rvalue refs) · 1b3fad81
      2010-10-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	PR libstdc++/45893
      	* include/std/functional (bind): Implement DR 817 and add support
      	for volatile-qualified call wrappers.
      	* include/std/mutex (call_once): Implement DR 891.
      	* include/std/thread (thread::thread): Implement DR 929.
      	* include/std/future: Optimise use of std::bind.
      	* testsuite/20_util/bind/cv_quals.cc: Test volatile-qualification.
      	* testsuite/20_util/bind/move.cc: New.
      
      From-SVN: r165144
      Jonathan Wakely committed
    • Daily bump. · 65d09bfe
      From-SVN: r165142
      GCC Administrator committed
  2. 07 Oct, 2010 21 commits
    • In gcc/testsuite/: 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> · c154b3d8
      In gcc/testsuite/:
      2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * obj-c++.dg/encode-10.mm: New testcase.
      
      In gcc/cp/:
      2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * cp-tree.def: Changed type of AT_ENCODE_EXPR from tcc_unary to
              tcc_expression.
              * cxx-pretty-print.c (pp_cxx_unary_expression): Added case for
              AT_ENCODE_EXPR.
              * error.c (dump_expr): Added case for AT_ENCODE_EXPR.
              * pt.c (tsubst_copy): Added case for AT_ENCODE_EXPR.
              (value_dependent_expression_p): Added case for AT_ENCODE_EXPR.
              (type_dependent_expression_p): Added case for AT_ENCODE_EXPR.
              * parser.c (cp_parser_objc_encode_expression): Updated comment.
      
      From-SVN: r165138
      Nicola Pero committed
    • In gcc/testsuite/: 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> · 2fb996b6
      In gcc/testsuite/:
      2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
      
             PR objc++/23614
             * obj-c++.dg/lookup-2.mm: Do not assign 'nil' to a pointer to a
             C++ class.  Removed XFAIL.
      
      From-SVN: r165137
      Nicola Pero committed
    • re PR libstdc++/45841 (r164529 cris-elf libstdc++ 27_io/basic_filebuf/seekoff/char/2-io.cc) · 599fdf0c
      	PR libstdc++/45841
      	* testsuite/lib/libstdc++.exp (check_v3_target_fileio): Rewrite to
      	use an actual testsuite file and machinery, not ".".  Specifically
      	check that incorrectly seeking backwards from 0 yields an error,
      	and that reading, seeking backwards and reading again works.
      
      From-SVN: r165136
      Hans-Peter Nilsson committed
    • conformance.exp: Apply check_v3_target_fileio as a gate for tests in subdirectories matching the... · 38851a96
      	* testsuite/libstdc++-dg/conformance.exp: Apply
      	check_v3_target_fileio as a gate for tests in
      	subdirectories matching the substring _filebuf.
      
      From-SVN: r165135
      Hans-Peter Nilsson committed
    • config.host: Update copyright year. · 39604ffe
      	* config.host: Update copyright year.
      
      From-SVN: r165134
      Dave Korn committed
    • configure.ac (build_lto_plugin): New shell variable. · 1cd0b716
      ChangeLog:
      
      2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	* configure.ac (build_lto_plugin): New shell variable.
      	(--enable-lto): Turn on by default for all non-ELF platforms that
      	have had LTO support added so far.  Set build_lto_plugin appropriately
      	for both ELF and non-ELF.
      	(configdirs): Add lto-plugin or not based on build_lto_plugin.
      	* configure: Regenerate.
      
      gcc/ChangeLog:
      
      2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	* config.host (host_lto_plugin_soname): New shell variable.
      	* configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
      	* config.in: Regenerate.
      	* configure: Regenerate.
      	* gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
      	LTO plugin shared library.
      
      lto-plugin/ChangeLog:
      
      2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
      
      	* configure.ac: Source config.gcc to determine lto_binary_reader.
      	(LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
      	* Makefile.am (LTO_FORMAT): Import.
      	(liblto_plugin_la_SOURCES): Add object format dependent module
      	defined by LTO_FORMAT.
      	(liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
      	and work around libtool warning.
      	* configure: Regenerate.
      	* Makefile.in: Likewise.
      	* lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
      	(struct sym_aux): Likewise.
      	(struct plugin_symtab): Likewise.
      	(struct plugin_file_info): Likewise.
      	(LTO_SECTION_PREFIX): Likewise.
      	(add_symbols):  Make non-static.
      	(claimed_files): Likewise.
      	(num_claimed_files): Likewise.
      	(check): Likewise.
      	(parse_table_entry): Likewise.
      	(translate): Likewise.
      	(resolve_conflicts): Likewise.
      	(process_symtab): Move to new lto-plugin-elf.c object format dependent
      	source file.
      	(claim_file_handler): Likewise, and make non-static.
      	(onload): Call new onload_format_checks function.
      	* lto-plugin.h: New file.
      	(LTO_SECTION_PREFIX): Move here.
      	(struct sym_aux): Likewise.
      	(struct plugin_symtab): Likewise.
      	(struct plugin_file_info): Likewise.
      	(claim_file_handler): Add new function prototype.
      	(onload_format_checks): Likewise.
      	(check): Declare extern.
      	(translate): Likewise.
      	(parse_table_entry): Likewise.
      	(resolve_conflicts): Likewise.
      	(add_symbols):  Likewise.
      	(claimed_files): Likewise.
      	(num_claimed_files): Likewise.
      	* lto-plugin-elf.c (process_symtab): Move here.
      	(claim_file_handler): Likewise, and make non-static.
      	(onload_format_checks): New function factored out from onload.
      	* lto-plugin-coff.c (claim_file_handler): New function stub.
      	(onload_format_checks): Likewise.
      
      From-SVN: r165133
      Dave Korn committed
    • Move enum unwind_info_type from target.h to coretypes.h. · 6ba74c2d
      From-SVN: r165131
      Richard Henderson committed
    • Fixup botched sync of toplevel configure from src. · d4c1abb3
      /:
      	Sync from src:
      	* configure.ac (v850 support): Remove target-libgloss from
      	noconfigdirs.
      	* configure: Regenerate.
      
      From-SVN: r165130
      Ralf Wildenhues committed
    • In gcc/: 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> · 038d22b6
      In gcc/:
      2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * doc/objc.texi (Fast enumeration protocol): Mention that
              'unsigned int' can also be used instead of 'unsigned long' in
              countByEnumeratingWithState:objects:count:.
      
      In gcc/objc/:
      2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              PR objc/45925
              * objc-act.c (objc_finish_foreach_loop): Convert return value of
              countByEnumeratingWithState:objects:count: to long unsigned int.
      
      From-SVN: r165129
      Nicola Pero committed
    • re PR fortran/45933 ([OOP] ICE in gfc_add_component_ref, at fortran/class.c:77) · 061e60bd
      2010-10-07  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/45933
      	* resolve.c (resolve_typebound_function): Use correct declared type
      	for type-bound operators.
      
      
      2010-10-07  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/45933
      	* gfortran.dg/typebound_operator_5.f03: New.
      
      From-SVN: r165126
      Janus Weil committed
    • In gcc/cp/: 2010-10-07 Nicola Pero <nicola@nicola.brainstorm.co.uk> · 3cfa8f82
      In gcc/cp/:
      2010-10-07  Nicola Pero  <nicola@nicola.brainstorm.co.uk>
      
              Merge from apple/trunk branch on FSF servers.
      
              2006-04-26  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4508851
              * parser.c (cp_parser_objc_interstitial_code): Recognize
              and parse RID_NAMESPACE keyword.
      
      In gcc/testsuite/:
      2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              Merge from 'apple/trunk' branch on FSF servers.
      
              2006-04-26  Fariborz Jahanian <fjahanian@apple.com>
      
              Radar 4508851
              * obj-c++.dg/method-namespace-1.mm: New.
      
      From-SVN: r165125
      Nicola Pero committed
    • tree-sra.c (struct access): New field grp_assignment_write. · fc37536b
      2010-10-07  Martin Jambor  <mjambor@suse.cz>
      
      	* tree-sra.c (struct access): New field grp_assignment_write.
      	(dump_access): Dump grp_assignment_write.
      	(build_accesses_from_assign): Set grp_assignment_write.
      	(sort_and_splice_var_accesses): Aggregate grp_assignment_write.
      	(mark_read_status): Renamed to mark_rw_status, individual values
      	renamed too.
      	(analyze_access_subtree): Changed type of mark_write to
      	mark_read_status.  Fixed propagating of mark_read and
      	mark_write.  Changed benefit estimate.  Updated comment.
      
      	* testsuite/gcc.dg/tree-ssa/sra-11.c: New test.
      
      From-SVN: r165124
      Martin Jambor committed
    • tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL check for… · d163c4f7
      tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL check for vectype_out returned by get_vectype_for_scalar_type().
      
      gcc/
      
      2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
      
      	* tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
      	check for vectype_out returned by get_vectype_for_scalar_type().
      
      testsuite/
      
      2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
      
      	* gcc.dg/vect/pr45847.c: New test.
      
      From-SVN: r165123
      Tejas Belagod committed
    • re PR target/45805 (VFP/Neon double precision register expected -- `vmovl.s16 q2,s8) · 7f27ec08
      2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
      
      	PR target/45805
              * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
              constraint, add register specifier in instruction template.
              (neon_vec_pack_trunc_<mode>): Likewise.
              (neon_vec_<US>mult_<mode>): Add register specifier to
              instruction template.
      
      From-SVN: r165122
      Tejas Belagod committed
    • fix for targets with different long and ptr sizes. · 58be5bf6
             * objc.dg/proto-lossage-4.m: Use intptr_t instead of long type.
      
      
      Co-Authored-By: Kai Tietz <kai.tietz@onevision.com>
      
      From-SVN: r165121
      Iain Sandoe committed
    • re PR tree-optimization/45732 (ICE: in bit_value_unop, at tree-ssa-ccp.c:1861 at -O1) · fa45f8d7
      2010-10-07  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/45732
      	* gcc.dg/torture/pr45732.c: New testcase.
      
      From-SVN: r165120
      Richard Guenther committed
    • config.gcc (c_target_objs): Don't add cygwin2.o. · 3edeb30d
      	* config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
      	cygwin2.o.
      	(cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
      	(extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
      	* config/i386/t-cygwin (cygwin1.o): Delete build rule.
      	(cygwin2.o): Likewise.
      	* config/i386/cygwin1.c: Delete file.
      	* config/i386/cygwin2.c: Likewise.
      	* config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
      	make all {%!mno-cygwin} ones unconditional.
      	(STARTFILE_SPEC): Likewise.
      	(REAL_LIBGCC_SPEC): Likewise.
      	(LIB_SPEC): Likewise.
      	(CXX_WRAP_SPEC): Likewise.
      	(LINK_SPEC): Likewise.
      	(CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
      	(CYGWIN_MINGW_SUBDIR_LEN): Likewise.
      	(cygwin_gplusplus_include_dir): Delete now-unused array.
      	(GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
      	(cygwin_gplusplus_tool_include_dir): Delete now-unused array.
      	(GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
      	(cygwin_gplusplus_backward_include_dir): Delete now-unused array.
      	(GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
      	(cygwin_local_include_dir): Delete now-unused array.
      	(LOCAL_INCLUDE_DIR): Don't redefine to point to it.
      	(cygwin_cross_include_dir): Delete now-unused array.
      	(CROSS_INCLUDE_DIR): Don't redefine to point to it.
      	(cygwin_tool_include_dir): Delete now-unused array.
      	(TOOL_INCLUDE_DIR): Don't redefine to point to it.
      	(cygwin_standard_include_dir): Delete now-unused array.
      	(STANDARD_INCLUDE_DIR): Don't redefine to point to it.
      	(GEN_CVT_ARRAY): Delete now-unused macro definition.
      	(cvt_to_mingw): Delete now-unused array.
      	(mingw_scan): Remove prototype of deleted function.
      	(GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
      	* config/i386/cygming.opt (mcygwin): Delete target-specific option.
      	* doc/invoke.texi (-mcygwin): Don't document removed option.
      	(-mno-cygwin): Likewise.
      
      From-SVN: r165119
      Dave Korn committed
    • foreach-1.m: Adjust for -fnext-runtime compatibility. · a4c37c16
      gcc/testsuite:
      
      	* objc.dg/foreach-1.m: Adjust for -fnext-runtime compatibility.
      	* objc.dg/foreach-2.m: Likewise.
      	* objc.dg/foreach-3.m: Likewise.
      	* objc.dg/foreach-4.m: Likewise.
      	* objc.dg/foreach-5.m: Likewise.
      	* objc.dg/foreach-6.m: Likewise.
      	* objc.dg/foreach-7.m: Likewise.
      	* objc.dg/objc-foreach-4.m: Likewise.
      	* objc.dg/objc-foreach-5.m: Likewise.
      
      From-SVN: r165117
      Iain Sandoe committed
    • machmode.h (mode_for_vector): Declare. · bb67d9c7
      2010-10-07  Richard Guenther  <rguenther@suse.de>
      
      	* machmode.h (mode_for_vector): Declare.
      	* stor-layout.c (mode_for_vector): New function, split out from ...
      	(layout_type): ... here.
      	* tree-vectorizer.h (current_vector_size): Declare.
      	* tree-vect-stmts.c (perm_mask_for_reverse): Check if the
      	mask vector type is available.
      	(get_vectype_for_scalar_type): Rename to ...
      	(get_vectype_for_scalar_type_and_size): ... this.  Get a vector
      	size argument.
      	(get_vectype_for_scalar_type): New wrapper around
      	get_vectype_for_scalar_type_and_size using current_vector_size.
      	(get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
      	* tree-vect-loop.c (vect_analyze_loop_2): Split out core part
      	of vect_analyze_loop here.
      	(vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
      	* tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
      	to autodetect.
      	* config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
      	V8SF to V8SI conversion builtin.
      
      From-SVN: r165116
      Richard Guenther committed
    • target.def (autovectorize_vector_sizes): New target hook. · 767f865f
      2010-10-07  Richard Guenther  <rguenther@suse.de>
      
      	* target.def (autovectorize_vector_sizes): New target hook.
      	* targhooks.c (default_autovectorize_vector_sizes): New function.
      	* targhooks.h (default_autovectorize_vector_sizes): Declare.
      	* doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
      	Document.
      	* doc/tm.texi: Update.
      	* config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
      	(TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
      
      From-SVN: r165115
      Richard Guenther committed
    • target.def (units_per_simd_word): Rename to ... · cc4b5170
      2010-10-07  Richard Guenther  <rguenther@suse.de>
      
      	* target.def (units_per_simd_word): Rename to ...
      	(preferred_simd_mode): ... this.  Return mode instead of size.
      	* targhooks.c (default_units_per_simd_word): Rename to ...
      	(default_preferred_simd_mode): ... this.  Return word_mode.
      	* targhooks.h (default_preferred_simd_mode): Declare.
      	* config/arm/arm.c (arm_units_per_simd_word): Rename to ...
      	(arm_preferred_simd_mode): ... this.  Re-implement.
      	* config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
      	(ix86_preferred_simd_mode): ... this.  Re-implement.
      	* config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
      	(sparc_preferred_simd_mode): ... this.  Re-implement.
      	* config/mips/mips.c (mips_units_per_simd_word): Rename to ...
      	(mips_preferred_simd_mode): ... this.  Re-implement.
      	* config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
      	(rs6000_preferred_simd_mode): ... this.  Re-implement.
      	* tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
      	* doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
      	(TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
      	* doc/tm.texi: Update.
      
      From-SVN: r165114
      Richard Guenther committed