Skip to content
Snippets Groups Projects
  1. Nov 09, 2010
  2. Nov 08, 2010
    • Jonathan Wakely's avatar
      unique_ptr.h: Move misplaced static_assert and use tuple's constexpr constructor in constexpr... · 14b846de
      Jonathan Wakely authored
      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
      14b846de
    • Benjamin Kosnik's avatar
      user.cfg.in: Adjust scanned includes. · 85f38b3f
      Benjamin Kosnik authored
      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
      85f38b3f
    • Janus Weil's avatar
      re PR fortran/46344 ([OOP] ICE with allocatable CLASS components) · 17643884
      Janus Weil authored
      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
      17643884
    • Nicola Pero's avatar
      In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> · d36dba07
      Nicola Pero authored
      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
      d36dba07
    • Nicola Pero's avatar
      In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> · 4741888d
      Nicola Pero authored
      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
      4741888d
    • Nicola Pero's avatar
      In gcc/objc/: 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> · 4ca5d2a7
      Nicola Pero authored
      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
      4ca5d2a7
    • Jason Merrill's avatar
      Correct conversion/overflow behavior. · 9e115cec
      Jason Merrill authored
      	* 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
      9e115cec
    • Jason Merrill's avatar
      add PR number · 1b2c3293
      Jason Merrill authored
      From-SVN: r166452
      1b2c3293
    • Joern Rennecke's avatar
      re PR target/44757 (lm32.md: In function ‘gen_ashlsi3’:unused variable ‘one’) · ae15736e
      Joern Rennecke authored
      
      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: default avatarRichard Henderson <rth@redhat.com>
      
      From-SVN: r166451
      ae15736e
    • Michael Meissner's avatar
      Fix PR 46378 and PR 45585 · f4becba8
      Michael Meissner authored
      From-SVN: r166448
      f4becba8
    • Joern Rennecke's avatar
      re PR target/44758 (frv.md: incompatible enum comparisons / return) · 5c5e8419
      Joern Rennecke authored
      
      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: default avatarRichard Henderson <rth@redhat.com>
      
      From-SVN: r166447
      5c5e8419
    • Joern Rennecke's avatar
      re PR bootstrap/46358 (i686-pc-linux-gnu bootstrap failure in r166429) · d079459e
      Joern Rennecke authored
              PR bootstrap/46358
              * config/i386/i386.c (ix86_expand_split_stack_prologue):
              Avoid warnings when HOST_WIDE_INT is 32 bit.
      
      From-SVN: r166445
      d079459e
    • Rainer Orth's avatar
      re PR target/46280 (Several testcases FAIL with 16byte alignment ABI warning on Solaris 8/9 x86) · 8efea7a6
      Rainer Orth authored
      	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
      8efea7a6
    • Basile Starynkevitch's avatar
      gengtype (get_output_file_for_structure): Ensure type is union or struct. · 90aa3e91
      Basile Starynkevitch authored
      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
      90aa3e91
    • Steve Ellcey's avatar
      pr45982.c: Add -std=c99 · 2876a10d
      Steve Ellcey authored
      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
      2876a10d
    • Steve Ellcey's avatar
      covariant1.C: Fix scan-assembler. · b0d1803a
      Steve Ellcey authored
      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
      b0d1803a
    • Benjamin Kosnik's avatar
      complex (operator==, !=): Mark constexpr. · 6684c443
      Benjamin Kosnik authored
      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
      6684c443
    • Paolo Carlini's avatar
      stl_tree.h (_Rb_tree<>::_M_erase_aux): Add. · 7606bd11
      Paolo Carlini authored
      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
      7606bd11
    • Andreas Krebbel's avatar
      s390.c (s390_handle_arch_option): Set type and flags to defined values in case of an error. · 7876e2b5
      Andreas Krebbel authored
      2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* config/s390/s390.c (s390_handle_arch_option): Set type and flags
      	to defined values in case of an error.
      	(s390_option_override): Skip further processing if the -march
      	parameter wasn't recognized.
      
      From-SVN: r166435
      7876e2b5
    • Joern Rennecke's avatar
      caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails... · f57e2756
      Joern Rennecke authored
      	* caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
      	assert that REG is a hard register number before using it as an index.
      
      From-SVN: r166434
      f57e2756
    • Eric Botcazou's avatar
      re PR target/46208 (redundant extensions of argument registers) · f79e1b0f
      Eric Botcazou authored
      	PR target/46208
      	* config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
      	(sparc_promote_prototypes): Likewise.
      	(sparc_promote_function_mode): Promote in 32-bit mode as well.
      	(sparc_return_in_memory): Remove superfluous parentheses.
      	(sparc_struct_value_rtx): Fix long lines.
      	(sparc_function_value_1): Promote in 32-bit mode as well.
      
      From-SVN: r166433
      f79e1b0f
    • Eric Botcazou's avatar
      make_sunver.pl: Ignore entries without symbol name first. · 79770339
      Eric Botcazou authored
      	* make_sunver.pl: Ignore entries without symbol name first.  Then do
      	not ignore symbols marked as 'R'.
      
      From-SVN: r166432
      79770339
    • Kai Tietz's avatar
      re PR target/28627 ([cygwin/mingw32] Missing dllimport diagnostic) · d6892b3d
      Kai Tietz authored
      2010-11-08  Kai Tietz  <kai.tietz@onevision.com>
      
              PR target/28627
              * g++.dg/ext/dllimport7.C: Adjust second error check and
              allow test for x86_64 mingw, too.
      
      From-SVN: r166431
      d6892b3d
    • Janus Weil's avatar
      re PR fortran/46344 ([OOP] ICE with allocatable CLASS components) · 78a1d149
      Janus Weil authored
      2010-11-08  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/46344
      	* trans-types.c (gfc_copy_dt_decls_ifequal): Handle CLASS components.
      
      2010-11-08  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/46344
      	* gfortran.dg/class_28.f03: New.
      
      From-SVN: r166430
      78a1d149
    • Andrey Belevantsev's avatar
      re PR rtl-optimization/45352 (ICE: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7058) · 06f0c25f
      Andrey Belevantsev authored
              PR rtl-optimization/45352
              * sel-sched.c (find_best_expr): Do not set pneed_stall when
              the variable_issue hook is not implemented.
              (fill_insns): Remove dead variable stall_iterations.
              (init_seqno_1): Force EBB start for resetting sched cycles on any
              successor blocks of the rescheduled region.
              (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
              (reset_sched_cycles_in_current_ebb): Add debug printing.
              New variable issued_insns.  Advance state when we have issued
              issue_rate insns.
      
              gcc.dg/pr45352.c, gcc.dg/pr45352-1.c, gcc.dg/pr45352-2.c: New tests.
              gcc.target/i386/pr45352.c, gcc.target/i386/pr45352-1.c,
              gcc.target/i386/pr45352-2.c: New tests.
      
      From-SVN: r166429
      06f0c25f
Loading