1 |
dirtyepic 11/12/04 07:02:41 |
2 |
|
3 |
Modified: README.history |
4 |
Added: 75_all_arm_4.7.0_strict-volatile-bitfields.patch |
5 |
Log: |
6 |
Add patch for bug #366253. |
7 |
|
8 |
Revision Changes Path |
9 |
1.3 src/patchsets/gcc/4.6.2/gentoo/README.history |
10 |
|
11 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?rev=1.3&view=markup |
12 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?rev=1.3&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history?r1=1.2&r2=1.3 |
14 |
|
15 |
Index: README.history |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo/src/patchsets/gcc/4.6.2/gentoo/README.history,v |
18 |
retrieving revision 1.2 |
19 |
retrieving revision 1.3 |
20 |
diff -u -r1.2 -r1.3 |
21 |
--- README.history 30 Oct 2011 19:26:03 -0000 1.2 |
22 |
+++ README.history 4 Dec 2011 07:02:41 -0000 1.3 |
23 |
@@ -1,3 +1,6 @@ |
24 |
+1.1 2011-12-04 |
25 |
+ + 75_all_arm_4.7.0_strict-volatile-bitfields.patch |
26 |
+ |
27 |
1.0 2011-10-30 |
28 |
U 01_all_joined-cpp-defs.patch |
29 |
+ 03_all_java-nomulti.patch |
30 |
|
31 |
|
32 |
|
33 |
1.1 src/patchsets/gcc/4.6.2/gentoo/75_all_arm_4.7.0_strict-volatile-bitfields.patch |
34 |
|
35 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/75_all_arm_4.7.0_strict-volatile-bitfields.patch?rev=1.1&view=markup |
36 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gcc/4.6.2/gentoo/75_all_arm_4.7.0_strict-volatile-bitfields.patch?rev=1.1&content-type=text/plain |
37 |
|
38 |
Index: 75_all_arm_4.7.0_strict-volatile-bitfields.patch |
39 |
=================================================================== |
40 |
https://bugs.launchpad.net/gcc-linaro/+bug/675347 |
41 |
http://gcc.gnu.org/ml/gcc-patches/2010-11/msg02245.html |
42 |
|
43 |
https://bugs.gentoo.org/366253 |
44 |
|
45 |
--- a/gcc/expr.c |
46 |
+++ b/gcc/expr.c |
47 |
@@ -9189,8 +9189,11 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, |
48 |
&& modifier != EXPAND_CONST_ADDRESS |
49 |
&& modifier != EXPAND_INITIALIZER) |
50 |
/* If the field is volatile, we always want an aligned |
51 |
- access. */ |
52 |
- || (volatilep && flag_strict_volatile_bitfields > 0) |
53 |
+ access. Only do this if the access is not already naturally |
54 |
+ aligned, otherwise "normal" (non-bitfield) volatile fields |
55 |
+ become non-addressable. */ |
56 |
+ || (volatilep && flag_strict_volatile_bitfields > 0 |
57 |
+ && (bitpos % GET_MODE_ALIGNMENT (mode) != 0)) |
58 |
/* If the field isn't aligned enough to fetch as a memref, |
59 |
fetch it as a bit field. */ |
60 |
|| (mode1 != BLKmode |