git: DragonFly_RELEASE_2_6 Fix -pg compiled programs on i386

Sascha Wildner swildner at
Sat Jun 26 14:18:14 PDT 2010

commit cbe285f6f5205bb7b11d321acd839c0ee67ad08f
Author: Aggelos Economopoulos <aoiko at>
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>
    Testing-by:  swildner@

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 mailing list