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

Jan Beulich <[email protected]>
Newsgroups gmane.comp.gnu.binutils
Message-ID <[email protected]>
On 25.06.2026 23:43, Maciej W. Rozycki wrote:
> On Tue, 23 Jun 2026, Mark Zhuang wrote:
> 
>> From: Mark Zhuang <[email protected]>
>>
>> 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/[email protected]/>.

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.