aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
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 Administrator2-2/+2
From-SVN: r53320
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-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 Mitchell2-3/+20
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-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-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 Administrator2-2/+2
From-SVN: r53283
2002-05-08* gjavah.c (throwable_p): Use xstrdup, not strdup.Tom Tromey2-2/+4
From-SVN: r53279
2002-05-08* toplev.c: Fix formatting.Kazu Hirata2-77/+81
From-SVN: r53276
2002-05-08re PR java/1200 (gcjh -jni doesn't respect class hierarchy)Tom Tromey2-11/+119
Fix for PR java/1200: * gjavah.c (throwable_p): New function. (decode_signature_piece): Use it. A `WeakReference' isn't the same as a `jweak'. Include hashtab.h. (gcjh_streq): New function. From-SVN: r53275
2002-05-07Add forgotten changelog entry.David S. Miller1-0/+6
From-SVN: r53273
2002-05-07config.in (ENABLE_RTL_FLAG_CHECKING): New.Janis Johnson5-316/+346
* config.in (ENABLE_RTL_FLAG_CHECKING): New. * configure.in (ac_rtlflag_checking): New. * doc/install.texi (--enable-checking): Document RTL flag checking. * configure: Regenerated. From-SVN: r53272
2002-05-07c-common.c (c_common_init): Set options->unsigned_wchar.Neil Booth26-72/+47
* c-common.c (c_common_init): Set options->unsigned_wchar. * cppinit.c (cpp_create_reader): Default unsigned_wchar, group target dependencies. (init_builtins, cpp_handle_option): Update. * cpplex.c (cpp_interpret_charconst): Update. * cpplib.h (struct cpp_options): Add unsigned_wchar, rename signed_char to unsigned_char, group target dependencies. * defaults.h (WCHAR_UNSIGNED): Remove. * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison. config: * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h, i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h, i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h, i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h, sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED. doc: * tm.texi: Remove MAX_CHAR_TYPE_SIZE. From-SVN: r53271
2002-05-07inclhack.def (windiss_math1): New fix.Mark Mitchell3-2/+144
* fixinc/inclhack.def (windiss_math1): New fix. (windiss_math2): Likewise. (windiss_valist): Likewise. * fixinc/fixincl.x: Regenerated. From-SVN: r53267
2002-05-07genautomata.c (output_internal_min_issue_delay_func): Add ATTRIBUTE_UNUSED ↵Andreas Jaeger2-12/+18
to avoid warning with empty dfa. * genautomata.c (output_internal_min_issue_delay_func): Add ATTRIBUTE_UNUSED to avoid warning with empty dfa. (output_internal_trans_func): Likewise. From-SVN: r53266
2002-05-07* parse.y (finish_for_loop): Fix if statement.Andreas Jaeger2-4/+8
From-SVN: r53263
2002-05-07pa.c (hppa_profile_hook): Use force_reg to get the address of the profile ↵Jeff Law2-18/+6
hook into an appropriate pseudo... * pa.c (hppa_profile_hook): Use force_reg to get the address of the profile hook into an appropriate pseudo register. From-SVN: r53260
2002-05-07* target.h (FFETARGET_32bit_longs): Undefine for x86-64.Jan Hubicka2-4/+8
From-SVN: r53259
2002-05-07sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.Mark Mitchell3-17/+132
* config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss. (LINK_START_SPEC): Handle it. (LINK_OS_SPEC): Likewise. (CPP_SPEC): Likewise. (STARTFILE_SPEC): Likewise. (LIB_SPEC): Likewise. (ENDFILE_SPEC): Likewise. Do not assume crtsavres.o is used on all platforms. (CRTSAVRES_DEFAULT_SPEC): New macro. (LIB_WINDISS_SPEC): New macro. (CPP_OS_WINDISS_SPEC): Likewise. (STARTFILE_WINDISS_SPEC): Likewise. (ENDFILE_WINDISS_SPEC): Likewise. (LINK_START_WINDISS_SPEC): Likewise. (LINK_OS_WINDISS_SPEC): Likewise. * config/rs6000/windiss.h: New file. From-SVN: r53257
2002-05-07rs6000.c (bdesc_2arg): Fix vmax typos.Aldy Hernandez2-5/+9
2002-05-07 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos. From-SVN: r53254
2002-05-07Daily bump.GCC Administrator2-2/+2
From-SVN: r53253
2002-05-06re PR c++/6212 (g++ testsuite EH regressions for irix6 -mabi=64)Richard Henderson2-6/+29
PR c++/6212 * expr.c (highest_pow2_factor_for_type): New. (expand_assignment): Use it. From-SVN: r53249
2002-05-07re PR java/5941 (incorrect "Unreachable statement" error)Tom Tromey3-2/+42
Fix for PR java/5941: * parse.y (finish_for_loop): Set SUPPRESS_UNREACHABLE_ERROR for loop update expression. (java_complete_lhs): Use SUPPRESS_UNREACHABLE_ERROR. * java-tree.h (SUPPRESS_UNREACHABLE_ERROR): New macro. From-SVN: r53247
2002-05-07rs6000.md ("altivec_mtvscr"): Change to unspec_volatile.Aldy Hernandez2-2/+8
2002-05-06 Aldy Hernandez <aldyh@redhat.com> * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to unspec_volatile. ("altivec_mfvscr"): Same. From-SVN: r53246
2002-05-07rtl.h (struct rtx_def): Update comments.Janis Johnson5-71/+211
* rtl.h (struct rtx_def): Update comments. (RTL_FLAG_CHECK[12345678]): New. (rtl_check_failed_flag): Declare. (RTL_FLAG): New. (CLEAR_RTX_FLAGS): New. (flag access macros): Use RTL_FLAG_CHECK macros with list of expected RTL codes. * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro. (rtl_check_failed_flag): New. * reload1.c (reload): Use REG macro before changing rtx to MEM. (reload_cse_noop_set_p): Check rtx code before using access macro. * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code before using access macro. From-SVN: r53245
2002-05-06* doc/rtl.texi (Flags): Update to reflect current usage.Janis Johnson2-38/+53
From-SVN: r53242
2002-05-06re PR rtl-optimization/3995 (i386 optimisation: joining tests)Roger Sayle4-3/+416
PR opt/3995 * fold-const.c (sign_bit_p): New function. (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and (A & C) != 0 into A < 0, when constant C is the sign bit of A's type. Reapply fold when converting (A & C) == C into (A & C) != 0. (fold_binary_op_with_conditional_arg): Fix typo in comment. testsuite/ * gcc.c-torture/execute/20020506-1.c: New test case. From-SVN: r53241
2002-05-06c-common.c (warn_multichar): New.Neil Booth17-43/+97
* c-common.c (warn_multichar): New. (c_common_init): Set CPP's warn_multichar. * c-common.h (warn_multichar): New. * c-decl.c (warn_multichar): Remove. * c-lex.c (lex_charconst): Update. * c-tree.h (warn_multichar): Remove. * cppexp.c (eval_token): Sign-extend charconst value. * cppinit.c (cpp_create_reader): Set warn_multichar. * cpplex.c (cpp_interpret_charconst): Don't sign-extend each character. Update prototype. Sign-extend the result. * cpplib.h: Fix conditions. (struct cpp_options): Add new warning flag. (cpp_interpret_charconst): Update prototype. cp: * Make-lang.in (decl2.o): Update. * cp-tree.h (warn_multichar): Remove. * decl2.c: Include c-common.h. (warn_multichar): Remove. doc: * cpp.texi: Update documentation. testsuite: * gcc.dg/cpp/charconst-3.c: Correct tests accordingly. From-SVN: r53240
2002-05-06Added Tim Josling to MAINTAINERS file.Tim Josling8-3/+112
Added Tim Josling to MAINTAINERS file. Fixed various treelang copyrights. Fix broken treelang build resulting from changes to c-common.c. From-SVN: r53239
2002-05-06sparc.md (shift insns): Do not mask off second operand...David S. Miller1-24/+0
2002-05-06 David S. Miller <davem@redhat.com> * config/sparc/sparc.md (shift insns): Do not mask off second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED take care of it. From-SVN: r53238
2002-05-06genautomata.c (form_the_same_automaton_unit_lists_from_regexp): Fix typo in ↵Vladimir Makarov2-1/+6
usage of allof instead of unit. 2002-05-06 Vladimir Makarov <vmakarov@redhat.com> * genautomata.c (form_the_same_automaton_unit_lists_from_regexp): Fix typo in usage of allof instead of unit. From-SVN: r53235
2002-05-06recog.c (if_test_bypass_p): Accept multiple set insns for OUT, and any jump ↵Richard Henderson2-11/+46
or call for IN. * recog.c (if_test_bypass_p): Accept multiple set insns for OUT, and any jump or call for IN. From-SVN: r53234
2002-05-06Fix problems compiling xmmintrin.h with only -msse.Bernd Schmidt3-2/+9
From-SVN: r53230