Merge lp:~ams-codesourcery/gcc-linaro/lp836401-4.6 into lp:gcc-linaro/4.6

Proposed by Andrew Stubbs
Status: Merged
Approved by: Ulrich Weigand
Approved revision: no longer in the source branch.
Merged at revision: 106804
Proposed branch: lp:~ams-codesourcery/gcc-linaro/lp836401-4.6
Merge into: lp:gcc-linaro/4.6
Diff against target: 45 lines (+21/-1)
3 files modified
ChangeLog.linaro (+9/-0)
gcc/config/arm/predicates.md (+2/-1)
gcc/testsuite/gcc.dg/pr50193-1.c (+10/-0)
To merge this branch: bzr merge lp:~ams-codesourcery/gcc-linaro/lp836401-4.6
Reviewer Review Type Date Requested Status
Andrew Stubbs (community) Needs Fixing
Ulrich Weigand (community) Approve
Review via email: mp+73664@code.launchpad.net

Description of the change

Fix for Bug LP836401.

To post a comment you must log in.
Revision history for this message
Michael Hope (michaelh1) wrote :

cbuild has taken a snapshot of this branch at r106798 and queued it for build.

The snapshot is available at:
 http://ex.seabright.co.nz/snapshots/gcc-linaro-4.6+bzr106798~ams-codesourcery~lp836401-4.6.tar.xdelta3.xz

and will be built on the following builders:
 a9-builder armv5-builder baremetal i686 x86_64

You can track the build queue at:
 http://ex.seabright.co.nz/helpers/scheduler

cbuild-snapshot: gcc-linaro-4.6+bzr106798~ams-codesourcery~lp836401-4.6
cbuild-ancestor: lp:gcc-linaro/4.6+bzr106797
cbuild-state: check

Revision history for this message
Michael Hope (michaelh1) wrote :

cbuild successfully built this on i686-natty-cbuild172-oort2-i686r1.

The build results are available at:
 http://ex.seabright.co.nz/build/gcc-linaro-4.6+bzr106798~ams-codesourcery~lp836401-4.6/logs/i686-natty-cbuild172-oort2-i686r1

+PASS: gcc.dg/pr50193-1.c (test for warnings, line 9)
+PASS: gcc.dg/pr50193-1.c (test for excess errors)

The full testsuite results are at:
 http://ex.seabright.co.nz/build/gcc-linaro-4.6+bzr106798~ams-codesourcery~lp836401-4.6/logs/i686-natty-cbuild172-oort2-i686r1/gcc-testsuite.txt

cbuild-checked: i686-natty-cbuild172-oort2-i686r1

Revision history for this message
Michael Hope (michaelh1) wrote :

cbuild successfully built this on x86_64-natty-cbuild172-oort1-x86_64r1.

The build results are available at:
 http://ex.seabright.co.nz/build/gcc-linaro-4.6+bzr106798~ams-codesourcery~lp836401-4.6/logs/x86_64-natty-cbuild172-oort1-x86_64r1

+PASS: gcc.dg/pr50193-1.c (test for warnings, line 9)
+PASS: gcc.dg/pr50193-1.c (test for excess errors)

The full testsuite results are at:
 http://ex.seabright.co.nz/build/gcc-linaro-4.6+bzr106798~ams-codesourcery~lp836401-4.6/logs/x86_64-natty-cbuild172-oort1-x86_64r1/gcc-testsuite.txt

cbuild-checked: x86_64-natty-cbuild172-oort1-x86_64r1

Revision history for this message
Michael Hope (michaelh1) wrote :

cbuild successfully built this on armv7l-natty-cbuild172-ursa1-cortexa9r1.

The build results are available at:
 http://ex.seabright.co.nz/build/gcc-linaro-4.6+bzr106798~ams-codesourcery~lp836401-4.6/logs/armv7l-natty-cbuild172-ursa1-cortexa9r1

+PASS: gcc.dg/pr50193-1.c (test for warnings, line 9)
+PASS: gcc.dg/pr50193-1.c (test for excess errors)

The full testsuite results are at:
 http://ex.seabright.co.nz/build/gcc-linaro-4.6+bzr106798~ams-codesourcery~lp836401-4.6/logs/armv7l-natty-cbuild172-ursa1-cortexa9r1/gcc-testsuite.txt

cbuild-checked: armv7l-natty-cbuild172-ursa1-cortexa9r1

Revision history for this message
Ulrich Weigand (uweigand) wrote :

This looks good as far as it goes, but there seem to be ongoing discussions on the mailing list regarding the mainline submission of this patch.

Since those discussion are about *further* restricting that test, I'd be fine with the patch submitted here to go in now as is, and then be updated with whatever gets committed upstream in the end.

In the alternative, you might want to wait until the mainline patch is accepted and then check it in to Linaro GCC as well -- feel free to choose either approach.

review: Approve
Revision history for this message
Andrew Stubbs (ams-codesourcery) wrote :

I'm delaying this due to Richard Sandiford's opinion that the the constraints need tightening also, and that changing the predicate alone only makes it worse (apparently reload ignores the predicates, and this could lead to recog ICES further down the line).

review: Needs Fixing
Revision history for this message
Michael Hope (michaelh1) wrote :

cbuild successfully built this on armv7l-natty-cbuild172-ursa2-armv5r2.

The build results are available at:
 http://ex.seabright.co.nz/build/gcc-linaro-4.6+bzr106798~ams-codesourcery~lp836401-4.6/logs/armv7l-natty-cbuild172-ursa2-armv5r2

+PASS: gcc.dg/pr50193-1.c (test for warnings, line 9)
+PASS: gcc.dg/pr50193-1.c (test for excess errors)

The full testsuite results are at:
 http://ex.seabright.co.nz/build/gcc-linaro-4.6+bzr106798~ams-codesourcery~lp836401-4.6/logs/armv7l-natty-cbuild172-ursa2-armv5r2/gcc-testsuite.txt

cbuild-checked: armv7l-natty-cbuild172-ursa2-armv5r2

Revision history for this message
Ramana Radhakrishnan (ramana) wrote :

I think this should wait till other comments upstream have been handled.

ramana

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ChangeLog.linaro'
2--- ChangeLog.linaro 2011-08-26 14:32:47 +0000
3+++ ChangeLog.linaro 2011-09-01 13:18:48 +0000
4@@ -1,3 +1,12 @@
5+2011-09-01 Andrew Stubbs <ams@codesourcery.com>
6+
7+ gcc/
8+ * config/arm/predicates.md (shift_amount_operand): Ensure shift
9+ amount is positive.
10+
11+ gcc/testsuite/
12+ * gcc.dg/pr50193-1.c: New file.
13+
14 2011-08-26 Richard Sandiford <richard.sandiford@linaro.org>
15
16 gcc/
17
18=== modified file 'gcc/config/arm/predicates.md'
19--- gcc/config/arm/predicates.md 2011-08-13 08:40:36 +0000
20+++ gcc/config/arm/predicates.md 2011-09-01 13:18:48 +0000
21@@ -132,7 +132,8 @@
22 (define_predicate "shift_amount_operand"
23 (ior (and (match_test "TARGET_ARM")
24 (match_operand 0 "s_register_operand"))
25- (match_operand 0 "const_int_operand")))
26+ (and (match_operand 0 "const_int_operand")
27+ (match_test "INTVAL (op) > 0"))))
28
29 (define_predicate "arm_add_operand"
30 (ior (match_operand 0 "arm_rhs_operand")
31
32=== added file 'gcc/testsuite/gcc.dg/pr50193-1.c'
33--- gcc/testsuite/gcc.dg/pr50193-1.c 1970-01-01 00:00:00 +0000
34+++ gcc/testsuite/gcc.dg/pr50193-1.c 2011-09-01 13:18:48 +0000
35@@ -0,0 +1,10 @@
36+/* PR 50193: ARM: ICE on a | (b << negative-constant) */
37+/* Ensure that the compiler doesn't ICE. */
38+
39+/* { dg-options "-O2" } */
40+
41+int
42+foo(int a, int b)
43+{
44+ return a | (b << -3); /* { dg-warning "left shift count is negative" } */
45+}

Subscribers

People subscribed via source and target branches