Re: [llvm-commits] [llvm-gcc-4.2] r46381 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-internal.h llvm-types.cpp

2008-01-27 Thread Duncan Sands
Hi Evan, Can you get me a test case? I need to see what gcc is doing. Thanks, Sure. Zero sized fields in structs may not be very useful, but it is still legal to use them, in particular you can take their address, like this: struct Z {}; struct Y { int i; struct Z z; }; void

Re: [llvm-commits] [llvm-gcc-4.2] r46381 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-internal.h llvm-types.cpp

2008-01-27 Thread Bill Wendling
On Jan 27, 2008, at 1:03 AM, Duncan Sands wrote: Hi Evan, Can you get me a test case? I need to see what gcc is doing. Thanks, Sure. Zero sized fields in structs may not be very useful, but it is still legal to use them, in particular you can take their address, like this: struct Z {};

Re: [llvm-commits] [llvm-gcc-4.2] r46381 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-internal.h llvm-types.cpp

2008-01-27 Thread Duncan Sands
I'm running into this problem as well -- it crashing while compiling gcov.c on my PPC G4. While r46381 seems the obvious culprit, to tell the truth I didn't check whether reverting this patch fixes the problem - so I could be wrong. Ciao, Duncan.

Re: [llvm-commits] [llvm-gcc-4.2] r46412 - in /llvm-gcc-4.2/trunk/gcc: config/i386/llvm-i386-target.h config/i386/llvm-i386.cpp llvm-abi.h llvm-convert.cpp

2008-01-27 Thread Dale Johannesen
On Jan 26, 2008, at 11:18 PM, Chris Lattner wrote: Author: lattner Date: Sun Jan 27 01:18:20 2008 New Revision: 46412 URL: http://llvm.org/viewvc/llvm-project?rev=46412view=rev Log: Change x86-32 aggregate passing code to pass many aggregates by pieces instead of passing them with

[llvm-commits] [llvm-gcc-4.2] r46415 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp

2008-01-27 Thread Duncan Sands
Author: baldrick Date: Sun Jan 27 12:11:13 2008 New Revision: 46415 URL: http://llvm.org/viewvc/llvm-project?rev=46415view=rev Log: Do not mark a function readnone or readonly if it has a byval parameter. Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Modified:

[llvm-commits] [llvm] r46421 - /llvm/trunk/tools/llvm-ld/llvm-ld.cpp

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 16:58:59 2008 New Revision: 46421 URL: http://llvm.org/viewvc/llvm-project?rev=46421view=rev Log: Add support for frameworks. Patch by Shantonu Sen! Modified: llvm/trunk/tools/llvm-ld/llvm-ld.cpp Modified: llvm/trunk/tools/llvm-ld/llvm-ld.cpp URL:

[llvm-commits] [llvm] r46422 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 17:21:58 2008 New Revision: 46422 URL: http://llvm.org/viewvc/llvm-project?rev=46422view=rev Log: fix a crash on CodeGen/X86/vector-rem.ll Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Modified:

[llvm-commits] [llvm] r46423 - /llvm/trunk/test/CodeGen/ARM/fparith.ll

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 17:26:37 2008 New Revision: 46423 URL: http://llvm.org/viewvc/llvm-project?rev=46423view=rev Log: Update this test. Due to dag combiner improvements, we now compile f7/f11 to: _f7: eor r0, r0, #2, 2 @ -2147483648 bx lr _f11: bic r0, r0,

[llvm-commits] [llvm] r46425 - /llvm/trunk/docs/Makefile

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 17:43:26 2008 New Revision: 46425 URL: http://llvm.org/viewvc/llvm-project?rev=46425view=rev Log: Always for PACKAGEVERSION to 'mainline' for teh llvm web page. Modified: llvm/trunk/docs/Makefile Modified: llvm/trunk/docs/Makefile URL:

[llvm-commits] [llvm] r46424 - /llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 17:32:17 2008 New Revision: 46424 URL: http://llvm.org/viewvc/llvm-project?rev=46424view=rev Log: Fix PowerPC/./2007-10-18-PtrArithmetic.ll Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Modified:

[llvm-commits] [llvm] r46427 - in /llvm/trunk: lib/Transforms/Scalar/SCCP.cpp test/Transforms/SCCP/2008-01-27-UndefCorrelate.ll

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 18:32:30 2008 New Revision: 46427 URL: http://llvm.org/viewvc/llvm-project?rev=46427view=rev Log: Fix PR1938 by forcing the code that uses an undefined value to branch one way or the other. Rewriting the code itself prevents subsequent analysis passes from making

[llvm-commits] [llvm] r46428 - /llvm/trunk/docs/LangRef.html

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 18:36:27 2008 New Revision: 46428 URL: http://llvm.org/viewvc/llvm-project?rev=46428view=rev Log: make handling of overflow and undefined results much more clear. Patch by Eli Friedman, thanks! Modified: llvm/trunk/docs/LangRef.html Modified:

[llvm-commits] [llvm] r46429 - in /llvm/trunk: lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/2008-01-27-FloatSelect.ll

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 18:58:18 2008 New Revision: 46429 URL: http://llvm.org/viewvc/llvm-project?rev=46429view=rev Log: Fix PR1932 by disabling an xform invalid for fdiv. Added: llvm/trunk/test/Transforms/InstCombine/2008-01-27-FloatSelect.ll Modified:

[llvm-commits] [llvm] r46431 - in /llvm/trunk: include/llvm/Instructions.h lib/Transforms/Scalar/InstructionCombining.cpp lib/VMCore/Instructions.cpp test/Transforms/InstCombine/2008-01-21-MismatchedC

2008-01-27 Thread Nick Lewycky
Author: nicholas Date: Sun Jan 27 21:48:02 2008 New Revision: 46431 URL: http://llvm.org/viewvc/llvm-project?rev=46431view=rev Log: Handle some more combinations of extend and icmp. Fixes PR1940. Added: llvm/trunk/test/Transforms/InstCombine/2008-01-21-MismatchedCastAndCompare.ll Modified:

[llvm-commits] [llvm] r46432 - /llvm/trunk/Makefile.rules

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 22:18:41 2008 New Revision: 46432 URL: http://llvm.org/viewvc/llvm-project?rev=46432view=rev Log: reduce duplicate -I flags passed to the compiler, cleaning up the VERBOSE output. Patch contributed by Sam Bishop! Modified: llvm/trunk/Makefile.rules

Re: [llvm-commits] Makefile.rules patch: remove redundant -I compiler flags

2008-01-27 Thread Chris Lattner
On Jan 15, 2008, at 9:07 AM, Sam Bishop wrote: The attached patch makes VERBOSE builds easier to wade through. It's likely to also permute the PROJ_* and LLVM_* includes, but I don't think that should matter. I've done a full-tree compile and everything seems to be working. Applied,

Re: [llvm-commits] [llvm] r46394 - in /llvm/trunk/lib: Target/PowerPC/PPCAsmPrinter.cpp Transforms/Scalar/SimplifyCFG.cpp

2008-01-27 Thread Chris Lattner
+ BuildMI(MBB, MBB.end(), TM.getInstrInfo()-get(PPC::NOP)); + } Is there any reason to actually make a machineinstr here? It seems like it would be possible to just emit nop to the .s file. The JIT doesn't need this. I initially had that, but I thought that it would be better to do

[llvm-commits] [test-suite] r46434 - in /test-suite/trunk/MultiSource/Benchmarks/VersaBench: ./ README.txt beamformer/ beamformer/Makefile beamformer/beamformer.c dbms/

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 23:17:19 2008 New Revision: 46434 URL: http://llvm.org/viewvc/llvm-project?rev=46434view=rev Log: add a benchmark from 'VersaBench'. Added: test-suite/trunk/MultiSource/Benchmarks/VersaBench/ test-suite/trunk/MultiSource/Benchmarks/VersaBench/README.txt

[llvm-commits] [test-suite] r46435 [1/4] - /test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 23:23:39 2008 New Revision: 46435 URL: http://llvm.org/viewvc/llvm-project?rev=46435view=rev Log: add a VersaBench benchmark. Added: test-suite/trunk/MultiSource/Benchmarks/VersaBench/dbms/Makefile

[llvm-commits] [test-suite] r46436 - in /test-suite/trunk/MultiSource/Benchmarks/VersaBench/8b10b: ./ Makefile calc.c calc.h input.txt main.c testbench.c testbench.h

2008-01-27 Thread Chris Lattner
Author: lattner Date: Sun Jan 27 23:35:03 2008 New Revision: 46436 URL: http://llvm.org/viewvc/llvm-project?rev=46436view=rev Log: add the 8b10b benchmark, hacked to take enough time to run to be interesting. Added: test-suite/trunk/MultiSource/Benchmarks/VersaBench/8b10b/

[llvm-commits] [test-suite] r46438 - in /test-suite/trunk/MultiSource/Benchmarks/VersaBench/bmm: ./ Makefile bmm.c

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:10:47 2008 New Revision: 46438 URL: http://llvm.org/viewvc/llvm-project?rev=46438view=rev Log: add the bmm benchmark, hacked to not produce huge output nor use huge input. Added: test-suite/trunk/MultiSource/Benchmarks/VersaBench/bmm/

[llvm-commits] [test-suite] r46439 - in /test-suite/trunk/MultiSource/Benchmarks: Makefile VersaBench/Makefile VersaBench/README.txt

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:14:28 2008 New Revision: 46439 URL: http://llvm.org/viewvc/llvm-project?rev=46439view=rev Log: run versabench by default Added: test-suite/trunk/MultiSource/Benchmarks/VersaBench/Makefile Modified: test-suite/trunk/MultiSource/Benchmarks/Makefile

[llvm-commits] [test-suite] r46440 - in /test-suite/trunk/MultiSource/Benchmarks/Trimaran: ./ enc-3des/ enc-3des/Makefile enc-3des/des.c enc-3des/des.h

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:27:00 2008 New Revision: 46440 URL: http://llvm.org/viewvc/llvm-project?rev=46440view=rev Log: Add a benchmark from the trimaran collection Added: test-suite/trunk/MultiSource/Benchmarks/Trimaran/

[llvm-commits] [test-suite] r46441 - in /test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-md5: ./ Makefile md5.c md5.h

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:36:10 2008 New Revision: 46441 URL: http://llvm.org/viewvc/llvm-project?rev=46441view=rev Log: add an adapted version of md5 Added: test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-md5/

[llvm-commits] [test-suite] r46442 - in /test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1: ./ Makefile pc1cod.c

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:52:21 2008 New Revision: 46442 URL: http://llvm.org/viewvc/llvm-project?rev=46442view=rev Log: add a really scary benchmark Added: test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-pc1/

[llvm-commits] [test-suite] r46443 - in /test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-rc4: ./ Makefile rc4.c rc4.h

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 00:56:33 2008 New Revision: 46443 URL: http://llvm.org/viewvc/llvm-project?rev=46443view=rev Log: add a new benchmark. Added: test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-rc4/ test-suite/trunk/MultiSource/Benchmarks/Trimaran/enc-rc4/Makefile

[llvm-commits] [test-suite] r46445 - /test-suite/trunk/MultiSource/Benchmarks/VersaBench/beamformer/Makefile

2008-01-27 Thread Nick Lewycky
Author: nicholas Date: Mon Jan 28 01:16:22 2008 New Revision: 46445 URL: http://llvm.org/viewvc/llvm-project?rev=46445view=rev Log: Make this test a little more forgiving. Modified: test-suite/trunk/MultiSource/Benchmarks/VersaBench/beamformer/Makefile Modified:

[llvm-commits] [test-suite] r46447 - in /test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url: packet.c packet.h url.c

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 01:23:41 2008 New Revision: 46447 URL: http://llvm.org/viewvc/llvm-project?rev=46447view=rev Log: make this program not read random memory Modified: test-suite/trunk/MultiSource/Benchmarks/Trimaran/netbench-url/packet.c

[llvm-commits] [test-suite] r46448 - in /test-suite/trunk/MultiSource/Benchmarks: Makefile Trimaran/Makefile Trimaran/README.txt

2008-01-27 Thread Chris Lattner
Author: lattner Date: Mon Jan 28 01:26:07 2008 New Revision: 46448 URL: http://llvm.org/viewvc/llvm-project?rev=46448view=rev Log: Build trimaran benchmarks by default Added: test-suite/trunk/MultiSource/Benchmarks/Trimaran/Makefile