public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/35044]  New: resource.c:find_dead_or_set_registers doesn't grok COND_EXEC
@ 2008-01-31 19:27 amylaar at gcc dot gnu dot org
  2008-01-31 19:29 ` [Bug rtl-optimization/35044] " amylaar at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2008-01-31 19:27 UTC (permalink / raw)
  To: gcc-bugs

find_dead_or_set_registers uses mark_set_resources to determine if a register
is set, and if it is, it concludes that the register is before that set.
A register is also considered set when the set is inside a COND_EXEC, thus
delay slot scheduling can clobber values in registers that are supposed
to remain untouched when a COND_EXEC is not executed.

I have a patch for this, which changes find_dead_or_set_registers to not call
mark_set_resources for COND_EXEC patterns when the purpose is to find registers
that are killed.
I can't post this patch, or the target port we are using, at the moment
since we don't have a copyright assignment on file yet.

Another approach would be to change mark_set_resources to take a parameter
to tell it if the conservative assumption is that the register is set or
if it that the register is not set, and change all callers to provide an
appropriate value.


-- 
           Summary: resource.c:find_dead_or_set_registers doesn't grok
                    COND_EXEC
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org
GCC target triplet: arc-elf32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35044


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <bug-35044-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-09-20  2:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-31 19:27 [Bug rtl-optimization/35044] New: resource.c:find_dead_or_set_registers doesn't grok COND_EXEC amylaar at gcc dot gnu dot org
2008-01-31 19:29 ` [Bug rtl-optimization/35044] " amylaar at gcc dot gnu dot org
2009-03-04 22:25 ` amylaar at gcc dot gnu dot org
2009-03-05  0:29 ` amylaar at gcc dot gnu dot org
2009-09-11  7:22 ` amylaar at gcc dot gnu dot org
     [not found] <bug-35044-4@http.gcc.gnu.org/bugzilla/>
2011-03-22 20:21 ` jsm28 at gcc dot gnu.org
2012-09-20  1:08 ` amylaar at gcc dot gnu.org
2012-09-20  2:07 ` amylaar at gcc dot gnu.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).