[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#320726: marked as done (gcc-4.0: mmx, sse asm need -mmmx, -msse)



Your message dated Thu, 18 Aug 2005 08:48:37 +0200
with message-id <17156.12101.700927.723294@gargle.gargle.HOWL>
and subject line Bug#320726: gcc-4.0: mmx, sse asm need -mmmx, -msse
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 31 Jul 2005 22:56:12 +0000
>From castet.matthieu@free.fr Sun Jul 31 15:56:12 2005
Return-path: <castet.matthieu@free.fr>
Received: from postfix3-1.free.fr [213.228.0.44] 
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1DzMj5-0003hB-00; Sun, 31 Jul 2005 15:56:12 -0700
Received: from [127.0.0.1] (mut38-1-82-67-62-65.fbx.proxad.net [82.67.62.65])
	by postfix3-1.free.fr (Postfix) with ESMTP id BBC4A1734B9;
	Mon,  1 Aug 2005 00:56:10 +0200 (CEST)
Content-Type: multipart/mixed; boundary="===============1011573480=="
MIME-Version: 1.0
From: matthieu castet <castet.matthieu@free.fr>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gcc-4.0: mmx, sse asm need -mmmx, -msse
X-Mailer: reportbug 3.15
Date: Mon, 01 Aug 2005 00:56:10 +0200
Message-Id: <20050731225610.BBC4A1734B9@postfix3-1.free.fr>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

This is a multi-part MIME message sent by reportbug.

--===============1011573480==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: gcc-4.0
Version: 4.0.1-3
Severity: normal

Hi,

gcc-4.0 need -mmmx, -msee, ... flags in order to compil optimized
assembler. But this break runtime decision of the optimisation according
to the cpu capcibility : you can't mix in the same file generic code, and
runtime selected code.

Attached an example where -mmmx is needed.

Matthieu


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.12
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)

Versions of packages gcc-4.0 depends on:
ii  binutils                    2.16.1-2     The GNU assembler, linker and bina
ii  cpp-4.0                     4.0.1-3      The GNU C preprocessor
ii  gcc-4.0-base                4.0.1-3      The GNU Compiler Collection (base 
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libgcc1                     1:4.0.1-3    GCC support library

Versions of packages gcc-4.0 recommends:
ii  libc6-dev                   2.3.2.ds1-22 GNU C Library: Development Librari
pn  libmudflap0-dev             <none>       (no description available)

-- no debconf information

--===============1011573480==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="p.c"

extern int mmx;
int main() {
	if (mmx) {
__asm__ __volatile__ (
	"pxor %%mm4, %%mm4\n\t"
	: : : "%mm4"
		);
	}
	else
		;/* generic code */
}

--===============1011573480==--

---------------------------------------
Received: (at 320726-done) by bugs.debian.org; 18 Aug 2005 06:48:41 +0000
>From doko@cs.tu-berlin.de Wed Aug 17 23:48:40 2005
Return-path: <doko@cs.tu-berlin.de>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1E5eCe-0000uZ-00; Wed, 17 Aug 2005 23:48:40 -0700
Received: from mailhost.cs.tu-berlin.de (postfix@mail.cs.tu-berlin.de [130.149.17.13])
	by mail.cs.tu-berlin.de (8.9.3p2/8.9.3) with ESMTP id IAA21711
	for <320726-done@bugs.debian.org>; Thu, 18 Aug 2005 08:48:38 +0200 (MEST)
Received: from localhost (localhost [127.0.0.1])
	by mailhost.cs.tu-berlin.de (Postfix) with ESMTP id 12773FD4F
	for <320726-done@bugs.debian.org>; Thu, 18 Aug 2005 08:48:38 +0200 (MEST)
Received: from mailhost.cs.tu-berlin.de ([127.0.0.1])
 by localhost (bueno [127.0.0.1]) (amavisd-new, port 10224) with ESMTP
 id 28415-50 for <320726-done@bugs.debian.org>;
 Thu, 18 Aug 2005 08:48:37 +0200 (MEST) 14102
Received: from bolero.cs.tu-berlin.de (bolero.cs.tu-berlin.de [130.149.19.1])
	by mailhost.cs.tu-berlin.de (Postfix) with ESMTP
	for <320726-done@bugs.debian.org>; Thu, 18 Aug 2005 08:48:37 +0200 (MEST)
Received: (from doko@localhost)
	by bolero.cs.tu-berlin.de (8.12.10+Sun/8.12.8/Submit) id j7I6mbjY021612;
	Thu, 18 Aug 2005 08:48:37 +0200 (MEST)
From: Matthias Klose <doko@cs.tu-berlin.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <17156.12101.700927.723294@gargle.gargle.HOWL>
Date: Thu, 18 Aug 2005 08:48:37 +0200
To: 320726-done@bugs.debian.org
Subject: Re: Bug#320726: gcc-4.0: mmx, sse asm need -mmmx, -msse
In-Reply-To: <20050731225610.BBC4A1734B9@postfix3-1.free.fr>
References: <20050731225610.BBC4A1734B9@postfix3-1.free.fr>
X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid
X-Virus-Scanned: by amavisd-new at cs.tu-berlin.de
Delivered-To: 320726-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

matthieu castet writes:
> Package: gcc-4.0
> Version: 4.0.1-3
> Severity: normal
> 
> Hi,
> 
> gcc-4.0 need -mmmx, -msee, ... flags in order to compil optimized
> assembler. But this break runtime decision of the optimisation according
> to the cpu capcibility : you can't mix in the same file generic code, and
> runtime selected code.
> 
> Attached an example where -mmmx is needed.

so where is the bug?  please split the code into two files, or compile
the code two times depending on a preprocessor define into two object
files/libraries.

see the libssl0.9.7 package for an example.



Reply to: