1. 08 Sep, 2014 1 commit
    • Remove no-longer-needed fp-bit target macros. · 9686a2e6
      gcc:
      	* defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
      	Remove.
      	* doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
      	Remove.
      	* doc/tm.texi: Regenerate.
      	* system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
      	Poison.
      	* config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
      	* config/cris/cris.h (__make_dp): Remove.
      
      libgcc:
      	* fp-bit.c (pack_d, unpack_d): Remove LARGEST_EXPONENT_IS_NORMAL
      	and ROUND_TOWARDS_ZERO conditionals.
      
      From-SVN: r215013
      Joseph Myers committed
  2. 29 Aug, 2014 1 commit
    • cppbuiltin.c (define_builtin_macros_for_type_sizes): Round pointer size up to a power of two. · 50b6ee8b
      * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
      pointer size up to a power of two.
      * defaults.h (DWARF2_ADDR_SIZE): Round up.
      (POINTER_SIZE_UNITS): New, rounded up value.
      * dwarf2asm.c (size_of_encoded_value): Use it.
      (dw2_output_indirect_constant_1): Likewise.
      * expmed.c (init_expmed_one_conv): We now know the sizes of
      partial int modes.
      * loop-iv.c (iv_number_of_iterations): Use precision, not size.
      * optabs.c (expand_float): Use precision, not size.
      (expand_fix): Likewise.
      * simplify-rtx (simplify_unary_operation_1): Likewise.
      * tree-dfa.c (get_ref_base_and_extent): Likewise.
      * varasm.c (assemble_addr_to_section): Round up pointer sizes.
      (default_assemble_integer) Likewise.
      (dump_tm_clone_pairs): Likewise.
      * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
      * var-tracking.c (adjust_mems): Allow partial-int modes also.
      (prepare_call_arguments): Likewise.
      * stor-layout.c (finalize_type_size): Preserve precision.
      (layout_type): Use precision, not size.
      
      From-SVN: r214748
      DJ Delorie committed
  3. 03 Jun, 2014 1 commit
    • 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
  4. 06 May, 2014 1 commit
  5. 02 May, 2014 1 commit
    • defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER to a C expression marco. · ed15c598
      2014-02-26  Kito Cheng  <kito@0xlab.org>
      
      	* defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
      	to a C expression marco.
      	* ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
      	* config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
      	* config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
      	* doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
      	HONOR_REG_ALLOC_ORDER.
      	* doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
      
      From-SVN: r210000
      Kito Cheng committed
  6. 02 Jan, 2014 1 commit
  7. 13 Dec, 2013 1 commit
    • arc.h (BITS_PER_UNIT): Removed. · 8fd05f4d
      2013-12-13  Kenneth Zadeck  <zadeck@naturalbridge.com>
      
      	* config/arc/arc.h (BITS_PER_UNIT): Removed.
      	* config/bfin/bfin.h (BITS_PER_UNIT): Removed.
      	* config/lm32/lm32.h (BITS_PER_UNIT): Removed.
      	* config/m32c/m32c.h (BITS_PER_UNIT): Removed.
      	* config/microblaze/microblaze.h (BITS_PER_UNIT): Removed.
      	* config/picochip/picochip.h (BITS_PER_UNIT): Removed.
      	* config/spu/spu.h (BITS_PER_UNIT): Removed.
      	* defaults.h (BITS_PER_UNIT): Removed.
      	* config/i386/i386-modes.def (MAX_BITSIZE_MODE_ANY_INT): New.
      	* doc/rtl (BITS_PER_UNIT): Moved from tm.texi.
      	(MAX_BITSIZE_MODE_ANY_INT): Updated.
      	* doc/tm.texi (BITS_PER_UNIT): Removed.
      	* doc/tm.texi.in (BITS_PER_UNIT): Removed.
      	* genmodes.c (bits_per_unit, max_bitsize_mode_any_int): New.
      	(create_modes): Added code to set bits_per_unit and
      	max_bitsize_mode_any_int.
      	(emit_max_int): Changed code generation.
      	* mkconfig.sh: Added insn-modes.h.
      
      From-SVN: r205964
      Kenneth Zadeck committed
  8. 28 Sep, 2013 1 commit
    • alloc-pool.c, [...]: Add missing whitespace before "(". · c3284718
      gcc/
      	* alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
      	bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
      	cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
      	cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
      	combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
      	cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
      	df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
      	dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
      	errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
      	fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
      	gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
      	genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
      	genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
      	genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
      	gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
      	gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
      	gimple.h, godump.c, graphite-clast-to-gimple.c,
      	graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
      	graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
      	hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
      	ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
      	ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
      	ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
      	loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
      	lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
      	mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
      	pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
      	predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
      	profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
      	regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
      	reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
      	sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
      	statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
      	system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
      	tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
      	tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
      	tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
      	tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
      	tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
      	tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
      	tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
      	tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
      	tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
      	tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
      	tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
      	tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
      	tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
      	tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
      	tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
      	tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
      	tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
      	tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
      	tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
      	tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
      	varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
      	whitespace before "(".
      
      From-SVN: r203004
      Richard Sandiford committed
  9. 19 Aug, 2013 1 commit
    • target.def (TARGET_LIBC_HAS_FUNCTION): New target hook. · d33d9e47
      	* target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
      	* builtins.c (default_libc_has_function): New.
      	(gnu_libc_has_function): Ditto.
      	(no_c99_libc_has_function): Ditto.
      	(expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
      	instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
      	(fold_builtin_sincos): Likewise.
      	(fold_builtin_cexp): Likewise.
      	* builtins.def (DEF_C94_BUILTIN): Likewise.
      	(DEF_C99_BUILTIN): Likewise.
      	(DEF_C99_C90RES_BUILTIN): Likewise.
      	(DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
      	definitions to using this define.
      	* config/darwin-protos.h (darwin_libc_has_function): New.
      	* config/darwin.c: (darwin_libc_has_function: Ditto.
      	* config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
      	TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
      	* config/darwin.h: Ditto.
      	* config/elfos.h: Ditto.
      	* config/freebsd.h: Ditto.
      	* config/i386/cygming.h: Ditto.
      	* config/i386/djgpp.h: Ditto.
      	* config/i386/i386-interix.h: Ditto.
      	* config/microblaze/microblaze.h: Ditto.
      	* config/mmix/mmix.h: Ditto.
      	* config/gnu-user.h: Ditto.
      	* config/ia64/hpux.h: Ditto.
      	* config/pa/pa-hpux.h: Ditto.
      	* config/pdp11/pdp11.h: Ditto.
      	* config/picochip/picochip.h: Ditto.
      	* config/linux.h: Ditto.
      	* config/netbsd.h: Ditto.
      	* config/openbsd.h: Ditto.
      	* config/rs6000/aix43.h: Ditto.
      	* config/rs6000/aix51.h: Ditto.
      	* config/rs6000/aix52.h: Ditto.
      	* config/rs6000/aix53.h: Ditto.
      	* config/rs6000/aix61.h: Ditto.
      	* config/rs6000/darwin.h: Ditto.
      	* config/rs6000/linux.h: Ditto.
      	* config/rs6000/linux64.h: Ditto.
      	* config/s390/tpf.h: Ditto.
      	* config/sol2-10.h: Ditto.
      	* config/sol2.h: Ditto.
      	* config/vms/vms.h: Ditto.
      	* config/vxworks.h: Ditto.
      	* config/linux-android.c (linux_android_libc_has_function):
      	New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
      	* config/linux-protos.h (linux_android_libc_has_function):
      	New declaration.
      	* config/i386/i386.c (ix86_libc_has_function): New.
      	* config/i386/i386-protos.h
      	(ix86_libc_has_function): New declaration.
      	* config/i386/i386.md
      	("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
      	("isinf<mode>2): Likewise.
      	* convert.c (convert_to_integer): Using new target hook
      	TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
      	TARGET_C99_FUNCTIONS.
      	* fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
      	* tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
      	* coretypes.h (function_class): New enum for different
      	classes of functions.
      	* defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
      	* doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
      	(TARGET_HAS_SINCOS): Likewise.
      	(TARGET_LIBC_HAS_FUNCTION): New.
      	* doc/tm.texi: Regenerated.
      	* targhooks.h (default_libc_has_function): New declaration.
      	(no_c99_libc_has_function): Ditto.
      	(gnu_libc_has_function): Ditto.
      	* system.h: Add the poisoning of TARGET_C99_FUNCTIONS
      	and TARGET_HAS_SINCOS.
      
      From-SVN: r201838
      Alexander Ivchenko committed
  10. 10 Jan, 2013 1 commit
  11. 30 Oct, 2012 1 commit
  12. 31 Jul, 2012 1 commit
    • defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete. · b0f6b612
      	* defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
      	* targhooks.c (default_mode_dependent_address_p): Delete code
      	for GO_IF_MODE_DEPENDENT_ADDRESS.
      	* system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
      	* doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
      	* doc/tm.texi: Regenerate.
      	* config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
      	* config/alpha.c (alpha_mode_dependent_address_p): ...here.  New
      	function.
      	(TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
      	* config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
      	* config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
      	* config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
      	* config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
      	* config/vax/vax.c (vax_mode_dependent_address_p): Make static.
      	Take a const_rtx.
      	(TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
      
      From-SVN: r189995
      Nathan Froyd committed
  13. 25 Jul, 2012 1 commit
    • i386.md (stack_protect_set): Disable the pattern for Android since Android libc… · 4bd5abca
      i386.md (stack_protect_set): Disable the pattern for Android since Android libc (bionic) does not provide...
      
      2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
      
              * config/i386/i386.md (stack_protect_set): Disable the pattern
              for Android since Android libc (bionic) does not provide random
              value for stack protection guard at gs:0x14. Guard value
              will be provided from external symbol (default implementation).
              (stack_protect_set_<mode>): Likewise.
              (stack_protect_test): Likewise.
              (stack_protect_test_<mode>): Likewise.
              * gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
              not have Bionic by default
              * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
              Macro OPTION_BIONIC is defined in this file and provides Bionic
              accessibility status
      
      From-SVN: r189840
      Sergey Melnikov committed
  14. 26 Jun, 2012 1 commit
  15. 20 Mar, 2012 1 commit
    • tree.h (enum size_type_kind): Add stk_ prefix to constants, convert in lowercase. · 18dae016
      2012-03-20  Tristan Gingold  <gingold@adacore.com>
      
      	* tree.h (enum size_type_kind): Add stk_ prefix to constants,
      	convert in lowercase.
      	(sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
      	(size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
      	* stor-layout.c (sizetype_tab): Adjust.
      	(initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
      	* tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
      	instead of type_kind_last.
      	* tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
      	instead of size_int_kind.
      	* doc/tm.texi.in (Type Layout): Document SIZETYPE.
      	* doc/tm.texi: Regenerate.
      	* defaults.h (SIZETYPE): Provide a default value.
      	* config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
      	(SIZETYPE): Define.
      
      From-SVN: r185561
      Tristan Gingold committed
  16. 14 Mar, 2012 1 commit
    • Remove obsolete IRIX 6.5 support · b24513a1
      	libstdc++-v3:
      	* configure.host (irix6.5*): Remove.
      	* config/os/irix: Remove.
      	* config/io/basic_file_stdio.cc (__basic_file<char>::showmanyc())
      	[_GLIBCXX_FIONREAD_TAKES_OFF_T]: Remove.
      
      	* doc/xml/faq.xml: Remove IRIX reference.
      	* doc/xml/manual/using.xml (Finding Dynamic or Shared Libraries):
      	Remove IRIX example.
      
      	* testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc:
      	Remove mips-sgi-irix6* handling.
      	* testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise.
      	* testsuite/21_strings/basic_string/pthread18185.cc: Likewise.
      	* testsuite/21_strings/basic_string/pthread4.cc: Likewise.
      	* testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise.
      	* testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise.
      	* testsuite/23_containers/list/pthread1.cc: Likewise.
      	* testsuite/23_containers/list/pthread5.cc: Likewise.
      	* testsuite/23_containers/map/pthread6.cc: Likewise.
      	* testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise.
      	* testsuite/27_io/basic_ofstream/pthread2.cc: Likewise.
      	* testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise.
      	* testsuite/30_threads/async/42819.cc: Likewise.
      	* testsuite/30_threads/async/49668.cc: Likewise.
      	* testsuite/30_threads/async/any.cc: Likewise.
      	* testsuite/30_threads/async/async.cc: Likewise.
      	* testsuite/30_threads/async/launch.cc: Likewise.
      	* testsuite/30_threads/async/sync.cc: Likewise.
      	* testsuite/30_threads/call_once/39909.cc: Likewise.
      	* testsuite/30_threads/call_once/49668.cc: Likewise.
      	* testsuite/30_threads/call_once/call_once1.cc: Likewise.
      	* testsuite/30_threads/condition_variable/cons/1.cc: Likewise.
      	* testsuite/30_threads/condition_variable/members/1.cc: Likewise.
      	* testsuite/30_threads/condition_variable/members/2.cc: Likewise.
      	* testsuite/30_threads/condition_variable/native_handle/typesizes.cc:
      	Likewise.
      	* testsuite/30_threads/condition_variable_any/50862.cc: Likewise.
      	* testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise.
      	* testsuite/30_threads/condition_variable_any/members/1.cc: Likewise.
      	* testsuite/30_threads/condition_variable_any/members/2.cc: Likewise.
      	* testsuite/30_threads/future/cons/move.cc: Likewise.
      	* testsuite/30_threads/future/members/45133.cc: Likewise.
      	* testsuite/30_threads/future/members/get.cc: Likewise.
      	* testsuite/30_threads/future/members/get2.cc: Likewise.
      	* testsuite/30_threads/future/members/share.cc: Likewise.
      	* testsuite/30_threads/future/members/valid.cc: Likewise.
      	* testsuite/30_threads/future/members/wait.cc: Likewise.
      	* testsuite/30_threads/future/members/wait_for.cc: Likewise.
      	* testsuite/30_threads/future/members/wait_until.cc: Likewise.
      	* testsuite/30_threads/lock/1.cc: Likewise.
      	* testsuite/30_threads/lock/2.cc: Likewise.
      	* testsuite/30_threads/lock/3.cc: Likewise.
      	* testsuite/30_threads/lock/4.cc: Likewise.
      	* testsuite/30_threads/lock_guard/cons/1.cc: Likewise.
      	* testsuite/30_threads/mutex/cons/1.cc: Likewise.
      	* testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise.
      	* testsuite/30_threads/mutex/lock/1.cc: Likewise.
      	* testsuite/30_threads/mutex/native_handle/1.cc: Likewise.
      	* testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise.
      	* testsuite/30_threads/mutex/try_lock/1.cc: Likewise.
      	* testsuite/30_threads/mutex/try_lock/2.cc: Likewise.
      	* testsuite/30_threads/mutex/unlock/1.cc: Likewise.
      	* testsuite/30_threads/packaged_task/49668.cc: Likewise.
      	* testsuite/30_threads/packaged_task/cons/1.cc: Likewise.
      	* testsuite/30_threads/packaged_task/cons/2.cc: Likewise.
      	* testsuite/30_threads/packaged_task/cons/3.cc: Likewise.
      	* testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise.
      	* testsuite/30_threads/packaged_task/cons/move.cc: Likewise.
      	* testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/get_future.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/invoke.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/reset.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/reset2.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/swap.cc: Likewise.
      	* testsuite/30_threads/packaged_task/members/valid.cc: Likewise.
      	* testsuite/30_threads/promise/cons/1.cc: Likewise.
      	* testsuite/30_threads/promise/cons/alloc.cc: Likewise.
      	* testsuite/30_threads/promise/cons/move.cc: Likewise.
      	* testsuite/30_threads/promise/cons/move_assign.cc: Likewise.
      	* testsuite/30_threads/promise/members/get_future.cc: Likewise.
      	* testsuite/30_threads/promise/members/get_future2.cc: Likewise.
      	* testsuite/30_threads/promise/members/set_exception.cc: Likewise.
      	* testsuite/30_threads/promise/members/set_exception2.cc: Likewise.
      	* testsuite/30_threads/promise/members/set_value.cc: Likewise.
      	* testsuite/30_threads/promise/members/set_value2.cc: Likewise.
      	* testsuite/30_threads/promise/members/set_value3.cc: Likewise.
      	* testsuite/30_threads/promise/members/swap.cc: Likewise.
      	* testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise.
      	* testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc:
      	Likewise.
      	* testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise.
      	* testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise.
      	* testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc:
      	Likewise.
      	* testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise.
      	* testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise.
      	* testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc:
      	Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc:
      	Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc:
      	Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc:
      	Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc:
      	Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc:
      	Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc:
      	Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc:
      	Likewise.
      	* testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise.
      	* testsuite/30_threads/shared_future/cons/move.cc: Likewise.
      	* testsuite/30_threads/shared_future/members/45133.cc: Likewise.
      	* testsuite/30_threads/shared_future/members/get.cc: Likewise.
      	* testsuite/30_threads/shared_future/members/get2.cc: Likewise.
      	* testsuite/30_threads/shared_future/members/valid.cc: Likewise.
      	* testsuite/30_threads/shared_future/members/wait.cc: Likewise.
      	* testsuite/30_threads/shared_future/members/wait_for.cc: Likewise.
      	* testsuite/30_threads/shared_future/members/wait_until.cc: Likewise.
      	* testsuite/30_threads/this_thread/1.cc: Likewise.
      	* testsuite/30_threads/this_thread/2.cc: Likewise.
      	* testsuite/30_threads/this_thread/3.cc: Likewise.
      	* testsuite/30_threads/this_thread/4.cc: Likewise.
      	* testsuite/30_threads/thread/cons/1.cc: Likewise.
      	* testsuite/30_threads/thread/cons/2.cc: Likewise.
      	* testsuite/30_threads/thread/cons/3.cc: Likewise.
      	* testsuite/30_threads/thread/cons/4.cc: Likewise.
      	* testsuite/30_threads/thread/cons/49668.cc: Likewise.
      	* testsuite/30_threads/thread/cons/5.cc: Likewise.
      	* testsuite/30_threads/thread/cons/6.cc: Likewise.
      	* testsuite/30_threads/thread/cons/7.cc: Likewise.
      	* testsuite/30_threads/thread/cons/8.cc: Likewise.
      	* testsuite/30_threads/thread/cons/9.cc: Likewise.
      	* testsuite/30_threads/thread/cons/moveable.cc: Likewise.
      	* testsuite/30_threads/thread/members/1.cc: Likewise.
      	* testsuite/30_threads/thread/members/2.cc: Likewise.
      	* testsuite/30_threads/thread/members/3.cc: Likewise.
      	* testsuite/30_threads/thread/members/4.cc: Likewise.
      	* testsuite/30_threads/thread/members/5.cc: Likewise.
      	* testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise.
      	* testsuite/30_threads/thread/native_handle/typesizes.cc: Likewise.
      	* testsuite/30_threads/thread/swap/1.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/cons/1.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/lock/1.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise.
      	* testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise.
      	* testsuite/30_threads/try_lock/1.cc: Likewise.
      	* testsuite/30_threads/try_lock/2.cc: Likewise.
      	* testsuite/30_threads/try_lock/3.cc: Likewise.
      	* testsuite/30_threads/try_lock/4.cc: Likewise.
      	* testsuite/30_threads/unique_lock/cons/1.cc: Likewise.
      	* testsuite/30_threads/unique_lock/cons/2.cc: Likewise.
      	* testsuite/30_threads/unique_lock/cons/3.cc: Likewise.
      	* testsuite/30_threads/unique_lock/cons/4.cc: Likewise.
      	* testsuite/30_threads/unique_lock/cons/5.cc: Likewise.
      	* testsuite/30_threads/unique_lock/cons/6.cc: Likewise.
      	* testsuite/30_threads/unique_lock/locking/1.cc: Likewise.
      	* testsuite/30_threads/unique_lock/locking/2.cc: Likewise.
      	* testsuite/30_threads/unique_lock/locking/3.cc: Likewise.
      	* testsuite/30_threads/unique_lock/locking/4.cc: Likewise.
      	* testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise.
      	* testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise.
      	* testsuite/ext/rope/pthread7-rope.cc: Likewise.
      	* testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc:
      	Likewise.
      	* testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc:
      	Likewise.
      
      	* testsuite/23_containers/vector/capacity/resize/1.cc: Remove
      	dg-options for mips*-*-irix6*.
      
      	* testsuite/27_io/ios_base/storage/1.cc: Likewise.
      	* testsuite/27_io/ios_base/storage/2.cc: Likewise.
      	* testsuite/27_io/ios_base/storage/3.cc: Likewise.
      
      	* testsuite/lib/libstdc++.exp (v3-build_support): Remove IRIX 6
      	workaround.
      
      	libjava:
      	* configure.ac (libgcj_cv_exidx): Remove IRIX 6 ld workaround.
      	(mips-sgi-irix6*): Remove.
      	(mips-sgi-irix*): Remove.
      	(AC_CHECK_HEADERS): Remove bstring.h.
      	* configure: Regenerate.
      	* include/config.h.in: Regenerate.
      	* configure.host (mips-sgi-irix6*): Remove.
      
      	* include/posix-signal.h [__sgi__]: Remove.
      
      	* gnu/java/net/natPlainDatagramSocketImplPosix.cc
      	[HAVE_BSTRING_H]: Remove.
      	* gnu/java/net/natPlainDatagramSocketImplWin32.cc: Likewise.
      	* gnu/java/net/natPlainSocketImplPosix.cc: Likewise.
      
      	libitm:
      	* configure.tgt (*-*-irix6*): Remove.
      
      	libgomp:
      	* configure.tgt (mips-sgi-irix6*): Remove.
      
      	libgfortran:
      	* intrinsics/c99_functions.c [__sgi__ && !HAVE_COMPLEX_H]: Remove.
      
      	libgcc:
      	* config.host (mips-sgi-irix6.5*): Remove.
      	* config/mips/irix-crti.S: Remove.
      	* config/mips/irix-crtn.S: Remove.
      	* config/mips/irix6-unwind.h: Remove.
      	* config/mips/t-irix6: Remove.
      	* config/mips/t-slibgcc-irix: Remove.
      
      	gnattools:
      	* configure.ac (mips-sgi-irix*): Remove.
      	* configure: Regenerate.
      
      	gcc/testsuite:
      	* g++.dg/other/anon5.C: Don't skip on mips-sgi-irix*.
      	* g++.dg/tree-prof/partition1.C: Likewise.
      	* g++.dg/tree-prof/partition2.C: Likewise.
      	* g++.old-deja/g++.other/init19.C: Remove mips-sgi-irix*
      	handling.
      	* gcc.c-torture/compile/labels-3.c: Remove dg-options.
      	* gcc.c-torture/execute/20010724-1.c: Remove.
      	* gcc.c-torture/execute/20010724-1.x: Remove.
      	* gcc.c-torture/execute/20040208-2.c: Remove.
      	* gcc.c-torture/execute/20040208-2.x: Remove.
      	* gcc.c-torture/execute/ieee/20000320-1.c [__mips__ && __sgi__]:
      	Remove.
      	(main) [__mips__ && __sgi__]: Remove.
      	* gcc.c-torture/execute/ieee/copysign1.c: Remove IRIX reference.
      	* gcc.c-torture/execute/ieee/copysign2.c: Likewise.
      	* gcc.c-torture/execute/ieee/mul-subnormal-single-1.x: Remove
      	mips-sgi-irix6* handling.
      	* gcc.dg/cpp/assert4.c [__mips__]: Remove __sgi__, sgi.
      	* gcc.dg/torture/20090618-1.c: Don't skip on mips-sgi-irix*.
      	* gcc.dg/torture/builtin-frexp-1.c: Remove mips*-*-irix6*
      	handling.
      	* gcc.dg/torture/builtin-logb-1.c: Likewise.
      	* gcc.dg/torture/pr47917.c: Remove mips-sgi-irix6.5 handling.
      	* gcc.dg/tree-ssa/ssa-store-ccp-3.c: Don't skip on mips*-*-irix*.
      	* gcc.misc-tests/linkage.exp: Remove mips-sgi-irix6* handling.
      	* gcc.target/mips/args-1.c [!__sgi__]: Remove.
      	* gcc.target/mips/interrupt_handler-2.c: Don't skip on
      	mips-sgi-irix6*.
      	* gcc.target/mips/interrupt_handler-3.c: Likewise.
      	* gcc.target/mips/save-restore-1.c: Don't skip on mips-sgi-irix6*.
      	* gcc.target/mips/save-restore-3.c: Likewise.
      	* gcc.target/mips/save-restore-4.c: Likewise.
      	* gcc.target/mips/save-restore-5.c: Likewise.
      	* gfortran.dg/g77/cabs.f: Don't xfail on mips-sgi-irix6*.
      	* lib/prune.exp (prune_gcc_output): Remove pruning of IRIX 6 ld
      	messages.
      	* lib/target-libpath.exp (set_ld_library_path_env_vars): Remove
      	IRIX 6 handling.
      	(restore_ld_library_path_env_vars): Likewise.
      	* lib/target-supports.exp (check_profiling_available): Remove
      	mips*-*-irix* handling.
      	(check_ascii_locale_available): Remove mips-sgi-irix* handling.
      	(add_options_for_c99_runtime): Remove mips-sgi-irix6.5* handling.
      	* objc.dg/stabs-1.m: Don't xfail on mips-sgi-irix6.5.
      
      	gcc/ada:
      	* gcc-interface/Makefile.in (mips-sgi-irix6*): Remove.
      
      	* a-intnam-irix.ads, mlib-tgt-specific-irix.adb,
      	s-intman-irix.adb, s-mastop-irix.adb, s-osinte-irix.adb,
      	s-osinte-irix.ads, s-proinf-irix-athread.adb,
      	s-proinf-irix-athread.ads, s-taprop-irix.adb, s-tasinf-irix.ads,
      	system-irix-n32.ads, system-irix-n64.ads, system-irix-o32.ads:
      	Remove.
      
      	* adaint.c [__mips && __sgi]: Remove.
      	(__gnat_number_of_cpus) [__mips && __sgi]: Remove.
      	[IS_CROSS && !(__mips && __sgi)]: Remove.
      	* adaint.h [sgi && _LFAPI]: Remove.
      	* cstreams.c (__gnat_full_name) [sgi]: Remove.
      	* env.c (__gnat_unsetenv) [__mips && __sgi]: Remove.
      	(__gnat_clearenv) [__mips && __sgi]: Remove.
      	* errno.c (_SGI_MP_SOURCE): Remove.
      	* gsocket.h [sgi]: Remove.
      	* init.c: Remove IRIX reference.
      	[sgi]: Remove.
      	* link.c [sgi]: Remove.
      	* s-oscons-tmplt.c [__mips && __sgi] (IOV_MAX): Don't define.
      	(main) [__mips && __sgi] (MAX_tv_sec): Don't define.
      	(CLOCK_SGI_FAST, CLOCK_SGI_CYCLE): Remove.
      	* sysdep.c [sgi]: Remove.
      	(getc_immediate_common) [sgi]: Remove.
      	(__gnat_localtime_tzoff) [sgi]: Remove.
      	* terminals.c [__mips && __sgi] (IRIX): Don't define.
      	[IRIX] (USE_GETPTY): Don't define.
      	(allocate_pty_desc) [USE_GETPTY]: Remove.
      
      	* g-traceb.ads: Remove IRIX reference.
      	* g-trasym.ads: Likewise.
      	* memtrack.adb: Likewise.
      	* s-interr-sigaction.adb: Likewise.
      
      	* gnat_rm.texi (Implementation Advice): Remove SGI info.
      	(Implementation Defined Characteristics): Likewise.
      	* gnat_ugn.texi (Summary of Run-Time Configurations, mips-irix):
      	Remove.
      	(Irix-Specific Considerations): Remove.
      
      	gcc/cp:
      	* Make-lang.in (doc/g++.1): Remove IRIX 6.5 reference.
      
      	gcc:
      	* config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
      	(mips-sgi-irix6.5*): Remove.
      	* config.host (mips-sgi-irix*): Remove.
      	* configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
      	(set_have_as_tls): Remove *-*-irix6*.
      	(gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
      	* configure: Regenerate.
      
      	* config/mips/iris6.h: Remove.
      	* config/mips/iris6.opt: Remove.
      	* config/mips/t-irix6: Remove.
      
      	* config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
      	(TARGET_IRIX6): Remove.
      	(TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
      	Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
      	* config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
      	handling.
      	(mips_file_start): Likewise.
      	* config/mips/mips-protos.h (irix_asm_output_align): Remove.
      
      	* config/mips/driver-native.c [__sgi__]: Remove.
      	(host_detect_local_cpu) [__sgi__]: Remove.
      
      	* config/mips/gnu-user.h: Remove iris5.h reference.
      
      	* config/mips/mips-modes.def: Remove IRIX 6 reference.
      	* config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
      	* config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
      	Remove.
      
      	* gcc.c (main): Move asm_debug initialization ...
      	(asm_debug): ... here.
      
      	* ginclude/stddef.h (__STDDEF_H__): Don't define.
      
      	* defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
      	* system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
      	* collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
      	(main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
      	[LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
      	* doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
      	Remove.
      	* doc/tm.texi: Regenerate.
      
      	* doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
      	IRIX 6 reference.
      	(MIPS Options, -march): Remove IRIX reference.
      	* doc/install.texi (Binaries, SGI IRIX): Remove.
      	(Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
      	of section.
      	* doc/trouble.texi (Interoperation): Remove -lgl_s handling.
      
      	fixincludes:
      	* inclhack.def (broken_cabs): Remove IRIX and SunOS 4 support.
      	(irix___restrict): Remove.
      	(irix___generic1): Remove.
      	(irix___generic2): Remove.
      	(irix_asm_apostrophe): Remove.
      	(irix_complex): Remove.
      	(irix_pthread_init): Remove.
      	(irix_socklen_t): Remove.
      	(irix_stdint_c99_mode): Remove.
      	(irix_stdint_c99_types): Remove.
      	(irix_stdint_c99_macros): Remove.
      	(irix_stdio_va_list): Remove IRIX 6.5 support.
      	(irix_wcsftime): Remove.
      	(stdio_va_list): Remove IRIX 6.5 support.
      	(svr4_profil): Remove IRIX bypass.
      	* fixincl.x: Regenerate.
      
      	* tests/base/complex.h [IRIX_COMPLEX_CHECK]: Remove.
      	* tests/base/internal/math_core.h: Remove.
      	* tests/base/internal/sgimacros.h: Remove.
      	* tests/base/internal/wchar_core.h: Remove.
      	* tests/base/math.h [BROKEN_CABS_CHECK]: Remove IRIX and SunOS 4
      	support.
      	* tests/base/pthread.h [IRIX_PTHREAD_INIT_CHECK]: Remove.
      	* tests/base/stdint-irix65.h: Remove.
      	* tests/base/stdint.h [IRIX_STDINT_C99_MODE_CHECK]: Remove.
      	* tests/base/sys/asm.h: Remove.
      	* tests/base/sys/socket.h [IRIX_SOCKLEN_T_CHECK]: Remove.
      
      	contrib:
      	* config-list.mk (LIST): Remove mips-sgi-irix6.5.
      
      	toplevel:
      	* MAINTAINERS (OS Port Maintainers): Remove irix.
      	* configure.ac (enable_libgomp): Remove *-*-irix6*.
      	(unsupported_languages): Remove mips-sgi-irix6.*.
      	(noconfigdirs): Don't add ${libgcj} for mips*-*-irix6*.
      	(with_stabs): Remove.
      	* configure: Regenerate.
      
      From-SVN: r185390
      Rainer Orth committed
  17. 30 Nov, 2011 1 commit
    • shift flag_next/gnu_runtime to modern opts system. · fea3ca91
      gcc:
      
      	* doc/tm.texi.in (NEXT_OBJC_RUNTIME): Update macro description.
      	* doc/tm.texi: Regenerate.
      	* flags.h (flag_next_runtime): Remove references.
      	* toplev.c: Likewise.
      	* defaults.h (NEXT_OBJC_RUNTIME): Provide default.
      	* gccspec.c (lang_specific_driver): Adjust use of NEXT_OBJC_RUNTIME.
      	* config/darwin.c (darwin_override_options): Provide default
      	Objective-C abi settings and target conflict checks.
      	* config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Remove unused
      	code. Adjust indenting.
      
      gcc/c-family:
      
      	* c.opt (fgnu-runtime): Provide full description.
      	(fnext-runtime): Likewise.
      	* c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
      
      From-SVN: r181837
      Iain Sandoe committed
  18. 11 Nov, 2011 1 commit
    • final.c, output.h (fprint_whex, [...]): New functions serving as fast… · 5e3929ed
      final.c, output.h (fprint_whex, [...]): New functions serving as fast replacements for fprintf() integer to string...
      
      	* final.c, output.h (fprint_whex, fprint_w, fprint_ul, sprint_ul):
      	New functions serving as fast replacements for fprintf() integer
      	to string conversions. They were used in the following changes.
      	* final.c (sprint_ul_rev): Internal helper for the above.
      	(output_addr_const): case CONST_INT: don't use fprintf().
      	* elfos.h (ASM_GENERATE_INTERNAL_LABEL): Don't use sprintf("%u"),
      	use sprint_ul() and stpcpy() which are much faster.
      	(TARGET_ASM_INTERNAL_LABEL): Define as default_elf_internal_label.
      	(ELF_ASCII_ESCAPES, ELF_STRING_LIMIT): Are the old ESCAPES and
      	STRING_LIMIT macros.
      	(ASM_OUTPUT_LIMITED_STRING, ASM_OUTPUT_ASCII): Macros now just
      	call respective functions that provide the same
      	functionality. Those are default_elf_asm_output_limited_string()
      	and default_elf_asm_output_ascii() in varasm.c.
      	* varasm.c: Fixed some whitespace inconsistencies.
      	(default_elf_asm_output_limited_string)
      	(default_elf_asm_output_ascii): The above macros from elfos.h are
      	implemented here as these functions, avoiding superfluous calls to
      	fprintf().
      	(default_elf_internal_label): Hook for
      	targetm.asm_out.internal_label and ASM_OUTPUT_DEBUG_LABEL.
      	* i386.c: Don't call fprintf("%u") but fprint_ul() instead.
      	* defaults.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_INTERNAL_LABEL):
      	Expanded the macros on multiple lines for readability.
      	(ASM_OUTPUT_LABELREF): Have two calls to fputs() instead of one to
      	asm_fprintf().
      	* dwarf2asm.c (dw2_assemble_integer, dw2_asm_output_data)
      	(dw2_asm_data_uleb128, dw2_asm_delta_uleb128)
      	(dw2_asm_delta_sleb128): Convert fprintf() calls to the new
      	faster functions.
      	* dwarf2out.c (dwarf2out_source_line): Convert fprintf() calls to
      	the new faster functions.
      
      From-SVN: r181279
      Dimitrios Apostolou committed
  19. 09 Jul, 2011 3 commits
    • dwarf2: Move CFI output routines to dwarf2cfi.c. · 948d330e
              * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
              DWARF_TYPE_SIGNATURE_SIZE): Move from ...
              * dwarf2out.c: ... here.
              (output_all_cfis): Remove.
              (dwarf2out_switch_text_section): Use output_cfis directly.
              (size_of_locs): Export.
              (output_loc_sequence, output_loc_sequence_raw): Export.
              (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
              output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
              output_cfa_loc_raw): Move to ...
              * dwarfcfi.c: ... here.
              * dwarf2out.h: Update decls.
      
      From-SVN: r176107
      Richard Henderson committed
    • dwarf2: Reduce some redundant definitions. · db42e39d
      Move some definitions to defaults.h; some simply aren't needed
      anymore in the respective dwarf2{cfi,out}.c files.
      
              * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
              DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
              * dwarf2cfi.c: ... here.
              (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
              (DWARF_ROUND, DWARF_CIE_ID): Remove.
              * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
              (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
              (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
      
      From-SVN: r176102
      Richard Henderson committed
    • Move ASM_COMMENT_START to defaults.h. · ded49a7f
      Note the extreme silliness in dwarf2out.c with 3 (three) copies.
      
              * defaults.h (ASM_COMMENT_START): Move here...
              * dwarf2asm.c: ... from here.
              * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
              * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
              * varasm.c: Likewise.
      
      From-SVN: r176093
      Richard Henderson committed
  20. 08 Jul, 2011 1 commit
    • defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default. · c0a6a1ef
      	* defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
      	* doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
      	(REG_WORDS_BIG_ENDIAN): Document.
      	* doc/tm.texi: Regenerate.
      	* reload.c (operands_match_p): Take it into account.
      	(reload_adjust_reg_for_mode): Likewise.
      	* rtlanal.c (subreg_get_info): Likewise.
      
      From-SVN: r176048
      Bernd Schmidt committed
  21. 14 Jun, 2011 1 commit
    • target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to common/common-target-def.h. · 677f3fa8
      	* target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
      	common/common-target-def.h.
      	* target.def (default_target_flags, handle_option,
      	supports_split_stack, optimization_table, init_struct,
      	except_unwind_info, unwind_tables_default, have_named_sections):
      	Move to common/common-target.def.
      	* target.h (enum opt_levels, struct default_options): Move to
      	common/common-target.h.
      	* targhooks.c (default_except_unwind_info,
      	dwarf2_except_unwind_info, sjlj_except_unwind_info,
      	default_target_handle_option, empty_optimization_table): Move to
      	common/common-targhooks.c.
      	* targhooks.h (default_except_unwind_info,
      	dwarf2_except_unwind_info, sjlj_except_unwind_info,
      	default_target_handle_option, empty_optimization_table): Move to
      	common/common-targhooks.h.
      	* common/common-target-def.h: Include common/common-targhooks.h.
      	(TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
      	defined.
      	* common/common-target.def (handle_option, option_init_struct,
      	option_optimization_table, default_target_flags,
      	except_unwind_info, supports_split_stack, unwind_tables_default,
      	have_named_sections): Move from target.def.
      	(HOOK_PREFIX): Undefine at end of file.
      	* common/common-target.h: Include input.h.
      	(enum opt_levels, struct default_options): Move from target.h.
      	* common/common-targhooks.c, common/common-targhooks.h: New.
      	* config.gcc (target_has_targetm_common): Default to yes.
      	(moxie*): Set target_has_targetm_common=no.
      	(hppa*-*-*): Don't set target_has_targetm_common=yes.
      	* doc/tm.texi: Regenerate.
      	* Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
      	(C_TARGET_DEF_H): Add common/common-targhooks.h.
      	(GCC_OBJS): Remove vec.o.
      	(OBJS): Remove hooks.o and vec.o.
      	(OBJS-libcommon-target): Add vec.o, hooks.o and
      	common/common-targhooks.o.
      	(c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
      	tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
      	expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
      	cfglayout.o, $(out_object_file), $(common_out_object_file)):
      	Update dependencies.
      	(common/common-targhooks.o): New.
      	* common/config/default-common.c: Include tm.h.  Add FIXME
      	comment.
      	* common/config/pa/pa-common.c: Include more headers.  Take
      	copyright dates from pa.c.
      	(pa_option_optimization_table, pa_handle_option,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_HANDLE_OPTION): Move from pa.c.
      	* common/config/alpha/alpha-common.c,
      	common/config/arm/arm-common.c, common/config/avr/avr-common.c,
      	common/config/bfin/bfin-common.c,
      	common/config/cris/cris-common.c,
      	common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
      	common/config/h8300/h8300-common.c,
      	common/config/i386/i386-common.c,
      	common/config/ia64/ia64-common.c,
      	common/config/iq2000/iq2000-common.c,
      	common/config/lm32/lm32-common.c,
      	common/config/m32c/m32c-common.c,
      	common/config/m32r/m32r-common.c,
      	common/config/m68k/m68k-common.c,
      	common/config/mcore/mcore-common.c,
      	common/config/mep/mep-common.c,
      	common/config/microblaze/microblaze-common.c,
      	common/config/mips/mips-common.c,
      	common/config/mmix/mmix-common.c,
      	common/config/mn10300/mn10300-common.c,
      	common/config/pdp11/pdp11-common.c,
      	common/config/picochip/picochip-common.c,
      	common/config/rs6000/rs6000-common.c,
      	common/config/rx/rx-common.c, common/config/s390/s390-common.c,
      	common/config/score/score-common.c, common/config/sh/sh-common.c,
      	common/config/sparc/sparc-common.c,
      	common/config/spu/spu-common.c, common/config/v850/v850-common.c,
      	common/config/vax/vax-common.c,
      	common/config/xstormy16/xstormy16-common.c,
      	common/config/xtensa/xtensa-common.c: New.
      	* config/alpha/alpha.c: Include common/common-target.h.
      	(alpha_option_optimization_table, alpha_handle_option,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
      	* config/arm/arm-protos.h (arm_except_unwind_info): Declare.
      	* config/arm/arm.c (arm_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
      	arm-common.c.
      	* config/avr/avr.c (avr_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
      	to avr-common.c.
      	* config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
      	(bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
      	TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
      	* config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
      	* config/cris/cris.c (cris_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
      	cris-common.c.
      	* config/fr30/fr30.c (fr30_option_optimization_table,
      	TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
      	to fr30-common.c.
      	* config/frv/frv.c (frv_option_optimization_table,
      	MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
      	* config/h8300/h8300.c (h8300_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
      	* config/i386/i386-protos.h (ix86_handle_option): Declare.
      	* config/i386/i386.c: Include common/common-target.h.
      	(OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
      	OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
      	OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
      	OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
      	OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
      	OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
      	OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
      	OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
      	OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
      	OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
      	OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
      	OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
      	OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
      	OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
      	OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
      	OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
      	OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
      	OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
      	OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
      	OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
      	OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
      	OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
      	OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
      	OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
      	OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
      	OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
      	OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
      	OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
      	OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
      	ix86_option_optimization_table, ix86_option_init_struct,
      	ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
      	i386-common.c.
      	* config/i386/t-i386 (i386.o): Update dependencies.
      	* config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
      	* config/ia64/ia64.c (ia64_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	ia64_handle_option): Move to ia64-common.c.
      	* config/iq2000/iq2000.c (iq2000_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
      	* config/lm32/lm32.c (lm32_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
      	to lm32-common.c.
      	* config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
      	m32c-common.c.
      	* config/m32r/m32r.c (m32r_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
      	m32r_handle_option): Move to m32r-common.c.
      	(m32r_memory_move_cost): Remove comment referring to
      	TARGET_HANDLE_OPTION.
      	* config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
      	Move to m68k-common.c.
      	* config/mcore/mcore.c (mcore_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
      	* config/mep/mep.c (mep_option_optimization_table,
      	mep_handle_option, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
      	Move to mep-common.c.
      	* config/microblaze/microblaze.c
      	(microblaze_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
      	* config/mips/mips.c (mips_handle_option,
      	mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
      	mips-common.c.
      	* config/mmix/mmix.c (mmix_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
      	Move to mmix-common.c.
      	* config/mn10300/mn10300.c (mn10300_option_optimization_table,
      	mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
      	* config/pa/pa.c: Include common/common-target.h.
      	(pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	pa_handle_option): Move to pa-common.c.
      	(pa_option_override): Use targetm_common.except_unwind_info.
      	(pa_asm_output_mi_thunk, pa_function_section): Use
      	targetm_common.have_named_sections.
      	* config/pdp11/pdp11.c (pdp11_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
      	pdp11_handle_option, pdp11_option_init_struct): Move to
      	pdp11-common.c.
      	* config/picochip/picochip.c (picochip_option_optimization_table,
      	TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
      	* config/rs6000/rs6000.c: Include common/common-target.h.
      	(rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
      	rs6000_handle_option): Move to rs6000-common.c.
      	* config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
      	* config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
      	TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
      	* config/s390/s390.c (processor_flags_table,
      	s390_option_optimization_table, s390_option_init_struct,
      	s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
      	TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
      	* config/s390/s390.h (processor_flags_table): Declare.
      	* config/score/score.c (score_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
      	score_handle_option): Move to score-common.c.
      	* config/sh/sh.c (sh_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
      	sh_handle_option, sh_option_init_struct): Move to sh-common.c.
      	* config/sparc/sparc.c: Include common/common-target.h.
      	(sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
      	* config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
      	spu_option_init_struct): Move to spu-common.c.
      	* config/stormy16/stormy16.c (xstorym16_option_optimization_table,
      	TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
      	* config/v850/v850.c (small_memory_physical_max,
      	v850_handle_memory_optionn v850_handle_option,
      	v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
      	TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
      	v850-common.c.
      	* config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to
      	vax-common.c.
      	* config/xtensa/xtensa.c (xtensa_option_optimization_table,
      	TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
      	Move to xtensa-common.c.
      	* cfglayout.c: Include common/common-target.h.
      	(fixup_reorder_chain): Use targetm_common.have_named_sections.
      	* cfgrtl.c: Include common/common-target.h.
      	(force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
      	targetm_common.have_named_sections.
      	* dbxout.c: Include common/common-target.h.
      	(dbxout_function_end): Use targetm_common.have_named_sections.
      	* defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
      	targetm_common.except_unwind_info.
      	* dwarf2out.c: Include common/common-target.h.
      	(dwarf2out_do_frame, dwarf2out_do_cfi_asm,
      	dwarf2out_begin_prologue, dwarf2out_frame_init,
      	dwarf2out_frame_finish, dwarf2out_assembly_start): Use
      	targetm_common.except_unwind_info.
      	* except.c: Include common/common-target.h.
      	(init_eh, finish_eh_generation,
      	output_one_function_exception_table): Use
      	targetm_common.except_unwind_info.
      	(switch_to_exception_section): Use
      	targetm_common.have_named_sections.
      	* explow.c: Include common/common-target.h.
      	* expr.c: Include common/common-target.h.
      	(build_personality_function): Use
      	targetm_common.except_unwind_info.
      	* function.c: Include common/common-target.h.
      	(expand_function_end): Use targetm_common.except_unwind_info.
      	* haifa-sched.c: Include common/common-target.h.
      	(sched_create_recovery_edges): Use
      	targetm_common.have_named_sections.
      	* lto-opts.c: Include common/common-target.h instead of target.h.
      	(lto_reissue_options): Use targetm_common.handle_option.
      	* opts.c: Include common/common-target.h.
      	(target_handle_option): Use targetm_common.handle_option.
      	(init_options_struct): Update comment referring to
      	targetm.target_option.optimization.  Use
      	targetm_common.default_target_flags,
      	targetm_common.unwind_tables_default and
      	targetm_common.option_init_struct.
      	(default_options_optimization): Use
      	targetm_common.option_optimization_table.
      	(finish_options): Use targetm_common.except_unwind_info,
      	targetm_common.unwind_tables_default,
      	targetm_common.have_named_sections and
      	targetm_common.supports_split_stack.
      	* toplev.c: Include common/common-target.h.
      	(process_options): Use targetm_common.have_named_sections.
      	* tree-tailcall.c: Include common/common-target.h.
      	(suitable_for_tail_call_opt_p): Use
      	targetm_common.except_unwind_info.
      	* tree.c: Include common/common-target.h.
      	(build_common_builtin_nodes): Use
      	targetm_common.except_unwind_info.
      	* varasm.c: Include common/common-target.h.
      	(resolve_unique_section, hot_function_section,
      	default_function_section): Use targetm_common.have_named_sections.
      
      ada:
      	* gcc-interface/Make-lang.in (gnatbind$(exeext)): Use ggc-none.o.
      	(ada/utils.o): Update dependencies.
      	* gcc-interface/Makefile.in (EXTRA_GNATTOOLS_OBJS): Add
      	../../../libcpp/libcpp.a.
      	* gcc-interface/utils.c: Include common/common-target.h.
      	(process_attributes): Use targetm_common.have_named_sections.
      
      c-family:
      	* c-common.c: Include common/common-target.h.
      	(handle_section_attribute): Use
      	targetm_common.have_named_sections.
      	* c-cppbuiltin.c: Include common/common-target.h.
      	(c_cpp_builtins): Use targetm_common.except_unwind_info.
      
      cp:
      	* Make-lang.in (cp/method.o): Update dependencies.
      	* method.c: Include common/common-target.h.
      	(use_thunk): Use targetm_common.have_named_sections.
      
      go:
      	* Make-lang.in (go/go-lang.o, go/go-backend.o): Update
      	dependencies.
      	* go-backend.c: Include common/common-target.h.
      	(go_write_export_data): Use targetm_common.have_named_sections.
      	* go-lang.c: Include common/common-target.h.
      	(go_langhook_init_options_struct): Use
      	targetm_common.supports_split_stack.
      
      po:
      	* exgettext: Handle common/ directory and subdirectories.
      
      From-SVN: r175064
      Joseph Myers committed
  22. 29 Nov, 2010 1 commit
    • system.h: Include "safe-ctype.h" instead of <safe-ctype.h>. · 71f3e391
      	* system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
      	Include <signal.h>, <sys/mman.h>, <sys/resource.h> and
      	<sys/times.h>.
      	(O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
      	Conditionally define.
      	(GET_ENVIRONMENT): Poison.
      	* configure.ac: Don't test for mincore.
      	* configure: Regenerate.
      	* config.in: Regenerate.
      	* collect2-aix.c: Don't include <sys/mman.h>.
      	* collect2.c: Don't include <signal.h>.
      	(SIGCHLD): Don't define.
      	(prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
      	* config/alpha/alpha.c: Include "splay-tree.h" instead of
      	<splay-tree.h>.
      	* config/arm/arm.c (arm_target_help): Use getenv instead of
      	GET_ENVIRONMENT.
      	* config/avr/driver-avr.c: Don't include <stdlib.h>.
      	* config/frv/frv.c: Don't include <ctype.h>.
      	* config/host-darwin.c: Don't include <sys/mman.h>.
      	* config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
      	(MAP_FAILED): Don't define.
      	* config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
      	* config/host-solaris.c: Don't include <sys/mman.h>.
      	* config/i386/cygming.h: Don't include <stdio.h>.
      	* config/i386/driver-i386.c: Don't include <stdlib.h>.
      	* config/i386/host-cygwin.c: Don't include <sys/mman.h>.
      	* config/iq2000/iq2000.c: Don't include <signal.h>.
      	* config/m32c/m32c-pragma.c: Don't include <stdio.h>.
      	* config/m68hc11/m68hc11.c: Don't include <stdio.h>.
      	* config/mep/mep-pragma.c: Don't include <stdio.h>.
      	* config/microblaze/microblaze.c: Don't include <signal.h>.
      	* config/mips/mips.c: Don't include <signal.h>.
      	* config/rs6000/host-darwin.c: Don't include <signal.h>.
      	* cppdefault.c (cpp_relocated): Use getenv instead of
      	GET_ENVIRONMENT.
      	* defaults.h (GET_ENVIRONMENT): Don't define.
      	* et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
      	* gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
      	(SIGCHLD, MAP_FAILED, kill): Don't define.
      	(process_command): Use getenv instead of GET_ENVIRONMENT.
      	* genhooks.c: Don't include <string.h>.
      	* ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
      	<sys/types.h>.
      	(MAP_FAILED): Don't define.
      	* ggc-page.c Don't include <sys/mman.h>.
      	(MAP_ANONYMOUS, MAP_FAILED): Don't define.
      	* ggc-zone.c: Don't include <sys/mman.h>.
      	(MAP_ANONYMOUS, MAP_FAILED): Don't define.
      	* graph.c: Include "config.h" instead of <config.h>.
      	* incpath.c (add_env_var_paths): Use getenv instead of
      	GET_ENVIRONMENT.
      	* lto-wrapper.c: Don't include <errno.h>, <signal.h> or
      	"libiberty.h".
      	(SIGCHLD, kill): Don't define.
      	* mips-tfile.c: Don't include <signal.h>.
      	* opts.c: Don't include <signal.h> or <sys/resource.h>.
      	(print_specific_help): Use getenv instead of GET_ENVIRONMENT.
      	* passes.c: Don't include <signal.h>, <sys/resource.h> or
      	<sys/times.h>.
      	* sparseset.h: Don't include <assert.h>.
      	* timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
      	* tlink.c: Don't include "libiberty.h".
      	* toplev.c: Don't include <signal.h> or <sys/times.h>.
      	* tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
      	* tree-switch-conversion.c: Don't include <signal.h>.
      	* vmsdbgout.c: Don't include <errno.h> or <string.h>.
      
      c-family:
      	* c-opts.c (check_deps_environment_vars): Use getenv instead of
      	GET_ENVIRONMENT.
      	* c-pch.c (O_BINARY): Don't define here.
      	* c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
      
      fortran:
      	* gfortran.h (alloca): Don't include definitions.
      	(NULL): Don't define.
      
      java:
      	* boehm.c: Include "config.h" instead of <config.h>.
      	* builtins.c: Don't include <stdarg.h>.
      	* class.c: Don't include "stdio.h".
      	(O_BINARY): Don't define here.
      	* jcf-depend.c: Don't include <assert.h>.
      	(jcf_dependency_set_dep_file, jcf_dependency_init,
      	jcf_dependency_write): Use gcc_assert.
      	* jcf-io.c (O_BINARY): Don't define here.
      	* jcf-path.c: Don't include "tm.h".
      	(jcf_path_init): Use getenv instead of GET_ENVIRONMENT.
      	* resource.c: Don't include "stdio.h".
      	(O_BINARY): Don't define here.
      	* verify-impl.c: Don't include <stdio.h>.
      
      lto:
      	* lto-endian.h: Delete.
      	* lto-object.c: Don't include "libiberty.h".
      	(O_BINARY): Don't define.
      	* lto.c: Don't include "libiberty.h" or <sys/mman.h>.
      	(O_BINARY): Don't define.
      
      From-SVN: r167241
      Joseph Myers committed
  23. 25 Nov, 2010 1 commit
    • target.def (supports_split_stack, [...]): Take gcc_options parameters. · d5fabb58
      	* target.def (supports_split_stack, except_unwind_info): Take
      	gcc_options parameters.
      	* targhooks.c (default_except_unwind_info,
      	dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
      	gcc_options parameters.
      	* targhooks.h (default_except_unwind_info,
      	dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
      	prototypes.
      	* doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
      	TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
      	Document that hooks must not be modified.
      	(TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
      	* doc/tm.texi: Regenerate.
      	* defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
      	&global_options to targetm.except_unwind_info.
      	* dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
      	dwarf2out_begin_prologue, dwarf2out_frame_init,
      	dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
      	&global_options to targetm.except_unwind_info.
      	* except.c (init_eh, finish_eh_generation,
      	gate_convert_to_eh_region_ranges,
      	output_one_function_exception_table): Pass &global_options to
      	targetm.except_unwind_info.
      	* expr.c (build_personality_function): Pass &global_options to
      	targetm.except_unwind_info.
      	* function.c (expand_function_end): Pass &global_options to
      	targetm.except_unwind_info.
      	* hooks.c (hook_bool_bool_gcc_optionsp_false): New.
      	* hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
      	* opts.c (finish_options): Pass opts to targetm.except_unwind_info
      	and targetm.supports_split_stack.  Remove assertions about opts
      	and opts_set.
      	(common_handle_option): Remove assertions about opts, opts_set and
      	dc.
      	* tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
      	&global_options to targetm.except_unwind_info.
      	* tree.c (build_common_builtin_nodes: Pass &global_options to
      	targetm.except_unwind_info.
      	* config/arm/arm.c (arm_except_unwind_info): Add gcc_options
      	parameter.
      	(arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
      	thumb1_expand_prologue, thumb1_output_function_prologue,
      	arm_unwind_emit, arm_output_fn_unwind): Update calls to
      	arm_except_unwind_info.
      	* config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
      	parameter.
      	* config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
      	parameter.
      	(ia64_output_function_prologue, ia64_add_bundle_selector_before,
      	ia64_reorg, ia64_asm_unwind_emit): Update calls to
      	ia64_except_unwind_info.
      	* config/pa/pa.c (pa_option_override): Pass &global_options to
      	targetm.except_unwind_info.
      	* config/picochip/picochip-protos.h (picochip_except_unwind_info):
      	Remove prototype.
      
      c-family:
      	* c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
      	targetm.except_unwind_info.
      
      From-SVN: r167145
      Joseph Myers committed
  24. 23 Nov, 2010 1 commit
    • tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro. · f16d3f39
      	* tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
      	(tree_decl_with_vis): Add implicit_section_name_p.
      	* targhooks.h (default_function_section): Declare.
      	* target.def (function_section): New hook.
      	* defaults.h (HOT_TEXT_SECTION_NAME,
      	UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
      	* predict.c (choose_function_section): Remove.
      	(estimate_bb_frequencies): Do not use choose_function_section.
      	* coretypes.h (enum node_frequency): Move here from cgraph.h
      	* cgraph.h (enum node_frequency): Remove.
      	* varasm.c (initialize_cold_section_name, unlikely_text_section,
      	unlikely_text_section_p): Remove.
      	(named_subsection_entry): New structure.
      	(get_text_section): New function.
      	(default_function_section): New function.
      	(function_section_1): Break out from ...; handle profile info.
      	(function_section): ... here.
      	(unlikely_text_section): Remove.
      	(unlikely_text_section_p): Use function_section_1.
      	(assemble_start_function): Do not initialize cold section.
      	(default_section_type_flags): Do not special case cold subsection.
      	(switch_to_section): Likewise.
      	* output.h (get_text_section): Define.
      	* config/i386/winnt.c: Do not special case cold section.
      	* config/darwin-protos.h (darwin_function_section): Declare.
      	* config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
      	UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
      	* config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
      	UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
      	(TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
      	* config/ia64/ia64.c (ia64_hpux_function_section): New function.
      	* config/darwin.c (machopic_select_section): Use
      	darwin_function_section.
      	(darwin_function_section): New function.
      	* config/darwin.h (HOT_TEXT_SECTION_NAME,
      	UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
      	(TARGET_ASM_FUNCTION_SECTION): Define.
      	* system.h (HOT_TEXT_SECTION_NAME,
      	UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
      
      From-SVN: r167085
      Jan Hubicka committed
  25. 16 Nov, 2010 1 commit
    • builtins.c (std_gimplify_va_arg_expr): Use targetm.calls.function_arg_boundary. · c2ed6cf8
      	* builtins.c (std_gimplify_va_arg_expr): Use
      	targetm.calls.function_arg_boundary.
      	* function.c (assign_parms, locate_and_pad_parm): Likewise.
      	* calls.c (struct arg_data): Update comment.
      	* defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* target.def (function_arg_boundary): Define.
      	* targhooks.h (default_function_arg_boundary): Declare.
      	* targhooks.c (default_function_arg_boundary): Define.
      	* doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
      	TARGET_FUNCTION_ARG_BOUNDARY.
      	(FUNCTION_ARG_BOUNDARY): Delete.
      	(TARGET_FUNCTION_ARG_BOUNDARY): New.
      	* doc/tm.texi: Regenerate.
      	* system.h (FUNCTION_ARG_BOUNDARY): Poison.
      	* config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/arc/arc.c (arc_function_arg_boundary): Define.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
      	* config/arm/arm.c (arm_needs_doubleword_align): Make static.
      	(arm_function_arg_boundary): Define.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
      	* config/frv/frv.c (frv_function_arg_boundary): Make static.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
      	* config/i386/i386.c (ix86_function_arg_boundary): Make static.
      	(ix86_compat_function_arg_boundary): Take and return unsigned int.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
      	* config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/m32c/m32c.c (m32c_function_arg_boundary): Define.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/mcore/mcore.c (mcore_function_arg_boundary): Define.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
      	* config/mips/mips.c (mips_function_arg_boundary): Make static.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/pa/pa.c (pa_function_arg_boundary): Define.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/picochip/picochip-protos.h
      	(picochip_get_function_arg_boundary): Delete.
      	* config/picochip/picochip.c (picochip_get_function_arg_boundary):
      	Rename to...
      	(picochip_function_arg_boundary): ...this.  Make static.
      	(picochip_function_arg, picochip_arg_partial_bytes): Adjust.
      	(picochip_arg_advance): Adjust.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
      	* config/rs6000/rs6000.c (function_arg_boundary): Rename to...
      	(rs6000_function_arg_boundary): ...this.  Make static.
      	(rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/rx/rx.c (rx_function_arg_boundary): Define.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/sparc/sparc.c (sparc_function_arg_boundary): Define.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      	* config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
      	* config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
      	* config/xtensa/xtensa.c (function_arg_boundary): Rename to...
      	(xtensa_function_arg_boundary): ...this.  Make static.
      	(TARGET_FUNCTION_ARG_BOUNDARY): Define.
      
      From-SVN: r166803
      Nathan Froyd committed
  26. 05 Nov, 2010 1 commit
    • defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG, [...]): Remove. · c243beb0
      	* defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
      	WORD_SWITCH_TAKES_ARG): Remove.
      	* doc/options.texi (Args): Document.
      	* doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
      	* doc/tm.texi: Regenerate.
      	* opt-functions.awk (switch_flags): Handle Args.
      	* opts-common.c: Update comment on tm.h include.
      	(decode_cmdline_option): Handle options with multiple arguments.
      	Don't check WORD_SWITCH_TAKES_ARG for unknown options.
      	* opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK):
      	Define.
      	(CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
      	CL_COMMON): Update values.
      	* system.h (WORD_SWITCH_TAKES_ARG): Poison.
      	* config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
      	* config/darwin.opt (Zsegaddr, sectalign, sectcreate,
      	sectobjectsymbols, sectorder, segcreate, segprot): New.
      
      From-SVN: r166359
      Joseph Myers committed
  27. 01 Nov, 2010 2 commits
    • common.opt (R, [...]): New. · 6d721f67
      	* common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
      	* defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
      	(DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
      	* doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
      	(WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
      	Document that options in .opt files do not need to be included.
      	* doc/tm.texi: Regenerate.
      	* gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
      	* opts-common.c: Update comment on tm.h include.
      	(decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
      	* system.h (SWITCH_TAKES_ARG): Poison.
      	* config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
      	* config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
      	in darwin.opt.
      	(LINK_COMMAND_SPEC_A): Don't include %{x}.
      	* config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG):
      	Remove.
      	* config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
      	* config/freebsd.h (SWITCH_TAKES_ARG): Remove.
      	* config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG):
      	Remove.
      	* config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
      	* config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
      	* config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T
      	options.
      	* config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
      	* config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG):
      	Remove.
      	* config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
      	* config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
      	* config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
      	* config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
      	* config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
      	* config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
      	* config/openbsd.h (SWITCH_TAKES_ARG): Remove.
      	* config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
      	* config/score/score.h (SWITCH_TAKES_ARG): Remove.
      	* config/sol2.h (SWITCH_TAKES_ARG): Remove.
      	* config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
      	* config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
      	* config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
      	* config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
      
      From-SVN: r166155
      Joseph Myers committed
    • defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef GCC_INSN_FLAGS_H. · 7894073c
      2010-11-01  Steve Ellcey  <sje@cup.hp.com>
      
      	* defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
      	GCC_INSN_FLAGS_H.
      	* libgcov.c (__gcov_indirect_call_profiler): Set
      	VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
      	defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
      
      From-SVN: r166145
      Steve Ellcey committed
  28. 11 Oct, 2010 1 commit
    • re PR middle-end/45862 (SUPPORTS_WEAK is documented as a C expression, used as a… · 74b90fe2
      re PR middle-end/45862 (SUPPORTS_WEAK is documented as a C expression, used as a compile time constant)
      
      	PR middle-end/45862
      	* doc/tm.texi.in (SUPPORTS_WEAK): Update.
      	(TARGET_SUPPORTS_WEAK): New.
      	* doc/tm.texi: Regenerate.
      	* defaults.h (SUPPORTS_WEAK): Update comment.
      	(TARGET_SUPPORTS_WEAK): New.
      	* dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
      	* varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
      	SUPPORTS_WEAK.
      	(merge_weak, declare_weak, do_assemble_alias, supports_one_only,
      	make_decl_one_only): Likewise.
      	* config/pa/som.h (SUPPORTS_WEAK): Rename defines to
      	TARGET_SUPPORTS_WEAK.
      	(SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
      	instead of SUPPORTS_WEAK.
      
      From-SVN: r165319
      John David Anglin committed
  29. 28 Sep, 2010 1 commit
  30. 14 Sep, 2010 1 commit
    • Turn UNITS_PER_SIMD_WORD into a target hook. · 26983c22
      2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* defaults.h (UNITS_PER_SIMD_WORD): Removed.
      	* config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
      	* config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
      	* config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
      	* config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
      	* config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
      
      	* target.def: Add units_per_simd_word to vectorize.
      
      	* targhooks.c (default_units_per_simd_word): New.
      	* targhooks.h (default_units_per_simd_word): Likewise.
      	* config/arm/arm.c (arm_units_per_simd_word): Likewise.
      	(TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
      	* config/mips/mips.c (mips_units_per_simd_word): Likewise.
      	(TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
      	* config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
      	(TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
      	* config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
      	(TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
      
      	* tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
      	TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
      
      	* tree-vect-stmts.c (get_vectype_for_scalar_type): Replace
      	UNITS_PER_SIMD_WORD with targetm.vectorize.units_per_simd_word.
      
      	* system.h (UNITS_PER_SIMD_WORD): Poisoned.
      
      	* config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
      
      	* config/i386/i386.c (ix86_units_per_simd_word): Make it
      	static.
      	(TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
      
      	* doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
      	TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
      
      	* doc/tm.texi: Regenerated.
      
      From-SVN: r164285
      H.J. Lu committed
  31. 09 Sep, 2010 1 commit
    • configure.ac (gnu_indirect_function): New test. · ba885ec5
      	* configure.ac (gnu_indirect_function): New test.
      	* configure: Rebuilt.
      	* config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
      	* defaults.h (IFUNC_ASM_TYPE): Provide default.
      
      	* doc/extend.texi (Function Attributes): Document ifunc.
      	* varasm.c (do_assemble_alias): Deal with ifuncs too.
      
      	c-family/
      	* c-common.c (handle_alias_ifunc_attribute): New, broken out of	...
      	(handle_alias_attribute): ... here.
      	(handle_ifunc_attribute): New.
      
      	testsuite/
      	* lib/target-supports-dg.exp (dg-require-ifunc): New.
      	* lib/target-supports.exp (check_ifunc_available): New.
      	* gcc.dg/attr-ifunc-1.c: New.
      	* gcc.dg/attr-ifunc-2.c: New.
      	* gcc.dg/attr-ifunc-3.c: New.
      	* gcc.dg/attr-ifunc-4.c: New.
      	* gcc.dg/attr-ifunc-5.c: New.
      	* testsuite/g++.dg/ext/attr-ifunc-1.C
      	* testsuite/g++.dg/ext/attr-ifunc-2.C
      	* testsuite/g++.dg/ext/attr-ifunc-3.C
      	* testsuite/g++.dg/ext/attr-ifunc-4.C
      
      From-SVN: r164110
      Nathan Sidwell committed
  32. 03 Sep, 2010 1 commit
    • options.texi (SeparateAlias): Document. · d1583032
      	* doc/options.texi (SeparateAlias): Document.
      	* opt-functions.awk (switch_flags): Handle SeparateAlias.
      	* opth-gen.awk: Generate enumeration names for options marked
      	SeparateAlias, but not for those marked Ignore.
      	* opts-common.c (generate_canonical_option): Don't output separate
      	argument for options marked CL_SEPARATE_ALIAS.
      	(decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
      	* opts.h (CL_SEPARATE_ALIAS): New.
      	(CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
      	CL_COMMON): Adjust definitions.
      	* config/i386/darwin.opt, config/mips/sde.opt: New.
      	* common.opt (fdump-final-insns): New.
      	* config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
      	i386/darwin.opt.
      	(mips*-sde-elf*): Add mips/sde.opt.
      	* config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
      	-mno-data-in-code and -mcode-xonly here.
      	* defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
      	* gcc.c (option_map): Add "j" to --dump entry.
      	(translate_options): Don't translate -d to -foutput-class-dir=
      	here.
      
      java:
      	* lang.opt (d): New.
      
      testsuite:
      	* gcc.dg/opts-4.c: New test.
      
      From-SVN: r163844
      Joseph Myers committed
  33. 20 Aug, 2010 1 commit
    • tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to be zero or nonzero. · f8fe0a4a
      2010-08-20  Joseph Myers  <joseph@codesourcery.com>
      
      	gcc/
      	* doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
      	be zero or nonzero.
      	* doc/tm.texi: Regenerate.
      	* defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
      	* df-scan.c (df_get_exit_block_use_set), reginfo.c
      	(init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
      	Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
      	* config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
      	to 1.
      
      From-SVN: r163399
      Joseph Myers committed
  34. 03 Aug, 2010 1 commit
    • alpha.h (SWITCH_TAKES_ARG): Define. · 1890bccc
      	* config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
      	* config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
      	* config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G*
      	options.
      	* config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
      	* config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
      	* config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
      	* config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
      	DEFAULT_SWITCH_TAKES_ARG.
      	* config/rx/rx.opt (-patch=): Remove option.
      	* config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
      	* defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
      	* doc/invoke.texi (RX Options): Remove -patch=.
      	* gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
      	(option_map): Remove --profile-blocks, --quiet and --silent.
      
      ada:
      	* gcc-interface/lang-specs.h: Don't pass -a options.
      
      c-family:
      	* c.opt (-print-pch-checksum): Remove option.
      	* c-opts.c (c_common_handle_option): Don't handle
      	OPT_print_pch_checksum.
      
      From-SVN: r162838
      Joseph Myers committed
  35. 28 Jul, 2010 1 commit
    • darwin-driver.c (SWITCH_TAKES_ARG, [...]): Remove. · eea13ead
      	* config/darwin-driver.c (SWITCH_TAKES_ARG,
      	WORD_SWITCH_TAKES_ARG): Remove.
      	* cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
      	* defaults.h (DEFAULT_SWITCH_TAKES_ARG,
      	DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
      	(SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
      	definitions from gcc.c.
      	* gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
      	defaults.h.
      	* gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
      	Move to defaults.h.
      	* opts-common.c: Include tm.h.
      	(decode_cmdline_option): Use SWITCH_TAKES_ARG and
      	WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
      	Handle more than one argument.  Set canonical_option_num_elements.
      	(decode_cmdline_options_to_array): Set
      	canonical_option_num_elements and trailing elements of
      	canonical_option.
      	* opts.h (struct cl_decoded_option): Allow four elements in
      	canonical_option.  Add field canonical_option_num_elements.
      	* Makefile.in (opts-common.o): Update dependencies.
      
      ada:
      	* gcc-interface/misc.c (gnat_init_options): Ignore erroneous
      	options.  Check canonical_option_num_elements on options copied.
      
      fortran:
      	* gfortranspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG):
      	Remove.
      
      From-SVN: r162620
      Joseph Myers committed
  36. 13 Jul, 2010 1 commit
  37. 12 Jul, 2010 1 commit
    • defaults.h (MAX_MOVE_MAX, [...]): Define if not defined. · bcbaaba1
      gcc/
      	* defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
      	* libgcc2.c (MIN_UNITS_PER_WORD): Delete.
      	* hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
      	(no_caller_save_reg_set): Redefine as a macro.
      	* reload.h (target_reload): Add x_caller_save_initialized_p and
      	x_regno_save_mode.
      	(caller_save_initialized_p): Redefine as a macro.
      	* caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
      	(MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
      	(regno_save_mode): Redefine as a macro.
      
      From-SVN: r162095
      Richard Sandiford committed