This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
h8300-elf compiler failure with -fprofile-arcs
- From: "D.Venkatasubramanian, Noida" <dvenkat at noida dot hcltech dot com>
- To: kazu at cs dot umass dot edu, gcc at gcc dot gnu dot org
- Date: Fri, 6 Sep 2002 18:21:15 +0530
- Subject: h8300-elf compiler failure with -fprofile-arcs
Hi All,
I was trying to compile a small program
int main()
{
return 0;
}
by using an h8300-elf cross compiler built on a x86 platform.
[venkat@peacock bugfix]$ h8300-elf-gcc -v
Reading specs from
/home/venkat/gcc_release/h8300-elf/tools/bin/../lib/gcc-lib/h8300-elf/3.1.1/
specs
Configured with: /export/niting/WorkArea/gcc-release/src/configure
--target=h8300-elf --enable-languages=c,c++
--prefix=/home/venkat/gcc_release/h8300-elf/tools/ --with-newlib
--with-gnu-ld --with-gnu-as
Thread model: single
gcc version 3.1.1
On compiling this program with 'h8300-elf-gcc -fprofile-arcs test.c' I got
an internal compiler error
test.c:6: Internal compiler error in end_final, at final.c:267
On preliminary investigation it seems that it is a assertion failure,
if (long_bytes != pointer_bytes)
abort ();
due to the fact that long_bytes is being set to 4, while pointer_bytes is
set to 2.
I didn't find the same problem with other variants of H8300-elf, if we add a
'-mh' or '-mint32 -mh' the two variables are set to 4.
Could someone point me on how this could be fixed? Is this a known problem?
Thanks and best regards,
Venky