True, can reproduce. Reading the issue and the linked "differences in
C99" page, this all makes sense.

Thanks for enlightening me!

Best regards,
Marcus

On Fri, 2018-06-29 at 10:11 +0100, David Woodhouse wrote:
> On Fri, 2018-06-29 at 08:25 +0000, Müller, Marcus (CEL) wrote:
> > Hi David, Pinky, Steve and all,
> > 
> > I'd agree with "uh, I need to know where this goes wrong please, I'm
> > scared".
> 
> GCC just fails to emit the offending functions and then the link fails:
>  
> [ 36%] Linking C executable rtl_power
> CMakeFiles/rtl_power.dir/rtl_power.c.o: In function `fix_fft':
> rtl_power.c:(.text+0x41a): undefined reference to `FIX_MPY'
> rtl_power.c:(.text+0x445): undefined reference to `FIX_MPY'
> rtl_power.c:(.text+0x476): undefined reference to `FIX_MPY'
> rtl_power.c:(.text+0x49d): undefined reference to `FIX_MPY'
> collect2: error: ld returned 1 exit status
> 
> You should be able to reproduce this really easily by building with
> -O0.
> 
> Admittedly it's fairly bloody stupid to use -O0 for rtl-sdr but for the
> MIPS target this was even happening with -Os, which is slightly saner.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to