source:
patches/gcc-4.2.2-PR31490-1.patch@
d7609f9
Last change on this file since d7609f9 was 99ccd00, checked in by , 17 years ago | |
---|---|
|
|
File size: 1.3 KB |
-
gcc/varasm.c
Submitted By: Ken Moffat <zarniwhoop @ ntlworld dot com> Date: 2008-01-06 Initial Package Version: 4.2.2 Upstream Status: Kicking around in bugzilla, apparently nobody cares. Origin: Dinar Temirbulatov Description: Allows gcc-4.2 to compile a modular kernel on ppc64. Rediffed to apply with -p1. diff -Naur gcc-4.2.2/gcc/varasm.c gcc-4.2.2-PR31490/gcc/varasm.c
old new 5452 5452 be read-only or not, but whether the dynamic link will have to 5453 5453 do something. If so, we wish to segregate the data in order to 5454 5454 minimize cache misses inside the dynamic linker. */ 5455 if (reloc & targetm.asm_out.reloc_rw_mask ()) 5455 if (reloc & targetm.asm_out.reloc_rw_mask () 5456 && !lookup_attribute ("section", DECL_ATTRIBUTES (decl))) 5456 5457 ret = reloc == 1 ? SECCAT_DATA_REL_LOCAL : SECCAT_DATA_REL; 5457 5458 else 5458 5459 ret = SECCAT_DATA; 5459 5460 } 5460 else if (reloc & targetm.asm_out.reloc_rw_mask ()) 5461 else if (reloc & targetm.asm_out.reloc_rw_mask () 5462 && !lookup_attribute ("section", DECL_ATTRIBUTES (decl))) 5461 5463 ret = reloc == 1 ? SECCAT_DATA_REL_RO_LOCAL : SECCAT_DATA_REL_RO; 5462 5464 else if (reloc || flag_merge_constants < 2) 5463 5465 /* C and C++ don't allow different variables to share the same
Note:
See TracBrowser
for help on using the repository browser.