1. 09 Nov, 2010 22 commits
  2. 08 Nov, 2010 18 commits
    • unique_ptr.h: Move misplaced static_assert and use tuple's constexpr constructor in constexpr... · 14b846de
      2010-11-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
      
      	* include/bits/unique_ptr.h: Move misplaced static_assert and use
      	tuple's constexpr constructor in constexpr constructors.
      	* testsuite/20_util/unique_ptr/cons/ptr_deleter.cc: New.
      	* testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: New.
      
      From-SVN: r166460
      Jonathan Wakely committed
    • user.cfg.in: Adjust scanned includes. · 85f38b3f
      2010-11-08  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* doc/doxygen/user.cfg.in: Adjust scanned includes.
      	* include/std/forward_list: Make doxygen file markup unambiguous.
      
      From-SVN: r166459
      Benjamin Kosnik committed
    • re PR fortran/46344 ([OOP] ICE with allocatable CLASS components) · 17643884
      2010-11-08  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/46344
      	* decl.c (build_struct): Build vtab immediately if derived type
      	has already been declared.
      
      2010-11-08  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/46344
      	* gfortran.dg/class_28.f03: Extended.
      
      From-SVN: r166458
      Janus Weil committed
    • In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> · d36dba07
      In gcc/objc/:
      2010-11-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc-act.c (objc_add_dynamic_declaration_for_property): Do not
              search for the @property declation only in the current context,
              but also in inherited properties.  Do not mark the original
              PROPERTY_DECL in the @interface or @protocol with
              PROPERTY_DYNAMIC.
              (check_methods): To check if a method is associated with a
              @dynamic property, search for the property in IMPL_PROPERTY_DECL.
              (check_accessible_methods): Same change.
              * objc-act.h: Updated comment.
      
      In gcc/testsuite/:
      2010-11-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/property/dynamic-4.m: New.
              * objc.dg/property/dynamic-5.m: New.
              * objc.dg/property/dynamic-6.m: New.    
              * obj-c++.dg/property/dynamic-4.mm: New.
              * obj-c++.dg/property/dynamic-5.mm: New.
              * obj-c++.dg/property/dynamic-6.mm: New.
      
      2010-11-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/property/dotsyntax-13.m: New.
              * objc.dg/property/dotsyntax-14.m: New.
              * objc.dg/property/dotsyntax-15.m: New. 
              * objc.dg/property/synthesize-7.m: New.
              * obj-c++.dg/property/dotsyntax-13.mm: New.
              * obj-c++.dg/property/dotsyntax-14.mm: New.
              * obj-c++.dg/property/dotsyntax-15.mm: New.     
              * obj-c++.dg/property/synthesize-7.mm: New.
      
      From-SVN: r166457
      Nicola Pero committed
    • In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> · 4741888d
      In gcc/objc/:
      2010-11-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc-act.c (objc_add_synthesize_declaration_for_property):
              Iterate over IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when
              checking for an existing @synthesize or @dynamic declaration.
              Search for an inherited @property declaration if none is found in
              the local interface.  If the required instance variable does not
              exist, return instead of trying to continue to prevent a compiler
              crash later.  Check that the instance variable is not already
              being used by another @synthesize.
              (objc_add_dynamic_declaration_for_property): Iterate over
              IMPL_PROPERTY_DECL, not CLASS_PROPERTY_DECL, when checking for an
              existing @synthesize or @dynamic declaration.
              (objc_synthesize_getter): Search for the getter declaration in
              protocols and superclasses as well.
              (objc_synthesize_setter): Search for the setter declaration in
              protocols and superclasses as well.
      
      In gcc/testsuite/:
      2010-11-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/property/synthesize-3.m: New.
              * objc.dg/property/synthesize-4.m: New.
              * objc.dg/property/synthesize-5.m: New.
              * objc.dg/property/synthesize-6.m: New.
              * obj-c++.dg/property/synthesize-3.mm: New.
              * obj-c++.dg/property/synthesize-4.mm: New.
              * obj-c++.dg/property/synthesize-5.mm: New.
              * obj-c++.dg/property/synthesize-6.mm: New.
      
      From-SVN: r166456
      Nicola Pero committed
    • In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> · 4ca5d2a7
      In gcc/objc/:
      2010-11-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc-act.c (lookup_property): When checking categories, also
              check the protocols attached to each.
              (objc_add_property_declaration): Determine the
              PROPERTY_SETTER_NAME and PROPERTY_GETTER_NAME here.  Tidied up
              error message.  Search for an existing property declaration with
              the same name which would be inherited from the class hiearchy,
              and produce an error if it has incompatible attributes.
              (check_methods): Changed second parameter.  If the method is a
              getter or setter for a property, do not warn if it is inherited as
              opposed to implemented directly in the class.
              (check_protocol): Updated calls to check_methods.
              (finish_class): Do not determine the PROPERTY_SETTER_NAME and
              PROPERTY_GETTER_NAME here; this is now done earlier, in
              objc_add_property_declaration.
              * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Added comments.
      
      In gcc/testsuite/:
      2010-11-08  Nicola Pero  <nicola.pero@meta-innovation.com>
      
              * objc.dg/property/at-property-5.m: Updated test.       
              * objc.dg/property/at-property-16.m: New.
              * objc.dg/property/at-property-17.m: New.
              * objc.dg/property/at-property-18.m: New.
              * objc.dg/property/at-property-19.m: New.       
              * objc.dg/property/dotsyntax-12.m: New
              * objc.dg/protocol-inheritance-1.m: New.
              * objc.dg/protocol-inheritance-2.m: New.
              * obj-c++.dg/property/at-property-5.mm: Updated test.
              * obj-c++.dg/property/at-property-16.mm: New.
              * obj-c++.dg/property/at-property-17.mm: New.
              * obj-c++.dg/property/at-property-18.mm: New.
              * obj-c++.dg/property/at-property-19.mm: New.   
              * obj-c++.dg/protocol-inheritance-1.mm: New.
              * obj-c++.dg/protocol-inheritance-2.mm: New.
              * obj-c++.dg/property/dotsyntax-12.mm: New.
      
      From-SVN: r166455
      Nicola Pero committed
    • Correct conversion/overflow behavior. · 9e115cec
      	* cvt.c (ignore_overflows): Move here from typeck.c.
      	(ocp_convert): Use it.
      	(cp_fold_convert): Use it.  Don't call rvalue.
      	* typeck.c (build_static_cast_1): Don't use it.  Do call rvalue.
      	* error.c (location_of): Handle expressions, too.
      	* class.c (check_bitfield_decl): Set input_location around call to
      	cxx_constant_value.
      	* semantics.c (cxx_eval_outermost_constant_expr): Don't
      	print the expression if it already had TREE_OVERFLOW set.
      	(reduced_constant_expression_p): Check TREE_OVERFLOW_P for C++98, too.
      	(verify_constant): Allow overflow with a permerror if we're
      	enforcing.
      	(cxx_eval_outermost_constant_expr): Use verify_constant.
      	(adjust_temp_type): Use cp_fold_convert.
      	* decl.c (build_enumerator): Don't call constant_expression_warning.
      	* decl2.c (grokbitfield): Likewise.
      
      From-SVN: r166453
      Jason Merrill committed
    • add PR number · 1b2c3293
      From-SVN: r166452
      Jason Merrill committed
    • re PR target/44757 (lm32.md: In function ‘gen_ashlsi3’:unused variable ‘one’) · ae15736e
      2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
      	    Richard Henderson <rth@redhat.com>
      
      	PR target/44757 
      	* config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
      	lm32_legitimate_constant_p.
      	* config/lm32/lm32.md (ashlsi3): Remove unused variable.
      	* config/lm32/lm32.c (gen_int_relational): Make new block for
      	LE / LT / LEU / LTU case.  Declare variables at start of block.
      	(lm32_block_move_inline): Use XALLOCAVEC.
      
      Co-Authored-By: Richard Henderson <rth@redhat.com>
      
      From-SVN: r166451
      Joern Rennecke committed
    • Fix PR 46378 and PR 45585 · f4becba8
      From-SVN: r166448
      Michael Meissner committed
    • re PR target/44758 (frv.md: incompatible enum comparisons / return) · 5c5e8419
      2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
      	    Richard Henderson <rth@redhat.com>
      
      	PR target/44758
      	* config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
      	(attribute acc_group): Cast value to enum attr_acc_group.
      	(*movdi_nodouble+6): Use gen_int_mode.
      	* config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
      	if RTX_CODE is defined or not.
      	* config/frv/frv.c (enum frv_io_type): New enum, broken out of
      	struct frv_io.
      	(frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
      	(frv_frame_access, frv_expand_prologue): Remove unused variables.
      	(frv_expand_block_clear): Likewise.
      	(frv_trampoline_init): Use LCT_NORMAL.
      	(struct frv_packet_group): New struct, broken out of type of
      	frv_packet.
      	(frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
      	use cast in loop counter increment.
      	(frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
      	assigning to io->type.
      	(bdesc_set): Use rtx_code UNKNOWN in initializer.
      	(bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
      	(bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
      	(bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
      	(frv_read_argument): Use expand_normal.
      
      Co-Authored-By: Richard Henderson <rth@redhat.com>
      
      From-SVN: r166447
      Joern Rennecke committed
    • re PR bootstrap/46358 (i686-pc-linux-gnu bootstrap failure in r166429) · d079459e
              PR bootstrap/46358
              * config/i386/i386.c (ix86_expand_split_stack_prologue):
              Avoid warnings when HOST_WIDE_INT is 32 bit.
      
      From-SVN: r166445
      Joern Rennecke committed
    • re PR target/46280 (Several testcases FAIL with 16byte alignment ABI warning on Solaris 8/9 x86) · 8efea7a6
      	gcc:
      	* config/i386/i386.c (ix86_function_arg_boundary): Fix warning
      	message.
      
      	gcc/testsuite:
      	* gcc.dg/pr35442.c: Adapt warning.
      
      	PR target/46280
      	* g++.dg/eh/simd-2.C: Add -msse to dg-options, add
      	dg-require-effective-target sse_runtime for for i?86-*-*, x86_64-*-*.
      	* g++.dg/torture/pr36444.C: Add dg-options -msse for
      	i?86-*-* x86_64-*-*.
      	* g++.dg/torture/pr36445.C: Likewise.
      	* gcc.c-torture/compile/pr34856.c: Likewise.
      	* gcc.c-torture/compile/pr39928-1.c: Likewise.
      	* gcc.c-torture/compile/vector-1.c: Likewise.
      	* gcc.c-torture/compile/vector-2.c: Likewise.
      	* gcc.dg/pr32912-1.c: Likewise.
      	* gcc.c-torture/execute/va-arg-25.c: Move ...
      	* gcc.dg/torture/va-arg-25.c: ... here.
      	Add dg-do run.
      	Add dg-options -msse, dg-require-effective-target sse_runtime for
      	for i?86-*-*, x86_64-*-*.
      	* gcc.c-torture/execute/vector-1.c: Likewise.
      	* gcc.c-torture/execute/vector-2.c: Likewise.
      	* gcc.dg/tree-ssa/forwprop-5.c: Add -msse to dg-options for
      	i?86-*-*, x86_64-*-*.
      	* gcc.dg/tree-ssa/fre-vce-1.c: Likewise.
      	* gcc.dg/tree-ssa/sra-4.c: Likewise.
      	* gcc.dg/tree-ssa/vector-1.c: Likewise.
      	* gcc.dg/tree-ssa/vector-2.c: Likewise.
      	* gcc.target/i386/vect-args.c: Add -Wno-psabi to dg-options.
      
      From-SVN: r166444
      Rainer Orth committed
    • gengtype (get_output_file_for_structure): Ensure type is union or struct. · 90aa3e91
      
      2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
      
      	* gengtype (get_output_file_for_structure): Ensure type is union
      	or struct.
      	(write_splay_tree_allocator_def): Use
      	get_output_file_with_visibility.
      
      From-SVN: r166442
      Basile Starynkevitch committed
    • pr45982.c: Add -std=c99 · 2876a10d
      2010-11-08  Steve Ellcey  <sje@cup.hp.com>
      
      	* gcc.dg/torture/pr45982.c: Add -std=c99
      	* gcc.dg/torture/pr45623.c: Ditto.
      
      From-SVN: r166441
      Steve Ellcey committed
    • covariant1.C: Fix scan-assembler. · b0d1803a
      2010-11-08  Steve Ellcey  <sje@cup.hp.com>
      
      	* gcc/testsuite/g++.dg/abi/covariant1.C: Fix scan-assembler.
      	* gcc/testsuite/g++.dg/abi/covariant6.C: Ditto.
      
      From-SVN: r166440
      Steve Ellcey committed
    • complex (operator==, !=): Mark constexpr. · 6684c443
      2010-11-08  Benjamin Kosnik  <bkoz@redhat.com>
      
              * include/std/complex (operator==, !=): Mark constexpr.
              * testsuite/26_numerics/complex/comparison_operators/constexpr.cc: New.
      
      From-SVN: r166439
      Benjamin Kosnik committed
    • stl_tree.h (_Rb_tree<>::_M_erase_aux): Add. · 7606bd11
      2010-11-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/bits/stl_tree.h (_Rb_tree<>::_M_erase_aux): Add.
      	(_Rb_tree<>::erase(iterator)): Fix in C++0x mode to take
      	const_iterator; remove redundant overload in C++03 mode.
      	(_Rb_tree<>::erase(iterator, iterator)): Likewise.
      	* include/bits/stl_map.h (map<>::erase): Adjust.
      	(map<>::insert): Fix signature in C++0x mode.
      	* include/bits/stl_set.h (set<>::erase): Likewise.
      	(set<>::insert): Likewise.
      	* include/bits/stl_multimap.h (multimap<>::erase): Likewise.
      	(multimap<>::insert): Likewise.
      	* include/bits/stl_multiset.h (multiset<>::erase): Likewise.
      	(multiset<>::insert): Fix signature in C++0x mode.
      	* include/profile/set.h: Adjust.
      	* include/profile/multiset.h: Likewise.
      	* include/profile/map.h: Likewise.
      	* include/profile/multimap.h: Likewise.
      	* testsuite/util/exception/safety.h (erase_base, insert_base):
      	Update.
      
      From-SVN: r166438
      Paolo Carlini committed