From z Fri Nov 10 15:42:03 2000
Received: from maguro.epr.com ([198.3.162.27]) by exchange.epr.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
	id WNKAMCA4; Fri, 10 Nov 2000 06:39:22 -0800
Received: from magrathea.epr.com (firewall-user@magrathea.epr.com [198.3.160.1])
	by maguro.epr.com (8.9.3/8.9.3) with ESMTP id GAA06013
	for <sweeks@intertrust.com>; Fri, 10 Nov 2000 06:42:56 -0800 (PST)
Received: (from uucp@localhost) by magrathea.epr.com (8.9.3/8.7.3) id GAA07878 for <sweeks@intertrust.com>; Fri, 10 Nov 2000 06:42:55 -0800 (PST)
Received: from nodnsquery(199.222.69.4) by magrathea.epr.com via smap (V5.5)
	id xma007864; Fri, 10 Nov 00 06:42:20 -0800
Received: from clairv.com (IDENT:root@pc246.edi.nunet.net [199.249.165.246])
	by mail.acm.org (8.9.3/8.9.3) with ESMTP id JAA81770
	for <sweeks@acm.org>; Fri, 10 Nov 2000 09:42:03 -0500
Received: from simon.cs.cornell.edu (simon.cs.cornell.edu [128.84.154.10])
	by clairv.com (8.9.3/8.9.3) with ESMTP id IAA06516
	for <MLton@sourcelight.com>; Fri, 10 Nov 2000 08:42:11 -0600
Received: from sundial.cs.cornell.edu (sundial.cs.cornell.edu [128.84.96.115])
	by simon.cs.cornell.edu (8.9.3/8.9.3/R-3.1) with ESMTP id JAA13501
	for <MLton@sourcelight.com>; Fri, 10 Nov 2000 09:42:05 -0500 (EST)
Received: from hoho.cs.cornell.edu (hoho.cs.cornell.edu [128.84.96.89])
	by sundial.cs.cornell.edu (8.9.3/8.9.3/M-3.2) with ESMTP id JAA26380
	for <MLton@sourcelight.com>; Fri, 10 Nov 2000 09:42:04 -0500 (EST)
Received: from localhost (fluet@localhost)
	by hoho.cs.cornell.edu (8.9.3/8.9.3/C-3.0) with SMTP id JAA28374
	for <MLton@sourcelight.com>; Fri, 10 Nov 2000 09:42:04 -0500 (EST)
X-Authentication-Warning: hoho.cs.cornell.edu: fluet owned process doing -bs
Date: Fri, 10 Nov 2000 09:42:03 -0500 (EST)
From: Matthew Fluet <fluet@CS.Cornell.EDU>
To: MLton@sourcelight.com
Subject: Re: -g with -native
In-Reply-To: <14859.16087.651993.392864@eponym.epr.com>
Message-ID: <Pine.SOL.3.95.1001110093931.27252A-100000@hoho.cs.cornell.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
	eponym.sweeks.com
X-Spam-Level: 
X-Spam-Status: No, hits=-100.0 required=3.0 tests=AWL,USER_IN_WHITELIST 
	autolearn=no version=2.60

> Done.  Here's what the gcc calls now look like when compiling -g -native.
> 
> gcc -S -I/home/sweeks/mlton/include -g -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/fileQuRrII.s /tmp/fileusayiD.c
> gcc -c -I/home/sweeks/mlton/include -g -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/file0FnLUQ.o /tmp/fileQuRrII.s
> gcc -Wa --gstabs -c -I/home/sweeks/mlton/include -g -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o /tmp/filei1QNp0.o /tmp/fileXGq5SI.0.s
> gcc -I/home/sweeks/mlton/include -g -w -fomit-frame-pointer -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o wrong /tmp/file0FnLUQ.o /tmp/filei1QNp0.o -L/home/sweeks/mlton/lib -lmlton-gdb -lm -lgmp

Looks good, but in the third call, "-Wa --gstabs" should be "-Wa,--gstabs"
(i.e., not two arguments, instead a single argument with a comma).  I
don't know what gcc does with the --gstabs option alone, but I don't get
an object file with line number debug info.


