aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2001-01-07t-linux (SHLIB_INSTALL): Double quote slibdir; fix typo in rm -f.Richard Henderson7-21/+51
* config/t-linux (SHLIB_INSTALL): Double quote slibdir; fix typo in rm -f. * config/t-aix43 (SHLIB_INSTALL): Likewise. * config/alpha/t-osf4 (SHLIB_INSTALL): Likewise. (SHLIB_LINK): Create links for the soname. * config/mips/t-iris6: Likewise. * config/sparc/t-slibgcc: Likewise. * config/sparc/t-slibgcc-sld: Likewise. From-SVN: r38785
2001-01-07configure.in (slibdir): Accept an --with-slibdir option.Richard Henderson3-245/+262
* configure.in (slibdir): Accept an --with-slibdir option. Use "test" not "[" in configure. Default to $(libdir). From-SVN: r38784
2001-01-07i386.c (constant_call_address_operand): Accept (const (plus (symbol_ref) ↵Jakub Jelinek5-1/+22
(const_int))). * config/i386/i386.c (constant_call_address_operand): Accept (const (plus (symbol_ref) (const_int))). * config/i386/i386.h (PREDICATE_CODES): Add CONST for constant_call_address_operand. * gcc.c-torture/compile/20010107-1.c: New test. From-SVN: r38783
2001-01-07libgcc2.h (W_TYPE_SIZE): Fix case where MIN_UNITS_PER_WORD == 1 and ↵Michael Hayes2-1/+7
LONG_LONG_TYPE_SIZE > 32. * libgcc2.h (W_TYPE_SIZE): Fix case where MIN_UNITS_PER_WORD == 1 and LONG_LONG_TYPE_SIZE > 32. From-SVN: r38782
2001-01-07Fix bug in URLConnection and correct javadoc annotations in StringBuffer.Anthony Green3-4/+9
From-SVN: r38781
2001-01-07jump.c (reversed_comparison_code_parts): Fix typo introduced by the previous ↵Gerald Pfeifer2-1/+6
change. * jump.c (reversed_comparison_code_parts): Fix typo introduced by the previous change. From-SVN: r38780
2001-01-07jump.c (reversed_comparison_code_parts, [...]): New.Jan Hubicka3-63/+161
* jump.c (reversed_comparison_code_parts, reversed_comparison_code): New. (can_reverse_comparison_p): Rewrite to use reversed_comparison_code. (reverse_condition_maybe_unordered): Abort on unsigned comparisons. * rtl.h (reversed_comparison_code_parts, reversed_comparison_code): Declare. From-SVN: r38779
2001-01-07* fix-header.c (read_scan_file): s/pfile/scan_in/.Neil Booth2-1/+5
From-SVN: r38778
2001-01-07c-lang.c (c_post_options): Call cpp_post_options.Neil Booth10-65/+105
* c-lang.c (c_post_options): Call cpp_post_options. * cppmain.c (main): Similarly. * fix-header.c (read_scan_file): Similarly. * cp/decl2.c (cxx_post_options): Similarly. * objc/objc-act.c (objc_post_options): Similarly. * cppinit.c (cpp_start_read): Move option consistency checks to cpp_post_options. Don't call init_dependency_output. If needed, add default target and main file dependency. (OPT_MD, OPT_MMD): Remove. (OPT_MF): New. (cpp_handle_option): Update for OPT_* changes. (cpp_post_options): New. (init_dependency_output): Command line -MF overrides environment variables. Don't set default target etc. Suppress output if dependencies are going to stdout. (print_help): Update. * cpplib.h (cpp_post_options): New. * gcc.c (cpp_options): Update for -MD, -MMD, -MF. From-SVN: r38777
2001-01-07* jump.c (comparison_dominates_p): Support unordered compares.Jan Hubicka2-3/+23
From-SVN: r38776
2001-01-07simplify-rtx.c (simplify_relational_operation): Always simplify ORDERED and ↵Jan Hubicka2-0/+14
UNORDERED when FLAG_FAST_MATH. * simplify-rtx.c (simplify_relational_operation): Always simplify ORDERED and UNORDERED when FLAG_FAST_MATH. Handle properly UNLE and UNGE. From-SVN: r38775
2001-01-07combine.c (combine_simplify_rtx): Recognize the unordered compares.Jan Hubicka2-9/+37
* combine.c (combine_simplify_rtx): Recognize the unordered compares. (nonzero_bits): Likewise. (simplify_comparison): Likewise. (num_sign_bit_copies): Likewise; return more sane value depending on STORE_FLAG_VALUE. (known_cond): Do not assume EQ to be always true for equivalent operands. From-SVN: r38774
2001-01-07* cse.c (fold_rtx): Handle unordered comparisons.Jan Hubicka2-23/+38
From-SVN: r38773
2001-01-07rtlanal.c (set_of_1): New static function.Jan Hubicka3-84/+59
* rtlanal.c (set_of_1): New static function. (reg_set_last_1, reg_set_p_1, reg_set_reg, reg_set_flag, reg_set_last_unknown, reg_set_last_value, reg_set_last_first_regno, reg_set_last_last_regno): Remove. (set_of): New global function. (set_of_data): New structure. (reg_set_p, reg_set_last): Revamp for set_of. * rtl.h (set_of): New. From-SVN: r38772
2001-01-07c-common.c (c_common_nodes_and_builtins): Add _Exit builtin.Joseph Myers5-5/+104
* c-common.c (c_common_nodes_and_builtins): Add _Exit builtin. * extend.texi: Document _Exit builtin. testsuite: * gcc.c-torture/execute/builtin-noret-1.c: New test. From-SVN: r38771
2001-01-07(initialize, [...]): Rename s/initialize/init.Neil Booth2-114/+141
* (initialize, initialize_builtins, initialize_dependency_output, initialize_standard_includes): Rename s/initialize/init. Update. (init_dependency_output): Move to after cpp_handle_options, the correct location temporally at least. (opt_comp): Move next to init (), its caller. Fix prototype. (init): Make "initialized" local scope. (cpp_create_reader): Always call init (). (cpp_start_read): Update. (output_deps): New function, broken out of cpp_finish. (cpp_finish): Break out output_deps. From-SVN: r38770
2001-01-07Fix typo.Alexandre Oliva1-2/+2
From-SVN: r38769
2001-01-07collect2.c (COFF specific stuff): Revert 12-06 patch to prototype system ↵Richard Henderson2-3/+6
functions. * collect2.c (COFF specific stuff): Revert 12-06 patch to prototype system functions. From-SVN: r38768
2001-01-07format.h: New file.Joseph Myers44-362/+184
* gcc.dg/format/format.h: New file. * gcc.dg/format/array-1.c, gcc.dg/format/attr-1.c, gcc.dg/format/branch-1.c, gcc.dg/format/c90-printf-1.c, gcc.dg/format/c90-printf-2.c, gcc.dg/format/c90-printf-3.c, gcc.dg/format/c90-scanf-1.c, gcc.dg/format/c90-scanf-2.c, gcc.dg/format/c90-scanf-3.c, gcc.dg/format/c90-scanf-4.c, gcc.dg/format/c90-strftime-1.c, gcc.dg/format/c90-strftime-2.c, gcc.dg/format/c94-printf-1.c, gcc.dg/format/c94-scanf-1.c, gcc.dg/format/c99-printf-1.c, gcc.dg/format/c99-printf-2.c, gcc.dg/format/c99-printf-3.c, gcc.dg/format/c99-scanf-1.c, gcc.dg/format/c99-scanf-2.c, gcc.dg/format/c99-scanf-3.c, gcc.dg/format/c99-strftime-1.c, gcc.dg/format/c99-strftime-2.c, gcc.dg/format/diag-1.c, gcc.dg/format/errmk-1.c, gcc.dg/format/ext-1.c, gcc.dg/format/ext-2.c, gcc.dg/format/ext-3.c, gcc.dg/format/ext-4.c, gcc.dg/format/ext-5.c, gcc.dg/format/miss-1.c, gcc.dg/format/miss-2.c, gcc.dg/format/no-exargs-1.c, gcc.dg/format/no-y2k-1.c, gcc.dg/format/nonlit-1.c, gcc.dg/format/nonlit-2.c, gcc.dg/format/nonlit-3.c, gcc.dg/format/sec-1.c, gcc.dg/format/strfmon-1.c, gcc.dg/format/va-1.c, gcc.dg/format/warnll-1.c, gcc.dg/format/xopen-1.c, gcc.dg/format/z-1.c: Include "format.h" instead of declaring standard types, macros and functions in each test. From-SVN: r38767
2001-01-07hard-reg-set.h: Add multiple include guard.Michael Hayes6-157/+297
* hard-reg-set.h: Add multiple include guard. * basic-block.h (struct loop): Add `sink' field. * loop.h: Include sbitmap.h, hard-reg-set.h, and basic-block.h. (emit_iv_add_mult): Delete. (loop_iv_add_mult_hoist, loop_iv_add_mult_sink): Define. (loop_iv_add_mult_emit_before, loop_insn_sink): Define. (unroll_loop): Remove end_insert_before argument. * loop.c (loop_givs_rescan): Remove end_insert_before argument. (maybe_eliminate_biv_1): Likewise. (emit_iv_add_mult): Delete. (gen_add_mult, loop_regs_update): New. (loop_insn_emit_after, loop_insn_emit_before): New. (loop_insn_sink, loop_insn_sink_or_swim): New. (emit_iv_add_mult): Delete. (scan_loop): Set loop->sink. (loop_givs_reduce): Use loop_insn_sink and its ilk. (loop_givs_rescan, strength_reduce, check_dbra_loop): Likewise. (maybe_eliminate_biv_1): Likewise. (maybe_eliminate_biv_1): Add basic block argument. * unroll.c (unroll_loop): Remove end_insert_before argument. (find_splittable_regs): Likewise. (find_splittable_regs): Use loop_insn_sink and its ilk. (find_splittable_givs, final_biv_value, final_giv_value): Likewise. From-SVN: r38766
2001-01-07loop.h (loop_insn_hoist): New prototype.Michael Hayes3-22/+61
* loop.h (loop_insn_hoist): New prototype. * loop.c (loop_insn_hoist, loop_insn_emit_before): New. (move_movables, loop_givs_rescan): Use loop_insn_hoist. (check_dbra_loop, load_mems): Likewise. * unroll.c (unroll_loop, find_splittable_regs): Likewise. (find_splittable_givs): Likewise. From-SVN: r38765
2001-01-07* loop.c (emit_iv_add_mult): Use single_set to examine new insn.Michael Hayes2-3/+10
From-SVN: r38764
2001-01-07* sched-rgn.c (is_cfg_nonregular): Fix thinko's last change.Richard Henderson2-3/+6
From-SVN: r38763
2001-01-07Makefile.in (DRIVER_DEFINES): Define ENABLE_SHARED_LIBGCC and ↵Richard Henderson4-7/+134
NO_SHARED_LIBGCC_MULTILIB as required for the... * Makefile.in (DRIVER_DEFINES): Define ENABLE_SHARED_LIBGCC and NO_SHARED_LIBGCC_MULTILIB as required for the target. * gcc.c (init_spec): Massage the existing libgcc_spec into a variant that handles a shared libgcc. (process_command): Always validate -{static,shared}-libgcc. (do_spec_1): New 'M' case. * invoke.text (Link Options): Document -{static,shared}-libgcc. From-SVN: r38762
2001-01-07Makefile.in (slibdir): New variable.Richard Henderson11-276/+388
* Makefile.in (slibdir): New variable. (libgcc.mk): Pass SHLIB_INSTALL to mklibgcc. (installdirs): Create slibdir. (install-libgcc, install-multilib): Defer to libgcc.mk. * configure.in (slibdir): Substitute. * mklibgcc.in (install): New target. * config/t-linux (SHLIB_LINK): Create links for the soname. (SHLIB_INSTALL): New. * config/alpha/t-osf4 (SHLIB_INSTALL): New. * config/mips/t-iris6 (SHLIB_INSTALL): New. * config/rs6000/t-aix43 (SHLIB_INSTALL): New. * config/sparc/t-slibgcc (SHLIB_INSTALL): New. * config/sparc/t-slibgcc-sld (SHLIB_INSTALL): New. From-SVN: r38761
2001-01-07aix.h (LINK_LIBGCC_SPECIAL_1): New.Richard Henderson4-8/+9
* config/rs6000/aix.h (LINK_LIBGCC_SPECIAL_1): New. * config/rs6000/rs6000.h (LIBGCC_SPEC): Remove. * config/rs6000/sysv4.h (LIBGCC_SPEC): Remove. From-SVN: r38760
2001-01-07Daily bump.Jeff Law5-5/+5
From-SVN: r38759
2001-01-07loop.c (count_loop_regs_set): Delete.Michael Hayes2-140/+110
* loop.c (count_loop_regs_set): Delete. (load_mems_and_recount_loop_regs_set): Delete. (loop_regs_scan): Merge common code from count_loop_regs_set, scan_loop, and load_mems_and_recount_loop_regs_set. (scan_loop): Call load_mems directly and loop_regs_scan again if new registers created. From-SVN: r38758
2001-01-07toplev.c (main): Call the front-end specific post_options hook if one is given.Neil Booth8-1/+64
* toplev.c (main): Call the front-end specific post_options hook if one is given. * toplev.h (struct_lang_hooks, lang_hooks): New. * c-lang.c (c_post_options, lang_hooks): Implement lang_hooks for the C front end. * cp/decl2.c (cxx_post_options, lang_hooks): Implement lang_hooks for the C++ front end. * objc/objc-act.c (objc_post_options, lang_hooks): Implement lang_hooks for the ObjC front end. * f/com.c (lang_hooks): Hooks for the Fortran front end. * java/lang.c (lang_hooks): Hooks for the Java front end. From-SVN: r38757
2001-01-07c-lex.c (init_c_lex): Request #define / #undef callbacks for verbose ↵Neil Booth4-14/+47
DWARF[2] debugging. * c-lex.c (init_c_lex): Request #define / #undef callbacks for verbose DWARF[2] debugging. (cb_define, cb_undef): The new callbacks. * toplev.h (debug_define, debug_undef): Make const correct. * toplev.c (debug_define, debug_undef): Similarly. Do not perform the verbosity tests here anymore. From-SVN: r38756
2001-01-07reload.c (subst_reloads): Take INSN argument.Alexandre Oliva10-24/+90
* reload.c (subst_reloads): Take INSN argument. When replacing a LABEL_REF in a JUMP_INSN, add a REG_LABEL note. * reload.h (subst_reloads): Adjust prototype. * reload1.c (reload_as_needed): Pass INSN to subst_reloads. * jump.c (mark_all_labels): Canonicalize any REG_LABEL notes present in JUMP_INSNs and copy them to JUMP_LABEL. * flow.c (find_label_refs, find_basic_blocks_1): Skip JUMP_INSNs and insns with REG_LABELs that are followed by JUMP_INSNs with the same REG_LABEL. * sched-rgn.c (is_cfg_nonregular): Likewise. * rtlanal.c (computed_jump_p): Make it false if a REG_LABEL note is available. * unroll.c (unroll_loop): Look for REG_LABEL notes in JUMP_INSNs too. * rtl.texi (REG_LABEL): Document usage in JUMP_INSNs. From-SVN: r38755
2001-01-06Fix comments for docletsAnthony Green8-14/+29
From-SVN: r38754
2001-01-06* gcc.c-torture/execute/20010106-1.c: New test.Alexandre Oliva2-0/+34
From-SVN: r38753
2001-01-06loop.c (scan_loop): Use xcalloc for the regs array.Richard Henderson2-9/+11
* loop.c (scan_loop): Use xcalloc for the regs array. (load_mems_and_recount_loop_regs_set): Zero the new memory received from xrealloc. From-SVN: r38752
2001-01-06format.exp: New file.Joseph Myers44-0/+107
* gcc.dg/format/format.exp: New file. * gcc.dg/c90-printf-1.c: Rename to gcc.dg/format/c90-printf-1.c. * gcc.dg/c90-printf-2.c: Rename to gcc.dg/format/c90-printf-2.c. * gcc.dg/c90-printf-3.c: Rename to gcc.dg/format/c90-printf-3.c. * gcc.dg/c94-printf-1.c: Rename to gcc.dg/format/c94-printf-1.c. * gcc.dg/c99-printf-1.c: Rename to gcc.dg/format/c99-printf-1.c. * gcc.dg/c99-printf-2.c: Rename to gcc.dg/format/c99-printf-2.c. * gcc.dg/c99-printf-3.c: Rename to gcc.dg/format/c99-printf-3.c. * gcc.dg/c90-scanf-1.c: Rename to gcc.dg/format/c90-scanf-1.c. * gcc.dg/c90-scanf-2.c: Rename to gcc.dg/format/c90-scanf-2.c. * gcc.dg/c90-scanf-3.c: Rename to gcc.dg/format/c90-scanf-3.c. * gcc.dg/c90-scanf-4.c: Rename to gcc.dg/format/c90-scanf-4.c. * gcc.dg/c94-scanf-1.c: Rename to gcc.dg/format/c94-scanf-1.c. * gcc.dg/c99-scanf-1.c: Rename to gcc.dg/format/c99-scanf-1.c. * gcc.dg/c99-scanf-2.c: Rename to gcc.dg/format/c99-scanf-2.c. * gcc.dg/c99-scanf-3.c: Rename to gcc.dg/format/c99-scanf-3.c. * gcc.dg/c90-strftime-1.c: Rename to gcc.dg/format/c90-strftime-1.c. * gcc.dg/c90-strftime-2.c: Rename to gcc.dg/format/c90-strftime-2.c. * gcc.dg/c99-strftime-1.c: Rename to gcc.dg/format/c99-strftime-1.c. * gcc.dg/c99-strftime-2.c: Rename to gcc.dg/format/c99-strftime-2.c. * gcc.dg/format-array-1.c: Rename to gcc.dg/format/array-1.c. * gcc.dg/format-attr-1.c: Rename to gcc.dg/format/attr-1.c. * gcc.dg/format-branch-1.c: Rename to gcc.dg/format/branch-1.c. * gcc.dg/format-diag-1.c: Rename to gcc.dg/format/diag-1.c. * gcc.dg/format-errmk-1.c: Rename to gcc.dg/format/errmk-1.c. * gcc.dg/format-ext-1.c: Rename to gcc.dg/format/ext-1.c. * gcc.dg/format-ext-2.c: Rename to gcc.dg/format/ext-2.c. * gcc.dg/format-ext-3.c: Rename to gcc.dg/format/ext-3.c. * gcc.dg/format-ext-4.c: Rename to gcc.dg/format/ext-4.c. * gcc.dg/format-ext-5.c: Rename to gcc.dg/format/ext-5.c. * gcc.dg/format-miss-1.c: Rename to gcc.dg/format/miss-1.c. * gcc.dg/format-miss-2.c: Rename to gcc.dg/format/miss-2.c. * gcc.dg/format-no-exargs-1.c: Rename to gcc.dg/format/no-exargs-1.c. * gcc.dg/format-no-y2k-1.c: Rename to gcc.dg/format/no-y2k-1.c. * gcc.dg/format-nonlit-1.c: Rename to gcc.dg/format/nonlit-1.c. * gcc.dg/format-nonlit-2.c: Rename to gcc.dg/format/nonlit-2.c. * gcc.dg/format-nonlit-3.c: Rename to gcc.dg/format/nonlit-3.c. * gcc.dg/format-sec-1.c: Rename to gcc.dg/format/sec-1.c. * gcc.dg/format-strfmon-1.c: Rename to gcc.dg/format/strfmon-1.c. * gcc.dg/format-va-1.c: Rename to gcc.dg/format/va-1.c. * gcc.dg/format-warnll-1.c: Rename to gcc.dg/format/warnll-1.c. * gcc.dg/format-xopen-1.c: Rename to gcc.dg/format/xopen-1.c. * gcc.dg/formatz-1.c: Rename to gcc.dg/format/z-1.c. From-SVN: r38749
2001-01-06* mkdeps.c (deps_add_dep): Fix vector re-allocation.Neil Booth2-1/+5
From-SVN: r38748
2001-01-06integrate.c (copy_rtx_and_substitute): When copying an ignored return value, ↵J"orn Rennecke2-3/+17
strip REG_FUNCTION_VALUE_P. * integrate.c (copy_rtx_and_substitute): When copying an ignored return value, strip REG_FUNCTION_VALUE_P. From-SVN: r38747
2001-01-06Daily bump.Jeff Law5-5/+5
From-SVN: r38746
2001-01-06From patha@softlab.ericsson.se:Bryce McKinlay2-1/+7
* parse.y (switch_label): Use build, not build1, to construct DEFAULT_EXPR. From-SVN: r38745
2001-01-06loop.c (debug_biv, debug_giv): New.Michael Hayes3-98/+131
* loop.c (debug_biv, debug_giv): New. (loop_biv_dump): Break out from ... (record_biv): ... here. (loop_giv_dump): Break out from ... (record_giv): ... here. (loop_bivs_check): Use print_simple_rtl. * unroll.c (loop_iterations): Use print_simple_rtl. From-SVN: r38744
2001-01-06[multiple changes]Benjamin Kosnik8-77/+105
2001-01-05 Benjamin Kosnik <bkoz@redhat.com> Fix 27_io/filebuf_members.cc * src/localename.cc (locale::_Impl::_Impl(const _Impl& __imp, const string& __name, category __cat, size_t __refs): Set _M_has_name with _M_name. * include/bits/localefwd.h (locale::operator!=): Protect member function call with this->. * src/locale.cc (locale::operator==): Make fast checks first. * include/bits/basic_ios.tcc (basic_ios::init): Simplify. * include/bits/ios_base.h (_M_synced_with_stdio): Add data member to ios_base::Init. * src/ios.cc (ios_base::Init::Init): Initialize here. (ios_base::sync_with_stdio): Set here. 2001-01-04 Loren J. Rittle <ljrittle@acm.org> * config/c_io_stdio.cc (__basic_file<_CharT>::sys_open()): On systems that support it, call dup() before fdopen(). From-SVN: r38742
2001-01-05pa.md (return, [...]): Modify patterns to prevent regrename mucking with the ↵John David Anglin2-3/+11
return pointer. * pa.md (return, return_internal): Modify patterns to prevent regrename mucking with the return pointer. From-SVN: r38741
2001-01-06Testcase for recent checkin.Mike Stump1-0/+4
From-SVN: r38740
2001-01-06varasm.c (assemble_name): Ensure we output the stripped name.Mike Stump2-1/+5
* varasm.c (assemble_name): Ensure we output the stripped name. Fixes s35520.C. From-SVN: r38739
2001-01-05Update copyright.Richard Henderson1-1/+1
From-SVN: r38738
2001-01-05* dwarf2out.c (mem_loc_descriptor) [case MEM]: Revert 10-31 change.Richard Henderson2-12/+6
From-SVN: r38737
2001-01-06Faster __mulsi routineNick Clifton2-45/+53
From-SVN: r38736
2001-01-06cpp.texi: Update for -MQ.Neil Booth5-63/+65
* cpp.texi: Update for -MQ. * cppinit.c (cpp_create_reader): Always create pfile->deps. (cpp_cleanup): Always free pfile->deps. (initialize_dependency_output): Don't create pfile->deps. (cpp_handle_option): Similarly. (OPT_MQ): New. * gcc.c (cpp_options): Handle -MQ. (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ. * mkdeps.c (base_name): Remove. (deps_init): Don't allocate vector space until it's needed. (deps_free): Only free vectors if allocated. (deps_add_target, deps_add_dep): Update for initial allocation. (deps_add_default_target): Don't strip to the base_name. From-SVN: r38735
2001-01-06Implement __builtin_return_address (0)DJ Delorie4-3/+97
From-SVN: r38734
2001-01-05cpplib.h (struct cpp_reader): Add help_only field.Zack Weinberg5-15/+58
* cpplib.h (struct cpp_reader): Add help_only field. * cppinit.c (COMMAND_LINE_OPTIONS): Add OPT_version. (cpp_handle_option): Set pfile->help_only if we see -h, --help, -target-help, or --version. Print version string but do not set help_only if we see -v or -version. Make text printed by -v match that printed by (-)-version. * cppmain.c (main): Exit after option parsing if pfile->help_only is true. * toplev.c (independent_decode_option): Call print_version, then exit, if we see --version (but not -version). (print_version): Split lengthy message into two lines. From-SVN: r38733