about summary refs log tree commit diff
path: root/sysdeps/microblaze
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-01-04 01:06:04 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-01-04 01:06:04 +0000
commit2b18fe78fe7217430ed42d3284636c732793e352 (patch)
treecabb27b5847b495259a8e565cccb703fac83a0ce /sysdeps/microblaze
parent785fcbaef39a82f7bf2e60de0b10df0f2f09a6d9 (diff)
downloadglibc-2b18fe78fe7217430ed42d3284636c732793e352.tar.gz
glibc-2b18fe78fe7217430ed42d3284636c732793e352.tar.xz
glibc-2b18fe78fe7217430ed42d3284636c732793e352.zip
Fix MicroBlaze __backtrace get_frame_size namespace (bug 21022).
Many linknamespace tests fail for MicroBlaze because __backtrace (as
brought in by libc_fatal.c) uses an inline function get_frame_size
which is not declared static.  This patch fixes it to be declared
static.

Tested (compilation tests) with build-many-glibcs.py.

	[BZ #21022]
	* sysdeps/microblaze/backtrace.c (get_frame_size): Make static.
Diffstat (limited to 'sysdeps/microblaze')
-rw-r--r--sysdeps/microblaze/backtrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/microblaze/backtrace.c b/sysdeps/microblaze/backtrace.c
index 2b498f01ce..7cc28ff146 100644
--- a/sysdeps/microblaze/backtrace.c
+++ b/sysdeps/microblaze/backtrace.c
@@ -27,7 +27,7 @@ _identify_sighandler (unsigned long fp, unsigned long pc,
                       unsigned long *pprev_fp, unsigned long *pprev_pc,
                       unsigned long *retaddr);
 
-inline long
+static inline long
 get_frame_size (unsigned long instr)
 {
   return abs ((short signed) (instr & 0xFFFF));