- 07 Oct, 2010 40 commits
-
-
From-SVN: r165131
Richard Henderson committed -
/: 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> * 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 -
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> 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 -
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 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 -
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 -
* 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 -
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)[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 -
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 -
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 -
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 -
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 -
2010-10-07 Richard Guenther <rguenther@suse.de> PR middle-end/45869 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts of pointers. * gcc.dg/torture/pr45869.c: New testcase. From-SVN: r165113
Richard Guenther committed -
gcc/objc: * objc-act.c (build_objc_method_call): Replace calls to build_function_call () with the VEC equivalent. Construct parameter lists as VECs. From-SVN: r165112
Iain Sandoe committed -
gcc/objc: * objc-act.c (objc_build_message_expr): Call mark_exp_read () to signal that the receiver has been used. gcc/testsuite: * objc.dg/set-not-used-1.m: New * obj-c++.dg/set-not-used-1.mm: New. From-SVN: r165111
Iain Sandoe committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02. * gcc-interface/Make-lang.in: Update dependencies. 2010-10-07 Ed Schonberg <schonberg@adacore.com> * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child unit, if the type of the formal is declared in a parent unit and is not a formal itself, the actual must be located from an enclosing parent instance by normal visibility. 2010-10-07 Ed Schonberg <schonberg@adacore.com> * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion indicator is illegal for an uninitialized allocator. From-SVN: r165110
Arnaud Charlet committed -
gcc/cp: parser.c (cp_parser_objc_method_tail_params_opt): Peek new token after finding ellipsis, before checking for attributes. testsuite: * objc.dg/attributes/method-attribute-3.m: New. * obj-c++.dg/attributes/method-attribute-3.mm: New. From-SVN: r165109
Iain Sandoe committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * sem_prag.adb (Analyze_Attribute_Definition_Clause, case Component_Size): Complete previous change. 2010-10-07 Vincent Celier <celier@adacore.com> * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier, even for keywords, to avoid having the checksum to depend on the Ada version. 2010-10-07 Gary Dismukes <dismukes@adacore.com> * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb, exp_ch3.adb: Minor reformatting. From-SVN: r165106
Arnaud Charlet committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Component_Size): It is now illegal to give an incorrect component size clause in the case of aliased or atomic components. * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give an effective pragma Pack in the case of aliased or atomic components. 2010-10-07 Steve Baird <baird@adacore.com> * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion in the case of a violation of an active No_Task_Hierarchy restriction. 2010-10-07 Ed Schonberg <schonberg@adacore.com> * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived type is non-limited, an actual for it cannot be limited. From-SVN: r165105
Arnaud Charlet committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * einfo.ads (No_Pool_Assigned): Update documentation. * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Storage_Size): We only set No_Pool_Assigned if the expression is a static constant and zero. * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool should be an error not a warning. 2010-10-07 Ed Schonberg <schonberg@adacore.com> * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases where an aggregate in an assignment can be built directly into the target, and does not require the creation of a temporary that may overflow the stack. 2010-10-07 Ed Schonberg <schonberg@adacore.com> * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list in a record aggregate can correspond to several components of anonymous access types, as long as the designated subtypes match. From-SVN: r165104
Arnaud Charlet committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb, sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads, restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change spelling parametrize(d) => parameterize(d). From-SVN: r165103
Robert Dewar committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * sem_ch12.adb: Add comment. * sem_ch6.adb: Minor reformatting. From-SVN: r165102
Robert Dewar committed -
* config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode rather than sign extension by hand. From-SVN: r165101
Alan Modra committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add Pexp to Pf_Rec constants (P_Subprogram): Expression is always enclosed in parentheses * par.adb (Pf_Rec): add Pexp flag for parametrized expression * sinfo.ads (N_Parametrized_Expression): Expression must be in parens 2010-10-07 Ed Schonberg <schonberg@adacore.com> * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012 checks on functions that return an abstract type or have a controlling result whose designated type is an abstract type. (Check_Private_Overriding): Implement Ada2012 checks on functions declared in the private part, if an abstract type is involved. * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012, reject a generic function that returns an abstract type. * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a function has a controlling access result, check that the tag of the return value matches the designated type of the return expression. From-SVN: r165100
Arnaud Charlet committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * par-ch6.adb: Fix error in handling of parametrized expressions. * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012 mode. (P_Simple_Expression): Better message for qualified expression prefix * s-crc32.adb: Minor reformatting. * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty storage pool (this test is moved to Sem_Intr). * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from empty storage pool, moved here from Exp_Intr and made into error. (Check_Intrinsic_Call): Remove assumption in generating not-null free warning that the name of the instantiation is Free. * sinput.adb (Tree_Read): Document use of illegal free call allowed in GNAT mode. * types.ads: Remove storage size clauses from big types (since we may need to do deallocations, which are now illegal for empty pools). 2010-10-07 Sergey Rybin <rybin@adacore.com> * gnat_ugn.texi: Add missing word. From-SVN: r165099
Arnaud Charlet committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * exp_util.adb (Insert_Actions): Add handling of N_Parametrized_Expression. * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression * sem.adb: Add entry for N_Parametrized_Expression * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression * par-ch4.adb: Minor reformatting. From-SVN: r165098
Robert Dewar committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * scng.adb (Skip_Other_Format_Characters): New procedure (Start_Of_Wide_Character): New procedure (Scan): Use Start_Of_Wide_Character where appropriate (Scan): Improve error message for other_format chars in identifier (Scan): Allow other_format chars between tokens 2010-10-07 Javier Miranda <miranda@adacore.com> * exp_util.adb (Safe_Prefixed_Reference): When removing side effects, Add missing support for explicit dereferences. 2010-10-07 Robert Dewar <dewar@adacore.com> * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting. From-SVN: r165097
Arnaud Charlet committed -
From-SVN: r165095
Joseph Myers committed -
2010-10-07 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/locale_facets_nonio.tcc (time_get<>:: _M_extract_via_format): Tighten somewhat error checking. * testsuite/22_locale/time_get/get_time/char/6.cc: New. * testsuite/22_locale/time_get/get_time/wchar_t/6.cc: Likewise. From-SVN: r165094
Paolo Carlini committed -
From-SVN: r165093
Jan Hubicka committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb, exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to Exp_Util.Fully_Qualified_Name_String. 2010-10-07 Robert Dewar <dewar@adacore.com> * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler * sem_res.adb (Resolve_Call): A call to Ada.Real_Time.Timing_Events.Set_Handler violates restriction No_Relative_Delay (AI-0211). 2010-10-07 Ed Schonberg <schonberg@adacore.com> * sem_ch10.adb: Small change in error message. From-SVN: r165092
Arnaud Charlet committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * tbuild.ads: Minor reformatting. From-SVN: r165091
Robert Dewar committed -
PR middle-end/45926 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch. From-SVN: r165090
Jan Hubicka committed -
2010-10-07 Mikael Morin <mikael@gcc.gnu.org> PR fortran/45916 Revert revision 165026: 2010-10-06 Mikael Morin <mikael@gcc.gnu.org> * decl.c (match_procedure_in_type): Assertify if conditions. 2010-10-07 Mikael Morin <mikael@gcc.gnu.org> PR fortran/45916 * gfortran.dg/generic_typebound_operator_1.f90: New test. From-SVN: r165089
Mikael Morin committed -
2010-10-07 Robert Dewar <dewar@adacore.com> * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting 2010-10-07 Arnaud Charlet <charlet@adacore.com> * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments. From-SVN: r165088
Arnaud Charlet committed -
2010-10-07 Richard Guenther <rguenther@suse.de> PR bootstrap/45914 * configure.ac: Fix typo. * configure: Regenerated. From-SVN: r165087
Richard Guenther committed -
Fixes cross compilation for libiberty after my change libiberty/ 2010-10-07 Andi Kleen <ak@linux.intel.com> * configure: Regenerate. * configure.ac: Turn PR_SET_NAME check into link check. From-SVN: r165086
Andi Kleen committed
-