Bug 1037

Summary: There is a -mv8 switch left in the source, it is imposible to compile it with gcc4
Product: glibc Reporter: Balint Cristian <rezso>
Component: libcAssignee: GOTO Masanori <gotom>
Status: RESOLVED FIXED    
Severity: normal CC: glibc-bugs
Priority: P2    
Version: 2.3.5   
Target Milestone: ---   
Host: sparc-redhat-linux Target: sparc-redhat-linux
Build: sparc-redhat-linux Last reconfirmed:
Bug Depends on:    
Bug Blocks: 852    

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.