This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: (i386-linux x sh-elf) build breakage


On Jul 27, 2000, Richard Henderson <rth@cygnus.com> wrote:

> On Thu, Jul 27, 2000 at 07:09:12PM -0300, Alexandre Oliva wrote:
>> What other blatant problems?

> Oh, that's right, we define away inline don't we.

Yep.  And, when compiling with GCC, an static inline function isn't
emitted separately unless its address is taken.  The point was to make
it a macro that didn't evaluate arguments multiple times.  In fact, I
had initially written it as a macro, then decided to moved the code
into a separate function because it looked nicer and didn't have any
risk of name clashes.

> In any case, we most definitely do not want functions in header
> files.

Does this mean I should move the code into the macro or into an
out-of-line function?  There's little point in an out-of-line
function, IMO, so I'd prefer the macro, but I'm concerned about name
clashes.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]