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: fix regno_uninitialized unsigned warning



while i'm at it... another unsigned warning in flow.

it looks pretty obvious, but just in case...

ok to install?

2001-12-11  Aldy Hernandez  <aldyh@redhat.com>

	* output.h (regno_uninitialized): Make argument unsigned.

	* flow.c (regno_uninitialized): Make regno unsigned.

Index: flow.c
===================================================================
RCS file: /cvs/uberbaum/gcc/flow.c,v
retrieving revision 1.497
diff -c -p -r1.497 flow.c
*** flow.c	2001/12/11 20:17:55	1.497
--- flow.c	2001/12/11 20:19:26
*************** libcall_dead_p (pbi, note, insn)
*** 2245,2251 ****
  
  int
  regno_uninitialized (regno)
!      int regno;
  {
    if (n_basic_blocks == 0
        || (regno < FIRST_PSEUDO_REGISTER
--- 2245,2251 ----
  
  int
  regno_uninitialized (regno)
!      unsigned int regno;
  {
    if (n_basic_blocks == 0
        || (regno < FIRST_PSEUDO_REGISTER
Index: output.h
===================================================================
RCS file: /cvs/uberbaum/gcc/output.h,v
retrieving revision 1.90
diff -c -p -r1.90 output.h
*** output.h	2001/12/01 17:40:43	1.90
--- output.h	2001/12/11 20:19:27
*************** extern int add_weak PARAMS ((const char 
*** 141,147 ****
  
  /* Functions in flow.c */
  extern void allocate_for_life_analysis	PARAMS ((void));
! extern int regno_uninitialized		PARAMS ((int));
  extern int regno_clobbered_at_setjmp	PARAMS ((int));
  extern void find_basic_blocks		PARAMS ((rtx, int, FILE *));
  extern bool cleanup_cfg			PARAMS ((int));
--- 141,147 ----
  
  /* Functions in flow.c */
  extern void allocate_for_life_analysis	PARAMS ((void));
! extern int regno_uninitialized		PARAMS ((unsigned int));
  extern int regno_clobbered_at_setjmp	PARAMS ((int));
  extern void find_basic_blocks		PARAMS ((rtx, int, FILE *));
  extern bool cleanup_cfg			PARAMS ((int));


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