[Bug 1651] Remove RTEMS_INLINE_ROUTINE

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Mon Aug 9 10:16:57 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1651

--- Comment #4 from Ralf Corsepius <ralf.corsepius at rtems.org> 2010-08-09 05:16:57 CDT ---
(In reply to comment #3)
> So with GCC we avoid this ISO C 99 keyword and use the GNU extension.  On other
> compilers (are there any?)
There are other compilers, which theoretically could be applicable for RTEMS, 
but I am not aware of any actual use-case.

So no, it's unlikely there currently is any actual use case of a different
compiler.

> we use the ISO C 99 keyword.
In this particular case, yes. Any yes you are right, this piece of code is
questionable. We need to check what needs to be done to let gcc use the "C99
inline" if gcc is using c99.

> What is the problem with ISO C 99
There are several problems.

One is c99 support in GCC being incomplete and being a moving target.

Another one is c99 and gnu-extension not being 100% compatible, e.g. "inline"
and "__inline__" not being exact equivalents.

What would be required to be done here, would be trying to compile RTEMS with 
--stdc=c99 (Of head, without having checked the manuals) and to check the
resulting code/object files for compatibility.


> and which standard do we actually use?
We use whatever is the default in GCC - I don't recall what it currently is.

IIRC, it's a subset of c99 + gnu-extensions.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list