aboutsummaryrefslogtreecommitdiff
path: root/gcc/real.c
AgeCommit message (Collapse)AuthorFilesLines
2000-01-19real.c (enan, [...]): Wrap in NANS.Kaveh R. Ghazi1-11/+33
* real.c (enan, einan, eiisnan, eiisneg, make_nan): Wrap in NANS. (target_isinf, target_isnan, eisnan): Mark parameter with ATTRIBUTE_UNUSED. (eiisinf): Wrap in INFINITY. (etoe113, etoe64, etoe53, etoe24): Wrap label `nonorm' in INFINITY. (ibmtoe): Remove unused variable `rndsav'. From-SVN: r31518
2000-01-17Update copyrightsKaveh Ghazi1-1/+1
From-SVN: r31465
2000-01-17print-rtl.c: PROTO -> PARAMS.Kaveh R. Ghazi1-92/+92
* print-rtl.c: PROTO -> PARAMS. * real.c: Likewise. * reg-stack.c: Likewise. * resource.c: Likewise. * sdbout.h: Likewise. * simplify-rtx.c: Likewise. * stor-layout.c: Likewise. * stupid.c: Likewise. * xcoffout.c: Likewise. * xcoffout.h: Likewise. From-SVN: r31463
1999-10-08Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h.Kaveh R. Ghazi1-0/+1
* Makefile.in (insn-recog.o): Depend on hard-reg-set.h and resource.h. * alpha.h (ASM_OUTPUT_MI_THUNK): Pass the correct number of arguments to `current_file_function_operand'. * genrecog.c: Include hard-reg-set.h and resource.h in the generated output file. * real.c: Include tm_p.h. cp: * method.c: Include tm_p.h. From-SVN: r29869
1999-09-06Merge in gcc2-ss-010999Jeff Law1-3/+3
From-SVN: r29150
1999-08-09Warning fix:Kaveh R. Ghazi1-8/+8
* real.c (GET_REAL, PUT_REAL): Use memcpy instead of bcopy. From-SVN: r28636
1999-08-04real.c (GET_REAL): Don't violate ANSI/ISO aliasing rules.Mark Mitchell1-26/+26
* real.c (GET_REAL): Don't violate ANSI/ISO aliasing rules. (PUT_REAL): Likewise. From-SVN: r28521
1999-08-02Jakub Jelinek <jj@ultra.linux.cz>Jakub Jelinek1-1/+6
* real.c (PUT_REAL): Clear unused bytes if long double is IEEE quad. From-SVN: r28422
1999-06-21Jakub Jelinek <jj@ultra.linux.cz>Jakub Jelinek1-3/+5
Jakub Jelinek <jj@ultra.linux.cz> * real.c (ereal_from_double): Fix for 64-bit big endian hosts. * emit-rtl.c (gen_lowpart_common): Add case for hosts where double fits in HOST_WIDE_INT and one uses union to access a long constant as double. From-SVN: r27675
1999-03-06c-aux-info.c (data_type, [...]): Qualify a char* with the `const' keyword.Kaveh R. Ghazi1-19/+18
* c-aux-info.c (data_type, affix_data_type, gen_decl, gen_formal_list_for_type, gen_formal_list_for_func_def, gen_type): Qualify a char* with the `const' keyword. * c-common.c (declare_hidden_char_array, add_attribute, if_elt, declare_function_name, decl_attributes, format_char_info, check_format_info, binary_op_error): Likewise. * cexp.y (yyerror, error, pedwarn, warning, token): Likewise. * gcse.c (dump_hash_table): Likewise. * integrate.c (function_cannot_inline_p): Likewise * optabs.c: Include insn-config.h earlier. (init_libfuncs, init_integral_libfuncs, init_floating_libfuncs): Qualify a char* with the `const' keyword. * real.c (asctoe24, asctoe53, asctoe64, asctoe113, asctoe, asctoeg, mtherr, ereal_atof): Likewise. * real.h (ereal_atof): Likewise. * sbitmap.c (dump_sbitmap_vector): Likewise. * sbitmap.h (dump_sbitmap_vector): Likewise. * stmt.c (nesting, n_occurrences, expand_start_case): Likewise. * toplev.c (rest_of_compilation): Likewise. * tree.h (function_cannot_inline_p, expand_start_case): Likewise. From-SVN: r25614
1999-02-10Fix 64b-x-32b cross compiler breakage. Make alpha-x-m32r work again.Jim Wilson1-17/+0
* emit-rtl.c (operand_subword): Sign extend REAL_VALUE_TO_TARGET_SINGLE result. * final.c (split_double): Sign extend REAL_VALUE_TO_TARGET_DOUBLE result. * real.c (endian): Delete sign extension code. * config/m32r/m32r.md (movsf_insn+1): REAL_VALUE_TO_TARGET_SINGLE call replaced with operand_subword call. From-SVN: r25140
1999-02-08* real.c (PUT_REAL) [XFmode]: Zero the balance of the structure.Donn Terry1-1/+6
From-SVN: r25081
1999-01-26Merge in gcc2 snapshot 19980929. See gcc/ChangeLog and gcc/FSFChangeLog forJeffrey A Law1-20/+14
details. From-SVN: r24879
1999-01-06Fix copyrights.Jeff Law1-1/+1
From-SVN: r24531
1999-01-05* real.c (mtherr): Print more reasonable warning messages.Geoff Keating1-3/+19
From-SVN: r24502
1998-12-14Eliminate compiler warnings.Jim Wilson1-1/+4
* real.c (endian): Disable last change unless HOST_BITS_PER_WIDE_INT is greater than 32. From-SVN: r24315
1998-12-10Fix alpha-x-m32r-elf bugs.Jim Wilson1-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
1998-12-02Fix indentation from last patch.Ulrich Drepper1-154/+154
Remove trailing whitespace. From-SVN: r24062
1998-12-01c-common.c (declare_function_name): Declare predefinied variable `__func__'.Ulrich Drepper1-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
1998-11-25emit-rtl.c (gen_lowpart_common): Remove earlier change.Stephen L Moshier1-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
1998-10-13real.c (emdnorm and etoasc): Disable round to even for c4x target to be ↵Herman A.J. ten Brugge1-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
1998-10-13Warning fixes:Kaveh R. Ghazi1-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
1998-10-07real.c (c4xtoe): Remove unused variables.Michael Hayes1-3/+1
* real.c (c4xtoe): Remove unused variables. Add some missing parens. (toc4x): Similarly. From-SVN: r22909
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