1. 03 Jun, 2014 22 commits
    • re PR c/60439 (No warning for case overflow in switch statement.) · fedfecef
      	PR c/60439
      	* doc/invoke.texi: Document -Wswitch-bool.
      	* function.c (stack_protect_epilogue): Cast controlling expression of
      	the switch to int.
      	* gengtype.c (walk_type): Generate switch expression with its
      	controlling expression cast to int.
      c/
      	* c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
      	c_start_case.
      	* c-tree.h (c_start_case): Update.
      	* c-typeck.c (c_start_case): Add new boolean parameter.  Warn if
      	switch condition has boolean value.
      cp/
      	* semantics.c (finish_switch_cond): Warn if switch condition has
      	boolean value.
      c-family/
      	* c.opt (Wswitch-bool): New option.
      testsuite/
      	* c-c++-common/pr60439.c: New test.
      	* g++.dg/eh/scope1.C (f4): Add dg-warning.
      
      From-SVN: r211194
      Marek Polacek committed
    • avr-mcus.def: Add new avr25 devices attiny441, attiny828 and attiny841. · e4f36438
      	* config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
      	and attiny841.
      	* config/avr/avr-tables.opt: Regenerate.
      	* config/avr/t-multilib: Regenerate.
      	* doc/avr-mmcu.texi: Regenerate.
      
      	* config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
      	(ata6617c, ata664251): Add new avr35 devices.
      	(ata6612c): Add new avr4 device.
      	(ata6613c, ata6614q): Add new avr5 devices.
      	* config/avr/avr-tables.opt: Regenerate.
      	* config/avr/t-multilib: Regenerate.
      	* doc/avr-mmcu.texi: Regenerate.
      
      From-SVN: r211189
      Denis Chertykov committed
    • re PR c++/60992 (ICE in tsubst_copy, at cp/pt.c:12637) · 093e62d2
      	PR c++/60992
      	* pt.c (tsubst_copy) [VAR_DECL]: Try lookup first.  Add a new
      	variable to local_specializations.
      
      From-SVN: r211188
      Jason Merrill committed
    • [PATCH AArch64 2/2] Correct signedness of builtins, remove casts from arm_neon.h · 918621d3
      	* gcc/config/aarch64/aarch64-builtins.c
      	(aarch64_types_binop_ssu_qualifiers): New static data.
      	(TYPES_BINOP_SSU): Define.
      	* gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
      	urshr_n, ushll_n): Use appropriate unsigned qualifiers.
      	* gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
      	vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
      	vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
      	vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
      	vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
      	vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
      	vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
      	suffix to builtin function name, remove cast.
      	(vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
      	vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
      	vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
      
      From-SVN: r211186
      Alan Lawrence committed
    • [PATCH AArch64 1/2] Correct signedness of builtins, remove casts from arm_neon.h · de10bcce
      	* gcc/config/aarch64/aarch64-builtins.c
      	(aarch64_types_binop_uus_qualifiers,
      	aarch64_types_shift_to_unsigned_qualifiers,
      	aarch64_types_unsigned_shiftacc_qualifiers): Define.
      	* gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
      	uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
      	sqshlu_n, uqshl_n): Update qualifiers.
      	* gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
      	vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
      	vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
      	vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
      	vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
      	vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
      	vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
      	vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
      	vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
      	vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
      	vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
      	vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
      	vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
      	vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
      	vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
      	vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
      	vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
      	vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
      	vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
      	vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
      	vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
      	vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
      	vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
      	vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
      	vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
      	vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
      	vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
      
      From-SVN: r211185
      Alan Lawrence committed
    • tree-sra.c (modify_function): Record caller nodes after rebuild. · 878d3618
      2014-06-03  Teresa Johnson  <tejohnson@google.com>
      
      	* tree-sra.c (modify_function): Record caller nodes after rebuild.
      
      From-SVN: r211180
      Teresa Johnson committed
    • re PR c++/60848 (Crash while experimenting with c++-0x initializer lists) · 010bc40a
      	PR c++/60848
      	* call.c (is_std_init_list): Check CLASSTYPE_TEMPLATE_INFO.
      
      From-SVN: r211179
      Jason Merrill committed
    • re PR c++/61020 (typeid(typeid(X)) produces 'ud2') · 616abc64
      	PR c++/61020
      	* varpool.c (ctor_for_folding): Handle uninitialized vtables.
      
      From-SVN: r211178
      Jason Merrill committed
    • Detect EXT patterns to vec_perm_const, use for EXT intrinsics. · b31e65bb
      (part 2, fix ICE at -O0)
      
      	* config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
      	location == 0.
      
      From-SVN: r211177
      Alan Lawrence committed
    • Recognize shuffle patterns for REV instructions on AArch64, rewrite intrinsics. · 923fcec3
              * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
              New pattern.
              * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
              (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
              * config/aarch64/iterators.md (REVERSE): New iterator.
              (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
              (rev_op): New int_attribute.
              * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
              vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
              vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
              vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
              vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
              vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
              vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
              Replace temporary __asm__ with __builtin_shuffle.
      
      From-SVN: r211174
      Alan Lawrence committed
    • Add support for MIPS r3 and r5. · 2b3bd040
      2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com> 
      
      	* config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
      	mips64r5.
      	* config/mips/mips-tables.opt: Regenerate.
      	* config/mips/mips.c (mips_compute_frame_info): Changed if statement
      	to use mips_isa_rev rather than ISA_MIPS32R2.
      	* config/mips/mips.h (ISA_MIPS32R3): New define.
      	(ISA_MIPS32R5): New define.
      	(ISA_MIPS64R3): New define.
      	(ISA_MIPS64R5): New define.
      	(TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3, ISA_MIPS32R5,
      	ISA_MIPS64R3 and ISA_MIPS64R5.
      	(MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
      	and mips64r5.
      	(MIPS_ISA_SYNCI_SPEC): Likewise.
      	(ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
      	(LINK_SPEC): Added mips32r3 and mips32r5.
      	* config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
      	to mips32r2; and mips64r3 and mips64r5 to mips64r2.
      	* config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
      	* config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
      	* config/mips/t-sde (MULTILIB_MATCHES): Likewise.
      	* config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
      	* doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
      
      From-SVN: r211173
      Andrew Bennett committed
    • Add support for the MIPS -mxpa command line option. · 35773f53
      2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
      
      	* doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
      	options.
      	* config/mips/mips.opt (mxpa): New option.
      	* config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the 
      	assembler.
      
      From-SVN: r211172
      Andrew Bennett committed
    • re PR ipa/61160 (wrong code with -O3 (or ICE: verify_cgraph_node failed: edge… · d3fb5cf0
      re PR ipa/61160 (wrong code with -O3 (or ICE: verify_cgraph_node failed: edge points to wrong declaration))
      
      2014-06-03  Martin Jambor  <mjambor@suse.cz>
      
      	PR ipa/61160
      	* ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
      	thunks.
      
      testsuite/
      	* g++.dg/ipa/pr61160-1.C: New test.
      
      From-SVN: r211170
      Martin Jambor committed
    • Add myself to the MAINTAINERS file. · e25d9632
      2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
      
      	* MAINTAINERS (Write After Approval): Add myself.
      
      From-SVN: r211167
      Andrew Bennett committed
    • re PR tree-optimization/61328 (valgrind finds problem in find_bswap_or_nop_1) · 3cc272c1
      2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
      	PR tree-optimization/61328
      	* tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
              initialization from find_bswap_or_nop_1.
              (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
              in source_expr2 before using the size value the function sets. Also
              make use of init_symbolic_number () in both the old place and
              find_bswap_or_nop_load () to avoid reading uninitialized memory when
              doing recursion in the GIMPLE_BINARY_RHS case.
      
      From-SVN: r211166
      Thomas Preud'homme committed
    • re PR tree-optimization/61383 (wrong code at -O2 and -O3 on x86_64-linux-gnu) · 597c6315
      2014-06-03  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/61383
      	* tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
      	stmts can't trap.
      
      	* gcc.dg/torture/pr61383-1.c: New testcase.
      
      From-SVN: r211163
      Richard Biener committed
    • gcc/ · b48e9677
      	* defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
      	(EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
      	(CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
      	(REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
      	in this file.
      	(REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
      	(CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
      	* system.h: ...here and make it unconditional.
      	* target.def (conditional_register_usage): Mention
      	define_register_constraint instead of old-style constraint macros.
      	* doc/tm.texi.in: Remove documentation for old-style constraint macros.
      	* doc/tm.texi: Regenerate.
      	* genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
      	protected by !USE_MD_CONSTRAINTS.
      	* config/frv/frv.md: Remove quote from old version of documentation.
      	* config/frv/frv.c (frv_conditional_register_usage): Likewise.
      	* config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
      	CONST_DOUBLE_OK_FOR_LETTER.
      	* config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
      
      From-SVN: r211161
      Richard Sandiford committed
    • re PR c++/61046 (ICE in lookup_field_1, at cp/search.c:384) · 99d14de6
      	PR c++/61046
      	* decl.c (reshape_init_class): Handle un-folded
      	constant-expressions.
      
      From-SVN: r211160
      Jason Merrill committed
    • re PR c++/61134 ([C++11] bogus "no matching function for call...") · cfc8dced
      	PR c++/61134
      	* pt.c (pack_deducible_p): Handle canonicalization.
      
      From-SVN: r211159
      Jason Merrill committed
    • pt.c (tsubst_function_type): Initialize arg_types. · a21e55d2
      2014-06-02  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* pt.c (tsubst_function_type): Initialize arg_types.
      
      From-SVN: r211158
      Paolo Carlini committed
    • Daily bump. · 2e91ec35
      From-SVN: r211157
      GCC Administrator committed
    • Fix formating in my last changelog entry. · 3a87ac45
      From-SVN: r211153
      Andrew Pinski committed
  2. 02 Jun, 2014 18 commits
    • * gcc.target/powerpc/vsxcopy.c (dg-options): Add -mvsx. · 6f75290f
      From-SVN: r211152
      Andreas Schwab committed
    • re PR debug/57519 (DW_TAG_imported_declaration put in wrong class (base class… · 1bae5891
      re PR debug/57519 (DW_TAG_imported_declaration put in wrong class (base class instead of derived class))
      
              PR debug/57519
              * class.c (handle_using_decl): Pass the correct scope to
              cp_emit_debug_info_for_using.
      
      From-SVN: r211151
      Siva Chandra Reddy committed
    • aarch64-linux.h (GLIBC_DYNAMIC_LINKER): /lib/ld-linux32-aarch64.so.1 is used for ILP32. · b94f5533
      2014-06-02  Andrew Pinski  <apinski@cavium.com>
          
      	* config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
      	/lib/ld-linux32-aarch64.so.1 is used for ILP32.
      	(LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
      	file whose name depends on -mabi= and -mbig-endian.
      	* config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
      	Handle LP64 better and handle ilp32 too.
      	(MULTILIB_OPTIONS): Delete.
      	(MULTILIB_DIRNAMES): Delete.
      
      From-SVN: r211148
      Andrew Pinski committed
    • re PR c++/59483 (A nested lambda fails to find a protected name with qualified name) · adb50dfb
      	PR c++/59483
      	PR c++/61148
      	* search.c (accessible_p): Use current_nonlambda_class_type.
      	* semantics.c (check_accessibility_of_qualified_id): Likewise.
      
      From-SVN: r211147
      Ville Voutilainen committed
    • expr.h: Remove prototypes of functions defined in builtins.c. · 9b2b7279
      
      	* expr.h: Remove prototypes of functions defined in builtins.c.
      	* tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
      	Remove prototypes of functions defined in builtins.c.
      	* builtins.h: Update prototype list to include all exported functions.
      	* builtins.c: (default_libc_has_function, gnu_libc_has_function,
      	no_c99_libc_has_function): Move to targhooks.c
      	(build_string_literal, build_call_expr_loc_array,
      	build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
      	to tree.c.
      	(expand_builtin_object_size, fold_builtin_object_size): Make static.
      	* targhooks.c (default_libc_has_function, gnu_libc_has_function,
      	no_c99_libc_has_function): Relocate from builtins.c.
      	* tree.c: Include builtins.h.
      	(build_call_expr_loc_array, build_call_expr_loc_vec,
      	build_call_expr_loc, build_call_expr, build_string_literal): Relocate
      	from builtins.c.
      	* fold-const.h (fold_fma): Move prototype to builtins.h.
      	* realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
      
      	* fortran/trans.c (trans_runtime_error_vararg): Call
      	fold_build_call_array_loc instead of fold_builtin_call_array.
      
      	* asan.c: Include builtins.h.
      	* cfgexpand.c: Likewise.
      	* convert.c: Likewise.
      	* emit-rtl.c: Likewise.
      	* except.c: Likewise.
      	* expr.c: Likewise.
      	* fold-const.c: Likewise.
      	* gimple-fold.c: Likewise.
      	* gimple-ssa-strength-reduction.c: Likewise.
      	* gimplify.c: Likewise.
      	* ipa-inline.c: Likewise.
      	* ipa-prop.c: Likewise.
      	* lto-streamer-out.c: Likewise.
      	* stmt.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-sra.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-forwprop.c: Likewise.
      	* tree-ssa-loop-ivcanon.c: Likewise.
      	* tree-ssa-loop-ivopts.c: Likewise.
      	* tree-ssa-math-opts.c: Likewise.
      	* tree-ssa-reassoc.c: Likewise.
      	* tree-ssa-threadedge.c: Likewise.
      	* tree-streamer-in.c: Likewise.
      	* tree-vect-data-refs.c: Likewise.
      	* tree-vect-patterns.c: Likewise.
      	* tree-vect-stmts.c: Likewise.
      
      	c
      	* c-decl.c: Include builtins.h.
      	* c-parser.c: Likewise.
      
      	cp
      	* decl.c: Include builtins.h.
      	* semantics.c: Likewise.
      
      	go
      	* go-gcc.cc: Include builtins.h.
      
      	lto
      	* lto-symtab.c: Include builtins.h.
      
      	config
      	* aarch64/aarch64.c: Include builtins.h.
      	* alpha/alpha.c: Likewise.
      	* arc/arc.c: Likewise.
      	* arm/arm.c: Likewise.
      	* avr/avr.c: Likewise.
      	* bfin/bfin.c: Likewise.
      	* c6x/c6x.c: Likewise.
      	* cr16/cr16.c: Likewise.
      	* cris/cris.c: Likewise.
      	* epiphany/epiphany.c: Likewise.
      	* fr30/fr30.c: Likewise.
      	* frv/frv.c: Likewise.
      	* h8300/h8300.c: Likewise.
      	* i386/i386.c: Likewise.
      	* i386/winnt.c: Likewise.
      	* ia64/ia64.c: Likewise.
      	* iq2000/iq2000.c: Likewise.
      	* lm32/lm32.c: Likewise.
      	* m32c/m32c.c: Likewise.
      	* m32r/m32r.c: Likewise.
      	* m68k/m68k.c: Likewise.
      	* mcore/mcore.c: Likewise.
      	* mep/mep.c: Likewise.
      	* microblaze/microblaze.c: Likewise.
      	* mips/mips.c: Likewise.
      	* mmix/mmix.c: Likewise.
      	* mn10300/mn10300.c: Likewise.
      	* moxie/moxie.c: Likewise.
      	* msp430/msp430.c: Likewise.
      	* nds32/nds32.c: Likewise.
      	* pa/pa.c: Likewise.
      	* pdp11/pdp11.c: Likewise.
      	* picochip/picochip.c: Likewise.
      	* rl78/rl78.c: Likewise.
      	* rs6000/rs6000.c: Likewise.
      	* rx/rx.c: Likewise.
      	* s390/s390.c: Likewise.
      	* score/score.c: Likewise.
      	* sh/sh.c: Likewise.
      	* sparc/sparc.c: Likewise.
      	* spu/spu.c: Likewise.
      	* stormy16/stormy16.c: Likewise.
      	* tilegx/tilegx.c: Likewise.
      	* tilepro/tilepro.c: Likewise.
      	* v850/v850.c: Likewise.
      	* vax/vax.c: Likewise.
      	* xtensa/xtensa.c: Likewise.
      
      From-SVN: r211145
      Andrew MacLeod committed
    • regex_compiler.h (__detail::_BracketMatcher): Reorder members to avoid wasted… · 097f0bcf
      regex_compiler.h (__detail::_BracketMatcher): Reorder members to avoid wasted space when not using a cache.
      
      	* include/bits/regex_compiler.h (__detail::_BracketMatcher): Reorder
      	members to avoid wasted space when not using a cache.
      	(__detail::_BracketMatcher::_M_ready()): Sort and deduplicate set.
      	* include/bits/regex_compiler.tcc
      	(__detail::_BracketMatcher::_M_apply(_CharT, false_type)): Use binary
      	search on set.
      	* include/bits/regex_executor.h (__detail::_Executor::_Match_mode):
      	New enumeration type to indicate match mode.
      	(__detail::_Executor::_State_info): New type holding members only
      	needed in BFS-mode. Replace unique_ptr<vector<bool>> with
      	unique_ptr<bool[]>.
      	(__detail::_Executor::_M_rep_once_more, __detail::_Executor::_M_dfs):
      	Replace template parameter with run-time function parameter.
      	(__detail::_Executor::_M_main): Likewise. Dispatch to ...
      	(__detail::_Executor::_M_main_dispatch): New overloaded functions to
      	implement DFS and BFS mode.
      	* include/bits/regex_executor.tcc (__detail::_Executor::_M_main):
      	Split implementation into ...
      	(__detail::_Executor::_M_main_dispatch): New overloaded functions.
      	(__detail::_Executor::_M_lookahead): Create nested executor on stack.
      	(__detail::_Executor::_M_rep_once_more): Pass match mode as function
      	argument instead of template argument.
      	(__detail::_Executor::_M_dfs): Likewise.
      	* include/bits/regex_scanner.tcc: Fix typos in comments.
      	* testsuite/performance/28_regex/range.cc: New.
      
      From-SVN: r211143
      Jonathan Wakely committed
    • re PR rtl-optimization/61094 (-O3 insn Internal compiler error in… · 0d732cca
      re PR rtl-optimization/61094 (-O3 insn Internal compiler error in copyprop_hardreg_forward_1, at regcprop.c:775)
      
      	PR rtl-optimization/61094
      	* ree.c (combine_reaching_defs): Do not reextend an insn if it
      	was marked as do_no_reextend.  If a copy is needed to eliminate
      	an extension, then mark it as do_not_reextend.
      
      	PR rtl-optimization/61094
      	* g++.dg/pr61094: New test.
      
      From-SVN: r211142
      Jeff Law committed
    • [AArch64] Remove ISB after FPCR write. · a2adad8b
      From-SVN: r211140
      Marcus Shawcroft committed
    • re PR target/61336 (ICE on alpha: in print_operand_address, at config/alpha/alpha.c:5454) · 20a951e6
      PR target/61336
      
              * config/alpha/alpha.c (print_operand_address): Allow symbolic
              addresses inside asms.  Use output_operand_lossage instead of
              gcc_unreachable.
      
      From-SVN: r211139
      Richard Henderson committed
    • condition_variable (condition_variable_any::_Unlock): Do not swallow __forced_unwind. · 315eb4bb
      	* include/std/condition_variable (condition_variable_any::_Unlock): Do
      	not swallow __forced_unwind.
      	* include/std/future (__future_base::_Task_setter): Likewise.
      	(__future_base::_Async_state_impl): Turn __forced_unwind into broken
      	promise and rethrow.
      	* include/std/mutex (try_lock): Likewise.
      	* testsuite/30_threads/async/forced_unwind.cc: New.
      	* testsuite/30_threads/packaged_task/forced_unwind.cc: New.
      
      From-SVN: r211138
      Jonathan Wakely committed
    • type_traits (__strictest_alignment): New helper struct. · d3718027
      2014-06-02  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
      	    Jonathan Wakely  <jwakely@redhat.com>
      
      	* libstdc++-v3/include/std/type_traits (__strictest_alignment): New
      	helper struct.
      	(aligned_union): New struct (C++11).
      	(aligned_union_t): New type alias (C++14).
      	* doc/xml/manual/status_cxx2011.xml: Update.
      	* libstdc++-v3/testsuite/20_util/aligned_union/1.cc: New file.
      	* testsuite/20_util/declval/requirements/1_neg.cc: Adjust dg-error
      	line number.
      
      Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
      
      From-SVN: r211137
      Rüdiger Sonderfeld committed
    • xop-rotate1-vector.c (dg-options): Add -mno-avx2. · ae48824a
      	* gcc.target/i386/xop-rotate1-vector.c (dg-options): Add -mno-avx2.
      	* gcc.target/i386/xop-rotate2-vector.c (dg-options): Ditto.
      	* gcc.target/i386/xop-rotate3-vector.c (dg-options): Ditto.
      	* gcc.target/i386/xop-imul32widen-vector.c (dg-options): Ditto.
      	* gcc.target/i386/xop-imul64-vector.c (dg-options): Ditto.
      	* gcc.target/i386/xop-shift1-vector.c (dg-options): Ditto.
      	* gcc.target/i386/xop-shift2-vector.c (dg-options): Ditto.
      	* gcc.target/i386/xop-shift3-vector.c (dg-options): Ditto.
      
      From-SVN: r211136
      Uros Bizjak committed
    • re PR target/61239 (ICE in decompose, at rtl.h when compiling vshuf-v16hi.c using -mavx2) · 40c0a159
      	PR target/61239
      	* config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
      	GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
      
      From-SVN: r211134
      Uros Bizjak committed
    • Fix ICE in aarch64_float_const_representable_p · 94bfa2da
      2014-06-02  Tom de Vries  <tom@codesourcery.com>
      
      	* config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
      	case that x has VOIDmode.
      
      From-SVN: r211132
      Tom de Vries committed
    • Fix a decl to match the calls to it. · 242d4d3f
      	* trans-decl.c (gfc_build_builtin_function_decls): Correct number of
      	arguments to caf_init.
      
      From-SVN: r211131
      Bernd Schmidt committed
    • Delete a copy that looks like a relic from obstack times. · 4a1f940f
      	* varasm.c (copy_constant): Delete function.
      	(build_constant_desc): Don't call it.
      
      From-SVN: r211130
      Bernd Schmidt committed
    • re PR target/61154 ([ARM] wide-int merge introduced regressions in vshuf tests) · 27e83a44
      Fix PR target/61154
      
      2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
      
      	PR target/61154
      	* config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
      	* config/arm/arm.md (mov64 splitter): Replace const_double_operand
      	with immediate_operand.
      
      From-SVN: r211129
      Ramana Radhakrishnan committed
    • re PR tree-optimization/61346 (VRP chooses bad bounds for variable) · 2ba0071e
      2014-06-02  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/61346
      	* gcc.dg/torture/pr61346.c: New testcase.
      
      From-SVN: r211128
      Richard Biener committed