[Bug 2073] New: CFLAGS used for sunffb are incoherent on sparc linux using gcc; gcc should never use -mv8

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 13 06:12:33 PST 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://bugs.freedesktop.org/show_bug.cgi?id=2073        
   
           Summary: CFLAGS used for sunffb are incoherent on sparc linux
                    using gcc; gcc should never use -mv8
           Product: xorg
           Version: 6.8.0
          Platform: Sun
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Driver/other
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: fmccor at gentoo.org


The build for programs/Xserver/hw/xfree86/drivers/sunffb uses incoherent CFLAGS:
namely,
it can end up using '-mcpu=ultrasparc -mv8' which says that the build requires
ultrasparc
extensions (for ffb support) on a v8 architecture (like SS20), which is just
nonsense.
Furthermore, the -mv8 flag to gcc is deprecated (should be -mcpu=v8, and if you
think of it
that way, it is clear that '-mcpu=ultrasparc -mcpu=v8' should be an error
condition.)

Problem seems to be that -mv8 means something else if a Sun compiler is used,
but Linux does not use a Sun compiler.

In fact, with this CFLAGS set, on ultrasparc, sunffb ends up being the only part
of xorg which might also run on SS20, but it
is just about the only part of xorg which must NOT run on SS20.

Following little patch fixes this and works fine (for me, at any rate).
=============================================
--- programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile-	2004-06-16
09:44:00.000000000 +0000
+++ programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile	2004-10-27
20:27:01.000000000 +0000
@@ -19,7 +19,7 @@
 VISOPTIONS = -DUSE_VIS
 ASVISOPTION = AsVISOption
 GCCVISOPTION = -Wa,$(ASVISOPTION)
-#if AsOutputArchSize == 32
+#if AsOutputArchSize == 32 && !defined(LinuxArchitecture)
 #define FFBCObjectRule(name)						@@\
 name.o: name.c								@@\
 	ObjectCompile(-mv8 -mtune=ultrasparc \
================================================        
   
   
--         
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list