Fix strict-aliasing warnings from unwind-dw2-fde.c

Andreas Schwab schwab@linux-m68k.org
Thu Nov 29 22:13:00 GMT 2012


Roland McGrath <roland@hack.frob.com> writes:

> --- 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
> @@ -19,6 +19,7 @@
>  
>  #ifndef __ASSEMBLY__
>  extern void _start (void);
> +extern unsigned long int _start_as_data[] asm ("_start");

csu/gmon-start.c has this:

#define __ASSEMBLY__
#include <entry.h>

Thus the decl isn't seen.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Libc-alpha mailing list