All of lore.kernel.org
 help / color / mirror / Atom feed
* gcc gas errors and vim
@ 2002-11-10  1:10 Corey Holcomb-Hockin
  2002-11-10  1:46 ` Brian Raiter
  0 siblings, 1 reply; 2+ messages in thread
From: Corey Holcomb-Hockin @ 2002-11-10  1:10 UTC (permalink / raw)
  To: linux-assembly

When I get a error assembling with gcc vim gets pointed to a temporary 
file with a random name that doesn't exist anymore instead of the actual 
source file.  I wondered if there is a workaround or if I should give a 
bug report to gcc.

I'm using
gcc 2.95.4
gas 2.12.1
gmake 3.79.1
vim 6.1 with patches up to 183

this is some example output when I make in vim.

gcc    -c -o main.o main.S
/tmp/ccXhsmV7.s: Assembler messages:
/tmp/ccXhsmV7.s:22: Error: suffix or operands invalid for `mul'
gmake: *** [main.o] Error 1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc gas errors and vim
  2002-11-10  1:10 gcc gas errors and vim Corey Holcomb-Hockin
@ 2002-11-10  1:46 ` Brian Raiter
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Raiter @ 2002-11-10  1:46 UTC (permalink / raw)
  To: linux-assembly

> gcc    -c -o main.o main.S
> /tmp/ccXhsmV7.s: Assembler messages:
> /tmp/ccXhsmV7.s:22: Error: suffix or operands invalid for `mul'
> gmake: *** [main.o] Error 1

gcc understands a .S file to mean that the assembly program should be
preprocessed first, so it stores the preprocessed output to a
temporary file, with a .s suffix. Run your .S file through the
preprocessor alone to check what's on line 22. (If you don't want your
assembly file preprocessed then change the suffix to .s.)

b

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-10  1:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-10  1:10 gcc gas errors and vim Corey Holcomb-Hockin
2002-11-10  1:46 ` Brian Raiter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.