git: Fix -pg compiled programs on i386

Aggelos Economopoulos aggelos at crater.dragonflybsd.org
Tue Jun 1 13:47:04 PDT 2010


commit a3fa563f073efc877cdd28adc3357a873307aa54
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>
    Testing-by:  swildner@

Summary of changes:
 sys/cpu/i386/include/profile.h |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a3fa563f073efc877cdd28adc3357a873307aa54


-- 
DragonFly BSD source repository





More information about the Commits mailing list