[PATCH v3] RISC-V: Fix build with GCC-8

Jan Beulich jbeulich@suse.com
Fri Jun 26 06:00:53 GMT 2026


On 25.06.2026 23:43, Maciej W. Rozycki wrote:
> On Tue, 23 Jun 2026, Mark Zhuang wrote:
> 
>> From: Mark Zhuang <mark.zhuang@spacemit.com>
>>
>> GCC 8.5.0 rejects a declaration right after a case label.
>> Add braces to fix it.
> 
>  I think it would be more useful to the reader if the commit referred to 
> the relevant C language standard and minimum compiler version as given by 
> Andreas: <https://inbox.sourceware.org/binutils/mvmtsqtzgve.fsf@suse.de/>.

To be honest, I think relatively basic standard C aspects should be known
to people, and "rejects a declaration right after a case label" is enough
of a pointer imo.

>  FWIW it broke the build with GCC 10.2.1 here (production box, system
> compiler).

At the risk of coming across blunt, but: You complain about too little
detail above, and then you report this issue without providing any detail?

Jan


More information about the Binutils mailing list