From 05ca35c718e8540c9365559e517fb1e4aa5e1b14 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 19 Oct 1994 20:51:33 +0000 Subject: [PATCH] Fix -fpic -a problems. From-SVN: r8315 --- gcc/config/i386/i386.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h index c11aaa22e7c..a5623a7d87d 100644 --- a/gcc/config/i386/i386.h +++ b/gcc/config/i386/i386.h @@ -972,9 +972,15 @@ do \ \ ASM_GENERATE_INTERNAL_LABEL (counts, "LPBX", 2); \ cnt_rtx = gen_rtx (SYMBOL_REF, VOIDmode, counts); \ - CONSTANT_POOL_ADDRESS_P (cnt_rtx) = TRUE; \ + SYMBOL_REF_FLAG (cnt_rtx) = TRUE; \ \ - xops[0] = gen_rtx (MEM, SImode, plus_constant (cnt_rtx, (BLOCKNO)*4)); \ + if (BLOCKNO) \ + cnt_rtx = plus_constant (cnt_rtx, (BLOCKNO)*4); \ + \ + if (flag_pic) \ + cnt_rtx = gen_rtx (PLUS, Pmode, pic_offset_table_rtx, cnt_rtx); \ + \ + xops[0] = gen_rtx (MEM, SImode, cnt_rtx); \ output_asm_insn (AS1(inc%L0,%0), xops); \ } \ while (0)