This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix building mips*-elf on x86_64-linux
- From: Adam Nemet <anemet at caviumnetworks dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 Mar 2006 12:25:57 -0800
- Subject: [committed] Fix building mips*-elf on x86_64-linux
After the define_constraint changes I get a compilation error on a
x86_64 box where unsigned int != size_t, so declaration and definition
of insn_constraint_len don't match.
The reason that the same thing does not happen with a native x86_64
build is that i386.md does not seem to have constraint names longer
than one character.
Build now completes and testresults for gcc and g++ look good compared
to last week's version.
I checked it in as obvious under revision 111940.
2006-03-10 Adam Nemet <anemet@caviumnetworks.com>
* genpreds.c (write_insn_constraint_len): Change definition of
insn_constraint_len to return size_t to match the declaration.
Index: genpreds.c
===================================================================
--- genpreds.c (revision 111925)
+++ genpreds.c (working copy)
@@ -904,7 +904,7 @@ write_insn_constraint_len (void)
if (constraint_max_namelen == 1)
return;
- puts ("unsigned int\n"
+ puts ("size_t\n"
"insn_constraint_len (enum constraint_num c)\n"
"{\n"
" switch (c)\n"