Promote -Wno-sizeof-array-argument to an error

2024-08-07 Thread Alejandro Colomar via Gcc
Hi Martin, Can we promote -Wno-sizeof-array-argument to a hard error? I don't think there's any legitimate use sizeof() on such a parameter. It would be an incompatible extension to ISO C, which would make sure that there are no remaining uses of sizeof(array_param), which would itself allow in

Re: Promote -Wno-sizeof-array-argument to an error

2024-08-07 Thread Alejandro Colomar via Gcc
On Thu, Aug 08, 2024 at 02:36:36AM GMT, Alejandro Colomar wrote: > Hi Martin, > > Can we promote -Wno-sizeof-array-argument to a hard error? I don't D'oh! I obviously meant -Wsizeof-array-argument. > think there's any legitimate use sizeof() on such a parameter. > > It would be an incompatibl

Custom Float Instructions

2024-08-07 Thread Amit Hiremath
Hello, I want to add custom single precision floating point sine, cosine, exp instructions to risc-v gnu tool chain, and I have designed hardware for this. I was going through tutorials on how to add custom instructions at: https://pcotret.gitlab.io/riscv-custom/sw_toolchain.html after adding cust