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:22 PM, Mark Mitchell wrote:


Index: testsuite/gcc.dg/symbian2.c
===================================================================
RCS file: testsuite/gcc.dg/symbian2.c
diff -N testsuite/gcc.dg/symbian2.c
*** /dev/null    1 Jan 1970 00:00:00 -0000
--- testsuite/gcc.dg/symbian2.c    3 Aug 2004 21:19:39 -0000
***************
*** 0 ****
--- 1,10 ----
+ /* { dg-do compile { target arm*-*-symbianelf* } } */
+ /* { dg-options "-O2" } */
+
+ /* Symbian OS requires that builtins not be expanded by default.  Make
+    sure that a reference to "strlen" is emitted.  */



This might sound like a stupid question but why not expanded, most of the time it will improve code size?

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".  */

--
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]