From 7c873cdc99b3d6f50d17cd3b08c981765c114fe3 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Wed, 27 Feb 2019 15:44:31 +0100 Subject: [PATCH] mescc: Ignore -fnobuiltin, -nostdinc for GCC compatibility. * module/mescc.scm (parse-opts): Add -fnobuiltin, -nostdinc. (mescc:main): Ignore them. --- module/mescc.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/module/mescc.scm b/module/mescc.scm index 749be811..6a4bd695 100644 --- a/module/mescc.scm +++ b/module/mescc.scm @@ -59,6 +59,7 @@ (define (single-char #\D) (value #t)) (debug-info (single-char #\g)) (dumpmachine) + (fno-builtin) (help (single-char #\h)) (include (single-char #\I) (value #t)) (library-dir (single-char #\L) (value #t)) @@ -66,6 +67,7 @@ (machine (single-char #\m) (value #t)) (nodefaultlibs) (nostartfiles) + (nostdinc) (nostdlib) (preprocess (single-char #\E)) (std (value #t)) @@ -111,6 +113,10 @@ Usage: mescc [OPTION]... FILE... -w,--write=TYPE dump Nyacc AST using TYPE {pretty-print,write} -x LANGUAGE specify LANGUAGE of the following input files +Ignored for GCC compatibility + -fno-builtin + -nostdinc + Environment variables: MES=BINARY run on mes-executable BINARY {mes,guile} @@ -126,8 +132,10 @@ General help using GNU software: (define (mescc:main args) (let* ((single-dash-options '("-dumpmachine" + "-fno-builtin" "-nodefaultlibs" "-nostartfiles" + "-nostdinc" "-nostdlib" "-std")) (args (map (lambda (o)