Menu

#17 Compiling on X86_64 with gcc-4.3.4 breaks veriwell

open
nobody
compile (8)
5
2009-11-13
2009-11-13
Anonymous
No

If I compile veriwell-2.8.7 using x86_64-pc-linux-gnu-4.3.4 on a recent gentoo linux X86_64 the executable yields unexpected results. i.e. error messages for the simplest verilog example codes:

>Entering Phase II...
>../verilog/rca.v: L11: error: Don't know how to allocate for net_scalar_decl (cout)
>../verilog/rca.v: L11: error: Not enough memory to allocate storage for 'cout'

Using an earlier gcc-4.1.2 works fine as expected.

Discussion

  • t4dqkecl

    t4dqkecl - 2010-05-02

    This change seems to fix it (change tree_type to tree_code):

    --- pass2.cc.orig 2005-09-17 06:46:40.000000000 +0800
    +++ pass2.cc 2010-05-01 11:32:70.000000000 +0800
    @@ -154,7 +154,7 @@

    void pass3_decl(tree decl)
    {
    - enum tree_type code = (enum tree_type) TREE_CODE(decl);
    + enum tree_code code = (enum tree_code) TREE_CODE(decl);
    nbits_t nbits;
    ngroups_t ngroups;
    ngroups_t array_size;

     
  • Martin  Polak

    Martin Polak - 2011-02-03

    yep - this patch fixes it on my machine

     

Log in to post a comment.