From fca5f4f1d4f685bf2fa9857735938ad0e7d3e17e Mon Sep 17 00:00:00 2001 From: Michael Lindo Date: Wed, 29 Jun 2011 15:02:05 -0400 Subject: Bug 350501 - add support in managed build projects for xlC v11 compiler options --- .../META-INF/MANIFEST.MF | 2 +- .../plugin.properties | 15 +- .../plugin.xml | 579 ++++++++++++++++++++- .../cdt/managedbuilder/xlc/ui/Messages.java | 3 +- .../cdt/managedbuilder/xlc/ui/messages.properties | 3 +- .../xlc/ui/preferences/PreferenceConstants.java | 12 +- .../ui/preferences/XLCompilerPreferencePage.java | 5 +- .../xlc/ui/properties/XLCompilerPropertyPage.java | 4 +- .../xlc/ui/properties/applicability.properties | 19 +- .../xlc/ui/wizards/XLCSettingsWizardPage.java | 3 +- 10 files changed, 621 insertions(+), 24 deletions(-) diff --git a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/META-INF/MANIFEST.MF b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/META-INF/MANIFEST.MF index 503a5a99acb..38627c17562 100644 --- a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/META-INF/MANIFEST.MF +++ b/xlc/org.eclipse.cdt.managedbuilder.xlc.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.xlc.ui; singleton := true -Bundle-Version: 6.1.0.qualifier +Bundle-Version: 6.2.0.qualifier Bundle-Activator: org.eclipse.cdt.managedbuilder.xlc.ui.XLCUIPlugin Bundle-Localization: plugin Require-Bundle: org.eclipse.ui, diff --git a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.properties b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.properties index 2ca4f71a87b..1fba31745f5 100644 --- a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.properties +++ b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.properties @@ -1,5 +1,5 @@ ############################################################################### -# Copyright (c) 2007, 2010 IBM Corporation and others. +# Copyright (c) 2007, 2011 IBM Corporation and others. # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available at @@ -63,7 +63,6 @@ OptionCategory.Assembler=Assembler Options OptionCategory.General=General OptionCategory.objcc=Object code control - # generic names used by multiple options Option.none = none Option.default = default @@ -201,8 +200,10 @@ Option.macros=Emit macro definitions to preprocessed output (-qshowmacros) Option.macros.all=all (-qshowmacros=all) Option.macros.pre=predefined (-qshowmacros=pre) Option.macros.nopre=no macros (-qshowmacros=nopre) +Option.qstackprotect = Protect against malicious code or programming errors that overwrite or corrupt the stack (-qstackprotect=) Options.timestamps=Suppress insert of implicit timestamps into an object file (-qnotimestamps) + # Optimization options Option.OptLevel = Optimization level Option.Optimize.Optimize = -O @@ -275,6 +276,12 @@ Option.optimization.strict_induction = Strict induction Option.optimization.nostrict_induction = No induction Option.optimization.tocdata = Mark data as local Option.optimization.w = Specify options to pass to specific compiler components (-W) +Option.optimization.qassert = Provides information about the characteristics of the files that can help to fine-tune optimizations (-qassert=) +Option.optimization.qassert.norefalign = norefalign +Option.optimization.qassert.refalign = refalign +Option.optimization.qlibmpi = Assert that functions with MPI names are in fact MPI functions (-qlibmpi) +Option.optimization.qsimd = Let the compiler automatically take advantage of vector instructions for processors that support them (-qsimd) +Option.optimization.qprefetch = Inserts prefetch instructions automatically where there are opportunities to improve code performance. (-qprefetch) # Linker Options Option.Linking.b = Control how shared objects are processed by the editor (-b) @@ -362,6 +369,7 @@ Option.attr.fullattr = Report attributes of all identifiers (-qattr=full) Option.attr.attr = Report attributes of only used identifiers (-qattr) Option.flag = Specify the minimum severity level of the diagnostic messages (-qflag=) Option.format = Warn of possible problems with string input and output format specifications (-qformat=) +Option.qskipsrc = Hide the source statements skipped by the compiler (-qskipsrc = hide) Option.halt = Instruct the compiler to stop after compilation if it encounters errors of specified severity or higher (-qhalt=) Option.halt.information = Information (-qhalt=i) Option.halt.warning = Warning (-qhalt=w) @@ -384,6 +392,7 @@ Option.xref.fullxref = Report all the identifiers in the program (-qxref = full) Option.xref.xref = Report only those identifiers which are used (-qxref) Option.warnfourcharconsts = Enable warning of four-character constants in source Option.report = Produce listing files that show how sections of code have been optimized (-qreport) +Option.qlistfmt = Creates a report to assist with finding optimization opportunities (-qlistfmt) # Error Checking and Debugging Option.g = Generate debugging information (-g) @@ -410,7 +419,7 @@ Option.initauto = Initialize the automatic variables (-qinitauto=) Option.linedebug = Generate line number and source file name info for the debugger (-qlinedebug) Option.maxerr = Halt compilation after this many errors (-qmaxerr=) Option.proto = All functions are prototyped (-qproto) - +Option.qfunctrace = Enable tracing for all functions in your program (-qfunctrace) # Assembler options Option.Xlc.Assembler.Flags=Other assembler flags diff --git a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.xml b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.xml index 542760a05e3..9bf9b3ed318 100644 --- a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.xml +++ b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.xml @@ -1407,12 +1407,13 @@ + + + + + + + + + +