1. 06 May, 2014 1 commit
  2. 02 Jan, 2014 1 commit
  3. 21 Nov, 2013 1 commit
  4. 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
  5. 10 Jan, 2013 1 commit
  6. 21 May, 2010 1 commit
    • real: Do not include gmp.h, mpfr.h, and mpc.h. · d49b6e1e
      gcc/ChangeLog:
      	* real: Do not include gmp.h, mpfr.h, and mpc.h.
      	(REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
      	(real_value_negate, real_value_abs): New prototypes.
      	(do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
      	* realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
      	new include file for interface between MPFR and REAL_VALUE_TYPE.
      	* real.c: Include realmpfr.h.
      	(real_arithmetic2): Remove legacy function.
      	(real_value_negate): New.
      	(real_value_abs): New.
      	(mfpr_from_real, real_from_mpfr): Move from here...
      	* realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
      	* builtins.c: Include realmpfr.h.
      	* fold-const.c: Include realmpfr.h.
      	(fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
      	(fold_negate_const): Likewise.
      	(fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
      	* toplev.c: Include realmpfr.h.
      	* simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
      	and real_value_negate.
      	* fixed-value.c (check_real_for_fixed_mode): Likewise.
      	* config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
      	(vfp3_const_double_index): Likewise.
      	(arm_print_operand): Likewise.
      	* Makefile.in: Update dependencies.
      
      fortran/ChangeLog:
      	* trans-const.c: Include realmpfr.h.
      	* Make-lang.in: Update dependencies.
      
      From-SVN: r159679
      Steven Bosscher committed
  7. 05 Jan, 2010 1 commit
    • re PR bootstrap/41771 (Bootstrap with Sun Studio 12.1 fails) · 6a4d4e8a
      	gcc:
      	PR bootstrap/41771
      	* flags.h: Don't include real.h.
      	(HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
      	HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
      	* real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
      	HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
      	* dominance.c: Update copyright.
      	* gimple.c (walk_gimple_op): Remove inline.
      	* tree-ssa-reassoc.c: Include real.h.
      	* Makefile.in (FLAGS_H): Remove $(REAL_H).
      	(tree-ssa-reassoc.o): Depend on $(REAL_H).
      
      	include:
      	PR bootstrap/41771
      	* ansidecl.h: Fix inline test for C99 and Sun Studio cc.
      
      From-SVN: r155654
      Rainer Orth committed
  8. 07 Dec, 2009 1 commit
  9. 14 Oct, 2009 1 commit
  10. 20 Sep, 2009 1 commit
    • re PR middle-end/30789 (complex folding inexact) · ca75b926
      	PR middle-end/30789
      	* builtins.c (do_mpc_arg2): Accept DO_NONFINITE parameter.
      	(do_mpc_ckconv): Accept FORCE_CONVERT parameter.
      	(fold_builtin_2, do_mpc_arg1): Update accordingly.
      	* fold-const.c (const_binop): Likewise.
      	* real.h (do_mpc_arg2): Update prototype.
      
      testsuite:
      	* gcc.dg/torture/builtin-math-7.c: Update for testing Annex G
      	cases in static initializers.
      
      From-SVN: r151904
      Kaveh R. Ghazi committed
  11. 14 Aug, 2009 1 commit
    • re PR middle-end/30789 (complex folding inexact) · 2f440f6a
      	PR middle-end/30789
      
      	* builtins.c (do_mpc_arg2): Make extern, define for any MPC
      	version.  Move declaration...
      	* real.h (do_mpc_arg2): ... here.
      	* fold-const.c (const_binop): Use MPC for complex MULT_EXPR
      	and RDIV_EXPR.
      
      testsuite:
      	* gcc.dg/torture/builtin-math-7.c: New.
      
      From-SVN: r150760
      Kaveh R. Ghazi committed
  12. 16 Jul, 2009 1 commit
    • builtins.c (do_mpc_arg2): New. · a41d064d
      	* builtins.c (do_mpc_arg2): New.
      	(fold_builtin_2): Fold builtin cpow.
      	* real.h (HAVE_mpc_pow): New.
      
      testsuite:
      	* gcc.dg/torture/builtin-math-5.c: Add more cases.
      	* gcc.dg/torture/builtin-math-6.c: Likewise.  Depend on
      	effective target "mpc_pow".
      	* lib/target-supports.exp (check_effective_target_mpc_pow): New.
      
      From-SVN: r149716
      Kaveh R. Ghazi committed
  13. 15 May, 2009 2 commits
    • builtins.c (do_mpc_arg1, [...]): New. · c128599a
      	* builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
      	(fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
      	Evaluate constant arguments.
      	(fold_builtin_carg): Ensure we get a complex REAL_TYPE.
      	(fold_builtin_1): Likewise, also evaluate constant arguments.
      	Remove superfluous break.
      	(do_mpc_ckconv): New.
      	* real.h: Include mpc.h.
      	* toplev.c (print_version): Output MPC version info if available.
      
      From-SVN: r147591
      Kaveh R. Ghazi committed
    • real.c (encode_ieee_half): Define. · ae63687c
      2009-05-15  Sandra Loosemore  <sandra@codesourcery.com>
      
      	gcc/
      	* real.c (encode_ieee_half): Define.
      	(decode_ieee_half): Define.
      	(ieee_half_format): Define.
      	(arm_half_format): Define.
      	* real.h (ieee_half_format): Declare.
      	(arm_half_format): Declare.
      
      From-SVN: r147579
      Sandra Loosemore committed
  14. 22 Apr, 2009 1 commit
    • hashtab.h: Update GTY annotations to new syntax · d1b38208
      2009-04-21  Taras Glek <tglek@mozilla.com>
      
      	* include/hashtab.h: Update GTY annotations to new syntax
      	* include/splay-tree.h: Likewise
      
      
      gcc/ChangeLog
      
      2009-04-21  Taras Glek <tglek@mozilla.com>
      
      	* alias.c: Update GTY annotations to new syntax
      	* basic-block.h: Likewise
      	* bitmap.h: Likewise
      	* c-common.h: Likewise
      	* c-decl.c: Likewise
      	* c-parser.c: Likewise
      	* c-pragma.c: Likewise
      	* c-tree.h: Likewise
      	* cfgloop.h: Likewise
      	* cgraph.h: Likewise
      	* config/alpha/alpha.c: Likewise
      	* config/arm/arm.h: Likewise
      	* config/avr/avr.h: Likewise
      	* config/bfin/bfin.c: Likewise
      	* config/cris/cris.c: Likewise
      	* config/darwin.c: Likewise
      	* config/frv/frv.c: Likewise
      	* config/i386/i386.c: Likewise
      	* config/i386/i386.h: Likewise
      	* config/i386/winnt.c: Likewise
      	* config/ia64/ia64.h: Likewise
      	* config/iq2000/iq2000.c: Likewise
      	* config/mips/mips.c: Likewise
      	* config/mmix/mmix.h: Likewise
      	* config/pa/pa.c: Likewise
      	* config/pa/pa.h: Likewise
      	* config/rs6000/rs6000.c: Likewise
      	* config/s390/s390.c: Likewise
      	* config/sparc/sparc.c: Likewise
      	* config/xtensa/xtensa.c: Likewise
      	* cselib.h: Likewise
      	* dbxout.c: Likewise
      	* dwarf2out.c: Likewise
      	* except.c: Likewise
      	* except.h: Likewise
      	* fixed-value.h: Likewise
      	* function.c: Likewise
      	* function.h: Likewise
      	* gimple.h: Likewise
      	* integrate.c: Likewise
      	* optabs.c: Likewise
      	* output.h: Likewise
      	* real.h: Likewise
      	* rtl.h: Likewise
      	* stringpool.c: Likewise
      	* tree-data-ref.c: Likewise
      	* tree-flow.h: Likewise
      	* tree-scalar-evolution.c: Likewise
      	* tree-ssa-address.c: Likewise
      	* tree-ssa-alias.h: Likewise
      	* tree-ssa-operands.h: Likewise
      	* tree.c: Likewise
      	* tree.h: Likewise
      	* varasm.c: Likewise
      	* varray.h: Likewise
      	* vec.h: Likewise
      	* coretypes.h: Do not define GTY macro if it is already defined
      	* doc/gty.texi: Update GTY documentation to new syntax
      	* gengtype-lex.l: Enforce attribute-like syntax for GTY annotations on structs
      	* gengtype-parse.c: Likewise
      
      
      gcc/ada/ChangeLog
      
      2009-04-21  Taras Glek <tglek@mozilla.com>
      
      	* gcc-interface/ada-tree.h: Update GTY annotations to new syntax
      	* gcc-interface/trans.c: Likewise
      	* gcc-interface/utils.c: Likewise
      
      
      gcc/cp/ChangeLog
      
      2009-04-21  Taras Glek <tglek@mozilla.com>
      
      	* cp-tree.h: Update GTY annotations to new syntax
      	* decl.c: Likewise
      	* mangle.c: Likewise
      	* name-lookup.c: Likewise
      	* name-lookup.h: Likewise
      	* parser.c: Likewise
      	* pt.c: Likewise
      	* rtti.c: Likewise
      	* semantics.c: Likewise
      	* typeck2.c: Likewise
      
      
      gcc/fortran/ChangeLog
      
      2009-04-21  Taras Glek <tglek@mozilla.com>
      
      	* f95-lang.c: Update GTY annotations to new syntax
      	* trans-intrinsic.c: Likewise
      	* trans-io.c: Likewise
      	* trans.h: Likewise
      
      
      gcc/java/ChangeLog
      
      2009-04-21  Taras Glek <tglek@mozilla.com>
      
      	* builtins.c: Update GTY annotations to new syntax
      	* decl.c: Likewise
      	* java-tree.h: Likewise
      	* jcf.h: Likewise
      	* lang.c: Likewise
      
      
      gcc/objc/ChangeLog
      
      2009-04-21  Taras Glek <tglek@mozilla.com>
      
      	* objc-act.c: Update GTY annotations to new syntax
      	* objc-act.h: Likewise
      
      
      libcpp/ChangeLog
      
      2009-04-21  Taras Glek <tglek@mozilla.com>
      
      	* include/cpp-id-data.h: Update GTY annotations to new syntax
      	* include/cpplib.h: Likewise
      	* include/line-map.h: Likewise
      	* include/symtab.h: Likewise
      
      From-SVN: r146607
      Taras Glek committed
  15. 29 Oct, 2008 1 commit
    • re PR middle-end/36578 (cast to long double not taken into account when result stored to a double) · 20ded7a6
      	PR middle-end/36578
      	* convert.c (convert_to_real): Do not optimize conversions of
      	binary arithmetic operations between binary and decimal
      	floating-point types.  Consider mode of target type in determining
      	decimal type for arithmetic.  Unless
      	flag_unsafe_math_optimizations, do not optimize binary conversions
      	where this may change rounding behavior.
      	* real.c (real_can_shorten_arithmetic): New.
      	* real.h (real_can_shorten_arithmetic): Declare.
      
      testsuite:
      	* gcc.dg/dfp/convert-bfp-13.c, gcc.dg/dfp/convert-bfp-14.c,
      	gcc.dg/dfp/convert-dfp-fold-2.c, gcc.target/i386/pr36578-1.c,
      	gcc.target/i386/pr36578-2.c: New tests.
      
      From-SVN: r141432
      Joseph Myers committed
  16. 18 Aug, 2008 1 commit
    • real.h (dconst_e, [...]): Declare. · 9c02cf68
      2008-08-18  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	* real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
      	dconst_third_ptr, dconst_sqrt2_ptr): Declare.
      	(enum real_value_const): Delete.
      	(get_real_const): Delete.
      	* real.c (get_real_const): Delete.
      	(dconst_e_ptr): Define.
      	(dconst_third_ptr): Define.
      	(dconst_sqrt2_ptr): Define.
      	* builtins.c: Update all callers.
      
      From-SVN: r139202
      Manuel López-Ibáñez committed
  17. 12 Aug, 2008 3 commits
    • real.h (struct real_format): New member has_sign_dependent_rounding. · 4099e2c2
      	* real.h (struct real_format): New member has_sign_dependent_rounding.
      	* real.c (ieee_single_format, mips_single_format, motorola_single_format,
      	spu_single_format, ieee_double_format, mips_double_format,
      	motorola_double_format, ieee_extended_motorola_format,
      	ieee_extended_intel_96_format, ieee_extended_intel_128_format,
      	ieee_extended_intel_96_round_53_format, ibm_extended_format,
      	mips_extended_format, ieee_quad_format, mips_quad_format,
      	vax_f_format, vax_d_format, vax_g_format): Initialize it.
      	* config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
      
      	* defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
      	MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
      	* config/spu/spu.h (MODE_HAS_NANS, MODE_HAS_INFINITIES,
      	MODE_HAS_SIGN_DEPENDENT_ROUNDING): Remove.
      	(ROUND_TOWARDS_ZERO): Likewise.
      
      	* real.h (REAL_MODE_FORMAT): Protect MODE against macro expansion.
      	(FLOAT_MODE_FORMAT): New macro.
      	(REAL_MODE_FORMAT_COMPOSITE_P): Remove, replace by ...
      	(MODE_COMPOSITE_P): ... this new macro.
      	(MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
      	MODE_HAS_SIGN_DEPENDENT_ROUNDING): New macros.
      	* machmode.h (GET_MODE_INNER): Cast result to enum machine_mode.
      
      	* flags.h: Include "real.h".
      
      	* fold-const.c (const_binop): Use MODE_COMPOSITE_P instead of
      	REAL_MODE_FORMAT_COMPOSITE_P.
      	* simplify-rtx.c (simplify_const_binary_operation): Likewise.
      
      	* doc/tm.texi (Storage Layout): Remove documentation of
      	MODE_HAS_NANS, MODE_HAS_INFINITIES, MODE_HAS_SIGNED_ZEROS,
      	MODE_HAS_SIGN_DEPENDENT_ROUNDING.  Update documentation of
      	ROUND_TOWARDS_ZERO and LARGEST_EXPONENT_IS_NORMAL to clarify
      	they only apply to libgcc2.a.
      
      From-SVN: r139016
      Ulrich Weigand committed
    • real.h (struct real_format): New member round_towards_zero. · 3e479de3
      ChangeLog:
      
      	* real.h (struct real_format): New member round_towards_zero.
      	* real.c (round_for_format): Respect fmt->round_towards_zero.
      	(ieee_single_format, mips_single_format, motorola_single_format,
      	spu_single_format, ieee_double_format, mips_double_format,
      	motorola_double_format, ieee_extended_motorola_format,
      	ieee_extended_intel_96_format, ieee_extended_intel_128_format,
      	ieee_extended_intel_96_round_53_format, ibm_extended_format,
      	mips_extended_format, ieee_quad_format, mips_quad_format,
      	vax_f_format, vax_d_format, vax_g_format): Initialize it.
      	* config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
      
      	* builtins.s (do_mpfr_arg1): Consider round_towards_zero member of
      	real_format to choose rounding mode when calling MPFR functions.
      	(do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Likewise.
      	(do_mpfr_bessel_n, do_mpfr_remquo, do_mpfr_lgamma_r): Likewise.
      
      	* real.h (real_to_decimal_for_mode): Add prototype.
      	* real.c (real_to_decimal_for_mode): Renames old real_to_decimal.
      	Respect target rounding mode when generating decimal representation.
      	(real_to_decimal): New stub for backwards compatibility.
      	* c-cppbuiltin.c (builtin_define_with_hex_fp_value): Use
      	real_to_decimal_for_mode instead of real_to_decimal.
      
      	* config/spu/spu.md ("floatdisf2", "floatunsdisf2"): New.
      
      
      testsuite/ChangeLog:
      
      	* gcc.c-torture/execute/20031003-1.c (main): Update test to
      	accommodate SPU single-precision rounding mode.
      	* gcc.c-torture/execute/conversion.c (test_float_to_integer,
      	test_float_to_longlong_integer): Likewise.
      	* gcc.c-torture/execute/ieee/rbug.c (main): Likewise.
      	* gcc.dg/hex-round-1.c: Skip test on SPU.
      	* gcc.dg/hex-round-2.c: Likewise.
      
      Co-Authored-By: Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
      
      From-SVN: r139014
      Ulrich Weigand committed
    • real.c (spu_single_format): New variable. · 88f091f5
      ChangeLog:
      
      	* real.c (spu_single_format): New variable.
      	* real.h (spu_single_format): Declare.
      
      	* config/spu/spu.c (spu_override_options): Install SFmode format.
      	(spu_split_immediate): Use integer mode to operate on pieces of
      	floating-point values in all cases.
      
      	* config/spu/spu.md (UNSPEC_FLOAT_EXTEND, UNSPEC_FLOAT_TRUNCATE): New.
      	("extendsfdf2"): Use UNSPEC_FLOAT_EXTEND instead of FLOAT_EXTEND.
      	("truncdfsf2"): Use UNSPEC_FLOAT_TRUNCATE instead of FLOAT_TRUNCATE.
      
      testsuite/ChangeLog:
      
      	* gcc.c-torture/execute/ieee/inf-2.c (testf): Skip on the SPU.
      
      Co-Authored-By: Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
      
      From-SVN: r139013
      Ulrich Weigand committed
  18. 19 Jun, 2008 1 commit
  19. 26 Mar, 2008 1 commit
    • builtins.c (expand_builtin_pow, [...]): Remove uses of dconst3, dconstsqrt2,… · aefa9d43
      builtins.c (expand_builtin_pow, [...]): Remove uses of dconst3, dconstsqrt2, dconstthird, dconste and/or dconst10.
      
      	* builtins.c (expand_builtin_pow, fold_builtin_cabs,
      	fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
      	fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
      	dconstsqrt2, dconstthird, dconste and/or dconst10.
      	* config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
      	* emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
      	dconstsqrt2, dconste): Delete.
      	(init_emit_once): Likewise.  Simplify initializing dconstm1.
      	Constify variable.
      	* real.c (get_real_const): New.
      	* real.h (dconst3, dconst10, dconstm2, dconstthird,
      	dconstsqrt2, dconste): Delete.
      	(real_value_const, get_real_const): New.
      
      From-SVN: r133607
      Kaveh R. Ghazi committed
  20. 08 Feb, 2008 1 commit
  21. 25 Jan, 2008 1 commit
    • MAINTAINERS (c4x port): Remove. · 8d8da227
      	* MAINTAINERS (c4x port): Remove.
      
      contrib:
      	* paranoia.cc (main): Remove handling of c4x_single and
      	c4x_extended formats.
      
      gcc:
      	* config/c4x: Remove directory.
      	* config.gcc (crx-*, mt-*): Mark obsolete.
      	(c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
      	h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
      	sh-*-rtemscoff*): Remove cases.
      	* defaults.h (C4X_FLOAT_FORMAT): Remove.
      	* real.c (encode_c4x_single, decode_c4x_single,
      	encode_c4x_extended, decode_c4x_extended, c4x_single_format,
      	c4x_extended_format): Remove.
      	* real.h (c4x_single_format, c4x_extended_format): Remove.
      	* doc/extend.texi (interrupt, naked): Remove mention of attributes
      	on C4x.
      	(Pragmas): Remove comment about c4x pragmas.
      	* doc/install.texi (c4x): Remove target-specific instructions.
      	* doc/invoke.texi (TMS320C3x/C4x Options): Remove.
      	* doc/md.texi (Machine Constraints): Remove C4x documentation.
      	* doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
      	refer to C4x source files as examples.
      	(C4X_FLOAT_FORMAT): Remove documentation.
      
      gcc/testsuite:
      	* gcc.dg/builtin-inf-1.c, gcc.dg/compare6.c, gcc.dg/sibcall-3.c,
      	gcc.dg/sibcall-4.c, gcc.dg/torture/builtin-attr-1.c: Don't handle
      	c4x-*-* targets.
      
      libgcc:
      	* config.host (tic4x-*-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*,
      	tic4x-*, h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
      	sh-*-rtemscoff*): Remove cases.
      
      From-SVN: r131835
      Joseph Myers committed
  22. 07 Sep, 2007 1 commit
    • Reapply reverted change: · 6ef9a246
      gcc/ada/
      	Reapply reverted change:
      
              2007-09-06  Eric Botcazou  <ebotcazou@adacore.com>
      
              * trans.c (convert_with_check): Update call to real_2expN.
      
      gcc/
      	config/m68k/m68k.c (floating_exact_log2): Update call to real_2expN.
      	config/s390/s390.md (fixuns_trunc<BFP:mode><GPR:mode>2): Ditto.
      
      	Reapply reverted changes:
      
       	2007-09-06  Jan Hubicka  <jh@suse.cz>
       
      	* config/i386.c (ix86_expand_lround, ix86_expand_round): Update call of
      	real_2expN.
      
      	2007-09-06  Richard Sandiford  <richard@codesourcery.com>
      
      	* config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
      	(fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
      
      	2007-09-05  Janis Johnson  <janis187@us.ibm.com>
      
      	* optabs.c (expand_float): Convert unsigned integer as signed only
      	if it provides sufficient accuracy; add mode argument to real_2expN.
      	(expand_fix): Fix comment typos; extend binary float into mode
      	wider than destination for converion to unsigned integer; add mode
      	argument to real_2expN.
      	* real.c (real_2expN): Add mode argument to special-case decimal
      	float values.
      	* real.h (real_2expN): Ditto.
      	* fixed-value.c (check_real_for_fixed_mode): Add mode argument to
      	real_2expN.
      	(fixed_from_string): Ditto.
      	(fixed_to_decimal): Ditto.
      	(fixed_convert_from_real): Ditto.
      	(real_convert_from_fixed): Ditto.
      	* config/rs6000/rs6000.md (FP): Include DD and TD modes.
      	* config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
      	muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
      	floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
      
      From-SVN: r128247
      Janis Johnson committed
  23. 06 Sep, 2007 1 commit
    • Revert: · fcde2932
       	2007-09-06  Jan Hubicka  <jh@suse.cz>
       
      	* i386.c (ix86_expand_lround, ix86_expand_round): Update call of
      	real_2expN.
      
      	2007-09-06  Richard Sandiford  <richard@codesourcery.com>
      
      	* config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
      	(fixuns_truncsfsi2, fixuns_truncsfdi2): Update calls to real_2expN.
      
      	2007-09-05  Janis Johnson  <janis187@us.ibm.com>
      
      	* optabs.c (expand_float): Convert unsigned integer as signed only
      	if it provides sufficient accuracy; add mode argument to real_2expN.
      	(expand_fix): Fix comment typos; extend binary float into mode
      	wider than destination for converion to unsigned integer; add mode
      	argument to real_2expN.
      	* real.c (real_2expN): Add mode argument to special-case decimal
      	float values.
      	* real.h (real_2expN): Ditto.
      	* fixed-value.c (check_real_for_fixed_mode): Add mode argument to
      	real_2expN.
      	(fixed_from_string): Ditto.
      	(fixed_to_decimal): Ditto.
      	(fixed_convert_from_real): Ditto.
      	(real_convert_from_fixed): Ditto.
      	* config/rs6000/rs6000.md (FP): Include DD and TD modes.
      	* config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
      	muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
      	floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
      
      From-SVN: r128193
      Janis Johnson committed
  24. 05 Sep, 2007 1 commit
    • optabs.c (expand_float): Convert unsigned integer as signed only if it provides… · be677dc1
      optabs.c (expand_float): Convert unsigned integer as signed only if it provides sufficient accuracy...
      
      gcc/
      	* optabs.c (expand_float): Convert unsigned integer as signed only
      	if it provides sufficient accuracy; add mode argument to real_2expN.
      	(expand_fix): Fix comment typos; extend binary float into mode
      	wider than destination for converion to unsigned integer; add mode
      	argument to real_2expN.
      	* real.c (real_2expN): Add mode argument to special-case decimal
      	float values.
      	* real.h (real_2expN): Ditto.
      	* fixed-value.c (check_real_for_fixed_mode): Add mode argument to
      	real_2expN.
      	(fixed_from_string): Ditto.
      	(fixed_to_decimal): Ditto.
      	(fixed_convert_from_real): Ditto.
      	(real_convert_from_fixed): Ditto.
      	* config/rs6000/rs6000.md (FP): Include DD and TD modes.
      	* config/rs6000/dfp.md (extendddtd2, adddd3, addtd3, subdd3, subtd3,
      	muldd3, multd3, divdd3, divtd3, cmpdd_internal1, cmptd_internal1,
      	floatditd2, ftruncdd2, fixdddi2, ftrunctd2, fixddi2): New.
      
      gcc/testsuite/
      	* gcc.target/powerpc/dfp-dd.c: New test.
      	* gcc.target/powerpc/dfp-td.c: New test.
      
      From-SVN: r128156
      Janis Johnson committed
  25. 26 Jul, 2007 1 commit
  26. 25 Jul, 2007 1 commit
    • expr.c (handled_component_p): Constify. · 9566a759
      	* expr.c (handled_component_p): Constify.
      	* fold-const.c (fit_double_type): Likewise.
      	* real.h (real_value_from_int_cst): Likewise.
      	* tree-flow-inline.h (gimple_in_ssa_p,
      	gimple_aliases_computed_p, gimple_addressable_vars,
      	gimple_call_clobbered_vars, gimple_referenced_vars,
      	gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
      	end_htab_p, end_referenced_vars_p, var_ann, function_ann,
      	may_aliases, end_readonly_imm_use_p, has_zero_uses,
      	has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
      	is_label_stmt, is_global_var, phi_ssa_name_p,
      	factoring_name_p, is_call_clobbered, tree_common_ann,
      	op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
      	unmodifiable_var_p, array_ref_contains_indirect_ref,
      	ref_contains_array_ref, lookup_subvars_for_var,
      	var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
      	gimple_mem_ref_stats): Likewise.
      	* tree-flow.h (tree_common_ann, var_ann, function_ann,
      	may_aliases, is_exec_stmt, is_label_stmt,
      	ref_contains_array_ref, array_ref_contains_indirect_ref,
      	var_can_have_subvars, overlap_subvar, is_call_clobbered,
      	unmodifiable_var_p): Likewise.
      	* tree-gimple.c (is_gimple_min_invariant): Likewise.
      	* tree-gimple.h (is_gimple_min_invariant): Likewise. 
      	* tree.c (type_hash_list, attribute_hash_list, tree_size,
      	cst_and_fits_in_hwi, real_value_from_int_cst,
      	build_real_from_int_cst, integer_zerop, integer_onep,
      	integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
      	tree_floor_log2, real_zerop, real_onep, real_twop,
      	real_minus_onep, really_constant_p, purpose_member, chain_member,
      	list_length, fields_length, int_size_in_bytes, bit_position,
      	int_bit_position, byte_position, int_byte_position, expr_align,
      	array_type_nelts, tree_node_structure,
      	type_contains_placeholder_1, iterative_hash_pointer,
      	is_attribute_with_length_p, is_attribute_p, check_qualified_type,
      	tree_map_base_eq, type_hash_list, type_hash_eq,
      	attribute_hash_list, type_num_arguments, tree_int_cst_equal,
      	tree_int_cst_lt, tree_int_cst_compare, host_integerp,
      	tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
      	simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
      	int_fits_type_p, get_containing_scope, decl_function_context,
      	decl_type_context, omp_clause_operand_check_failed,
      	initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
      	* tree.h (omp_clause_operand_check_failed, tree_size,
      	build_real_from_int_cst, array_type_nelts, purpose_member,
      	tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
      	host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
      	is_attribute_p, check_qualified_type, expr_align,
      	int_size_in_bytes, bit_position, int_bit_position, byte_position,
      	int_byte_position, list_length, fields_length, initializer_zerop,
      	integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
      	integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
      	tree_node_structure, handled_component_p, get_containing_scope,
      	decl_function_context, decl_type_context, real_zerop,
      	type_num_arguments, fit_double_type, really_constant_p,
      	int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
      	compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
      	real_twop, real_minus_onep, int_cst_value): Likewise.
      
      From-SVN: r126923
      Kaveh R. Ghazi committed
  27. 18 Jul, 2007 1 commit
  28. 12 Jun, 2007 1 commit
  29. 03 Jun, 2007 1 commit
    • m68k.c (override_options): Don't override REAL_MODE_FORMAT. · b6a9c30c
      	* config/m68k/m68k.c (override_options): Don't override
      	REAL_MODE_FORMAT.
      	* config/m68k/m68k-modes.def (SF, DF): Define to use
      	motorola_single_format and motorola_double_format, resp.
      	* real.c (motorola_single_format): Renamed from
      	coldfire_single_format.
      	(motorola_double_format): Renamed from coldfire_double_format.
      	(encode_ieee_extended): Generate a proper canonical NaN image
      	respecting canonical_nan_lsbs_set.
      	(ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
      	true.
      	* real.h: Adjust declarations.
      
      From-SVN: r125295
      Andreas Schwab committed
  30. 21 May, 2007 1 commit
    • defaults.h (IBM_FLOAT_FORMAT): Macro definition removed. · 4d8a8a0a
      2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
      
      	* defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
      	* doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
      	* real.c (encode_i370_single, decode_i370_single,
      	encode_i370_double, decode_i370_double): Functions removed.
      	(i370_single_format, i370_double_format): Initializations removed.
      	(real_maxval, round_for_format, exact_real_truncate, significand_size):
      	Consider the log2_b field to always be one.
      	(ieee_single_format, mips_single_format, coldfire_single_format,
      	ieee_double_format, mips_double_format,	coldfire_double_format,
      	ieee_extended_motorola_format, ieee_extended_intel_96_format,
      	ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
      	ibm_extended_format, mips_extended_format, ieee_quad_format,
      	mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
      	decimal_single_format, decimal_double_format, decimal_quad_format,
      	c4x_single_format, c4x_extended_format, real_internal_format): Remove
      	initialization of log2_b.
      	* real.h (i370_single_format, i370_double_format): Declarations removed.
      	* c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
      	field to always be one.
      
      From-SVN: r124901
      Andreas Krebbel committed
  31. 25 Apr, 2007 1 commit
  32. 22 Mar, 2007 1 commit
    • re PR other/23572 (No warning for assigning a value to a 'float' variable that… · 92ef5cf9
      re PR other/23572 (No warning for assigning a value to a 'float' variable that overflows with option -Wextra)
      
      2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
      
      	PR other/23572
      	* c-lex.c (interpret_float): On overflow, emit pedantic warning if
      	infinities not supported, otherwise emit warning if -Woverflow. On
      	underflow, emit warning if -Woverflow.
      	* real.c (real_from_string): Return -1 if underflow, +1 if overflow
      	and 0 otherwise.
      	* real.h (real_from_string): Update declaration
      testsuite/
      	* gcc.dg/float-range-4.c: New.
      	* gcc.dg/float-range-1.c: Update. Test for a warning.
      	* gcc.dg/float-range-3.c: New.
      	* gcc.dg/float-range-5.c: New.
      
      From-SVN: r123137
      Manuel López-Ibáñez committed
  33. 03 Feb, 2007 1 commit
    • emit-rtl.c (dconstpi): Delete. · b86a760a
      	* emit-rtl.c (dconstpi): Delete.
      	(dconstsqrt2): New.
      	(init_emit_once): Delete dconstpi and init dconstsqrt2.
      	* real.h (dconstpi): Delete.
      	(dconstsqrt2): New.
      	* builtins.c (fold_builtin_cabs): Use dconstsqrt2.
      	(fold_builtin_hypot): Likewise.
      
      From-SVN: r121550
      Kaveh R. Ghazi committed
  34. 18 Jan, 2007 1 commit
    • real.h (real_format): Add a canonical_nan_lsbs_set field. · 58145e4d
      gcc/
      	* real.h (real_format): Add a canonical_nan_lsbs_set field.
      	(coldfire_single_format): Declare.
      	(coldfire_double_format): Likewise.
      	* real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
      	of qnan_msb_set to determine the lower bits of a canonical
      	NaN significand.
      	(encode_ieee_double): Likewise.
      	(encode_ieee_quad): Likewise.
      	(ieee_single_format): Initialize canonical_nan_lsbs_set.
      	(mips_single_format): Likewise.
      	(ieee_double_format): Likewise.
      	(mips_double_format): Likewise.
      	(ieee_extended_motorola_format): Likewise.
      	(ieee_extended_intel_96_format): Likewise.
      	(ieee_extended_intel_128_format): Likewise.
      	(ieee_extended_intel_96_round_53_format): Likewise.
      	(ibm_extended_format): Likewise.
      	(mips_extended_format): Likewise.
      	(ieee_quad_format): Likewise.
      	(mips_quad_format): Likewise.
      	(vax_f_format): Likewise.
      	(vax_d_format): Likewise.
      	(vax_g_format): Likewise.
      	(i370_single_format): Likewise.
      	(i370_double_format): Likewise.
      	(decimal_single_format): Likewise.
      	(decimal_double_format): Likewise.
      	(decimal_quad_format): Likewise.
      	(c4x_single_format): Likewise.
      	(c4x_extended_format): Likewise.
      	(real_internal_format): Likewise.
      	(coldfire_single_format): New real_format.
      	(coldfire_double_format): Likewise.
      	* config/pdp11/pdp11.c (pdp11_f_format): Initialize
      	canonical_nan_lsbs_set.
      	(pdp11_d_format): Likewise.
      	* config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
      	if TARGET_COLDFIRE_CPU.
      
      From-SVN: r120922
      Richard Sandiford committed
  35. 23 Nov, 2006 1 commit
  36. 23 Oct, 2006 1 commit
  37. 02 Dec, 2005 1 commit
    • dfp.h, dfp.c: New files. · 909e2256
      2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
      	    Janis Johnson  <janis187@us.ibm.com>
      	    David Edelsohn  <dje@watson.ibm.com>
      	    Ben Elliston  <bje@au.ibm.com>
      
      	* dfp.h, dfp.c: New files.
      	* Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
      	(DECNUM_H): Likewise.
      	(LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
      	(INCLUDES): Append $(DECNUMINC).
      	(OBJS-common): Add dfp.o.
      	(dfp.o): New rule.
      	* real.h (EXP_BITS): Pinch one bit to ..
      	(struct real_value): Add decimal field.
      	(real_format): Change table size, update documentation.
      	(REAL_MODE_FORMAT): Update for to handle float, decimal float.
      	(real_from_string3): Declare.
      	(decimal_single_format): Declare.
      	(decimal_double_format): Declare.
      	(decimal_quad_format): Declare.
      	(REAL_VALUE_TO_TARGET_DECIMAL32): New.
      	(REAL_VALUE_TO_TARGET_DECIMAL64): New.
      	(REAL_VALUE_TO_TARGET_DECIMAL128): New.
      	* real.c: Include dfp.h.
      	(normalize): Early return for decimal floats.
      	(do_add): Zero decimal field.
      	(do_compare): Call do_decimal_compare for decimal floats.
      	(do_fix_trunc): Likewise, call decimal_do_fix_trunc.
      	(real_arithmetic): Call decimal_real_arithmetic for decimal
      	floating point operands.
      	(real_identical): If a and b are of differing radix, return false.
      	(real_to_integer): Call decimal_real_to_integer if the value is a
      	decimal float.
      	(real_to_integer2): Likewise, call decimal_real_to_integer2.
      	(real_to_decimal): Likewise, call decimal_real_to_decimal.
      	(real_to_hexadecimal): Place "N/A" in the return string for
      	decimal float.
      	(real_from_string3): New variant, given a mode.
      	(real_maxval): Use decimal_real_maxval for decimal floats.
      	(round_for_format): Use decimal_round_for_format for decimals.
      	(real_convert): Use decimal_real_convert where appropriate.
      	(significand_size): Handle base 10.
      	(encode_decimal_single, decode_decimal_single,
      	encode_decimal_double, decode_decimal_double, encode_decimal_quad,
      	decode_decimal_quad): New functions.
      	(decimal_single_format): New.
      	(decimal_double_format): New.
      	(decimal_quad_format): New.
      	* machmode.def: Add SD, DD and TD decimal floating point modes.
      	* machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
      	Include MODE_DECIMAL_FLOAT.
      	(DECIMAL_FLOAT_MODE_P): New.
      	* mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
      	* genmodes.c (struct mode_data): Add counter field.
      	(struct mode_data): Update comment for format.
      	(blank_mode): Initialise counter field.
      	(new_mode): Increment counter field for each mode defined.
      	(complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
      	using a format.
      	(make_complex_modes): Handle modes containing `D'.
      	(DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
      	(make_decimal_float_mode): New.
      	(reset_float_format): Handle MODE_DECIMAL_FLOAT.
      	(cmp_modes): Compare counter field if other characteristics
      	similar.
      	(emit_real_format_for_mode): Support formats for decimal floats.
      	* doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
      	Document MODE_DECIMAL_FLOAT.
      
      Co-Authored-By: Ben Elliston <bje@au.ibm.com>
      Co-Authored-By: David Edelsohn <dje@watson.ibm.com>
      Co-Authored-By: Janis Johnson <janis187@us.ibm.com>
      
      From-SVN: r107861
      Jon Grimm committed