From bugzilla-daemon at llvm.org Tue Jun 1 01:49:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Jun 2010 01:49:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7274] New: Clang gives errors that gcc doesn't when
compiling output of slice2cpp
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7274
Summary: Clang gives errors that gcc doesn't when compiling
output of slice2cpp
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rspencer at reidspencer.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The Internet Communication Engine (http://www.zeroc.com) has a tool named
slice2cpp. It translates IDL into C++. The output of that tool does not
compile with clang. It would be good if it did :)
Attachments to follow.
--
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 Jun 1 06:48:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Jun 2010 06:48:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7275] New: Clang @encode not implemented assertion
fails when compiling Obj-C method with C++ instance pointer argument
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7275
Summary: Clang @encode not implemented assertion fails when
compiling Obj-C method with C++ instance pointer
argument
Product: new-bugs
Version: 2.7
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: denis.defreyne at stoneship.org
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4959)
--> (http://llvm.org/bugs/attachment.cgi?id=4959)
Test case + instructions on compiling + error message
clang exits with an assertion failure when compiling an Objective-C class with
a method that takes a pointer to a C++ instance:
?Assertion failed: (0 && "@encode for type not implemented!"), function
getObjCEncodingForTypeImpl, file ASTContext.cpp, line 3874.?
See the attachment for a test case, along with instructions on how to reproduce
as well as the full error message that I am getting.
--
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 Jun 1 10:17:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Jun 2010 10:17:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7276] New: C++ programs compiled with clang++ fail
to link on cygwin
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7276
Summary: C++ programs compiled with clang++ fail to link on
cygwin
Product: clang
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: eric at boostpro.com
CC: llvmbugs at cs.uiuc.edu
stock install of cygwin. clang++ built from trunk (5/31/2010).
Eric at AERIX ~
$ cat test.cpp
#include
int main()
{
std::cout << "hello clang\n";
}
Eric at AERIX ~
$ clang test.cpp
/cygdrive/c/Users/Eric/AppData/Local/Temp/cc-lHUHtT.o:fake:(.text+0x1f):
undefined reference to `___dso_handle'
/cygdrive/c/Users/Eric/AppData/Local/Temp/cc-lHUHtT.o:fake:(.text+0x32):
undefined reference to `___cxa_atexit'
collect2: ld returned 1 exit status
clang: error: linker (via gcc) command failed with exit code 1 (use -v to see
invocation)
If I take out the #include and the write to std::cout, it compiles and links
OK.
--
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 Jun 1 12:48:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Jun 2010 12:48:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7275] Clang @encode not implemented assertion fails
when compiling Obj-C method with C++ instance pointer argument
In-Reply-To:
References:
Message-ID: <20100601174814.93F1C3128034@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7275
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from John McCall 2010-06-01 12:48:14 CDT ---
Several problems with @encoding C++ types were fixed post-release, and I can't
duplicate on ToT. Please verify there.
--
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 Jun 1 15:26:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Jun 2010 15:26:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7277] New: Scheduler cannot issue multiple
instructions per cycle
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7277
Summary: Scheduler cannot issue multiple instructions per cycle
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Consider the following LLVM IR:
target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:64-n32"
target triple = "armv7-eabi"
@foo = common global i32* null, align 4 ; [#uses=1]
@bar = common global i32* null, align 4 ; [#uses=1]
define arm_aapcscc void @aaa() nounwind {
entry:
%tmp = load i32** @foo ; [#uses=1]
%tmp1 = load i32** @bar ; [#uses=1]
call arm_aapcscc void @baz(i32* %tmp, i32* %tmp1)
ret void
}
declare arm_aapcscc void @baz(i32*, i32*)
llc -mcpu=cortex-a8 currently codegens this into (interesting part is shown):
movw r0, :lower16:foo
movt r0, :upper16:foo (*)
movw r1, :lower16:bar (*)
movt r1, :upper16:bar
The running time of the code is 3 cycles at minimum since only (*) instructions
can be issued in parallel.
ARM can issue 2 instructions per cycle, thus the optimal code here is:
movw r0, :lower16:foo
movw r1, :lower16:bar
movt r0, :upper16:foo
movt r1, :upper16:bar
Up to 2 cycles can be saved here. Note that the pipeline description is
properly written for Cortex A8/A9 (and there is an indication of 2 functional
units available), so, this is definitely a scheduler deficiency.
--
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 Jun 1 23:05:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 1 Jun 2010 23:05:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7279] New: GVN emits expensive BitCast
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7279
Summary: GVN emits expensive BitCast
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: geek4civic at gmail.com
CC: llvmbugs at cs.uiuc.edu, geek4civic at gmail.com
; ---- a testcase
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"
target triple = "i386-mingw32"
define void @xg(i8* %p, i8* %q) nounwind {
entry:
%0 = bitcast i8* %p to double*
%1 = load double* %0, align 8
%2 = bitcast i8* %q to double*
%3 = load double* %2, align 8
%4 = fcmp olt double %1, %3
br i1 %4, label %return, label %bb
bb:
%5 = load i8* %p, align 1
%6 = load i8* %q, align 1
store i8 %6, i8* %p, align 1
store i8 %5, i8* %q, align 1
%7 = getelementptr inbounds i8* %p, i32 1
%8 = load i8* %7, align 1
%9 = getelementptr inbounds i8* %q, i32 1
%10 = load i8* %9, align 1
%11 = getelementptr inbounds i8* %p, i32 1
store i8 %10, i8* %11, align 1
%12 = getelementptr inbounds i8* %q, i32 1
store i8 %8, i8* %12, align 1
ret void
return:
ret void
}
---- after -gvn
define void @xg(i8* %p, i8* %q) nounwind {
entry:
%0 = bitcast i8* %p to double*
%1 = load double* %0, align 8
%2 = bitcast i8* %q to double*
%3 = load double* %2, align 8
%4 = fcmp olt double %1, %3
%tmp = bitcast double %1 to i64 ;!!!
%tmp1 = trunc i64 %tmp to i8
%tmp2 = bitcast double %3 to i64 ;!!!
%tmp3 = trunc i64 %tmp2 to i8
br i1 %4, label %return, label %bb
bb:
store i8 %tmp3, i8* %p, align 1
store i8 %tmp1, i8* %q, align 1
%5 = getelementptr inbounds i8* %p, i32 1
%6 = load i8* %5, align 1
%7 = getelementptr inbounds i8* %q, i32 1
%8 = load i8* %7, align 1
store i8 %8, i8* %5, align 1
store i8 %6, i8* %7, align 1
ret void
return:
ret void
}
---- llc-generated code
_xg: # @xg
# BB#0: # %entry
subl $20, %esp
movl 24(%esp), %eax
movsd (%eax), %xmm0
movsd %xmm0, 8(%esp) ;!!!
movl 28(%esp), %ecx
movsd (%ecx), %xmm1
movsd %xmm1, (%esp) ;!!!
ucomisd %xmm0, %xmm1
ja LBB0_2
# BB#1: # %bb
movb (%esp), %dl ;...
movb 8(%esp), %dh ;...
movb %dl, (%eax)
movb %dh, (%ecx)
movb 1(%eax), %dl
movb 1(%ecx), %dh
movb %dh, 1(%eax)
movb %dl, 1(%ecx)
LBB0_2: # %return
addl $20, %esp
ret
----
BitCast double to i64 would be expensive.
(Core2 and Nehalem could do efficiently with movd xmm to gpr)
--
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 Jun 2 02:46:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Jun 2010 02:46:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7280] New: Clang emits warning instead of error for
non-void return without value
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7280
Summary: Clang emits warning instead of error for non-void
return without value
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rjmccall at apple.com
CC: llvmbugs at cs.uiuc.edu
int test1() {
return;
}
daysthatwere:clang rjmccall$ clang /tmp/red.c
/tmp/red.c:2:3: warning: non-void function 'test1' should return a value
[-Wreturn-type]
return;
^
This should really be a hard error. I would change this in a heartbeat, but
I'm not sure what motivated us to implement it as a warning in the first place.
--
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 Jun 2 03:27:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Jun 2010 03:27:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7281] New: Clang aborts with "Sema doesn't consider
destructor as used" assertion.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7281
Summary: Clang aborts with "Sema doesn't consider destructor as
used" assertion.
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: rspencer at reidspencer.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4962)
--> (http://llvm.org/bugs/attachment.cgi?id=4962)
Pre-processed input that produces the assertion failure
While compiling Ice 3.4.0 (http://www.zeroc.com), clang generated an assertion
failure. This is on Linux (Ubuntu karmic) with this version of clang:
reid at venidici01:/proj/ice/Ice-3.4.0/cpp$ /proj/install/bin/clang --version
clang version 2.0 (trunk 105315)
Target: i386-pc-linux-gnu
Thread model: posix
The error produced is:
clang: /proj/llvm-top/llvm/tools/clang/lib/CodeGen/CodeGenModule.cpp:831:
llvm::Constant*
clang::CodeGen::CodeGenModule::GetOrCreateLLVMFunction(llvm::StringRef, const
llvm::Type*, clang::CodeGen::GlobalDecl): Assertion `DD->isUsed() && "Sema
doesn't consider destructor as used."' failed.
Stack dump:
0. Program arguments: /proj/install/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name CtrlCHandler.cpp -pic-level
2 -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -g -resource-dir
/proj/install/lib/clang/2.0 -DICE_UTIL_API_EXPORTS -D_REENTRANT -I../../include
-I.. -Wall -ferror-limit 19 -fmessage-length 180 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-HoPeu7.s -x c++
CtrlCHandler.cpp
1. CtrlCHandler.cpp:78:1: current parser token 'void'
2. CtrlCHandler.cpp:73:24: LLVM IR generation of declaration
'IceUtil::CtrlCHandlerException::ice_throw'
3. CtrlCHandler.cpp:73:24: Generating code for declaration
'IceUtil::CtrlCHandlerException::ice_throw'
4. CtrlCHandler.cpp:74:1: LLVM IR generation of compound statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
The attached file is the pre-processed input.
--
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 Jun 2 07:38:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Jun 2010 07:38:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7282] New: C++ nested template bug
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7282
Summary: C++ nested template bug
Product: clang
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: release blocker
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: antoinep92 at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4963)
--> (http://llvm.org/bugs/attachment.cgi?id=4963)
Minimal fail case
Clang is unable to perform argument matching for function call inside nested
template methods.
*** Minimal code demonstrating the problem (see main.cpp attached):
template struct T {};
template struct A {
template struct B {
template static void f(T*) {
std::cout << i;
}
};
};
*** Clang output:
main.cpp:14:2: error: no matching function for call to 'f'
A::B::f((T<1>*)0);
^~~~~~~~~~~~~~~~~~
main.cpp:6:31: note: candidate template ignored: failed template argument
deduction
template static void f(T*) {
*** Comments:
- If class A or B is made non-template it compiles.
- The code compiles with llvm-gcc (ie gcc 4.2), gcc 4.4 and msvc
- I'm pretty sure the code is standard compilant, but don't have proof.
- The minimal code doesn't make much sense, but I created it by reducing a 2k+
line file to pinpoint the 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 Wed Jun 2 10:57:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Jun 2010 10:57:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7282] C++ nested template bug
In-Reply-To:
References:
Message-ID: <20100602155750.17ECA3128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7282
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Chris Lattner 2010-06-02 10:57:49 CDT ---
This works on mainline, 2.7 is really old by now.
--
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 Jun 2 10:58:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Jun 2010 10:58:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7284] New: interpreter zeroes non-integer return
values
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7284
Summary: interpreter zeroes non-integer return values
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Interpreter
AssignedTo: unassignedbugs at nondot.org
ReportedBy: power at cs.nyu.edu
CC: llvmbugs at cs.uiuc.edu
The current interpreter code silently zeroes out the return value for any
non-integer return types. This can be a bit frustrating, as it's easier to
debug in the interpreter if code isn't crashing.
Would it be possible to change Execution.cpp:594 from
- if (RetTy && RetTy->isIntegerTy()) { // Nonvoid return type?
to something like this:
+ if (RetTy && !RetTy->isVoidTy()) {
or, if there are other issues with non-integer types, at least emit a warning
that the return has been ignored?
--
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 Jun 2 11:47:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Jun 2010 11:47:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7285] New: Use of 'const ... *p' pointing to
non-const; possible invalid "undefined" warning ?
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7285
Summary: Use of 'const ... *p' pointing to non-const; possible
invalid "undefined" warning ?
Product: clang
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: wmeier at newsguy.com
CC: llvmbugs at cs.uiuc.edu
clang.i686 2.7-1.fc13
@anaconda-InstallationRepo-201005130056.i386
llvm.i686 2.7-1.fc13
@anaconda-InstallationRepo-201005130056.i386
clang version 1.1 (branches/release_27)
Running on Fedora 13 x86
-------
Test Program:
void foo(int k) {
}
typedef struct {
int t;
} addr;
void zil(void) {
int i;
const int *addri_p;
addr src;
const addr *addr_p;
src.t = 1;
addr_p = &src;
foo(addr_p->t);
i = 1;
addri_p = &i;
foo(*addri_p);
}
Result from scan-build
$ scan-build gcc -c foo.c
scan-build: 'clang' executable not found in
'/usr/lib/clang-analyzer/scan-build/bin'.
scan-build: Using 'clang' from path: /usr/bin/clang
ANALYZE: foo.c foo
ANALYZE: foo.c zil
foo.c:18:5: warning: Pass-by-value argument in function call is undefined
foo(addr_p->t);
^ ~~~~~~~~~
1 diagnostic generated.
scan-build: 1 bugs found.
======
Notes:
1. If the 'const' is removed from 'const addr *addr_p;' then there's no
warning.
2. The above warning seems invalid in that the usage of const in this case
seems valid. . However, I'm certainly not a C language lawyer so the usage may
actually not be valid.
3. FWIW: There's no warning for what seems to me to be a similar usage of const
but w/o using a struct ('const int *addri_p;' and etc).
--
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 Jun 2 16:22:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Jun 2010 16:22:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7241] Missing definitions causes clang++ to crash
In-Reply-To:
References:
Message-ID: <20100602212223.A6A793128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7241
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rjmccall at apple.com
Resolution| |FIXED
--- Comment #1 from John McCall 2010-06-02 16:22:22 CDT ---
Fixed in r105345.
--
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 Jun 2 16:30:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Jun 2010 16:30:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7286] New: Missing
-analyzer-check-objc-missing-dealloc also skips leaked ivars
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7286
Summary: Missing -analyzer-check-objc-missing-dealloc also
skips leaked ivars
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: kevin at sb.org
CC: llvmbugs at cs.uiuc.edu
When scan-build is run without the -analyzer-check-objc-missing-dealloc flag,
the static analyzer also fails to report ivars that should have been released
in -dealloc and were not. My expectation of this flag is that it only warns me
when I'm missing the -dealloc method in its entirety, but has no effect on
warning me when I fail to release an ivar in -dealloc. In practice, the lack of
this flag seems to make the static analyzer completely ignore the -dealloc
method and therefore fail to warn me when I'm leaking an ivar.
--
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 Jun 2 22:19:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 2 Jun 2010 22:19:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7287] New: Analyzer/C++ Crash: "Name is not a
simple identifier" for implicit operator= with array elements
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7287
Summary: Analyzer/C++ Crash: "Name is not a simple identifier"
for implicit operator= with array elements
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: jediknil at belkadan.com
CC: llvmbugs at cs.uiuc.edu
The following C++ code causes the analyzer to crash:
// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks
-analyzer-check-objc-mem -analyzer-experimental-checks -verify %s
struct test { int a[2]; };
void t2() {
test p = {{1,2}};
test q;
q = p;
}
---
Assertion failed: (Name.isIdentifier() && "Name is not a simple identifier"),
function getName, file
/Users/jordy/programming/llvm/tools/clang/lib/Sema/../../include/clang/AST/Decl.h,
line 115.
0 clang 0x0000000101010740 PrintStackTrace(void*) + 38
1 clang 0x0000000101010c4e SignalHandler(int) + 254
2 libSystem.B.dylib 0x00007fff8451780a _sigtramp + 26
3 libSystem.B.dylib 0x00007fff844bc50a tiny_malloc_from_free_list + 1196
4 libSystem.B.dylib 0x00007fff84592ef0 __pthread_markcancel + 0
5 clang 0x0000000100351e66 clang::NamedDecl::getName() const + 82
6 clang 0x00000001004c3581 (anonymous
namespace)::PthreadLockChecker::PostVisitCallExpr(clang::CheckerContext&,
clang::CallExpr const*) + 135
7 clang 0x00000001004c3773 clang::CheckerVisitor<(anonymous
namespace)::PthreadLockChecker>::PostVisitCXXOperatorCallExpr(clang::CheckerContext&,
clang::CXXOperatorCallExpr const*) + 37
8 clang 0x00000001004c3920 clang::CheckerVisitor<(anonymous
namespace)::PthreadLockChecker>::PostVisit(clang::CheckerContext&, clang::Stmt
const*) + 426
9 clang 0x00000001004c395d clang::CheckerVisitor<(anonymous
namespace)::PthreadLockChecker>::_PostVisit(clang::CheckerContext&, clang::Stmt
const*) + 37
10 clang 0x00000001004a2491
clang::Checker::GR_Visit(clang::ExplodedNodeSet&, clang::GRStmtNodeBuilder&,
clang::GRExprEngine&, clang::Stmt const*, clang::ExplodedNode*, void*, bool) +
261
11 clang 0x0000000100488fb8
clang::GRExprEngine::CheckerVisit(clang::Stmt*, clang::ExplodedNodeSet&,
clang::ExplodedNodeSet&, bool) + 444
12 clang 0x0000000100493507
clang::GRExprEngine::VisitCall(clang::CallExpr*, clang::ExplodedNode*,
clang::ExprIterator, clang::ExprIterator, clang::ExplodedNodeSet&, bool) + 2041
--
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 Jun 3 01:06:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 01:06:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7288] New: Fixit for missing & before
member-pointer expression
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7288
Summary: Fixit for missing & before member-pointer expression
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jyasskin at google.com
CC: chandlerc at gmail.com, llvmbugs at cs.uiuc.edu,
dgregor at apple.com
$ cat test.cc
struct Foo {
int square(int i);
};
void TakeMemberPointer(Foo&, int(Foo::*)(int));
void Use() {
Foo f;
TakeMemberPointer(f, Foo::square);
}
$ clang++ -fsyntax-only test.cc
test.cc:9:29: error: call to non-static member function without an object
argument
TakeMemberPointer(f, Foo::square);
~~~~~^~~~~~
1 error generated.
$
Instead of assuming that's going to be a call, clang should recognize that it's
intended to be a member-function-pointer expression and give a fixit to add the
'&'.
--
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 Jun 3 01:34:42 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 01:34:42 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7289] New: Shouldn't stuff template parameter
assignments in middle of error message
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7289
Summary: Shouldn't stuff template parameter assignments in
middle of error message
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jyasskin at google.com
CC: chandlerc at gmail.com, llvmbugs at cs.uiuc.edu,
dgregor at apple.com
$ cat test.cc
#include
#include
using std::map;
using std::string;
class Closure;
template struct id { typedef T type; };
template
Closure* NewCallback(Class* object,
void (Class::*method)(Arg1, Arg2, Arg3, Arg4),
typename id::type,
typename id::type,
typename id::type,
typename id::type);
struct Foo {
void Method(map, map, map, map);
};
void Use() {
Foo f;
NewCallback(&f, &Foo::Method,
map(),
map(),
map(),
map());
}
$ clang++ -fsyntax-only test.cc
test.cc:22:3: error: no matching function for call to 'NewCallback'
NewCallback(&f, &Foo::Method,
^~~~~~~~~~~
test.cc:9:10: note: candidate function [with Class = Foo, Arg1 =
std::map, std::basic_string,
std::less >,
std::allocator const,
std::basic_string > > >, Arg2 = std::map,
int, std::less >,
std::allocator const, int> > >, Arg3 =
std::map, std::less, std::allocator > > >, Arg4 = std::map,
std::allocator > >] not viable: no known
conversion from 'map' to 'typename
id, int, less >,
allocator const, int> > > >::type' (aka
'std::map, int,
std::less >,
std::allocator const, int> > >') for 4th
argument
Closure* NewCallback(Class* object,
^
1 error generated.
$
That message would be nearly readable if not for the [with Class = Foo, Arg1 =
...] junk in the middle of the useful part. I suspect the template argument
assignments should get their own line between the error message and the source
code quote.
--
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 Jun 3 01:45:49 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 01:45:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7290] New: Sometimes the 'aka' type is better than
the user's typedef.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7290
Summary: Sometimes the 'aka' type is better than the user's
typedef.
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jyasskin at google.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
For example:
$ cat test.cc
template struct identity { typedef T type; };
template
T max(T lhs, typename identity::type rhs);
void Use() {
max(3, "Oops");
}
$ ./clang++ -fsyntax-only test.cc
test.cc:6:3: error: no matching function for call to 'max'
max(3, "Oops");
^~~
test.cc:3:3: note: candidate function [with T = int] not viable: no known
conversion from 'char const [5]' to 'typename identity::type' (aka 'int')
for 2nd argument
T max(T lhs, typename identity::type rhs);
^
1 error generated.
$
We might guess this based on the 'aka' type being shorter, but that won't
always be right. I suspect it'll be useful to have an attribute to let the user
tell clang which type to present.
--
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 Jun 3 07:14:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 07:14:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7262] SIGSEGV during compilation of protobuf
In-Reply-To:
References:
Message-ID: <20100603121432.6FC9C3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7262
Benjamin Kramer changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |benny.kra at gmail.com
Resolution| |WORKSFORME
--- Comment #1 from Benjamin Kramer 2010-06-03 07:14:31 CDT ---
I can't reproduce with clang trunk. Please try to compile it with trunk and
reopen if it still crashes.
--
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 Jun 3 07:20:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 07:20:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7291] New: crash on initializer containing an
assignment
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7291
Summary: crash on initializer containing an assignment
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: benny.kra at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
reduced from mysql-5.0.90
$ cat t.cc
struct Foo {
unsigned file_id;
Foo(unsigned arg);
};
Foo::Foo(unsigned arg) : file_id(arg = 42)
{ }
$ clang t.cc
Stack dump:
0. Program arguments: /Users/d0k/Desktop/build/llvm/Debug/bin/clang -cc1
-triple x86_64-apple-darwin10.0.0 -emit-obj -mrelax-all -disable-free
-main-file-name t.cc -pic-level 1 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core2 -resource-dir
/Users/d0k/Desktop/build/llvm/Debug/lib/clang/2.0 -ferror-limit 19
-fmessage-length 110 -stack-protector 1 -fblocks -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o
/var/folders/OV/OVTXSzUoG4ui5ZOmbcD2uE+++TI/-Tmp-/cc-Rxt6vI.o -x c++ t.cc
1. parser at end of file
2. t.cc:7:6: LLVM IR generation of declaration 'Foo::Foo'
3. t.cc:7:6: Generating code for declaration 'Foo::Foo'
clang: error: clang frontend command failed due to signal 11 (use -v to see
invocation)
$ clang --version
clang version 2.0 (trunk 105388)
stack trace:
#0 0x0000000101b079c8 in llvm::PATypeHolder::get (this=0x10) at Type.h:507
#1 0x0000000101c0117b in llvm::PATypeHolder::operator-> (this=0x10) at
AbstractTypeUser.h:162
#2 0x0000000101f1cc61 in llvm::Value::getContext (this=0x0) at Value.cpp:377
#3 0x0000000101ed58a2 in llvm::StoreInst::StoreInst (this=0x10461c920,
val=0x0, addr=0x10461c798, isVolatile=false, InsertBefore=0x0) at
Instructions.cpp:1079
#4 0x00000001001bb5f7 in llvm::IRBuilder >::CreateStore (this=0x7fff5fbfc590,
Val=0x0, Ptr=0x10461c798, isVolatile=false) at IRBuilder.h:610
#5 0x00000001001700b8 in clang::CodeGen::CodeGenFunction::EmitStoreOfScalar
(this=0x7fff5fbfc4c0, Value=0x0, Addr=0x10461c798, Volatile=false, Ty={Value =
{Value = 4368446768}}) at CGExpr.cpp:671
#6 0x00000001001721d3 in
clang::CodeGen::CodeGenFunction::EmitStoreThroughLValue (this=0x7fff5fbfc4c0,
Src={V1 = {Value = 0}, V2 = {Value = 0}}, Dst={LVType =
clang::CodeGen::LValue::Simple, V = 0x10461c798, {VectorIdx = 0x7fff5fbfbe70,
VectorElts = 0x7fff5fbfbe70, BitFieldInfo = 0x7fff5fbfbe70, PropertyRefExpr =
0x7fff5fbfbe70, KVCRefExpr = 0x7fff5fbfbe70}, Quals = {Mask = 0, static
GCAttrMask = 24, static GCAttrShift = 3, static AddressSpaceMask = 4294967264,
static AddressSpaceShift = 5}, Ivar = false, ObjIsArray = false, NonGC = false,
GlobalObjCRef = false, BaseIvarExp = 0x0}, Ty={Value = {Value = 4368446768}})
at CGExpr.cpp:906
#7 0x0000000100151a3c in EmitMemberInitializer (CGF=@0x7fff5fbfc4c0,
ClassDecl=0x10461a110, MemberInit=0x10461ac40, Constructor=0x10461aa10,
Args=@0x7fff5fbfc260) at CGClass.cpp:471
#8 0x0000000100154610 in clang::CodeGen::CodeGenFunction::EmitCtorPrologue
(this=0x7fff5fbfc4c0, CD=0x10461aa10, CtorType=clang::Ctor_Base,
Args=@0x7fff5fbfc260) at CGClass.cpp:667
#9 0x0000000100154754 in clang::CodeGen::CodeGenFunction::EmitConstructorBody
(this=0x7fff5fbfc4c0, Args=@0x7fff5fbfc260) at CGClass.cpp:620
#10 0x000000010020bbdf in clang::CodeGen::CodeGenFunction::GenerateCode
(this=0x7fff5fbfc4c0, GD={Value = {Value = 4368476689}}, Fn=0x10461bce0) at
CodeGenFunction.cpp:306
#11 0x000000010014895b in clang::CodeGen::CodeGenModule::EmitCXXConstructor
(this=0x10483c400, D=0x10461aa10, Type=clang::Ctor_Base) at CGCXX.cpp:212
#12 0x0000000100216912 in clang::CodeGen::CodeGenModule::EmitGlobalDefinition
(this=0x10483c400, GD={Value = {Value = 4368476689}}) at CodeGenModule.cpp:743
#13 0x0000000100216ae9 in clang::CodeGen::CodeGenModule::EmitGlobal
(this=0x10483c400, GD={Value = {Value = 4368476689}}) at CodeGenModule.cpp:713
#14 0x00000001001481f4 in clang::CodeGen::CodeGenModule::EmitCXXConstructors
(this=0x10483c400, D=0x10461aa10) at CGCXX.cpp:196
#15 0x0000000100216e45 in clang::CodeGen::CodeGenModule::EmitTopLevelDecl
(this=0x10483c400, D=0x10461aa10) at CodeGenModule.cpp:1937
#16 0x000000010023476a in (anonymous
namespace)::CodeGeneratorImpl::HandleTopLevelDecl (this=0x1046172b0, DG={D =
0x10461aa10}) at ModuleBuilder.cpp:65
#17 0x00000001000270f6 in (anonymous
namespace)::BackendConsumer::HandleTopLevelDecl (this=0x1046176d0, D={D =
0x10461aa10}) at CodeGenAction.cpp:147
--
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 Jun 3 09:36:21 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 09:36:21 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7293] New: Missing #include in googletest
header file
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7293
Summary: Missing #include in googletest header file
Product: new-bugs
Version: trunk
Platform: PC
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
The file utils/unittest/googletest/include/gtest/internal/gtest-port.h uses the
functions 'isatty()' and 'rmdir()'. The declarations for these functions are in
unistd.h (according to their man pages on a recent Ubuntu system). However,
gtest-port.h does not #include .
The missing #include causes compilation problems on Minix3.
--
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 Jun 3 09:46:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 09:46:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7294] New: Please add Minix to the list of excluded
OS in tools/clang/tools/Makefile
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7294
Summary: Please add Minix to the list of excluded OS in
tools/clang/tools/Makefile
Product: new-bugs
Version: trunk
Platform: PC
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
The file tools/clang/tools/Makefile
contains the line
ifeq ($(OS), $(filter $(OS), Cygwin MingW))
to avoid compiling the subdirectories libclang and c-index-test on these
operating systems, since Cygwin and MingW do not support dynamic libraries.
Since Minix does not support dynamic libraries either, it would be helpful if
this line was changed to:
ifeq ($(OS), $(filter $(OS), Cygwin MingW Minix))
With this modification (and a few others that are being reported separately),
Minix can compile recent trunk versions of llvm and clang.
--
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 Jun 3 09:01:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 09:01:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6539] x86 asm earlyclobber not respected
In-Reply-To:
References:
Message-ID: <20100603140150.6D39A3128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6539
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #4 from Jakob Stoklund Olesen 2010-06-03 09:01:49 CDT ---
The early clobber, fixed assignment constraint "=&a" is not handled correctly.
It might help to add "%eax" t the clobber list.
And yes, this looks like a dup of PR 4118.
*** This bug has been marked as a duplicate of bug 4118 ***
--
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 Jun 3 08:12:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 08:12:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7292] New: Adding version ident to clang-compiled
object files
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7292
Summary: Adding version ident to clang-compiled object files
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: dimitry at andric.com
CC: llvmbugs at cs.uiuc.edu
Unless using the -fno-ident option (which clang also supports :), gcc
adds a .ident statement to each .s file that is produced, e.g with the
FreeBSD standard gcc:
.ident "GCC: (GNU) 4.2.1 20070719 [FreeBSD]"
or with a more recent gcc build:
.ident "GCC: (GNU) 4.5.1 20100527 (prerelease)"
These .ident statements are usually (depending on arch) translated as
.comment sections in the produced .o files, and even propagate to the
final executable or shared library.
This is very handy to identify the specific compiler version (or
versions, even) later on, for example during bug-hunting, or some other
forensic post-mortem analysis.
Could something like this be added to clang? For example, using the
same version string that is shown with clang -v:
clang version 2.0 (trunk 105388)
--
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 Jun 3 14:13:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 14:13:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7295] New: --extract-blocks doesn't handle
blockaddress
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7295
Summary: --extract-blocks doesn't handle blockaddress
Product: libraries
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Transformation Utilities
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gohman at apple.com
CC: llvmbugs at cs.uiuc.edu
Testcase:
define void @foo(i8** %p) {
entry:
store i8* blockaddress(@foo, %label), i8** %p
br label %label
label:
ret void
}
With opt --extract-blocks, %label is moved to function @foo_label(), but the
blockaddress expression remains blockaddress(@foo, %label), referencing the
original function.
--
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 Jun 3 14:58:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 14:58:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7291] crash on initializer containing an assignment
In-Reply-To:
References:
Message-ID: <20100603195832.8C2103128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7291
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #1 from Eli Friedman 2010-06-03 14:58:31 CDT ---
Fixed in r105404.
--
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 Jun 3 15:14:49 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 15:14:49 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7296] New: Disable specific warnings during static
analysis
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7296
Summary: Disable specific warnings during static analysis
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: khakionion at gmail.com
CC: llvmbugs at cs.uiuc.edu
I'm including the source for a couple of libraries in an Xcode project of mine,
and their source raises Clang Static Analyzer warnings. I looked and looked at
both the Xcode level and the Clang level for a way to disable specific warnings
so I can have a zero-message build, but could not find such functionality. Is
this possible? If not, is it feasible to add in a future release?
--
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 Jun 3 15:39:40 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 15:39:40 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7281] Clang aborts with "Sema doesn't consider
destructor as used" assertion.
In-Reply-To:
References:
Message-ID: <20100603203940.D993B3128018@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7281
Eli Friedman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |sharparrow1 at yahoo.com
Resolution| |FIXED
--- Comment #6 from Eli Friedman 2010-06-03 15:39:40 CDT ---
Fixed in r105408.
--
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 Jun 3 23:02:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 3 Jun 2010 23:02:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7297] New: Member access is not the same for b[0].x
and b->x
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7297
Summary: Member access is not the same for b[0].x and b->x
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: jediknil at belkadan.com
CC: llvmbugs at cs.uiuc.edu
If I have a pointer (p) to a struct on the stack (a), setting a field using
p->x or a.x does not affect p[0].x, or vice versa. The test case below says
p[0].x is a garbage value.
Reminiscent of and possibly related to PR7218.
---
#define FAIL ((void)*(char*)0)
struct simple { int x; };
void test () {
struct simple a;
struct simple *p = &a;
p->x = 5;
if (!p[0].x) FAIL; // no-warning
if (p[0].x) FAIL; // expected-warning {{null}}
}
--
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 Jun 4 02:32:22 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Jun 2010 02:32:22 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7298] New: undefined references in building several
SPEC CPU2000 Fortran benchmarks
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7298
Summary: undefined references in building several SPEC CPU2000
Fortran benchmarks
Product: dragonegg
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: kenneth.hoste at ugent.be
CC: llvmbugs at cs.uiuc.edu
Linkage problems are observed for various SPEC CPU2000 Fortran benchmarks on
Linux x86-64, using dragonegg-2.7 along with gcc-4.5.0.
Affected benchmarks: 173.applu, 301.apsi, 172.mgrid, 200.sixtrack, 171.swim .
Example of error messages (for 173.applu, others are similar):
/path/to/gcc-4.5.0/bin/gfortran -fplugin=/path/to/dragonegg-2.7/dragonegg.so
-L/path/to/gcc-4.5.0/lib64
-L/path/to/gcc-4.5.0/lib/gcc/x86_64-unknown-linux-gnu/4.5.0 -c -o applu.o
-O2 applu.f
/path/to/gcc-4.5.0/bin/gfortran -fplugin=/path/to/dragonegg-2.7/dragonegg.so
-L/path/to/gcc-4.5.0/lib64
-L/path/to/gcc-4.5.0/lib/gcc/x86_64-unknown-linux-gnu/4.5.0 -O2 applu.o
-o applu
applu.o: In function `main':
applu.f:(.text+0xf2): undefined reference to `cprcon_'
applu.f:(.text+0x1d1): undefined reference to `cprcon_'
applu.f:(.text+0x1e1): undefined reference to `cprcon_'
applu.f:(.text+0x2c0): undefined reference to `ctscon_'
applu.f:(.text+0x39f): undefined reference to `ctscon_'
applu.f:(.text+0x47e): undefined reference to `ctscon_'
applu.f:(.text+0x55d): undefined reference to `ctscon_'
applu.f:(.text+0x63c): undefined reference to `ctscon_'
applu.o:applu.f:(.text+0x64c): more undefined references to `ctscon_' follow
applu.o: In function `main':
applu.f:(.text+0x75b): undefined reference to `cgcon_'
applu.f:(.text+0x76b): undefined reference to `cgcon_'
applu.f:(.text+0x77b): undefined reference to `cgcon_'
applu.f:(.text+0x794): undefined reference to `cgcon_'
applu.f:(.text+0x7a3): undefined reference to `cgcon_'
applu.o:applu.f:(.text+0x7b2): more undefined references to `cgcon_' follow
applu.o: In function `main':
applu.f:(.text+0x984): undefined reference to `disp_'
applu.f:(.text+0x98b): undefined reference to `disp_'
applu.f:(.text+0x992): undefined reference to `disp_'
applu.f:(.text+0x999): undefined reference to `disp_'
applu.f:(.text+0x9a0): undefined reference to `disp_'
applu.o:applu.f:(.text+0x9a7): more undefined references to `disp_' follow
applu.o: In function `main':
applu.f:(.text+0xa12): undefined reference to `cexact_'
applu.f:(.text+0xa19): undefined reference to `cexact_'
applu.f:(.text+0xa24): undefined reference to `cexact_'
applu.f:(.text+0xa39): undefined reference to `cexact_'
applu.f:(.text+0xa4a): undefined reference to `cexact_'
applu.o:applu.f:(.text+0xa5b): more undefined references to `cexact_' follow
applu.o: In function `main':
applu.f:(.text+0xcaf): undefined reference to `ctscon_'
applu.f:(.text+0xcb4): undefined reference to `ctscon_'
applu.f:(.text+0xcb9): undefined reference to `ctscon_'
applu.o: In function `setbv_':
applu.f:(.text+0xd95): undefined reference to `cgcon_'
applu.f:(.text+0xdc9): undefined reference to `cgcon_'
applu.f:(.text+0xdd2): undefined reference to `cgcon_'
applu.f:(.text+0xe1c): undefined reference to `cvar_'
applu.f:(.text+0xe4c): undefined reference to `cgcon_'
applu.f:(.text+0xe61): undefined reference to `cvar_'
applu.f:(.text+0xea9): undefined reference to `cgcon_'
applu.f:(.text+0xedd): undefined reference to `cgcon_'
applu.f:(.text+0xef2): undefined reference to `cgcon_'
applu.f:(.text+0xf3c): undefined reference to `cvar_'
applu.f:(.text+0xf5d): undefined reference to `cgcon_'
applu.f:(.text+0xf81): undefined reference to `cvar_'
applu.f:(.text+0xfc9): undefined reference to `cgcon_'
applu.f:(.text+0xffd): undefined reference to `cgcon_'
applu.f:(.text+0x1012): undefined reference to `cgcon_'
applu.f:(.text+0x1062): undefined reference to `cvar_'
applu.f:(.text+0x1077): undefined reference to `cgcon_'
applu.f:(.text+0x10a7): undefined reference to `cvar_'
applu.o: In function `setiv_':
applu.f:(.text+0x1160): undefined reference to `cgcon_'
applu.f:(.text+0x1173): undefined reference to `cgcon_'
applu.f:(.text+0x11c4): undefined reference to `cvar_'
applu.f:(.text+0x11f3): undefined reference to `cgcon_'
applu.f:(.text+0x123e): undefined reference to `cvar_'
applu.f:(.text+0x124a): undefined reference to `cvar_'
applu.f:(.text+0x125d): undefined reference to `cvar_'
applu.o: In function `erhs_':
applu.f:(.text+0x23e7): undefined reference to `disp_'
applu.f:(.text+0x23ee): undefined reference to `cgcon_'
applu.f:(.text+0x2404): undefined reference to `cgcon_'
applu.f:(.text+0x2414): undefined reference to `cvar_'
applu.f:(.text+0x2422): undefined reference to `cgcon_'
applu.f:(.text+0x2499): undefined reference to `cgcon_'
applu.f:(.text+0x24d7): undefined reference to `cvar_'
applu.f:(.text+0x2510): undefined reference to `cgcon_'
applu.f:(.text+0x25d9): undefined reference to `cexact_'
applu.f:(.text+0x25e2): undefined reference to `cexact_'
applu.f:(.text+0x25ef): undefined reference to `cexact_'
applu.f:(.text+0x2600): undefined reference to `cexact_'
applu.f:(.text+0x2611): undefined reference to `cexact_'
applu.o:applu.f:(.text+0x2626): more undefined references to `cexact_' follow
applu.o: In function `erhs_':
applu.f:(.text+0x27db): undefined reference to `cgcon_'
applu.f:(.text+0x2844): undefined reference to `cgcon_'
applu.f:(.text+0x2bdb): undefined reference to `cgcon_'
applu.f:(.text+0x2be7): undefined reference to `disp_'
applu.f:(.text+0x2bef): undefined reference to `cgcon_'
applu.f:(.text+0x2c03): undefined reference to `disp_'
applu.f:(.text+0x2c0f): undefined reference to `disp_'
applu.f:(.text+0x2c1d): undefined reference to `disp_'
applu.f:(.text+0x2c25): undefined reference to `disp_'
applu.f:(.text+0x2dbb): undefined reference to `cgcon_'
applu.f:(.text+0x2df9): undefined reference to `cvar_'
applu.f:(.text+0x2e40): undefined reference to `cgcon_'
applu.f:(.text+0x2f09): undefined reference to `cexact_'
applu.f:(.text+0x2f12): undefined reference to `cexact_'
applu.f:(.text+0x2f1f): undefined reference to `cexact_'
applu.f:(.text+0x2f30): undefined reference to `cexact_'
applu.f:(.text+0x2f41): undefined reference to `cexact_'
applu.o:applu.f:(.text+0x2f56): more undefined references to `cexact_' follow
applu.o: In function `erhs_':
applu.f:(.text+0x310b): undefined reference to `cgcon_'
applu.f:(.text+0x3177): undefined reference to `cgcon_'
applu.f:(.text+0x351e): undefined reference to `cgcon_'
applu.f:(.text+0x352a): undefined reference to `disp_'
applu.f:(.text+0x3532): undefined reference to `cgcon_'
applu.f:(.text+0x3546): undefined reference to `disp_'
applu.f:(.text+0x3552): undefined reference to `disp_'
applu.f:(.text+0x3560): undefined reference to `disp_'
applu.f:(.text+0x3568): undefined reference to `disp_'
applu.f:(.text+0x36fa): undefined reference to `cgcon_'
applu.f:(.text+0x3711): undefined reference to `cgcon_'
applu.f:(.text+0x3799): undefined reference to `cvar_'
applu.f:(.text+0x3869): undefined reference to `cexact_'
applu.f:(.text+0x3872): undefined reference to `cexact_'
applu.f:(.text+0x387f): undefined reference to `cexact_'
applu.f:(.text+0x3890): undefined reference to `cexact_'
applu.f:(.text+0x38a1): undefined reference to `cexact_'
applu.o:applu.f:(.text+0x38b6): more undefined references to `cexact_' follow
applu.o: In function `erhs_':
applu.f:(.text+0x3a6a): undefined reference to `cgcon_'
applu.f:(.text+0x3ad7): undefined reference to `cgcon_'
applu.f:(.text+0x3e6c): undefined reference to `cgcon_'
applu.f:(.text+0x3e78): undefined reference to `disp_'
applu.f:(.text+0x3e80): undefined reference to `cgcon_'
applu.f:(.text+0x3e94): undefined reference to `disp_'
applu.f:(.text+0x3ea0): undefined reference to `disp_'
applu.f:(.text+0x3eae): undefined reference to `disp_'
applu.f:(.text+0x3eb6): undefined reference to `disp_'
applu.o: In function `exact_':
applu.f:(.text+0x406a): undefined reference to `cgcon_'
applu.f:(.text+0x4082): undefined reference to `cgcon_'
applu.f:(.text+0x409a): undefined reference to `cgcon_'
applu.f:(.text+0x40b9): undefined reference to `cexact_'
applu.f:(.text+0x40c2): undefined reference to `cexact_'
applu.f:(.text+0x40cf): undefined reference to `cexact_'
applu.f:(.text+0x40e0): undefined reference to `cexact_'
applu.f:(.text+0x40f1): undefined reference to `cexact_'
applu.o:applu.f:(.text+0x4106): more undefined references to `cexact_' follow
applu.o: In function `error_':
applu.f:(.text+0x4254): undefined reference to `ctscon_'
applu.f:(.text+0x4267): undefined reference to `cgcon_'
applu.f:(.text+0x42b3): undefined reference to `cgcon_'
applu.f:(.text+0x42f2): undefined reference to `cgcon_'
applu.f:(.text+0x4355): undefined reference to `cvar_'
applu.f:(.text+0x4377): undefined reference to `ctscon_'
applu.f:(.text+0x4380): undefined reference to `ctscon_'
applu.f:(.text+0x43bb): undefined reference to `cgcon_'
applu.f:(.text+0x43c1): undefined reference to `cgcon_'
applu.f:(.text+0x43ca): undefined reference to `cgcon_'
applu.f:(.text+0x43e5): undefined reference to `ctscon_'
applu.f:(.text+0x43f6): undefined reference to `ctscon_'
applu.f:(.text+0x4463): undefined reference to `ctscon_'
applu.o: In function `jacld_':
applu.f:(.text+0x4530): undefined reference to `cgcon_'
applu.f:(.text+0x4542): undefined reference to `cgcon_'
applu.f:(.text+0x4566): undefined reference to `cjac_'
applu.f:(.text+0x456b): undefined reference to `cvar_'
applu.f:(.text+0x4572): undefined reference to `cgcon_'
applu.f:(.text+0x45a4): undefined reference to `ctscon_'
applu.f:(.text+0x45ac): undefined reference to `cgcon_'
applu.f:(.text+0x45bd): undefined reference to `disp_'
applu.f:(.text+0x45db): undefined reference to `cgcon_'
applu.f:(.text+0x45ec): undefined reference to `disp_'
applu.f:(.text+0x4609): undefined reference to `cgcon_'
applu.f:(.text+0x461a): undefined reference to `disp_'
applu.f:(.text+0x46aa): undefined reference to `disp_'
applu.f:(.text+0x46ec): undefined reference to `disp_'
applu.f:(.text+0x4704): undefined reference to `disp_'
applu.f:(.text+0x471b): undefined reference to `disp_'
applu.o:applu.f:(.text+0x4755): more undefined references to `disp_' follow
applu.o: In function `jacld_':
applu.f:(.text+0x4a4a): undefined reference to `cgcon_'
applu.f:(.text+0x4b49): undefined reference to `cgcon_'
applu.f:(.text+0x4bf5): undefined reference to `cgcon_'
applu.o: In function `jacu_':
applu.f:(.text+0x6230): undefined reference to `cgcon_'
applu.f:(.text+0x6242): undefined reference to `cgcon_'
applu.f:(.text+0x6266): undefined reference to `cjac_'
applu.f:(.text+0x626b): undefined reference to `cvar_'
applu.f:(.text+0x6272): undefined reference to `cgcon_'
applu.f:(.text+0x62a4): undefined reference to `ctscon_'
applu.f:(.text+0x62b0): undefined reference to `cgcon_'
applu.f:(.text+0x62c5): undefined reference to `disp_'
applu.f:(.text+0x62d1): undefined reference to `cgcon_'
applu.f:(.text+0x631c): undefined reference to `disp_'
applu.f:(.text+0x6340): undefined reference to `disp_'
applu.f:(.text+0x6352): undefined reference to `disp_'
applu.f:(.text+0x6360): undefined reference to `disp_'
applu.f:(.text+0x6372): undefined reference to `cgcon_'
applu.f:(.text+0x6387): undefined reference to `disp_'
applu.f:(.text+0x6393): undefined reference to `cgcon_'
applu.f:(.text+0x63de): undefined reference to `disp_'
applu.f:(.text+0x63f0): undefined reference to `disp_'
applu.f:(.text+0x640b): undefined reference to `disp_'
applu.f:(.text+0x6419): undefined reference to `disp_'
applu.f:(.text+0x642b): undefined reference to `cgcon_'
applu.f:(.text+0x6440): undefined reference to `disp_'
applu.f:(.text+0x6448): undefined reference to `cgcon_'
applu.f:(.text+0x64a5): undefined reference to `disp_'
applu.f:(.text+0x64b7): undefined reference to `disp_'
applu.f:(.text+0x64e5): undefined reference to `disp_'
applu.f:(.text+0x64f7): undefined reference to `disp_'
applu.o: In function `pintgr_':
applu.f:(.text+0x7596): undefined reference to `cgcon_'
applu.f:(.text+0x75a2): undefined reference to `cgcon_'
applu.f:(.text+0x75b5): undefined reference to `cgcon_'
applu.f:(.text+0x75bc): undefined reference to `cgcon_'
applu.f:(.text+0x760e): undefined reference to `cvar_'
applu.f:(.text+0x7633): undefined reference to `cgcon_'
applu.f:(.text+0x7644): undefined reference to `cgcon_'
applu.f:(.text+0x7745): undefined reference to `cgcon_'
applu.f:(.text+0x7752): undefined reference to `cgcon_'
applu.f:(.text+0x7864): undefined reference to `cgcon_'
applu.o:applu.f:(.text+0x786c): more undefined references to `cgcon_' follow
applu.o: In function `pintgr_':
applu.f:(.text+0x7913): undefined reference to `cvar_'
applu.f:(.text+0x791b): undefined reference to `cvar_'
applu.f:(.text+0x7a46): undefined reference to `cgcon_'
applu.f:(.text+0x7a53): undefined reference to `cgcon_'
applu.f:(.text+0x7b64): undefined reference to `cgcon_'
applu.f:(.text+0x7be8): undefined reference to `cvar_'
applu.f:(.text+0x7c03): undefined reference to `cgcon_'
applu.f:(.text+0x7c12): undefined reference to `cgcon_'
applu.f:(.text+0x7e55): undefined reference to `ctscon_'
applu.f:(.text+0x7eab): undefined reference to `ctscon_'
applu.o: In function `rhs_':
applu.f:(.text+0x7f3d): undefined reference to `cgcon_'
applu.f:(.text+0x7f58): undefined reference to `cgcon_'
applu.f:(.text+0x7f6c): undefined reference to `cvar_'
applu.f:(.text+0x7f82): undefined reference to `cgcon_'
applu.f:(.text+0x8005): undefined reference to `cgcon_'
applu.f:(.text+0x803e): undefined reference to `cvar_'
applu.f:(.text+0x8053): undefined reference to `cgcon_'
applu.f:(.text+0x8066): undefined reference to `disp_'
applu.f:(.text+0x819b): undefined reference to `cgcon_'
applu.f:(.text+0x8204): undefined reference to `cgcon_'
applu.f:(.text+0x85a2): undefined reference to `cgcon_'
applu.f:(.text+0x85ae): undefined reference to `disp_'
applu.f:(.text+0x85b6): undefined reference to `cgcon_'
applu.f:(.text+0x85ca): undefined reference to `disp_'
applu.f:(.text+0x85d6): undefined reference to `disp_'
applu.f:(.text+0x85e2): undefined reference to `disp_'
applu.f:(.text+0x85ea): undefined reference to `disp_'
applu.f:(.text+0x878b): undefined reference to `cgcon_'
applu.f:(.text+0x87c4): undefined reference to `cvar_'
applu.f:(.text+0x87e3): undefined reference to `cgcon_'
applu.f:(.text+0x87f6): undefined reference to `disp_'
applu.f:(.text+0x893c): undefined reference to `cgcon_'
applu.f:(.text+0x89a7): undefined reference to `cgcon_'
applu.f:(.text+0x8d75): undefined reference to `cgcon_'
applu.f:(.text+0x8d81): undefined reference to `disp_'
applu.f:(.text+0x8d89): undefined reference to `cgcon_'
applu.f:(.text+0x8d9d): undefined reference to `disp_'
applu.f:(.text+0x8da9): undefined reference to `disp_'
applu.f:(.text+0x8db5): undefined reference to `disp_'
applu.f:(.text+0x8dbd): undefined reference to `disp_'
applu.f:(.text+0x8f71): undefined reference to `cgcon_'
applu.f:(.text+0x8f88): undefined reference to `cgcon_'
applu.f:(.text+0x8fec): undefined reference to `cvar_'
applu.f:(.text+0x900c): undefined reference to `disp_'
applu.f:(.text+0x913f): undefined reference to `cgcon_'
applu.f:(.text+0x91ad): undefined reference to `cgcon_'
applu.f:(.text+0x9573): undefined reference to `cgcon_'
applu.f:(.text+0x957f): undefined reference to `disp_'
applu.f:(.text+0x9587): undefined reference to `cgcon_'
applu.f:(.text+0x959b): undefined reference to `disp_'
applu.f:(.text+0x95a7): undefined reference to `disp_'
applu.f:(.text+0x95b3): undefined reference to `disp_'
applu.f:(.text+0x95bb): undefined reference to `disp_'
applu.o: In function `ssor_':
applu.f:(.text+0x9804): undefined reference to `ctscon_'
applu.f:(.text+0x9836): undefined reference to `ctscon_'
applu.f:(.text+0x983e): undefined reference to `cvar_'
applu.f:(.text+0x9848): undefined reference to `cgcon_'
applu.f:(.text+0x984e): undefined reference to `cgcon_'
applu.f:(.text+0x9854): undefined reference to `cgcon_'
applu.f:(.text+0x9869): undefined reference to `cprcon_'
applu.f:(.text+0x9973): undefined reference to `ctscon_'
applu.f:(.text+0x99a7): undefined reference to `ctscon_'
applu.f:(.text+0x99e3): undefined reference to `cprcon_'
applu.f:(.text+0x99f1): undefined reference to `cprcon_'
applu.f:(.text+0x9a84): undefined reference to `cgcon_'
applu.f:(.text+0x9a96): undefined reference to `cgcon_'
applu.f:(.text+0x9ab3): undefined reference to `cvar_'
applu.f:(.text+0x9ac2): undefined reference to `cgcon_'
applu.f:(.text+0x9ae4): undefined reference to `ctscon_'
applu.f:(.text+0x9b49): undefined reference to `cjac_'
applu.f:(.text+0x9b5a): undefined reference to `cjac_'
applu.f:(.text+0x9b6b): undefined reference to `cjac_'
applu.f:(.text+0x9b79): undefined reference to `cjac_'
applu.f:(.text+0x9b82): undefined reference to `cvar_'
applu.f:(.text+0x9b8a): undefined reference to `ctscon_'
applu.f:(.text+0x9b98): undefined reference to `cgcon_'
applu.f:(.text+0x9ba1): undefined reference to `cgcon_'
applu.f:(.text+0x9ba7): undefined reference to `cgcon_'
applu.f:(.text+0x9bcb): undefined reference to `cjac_'
applu.f:(.text+0x9bd4): undefined reference to `cvar_'
applu.f:(.text+0x9bdc): undefined reference to `ctscon_'
applu.f:(.text+0x9bea): undefined reference to `cgcon_'
applu.f:(.text+0x9bf3): undefined reference to `cgcon_'
applu.f:(.text+0x9bf9): undefined reference to `cgcon_'
applu.f:(.text+0x9c04): undefined reference to `cgcon_'
applu.f:(.text+0x9c16): undefined reference to `cgcon_'
applu.f:(.text+0x9c33): undefined reference to `cvar_'
applu.f:(.text+0x9c42): undefined reference to `cgcon_'
applu.f:(.text+0x9cd8): undefined reference to `cprcon_'
applu.f:(.text+0x9cf5): undefined reference to `cvar_'
applu.f:(.text+0x9d03): undefined reference to `cgcon_'
applu.f:(.text+0x9d0b): undefined reference to `cgcon_'
applu.f:(.text+0x9d13): undefined reference to `cgcon_'
applu.f:(.text+0x9d21): undefined reference to `cprcon_'
applu.f:(.text+0x9de2): undefined reference to `cprcon_'
applu.f:(.text+0x9dec): undefined reference to `ctscon_'
applu.f:(.text+0x9dfb): undefined reference to `ctscon_'
applu.f:(.text+0x9e03): undefined reference to `cvar_'
applu.f:(.text+0x9e11): undefined reference to `cgcon_'
applu.f:(.text+0x9e19): undefined reference to `cgcon_'
applu.f:(.text+0x9e21): undefined reference to `cgcon_'
applu.f:(.text+0x9e2f): undefined reference to `cprcon_'
applu.f:(.text+0x9e94): undefined reference to `ctscon_'
applu.f:(.text+0x9ec3): undefined reference to `ctscon_'
applu.f:(.text+0x9ecb): undefined reference to `ctscon_'
applu.f:(.text+0x9ed5): undefined reference to `ctscon_'
applu.f:(.text+0x9edd): undefined reference to `ctscon_'
applu.o:applu.f:(.text+0x9ee7): more undefined references to `ctscon_' follow
applu.o: In function `verify_':
applu.f:(.text+0xa2a3): undefined reference to `cgcon_'
applu.f:(.text+0xa2c6): undefined reference to `cgcon_'
applu.f:(.text+0xa2d3): undefined reference to `cgcon_'
applu.f:(.text+0xa469): undefined reference to `cgcon_'
applu.f:(.text+0xa476): undefined reference to `cgcon_'
applu.o:applu.f:(.text+0xa8cf): more undefined references to `cgcon_' follow
collect2: ld returned 1 exit status
--
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 Jun 4 02:37:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Jun 2010 02:37:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7299] New: failed assertion while building several
SPEC CPU2000 Fortran benchmarks
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7299
Summary: failed assertion while building several SPEC CPU2000
Fortran benchmarks
Product: dragonegg
Version: 2.7
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: kenneth.hoste at ugent.be
CC: llvmbugs at cs.uiuc.edu
An LLVM assertion fails while compiling several SPEC CPU2000 Fortran
benchmarks.
Affected benchmarks: 187.facerec, 191.fma3d, 178.galgel, 189.lucas .
Example error message (for lucas):
/path/to/gcc-4.5.0/bin/gfortran -fplugin=/path/to/dragonegg-2.7/dragonegg.so
-L/path/to/gcc-4.5.0/lib64
-L/path/to/gcc-4.5.0/lib/gcc/x86_64-unknown-linux-gnu/4.5.0 -c -o
lucas_distrib_spec.o -O2 lucas_distrib_spec.f90
f951: /path/to/llvm-2.7_src/lib/VMCore/Instructions.cpp:307: void
llvm::CallInst::init(llvm::Value*, llvm::Value* const*, unsigned int):
Assertion `(NumParams == FTy->getNumParams() || (FTy->isVarArg() && NumParams >
FTy->getNumParams())) && "Calling a function with bad signature!"' failed.
*** WARNING *** there are active plugins, do not report this as a bug unless
you can reproduce it without enabling any plugins.
Event | Plugins
PLUGIN_FINISH_UNIT | dragonegg
PLUGIN_FINISH | dragonegg
PLUGIN_START_UNIT | dragonegg
lucas_distrib_spec.f90: In function 'MAIN__':
lucas_distrib_spec.f90:675:0: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
--
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 Jun 4 02:48:01 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Jun 2010 02:48:01 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7300] New: Unused argument registers can not be
reused
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7300
Summary: Unused argument registers can not be reused
Product: libraries
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: Arnaud.AllardDeGrandMaison at dibcom.com
CC: llvmbugs at cs.uiuc.edu
Using the msp430 backend, the first four parameters of a function are passed
thru registers. What I observe is that if those parameters are not used inside
the function, those registers can not be used. Note : this behaviour is not
specific to the msp430 backend.
Steps to reproduce:
> cat test_unused_regs.c
short a = 2;
short b = 32;
short r = 1024;
void
test(short w, short x, short y, short z)
{
r -= a+b;
}
> clang -ccc-host-triple msp430-unknown-unknown -O2 -fomit-frame-pointer -S -o test_unused_regs.s test_unused_regs.c
> cat test_unused_regs.s
?
test:
push.w r11
mov.w &b, r11
add.w &a, r11
sub.w r11, &r
pop.w r11
ret
?
Instead of using r11, llvm should have used r12/r13/r14 or r15. This was my
expectation, and the behaviour with llvm-2.6. This would have spared
saving/restoring r11.
This bug has been introduced/revealed by svn commit #95493, which enabled
DeadMachineInstructionElimPass for all targets. Disabling this pass makes
llvm-2.7 behave as expected.
Dump of the test function at entry / exit of DeadMachineInstructionElimPass :
# Machine code for function test:
Function Live Ins: %R15W in reg%1024, %R14W in reg%1025, %R13W in reg%1026,
%R12W in reg%1027
BB#0: derived from LLVM BB %entry
Live Ins: %R15W %R14W %R13W %R12W
%reg1027 = MOV16rr %R12W
%reg1026 = MOV16rr %R13W
%reg1025 = MOV16rr %R14W
%reg1024 = MOV16rr %R15W
%reg1028 = MOV16rm %reg0, ; mem:LD2[@b]
%reg1029 = ADD16rm %reg1028, %reg0, , %SRW;
mem:LD2[@a]
SUB16mr %reg0, , %reg1029, %SRW; mem:ST2[@r]
LD2[@r]
RET
# End machine code for function test.
# Machine code for function test:
Function Live Ins: %R15W in reg%1024, %R14W in reg%1025, %R13W in reg%1026,
%R12W in reg%1027
BB#0: derived from LLVM BB %entry
Live Ins: %R15W %R14W %R13W %R12W
%reg1028 = MOV16rm %reg0, ; mem:LD2[@b]
%reg1029 = ADD16rm %reg1028, %reg0, , %SRW;
mem:LD2[@a]
SUB16mr %reg0, , %reg1029, %SRW; mem:ST2[@r]
LD2[@r]
RET
# End machine code for function test.
Those MOV16rr instructions are all dead, so machine DCE removes them. That
leaves the livein registers dangling, never to be killed. LiveIntervalAnalysis
then decides that they are live through the block.
--
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 Jun 4 11:59:36 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Jun 2010 11:59:36 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7303] New: Assert when comparing vectors on X86_64
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7303
Summary: Assert when comparing vectors on X86_64
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ddneff at hotmail.com
CC: llvmbugs at cs.uiuc.edu
I thought recent changes were supposed to allow comparison operations using
vectors on X86. I get an assertion about 'Operand wasn't scalarized?' in
LegalizeTypes.h:510. Here is a sample file that won't compile:
; ModuleID = 'bugoptasm.txt.bc'
@global_subject2_246951760 = internal global i64 0 ; [#uses=1]
@global_subject11_246957600 = internal global i64 0 ; [#uses=1]
define void @dependentGraph0() {
entry:
%0 = load i64* @global_subject2_246951760 ; [#uses=1]
%1 = load i64* @global_subject11_246957600 ; [#uses=1]
%tupleInsert = insertelement <2 x i64> undef, i64 %0, i32 0 ; <<3 x i64>>
[#uses=1]
%tupleInsert33 = insertelement <2 x i64> %tupleInsert, i64 %1, i32 1 ; <<3 x
i64>> [#uses=1]
%q_equal35 = icmp eq <2 x i64> %tupleInsert33, zeroinitializer ; <<3 x i1>>
[#uses=1]
call void @output_integer(i8* inttoptr (i64 246924032 to i8*), i64 0, i64 0,
<2 x i1> %q_equal35)
ret void
}
declare void @output_integer(i8*, i64, i64, <2 x i1>) nounwind
--
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 Jun 4 14:03:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Jun 2010 14:03:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7304] New: Partial specialize uses wrong
specialization for callsite
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7304
Summary: Partial specialize uses wrong specialization for
callsite
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Interprocedural Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: kennethuil at gmail.com
CC: llvmbugs at cs.uiuc.edu
Given the test code:
declare void @callback1()
declare void @callback2()
define internal void @UseCallback(void()* %pCallback) {
call void %pCallback()
ret void
}
define void @foo()
{
call void @UseCallback(void()* @callback1)
call void @UseCallback(void()* @callback1)
call void @UseCallback(void()* @callback2)
call void @UseCallback(void()* @callback1)
call void @UseCallback(void()* @callback2)
call void @UseCallback(void()* @callback2)
ret void
}
Running "opt -partialspecialization -o test-opt.bc test.bc"
yields the following code:
declare void @callback1()
declare void @callback2()
define internal void @UseCallback(void ()* %pCallback) {
call void %pCallback()
ret void
}
define void @foo() {
call void @UseCallback1()
call void @UseCallback1()
call void @UseCallback1() ; should be @UseCallback2!
call void @UseCallback1()
call void @UseCallback1() ; should be @UseCallback2!
call void @UseCallback1() ; should be @UseCallback2!
ret void
}
define internal void @UseCallback1() {
call void @callback1()
ret void
}
define internal void @UseCallback2() {
call void @callback2()
ret void
}
--
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 Jun 4 15:55:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Jun 2010 15:55:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7305] New: plugins should take parameters
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7305
Summary: plugins should take parameters
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: troy at resophonic.com
CC: llvmbugs at cs.uiuc.edu
attached patch supports following syntax:
clang -cc1 -plugin FOO -plugin-arg-FOO arg1 -plugin-arg-FOO arg2 ...
as discussed on IRC
--
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 Jun 4 17:04:03 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Jun 2010 17:04:03 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7306] New: LzmaEnc.c fails to compile
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7306
Summary: LzmaEnc.c fails to compile
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nelchael at gentoo.org
CC: llvmbugs at cs.uiuc.edu
LzmaEnc.c (from Lzma SDK 9.12, http://www.7-zip.org/sdk.html) fails to compile
with -O1 but succeeds with -O2 and -O0:
(clang/llvm trunk, revision 105489)
$ cd /C/
$ clang -D_7ZIP_ST -O1 -c LzmaEnc.c
Instruction does not dominate all uses!
%tmp3425 = mul i32 %umax3424, -1 ; [#uses=1]
%tmp3426 = add i32 %tmp3425, -1 ; [#uses=1]
Broken module found, compilation aborted!
0 clang 0x0000000001519eb4
1 clang 0x0000000001519d78
2 libpthread.so.0 0x00007f4a771c6150
3 libc.so.6 0x00007f4a764e21a5 gsignal + 53
4 libc.so.6 0x00007f4a764e35d0 abort + 384
5 clang 0x00000000014ac96b
6 clang 0x00000000014ac64c
7 clang 0x0000000001481a75
8 clang 0x000000000148173f
9 clang 0x00000000014813ef
10 clang 0x000000000042908b
11 clang 0x0000000000427d4d
12 clang 0x00000000006ad02a
13 clang 0x0000000000443c48
14 clang 0x00000000004438b3
15 clang 0x000000000042e2ea
16 clang 0x00000000004092df
17 clang 0x0000000000411eb0 main + 342
18 libc.so.6 0x00007f4a764cebbd __libc_start_main + 253
19 clang 0x0000000000407ca9
Stack dump:
0. Program arguments: /home/nelchael/devel/llvm/Debug/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -S -disable-free -main-file-name LzmaEnc.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/home/nelchael/devel/llvm/Debug/lib/clang/2.0 -D_7ZIP_ST -O1 -ferror-limit 19
-fmessage-length 194 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-lVeStn.s -x c LzmaEnc.c
1. parser at end of file
2. Code generation
3. Running pass 'Module Verifier' on function '@GetOptimum'
clang: error: clang frontend 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 Jun 4 18:17:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Jun 2010 18:17:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5599] clang doesn't follow x86-64 ABI array
alignment rule
In-Reply-To:
References:
Message-ID: <20100604231752.2CF953128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5599
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Rafael ?vila de Esp?ndola 2010-06-04 18:17:51 CDT ---
Fixed in r105500.
--
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 Jun 4 19:33:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Jun 2010 19:33:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7306] LzmaEnc.c fails to compile
In-Reply-To:
References:
Message-ID: <20100605003327.194243128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7306
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Dan Gohman 2010-06-04 19:33:26 CDT ---
Fixed in r105510.
--
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 Jun 4 19:36:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 4 Jun 2010 19:36:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7260] Bogus(?) floating-point overflow
In-Reply-To:
References:
Message-ID: <20100605003611.55165312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7260
Dan Gohman changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #7 from Dan Gohman 2010-06-04 19:36:10 CDT ---
Fixed in r105480. The generated code isn't as nice as it could be, but that's
a separate 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 Sat Jun 5 02:52:06 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Jun 2010 02:52:06 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5382] ScheduleDAGRRList crash in Debug+Checks build
In-Reply-To:
References:
Message-ID: <20100605075206.4EA6B3128026@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5382
Jakub Staszak changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Jakub Staszak 2010-06-05 02:52:04 CDT ---
Fixed in r104718.
--
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 Jun 5 09:19:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Jun 2010 09:19:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7308] New: Clang doesn't consider conversion
function template friends.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7308
Summary: Clang doesn't consider conversion function template
friends.
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schaub-johannes at web.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang doesn't like this, saying that "u.m_a" is private.
template
class A
{
public:
template
operator A() {
A u;
u.m_a = m_a;
return u;
}
template template
friend A::operator A();
private:
int m_a;
};
void f() {
A a = A();
}
There seems to be poor support for such friends. Comeau fails with an ICE
assertion failure and GCC doesn't like it either.
I believe this program is correct according to the Standard (however the
Standard says that you can define function template friends in the friend
declaration - this can't be true for member function templates. Sounds like the
text treats "member function template" and "member template" as being mutually
exclusive?).
If this is indeed not valid, it would seem to be a good thing to reject this
straight away when the template is parsed.
--
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 Jun 5 09:57:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Jun 2010 09:57:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7304] Partial specialize uses wrong specialization
for callsite
In-Reply-To:
References:
Message-ID: <20100605145734.654F4312800A@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7304
Kenneth Uildriks changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Kenneth Uildriks 2010-06-05 09:57:34 CDT ---
Patch by Takumi Nakamura!
--
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 Jun 5 10:00:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 5 Jun 2010 10:00:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7309] New: Objective-C: Retain-count analysis with
property assignment
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7309
Summary: Objective-C: Retain-count analysis with property
assignment
Product: clang
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: remy.demarest at gmail.com
CC: llvmbugs at cs.uiuc.edu
This is a bug concerning the dot-syntax assignment with properties:
The following bug should make the CSA display the same diagnosis for both
assignments, it only displays one for the method call and not for the property
assignment.
Code:
#import
@interface MyClass : NSObject
// retain or assign doesn't change anything
@property(nonatomic, retain) id prop;
@end
int main(int argc, char **argv)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
MyClass *obj = [[[MyClass alloc] init] autorelease];
// This line triggers a possible leak diagnosis
[obj setProp:[[NSObject alloc] init]];
// This line is strictly equivalent but doesn't trigger the leak diagnosis
obj.prop = [[NSObject alloc] init];
[pool drain];
return 0;
}
@implementation MyClass
@synthesize prop;
@end
--
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 Jun 7 10:58:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Jun 2010 10:58:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7245] Should not require copy constructor when
binding rvalue to reference
In-Reply-To:
References:
Message-ID: <20100607155825.3DD932A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7245
Jeffrey Yasskin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jeffrey Yasskin 2010-06-07 10:58:24 CDT ---
Fixed by r105529.
--
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 Jun 7 10:59:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Jun 2010 10:59:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7247] Global templates shouldn't make member
template functions ambiguous
In-Reply-To:
References:
Message-ID: <20100607155956.EDBDD2A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7247
Jeffrey Yasskin changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jeffrey Yasskin 2010-06-07 10:59:56 CDT ---
Fixed by r105518.
--
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 Jun 7 11:46:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Jun 2010 11:46:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7298] undefined references in building several SPEC
CPU2000 Fortran benchmarks
In-Reply-To:
References:
Message-ID: <20100607164612.DD48F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7298
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Duncan Sands 2010-06-07 11:46:11 CDT ---
Fixed here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100607/102268.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 Jun 7 12:00:32 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Jun 2010 12:00:32 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7310] New: Wrong ABI on ARM for classes with non
trivial copy constructors
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7310
Summary: Wrong ABI on ARM for classes with non trivial copy
constructors
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The code
-------------------
class SMLoc {
const char *Ptr;
public:
SMLoc(const SMLoc &RHS);
};
SMLoc foo(void *p);
void bar(void *x) {
foo(x);
}
------------------
Produces
declare arm_aapcscc i32 @_Z3fooPv(i8*) optsize
but
http://www.codesourcery.com/public/cxx-abi/abi.html
in 3.1.4 Return Values says
In general, C++ return values are handled just like C return values.
This includes class type results returned in registers. However, if
the return value type has a non-trivial copy constructor or
destructor, the caller allocates space for a temporary, and passes a
pointer to the temporary as an implicit first parameter preceding both
the this parameter and user parameters. The callee constructs the
return value into this temporary.
Is this also true on Darwin or should I special case this for non-Darwin
systems?
--
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 Jun 7 21:43:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Mon, 7 Jun 2010 21:43:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7310] Wrong ABI on ARM for classes with non trivial
copy constructors
In-Reply-To:
References:
Message-ID: <20100608024302.8701F2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7310
Rafael ?vila de Esp?ndola changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Rafael ?vila de Esp?ndola 2010-06-07 21:43:02 CDT ---
Fixed in 105592.
--
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 Jun 8 00:11:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 00:11:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7311] New: Invalid instcombine of vector to scalar
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7311
Summary: Invalid instcombine of vector to scalar
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: natebegeman at mac.com
CC: llvmbugs at cs.uiuc.edu
opt -instcombine < test2.ll | llvm-dis
UIToFP source and dest must both be vector or scalar
%vcvt.i = uitofp i64 %tmp8 to <2 x float> ; <<2 x float>> [#uses=1]
instcombine has turned a UIToFP from -> into i64 ->
Testcase attached.
--
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 Jun 8 02:43:10 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 02:43:10 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7312] New: Fast regalloc crash: Instruction uses an
alias of an allocated register
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7312
Summary: Fast regalloc crash: Instruction uses an alias of an
allocated register
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: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4983)
--> (http://llvm.org/bugs/attachment.cgi?id=4983)
testcase .ll
$ llc -O0 alias.ll
Instruction uses an alias of an allocated register
UNREACHABLE executed at
/home/duncan/LLVM/llvm.top/llvm/lib/CodeGen/RegAllocFast.cpp:335!
--
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 Jun 8 02:47:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 02:47:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7313] New: Fast regalloc: Ran out of registers
during register allocation!
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7313
Summary: Fast regalloc: Ran out of registers during register
allocation!
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: baldrick at free.fr
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4984)
--> (http://llvm.org/bugs/attachment.cgi?id=4984)
testcase .ll
This worked not long ago, so I'm assuming that this regression is due to fast
regalloc.
$ llc -O0 -disable-fp-elim registers.ll
LLVM ERROR: Ran out of registers during register allocation!
--
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 Jun 8 05:05:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 05:05:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7314] New: Memory accesses not optimised inside a
loop
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7314
Summary: Memory accesses not optimised inside a loop
Product: new-bugs
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: xordan at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4988)
--> (http://llvm.org/bugs/attachment.cgi?id=4988)
Example code
There seems to be a bug of some kind where loads and stores in a loop body
which could be optimised into registers aren't being done so.
I've attached some example code showing the small input function and the .ll
output.
The file was compiled using; clang.exe -cc1 -O3 -emit-llvm loop.cl
--
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 Jun 8 06:21:52 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 06:21:52 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7314] Memory accesses not optimised inside a loop
In-Reply-To:
References:
Message-ID: <20100608112152.DAB412A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7314
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #6 from Duncan Sands 2010-06-08 06:21:52 CDT ---
The loads and stores cannot be hoisted because of the possibility that src ==
dst.
--
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 Jun 8 12:29:33 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 12:29:33 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7316] New: use of memcpy intrinsic causes assertion
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7316
Summary: use of memcpy intrinsic causes assertion
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Bitcode Reader
AssignedTo: unassignedbugs at nondot.org
ReportedBy: bagel99 at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4989)
--> (http://llvm.org/bugs/attachment.cgi?id=4989)
testcase
Testcase crashes trying to verify the use of the memcpy intrinsic. I'm not sure
I've classified the component correctly.
--
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 Jun 8 12:35:09 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 12:35:09 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7317] New: assertion failed on lowering garbage
collection instructions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7317
Summary: assertion failed on lowering garbage collection
instructions
Product: new-bugs
Version: 2.6
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: paende at cs.uu.nl
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4990)
--> (http://llvm.org/bugs/attachment.cgi?id=4990)
file that triggers the failed assertion
assertion encountered while adding garbage collection support to an llvm
backend using the build in shadow stack.
following commands trigger assertion failed on attached bc file:
---------------------------------------------------------------
+ /usr/bin/llvm-as -f -o imaginary/wheel-sieve1/build/Main_plus_prelude.bc
imaginary/wheel-sieve1/build/Main_plus_prelude.ll
+ /usr/bin/opt -std-compile-opts -dce -globalsmodref-aa -ipsccp -f -o
imaginary/wheel-sieve1/build/Main_plus_prelude_opt.bc
imaginary/wheel-sieve1/build/Main_plus_prelude.bc
+ /usr/bin/llc -mtriple=x86_64-Linux-unknown -f -o
imaginary/wheel-sieve1/build/Main_plus_prelude.s
imaginary/wheel-sieve1/build/Main_plus_prelude_opt.bc
llc: /build/buildd/llvm-2.6/include/llvm/ADT/ilist.h:197: typename
bidirectional_iterator::reference
llvm::ilist_iterator::operator*() const [with NodeTy =
llvm::Instruction]: Assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing
end()!"' failed.
0 llc 0x0000000000ec915f
1 llc 0x0000000000ec994d
2 libpthread.so.0 0x00007ff5323f5190
3 libc.so.6 0x00007ff5316fa4b5 gsignal + 53
4 libc.so.6 0x00007ff5316fdf50 abort + 384
5 libc.so.6 0x00007ff5316f3481 __assert_fail + 241
6 llc 0x0000000000e2fe5d llvm::Instruction::eraseFromParent() +
125
7 llc 0x0000000000cac0e6
8 llc 0x0000000000c24803
9 llc 0x0000000000e60f45
llvm::FPPassManager::runOnFunction(llvm::Function&) + 581
10 llc 0x0000000000e61361
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 145
11 llc 0x0000000000e61571
llvm::FunctionPassManager::run(llvm::Function&) + 81
12 llc 0x00000000005399cf main + 5439
13 libc.so.6 0x00007ff5316e5abd __libc_start_main + 253
14 llc 0x0000000000537869
Stack dump:
0. Program arguments: /usr/bin/llc -mtriple=x86_64-Linux-unknown -f -o
imaginary/wheel-sieve1/build/Main_plus_prelude.s
imaginary/wheel-sieve1/build/Main_plus_prelude_opt.bc
1. Running pass 'Lower Garbage Collection Instructions' on function
'@fun_plusplus'
--------------------------------------------------
--
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 Jun 8 13:28:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 13:28:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7204] ccc-analyzer does not support gcc -imacros
option
In-Reply-To:
References:
Message-ID: <20100608182813.BF43A2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7204
Ted Kremenek changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |kremenek at apple.com
Resolution| |FIXED
--- Comment #1 from Ted Kremenek 2010-06-08 13:28:13 CDT ---
(In reply to comment #0)
> clang seems to support it, ccc-analyzer should support it lile -include (adding
> it in %CompileOptionMap ?)
Agreed. Fixed in r105624.
--
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 Jun 8 13:58:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 13:58:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7318] New: opt assertion failure after doing a
simple loop unroll
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7318
Summary: opt assertion failure after doing a simple loop unroll
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Loop Optimizer
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jgu222 at gmail.com
CC: llvmbugs at cs.uiuc.edu
A simple program (below) had an assertin when using opt -O3 -unroll-count=2.
Without -unroll-count=2, opt compiled fine.
I am using TOT llvm-gcc/llvm (6/7/2010).
%opt -version
Low Level Virtual Machine (http://llvm.org/):
llvm version 2.8svn
DEBUG build with assertions.
Built Jun 2 2010 (14:55:38).
Host: x86_64-unknown-linux-gnu
Host CPU: penryn
Registered Targets:
(none)
% llvm-gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../llvm-gcc-4.2/configure --prefix=/work/llvm_commit/install64
--enable-checking --disable-multilib --program-prefix=llvm-
--enable-llvm=/work/llvm_commit/llvm_obj64 --disable-bootstrap
--enable-languages=c,c++ : (reconfigured) ../llvm-gcc-4.2/configure
--prefix=/work/llvm_commit/install64 --enable-checking --disable-multilib
--program-prefix=llvm- --enable-llvm=/work/llvm_commit/llvm_obj64
--disable-bootstrap --enable-languages=c,c++ --no-create --no-recursion :
(reconfigured) ../llvm-gcc-4.2/configure --prefix=/work/llvm_commit/install64
--enable-checking --disable-multilib --program-prefix=llvm-
--enable-llvm=/work/llvm_commit/llvm_obj64 --disable-bootstrap
--enable-languages=c,c++ --no-create --no-recursion
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build)
-------------------------------------
%cat b.c
int foo (int *p, int n)
{
int s=0, i;
for(i=0; i < n; ++i) {
s += p[i];
}
return s;
}
%llvm-gcc -c b.c --emit-llvm
%opt -O3 -unroll-count=2 b.bc -o out.bc
Instruction does not dominate all uses!
%4 = add nsw i32 %3, %2 ; [#uses=3]
%s.0.lcssa = phi i32 [ 0, %entry ], [ %4, %bb.1 ], [ %4, %bb ] ;
[#uses=1]
Instruction does not dominate all uses!
%s.0.lcssa = phi i32 [ 0, %entry ], [ %4, %bb.1 ], [ %4, %bb ] ;
[#uses=1]
ret i32 %s.0.lcssa
Broken module found, compilation aborted!
0 opt 0x0000000000c1685c
1 opt 0x0000000000c16720
2 libpthread.so.0 0x00007f60e23f2190
3 libc.so.6 0x00007f60e16f74b5 gsignal + 53
4 libc.so.6 0x00007f60e16faf50 abort + 384
5 opt 0x0000000000bb58b9
6 opt 0x0000000000bb55d0
7 opt 0x0000000000b8ac7f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 405
8 opt 0x0000000000b8ae9c
llvm::FPPassManager::runOnModule(llvm::Module&) + 102
9 opt 0x0000000000b8b1cf
llvm::MPPassManager::runOnModule(llvm::Module&) + 459
10 opt 0x0000000000b8b70f llvm::PassManagerImpl::run(llvm::Module&)
+ 125
11 opt 0x0000000000b8bc1b llvm::PassManager::run(llvm::Module&) +
39
12 opt 0x00000000007b8eb5 main + 3597
13 libc.so.6 0x00007f60e16e2abd __libc_start_main + 253
14 opt 0x00000000007aa789
Stack dump:
0. Program arguments: opt -O3 -unroll-count=2 b.bc -o out.bc
1. Running pass 'Function Pass Manager' on module 'b.bc'.
2. Running pass 'Module Verifier' on function '@foo'
Aborted (core dumped)
--
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 Jun 8 14:50:54 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 14:50:54 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6163] Warn when comparing two arrays
In-Reply-To:
References:
Message-ID: <20100608195054.39E112A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6163
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #5 from Douglas Gregor 2010-06-08 14:50:53 CDT ---
(In reply to comment #4)
> Created an attachment (id=4965)
--> (http://llvm.org/bugs/attachment.cgi?id=4965) [details]
> array checks
>
> This time with diagnostics that don't break localization, fixed LE GE, more
> tests.
Much improved! I've committed a slightly-tweaked version here:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100607/031066.html
I removed this particular change, which doesn't seem necessary or related:
if (!lType->isFloatingType()
- && !(lType->isBlockPointerType() && isRelational)) {
+ && !lType->isBlockPointerType()) {
Also, I excluded VarDecls of reference type from the array-comparison warning,
since the result of such a comparison won't always be constant.
--
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 Jun 8 15:39:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 15:39:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7319] New: Clang rejects enum compare gcc doesn't
and prints insane candidate list
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7319
Summary: Clang rejects enum compare gcc doesn't and prints
insane candidate list
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
On this code:
---
#include
typedef enum {
Enum1,
Enum2,
Enum3
} MyEnum;
template
bool operator>(const X &inX1, const X &inX2)
{
return inX2 < inX1;
}
int main (int argc, const char * argv[]) {
MyEnum e1, e2;
if (e1 > e2)
std::cout << "its larger!\n" << std::endl;
else
std::cout << "its smaller!\n" << std::endl;
std::cout << "Done!\n" << std::endl;
return 0;
}
---
GCC accepts this code but clang rejects it. Clang also does it in a
particularly horrible way, producing:
t.cc:19:8: error: use of overloaded operator '>' is ambiguous
if (e1 > e2)
~~ ^ ~~
t.cc:10:6: note: candidate function [with X = MyEnum]
bool operator>(const X &inX1, const X &inX2)
^
t.cc:19:8: note: built-in candidate operator>(MyEnum, MyEnum)
if (e1 > e2)
^
t.cc:19:8: note: built-in candidate operator>(int, int)
t.cc:19:8: note: built-in candidate operator>(double, int)
t.cc:19:8: note: built-in candidate operator>(unsigned int, int)
t.cc:19:8: note: built-in candidate operator>(unsigned long, int)
t.cc:19:8: note: built-in candidate operator>(long double, int)
t.cc:19:8: note: built-in candidate operator>(long long, int)
t.cc:19:8: note: built-in candidate operator>(float, int)
t.cc:19:8: note: built-in candidate operator>(unsigned long long, int)
t.cc:19:8: note: built-in candidate operator>(long, int)
t.cc:19:8: note: built-in candidate operator>(int, long)
t.cc:19:8: note: built-in candidate operator>(int, long long)
t.cc:19:8: note: built-in candidate operator>(int, unsigned int)
t.cc:19:8: note: built-in candidate operator>(int, unsigned long)
t.cc:19:8: note: built-in candidate operator>(int, unsigned long long)
t.cc:19:8: note: built-in candidate operator>(int, float)
t.cc:19:8: note: built-in candidate operator>(int, double)
t.cc:19:8: note: built-in candidate operator>(int, long double)
t.cc:19:8: note: built-in candidate operator>(unsigned long long, double)
t.cc:19:8: note: built-in candidate operator>(unsigned long long, long double)
t.cc:19:8: note: built-in candidate operator>(unsigned long long, float)
t.cc:19:8: note: built-in candidate operator>(unsigned long long, unsigned long
long)
t.cc:19:8: note: built-in candidate operator>(unsigned long long, unsigned
long)
t.cc:19:8: note: built-in candidate operator>(float, long)
t.cc:19:8: note: built-in candidate operator>(float, long long)
t.cc:19:8: note: built-in candidate operator>(float, unsigned int)
t.cc:19:8: note: built-in candidate operator>(float, unsigned long)
t.cc:19:8: note: built-in candidate operator>(float, unsigned long long)
t.cc:19:8: note: built-in candidate operator>(float, float)
t.cc:19:8: note: built-in candidate operator>(unsigned long long, unsigned int)
t.cc:19:8: note: built-in candidate operator>(float, double)
t.cc:19:8: note: built-in candidate operator>(long double, long double)
t.cc:19:8: note: built-in candidate operator>(long double, double)
t.cc:19:8: note: built-in candidate operator>(long double, float)
t.cc:19:8: note: built-in candidate operator>(long double, unsigned long long)
t.cc:19:8: note: built-in candidate operator>(long double, unsigned long)
t.cc:19:8: note: built-in candidate operator>(long double, unsigned int)
t.cc:19:8: note: built-in candidate operator>(long double, long long)
t.cc:19:8: note: built-in candidate operator>(long double, long)
t.cc:19:8: note: built-in candidate operator>(double, long double)
t.cc:19:8: note: built-in candidate operator>(double, double)
t.cc:19:8: note: built-in candidate operator>(double, float)
t.cc:19:8: note: built-in candidate operator>(double, unsigned long long)
t.cc:19:8: note: built-in candidate operator>(double, unsigned long)
t.cc:19:8: note: built-in candidate operator>(double, unsigned int)
t.cc:19:8: note: built-in candidate operator>(double, long long)
t.cc:19:8: note: built-in candidate operator>(double, long)
t.cc:19:8: note: built-in candidate operator>(float, long double)
t.cc:19:8: note: built-in candidate operator>(unsigned int, long)
t.cc:19:8: note: built-in candidate operator>(long long, long double)
t.cc:19:8: note: built-in candidate operator>(long long, double)
t.cc:19:8: note: built-in candidate operator>(long long, float)
t.cc:19:8: note: built-in candidate operator>(long long, unsigned long long)
t.cc:19:8: note: built-in candidate operator>(long long, unsigned long)
t.cc:19:8: note: built-in candidate operator>(long long, unsigned int)
t.cc:19:8: note: built-in candidate operator>(long long, long long)
t.cc:19:8: note: built-in candidate operator>(long long, long)
t.cc:19:8: note: built-in candidate operator>(long, long double)
t.cc:19:8: note: built-in candidate operator>(long, double)
t.cc:19:8: note: built-in candidate operator>(long, float)
t.cc:19:8: note: built-in candidate operator>(long, unsigned long long)
t.cc:19:8: note: built-in candidate operator>(long, unsigned long)
t.cc:19:8: note: built-in candidate operator>(long, unsigned int)
t.cc:19:8: note: built-in candidate operator>(long, long long)
t.cc:19:8: note: built-in candidate operator>(long, long)
t.cc:19:8: note: built-in candidate operator>(unsigned long long, long long)
t.cc:19:8: note: built-in candidate operator>(unsigned long long, long)
t.cc:19:8: note: built-in candidate operator>(unsigned long, long double)
t.cc:19:8: note: built-in candidate operator>(unsigned long, double)
t.cc:19:8: note: built-in candidate operator>(unsigned long, float)
t.cc:19:8: note: built-in candidate operator>(unsigned long, unsigned long
long)
t.cc:19:8: note: built-in candidate operator>(unsigned long, unsigned long)
t.cc:19:8: note: built-in candidate operator>(unsigned long, unsigned int)
t.cc:19:8: note: built-in candidate operator>(unsigned long, long long)
t.cc:19:8: note: built-in candidate operator>(unsigned long, long)
t.cc:19:8: note: built-in candidate operator>(unsigned int, long double)
t.cc:19:8: note: built-in candidate operator>(unsigned int, double)
t.cc:19:8: note: built-in candidate operator>(unsigned int, float)
t.cc:19:8: note: built-in candidate operator>(unsigned int, unsigned long long)
t.cc:19:8: note: built-in candidate operator>(unsigned int, unsigned long)
t.cc:19:8: note: built-in candidate operator>(unsigned int, unsigned int)
t.cc:19:8: note: built-in candidate operator>(unsigned int, long long)
1 error 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 Jun 8 16:04:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 16:04:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7319] Clang rejects enum compare gcc doesn't and
prints insane candidate list
In-Reply-To:
References:
Message-ID: <20100608210400.53A852A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7319
Douglas Gregor changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Douglas Gregor 2010-06-08 16:03:59 CDT ---
The bug is fixed in Clang r105642. The insane candidate list is a known issue
that Jeffrey Yasskin is currently looking into.
--
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 Jun 8 16:24:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 16:24:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7320] New: #pragma GCC dependency crashes FE
without the optional trailing text
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7320
Summary: #pragma GCC dependency crashes FE without the optional
trailing text
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: nomura at netapp.com
CC: llvmbugs at cs.uiuc.edu
r105599
[cyclsvl02]$ cat a.c
#pragma GCC dependency "error.h"
error.h is just an empty file.
[cyclsvl02]$ /x/eng/build2/scratch/nomura/clang-LATEST/bin/clang a.c
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
0 clang 0x0000000001550c9f
1 clang 0x0000000001551877
2 libpthread.so.0 0x000000381100e7c0
3 libc.so.6 0x0000003810430265 gsignal + 53
4 libc.so.6 0x0000003810431d10 abort + 272
5 libstdc++.so.6 0x00000038148bec44 __gnu_cxx::__verbose_terminate_handler()
+ 276
6 libstdc++.so.6 0x00000038148bcdb6
7 libstdc++.so.6 0x00000038148bcde3
8 libstdc++.so.6 0x00000038148bceca
9 libstdc++.so.6 0x0000003814859b87 std::__throw_length_error(char const*) +
103
10 libstdc++.so.6 0x000000381489b859 std::string::_Rep::_S_create(unsigned
long, unsigned long, std::allocator const&) + 121
11 libstdc++.so.6 0x000000381489d0b1 std::string::_M_mutate(unsigned long,
unsigned long, unsigned long) + 113
12 clang 0x0000000000afd97d
13 clang 0x0000000000affaed
14 clang 0x0000000000affaed
15 clang 0x0000000000afb789
16 clang 0x0000000000aeea57
17 clang 0x0000000000adc776
18 clang 0x0000000000adcbec
19 clang 0x0000000000a87d34
20 clang 0x0000000000a9975e
21 clang 0x0000000000aa2d69
22 clang 0x0000000000aacca8
23 clang 0x0000000000aace14
24 clang 0x0000000000a9c3ed
25 clang 0x0000000000a9c6aa
26 clang 0x000000000069b61e
27 clang 0x000000000043bb74
28 clang 0x000000000043eb92
29 clang 0x000000000042d2d0
30 clang 0x0000000000432e04 main + 2724
31 libc.so.6 0x000000381041d994 __libc_start_main + 244
32 clang 0x000000000042b469
Stack dump:
0. Program arguments:
/x/eng/build_scratch2/nomura/clang-llvm_100608_0000/root/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -S -disable-free -main-file-name a.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir
/x/eng/build_scratch2/nomura/clang-llvm_100608_0000/root/lib/clang/2.0
-U__linux__ -U__linux -Ulinux -U__gnu_linux__ -D__FreeBSD__=7 -D__amd64__
-ferror-limit 19 -fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-Dq82Or.s -x c a.c
1. a.c:1:2: current parser token 'pragma'
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
[cyclsvl02]$
--
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 Jun 8 16:45:10 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 16:45:10 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7321] New: --foo=bar flags are passed to
subprocesses as "--foo= bar"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7321
Summary: --foo=bar flags are passed to subprocesses as "--foo=
bar"
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: daniel at zuster.org
ReportedBy: jyasskin at google.com
CC: llvmbugs at cs.uiuc.edu
For example:
$ echo 'int main() {}'|Debug/bin/clang -v -x c++ - -c --output=~/tmp/test.o
...
"/usr/bin/gcc" -v --output= ~/tmp/test.o -c -m64 -o ~/tmp/test.o -x assembler
/tmp/cc-zgKNml.s
gcc: ~/tmp/test.o: 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 Tue Jun 8 17:13:58 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 17:13:58 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7322] New: Windows build warnings
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7322
Summary: Windows build warnings
Product: libraries
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: micah.villmow at amd.com
CC: llvmbugs at cs.uiuc.edu
D:\hq\stg\opencl\drivers\opencl\compiler\llvm\include\llvm/CodeGen/SelectionDAGNodes.h(1602)
: warning C4244: 'return' : conversion from 'ui
nt64_t' to 'unsigned int', possible loss of data
D:\hq\stg\opencl\drivers\opencl\compiler\llvm\include\llvm/CodeGen/SelectionDAGNodes.h(1605)
: warning C4244: 'return' : conversion from 'ui
nt64_t' to 'unsigned int', possible loss of data
D:\hq\stg\opencl\drivers\opencl\compiler\llvm\include\llvm/Support/AlignOf.h(26)
: warning C4624: 'llvm::AlignmentCalcImpl' : destructor
could not be generated because a base class destructor is inaccessible
with
[
T=llvm::MachineInstr
]
D:\hq\stg\opencl\drivers\opencl\compiler\llvm\include\llvm/Support/AlignOf.h(38)
: see reference to class template instantiation 'll
vm::AlignmentCalcImpl' being compiled
with
[
T=llvm::MachineInstr
]
D:\hq\stg\opencl\drivers\opencl\compiler\llvm\include\llvm/CodeGen/MachineFunction.h(102)
: see reference to class template instanti
ation 'llvm::AlignOf' being compiled
with
[
T=llvm::MachineInstr
]
--
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 Jun 8 18:16:16 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 18:16:16 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7323] New: Tablegen should not generate switch
statements if no case lables exist
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7323
Summary: Tablegen should not generate switch statements if no
case lables exist
Product: tools
Version: 2.7
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: TableGen
AssignedTo: unassignedbugs at nondot.org
ReportedBy: micah.villmow at amd.com
CC: llvmbugs at cs.uiuc.edu
unsigned AMDILGenRegisterInfo::getSubReg(unsigned RegNo, unsigned Index) const
{
switch (RegNo) {
default:
return 0;
};
return 0;
}
D:\hq\stg\opencl\drivers\opencl\compiler\llvm\build\lib\Target\AMDIL\msvc-9.0\debug\address-model-32\link-static\runtime-link-static\AMDILGenRegisterInfo.inc(3849)
: warning C4065: switch statement contains 'default' but no 'case' labels
--
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 Jun 8 18:26:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Tue, 8 Jun 2010 18:26:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7324] New: thumb2 mode doesn't use uxtb/uxth where
expected
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7324
Summary: thumb2 mode doesn't use uxtb/uxth where expected
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: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Testcase:
define i32 @a(i32 %x, i32 %y) nounwind readnone {
entry:
%and = and i32 %x, 255 ; [#uses=1]
%and2 = and i32 %y, 65535 ; [#uses=1]
%add = add nsw i32 %and2, %and ; [#uses=1]
ret i32 %add
}
Compiled with "llc -march=thumb -mattr=+thumb2":
and r0, r0, #255
bfc r1, #16, #16
adds r0, r1, r0
bx lr
Compiled with "llc -march=thumb -mattr=+v6":
uxtb r0, r0
uxth r1, r1
adds r0, r1, r0
bx lr
I'm pretty sure that uxtb/uxth are shorter, so I'm not sure why they aren't
being used.
--
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 Jun 9 00:24:08 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 00:24:08 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7325] New: Clang too permissive with use of member
function lacking a call
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7325
Summary: Clang too permissive with use of member function
lacking a call
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
This code is ill-formed, but Clang accepts it:
struct X {
bool foo();
};
void f(X *xp) {
if (xp->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 Wed Jun 9 01:33:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 01:33:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7326] New: "cannot compile this global yet"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7326
Summary: "cannot compile this global yet"
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 fails on this:
class A {
public:
explicit A( int );
};
A const & sA123 = A( 123 );
With:
$ clang -c t.cc
t.cc:6:19: error: cannot compile this global variable that binds reference to a
non-lvalue yet
A const & sA123 = A( 123 );
^~~~~~~~
--
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 Jun 9 05:03:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 05:03:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7327] New: failed assertion while building SPEC
CPU2006's 481.wrf in dragonegg-2.7 and llvm-gcc-4.2-2.7
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7327
Summary: failed assertion while building SPEC CPU2006's 481.wrf
in dragonegg-2.7 and llvm-gcc-4.2-2.7
Product: dragonegg
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: kenneth.hoste at ugent.be
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=4993)
--> (http://llvm.org/bugs/attachment.cgi?id=4993)
minimized testcase taken from 481.wrf (original was 10k lines, now ~1k)
While building the 481.wrf SPEC CPU2006 benchmark using dragonegg-2.7 (in
combination with gcc-4.5.0), I'm running into the following assertion failure:
gfortran -fplugin=dragonegg.so -c -o module_ra_gfdleta.fppized.o -I.
-I./netcdf/include -O2 module_ra_gfdleta.fppized.f90
f951: /path/to/LLVM/2.7/dragonegg-2.7/llvm-convert.cpp:8559: static
llvm::Constant* TreeConstantToLLVM::ConvertUnionCONSTRUCTOR(tree_node*):
Assertion `(VEC_constructor_elt_base_length(((elt) ? &(elt)->base : 0))) == 1
&& "Union CONSTRUCTOR with multiple elements?"' failed.
I ran into the same problem using llvm-gcc-4.2-2.7:
gfortran -c -o module_ra_gfdleta.fppized.o -I. -I./netcdf/include -O2
module_ra_gfdleta.fppized.f90
f951: ../../llvm-gcc-4.2-2.7.source/gcc/llvm-convert.cpp:8207: static
llvm::Constant* TreeConstantToLLVM::ConvertUnionCONSTRUCTOR(tree_node*):
Assertion `(VEC_constructor_elt_base_length(((elt) ? &(elt)->base : 0))) == 1
&& "Union CONSTRUCTOR with multiple elements?"' failed.
A minimized testcase which should allow to reproduce is attached.
--
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 Jun 9 06:47:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 06:47:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7328] New: miscompare of SPEC CPU2006's 453.povray
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7328
Summary: miscompare of SPEC CPU2006's 453.povray
Product: dragonegg
Version: 2.7
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: kenneth.hoste at ugent.be
CC: llvmbugs at cs.uiuc.edu
Compiling the 453.povray SPEC CPU2006 benchmark with dragonegg-2.7 -O2 (with
gcc-4.5.0) makes the SPEC framework complain about a miscompile:
Running (#1) 453.povray test base x86-64_llvm-2.7_dragonegg_O2 default
/local/SPEC_CPU2006_v1.1_src/bin/specinvoke -d
/local/SPEC_CPU2006_v1.1_src/benchspec/CPU2006/453.povray/run/run_base_test_x86-64_llvm-2.7_dragonegg_O2.0000
-e speccmds.err -o speccmds.stdout -f speccmds.cmd -C
/local/SPEC_CPU2006_v1.1_src/bin/specinvoke -E -d
/local/SPEC_CPU2006_v1.1_src/benchspec/CPU2006/453.povray/run/run_base_test_x86-64_llvm-2.7_dragonegg_O2.0000
-c 1 -e compare.err -o compare.stdout -f compare.cmd
*** Miscompare of SPEC-benchmark.log; for details see
/local/SPEC_CPU2006_v1.1_src/benchspec/CPU2006/453.povray/run/run_base_test_x86-64_llvm-2.7_dragonegg_O2.0000/SPEC-benchmark.log.mis
*** Miscompare of SPEC-benchmark.tga; for details see
/local/SPEC_CPU2006_v1.1_src/benchspec/CPU2006/453.povray/run/run_base_test_x86-64_llvm-2.7_dragonegg_O2.0000/SPEC-benchmark.tga.mis
I've looked into the problem a bit further, and the difference in output files
stems from a failing internal check of the benchmark. I've found this in
SPEC-benchmark.log (which shouldn't be there):
"Memory leakage detected, see file 'Memory.Log' for list"
In Memory.Log, I find these:
File: bbox.cpp Line:1431 Size:40
File: bbox.cpp Line:1441 Size:24
(sizes vary for Line:1441)
This problem also occurs when povray is compiled with llvm-gcc-4.2 -O2.
The problem doesn't occur when -O0 is used, or when the benchmark is built with
gcc-4.5.0 -O2 without dragonegg, which makes me conclude the problem lies
within LLVM.
--
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 Jun 9 06:56:02 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 06:56:02 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7329] New: undefined references during linking for
SPEC CPU2006's h264ref
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7329
Summary: undefined references during linking for SPEC CPU2006's
h264ref
Product: dragonegg
Version: 2.7
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: kenneth.hoste at ugent.be
CC: llvmbugs at cs.uiuc.edu
When building the 464.h264ref SPEC CPU2006 benchmark with dragonegg-2.7 at -O2
(with gcc-4.5.0), I'm seeing these error messages at link time:
ratectl.o: In function `rc_init_pict':
ratectl.c:(.text+0xcab): undefined reference to `__builtin_lfloor'
ratectl.c:(.text+0xce7): undefined reference to `__builtin_lfloor'
ratectl.c:(.text+0xe6d): undefined reference to `__builtin_lfloor'
ratectl.c:(.text+0xea9): undefined reference to `__builtin_lfloor'
ratectl.c:(.text+0xef3): undefined reference to `__builtin_lfloor'
Duncan informed me that he was already aware of this problem, but hadn't
adressed it yet...
--
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 Jun 9 07:06:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 07:06:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7330] New: miscompile of SPEC CPU2006's 450.soplex
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7330
Summary: miscompile of SPEC CPU2006's 450.soplex
Product: dragonegg
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: kenneth.hoste at ugent.be
CC: llvmbugs at cs.uiuc.edu
Compiling the 450.soplex SPEC CPU2006 benchmark on Linux/x86-64 using
dragonegg-2.7 (with gcc-4.5.0) makes the SPEC framework complain about a
miscompile:
Running (#1) 450.soplex test base x86-64_llvm-2.7_dragonegg_O2 default
/local/SPEC_CPU2006_v1.1_src/bin/specinvoke -d
/local/SPEC_CPU2006_v1.1_src/benchspec/CPU2006/450.soplex/run/run_base_test_x86-64_llvm-2.7_dragonegg_O2.0000
-e speccmds.err -o speccmds.stdout -f speccmds.cmd -C
/local/SPEC_CPU2006_v1.1_src/bin/specinvoke -E -d
/local/SPEC_CPU2006_v1.1_src/benchspec/CPU2006/450.soplex/run/run_base_test_x86-64_llvm-2.7_dragonegg_O2.0000
-c 1 -e compare.err -o compare.stdout -f compare.cmd
*** Miscompare of test.mps.info; for details see
/local/SPEC_CPU2006_v1.1_src/benchspec/CPU2006/450.soplex/run/run_base_test_x86-64_llvm-2.7_dragonegg_O2.0000/test.mps.info.mis
*** Miscompare of test.out; for details see
/local/SPEC_CPU2006_v1.1_src/benchspec/CPU2006/450.soplex/run/run_base_test_x86-64_llvm-2.7_dragonegg_O2.0000/test.out.mis
The test.out output file shows this:
Finished solving (status=-6)
aborted due to iteration limit
solution value is: 6.0605730e+04
While, according to the model output provided by SPEC, it should be showing
something like:
Finished solving (status=1, objValue=1.727911e+05)
solution value is: 1.7279107e+05
It seems like the iterative algorithm at the core of soplex is unable to
converge.
The problem arises both at -O0 and -O2.
The issue does however not occur when the same benchmark is built using
llvm-gcc-4.2 -O2.
--
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 Jun 9 08:27:34 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 08:27:34 -0500 (CDT)
Subject: [LLVMbugs] [Bug 6836] Fix broken tests in Makefiles for platforms
without dynamic libs
In-Reply-To:
References:
Message-ID: <20100609132734.8DAC62A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=6836
Kees van Reeuwijk changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Kees van Reeuwijk 2010-06-09 08:27:34 CDT ---
Retracted, since this bug report is no longer applicable.
--
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 Jun 9 08:47:53 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 08:47:53 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7331] New: Syntax Error in exports.map
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7331
Summary: Syntax Error in exports.map
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: chobbs at qnx.com
CC: llvmbugs at cs.uiuc.edu
Having updated my llvm from subversion this morning I initiated a "make" from
the top-level llvm directory.
I got the following error:
llvm/tools/clang/tools/libclang/Debug/libclang.exports.map:92: syntax error in
VERSION script collect2: ld returned 1 exit status
I removed what appeared to be a superfluous semi-colon from line 92 and the
build then completed.
--
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 Jun 9 09:27:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 09:27:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7332] New: Assertion failed: (Arg < NumArgs && "Arg
access out of range!")
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7332
Summary: Assertion failed: (Arg < NumArgs && "Arg access out of
range!")
Product: clang
Version: trunk
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: hinokind at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4994)
--> (http://llvm.org/bugs/attachment.cgi?id=4994)
testcase
$ cat assert17-min.cc
extern "C"
char memmove();
int main() {
memmove();
}
$ clang++ assert17-min.cc
Assertion failed: (Arg < NumArgs && "Arg access out of range!"), function
getArg, file
/projects/llvm/tools/clang/lib/CodeGen/../../include/clang/AST/Expr.h, line
1436.
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name assert17-min.cc
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/2.0
-ferror-limit 19 -fmessage-length 157 -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-zuINOB.s -x c++
assert17-min.cc
1. parser at end of file
2. assert17-min.cc:3:5: LLVM IR generation of declaration 'main'
3. assert17-min.cc:3:5: Generating code for declaration 'main'
4. assert17-min.cc:3:12: LLVM IR generation of compound statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
$ clang --version
clang version 2.0 (trunk 105724)
Target: x86_64-unknown-freebsd8.0
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 Jun 9 11:37:00 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 11:37:00 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7333] New: infinite loop when compiling SPEC
CPU2006's 465.tonto
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7333
Summary: infinite loop when compiling SPEC CPU2006's 465.tonto
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: gfortran
AssignedTo: unassignedbugs at nondot.org
ReportedBy: kenneth.hoste at ugent.be
CC: llvmbugs at cs.uiuc.edu
When compiling the 465.tonto SPEC CPU2006 benchmark, the llvm-gcc-4.2 (LLVM
2.7) gfortran gets stuck
while compiling one of the Fortran source files. I've seen it running for over
2 hours and more without finishing the job. This occurs on Linux/x86-64.
gfortran trips as follows:
/path/to/LLVM/2.7/llvm-gcc-4.2-2.7/bin/gfortran -c -o atomvec.fppized.o -O2
atomvec.fppized.f90
The error does not occur at -O0, nor does it with the dragonegg-2.7 plugin for
gcc-4.5.0 at -O2.
I've tried to reduce a testcase from the atomvec.fppized.f90 file using delta,
but since it still requires 4 different modules, I don't think including it
will be of much use. Suggestions welcome.
--
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 Jun 9 12:40:15 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 12:40:15 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7334] New: clang/llvm generates undefined symbol
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7334
Summary: clang/llvm generates undefined symbol
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: stuart at apple.com
CC: llvmbugs at cs.uiuc.edu
LLVM 2.0 generates undef symbol in .s file - assembler complains
Script to replicate bug.
#!/bin/sh
set -x
# "/Xcode4/usr/bin/clang" -cc1 -triple i386-apple-darwin10.0.0 -E -disable-free
-disable-llvm-verifier -main-file-name GameEntity.mm -pic-level 1
-mdisable-fp-elim -masm-v\
erbose -target-cpu yonah -v -g -resource-dir /Xcode4/usr/lib/clang/2.0
-isysroot
/Xcode4/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk
-iquote /\
Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/GandoEngine.build/Ga\
ndoEngine-generated-files.hmap -iquote
/Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/De\
bug-iphonesimulator/GandoEngine.build/GandoEngine-project-headers.hmap -iquote.
-iquoteClasses -iquoteShaders -iquoteClasses/Box2D
-iquoteClasses/Box2D/Collision -iquoteCl\
asses/Box2D/Common -iquoteClasses/Box2D/Dynamics
-iquoteClasses/Box2D/Collision/Shapes -iquoteClasses/Box2D/Dynamics/Contacts
-iquoteClasses/Box2D/Dynamics/Joints -include\
-pth
/Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/PrecompiledHeaders/GandoEngine_Prefix-dkqiebwueekpweflhiwtyxlkhxdw/G\
andoEngine_Prefix.pch.pth -DDEBUG -D__IPHONE_OS_VERSION_MIN_REQUIRED=30200
-DTARGET_OS_IPHONE
-I/Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcuk\
kgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/GandoEngine.build/GandoEngine-own-target-headers.hmap
-I/Users/mrgando/Library/Developer/Xcode\
/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/GandoEngine.build/GandoEngine-all-target-headers.hmap
-F/\
Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Products/Debug-iphonesimulator
-I/Users/mrgando/Library/Developer/Xcode/De\
rivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Products/Debug-iphonesimulator/include
-I. -IClasses -IShaders -IClasses/Box2D -IClasses/Box2D/Collision -IClasses\
/Box2D/Common -IClasses/Box2D/Dynamics -IClasses/Box2D/Collision/Shapes
-IClasses/Box2D/Dynamics/Contacts -IClasses/Box2D/Dynamics/Joints
-I/usr/include/my_boost -I/Users/\
mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/GandoEngine.build/DerivedS\
ources/i386
-I/Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcbbiifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/Gando\
Engine.build/DerivedSources -O0 -Wno-trigraphs -Wreturn-type -Wunused-variable
-ferror-limit 19 -fmessage-length 0 -fvisibility hidden
-fdiagnostics-print-source-range-inf\
o -stack-protector 1 -fblocks -fexceptions -fobjc-nonfragile-abi
-fpascal-strings -fdiagnostics-show-option -fdiagnostics-show-category id -o
GameEntity.mii -x objective-c\
++ /Users/mrgando/Programming/iPhone/Prototypes/Gengine/Classes/GameEntity.mm
"/Xcode4/usr/bin/clang" -cc1 -triple i386-apple-darwin10.0.0 -S -disable-free
-disable-llvm-verifier -main-file-name GameEntity.mm -pic-level 1
-mdisable-fp-elim -masm-ve\
rbose -target-cpu yonah -v -g -resource-dir /Xcode4/usr/lib/clang/2.0 -O0
-Wno-trigraphs -Wreturn-type -Wunused-variable -ferror-limit 19
-fmessage-length 0 -fvisibility h\
idden -fdiagnostics-print-source-range-info -stack-protector 1 -fblocks
-fexceptions -fobjc-nonfragile-abi -fpascal-strings -fdiagnostics-show-option
-fdiagnostics-show-ca\
tegory id -o GameEntity.s -x objective-c++-cpp-output GameEntity.mii
"/Xcode4/usr/bin/clang" -cc1as -triple i386-apple-darwin10.0.0 -filetype obj
-relax-all -o
/Users/mrgando/Library/Developer/Xcode/DerivedData/GandoEngine-dbdissbvkcukkgcb\
biifbgfhrqkb/Build/Intermediates/GandoEngine.build/Debug-iphonesimulator/GandoEngine.build/Objects-normal/i386/GameEntity.o
GameEntity.s
#clang -cc1as: fatal error: error in backend: symbol
'__ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_' can not be
undefined in a subtraction expression
--
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 Jun 9 13:55:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 13:55:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7335] New: Linux compilation warnings
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7335
Summary: Linux compilation warnings
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: micah.villmow at amd.com
CC: llvmbugs at cs.uiuc.edu
gcc.compile.c++
/home/mvillmow/Source/stg/opencl/drivers/opencl/compiler/llvm/build/lib/Transforms/Utils/gcc-4.3.3/debug/address-model-32/link-static/LoopSimplify.o
compiler/llvm/lib/Transforms/Utils/LoopSimplify.cpp: In member function
?bool::LoopSimplify::ProcessLoop(llvm::Loop*, llvm::LPPassManager&)?:
compiler/llvm/lib/Transforms/Utils/LoopSimplify.cpp:134: warning: label
?ReprocessLoop? defined but not used
compiler/llvm/lib/Transforms/Utils/LoopSimplify.cpp: At global scope:
compiler/llvm/lib/Transforms/Utils/LoopSimplify.cpp:63: warning: ?NumNested?
defined but not used
--
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 Jun 9 14:19:43 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 14:19:43 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7321] --foo=bar flags are passed to subprocesses as
"--foo= bar"
In-Reply-To:
References:
Message-ID: <20100609191943.253A52A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7321
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Daniel Dunbar 2010-06-09 14:19:42 CDT ---
Fixed here:
http://llvm.org/viewvc/llvm-project?view=rev&revision=105744
--
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 Jun 9 14:27:18 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 14:27:18 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7321] --foo=bar flags are passed to subprocesses as
"--foo= bar"
In-Reply-To:
References:
Message-ID: <20100609192718.939C22A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7321
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #3 from Daniel Dunbar 2010-06-09 14:27:18 CDT ---
Actually, that's not quite right yet...
--
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 Jun 9 15:06:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 15:06:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7313] Fast regalloc: Ran out of registers during
register allocation!
In-Reply-To:
References:
Message-ID: <20100609200641.352FD2A6C12F@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7313
Jakob Stoklund Olesen changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Jakob Stoklund Olesen 2010-06-09 15:06:40 CDT ---
Fixed in r105749
--
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 Jun 9 16:41:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 16:41:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7336] New: imprecise wording in -pedantic warning
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7336
Summary: imprecise wording in -pedantic warning
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: mattjomeara at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
$uname -a
Linux xxxxxxxx 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010
x86_64 GNU/Linux
$clang -v
clang version 2.0 (trunk 105679)
Target: x86_64-unknown-linux-gnu
Thread model: posix
--------------------------------------------------------------------------
file warning_inside_struct_or_union.cc:
--------------------------------------------------------------------------
class abc { void a(){}; };
int main(int, char **){ return 0;}
--------------------------------------------------------------------------
compiling with
clang -pedantic warning_inside_struct_or_union.cc
produces the following warning:
warning_inside_struct_or_union.cc:1:23: warning: extra
';' inside a struct or union
class abc { void a(){}; };
^
1 warning generated.
I think this warning does not have precise wording: The extra ';' is
not in a 'struct or union' it is in a 'class'.
--
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 Jun 9 17:45:27 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 17:45:27 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7321] --foo=bar flags are passed to subprocesses as
"--foo= bar"
In-Reply-To:
References:
Message-ID: <20100609224527.4E8AD2A6C130@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7321
Daniel Dunbar changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Daniel Dunbar 2010-06-09 17:45:26 CDT ---
Fixed here:
http://llvm.org/viewvc/llvm-project?view=rev&revision=105763
--
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 Jun 9 18:16:47 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 18:16:47 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7337] New: -Wunused-parameter
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7337
Summary: -Wunused-parameter
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: mattjomeara at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
compiling unused_parameter_ifdef.cc (see below) with
clang -Wunused-parameter unused_parameter_ifdef.cc
produces the following warning:
unused_parameter_ifdef.cc:3:14: warning: unused parameter 'x'
[-Wunused-paramet\
er]
int a( int x ){
^
1 warning generated.
This warning should not appear as x will be used if the #ifdef USE_PARAMETER is
set.
-------------------------------------------------
file unused_parameter_ifdef.cc:
-------------------------------------------------
class abc {
int a( int x ){
#ifdef USE_PARAMETER
return x;
#else
return 0;
#endif
}
};
int main(int, char **){ return 0;}
--------------------------------------------------
$ clang -v
clang version 2.0 (trunk 105679)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ uname -a
Linux xxxxxxxx 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010
x86_64 GNU/Linux
--
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 Jun 9 19:10:50 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 19:10:50 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7338] New: '+' constraint in inline assembly
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7338
Summary: '+' constraint in inline assembly
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
Some architectures seems to support this constraint, i.e.
http://www.ethernut.de/en/documents/arm-inline-asm.html
+ Read-write operand, must be listed as an output operand
--
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 Jun 9 19:52:17 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 19:52:17 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7339] New: Function attribute position
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7339
Summary: Function attribute position
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
file.cpp:70474:13: warning: attribute declaration must precede definition
extern bool func(const void *pPtr) __attribute__((__const__));
gcc seems to allow attributes at the end of the function declaration:
^
http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gcc/Function-Attributes.html#Function-Attributes
--
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 Jun 9 20:01:14 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Wed, 9 Jun 2010 20:01:14 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7340] New: Analyzer crash due to unsupported
statement
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7340
Summary: Analyzer crash due to unsupported statement
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: reif at earthlink.net
CC: llvmbugs at cs.uiuc.edu
The following code:
#include
void foo(const std::string &s)
{
std::string _str = s;
bool b = bool(_str[0] == '_' || std::isalpha(_str[0]));
}
int main()
{
return 0;
}
produces this:
$ clang++ --analyze test.cpp
test.cpp:7:10: warning: Value stored to 'b' during its initialization is never
read
bool b = bool(_str[0] == '_' || std::isalpha(_str[0]));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clang:
/home/reif/clang/llvm/tools/clang/lib/Checker/../../include/clang/Checker/PathSensitive/CheckerVisitor.h:41:
void clang::CheckerVisitor::PreVisit(clang::CheckerContext&, const
clang::Stmt*) [with ImplClass = ::AdjustedReturnValueChecker]:
Assertion `false && "Unsupport statement."' failed.
0 clang 0x090e38e0
1 clang 0x090e3778
2 0x00b45400 __kernel_sigreturn + 0
3 libc.so.6 0x0013da82 abort + 386
4 libc.so.6 0x00133718 __assert_fail + 248
5 clang 0x085a15ef
6 clang 0x085a156d
7 clang 0x0854d79c
8 clang 0x0853b6f2
9 clang 0x085447c2
10 clang 0x0853dbb8
11 clang 0x085450ec
12 clang 0x0853db32
13 clang 0x0853d2f4
14 clang 0x085356e6
15 clang 0x0853653d
16 clang 0x08535bb3
17 clang 0x081662b8
18 clang 0x0816330b
19 clang 0x08163402
20 clang 0x08163488
21 clang 0x08163075
22 clang 0x08162ade
23 clang 0x082f38e7
24 clang 0x08098a2a
25 clang 0x08098693
26 clang 0x08084c14
27 clang 0x0804ec2f
28 clang 0x0805754b main + 365
29 libc.so.6 0x00126bd6 __libc_start_main + 230
30 clang 0x0804d5e1
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu
-analyze -disable-free -main-file-name test.cpp -analyzer-store=region
-analyzer-opt-analyze-nested-blocks -analyzer-check-dead-stores
-analyzer-check-objc-mem -analyzer-eagerly-assume
-analyzer-check-objc-methodsigs -analyzer-check-objc-unused-ivars
-analyzer-output plist -w -mrelocation-model static -mdisable-fp-elim
-mconstructor-aliases -target-cpu pentium4 -resource-dir
/usr/local/lib/clang/2.0 -ferror-limit 19 -fmessage-length 207 -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o test.plist -x
c++ test.cpp
1. parser at end of file
2. test.cpp:7:5: Error evaluating statement
3. test.cpp:7:5: Error evaluating statement
4. test.cpp:7:14: Error evaluating statement
clang: error: clang frontend 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 Jun 10 02:21:26 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 02:21:26 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7341] New: Crashing on structure initialization
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7341
Summary: Crashing on structure initialization
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: david.majnemer at gmail.com
CC: llvmbugs at cs.uiuc.edu
The following code crashes clang by blowing an assert in
ConstStructBuilder::BuildStruct:
struct foo {
int : 9;
int a : 1;
} bar = { 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 Jun 10 02:31:12 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 02:31:12 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7342] New: Segfault when compiling with
optimizations
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7342
Summary: Segfault when compiling with optimizations
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bwy at benjaminwolsey.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Created an attachment (id=4998)
--> (http://llvm.org/bugs/attachment.cgi?id=4998)
Preprocessed source
The following code consistently fails to compile with -O2 or -O3. I've reduced
the case as far as possible.
Output:
1. parser at end of file
2. Code generation
3. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_ZN4TestC2Ev'
#include
#include
namespace {
struct A { };
}
struct Test
{
Test();
std::deque > x;
};
Test::Test() {}
--
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 Jun 10 04:01:53 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 04:01:53 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7343] New: Friend declaration is ignored
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7343
Summary: Friend declaration is ignored
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bjorn at topel.se
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following code snippet (which works for GCC 4.5 and VC 7):
functor.cc:
template
struct Functor {
};
class Class {
struct Inner {
int a_;
};
friend struct Functor;
};
template <>
struct Functor {
int operator() (Class::Inner const & key) const
{
return key.a_;
}
};
yields:
functor.cc:14:23: error: 'Inner' is a private member of 'Class'
struct Functor {
^
functor.cc:6:12: note: declared private here
struct Inner {
^
1 error 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 Thu Jun 10 04:07:31 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 04:07:31 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7344] New: Clang assertion failure when casting
void* to unsigned long
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7344
Summary: Clang assertion failure when casting void* to unsigned
long
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: u3950692 at anu.edu.au
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I was trying to compile the DynInst project (dyninst.org) with clang. However,
it choked - I have reduced the offending file to the following code:
void serialize_annotatable_id( void*& id )
{
unsigned long l_id = (unsigned long&)id;
}
The error output from clang (downloaded from trunk and built in release mode
today, 10th of June 2010) is:
$ clang++ -v -o /dev/null ../src/serialize-bin-bug.C
clang version 2.0 (trunk 105783)
Target: i386-pc-linux-gnu
Thread model: posix
"/usr/local/bin/clang" -cc1 -triple i386-pc-linux-gnu -S -disable-free
-main-file-name serialize-bin-bug.C -mrelocation-model static -mdisable-fp-elim
-mconstructor-aliases -target-cpu pentium4 -v -resource-dir
/usr/local/lib/clang/2.0 -ferror-limit 19 -fmessage-length 172 -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-bUDkLI.s
-x c++ ../src/serialize-bin-bug.C
clang -cc1 version 2.0 based upon llvm 2.8svn hosted on i386-pc-linux-gnu
ignoring nonexistent directory "/usr/include/c++/4.4"
< skipped other nonexistent directory messages >
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/i686-pc-linux-gnu
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include/g++-v4/backward
/usr/local/include
/usr/local/lib/clang/2.0/include
/usr/include
End of search list.
clang: Instructions.cpp:2649: llvm::BitCastInst::BitCastInst(llvm::Value*,
const llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion
`castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed.
0 clang 0x08e9b068
Stack dump:
0. Program arguments: /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu
-S -disable-free -main-file-name serialize-bin-bug.C -mrelocation-model static
-mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -v -resource-dir
/usr/local/lib/clang/2.0 -ferror-limit 19 -fmessage-length 172 -fexceptions
-fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-bUDkLI.s
-x c++ ../src/serialize-bin-bug.C
1. parser at end of file
2. ../src/serialize-bin-bug.C:1:6: LLVM IR generation of declaration
'serialize_annotatable_id'
3. ../src/serialize-bin-bug.C:1:6: Generating code for declaration
'serialize_annotatable_id'
4. ../src/serialize-bin-bug.C:2:1: LLVM IR generation of compound
statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)
Reproducable: Always
Expected Result: No assertion.
--
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 Jun 10 13:33:39 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 13:33:39 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7345] New: clang.llvm.org cannot be navigated with
a small window
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7345
Summary: clang.llvm.org cannot be navigated with a small window
Product: Website
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: General Website
AssignedTo: unassignedbugs at nondot.org
ReportedBy: arplynn at gmail.com
CC: llvmbugs at cs.uiuc.edu
The menu at the left of http://clang.llvm.org does not scroll; as a result, on
a window where it is partially hidden, some parts of the website will not be
accessible.
--
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 Jun 10 13:43:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 13:43:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7346] New: operator delete not seen in derived class
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7346
Summary: operator delete not seen in derived class
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: John.Thompson.JTSoftware at gmail.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5004)
--> (http://llvm.org/bugs/attachment.cgi?id=5004)
The code.
In the following, the derived class has a static void operator delete(void
*pPtr) member, but it doesn't seem to be seen. The base class does not have
it. Or do overloads need to match the base class?
Code:
class object
{
public:
static void * operator new(unsigned int numBytes, unsigned int memPurpose,
unsigned int alignment);
static void operator delete(void *pPtr, unsigned int memPurpose, unsigned int
alignment);
static void * operator new[](unsigned int numBytes, unsigned int memPurpose,
unsigned int alignment);
static void operator delete[](void *pPtr, unsigned int memPurpose, unsigned
int alignment);
inline static void * operator new(unsigned int numBytes, void *pPlacement) {
(void)&numBytes; return pPlacement; }
inline static void operator delete(void *pPtr, void *pPlacement) {
(void)&pPtr; (void)&pPlacement; }
public:
object();
~object();
unsigned int m_checkValue;
unsigned int m_classID;
};
class media : public object
{
protected:
media(const char *pPrimaryIdentifier);
public:
virtual ~media();
static void * operator new(unsigned int numBytes);
static void operator delete(void *pPtr);
static void * operator new[](unsigned int numBytes);
static void operator delete[](void *pPtr);
static void * operator new(unsigned int numBytes, unsigned int memPurpose) ;
static void operator delete(void *pPtr, unsigned int memPurpose);
static void * operator new[](unsigned int numBytes, unsigned int memPurpose);
static void operator delete[](void *pPtr, unsigned int memPurpose);
static void * operator new(unsigned int numBytes, void *pPlacement);
static void operator delete(void *pPtr, void *pPlacement);
};
Output:
C:\Sony\Clang\exp>clang -cc1 delete1.cpp
delete1.cpp:22:10: error: no suitable member 'operator delete' in 'media'
virtual ~media();
^
delete1.cpp:5:14: note: member 'operator delete' declared here
static void operator delete(void *pPtr, unsigned int memPurpose, unsigned int
alignment);
^
delete1.cpp:9:21: note: member 'operator delete' declared here
inline static void operator delete(void *pPtr, void *pPlacement) {
(void)&pPtr; (void)&pPlacement; }
^
1 error 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 Thu Jun 10 13:55:28 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 13:55:28 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7347] New: bad diagnostic for explicit
instantiation through a typedef
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7347
Summary: bad diagnostic for explicit instantiation through a
typedef
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=5006)
--> (http://llvm.org/bugs/attachment.cgi?id=5006)
demo of problem
This came up in Skia, which is a library used by Chrome.
The crux is that
typedef C CChar;
template int CChar::x; // fails
template int C::x; // ok
and the error message isn't too helpful.
See attached for code to build with -fsyntax-only.
--
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 Jun 10 14:24:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 14:24:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7348] New: Compiling a file results in sig11
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7348
Summary: Compiling a file results in sig11
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: moonshine at kapsi.fi
CC: llvmbugs at cs.uiuc.edu
With command: clang -O -c kernel.i
The compiler crashes after about two minutes of compilation (clang: error:
clang frontend command failed due to signal 11 (use -v to see invocation)) Gcc
-O2 compiles this same code in 13 seconds (successfully). This is
machine-generated code with only one very large function in the file.
--
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 Jun 10 15:37:55 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 15:37:55 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7349] New: -P flag strips all whitespace from
preprocessed output
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7349
Summary: -P flag strips all whitespace from preprocessed output
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=5009)
--> (http://llvm.org/bugs/attachment.cgi?id=5009)
sample showing the problem
clang -E -P -x c++ clang-bug.cc
$ gcc -E -P -x c++ clang-bug.cc | wc -l
6
$ clang -E -P -x c++ clang-bug.cc | wc -l
3
WebKit relies on the whitespace in the output (!) in a perl script.
WebKit seems a bit crazy to me here, but perhaps it's worth making clang match
gcc.
Revision: 105793
--
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 Jun 10 16:05:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 16:05:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7350] New: Crash compiling ObjC class with struct
ivar containing anonymous union
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7350
Summary: Crash compiling ObjC class with struct ivar containing
anonymous union
Product: clang
Version: unspecified
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bugzilla.llvm.j at ayton.se
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5010)
--> (http://llvm.org/bugs/attachment.cgi?id=5010)
Test case
Using apple-clang 1.0.2, whatever that is in real version numbers, I get a
consistent crash when compiling an Objective-C class which has an instance
variable which is a struct containing an anonymous union. (See attachment.)
Output:
0 clang-cc 0x0000000100a8f592
1 clang-cc 0x0000000100a8fc06
2 libSystem.B.dylib 0x00007fff82d1680a _sigtramp + 26
3 libSystem.B.dylib 0x0000000100d26af0 _sigtramp + 2113995520
4 clang-cc 0x0000000100316b47
5 clang-cc 0x00000001000d38c6
6 clang-cc 0x00000001000d4243
7 clang-cc 0x00000001000d3868
8 clang-cc 0x00000001000dbc95
9 clang-cc 0x00000001000f4033
10 clang-cc 0x00000001000f4b12
11 clang-cc 0x000000010010a026
12 clang-cc 0x000000010011351c
13 clang-cc 0x00000001000226fa
14 clang-cc 0x00000001001d5585
15 clang-cc 0x00000001000674cc
16 clang-cc 0x000000010006ade9
17 clang-cc 0x0000000100015a78
Stack dump:
0. Program arguments: /Developer/usr/bin/../libexec/clang-cc -triple
x86_64-apple-darwin10 -S -disable-free -main-file-name
anon_union_struct_objc_class_crash.m --relocation-model pic -pic-level=1
--disable-fp-elim --unwind-tables=1 --mcpu=core2 --fmath-errno=0
-mmacosx-version-min=10.5 -g -isysroot /Developer/SDKs/MacOSX10.6.sdk -iquote
-generated-files.hmap -iquote -project-headers.hmap -include-pch
/var/folders/VF/VFzLnnQ9GHSra88EddQRXE+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/_Prefix-amoyqdgxngwegvaqnzimlpkpvmmv/_Prefix.pch.pth
-I-own-target-headers.hmap -I-all-target-headers.hmap
-F/build/Debug -I/Debug/include -I.build/DerivedSources/x86_64
-I.build/DerivedSources -O0 -Wno-trigraphs -Wreturn-type -Wunused-variable
-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -std=gnu99
-fmessage-length=0 -fobjc-gc-only -fdiagnostics-print-source-range-info
-fpascal-strings -fdiagnostics-show-option -o
/var/folders/VF/VFzLnnQ9GHSra88EddQRXE+++TI/-Tmp-/cc-F9hCmK.s -x objective-c
//anon_union_struct_objc_class_crash.m
1. parser at end of file
2. /anon_union_struct_objc_class_crash.m:17:1: LLVM IR generation of
declaration 'AClass'
--
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 Jun 10 16:49:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 16:49:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7351] New: Bad recovery from "redefinition of 'x'
with a different type"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7351
Summary: Bad recovery from "redefinition of 'x' with a
different 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: jyasskin at google.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
When we find a redefinition of a name with a new type, we should recover by
hiding the old variable and proceeding with the name bound to the new type.
That is, in the following example, the last 2 diagnostics shouldn't happen.
$ cat test2.cc
int foo(int *ids_begin, int *ids_end) {
for (int *id = ids_begin; id != ids_end; ++id) {
int id = *id;
if (id != 7)
return id;
}
return 0;
}
$ ./clang++ -fsyntax-only test2.cc
test2.cc:3:13: error: redefinition of 'id' with a different type
int id = *id;
^
test2.cc:2:15: note: previous definition is here
for (int *id = ids_begin; id != ids_end; ++id) {
^
test2.cc:4:16: warning: comparison between pointer and integer ('int *' and
'int')
if (id != 7)
~~ ^ ~
test2.cc:5:20: error: cannot initialize return object of type 'int' with an
lvalue of type 'int *'
return id;
^~
1 warning and 2 errors 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 Thu Jun 10 18:34:59 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Thu, 10 Jun 2010 18:34:59 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7352] New: x86/llvm-mc missing instructions
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7352
Summary: x86/llvm-mc missing instructions
Product: new-bugs
Version: unspecified
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: astrange at ithinksw.com
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5011)
--> (http://llvm.org/bugs/attachment.cgi?id=5011)
testcase
> /Xcode4/usr/bin/clang -v
Apple clang version 2.0 (tags/Apple/clang-107.1)
Target: x86_64-apple-darwin10
Thread model: posix
Attached file has 5 inline asm instructions which compile with standard as but
fail to assemble with clang/llvm-mc.
> gcc -c asmtests.c
> clang -c asmtests.c
:1:2: error: unrecognized instruction
add $1, 1(%esp)
^
asmtests.c:4:19: note: generated from here
asm volatile ("add $1, 1(%esp) \n");
^
:1:9: error: unknown token in expression
lea 1+(%eax), %ebx
^
asmtests.c:10:19: note: generated from here
asm volatile ("lea 1+(%eax), %ebx \n");
^
:1:2: error: unrecognized instruction
pavgusb %mm1, %mm0
^
asmtests.c:16:19: note: generated from here
asm volatile ("pavgusb %mm1, %mm0 \n");
^
:1:2: error: unrecognized instruction
jmp *1(%esp)
^
asmtests.c:22:19: note: generated from here
asm volatile ("jmp *1(%esp) \n");
^
:1:2: error: unrecognized instruction
prefetch (%eax)
^
asmtests.c:28:19: note: generated from here
asm volatile ("prefetch (%eax) \n");
^
5 errors generated.
These are all required to compile FFmpeg.
--
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 Jun 11 03:42:24 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 03:42:24 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7353] New: Undefined symbol '__ZNSbIcED1Ev' when
using extern templates and -fvisibility-hidden
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7353
Summary: Undefined symbol '__ZNSbIcED1Ev' when using extern
templates and -fvisibility-hidden
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Reduced testcase (this was a 500k file, hooray for delta):
$ cat file.pp.mm
namespace std {
template class basic_string {
public:
~basic_string() {}
};
extern template class basic_string;
}
std::basic_string kEmptyString;
$ /Users/thakis/src/llvm/Release/bin/clang++ -fvisibility=hidden -c file.pp.mm
fatal error: error in backend: symbol '__ZNSbIcED1Ev' can not be undefined in a
subtraction expression
The message is written by llvm/lib/MC/MachObjectWriter.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 Fri Jun 11 04:38:25 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 04:38:25 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7354] New: False positive due to lack of knowledge
about sizeof()
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7354
Summary: False positive due to lack of knowledge about sizeof()
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,
I think I spotted a false positive, involving sizeof. Report is here:
https://www.spoerlein.net/scan-build/freebsd-head/bin.pax/2010-06-05-1/report-jkFr8u.html#EndPath
The code is:
1262 for (i = 0; i < steps; ++i) {
3 Loop condition is true. Entering loop body
1263 end = pt + sizeof(u_int);
1264 dest = (char *)&val;
1265 while (pt < end)
4 Loop condition is false. Execution continues on line 1267
1266 *dest++ = *pt++;
1267 key += val;
5 Assigned value is garbage or undefined
1268 }
And the problem AFAICS is step 4, where it thinks pt can be >= end, which
should be impossible due to line 1263.
I'm not sure if sizeof() can ever return 0, but at least for u_int it can't :)
Regards,
Uli
--
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 Jun 11 04:46:51 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 04:46:51 -0500 (CDT)
Subject: [LLVMbugs] [Bug 4620] False positive: insufficient tracking of loop
variables
In-Reply-To:
References:
Message-ID: <20100611094651.6A44A2A6C12C@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=4620
uspoerlein at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from uspoerlein at gmail.com 2010-06-11 04:46:50 CDT ---
This no longer triggers
--
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 Jun 11 05:21:35 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 05:21:35 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7355] New: Assertion failed: (DefinitionData &&
"queried property of class with no definition"), function data, file
/Users/thakis/src/llvm/tools/clang/lib/Sema/../../include/clang/AST/DeclCXX.h,
line 364.
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7355
Summary: Assertion failed: (DefinitionData && "queried property
of class with no definition"), function data, file
/Users/thakis/src/llvm/tools/clang/lib/Sema/../../incl
ude/clang/AST/DeclCXX.h, line 364.
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
$ cat crash.mm
template class A {
class D;
D d;
};
$ /Users/thakis/src/llvm/Release/bin/clang++ -v -c crash.mm
clang version 2.0 (trunk 105794)
Target: i386-apple-darwin9
Thread model: posix
"/Users/thakis/src/llvm/Release/bin/clang" -cc1 -triple i386-apple-darwin9.0.0
-emit-obj -mrelax-all -disable-free -main-file-name crash.mm -pic-level 1
-mdisable-fp-elim -masm-verbose -target-cpu yonah -v -resource-dir
/Users/thakis/src/llvm/Release/lib/clang/2.0 -ferror-limit 19 -fmessage-length
127 -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o crash.o -x
objective-c++ crash.mm
clang -cc1 version 2.0 based upon llvm 2.8svn hosted on i386-apple-darwin9
ignoring nonexistent directory "/usr/include/c++/4.2.1"
ignoring nonexistent directory "/usr/include/c++/4.2.1/i686-apple-darwin10/"
ignoring nonexistent directory "/usr/include/c++/4.2.1/backward"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/4.0.0
/usr/include/c++/4.0.0/i686-apple-darwin8
/usr/include/c++/4.0.0/backward
/usr/local/include
/Users/thakis/src/llvm/Release/lib/clang/2.0/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
Assertion failed: (DefinitionData && "queried property of class with no
definition"), function data, file
/Users/thakis/src/llvm/tools/clang/lib/Sema/../../include/clang/AST/DeclCXX.h,
line 364.
0 clang 0x015140b8 main + 22059384
1 clang 0x01514e16 main + 22062806
2 libSystem.B.dylib 0x938812bb _sigtramp + 43
3 libSystem.B.dylib 0xffffffff _sigtramp + 1819798895
4 libSystem.B.dylib 0x938f523a raise + 26
5 libSystem.B.dylib 0x93901679 abort + 73
6 libSystem.B.dylib 0x938f63db __assert_rtn + 101
7 clang 0x0036a9cd main + 3539597
8 clang 0x0036ab87 main + 3540039
9 clang 0x003a6d26 main + 3786214
10 clang 0x007a6014 main + 7977172
11 clang 0x007a8da9 main + 7988841
12 clang 0x007aa777 main + 7995447
13 clang 0x0079a530 main + 7929328
14 clang 0x007e792c main + 8245740
15 clang 0x007eb181 main + 8260161
16 clang 0x007eb514 main + 8261076
17 clang 0x007a15c5 main + 7958149
18 clang 0x007f7d8e main + 8312398
19 clang 0x007f8114 main + 8313300
20 clang 0x003018d0 main + 3109264
21 clang 0x000636a4 main + 364388
22 clang 0x00034597 main + 171607
23 clang 0x0003889e main + 188766
24 clang 0x00003ffc _mh_execute_header + 12284
25 clang 0x0000b3fe main + 3262
26 clang 0x00002536 _mh_execute_header + 5430
Stack dump:
0. Program arguments: /Users/thakis/src/llvm/Release/bin/clang -cc1 -triple
i386-apple-darwin9.0.0 -emit-obj -mrelax-all -disable-free -main-file-name
crash.mm -pic-level 1 -mdisable-fp-elim -masm-verbose -target-cpu yonah -v
-resource-dir /Users/thakis/src/llvm/Release/lib/clang/2.0 -ferror-limit 19
-fmessage-length 127 -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-o crash.o -x objective-c++ crash.mm
1. crash.mm:3:6: current parser token ';'
2. crash.mm:1:23: parsing struct/union/class body 'A'
clang: error: clang frontend 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 Jun 11 06:45:24 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 06:45:24 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7356] New: Internal error in jump threading
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7356
Summary: Internal error in jump threading
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: moonshine at kapsi.fi
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5012)
--> (http://llvm.org/bugs/attachment.cgi?id=5012)
a self-contained testcase
This is a machine-generated file with only one very large function.
clang -O -c io.i
clang: BasicBlockUtils.cpp:398: llvm::BasicBlock*
llvm::SplitBlockPredecessors(llvm::BasicBlock*, llvm::BasicBlock* const*,
unsigned int, const char*, llvm::Pass*): Assertion
`!isa(Preds[i]->getTerminator()) && "Cannot split an edge from
an IndirectBrInst"' failed.
0 clang 0x08f6a0d7
Stack dump:
0. Program arguments: /home/misty/gcc/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name io.i -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4
-resource-dir /home/misty/gcc/lib/clang/2.0 -O2 -ferror-limit 19
-fmessage-length 80 -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics
-o /tmp/cc-ZH6ozG.s -x cpp-output io.i
1. parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module 'io.i'.
4. Running pass 'Jump Threading' on function '@___H__20___io'
clang: error: clang frontend 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 Jun 11 11:14:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 11:14:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7357] New: simplify-libcalls produces declarations
without a calling convention
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7357
Summary: simplify-libcalls produces declarations without a
calling convention
Product: libraries
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Scalar Optimizations
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
given
------------------------------------------------------------------
; ModuleID = 'test.ll'
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 = "armv5-none-linux-gnueabi"
@.str1 = private constant [11 x i8] c"(){};[]&|:\00", align 4
define arm_aapcscc i32 @foo(i32 %argc) nounwind {
bb.nph:
call arm_aapcscc i8* @strchr(i8* getelementptr ([11 x i8]* @.str1, i32 0,
i32 0), i32 %argc) nounwind readonly
ret i32 0
}
declare arm_aapcscc i8* @strchr(i8*, i32) nounwind readonly
----------------------------------------------------------------
opt -simplify-libcalls -S test.ll -o test2.ll
will produce
declare i8* @memchr(i8*, i32, i32) nounwind readonly
I think there are two ways we could fix this. First is get simplify-libcalls to
ask the target for the calling convention. The second one is to have it
preserve the calling convention of the function it is replacing.
--
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 Jun 11 12:26:30 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 12:26:30 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7359] New: 'spurious "switch condition has bool
value" warning'
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7359
Summary: 'spurious "switch condition has bool value" warning'
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: greearb at candelatech.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
#include
#ifndef static_assert
#define static_assert(a) switch ((int)(a)) case 0: case ((int)(a)):
#endif /* static_assert */
int main() {
static_assert(sizeof(int) == sizeof(unsigned int));
return 0;
}
[greearb at grok2 ~]$ clang++ -Os clang_test2.cc
clang_test2.cc:10:4: warning: switch condition has boolean value
static_assert(sizeof(int) == sizeof(unsigned int));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clang_test2.cc:5:26: note: instantiated from:
#define static_assert(a) switch ((int)(a)) case 0: case ((int)(a)):
^ ~~~~~~~~
1 warning generated.
[greearb at grok2 ~]$
// This is a work-around:
//#define static_assert(a) switch ((a) + 0) case 0: case ((a) + 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 Fri Jun 11 15:07:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 15:07:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7324] thumb2 mode doesn't use uxtb/uxth where
expected
In-Reply-To:
References:
Message-ID: <20100611200741.B706A2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7324
Evan Cheng changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #2 from Evan Cheng 2010-06-11 15:07:41 CDT ---
This should be considered as correct. Looks like these instructions are not
available on all Thumb2 variants so you either need to specify the attribute
t2xtpk or a cpu to get these.
--
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 Jun 11 15:18:57 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 15:18:57 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7324] thumb2 mode doesn't use uxtb/uxth where
expected
In-Reply-To:
References:
Message-ID: <20100611201857.A3BDC2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7324
Brian G. Lucas changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |
--- Comment #3 from Brian G. Lucas 2010-06-11 15:18:57 CDT ---
I respectfully disagree. There are CPUs, e.g. the cortex-m3, that implement
SXTB, SXTH, UXTB, UXTH but *not* SXTB16, UXTB16, SXTAB, UXTAB,SXTAH, UXTAH,
SXTAB16, UXTAB16. Currently, there is but one predicate, HasT2ExtractPack,
that enables *all* of them. So if there are T2 variants that don't have SXTB,
SXTH, UXTB, UXTH, then we need another predicate to enable them and turn it on
for the cortex-m3.
In fact the cortex-Mx series will eventually require several more predicates.
Right now the cortex-m3 support is just wrong.
--
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 Jun 11 19:18:56 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 19:18:56 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7361] New: Top-level macros are not being analyzed
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7361
Summary: Top-level macros are not being analyzed
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: jediknil at belkadan.com
CC: llvmbugs at cs.uiuc.edu
The following example should generate a warning but does not:
typedef typeof(sizeof(int)) size_t;
void *malloc(size_t);
#define MAKE_TEST_FN() \
void test (unsigned a) {\
char* b = malloc(1);\
}
MAKE_TEST_FN() // expected-warning{{leak}}
--
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 Jun 11 20:56:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 20:56:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7359] 'spurious "switch condition has bool value"
warning'
In-Reply-To:
References:
Message-ID: <20100612015619.536052A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7359
John McCall changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rjmccall at apple.com
Resolution| |FIXED
--- Comment #2 from John McCall 2010-06-11 20:56:19 CDT ---
Fixed in r105871.
--
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 Jun 11 21:53:37 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Fri, 11 Jun 2010 21:53:37 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5678] [extension] variable length arrays are not
permitted in C++ in GNU mode.
In-Reply-To:
References:
Message-ID: <20100612025337.0476F2A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5678
Yuri changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
--- Comment #10 from Yuri 2010-06-11 21:53:36 CDT ---
No, its not completely solved, with r105825 I see the errors with non-POD
types:
--- testcase ---
struct C {
C() {
}
};
int cnt();
void f() {
const int num = cnt();
struct MyRec {
C cc;
} c[num];
}
--- output ---
ex.C:12:6: error: variable length array of non-POD element type 'struct MyRec'
} c[num];
^
1 error 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 Sat Jun 12 09:34:28 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Jun 2010 09:34:28 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7362] New: A function with computed goto is
compiled slowly and produces a large object file
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7362
Summary: A function with computed goto is compiled slowly and
produces a large object file
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: moonshine at kapsi.fi
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5016)
--> (http://llvm.org/bugs/attachment.cgi?id=5016)
a self-contained testcase
$ time gcc -O2 -c -o vm_gcc.o vm.i
real 0m13.378s
user 0m12.248s
sys 0m0.264s
$ time clang -O2 -c -o vm_clang.o vm.i
real 1m34.942s
user 1m3.066s
sys 0m25.986s
$ size vm_gcc.o vm_clang.o
text data bss dec hex filename
74704 640 164 75508 126f4 vm_gcc.o
525331 2688 145 528164 80f24 vm_clang.o
This file is from a development version of Guile, which can be built with
clang, but due to this bug it runs at least five times slower than gcc-compiled
version.
--
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 Jun 12 10:30:23 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Jun 2010 10:30:23 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7363] New: fail on trivial program with message
" parser at end of file"
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7363
Summary: fail on trivial program with message " parser at
end of file"
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: dimhen at gmail.com
CC: llvmbugs at cs.uiuc.edu
[root at wellesberg clang_errs]# clang --version
clang version 2.0 (trunk 105882)
Target: i386-pc-linux-gnu
Thread model: posix
[root at wellesberg clang_errs]# cat eof.c
#include
void foo()
{
}
[root at wellesberg clang_errs]# scan-build gcc -c eof.c
scan-build: 'clang' executable not found in
'/usr/src/llvm/tools/clang/tools/scan-build/bin'.
scan-build: Using 'clang' from path: /usr/src/llvm/Release/bin/clang
clang: RegionStore.cpp:1373:
clang::SVal::RegionStoreManager::RetrieveArray(const void*, const
clang::TypedRegion*): Assertion
`isa(R->getValueType(getContext()))' failed.
0 clang 0x08e067f8
Stack dump:
0. Program arguments: /usr/src/llvm/Release/bin/clang -cc1
-DIBOutlet=__attribute__((iboutlet)) -cc1 -triple i386-pc-linux-gnu
-fsyntax-only -disable-free -main-file-name eof.c -mrelocation-model static
-mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4 -resource-dir
/usr/src/llvm/Release/lib/clang/2.0 -ferror-limit 19 -fmessage-length 0
-fgnu-runtime -fdiagnostics-show-option -x c eof.c -analyze
-analyzer-display-progress -analyzer-eagerly-assume
-analyzer-opt-analyze-nested-blocks -analyzer-check-objc-mem
-analyzer-check-security-syntactic -analyzer-check-dead-stores
-analyzer-check-objc-unused-ivars -analyzer-check-objc-methodsigs
-analyzer-store=region -analyzer-constraints=range -analyzer-output=html -o
/tmp/scan-build-2010-06-12-1
1. parser at end of file
scan-build: 0 bugs found.
scan-build: The analyzer encountered problems on some source files.
scan-build: Preprocessed versions of these sources were deposited in
'/tmp/scan-build-2010-06-12-1/failures'.
scan-build: Please consider submitting a bug report using these files:
scan-build: http://clang.llvm.org/StaticAnalysisUsage.html#filingbugs
--
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 Jun 12 10:47:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Jun 2010 10:47:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 5678] [extension] variable length arrays are not
permitted in C++ in GNU mode.
In-Reply-To:
References:
Message-ID: <20100612154741.8C9122A6C12D@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=5678
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
--- Comment #11 from Chris Lattner 2010-06-12 10:47:41 CDT ---
We do not intend to support non-pod types.
--
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 Jun 12 11:02:45 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Jun 2010 11:02:45 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7345] clang.llvm.org cannot be navigated with a
small window
In-Reply-To:
References:
Message-ID: <20100612160245.E23872A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7345
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-06-12 11:02:45 CDT ---
Yeah, I think something more like lldb.llvm.org might be the right answer.
*** This bug has been marked as a duplicate of bug 4012 ***
--
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 Jun 12 11:23:46 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Jun 2010 11:23:46 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7349] -P flag strips all whitespace from
preprocessed output
In-Reply-To:
References:
Message-ID: <20100612162346.6A0B62A6C12E@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7349
Chris Lattner changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #2 from Chris Lattner 2010-06-12 11:23:46 CDT ---
Gross, but fixed :)
*** This bug has been marked as a duplicate of bug 7360 ***
--
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 Jun 12 15:33:05 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Jun 2010 15:33:05 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7364] New: #pragma pack(1) needs to be supported
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7364
Summary: #pragma pack(1) needs to be supported
Product: clang
Version: trunk
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: yuri at tsoft.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
This is used a lot in c++ code and needs to be supported to facilitate clang++
adoption.
--
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 Jun 12 16:10:29 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Jun 2010 16:10:29 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7365] New: addr2line/gdb fail to show line
information and source code
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7365
Summary: addr2line/gdb fail to show line information and source
code
Product: clang
Version: 2.7
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: luca.barbieri at gmail.com
CC: llvmbugs at cs.uiuc.edu
clang with -g -O0 seems to either produce wrong debug information, or trigger a
bug in binutils/libbfd (assuming my system isn't somehow broken).
Note that it seems to only trigger in some cases: removing the infinite loop in
main makes things work.
This also happens on larger programs and using gdb.
Changing binutils and clang versions did not seem to help.
Any ideas on where the problem is?
$ cat test.c
int main(int argc, char** argv)
{
for(;;) {}
return 0;
}
$ gcc -g -O0 test.c
$ nm a.out|grep 'main$'
080483b4 T main
$ addr2line 080483b4
/home/lb/pers/src/misc/test.c:2
$ clang -g -O0 test.c
$ nm a.out|grep 'main$'
080483c0 T main
$ addr2line 080483c0
??:0
$ uname -a
Linux lb-linux 2.6.34-lb #15 SMP Mon May 31 17:47:02 CEST 2010 i686 GNU/Linux
$ clang -v
clang version 1.1 (branches/release_27)
Target: i386-pc-linux-gnu
Thread model: posix
$ addr2line -v
GNU addr2line (GNU Binutils for Ubuntu) 2.20.1-system.20100303
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.
$ clang -emit-llvm -S -g -O0 test.c && cat test.s
; ModuleID = 'test.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"
define i32 @main(i32 %argc, i8** %argv) nounwind {
%1 = alloca i32, align 4 ; [#uses=2]
%2 = alloca i32, align 4 ; [#uses=1]
%3 = alloca i8**, align 4 ; [#uses=1]
store i32 0, i32* %1
store i32 %argc, i32* %2
call void @llvm.dbg.declare(metadata !{i32* %2}, metadata !0), !dbg !6
store i8** %argv, i8*** %3
call void @llvm.dbg.declare(metadata !{i8*** %3}, metadata !7), !dbg !11
br label %4, !dbg !12
; :4 ; preds = %4, %0
br label %4, !dbg !12
; No predecessors!
%6 = load i32* %1, !dbg !14 ; [#uses=1]
ret i32 %6, !dbg !14
}
declare void @llvm.dbg.declare(metadata, metadata) nounwind readnone
!0 = metadata !{i32 459009, metadata !1, metadata !"argc", metadata !2, i32 1,
metadata !5} ; [ DW_TAG_arg_variable ]
!1 = metadata !{i32 458798, i32 0, metadata !2, metadata !"main", metadata
!"main", metadata !"main", metadata !2, i32 2, metadata !3, i1 false, i1 true,
i32 0, i32 0, null, i1 false} ; [ DW_TAG_subprogram ]
!2 = metadata !{i32 458769, i32 0, i32 12, metadata !"test.c", metadata
!"/home/lb/pers/src/misc", metadata !"clang 1.1", i1 true, i1 false, metadata
!"", i32 0} ; [ DW_TAG_compile_unit ]
!3 = metadata !{i32 458773, metadata !2, metadata !"", null, i32 0, i64 0, i64
0, i64 0, i32 0, null, metadata !4, i32 0, null} ; [ DW_TAG_subroutine_type ]
!4 = metadata !{metadata !5}
!5 = metadata !{i32 458788, metadata !2, metadata !"int", metadata !2, i32 0,
i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
!6 = metadata !{i32 1, i32 14, metadata !1, null}
!7 = metadata !{i32 459009, metadata !1, metadata !"argv", metadata !2, i32 1,
metadata !8} ; [ DW_TAG_arg_variable ]
!8 = metadata !{i32 458767, metadata !2, metadata !"", null, i32 0, i64 32, i64
32, i64 0, i32 0, metadata !9} ; [ DW_TAG_pointer_type ]
!9 = metadata !{i32 458767, metadata !2, metadata !"", null, i32 0, i64 32, i64
32, i64 0, i32 0, metadata !10} ; [ DW_TAG_pointer_type ]
!10 = metadata !{i32 458788, metadata !2, metadata !"char", metadata !2, i32 0,
i64 8, i64 8, i64 0, i32 0, i32 6} ; [ DW_TAG_base_type ]
!11 = metadata !{i32 1, i32 27, metadata !1, null}
!12 = metadata !{i32 3, i32 2, metadata !13, null}
!13 = metadata !{i32 458763, metadata !1, i32 2, i32 1} ; [
DW_TAG_lexical_block ]
!14 = metadata !{i32 5, i32 1, metadata !1, null}
$ clang -S -g -O0 test.c && cat test.s
.file "test.c"
.section .debug_frame,"", at progbits
.Lsection_debug_frame:
.section .debug_info,"", at progbits
.Lsection_info:
.section .debug_abbrev,"", at progbits
.Lsection_abbrev:
.section .debug_aranges,"", at progbits
.Lsection_aranges:
.section .debug_macinfo,"", at progbits
.Lsection_macinfo:
.section .debug_line,"", at progbits
.Lsection_line:
.section .debug_loc,"", at progbits
.Lsection_loc:
.section .debug_pubnames,"", at progbits
.Lsection_pubnames:
.section .debug_pubtypes,"", at progbits
.Lsection_pubtypes:
.section .debug_str,"", at progbits
.Lsection_str:
.section .debug_ranges,"", at progbits
.Lsection_ranges:
.text
.Ltext_begin:
.data
.Ldata_begin:
.text
.globl main
.align 16, 0x90
.type main, at function
main:
pushl %ebp
.Llabel1:
movl %esp, %ebp
.Llabel2:
subl $12, %esp
.Llabel3:
movl 8(%ebp), %eax
movl 12(%ebp), %ecx
movl $0, -4(%ebp)
movl %eax, -8(%ebp)
movl %ecx, -12(%ebp)
.LBB1_1:
jmp .LBB1_1
.size main, .-main
.Ltext_end:
.data
.Ldata_end:
.text
.Lsection_end1:
.section .debug_frame,"", at progbits
.Ldebug_frame_common:
.set .Lset1dbg,.Ldebug_frame_common_end-.Ldebug_frame_common_begin
.long .Lset1dbg
.Ldebug_frame_common_begin:
.long 4294967295
.byte 1
.byte 0
.uleb128 1
.sleb128 -4
.byte 8
.byte 12
.uleb128 4
.uleb128 4
.byte 136
.uleb128 1
.align 4
.Ldebug_frame_common_end:
.section .debug_info,"", at progbits
.Linfo_begin1:
.long 83
.short 2
.set .Lset2dbg,.Labbrev_begin
.long .Lset2dbg
.byte 4
.uleb128 1
.set .Lset3dbg,.Lsection_line
.long .Lset3dbg
.ascii "clang 1.1"
.byte 0
.byte 12
.ascii "test.c"
.byte 0
.ascii "/home/lb/pers/src/misc"
.byte 0
.uleb128 2
.byte 5
.ascii "int"
.byte 0
.byte 4
.uleb128 3
.ascii "main"
.byte 0
.ascii "main"
.byte 0
.byte 1
.byte 2
.byte 1
.long 57
.byte 0
.byte 0
.byte 0
.byte 0
.byte 0
.Linfo_end1:
.section .debug_abbrev,"", at progbits
.Labbrev_begin:
.uleb128 1
.uleb128 17
.uleb128 1
.uleb128 16
.uleb128 6
.uleb128 37
.uleb128 8
.uleb128 19
.uleb128 11
.uleb128 3
.uleb128 8
.uleb128 27
.uleb128 8
.uleb128 0
.uleb128 0
.uleb128 2
.uleb128 36
.uleb128 0
.uleb128 62
.uleb128 11
.uleb128 3
.uleb128 8
.uleb128 11
.uleb128 11
.uleb128 0
.uleb128 0
.uleb128 3
.uleb128 46
.uleb128 0
.uleb128 3
.uleb128 8
.uleb128 8199
.uleb128 8
.uleb128 58
.uleb128 11
.uleb128 59
.uleb128 11
.uleb128 39
.uleb128 12
.uleb128 73
.uleb128 19
.uleb128 0
.uleb128 0
.uleb128 0
.Labbrev_end:
.section .debug_line,"", at progbits
.set .Lset4dbg,.Lline_end-.Lline_begin
.long .Lset4dbg
.Lline_begin:
.short 2
.set .Lset5dbg,.Lline_prolog_end-.Lline_prolog_begin
.long .Lset5dbg
.Lline_prolog_begin:
.byte 1
.byte 1
.byte 246
.byte 245
.byte 10
.byte 0
.byte 1
.byte 1
.byte 1
.byte 1
.byte 0
.byte 0
.byte 0
.byte 1
.asciz "/home/lb/pers/src/misc"
.byte 0
.asciz "test.c"
.uleb128 1
.uleb128 0
.uleb128 0
.byte 0
.Lline_prolog_end:
.byte 0
.byte 5
.byte 2
.long .Lsection_end1
.byte 0
.byte 1
.byte 1
.Lline_end:
.section .debug_pubnames,"", at progbits
.set .Lset6dbg,.Lpubnames_end1-.Lpubnames_begin1
.long .Lset6dbg
.Lpubnames_begin1:
.short 2
.set .Lset7dbg,.Linfo_begin1
.long .Lset7dbg
.set .Lset8dbg,.Linfo_end1-.Linfo_begin1
.long .Lset8dbg
.long 64
.asciz "main"
.long 0
.Lpubnames_end1:
.section .debug_pubtypes,"", at progbits
.set .Lset9dbg,.Lpubtypes_end1-.Lpubtypes_begin1
.long .Lset9dbg
.Lpubtypes_begin1:
.short 2
.set .Lset10dbg,.Linfo_begin1
.long .Lset10dbg
.set .Lset11dbg,.Linfo_end1-.Linfo_begin1
.long .Lset11dbg
.long 0
.Lpubtypes_end1:
.section .debug_loc,"", at progbits
.section .debug_aranges,"", at progbits
.section .debug_ranges,"", at progbits
.section .debug_macinfo,"", at progbits
.section .note.GNU-stack,"", at progbits
$ readelf --debug-dump a.out
Contents of the .debug_pubnames section:
Length: 23
Version: 2
Offset into .debug_info section: 0x0
Size of area in .debug_info section: 87
Offset Name
40 main
Contents of the .debug_info section:
Compilation Unit @ offset 0x0:
Length: 0x53 (32-bit)
Version: 2
Abbrev Offset: 0
Pointer Size: 4
<0>: Abbrev Number: 1 (DW_TAG_compile_unit)
< c> DW_AT_stmt_list : 0x0
<10> DW_AT_producer : clang 1.1
<1a> DW_AT_language : 12 (ANSI C99)
<1b> DW_AT_name : test.c
<22> DW_AT_comp_dir : /home/lb/pers/src/misc
<1><39>: Abbrev Number: 2 (DW_TAG_base_type)
<3a> DW_AT_encoding : 5 (signed)
<3b> DW_AT_name : int
<3f> DW_AT_byte_size : 4
<1><40>: Abbrev Number: 3 (DW_TAG_subprogram)
<41> DW_AT_name : main
<46> DW_AT_MIPS_linkage_name: main
<4b> DW_AT_decl_file : 1
<4c> DW_AT_decl_line : 2
<4d> DW_AT_prototyped : 1
<4e> DW_AT_type : <0x39>
Contents of the .debug_abbrev section:
Number TAG
1 DW_TAG_compile_unit [has children]
DW_AT_stmt_list DW_FORM_data4
DW_AT_producer DW_FORM_string
DW_AT_language DW_FORM_data1
DW_AT_name DW_FORM_string
DW_AT_comp_dir DW_FORM_string
2 DW_TAG_base_type [no children]
DW_AT_encoding DW_FORM_data1
DW_AT_name DW_FORM_string
DW_AT_byte_size DW_FORM_data1
3 DW_TAG_subprogram [no children]
DW_AT_name DW_FORM_string
DW_AT_MIPS_linkage_name DW_FORM_string
DW_AT_decl_file DW_FORM_data1
DW_AT_decl_line DW_FORM_data1
DW_AT_prototyped DW_FORM_flag
DW_AT_type DW_FORM_ref4
Raw dump of debug contents of section .debug_line:
Offset: 0x0
Length: 65
DWARF Version: 2
Prologue Length: 49
Minimum Instruction Length: 1
Initial value of 'is_stmt': 1
Line Base: -10
Line Range: 245
Opcode Base: 10
Opcodes:
Opcode 1 has 0 args
Opcode 2 has 1 args
Opcode 3 has 1 args
Opcode 4 has 1 args
Opcode 5 has 1 args
Opcode 6 has 0 args
Opcode 7 has 0 args
Opcode 8 has 0 args
Opcode 9 has 1 args
The Directory Table:
/home/lb/pers/src/misc
The File Name Table:
Entry Dir Time Size Name
1 1 0 0 test.c
Line Number Statements:
Extended opcode 2: set Address to 0x80483db
Extended opcode 1: End of Sequence
Offset: 0x45
Length: 68
DWARF Version: 2
Prologue Length: 39
Minimum Instruction Length: 1
Initial value of 'is_stmt': 1
Line Base: -5
Line Range: 14
Opcode Base: 13
Opcodes:
Opcode 1 has 0 args
Opcode 2 has 1 args
Opcode 3 has 1 args
Opcode 4 has 1 args
Opcode 5 has 1 args
Opcode 6 has 0 args
Opcode 7 has 0 args
Opcode 8 has 0 args
Opcode 9 has 1 args
Opcode 10 has 0 args
Opcode 11 has 0 args
Opcode 12 has 1 args
The Directory Table:
/tmp
The File Name Table:
Entry Dir Time Size Name
1 1 0 0 cc-g9lJBF.s
Line Number Statements:
Extended opcode 2: set Address to 0x80483c0
Advance Line by 32 to 33
Copy
Special opcode 21: advance Address by 1 to 0x80483c1 and Line by 2 to 35
Special opcode 35: advance Address by 2 to 0x80483c3 and Line by 2 to 37
Special opcode 49: advance Address by 3 to 0x80483c6 and Line by 2 to 39
Special opcode 48: advance Address by 3 to 0x80483c9 and Line by 1 to 40
Special opcode 48: advance Address by 3 to 0x80483cc and Line by 1 to 41
Special opcode 104: advance Address by 7 to 0x80483d3 and Line by 1 to 42
Special opcode 48: advance Address by 3 to 0x80483d6 and Line by 1 to 43
Special opcode 49: advance Address by 3 to 0x80483d9 and Line by 2 to 45
Advance PC by 2 to 0x80483db
Extended opcode 1: End of Sequence
Contents of the .debug_frame section:
00000000 00000010 ffffffff CIE
Version: 1
Augmentation: ""
Code alignment factor: 1
Data alignment factor: -4
Return address column: 8
DW_CFA_def_cfa: r4 (esp) ofs 4
DW_CFA_offset: r8 (eip) at cfa-4
DW_CFA_nop
DW_CFA_nop
Contents of the .debug_pubtypes section:
Length: 14
Version: 2
Offset into .debug_info section: 0x0
Size of area in .debug_info section: 87
Offset Name
--
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 Jun 12 19:34:41 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Jun 2010 19:34:41 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7366] New: Anything that includes stdio.h fails
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7366
Summary: Anything that includes stdio.h fails
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: andy.wick at corp.aol.com
CC: llvmbugs at cs.uiuc.edu
Using the TIP a check in sometime last week causes a crash on any file that
includes stdio.h and has a function in it
#include
void blah() {}
scan-build -k gcc -c foo.c
See attached gdb.out
--
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 Jun 12 22:26:19 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sat, 12 Jun 2010 22:26:19 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7367] New: Opt crash on attached .bc file
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7367
Summary: Opt crash on attached .bc file
Product: tools
Version: trunk
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: opt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: eugeny.grishul at gmail.com
CC: llvmbugs at cs.uiuc.edu
I tried 'opt' ( r105905 ) on Win7.
opt -O3 -strip llvm.bc > llvm_optimized.bc
UNREACHABLE executed!
--
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 Jun 13 05:55:11 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 13 Jun 2010 05:55:11 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7368] New: Compiler crash with optimization
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7368
Summary: Compiler crash with optimization
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: moonshine at kapsi.fi
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5023)
--> (http://llvm.org/bugs/attachment.cgi?id=5023)
a self-contained testcase
This file is from Ghostscript.
$ clang -O -c gdevlx50.i
fatal error: error in backend: Cannot yet select: 0x9bb4df8: ch = store
0x9b9d070, 0x9ba53d8, 0x9ba4f10, 0x9bb49b8 [ORD=1214]
[ID=38]
0x9b9d070: ch = store 0x9ba55f8:1, 0x9ad22c0, 0x9ba5790,
0x9bb49b8 [ORD=1214] [ID=37]
0x9ba55f8: i32,ch = load 0x9b7320c, 0x9bb4ce8, 0x9bb49b8
[ORD=1198] [ID=31]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9bb4ce8: i32 = add 0x9b9c768, 0x9b9cd40 [ORD=1196] [ID=28]
0x9b9c768: i32,ch = CopyFromReg 0x9b7320c, 0x9ad3008 [ORD=1195] [ID=21]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9ad3008: i32 = Register %reg1024 [ORD=1195] [ID=4]
0x9b9cd40: i32 = Constant<5124> [ORD=1196] [ID=5]
0x9bb49b8: i32 = undef [ORD=1198] [ID=6]
0x9ad22c0: i32 = add 0x9ad2d60, 0x9bb5238 [ORD=1200] [ID=36]
0x9ad2d60: i32,ch = CopyFromReg 0x9b7320c, 0x9bb55f0 [ORD=1200] [ID=22]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9bb55f0: i32 = Register %reg1126 [ORD=1200] [ID=7]
0x9bb5238: i32 = mul 0x9ba55f8, 0x9bb5458 [ORD=1199] [ID=34]
0x9ba55f8: i32,ch = load 0x9b7320c, 0x9bb4ce8,
0x9bb49b8 [ORD=1198] [ID=31]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9bb4ce8: i32 = add 0x9b9c768, 0x9b9cd40 [ORD=1196] [ID=28]
0x9b9c768: i32,ch = CopyFromReg 0x9b7320c, 0x9ad3008 [ORD=1195]
[ID=21]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9ad3008: i32 = Register %reg1024 [ORD=1195] [ID=4]
0x9b9cd40: i32 = Constant<5124> [ORD=1196] [ID=5]
0x9bb49b8: i32 = undef [ORD=1198] [ID=6]
0x9bb5458: i32 = and 0x9ad2f80, 0x9ad2ab8 [ORD=1194] [ID=25]
0x9ad2f80: i32,ch = CopyFromReg 0x9b7320c, 0x9b9d290 [ORD=1194]
[ID=20]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9b9d290: i32 = Register %reg1130 [ORD=1194] [ID=2]
0x9ad2ab8: i32 = Constant<255> [ORD=1194] [ID=3]
0x9ba5790: i32 = add 0x9ba4f10, 0x9ad2b40 [ORD=1206] [ID=35]
0x9ba4f10: i32 = add 0x9b9ca10, 0x9ad2678 [ORD=1204] [ID=33]
0x9b9ca10: i32,ch = CopyFromReg 0x9b7320c, 0x9bb4f90 [ORD=1193] [ID=19]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9bb4f90: i32 = Register %reg1104 [ORD=1193] [ID=1]
0x9ad2678: i32 = shl 0x9bb5458, 0x9b9c6e0 [ID=29]
0x9bb5458: i32 = and 0x9ad2f80, 0x9ad2ab8 [ORD=1194] [ID=25]
0x9ad2f80: i32,ch = CopyFromReg 0x9b7320c, 0x9b9d290 [ORD=1194]
[ID=20]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9b9d290: i32 = Register %reg1130 [ORD=1194] [ID=2]
0x9ad2ab8: i32 = Constant<255> [ORD=1194] [ID=3]
0x9b9c6e0: i8 = Constant<3> [ID=17]
0x9ad2b40: i32 = Constant<-4> [ORD=1206] [ID=8]
0x9bb49b8: i32 = undef [ORD=1198] [ID=6]
0x9ba53d8: i8,ch = CopyFromReg 0x9b7320c, 0x9ba58a0 [ORD=1214] [ID=23]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9ba58a0: i8 = Register %reg1127 [ORD=1214] [ID=9]
0x9ba4f10: i32 = add 0x9b9ca10, 0x9ad2678 [ORD=1204] [ID=33]
0x9b9ca10: i32,ch = CopyFromReg 0x9b7320c, 0x9bb4f90 [ORD=1193] [ID=19]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9bb4f90: i32 = Register %reg1104 [ORD=1193] [ID=1]
0x9ad2678: i32 = shl 0x9bb5458, 0x9b9c6e0 [ID=29]
0x9bb5458: i32 = and 0x9ad2f80, 0x9ad2ab8 [ORD=1194] [ID=25]
0x9ad2f80: i32,ch = CopyFromReg 0x9b7320c, 0x9b9d290 [ORD=1194] [ID=20]
0x9b7320c: ch = EntryToken [ORD=1193] [ID=0]
0x9b9d290: i32 = Register %reg1130 [ORD=1194] [ID=2]
0x9ad2ab8: i32 = Constant<255> [ORD=1194] [ID=3]
0x9b9c6e0: i8 = Constant<3> [ID=17]
0x9bb49b8: i32 = undef [ORD=1198] [ID=6]
--
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 Jun 13 07:20:13 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 13 Jun 2010 07:20:13 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7272] Bad interaction between byval, -tailcallelim,
-inline and -dse
In-Reply-To:
References:
Message-ID: <20100613122013.4FC3E2A6C124@llvm.org>
http://llvm.org/bugs/show_bug.cgi?id=7272
Duncan Sands changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #2 from Duncan Sands 2010-06-13 07:20:12 CDT ---
This was fixed here, but the bugreport was not closed:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100531/102046.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 Sun Jun 13 08:17:44 2010
From: bugzilla-daemon at llvm.org (bugzilla-daemon at llvm.org)
Date: Sun, 13 Jun 2010 08:17:44 -0500 (CDT)
Subject: [LLVMbugs] [Bug 7369] New: Miscompilation with -O1 and above
Message-ID:
http://llvm.org/bugs/show_bug.cgi?id=7369
Summary: Miscompilation with -O1 and above
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: pipping at exherbo.org
CC: llvmbugs at cs.uiuc.edu
I've hit a test failure with libsigsegv that I get with clang but not gcc 4.4.
Its main author, Bruno Haible, has been so kind to analyse this problem. Here
is what he wrote to me:
--------------------
I have clang version 1.0 installed:
$ clang --version
clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk 81046)
Target: x86_64-pc-linux-gnu
Thread model: posix
and what I find is that 'clang' is miscompiling the 'switch' statement of
tests/stackoverflow2.c when -O1 or higher is enabled.
How to reproduce:
- Fetch libsigsegv-2.8.tar.gz from ftp.gnu.org,
- Configure it with "mkdir build; cd build; ../configure CC=clang"
- "make"
- "make check"
When the stackoverflow2 program is compiled like this:
clang -DHAVE_CONFIG_H -I. -I../../tests -I.. -I../src -g -c
../../tests/stackoverflow2.c \
&& /bin/sh ../libtool --tag=CC --mode=link clang -g -o stackoverflow2
stackoverflow2.o ../src/libsigsegv.la
it works fine.
When it is compiled like this:
clang -DHAVE_CONFIG_H -I. -I../../tests -I.. -I../src -g -O1 -c
../../tests/stackoverflow2.c \
&& /bin/sh ../libtool --tag=CC --mode=link clang -g -O1 -o
stackoverflow2 stackoverflow2.o ../src/libsigsegv.la
it runs into the abort() call.
It happens when setjmp() returns with a value of 3.
The source code is:
===============================================================================
int
main ()
{
...
/* Provoke two stack overflows in a row. */
switch (setjmp (mainloop))
{
case -1:
printf ("emergency exit\n"); exit (1);
case 0: case 1:
printf ("Starting recursion pass %d.\n", pass + 1);
recurse (0);
printf ("no endless recursion?!\n"); exit (1);
case 2:
*(volatile int *) (page + 0x678) = 42;
break;
case 3:
*(volatile int *) 0 = 42;
break;
case 4:
break;
default:
abort ();
}
printf ("Test passed.\n");
exit (0);
}
===============================================================================
In the case that works, without optimization, the code looks like this:
===============================================================================
401042: e8 b9 f9 ff ff callq 400a00 <_setjmp at plt>
401047: 89 c1 mov %eax,%ecx
401049: ff c1 inc %ecx
40104b: 89 ca mov %ecx,%edx
40104d: 83 f9 05 cmp $0x5,%ecx
401050: 48 89 95 50 ff ff ff mov %rdx,-0xb0(%rbp)
401057: 0f 87 9d 00 00 00 ja 4010fa
40105d: 48 8b 85 50 ff ff ff mov -0xb0(%rbp),%rax
401064: 48 89 c1 mov %rax,%rcx
401067: 48 8b 0c cd 08 1c 40 mov 0x401c08(,%rcx,8),%rcx
0x401c08:
(gdb) print *(void*(*)[6]) 0x401c08
$1 = {0x401071, 0x40108c, 0x40108c, 0x4010d2, 0x4010e6, 0x4010f8}
401071: 30 c0 xor %al,%al
401073: b9 68 1d 40 00 mov $0x401d68,%ecx
401078: 48 89 cf mov %rcx,%rdi
40107b: e8 40 f9 ff ff callq 4009c0
401080: b8 01 00 00 00 mov $0x1,%eax
401085: 89 c7 mov %eax,%edi
401087: e8 84 f9 ff ff callq 400a10
40108c: 8b 04 25 e8 30 60 00 mov 0x6030e8,%eax
401093: 83 c0 01 add $0x1,%eax
401096: 30 c9 xor %cl,%cl
401098: ba 30 1d 40 00 mov $0x401d30,%edx
40109d: 48 89 d7 mov %rdx,%rdi
4010a0: 89 c6 mov %eax,%esi
4010a2: 88 c8 mov %cl,%al
4010a4: e8 17 f9 ff ff callq 4009c0
4010a9: b8 00 00 00 00 mov $0x0,%eax
4010ae: 89 c7 mov %eax,%edi
4010b0: e8 bb fd ff ff callq 400e70
4010b5: 30 c9 xor %cl,%cl
4010b7: ba 50 1d 40 00 mov $0x401d50,%edx
4010bc: 48 89 d7 mov %rdx,%rdi
4010bf: 88 c8 mov %cl,%al
4010c1: e8 fa f8 ff ff callq 4009c0
4010c6: b8 01 00 00 00 mov $0x1,%eax
4010cb: 89 c7 mov %eax,%edi
4010cd: e8 3e f9 ff ff callq 400a10
4010d2: 48 8b 04 25 20 31 60 mov 0x603120,%rax
4010d9: 00
4010da: c7 80 78 06 00 00 2a movl $0x2a,0x678(%rax)
4010e1: 00 00 00
4010e4: eb 19 jmp 4010ff
4010e6: 48 b8 00 00 00 00 00 mov $0x0,%rax
4010ed: 00 00 00
4010f0: c7 00 2a 00 00 00 movl $0x2a,(%rax)
4010f6: eb 07 jmp 4010ff
4010f8: eb 05 jmp 4010ff
4010fa: e8 e1 f8 ff ff callq 4009e0
===============================================================================
All right.
With -O1, the code looks like this:
===============================================================================
400ee5: e8 5e fb ff ff callq 400a48 <_setjmp at plt>
400eea: ff c0 inc %eax
400eec: 83 f8 05 cmp $0x5,%eax
400eef: 77 78 ja 400f69
400ef1: ff 24 c5 08 1a 40 00 jmpq *0x401a08(,%rax,8)
(gdb) print *(void*(*)[6]) 0x401a08
$1 = {0x400ef8, 0x400f0c, 0x400f0c, 0x400f3b, 0x400f69, 0x400f4c}
400ef8: bf 15 1c 40 00 mov $0x401c15,%edi
400efd: e8 36 fb ff ff callq 400a38
400f02: bf 01 00 00 00 mov $0x1,%edi
400f07: e8 4c fb ff ff callq 400a58
400f0c: 8b 35 d6 21 20 00 mov 0x2021d6(%rip),%esi #
6030e8