Bug 1037 - There is a -mv8 switch left in the source, it is imposible to compile it with gcc4
Summary: There is a -mv8 switch left in the source, it is imposible to compile it wit...
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.3.5
: P2 normal
Target Milestone: ---
Assignee: GOTO Masanori
URL:
Keywords:
Depends on:
Blocks: libc236
  Show dependency treegraph
 
Reported: 2005-06-27 14:10 UTC by Balint Cristian
Modified: 2005-10-12 04:44 UTC (History)
1 user (show)

See Also:
Host: sparc-redhat-linux
Target: sparc-redhat-linux
Build: sparc-redhat-linux
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Balint Cristian 2005-06-27 14:10:17 UTC
There is a -mv8 switch left in the source, it is imposible to compile it     
with gcc4      
   See in sysdeps/unix/sysv/linux/sparc/sparc32/Makefile  
  
An possible patch [work for me], maybe can be enhanched with pragmas deciding what compiler 
we have: 
--- sysdeps/unix/sysv/linux/sparc/sparc32/Makefile.orig 2003-08-31   
20:22:46.000000000 +0300   
+++ sysdeps/unix/sysv/linux/sparc/sparc32/Makefile      2005-06-26   
18:58:07.000000000 +0300   
@@ -4,7 +4,7 @@   
   
 # When I get this to work, this is the right thing   
 ifeq ($(subdir),elf)   
-CFLAGS-rtld.c += -mv8   
+CFLAGS-rtld.c += -mcpu=v7 -mtune=ultrasparc   
 #rtld-routines += dl-sysdepsparc 
 sysdep-others += lddlibc4   
 install-bin += lddlibc4
Comment 1 Balint Cristian 2005-06-27 14:11:03 UTC
Works for me using the patch. 
Comment 2 Sourceware Commits 2005-07-02 22:40:42 UTC
Subject: Bug 1037

CVSROOT:	/cvs/glibc
Module name:	libc
Changes by:	roland@sources.redhat.com	2005-07-02 22:40:35

Modified files:
	sysdeps/unix/sysv/linux/sparc/sparc32: Makefile 

Log message:
	2005-06-27  Jakub Jelinek  <jj@ultra.linux.cz>
	
	[BZ #1037]
	* sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: -mv8 is deprecated,
	use -mcpu=v8.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/sparc/sparc32/Makefile.diff?cvsroot=glibc&r1=1.11&r2=1.12

Comment 3 GOTO Masanori 2005-07-29 03:57:38 UTC
Fixed in the cvs.