]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/ChangeLog
re PR middle-end/31490 (Compile error section type conflict)
[gcc.git] / gcc / ChangeLog
index 759227d9985fc5d7007031b78e6b30fe42545d15..59f7a45881ce6f94d03e6ac1a1f837b32258edd5 100644 (file)
@@ -1,3 +1,31 @@
+2011-02-03  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/31490
+       * output.h (SECTION_RELRO): Define.
+       (SECTION_MACH_DEP): Adjust.
+       (get_variable_section): New prototype.
+       * varpool.c (varpool_finalize_named_section_flags): New function.
+       (varpool_assemble_pending_decls): Call it.
+       * cgraph.h (varpool_finalize_named_section_flags): New prototype.
+       * cgraphunit.c (cgraph_output_in_order): Call
+       varpool_finalize_named_section_flags.
+       * varasm.c (get_section): Allow section flags conflicts between
+       relro and read-only sections if the section hasn't been declared yet.
+       Set SECTION_OVERRIDE after diagnosing section type conflict.
+       (get_variable_section): No longer static.
+       (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
+       readonly sections that need relocations.
+       (decl_readonly_section_1): New function.
+       (decl_readonly_section): Use it.
+
+       Revert:
+       2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
+                   Steve Ellcey  <sje@cup.hp.com>
+
+       PR middle-end/31490
+       * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
+       if section attribute used.
+
 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
 
        * config/darwin.h (SECTION_NO_ANCHOR): Remove.
This page took 0.044713 seconds and 5 git commands to generate.