bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] barriers and volatile


From: Bruno Haible
Subject: Re: [bug-gnulib] barriers and volatile
Date: Tue, 4 Jul 2006 20:26:22 +0200
User-agent: KMail/1.9.1

Ben Pfaff wrote:
> Is it safe to use an external function that is only defined in a
> separate translation unit?  For example, to define an empty
> function in a source file all by itself, then use a call to it as
> a barrier.

With more and more optimisations being pushed into the linker, this
doesn't look safe for the long term.

> (Are there compilers or linkers that do inter-module optimization?)

GCC 4.0 already does, when you pass several source files together on the
command line, and specify the option '-combine'.

Bruno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]