From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22023 invoked by alias); 8 Jan 2014 21:46:28 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 22014 invoked by uid 89); 8 Jan 2014 21:46:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-qc0-f170.google.com Received: from mail-qc0-f170.google.com (HELO mail-qc0-f170.google.com) (209.85.216.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Wed, 08 Jan 2014 21:46:26 +0000 Received: by mail-qc0-f170.google.com with SMTP id e9so1777314qcy.15 for ; Wed, 08 Jan 2014 13:46:24 -0800 (PST) X-Received: by 10.49.94.212 with SMTP id de20mr216143761qeb.51.1389217584188; Wed, 08 Jan 2014 13:46:24 -0800 (PST) Received: from localhost.localdomain ([181.66.233.189]) by mx.google.com with ESMTPSA id o5sm3420988qeg.2.2014.01.08.13.46.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 08 Jan 2014 13:46:23 -0800 (PST) Message-ID: <52CDC72D.1020804@gmail.com> Date: Wed, 08 Jan 2014 21:46:00 -0000 From: Ian Pilcher User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: gcc-help Subject: Re: Flexible array member initializers References: <52CDB80F.2080807@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-01/txt/msg00025.txt.bz2 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." ========================================================================