OSDN Git Service

PR target/39247
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Oct 2009 15:17:30 +0000 (15:17 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Oct 2009 15:17:30 +0000 (15:17 +0000)
* arm.c (arm_override_options): Forcibly disable hot/cold block
partitioning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153018 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/arm.c

index 812dd14..2a3bda1 100644 (file)
@@ -1,3 +1,9 @@
+2009-10-20  Richard Earnshaw  <rearnsha@arm.com>
+
+       PR target/39247
+       * arm.c (arm_override_options): Forcibly disable hot/cold block
+       partitioning.
+
 2009-10-20  Alexandre Oliva  <aoliva@redhat.com>
 
        PR debug/41739
index e013dc2..93c3590 100644 (file)
@@ -1864,6 +1864,16 @@ arm_override_options (void)
         max_insns_skipped = 3;
     }
 
+  /* Hot/Cold partitioning is not currently supported, since we can't
+     handle literal pool placement in that case.  */
+  if (flag_reorder_blocks_and_partition)
+    {
+      inform (input_location,
+             "-freorder-blocks-and-partition not supported on this architecture");
+      flag_reorder_blocks_and_partition = 0;
+      flag_reorder_blocks = 1;
+    }
+
   /* Ideally we would want to use CFI directives to generate
      debug info.  However this also creates the .eh_frame
      section, so disable them until GAS can handle