mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 03:57:44 +08:00
libtests/complex,math: Prevent optimizations
For constant arguments GCC calculates the values of the math library functions at compile-time. close #1741
This commit is contained in:
@@ -25,11 +25,13 @@
|
||||
|
||||
extern void FUNC(docomplex) (void);
|
||||
|
||||
volatile complex FTYPE ca, cb;
|
||||
|
||||
void
|
||||
FUNC(docomplex) (void)
|
||||
{
|
||||
#ifndef PROVIDE_EMPTY_FUNC
|
||||
complex FTYPE ca, cb, cc;
|
||||
complex FTYPE cc;
|
||||
FTYPE f1;
|
||||
|
||||
ca = 1.0 + 1.0 * I;
|
||||
|
||||
Reference in New Issue
Block a user