This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Using structs in target .opt file?
- From: Dominik Vogt <vogt at linux dot vnet dot ibm dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 22 Jul 2015 09:57:27 +0100
- Subject: Using structs in target .opt file?
- Authentication-results: sourceware.org; auth=none
- Reply-to: vogt at linux dot vnet dot ibm dot com
I cannot figure out whether it's possible to use custom structure
types in an .opt file like this:
TargetVariable
const struct foo *bar
Including the file that defines the struct type does not help.
HeaderInclude
<path>/struct_foo.h
==>
make[2]: Entering directory `.../build-march/gcc'
build/gengtype \
-S ../../gcc -I gtyp-input.list -w tmp-gtype.state
/bin/sh ../../gcc/../move-if-change tmp-gtype.state gtype.state
build/gengtype \
-r gtype.state
warning: structure `foo' used but not defined
(null):0: incomplete structure `foo'
warning: structure `foo' used but not defined
(null):0: incomplete structure `foo'
make[2]: *** [s-gtype] Error 1
Is there a way to do this (other than just using "void *")?
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany