This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Inability to use divide symbol in gas


Hi Ian,

> Is there a commonly accepted work-around? For example, can the
> preprocessor be turned off around that section of source,

Yes - see the assembler documentation for a descriptions of the #NO_APP
directive.

> or is there a configure option which allows a version of gas to be
> built that does not use / for comments?

Yes - try: i686-pc-linux-gnu

> For those that are interested, here's a short source file which
> demonstrates the problem. It fails on the assignment to symbol4,
> complaining that there is a missing ')'
  
> symbol1 = 20
> symbol2 = 10
> symbol3 = (symbol1 * symbol2)
> symbol4 = (symbol1 / symbol2)

Whereas this version does not:

  #NO_APP
  #APP
  symbol1 = 20
  symbol2 = 10
  /* this is a comment */

  symbol3 = (symbol1 * symbol2)
  #NO_APP
  symbol4 = (symbol1 / symbol2)
  #APP


Cheers
        Nick
        


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]