1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-23 02:12:24 +03:00

Fix type-punning warning in powerpc64 gmon-start.

This commit is contained in:
Roland McGrath
2012-11-30 13:48:39 -08:00
parent 1a538b9f15
commit 48085d142e
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2012-11-30 Roland McGrath <roland@hack.frob.com>
* sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
second, differently-typed declaration, rather than a cast.
2012-11-30 Siddhesh Poyarekar <siddhesh@redhat.com> 2012-11-30 Siddhesh Poyarekar <siddhesh@redhat.com>
* sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration... * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...

View File

@@ -1,5 +1,5 @@
/* Finding the entry point and start of text. PowerPC64 version. /* Finding the entry point and start of text. PowerPC64 version.
Copyright (C) 2002 Free Software Foundation, Inc. Copyright (C) 2002-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@@ -30,4 +30,6 @@ extern void _start (void);
to keep profiling records. We can't copy the ia64 scheme as our to keep profiling records. We can't copy the ia64 scheme as our
entry poiny address is really the address of the function entry poiny address is really the address of the function
descriptor, not the actual function entry. */ descriptor, not the actual function entry. */
#define TEXT_START (((long int *) ENTRY_POINT)[0]) #define TEXT_START \
({ extern unsigned long int _start_as_data[] asm ("_start"); \
_start_as_data[0]; })