This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

flag_branch_on_count_reg



flag_branch_on_count_reg is required for the C4x target
where HAIFA is not defined.


1998-10-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

	* flags.h (flag_branch_on_count_reg): Always declare 
	* toplev.c (flag_branch_on_count_reg): Likewise.
	* toplev.c: Fix typos.

Index: flags.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/flags.h,v
retrieving revision 1.20
diff -c -3 -p -r1.20 flags.h
*** flags.h	1998/10/06 09:03:32	1.20
--- flags.h	1998/10/08 06:18:55
*************** extern int flag_schedule_interblock;
*** 345,355 ****
  extern int flag_schedule_speculative;
  extern int flag_schedule_speculative_load;
  extern int flag_schedule_speculative_load_dangerous;
  
  /* flag_on_branch_count_reg means try to replace add-1,compare,branch tupple
     by a cheaper branch, on a count register. */
  extern int flag_branch_on_count_reg;
- #endif  /* HAIFA */
  
  
  /* Nonzero means put things in delayed-branch slots if supported. */
--- 345,355 ----
  extern int flag_schedule_speculative;
  extern int flag_schedule_speculative_load;
  extern int flag_schedule_speculative_load_dangerous;
+ #endif  /* HAIFA */
  
  /* flag_on_branch_count_reg means try to replace add-1,compare,branch tupple
     by a cheaper branch, on a count register. */
  extern int flag_branch_on_count_reg;
  
  
  /* Nonzero means put things in delayed-branch slots if supported. */
Index: toplev.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/toplev.c,v
retrieving revision 1.103
diff -c -3 -p -r1.103 toplev.c
*** toplev.c	1998/10/06 09:03:34	1.103
--- toplev.c	1998/10/08 06:19:00
*************** int flag_schedule_interblock = 1;
*** 654,665 ****
  int flag_schedule_speculative = 1;
  int flag_schedule_speculative_load = 0;
  int flag_schedule_speculative_load_dangerous = 0;
  
  /* flag_on_branch_count_reg means try to replace add-1,compare,branch tupple
     by a cheaper branch, on a count register. */
  int flag_branch_on_count_reg;
- #endif  /* HAIFA */
- 
  
  /* -finhibit-size-directive inhibits output of .size for ELF.
     This is used only for compiling crtstuff.c, 
--- 654,664 ----
  int flag_schedule_speculative = 1;
  int flag_schedule_speculative_load = 0;
  int flag_schedule_speculative_load_dangerous = 0;
+ #endif  /* HAIFA */
  
  /* flag_on_branch_count_reg means try to replace add-1,compare,branch tupple
     by a cheaper branch, on a count register. */
  int flag_branch_on_count_reg;
  
  /* -finhibit-size-directive inhibits output of .size for ELF.
     This is used only for compiling crtstuff.c, 
*************** lang_independent_options f_options[] =
*** 806,812 ****
    {"unroll-loops", &flag_unroll_loops, 1,
     "Perform loop unrolling when interation count is known" },
    {"unroll-all-loops", &flag_unroll_all_loops, 1,
!    "Perofm loop onrolling for all loops" },
    {"move-all-movables", &flag_move_all_movables, 1,
     "Force all loop invariant computations out of loops" },
    {"reduce-all-givs", &flag_reduce_all_givs, 1,
--- 805,811 ----
    {"unroll-loops", &flag_unroll_loops, 1,
     "Perform loop unrolling when interation count is known" },
    {"unroll-all-loops", &flag_unroll_all_loops, 1,
!    "Perform loop unrolling for all loops" },
    {"move-all-movables", &flag_move_all_movables, 1,
     "Force all loop invariant computations out of loops" },
    {"reduce-all-givs", &flag_reduce_all_givs, 1,
*************** lang_independent_options f_options[] =
*** 862,870 ****
     "Allow speculative motion of some loads" },
    {"sched-spec-load-dangerous",&flag_schedule_speculative_load_dangerous, 1,
     "Allow speculative motion of more loads" },
    {"branch-count-reg",&flag_branch_on_count_reg, 1,
     "Replace add,compare,branch with branch on count reg"},
- #endif  /* HAIFA */
    {"pic", &flag_pic, 1,
     "Generate position independent code, if possible"},
    {"PIC", &flag_pic, 2, ""},
--- 861,869 ----
     "Allow speculative motion of some loads" },
    {"sched-spec-load-dangerous",&flag_schedule_speculative_load_dangerous, 1,
     "Allow speculative motion of more loads" },
+ #endif  /* HAIFA */
    {"branch-count-reg",&flag_branch_on_count_reg, 1,
     "Replace add,compare,branch with branch on count reg"},
    {"pic", &flag_pic, 1,
     "Generate position independent code, if possible"},
    {"PIC", &flag_pic, 2, ""},


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]