[LLVMbugs] [Bug 258] NEW: Variables used to define non-printable FP constants are externally visible

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Feb 26 14:11:59 PST 2004


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=258

           Summary: Variables used to define non-printable FP constants are
                    externally visible
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: C backend
        AssignedTo: criswell at uiuc.edu
        ReportedBy: criswell at uiuc.edu


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.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list