summaryrefslogtreecommitdiff
path: root/lang/g95/patches/patch-gcc_toplev.h
blob: 0dd63813958d288e7aad595aca0503e4ee809cdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-gcc_toplev.h,v 1.1 2013/05/20 05:47:34 adam Exp $

--- ../gcc-4.1.2/gcc/toplev.h.orig	2005-09-09 00:47:05.000000000 +0000
+++ ../gcc-4.1.2/gcc/toplev.h
@@ -171,13 +171,13 @@ extern int floor_log2                  (
 #  define CTZ_HWI __builtin_ctz
 # endif
 
-extern inline int
+extern __attribute__((__gnu_inline__)) inline int
 floor_log2 (unsigned HOST_WIDE_INT x)
 {
   return x ? HOST_BITS_PER_WIDE_INT - 1 - (int) CLZ_HWI (x) : -1;
 }
 
-extern inline int
+extern __attribute__((__gnu_inline__)) inline int
 exact_log2 (unsigned HOST_WIDE_INT x)
 {
   return x == (x & -x) && x ? (int) CTZ_HWI (x) : -1;