]>
Commit | Line | Data |
---|---|---|
777ef4f2 JR |
1 | |
2 | On 06.27, Marcelo Tosatti wrote: | |
3 | > | |
4 | > Hello, | |
5 | > | |
6 | > Here goes -pre2 with a big number of changes, including the new aic7xxx | |
7 | > driver. | |
8 | > | |
9 | > I wont accept any big changes after -pre4: I want 2.4.22 timecycle to be | |
10 | > short. | |
11 | > | |
12 | ||
13 | This fixes inlining (really, not-inlining) with gcc3. How about next -pre ? | |
14 | ||
15 | --- 25/include/linux/compiler.h~gcc3-inline-fix 2003-03-06 03:02:43.000000000 -0800 | |
16 | +++ 25-akpm/include/linux/compiler.h 2003-03-06 03:11:42.000000000 -0800 | |
17 | @@ -1,6 +1,13 @@ | |
18 | #ifndef __LINUX_COMPILER_H | |
19 | #define __LINUX_COMPILER_H | |
20 | ||
21 | +#if __GNUC__ >= 3 | |
22 | +#define inline __inline__ __attribute__((always_inline)) | |
23 | +#define inline__ __inline__ __attribute__((always_inline)) | |
24 | +#define __inline __inline__ __attribute__((always_inline)) | |
25 | +#define __inline__ __inline__ __attribute__((always_inline)) | |
26 | +#endif | |
27 | + | |
28 | /* Somewhere in the middle of the GCC 2.96 development cycle, we implemented | |
29 | a mechanism by which the user can annotate likely branch directions and | |
30 | expect the blocks to be reordered appropriately. Define __builtin_expect | |
31 | ||
32 | ||
33 | ||
34 | -- | |
35 | J.A. Magallon <jamagallon@able.es> \ Software is like sex: | |
36 | werewolf.able.es \ It's better when it's free | |
37 | Mandrake Linux release 9.2 (Cooker) for i586 | |
38 | Linux 2.4.21-jam1 (gcc 3.3 (Mandrake Linux 9.2 3.3-2mdk)) | |
39 | - | |
40 | To unsubscribe from this list: send the line "unsubscribe linux-kernel" in | |
41 | the body of a message to majordomo@vger.kernel.org | |
42 | More majordomo info at http://vger.kernel.org/majordomo-info.html | |
43 | Please read the FAQ at http://www.tux.org/lkml/ |