public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/35509]  New: [avr] 4.3.0: builtin isinf() mismatch to compile-time substitution
@ 2008-03-08 10:03 dmixm at marine dot febras dot ru
  2008-03-08 10:41 ` [Bug middle-end/35509] [4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: dmixm at marine dot febras dot ru @ 2008-03-08 10:03 UTC (permalink / raw)
  To: gcc-bugs

The next program is aborted in execution (avr-gcc 4.3.0, -Os):

  int isinf (double);
  void abort (void);
  volatile double x = -1.0/0.0;
  int main ()
  {
    if (isinf (x) != isinf (-__builtin_inf ()))
        abort ();
    return 0;
  }

The second comparison argument is evaluated at compile time: -1 value
is substituted. This is traditional result for isinf(-Inf). The first
call of isinf() is replaced to inline code, which evaluates the -Inf
to +1 value.

The early avr-gcc versions are fine: the extern isinf() function was called.


-- 
           Summary: [avr] 4.3.0: builtin isinf() mismatch to compile-time
                    substitution
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dmixm at marine dot febras dot ru


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


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

end of thread, other threads:[~2008-05-19  6:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-08 10:03 [Bug target/35509] New: [avr] 4.3.0: builtin isinf() mismatch to compile-time substitution dmixm at marine dot febras dot ru
2008-03-08 10:41 ` [Bug middle-end/35509] [4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
2008-03-08 10:53 ` rguenth at gcc dot gnu dot org
2008-03-08 15:45 ` ghazi at gcc dot gnu dot org
2008-03-08 15:51 ` ubizjak at gmail dot com
2008-03-08 15:56 ` pinskia at gcc dot gnu dot org
2008-04-13 16:28 ` ghazi at gcc dot gnu dot org
2008-04-14 10:56 ` dmixm at marine dot febras dot ru
2008-04-14 11:07 ` rguenth at gcc dot gnu dot org
2008-04-15  0:38 ` ghazi at gcc dot gnu dot org
2008-04-15  1:37 ` ghazi at gcc dot gnu dot org
2008-04-15  8:59 ` rguenther at suse dot de
2008-04-28  4:38 ` mmitchel at gcc dot gnu dot org
2008-05-18 15:51 ` ghazi at gcc dot gnu dot org
2008-05-18 23:21 ` ghazi at gcc dot gnu dot org
2008-05-19  6:17 ` ghazi at gcc dot gnu dot org
2008-05-19  6:17 ` ghazi at gcc dot gnu dot org
2008-05-19  6:20 ` ghazi 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).