#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 02/23/11 at 08:44:26 by Ralf Corsepius

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

comment:2 Changed on 02/23/11 at 09:16:38 by Sebastian Huber

Resolution: invalid
Status: closedreopened

comment:3 Changed on 02/23/11 at 09:37:46 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 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

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

comment:5 Changed on 12/01/14 at 07:25:42 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 10/10/17 at 06:46:55 by Sebastian Huber

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