--- a/cdt/cdt_6_0_x/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java Thu Aug 27 10:08:45 2009 -0500
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/GCCErrorParser.java Thu Aug 27 14:17:03 2009 -0500
@@ -36,7 +36,7 @@
new ErrorPattern(Messages.GCCErrorParser_skip_note),
new ErrorPattern(Messages.GCCErrorParser_sikp_instantiatedFromHere),
// The following are not...
- new ErrorPattern(Messages.GCCErrorParser_Warnings, 1, 2, 5, 0, 0) {
+ new ErrorPattern(Messages.GCCErrorParser_Warnings, 1, 2, 6, 0, 0) {
@Override
public String getVarName(Matcher matcher) {
String desc = getDesc(matcher);
@@ -53,7 +53,7 @@
@Override
public int getSeverity(Matcher matcher) {
String warningGroup = matcher.group(4);
- if (warningGroup != null && warningGroup.toLowerCase().endsWith("warning")) { //$NON-NLS-1$
+ if (warningGroup != null && warningGroup.toLowerCase().endsWith("warning:")) { //$NON-NLS-1$
return IMarkerGenerator.SEVERITY_WARNING;
}
--- a/cdt/cdt_6_0_x/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/messages.properties Thu Aug 27 10:08:45 2009 -0500
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorparsers/messages.properties Thu Aug 27 14:17:03 2009 -0500
@@ -16,7 +16,7 @@
GCCErrorParser_skip_forEachFunction=for each function it appears in.\\)
GCCErrorParser_skip_note=: note:
GCCErrorParser_sikp_instantiatedFromHere=instantiated from
-GCCErrorParser_Warnings=(.*?):([0-9]+):([0-9]+:)? (.*[Ww]arning|WARNING|[Ee]rror):? (.*)
+GCCErrorParser_Warnings=(.*?):([0-9]+):([0-9]+:)?( (.*[Ww]arning:|WARNING:|[Ee]rror:))? (.*)
GLDErrorParser_error_text=(.*)\\(\\.text\\+.*\\): (.*)
GLDErrorParser_warning_general=ld(\\.exe)?: [Ww]arning:? (.*)
GLDErrorParser_error_general=ld(\\.exe)?: (.*)
--- a/cdt/cdt_6_0_x/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/Addr32.java Thu Aug 27 10:08:45 2009 -0500
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/Addr32.java Thu Aug 27 14:17:03 2009 -0500
@@ -93,23 +93,15 @@
}
public BigInteger distanceTo(IAddress other) {
- if (!(other instanceof Addr32)) {
- throw new IllegalArgumentException();
- }
- return BigInteger.valueOf(((Addr32)other).address - address);
+ return other.getValue().subtract(getValue());
}
public int compareTo(Object other) {
- if (!(other instanceof Addr32)) {
+ if (!(other instanceof IAddress)) {
throw new IllegalArgumentException();
}
- if (address > ((Addr32)other).address) {
- return 1;
- }
- if (address < ((Addr32)other).address) {
- return -1;
- }
- return 0;
+
+ return getValue().compareTo(((IAddress)other).getValue());
}
public boolean isMax() {
@@ -133,9 +125,9 @@
public boolean equals(Object x) {
if (x == this)
return true;
- if (!(x instanceof Addr32))
+ if (!(x instanceof IAddress))
return false;
- return this.address == ((Addr32)x).address;
+ return getValue().equals(((IAddress)x).getValue());
}
@Override
--- a/cdt/cdt_6_0_x/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/Addr64.java Thu Aug 27 10:08:45 2009 -0500
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/Addr64.java Thu Aug 27 14:17:03 2009 -0500
@@ -93,10 +93,7 @@
}
public BigInteger distanceTo(IAddress other) {
- if (! (other instanceof Addr64)) {
- throw new IllegalArgumentException();
- }
- return ((Addr64)other).address.add(address.negate());
+ return other.getValue().subtract(getValue());
}
public boolean isMax() {
@@ -112,16 +109,20 @@
}
public int compareTo(Object other) {
- return this.address.compareTo(((Addr64)other).address);
+ if (!(other instanceof IAddress)) {
+ throw new IllegalArgumentException();
+ }
+
+ return getValue().compareTo(((IAddress)other).getValue());
}
@Override
public boolean equals(Object x) {
if (x == this)
return true;
- if (! (x instanceof Addr64))
+ if (!(x instanceof IAddress))
return false;
- return this.address.equals(((Addr64)x).address);
+ return getValue().equals(((IAddress)x).getValue());
}
@Override