From 736862e8054554c1cd5968c553e372c791555350 Mon Sep 17 00:00:00 2001 From: John Dallaway Date: Sun, 16 Jun 2024 11:10:56 +0100 Subject: [PATCH] Extend GNU toolchain optimization options for MBS Add -Og and -Oz to the option enumerations for both C and C++ compilers. --- .../META-INF/MANIFEST.MF | 2 +- .../plugin.properties | 9 ++++++--- .../plugin.xml | 17 +++++++++++++++++ 3 files changed, 24 insertions(+), 4 deletions(-) diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/META-INF/MANIFEST.MF b/build/org.eclipse.cdt.managedbuilder.gnu.ui/META-INF/MANIFEST.MF index 3f4d598e9f6..790c7a5037c 100644 --- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/META-INF/MANIFEST.MF +++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.gnu.ui; singleton:=true -Bundle-Version: 8.7.100.qualifier +Bundle-Version: 8.7.200.qualifier Bundle-Activator: org.eclipse.cdt.managedbuilder.gnu.ui.GnuUIPlugin Bundle-Vendor: %providerName Bundle-Localization: plugin diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties index 46816164969..4883c0cf501 100644 --- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties +++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.properties @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2005, 2023 Texas Instruments Inc. and others. +# Copyright (c) 2005, 2024 Texas Instruments Inc. and others. # # This program and the accompanying materials # are made available under the terms of the Eclipse Public License 2.0 @@ -12,6 +12,7 @@ # Texas Instruments Inc. - initial API and implementation # IBM Corporation # John Dallaway - add library grouping option (#608) +# John Dallaway - extend optimization options (#828) ############################################################################### # plugin names @@ -136,15 +137,17 @@ Option.Posix.UndefSym=Undefined symbols (-U) Option.Posix.InclPaths=Include paths (-I) Option.Posix.InclFiles=Include files (-include) -Option.Posix.OptLevel=Optimization Level +Option.Posix.OptLevel=Optimization level Option.Posix.Optimize.None=None (-O0) Option.Posix.Optimize.Optimize=Optimize (-O1) Option.Posix.Optimize.More=Optimize more (-O2) Option.Posix.Optimize.Most=Optimize most (-O3) +Option.Posix.Optimize.Debug=Optimize for debug (-Og) Option.Posix.Optimize.Size=Optimize for size (-Os) +Option.Posix.Optimize.Size.More=Optimize for size aggressively (-Oz) Option.Posix.Optimize.Flags=Other optimization flags -Option.Posix.DebugLevel=Debug Level +Option.Posix.DebugLevel=Debug level Option.Posix.Debug.None=None Option.Posix.Debug.Min=Minimal (-g1) Option.Posix.Debug.Def=Default (-g) diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml index 0e255838902..09337258271 100644 --- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml +++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml @@ -12,6 +12,7 @@ SPDX-License-Identifier: EPL-2.0 Contributors: Intel Corporation - initial API and implementation John Dallaway - add assembler debug level option (#727) + John Dallaway - extend optimization options (#828) --> @@ -1057,10 +1058,18 @@ Contributors: name="%Option.Posix.Optimize.Most" command="-O3" id="gnu.c.optimization.level.most" /> + + + +