[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
macro in linux/compiler.h pollutes gcc __attribute__ namespace
From: |
Timmy Douglas |
Subject: |
macro in linux/compiler.h pollutes gcc __attribute__ namespace |
Date: |
Wed, 04 May 2005 17:37:05 -0000 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
(I'm not subscribed so please CC me replies that you want me to reply
to.)
Recently I've found a problem with emacs where gcc optimizes a
function to be inline where it shouldn't be. The emacs developers use
a macro like this:
#define NO_INLINE __attribute__((noinline))
that would normally work fine but when we compile the file with
NO_INLINE, the -E output looks like:
static void __attribute__(())
x_error_quitter (display, error)
Display *display;
XErrorEvent *error;
{
char buf[256], buf1[356];
...etc
I've realized that this file includes linux/compiler.h which does:
139
140 #ifndef noinline
141 #define noinline
142 #endif
143
which causes __atribute__((noinline)) to change into
__attribute__(()). I'm not sure how linux developers keep a function
from getting inlined, but I'm hoping someone will consider removing or
changing this macro.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- macro in linux/compiler.h pollutes gcc __attribute__ namespace,
Timmy Douglas <=