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]

Re: memcpy vs memmove and structure returns


  In message <Pine.LNX.4.32.0104141823110.1750-100000@kern.srcf.societies.cam.a
c.uk>you write:
  > However, the
  > documentation of TARGET_MEM_FUNCTIONS should be updated to
  >  indicate that calls to memmove might be generated.
Agreed.  I've installed the following patch on the branch and
the mainline to address the doc issue.

	* install.texi (mips-mips-bsd): Update list of functions
	required to include memmove.
	* tm.texi (TARGET_MEM_FUNCTIONS): Update list of implicitly
	used functions to include memmove.

Index: install.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/install.texi,v
retrieving revision 1.52
diff -c -3 -p -r1.52 install.texi
*** install.texi	2001/01/12 18:51:26	1.52
--- install.texi	2001/04/16 13:55:33
*************** between stages.
*** 1194,1201 ****
  @item mips-mips-bsd
  MIPS machines running the MIPS operating system in BSD mode.  It's
  possible that some old versions of the system lack the functions
! @code{memcpy}, @code{memcmp}, and @code{memset}.  If your system lacks
! these, you must remove or undo the definition of
  @code{TARGET_MEM_FUNCTIONS} in @file{mips-bsd.h}.
  
  The MIPS C compiler needs to be told to increase its table size
--- 1194,1201 ----
  @item mips-mips-bsd
  MIPS machines running the MIPS operating system in BSD mode.  It's
  possible that some old versions of the system lack the functions
! @code{memcpy}, @code{memmove}, @code{memcmp}, and @code{memset}.  If your
! system lacks these, you must remove or undo the definition of
  @code{TARGET_MEM_FUNCTIONS} in @file{mips-bsd.h}.
  
  The MIPS C compiler needs to be told to increase its table size
Index: tm.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/tm.texi,v
retrieving revision 1.171
diff -c -3 -p -r1.171 tm.texi
*** tm.texi	2001/02/07 18:58:05	1.171
--- tm.texi	2001/04/16 13:55:53
*************** macro, a reasonable default is used.
*** 4351,4356 ****
--- 4351,4357 ----
  @findex TARGET_MEM_FUNCTIONS
  @cindex @code{bcopy}, implicit usage
  @cindex @code{memcpy}, implicit usage
+ @cindex @code{memmove}, implicit usage
  @cindex @code{bzero}, implicit usage
  @cindex @code{memset}, implicit usage
  @item TARGET_MEM_FUNCTIONS








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