]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix MicroBlaze __backtrace get_frame_size namespace (bug 21022).
authorJoseph Myers <joseph@codesourcery.com>
Wed, 4 Jan 2017 01:06:04 +0000 (01:06 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 4 Jan 2017 01:06:04 +0000 (01:06 +0000)
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.

ChangeLog
sysdeps/microblaze/backtrace.c

index eac0fe4e41182d1f6f05cf92143d4f445acc599a..32dee3fcb3d4ca651facc3b114831a7629e40653 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-04  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #21022]
+       * sysdeps/microblaze/backtrace.c (get_frame_size): Make static.
+
 2017-01-03  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/i386/fpu/libm-test-ulps: Update.
index 2b498f01ce37a04af40b8bd0fd5f994688dc8992..7cc28ff146a0341406960cb0b39cf8419c226d4b 100644 (file)
@@ -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));