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]
Other format: [Raw text]

first cut at getting lto to compile.


2007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>

* lto-tree-flags.def (FIX_CEIL_EXPR, FIX_FLOOR_EXPR,
FIX_ROUND_EXPR, section_name, call_clobbered_flag): Removed dead
cases.
* lto-function-out.c (ADD_CLASS_FLAG, ADD_EXPR_FLAG): Changed
expr->common to expr->base.
* cfg.c (init_flow): Fixed ggc macro rot.
* lto-tree-tags.def (FIX_CEIL_EXPR, FIX_FLOOR_EXPR,
FIX_ROUND_EXPR): Removed dead tree types.
* lto/lto-tree.h (lang_decl, lang_type, language_function): Added
dummy since ggc does not like empty structs.
* lto/lto-elf.c (libelf.h): Changed to libelf/libelf.h.
* lto/lto-read.c (ADD_CLASS_FLAG, ADD_EXPR_FLAG): Changed
expr->common to expr->base.
(make_new_block): Moved stmt_list to proper place.

Most of these fixes are obvious.

Mark - the change from include "libelf.h" to include "libelf/libelf.h"
is most likely wrong. I remember that the difference between these is
versioning that you thought was important. However, I have forgotten the
details and this compiles.

There are two places where I cannot figure out how to fix things:

(1) num_parm_types and nth_parm_type seem to have gone away and no one
could point me at replacements.
../../gccLTO/gcc/lto/lto-symtab.c: In function ‘lto_same_type_p’:
../../gccLTO/gcc/lto/lto-symtab.c:135: warning: implicit declaration of
function ‘num_parm_types’
../../gccLTO/gcc/lto/lto-symtab.c:139: warning: implicit declaration of
function ‘nth_parm_type’
../../gccLTO/gcc/lto/lto-symtab.c:140: warning: passing argument 1 of
‘lto_same_type_p’ makes pointer from integer without a cast
../../gccLTO/gcc/lto/lto-symtab.c:140: warning: passing argument 2 of
‘lto_same_type_p’ makes pointer from integer without a cast

(2) There seems to be some problem in langhooks.c with decl_attributes.

Anyway, if you config with --enable-languages=c,lto --disable-bootstrap
this patch will make some progress.

I also added a ChangeLog.lto in the gcc directory.

Kenny


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