summaryrefslogtreecommitdiff
path: root/gcc/real.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix copyrights.Jeff Law1999-01-061-1/+1
| | | | From-SVN: r24531
* * real.c (mtherr): Print more reasonable warning messages.Geoff Keating1999-01-051-3/+19
| | | | From-SVN: r24502
* Eliminate compiler warnings.Jim Wilson1998-12-141-1/+4
| | | | | | | * real.c (endian): Disable last change unless HOST_BITS_PER_WIDE_INT is greater than 32. From-SVN: r24315
* Fix alpha-x-m32r-elf bugs.Jim Wilson1998-12-101-0/+14
| | | | | | | | | | | | * cse.c (simplify_unary_operation): Sign-extend constants when they have the most significant bit set for the target. * real.c (endian): Sign-extend 32 bit output values on a 64 bit host. * m32r/m32r.c (m32r_expand_prologue): Store pretend_size in HOST_WIDE_INT temporary before negating it. * m32r/m32r.md (movsi_insn+1): Use ~0xffff instead of 0xffff0000. From-SVN: r24254
* Fix indentation from last patch.Ulrich Drepper1998-12-021-154/+154
| | | | | | Remove trailing whitespace. From-SVN: r24062
* c-common.c (declare_function_name): Declare predefinied variable `__func__'.Ulrich Drepper1998-12-011-17/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-common.c (declare_function_name): Declare predefinied variable `__func__'. * c-decl.c (flag_isoc9x): Set to 1 by default. (c_decode_option): Handle -std= option. Remove -flang-isoc9x. (grokdeclarator): Always emit warning about implicit int for ISO C 9x. * c-parse.in: Allow constructors in ISO C 9x. Rewrite designator list handling. Allow [*] parameters. Don't warn about comma at end of enum definition for ISO C 9x. * cccp.c (c9x): New variable. (rest_extension): New variable. (print_help): Document new -std= option. (main): Recognize -std= option. Set c9x appropriately. (create_definition): Recognize ISO C 9x vararg macros. * gcc.c (default_compilers): Adjust specs for -std options. (option_map): Add --std. (display_help): Document -std. * toplev.c (documented_lang_options): Add -std and remove -flang-isoc9x. * c-lex.c (yylex): Recognize hex FP constants and call REAL_VALUE_ATOF or REAL_VALUE_HTOF based on base of the constants. * fold-const.c (real_hex_to_f): New function. Replacement function for hex FP conversion if REAL_ARITHMETIC is not defined. * real.c (asctoeg): Add handling of hex FP constants. * real.h: Define REAL_VALUE_HTOF if necessary using ereal_atof or real_hex_to_f. Co-Authored-By: Richard Henderson <rth@cygnus.com> Co-Authored-By: Stephen L Moshier <moshier@world.std.com> From-SVN: r24049
* emit-rtl.c (gen_lowpart_common): Remove earlier change.Stephen L Moshier1998-11-251-2/+2
| | | | | | | * emit-rtl.c (gen_lowpart_common): Remove earlier change. * real.c (make_nan): Make SIGN arg actually specify the sign bit. From-SVN: r23874
* real.c (emdnorm and etoasc): Disable round to even for c4x target to be ↵Herman A.J. ten Brugge1998-10-131-1/+8
| | | | | | | | | compatible with TI compiler. * real.c (emdnorm and etoasc): Disable round to even for c4x target to be compatible with TI compiler. From-SVN: r23072
* Warning fixes:Kaveh R. Ghazi1998-10-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (gencheck.o): Depend on gansidecl.h. * c-common.c (print_char_table): Add missing initializers. (scan_char_table): Likewise. (time_char_table): Likewise. * c-decl.c (c_decode_option): Mark parameter `argc' with ATTRIBUTE_UNUSED. (declare_parm_level): Mark parameter `definition_flag' with ATTRIBUTE_UNUSED. * c-lex.c (readescape): Use `(unsigned)1' in shift. (yylex): Likewise. Cast `sizeof' to an (int) when comparing against one. * calls.c (store_one_arg): Remove unused parameter `fndecl'. All callers changed. (emit_call_1): Mark parameters `fndecl' and `funtype' with ATTRIBUTE_UNUSED. (expand_call): Cast result of MIN() to (unsigned int) when comparing against an unsigned value. * cccp.c (pcfinclude): Remove unused parameter `limit'. All callers changed. (make_definition): Remove unused parameter `op'. All callers changed. (create_definition): Cast REST_EXTENSION_LENGTH to (long) when comparing against the result of pointer arithmetic. * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Cast to (unsigned) when comparing against one. * dwarf2out.c (dwarf2out_frame_debug): Cast REGNO() and HARD_FRAME_POINTER_REGNUM to (unsigned) when comparing against one. (output_die): Move variable `i' into the scope in which it is used. Change its type to `unsigned'. (output_die): Cast the result of `strlen' to (int) when passing it to ASM_OUTPUT_ASCII(). (output_pubnames): Likewise. (output_line_info): Likewise. * emit-rtl.c (global_rtl): Add missing initializers. * explow.c (promote_mode): Mark parameter `for_call' with ATTRIBUTE_UNUSED. * expmed.c (expand_shift): Cast the result of GET_MODE_BITSIZE to `unsigned HOST_WIDE_INT' when comparing against one. (synth_mult): Change type of variable `cost' to int. (emit_store_flag): Use `(unsigned HOST_WIDE_INT) 1' in shift. * expr.c (copy_blkmode_from_reg): Cast BITS_PER_WORD to (unsigned) when comparing against one. (get_inner_reference): Change variable `alignment' to unsigned. (expand_expr): Cast the result of GET_MODE_ALIGNMENT to (unsigned int) when comparing against one. (expand_builtin_setjmp): Change type of variable `i' to size_t. * fold-const.c (div_and_round_double): Cast BASE to (HOST_WIDE_INT) when comparing against one. * gencheck.c: Include gansidecl.h. (main): Mark parameter `argv' with ATTRIBUTE_UNUSED. * optabs.c (gen_cond_trap): Mark parameters `code', `op2' and `tcode' with ATTRIBUTE_UNUSED. * real.c (edivm): Cast constant value to (unsigned long) in expression compared against an unsigned value. * stmt.c (expand_return): Cast BITS_PER_WORD to (unsigned) when comparing against one. (expand_end_case): Cast CASE_VALUES_THRESHOLD to (unsigned int) when comparing against one. * stor-layout.c (mode_for_size): Cast MAX_FIXED_MODE_SIZE to (unsigned int) when comparing against one. Likewise for GET_MODE_BITSIZE. (smallest_mode_for_size): Likewise. (save_storage_status): Mark parameter `p' with ATTRIBUTE_UNUSED. (restore_storage_status): Likewise. * toplev.c (debug_args): Add missing initializer. (f_options): Spelling correction. Add missing initializers. (documented_lang_options): Likewise. (debug_end_source_file): Mark parameter `lineno' with ATTRIBUTE_UNUSED. * tree.c (valid_machine_attribute): Mark parameters `attr_args', `decl' and `type' with ATTRIBUTE_UNUSED. * varasm.c (decode_reg_name): Cast `sizeof' expression to (int) when comparing against one. (assemble_variable): Mark parameter `top_level' with ATTRIBUTE_UNUSED. (assemble_external_libcall): Mark parameter `fun' with ATTRIBUTE_UNUSED. (output_constant_pool): Mark parameters `fnname' and `fndecl' with ATTRIBUTE_UNUSED. From-SVN: r23054
* real.c (c4xtoe): Remove unused variables.Michael Hayes1998-10-071-3/+1
| | | | | | | * real.c (c4xtoe): Remove unused variables. Add some missing parens. (toc4x): Similarly. From-SVN: r22909
* * Merge from gcc2 June 9, 1998 snapshot. See ChangeLog.13 forJeff Law1998-06-291-2/+26
| | | | | | details. From-SVN: r20808
* m68k.h: Declare more functions used in macros.Andreas Schwab1998-05-231-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
* toplev.h: New file.Robert Lipe1998-05-061-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
* * Check in merge from gcc2. See ChangeLog.12 for details.Jeff Law1998-05-051-24/+383
| | | | From-SVN: r19553
* Major cutover to using system.h:Kaveh R. Ghazi1998-03-201-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
* In gcc/:Manfred Hollstein1998-03-121-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
* Update mainline egcs to gcc2 snapshot 971021.Jeff Law1997-11-021-3/+7
| | | | From-SVN: r16278
* version.c: Bump version to "gcc-3.0.0 970802 experimental".Jeffrey A Law1997-08-121-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
* (exact_real_inverse): New function, if REAL_ARITHMETIC.Richard Kenner1996-10-231-0/+62
| | | | From-SVN: r13002
* formatting tweaksMike Stump1996-07-031-82/+84
| | | | From-SVN: r12390
* (asctoeg): `0.0eX' is zero, regardless of the exponent X.Richard Kenner1996-06-281-0/+8
| | | | From-SVN: r12373
* (eadd1): Check for overflow on X plus X.Richard Kenner1996-04-151-1/+8
| | | | From-SVN: r11782
* (ereal_from_{int,uint}): New arg, MODE.Richard Kenner1996-04-141-2/+68
| | | | From-SVN: r11763
* (e64toe): Properly distinguish between NaN and infinity bit patterns for ↵Richard Kenner1996-04-101-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
* (significand_size): Don't test the modes, but their sizes.Richard Kenner1996-03-041-6/+9
| | | | From-SVN: r11415
* (ediv, emul): Set sign bit of IEEE -0.0 result.Richard Kenner1995-08-151-33/+41
| | | | From-SVN: r10244
* Update FSF address.Richard Kenner1995-06-151-1/+2
| | | | From-SVN: r9964
* Fix typos in comments.Richard Kenner1995-05-161-1/+1
| | | | From-SVN: r9712
* (emdnorm, toe64, etoe64): Significand of Intel long double denormalsRichard Kenner1995-05-051-3/+23
| | | | | | is shifted down one bit. From-SVN: r9578
* (REAL_WORDS_BIG_ENDIAN): New macro.Richard Kenner1995-02-221-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
* Update comments.Richard Kenner1995-01-251-1/+1
| | | | From-SVN: r8815
* (toe64): Use Intel bit pattern for little-endian XFmode Inf.Richard Kenner1995-01-121-4/+19
| | | | | | (e64toe): Likewise; also check the exponent field properly. From-SVN: r8734
* Check target endianness at run time, not compile timeIan Lance Taylor1994-11-161-425/+530
| | | | From-SVN: r8470
* (GET_REAL, PUT_REAL): Cast args to bcopy to char *.Richard Kenner1994-11-051-4/+4
| | | | From-SVN: r8390
* Treat HFmode like SFmode, for now.Richard Kenner1994-06-281-0/+5
| | | | From-SVN: r7576
* (significand_size): New function.Richard Kenner1994-05-301-1/+39
| | | | From-SVN: r7387
* (ereal_from_int, ereal_to_int, etarsingle): Correct signed/unsigned ↵Richard Kenner1994-05-161-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
* (ereal_from_float, .._double): Change arg from long to HOST_WIDE_INTRichard Kenner1994-05-161-10/+28
| | | | | | and unpack the HOST_WIDE_INTs. From-SVN: r7312
* (m16m): Change first arg to int; all callers changed.Richard Kenner1994-05-121-4/+4
| | | | From-SVN: r7285
* (etoe53, etoe24): Make all occurrences static.Richard Kenner1994-04-241-6/+6
| | | | From-SVN: r7144
* Upate comments and copyright notice.Richard Kenner1994-04-211-593/+347
| | | | From-SVN: r7130
* Make most functions static and add prototypes for all static functions.Richard Kenner1994-04-211-125/+225
| | | | | | | (GET_REAL, PUT_REAL): Cast parameter to proper pointer type in some cases; use unsigned array. From-SVN: r7120
* (target_negative): -0 counts as negative.Richard Kenner1994-03-091-7/+2
| | | | From-SVN: r6735
* (real_value_truncate): If requested mode is not supported, return theRichard Kenner1994-02-151-1/+4
| | | | | | unmodified input instead of aborting. From-SVN: r6568
* (eifrac): If FIXUNS_TRUNC_LIKE_FIX_TRUNC, convert on positive overflowRichard Kenner1994-02-141-12/+18
| | | | | | as if unsigned. From-SVN: r6554
* (earith, ereal_negate, eneg, eisneg, enan, emovo, esub, eadd, ediv):Richard Kenner1994-02-081-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
* (emovo): Use separate variable for loop index.Richard Kenner1994-01-311-1/+2
| | | | From-SVN: r6448
* (FLOAT_WORDS_BIG_ENDIAN...Richard Kenner1993-10-131-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
* (debug_real): New function.Richard Stallman1993-10-111-4/+18
| | | | From-SVN: r5742
* Whitespace changes.Richard Stallman1993-10-111-125/+127
| | | | From-SVN: r5740