no1wudi commented on pull request #5637:
URL: https://github.com/apache/incubator-nuttx/pull/5637#issuecomment-1056109598


   @xiaoxiang781216 @pkarashchenko 
   There is a bug in arm-none-eabi-gcc 9.2 for cortex a that it dont report 
libgcc.a correctly for FPU enabled case:
   ```
   gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc  -mcpu=cortex-a8 
-mfpu=vfpv3-d16 --print-libgcc-file-name
   
/home/huang/Work/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/libgcc.a
   ```
   and
   ```
    gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc  -mcpu=cortex-a8 
-mfloat-abi=hard -mfpu=vfpv3-d16 --print-libgcc-file-name
   
/home/huang/Work/gcc-arm-none-eabi-9-2019-q4-major/bin/../lib/gcc/arm-none-eabi/9.2.1/libgcc.a
   ```
   And in 10.3:
   ```
   arm-none-eabi-gcc --version
   arm-none-eabi-gcc (15:10.3-2021.07-4) 10.3.1 20210621 (release)
   
   ➜  Work arm-none-eabi-gcc  -mcpu=cortex-a8 -mfpu=vfpv3-d16 
--print-libgcc-file-name
   /usr/lib/gcc/arm-none-eabi/10.3.1/thumb/v7-a/nofp/libgcc.a
   
   ➜  Work arm-none-eabi-gcc  -mcpu=cortex-a8 -mfloat-abi=hard -mfpu=vfpv3-d16 
--print-libgcc-file-name
   /usr/lib/gcc/arm-none-eabi/10.3.1/thumb/v7-a+fp/hard/libgcc.a
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to