mescc: Accept -O, --std, -x.
* scripts/mescc.in (parse-opts): Accept -O, --std, -x.
This commit is contained in:
parent
21887b9a8e
commit
aa8fd3da9e
|
@ -85,11 +85,14 @@ fi
|
||||||
(library (single-char #\l) (value #t))
|
(library (single-char #\l) (value #t))
|
||||||
(machine (single-char #\m) (value #t))
|
(machine (single-char #\m) (value #t))
|
||||||
(preprocess (single-char #\E))
|
(preprocess (single-char #\E))
|
||||||
|
(std (value #t))
|
||||||
(output (single-char #\o) (value #t))
|
(output (single-char #\o) (value #t))
|
||||||
|
(optimize (single-char #\O) (value #t))
|
||||||
(version (single-char #\V))
|
(version (single-char #\V))
|
||||||
(verbose (single-char #\v))
|
(verbose (single-char #\v))
|
||||||
(write (single-char #\w) (value #t))))
|
(write (single-char #\w) (value #t))
|
||||||
(single-dash-options '("-dumpmachine"))
|
(language (single-char #\x) (value #t))))
|
||||||
|
(single-dash-options '("-dumpmachine" "-std"))
|
||||||
(args (map (lambda (o)
|
(args (map (lambda (o)
|
||||||
(if (member o single-dash-options) (string-append "-" o)
|
(if (member o single-dash-options) (string-append "-" o)
|
||||||
o))
|
o))
|
||||||
|
@ -108,7 +111,6 @@ fi
|
||||||
(format (or (and usage? (current-error-port)) (current-output-port)) "\
|
(format (or (and usage? (current-error-port)) (current-output-port)) "\
|
||||||
Usage: mescc [OPTION]... FILE...
|
Usage: mescc [OPTION]... FILE...
|
||||||
--align align globals
|
--align align globals
|
||||||
-c preprocess, compile and assemble only; do not link
|
|
||||||
-dumpmachine display the compiler's target processor
|
-dumpmachine display the compiler's target processor
|
||||||
--base-address=ADRRESS
|
--base-address=ADRRESS
|
||||||
use BaseAddress ADDRESS [0x1000000]
|
use BaseAddress ADDRESS [0x1000000]
|
||||||
|
@ -121,9 +123,12 @@ Usage: mescc [OPTION]... FILE...
|
||||||
-l LIBNAME link with LIBNAME
|
-l LIBNAME link with LIBNAME
|
||||||
-m BITS compile for BITS bits [32]
|
-m BITS compile for BITS bits [32]
|
||||||
-o FILE write output to FILE
|
-o FILE write output to FILE
|
||||||
|
-O LEVEL use optimizing LEVEL
|
||||||
-S preprocess and compile only; do not assemble or link
|
-S preprocess and compile only; do not assemble or link
|
||||||
|
--std=STANDARD assume that the input sources are for STANDARD
|
||||||
-v, --version display version and exit
|
-v, --version display version and exit
|
||||||
-w,--write=TYPE dump Nyacc AST using TYPE {pretty-print,write}
|
-w,--write=TYPE dump Nyacc AST using TYPE {pretty-print,write}
|
||||||
|
-x LANGUAGE specify LANGUAGE of the following input files
|
||||||
|
|
||||||
Environment variables:
|
Environment variables:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue