This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

x86-64 multilibing



Hi,
this patch makes -m32/-m64 multilibing to work.

Thu Mar 14 20:56:09 CET 2002  Jan Hubicka  <jh@suse.cz>
	* linux64.h (MULTILIB_DEFAULTS): Set to "m64".
	(t-linux64): Add multilibing

Index: config/i386/linux64.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/i386/linux64.h,v
retrieving revision 1.3.6.1
diff -c -3 -p -r1.3.6.1 linux64.h
*** config/i386/linux64.h	28 Feb 2002 17:35:01 -0000	1.3.6.1
--- config/i386/linux64.h	14 Mar 2002 10:54:39 -0000
*************** Boston, MA 02111-1307, USA.  */
*** 65,67 ****
--- 65,69 ----
  #define ENDFILE_SPEC "\
    %{m32:%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s} \
    %{!m32:%{!shared:crtend.o%s} %{shared:crtendS.o%s} /usr/lib64/crtn.o%s}"
+ 
+ #define MULTILIB_DEFAULTS { "m64" }
Index: config/i386/t-linux64
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/config/i386/t-linux64,v
retrieving revision 1.1.8.1
diff -c -3 -p -r1.1.8.1 t-linux64
*** config/i386/t-linux64	21 Feb 2002 20:02:12 -0000	1.1.8.1
--- config/i386/t-linux64	14 Mar 2002 10:54:39 -0000
***************
*** 1,3 ****
--- 1,11 ----
  # On x86-64 we do not need any exports for glibc, override the settings
  # from t-slibgcc-elf-ver and t-linux
  SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver
+ 
+ MULTILIB_OPTIONS = m64/m32
+ MULTILIB_DIRNAMES = 64 32 
+ 
+ LIBGCC = stmp-multilib
+ INSTALL_LIBGCC = install-multilib
+ 
+ EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]