This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14041] H8300-elf unaligned word/longword access of zero initialized variables
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Feb 2004 15:17:45 -0000
- Subject: [Bug target/14041] H8300-elf unaligned word/longword access of zero initialized variables
- References: <20040206064311.14041.dhananjayd@kpitcummins.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From kazu at cs dot umass dot edu 2004-02-11 15:17 -------
Subject: Re: H8300-elf unaligned word/longword access of
zero initialized variables
Hi Dhananjay,
> Please find testcase below.
Thanks.
> I have enabled testcase for h8300-*-elf only
Why not h8300-*? We should care for the COFF target as long as it's
there.
> and passing -mh option. (For plain H8/300 it will generate .align 1
> and test would fail)
Would the same problem exist on the plain H8/300 then? IIRC, H8 is
pretty lenient about alignment, but I don't know how lenient it is.
Or is it the case that no plain H8/300 supports 16-bit data bus or
something?
By the way, which version of GCC did you run the testsuite for?
Currently, h8300-elf on mainline doesn't build, so I'll apply your
patch after the build is restored. Meanwhile, you might want to post
a complete patch with the testcase and ChangeLog entries to
gcc-patches for the record.
Kazu Hirata
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14041