]> sourceware.org Git - glibc.git/commitdiff
Add missing inline keyword
authorMarek Polacek <polacek@redhat.com>
Fri, 23 Dec 2011 16:19:53 +0000 (11:19 -0500)
committerUlrich Drepper <drepper@gmail.com>
Fri, 23 Dec 2011 16:19:53 +0000 (11:19 -0500)
According to http://gcc.gnu.org/ml/gcc-patches/2011-09/msg00608.html,
a function without `inline' with an `always_inline' attribute is a bug.

ChangeLog
elf/dl-addr.c
elf/tst-auditmod4b.c
elf/tst-auditmod6b.c
elf/tst-auditmod6c.c
elf/tst-auditmod7b.c

index b70fe1943cdac45ef6bc98989f38da7fd73d1402..a883f9386ade8a9e08e1973aa817231be5040f31 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-12-23  Marek Polacek  <polacek@redhat.com>
+
+       * elf/dl-addr.c (determine_info): Add inline keyword.
+       * elf/tst-auditmod4b.c (check_avx): Likewise.
+       * elf/tst-auditmod6b.c (check_avx): Likewise.
+       * elf/tst-auditmod6c.c (check_avx): Likewise.
+       * elf/tst-auditmod7b.c (check_avx): Likewise.
+
 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
 
        * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
index 2b53a5ed09c85c4c88fe1e27879266ac68165f27..788225635efc950809b1e3b6aa8a3dcb4eb96a52 100644 (file)
@@ -1,5 +1,5 @@
 /* Locate the shared object symbol nearest a given address.
-   Copyright (C) 1996-2007, 2009 Free Software Foundation, Inc.
+   Copyright (C) 1996-2007, 2009, 2011 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
@@ -22,7 +22,7 @@
 #include <ldsodefs.h>
 
 
-static void
+static inline void
 __attribute ((always_inline))
 determine_info (const ElfW(Addr) addr, struct link_map *match, Dl_info *info,
                struct link_map **mapp, const ElfW(Sym) **symbolp)
index a6d3c6a6c54fd3869e2a1054268024abbe31a1bb..761d97ce9d1066e22fb1fe6035f251578d99916a 100644 (file)
@@ -108,7 +108,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
 
 static int avx = -1;
 
-static int
+static inline int
 __attribute ((always_inline))
 check_avx (void)
 {
index f756b5022707f9ef67622e351afeee2a5fc0617e..a7a60b992716f83204f6c39641e54752540dd7dd 100644 (file)
@@ -108,7 +108,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
 
 static int avx = -1;
 
-static int
+static inline int
 __attribute ((always_inline))
 check_avx (void)
 {
index 49cbf0549285fa6d03ecf8fcf1bfb09800614755..e0b5ac2319c4464ba7e6f0400c0c1c03d426eb40 100644 (file)
@@ -108,7 +108,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
 
 static int avx = -1;
 
-static int
+static inline int
 __attribute ((always_inline))
 check_avx (void)
 {
index eb237586fe0e1f1fb45a0d5bae16e07748948c9d..a27d38540ee42a34b2819fc33174d40091d36237 100644 (file)
@@ -108,7 +108,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
 
 static int avx = -1;
 
-static int
+static inline int
 __attribute ((always_inline))
 check_avx (void)
 {
This page took 0.054738 seconds and 5 git commands to generate.