This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Flexible array member initializers
- From: Ian Pilcher <arequipeno at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 08 Jan 2014 16:46:21 -0500
- Subject: Re: Flexible array member initializers
- Authentication-results: sourceware.org; auth=none
- References: <laimok$i1$1 at ger dot gmane dot org> <CAH6eHdTFnTYHLokRdGQ=ErFF=BubM5_aVb-vPhmGoWGd+YxWug at mail dot gmail dot com> <52CDB80F dot 2080807 at gmail dot com> <alpine dot DEB dot 2 dot 10 dot 1401082158520 dot 3628 at laptop-mg dot saclay dot inria dot fr>
On 01/08/2014 04:00 PM, Marc Glisse wrote:
With an empty file empty.c, try: gcc -dM -E empty.c
and see if there is anything you like in what it prints.
Cool! Looks like I once more get to escape learning autoconf. ;-)
But ... this is going to be a non-starter for anything but integer
types. There's simply no way to do equivalent "bit twiddling" with
floating point or pointer types in a static initializer.
I think it's time to pull my head out of the rat hole and accept that
the odd extra void * isn't so bad ...
Thanks!
--
========================================================================
Ian Pilcher arequipeno@gmail.com
"If you're going to shift my paradigm ... at least buy me dinner first."
========================================================================