Article View: gnu.gcc.bug
Article #1578gcc-2.3.3: gcc -E foo.s runs gas
From: Orest Zborowski COMP
Date: Tue, 05 Jan 1993 01:31
Date: Tue, 05 Jan 1993 01:31
33 lines
1352 bytes
1352 bytes
Trying to run makedepend for X11R5 I discovered that gcc -E foo.s will run
the assember, rather than stopping after performing any preprocessing:
---foo.s---
#define florp blorp
florp
---
% gcc -v -E foo.s
Reading specs from /usr/local/lib/gcc-2.3.3/gcc-lib/sparc-sun-sunos4.1/2.3.3/specs
gcc version 2.3.3
as -o /usr/tmp/cca233591.o foo.s
as: "foo.s", line 1: error: unknown opcode "FLORP"
as: "foo.s", line 1: error: statement syntax
gcc: /usr/tmp/cca233591.o: No such file or directory
Sun cc produces:
% cc -E foo.s
# 1 "foo.s"
blorp
I inferred from the manpage that
-c stops after producing .o
-S stops after producing .s
-E stops after producing cpp file
It wasn't clear what was supposed to happen with a .s file, but Sun's behavior
seems consistent. Am I misunderstanding something?
zorst
--
zorst (orest zborowski)
[obz@raster.Kodak.COM]
Technical Details
Message-ID:
<1993Jan5.013139.9384@sisd.kodak.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sisd.kodak.COM!obzShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sisd.kodak.COM!obz From: obz@sisd.kodak.COM (Orest Zborowski COMP) Subject: gcc-2.3.3: gcc -E foo.s runs gas Message-ID: <1993Jan5.013139.9384@sisd.kodak.com> Sender: gnulists@ai.mit.edu Organization: Printer Products Eastman Kodak Distribution: gnu Date: Tue, 5 Jan 1993 01:31:39 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 34