public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH]: Compile libgcc and pass -relax to linker (HC11/HC12)
@ 2002-08-14  1:03 Stephane Carrez
  0 siblings, 0 replies; only message in thread
From: Stephane Carrez @ 2002-08-14  1:03 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 404 bytes --]

Hi!

I've committed this patch to compile libgcc HC11/HC12 with -mrelax and
benefit from linker relaxation.  We must pass -relax to the linker when -mrelax
is specified.

	Stephane

2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>

	* config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
	* config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
	(LIBGCC2_CFLAGS): Compile with -mrelax.


[-- Attachment #2: m68hc11.diffs --]
[-- Type: text/plain, Size: 1631 bytes --]

Index: config/m68hc11/m68hc11.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68hc11/m68hc11.h,v
retrieving revision 1.52
diff -u -p -r1.52 m68hc11.h
--- config/m68hc11/m68hc11.h	14 Aug 2002 07:53:55 -0000	1.52
+++ config/m68hc11/m68hc11.h	14 Aug 2002 07:58:11 -0000
@@ -49,7 +49,7 @@ Note:
 /* We need to tell the linker the target elf format.  Just pass an
    emulation option.  This can be overriden by -Wl option of gcc.  */
 #ifndef LINK_SPEC
-#define LINK_SPEC      "%{m68hc12:-m m68hc12elf}%{!m68hc12:-m m68hc11elf}"
+#define LINK_SPEC      "%{m68hc12:-m m68hc12elf}%{!m68hc12:-m m68hc11elf} %{mrelax:-relax}"
 #endif
 
 #ifndef LIB_SPEC
Index: config/m68hc11/t-m68hc11-gas
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/m68hc11/t-m68hc11-gas,v
retrieving revision 1.6
diff -u -p -r1.6 t-m68hc11-gas
--- config/m68hc11/t-m68hc11-gas	14 Aug 2002 07:32:52 -0000	1.6
+++ config/m68hc11/t-m68hc11-gas	14 Aug 2002 07:58:11 -0000
@@ -34,8 +34,8 @@ LIB2FUNCS_EXTRA = $(srcdir)/config/udivm
 	$(srcdir)/config/divmod.c $(srcdir)/config/udivmod.c
 
 # Don't compile with -g1 this reduces the size of some sections (.eh_frame).
-LIBGCC2_DEBUG_CFLAGS =
-LIBGCC2_CFLAGS = -Os $(LIBGCC2_INCLUDES) $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) -DIN_LIBGCC2
+LIBGCC2_DEBUG_CFLAGS =-g
+LIBGCC2_CFLAGS = -Os -mrelax $(LIBGCC2_INCLUDES) $(TARGET_LIBGCC2_CFLAGS) $(LIBGCC2_DEBUG_CFLAGS) $(GTHREAD_FLAGS) -DIN_LIBGCC2
 
 MULTILIB_OPTIONS  = m68hc11/m68hc12 mshort fshort-double mlong-calls
 MULTILIB_DIRNAMES =

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-14  8:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-14  1:03 [PATCH]: Compile libgcc and pass -relax to linker (HC11/HC12) Stephane Carrez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).