1. 10 Dec, 2012 9 commits
    • asan_test.cc: Sync from upstream. · 8bdfe1fa
      	* g++.dg/asan/asan_test.cc: Sync from upstream.
      	* g++.dg/asan/asan_test_utils.h: Likewise.
      
      From-SVN: r194356
      Jakub Jelinek committed
    • asan.c (asan_init_shadow_ptr_types): Move earlier in the file. · 94fce891
      	* asan.c (asan_init_shadow_ptr_types): Move earlier in the file.
      	Call initialize_sanitizer_builtins at the end.
      	(asan_pp_string): Use TREE_TYPE (shadow_ptr_types[0])
      	as character type instead of char_type_node.
      	(asan_emit_stack_protection): Call asan_init_shadow_ptr_types
      	if shadow_ptr_types isn't initialized.
      	(asan_protect_global): Return true for STRING_CSTs except those
      	created by asan_pp_string.
      	(count_string_csts, add_string_csts): New functions.
      	(struct asan_add_string_csts_data): New type.
      	(asan_finish_file): Clear flag_asan at the beginning, restore at the
      	end.  Traverse constant_pool_htab () to look for protected
      	STRING_CSTs.  Don't call initialize_sanitizer_builtins,
      	instead call asan_init_shadow_ptr_types if shadow_ptr_types isn't
      	initialized yet.
      	(asan_instrument): Don't call initialize_sanitizer_builtins.
      	* varasm.c (output_constant_def_contents): If STRING_CST should be
      	asan protected, align it sufficiently and emit padding after it.
      	(categorize_decl_for_section): If flag_asan, don't put STRING_CSTs
      	that should be asan protected into mergeable sections.  For
      	-fmerge-all-constants, ignore it for -fmudflap or if decl is
      	asan protected.
      
      From-SVN: r194355
      Jakub Jelinek committed
    • neon.ml (opcode): Add Vrintn, Vrinta, Vrintp, Vrintm, Vrintz to type. · 8d28afb4
      gcc/ChangeLog
      
      2012-12-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
      
      	* config/arm/neon.ml (opcode): Add Vrintn, Vrinta, Vrintp, Vrintm,
      	Vrintz to type.
      	(type features): Add Requires_arch type constructor.
      	(ops): Define Vrintn, Vrinta, Vrintp, Vrintm, Vrintz features.
      	* config/arm/neon-docgen.ml (intrinsic_groups): Define Vrintn,
      	Vrinta, Vrintp, Vrintm, Vrintz, Vrintx.
      	* config/arm/neon-testgen.ml (effective_target): Define check for 
      	Requires_arch 8.
      	* config/arm/neon-gen.ml 
      	(print_feature_test_start): Handle Requires_arch.
      	(print_feature_test_end): Likewise.
      	Add 2012 to Copyright notice.
      	* doc/arm-neon-intrinsics.texi: Regenerate.
      	* config/arm/arm_neon.h: Regenerate.
      
      gcc/testsuite/ChangeLog
      
      2012-12-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
      
      	* gcc.target/arm/neon/vrndaf32.c: New test.
      	* gcc.target/arm/neon/vrndqaf32.c: Likewise.
      	* gcc.target/arm/neon/vrndf32.c: Likewise.
      	* gcc.target/arm/neon/vrndqf32.c: Likewise.
      	* gcc.target/arm/neon/vrndmf32.c: Likewise.
      	* gcc.target/arm/neon/vrndqmf32.c: Likewise.
      	* gcc.target/arm/neon/vrndnf32.c: Likewise.
      	* gcc.target/arm/neon/vrndqnf32.c: Likewise.
      	* gcc.target/arm/neon/vrndpf32.c: Likewise.
      	* gcc.target/arm/neon/vrndqpf32.c: Likewise.
      
      From-SVN: r194353
      Kyrylo Tkachov committed
    • * stmt.c (expand_sjlj_dispatch_table): Fix off by one. · 0da911e9
      From-SVN: r194351
      Kai Tietz committed
    • re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3… · 58ccdcc8
      re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
      
      	PR target/53912
      	* stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t.
      	(expand_case): Likewise.
      
      From-SVN: r194350
      Kai Tietz committed
    • re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3… · 7e48e275
      re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
      
      	PR target/53912
      	* print-tree.c (print_node): Cast from pointer via uintptr_t.
      
      From-SVN: r194348
      Kai Tietz committed
    • Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER. · d392c399
      2012-12-10  Matthias Klose  <doko@ubuntu.com>
      
              * src/Makefile.am (libstdc++-symbols.ver): Use CONFIG_HEADER.
              * src/Makefile.in: Regenerate.
      
      From-SVN: r194346
      Matthias Klose committed
    • asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs accesses as reads/writes to their... · 1fe04fdc
      	* asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs
      	accesses as reads/writes to their DECL_BIT_FIELD_REPRESENTATIVE.
      
      From-SVN: r194344
      Jakub Jelinek committed
    • Daily bump. · cf8d35fa
      From-SVN: r194342
      GCC Administrator committed
  2. 09 Dec, 2012 10 commits
  3. 08 Dec, 2012 10 commits
  4. 07 Dec, 2012 11 commits
    • tree.c (build_aggr_init_expr): Remove tsubst_flags_t parameter. · 094484e7
      2012-12-07  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* tree.c (build_aggr_init_expr): Remove tsubst_flags_t parameter.
      	(build_cplus_new): Adjust.
      	* cp-tree.h: Adjust declaration.
      	* init.c (build_value_init): Adjust.
      
      From-SVN: r194312
      Paolo Carlini committed
    • toplev.c (process_options): Do not warn when -ffunction-sections and -fprofile are used together. · 6757fd34
      2012-12-07  Sriraman Tallan  <tmsriram@google.com>
      
      	* toplev.c (process_options): Do not warn when -ffunction-sections
      	and -fprofile are used together.
      
      From-SVN: r194311
      Sriraman Tallam committed
    • * ree.c (struct ext_cand): Remove GTY markers. · 8a1239ac
      From-SVN: r194310
      Steven Bosscher committed
    • discr38.adb: Don't use ^M line endings. · 9b1baeef
      2012-12-07  Mike Stump  <mikestump@comcast.net>
      
      	    * gnat.dg/discr38.adb: Don't use ^M line endings.
      	    gnat.dg/loop_optimization13.adb: Likewise.
      	    gnat.dg/loop_optimization13.ads: Likewise.
      	    gnat.dg/discr36_pkg.adb: Likewise.
      	    gnat.dg/discr36_pkg.ads: Likewise.
      	    gnat.dg/loop_optimization11_pkg.ads: Likewise.
      	    gnat.dg/discr36.ads: Likewise.
      	    gnat.dg/loop_optimization11.adb: Likewise.
      
      From-SVN: r194309
      Mike Stump committed
    • re PR rtl-optimization/55141 (wrong code with -fno-split-wide-types) · 9011b0f6
      2012-12-07  Vladimir Makarov  <vmakarov@redhat.com>
      
      	testsuite/gcc.target/i386/pr55141.c
      	* lra-constraints.c (lra_constraints): Use biggest mode for
      	df_set_regs_ever_live.
      
      2012-12-07  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR rtl-optimization/55141
      	* gcc.target/i386/pr55141.c: New.
      
      From-SVN: r194308
      Vladimir Makarov committed
    • PR c++/54401 - Confusing diagnostics about type-alias at class scope · 62defc56
      Consider this invalid example given in the PR, where T is not defined:
      
           1	template<typename>
           2	struct X {
           3	    using type = T;
           4	};
      
      g++ yields the confusing diagnostics:
      
      test.cc:3:10: error: expected nested-name-specifier before 'type'
          using type = T;
                ^
      test.cc:3:10: error: using-declaration for non-member at class scope
      test.cc:3:15: error: expected ';' before '=' token
          using type = T;
                     ^
      test.cc:3:15: error: expected unqualified-id before '=' token
      
      I think this is because in cp_parser_member_declaration we tentatively
      parse an alias declaration; we then have a somewhat meaningful
      diagnostic which alas is not emitted because we are parsing
      tentatively.  As the parsing didn't succeed (because the input is
      invalid) we try to parse a using declaration, which fails as well; but
      then the diagnostic emitted is the one for the failed attempt at
      parsing a using declaration, not an alias declaration.  Oops.
      
      The idea of this patch is to commit the tentative parse when we see
      the '=' token in the alias-declaration.  That way any error encounter
      after that token is reported to the user.
      
      We are now getting the following output:
      
          test.cc:3:18: erreur: expected type-specifier before ‘T’
      	 using type = T;
      		      ^
          test.cc:3:18: erreur: ‘T’ does not name a type
      
      I don't really like the "before 'T'" there, but I think we maybe could
      revisit the format of what cp_parser_error emits in general, now that
      we have caret diagnostics;  We could maybe do away with the "before T"
      altogether?
      
      In the mean time, it seems to me that this patch brings an improvement
      over what we already have in trunk, and the issue above could be
      addressed separately.
      
      Tested on x86_64-unknown-linux-gnu against trunk.
      
      gcc/cp/
      
      	* parser.c (cp_parser_alias_declaration): Commit to tentative
      	parse when see the '=' token.  Get out if the type-id is invalid.
      	Update function comment.
      	(cp_parser_member_declaration): Don't try to parse a using
      	declaration if we know that we expected an alias declaration; that
      	is, if we see the '=' token after the identifier.
      
      gcc/testsuite/
      
      	* g++.dg/cpp0x/alias-decl-28.C: New test.
      	* g++.dg/cpp0x/alias-decl-16.C: Update.
      
      From-SVN: r194306
      Dodji Seketeli committed
    • tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND parameter. · 0588ac84
      
       	* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND
       	parameter.
       	(try_unroll_loop_completely) Update.
      
      From-SVN: r194305
      Jan Hubicka committed
    • re PR fortran/55395 (libgfortran bootstrap failure on powerpc-linux-gnu and arm-linux-gnueabi) · 0bd0d3bc
      	PR fortran/55395
      	* varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
      	for -g for any kind of debug info.
      
      From-SVN: r194304
      Jakub Jelinek committed
    • re PR bootstrap/54926 (Bootstrap comparison failure for various files in libbacktrace) · a58dfde0
      	PR bootstrap/54926
      	* Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
      	* Makefile.in: Regenerated.
      
      From-SVN: r194303
      Jakub Jelinek committed
    • re PR tree-optimization/54886 (FAIL: gcc.dg/graphite/pr(42521|42771).c (internal… · 2b91f098
      re PR tree-optimization/54886 (FAIL: gcc.dg/graphite/pr(42521|42771).c (internal compiler error) due to revision 192219)
      
      2012-12-07  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/54886
      	* graphite-sese-to-poly.c (build_loop_iteration_domains): Properly
      	free all memory.
      
      From-SVN: r194302
      Richard Biener committed
    • re PR middle-end/55078 (FAIL: g++.dg/torture/pr46154.C) · d250540a
      2012-12-07  Martin Jambor  <mjambor@suse.cz>
      
      	PR middle-end/55078
      	* ipa-inline-transform.c (inline_call): Turn #if 0 to #ifdef
      	ENABLE_CHECKING.
      	* ipa-prop.c (try_make_edge_direct_simple_call): Use
      	ipa_value_from_jfunc.
      	(try_make_edge_direct_virtual_call): Likewise.
      	(update_indirect_edges_after_inlining): Lookup new_root_info and pass
      	it to the functions above.
      
      From-SVN: r194301
      Martin Jambor committed