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]
Other format: [Raw text]

Re: PATCH: arm*-*-symbianelf* tests


Andrew Pinski wrote:


On Aug 3, 2004, at 2:40 PM, Mark Mitchell wrote:


See this comment in config/arm/symbian.h:

/* Do not expand builtin functions (unless explicitly prefixed with
  "__builtin").  Symbian OS code relies on properties of the standard
  library that go beyond those guaranteed by the ANSI/ISO standard.
  For example, "memcpy" works even with overlapping memory, like
  "memmove".  */



But that guaranteed is above and beyond the ISO C standard and should not
be enough to disable builtins as Darwin really has the same thing in that memcpy
and memmove are really the same function.

Perhaps Darwin programmers do not rely on this fact.


In the case of Symbian OS, lots of code relies on these properties.

Our customer knows Symbian OS and its users very well, and I am comfortable with their judgement that having builtins expanded by default will break real code.

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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