From 2fbbb66579bbd8d3c63b61ad974ac5b5699e74dc Mon Sep 17 00:00:00 2001 From: Marc-Andre Laperle Date: Sat, 9 Jul 2011 14:42:05 -0400 Subject: [PATCH 01/19] Set UI harness for codan tests. Needed for quick fixes. --- codan/org.eclipse.cdt.codan.core.test/pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codan/org.eclipse.cdt.codan.core.test/pom.xml b/codan/org.eclipse.cdt.codan.core.test/pom.xml index 59d2ff92e62..7e3644fc28a 100644 --- a/codan/org.eclipse.cdt.codan.core.test/pom.xml +++ b/codan/org.eclipse.cdt.codan.core.test/pom.xml @@ -22,7 +22,8 @@ tycho-surefire-plugin ${tycho-version} - false + + true -Xms256m -Xmx512m -XX:MaxPermSize=256M **/AutomatedIntegrationSuite.* From 077f712b4206e44b58a6af849023ae5dabe798a9 Mon Sep 17 00:00:00 2001 From: Michael Lindo Date: Mon, 11 Jul 2011 17:04:39 -0400 Subject: [PATCH 02/19] bug 350587: Relax visibility of fields and methods of PerProjectSICollector to allow extend it. --- .../scannerconfig2/PerProjectSICollector.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/PerProjectSICollector.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/PerProjectSICollector.java index d42a463927c..09b5dd66555 100644 --- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/PerProjectSICollector.java +++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/PerProjectSICollector.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004, 2010 IBM Corporation and others. + * Copyright (c) 2004, 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 @@ -68,18 +68,18 @@ import org.w3c.dom.Element; public class PerProjectSICollector implements IScannerInfoCollector3, IScannerInfoCollectorCleaner { public static final String COLLECTOR_ID = MakeCorePlugin.getUniqueIdentifier() + ".PerProjectSICollector"; //$NON-NLS-1$ - private IProject project; - private InfoContext context; + protected IProject project; + protected InfoContext context; private boolean isBuiltinConfig= false; - private Map> discoveredSI; + protected Map> discoveredSI; // private List discoveredIncludes; // private List discoveredSymbols; // private List discoveredTSO; // target specific options // cumulative values - private List sumDiscoveredIncludes; + protected List sumDiscoveredIncludes; private Map sumDiscoveredSymbols; - private boolean scPersisted = false; + protected boolean scPersisted = false; public PerProjectSICollector() { discoveredSI = new HashMap>(); @@ -185,7 +185,7 @@ public class PerProjectSICollector implements IScannerInfoCollector3, IScannerIn * @param ordered - to preserve order or append at the end * @return boolean - true if added */ - private boolean addItemsWithOrder(List sumIncludes, List includes, boolean ordered) { + protected boolean addItemsWithOrder(List sumIncludes, List includes, boolean ordered) { if (includes.isEmpty()) return false; @@ -321,7 +321,7 @@ public class PerProjectSICollector implements IScannerInfoCollector3, IScannerIn /** * Compare symbol definitions with already discovered. */ - private boolean definedSymbolsNeedUpdate(IPerProjectDiscoveredPathInfo discPathInfo) { + protected boolean definedSymbolsNeedUpdate(IPerProjectDiscoveredPathInfo discPathInfo) { boolean addedSymbols = false; List discoveredSymbols = discoveredSI.get(ScannerInfoTypes.SYMBOL_DEFINITIONS); if (discoveredSymbols != null) { From 3e9c760648d01af827bca000b69d3c5acc7f0243 Mon Sep 17 00:00:00 2001 From: Michael Lindo Date: Mon, 11 Jul 2011 20:24:48 -0400 Subject: [PATCH 03/19] Bug 350501 - add support in managed build projects for xlC v11 compiler options - 1) qstrict not showing 2) fixed qfuncsect spelling error 3) added some C only options Change-Id: I71aa8bdab83accbd3d559d9aad4bc97331f21263 --- .../plugin.properties | 5 ++-- .../plugin.xml | 25 ++++++++++++++++--- .../ui/properties/applicability.properties | 5 +++- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.properties b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.properties index 415818f481e..b98afcc1911 100644 --- a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.properties +++ b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.properties @@ -166,7 +166,7 @@ Option.noroconst=Do not place constant values in read only storage (-qnoroconst) Option.roptr=Place constant pointers in read only storage (-qroptr) Option.Statsym=Generate symbols for static variables (-qstatsym ) Option.xcall=Generate code to treat static functions as external functions (-qxcall ) -Option.funcset=Place instructions for each function in a separate object file control section or csect (-qfuncset) +Option.funcsect=Place instructions for each function in a separate object file control section or csect (-qfuncsect) Option.ppline=Enable generation of #line directive in the preprocessed output (-qppline) Option.upconv=Preserve the unsigned specification when performing integral promotions (-qupconv) Option.namemangling=Name mangling scheme for external symbol names (-qnamemangling=) @@ -193,6 +193,7 @@ Option.statsym = Add static variables to the symbol table (-qstatsym) Option.threaded = Enable multi-threaded execution (-qthreaded) Option.unique = Generate unique names for static constructor/deconstructor file compilation units (-qunique) Option.unique.v10 = Generate unique names for static constructor/deconstructor file compilation units (-qunique) +Option.qconcurrentupdate.v11 = Update the operating system while the kernel is running (-qconcurrentupdate) Option.novftable = Do not generate virtual function table (-qnovftable) Option.vrsave = Maintain the VRSAVE register (-qvrsave) Option.weaksymbol = Generate weak symbols (-qweaksymbol) @@ -202,7 +203,7 @@ 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) - +Option.qrestrict = Stop pointers from accessing the same memory that has been addressed by function parameter pointers (-qrestrict=) # Optimization options Option.OptLevel = Optimization level diff --git a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.xml b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.xml index edc348dc558..6958a67f525 100644 --- a/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.xml +++ b/xlc/org.eclipse.cdt.managedbuilder.xlc.ui/plugin.xml @@ -229,6 +229,25 @@ name="%Option.unique.v10" resourceFilter="all" valueType="boolean"> + + +