1. 25 Oct, 2010 10 commits
    • [multiple changes] · f6b5dc8e
      2010-10-25  Robert Dewar  <dewar@adacore.com>
      
      	* exp_ch5.adb (Expand_Predicated_Loop): Remove code for loop through
      	non-static predicate, since we agree not to allow this.
      	(Expand_Predicated_Loop): Properlay handle false predicate (null
      	list in Static_Predicate field.
      	* sem_ch13.adb (Build_Static_Predicate): Extensive changes to clean up
      	handling of more general predicate forms.
      
      2010-10-25  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch4.adb, sem_util.adb: Minor reformatting.
      	* sem_ch8.adb (Find_Selected_Component): Allow selection from instance
      	of type in predicate or invariant expression.
      
      2010-10-25  Pascal Obry  <obry@adacore.com>
      
      	* adaint.c (__gnat_stat_to_attr): Can set the timestamp on Windows now.
      	(f2t): New routine.
      	(__gnat_stat): Rewrite Win32 version.
      
      From-SVN: r165919
      Arnaud Charlet committed
    • [multiple changes] · 66150d01
      2010-10-25  Robert Dewar  <dewar@adacore.com>
      
      	* sem_warn.adb, einfo.ads, exp_ch4.adb: Minor comment fix
      	* sem_case.adb: Comment clarification for loops through false
      	predicates.
      	* sem_util.adb: Minor reformatting
      	(Check_Order_Dependence): Fix bad double blank in error message
      
      2010-10-25  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch4.adb (Analyze_Membership_Op): in Ada_2012 a membership
      	operation can have a single alternative that is a value of the type.
      	Rewrite operation as an equality test.
      
      From-SVN: r165918
      Arnaud Charlet committed
    • [multiple changes] · 1e194575
      2010-10-25  Matthew Heaney  <heaney@adacore.com>
      
      	* Makefile.rtl, impunit.adb: Added a-cobove (bounded vector container)
      	to lists.
      	* a-contai.ads: Added declaration of Capacity_Error exception.
      	* a-cobove.ads, a-cobove.adb: New files.
      
      2010-10-25  Thomas Quinot  <quinot@adacore.com>
      
      	* uname.adb: Revert previous change, no longer needed after change
      	in par-ch10.adb.
      
      2010-10-25  Thomas Quinot  <quinot@adacore.com>
      
      	* scos.ads: Minor comment fix.
      
      2010-10-25  Ed Schonberg  <schonberg@adacore.com>
      
      	* sem_ch5.adb (Analyze_Assignment_Statement): Check dangerous order
      	dependence.
      	* sem_ch6.adb (Analyze_Procedure_Call_Statement): Ditto.
      	* sem_res.adb (Analyze_Actuals): Add actual to list of actuals for
      	current construct, for subsequent order dependence checking.
      	(Resolve): Check order dependence on expressions that are not
      	subexpressions.
      	* sem_util.adb (Check_Order_Dependence): Code cleanup, to correspond
      	to latest version of AI05-144-2.
      	* sem_warn.adb (Warn_On_Overlapping_Actuals): Code cleanup.
      
      2010-10-25  Robert Dewar  <dewar@adacore.com>
      
      	* sem_ch13.adb (Build_Static_Predicate): Moved out of
      	Build_Predicate_Function.
      	(Build_Static_Predicate): Complet rewrite for more general predicates
      
      From-SVN: r165917
      Arnaud Charlet committed
    • Fix a typo in my last ChangeLog entry. · 89ff4f16
      From-SVN: r165916
      Jie Zhang committed
    • forward_list.h (_Fwd_list_node_base::swap): Remove. · deaf7b86
      2010-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/forward_list.h (_Fwd_list_node_base::swap): Remove.
      	(_Fwd_list_base<>::_Fwd_list_base(_Fwd_list_base&&),
      	_Fwd_list_base<>::_Fwd_list_base(_Fwd_list_base&&, const _Alloc&)):
      	Don't use swap.
      	(forward_list<>::swap): Just use std::swap.
      
      	* include/bits/forward_list.h (_Fwd_list_base<>::_Fwd_list_base(),
      	_Fwd_list_base(const _Alloc&)): Don't zero again _M_next.
      
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	assign_neg.cc: Adjust dg-error line number.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	insert_neg.cc: Likewise.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	constructor_1_neg.cc: Likewise.
      	* testsuite/23_containers/forward_list/requirements/dr438/
      	constructor_2_neg.cc: Likewise.
      
      From-SVN: r165915
      Paolo Carlini committed
    • decl.c (gnat_to_gnu_entity, [...]): Allow In Out/Out parameters for functions. · 35a382b8
      	* gcc-interface/decl.c (gnat_to_gnu_entity, case E_Function): Allow
      	In Out/Out parameters for functions.
      	* gcc-interface/trans.c (gnu_return_var_stack): New variable.
      	(create_init_temporary): New static function.
      	(Subprogram_Body_to_gnu): Handle In Out/Out parameters for functions.
      	(call_to_gnu): Likewise.  Use create_init_temporary in order to create
      	temporaries for unaligned parameters and return value.  If there is an
      	unaligned In Out or Out parameter passed by reference, push a binding
      	level if not already done.  If a binding level has been pushed and the
      	call is returning a value, create the call statement.
      	(gnat_to_gnu) <N_Return_Statement>: Handle In Out/Out parameters for
      	functions.
      
      From-SVN: r165914
      Eric Botcazou committed
    • configure.ac: Use $cpu_type instead of $target to define the nop. · 7fa2619a
      	* configure.ac: Use $cpu_type instead of $target to define the nop.
      	* configure: Regenerate.
      
      From-SVN: r165913
      Eric Botcazou committed
    • hashtable.h (_Hashtable<>:_M_get_Value_allocator): Remove, unused. · 7d9d5bb6
      2010-10-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/hashtable.h (_Hashtable<>:_M_get_Value_allocator):
      	Remove, unused.
      
      From-SVN: r165912
      Paolo Carlini committed
    • combine.c (try_combine): If insns need to be kept around... · 8150f05c
      	* combine.c (try_combine): If insns need to be kept around,
      	check that they can be copied in the merged instruction.
      
      	testsuite/
      	g++.dg/opt/combine.c: New test.
      
      From-SVN: r165911
      Jie Zhang committed
    • Daily bump. · 0ebd05fe
      From-SVN: r165910
      GCC Administrator committed
  2. 24 Oct, 2010 11 commits
  3. 23 Oct, 2010 11 commits
    • gcc.c (n_switches_alloc_debug_check): New. · efe5e5a0
      	* gcc.c (n_switches_alloc_debug_check): New.
      	(set_option_handlers): New.
      	(process_command): Use set_option_handlers.
      	(do_self_spec): Pass spec-generated options through option
      	handlers.
      	(main): Also save and restore n_switches_alloc when swapping
      	switch arrays.
      
      From-SVN: r165891
      Joseph Myers committed
    • * MAINTAINERS: Update my email address. · fe12dfe1
      From-SVN: r165890
      James E. Wilson committed
    • tests for Darwin CFStrings · 505bff7a
      gcc/testsuite:
      
      	Based on the CFString implementation in FSF apple/trunk branch.
      
      	* gcc.dg/darwin-cfstring-1.c: New.
      	* gcc.dg/darwin-cfstring-2.c: New.
      	* gcc.dg/torture/darwin-cfstring-3.c: New.
      	* g++.dg/other/darwin-cfstring1.C: New.
      	* g++.dg/torture/darwin-cfstring-3.C: New.
      
      From-SVN: r165889
      Iain Sandoe committed
    • In gcc/cp/: 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> · b8a18805
      In gcc/cp/:
      2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * tree.c (cxx_printable_name_internal): In Objective-C++, call
              objc_maybe_printable_name.
      
      In gcc/objc/:
      2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc-act.c (OBJC_GEN_METHOD_LABEL): Updated comments.
              (objc_demangle): Return NULL if demangling can not be done because
              the string to demangle is not an Objective-C mangled method name.
              Be smarter in demangling method names so that at least for methods
              with no arguments we are able to almost always demangle '_' correctly.
              Updated comments.
              (objc_maybe_printable_name): New.
              (objc_printable_name): Call objc_maybe_printable_name.  If it
              returns NULL, call cxx_printable_name in Objective-C++.
      
      In gcc/testsuite/:
      2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/demangle-1.m: New test.
              * obj-c++.dg/demangle-1.mm: New test.
              * obj-c++.dg/demangle-2.mm: New test.
              * obj-c++.dg/demangle-3.mm: New test.
      
      In gcc/c-family/:
      2010-10-23  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * c-common.h (objc_maybe_printable_name): New.
              * stub-objc.c (objc_maybe_printable_name): New.
      
      From-SVN: r165887
      Nicola Pero committed
    • re PR target/46144 (gfortran.dg/vect/fast-math-vect-8.f90) · 487a9a3e
      PR target/46144
      * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
      (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
      Honor matching operands when splitting to XOR.
      
      From-SVN: r165885
      Richard Henderson committed
    • tree-vrp.c (extract_range_from_binary_expr): If flag_non_call_exceptions don't… · 0e1b8b10
      tree-vrp.c (extract_range_from_binary_expr): If flag_non_call_exceptions don't eliminate division by zero.
      
      gcc/:
      	* tree-vrp.c (extract_range_from_binary_expr): If
      	flag_non_call_exceptions don't eliminate division by zero.
      	* simplify-rtx.c (simplify_binary_operation_1): Likewise.
      gcc/testsuite/:
      	* gcc.c-torture/execute/20101011-1.c: New test.
      	* gcc.c-torture/execute/20101011-1.x: New test driver.
      
      From-SVN: r165884
      Ian Lance Taylor committed
    • re PR fortran/46122 (PROTECTED check too strict) · 67f67405
      2010-10-23  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/46122
              * expr.c (gfc_check_vardef_context): Fix PROTECTED check.
      
      2010-10-23  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/46122
              * gfortran.dg/protected_8.f90: New.
      
      From-SVN: r165883
      Tobias Burnus committed
    • march-generic.c: Skip for -march in multilib options. · 15ac3942
      	* gcc.dg/march-generic.c: Skip for -march in multilib options.
      	* gcc.target/i386/isa-9.c: Skip for -march other than
      	-march=amdfam10 in multilib options.
      	* gcc.target/i386/pr42589.c: Skip for -march other than
      	-march=i486 in multilib options.
      	* gcc.target/i386/sse-19.c: Add -march=x86-64 option and skip for
      	other -march in multilib options.
      
      From-SVN: r165882
      Joseph Myers committed
    • cppbuiltin.c (define_builtin_macros_for_type_sizes): Define __BYTE_ORDER__... · 18ed6ee4
      gcc/
      	* cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
      	__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
      	__ORDER_PDP_ENDIAN__.
      	* libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	(struct DWstruct): Define based on __BYTE_ORDER__.
      	* config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	(struct INTstruct): Define based on __BYTE_ORDER__.
      	* config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	(LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
      	* system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
      	* config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	* doc/tm.texi: Regenerate.
      	* doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
      	(__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
      
      libdecnumber/
      	* dconfig.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
      	(LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
      
      libgcc/
      	* config/libbid/bid_gcc_intrinsics.h (LIBGCC2_WORDS_BIG_ENDIAN):
      	Delete.
      	(LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
      
      From-SVN: r165881
      Nathan Froyd committed
    • re PR rtl-optimization/37360 (ICE in haifa-sched.c when compiling __popcountsi2 from libgcc) · 646e6f41
      	PR rtl-optimization/37360
      	* config/mips/mips.c (cached_can_issue_more): New local variable.
      	(mips_sched_reorder_1): New.
      	(mips_sched_reorder): Use mips_sched_reorder_1.
      	(mips_sched_reorder2): New.
      	(mips_variable_issue): Set cached_can_issue_more.
      	(TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
      	instead of mips_sched_reorder.
      
      	Revert
      	2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
      	PR rtl-optimization/37360
      	* haifa-sched.c (max_issue): Do not assert that we never issue more
      	insns than issue_rate.  Add comment.
      
      	testsuite/
      	PR rtl-optimization/37360
      	* gcc.dg/pr37360.c: New test.
      
      From-SVN: r165880
      Jie Zhang committed
    • Daily bump. · 61a796b1
      From-SVN: r165879
      GCC Administrator committed
  4. 22 Oct, 2010 8 commits