From bugzilla-daemon at llvm.org Thu Apr 1 07:35:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 07:35:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6755] New: CMake configured make install misses
DiagnosticCommonKinds.inc
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6755
Summary: CMake configured make install misses
DiagnosticCommonKinds.inc
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: vr086731 at studenti.univr.it
CC: llvmbugs at cs.uiuc.edu
I am using this rep:
http://llvm.org/svn/llvm-project/llvm/branches/release_27
and I have configured the build with cmake.
The problem is that the file
clang/Basic/DiagnosticCommonKinds.inc
is not copied by 'make install'.
This file is needed to compile applications that include clang headers, which
otherwise fail with the message like the following:
include/clang/Basic/Diagnostic.h:63:49: error:
clang/Basic/DiagnosticCommonKinds.inc: No such file or directory
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 11:55:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 11:55:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6755] CMake configured make install misses
DiagnosticCommonKinds.inc
In-Reply-To:
References:
Message-ID: <20100401165527.853F72A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6755
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2010-04-01 11:55:27 CDT ---
krj fixed this in r 100105
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 12:09:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 12:09:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6756] New: exception object not destructed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6756
Summary: exception object not destructed
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hhinnant at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
This test should pass:
#include
#include
struct A
{
static int constructed;
int data_;
explicit A(int data = 0) : data_(data)
{
++constructed;
}
~A()
{
--constructed;
}
A(const A& a)
: data_(a.data_)
{
++constructed;
}
private:
A& operator=(const A&);
};
int A::constructed = 0;
int main()
{
try
{
throw A(5);
assert(false);
}
catch (A& a)
{
assert(a.data_ == 5);
assert(A::constructed == 1);
}
printf("J: %d\n", A::constructed);
assert(A::constructed == 0);
}
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 12:54:54 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 12:54:54 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6757] New: ternary operator: incompatible operand
types ('Foo const' and 'Foo')
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6757
Summary: ternary operator: incompatible operand types ('Foo
const' and 'Foo')
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: evan at chromium.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4621)
--> (http://llvm.org/bugs/attachment.cgi?id=4621)
test case as found in bug
This came up in WebCore.
Simplified test case follows, will also attach.
I believe this may have worked in the past, which would make this a regression.
But it's also possible the code in WebCore changed since the last time I
compiled this area.
build with
clang++ -c test.cc
test.cc:12:16: error: incompatible operand types ('Foo const' and 'Foo')
Foo x = true ? Bar() : Foo();
^ ~~~~~ ~~~~~
struct Foo {
};
struct Bar {
operator const Foo&() const;
};
void f() {
Foo x = true ? Bar() : Foo();
}
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 13:33:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 13:33:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6563] accepts invalid template argument
In-Reply-To:
References:
Message-ID: <20100401183314.5F5382A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6563
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-04-01 13:33:14 CDT ---
Fixed in r100125.
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 13:33:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 13:33:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6749] clang allows references to fulfill reference
non-type parameters
In-Reply-To:
References:
Message-ID: <20100401183323.67C892A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6749
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-04-01 13:33:23 CDT ---
Fixed in r100125.
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 15:42:31 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 15:42:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6758] New: JIT doesn't work on PowerPC: relocation
fails
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6758
Summary: JIT doesn't work on PowerPC: relocation fails
Product: new-bugs
Version: unspecified
Platform: Macintosh
URL: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1921
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
On Darwin 9.8.0 Power Macintosh powerpc:
The JIT aborts with this error:
Assertion failed: (ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) &&
"Relocation out of range!"), function relocate, file
llvm/lib/Target/PowerPC/PPCJITInfo.cpp, line 399.
backtrace:
Program received signal SIGABRT, Aborted.
0x96191b50 in __kill ()
(gdb) bt
#0 0x96191b50 in __kill ()
#1 0x9622cc00 in abort ()
#2 0x9621fc10 in __assert_rtn ()
#3 0x012bf304 in llvm::PPCJITInfo::relocate ()
#4 0x00e0c904 in (anonymous namespace)::JITEmitter::finishFunction ()
#5 0x01286634 in (anonymous namespace)::PPCCodeEmitter::runOnMachineFunction
()
#6 0x00fd61b8 in llvm::FPPassManager::runOnFunction ()
#7 0x00fd63e8 in llvm::FunctionPassManagerImpl::run ()
#8 0x00fd66ac in llvm::FunctionPassManager::run ()
#9 0x00dfc590 in llvm::JIT::runJITOnFunctionUnlocked ()
#10 0x00dfd670 in llvm::JIT::getPointerToFunction ()
This happens when the JIT client (ClamAV) has allocated some memory, and then
tries to use the JIT, it doesn't happen when only trying to use the JIT.
If needed I can probably write up a testcase for LLI that allocates some memory
first, and then tries to JIT, but I think the abort message is pretty clear
about what the problem is.
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 16:04:08 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 16:04:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6759] New: "friend class" implies forward
declaration "class"?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6759
Summary: "friend class" implies forward declaration "class"?
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jdd at efn.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following example will compile in g++ but not in clang++:
#include
/* If you uncomment the forward declaration, then this compiles OK
(but g++ does not require the forward declaration):
*/
// class FooImpl;
class Foo_connection {
private:
friend class FooImpl;
Foo_connection(FooImpl&);
};
int main() {
int i = 1;
printf("%d \n",++i);
}
-----
clang++ testcase.cc -o testcase
testcase.cc:9:31: error: expected ')'
Foo_connection(FooImpl&);
^
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 16:48:20 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 16:48:20 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6759] "friend class" implies forward declaration
"class"?
In-Reply-To:
References:
Message-ID: <20100401214820.33D2E2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6759
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Douglas Gregor 2010-04-01 16:48:19 CDT ---
Clang is correct here, per C+ [11.4]p9:
For a friend class declaration, if there is no prior declaration, the class
that is specified belongs to the innermost enclosing non-class scope, but if it
is subsequently referenced, its name is not found by name lookup until a
matching declaration is provided in the innermost enclosing nonclass scope.
GCC is wrong to make FooImpl visible in the friend class declaration.
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 17:21:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 17:21:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6760] New: The -globalopt pass assertions on the
given code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6760
Summary: The -globalopt pass assertions on the given code
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Interprocedural Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: criswell at uiuc.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4622)
--> (http://llvm.org/bugs/attachment.cgi?id=4622)
Reduced test case from 164.gzip
The Global Variable optimization pass asserts when run on the attached LLVM
bitcode. It occurs when using the release_27 branch.
opt -f -o /dev/null -globalopt bugpoint-reduced-simplified.bc
Assertion failed: (GEPI->getNumOperands() >= 3 &&
isa(GEPI->getOperand(2)) && "Unexpected GEPI!"), function
RewriteHeapSROALoadUser, file
/Users/criswell/src/llvm27/lib/Transforms/IPO/GlobalOpt.cpp, line 1197.
0 opt 0x000000010041c557 PrintStackTrace(void*) + 38
1 opt 0x000000010041ca4e SignalHandler(int) + 336
2 libSystem.B.dylib 0x00007fff83053eaa _sigtramp + 26
3 libSystem.B.dylib 0x00000001013f5000 _sigtramp + 2117734768
4 libSystem.B.dylib 0x00007fff830cfe74 __pthread_markcancel + 0
5 opt 0x0000000100083a33
RewriteHeapSROALoadUser(llvm::Instruction*, llvm::DenseMap >,
llvm::DenseMapInfo, llvm::DenseMapInfo > > >&, std::vector, std::allocator > >&) +
574
6 opt 0x0000000100083dfc
RewriteUsesOfLoadForHeapSRoA(llvm::LoadInst*, llvm::DenseMap >,
llvm::DenseMapInfo, llvm::DenseMapInfo > > >&, std::vector, std::allocator > >&) +
109
7 opt 0x0000000100084c3c
PerformHeapAllocSRoA(llvm::GlobalVariable*, llvm::CallInst*, llvm::Value*,
llvm::TargetData*) + 2457
8 opt 0x0000000100085e5d
TryToOptimizeStoreOfMallocToGlobal(llvm::GlobalVariable*, llvm::CallInst*,
llvm::Type const*, llvm::ilist_iterator&,
llvm::TargetData*) + 1173
9 opt 0x000000010008660d
OptimizeOnceStoredGlobal(llvm::GlobalVariable*, llvm::Value*,
llvm::ilist_iterator&, llvm::TargetData*) + 309
10 opt 0x0000000100087bcd (anonymous
namespace)::GlobalOpt::ProcessInternalGlobal(llvm::GlobalVariable*,
llvm::ilist_iterator&) + 2081
11 opt 0x0000000100087dbe (anonymous
namespace)::GlobalOpt::OptimizeGlobalVars(llvm::Module&) + 360
12 opt 0x0000000100087e75 (anonymous
namespace)::GlobalOpt::runOnModule(llvm::Module&) + 137
13 opt 0x00000001003ab5fe
llvm::MPPassManager::runOnModule(llvm::Module&) + 376
14 opt 0x00000001003ad4d1
llvm::PassManagerImpl::run(llvm::Module&) + 111
15 opt 0x00000001003ad533 llvm::PassManager::run(llvm::Module&) +
33
16 opt 0x000000010006090f main + 3130
17 opt 0x00000001000568cc start + 52
18 opt 0x0000000000000006 start + 4294612846
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 17:46:39 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 17:46:39 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6759] Poor diagnostic with missing type name in
constructor parameter
In-Reply-To:
References:
Message-ID: <20100401224639.D6E832A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6759
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |quality-of-implementation
Status|RESOLVED |REOPENED
Resolution|INVALID |
Summary|"friend class" implies |Poor diagnostic with
|forward declaration |missing type name in
|"class"? |constructor parameter
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 18:34:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 18:34:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6761] New: optimizer generates an infinite loop
with floating-point counter.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6761
Summary: optimizer generates an infinite loop with
floating-point counter.
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Loop Optimizer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nanki at dotswitch.net
CC: llvmbugs at cs.uiuc.edu
I tested the following code which prints 'H' 10 times.
-- h.ll
; ModuleID = ''
define void @main() nounwind {
; :0
br label %1
; :1 ; preds = %1, %0
%2 = phi double [ 9.000000e+00, %0 ], [ %4, %1 ] ; [#uses=1]
%3 = call i32 @putchar(i8 72) ; [#uses=0]
%4 = fsub double %2, 1.000000e+00 ; [#uses=2]
%5 = fcmp oge double %4, 0.000000e+00 ; [#uses=1]
br i1 %5, label %1, label %6
; :6 ; preds = %1
ret void
}
declare i32 @putchar(i8) nounwind
--
$ cat h.ll | llvm-as | lli
HHHHHHHHHH
But with optimization, it turns out an infinite loop.
$ cat h.ll | llvm-as | opt -O1 | lli
HHHHHHHHHHHHH...
* Using i32 counter works well with optimization.
* This problem seems to be happened when the delta is 1.0, 2.0, 3.0...
* See also http://llvm.org/bugs/show_bug.cgi?id=3299
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 18:52:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 18:52:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6762] New: clang++ trigger ADL on va_list
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6762
Summary: clang++ trigger ADL on va_list
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Blocks: 5511
Testcase:
#define a_list __builtin_va_list
extern a_list l;
extern int f (a_list arg);
namespace n {
int f(a_list arguments);
void y() {
f(l);
}
}
On x86-64, gcc accepts this, clang rejects it. Affects Firefox build.
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 20:49:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 20:49:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6289] Use of ostringstream in c++ code causes
resulting binary to segfault
In-Reply-To:
References:
Message-ID: <20100402014930.EBB582A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6289
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #5 from Douglas Gregor 2010-04-01 20:49:30 CDT ---
This is working for me now. Please try the latest Clang from Subversion and
re-open this bug if it isn't fixed for you.
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 20:51:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 20:51:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6763] New: Using True/False as identifiers is not
portable
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6763
Summary: Using True/False as identifiers is not portable
Product: new-bugs
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: mtsmith at synopsys.com
CC: llvmbugs at cs.uiuc.edu
The definition of areInvalidOperands in llvm/Instructions.h is not very
friendly. It uses True and False as identifiers, which in my code - and
probably a lot of older C code - are defined to 0 and 1.
--
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.
From bugzilla-daemon at llvm.org Thu Apr 1 22:02:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 1 Apr 2010 22:02:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6763] Using True/False as identifiers is not
portable
In-Reply-To:
References:
Message-ID: <20100402030215.26D642A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6763
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Chris Lattner 2010-04-01 22:02:14 CDT ---
We can't avoid every possible crazy macro :)
If these are coming from system headers, I recommend doing a #undef before the
#include of the llvm header. Alternatively, #include the llvm headers before
anything else.
--
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.
From bugzilla-daemon at llvm.org Fri Apr 2 00:15:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Apr 2010 00:15:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6764] New: ../../llvm-gcc/gcc/crtstuff.c:378:
internal compiler error: Bus error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6764
Summary: ../../llvm-gcc/gcc/crtstuff.c:378: internal compiler
error: Bus error
Product: Build scripts
Version: 2.6
Platform: DEC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Makefiles
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dot618point at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4623)
--> (http://llvm.org/bugs/attachment.cgi?id=4623)
internal compiler error: Bus error
/home/zheng/llvm/obj/./gcc/xgcc -B/home/zheng/llvm/obj/./gcc/
-B/usr/local/alphaev6-unknown-linux-gnu/bin/
-B/usr/local/alphaev6-unknown-linux-gnu/lib/ -isystem
/usr/local/alphaev6-unknown-linux-gnu/include -isystem
/usr/local/alphaev6-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -mieee
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -I. -I. -I../../llvm-gcc/gcc
-I../../llvm-gcc/gcc/. -I../../llvm-gcc/gcc/../include
-I../../llvm-gcc/gcc/../libcpp/include -I../../llvm-gcc/gcc/../libdecnumber
-I../libdecnumber -I/usr/local/include -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-toplevel-reorder \
-c ../../llvm-gcc/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
../../llvm-gcc/gcc/crtstuff.c:378: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory `/home/zheng/llvm/obj/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/zheng/llvm/obj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/zheng/llvm/obj'
make: *** [all] Error 2
--
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.
From bugzilla-daemon at llvm.org Fri Apr 2 00:18:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Apr 2010 00:18:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6765] New:
../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp error
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6765
Summary: ../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp error
Product: compiler-rt
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dot618point at gmail.com
CC: llvmbugs at cs.uiuc.edu
make[3]: Entering directory `/home/zheng/llvm/obj/gcc'
c++ -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wmissing-format-attribute
-fno-common -DHAVE_CONFIG_H -Wno-unused
-DTARGET_NAME=\"alphaev6-unknown-linux-gnu\" -frandom-seed=0 -I. -I.
-I../../llvm-gcc/gcc -I../../llvm-gcc/gcc/. -I../../llvm-gcc/gcc/../include
-I../../llvm-gcc/gcc/../libcpp/include -I../../llvm-gcc/gcc/../libdecnumber
-I../libdecnumber -I/usr/local/include -DENABLE_LLVM -I/usr/local/include
-D_DEBUG -mieee -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS
-I. -I. -I../../llvm-gcc/gcc -I../../llvm-gcc/gcc/.
-I../../llvm-gcc/gcc/../include -I../../llvm-gcc/gcc/../libcpp/include
-I../../llvm-gcc/gcc/../libdecnumber -I../libdecnumber -I/usr/local/include \
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp -o llvm-alpha.o
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp: In member function 'bool
TreeToLLVM::TargetIntrinsicLower(tree_node*, unsigned int, const MemRef*,
llvm::Value*&, const llvm::Type*, std::vector >&)':
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:108: error: no matching function
for call to 'llvm::IntegerType::get(int)'
/usr/local/include/llvm/DerivedTypes.h:108: note: candidates are: static const
llvm::IntegerType* llvm::IntegerType::get(llvm::LLVMContext&, unsigned int)
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:109: error: no matching function
for call to 'llvm::IntegerType::get(int)'
/usr/local/include/llvm/DerivedTypes.h:108: note: candidates are: static const
llvm::IntegerType* llvm::IntegerType::get(llvm::LLVMContext&, unsigned int)
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:111: error: 'Int64Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:112: error: 'Int64Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:120: error: 'Int64Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:121: error: 'Int8Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:122: error: 'Int64Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:123: error: 'Int8Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:126: error: 'Int64Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:127: error: 'Int64Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:147: error: 'Int64Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:149: error: 'Int64Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:162: error: 'Int64Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:163: error: 'Int64Ty' is not a
member of 'llvm::Type'
../../llvm-gcc/gcc/config/alpha/llvm-alpha.cpp:165: error: 'Int64Ty' is not a
member of 'llvm::Type'
make[3]: *** [llvm-alpha.o] Error 1
make[3]: Leaving directory `/home/zheng/llvm/obj/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/home/zheng/llvm/obj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/zheng/llvm/obj'
make: *** [all] Error 2
--
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.
From bugzilla-daemon at llvm.org Fri Apr 2 04:06:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Apr 2010 04:06:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6766] New: clang crash with a complex C99 structure
initialisation
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6766
Summary: clang crash with a complex C99 structure
initialisation
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: quickslyver at free.fr
CC: llvmbugs at cs.uiuc.edu
It is a reduction from gcc torture test "c99-init-1.c"
$cat b.c
typedef __WCHAR_TYPE__ wchar_t;
struct K {
wchar_t L[6];
int M;
} l = { { L"foo" }, 1 };
$ clang -cc1 b.c -emit-llvm
clang: llvm/tools/clang/lib/CodeGen/CGExprConstant.cpp:51:
bool::ConstStructBuilder::AppendField(const clang::FieldDecl*,
uint64_t, const clang::Expr*): Assertion `NextFieldOffsetInBytes <=
FieldOffsetInBytes && "Field offset mismatch!"' failed.
0 clang 0x08f6b498
Stack dump:
0. Program arguments: clang -cc1 b.c -emit-llvm
1. parser at end of file
2. b.c:3:8: LLVM IR generation of declaration 'K'
3. b.c:6:3: Generating code for declaration 'l'
Aborted
--
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.
From bugzilla-daemon at llvm.org Fri Apr 2 04:38:51 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Apr 2010 04:38:51 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6767] New: Assertion failed: (isVector() &&
"Invalid vector type!"), function getVectorNumElements,
file /data/home/rdivacky/llvm/include/llvm/CodeGen/ValueTypes.h, line 550.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6767
Summary: Assertion failed: (isVector() && "Invalid vector
type!"), function getVectorNumElements, file
/data/home/rdivacky/llvm/include/llvm/CodeGen/ValueTyp
es.h, line 550.
Product: libraries
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4625)
--> (http://llvm.org/bugs/attachment.cgi?id=4625)
test case
pes delta$ clang -O2 write.c
... warnings ...
Assertion failed: (isVector() && "Invalid vector type!"), function
getVectorNumElements, file
/data/home/rdivacky/llvm/include/llvm/CodeGen/ValueTypes.h, line 550.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name write.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.5 -O2
-fmessage-length 152 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-9NHkV8.s -x c write.c
1. parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@write_contents'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
this is on X86-64, I can provide the BC but I cant reproduce it with it
pes delta$ clang -c -emit-llvm write.c
... warnings ...
pes delta$ llc -O2 write.o
pes delta$
--
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.
From bugzilla-daemon at llvm.org Fri Apr 2 09:14:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Apr 2010 09:14:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6768] New: clang crash on function call with vla
argument
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6768
Summary: clang crash on function call with vla argument
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: quickslyver at free.fr
CC: llvmbugs at cs.uiuc.edu
testcase reduced from vla-4.c gcc torture test
$cat b.c
int foo(int n);
int foo6(int a, int b[a][a]);
int main() {
int b[10][10];
foo6(10, b);
return 0;
}
$ clang -cc1 -emit-llvm c.c
clang: llvm/tools/clang/lib/CodeGen/CGExpr.cpp:1084: clang::CodeGen::LValue
clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const clang::DeclRefExpr*):
Assertion `V && "DeclRefExpr not entered in LocalDeclMap?"' failed.
0 clang 0x08f6b498
Stack dump:
0. Program arguments: clang -cc1 -emit-llvm c.c
1. parser at end of file
2. c.c:4:5: LLVM IR generation of declaration 'main'
3. c.c:4:5: Generating code for declaration 'main'
4. c.c:4:12: LLVM IR generation of compound statement ('{}')
Aborted
--
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.
From bugzilla-daemon at llvm.org Fri Apr 2 13:00:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Apr 2010 13:00:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6769] New: Codegen crashes emitting code for static
member function of local class within a static member function
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6769
Summary: Codegen crashes emitting code for static member
function of local class within a static member
function
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chandlerc at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
% cat t.cc
struct X {
static void f();
};
void X::f() {
static int *i;
{
struct Y {
static void g() {
i = new int();
}
};
(void)Y::g();
}
(void)i;
}
% ./bin/clang -c -emit-llvm t.cc
clang: /home/chandlerc/src/llvm/trunk/tools/clang/lib/CodeGen/CGExpr.cpp:1085:
clang::CodeGen::LValue clang::CodeGen::CodeGenFunction::EmitDeclRefLValue(const
clang::DeclRefExpr*): Assertion `V && "DeclRefExpr not entered in
LocalDeclMap?"' failed.
Stack dump:
0. Program arguments: /home/chandlerc/src/llvm/trunk/build/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -emit-llvm-bc -disable-free -main-file-name
t.cc -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/home/chandlerc/src/llvm/trunk/build/lib/clang/1.5 -fmessage-length 179
-fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o t.o
-x c++ t.cc
1. parser at end of file
2. Per-file LLVM IR generation
3. t.cc:9:19: Generating code for declaration 'X::f()::Y::g'
4. t.cc:9:23: LLVM IR generation of compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
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.
From bugzilla-daemon at llvm.org Fri Apr 2 13:28:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Apr 2010 13:28:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6757] ternary operator: incompatible operand types
('Foo const' and 'Foo')
In-Reply-To:
References:
Message-ID: <20100402182846.1721E2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6757
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Douglas Gregor 2010-04-02 13:28:45 CDT ---
Fixed in r100196.
--
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.
From bugzilla-daemon at llvm.org Fri Apr 2 14:36:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Apr 2010 14:36:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6767] Assertion failed: (isVector() && "Invalid
vector type!"), function getVectorNumElements,
file /data/home/rdivacky/llvm/include/llvm/CodeGen/ValueTypes.h, line 550.
In-Reply-To:
References:
Message-ID: <20100402193656.D9DB52A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6767
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Evan Cheng 2010-04-02 14:36:56 CDT ---
memset of undef value.
Fixed: 100208.
--
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.
From bugzilla-daemon at llvm.org Fri Apr 2 15:48:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Apr 2010 15:48:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6770] New: clang::Sema::ActOnTag(...): Assertion
`Previous.isSingleResult()' failed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6770
Summary: clang::Sema::ActOnTag(...): Assertion
`Previous.isSingleResult()' failed
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: evan at chromium.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4627)
--> (http://llvm.org/bugs/attachment.cgi?id=4627)
reduction of problem
Hit while trying to -fsyntax-only Chromium.
clang version 1.5 (trunk 100211)
template
void f() {
friend class f;
}
$ clang++ -c reduce.cc
reduce.cc:3:3: error: 'friend' used outside of class
friend class f;
^
clang: SemaDecl.cpp:4912: virtual clang::OpaquePtr<0>
clang::Sema::ActOnTag(clang::Scope*, unsigned int, clang::Action::TagUseKind,
clang::SourceLocation, const clang::CXXScopeSpec&, clang::IdentifierInfo*,
clang::SourceLocation, clang::AttributeList*, clang::AccessSpecifier,
clang::ASTMultiPtr<&clang::ActionBase::DeleteTemplateParams>, bool&, bool&):
Assertion `Previous.isSingleResult()' failed.
0 clang 0x00000000011a1e8f
1 clang 0x00000000011a291a
2 libpthread.so.0 0x00007f92166b4190
3 libc.so.6 0x00007f92159ba4b5 gsignal + 53
4 libc.so.6 0x00007f92159bdf50 abort + 384
5 libc.so.6 0x00007f92159b3481 __assert_fail + 241
6 clang 0x00000000006328fc
7 clang 0x0000000000936525
8 clang 0x0000000000929df4
9 clang 0x000000000092e67b
10 clang 0x000000000092e7d6
11 clang 0x0000000000915c79
12 clang 0x00000000009169c6
13 clang 0x0000000000917101
14 clang 0x00000000009225a0
15 clang 0x00000000009504b9
16 clang 0x0000000000950921
17 clang 0x0000000000950bab
18 clang 0x000000000092e8ad
19 clang 0x0000000000922d70
20 clang 0x0000000000922f7a
21 clang 0x00000000005f2beb
22 clang 0x00000000004103a9
23 clang 0x000000000040294c
24 clang 0x00000000004057e1 main + 2417
25 libc.so.6 0x00007f92159a5abd __libc_start_main + 253
26 clang 0x00000000004002a9
Stack dump:
0. Program arguments: /work/chrome/llvm/Release/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name reduce.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/work/chrome/llvm/Release/lib/clang/1.5 -fmessage-length 129 -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-vZAHfq.s
-x c++ reduce.cc
1. reduce.cc:3:17: current parser token ';'
2. reduce.cc:2:10: parsing function body 'f'
3. reduce.cc:2:10: in compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
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.
From bugzilla-daemon at llvm.org Fri Apr 2 23:28:49 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 2 Apr 2010 23:28:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6748] missed optimization for vtables
In-Reply-To:
References:
Message-ID: <20100403042849.31C002A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6748
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Rafael ?vila de Esp?ndola 2010-04-02 23:28:48 CDT ---
fixed in r100266.
--
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.
From bugzilla-daemon at llvm.org Sat Apr 3 00:25:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 3 Apr 2010 00:25:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6524] opt -internalize breaks C++ initialization
(compiling with clang)
In-Reply-To:
References:
Message-ID: <20100403052506.567592A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6524
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |INVALID
--- Comment #7 from Chris Lattner 2010-04-03 00:25:05 CDT ---
internalize is working correctly. The likely problem here is that it is
internalizing _ZTISo, whic is the typeinfo for basic_ostream. Since libstdc++
defines its own version of this symbol and expects pointer comparisons between
them to work, all sorts of badness breaks out. However, this is exactly what
internalize is supposed to do: seal off the edges of a fully contained program.
Because you haven't statically linked in libstdc++ and haven't provided a
correct export list, you lose.
However, there is a bug here that doesn't manifest in this testcase:
available_externally functions should not be externalized. I fixed this
theoretical issue in r100269.
--
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.
From bugzilla-daemon at llvm.org Sat Apr 3 01:30:28 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 3 Apr 2010 01:30:28 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6761] optimizer generates an infinite loop with
floating-point counter.
In-Reply-To:
References:
Message-ID: <20100403063028.475EE2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6761
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2010-04-03 01:30:27 CDT ---
Fixed in a series of patches leading up to 100282, however, there are still
bugs which I'll iron out in a few subsequent patches.
--
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.
From bugzilla-daemon at llvm.org Sat Apr 3 02:23:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 3 Apr 2010 02:23:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6771] New: Quoted -D macros break static analyzer
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6771
Summary: Quoted -D macros break static analyzer
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: alexei.svitkine at gmail.com
CC: llvmbugs at cs.uiuc.edu
If a macro in the form of: -DFOO='"BAR"' is specified on the command-line to
scan-build, it will issue the following error:
:10:25: error: missing terminating '"' character
#define FOO \"BAR\"
Preventing it from working. This does not happen if clang or gcc is given that
command-line option.
--
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.
From bugzilla-daemon at llvm.org Sat Apr 3 07:33:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 3 Apr 2010 07:33:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6772] New: Not an error for gcc -- error: default
initialization of an object of const type '...' requires a user-provided
default constructor
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6772
Summary: Not an error for gcc -- error: default initialization
of an object of const type '...' requires a
user-provided default constructor
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nms+llvm at otdel-1.org
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Script started on Sat Apr 3 16:29:45 2010
$ cat ccd.cpp
struct A {
A() {}
};
class B {
A a_;
};
int
foo()
{
const B b;
return 0;
}
$ g++ --version
g++ (GCC) 4.2.1 20070719 [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ -c ccd.cpp
$ clang++ --version
clang version 1.5 (trunk)
Target: i386-portbld-freebsd9.0
Thread model: posix
$ clang++ -c ccd.cpp
ccd.cpp:12:10: error: default initialization of an object of const type 'B
const' requires a user-provided default constructor
const B b;
^
1 diagnostic generated.
$ ^D
Script done on Sat Apr 3 16:30:29 2010
--
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.
From bugzilla-daemon at llvm.org Sat Apr 3 18:49:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 3 Apr 2010 18:49:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6773] New: Add Instruction Fold for Masked Merge
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6773
Summary: Add Instruction Fold for Masked Merge
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: me22.ca at gmail.com
CC: llvmbugs at cs.uiuc.edu
When experimenting with SHA, I was pleased to notice that LLVM will fold the
"Maj" function (x & y) ^ (x & z) ^ (y & z) down to ((z ^ y) & x) ^ (y & z).
The "Ch" function, though, doesn't fold. (x & y) | (~x & z) should become ((y
^ z) & x) ^ z, as mentioned on
http://graphics.stanford.edu/~seander/bithacks.html#MaskedMerge (as should (x &
y) ^ (~x & z), the version used in the SHA standard).
(If you're wondering at the similarity, Maj(x,y,z) is equivalent to Ch(x, y|z,
y&z). Using that implementation with the optimized Ch again gives optimal code
from LLVM as it knows to fold (y|z)^(y&z) down to y^z.)
LLVM IR from Bitter Melon:
define i32 @Ch(i32 %x, i32 %y, i32 %z) nounwind readnone {
entry:
%0 = and i32 %y, %x ; [#uses=1]
%not = xor i32 %x, -1 ; [#uses=1]
%1 = and i32 %z, %not ; [#uses=1]
%2 = xor i32 %1, %0 ; [#uses=1]
ret i32 %2
}
define i32 @Maj(i32 %x, i32 %y, i32 %z) nounwind readnone {
entry:
%0 = xor i32 %z, %y ; [#uses=1]
%1 = and i32 %0, %x ; [#uses=1]
%2 = and i32 %z, %y ; [#uses=1]
%3 = xor i32 %1, %2 ; [#uses=1]
ret i32 %3
}
define i32 @Ch2(i32 %x, i32 %y, i32 %z) nounwind readnone {
entry:
%0 = xor i32 %z, %y ; [#uses=1]
%1 = and i32 %0, %x ; [#uses=1]
%2 = xor i32 %1, %z ; [#uses=1]
ret i32 %2
}
define i32 @Maj2(i32 %x, i32 %y, i32 %z) nounwind readnone {
entry:
%0 = and i32 %z, %y ; [#uses=1]
%1 = xor i32 %z, %y ; [#uses=1]
%2 = and i32 %1, %x ; [#uses=1]
%3 = xor i32 %2, %0 ; [#uses=1]
ret i32 %3
}
>From the following C source:
int Ch(int x, int y, int z) {
return (x&y) ^ (~x&z);
}
int Maj(int x, int y, int z) {
return (x&y) ^ (x&z) ^ (y&z);
}
int Ch2(int x, int y, int z) {
return z ^ ((y ^ z) & x);
}
int Maj2(int x, int y, int z) {
return Ch2(x, y|z, y&z);
}
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 04:15:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 04:15:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6772] Not an error for gcc -- error: default
initialization of an object of const type '...' requires a user-provided
default constructor
In-Reply-To:
References:
Message-ID: <20100404091535.4E5572A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6772
Chandler Carruth changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |chandlerc at gmail.com
Resolution| |INVALID
--- Comment #1 from Chandler Carruth 2010-04-04 04:15:34 CDT ---
(In reply to comment #0)
> Script started on Sat Apr 3 16:29:45 2010
> $ cat ccd.cpp
> struct A {
> A() {}
> };
>
> class B {
> A a_;
> };
>
> int
> foo()
> {
> const B b;
> return 0;
> }
> $ g++ --version
> g++ (GCC) 4.2.1 20070719 [FreeBSD]
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> $ g++ -c ccd.cpp
> $ clang++ --version
> clang version 1.5 (trunk)
> Target: i386-portbld-freebsd9.0
> Thread model: posix
> $ clang++ -c ccd.cpp
> ccd.cpp:12:10: error: default initialization of an object of const type 'B
> const' requires a user-provided default constructor
Clang is correct: C++'03 [dcl.init] p9: If no initializer is specified for an
object, and the object is of (possibly cv-qualified) non-POD class type (or
array thereof), the object shall be default-initialized; if the object is of
const-qualified type, the underlying class type shall have a user-declared
default constructor.
The user declared default constructor for A makes A non-POD. The A member in B
makes B non-POD, and thus this rule kicks in, and the code provided is invalid.
You could re-open as a request for a GCC-compatibility setting to allow such
code, but I don't personally see a lot of value in it. Perhaps others do, so
feel free to re-open if you want to pursue that path.
> const B b;
> ^
> 1 diagnostic generated.
> $ ^D
> Script done on Sat Apr 3 16:30:29 2010
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 06:18:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 06:18:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6758] JIT doesn't work on PowerPC: relocation fails
In-Reply-To:
References:
Message-ID: <20100404111818.7EAC32A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6758
T?r?k Edwin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #8 from T?r?k Edwin 2010-04-04 06:18:17 CDT ---
Marking this as dup of PR5201.
*** This bug has been marked as a duplicate of bug 5201 ***
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 06:50:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 06:50:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6774] New: Too much stack manipulation with
-tailcallopt on x86
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6774
Summary: Too much stack manipulation with -tailcallopt on x86
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: batterseapower at hotmail.com
CC: llvmbugs at cs.uiuc.edu
The GHC LLVM backend generates code with lots of tail calls, and we use
-tailcallopt to ensure that these are turned into actual "jmp" instructions.
Unfortunately, the -tailcallopt option seems to lead to excessive manipulation
of the stack pointer. Here is some an example IR fragment generated from some
relatively simple Haskell code:
{{{
define cc10 void @Toy_toy_entry(i32 %stg_terei_baseArg, i32
%stg_terei_spArg, i32 %stg_terei_hpArg, i32 %stg_terei_r1Arg) nounwind
{
cdx:
%ndz = add i32 %stg_terei_spArg, -4 ; [#uses=3]
%ndB = add i32 %stg_terei_baseArg, 84 ; [#uses=1]
%ndC = inttoptr i32 %ndB to i32* ; [#uses=1]
%ndD = load i32* %ndC ; [#uses=1]
%ndE = icmp ult i32 %ndz, %ndD ; [#uses=1]
br i1 %ndE, label %cdG, label %ndH
ndH: ; preds = %cdx
%ndJ = inttoptr i32 %stg_terei_spArg to i32* ; [#uses=2]
%ndK = load i32* %ndJ ; [#uses=1]
%ndP = inttoptr i32 %ndz to i32* ; [#uses=1]
store i32 add (i32 ptrtoint (%Toy_toy1_closure_struct*
@Toy_toy2_closure to i32), i32 1), i32* %ndP
store i32 ptrtoint (%sbo_info_struct* @sbo_info to i32), i32* %ndJ
tail call cc10 void @stg_ap_p_fast(i32 %stg_terei_baseArg, i32 %ndz,
i32 %stg_terei_hpArg, i32 %ndK) nounwind
ret void
cdG: ; preds = %cdx
%ne1 = add i32 %stg_terei_baseArg, -4 ; [#uses=1]
%ne2 = inttoptr i32 %ne1 to i32* ; [#uses=1]
%ne3 = load i32* %ne2 ; [#uses=1]
%ne4 = inttoptr i32 %ne3 to void (i32, i32, i32, i32)* ; [#uses=1]
tail call cc10 void %ne4(i32 %stg_terei_baseArg, i32
%stg_terei_spArg, i32 %stg_terei_hpArg, i32 ptrtoint
(%Toy_toy_closure_struct* @Toy_toy_closure to i32)) nounwind
ret void
}
}}}
With -tailcallopt, llc generates the following x86:
{{{
_Toy_toy_entry: ## @Toy_toy_entry
## BB#0: ## %cdx
subl $12, %esp
leal -4(%ebp), %eax
cmpl 84(%ebx), %eax
jb LBB2_2
## BB#1: ## %ndH
movl (%ebp), %esi
movl $_Toy_toy2_closure+1, -4(%ebp)
movl $_sbo_info, (%ebp)
movl %eax, %ebp
addl $12, %esp
jmp _stg_ap_p_fast # TAILCALL
LBB2_2: ## %cdG
movl -4(%ebx), %eax
movl $_Toy_toy_closure, %esi
addl $12, %esp
jmpl *%eax # TAILCALL
.globl ___stginit_Toy_
.align 4, 0x90
}}}
Note the subl of %esp at the end point and corresponding addl to %esp at both
exit points. %esp is not used in the body of the function, so this is
pointless.
Compiling without -tailcallopt removes this extra stack manipulation.
As far as I can see, the two tail calls meet the requirements for "sibling
calls" - and indeed llc without -tailcallopt still turns the calls into "jmp"s.
Is it possible for LLVM to try this approach first, and only fall back on the
full tail-call optimisation if it can't apply the simpler sibling-call
optimisation?
(See also my post to the GHC mailing list at
http://article.gmane.org/gmane.comp.lang.haskell.cvs.ghc/38323)
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 11:07:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 11:07:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6775] New: clang should support -use-gold-plugin
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6775
Summary: clang should support -use-gold-plugin
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Clang should support -use-gold-plugin, the same way llvm-gcc supports it.
It should also build & install libLLVMgold.so along with clang.
Alternatively it should strip flags unknown to llvm-ld, and invoke it, as
described here: http://llvm.org/bugs/show_bug.cgi?id=4155
However 'nm' would still need the gold plugin to work with LTO objects.
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 16:55:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 16:55:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6776] New: false positive : bad bound guessing
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6776
Summary: false positive : bad bound guessing
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: castet.matthieu at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4632)
--> (http://llvm.org/bugs/attachment.cgi?id=4632)
testcase
In the attached test case, type can only be between 0 and 63 and c is always
set to 2.
This is because type come from (uint32_t)>>(32-(6))).
But analyser fails to see that :
test_ana.c:27:2: warning: Undefined or garbage value returned to caller
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 18:35:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 18:35:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6777] New: Code generators (both llvmc and Jit) get
stuck when dealing circular CFG (svn r100296)
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6777
Summary: Code generators (both llvmc and Jit) get stuck when
dealing circular CFG (svn r100296)
Product: compiler-rt
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bugspynet at gmail.com
CC: llvmbugs at cs.uiuc.edu
The following arbitrary example makes the code generators to get stuck
(llx won't return from command line, Jit won't return from function
call)
Basically it is a CFG with circles, (the function will return by
comparing a branch counter to a threshold on runtime - see the
"Brancher" blocks below)
Any idea what goes wrong? Is it a bug in llvm ?
; ModuleID = 'TestModule!'
define double @fn1(i8*, i64) {
Entry:
%BranchCounter = alloca i32 ; [#uses=7]
store i32 0, i32* %BranchCounter
%Vars = alloca double, i32 3 ; [#uses=3]
%DoubleVar = getelementptr inbounds double* %Vars, i32 0 ;
[#uses=6]
store double 0xC031AD5A40000000, double* %DoubleVar
%DoubleVar1 = getelementptr inbounds double* %Vars, i32 1 ;
[#uses=1]
store double 0xC055A9E9E0000000, double* %DoubleVar1
%DoubleVar2 = getelementptr inbounds double* %Vars, i32 2 ;
[#uses=4]
store double 0xC0495B8A80000000, double* %DoubleVar2
br label %Brancher
Exit: ; preds =
%Brancher7, %Brancher4, %Brancher
%2 = load double* %DoubleVar ; [#uses=1]
ret double %2
Body: ; preds = %Brancher
%3 = srem i64 30, %1 ; [#uses=1]
%4 = getelementptr inbounds i8* %0, i64 %3 ; [#uses=1]
%5 = load i8* %4 ; [#uses=1]
%PeekResult = uitofp i8 %5 to double ; [#uses=0]
%6 = load double* %DoubleVar2 ; [#uses=1]
store double 0x40619C4E80000000, double* %DoubleVar
%7 = srem i64 178, %1 ; [#uses=1]
%8 = getelementptr inbounds i8* %0, i64 %7 ; [#uses=1]
%9 = load i8* %8 ; [#uses=1]
%PeekResult9 = uitofp i8 %9 to double ; [#uses=0]
store double %6, double* %DoubleVar
%10 = load double* %DoubleVar2 ; [#uses=0]
%11 = load double* %DoubleVar ; [#uses=0]
br i1 false, label %Brancher7, label %Brancher4
Brancher: ; preds = %Entry
%12 = load i32* %BranchCounter ; [#uses=1]
%"BrCounter++" = add i32 %12, 1 ; [#uses=2]
store i32 %"BrCounter++", i32* %BranchCounter
%13 = icmp ult i32 %"BrCounter++", 10 ; [#uses=1]
br i1 %13, label %Body, label %Exit
Body3: ; preds = %Brancher4
%14 = srem i64 40, %1 ; [#uses=1]
%15 = getelementptr inbounds i8* %0, i64 %14 ; [#uses=1]
%16 = load i8* %15 ; [#uses=1]
%PeekResult10 = uitofp i8 %16 to double ; [#uses=2]
%17 = fsub double 0xC058173FC0000000, %PeekResult10 ; [#uses=1]
store double %PeekResult10, double* %DoubleVar2
%18 = fsub double 0x406AB76488000000, %17 ; [#uses=1]
%19 = fdiv double %18, 0x4068C87680000000 ; [#uses=0]
br label %Brancher4
Brancher4: ; preds = %Body6,
%Body3, %Body
%20 = load i32* %BranchCounter ; [#uses=1]
%"BrCounter++5" = add i32 %20, 1 ; [#uses=2]
store i32 %"BrCounter++5", i32* %BranchCounter
%21 = icmp ult i32 %"BrCounter++5", 10 ; [#uses=1]
br i1 %21, label %Body3, label %Exit
Body6: ; preds = %Brancher7
%22 = load double* %DoubleVar ; [#uses=3]
%23 = srem i64 7118, %1 ; [#uses=1]
%24 = getelementptr inbounds i8* %0, i64 %23 ; [#uses=1]
%25 = load i8* %24 ; [#uses=1]
%PeekResult11 = uitofp i8 %25 to double ; [#uses=0]
%26 = fsub double %22, %22 ; [#uses=0]
%27 = fcmp oeq double 0xC04FBB2E40000000, %22 ; [#uses=1]
br i1 %27, label %Brancher4, label %Brancher7
Brancher7: ; preds = %Body6, %Body
%28 = load i32* %BranchCounter ; [#uses=1]
%"BrCounter++8" = add i32 %28, 1 ; [#uses=2]
store i32 %"BrCounter++8", i32* %BranchCounter
%29 = icmp ult i32 %"BrCounter++8", 10 ; [#uses=1]
br i1 %29, label %Body6, label %Exit
}
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 19:07:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 19:07:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6778] New: llvm-gcc-4.2 from release_2.7 branch
fails to build f951 on x86_64-apple-darwin10
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6778
Summary: llvm-gcc-4.2 from release_2.7 branch fails to build
f951 on x86_64-apple-darwin10
Product: new-bugs
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: release blocker
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: howarth at bromo.msbb.uc.edu
CC: llvmbugs at cs.uiuc.edu
When attempting to build llvm-gcc-4.2 from the release_2.7 branch at r99913,
the build fails at...
c++ -g -O2 -mdynamic-no-pic -DIN_GCC -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition
-Wmissing-format-attribute -mdynamic-no-pic -DHAVE_CONFIG_H -o f951 \
fortran/arith.o fortran/array.o fortran/bbt.o fortran/check.o
fortran/data.o fortran/decl.o fortran/dump-parse-tree.o fortran/error.o
fortran/expr.o fortran/interface.o fortran/intrinsic.o fortran/io.o
fortran/iresolve.o fortran/match.o fortran/matchexp.o fortran/misc.o
fortran/module.o fortran/openmp.o fortran/options.o fortran/parse.o
fortran/primary.o fortran/resolve.o fortran/scanner.o fortran/simplify.o
fortran/st.o fortran/symbol.o fortran/convert.o fortran/dependency.o
fortran/f95-lang.o fortran/trans.o fortran/trans-array.o fortran/trans-common.o
fortran/trans-const.o fortran/trans-decl.o fortran/trans-expr.o
fortran/trans-intrinsic.o fortran/trans-io.o fortran/trans-openmp.o
fortran/trans-stmt.o fortran/trans-types.o llvm-main.o libbackend.a
../libcpp/libcpp.a /sw/lib/llvm/lib/libLLVMBitReader.a
/sw/lib/llvm/lib/libLLVMipo.a /sw/lib/llvm/lib/libLLVMBitWriter.a
/sw/lib/llvm/lib/libLLVMX86Disassembler.a
/sw/lib/llvm/lib/libLLVMX86AsmParser.a /sw/lib/llvm/lib/libLLVMMCParser.a
/sw/lib/llvm/lib/libLLVMX86AsmPrinter.a /sw/lib/llvm/lib/libLLVMX86CodeGen.a
/sw/lib/llvm/lib/libLLVMSelectionDAG.a /sw/lib/llvm/lib/libLLVMAsmPrinter.a
/sw/lib/llvm/lib/libLLVMCodeGen.a /sw/lib/llvm/lib/libLLVMScalarOpts.a
/sw/lib/llvm/lib/libLLVMInstCombine.a /sw/lib/llvm/lib/libLLVMTransformUtils.a
/sw/lib/llvm/lib/libLLVMipa.a /sw/lib/llvm/lib/libLLVMAnalysis.a
/sw/lib/llvm/lib/libLLVMTarget.a /sw/lib/llvm/lib/libLLVMMC.a
/sw/lib/llvm/lib/libLLVMCore.a /sw/lib/llvm/lib/libLLVMX86Info.a
/sw/lib/llvm/lib/libLLVMSupport.a /sw/lib/llvm/lib/libLLVMSystem.a attribs.o
stub-objc.o stub-c.o -L/sw/lib -lmpfr -lgmp ../libcpp/libcpp.a -lintl -L/sw/lib
-liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
-L/sw/lib/llvm/lib -lpthread -lm
Undefined symbols:
"_gt_ggc_r_gt_darwin_c_h", referenced from:
_gt_ggc_rtab in f95-lang.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [f951] Error 1
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2
when built with...
# ../llvm-gcc4.2-2.7.source/configure --prefix=/sw
--prefix=/sw/lib/llvm-gcc-4.2 --mandir=/sw/share/man --infodir=/sw/share/info
--with-gmp=/sw --with-libiconv-prefix=/sw --with-system-zlib
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
--with-as=/Developer/usr/bin/as --with-ld=/Developer/usr/bin/ld
--with-nm=/Developer/usr/bin/nm --with-gxx-include-dir=/usr/include/c++/4.2.1
--enable-llvm=/sw/lib/llvm --enable-languages=c,c++,fortran
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 22:04:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 22:04:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6779] New: ice: library memcpy does not support
volatile
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6779
Summary: ice: library memcpy does not support volatile
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4633)
--> (http://llvm.org/bugs/attachment.cgi?id=4633)
failure-inducing C code
Sorry for the big testcase.
regehr at john-home:~/volatile/bugs/tmp309$ clang -emit-llvm small.c -c -o
small.bc -w
regehr at john-home:~/volatile/bugs/tmp309$ llc small.bc -o /dev/null
llc: SelectionDAG.cpp:3526: llvm::SDValue
llvm::SelectionDAG::getMemcpy(llvm::SDValue, llvm::DebugLoc, llvm::SDValue,
llvm::SDValue, llvm::SDValue, unsigned int, bool, bool, const llvm::Value*,
uint64_t, const llvm::Value*, uint64_t): Assertion `!isVol && "library memcpy
does not support volatile"' failed.
0 llc 0x0897c148
Stack dump:
0. Program arguments: llc small.bc -o /dev/null
1. Running pass 'X86 DAG->DAG Instruction Selection' on function '@func_1'
Aborted
regehr at john-home:~/volatile/bugs/tmp309$ clang -v
clang version 1.5 (trunk 100339)
Target: i386-pc-linux-gnu
Thread model: posix
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 23:04:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 23:04:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 4269] klee cannot be built in a separate objects
directory
In-Reply-To:
References:
Message-ID: <20100405040413.A1CE12A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4269
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Daniel Dunbar 2010-04-04 23:04:13 CDT ---
Fixed here:
http://llvm.org/viewvc/llvm-project?view=rev&revision=100395
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 23:04:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 23:04:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5302] trying to build on mac snow leopard fails
In-Reply-To:
References:
Message-ID: <20100405040430.C02E72A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5302
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Daniel Dunbar 2010-04-04 23:04:30 CDT ---
Should be fixed as of (at least):
http://llvm.org/viewvc/llvm-project?view=rev&revision=100395
--
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.
From bugzilla-daemon at llvm.org Sun Apr 4 23:05:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 4 Apr 2010 23:05:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 4295] Support arbitrary width types.
In-Reply-To:
References:
Message-ID: <20100405040533.4DBBD2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4295
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Daniel Dunbar 2010-04-04 23:05:33 CDT ---
This is done.
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 04:18:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 04:18:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6780] New: clang++ -m32 breaks inline asm
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6780
Summary: clang++ -m32 breaks inline asm
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
pes delta$ cat atomicity.cc
extern "C" {
}
typedef int _Atomic_word;
namespace __gnu_cxx
__attribute__((__visibility__("default")))
{
_Atomic_word __attribute__((__unused__)) __exchange_and_add(volatile
_Atomic_word * __mem, int __val){
register _Atomic_word __result;
__asm__ __volatile__("lock; xadd{l}
{%0,%1|%1,%0}":"=r"(__result), "=m"(*__mem):"0"(__val), "m"(*__mem));
return __result;
}
}
pes delta$ g++ -c -m32 atomicity.cc && echo success
success
pes delta$ clang++ -c -m32 atomicity.cc && echo success
/tmp/cc-NbWHQp.s: Assembler messages:
/tmp/cc-NbWHQp.s:22: Error: invalid character '{' in mnemonic
clang: error: assembler command failed with exit code 1 (use -v to see
invocation)
pes delta$
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 11:34:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 11:34:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6329] GNU extension: initialization of members of
an anonymous struct
In-Reply-To:
References:
Message-ID: <20100405163411.55EB82A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6329
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2010-04-05 11:34:11 CDT ---
Verified, thanks.
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 11:36:48 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 11:36:48 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6781] New: Template diagnostics should suppress
instantiation contexts when there are lots
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6781
Summary: Template diagnostics should suppress instantiation
contexts when there are lots
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
This testcase:
template struct X {
static const int value = X::value;
};
template struct X<1000>;
compiles to this with gcc:
testsuite/9335.cc:2:38: error: template instantiation depth exceeds maximum of
1024 (use -ftemplate-depth= to increase the maximum) instantiating ?struct
X<-0x00000000000000018>?
testsuite/9335.cc:2:38: instantiated from ?const int
X<-0x00000000000000017>::value?
testsuite/9335.cc:2:38: instantiated from ?const int
X<-0x00000000000000016>::value?
testsuite/9335.cc:2:38: instantiated from ?const int
X<-0x00000000000000015>::value?
testsuite/9335.cc:2:38: instantiated from ?const int
X<-0x00000000000000014>::value?
testsuite/9335.cc:2:38: instantiated from ?const int
X<-0x00000000000000013>::value?
testsuite/9335.cc:2:38: [ skipping 1014 instantiation contexts ]
testsuite/9335.cc:2:38: instantiated from ?const int X<996>::value?
testsuite/9335.cc:2:38: instantiated from ?const int X<997>::value?
testsuite/9335.cc:2:38: instantiated from ?const int X<998>::value?
testsuite/9335.cc:2:38: instantiated from ?const int X<999>::value?
testsuite/9335.cc:2:38: instantiated from ?const int X<1000>::value?
testsuite/9335.cc:4:17: instantiated from here
Clang emits all of those instantiation contexts, which is not helpful.
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 12:00:49 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 12:00:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6782] New: clang accepts code missing ;
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6782
Summary: clang accepts code missing ;
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang accepts this, but shouldn't.
template
class Class1;
class Class2 {
} // no ;
typedef Class1 Type1;
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 12:15:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 12:15:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6783] New: crash on invalid: (DefinitionData &&
"queried property of class with no definition)"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6783
Summary: crash on invalid: (DefinitionData && "queried
property of class with no definition)"
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
clang crashes on this:
struct Base {};
struct X; // X derived from Base later but
incomplete
here
struct Y {}; // Y not derived from Base
int test1(int Base::* p2m, X* object)
{
return object->*p2m; // fails because X is incomplete
}
struct X : Base
{
};
int test2(int Base::* p2m, X* object)
{
return object->*p2m; // OK
}
int test3(int Base::* p2m, Y* object)
{
return object->*p2m; // fails because Y is not derived from
A
}
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 12:44:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 12:44:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6784] New: C++98/03: Template arguments cannot be
unnamed types
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6784
Summary: C++98/03: Template arguments cannot be unnamed types
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
For example, the following is ill-formed in C++98/03:
1 struct A {};
2 int foo(A);
3 template int foo(void *, T);
4 enum {e};
5 int i = foo(0, e);
but well-formed in C++0x. Clang does not diagnose the error in C++98/03 mode.
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 13:04:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 13:04:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6663] MultiSource/Benchmarks/Bullet/bullet fails on
x86-32 linux when using -fPIC
In-Reply-To:
References:
Message-ID: <20100405180425.D7B392A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6663
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |DUPLICATE
--- Comment #15 from Duncan Sands 2010-04-05 13:04:25 CDT ---
In the assembler generated by llc for bullet.bad.bc, ebp is used to store the
stack pointer
pushl %ebp
movl %esp, %ebp
but is also used as a scratch register
movl 8(%ebp), %ebp
movl %ebp, (%esp)
which is fatal since ebp is used to restore the stack pointer
movl %ebp, %esp
popl %ebp
ret
This looks like a duplicate of PR6696. One difference is that there are
no vectors here, only operations on int and float.
*** This bug has been marked as a duplicate of bug 6696 ***
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 13:18:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 13:18:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6782] clang accepts code missing ;
In-Reply-To:
References:
Message-ID: <20100405181842.012462A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6782
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2010-04-05 13:18:41 CDT ---
Fixed in r100443
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 13:44:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 13:44:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6780] clang++ -m32 breaks inline asm
In-Reply-To:
References:
Message-ID: <20100405184447.E3CE72A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6780
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Chris Lattner 2010-04-05 13:44:47 CDT ---
Fixed here, thanks:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100405/029000.html
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 14:17:54 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 14:17:54 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6777] Code generators (both llvmc and Jit) get
stuck when dealing circular CFG (svn r100296)
In-Reply-To:
References:
Message-ID: <20100405191755.070DA2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6777
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |gohman at apple.com
Resolution| |FIXED
--- Comment #2 from Dan Gohman 2010-04-05 14:17:54 CDT ---
Fixed in 100455.
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 15:11:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 15:11:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6779] ice: library memcpy does not support volatile
In-Reply-To:
References:
Message-ID: <20100405201159.D717B2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6779
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Chris Lattner 2010-04-05 15:11:59 CDT ---
Fixed in r100457, thanks!
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 15:15:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 15:15:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6785] New: MultiSource/Applications/spiff needs
1.2G virtual memory, crashes with ulimit 300
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6785
Summary: MultiSource/Applications/spiff needs 1.2G virtual
memory, crashes with ulimit 300
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
RunSafely sets a 300MB ulimit -v, and this causes
MultiSource/Applications/spiff to crash on x86-64.
If I change the limit to 1200000, the test passes.
This is not a regression if we look at the behavior: in LLVM 2.6 it has run out
of memory too on all configurations, including native:
Out of Memory
exit 2
The difference is that now we crash when running out of memory, so I don't
think this is a release blocker.
Something should be done for llvm 2.8, either make this test use less memory,
or increase the limit in RunSafely.
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 15:42:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 15:42:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6786] New: New parameter to assume function
parameters are nonnull by default
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6786
Summary: New parameter to assume function parameters are
nonnull by default
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: tss at iki.fi
CC: llvmbugs at cs.uiuc.edu
The nonnull attribute is kind of nice in theory and static analyzer gives
useful output with them, but since in typical code most parameters are nonnull,
it's annoying to specify it in 99% of function declarations.
So what if there was instead a new parameter that changes the default to assume
that all parameters are nonnull, unless overridden? The overriding could happen
in two ways:
a) nonnull attribute specified for the function and doesn't list some specific
parameter
b) nonnull attribute doesn't work if all parameters can be null, so there would
also have to be a new null attribute that works opposite to what nonnull does.
There are of course them potential problems with false positive warnings with
libc and other external libraries, but I'm hoping they won't cause too much
trouble.
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 16:20:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 16:20:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6787] New: Unable to step through a program
compiled with clang in gdb
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6787
Summary: Unable to step through a program compiled with clang
in gdb
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: lech.lorens+llvm at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4637)
--> (http://llvm.org/bugs/attachment.cgi?id=4637)
source of the program
I compile a simple program displaying integers from 0 to 2. If I try to single
step through the program in gdb, I am unable to do so: gdb steps over the main
function. This does not happen if the same program is compiled with gcc.
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 16:32:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 16:32:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6788] New: Missing tail-call optimization
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6788
Summary: Missing tail-call optimization
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: ARM
AssignedTo: unassignedbugs at nondot.org
ReportedBy: john at bass-software.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4641)
--> (http://llvm.org/bugs/attachment.cgi?id=4641)
Code piece resulting in missing tail-optimization
Code piece:
--8<--
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32"
target triple = "armv7-unknown-eabi"
define arm_aapcscc i32 @test2(i32 %low, i32 %high) nounwind readnone {
entry:
%conv = zext i32 %high to i64 ; [#uses=1]
%shl = shl i64 %conv, 32 ; [#uses=1]
%conv2 = zext i32 %low to i64 ; [#uses=1]
%add = or i64 %shl, %conv2 ; [#uses=1]
%div = udiv i64 %add, 3 ; [#uses=1]
%conv4 = trunc i64 %div to i32 ; [#uses=1]
ret i32 %conv4
}
--8<--
gets compiled as (see test-indirect.ll attachment):
--8<--
test2:
stmdb sp!, {r11, lr}
mov r2, #3
mov r3, #0
bl __udivdi3
ldmia sp!, {r11, pc}
--8<--
Can't this become:
--8<--
test2:
mov r2, #3
mov r3, #0
b __udivdi3
--8<--
Aside: in case it is important, the .ll code piece came from compiling using
clang/llvm-gcc (tried both):
--8<--
#include
uint32_t
test2 (uint32_t low, uint32_t high)
{
uint64_t sum = ((uint64_t)high << 32) + (uint64_t)low;
return sum / 3ULL;
}
--8<--
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 18:23:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 18:23:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6789] New: clang shouldn't check for the existence
of files specified as arguments to -Xlinker, -Xassembler, etc.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6789
Summary: clang shouldn't check for the existence of files
specified as arguments to -Xlinker, -Xassembler, etc.
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: mark.lacey at intel.com
CC: llvmbugs at cs.uiuc.edu
Something like:
clang -o hello hello.c -Xlinker -map hello.map
fails with:
clang: error: no such file or directory: 'hello.map'
if 'hello.map' does not already exist.
Doing:
touch hello.map
works around the issue, but it's not very convenient.
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 21:46:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 21:46:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6726] [2.7] Analysis/retain-release.m fail in
release-asserts
In-Reply-To:
References:
Message-ID: <20100406024601.7C9772A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6726
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #10 from Ted Kremenek 2010-04-05 21:46:00 CDT ---
Zhongxing and I have investigated the bug and it does indeed appear to be the
same issue as PR 6725.
*** This bug has been marked as a duplicate of bug 6725 ***
--
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.
From bugzilla-daemon at llvm.org Mon Apr 5 22:03:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 5 Apr 2010 22:03:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6725] Analysis/malloc.c fail in release-asserts
In-Reply-To:
References:
Message-ID: <20100406030359.B35402A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6725
Zhongxing Xu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #9 from Zhongxing Xu 2010-04-05 22:03:59 CDT ---
Fixed in r100516. The copy constructor somehow gets elided during inlining.
This only shows up with GCC 4.4.1 Release-Asserts build.
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 02:14:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 02:14:38 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6790] New: segmentation failure in static
initialization
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6790
Summary: segmentation failure in static initialization
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: llvm-g++
AssignedTo: unassignedbugs at nondot.org
ReportedBy: victor.zverovich at googlemail.com
CC: llvmbugs at cs.uiuc.edu
The following test program compiled with llvm-g++ from 2.7 prerelease 1
terminates with a segmentation failure:
#include "llvm/Support/CommandLine.h"
static llvm::cl::opt
printStats("print-stats",
llvm::cl::desc("Print performance metrics and statistics"),
llvm::cl::Hidden);
int main() {}
Call stack:
#0 0x00000000 in ?? ()
#1 0x08054fac in __static_initialization_and_destruction_0 (__initialize_p=1,
__priority=65535) at /usr/local/src/llvm-2.7/lib/Support/Debug.cpp:41
#2 0x0805517e in global constructors keyed to Debug.cpp () at
/usr/local/src/llvm-2.7/lib/Support/Debug.cpp:128
#3 0x08076ae2 in __do_global_ctors_aux ()
#4 0x0807dc94 in _init ()
#5 0x08076999 in __libc_csu_init ()
#6 0x00297af4 in __libc_start_main (main=0x80481d0 , argc=1,
ubp_av=0xbffff514, init=0x8076980 <__libc_csu_init>, fini=0x8076970
<__libc_csu_fini>,
rtld_fini=0x11dd20 <_dl_fini>, stack_end=0xbffff50c) at libc-start.c:179
#7 0x08048161 in _start () at ../sysdeps/i386/elf/start.S:119
The generated bitcode file is attached.
The following command is used to produce an executable:
llvm-g++ -use-gold-plugin test.bc
`/usr/local/src/llvm-2.7/install/debug/bin/llvm-config --ldflags --libs core`
-o test
Versions:
llvm-g++ (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2.7)
llvm version 2.7svn
Optimized build with assertions.
Built Apr 6 2010 (06:51:08).
Host: i386-pc-linux-gnu
Host CPU: yonah
The segmentation failure only occurs when the program uses debug LLVM libraries
(configured with --disable-optimized).
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 02:35:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 02:35:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6791] New: rev 99053 broke string escapes for
scan-build
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6791
Summary: rev 99053 broke string escapes for scan-build
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: uspoerlein at gmail.com
CC: llvmbugs at cs.uiuc.edu
Hi,
preprocessor defines like -DPLATFORM_CONFIG_H=\"config_freebsd.h\" are no
longer passed to the static analyzer correctly. This has been broken in rev
99053. Before, the FreeBSD world sources could be analyzed correctly, now it is
erroring out for lots of the tools, observe:
/data/src/llvm/Release/bin/ccc-analyzer -O2 -pipe
-DPLATFORM_CONFIG_H=\"config_freebsd.h\"
-I/data/obj/data/src/freebsd-head/lib/libarchive -DWITH_OPENSSL -std=gnu99
-fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
-Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
-Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align
-Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs
-Wredundant-decls -Wno-pointer-sign -c
/data/src/freebsd-head/lib/libarchive/archive_check_magic.c
In file included from :111:
:2:28: error: missing terminating '"' character
#define PLATFORM_CONFIG_H \"config_freebsd.h\"
^
In file included from
/data/src/freebsd-head/lib/libarchive/archive_check_magic.c:26:
/data/src/freebsd-head/lib/libarchive/archive_platform.h:46:10: error: expected
"FILENAME" or
#include PLATFORM_CONFIG_H
^
I'm not sure what triggered ddunbar to change this, but it's breaking the
scan-world <-> clang interaction.
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 06:13:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 06:13:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6792] New: fails to build with ICC: multiple def.
of HandleSDNode
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6792
Summary: fails to build with ICC: multiple def. of HandleSDNode
Product: new-bugs
Version: unspecified
Platform: PC
URL: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1926
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
icc-11.1.069 fails to build LLVM 2.7, with lots of errors about HandleSDNode
being multiply defined:
c++/.libs/libclamavcxx.a(AsmPrinter.o): In function
`llvm::HandleSDNode::HandleSDNode(llvm::SDValue)':
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:(.text+0x8b70): multiple definition
of `llvm::HandleSDNode::HandleSDNode(llvm::SDValue)'
c++/.libs/libclamavcxx.a(MachineFunction.o):llvm/lib/CodeGen/MachineFunction.cpp:(.text+0x3720):
first defined here
See ClamAV build log (which builds LLVM as part of its own build):
https://wwws.clamav.net/bugzilla/attachment.cgi?id=1250
HandleSDNode is declared like this:
// FIXME: Remove the "noinline" attribute once is
// fixed.
#ifdef __GNUC__
explicit __attribute__((__noinline__)) HandleSDNode(SDValue X)
#else
explicit HandleSDNode(SDValue X)
#endif
I don't know what the rdar:// is about, but is it related to this icc issue?
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 06:41:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 06:41:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6793] New: clang: better diagnostic for member
function declaration typo
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6793
Summary: clang: better diagnostic for member function
declaration typo
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Testcase:
class A {
int foo();
};
int A::foo();
{
return 4;
}
clang++ outputs:
x.cpp:4:8: error: out-of-line declaration of a member must be a definition
int A::foo();
~~~^
x.cpp:5:1: error: expected unqualified-id
{
^
2 diagnostics generated.
It'd be better if it'd recognize the ';' typo (or rather copy-pasto), and give
a better hint at whats wrong.
It could recognize ';' followed by '{' as a typo.
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 09:12:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 09:12:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6794] New: Assertion failed: ((Result ||
D->isInvalidDecl()) && "declaration was not instantiated in this scope!")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6794
Summary: Assertion failed: ((Result || D->isInvalidDecl()) &&
"declaration was not instantiated in this scope!")
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: ich at az2000.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Assertion failed: ((Result || D->isInvalidDecl()) && "declaration was not
instantiated in this scope!"), function getInstantiationOf, file Sema.h, line
3566.
0 clang 0x00f342fe main + 15916632
1 clang 0x00f34744 main + 15917726
2 libSystem.B.dylib 0x94cbd2bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1798581615
4 libSystem.B.dylib 0x94d3123a raise + 26
5 libSystem.B.dylib 0x94d3d679 abort + 73
6 libSystem.B.dylib 0x94d323db __assert_rtn + 101
7 clang 0x003a5a27 main + 3798401
8 clang 0x0039f621 main + 3772795
9 clang 0x0037166e main + 3584456
10 clang 0x0038b7e8 main + 3691330
11 clang 0x00374868 main + 3597250
12 clang 0x0038821e main + 3677560
13 clang 0x0038d4fd main + 3698775
14 clang 0x003886cd main + 3678759
15 clang 0x0038cf57 main + 3697329
16 clang 0x0038d48b main + 3698661
17 clang 0x00388ee4 main + 3680830
18 clang 0x0038dc46 main + 3700640
19 clang 0x0038873a main + 3678868
20 clang 0x00392ca9 main + 3721219
21 clang 0x00391256 main + 3714480
22 clang 0x00391d13 main + 3717229
23 clang 0x00392228 main + 3718530
24 clang 0x003910a2 main + 3714044
25 clang 0x00374950 main + 3597482
26 clang 0x003a3bf5 main + 3790671
27 clang 0x003a3538 main + 3788946
28 clang 0x003a3d5b main + 3791029
29 clang 0x003a3538 main + 3788946
30 clang 0x003a3d85 main + 3791071
31 clang 0x003a3538 main + 3788946
32 clang 0x00227242 main + 2231708
33 clang 0x005f00e7 main + 6200385
34 clang 0x002254e3 main + 2224189
35 clang 0x0003fdb4 main + 235790
36 clang 0x0003fca4 main + 235518
37 clang 0x00020b25 main + 108159
38 clang 0x00002cbb _mh_execute_header + 7355
39 clang 0x0000658f main + 233
40 clang 0x00001b36 _mh_execute_header + 2870
Stack dump:
0. Program arguments:
/Users/az/Programmierung/CppIDE/llvm-src/Debug/bin/clang -cc1 -triple
i386-apple-darwin9.0.0 -S -disable-free -main-file-name gusgame.cpp -pic-level
1 -mdisable-fp-elim -target-cpu yonah -g -resource-dir
/Users/az/Programmierung/CppIDE/llvm-src/Debug/lib/clang/1.5 -DDEBUG=1
-D_AI_DEBUG -D SYSTEM_DATA_DIR="/usr/share/games"
-I/Users/az/Programmierung/openlierox/./optional-includes/generated
-I/Users/az/Programmierung/openlierox/./include
-I/Users/az/Programmierung/openlierox/./src
-I/Users/az/Programmierung/openlierox/./libs/pstreams -I/usr/include/libxml2
-I/usr/local/include/libxml2
-I/Users/az/Programmierung/openlierox/./libs/breakpad/src
-I/Users/az/Programmierung/openlierox/./libs/hawknl/include
-I/Users/az/Programmierung/openlierox/./libs/libzip
-I/Users/az/Programmierung/openlierox/./libs/lua
-I/Users/az/Programmierung/openlierox/./build/Xcode/include
-I/Users/az/Programmierung/openlierox/./build/Xcode/freealut/include
-I/Library/Frameworks/SDL.framework/Headers
-I/Library/Frameworks/SDL_image.framework/Headers
-I/Library/Frameworks/SDL_mixer.framework/Headers
-I/Library/Frameworks/UnixImageIO.framework/Headers
-I/Library/Frameworks/GD.framework/Headers -F ./build/Xcode
-F/Library/Frameworks -Wall -fmessage-length 102 -pthread -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/P9/P9wWY+Z8HDeOPixVmDZ0J++++TI/-Tmp-/cc-nizA45.s -x c++
/Users/az/Programmierung/openlierox/src/gusanos/gusgame.cpp
1. parser at end of file
2. /Users/az/Programmierung/openlierox/src/gusanos/OlxVariable.h:61:12:
instantiating function definition '__OlxVariable::gusVar'
3. /Users/az/Programmierung/openlierox/src/gusanos/OlxVariable.h:42:12:
instantiating function definition '__OlxVariable::gusVar'
4. /Users/az/Programmierung/openlierox/src/gusanos/OlxVariable.h:48:24:
instantiating function definition '__OlxVariable::gusVar(std::string const &)::GusVarWrapper::invoke'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
make[2]: *** [CMakeFiles/openlierox.dir/src/gusanos/gusgame.o] Error 250
make[1]: *** [CMakeFiles/openlierox.dir/all] Error 2
make: *** [all] Error 2
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 09:14:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 09:14:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6795] New: clang/opt -O2 makes re2c crash on startup
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6795
Summary: clang/opt -O2 makes re2c crash on startup
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4647)
--> (http://llvm.org/bugs/attachment.cgi?id=4647)
bugpoint-passinput
When compiling re2c with clang++ -O2 it crashes on startup like this:
#0 0x00000038ea66ae39 in std::locale::operator=(std::locale const&) () from
/usr/lib/libstdc++.so.6
#1 0x00000038ea66a37f in std::ios_base::_M_init() () from
/usr/lib/libstdc++.so.6
#2 0x00000038ea67b199 in std::basic_ios
>::init(std::basic_streambuf >*) () from /usr/lib/libstdc++.so.6
#3 0x000000000041c349 in re2c::basic_ifstream_lc
>::basic_ifstream_lc() ()
#4 0x000000000041a99a in main () at main.cc:394
To reproduce: compile re2c with clang++ -O2, and run ./re2c foo
Small C++ testcase, crashes on startup with clang++ -O2, but not with clang++
-O1 or -O0:
#include
using namespace std;
typedef unsigned int uint;
template<
class _BaseStream>
class basic_fstream_lc
: public _BaseStream
{
public:
basic_fstream_lc()
{
}
virtual ~basic_fstream_lc()
{
}
uint get_line() const
{
}
protected:
mutable void *mybuf;
};
class basic_ifstream_lc
: public basic_fstream_lc >
{
};
int main()
{
class basic_ifstream_lc source;
}
Program received signal SIGSEGV, Segmentation fault.
0x0000003b3a475989 in *__GI___libc_free (mem=) at
malloc.c:3724
3724 malloc.c: No such file or directory.
in malloc.c
(gdb) bt
#0 0x0000003b3a475989 in *__GI___libc_free (mem=) at
malloc.c:3724
#1 0x00000038ea6694bb in std::ios_base::~ios_base() () from
/usr/lib/libstdc++.so.6
#2 0x0000000000400c82 in main () at foo.cc:30
Attaching bugpoint reduced testcase:
*** Found miscompiling pass: -inline
Emitted bitcode to 'bugpoint-passinput.bc'
*** You can reproduce the problem with: opt bugpoint-passinput.bc -inline
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 11:43:08 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 11:43:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6789] clang shouldn't check for the existence of
files specified as arguments to -Xlinker, -Xassembler, etc.
In-Reply-To:
References:
Message-ID: <20100406164308.7AC3F2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6789
Mark Lacey changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
--- Comment #2 from Mark Lacey 2010-04-06 11:43:08 CDT ---
Yes, you're right. I hadn't realized that the -X options worked this way, but
it makes sense.
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 11:51:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 11:51:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6796] New: Varargs on amd64 generates very strange
code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6796
Summary: Varargs on amd64 generates very strange code
Product: libraries
Version: trunk
Platform: Macintosh
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ed at 80386.nl
CC: llvmbugs at cs.uiuc.edu
The following code generates very different code when using GCC 4.2.1/Clang
SVN. The generated code also makes little sense.
int
foo(int a, ...)
{
int r;
__builtin_va_list va;
__builtin_va_start(va, a);
r = __builtin_va_arg(va, int);
__builtin_va_end(va);
return (r);
}
GCC:
0000000000000000 :
0: 48 83 ec 60 sub $0x60,%rsp
4: 48 8d 44 24 68 lea 0x68(%rsp),%rax
9: 48 89 74 24 b0 mov %rsi,0xffffffffffffffb0(%rsp)
e: c7 44 24 88 10 00 00 movl $0x10,0xffffffffffffff88(%rsp)
15: 00
16: 48 89 44 24 90 mov %rax,0xffffffffffffff90(%rsp)
1b: 48 8d 44 24 a8 lea 0xffffffffffffffa8(%rsp),%rax
20: 48 89 44 24 98 mov %rax,0xffffffffffffff98(%rsp)
25: 48 83 c0 08 add $0x8,%rax
29: 8b 00 mov (%rax),%eax
2b: 48 83 c4 60 add $0x60,%rsp
2f: c3 retq
Clang:
0000000000000000 :
0: 55 push %rbp
1: 48 89 e5 mov %rsp,%rbp
4: 48 83 ec 50 sub $0x50,%rsp
8: 84 c0 test %al,%al
a: 74 26 je 32
c: 0f 29 85 60 ff ff ff movaps %xmm0,0xffffffffffffff60(%rbp)
13: 0f 29 8d 70 ff ff ff movaps %xmm1,0xffffffffffffff70(%rbp)
1a: 0f 29 55 80 movaps %xmm2,0xffffffffffffff80(%rbp)
1e: 0f 29 5d 90 movaps %xmm3,0xffffffffffffff90(%rbp)
22: 0f 29 65 a0 movaps %xmm4,0xffffffffffffffa0(%rbp)
26: 0f 29 6d b0 movaps %xmm5,0xffffffffffffffb0(%rbp)
2a: 0f 29 75 c0 movaps %xmm6,0xffffffffffffffc0(%rbp)
2e: 0f 29 7d d0 movaps %xmm7,0xffffffffffffffd0(%rbp)
32: 4c 89 8d 58 ff ff ff mov %r9,0xffffffffffffff58(%rbp)
39: 4c 89 85 50 ff ff ff mov %r8,0xffffffffffffff50(%rbp)
40: 48 89 8d 48 ff ff ff mov %rcx,0xffffffffffffff48(%rbp)
47: 48 89 95 40 ff ff ff mov %rdx,0xffffffffffffff40(%rbp)
4e: 48 89 b5 38 ff ff ff mov %rsi,0xffffffffffffff38(%rbp)
55: 48 8d 85 30 ff ff ff lea 0xffffffffffffff30(%rbp),%rax
5c: 48 89 45 f8 mov %rax,0xfffffffffffffff8(%rbp)
60: 48 8d 45 10 lea 0x10(%rbp),%rax
64: 48 89 45 f0 mov %rax,0xfffffffffffffff0(%rbp)
68: c7 45 ec 30 00 00 00 movl $0x30,0xffffffffffffffec(%rbp)
6f: c7 45 e8 08 00 00 00 movl $0x8,0xffffffffffffffe8(%rbp)
76: 48 63 45 e8 movslq 0xffffffffffffffe8(%rbp),%rax
7a: 48 83 f8 28 cmp $0x28,%rax
7e: 77 0f ja 8f
80: 48 89 c1 mov %rax,%rcx
83: 48 03 4d f8 add 0xfffffffffffffff8(%rbp),%rcx
87: 83 c0 08 add $0x8,%eax
8a: 89 45 e8 mov %eax,0xffffffffffffffe8(%rbp)
8d: eb 0c jmp 9b
8f: 48 8b 4d f0 mov 0xfffffffffffffff0(%rbp),%rcx
93: 48 8d 41 08 lea 0x8(%rcx),%rax
97: 48 89 45 f0 mov %rax,0xfffffffffffffff0(%rbp)
9b: 8b 01 mov (%rcx),%eax
9d: 48 83 c4 50 add $0x50,%rsp
a1: 5d pop %rbp
a2: c3 retq
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:00:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:00:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2438] compiling gfortran.dg/hollerith.f90 testcase
causes llvm-gfortran compiler to bus-error
In-Reply-To:
References:
Message-ID: <20100406170034.ABE372A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2438
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-04-06 12:00:34 CDT ---
Only need on gfortran bug.
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:00:51 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:00:51 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2439] gfortran.dg/namelist_13.f90 causes malloc
errors in f951
In-Reply-To:
References:
Message-ID: <20100406170051.5F12D2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2439
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #3 from Chris Lattner 2010-04-06 12:00:51 CDT ---
only need one gfortran bug.
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:01:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:01:05 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2440] gfortran.dg/optional_assumed_charlen_1.f90
causes internal compiler error
In-Reply-To:
References:
Message-ID: <20100406170105.A9C772A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2440
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #4 from Chris Lattner 2010-04-06 12:01:05 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:01:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:01:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2441] gfortran.dg/pr21177.f90 causes an internal
compiler error: Bus error
In-Reply-To:
References:
Message-ID: <20100406170116.B7EC42A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2441
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-04-06 12:01:16 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:01:28 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:01:28 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2442] gfortran.dg/specifics_1.f90 testcase compiled
with -ff2c crashes the llvm-gfortran compiler
In-Reply-To:
References:
Message-ID: <20100406170128.40DC22A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2442
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #3 from Chris Lattner 2010-04-06 12:01:27 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:01:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:01:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2430] PR26491 test in
gfortran.dg/actual_array_constructor_1.f90 fails above -O0.
In-Reply-To:
References:
Message-ID: <20100406170156.27F752A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2430
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #1 from Chris Lattner 2010-04-06 12:01:55 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:02:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:02:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2444] gfortran.fortran-torture/execute/nullarg.f90
causes an internal compiler error in llvm-gfortran
In-Reply-To:
References:
Message-ID: <20100406170211.72CFF2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2444
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #7 from Chris Lattner 2010-04-06 12:02:10 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:02:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:02:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2445]
gfortran.fortran-torture/execute/equiv_init_1.f90 fails execution test when
compiled with llvm-gfortran
In-Reply-To:
References:
Message-ID: <20100406170221.9FB832A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2445
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-04-06 12:02:21 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:02:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:02:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2446] gfortran.dg/g77/intrinsic-unix-bessel.f fails
execution tests when compiled with llvm-gfortran
In-Reply-To:
References:
Message-ID: <20100406170230.636972A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2446
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-04-06 12:02:30 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:03:38 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:03:38 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2447] gfortran.dg/g77/980628-9.f fails execution
test when compiled with llvm-gfortran
In-Reply-To:
References:
Message-ID: <20100406170338.BD3712A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2447
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-04-06 12:03:38 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:03:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:03:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2448] gfortran.dg/g77/980628-3.f fails execution
test when compiled with llvm-gfortran.
In-Reply-To:
References:
Message-ID: <20100406170352.0D68E2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2448
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #3 from Chris Lattner 2010-04-06 12:03:51 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:04:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:04:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2449] gfortran.dg/g77/980628-2.f fails execution
test when compiled with llvm-gfortran
In-Reply-To:
References:
Message-ID: <20100406170402.774122A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2449
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-04-06 12:04:02 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:04:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:04:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2450] gfortran.dg/g77/980628-10.f testcase fails
execution test when compiled with llvm-gfortran
In-Reply-To:
References:
Message-ID: <20100406170412.4E33F2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2450
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-04-06 12:04:11 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:04:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:04:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2457] gfortran.dg/assumed_charlen_function_5.f90
has multiple compile failures
In-Reply-To:
References:
Message-ID: <20100406170423.BDD142A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2457
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-04-06 12:04:23 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:04:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:04:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 2458] gfortran.dg/char_transpose_1.f90 fails to
compile under llvm-gfortran
In-Reply-To:
References:
Message-ID: <20100406170433.5EA132A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=2458
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-04-06 12:04:33 CDT ---
only need one gfortran bug
*** This bug has been marked as a duplicate of bug 2431 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 12:49:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 12:49:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6654] llvm-test regressions with 2.7
In-Reply-To:
References:
Message-ID: <20100406174950.714C92A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6654
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #10 from Duncan Sands 2010-04-06 12:49:49 CDT ---
The SingleSource/Regression/C/2004-03-15-IndirectGoto failure is:
lib/ExecutionEngine/JIT/JIT.h:131: virtual void*
llvm::JIT::getPointerToBasicBlock(llvm::BasicBlock*): Assertion `0 && "JIT does
not support address-of-label yet!"' failed
This is a duplicate of PR6744. Since this was the only remaining issue tracked
here, I'm closing this bug.
*** This bug has been marked as a duplicate of bug 6744 ***
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 14:05:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 14:05:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6797] New: Patches to port llvm to Minix 3,
improve portability
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6797
Summary: Patches to port llvm to Minix 3, improve portability
Product: new-bugs
Version: trunk
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: reeuwijk at few.vu.nl
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4649)
--> (http://llvm.org/bugs/attachment.cgi?id=4649)
The patch described above
The attached patch against a recent llvm trunk version adds basic support for
Minix 3 to llvm. It adds Minix as a recognized platform and target to
configure.ac, adds configuration for Minix at a few other places, and honors
HAVE_DLFCN_H in DynamicLibrary.cpp.
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 14:12:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 14:12:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6798] New: missed optimization on byval argument
with memcpy
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6798
Summary: missed optimization on byval argument with memcpy
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: quickslyver at free.fr
CC: llvmbugs at cs.uiuc.edu
in the generated code bellow, I think the memcpy is useless because the
argument of the function f is passed "byval"
------------------------------------------------------------------------------
$ cat bug.c
struct a { int v[500];};
int f(struct a);
void g()
{
struct a x={{0,1,2,3,4,5}};
f(x);
}
-----------------------------------------------------------------------------
$clang bug.c -S -emit-llvm -o - -O3
; ModuleID = 'bug.c'
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
target triple = "i386-pc-linux-gnu"
@g.x = internal constant %struct.a {
[...]
define void @g() nounwind {
entry:
%agg.tmp = alloca %struct.a, align 4 ; <%struct.a*> [#uses=2]
%agg.tmp.04 = bitcast %struct.a* %agg.tmp to i8* ; [#uses=1]
call void @llvm.memcpy.p0i8.p0i8.i32(i8* %agg.tmp.04, i8* bitcast (%struct.a*
@g.x to i8*), i32 2000, i32 4, i1 false)
%call = call i32 @f(%struct.a* byval %agg.tmp) nounwind ; [#uses=0]
ret void
}
declare i32 @f(%struct.a* byval)
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 14:42:22 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 14:42:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6791] rev 99053 broke string escapes for scan-build
In-Reply-To:
References:
Message-ID: <20100406194222.E48CD2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6791
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 14:43:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 14:43:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6771] Quoted -D macros break static analyzer
In-Reply-To:
References:
Message-ID: <20100406194321.14AB12A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6771
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |kremenek at apple.com
Resolution| |FIXED
--- Comment #1 from Ted Kremenek 2010-04-06 14:43:20 CDT ---
Should be now fixed in r100551.
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 15:09:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 15:09:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6792] fails to build with ICC: multiple def. of
HandleSDNode
In-Reply-To:
References:
Message-ID: <20100406200934.2AC0C2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6792
Bill Wendling changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Bill Wendling 2010-04-06 15:09:33 CDT ---
I made the hack more specific with 100556. Please check to see if that fixes
the icc problem.
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 15:30:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 15:30:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6696] ebp wrongly clobbered - causes
SingleSource/Regression/C/casts.c to crash
In-Reply-To:
References:
Message-ID: <20100406203046.513732A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6696
Jim Grosbach changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #29 from Jim Grosbach 2010-04-06 15:30:44 CDT ---
Fixed in r100559.
This brings back some of the old logic, just in a more restricted form to
retain the benefits as much as possible.
I hand-inspected the generated assembly for the testcases here and in 6663 and
verified that EBP is not used as a scratch register for these functions. I also
checked some functions that do not use higher alignment registers and verified
that EBP is still being allocated normally there (the test suite has examples
of this).
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 15:51:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 15:51:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6799] New: clang -O2 emits wrong asm
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6799
Summary: clang -O2 emits wrong asm
Product: clang
Version: unspecified
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
when compiling the attached gcc produces this code:
gcc -S -O2 tree1.c:
getcnode:
.LFB6:
movq %rbx, -24(%rsp)
.LCFI0:
movq %r12, -16(%rsp)
.LCFI1:
movq %rsi, %r12
movq %r13, -8(%rsp)
.LCFI2:
subq $24, %rsp
.LCFI3:
movq %rdi, %r13
call getnode
movl $32, %edi
movq %rax, %rbx
movq %r13, 8(%rax)
movl $47, (%rax)
call tgetblk
movq %rax, 24(%rbx)
movl (%r13), %edx
movq %r12, %rdi
movl %edx, (%rax)
movl 4(%r12), %eax
movq 24(%rbx), %rdx
movl %eax, 4(%rdx)
movq 16(%r12), %rax
movq 24(%rbx), %rdx
movq %rax, 16(%rdx)
movq 24(%r12), %rax (1)
movq %rax, 24(%rdx) (2)
call free
movq %rbx, %rax
movq 8(%rsp), %r12
movq (%rsp), %rbx
movq 16(%rsp), %r13
addq $24, %rsp
ret
while clang -S -O2 tree1.c:
getcnode:
.Leh_func_begin1:
pushq %rbp
.Ltmp0:
movq %rsp, %rbp
.Ltmp1:
pushq %r15
pushq %r14
pushq %rbx
subq $8, %rsp
.Ltmp2:
movq %rsi, %rbx
movq %rdi, %r14
callq getnode
movq %rax, %r15
movl $47, (%r15)
movq %r14, 8(%r15)
movl $32, %edi
callq tgetblk
movq %rax, 24(%r15)
movl (%r14), %ecx
movl %ecx, (%rax)
movq 24(%r15), %rax
movl 4(%rbx), %ecx
movl %ecx, 4(%rax)
movq 24(%r15), %rax
movaps 16(%rbx), %xmm0 (3)
movaps %xmm0, 16(%rax) (4)
movq %rbx, %rdi
callq free
movq %r15, %rax
addq $8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
ret
note that the offset for (1) and (2) is 24 for gcc while 16 for clang at (3)
and (4), this makes "lint" crash
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 16:31:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 16:31:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6616] Warnings building LLVM 2.7
In-Reply-To:
References:
Message-ID: <20100406213103.CD2BD2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6616
David Greene changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #14 from David Greene 2010-04-06 16:31:02 CDT ---
I'm going to resolve this FIXED in the interest of getting the release moving.
No one is assigned to this bug. Please let me know if you disagree.
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 17:43:31 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 17:43:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6800] New: Missing fix-it when operator-> is
applied to a class type
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6800
Summary: Missing fix-it when operator-> is applied to a class
type
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dgregor at apple.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
blackthorn:clang dgregor$ cat t.cpp
struct X { int member; };
int f(X x) {
return x->member;
}
blackthorn:clang dgregor$ clang++ t.cpp
t.cpp:4:11: error: member reference type 'X' is not a pointer
return x->member;
~^
1 diagnostic generated.
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 19:02:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 19:02:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6801] New: sample clang plugin crashes
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6801
Summary: sample clang plugin crashes
Product: clang
Version: trunk
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: zhanyong.wan at gmail.com
CC: llvmbugs at cs.uiuc.edu
Build the PrintFunctionNames sample plugin in
tools/clang/examples/PrintFunctionNames/, then run:
$ clang -cc1 -load path/to/PrintFunctionNames.so -plugin print-fns t.cc
where t.cc has content:
int f() {
return 1;
}
and clang will crash:
Two passes with the same argument (-preverify) attempted to be registered!
UNREACHABLE executed at include/llvm/Support/PassNameParser.h:74!
0 clang 0x00000000012975ce
1 clang 0x00000000012974b5
2 libpthread.so.0 0x00007f9a507e3580
3 libc.so.6 0x00007f9a4ff98da5 gsignal + 53
4 libc.so.6 0x00007f9a4ff9a750 abort + 272
5 clang 0x00000000012bd928
llvm::FoldingSetNodeID::AddPointer(void const*) + 0
6 clang 0x0000000001213bb1
llvm::PassNameParser::passRegistered(llvm::PassInfo const*) + 229
7 clang 0x0000000001211c36 llvm::PassInfo::registerPass() +
140
8 clang 0x0000000000aecde3 llvm::PassInfo::PassInfo(char
const*, char const*, long, llvm::Pass* (*)(), bool, bool) + 145
9 PrintFunctionNames.so 0x00007f9a4ef3b965
10 PrintFunctionNames.so 0x00007f9a4ef3c99a
11 PrintFunctionNames.so 0x00007f9a4ef3cb19
12 PrintFunctionNames.so 0x00007f9a4ef9ae36
Stack dump:
0. Program arguments: clang -cc1 -load path/to/PrintFunctionNames.so -plugin
print-fns t.cc
Aborted
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 19:47:28 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 19:47:28 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6036] clang analyzer crash with signal 8
In-Reply-To:
References:
Message-ID: <20100407004728.4364C2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6036
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Ted Kremenek 2010-04-06 19:47:27 CDT ---
Fixed in r100594.
--
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.
From bugzilla-daemon at llvm.org Tue Apr 6 20:25:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 6 Apr 2010 20:25:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6802] New: ice: Branch should be foldable!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6802
Summary: ice: Branch should be foldable!
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: regehr at cs.utah.edu
CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu
[regehr at gamow tmp400]$ clang -O0 -emit-llvm small.c -c -o small.bc -w
[regehr at gamow tmp400]$ opt -O1 small.bc
WARNING: You're attempting to print out a bitcode file.
This is inadvisable as it may cause display problems. If
you REALLY want to taste LLVM bitcode first-hand, you
can force output with the `-f' option.
opt: SCCP.cpp:1896: virtual bool::IPSCCP::runOnModule(llvm::Module&):
Assertion `BI->isConditional() && isa(BI->getCondition()) &&
"Branch should be foldable!"' failed.
0 opt 0x000000000082f0af
1 opt 0x000000000082fb3a
2 libpthread.so.0 0x00007f1cde88d190
3 libc.so.6 0x00007f1cddb934b5 gsignal + 53
4 libc.so.6 0x00007f1cddb96f50 abort + 384
5 libc.so.6 0x00007f1cddb8c481 __assert_fail + 241
6 opt 0x00000000005735d2
7 opt 0x00000000007c261e
llvm::MPPassManager::runOnModule(llvm::Module&) + 494
8 opt 0x00000000007c2779 llvm::PassManagerImpl::run(llvm::Module&)
+ 137
9 opt 0x00000000004c28bc main + 2428
10 libc.so.6 0x00007f1cddb7eabd __libc_start_main + 253
11 opt 0x00000000004b6b69
Stack dump:
0. Program arguments: opt -O1 small.bc
1. Running pass 'Interprocedural Sparse Conditional Constant Propagation' on
module 'small.bc'.
Aborted
[regehr at gamow tmp400]$ clang -v
clang version 1.5 (trunk 100578)
Target: x86_64-unknown-linux-gnu
Thread model: posix
--
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.
From bugzilla-daemon at llvm.org Wed Apr 7 06:13:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Apr 2010 06:13:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6704] Porting llvm to Minix
In-Reply-To:
References:
Message-ID: <20100407111352.34AB02A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6704
Kees van Reeuwijk changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Kees van Reeuwijk 2010-04-07 06:13:51 CDT ---
Marked as RESOLVED since I've submitted a new patch against trunk.
--
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.
From bugzilla-daemon at llvm.org Wed Apr 7 10:32:31 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Apr 2010 10:32:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6803] New: UNREACHABLE executed at
MachineInstr.cpp:170!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6803
Summary: UNREACHABLE executed at MachineInstr.cpp:170!
Product: libraries
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4654)
--> (http://llvm.org/bugs/attachment.cgi?id=4654)
test case
on amd64 with clang/llvm 100612 I am getting:
pes delta$ clang -c -O2 acpi_hpet.c
.... warnings ....
Unrecognized operand type
UNREACHABLE executed at MachineInstr.cpp:170!
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name acpi_hpet.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.5 -O2
-fmessage-length 152 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-ZXwvTd.s -x c acpi_hpet.c
1. parser at end of file
2. Code generation
3. Running pass 'Control Flow Optimizer' on function '@acpi_hpet_attach'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
pes delta$
this is quite recent (at most 2 weeks?)
--
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.
From bugzilla-daemon at llvm.org Wed Apr 7 13:05:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Apr 2010 13:05:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6803] UNREACHABLE executed at MachineInstr.cpp:170!
In-Reply-To:
References:
Message-ID: <20100407180523.B38E92A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6803
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2010-04-07 13:05:23 CDT ---
Fixed here, thanks:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100405/099387.html
--
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.
From bugzilla-daemon at llvm.org Wed Apr 7 20:02:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 7 Apr 2010 20:02:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 3440] llvm miscompiles
gcc.target/i386/sse4_1-mpsadbw.c
In-Reply-To:
References:
Message-ID: <20100408010212.6DD272A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=3440
Eric Christopher changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Eric Christopher 2010-04-07 20:02:11 CDT ---
Fixed thusly:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100405/099469.html
--
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.
From bugzilla-daemon at llvm.org Thu Apr 8 09:49:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Apr 2010 09:49:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6804] New: alpha+linux(Debain4) BUILD ERROR
[llvm-gcc 2.8svn]
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6804
Summary: alpha+linux(Debain4) BUILD ERROR [llvm-gcc 2.8svn]
Product: new-bugs
Version: trunk
Platform: DEC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: dot618point at gmail.com
CC: llvmbugs at cs.uiuc.edu
/home/zheng/obj/./gcc/xgcc -B/home/zheng/obj/./gcc/
-B/usr/local/alphaev6-unknown-linux-gnu/bin/
-B/usr/local/alphaev6-unknown-linux-gnu/lib/ -isystem
/usr/local/alphaev6-unknown-linux-gnu/include -isystem
/usr/local/alphaev6-unknown-linux-gnu/sys-include -O2 -O2 -g -O2 -mieee
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -mieee -g -DHAVE_GTHR_DEFAULT
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../llvm-gcc/gcc
-I../../llvm-gcc/gcc/. -I../../llvm-gcc/gcc/../include
-I../../llvm-gcc/gcc/../libcpp/include -I../../llvm-gcc/gcc/../libdecnumber
-I../libdecnumber -I/usr/local/include -DL_muldi3 -fvisibility=hidden
-DHIDE_EXPORTS -c ../../llvm-gcc/gcc/libgcc2.c -o libgcc/./_muldi3.o
cc1: /home/zheng/llvm/lib/VMCore/Instructions.cpp:1762: static
llvm::BinaryOperator*
llvm::BinaryOperator::Create(llvm::Instruction::BinaryOps, llvm::Value*,
llvm::Value*, const llvm::Twine&, llvm::Instruction*): Assertion `S1->getType()
== S2->getType() && "Cannot create binary operator with two operands of
differing type!"' failed.
../../llvm-gcc/gcc/libgcc2.c: In function ?__multi3?:
../../llvm-gcc/gcc/libgcc2.c:567: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
--
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.
From bugzilla-daemon at llvm.org Thu Apr 8 10:31:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Apr 2010 10:31:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6805] New: -fcatch-undefined-behavior crashes with
signal 6, "LLVM IR generation of compound statement"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6805
Summary: -fcatch-undefined-behavior crashes with signal 6,
"LLVM IR generation of compound statement"
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: magnus.reftel at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4657)
--> (http://llvm.org/bugs/attachment.cgi?id=4657)
Minimized test case
I have a small test case (attached) that fails with the below error message
when building with -fcatch-undefined-behavior, but succeeds without it. I'm
using revision 100754 on cygwin.
/opt/llvm-r100754/bin/clang -fcatch-undefined-behavior -v -c testcase.c
clang version 1.5 (trunk 100754)
Target: i386-pc-cygwin
Thread model: posix
"/opt/llvm-r100754/bin/clang" -cc1 -triple i386-pc-cygwin -S -disable-free
-main-file-name testcase.c -mrelocation-model static -mdisable-fp-elim
-mconstructor-aliases -target-cpu pentium4 -v -resource-dir
/opt/llvm-r100754/lib/clang/1.5 -ferror-limit 19 -fmessage-length 80
-fcatch-undefined-behavior -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /c/DOCUME~1/qrefmag/LOCALS~1/Temp/cc-T9hI02.s -x c
testcase.c
clang -cc1 version 1.5 based upon llvm 2.8svn hosted on i386-pc-cygwin
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/llvm-r100754/lib/clang/1.5/include
/usr/include
End of search list.
assertion "(i >= FTy->getNumParams() || FTy->getParamType(i) ==
Params[i]->getType()) && "Calling a function with a bad signature!"" failed:
file "Instructions.cpp", line 324, function: void
llvm::CallInst::init(llvm::Value*, llvm::Value* const*, unsigned int)
Stack dump:
0. Program arguments: /opt/llvm-r100754/bin/clang -cc1 -triple
i386-pc-cygwin -S -disable-free -main-file-name testcase.c -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -v
-resource-dir /opt/llvm-r100754/lib/clang/1.5 -ferror-limit 19 -fmessage-length
80 -fcatch-undefined-behavior -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /c/DOCUME~1/qrefmag/LOCALS~1/Temp/cc-T9hI02.s -x c
testcase.c
1. parser at end of file
2. testcase.c:6:6: LLVM IR generation of declaration 'foo'
3. testcase.c:6:6: Generating code for declaration 'foo'
4. testcase.c:7:1: LLVM IR generation of compound statement ('{}')
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)
--
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.
From bugzilla-daemon at llvm.org Thu Apr 8 15:26:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 8 Apr 2010 15:26:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6752] Assert when compiling - "Access specifier is
AS_none inside a record decl"
In-Reply-To:
References:
Message-ID: <20100408202616.66E372A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6752
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rjmccall at apple.com
Resolution| |FIXED
--- Comment #3 from John McCall 2010-04-08 15:26:15 CDT ---
Fixed in r100806.
--
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.
From bugzilla-daemon at llvm.org Fri Apr 9 06:40:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 9 Apr 2010 06:40:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6806] New: Codegen regression "Instruction does not
dominate all uses!"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=6806
Summary: Codegen regression "Instruction does not dominate all
uses!"
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4659)
--> (http://llvm.org/bugs/attachment.cgi?id=4659)
testcase .ll
The dragonegg self-host build broke recently, due to this recent regression
(occurs while building SelectionDAGBuilder). Here's the bugpoint reduced
testcase:
$ llc domcrash.bc
Instruction does not dominate all uses!
%uglygep78 = bitcast i8* %uglygep7 to %"struct CaseBits&" ; <%"struct
CaseBits&"> [#uses=1]
%1 = bitcast %"struct CaseBits&" %uglygep78 to i8* ; [#uses=2]
Instruction does not dominate all uses!
%1 = bitcast %"struct CaseBits&" %uglygep78 to i8* ; [#uses=2]
%uglygep4 = getelementptr i8* %1, i64 16 ; [#uses=1]
Instruction does not dominate all uses!
%uglygep4 = getelementptr i8* %1, i64 16 ; [#uses=1]
%uglygep45 = bitcast i8* %uglygep4 to %"struct CaseBits&" ; <%"struct
CaseBits&"> [#uses=1]
Instruction does not dominate all uses!
%uglygep45 = bitcast i8* %uglygep4 to %"struct CaseBits&" ; <%"struct
CaseBits&"> [#uses=1]
%uglygep456 = bitcast %"struct CaseBits&" %uglygep45 to i8* ; [#uses=1]
Instruction does not dominate all uses!
%uglygep456 = bitcast %"struct CaseBits&" %uglygep45 to i8* ; [#uses=1]
%uglygep7 = getelementptr i8* %uglygep456, i64 -16 ; [#uses=1]
Instruction does not dominate all uses!
%uglygep7 = getelementptr i8* %uglygep456, i64 -16 ; [#uses=1]
%uglygep78 = bitcast i8* %uglygep7 to %"struct CaseBits&" ; <%"struct
CaseBits&"> [#uses=1]
Instruction does not dominate all uses!
%1 = bitcast %"struct CaseBits&" %uglygep78 to i8* ; [#uses=2]
%uglygep = getelementptr i8* %1, i64 16 ; [#uses=1]
Instruction does not dominate all uses!
%uglygep = getelementptr i8* %1, i64 16 ; [#uses=1]
%scevgep2 = getelementptr i8* %uglygep, i64 %lsr.iv ; [#uses=1]
Instruction does not dominate all uses!
%scevgep2 = getelementptr i8* %uglygep, i64 %lsr.iv ;