From: Joseph Myers Date: Wed, 4 Jan 2017 01:06:04 +0000 (+0000) Subject: Fix MicroBlaze __backtrace get_frame_size namespace (bug 21022). X-Git-Tag: glibc-2.25~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b18fe78fe7217430ed42d3284636c732793e352;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index eac0fe4e411..32dee3fcb3d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-01-04 Joseph Myers + + [BZ #21022] + * sysdeps/microblaze/backtrace.c (get_frame_size): Make static. + 2017-01-03 Joseph Myers * sysdeps/i386/fpu/libm-test-ulps: Update. diff --git a/sysdeps/microblaze/backtrace.c b/sysdeps/microblaze/backtrace.c index 2b498f01ce3..7cc28ff146a 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));