public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [lto] patch committed to fix calls and FUNCTION_DECLS
@ 2007-08-28 17:02 Kenneth Zadeck
  2007-08-28 17:05 ` Diego Novillo
  0 siblings, 1 reply; 3+ messages in thread
From: Kenneth Zadeck @ 2007-08-28 17:02 UTC (permalink / raw)
  To: Jim Blandy, Mark Mitchell, gcc-patches, William Maddox

Bill Maddox sent me the following test case:

=============
unsigned fact(unsigned x)
{
  if (x == 0)
    return 1;
  else
    return x * fact(x - 1);
}

int
main()
{
  (void)fact(5);  /* dont' bother to print */
  return 0;
}
=============
Which i have processed with the following two commands:
=============
./xgcc -flto -c -O2 test/test.c -o test/test.o
./lto1 -O2 test/test.o -o test/test.o.o
=============
This patch fixes the first two problems that you would hit if you tried
this set of commands.
I am working on the third.

kenny



2007-08-28  Kenneth Zadeck <zadeck@naturalbridge.com>

    * lto-function-out (output_expr_operand): Reorder the fields
    in the stream for CALL_EXPRs.
    (lto_static_init): Do not put out types for FUNCTION_DECLs.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-28 17:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-28 17:02 [lto] patch committed to fix calls and FUNCTION_DECLS Kenneth Zadeck
2007-08-28 17:05 ` Diego Novillo
2007-08-28 17:45   ` Kenneth Zadeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).