#1741 closed defect

Math tests don't work with optimization enabled

Reported by: Sebastian Huber Owned by: Joel Sherrill
Priority: normal Milestone: 4.11
Component: unspecified Version: 4.11
Severity: normal Keywords:
Cc: ralf.corsepius@… Blocked By:
Blocking:

Description

The compiler eliminates calls like this sin(123.456) with values calculated at compile time.

Change History (6)

comment:1 Changed on Feb 23, 2011 at 8:44:26 AM by Ralf Corsepius

Resolution: invalid
Status: newclosed, ralf.corsepius@rtems.org

comment:2 Changed on Feb 23, 2011 at 9:16:38 AM by Sebastian Huber

Resolution: invalid
Status: closedreopened

comment:3 Changed on Feb 23, 2011 at 9:37:46 AM by Ralf Corsepius

Replying to comment:2:

So you propose something like this?

Almost ..

Actually I have been thinking about what to do for weeks.

Globally setting -fno-builtin for all testsuites currently is the best I could find, but this would require a bit of further autoconf magic.

comment:4 Changed on Nov 24, 2014 at 6:58:28 PM by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

comment:5 Changed on Dec 1, 2014 at 7:25:42 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: reopenedclosed

In 80d99aa20cd0e8fa519c3fe1e4e7402931dfa4cb/rtems:

libtests/complex,math: Prevent optimizations

For constant arguments GCC calculates the values of the math library
functions at compile-time.

close #1741

comment:6 Changed on Oct 10, 2017 at 6:46:55 AM by Sebastian Huber

Component: testingunspecified
Note: See TracTickets for help on using tickets.