first cut at getting lto to compile.

Kenneth Zadeck zadeck@naturalbridge.com
Thu Jun 21 21:35:00 GMT 2007


Meissner, Michael wrote:
> I'm working on upgrading the front ends and back ends to provide a new
> infrastructure for the argument list handling (see the patch I sent out
> today for num_parm_type, but I didn't yet write nth_parm_type and the
> others).
>
>   
Please add this to the list of places where you need to apply them.

Kenny
> --
> Michael Meissner
> AMD, MS 83-29
> 90 Central Street
> Boxborough, MA 01719
>
>   
>> -----Original Message-----
>> From: gcc-patches-owner@gcc.gnu.org
>>     
> [mailto:gcc-patches-owner@gcc.gnu.org]
>   
>> On Behalf Of Kenneth Zadeck
>> Sent: Thursday, June 21, 2007 4:37 PM
>> To: gcc-patches; Mark Mitchell; Hubicha, Jan; Berlin, Daniel; Park,
>> Seongbae
>> Subject: 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
>>
>>
>>     



More information about the Gcc-patches mailing list