Commit 90e0ee00 by Andrew Haley Committed by Andrew Haley

i386.h (ENCODE_SECTION_INFO): Don't do anything if DECL is not a memory ref.

Fri Oct 29 18:16:03 1999  Andrew Haley  <aph@cygnus.com>

       * config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
       DECL is not a memory ref.

From-SVN: r30261
parent 7ed62300
Fri Oct 29 18:16:03 1999 Andrew Haley <aph@cygnus.com>
* config/i386/i386.h (ENCODE_SECTION_INFO): Don't do anything if
DECL is not a memory ref.
Fri Oct 29 09:05:34 1999 Catherine Moore <clm@cygnus.com> Fri Oct 29 09:05:34 1999 Catherine Moore <clm@cygnus.com>
* config/i386/i386.h (ix86_cpu): Remove extern attribute. * config/i386/i386.h (ix86_cpu): Remove extern attribute.
......
...@@ -1578,27 +1578,30 @@ do { \ ...@@ -1578,27 +1578,30 @@ do { \
On i386, if using PIC, mark a SYMBOL_REF for a non-global symbol On i386, if using PIC, mark a SYMBOL_REF for a non-global symbol
so that we may access it directly in the GOT. */ so that we may access it directly in the GOT. */
#define ENCODE_SECTION_INFO(DECL) \ #define ENCODE_SECTION_INFO(DECL) \
do \ do \
{ \ { \
if (flag_pic) \ if (flag_pic) \
{ \ { \
rtx rtl = (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd' \ rtx rtl = (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd' \
? TREE_CST_RTL (DECL) : DECL_RTL (DECL)); \ ? TREE_CST_RTL (DECL) : DECL_RTL (DECL)); \
\ \
if (TARGET_DEBUG_ADDR \ if (GET_CODE (rtl) == MEM) \
&& TREE_CODE_CLASS (TREE_CODE (DECL)) == 'd') \ { \
{ \ if (TARGET_DEBUG_ADDR \
fprintf (stderr, "Encode %s, public = %d\n", \ && TREE_CODE_CLASS (TREE_CODE (DECL)) == 'd') \
IDENTIFIER_POINTER (DECL_NAME (DECL)), \ { \
TREE_PUBLIC (DECL)); \ fprintf (stderr, "Encode %s, public = %d\n", \
} \ IDENTIFIER_POINTER (DECL_NAME (DECL)), \
\ TREE_PUBLIC (DECL)); \
SYMBOL_REF_FLAG (XEXP (rtl, 0)) \ } \
= (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd' \ \
|| ! TREE_PUBLIC (DECL)); \ SYMBOL_REF_FLAG (XEXP (rtl, 0)) \
} \ = (TREE_CODE_CLASS (TREE_CODE (DECL)) != 'd' \
} \ || ! TREE_PUBLIC (DECL)); \
} \
} \
} \
while (0) while (0)
/* The `FINALIZE_PIC' macro serves as a hook to emit these special /* The `FINALIZE_PIC' macro serves as a hook to emit these special
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment