1. 25 May, 2011 21 commits
    • thread: Use noexcept throughout per the FDIS. · 7f0d79d5
      2011-05-25  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/std/thread: Use noexcept throughout per the FDIS.
      	* include/std/mutex: Likewise.
      
      From-SVN: r174202
      Paolo Carlini committed
    • re PR c++/48292 ([C++0x] "sorry, unimplemented: use of 'type_pack_expansion' in template") · bc7f13bf
      	PR c++/48292
      	* pt.c (tsubst_decl) [PARM_DECL]: Handle partial instantiation of
      	function parameter pack.
      	(tsubst_pack_expansion): Likewise.
      
      From-SVN: r174201
      Jason Merrill committed
    • cp-objcp-common.c (cp_common_init_ts): TYPE_ARGUMENT_PACK has TS_COMMON. · 0dfef520
      	* cp-objcp-common.c (cp_common_init_ts): TYPE_ARGUMENT_PACK has
      	TS_COMMON.
      
      From-SVN: r174200
      Jason Merrill committed
    • Remove spurious ChangeLog entry · 24db9c23
      From-SVN: r174198
      William Schmidt committed
    • Implement x86 pause intrinsic. · 74838de3
      gcc/
      
      2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
      	(bdesc_special_args): Add pause intrinsic.
      
      	* config/i386/i386.md (UNSPEC_PAUSE): New.
      	(pause): Likewise.
      	(*pause): Likewise.
      	* config/i386/ia32intrin.h (__pause): Likewise.
      
      	* doc/extend.texi (X86 Built-in Functions): Add documentation for
      	pause intrinsic.
      
      gcc/testsuite/
      
      2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
      
      	 * gcc.target/i386/pause-1.c: New.
      
      From-SVN: r174197
      H.J. Lu committed
    • re PR tree-optimization/46728 (GCC does not generate fmadd for pow (x, 0.75)+y on powerpc) · d24ad7d6
      2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
      
      	PR tree-optimization/46728
      	* tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
      	(execute_cse_sincos): Add switch case for BUILT_IN_POW.
      
      From-SVN: r174196
      Bill Schmidt committed
    • move TS_EXP to be a substructure of TS_TYPED · d9f8303f
      move TS_EXP to be a substructure of TS_TYPED
      gcc/
      	* tree.h (struct tree_exp): Inherit from struct tree_typed.
      	* tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
      	instead of TS_COMMON.
      
      gcc/lto/
      	* lto.c (lto_ft_typed): New function.
      	(lto_ft_common): Call it.
      	(lto_ft_constructor): Likewise.
      	(lto_ft_expr): Likewise.
      	(lto_fixup_prevailing_decls): Check for TS_COMMON before accessing
      	TREE_CHAIN.
      
      From-SVN: r174192
      Nathan Froyd committed
    • libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if LIBGCC2_GNU_PREFIX is defined. · cdbf4541
      	gcc/
      	* libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
      	LIBGCC2_GNU_PREFIX is defined.
      	(__N): New macro.
      	(__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
      	__mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
      	__divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
      	__clz_tab): Define using __N.
      	(__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
      	COMPAT_SIMODE_TRAPPING_ARITHMETIC.
      	* target.def (libfunc_gnu_prefix): New hook.
      	* doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
      	(TARGET_LIBFUNC_GNU_PREFIX): Add hook.
      	* doc/tm.texi: Regenerate.
      	* system.h (LIBGCC2_GNU_PREFIX): Poison.
      	* optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
      	account.
      	(gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
      	(init_optabs): Likewise for the bswap libfuncs.
      	* tree.c (build_common_builtin_nodes): Likewise for complex multiply
      	and divide.
      	* config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
      	* config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
      	* libgcc-std.ver: Remove.
      	* Makefile.in (srcdirify): Handle $$(libgcc_objdir).
      	* config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
      	libgcc-std.ver.
      	* config/i386/t-linux (SHLIB_MAPFILES): Likewise.
      	* config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
      	* config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
      	* config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
      	* config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
      	* config/i386/t-linux (SHLIB_MAPFILES): Likewise.
      	* config/i386/t-linux (SHLIB_MAPFILES): Likewise.
      	* config/fixed-bit.h (FIXED_OP): Define differently depending on
      	LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
      	(FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
      
      	libgcc/
      	* libgcc-std.ver.in: New file.
      	* Makefile.in (LIBGCC_VER_GNU_PREFIX, LIBGCC_VER_SYMBOLS_PREFIX): New
      	variables.
      	(libgcc-std.ver): New rule.
      	* config/t-gnu-prefix: New file.
      
      From-SVN: r174187
      Bernd Schmidt committed
    • lto-streamer-out.c (output_record_start): Use lto_output_enum · f242c0a5
      
      	* lto-streamer-out.c (output_record_start): Use lto_output_enum
      	(lto_output_tree): Use output_record_start.
      	* lto-streamer-in.c (input_record_start): Use lto_input_enum
      	(lto_get_pickled_tree): Use input_record_start.
      	* lto-section-in.c (lto_section_overrun): Turn into fatal error.
      	(lto_value_range_error): New function.
      	* lto-streamer.h (lto_value_range_error): Declare.
      	(lto_output_int_in_range, lto_input_int_in_range): New functions.
      	(lto_output_enum, lto_input_enum): New macros.
      
      From-SVN: r174186
      Jan Hubicka committed
    • adaint.c (__gnat_to_canonical_file_list_next): Use array initialization instead… · 52d0a7ac
      adaint.c (__gnat_to_canonical_file_list_next): Use array initialization instead of const/none-const pointer assignment.
      
      2011-05-25  Kai Tietz  <ktietz@redhat.com>
      
              * adaint.c (__gnat_to_canonical_file_list_next): Use array
              initialization instead of const/none-const pointer assignment.
      
      From-SVN: r174185
      Kai Tietz committed
    • common.opt (flag_stack_usage_info): New variable. · a11e0df4
      	* common.opt (flag_stack_usage_info): New variable.
      	(-Wstack-usage): New option.
      	* doc/invoke.texi (Warning options): Document -Wstack-usage.
      	* opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
      	<OPT_fstack_usage>: Likewise.
      	* toplev.c (output_stack_usage): Handle -Wstack-usage.
      	* calls.c (expand_call): Test flag_stack_usage_info variable instead
      	of flag_stack_usage.
      	(emit_library_call_value_1): Likewise.
      	* explow.c (allocate_dynamic_stack_space): Likewise.
      	* function.c (instantiate_virtual_regs ): Likewise.
      	(prepare_function_start): Likewise.
      	(rest_of_handle_thread_prologue_and_epilogue): Likewise.
      	* config/alpha/alpha.c (alpha_expand_prologue): Likewise.
      	* config/arm/arm.c (arm_expand_prologue): Likewise.
      	(thumb1_expand_prologue): Likewise.
      	* config/avr/avr.c (expand_prologue): Likewise.
      	* config/i386/i386.c (ix86_expand_prologue): Likewise.
      	* config/ia64/ia64.c (ia64_expand_prologue): Likewise.
      	* config/m68k/m68k.c (m68k_expand_prologue): Likewise.
      	* config/mips/mips.c (mips_expand_prologue): Likewise.
      	* config/pa/pa.c (hppa_expand_prologue): Likewise.
      	* config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
      	* config/s390/s390.c (s390_emit_prologue): Likewise.
      	* config/sh/sh.c (sh_expand_prologue): Likewise.
      	* config/sparc/sparc.c (sparc_expand_prologue): Likewise.
      	* config/spu/spu.c (spu_expand_prologue): Likewise.
      
      From-SVN: r174182
      Eric Botcazou committed
    • gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs. · e7cfe241
      2011-05-25  Richard Guenther  <rguenther@suse.de>
      
      	* gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
      	(gimple_canonical_types_compatible_p): Likewise.
      
      From-SVN: r174181
      Richard Guenther committed
    • re PR middle-end/49062 (Many C++ tests ICE on Tru64 UNIX: non-DECL_ONE_ONLY node… · c5235f4c
      re PR middle-end/49062 (Many C++ tests ICE on Tru64 UNIX: non-DECL_ONE_ONLY node in a same_comdat_group list)
      
      2011-05-25  Jan Hubicka  <jh@suse.cz>
      
      	PR middle-end/49062
      	* ipa.c (function_and_variable_visibility): Only add to same
      	comdat group list if DECL_ONE_ONLY.
      
      From-SVN: r174180
      Jan Hubicka committed
    • re PR rtl-optimization/49014 (ICE: in reset_sched_cycles_in_current_ebb, at… · 8242a0f6
      re PR rtl-optimization/49014 (ICE: in reset_sched_cycles_in_current_ebb, at sel-sched.c:7132 with even more insane set of flags)
      
              PR rtl-optimization/49014
              * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
      
      From-SVN: r174172
      Andrey Belevantsev committed
    • re PR c/49128 (-march=native generates unsupported instructions) · 642a011d
      	PR target/49128
      	* config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
      
      From-SVN: r174171
      Jakub Jelinek committed
    • cp-objcp-common.c (cp_common_init_ts): Mark CTOR_INITIALIZER as TS_TYPED. · 4ac74df2
      	* cp-objcp-common.c (cp_common_init_ts): Mark CTOR_INITIALIZER
      	as TS_TYPED.
      
      From-SVN: r174170
      Jakub Jelinek committed
    • re PR c++/49136 ([C++0x][constexpr] Incorrect constexpr c'tor evaluation with bitfields) · 98933689
      	PR c++/49136
      	* semantics.c (cxx_eval_bit_field_ref): Handle the
      	case when BIT_FIELD_REF doesn't cover only a single field.
      
      	* g++.dg/cpp0x/constexpr-bitfield2.C: New test.
      	* g++.dg/cpp0x/constexpr-bitfield3.C: New test.
      
      From-SVN: r174168
      Jakub Jelinek committed
    • re PR go/48502 (os_test.TestStartProcess FAILs on Solaris 2) · 349ea8e8
      	PR go/48502
      libgo/os: Fix test to run on Solaris.
      
      Patch brought over from upstream library.
      
      From-SVN: r174167
      Ian Lance Taylor committed
    • re PR rtl-optimization/48757 (internal compiler error: in compensate_edge, at reg-stack.c:2788) · 30a435d8
      2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR rtl-optimization/48757
      	* ira-build.c (loop_with_eh_edge_p): Rename to
      	loop_with_complex_edge_p, check edges on complexity, make function
      	conditional.
      	(mark_loops_for_removal): Make call of loop_with_complex_edge_p
      	conditional.
      
      2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
      
      	PR rtl-optimization/48757
      	* gfortran.dg/pr48757.f:  New test case.
      
      From-SVN: r174165
      Vladimir Makarov committed
    • Daily bump. · 82625907
      From-SVN: r174157
      GCC Administrator committed
    • dr2020.cc: Fix typo. · fa6642c9
      2011-05-24  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* testsuite/20_util/duration/arithmetic/dr2020.cc: Fix typo.
      
      From-SVN: r174152
      Paolo Carlini committed
  2. 24 May, 2011 19 commits