[LLVMbugs] [Bug 689] NEW: llvm-g++ produces non-working output
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Jan 12 01:39:31 PST 2006
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=689
Summary: llvm-g++ produces non-working output
Product: libraries
Version: 1.6
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: major
Priority: P2
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: hp48gx at gmail.com
It looks like there's a bug in llvm-g++: a very simple c++ source code compiled by llvm-gcc produces
a working bytecode, but the same file compiled by llvm-g++ generates a smaller and non working
output:
PowerBookG4:/llvm/test mycroft$ cat hello.cpp
#include <iostream>
int main()
{
std::cout << "hello world\n";
return 0;
}
PowerBookG4:/llvm/test mycroft$ llvm-gcc hello.cpp
PowerBookG4:/llvm/test mycroft$ ls -l
total 440
-rwxr-xr-x 1 mycroft admin 64 Jan 12 00:03 a.out
-rwxr-xr-x 1 mycroft admin 216923 Jan 12 00:03 a.out.bc
-rw-r--r-- 1 mycroft admin 95 Jan 12 00:00 hello.cpp
PowerBookG4:/llvm/test mycroft$ ./a.out
hello world
PowerBookG4:/llvm/test mycroft$ rm a.*
PowerBookG4:/llvm/test mycroft$ llvm-g++ hello.cpp
PowerBookG4:/llvm/test mycroft$ ls -l
total 112
-rwxr-xr-x 1 mycroft admin 64 Jan 12 00:04 a.out
-rwxr-xr-x 1 mycroft admin 47320 Jan 12 00:04 a.out.bc
-rw-r--r-- 1 mycroft admin 95 Jan 12 00:00 hello.cpp
PowerBookG4:/llvm/test mycroft$ ./a.out
Segmentation fault
------- 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