public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/29347]  New: i386 mode switching clobbers fp exception handling bits
Date: Wed, 04 Oct 2006 15:29:00 -0000	[thread overview]
Message-ID: <bug-29347-5394@http.gcc.gnu.org/bugzilla/> (raw)

The mode switching for floating point rounding that the i386 backend does
does not actually place mode switches, but rather the calculation of values
used for mode switches.  Not only does that defeat the purpose of doing
lazy code motion of the mode switches themselves (this problem could easily
be remedied by handling the actual mode switches as a separate entity),
it also leads to information in the floating point control register being
clobbered if the user changes it (e.g. with feenableexcept:
http://www.gnu.org/software/libc/manual/html_node/Control-Functions.html)
between the calculation of the value used for a mode switch, and the point
where a mode switch actually takes place.


-- 
           Summary: i386 mode switching clobbers fp exception handling bits
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org
GCC target triplet: i386-*-*


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


             reply	other threads:[~2006-10-04 15:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-04 15:29 amylaar at gcc dot gnu dot org [this message]
2006-10-04 16:50 ` [Bug target/29347] " amylaar at gcc dot gnu dot org
2006-10-05  7:51 ` uros at kss-loka dot si
2006-10-09 10:28 ` rguenth at gcc dot gnu dot org
2006-10-23 12:10 ` amylaar at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-29347-5394@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).