This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to fix compile time warning for gcse.c
- To: egcs-patches at cygnus dot com
- Subject: Patch to fix compile time warning for gcse.c
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Thu, 17 Dec 1998 14:22:48 -0800
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