Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c
Subject: Re: How to avoid an overflow during multiplication?
Date: Fri, 21 Jan 2022 17:32:22 -0800
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <867daspnbt.fsf@linuxsc.com>
References: <8735m954yz.fsf@bsb.me.uk> <877dbk36qu.fsf@nosuchdomain.example.com> <86v8ydp57h.fsf@linuxsc.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: reader02.eternal-september.org; posting-host="434625eb2bdf5b21805d62a567edd212"; logging-data="31933"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fYDlooyM0JOl83wfpN+iRGbrLNeRqZmI="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:zO2zXPiIUs4opnMPajZ5U45flTE= sha1:j8YbGGait3a1HEQJAp9HPY6VVx4=
Xref: csiph.com comp.lang.c:164531
Mateusz Viste writes:
I'm responding in several parts to help keep the various
aspects separate.
> 2022-01-21 at 05:51 -0800, Tim Rentsch wrote:
>
>> I'm curious to know what extensions, if any, from the gnu
>> additions you make use of.
>
> That's an interesting question that I was unable to answer from the top
> of my head. It has been so long that I code in gnu89 that I wasn't able
> to tell what exactly is non-vanilla-C89 in the set of C features I use.
> To answer your question I took a couple of my projects and switched
> them from -std=gnu89 to -std=c89 to identify the gnu89 extensions that
> I use. [.. list to be addressed in subsequent followup ..]
That was interesting, thank you. Can I ask you to repeat the
experiment with -std=c89 -pedantic-errors (and no other warnings
or errors enabled) to see if that yields any additional items?
Also if it isn't too much bother, with -std=c99 -pedantic-errors.
I am most curious to see if anything else turns up (in either
of the tests).