summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/complex/docomplex.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-01 08:20:55 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-01 08:20:55 +0100
commit80d99aa20cd0e8fa519c3fe1e4e7402931dfa4cb (patch)
treea078d53e27b2a61a20aa18d4f9da368cb35e5c25 /testsuites/libtests/complex/docomplex.h
parentm68k/mcf5235: GCC 4.9.2 generates invalid code for Init5235. (diff)
downloadrtems-80d99aa20cd0e8fa519c3fe1e4e7402931dfa4cb.tar.bz2
libtests/complex,math: Prevent optimizations
For constant arguments GCC calculates the values of the math library functions at compile-time. close #1741
Diffstat (limited to '')
-rw-r--r--testsuites/libtests/complex/docomplex.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuites/libtests/complex/docomplex.h b/testsuites/libtests/complex/docomplex.h
index 96ce9eb1a9..c844cc0906 100644
--- a/testsuites/libtests/complex/docomplex.h
+++ b/testsuites/libtests/complex/docomplex.h
@@ -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;