1. 11 Dec, 2010 4 commits
  2. 10 Dec, 2010 24 commits
    • fobjc-std-1.m: Updated to test that class extensions produce an error with -fobjc-std=objc1. · 31bd653e
      2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/fobjc-std-1.m: Updated to test that class extensions
      	produce an error with -fobjc-std=objc1.
      	* obj-c++.dg/fobjc-std-1.mm: Same change.
      
      From-SVN: r167700
      Nicola Pero committed
    • re PR c++/46001 (diagnostic refers to type '__java_boolean') · debd777c
      	PR c++/46001
      	* decl.c (record_builtin_java_type): Call build_distinct_type_copy
      	on build_nonstandard_integer_type result for __java_* types.
      
      	* g++.dg/diagnostic/bitfld1.C: New test.
      
      From-SVN: r167698
      Jakub Jelinek committed
    • Fix PR43023: fuse_partitions_with_similar_memory_accesses. · cfee318d
      2010-12-10  Sebastian Pop  <sebastian.pop@amd.com>
      
      	PR tree-optimization/43023
      	* tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
      	Removed.
      	(stores_zero_from_loop): Call stmt_stores_zero.
      	* tree-data-ref.h (stmt_stores_zero): New.
      	* tree-loop-distribution.c (generate_memset_zero): Do not return a
      	boolean.  Call gcc_assert on stride_of_unit_type_p.
      	(generate_builtin): Call stmt_stores_zero.
      	(rdg_flag_all_uses): Removed.
      	(rdg_flag_similar_memory_accesses): Removed.
      	(build_rdg_partition_for_component): Removed parameter
      	other_stores.  Removed call to rdg_flag_similar_memory_accesses.
      	(can_generate_builtin): New.
      	(similar_memory_accesses): New.
      	(fuse_partitions_with_similar_memory_accesses): New.
      	(rdg_build_partitions): Call
      	fuse_partitions_with_similar_memory_accesses.
      
      	* gfortran.dg/ldist-1.f90: Adjust pattern.
      	* gfortran.dg/ldist-pr43023.f90: New.
      
      From-SVN: r167697
      Sebastian Pop committed
    • configure.ac: Use i386/t-crtstuff on i?86-*-solaris2* if appropriate. · b595b1a1
      	* configure.ac: Use i386/t-crtstuff on i?86-*-solaris2* if
      	appropriate.
      	* configure: Regenerate.
      
      From-SVN: r167696
      Rainer Orth committed
    • re PR rtl-optimization/46804 (gfortran.dg/char_cshift_2.f90 FAILs with -fregmove) · 638cd7aa
      	PR rtl-optimization/46804
      	* regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
      	on the setter of src_reg rather than on insn.  If it is
      	equal to the setter's original SET_SRC, replace it with its
      	zero or sign extension instead of dropping it.
      
      	* gfortran.dg/pr46804.f90: New test.
      
      From-SVN: r167695
      Jakub Jelinek committed
    • libstdc++.exp (v3-build_support): Delete libtestc++.a before creation. · c962817c
      	* testsuite/lib/libstdc++.exp (v3-build_support): Delete
      	libtestc++.a before creation.
      
      From-SVN: r167692
      Rainer Orth committed
    • decl.c (grokmethod): Test DECL_CLASS_SCOPE_P. · 7f701cc1
      	* decl.c (grokmethod): Test DECL_CLASS_SCOPE_P.
      	* error.c (dump_decl): Test DECL_FILE_SCOPE_P.
      
      From-SVN: r167691
      Nathan Froyd committed
    • re PR lto/46808 (Too verbose diagnostic messages when compiling with LTO) · 97ce54b9
      2010-12-10  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/46808
      	* lto-symtab.c (lto_symtab_merge_decls_2): Avoid type warnings
      	after errors.
      	(lto_symtab_merge_decls_1): Adjust.
      
      From-SVN: r167690
      Richard Guenther committed
    • re PR bootstrap/46819 (libffi is always built) · d479b128
      	PR bootstrap/46819
      	* configure.ac: For --disable-libgcj clear libgcj_saved.
      	* configure: Rebuild.
      
      From-SVN: r167689
      Ian Lance Taylor committed
    • re PR middle-end/46674 (Weak alias is mistakenly optimized away) · 77754180
      gcc/ChangeLog:
      
      	PR middle-end/46674
      	PR lto/43157
      	* target.def (mangle_assembler_name): New target asm_out hook.
      	* targhooks.c (default_mangle_assembler_name): Add default hook
      	implementation.
      	* targhooks.h (default_mangle_assembler_name): Add prototype.
      	* lto-symtab.c (lto_symtab_register_decl): Use new hook when
      	processing DECL_ASSEMBLER_NAMEs for lto symtabs.
      	(lto_symtab_get_resolution): Likewise.
      	(lto_cgraph_replace_node): Likewise.
      	(lto_symtab_prevailing_decl): Likewise.
      	* lto-streamer-out.c (write_symbol): Likewise.
      	* doc/tm.texi.in (TARGET_MANGLE_ASSEMBLER_NAME): Add @hook directive.
      	* doc/tm.texi: Regenerate.
      	* config/i386/cygming.h (TARGET_MANGLE_ASSEMBLER_NAME): Define to
      	point at i386_pe_mangle_assembler_name.
      	* config/i386/winnt.c (i386_pe_mangle_assembler_name): New function.
      	* config/i386/i386-protos.h (i386_pe_mangle_assembler_name): Add
      	prototype.
      
      lto-plugin/ChangeLog:
      
      	PR middle-end/46674
      	PR lto/43157
      	* configure.ac (SYM_STYLE): Don't AC_DEFINE.
      	* lto-plugin.c (sym_style): Don't use it; default to ss_none.
      	* configure: Regenerate.
      	* config.h.in: Likewise.
      
      gcc/testsuite/ChangeLog:
      
      	PR middle-end/46674
      	PR lto/43157
      	* gcc.dg/pr43157.c: New file.
      
      From-SVN: r167688
      Dave Korn committed
    • c-typeck.c (readonly_error): Delete. · 4816c593
      gcc/
      	* c-typeck.c (readonly_error): Delete.
      
      gcc/c-family/
      	* c-common.h (readonly_error): Declare.
      	* c-common.c (readonly_error): Define.
      
      gcc/cp/
      	* cp-tree.h (readonly_error_kind): Delete.
      	(readonly_error): Rename to...
      	(cxx_readonly_error): ...this.  Change second argument to be an
      	enum lvalue_use.
      	* semantics.c (finish_asm_stmt): Call cxx_readonly_error.
      	* typeck.c (cp_build_unary_op): Likewise.
      	(cp_build_modify_expr): Likewise.
      	* typeck2.c (readonly_error): Rename to...
      	(cxx_readonly_error): ...this.  Delegate to readonly_error for
      	most cases.
      
      gcc/testsuite/
      	* gcc.dg/dfp/struct-union.c: Adjust.
      	* gcc.dg/lvalue-2.c: Adjust.
      	* gcc.dg/pr21419.c: Adjust.
      	* gcc.dg/qual-component-1.c: Adjust.
      	* g++.dg/other/const1.C: Adjust.
      
      From-SVN: r167687
      Nathan Froyd committed
    • re PR rtl-optimization/46865 (Using -save-temps (or ccache, distcc) produces… · fee45723
      re PR rtl-optimization/46865 (Using -save-temps (or ccache, distcc) produces different results with multiline macros containing asm code)
      
      	PR rtl-optimization/46865
      	* rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
      	ASM_OPERANDS and ASM_INPUT if integers are different,
      	call locator_eq.
      	* jump.c (rtx_renumbered_equal_p): Likewise.
      
      	* gcc.target/i386/pr46865-1.c: New test.
      	* gcc.target/i386/pr46865-2.c: New test.
      
      From-SVN: r167686
      Jakub Jelinek committed
    • re PR tree-optimization/46864 (ICE: verify_stmts failed: statement marked for… · 6391db68
      re PR tree-optimization/46864 (ICE: verify_stmts failed: statement marked for throw, but doesn't with -fnon-call-exceptions)
      
      	PR tree-optimization/46864
      	* tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
      	when there are EDGE_EH exit edges.
      
      	* g++.dg/opt/pr46864.C: New test.
      
      From-SVN: r167685
      Jakub Jelinek committed
    • re PR fortran/46540 (libquadmath: Implement --disable-libquadmath) · 87e6d9dc
      /
      2010-12-10  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/46540
              * configure.ac: Add --disable-libquadmath and
              --disable-libquadmath-support.
              * configure: Regenerate.
      gcc/
      2010-12-10  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/46540
              * configure.ac: Handle --disable-libquadmath-support.
              * doc/install.texi: Document --disable-libquadmath and
              --disable-libquadmath-support
              * configure: Regenerate.
              * config.in: Regenerate.
      
      gcc/fortran/
      2010-12-10  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/46540
              * trans-types.c (gfc_init_kinds): Handle
              --disable-libquadmath-support.
      
      libgfortran/
      2010-12-10  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/46540
              * acinclude.m4 (LIBGFOR_CHECK_FLOAT128): Honour
              --disable-libquadmath-support.
              * configure.ac: Handle --disable-libquadmath-support.
              * configure: Regenerate.
      
      From-SVN: r167684
      Tobias Burnus committed
    • dsymutil enabled for Fortran. · 082b966f
      2010-12-10  Jack Howarth  <howarth@bromo.med.uc.edu>
      	    Iain Sandoe  <iains@gcc.gnu.org>
      
      	PR 43751/target
      
      gcc:
      	* config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.
      
      testsuite:
      
      	* lib/prune.exp: Prune dsymutil warnings.
      
      libstadc++-v3:
      
      	* testsuite/lib/prune.exp: Prune dsymutil warnings.
      
      
      Co-Authored-By: Iain Sandoe <iains@gcc.gnu.org>
      
      From-SVN: r167683
      Jack Howarth committed
    • gcc: · 9901ac6e
      	* config/rs6000/rs6000.c
      	(rs6000_darwin64_record_arg_advance_recurse): Name register increment
      	explicitly.  (rs6000_darwin64_record_arg_recurse): Make sure we split
      	long doubles when we run out of regs.   Also flag that this requires
      	stack and therefore cannot be returned by value.
      	(rs6000_darwin64_record_arg): Update comment.
      	(rs6000_function_value): Likewise.
      
      From-SVN: r167682
      Iain Sandoe committed
    • update boehm-gc for powerpc m64 darwin. · 48f854c7
      boehm-gc:
      
      	* powerpc_darwin_mach_dep.s:  Update for m64.  Add eh frames.
      	Do not build or use the picsymbol stub for Darwin >= 9.
      	* tests/test.c (reverse_test):  Modify count for ppc64-darwin.
      	* pthread_support.c (GC_get_thread_stack_base): Correct a debug
      	statement.
      
      From-SVN: r167681
      Iain Sandoe committed
    • In gcc/: 2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com> · ec3e9f82
      In gcc/:
      2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* c-parser.c (c_parser_objc_class_definition): Recognize
      	Objective-C 2.0 class extensions.
      
      In gcc/cp/:
      2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* parser.c (cp_parser_objc_superclass_or_category): Recognize
      	Objective-C 2.0 class extensions.  Added iface_p and
      	is_class_extension arguments.
      	(cp_parser_objc_class_interface): Updated call to
      	cp_parser_objc_superclass_or_category.
      	(cp_parser_objc_class_implementation): Same change.
      	
      In gcc/objc/:
      2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc-act.c (objc_in_class_extension): New.
      	(objc_start_category_interface): If -fobjc-std=objc1
      	was specified, produce an error if a class extension is used.
      	(objc_finish_interface): Reset objc_in_class_extension to false.
      	(objc_add_property_declaration): Allow a class extension to extend
      	readonly properties in the main @interface to be readwrite.
      	(start_class): Added code to deal with class extensions.  In that
      	case, return the existing interface after adding any additional
      	protocols to it and setting objc_in_class_extension to true.
      	(continue_class): If in a class extension, do not generate the
      	instance variable template.
      
      In gcc/testsuite/:
      2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* objc.dg/class-extension-1.m: New.
      	* objc.dg/class-extension-2.m: New.
      	* objc.dg/class-extension-3.m: New.
      	* objc.dg/property/at-property-26.m: New.
      	* objc.dg/property/at-property-27.m: New.
      	* objc.dg/property/at-property-28.m: New.
      	* obj-c++.dg/class-extension-1.mm: New.
      	* obj-c++.dg/class-extension-2.mm: New.
      	* obj-c++.dg/class-extension-3.mm: New.
      	* obj-c++.dg/property/at-property-26.mm: New.
      	* obj-c++.dg/property/at-property-27.mm: New.
      	* obj-c++.dg/property/at-property-28.mm: New.
      
      From-SVN: r167680
      Nicola Pero committed
    • darwin.c: Remove c-tree.h and c-lang.h · aff7f4c4
      
      gcc:
      
      	* config/darwin.c: Remove c-tree.h and c-lang.h
      	* config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
      
      From-SVN: r167679
      Iain Sandoe committed
    • re PR target/46881 (arm_preferred_rename_class uses keyword class as parameter name) · 6d3fbe2f
      	PR target/46881
      	* doc/tm.texi: Regenerate.
      	* target.def: Fix "preferred" spelling.  Refer to rclass by its
      	exact name.
      	* config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
      	to rclass.
      
      From-SVN: r167678
      Joern Rennecke committed
    • pdp11-protos.h (output_move_double, [...]): Delete. · 30442c59
      * config/pdp11/pdp11-protos.h (output_move_double,
      output_move_quad): Delete.
      (output_move_multiple, pdp11_expand_operands): New functions.
      (pdp11_action, pdp11_partorder): New enums.
      * config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
      output_move_multiple.
      (adddi3, subdi3, negdi2): New patterns.
      (addsi3, subsi3, negsi2): Use pdp11_expand_operands.
      (abshi2): Delete.
      (neghi2, negqi2): Use PDPint iterator.
      * config/pdp11/pdp11.c (find_addr_reg, output_move_double,
      output_move_quad): Delete. 
      (pdp11_expand_operands, output_move_multiple): New functions.
      
      From-SVN: r167676
      Paul Koning committed
    • linux.h (WCHAR_TYPE, [...]): Define. · a23980bd
      	* config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
      	* config.gcc (vax-*-linux*): Don't use svr4.h.
      
      From-SVN: r167675
      Joseph Myers committed
    • Daily bump. · 38485de0
      From-SVN: r167674
      GCC Administrator committed
  3. 09 Dec, 2010 12 commits