Please improve default settings: Arduino compiler flags by removing -fpermissive
-
I was wondering about the difference of compiler flags between Arduino SDK and Spresense SDK.
I would strongly recommend to remove -fpermissive at link.
This compiles code that should not. For example a missing return statement or a missing implementation of a member function of a class and more. This results in undefined behavior during runtime (and is difficult to detect, especially without debugger)There might be valid uses, but it should be only used when you really know what you are doing.
Do you have good reasons to add -fpermissive? If not please remove it.
Speaking of good default settings.
- Please add the "-j" to the build scripts for make calls, including the make clean. What would be the reason not to have it?
- Please set the default upload speed to 230400. (Do you know why more does not work?)
-
Additionally I would be interested in why -fno-strict-aliasing and -fno-strength-reduce are added.
-
Hi @jens6151-0-1-1
Let me investigate this questions internally and get back to you as soon as possible.