You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/01/18 16:57:17 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on pull request #5244: board: Remove -fno-strength-reduce

pkarashchenko commented on pull request #5244:
URL: https://github.com/apache/incubator-nuttx/pull/5244#issuecomment-1015617228


   > @pkarashchenko Only this can apply the change:
   > https://github.com/apache/incubator-nuttx/pull/5244/files#diff-5231c6d2bc4bea5e569bd0bbf5d3d8cee0b1f4cfa6492bed180a07622ab0f2deR36
   > 
   > 
   > > @xiaoxiang781216 what is the problem of having `-fno-strength-reduce` with
   > > 
   > > ```
   > > config DEBUG_NOOPT
   > > 	bool "Suppress Optimization"
   > > 	---help---
   > > 		Build without optimization.  This is often helpful when debugging code.
   > > ```
   > > 
   > > ? Or you just want to say that strength reduction does not influence on debugging experience in general?
   > 
   > I am enabling clang toolchain, and the compiler emit a warning message for each source file since -fno-strength-reduce` doesn't support by clang yet. So, it's simple to remove this option from Make.defs. 
   
   Understood. I think it is fine to remove it, but in general flags are different in GCC, Clang and IAR, so if we would like to support multiple compilers for the same target, then probably it is good to think about flags definition depending on selected compiler.


-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org