Skip to content
Snippets Groups Projects
Commit a2ff748c authored by Virgile Prevosto's avatar Virgile Prevosto Committed by Andre Maroneze
Browse files

[doc] update doc of cpp_arch_flags machdep field

parent 8d4dd13a
No related branches found
No related tags found
No related merge requests found
......@@ -3269,13 +3269,12 @@ We present below a thorough description of each field.
compiler-specific extensions.
\end{itemize}
Note that some compiler extensions, such as attributes, are always enabled.
\item[\texttt{cpp\_arch\_flags}]: list of arguments to be added to the
command-line when invoking the C preprocessor. Typically used to ensure that
multiarch compilers apply the appropriate predefined macros\footnote{Note that
the sizes of standard integer types are already defined in the machdep,
so they do not depend on these flags.}.
E.g. use \verb+["-m32"]+ for a 32-bit machdep when preprocessing with a
64-bit multiarch GCC.
\item[\texttt{cpp\_arch\_flags}]: list of arguments used by the compiler to
select the corresponding architecture, e.g. \verb+["-m32"]+ for a 32-bit
machdep. Older versions (up to 26.x - Iron) of \framac did pass these flags to the pre-processor,
in order for it to define a set of built-in macros related to said architecture.
Current versions do not use this field, and rely on \texttt{\texttt{custom\_defs}}
containing the appropriate definitions.
Note that, in practice, very few programs rely on such predefined macros,
such as \verb+__x86_64+ and \verb+__i386+.
\end{description}
......
......@@ -87,8 +87,8 @@ compiler:
cpp_arch_flags:
description: |
arguments to be given to the compiler when this machdep is selected
(e.g. '-m32')
arguments to be given to the compiler to select the corresponding
architecture (e.g. '-m32')
type: list
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment