summaryrefslogtreecommitdiffstats
path: root/gcc/gcse.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix irix6 -O3 -funroll-all-loops bootstrap failure reported by Kaveh Ghazi.wilson1998-06-221-0/+51
| | | | | | | | | | * gcse.c (add_label_notes): New function. (pre_insert_insn): Call it. * unroll.c (unroll_loop): Look for insns with a REG_LABEL note, and pass the label to set_label_in_map. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20658 138bc75d-0d04-0410-961f-82ee72b054a4
* * calls.c (expand_call): Initialize "src" and "dest".law1998-06-201-1/+1
| | | | | | | | | | | * stmt.c (expand_return): Likewise. * expmed.c (extract_split_bit_field): Similarly for "result" * gcse.c (compute_hash_table): Mark first arg as unused. * jump.c (jump_optimize): Initialize reversep. * tree.c (make_node): Initialize length. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20629 138bc75d-0d04-0410-961f-82ee72b054a4
* Warning fixes:ghazi1998-06-081-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (varasm.o): Depend on dbxout.h. (cse.o): Depend on toplev.h and output.h. (gcse.o): Depend on output.h. * mips.c: Include system.h and toplev.h and remove redundant code. Include output.h after tree.h so all its prototypes get activated. * mips.md (table_jump): Remove unused variable `dest'. * sparc.h: Add prototype for `v8plus_regcmp_op'. * crtstuff.c (fini_dummy, init_dummy): Mark function definitions with __attribute__ ((__unused__)). (__frame_dummy): Provide prototype before use, wrap it with EH_FRAME_SECTION_ASM_OP. * cse.c: Move inclusion of <setjmp.h> above local headers. Include toplev.h and output.h. * dbxout.h: Add prototype for `dbxout_begin_function'. * final.c (final_scan_insn): Wrap variable `max_skip' in macro ASM_OUTPUT_MAX_SKIP_ALIGN. * gcse.c: Include system.h and output.h. (dump_cuid_table, dump_rd_table, dump_cprop_data, dump_pre_data): Make extern instead of static. (compute_can_copy): Only declare variables `reg' and `insn' when AVOID_CCMODE_COPIES is not defined. (record_set_info): Mark parameter `setter' with ATTRIBUTE_UNUSED. (hash_scan_clobber): Likewise for `x' and `insn'. (hash_scan_call): Likewise. (record_last_set_info): Likewise for `setter'. (mark_call): Likewise for `pat'. (pre_insert_insn): Wrap variable `note' in macro HAVE_cc0. * libgcc2.c (__bb_init_prg): Replace bzero with memset and fix the length parameter so that it multiplies the number of elements by the sizeof(element). * output.h: Add prototype for `weak_finish'. * recog.h: Likewise for `validate_replace_src'. * rtl.h: Likewise for `optimize_save_area_alloca', `fix_sched_param', `purge_addressof', `gcse_main', `regmove_optimize', `dbr_schedule', `branch_prob' and `end_branch_prob'. * toplev.h: Likewise for `set_float_handler' and `output_quoted_string'. * varasm.c: Include dbxout.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20351 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcse.c (pre_delete): Fix code to determine the mode oflaw1998-05-291-5/+7
| | | | | | | the reaching pseudo register. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20134 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcse.c (current_function_calls_longjmp): Declare.law1998-05-201-0/+1
| | | | | | | For sco5. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19915 138bc75d-0d04-0410-961f-82ee72b054a4
* remove CYGNUS LOCALjason1998-05-201-1/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19903 138bc75d-0d04-0410-961f-82ee72b054a4
* * Global CSE and constant/copy propagation.law1998-05-201-0/+4690
* Makefile.in (OBJS): Add gcse.o (STAGESTUFF): Add *.gcse. (gcse.o): Add dependencies. (mostlyclean): Remove *.gcse and */*.gcse. * gcse.c: New file. * loop.c (loop_optimize): Move call to init_alias_analysis. * recog.c (validate_replace_src): New function. * toplev.c (gcse_dump): New global variable. (flag_gcse, gcse_time): Likewise. (compile_file): Initialize gcse_time and clean out the gcse dump file if necessary. (rest_of_compilation): Call gcse_main as requested. Dump RTL after gcse if requested. (main): Enable gcse for -O2 and above. Handle -dG. Enable gcse dumps for -da. * gcc.texi: Add gcse related internal documentation. * invoke.texi: Note new command line options for gcse. * tm.texi: Document AVOID_CCMODE_COPIES. * mips.h (AVOID_CCMODE_COPIES): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19901 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud