1. 13 Jan, 2011 17 commits
  2. 12 Jan, 2011 23 commits
    • cp-tree.h (begin_for_scope): New prototype. · 3f43ac31
      	* cp-tree.h (begin_for_scope): New prototype.
      	(begin_for_stmt): Update prototype.
      	(begin_range_for_stmt): Update prototype.
      	* init.c (build_vec_init): Update call to begin_for_stmt.
      	* parser.c (cp_parser_for): New.
      	(cp_parser_c_for): Add three new parameters.
      	(cp_parser_range_for): Likewise. Most parsing code removed.
      	(cp_parser_iteration_statement): Call cp_parser_for instead of
      	cp_parser_c_for and cp_parser_range_for.
      	(cp_parser_for_init_statement): Add new parameter and return type.
      	(cp_parser_block_declaration): Update call to
      	cp_parser_simple_declaration.
      	(cp_parser_simple_declaration): Add new parameter.
      	Update call to cp_parser_init_declarator.
      	(cp_parser_init_declarator): Add new parameter.
      	* pt.c (tsubst_expr): Update call to begin_for_stmt.
      	* semantics.c (begin_for_scope): New.
      	(begin_for_stmt): Add two new parameters.
      	(begin_range_for_stmt): Likewise.
      
      From-SVN: r168731
      Rodrigo Rivas Costa committed
    • Use correct nm and nm options. · c7aca2ff
      From-SVN: r168730
      Ian Lance Taylor committed
    • mn10300: Auto-clobber the flags in asms. · a49b692a
      From-SVN: r168725
      Richard Henderson committed
    • mn10300: Add delegitimize_address hook. · 126b1483
      This suppresses warnings generated by the dwarf2 output
      routines about uninterpretable addresses.
      
      From-SVN: r168724
      Richard Henderson committed
    • mn10300: Add clzsi2. · f3d9d2e0
      From-SVN: r168723
      Richard Henderson committed
    • mn10300: Emit clr. · d84760c9
      From-SVN: r168722
      Richard Henderson committed
    • mn10300: Force lower-subreg pass to run. · ec815d65
      There are a number of tests that fail -- generally ones involving
      generic vectorization -- at -O0 because we run out of registers.
      The lower-subreg pass cleans things up sufficiently to allow these
      tests to succeed.
      
      From-SVN: r168721
      Richard Henderson committed
    • mn10300: Clean up trampoline handling · d6a3e264
      The old code was failing in the testsuite.  I didn't try to
      debug exactly why, since the existing code was needlessly
      complex.
      
      From-SVN: r168720
      Richard Henderson committed
    • s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove. · 0f8ab434
      	* config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
      	* config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
      	* config/s390/s390.c (s390_output_addr_const_extra): Make static.
      	(TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
      
      From-SVN: r168719
      Anatoly Sokolov committed
    • re PR debug/47209 (ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627)… · d8a24b65
      re PR debug/47209 (ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627) with -f{no-,}emit-struct-debug-{baseonly,reduced} -g)
      
      2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
      
      	PR debug/47209
      	* dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
      	of type.
      
      2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
      
      	PR debug/47209
      	* g++.dg/debug/pr47209.C: New.
      
      From-SVN: r168718
      Kai Tietz committed
    • re PR driver/47244 (plugin linker is used unconditionally) · 56e22cab
      	PR driver/47244
      	* gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
      	(PLUGIN_COND_CLOSE): New macro.
      	(LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
      
      From-SVN: r168717
      Jan Hubicka committed
    • re PR lto/47259 (LTO and global register variable) · d559a7f8
      2011-01-12  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/47259
      	* gcc.dg/lto/pr47259_0.c: New testcase.
      	* gcc.dg/lto/pr47259_1.c: Likewise.
      
      From-SVN: r168715
      Richard Guenther committed
    • re PR lto/47259 (LTO and global register variable) · 4b18b3c2
      2011-01-12  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/47259
      	* lto-streamer-out.c (output_gimple_stmt): Do not wrap
      	register variables in a MEM_REF.
      
      From-SVN: r168713
      Richard Guenther committed
    • config.gcc (arm*-*-linux*, [...]): Use gnu-user.h before linux.h. · 8e38461c
      	* config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
      	crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
      	hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
      	i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
      	i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
      	x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
      	ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
      	m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
      	mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
      	s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
      	sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
      	am33_2.0-*-linux*): Use gnu-user.h before linux.h.
      	* config/gnu-user.h: New.  Copied from linux.h.
      	(LINUX_TARGET_STARTFILE_SPEC): Rename to
      	GNU_USER_TARGET_STARTFILE_SPEC.
      	(LINUX_TARGET_ENDFILE_SPEC): Rename to
      	GNU_USER_TARGET_ENDFILE_SPEC.
      	(LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
      	(LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
      	(OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
      	LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
      	CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
      	UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
      	BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
      	BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
      	LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
      	TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
      	* config/arm/linux-eabi.h (CC1_SPEC): Use
      	GNU_USER_TARGET_CC1_SPEC.
      	(LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
      	(STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
      	(ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
      	* config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
      	LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
      	LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
      	CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
      	LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
      
      From-SVN: r168711
      Joseph Myers committed
    • re PR c/46946 (contradiction in docs for -Ofast and -ffast-math) · a570fc16
      2011-01-12  Richard Guenther  <rguenther@suse.de>
      
      	PR other/46946
      	* doc/invoke.texi (ffast-math): Document it is turned on
      	with -Ofast.
      
      From-SVN: r168709
      Richard Guenther committed
    • re PR lto/47264 (Many tests fail with -flto due unaligned load in lto-plugin.c) · 47782a9d
      2011-01-12  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/47264
      	* lto-plugin.c (parse_table_entry): Use memcpy to access
      	unaligned fields.
      
      From-SVN: r168708
      Richard Guenther committed
    • dwarf2.h: Update value for DW_AT_hi_user. · 753cc685
      
      include:
      
      	* dwarf2.h: Update value for DW_AT_hi_user.
      
      From-SVN: r168707
      Iain Sandoe committed
    • Fix long line · ca1e00b3
      From-SVN: r168706
      Eric Botcazou committed
    • Object1.h: Add copyright header, update comments. · 2a6793fc
      
      gcc/testsuite:
      
      	* objc-obj-c++-shared/Object1.h: Add copyright header, update
      	comments.  Add a TEST_SUITE_ADDITIONS category for GNU runtime.
      	Amend NeXT version to declare a TEST_SUITE_ADDITIONS carrying the
      	methods missing from the OBJC2 Object.
      	* objc-obj-c++-shared/Object1-implementation.h: Add copyright header.
      	Amend implementation to use a TEST_SUITE_ADDITIONS category for both GNU
      	and NeXT runtimes.
      	* objc-obj-c++-shared/Object1.mm: Remove redundant header, update 
      	comments.
      	* objc-obj-c++-shared/Object1.m: Likewise.
      	* objc.dg/encode-3.m: Update header use.  Amend to be API2 compatible.
      	* objc.dg/proto-qual-1.m: Likewise.
      	* obj-c++.dg/proto-lossage-3.mm: Likewise.
      	* obj-c++.dg/proto-qual-1.mm: Likewise.
      
      From-SVN: r168705
      Iain Sandoe committed
    • re PR testsuite/33033 (FAIL: gcc.dg/20061124-1.c: undefined reference to `__sync_add_and_fetch_2') · d72ae3bf
      	PR testsuite/33033
      	* gcc.dg/20061124-1.c: Pass -mcpu=v9 on the SPARC.
      
      From-SVN: r168701
      Eric Botcazou committed
    • re PR tree-optimization/47233 (IPA reference tends to explode in memory use with… · b0223c3e
      re PR tree-optimization/47233 (IPA reference tends to explode in memory use with -fprofile-generate)
      
      	PR tree-optimization/47233
      	* opts.c (common_handle_option): Disable ipa-reference with profile feedback.
      
      From-SVN: r168700
      Jan Hubicka committed
    • In gcc/testsuite/: 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com> · 81dc6eea
      In gcc/testsuite/:
      2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	Fixed the Objective-C++ testsuite and updated all tests.
      	* lib/obj-c++.exp (obj-c++_init): Declare and set
      	gcc_warning_prefix and gcc_error_prefix.	
      	* obj-c++.dg/attributes/categ-attribute-2.mm: Fixed usage of
      	'dg-warning', 'dg-message' and 'dg-error'.
      	* obj-c++.dg/class-extension-3.mm: Likewise.
      	* obj-c++.dg/class-protocol-1.mm: Likewise.
      	* obj-c++.dg/cxx-scope-2.mm: Likewise.
      	* obj-c++.dg/encode-7.mm: Likewise.
      	* obj-c++.dg/exceptions-3.mm: Likewise.
      	* obj-c++.dg/exceptions-5.mm: Likewise.	
      	* obj-c++.dg/method-12.mm: Likewise.
      	* obj-c++.dg/method-13.mm: Likewise.
      	* obj-c++.dg/method-15.mm: Likewise.
      	* obj-c++.dg/method-16.mm: Likewise.
      	* obj-c++.dg/method-4.mm: Likewise.
      	* obj-c++.dg/method-8.mm: Likewise.
      	* obj-c++.dg/method-conflict-1.mm: Likewise.
      	* obj-c++.dg/method-conflict-2.mm: Likewise.
      	* obj-c++.dg/method-conflict-3.mm: Likewise. Also, removed FIXME
      	and uncommented second part of the testcase now that the testsuite
      	works correctly.
      	* obj-c++.dg/method-conflict-4.mm: Likewise.  Also, removed FIXME
      	and uncommented second part of the testcase now that the testsuite
      	works correctly.
      	* obj-c++.dg/private-1.mm: Likewise.	
      	* obj-c++.dg/proto-lossage-4.mm: Likewise.
      	* obj-c++.dg/syntax-error-7.mm: Likewise.
      	* obj-c++.dg/warn5.mm: Likewise.
      	* obj-c++.dg/property/at-property-14.mm: Likewise.
      	* obj-c++.dg/property/at-property-16.mm: Likewise, and removed
      	FIXME.	
      	* obj-c++.dg/property/at-property-18.mm: Likewise.
      	* obj-c++.dg/property/at-property-20.mm: Likewise, and removed
      	FIXME.
      	* obj-c++.dg/property/at-property-21.mm: Likewise.
      	* obj-c++.dg/property/at-property-28.mm: Likewise.
      	* obj-c++.dg/property/at-property-5.mm: Likewise.
      	* obj-c++.dg/property/dynamic-2.mm: Likewise.
      	* obj-c++.dg/property/property-neg-3.mm: Likewise.
      	* obj-c++.dg/property/synthesize-11.mm: Likewise.
      	* obj-c++.dg/property/synthesize-6.mm: Likewise.
      	* obj-c++.dg/property/synthesize-8.mm: Likewise.
      	* obj-c++.dg/property/synthesize-9.mm: Likewise.
      	* obj-c++.dg/tls/diag-5.mm: Likewise.
      	* obj-c++.dg/ivar-invalid-type-1.mm: Removed FIXME and uncommented
      	dg-error, now matched correctly.
      
      From-SVN: r168699
      Nicola Pero committed