gcc 3.1 failed to bootstrap on Linux/mipsel
Richard Henderson
rth@redhat.com
Sun Mar 24 13:46:00 GMT 2002
On Sun, Mar 24, 2002 at 12:43:28PM -0800, H . J . Lu wrote:
> #0 0x0055f7f8 in promote_mode (type=0x0, mode=SImode, punsignedp=0x7fff6228,
> for_call=1) at /home/hjl/work/gnu/src/gcc/gcc/gcc/explow.c:814
> #1 0x00803de0 in mips_function_value (valtype=0x0, func=0x0, mode=SImode)
> at /home/hjl/work/gnu/src/gcc/gcc/gcc/config/mips/mips.c:7951
Sorry about that.
r~
* mips.c (mips_function_value): Only promote_mode for non-libcalls.
Index: mips.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.c,v
retrieving revision 1.176.2.1
diff -u -p -r1.176.2.1 mips.c
--- mips.c 2002/03/24 08:13:16 1.176.2.1
+++ mips.c 2002/03/24 21:26:21
@@ -7943,12 +7943,12 @@ mips_function_value (valtype, func, mode
{
mode = TYPE_MODE (valtype);
unsignedp = TREE_UNSIGNED (valtype);
+
+ /* Since we define PROMOTE_FUNCTION_RETURN, we must promote
+ the mode just as PROMOTE_MODE does. */
+ mode = promote_mode (valtype, mode, &unsignedp, 1);
}
mclass = GET_MODE_CLASS (mode);
-
- /* Since we define PROMOTE_FUNCTION_RETURN, we must promote the mode
- just as PROMOTE_MODE does. */
- mode = promote_mode (valtype, mode, &unsignedp, 1);
if (mclass == MODE_FLOAT)
{
More information about the Gcc
mailing list