summaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/arm/arm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c
index 70e3d787a0c..6527f5556da 100644
--- a/gcc/config/arm/arm.c
+++ b/gcc/config/arm/arm.c
@@ -3230,7 +3230,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
/* Play games to avoid marking the function as needing pic
if we are being called as part of the cost-estimation
process. */
- if (!ir_type())
+ if (current_ir_type () != IR_GIMPLE)
current_function_uses_pic_offset_table = 1;
}
else
@@ -3242,7 +3242,7 @@ legitimize_pic_address (rtx orig, enum machine_mode mode, rtx reg)
/* Play games to avoid marking the function as needing pic
if we are being called as part of the cost-estimation
process. */
- if (!ir_type())
+ if (current_ir_type () != IR_GIMPLE)
{
current_function_uses_pic_offset_table = 1;
start_sequence ();