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]
Other format: [Raw text]

[patch] flow.c: Make regs_live_at_setjmp static.


Hi,

Attached is a patch to make regs_live_at_setjmp static as it is used
only in flow.c.

Tested on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>

	* flow.c (regs_live_at_setjmp): Make it static.
	* flow.h: Remove the corresponding prototype.

Index: basic-block.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/basic-block.h,v
retrieving revision 1.239
diff -u -d -p -r1.239 basic-block.h
--- basic-block.h	4 Mar 2005 21:35:46 -0000	1.239
+++ basic-block.h	5 Mar 2005 22:47:02 -0000
@@ -397,10 +397,6 @@ extern GTY(()) varray_type basic_block_i
 #define FOR_ALL_BB(BB) \
   for (BB = ENTRY_BLOCK_PTR; BB; BB = BB->next_bb)
 
-/* What registers are live at the setjmp call.  */
-
-extern regset regs_live_at_setjmp;
-
 /* Special labels found during CFG build.  */
 
 extern GTY(()) rtx label_value_list;
Index: flow.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/flow.c,v
retrieving revision 1.620
diff -u -d -p -r1.620 flow.c
--- flow.c	21 Feb 2005 19:47:40 -0000	1.620
+++ flow.c	5 Mar 2005 22:47:02 -0000
@@ -184,7 +184,7 @@ varray_type reg_n_info;
 /* Regset of regs live when calls to `setjmp'-like functions happen.  */
 /* ??? Does this exist only for the setjmp-clobbered warning message?  */
 
-regset regs_live_at_setjmp;
+static regset regs_live_at_setjmp;
 
 /* List made of EXPR_LIST rtx's which gives pairs of pseudo registers
    that have to go in the same hard reg.


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