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

Bug#212902: marked as done (gcc-3.3: gcc generates illegal intermediate assembly file: invalid character '=' in operand 1)



Your message dated 26 Sep 2003 21:41:59 +0200
with message-id <87fzijqquw.fsf@student.uni-tuebingen.de>
and subject line Bug#212902: gcc-3.3: gcc generates illegal intermediate assembly file: invalid character '=' in operand 1
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; 26 Sep 2003 18:22:31 +0000
>From alext@fc.hp.com Fri Sep 26 13:20:52 2003
Return-path: <alext@fc.hp.com>
Received: from atlrel7.hp.com [156.153.255.213] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1A2xD2-0002M4-00; Fri, 26 Sep 2003 13:20:52 -0500
Received: from type2.fc.hp.com (type2.fc.hp.com [15.11.146.42])
	by atlrel7.hp.com (Postfix) with ESMTP id 4BFD81C01D86
	for <submit@bugs.debian.org>; Fri, 26 Sep 2003 14:20:52 -0400 (EDT)
Received: by type2.fc.hp.com (Postfix, from userid 1000)
	id 04D157EC6C; Fri, 26 Sep 2003 12:20:51 -0600 (MDT)
Content-Type: multipart/mixed; boundary="===============0968378473=="
MIME-Version: 1.0
From: Alex Tsariounov <alext@fc.hp.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gcc-3.3: gcc generates illegal intermediate assembly file: invalid character
 '=' in operand 1
X-Mailer: reportbug 2.30
Date: Fri, 26 Sep 2003 12:20:51 -0600
Message-Id: <[🔎] 20030926182051.04D157EC6C@type2.fc.hp.com>
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0
	tests=HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_9_21
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_9_21 (1.174.2.15-2003-03-30-exp)

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

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

Package: gcc-3.3
Version: 1:3.3.2-0pre4
Severity: normal


When compiling the attached code on i386, the compilers seems to
generate an illegal intermediate assembly file that fails to assemble
with following messages:

[type2:lttk]$ gcc -o syscall_time syscall_time.c
/tmp/cc3VnwUh.s: Assembler messages:
/tmp/cc3VnwUh.s:118: Error: invalid character '=' in operand 1
/tmp/cc3VnwUh.s:126: Error: invalid character '=' in operand 1
/tmp/cc3VnwUh.s:201: Error: invalid character '=' in operand 1
/tmp/cc3VnwUh.s:211: Error: invalid character '=' in operand 1
/tmp/cc3VnwUh.s:293: Error: invalid character '=' in operand 1
/tmp/cc3VnwUh.s:303: Error: invalid character '=' in operand 1
[type2:lttk]$ 

Thanks,
Alex Tsariounov

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux type2 2.4.21-4-686-smp #1 SMP Sun Aug 3 00:31:17 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages gcc-3.3 depends on:
ii  binutils                   2.14.90.0.6-3 The GNU assembler, linker and bina
ii  cpp-3.3                    1:3.3.2-0pre4 The GNU C preprocessor
ii  gcc-3.3-base               1:3.3.2-0pre4 The GNU Compiler Collection (base 
ii  libc6                      2.3.2-8       GNU C Library: Shared libraries an
ii  libgcc1                    1:3.3.2-0pre4 GCC support library

-- no debconf information


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

#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

#define mTICKNOW(T) __asm__ __volatile__("mov %0=ar.itc" : "=r"(T) :: "memory");


int
main(int argc, char *argv[])
{
	unsigned long ii, jj, times, groups;
	long diff;
	double realtotal;
	unsigned long tick1, tick2, total;
	struct timeval tv;
	int fh;
	char buf[4096];
	double mhz;
	FILE *fp;

	if (argc>1) 
		times = atoi(argv[1]);
	else
		times = 100;

	if (argc>2)
		groups = atoi(argv[2]);
	else
		groups = 3;

	/* Get processor speed from /proc/cpuinfo */
	fp=fopen("/proc/cpuinfo", "r");
	if (!fp) exit(1);
	while (fgets(buf, 80, fp)) {
		if (strstr(buf, "cpu MHz")) {
			jj= sscanf(buf, "cpu MHz : %lf", &mhz);
			if (jj != 1) exit(1);
			break;
		}
	}
	if (jj!=1) exit(1);

	/*
	 * gettimeofday() syscall
	 */
	realtotal = 0.0;
	total = 0;
	for (jj=0; jj<groups; jj++) {
		for (ii=0; ii<times; ii++) {
			mTICKNOW(tick1);

			gettimeofday(&tv, 0);

			mTICKNOW(tick2);

			total += (tick2 - tick1);
		}
		realtotal += ((double)total / times);
		total = 0;
		usleep(1000);
	}

	printf("Average call to gettimeofday(%d) lasts: %lf us\n",
		ii*groups, (realtotal/groups)/mhz);

	/*
	 * read() syscall 
	 */
	realtotal = 0.0;
	total = 0;
	fh = open(argv[0], O_RDONLY);
	for (jj=0; jj<groups; jj++) {
		for (ii=0; ii<times; ii++) {
			mTICKNOW(tick1);

			read(fh, buf, 4096);

			mTICKNOW(tick2);

			total += (tick2 - tick1);

			lseek(fh, 0, SEEK_SET);
		}
		realtotal += ((double)total / times);
		total = 0;
		usleep(1000);
	}
	close(fh);
	
	printf("Average call to         read(%d) lasts: %lf us\n",
		ii*groups, (realtotal/groups)/mhz);
	
	/*
	 * write() syscall  (at end of syscall table)
	 */
	realtotal = 0.0;
	total = 0;
	fh = open("/tmp/xxx_tmp_syscall_test_xxx", (O_CREAT|O_RDWR), 0644);
	for (jj=0; jj<groups; jj++) {
		for (ii=0; ii<times; ii++) {
			mTICKNOW(tick1);

			write(fh, buf, 4096);

			mTICKNOW(tick2);

			total += (tick2 - tick1);

			lseek(fh, 0, SEEK_SET);
		}
		realtotal += ((double)total / times);
		total = 0;
		usleep(1000);
	}
	close(fh);


	printf("Average call to        write(%d) lasts: %lf us\n",
		ii*groups, (realtotal/groups)/mhz);
}

--===============0968378473==--

---------------------------------------
Received: (at 212902-done) by bugs.debian.org; 26 Sep 2003 19:42:04 +0000
>From falk.hueffner@student.uni-tuebingen.de Fri Sep 26 14:42:02 2003
Return-path: <falk.hueffner@student.uni-tuebingen.de>
Received: from mx3.informatik.uni-tuebingen.de [134.2.12.26] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1A2yTa-0002dd-00; Fri, 26 Sep 2003 14:42:02 -0500
Received: from juist (semeai [134.2.15.66])
	by mx3.informatik.uni-tuebingen.de (Postfix) with ESMTP id BD6A315A
	for <212902-done@bugs.debian.org>; Fri, 26 Sep 2003 21:42:00 +0200 (DFT)
Received: from falk by juist with local (Exim 3.36 #1 (Debian))
	id 1A2yTY-0001F9-00
	for <212902-done@bugs.debian.org>; Fri, 26 Sep 2003 21:42:00 +0200
X-Face: "iUeUu$b*W_"w?tV83Y3*r:`rh&dRv}$YnZ3,LVeCZSYVuf[Gpo*5%_=/\_!gc_,SS}[~xZ
 wY77I-M)xHIx:2f56g%/`SOw"Dx%4Xq0&f\Tj~>|QR|vGlU}TBYhiG(K:2<T^
To: 212902-done@bugs.debian.org
Subject: Re: Bug#212902: gcc-3.3: gcc generates illegal intermediate assembly file: invalid character '=' in operand 1
References: <[🔎] 20030926182051.04D157EC6C@type2.fc.hp.com>
	<[🔎] 87llsbqt9c.fsf@student.uni-tuebingen.de>
	<[🔎] 20030926193345.GA16236@fc.hp.com>
From: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
Date: 26 Sep 2003 21:41:59 +0200
In-Reply-To: <[🔎] 20030926193345.GA16236@fc.hp.com>
Message-ID: <87fzijqquw.fsf@student.uni-tuebingen.de>
Lines: 4
User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (cabbage)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: 212902-done@bugs.debian.org
X-Spam-Status: No, hits=0.0 required=4.0
	tests=none
	version=2.53-bugs.debian.org_2003_9_21
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_9_21 (1.174.2.15-2003-03-30-exp)

Closing on request of submitter.

-- 
	Falk



Reply to: