Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651704 - sys-devel/gcc-6.4.0-r1 does not recognize -fdec-math option
Summary: sys-devel/gcc-6.4.0-r1 does not recognize -fdec-math option
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-27 12:54 UTC by lumbrius
Modified: 2018-03-28 06:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lumbrius 2018-03-27 12:54:10 UTC
I tried to compile software with some legacy math functions, in these case you need to use -fdec-math option (see https://gcc.gnu.org/onlinedocs/gfortran/Option-Summary.html for it). 
I got error message
gfortran: error: unrecognized command line option '-fdec-math'; did you mean '-ffast-math'?
Comment 1 lumbrius 2018-03-27 12:54:32 UTC
USE flags:
Installed versions:  6.4.0-r1(6.4.0)^s(12时52分59秒 2018年03月27日)(cxx fortran multilib nls nptl openmp pch pie sanitize ssp vtv -altivec -awt -cilk -debug -doc -fixed-point -gcj -go -graphite -hardened -jit -libssp -mpx -objc -objc++ -objc-gc -pgo -regression-test -vanilla)
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-03-28 06:40:49 UTC
The manual you refer to describes GCC 7, wherein -fdec-math was introduced.

https://gcc.gnu.org/gcc-7/changes.html

Support for a number of extensions for compatibility with legacy code with new flags:
-fdec-structure Support for DEC STRUCTURE and UNION
-fdec-intrinsic-ints Support for new integer intrinsics with B/I/J/K prefixes such as BABS, JIAND...
-fdec-math Support for additional math intrinsics, including COTAN and degree-valued trigonometric functions such as TAND, ASIND...
-fdec Enable the -fdec-* family of extensions.