* mainline bootstrap broken for powerpc64-unknown-linux-gnu
@ 2004-08-17 17:03 Janis Johnson
2004-08-17 17:04 ` Stan Shebs
2004-08-17 17:22 ` Zack Weinberg
0 siblings, 2 replies; 3+ messages in thread
From: Janis Johnson @ 2004-08-17 17:03 UTC (permalink / raw)
To: gcc, shebs
Bootstrap for powerpc64-unknown-linux-gnu broken with yesterday's
changes to include darwin.md in rs6000.md. This:
(define_insn "*call_nonlocal_darwin64"
[(call (mem:SI (match_operand:DI 0 "symbol_ref_operand" "s,s"))
(match_operand 1 "" "g,g"))
(use (match_operand:SI 2 "immediate_operand" "O,n"))
(clobber (match_scratch:SI 3 "=l,l"))]
"(DEFAULT_ABI == ABI_DARWIN)
&& (INTVAL (operands[2]) & CALL_LONG) == 0"
{
#if TARGET_MACHO
return output_call(insn, operands, 0, 2);
#endif
}
turns into this:
static const char *
output_3 (rtx *operands ATTRIBUTE_UNUSED, rtx insn ATTRIBUTE_UNUSED)
{
{
#if TARGET_MACHO
return output_call(insn, operands, 0, 2);
#endif
}
}
which gets a warning about falling off the end of the function. There's
another one that's similar.
Janis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mainline bootstrap broken for powerpc64-unknown-linux-gnu
2004-08-17 17:03 mainline bootstrap broken for powerpc64-unknown-linux-gnu Janis Johnson
@ 2004-08-17 17:04 ` Stan Shebs
2004-08-17 17:22 ` Zack Weinberg
1 sibling, 0 replies; 3+ messages in thread
From: Stan Shebs @ 2004-08-17 17:04 UTC (permalink / raw)
To: Janis Johnson; +Cc: gcc
Janis Johnson wrote:
>Bootstrap for powerpc64-unknown-linux-gnu broken with yesterday's
>changes to include darwin.md in rs6000.md. This:
>
>(define_insn "*call_nonlocal_darwin64"
> [(call (mem:SI (match_operand:DI 0 "symbol_ref_operand" "s,s"))
> (match_operand 1 "" "g,g"))
> (use (match_operand:SI 2 "immediate_operand" "O,n"))
> (clobber (match_scratch:SI 3 "=l,l"))]
> "(DEFAULT_ABI == ABI_DARWIN)
> && (INTVAL (operands[2]) & CALL_LONG) == 0"
>{
>#if TARGET_MACHO
> return output_call(insn, operands, 0, 2);
>#endif
>}
>
>turns into this:
>
>static const char *
>output_3 (rtx *operands ATTRIBUTE_UNUSED, rtx insn ATTRIBUTE_UNUSED)
>{
>{
>#if TARGET_MACHO
> return output_call(insn, operands, 0, 2);
>#endif
>}
>}
>
>which gets a warning about falling off the end of the function. There's
>another one that's similar.
>
My fault, David already reverted.
Stan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mainline bootstrap broken for powerpc64-unknown-linux-gnu
2004-08-17 17:03 mainline bootstrap broken for powerpc64-unknown-linux-gnu Janis Johnson
2004-08-17 17:04 ` Stan Shebs
@ 2004-08-17 17:22 ` Zack Weinberg
1 sibling, 0 replies; 3+ messages in thread
From: Zack Weinberg @ 2004-08-17 17:22 UTC (permalink / raw)
To: Janis Johnson; +Cc: gcc, shebs
Janis Johnson <janis187@us.ibm.com> writes:
> Bootstrap for powerpc64-unknown-linux-gnu broken with yesterday's
> changes to include darwin.md in rs6000.md. This:
>
> (define_insn "*call_nonlocal_darwin64"
> [(call (mem:SI (match_operand:DI 0 "symbol_ref_operand" "s,s"))
> (match_operand 1 "" "g,g"))
> (use (match_operand:SI 2 "immediate_operand" "O,n"))
> (clobber (match_scratch:SI 3 "=l,l"))]
> "(DEFAULT_ABI == ABI_DARWIN)
> && (INTVAL (operands[2]) & CALL_LONG) == 0"
> {
> #if TARGET_MACHO
> return output_call(insn, operands, 0, 2);
> #endif
> }
...
I would like to suggest that the correct fix for this is to add
TARGET_MACHO at the beginning of the C condition, and remove the
#ifdef. This will make the pattern fail to match on ELF/XCOFF
targets, which is the right thing, and since TARGET_MACHO is a
compile-time constant, genconditions will exclude the pattern
from the generated insn-*.c files.
zw
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-17 17:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-17 17:03 mainline bootstrap broken for powerpc64-unknown-linux-gnu Janis Johnson
2004-08-17 17:04 ` Stan Shebs
2004-08-17 17:22 ` Zack Weinberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).