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]

alias fixes for Stunos



The stunos compilers choke if you declare a function as static, but do not
define the function as static.


This patch fixes the definition of a few functions in alias.c to make the
stunos compiler happy.


	* alias.c (fixed_scalar_and_varying_struct_p): Add "static" to
	function definition.
	(aliases_everything_p, write_dependence_p):Likewise.

Index: alias.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/alias.c,v
retrieving revision 1.49
diff -c -3 -p -r1.49 alias.c
*** alias.c	1999/01/19 10:31:38	1.49
--- alias.c	1999/01/31 01:08:26
*************** read_dependence (mem, x)
*** 1146,1152 ****
     to decide whether or not an address may vary; it should return
     nozero whenever variation is possible.  */
  
! rtx
  fixed_scalar_and_varying_struct_p (mem1, mem2, varies_p)
       rtx mem1;
       rtx mem2;
--- 1146,1152 ----
     to decide whether or not an address may vary; it should return
     nozero whenever variation is possible.  */
  
! static rtx
  fixed_scalar_and_varying_struct_p (mem1, mem2, varies_p)
       rtx mem1;
       rtx mem2;
*************** fixed_scalar_and_varying_struct_p (mem1,
*** 1173,1179 ****
  /* Returns nonzero if something about the mode or address format MEM1
     indicates that it might well alias *anything*.  */
  
! int
  aliases_everything_p (mem)
       rtx mem;
  {
--- 1173,1179 ----
  /* Returns nonzero if something about the mode or address format MEM1
     indicates that it might well alias *anything*.  */
  
! static int
  aliases_everything_p (mem)
       rtx mem;
  {
*************** true_dependence (mem, mem_mode, x, varie
*** 1248,1254 ****
  /* Returns non-zero if a write to X might alias a previous read from
     (or, if WRITEP is non-zero, a write to) MEM.  */
  
! int
  write_dependence_p (mem, x, writep)
       rtx mem;
       rtx x;
--- 1248,1254 ----
  /* Returns non-zero if a write to X might alias a previous read from
     (or, if WRITEP is non-zero, a write to) MEM.  */
  
! static int
  write_dependence_p (mem, x, writep)
       rtx mem;
       rtx x;



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