getpid and -fomit-frame-pointer problem with profiled libs

Steve Munroe sjmunroe@us.ibm.com
Sat Jan 3 17:32:00 GMT 2004


Andreas Jaeger writes:

> Uli,
>
> your change to nptl:
>
> 2003-12-20  Ulrich Drepper  <drepper@redhat.com>
>
>        * sysdeps/unix/sysv/linux/Makefile (CFLAGS-getpid.c): Define.
>        * sysdeps/unix/sysv/linux/getpid.c: New file.
>
> broke building on x86_64 with profiled libs.  GCC complains now
>(CFLAGS-getpid.c is -fomit-frame-pointer):
> gcc: -pg and -fomit-frame-pointer are incompatible
>
> The question in general is whether -fomit-frame-pointer is right -
> even for other archs with profiling.  What was your intent with that
> change?  Shouldn't it just be applied for the shared lib?

This fails on powerpc and powerpc64 as well.


Steven J. Munroe
Power Linux Toolchain Architect
IBM Corporation, Linux Technology Center




More information about the Libc-alpha mailing list