2.45 Branch Created

Jan Beulich jbeulich@suse.com
Wed Jul 16 06:40:19 GMT 2025


On 16.07.2025 03:02, Alan Modra wrote:
> On Wed, Jul 16, 2025 at 01:17:48AM +0100, Maciej W. Rozycki wrote:
>> On Mon, 14 Jul 2025, Matthieu Longo wrote:
>>
>>>>>> commit c5f3649c8887ea30f3472e266ef88fe1b7522a84
>>>>>> Author: Matthieu Longo <matthieu.longo@arm.com>
>>>>>> Date:   Thu Jan 30 19:09:12 2025 +0000
>>>>>>       clean-up bfd/elf-attrs.c: move specific-code to parse object
>>>>>> attributes v1 i
>>>>>> nto a new function
>>
>>  Hmm, does our coding standard permit the use of local variable 
>> declarations other than at the start of a block now?
> 
> We require C99, so yes.

I actually think the two are separate from one another: We could certainly
require C99 to use some, but not all of what it permits. Whether to allow
declarations in the middle of statements is possibly worth a separate
discussion (and I view this distinctly different from having decls in e.g.
loop headers, where the variables then still have a pronounced scope).

Jan


More information about the Binutils mailing list