cvs commit: src/sys/i386/include profile.h

Luoqi Chen luoqi at FreeBSD.org
Wed Jul 23 11:37:32 UTC 2008


luoqi       2008-07-23 11:37:20 UTC

  FreeBSD src repository

  Modified files:
    sys/i386/include     profile.h 
  Log:
  SVN rev 180756 on 2008-07-23 11:37:20Z by luoqi
  
  Unbreak cc -pg support on i386. In gcc 4.2, %ecx is used as the arg pointer
  when stack realignment is turned on (it is ALWAYS on for main), however
  in a profiling build %ecx would be clobbered by mcount(), this would lead
  to a segmentation fault when the code tries to reference any argument.
  This fix changes mcount() to preserve %ecx.
  
  PR:             bin/119709
  Reviewed by:    bde
  MFC after:      1 week
  
  Revision  Changes    Path
  1.43      +10 -1     src/sys/i386/include/profile.h


More information about the cvs-src mailing list