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]

Patch to fix compile time warning for gcse.c



Hi guys,

  I have just applied the following patch to prevent this compile time
warning when compiling gcse.c: 

  gcse.c: In function `delete_null_pointer_checks':
  gcse.c:5189: warning: assignment makes pointer from integer without a cast

The problem is that the prototype for get_condtion() is not defined in
any of the headers currently included by gcse.c, so my patch fixes
this. 

Cheers
	Nick

Thu Dec 17 13:50:29 1998  Nick Clifton  <nickc@cygnus.com>

	* gcse.c: Include expr.h in order to get the prototype for
	get_condition() which is used in delete_null_pointer_checks(). 


Index: gcse.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/gcse.c,v
retrieving revision 1.21
diff -p -r1.21 gcse.c
*** gcse.c	1998/12/16 20:56:09	1.21
- --- gcse.c	1998/12/17 21:53:35
*************** yyy
*** 152,157 ****
- --- 152,158 ----
  #include "recog.h"
  #include "basic-block.h"
  #include "output.h"
+ #include "expr.h" 
  
  #include "obstack.h"
  #define obstack_chunk_alloc gmalloc


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