Last change
on this file since d51db58 was 67300de, checked in by Joe Ciccone <jciccone@…>, 16 years ago |
Create a clfs-1.1 branch in preperation for a RC.
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[67300de] | 1 | Submitted By: Ken Moffat <zarniwhoop @ ntlworld dot com>
|
---|
| 2 | Date: 2008-01-06
|
---|
| 3 | Initial Package Version: 4.2.2
|
---|
| 4 | Upstream Status: Kicking around in bugzilla, apparently nobody cares.
|
---|
| 5 | Origin: Dinar Temirbulatov
|
---|
| 6 | Description: Allows gcc-4.2 to compile a modular kernel on ppc64. Rediffed
|
---|
| 7 | to apply with -p1.
|
---|
| 8 |
|
---|
| 9 | diff -Naur gcc-4.2.2/gcc/varasm.c gcc-4.2.2-PR31490/gcc/varasm.c
|
---|
| 10 | --- gcc-4.2.2/gcc/varasm.c 2007-09-01 16:28:30.000000000 +0100
|
---|
| 11 | +++ gcc-4.2.2-PR31490/gcc/varasm.c 2007-11-22 17:50:24.000000000 +0000
|
---|
| 12 | @@ -5452,12 +5452,14 @@
|
---|
| 13 | be read-only or not, but whether the dynamic link will have to
|
---|
| 14 | do something. If so, we wish to segregate the data in order to
|
---|
| 15 | minimize cache misses inside the dynamic linker. */
|
---|
| 16 | - if (reloc & targetm.asm_out.reloc_rw_mask ())
|
---|
| 17 | + if (reloc & targetm.asm_out.reloc_rw_mask ()
|
---|
| 18 | + && !lookup_attribute ("section", DECL_ATTRIBUTES (decl)))
|
---|
| 19 | ret = reloc == 1 ? SECCAT_DATA_REL_LOCAL : SECCAT_DATA_REL;
|
---|
| 20 | else
|
---|
| 21 | ret = SECCAT_DATA;
|
---|
| 22 | }
|
---|
| 23 | - else if (reloc & targetm.asm_out.reloc_rw_mask ())
|
---|
| 24 | + else if (reloc & targetm.asm_out.reloc_rw_mask ()
|
---|
| 25 | + && !lookup_attribute ("section", DECL_ATTRIBUTES (decl)))
|
---|
| 26 | ret = reloc == 1 ? SECCAT_DATA_REL_RO_LOCAL : SECCAT_DATA_REL_RO;
|
---|
| 27 | else if (reloc || flag_merge_constants < 2)
|
---|
| 28 | /* C and C++ don't allow different variables to share the same
|
---|
Note:
See
TracBrowser
for help on using the repository browser.