OSDN Git Service

* config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jan 2009 16:06:53 +0000 (16:06 +0000)
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 29 Jan 2009 16:06:53 +0000 (16:06 +0000)
(ASM_OUTPUT_DWARF_PCREL): Define.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143758 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/sol2-10.h

index 1a83aea..a7fc861 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
+       (ASM_OUTPUT_DWARF_PCREL): Define.
+
 2008-01-29  Vladimir Makarov  <vmakarov@redhat.com>
 
        * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
index bd5c637..6e7f13d 100644 (file)
@@ -1,5 +1,5 @@
 /* Solaris 10 configuration.
-   Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
    Contributed by CodeSourcery, LLC.
 
 This file is part of GCC.
@@ -39,6 +39,15 @@ along with GCC; see the file COPYING3.  If not see
 #ifndef HAVE_AS_IX86_DIFF_SECT_DELTA
 #undef JUMP_TABLES_IN_TEXT_SECTION
 #define JUMP_TABLES_IN_TEXT_SECTION 1
+
+/* The native Solaris assembler cannot handle the SYMBOL-. syntax, but
+   requires SYMBOL@rel/@rel64 instead.  */
+#define ASM_OUTPUT_DWARF_PCREL(FILE, SIZE, LABEL)      \
+  do {                                                 \
+    fputs (integer_asm_op (SIZE, FALSE), FILE);                \
+    assemble_name (FILE, LABEL);                       \
+    fputs (SIZE == 8 ? "@rel64" : "@rel", FILE);       \
+  } while (0)
 #endif
 
 #undef NO_PROFILE_COUNTERS