1. 03 Jan, 2011 1 commit
  2. 31 Dec, 2010 8 commits
  3. 30 Dec, 2010 10 commits
  4. 28 Dec, 2010 2 commits
    • Replace _rdrand_uXX with _rdrandXX_step. · 11c4a1c0
      gcc/
      
      2010-12-28  H.J. Lu  <hongjiu.lu@intel.com>
      	    Uros Bizjak  <ubizjak@gmail.com>
      
      	* config/i386/i386-builtin-types.def (PUSHORT): New.
      	(INT_FTYPE_PUSHORT): Likewise.
      	(INT_FTYPE_PUNSIGNED): Likewise.
      	(INT_FTYPE_PULONGLONG): Likewise.
      	Remove "DEF_FUNCTION_TYPE (UINT16)".
      
      	* config/i386/i386.c (ix86_builtins): Remove
      	IX86_BUILTIN_RDRAND16, IX86_BUILTIN_RDRAND32 and
      	IX86_BUILTIN_RDRAND64.  Add IX86_BUILTIN_RDRAND16_STEP,
      	IX86_BUILTIN_RDRAND32_STEP and IX86_BUILTIN_RDRAND64_STEP.
      	(bdesc_special_args): Remove IX86_BUILTIN_RDRAND16,
      	IX86_BUILTIN_RDRAND32 and IX86_BUILTIN_RDRAND64.
      	(ix86_init_mmx_sse_builtins): Handle IX86_BUILTIN_RDRAND16_STEP,
      	IX86_BUILTIN_RDRAND32_STEP and IX86_BUILTIN_RDRAND64_STEP.
      	(ix86_expand_builtin): Likewise.
      	(ix86_expand_special_args_builtin): Remove UINT16_FTYPE_VOID.
      
      	* config/i386/i386.md (UNSPEC_RDRAND): New.
      	(UNSPECV_RDRAND): Removed.
      	(rdrand<mode>): Likewise.
      	(rdrand<mode>_1): Also set FLAGS_REG.  Replace UNSPECV_RDRAND
      	with UNSPEC_RDRAND.
      
      	* config/i386/immintrin.h (_rdrand_u16): Removed.
      	(_rdrand_u32): Likewise.
      	(_rdrand_u64): Likewise.
      	(_rdrand16_step): New.
      	(_rdrand32_step): Likewise.
      	(_rdrand64_step): Likewise.
      
      	* doc/extend.texi (__builtin_ia32_rdrand16): Removed.
      	(__builtin_ia32_rdrand32): Likewise.
      	(__builtin_ia32_rdrand64): Likewise.
      	(__builtin_ia32_rdrand16_step): New.
      	(__builtin_ia32_rdrand32_step): Likewise.
      	(__builtin_ia32_rdrand64_step): Likewise.
      
      gcc/testsuite/
      
      2010-12-28  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* gcc.target/i386/rdrand-1.c: Updated.
      	* gcc.target/i386/rdrand-2.c: Likewise.
      	* gcc.target/i386/rdrand-3.c: Likewise.
      
      Co-Authored-By: Uros Bizjak <ubizjak@gmail.com>
      
      From-SVN: r168298
      H.J. Lu committed
    • pdp11.md: Correct length attribute for float literal case. · c67b2d4e
      * config/pdp11/pdp11.md: Correct length attribute for float
      literal case.
      
      From-SVN: r168295
      Paul Koning committed
  5. 27 Dec, 2010 1 commit
  6. 26 Dec, 2010 1 commit
  7. 23 Dec, 2010 1 commit
    • configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for --eh-frame-hdr. · 6961669f
      	* configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for
      	--eh-frame-hdr.
      	Check for working Sun ld version.
      	(HAVE_LD_EH_FRAME_HDR): Adapt comment.
      	(glibc_header_dir): Set only once.
      	Rename to ...
      	(target_header_dir): ... this.
      	Adapt users.
      	(gcc_cv_target_dl_iterate_frame_hdr): Check on *-*-solaris2*.
      	(TARGET_DL_ITERATE_PHDR): Define if present.
      	* configure: Regenerate.
      	* config.in: Likewise.
      	* config/t-sol2 (LIB2ADDEH, LIB2ADDEHDEP): Define.
      	* crtstuff.c (USE_PT_GNU_EH_FRAME): Define for recent Solaris 11
      	with linker support and dl_iterate_phdr.
      	* unwind-dw2-fde-glibc.c (USE_PT_GNU_EH_FRAME): Likewise.
      	(_Unwind_IteratePhdrCallback) [PT_SUNW_UNWIND]: Also accept
      	PT_SUNW_UNWIND .eh_frame_hdr sections.
      	[CRT_GET_RFIB_DATA && __i386__ && __sun__ && __svr4__]: Add
      	load_base to data->dbase.
      	[CRT_GET_RFIB_DATA && __x86_64__ && __sun__ && __svr4__]: Handle
      	64-bit Solaris 10+/x86.
      	* config/sol2-gld.h [TARGET_DL_ITERATE_PHDR && HAVE_LD_EH_FRAME_HDR]
      	(LINK_EH_SPEC): Define.
      
      From-SVN: r168204
      Rainer Orth committed
  8. 22 Dec, 2010 4 commits
    • c-aux-info.c (gen_formal_list_for_type): Use prototype_p. · f4da8dce
      gcc/
      	* c-aux-info.c (gen_formal_list_for_type): Use prototype_p.
      	* c-decl.c (diagnose_arglist_conflict): Likewise.
      	(diagnose_mismatched_decls, merge_decls): Likewise.
      	(c_builtin_function, c_builtin_function_ext_scope): Likewise.
      	(start_decl, start_function): Likewise.
      	* c-tree.h (C_DECL_ISNT_PROTOTYPED): Likewise.
      	* config/ia64/ia64.h (INIT_CUMULATIVE_ARGS): Likewise.
      	* config/mep/mep.c (mep_validate_interrupt): Likewise.
      	* config/pa/pa.h (INIT_CUMULATIVE_ARGS): Likewise.
      	* config/rs6000/rs6000.c (init_cumulative_args): Likewise.
      	* config/sh/sh.c (sh_init_cumulative_args): Likewise.
      	* config/sparc/sparc.c (init_cumulative_args): Likewise.
      	* dwarf2out.c (add_prototyped_attribute): Likewise.
      	(gen_subprogram_die): Likewise.
      	* ipa-type-escape.c (check_function_parameter_and_return_types):
      	Likewise.
      	(check_call): Likewise.
      	* tree-ssa.c (useless_type_conversion_p): Likewise.
      
      gcc/ada/
      	* gcc-interface/utils.c (handle_nonnull_attribute): Use prototype_p.
      	(handle_sentinel_attribute): Likewise.
      
      gcc/c-family/
      	* c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
      	Use prototype_p.
      
      gcc/cp/
      	* decl.c (decls_match, duplicate_decls): Use prototype_p.
      	* pt.c (push_template_decl_real): Likewise.
      
      gcc/lto/
      	* lto-lang.c (handle_nonnull_attribute, handle_sentinel_attribute):
      	Use prototype_p.
      
      gcc/objc/
      	* objc-act.c (next_sjlj_build_enter_and_setjmp): Use prototype_p.
      
      From-SVN: r168181
      Nathan Froyd committed
    • spu.md ("mov<mode>"): Use nonimmediate_operand predicate for destination operand. · 46fc2305
      	* config/spu/spu.md ("mov<mode>"): Use nonimmediate_operand
      	predicate for destination operand.
      	* config/spu/spu.c (spu_expand_mov): If move destination is an
      	invalid subreg, perform move in the subreg's inner mode instead.
      
      From-SVN: r168169
      Ulrich Weigand committed
    • svr4.h: Remove. · 57809813
      	* config/svr4.h: Remove.
      	* system.h (USING_SVR4_H, SVR4_ASM_SPEC): Poison.
      	* config.gcc, config/bfin/bfin.h, config/cris/cris.h,
      	config/fr30/fr30.h, config/frv/frv.h, config/i386/openbsdelf.h,
      	config/i386/vx-common.h, config/ia64/elf.h, config/ia64/ia64.h,
      	config/ia64/sysv4.h, config/iq2000/iq2000.h, config/m68k/linux.h,
      	config/m68k/m68kelf.h, config/mips/mips.h, config/mips/vxworks.h,
      	config/moxie/moxie.h, config/netbsd-aout.h, config/openbsd.h,
      	config/rs6000/sysv4.h, config/sh/elf.h, config/sh/sh.h,
      	config/sol2.h, config/sparc/sysv4.h, config/stormy16/stormy16.h,
      	config/v850/v850.h, config/vxworks.h: Remove or update comments
      	referring to svr4.h.
      
      From-SVN: r168166
      Joseph Myers committed
    • arm.c (output_move_double): Update the comment above the function to reflect the… · 16a9afdc
      arm.c (output_move_double): Update the comment above the function to reflect the current implementation.
      
      	* config/arm/arm.c (output_move_double): Update the comment
      	above the function to reflect the current implementation.
      
      From-SVN: r168159
      Jie Zhang committed
  9. 21 Dec, 2010 4 commits
  10. 20 Dec, 2010 6 commits
    • linux.h (OPTION_GLIBC): Define differently if SINGLE_LIBC. · b5a54c03
      	* config/alpha/linux.h (OPTION_GLIBC): Define differently if
      	SINGLE_LIBC.
      	* config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC):
      	Define differently if SINGLE_LIBC.
      	* config/rs6000/linux.h (OPTION_GLIBC): Define differently if
      	SINGLE_LIBC.
      	* config/rs6000/linux64.h (OPTION_GLIBC): Define differently if
      	SINGLE_LIBC.
      	* config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
      	*-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Define
      	SINGLE_LIBC instead of OPTION_GLIBC.
      	(*-*-uclinux*): Define DEFAULT_LIBC and SINGLE_LIBC.
      	(bfin*-uclinux*, moxie-*-uclinux*, m68k-*-uclinux*): Don't define
      	DEFAULT_LIBC or use linux.opt.
      
      From-SVN: r168094
      Joseph Myers committed
    • mn10300: Cleanup PIC unspec generation · 53855940
              * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Generate
              UNSPEC patterns by hand, with the proper mode; use gen_const_mem.
              * config/mn10300/mn10300.md (call, call_value): Generate UNSPEC_PLT
              by hand, with the proper mode.
              (symGOT2reg, symGOT2reg_i, symGOTOFF2reg): Remove.
              (symGOTOFF2reg_i, sym2PIC, sym2PLT): Remove.
      
      From-SVN: r168093
      Richard Henderson committed
    • arm-cores.def: Add Faraday CPU support - fa526/fa626/fa606te/fa626te/fmp626/fa726te. · c02a5ccb
      2010-12-20  Sanjin Liu	<scliu@faraday-tech.com>
      	Mingfeng Wu  <mingfeng@faraday-tech.com>
      
      	* config/arm/arm-cores.def: Add Faraday CPU support -
      	fa526/fa626/fa606te/fa626te/fmp626/fa726te.
      	* config/arm/arm-tune.md: Regenerate.
      	* config/arm/arm.c (arm_fa726te_tune): New tune_params for fa726te
      	(fa726te_sched_adjust_cost): New cost function for fa726te.
      	(arm_issue_rate): Add fa726te.
      	* config/arm/arm.md (generic_sched): Add Faraday cores to generic_sched
      	and include machine description files.
      	* config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Add fa526 and fa626.
      	* config/arm/t-arm (MD_INCLUDES): Include machine description files for
      	Faraday cores.
      	* config/arm/t-arm-elf: Add multilib option for Faraday cores.
      	* config/arm/t-linux-eabi: Add multilib option for Faraday cores except
      	fa526 and fa626.
      	* doc/invoke.texi: Document -mcpu for Faraday cores.
      	* config/arm/fa526.md: New file.
      	* config/arm/fa606te.md: New file.
      	* config/arm/fa626te.md: New file.
      	* config/arm/fmp626.md: New file.
      	* config/arm/fa726te.md: New file.
      
      Co-Authored-By: Mingfeng Wu <mingfeng@faraday-tech.com>
      
      From-SVN: r168090
      Sanjin Liu committed
    • lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix condition on IT… · ee102849
      lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix condition on IT instruction for early termination.
      
      2010-12-20  Yvan Roux  <yvan.roux@st.com>
      
      	* config/arm/lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix
      	condition on IT instruction for early termination.
      
      From-SVN: r168088
      Yvan Roux committed
    • freebsd.h (SVR4_ASM_SPEC): Don't define. · a1cd969e
      	* config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't define.
      	(DBX_REGISTER_NUMBER): Define.
      	* config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Define.
      	* config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Define.
      	* config/rs6000/sysv4.h (SIZE_TYPE): Define.
      	(ASM_SPEC): Define without using SVR4_ASM_SPEC.
      	(DBX_REGISTER_NUMBER): Undefine.
      	* config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
      	powerpc-*-eabisim*, powerpc-*-elf*, powerpc-*-eabialtivec*,
      	powerpc-xilinx-eabi*, powerpc-*-eabi*, powerpc-*-rtems*,
      	powerpc-*-linux* | powerpc64-*-linux*, powerpc64-*-gnu*,
      	powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
      	powerpc-wrs-vxworks|powerpc-wrs-vxworksae, powerpcle-*-elf*,
      	powerpcle-*-eabisim*, powerpcle-*-eabi*): Don't use svr4.h.
      
      From-SVN: r168085
      Joseph Myers committed
    • re PR c++/46904 (g++.dg/tree-prof/(indir-call-prof.C|inline_mismatch_args.C)… · 1f81953b
      re PR c++/46904 (g++.dg/tree-prof/(indir-call-prof.C|inline_mismatch_args.C) fail on powerpc-apple-darwin9)
      
      
      	PR c++/46904
      	PR middle-end/46916
      	PR target/46950
      	* config/darwin.c (generating_for_darwin_version): New var.
      	(darwin_text_section): Remove.
      	(darwin_rodata_section): Do not check function section here.
      	(darwin_emit_unwind_label): Do not emit for Darwin >= 9.
      	Emit distinct labels for successive calls for the same decl.
      	(darwin_override_options): Set generating_for_darwin_version.
      	Add FIXME and disable -freorder-blocks-and-partition.
      	Suppress automatic asynchronous unwind tables for m32.
      	Switch off -freorder-blocks-and-partition when unwind tables
      	will be generated.  Update to use generating_for_darwin_version.
      	(darwin_function_section): Check for cases that need to be placed
      	in coalesced sections.
      	* config/darwin-sections.def: Define hot, cold, startup and exit sections
      	for both coalesced and regular code.
      	* config/darwin.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Delete.
      	* config/darwin10.h (TARGET_ASM_EMIT_UNWIND_LABEL): Delete.
      
      From-SVN: r168083
      Iain Sandoe committed
  11. 19 Dec, 2010 2 commits
    • re PR target/46729 (32-bit 30_threads execution tests fail on Solaris 10/SPARC with Sun as) · a6fed83f
      	PR target/46729
      	* config/sparc/sparc.h (GLOBAL_OFFSET_TABLE_REGNUM): New macro.
      	(PIC_OFFSET_TABLE_REGNUM): Rewrite in terms of above macro.
      	* config/sparc/sparc.c (pic_helper_needed): Delete.
      	(global_offset_table): Likewise.
      	(pic_helper_symbol): Rename to...
      	(got_helper_rtx): ...this.
      	(global_offset_table_rtx): New global variable.
      	(sparc_got_symbol): Likewise.
      	(sparc_got): New static function.
      	(check_pic): Use local variable and call sparc_got.
      	(sparc_tls_symbol): Initialize to NULL_RTX.
      	(sparc_tls_got): In non-PIC mode, reload the GOT register for Sun TLS
      	and 32-bit ABI and copy the GOT symbol to a new register otherwise.
      	(get_pc_thunk_name): Rename local variable.
      	(gen_load_pcrel_sym): New wrapper around load_pcrel_sym{si,di}.
      	(load_pic_register): Rename to...
      	(load_got_register): ...this.  Adjust and call gen_load_pcrel_sym.
      	(sparc_expand_prologue): Do not test flag_pic.
      	(sparc_output_mi_thunk): Use pic_offset_table_rtx directly.
      	(sparc_file_end): Test got_helper_rtx instead of pic_helper_needed.
      	Rename local variable and do not call get_pc_thunk_name again.
      	* config/sparc/sparc.md (load_pcrel_sym): Add operand #3.
      
      From-SVN: r168049
      Eric Botcazou committed
    • arm.c (arm_legitimate_index_p): Add VFP load/store index range case. · f3fb6590
      2010-12-19  Chung-Lin Tang  <cltang@codesourcery.com>
      
      	gcc/
      	* config/arm/arm.c (arm_legitimate_index_p): Add VFP load/store
      	index range case. Change to SF/DFmode tests to avoid capturing HFmode.
      	(thumb2_legitimate_index_p): Same.
      
      	gcc/testsuite/
      	* gcc.target/arm/vfp-1.c (test_ldst): New test for VFP
      	load/store immediate indexes.
      
      From-SVN: r168045
      Chung-Lin Tang committed