From bf183413c6f6e745f1324e39586a65a4f9fcea3f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 4 Jan 2021 17:40:11 -0800 Subject: Go frontend: add -fgo-embedcfg option This option will be used by the go command to implement go:embed directives, which are new with the upcoming Go 1.16 release. * lang.opt (fgo-embedcfg): New option. * go-c.h (struct go_create_gogo_args): Add embedcfg field. * go-lang.c (go_embedcfg): New static variable. (go_langhook_init): Set go_create_gogo_args embedcfg field. (go_langhook_handle_option): Handle OPT_fgo_embedcfg_. * gccgo.texi (Invoking gccgo): Document -fgo-embedcfg. --- gcc/go/lang.opt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/go/lang.opt') diff --git a/gcc/go/lang.opt b/gcc/go/lang.opt index 454a118..7d6780e 100644 --- a/gcc/go/lang.opt +++ b/gcc/go/lang.opt @@ -57,6 +57,10 @@ fgo-dump- Go Joined RejectNegative -fgo-dump- Dump Go frontend internal information. +fgo-embedcfg= +Go Joined RejectNegative +-fgo-embedcfg= List embedded files via go:embed + fgo-optimize- Go Joined -fgo-optimize- Turn on optimization passes in the frontend. -- cgit v1.1