Bugzilla – Bug 258
Variables used to define non-printable FP constants are externally visible
Last modified: 2004-02-26 17:00:37
You need to log in before you can comment on or make changes to this bug.
When the CBE needs to generate floating point constants that cannot be represented in C (NaN, Infinity, etc), it creates a hexadecimal value and places it in a global variable. Since these global variables are not declared static, they are visible to other translation units generated by the CBE which may have constants of the same name with different values. To fix this, these global constants should be declared static.
This will be fixed for LLVM 1.2. I've assigned myself to it.
Fixed with http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040223/012282.html.