dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO at runtime.
authorDavid Edelsohn <dje.gcc@gmail.com>
Tue, 8 Nov 2016 19:40:54 +0000 (19:40 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Tue, 8 Nov 2016 19:40:54 +0000 (14:40 -0500)
        * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
        at runtime.

From-SVN: r241975

gcc/ChangeLog
gcc/dwarf2asm.c

index 7e128080e6e13bf68ac4cdea2a443959487f28ba..76b2d3f232905234aaf41ac50c6f6671a3d83eda 100644 (file)
@@ -1,3 +1,8 @@
+2016-11-08  David Edelsohn  <dje.gcc@gmail.com>
+
+       * dwarf2asm.c (USE_LINKONCE_INDIRECT): Test XCOFF_DEBUGGING_INFO
+       at runtime.
+
 2016-11-08  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/70799
index 80f385b0e13195c5cce8ecaec9beb063701a86ec..2e0aae4082705b7fcaf9e08727b6beb5e57f4dc6 100644 (file)
@@ -824,8 +824,8 @@ static GTY(()) hash_map<const char *, tree> *indirect_pool;
 
 static GTY(()) int dw2_const_labelno;
 
-#if defined(HAVE_GAS_HIDDEN) && !defined(XCOFF_DEBUGGING_INFO)
-# define USE_LINKONCE_INDIRECT (SUPPORTS_ONE_ONLY)
+#if defined(HAVE_GAS_HIDDEN)
+# define USE_LINKONCE_INDIRECT (SUPPORTS_ONE_ONLY && !XCOFF_DEBUGGING_INFO)
 #else
 # define USE_LINKONCE_INDIRECT 0
 #endif