Tony,

On Thu, 18 Aug 2005, Luck, Tony wrote:
> Ah ... but gcc has an unpleasant habit of inlining memcpy() calls.  This
> is really annoying when you have taken the trouble to replace code
> does a structure copy with an explicit call to memcpy() becuase
> you know that one of the source or destination is unaligned, only
> to have gcc generate some inline ld8/st8 instructions.

have you considered using one of the following options in some of these
cases?

  `-fno-builtin-FUNCTION'
      Don't recognize built-in functions that do not begin with
      `__builtin_' as prefix.

  `-mmemcpy'
  `-mno-memcpy'
      The `-mmemcpy' switch makes all block moves call the appropriate
      string function (`memcpy' or `bcopy') instead of possibly
      generating inline code.

(I'm currently offline and only have GCC 3.3 docs available, but I'm
pretty sure GCC 3.4 and 4.x support these as well.)

Gerald

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to