View Issue Details

IDProjectCategoryView StatusLast Update
0038550FPCDocumentationpublic2021-03-07 12:04
ReporterKai Burghardt Assigned ToMichael Van Canneyt  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSGNU/Linux 
Product Version3.2.0 
Fixed in Version3.3.1 
Summary0038550: assembler style DIRECT documented but not available
DescriptionAt some places it is [still?] documented there is/was -Rdirect and {$ASMMODE DIRECT}, but using it either yields a “Illegal parameter” or “Illegal assembler style specified "DIRECT"” error.

Either there’s missing information (a la “only available on _some_ platforms” or requires _certain_ configuration) or it is not supported at all (anymore?).
Additional InformationThe compiler’s _own_ on-line help (`-h` option) does not list `-Rdirect` (anymore?):

$ fpc -h | grep -- -R
  -R<x> Assembler reading style:
      -Rdefault Use default assembler for target
      -Ratt Read AT&T style assembler
      -Rintel Read Intel style assembler
TagsNo tags attached.
Fixed in Revision1811
FPCOldBugId
FPCTarget3.2.2
Attached Files

Activities

Kai Burghardt

2021-02-27 15:50

reporter  

fpcbuild.patch (390 bytes)   
Index: install/man/man1/fpc.1
===================================================================
--- install/man/man1/fpc.1	(revision 1541)
+++ install/man/man1/fpc.1	(working copy)
@@ -612,8 +612,8 @@
 .I intel
 Asm blocks contain Intel assembler.
 .TP
-.I direct
-Asm blocks should be copied as-is in the assembler
+.I default
+Default style (as of 3.2.0 this is AT&T).
 file.
 .RE
 .TP
fpcbuild.patch (390 bytes)   
fpcdocs.patch (1,306 bytes)   
Index: prog.tex
===================================================================
--- prog.tex	(revision 1806)
+++ prog.tex	(working copy)
@@ -197,9 +197,7 @@
 \item [att\ ] Indicates that \var{asm} blocks contain AT\&T syntax assembler.
 \item [intel\ ] Indicates that \var{asm} blocks contain Intel syntax
 assembler.
-\item [direct\ ] Tells the compiler that asm blocks should be copied
-directly to the assembler file. It is not possible to use such assembler
-blocks when the internal assembler of the compiler is used.
+\item [default\ ] Default style.
 \end{description}
 These switches are local, and retain their value to the end of the unit that
 is compiled, unless they are replaced by another directive of the same type.
Index: user.tex
===================================================================
--- user.tex	(revision 1806)
+++ user.tex	(working copy)
@@ -1540,8 +1540,6 @@
 This is the default style.
 \item [intel] \var{asm} blocks contain Intel-style assembler.
 \item [default] Use the default assembler for the specified target.
-\item [direct] \var{asm} blocks should be copied as is in the assembler,
-only replacing certain variables.
 \end{description}
 \item [-S2] \olabel{Stwo} Switch on Delphi 2 extensions (\var{objfpc} mode).
 Deprecated, use \var{-Mobjfpc} instead.
fpcdocs.patch (1,306 bytes)   

Kai Burghardt

2021-02-27 15:52

reporter   ~0129200

Confer 0014269:0029517

Michael Van Canneyt

2021-03-07 12:04

administrator   ~0129470

Changed direct to default, adapted description.
(I saw your patches only after I changed the text, so the end result may differ slightly)

Thanks for reporting !

Issue History

Date Modified Username Field Change
2021-02-27 15:50 Kai Burghardt New Issue
2021-02-27 15:50 Kai Burghardt Status new => assigned
2021-02-27 15:50 Kai Burghardt Assigned To => Michael Van Canneyt
2021-02-27 15:50 Kai Burghardt File Added: fpcbuild.patch
2021-02-27 15:50 Kai Burghardt File Added: fpcdocs.patch
2021-02-27 15:52 Kai Burghardt Note Added: 0129200
2021-03-07 12:04 Michael Van Canneyt Status assigned => resolved
2021-03-07 12:04 Michael Van Canneyt Resolution open => fixed
2021-03-07 12:04 Michael Van Canneyt Fixed in Version => 3.3.1
2021-03-07 12:04 Michael Van Canneyt Fixed in Revision => 1811
2021-03-07 12:04 Michael Van Canneyt FPCTarget => 3.2.2
2021-03-07 12:04 Michael Van Canneyt Note Added: 0129470