[LLVMbugs] [Bug 6093] New: MCAsmStreamer:: EmitSymbolAttribute does not use MCAsmInfo settings

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jan 20 06:47:32 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6093

           Summary: MCAsmStreamer::EmitSymbolAttribute does not use
                    MCAsmInfo settings
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: code-cleanup, miscompilation
          Severity: minor
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: martijn at martijnrutten.com
                CC: llvmbugs at cs.uiuc.edu


MCAsmStreamer::EmitSymbolAttribute in lib/MC/MCAsmStreamer.cpp prints
directives for symbols. The directives e.g. '.globl' for a global variable are
hardcoded. If a backend specifies a different GlobalDirective, e.g.
'\t.global\t' in an MCAsmInfo subclass, this directive is not used (triggered
in a custom backend).

AsmPrinter.cpp calls EmitSymbolAttribute in e.g. AsmPrinter::EmitGlobalVariable

Please update EmitSymbolAttribute function to use the MCAsmInfo directives.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list