This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: getpid and -fomit-frame-pointer problem with profiled libs
- From: Steve Munroe <sjmunroe at us dot ibm dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: Jan Hubicka <jh at suse dot cz>, libc-alpha at sources dot redhat dot com
- Date: Sat, 3 Jan 2004 11:32:18 -0600
- Subject: Re: getpid and -fomit-frame-pointer problem with profiled libs
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