Now lets take a simple built.
gcc -c test1.c
gcc -c test2.c
gcc test1.o test2.o -o final
--test1.c--
/* of course in real world this would be some complex but solveable function */
int test (int a) {
a=a+1;
}
--test2.c--
#include
int test(int a); /* normally in a header somewhere not bothering t
"Peter Dolding" <[EMAIL PROTECTED]> writes:
> Since test is in a different object file it gets completely skiped
> from optimising even that it should be optimised out.
http://gcc.gnu.org/wiki/LTO_Driver
Ian
Ian Lance Taylor wrote:
"Peter Dolding" <[EMAIL PROTECTED]> writes:
Since test is in a different object file it gets completely skiped
from optimising even that it should be optimised out.
http://gcc.gnu.org/wiki/LTO_Driver
Ian
Ok that is half my idea. Let it sort out at link sta
Peter Dolding wrote:
> Ian Lance Taylor wrote:
>> "Peter Dolding" <[EMAIL PROTECTED]> writes:
>>
>>
>>> Since test is in a different object file it gets completely skiped
>>> from optimising even that it should be optimised out.
>>>
>>
>> http://gcc.gnu.org/wiki/LTO_Driver
>>
>> Ian
>>
>
On Mon, Mar 17, 2008 at 7:34 PM, Andrew Haley <[EMAIL PROTECTED]> wrote:
> Peter Dolding wrote:
> > Ian Lance Taylor wrote:
> >> "Peter Dolding" <[EMAIL PROTECTED]> writes:
> >>
> >>
> >>> Since test is in a different object file it gets completely skiped
> >>> from optimising even that it sh