Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Inline::C producing an absurd result

by Anonymous Monk
on May 08, 2017 at 20:02 UTC ( [id://1189821]=note: print w/replies, xml ) Need Help??


in reply to Inline::C producing an absurd result

I tried the C program with gcc-4.8.2 and gcc-6.3.0 — both gave the buggy output if -O optimization is enabled. Tried icc as well (correct result) and clang-4.0 (GNU decimal type extension not supported).

GCC docs say "support of decimal float as specified by the draft technical report is incomplete". But see if you can find something on gcc.gnu.org/bugzilla .

  • Comment on Re: Inline::C producing an absurd result

Replies are listed 'Best First'.
Re^2: Inline::C producing an absurd result
by syphilis (Archbishop) on May 09, 2017 at 01:09 UTC
    both gave the buggy output if -O optimization is enabled

    Yeah ... I should've thought of testing that. I see the same - and I'll report it to gcc bugzilla tonight.
    Thanks to all.

    UPDATE: Bug report is at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80692

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1189821]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (6)
As of 2024-04-24 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found