Skip to content

Commit

Permalink
Add missing inline keyword
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mpolacek authored and drepper committed Dec 23, 2011
1 parent aebefee commit 2b2596b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2011-12-23 Marek Polacek <[email protected]>

* 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 <[email protected]>

* sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
Expand Down
4 changes: 2 additions & 2 deletions elf/dl-addr.c
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion elf/tst-auditmod4b.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion elf/tst-auditmod6b.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion elf/tst-auditmod6c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion elf/tst-auditmod7b.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2b2596b

Please sign in to comment.