i386-elf issue has PR number already
Joel Sherrill
joel.sherrill@OARcorp.com
Thu Feb 27 18:18:00 GMT 2003
Just after sending the report, I found PR9638 while searching gnats.
It has another fix which I don't think Richard will like based upon
the comment last Friday.
PATCH-BEGIN
diff -Naur gcc-3.2.2.ori/gcc/config/i386/i386elf.h
gcc-3.2.2/gcc/config/i386/i38
6elf.h
--- gcc-3.2.2.ori/gcc/config/i386/i386elf.h Thu Dec 20 18:36:35 2001
+++ gcc-3.2.2/gcc/config/i386/i386elf.h Sun Feb 9 19:08:39 2003
@@ -39,6 +39,8 @@
#define RETURN_IN_MEMORY(TYPE) \
(TYPE_MODE (TYPE) == BLKmode \
|| (VECTOR_MODE_P (TYPE_MODE (TYPE)) && int_size_in_bytes (TYPE) ==
8))
+#undef DEFAULT_PCC_STRUCT_RETURN
+#define DEFAULT_PCC_STRUCT_RETURN 1
/* This used to define X86, but james@bigtex.cactus.org says that
is supposed to be defined optionally by user programs--not by
default. */
PATCH-END
Doesn't matter which particular fix is implemented -- i386elf.h, i386.h
or i386.c. The important thing is that i386-elf and i386-rtems don't
build
in 3.2.2 or (as of last week) on the 3.3 branch. Richard since you had
a preference, it would be greatly appreciated if you would just commit
the
fix you want. :)
--
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the Gcc-bugs
mailing list