Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 283558

Summary: No option to build GCC Makefile project with '-Os'
Product: [Tools] CDT Reporter: Adam McLaurin <eclipse>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED DUPLICATE QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: enhancement    
Priority: P3 CC: malaperle
Version: 0 DD 1.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Adam McLaurin CLA 2009-07-15 10:28:29 EDT
Build ID: 20090619-0625

Steps To Reproduce:
'GCC C++ Compiler --> Optimization', it only includes -O0, -01, -02, and -03 in the 'Optimization Level' drop-down menu. This should be extended to either include '-Os' or include an 'Unspecified' option which does nothing.

There is also a field for 'Other optimization flags'. One could include '-Os' there and select the proposed 'Unspecified'.

More information:
A workaround right now is to select one of the provided optimization levels, then put '-Os' in the 'Other optimization flags' field. It seems that GCC takes the last optimization flag, and fortunately Eclipse seems to put the text from 'Other optimization flags' last. This is a little awkward, however.

This applies to both GCC C and C++ projects.
Comment 1 Marc-André Laperle CLA 2009-11-19 21:55:59 EST
You probably meant a managed project, not a Makefile project. This would be a duplicate of Bug 220990.
Comment 2 Andrew Gvozdev CLA 2009-11-19 22:11:00 EST
Marking as duplicate.

*** This bug has been marked as a duplicate of bug 220990 ***