delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/10/29/10:41:32

Date: Sat, 29 Oct 94 09:54:41 -0400
From: terry AT aegis DOT larc DOT nasa DOT gov (Terry Abbott)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Embedded assembler and comments

I just switched to 1.12 and am now getting gas errors on code that
used to work (like Sally's FS Debugger) under 1.11.  It looks like embedded
comments now cause errors.  Example:
 
  asm(            "\n\
    movl    $_npx, %eax          \n\
  /*      movb    $0,4(%eax)  */  /* clear pending exceptions */  \n\
    frstor  (%eax)           "
      );
 
Now causes the following:
  g:/cca00071: Assembler messages:
  g:/cca00071:745: Error: Rest of line ignored. First ignored character is `*'.
 
while:
 
  asm(            "\n\
    movl    $_npx, %eax          \n\
    frstor  (%eax)           "
      );
 
works fine.  Is there a new switch setting or define that will cure this
problem without needing to go in to all the code and remove the comments?
 
 
Any advice?
  terry AT aegis DOT larc DOT nasa DOT gov


- Raw text -


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