aboutsummaryrefslogtreecommitdiff
path: root/gcc/real.c
AgeCommit message (Collapse)AuthorFilesLines
1998-06-29* Merge from gcc2 June 9, 1998 snapshot. See ChangeLog.13 forJeff Law1-2/+26
details. From-SVN: r20808
1998-05-23m68k.h: Declare more functions used in macros.Andreas Schwab1-0/+24
* m68k.h: Declare more functions used in macros. (REG_CLASS_CONTENTS): Completely embrace initializer. * m68k.md (adddi3, subdi3): Add abort call to avoid warning about returning no value. * cse.c (find_best_addr): Declare p and found_better only if needed. * dbxout.c (dbxout_continue): Define only if DBX_CONTIN_LENGTH > 0. * dwarfout.c (string_length_attribute): #if 0 away. * function.c (expand_function_end): Define varible blktramp only if needed. * jump.c (find_insert_position): Define only if !HAVE_cc0. * loop.c (combine_givs_p): Define variable tem only if needed. * real.c: Comment out unused functions eabs, eround, e{24,53,64,113}toasc and eiinfin. From-SVN: r19998
1998-05-06toplev.h: New file.Robert Lipe1-0/+1
Wed May 6 06:35:38 1998 Robert Lipe <robertl@dgii.com> * toplev.h: New file. Protypes for functions in toplev.c. * tree.h, rtl.h: Deleted protos for functions in toplev.c. * c-common.c, c-convert.c, c-decl.c, c-iterate.c, c-lex.c, c-parse.in, c-parse.y, c-pragma.c, c-typeck.c, calls.c, convert.c, dwarf2out.c, except.c, expr.c, final.c, fold-const.c, function.c, hash.c, profile.c, real.c, reg-stack.c, regclass.c, reload.c, reload1.c, stmt.c, stor-layout.c, tlink.c, tree.c, varasm.c: include it. From-SVN: r19564
1998-05-05* Check in merge from gcc2. See ChangeLog.12 for details.Jeff Law1-24/+383
From-SVN: r19553
1998-03-20Major cutover to using system.h:Kaveh R. Ghazi1-6/+1
* Makefile.in (alias.o, bitmap.o, c-aux-info.o, c-common.o, c-decl.o, c-iterate.o, c-lang.o, c-lex.o, c-pragma.o, c-typeck.o, caller-save.o, calls.o, collect2.o, combine.o, cse.o, dbxout.o, dwarf2out.o, dwarfout.o, emit-rtl.o, except.o, explow.o, expmed.o, expr.o, final.o, flow.o, function.o, getpwd.o, global.o, integrate.o, jump.o, local-alloc.o, loop.o, optabs.o, pexecute.o, prefix.o, print-rtl.o, print-tree.o, profile.o, real.o, recog.o, reg-stack.o, regclass.o, regmove.o, reload.o, reload1.o, reorg.o, rtl.o, rtlanal.o, sdbout.o, stmt.o, stor-layout.o, stupid.o, tlink.o, toplev.o, tree.o, unroll.o, varasm.o, xcoffout.o): Depend on system.h. * alias.c, bitmap.c, c-aux-info.c, c-common.c, c-decl.c, c-iterate.c, c-lang.c, c-lex.c, c-pragma.c, c-typeck.c, caller-save.c, calls.c, collect2.c, combine.c, cse.c, dbxout.c, dwarf2out.c, dwarfout.c, emit-rtl.c, except.c, explow.c, expmed.c, expr.c, final.c, flow.c, function.c, gcc.c, getpwd.c, global.c, integrate.c, jump.c, local-alloc.c, loop.c, optabs.c, pexecute.c, prefix.c, print-rtl.c, print-tree.c, profile.c, real.c, recog.c, reg-stack.c, regclass.c, regmove.c, reload.c, reload1.c, reorg.c, rtl.c, rtlanal.c, sched.c, sdbout.c, stmt.c, stor-layout.c, stupid.c, tlink.c, toplev.c, tree.c, unroll.c, varasm.c, xcoffout.c: Include system.h. Organize include ordering so that stdarg/varargs comes before other system headers. Remove spurious casts of functions assured of a prototype in system.h. From-SVN: r18726
1998-03-12In gcc/:Manfred Hollstein1-0/+12
* bitmap.c (bitmap_element_allocate): Remove unused parameter; change callers accordingly. * cplus-dem.c (arm_special): Remove unused parameter work in prototype and definition; change all callers accordingly. * except.c (init_eh): Avoid assignment of unused return value of build_pointer_type; cast it to void, instead, and remove unused variable type. * gcc.c (lang_specific_driver): Define prototype only #ifdef LANG_SPECIFIC_DRIVER. (temp_names): Define only #ifdef MKTEMP_EACH_FILE. * genoutput.c (output_epilogue): Initialize next_name to 0. * real.c (efrexp): #if 0 prototype and function definition. (eremain): Likewise. (uditoe): Likewise. (ditoe): Likewise. (etoudi): Likewise. (etodi): Likewise. (esqrt): Likewise. * reload.c (push_secondary_reload): Define prototype only #ifdef HAVE_SECONDARY_RELOADS. * varasm.c (assemble_static_space): Define rounded only #ifndef ASM_OUTPUT_ALIGNED_LOCAL. In gcc/cp/: * call.c (default_parm_conversions): Remove prototype definition. (build_method_call): Remove unused variable result. * cvt.c (ocp_convert): Remove unused variable conversion. * decl2.c (ambiguous_decl): Add explicit parameter definition for name. * except.c (do_unwind): #if 0 definition of unused variables fcall and next_pc. * expr.c (extract_scalar_init): #if 0 prototype and function definition. * init.c (expand_aggr_init_1): Remove unused variable init_type. (build_new_1): Remove unused variable t. * pt.c (instantiate_class_template): Remove unused variable newtag; cast called function return value to void. (do_decl_instantiation): Remove unused variables name and fn. * tree.c (get_type_decl): Add default return to shut up compiler from complaining control reaches end of non-void function. * typeck.c (build_x_conditional_expr): Remove unused variable rval. From-SVN: r18495
1997-11-02Update mainline egcs to gcc2 snapshot 971021.Jeff Law1-3/+7
From-SVN: r16278
1997-08-12version.c: Bump version to "gcc-3.0.0 970802 experimental".Jeffrey A Law1-4/+70
* version.c: Bump version to "gcc-3.0.0 970802 experimental". * gcc.info*: Rebuilt. * COPYING.g77, README.g77: New files. * real.c (ereal_unto_float, ereal_unto_double): New functions. * real.h (ereal_unto_float, ereal_unto_double): Declare them. (REAL_VALUE_UNTO_TARGET_DOUBLE, REAL_VALUE_UNTO_TARGET_SINGLE): Define. Get g77 to work with gcc3. From-SVN: r14776
1996-10-23(exact_real_inverse): New function, if REAL_ARITHMETIC.Richard Kenner1-0/+62
From-SVN: r13002
1996-07-03formatting tweaksMike Stump1-82/+84
From-SVN: r12390
1996-06-28(asctoeg): `0.0eX' is zero, regardless of the exponent X.Richard Kenner1-0/+8
From-SVN: r12373
1996-04-15(eadd1): Check for overflow on X plus X.Richard Kenner1-1/+8
From-SVN: r11782
1996-04-14(ereal_from_{int,uint}): New arg, MODE.Richard Kenner1-2/+68
From-SVN: r11763
1996-04-10(e64toe): Properly distinguish between NaN and infinity bit patterns for ↵Richard Kenner1-4/+34
real-words-big-endian targets. (e64toe): Properly distinguish between NaN and infinity bit patterns for real-words-big-endian targets. (endian): Add two explicit casts. (e64toe): Support ARM extended precision fp format. Check negative infinities properly for NaNs. (toe64): Support ARM extended precision fp format. From-SVN: r11688
1996-03-04(significand_size): Don't test the modes, but their sizes.Richard Kenner1-6/+9
From-SVN: r11415
1995-08-15(ediv, emul): Set sign bit of IEEE -0.0 result.Richard Kenner1-33/+41
From-SVN: r10244
1995-06-15Update FSF address.Richard Kenner1-1/+2
From-SVN: r9964
1995-05-16Fix typos in comments.Richard Kenner1-1/+1
From-SVN: r9712
1995-05-05(emdnorm, toe64, etoe64): Significand of Intel long double denormalsRichard Kenner1-3/+23
is shifted down one bit. From-SVN: r9578
1995-02-22(REAL_WORDS_BIG_ENDIAN): New macro.Richard Kenner1-250/+254
(REAL_WORDS_BIG_ENDIAN): New macro. Define as either FLOAT_WORDS_BIG_ENDIAN or HOST_FLOAT_WORDS_BIG_ENDIAN. Use it instead of FLOAT_WORDS_BIG_ENDIAN. (m16m, edivm, emulm): Change `short' to `EMUSHORT', and `long' to `EMULONG'. Clean up comments. From-SVN: r9027
1995-01-25Update comments.Richard Kenner1-1/+1
From-SVN: r8815
1995-01-12(toe64): Use Intel bit pattern for little-endian XFmode Inf.Richard Kenner1-4/+19
(e64toe): Likewise; also check the exponent field properly. From-SVN: r8734
1994-11-16Check target endianness at run time, not compile timeIan Lance Taylor1-425/+530
From-SVN: r8470
1994-11-05(GET_REAL, PUT_REAL): Cast args to bcopy to char *.Richard Kenner1-4/+4
From-SVN: r8390
1994-06-28Treat HFmode like SFmode, for now.Richard Kenner1-0/+5
From-SVN: r7576
1994-05-30(significand_size): New function.Richard Kenner1-1/+39
From-SVN: r7387
1994-05-16(ereal_from_int, ereal_to_int, etarsingle): Correct signed/unsigned ↵Richard Kenner1-27/+21
discrepancies. (ereal_from_int, ereal_to_int, etarsingle): Correct signed/unsigned discrepancies. (ereal_from_double): Avoid "right shift count too big" warning in previous change. From-SVN: r7313
1994-05-16(ereal_from_float, .._double): Change arg from long to HOST_WIDE_INTRichard Kenner1-10/+28
and unpack the HOST_WIDE_INTs. From-SVN: r7312
1994-05-12(m16m): Change first arg to int; all callers changed.Richard Kenner1-4/+4
From-SVN: r7285
1994-04-24(etoe53, etoe24): Make all occurrences static.Richard Kenner1-6/+6
From-SVN: r7144
1994-04-21Upate comments and copyright notice.Richard Kenner1-593/+347
From-SVN: r7130
1994-04-21Make most functions static and add prototypes for all static functions.Richard Kenner1-125/+225
(GET_REAL, PUT_REAL): Cast parameter to proper pointer type in some cases; use unsigned array. From-SVN: r7120
1994-03-09(target_negative): -0 counts as negative.Richard Kenner1-7/+2
From-SVN: r6735
1994-02-15(real_value_truncate): If requested mode is not supported, return theRichard Kenner1-1/+4
unmodified input instead of aborting. From-SVN: r6568
1994-02-14(eifrac): If FIXUNS_TRUNC_LIKE_FIX_TRUNC, convert on positive overflowRichard Kenner1-12/+18
as if unsigned. From-SVN: r6554
1994-02-08(earith, ereal_negate, eneg, eisneg, enan, emovo, esub, eadd, ediv):Richard Kenner1-55/+58
Propagate the sign of NaNs, so that e.g. -(NaN) evaluates to -NaN. (emul, eremain, e53toe, e64toe, e113toe, e24toe, esqrt): Likewise. (make_nan): New arg specifies sign of NaN. All callers changed. (eiisneg): New function. (esqrt): Compute sqrt(-0.0) to be -0.0, not 0.0. From-SVN: r6511
1994-01-31(emovo): Use separate variable for loop index.Richard Kenner1-1/+2
From-SVN: r6448
1993-10-13(FLOAT_WORDS_BIG_ENDIAN...Richard Kenner1-57/+72
(FLOAT_WORDS_BIG_ENDIAN, HOST_FLOAT_WORDS_BIG_ENDIAN): Use everywhere in place of WORDS_BIG_ENDIAN, HOST_WORDS_BIG_ENDIAN, except in reference to endian-ness of integers. (etrunci, etruncui, efixi, efixui, ereal_from_int, ereal_to_int, ltoe, ultoe, eifrac, euifrac): Change `long' to `HOST_WIDE_INT'. From-SVN: r5776
1993-10-11(debug_real): New function.Richard Stallman1-4/+18
From-SVN: r5742
1993-10-11Whitespace changes.Richard Stallman1-125/+127
From-SVN: r5740
1993-10-11(asctoeg): Fix backward condition in last change.Richard Stallman1-2/+2
From-SVN: r5719
1993-10-09(asctoeg): Allocate local buffer dynamically.Richard Stallman1-9/+9
(asctoeg): Allocate local buffer dynamically. Count any lost significant digits before the decimal point. From-SVN: r5696
1993-10-06(real_value_truncate): Correct etrunci argument in case SImode.Richard Stallman1-1/+1
From-SVN: r5638
1993-08-13(GET_REAL, PUT_REAL): Add TFmode versions.Jim Wilson1-231/+1192
(MAXDECEXP, MINDECEXP): New decimal exponent limits that vary with definition of LONG_DOUBLE_TYPE_SIZE. (endian, ereal_atof, real_value_truncate, einfin, emdnorm, asctoeg): Add cases for TFmode. (etartdouble): New function converts REAL_VALUE_TYPE to TFmode for use by ASM_OUTPUT_LONG_DOUBLE. (edivm, emulm): Ifdef out, replace by faster multiply and divide. (etoe113, toe113, e113toe): New type conversions for TFmode. (asctoe113, e113toasc): New TFmode binary <-> decimal conversions. (at top level): Define constants ezero, eone, emtens, etens, ... in a new 20-byte format when LONG_DOUBLE_TYPE_SIZE = 128 and set NE to 10. Otherwise, the internal format remains 12 bytes wide. (etoudi, etodi, ditoe, uditoe): New functions, signed and unsigned DImode float and fix, for real.c used in a libgcc-of-last-resort. (esqrt): New function, correctly rounded square root for libgcc. (etodec): Delete ifdef'd version. (eroundi, eroundui): Rename to efixi, efixui and always round towards zero. From frank@atom.ansto.gov.au (Frank Crawford): (etoibm, toibm, ibmtoe): New conversions for IBM 370 float format. (e53toe, e64toe, toe64, etoe53, toe53, etoe24, toe24, asctoe53, asctoeg, make_nan): Ifdef for IBM. From-SVN: r5153
1993-06-16(ltoe, ultoe, eifrac, euifrac): Handle 64-bit longs.Richard Stallman1-70/+88
(SFMODE_NAN, DFMODE_NAN, XFMODE_NAN, TFMODE_NAN): New macros permit definitions of NaN patterns to be overridden in tm.h. From-SVN: r4680
1993-06-13(ereal_from_float, ereal_from_double): New functions.Richard Stallman1-0/+64
From-SVN: r4670
1993-05-22(ereal_to_int): Fix potentially wrong-endian argument passed to eisnan.Richard Stallman1-1/+1
From-SVN: r4537
1993-05-22(target_isnan): Use GET_REAL macro to get argument.Richard Stallman1-1/+4
From-SVN: r4536
1993-05-21(emdnorm): Fix typo affecting roundoff behavior in XFmode.Richard Stallman1-1/+1
From-SVN: r4533
1993-05-20(e24toe, e53toe, e64toe): Fix sign in conversions of -infinity.Richard Stallman1-4/+9
(e24toe, e53toe, e64toe): Fix sign in conversions of -infinity. Always do eclear before einfin. From-SVN: r4513