small ix86/Linux patch

Ulrich Drepper drepper@cygnus.com
Sun Jun 6 18:22:00 GMT 1999


Currently egcs generates for x86/Linux tons of labels which are
visible in the final object file since whenever debugging is enabled
it contains the lines

        .stabs "",100,0,0,Letext
Letext:


This is because config/i386/linux.h does not define LOCAL_LABEL_PREFIX
correctly.  This patch fixes the problem.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1999-06-06  Ulrich Drepper  <drepper@cygnus.com>

	* config/i386/linux.h: Define LOCAL_LABEL_PREFIX.

diff -d -u -p -r1.15 linux.h
--- linux.h	1999/04/08 00:32:13	1.15
+++ linux.h	1999/06/07 01:17:47
@@ -1,5 +1,5 @@
 /* Definitions for Intel 386 running Linux-based GNU systems with ELF format.
-   Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1994, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
    Contributed by Eric Youngdale.
    Modified for stabs-in-ELF by H.J. Lu.
 
@@ -234,3 +234,6 @@ Boston, MA 02111-1307, USA.  */
     }									\
   } while (0)
 #endif
+
+#undef LOCAL_LABEL_PREFIX
+#define LOCAL_LABEL_PREFIX "."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


More information about the Gcc-patches mailing list