Patch to allow strlen expander to fail

Jeffrey A Law law@cygnus.com
Mon Mar 6 22:34:00 GMT 2000


  In message < 200003070310.TAA24843@racerx.synopsys.com >you write:
  > > Any code which depends on gcc generating or not generating libcalls is
  > > broken.
  > 
  > Let a and b be of type "struct foo".
  > 
  > Then it would appear that the statement
  > 
  > 	a = b;
  > 
  > is broken.  How should this code be fixed?
Joe, you're missing the point.

The programmer can not and should not need to know the details of how that
assignment is performed.  If they think they need control over that kind of
implementation detail, then they're barking up the wrong tree.

The programmer has said make a copy, how the compiler chooses to do that is
the compiler's decision.

The fix is for the linux kernel to link in libgcc or to use -nostdlib and
provide its own memcpy routine.

jeff



More information about the Gcc mailing list