delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/08/19:52:07

From: Francisco Gochez <arcanix AT erols DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Possible GAS bug
Date: 8 Oct 1996 21:25:50 GMT
Organization: None
Lines: 15
Message-ID: <53egsu$1f8@boursy.news.erols.com>
NNTP-Posting-Host: asxxxs22.erols.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

It took me an hour to find a syntax error in an assembly language module 
I had written, because the error was being caused by whitespace in the 
code.  It occured after placing spaces (not on purpose) after backslashes 
at the end of lines of macros.
Here is an example:

#define mymacro() \
movl %eax, %ebx   ; \_SPACES_PLACED_HERE_
movl %ecx, %edx   ; \
movl %edx, %eax

When GAS encounters these spaces, it appears to choke on pieces of the 
code, warning the programmer that parts of certain lines have been 
ignored, and failing to compile in the process.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019