public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/28896] New: m68k port quietly accepts -fstack-limit-symbol on ColdFire
@ 2006-08-30 6:14 kazu at gcc dot gnu dot org
2006-08-31 2:50 ` [Bug target/28896] conditional trap goes messed up pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-08-30 6:14 UTC (permalink / raw)
To: gcc-bugs
m68k port quietly accepts -fstack-limit-symbol on ColdFire.
-fstack-limit-symbol causes gcc to output "trapcs".
However, ColdFire does not support any conditional trap.
--
Summary: m68k port quietly accepts -fstack-limit-symbol on
ColdFire
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kazu at gcc dot gnu dot org
GCC target triplet: m68k-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28896
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/28896] conditional trap goes messed up
2006-08-30 6:14 [Bug target/28896] New: m68k port quietly accepts -fstack-limit-symbol on ColdFire kazu at gcc dot gnu dot org
@ 2006-08-31 2:50 ` pinskia at gcc dot gnu dot org
2006-08-31 2:58 ` kazu at gcc dot gnu dot org
2006-08-31 3:06 ` [Bug target/28896] -fstack-limit-symbol and m68k and non 68020 pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-31 2:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-31 02:50 -------
Actually it is not just -fstack-limit-symbol that could go wrong but it is also
builtin_trap:
(define_insn "conditional_trap"
[(trap_if (match_operator 0 "valid_dbcc_comparison_p"
[(cc0) (const_int 0)])
(match_operand:SI 1 "const_int_operand" "I"))]
"TARGET_68020 && ! flags_in_68881 ()"
Are you sure you supplied the correct flags to the compiler because
conditional_trap is only enabled for 020.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|m68k port quietly accepts - |conditional trap goes messed
|fstack-limit-symbol on |up
|ColdFire |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28896
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/28896] conditional trap goes messed up
2006-08-30 6:14 [Bug target/28896] New: m68k port quietly accepts -fstack-limit-symbol on ColdFire kazu at gcc dot gnu dot org
2006-08-31 2:50 ` [Bug target/28896] conditional trap goes messed up pinskia at gcc dot gnu dot org
@ 2006-08-31 2:58 ` kazu at gcc dot gnu dot org
2006-08-31 3:06 ` [Bug target/28896] -fstack-limit-symbol and m68k and non 68020 pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: kazu at gcc dot gnu dot org @ 2006-08-31 2:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from kazu at gcc dot gnu dot org 2006-08-31 02:58 -------
trapcs for -fstack-limit-symbol is printed as text in m68k.c,
not as an insn in m68k.md.
Search for trapcs in m68k.c.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28896
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/28896] -fstack-limit-symbol and m68k and non 68020
2006-08-30 6:14 [Bug target/28896] New: m68k port quietly accepts -fstack-limit-symbol on ColdFire kazu at gcc dot gnu dot org
2006-08-31 2:50 ` [Bug target/28896] conditional trap goes messed up pinskia at gcc dot gnu dot org
2006-08-31 2:58 ` kazu at gcc dot gnu dot org
@ 2006-08-31 3:06 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-08-31 3:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-31 03:06 -------
Oh:
if (current_function_limit_stack
&& GET_CODE (stack_limit_rtx) == SYMBOL_REF)
asm_fprintf (stream, "\tcmp" ASM_DOT "l %I%s+%wd,%Rsp\n\ttrapcs\n",
XSTR (stack_limit_rtx, 0), current_frame.size + 4);
So this is a problem with more than coldfire then and also 68000 and 68010 code
gen.
Really m68k_output_function_prologue should be rewritten to use rtl patterns
instead of text.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-08-31 03:06:40
date| |
Summary|conditional trap goes messed|-fstack-limit-symbol and
|up |m68k and non 68020
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28896
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-31 3:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-30 6:14 [Bug target/28896] New: m68k port quietly accepts -fstack-limit-symbol on ColdFire kazu at gcc dot gnu dot org
2006-08-31 2:50 ` [Bug target/28896] conditional trap goes messed up pinskia at gcc dot gnu dot org
2006-08-31 2:58 ` kazu at gcc dot gnu dot org
2006-08-31 3:06 ` [Bug target/28896] -fstack-limit-symbol and m68k and non 68020 pinskia at gcc dot gnu dot org
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).