diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 812dd1475f8..2a3bda14241 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-10-20 Richard Earnshaw + + PR target/39247 + * arm.c (arm_override_options): Forcibly disable hot/cold block + partitioning. + 2009-10-20 Alexandre Oliva PR debug/41739 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index e013dc2f70f..93c35901116 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -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