aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-05-09athlon.md, [...]: New files.Jeffrey A Law6-729/+805
* athlon.md, k6.md, pentium.md, ppro.md): New files. * i386.md: Move scheduling information into new files. From-SVN: r53350
2002-05-09Makefile.in: Update.Neil Booth15-66/+165
* Makefile.in: Update. * c-common.c (flag_iso, flag_undef, cb_register_builtins, builtin_define_std): New. (c_common_init): Register CPP builtins callback. * c-common.h (flag_iso, flag_undef): New. * c-decl.c (c_decode_option): Set flag_iso and flag_undef. * c-lex.c: Don't include target.h. (cb_register_builtins): Move to c-common.c. (init_c_lex): Don't register hook here. * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New. (cpp_define, cpp_assert): Remove. * gcc.c (cc1_options): Pass -undef to front end. * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove. (TARGET_INITIALIZER): Update. * target.h (struct cpp_reader): Don't predeclare. (struct gcc_target): Remove cpp builtin hook. * tree.c (default_register_cpp_builtins): Remove. cp: * cp-tree.h (flag_ansi): Remove. * decl2.c (flag_ansi): Remove. (cxx_decode_option): Set flag_iso and flag_undef. doc: * tm.texi: Update. From-SVN: r53349
2002-05-09* cppexp.c (_cpp_expand_op_stack): Set op_limit.Neil Booth2-3/+9
From-SVN: r53348
2002-05-09t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.Rainer Orth2-7/+19
* config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define. (SHLIB_LINK, SHLIB_INSTALL): Adjust. From-SVN: r53347
2002-05-09t-linux64 (SHLIB_MAPFILES): Set.Jakub Jelinek5-5/+45
* config/sparc/t-linux64 (SHLIB_MAPFILES): Set. * config/sparc/libgcc-sparc-glibc.ver: New file. * config/cris/t-linux (SHLIB_MAPFILES): Remove. * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags. From-SVN: r53346
2002-05-09re PR target/6429 (libgcc_s problem on dual 32/64-bit arches)Jakub Jelinek15-32/+233
PR target/6429 * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc. * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for base multilibs. * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above. * config/t-slibgcc-sld (SHLIB_LINK): Likewise. * config/i386/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define. * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define. * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define. * lib/g77.exp (g77_link_flags): Append all multilib dirs containing libgcc_s*.so.1 below gcc object dir to LD_LIBRARY_PATH. * lib/g++.exp (g++_link_flags): Likewise. * lib/objc.exp (objc_target_compile): Likewise. * testsuite/lib/libstdc++-v3-dg.exp (libstdc++-v3-init): Append all multilib dirs containing libgcc_s*.so.1 below gcc object dir to LD_LIBRARY_PATH. * testsuite/lib/libjava.exp (libjava_arguments): Append all multilib dirs containing libgcc_s*.so.1 below gcc object dir to LD_LIBRARY_PATH. From-SVN: r53345
2002-05-09ia64.md: Use define_constants for unspec numbers.Richard Henderson3-106/+131
* config/ia64/ia64.md: Use define_constants for unspec numbers. * config/ia64/ia64.c: Likewise. From-SVN: r53344
2002-05-09mips.c (mips_add_large_offset_to_sp): Remove FILE arg.Richard Sandiford2-183/+94
* config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg. (save_restore_insns): Likewise. (mips_expand_prologue, mips_expand_epilogue): Update callers. (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument. From-SVN: r53341
2002-05-09* Makefile.in: Honour DESTDIR.Federico G. Schwindt2-2/+6
From-SVN: r53340
2002-05-09i386.md (type attribute): Add "rotate" for rotate insns.Jeffrey A Law2-27/+42
* i386.md (type attribute): Add "rotate" for rotate insns. (rotate insns): Set type to "rotate". (various attributes and function units): Treat rotate like shift. (pent_pair attribute): Only rotates by one bit position are pairable. (sbb insns): Explicitly set pent_pair attribute on a couple that were missing it. From-SVN: r53338
2002-05-09sh.c (sh_builtin_saveregs): If starting with an odd fp register...J"orn Rennecke2-1/+23
* sh.c (sh_builtin_saveregs): If starting with an odd fp register, make sure that buffer starts on odd word address. (sh_va_arg): Skip odd fp registers when reading a double precision value. From-SVN: r53337
2002-05-09typeck.c (get_member_function_from_ptrfunc): Reorganize.Jason Merrill4-68/+67
* typeck.c (get_member_function_from_ptrfunc): Reorganize. Use subtraction rather than a bitmask to get the index. * cvt.c (cp_convert_to_pointer): Bail on an error_mark_node. * pt.c (tsubst_expr) [ASM_STMT]: Copy ASM_INPUT_P. From-SVN: r53335
2002-05-09tree.h (preserve_data, [...]): Remove.Neil Booth2-3/+5
* tree.h (preserve_data, object_permanent_p, type_precision): Remove. From-SVN: r53334
2002-05-09cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.Neil Booth8-84/+23
* cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison. * cppmacro.c (paste_all_tokens): Bad pastes are a hard error. doc: * cpp.texi: Update for removal of obsolete features. testsuite: * gcc.dg/cpp/poison.c: Update. * gcc.dg/cpp/20000625-2.c: Remove. * gcc.dg/cpp/direct2s.c: Remove final test. From-SVN: r53333
2002-05-09add PR noteJason Merrill1-0/+1
From-SVN: r53332
2002-05-09final.c (end_final): Use C trees to output data structures for profiling.Jan Hubicka1-0/+52
* final.c (end_final): Use C trees to output data structures for profiling. * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h (profile.o): New dependency profile.h (final.o): New dependency profile.h * profile.h: New file. New global structure profile_info. * final.h (count_edges_instrumented_now): Declare. (current_function_cfg_checksum): Declare. (function_list): New structure. (functions_head, functions_tail): New static variables. (end_final): Emits more data, removed some -ax stuff. (final): Stores function names and chcksums. * gcov-io.h (__write_gcov_string): New function. (__read_gcov_string): New function. * gcov.c (read_profile): New function. (create_program_flow_graph): Uses read_profile instead of reading da_file. (read_files): Removed da_file checking, it's done by read_profile now. * libgcc2.c (bb_function_info): New structure. (bb): New field in structure, removed some -ax stuff. (__bb_exit_func): Changed structure of da_file. * profile.c (count_edges_instrumented_now): New global variable. (current_function_cfg_checksum): New global variable. (max_counter_in_program): New global variable. (get_exec_counts): New function. (compute_checksum): New function. (instrument_edges): Sets count_edges_instrumented_now. (compute_branch_probabilities): Uses get_exec_counts instead of reading da_file. (branch_prob): Calls compute_checksum and writes extra data to bbg_file. (init_branch_prob): Removed da_file checking, done in get_exec_counts now. (end_branch_prob): Removed da_file checking, done in get_exec_counts now. * gcov.texi: Updated information about gcov file format. From-SVN: r53330
2002-05-09i386.c (ia32_use_dfa_pipeline_interface): New function.Jan Hubicka3-298/+203
* i386.c (ia32_use_dfa_pipeline_interface): New function. Use the DFA interface for Pentium processors. (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE. (attr_pent_pair, ix86_pent_find_pair): Remove. (ix86_sched_reorder_pentium): Remove. (ix86_sched_reorder): Remove reordering for Pentium. * i386.md (Pentium scheduling): Rewrite using DFA description. Co-Authored-By: Jeff Law <law@redhat.com> From-SVN: r53329
2002-05-09re PR rtl-optimization/3311 (GCC-SH: gcc loses result of AND operation due ↵Jeff Law2-0/+29
to force_to_mode bug) Forgot to commit long long ago. See my message to gcc-patches from Mar 28 :-) Testcase for PR 3311. From-SVN: r53328
2002-05-09cfganal.c (can_fallthru): Fix fast path.Jan Hubicka3-1/+11
* cfganal.c (can_fallthru): Fix fast path. * cfgrtl.c (verify_flow_info): Avoid crash on conditionals with edges to the next block. From-SVN: r53327
2002-05-09final.c (end_final): Use C trees to output data structures for profiling.Jan Hubicka12-291/+985
* final.c (end_final): Use C trees to output data structures for profiling. * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h (profile.o): New dependency profile.h (final.o): New dependency profile.h * profile.h: New file. New global structure profile_info. * final.h (count_edges_instrumented_now): Declare. (current_function_cfg_checksum): Declare. (function_list): New structure. (functions_head, functions_tail): New static variables. (end_final): Emits more data, removed some -ax stuff. (final): Stores function names and chcksums. * gcov-io.h (__write_gcov_string): New function. (__read_gcov_string): New function. * gcov.c (read_profile): New function. (create_program_flow_graph): Uses read_profile instead of reading da_file. (read_files): Removed da_file checking, it's done by read_profile now. * libgcc2.c (bb_function_info): New structure. (bb): New field in structure, removed some -ax stuff. (__bb_exit_func): Changed structure of da_file. * profile.c (count_edges_instrumented_now): New global variable. (current_function_cfg_checksum): New global variable. (max_counter_in_program): New global variable. (get_exec_counts): New function. (compute_checksum): New function. (instrument_edges): Sets count_edges_instrumented_now. (compute_branch_probabilities): Uses get_exec_counts instead of reading da_file. (branch_prob): Calls compute_checksum and writes extra data to bbg_file. (init_branch_prob): Removed da_file checking, done in get_exec_counts now. (end_branch_prob): Removed da_file checking, done in get_exec_counts now. * gcov.texi: Updated information about gcov file format. Co-Authored-By: Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz> From-SVN: r53326
2002-05-09sbitmap.c: Fix formatting.Kazu Hirata17-253/+272
* sbitmap.c: Fix formatting. * scan.c: Likewise. * scan-decls.c: Likewise. * sched-deps.c: Likewise. * sched-ebb.c: Likewise. * sched-rgn.c: Likewise. * sched-vis.c: Likewise. * sdbout.c: Likewise. * sibcall.c: Likewise. * simplify-rtx.c: Likewise. * ssa.c: Likewise. * ssa-ccp.c: Likewise. * ssa-dce.c: Likewise. * stmt.c: Likewise. * stor-layout.c: Likewise. * stringpool.c: Likewise. From-SVN: r53324
2002-05-09sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.David S. Miller2-0/+8
2002-05-09 David S. Miller <davem@redhat.com> * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9. From-SVN: r53323
2002-05-09sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.David S. Miller4-20/+29
2002-05-07 David S. Miller <davem@redhat.com> * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero. * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one. * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp library implementation clobbers the output before the inputs are fully consumed, use stack temporary for the output. From-SVN: r53322
2002-05-09expr.c (ffeexpr_reduced_ugly2log_): Allow logicals-as-integers under ↵Hassan Aurag2-0/+23
-fugly-logint as arguments of .and., .or., .xor. 2002-05-09 Hassan Aurag <aurag@cae.com> * expr.c (ffeexpr_reduced_ugly2log_): Allow logicals-as-integers under -fugly-logint as arguments of .and., .or., .xor. From-SVN: r53321
2002-05-09Daily bump.GCC Administrator6-6/+6
From-SVN: r53320
2002-05-09* gcc_release: Correct upload handling.Mark Mitchell2-2/+9
From-SVN: r53315
2002-05-09netbsd.h (CPP_SPEC): Remove.Jason Thorpe8-11/+30
* config/netbsd.h (CPP_SPEC): Remove. * config/i386/netbsd-elf.h (CPP_SPEC): Define. * config/i386/netbsd.h (CPP_SPEC): Define. * config/ns32k/netbsd.h (CPP_SPEC): Define. * config/sparc/netbsd-elf.h (CPP_SPEC): Remove. * config/sparc/netbsd.h (CPP_SPEC): Define. * config/vax/netbsd.h (CPP_SPEC): Define. From-SVN: r53314
2002-05-09read-rtl.c: Fix formatting.Kazu Hirata13-201/+216
* read-rtl.c: Fix formatting. * real.c: Likewise. * recog.c: Likewise. * regclass.c: Likewise. * regmove.c: Likewise. * reg-stack.c: Likewise. * reload1.c: Likewise. * reload.c: Likewise. * resource.c: Likewise. * rtlanal.c: Likewise. * rtl.c: Likewise. * rtl-error.c: Likewise. From-SVN: r53313
2002-05-08pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.John David Anglin3-2/+5
* pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete. * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete. From-SVN: r53309
2002-05-08Define __SSE2__ if -msse2 instead of __SSE2_BUILTINS__Bernd Schmidt3-2/+8
From-SVN: r53308
2002-05-08rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name, and use it in ↵Janis Johnson4-130/+182
all invocations of these macros. * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name, and use it in all invocations of these macros. Clean up comments. * rtl.c (rtl_check_failed_flag): Add an argument for the name of the flag access macro whose check failed. * doc/rtl.texi (Flags): Document additional flag uses. From-SVN: r53306
2002-05-08New tests for rotating.Tom Rix4-0/+314
From-SVN: r53305
2002-05-08re PR preprocessor/6521 (-MG creates dependency with wrong path)Robert Spier3-28/+17
PR preprocessor/6521 * cppfiles.c (handle_missing_header): Don't do anything different for <> includes. doc: * cppopts.texi: Update documentation for -MG. Co-Authored-By: Neil Booth <neil@daikokuya.demon.co.uk> From-SVN: r53304
2002-05-08cpplex.c (cpp_interpret_charconst): Truncate as well as sign-extend.Neil Booth5-19/+84
* cpplex.c (cpp_interpret_charconst): Truncate as well as sign-extend. doc: * cpp.texi: Clarify multichar charconst valuation. testsuite: * gcc.dg/cpp/charconst-4.c: More tests. From-SVN: r53301
2002-05-08config.guess: Import 2002-03-20 version.Mark Mitchell3-68/+60
* config.guess: Import 2002-03-20 version. * config.sub: Import 2002-04-26 version. From-SVN: r53300
2002-05-08* doc/invoke.texi: Document -mwindiss option.Mark Mitchell2-1/+9
From-SVN: r53299
2002-05-08jcf-write.c (write_classfile): Write the file to a temporary file and then ↵Mark Mitchell5-120/+73
rename it. * java/jcf-write.c (write_classfile): Write the file to a temporary file and then rename it. * libjava/Makefile.am (all_java_source_files): New variable. (all_java_class_files): Likewise. .java.class: New rule. (CLEANFILES): Remove tmp-list. * libjava/Makefile.in: Regenerated. From-SVN: r53298
2002-05-08* config-ml.in: Allow for PWDCMD to determine ML_POPDIR.Rainer Orth2-1/+5
From-SVN: r53297
2002-05-08Adjust copyright datesMark Mitchell2-2/+2
From-SVN: r53296
2002-05-08re PR c++/6381 (Missing assembler label)Jason Merrill3-5/+36
* dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs. * dwarf2out.c (gen_type_die): Abort on broken recursion. PR c++/6381 * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and REAL_CST. From-SVN: r53295
2002-05-08Do not allow big-endian/little-endian multilibs to override arm/thumb multilibs.Nick Clifton2-2/+11
Do not allow big-endian/little-endian multilibs to override arm/thumb multilibs. Do not build hardware floating point multilibs, nor apcs-26 multilibs for the Thumb. From-SVN: r53294
2002-05-08re PR target/6569 (sparc-sun-solaris2.7 C testsuite regression in ↵Mark Mitchell5-23/+78
compile/20011119-2.c) PR c/6569. * varasm.c (mark_weak): New function. (merge_weak): Use it. Do not call declare_weak. (declare_weak): Use merge_weak. PR c/6569 * gcc.dg/weak-3.c: Update location of warning messages. * gcc.dg/weak-5.c: Likewise. From-SVN: r53293
2002-05-08libjava.exp (test_libjava_from_javac): Append .exe to executable names.David Billinghurst2-1/+9
2002-05-09 David.Billinghurst <David.Billinghurst@riotinto.com> * testsuite/lib/libjava.exp (test_libjava_from_javac): Append .exe to executable names. Fix for cygwin. From-SVN: r53291
2002-05-08Fix merge typos.Jan Hubicka2-3/+2
From-SVN: r53288
2002-05-08cse.c (dead_libcall_p): Update counts.Jan Hubicka2-3/+15
* cse.c (dead_libcall_p): Update counts. (delete_trivially_dead_insns): Update call of dead_libcall_p. From-SVN: r53287
2002-05-08cfglayout.c (function_tail_eff_head): Rename to ...Jan Hubicka19-97/+861
* cfglayout.c (function_tail_eff_head): Rename to ... (function_footer): ... this one. (unlink_insn_chain): New functions. (label_for_bb): Only call block_label and emit debug message. (record_effective_endpoints): Actually unlink the headers and footers. (fixup_reorder_cahin): Re-insert the unlinked sequences. (cfg_layout_duplicate_bb): Use duplicate_insn_chain. * cfglayout.h (struct reorder_block_def): New fields footer/header; remove eff_head/eff_end. * rtl.h (set_first_insn): Declare. * emit-rtl.c (set_first_insn): New function. * cfglayout.c (fixup_reorder_chain): Dump duplicated (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge, cfg_layout_duplicate_bb): New global function. (duplicate_insn_chain): New static function. * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge, cfg_layout_duplicate_bb): Declare. (struct reorder_block_def): Add "original" field. * emit-rtl.c (emit_copy_of_insn_after): New function. * rtl.h (emit_copy_of_insn_after): Declare. * cfglayout.c (fixup_fallthru_exit_predecessor): Kill. (fixup_reorder_chain): properly handle edges to exit block. Wed May 8 11:10:31 CEST 2002 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> Jan Hubicka <jh@suse.cz> * basic-block.h (note_prediction_to_br_prob): declare. * c-semantics.c: Inlucde predit.h (expand_stmt): predict GOTO_STMT as not taken. * cfgcleanup.c: (delete_unreachable_blocks): Make global. (cleanup_cfg): Do not free tail_recursion_list. * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION. (flow_delete_block): Kill predictions past end of basic block. * output.h (delete_unreachable_blocks): Declare. * predict.c (predicted_by_p, process_note_predictions, process_note_prediction, last_block_p): New function. (estimate_probability): Bypass loop on PRED_CONTINUE; do not handle noreturn heuristics; kill PRED_RETURN; add PRED_EARLY_RETURN. * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO, PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New. * predict.h (IS_TAKEN): New constant. * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION. * rtl.c (NOTE_INSN_PREDICTION): New. * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS): New macro. (insn_note): add NOTE_INSN_PREDICTION. * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build CFG; free tail_recursion_label_list. * stmt.c: Include predict.h; (return_prediction): New. (expand_value_return): Use it. * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall. From-SVN: r53285
2002-05-08mips.md: Name the unspecs with define_constant.Richard Sandiford2-55/+72
* config/mips/mips.md: Name the unspecs with define_constant. (*HILO_delay): Rename to 'hilo_delay' (no star). (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay. (reload_outdi, reload_outsi): Likewise. From-SVN: r53284
2002-05-08Daily bump.GCC Administrator6-6/+6
From-SVN: r53283
2002-05-08* gjavah.c (throwable_p): Use xstrdup, not strdup.Tom Tromey2-2/+4
From-SVN: r53279
2002-05-08configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at script entry, and ↵Alexandre Oliva24-2046/+2246
set LD to it when configuring multilibs. * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at script entry, and set LD to it when configuring multilibs. * configure: Rebuilt. From-SVN: r53278