When compiling GCC on IA64 HP-UX with --enable-checking=all I get a bus error
in fold_checksum_tree because of the variable 'buf'.  It is created as a char
buffer but later cast to a tree struct.  On IA64 HP-UX with it's strict
alignment requirements, this results in a bus error because buf is not aligned
to the same value as real structures.  We either need to add an alignment
attribute to buf or alloc a real tree node instead of using buf.  The test case
is to simply build GCC with --enable-checking=all on IA64 and then try to
compile any program with the resulting GCC compiler.


-- 
           Summary: Misaligned data in fold_checksum_tree (--enable-
                    checking=all)
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sje at cup dot hp dot com
 GCC build triplet: ia64-hp-hpux11.23
  GCC host triplet: ia64-hp-hpux11.23
GCC target triplet: ia64-hp-hpux11.23


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24901

Reply via email to