DragonFly BSD
DragonFly commits List (threaded) for 2010-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: Fix -pg compiled programs on i386


From: Aggelos Economopoulos <aggelos@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Jun 2010 13:46:06 -0700 (PDT)

commit a3fa563f073efc877cdd28adc3357a873307aa54
Author: Aggelos Economopoulos <aoiko@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@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]