public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/21111] New: IA-64 NaT consumption faults due to uninitialized register reads
@ 2005-04-19 20:32 wilson at gcc dot gnu dot org
  2005-04-19 20:41 ` [Bug middle-end/21111] " wilson at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: wilson at gcc dot gnu dot org @ 2005-04-19 20:32 UTC (permalink / raw)
  To: gcc-bugs

Because of the decomposition of structures in tree-ssa, the middle end is
emitting RTL code that can read uninitialized registers.  On IA-64, this can
result in a NaT consumption fault if the uninitialized register has its NaT bit set.

Before tree-ssa, we would have had a constructor, and store_constructor takes
pains to ensure that a register is initialized to zero before we start setting
fields in it.

Since we do not yet have speculation support in the IA-64 backend, this problem
will be very hard to trigger without a synthetic example.  There is some hand
written code in glibc that uses speculation, and hence can generate NaT bits. 
Also, there is code in the kernel that can generate NaT bits.

-- 
           Summary: IA-64 NaT consumption faults due to uninitialized
                    register reads
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wilson at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: ia64-linux


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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-11  9:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-21111-4@http.gcc.gnu.org/bugzilla/>
2012-01-11 13:05 ` [Bug middle-end/21111] IA-64 NaT consumption faults due to uninitialized register reads rguenth at gcc dot gnu.org
2021-10-11  7:53 ` rguenth at gcc dot gnu.org
2021-10-11  8:48 ` amonakov at gcc dot gnu.org
2021-10-11  9:18 ` rguenth at gcc dot gnu.org
2005-04-19 20:32 [Bug middle-end/21111] New: " wilson at gcc dot gnu dot org
2005-04-19 20:41 ` [Bug middle-end/21111] " wilson at gcc dot gnu dot org
2005-04-19 20:47 ` pinskia at gcc dot gnu dot org
2005-04-19 23:05 ` wilson at specifixinc dot com
2005-07-19  6:26 ` 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).