Accept more floating point constant expressions
commit414b224efa45b33384a21878de2bc489bc3bd105
authorMichael Matz <matz@suse.de>
Mon, 25 Dec 2017 11:44:29 +0000 (25 12:44 +0100)
committerMichael Matz <matz@suse.de>
Mon, 25 Dec 2017 11:44:29 +0000 (25 12:44 +0100)
tree541a19d86e0e4e519577fd511028594c5ac6de38
parent9e47b182290a2fb3db877e559fef66d29f41ac65
Accept more floating point constant expressions

the rules for constant expressions in static initializers are more
relaxed than for integer constant expressions.  We need to accept
0.0/0.0 in static initializers (in non-static initializers the potential
exceptions need to be raised though, so no translation-time calculation
then).
tccgen.c
tests/tcctest.c