kernprof
[Top] [All Lists]

RH gcc-2.96-85: OK?

To: kernprof@xxxxxxxxxxx
Subject: RH gcc-2.96-85: OK?
From: Erich Nahum <nahum@xxxxxxxxxxxxxx>
Date: Mon, 6 Aug 2001 22:08:45 -0400 (EDT)
Reply-to: nahum@xxxxxxxxxxxxxx (Erich M. Nahum)
Sender: owner-kernprof@xxxxxxxxxxx
Hi All,

I am looking to use kernprof but am really reluctant to build
and install GCC.  I'm afraid there will be collisions with the
native GCC compiler, etc.

Instead I'm hoping the latest GCC from RedHat, 2.96-85 as they
call it, will work with kernprof.  The SGI patch for GCC from 2.95.2 
doesn't seem to cleanly go into it.  Instead, in gcc/config/i386/linux.h,
2.96-85 has:

| /* Output assembler code to FILE to call the profiler.
|    To the best of my knowledge, no Linux libc has required the label
|    argument to mcount.  */
| 
| #define NO_PROFILE_COUNTERS
| 
| #undef FUNCTION_PROFILER
| #define FUNCTION_PROFILER(FILE, LABELNO)  \
| {                                                                       \
|   if (flag_pic)                                                         \
|     fprintf (FILE, "\tcall\t*mcount@GOT(%%ebx)\n");                     \
|   else                                                                  \
|     fprintf (FILE, "\tcall\tmcount\n");                                 \
| }

Does anyone know if this addresses the bug?

Thanks,

-Erich

-- 
Erich M. Nahum                  IBM T.J. Watson Research Center
Networking Research             P.O. Box 704
nahum@xxxxxxxxxxxxxx            Yorktown Heights NY 10598

<Prev in Thread] Current Thread [Next in Thread>
  • RH gcc-2.96-85: OK?, Erich Nahum <=