This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]