Fix profiling (part 1):

o   Functions are 4-byte aligned for Book-E.
o   We get compiled with -DPROF and not -DGPROF if profiling
    is enabled.
This commit is contained in:
Marcel Moolenaar 2010-06-29 19:07:44 +00:00
parent 6e4b813833
commit cfbcffa248
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@
#define _ENTRY(x) \
.text; .align 4; .globl x; .type x,@function; x:
#ifdef GPROF
#ifdef PROF
# define _PROF_PROLOGUE mflr 0; stw 0,4(1); bl _mcount
#else
# define _PROF_PROLOGUE

View File

@ -34,7 +34,7 @@
#define _MCOUNT_DECL void __mcount
#define FUNCTION_ALIGNMENT 16
#define FUNCTION_ALIGNMENT 4
typedef u_int fptrdiff_t;