[LLVMbugs] [Bug 305] NEW: LLVM tools will happily spew bytecode onto your terminal

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Mar 30 11:22:21 PST 2004


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

           Summary: LLVM tools will happily spew bytecode onto your terminal
           Product: tools
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: opt
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: gaeke+bugs at uiuc.edu


Currently, if you say "opt -pass foo.bc", opt will run the pass and then happily (but uselessly) spew the 
bytecode onto your terminal. This is liable to mess up your terminal modes. The workaround is well-
known: you have to specify an output file or redirect stdout. This problem is common to many llvm 
tools.

If autoconf finds that the isatty() call is available, any llvm tool (including opt) that outputs bytecode 
should refuse to output it onto your terminal -- instead, you should get an error message. In addition, 
any llvm tool that reads bytecode should refuse to read it from a terminal.



------- 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