This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Data representation and cross compiles
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc at gcc dot gnu dot org
- Date: 28 Aug 2002 14:25:21 +0200
- Subject: Data representation and cross compiles
- Organization: Integrable Solutions
I'm investigating the V3 build failure reported by the regression
tester. I think it doesn't occur on natives, it occurs on
cross-compilers only.
Suppose I configure for a cross-compiler with
--build=i686-pc-linux
--host=i686-pc-linux
--target=mips-elf
Furthermore, assume:
sizeof (host_int) == 4 | sizeof (host_long_double) == 12
sizeof (target_int) == 4 | sizeof (target_long_double) == 16
In the *library* source code, I have something like :
sizeof (long double) / sizeof (int)
I think the above expression should evaluate to 4 -- since the library
is being built for mips-elf -- but the compiler seems to evaluate
it to 3 (apparently using i686-pc-linux information).
Thoughts?
-- Gaby