www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/21/09:49:50

From: kj AT raunvis DOT hi DOT is (Kristjan Jonsson)
Subject: Re: Problem with GRX-1.03m1
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Tue, 21 Mar 1995 12:00:18 +0000 (GMT)

Bill Davidsen writes
> This is a problem that has come up before, and I haven't heard a good 
> explanation, and I don't know if it is Gnu-specific or djgpp-specific.  
> However, the problem is that the GRX sources contain some inline 
> assembler that contains C comments.  Everything I have read in the docs 
> tells me that should be OK, but the assembler gags on those comments.  
> Part of the problem is (as I recall) that the comments are within the 
> assembler quoted strings, so cpp quite rightly doesn't touch them.  
> However, I thought 'as' should understand them but it doesn't.
> The fix I used is to edit the sources (actually only one offending file, 
> I think???), locate the asm"..." sections, and take out the comments.  
> Then they assemble fine.
> There might be a switch to fix this (little bells are ringing, something 
> about a switch that tells 'as' to treat the file as user-created rather 
> than compiler-created), but I don't know what it is.  If there _is_ such 
> a switch, it should have been in the makefile!
The offending file is event32.c or something like that.  The solution I used
was to add an intermediate step in the makefile.
.c.S:
	gcc -S ......
	
.S.o:
	gcc -c ...... file.S
	
using capital S as the file extension tells gcc to run the file through cpp
when assembling, thus stripping the comments.
I think the reason for this problem is that GCC has changed behaviour in
this respect since GRX was last updated.

The makefiles are written for Turbo make sometime after Turbo C v2.0, as
the Turbo Pascal 6 make works fine, but the TC2 one doesn't.

-- 
--- Kristjan Jonsson --- kj AT raunvis DOT hi DOT is ---

- Raw text -


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