git: Fix -pg compiled programs on i386
aggelos at crater.dragonflybsd.org
Tue Jun 1 13:47:04 PDT 2010
Author: Aggelos Economopoulos <aoiko at cc.ece.ntua.gr>
Date: Tue Jun 1 23:07:52 2010 +0300
Fix -pg compiled programs on i386
mcount() is supposed to preserve all registers. Since it
clobbered ecx, this resulted in argc/argv always being 0.
It probably only ever worked because of some artifact of
code generation by older GCCs.
Reported-by: Venkatesh Srinivas <me at endeavour.zapto.org>
Summary of changes:
sys/cpu/i386/include/profile.h | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
DragonFly BSD source repository
More information about the Commits