cast missing in rtl.c

Peter Schmid schmid@ltoi.iap.physik.tu-darmstadt.de
Sat Jan 17 07:33:00 GMT 1998


While building egcs-980115 I get the warning 
gcc -c  -DIN_GCC   -DUSE_GNULIBC_1 -g  -DHAVE_CONFIG_H      -I. -I.
-I./config rtl.c 
rtl.c: In function `read_rtx':
rtl.c:668: warning: initialization from incompatible pointer type

The following patch silences this warning.

Peter Schmid

*** gcc/rtl.c~	Sat Dec 20 19:45:25 1997
--- gcc/rtl.c	Sat Jan 17 16:20:12 1998
*************** read_rtx (infile)
*** 665,671 ****
        case 'E':
  	{
  	  register struct rtx_list *next_rtx, *rtx_list_link;
! 	  struct rtx_list *list_rtx = NULL_RTX;
  
  	  c = read_skip_spaces (infile);
  	  if (c != '[')
--- 665,671 ----
        case 'E':
  	{
  	  register struct rtx_list *next_rtx, *rtx_list_link;
! 	  struct rtx_list *list_rtx = (struct rtx_list *) NULL_RTX;
  
  	  c = read_skip_spaces (infile);
  	  if (c != '[')




More information about the Gcc-bugs mailing list