diff mbox

[committed] Disable -freorder-blocks-and-partition on hppa

Message ID 20100622000039.15E23513F@hiauly1.hia.nrc.ca
State New
Headers show

Commit Message

John David Anglin June 22, 2010, midnight UTC
It's not possible to support hot and cold partitioning on hppa
without a total rewrite of the branch code.  Further, the HP linker
doesn't allow certain relocations for branches between sections.
So, I decided to just disable the -freorder-blocks-and-partition
option.

Tested on hppa2.0w-hp-hpux11.11, hppa64-hp-hpux11.11 and
hppa-unknown-linux-gnu.

Dave

Comments

Eric Botcazou June 22, 2010, 6:50 a.m. UTC | #1
> Tested on hppa2.0w-hp-hpux11.11, hppa64-hp-hpux11.11 and
> hppa-unknown-linux-gnu.

Missing leading '*' in ChangeLog entries.
diff mbox

Patch

Index: config/pa/pa.c
===================================================================
--- config/pa/pa.c	(revision 160946)
+++ config/pa/pa.c	(working copy)
@@ -519,6 +519,17 @@ 
   if (flag_pic == 1 || TARGET_64BIT)
     flag_pic = 2;
 
+  /* Disable -freorder-blocks-and-partition as we don't support hot and
+     cold partitioning.  */
+  if (flag_reorder_blocks_and_partition)
+    {
+      inform (input_location,
+              "-freorder-blocks-and-partition does not work "
+              "on this architecture");
+      flag_reorder_blocks_and_partition = 0;
+      flag_reorder_blocks = 1;
+    }
+
   /* We can't guarantee that .dword is available for 32-bit targets.  */
   if (UNITS_PER_WORD == 4)
     targetm.asm_out.aligned_op.di = NULL;