[PATCH] newlib: Remove debug flag for --enable-target-optspace

Stephanos Ioannidis <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
--enable-target-optspace adds -g (debug) option flag to the CFLAGS
alongside -Os (optimise for size) for no good reason.

Since the -g option flag is not required by the -Os option flag and it
not contribute to what --enable-target-optspace tries to achieve (i.e.
optimise for size), this flag should be removed.

It is also worth noting that many newlib users (e.g. GNU ARM Embedded)
are manually adding -Os to CFLAGS because the --enable-target-optspace
does not achieve what it should.

Signed-off-by: Stephanos Ioannidis <[email protected]>
---
 config/mt-ospace | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/mt-ospace b/config/mt-ospace
index ce29ff431..95be8259d 100644
--- a/config/mt-ospace
+++ b/config/mt-ospace
@@ -1,3 +1,3 @@
 # Build libraries optimizing for space, not speed.
- CFLAGS_FOR_TARGET += -g -Os
- CXXFLAGS_FOR_TARGET += -g -Os
+ CFLAGS_FOR_TARGET += -Os
+ CXXFLAGS_FOR_TARGET += -Os
-- 
2.17.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.