This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch roland/ppc64-gmon-start-warning created. glibc-2.16-ports-merge-792-g5dbb3df
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 29 Nov 2012 22:23:18 -0000
- Subject: GNU C Library master sources branch roland/ppc64-gmon-start-warning created. glibc-2.16-ports-merge-792-g5dbb3df
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, roland/ppc64-gmon-start-warning has been created
at 5dbb3df1c0245cc01c03cc71bb151affd13d1352 (commit)
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5dbb3df1c0245cc01c03cc71bb151affd13d1352
commit 5dbb3df1c0245cc01c03cc71bb151affd13d1352
Author: Roland McGrath <roland@hack.frob.com>
Date: Thu Nov 29 14:23:03 2012 -0800
Fix type-punning warning in powerpc64 gmon-start.
diff --git a/ChangeLog b/ChangeLog
index 643a052..f920ea7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2012-11-29 Roland McGrath <roland@hack.frob.com>
+ * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
+ second, differently-typed declaration, rather than a cast.
+
* inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
2012-11-28 Jeff Law <law@redhat.com>
diff --git a/sysdeps/powerpc/powerpc64/entry.h b/sysdeps/powerpc/powerpc64/entry.h
index 2a54fe7..b1d4b7f 100644
--- a/sysdeps/powerpc/powerpc64/entry.h
+++ b/sysdeps/powerpc/powerpc64/entry.h
@@ -1,5 +1,5 @@
/* 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.
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
entry poiny address is really the address of the function
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]; })
-----------------------------------------------------------------------
hooks/post-receive
--
GNU C Library master sources