diff --git a/config.guess b/config.guess index 278f9e9e0..d9570b06a 100755 --- a/config.guess +++ b/config.guess @@ -833,8 +833,11 @@ EOF echo ${UNAME_MACHINE}-pc-minix exit ;; arm*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; diff --git a/src/demangle.cc b/src/demangle.cc index 0daf30893..e858181a6 100644 --- a/src/demangle.cc +++ b/src/demangle.cc @@ -167,7 +167,7 @@ static size_t StrLen(const char *str) { // Returns true if "str" has at least "n" characters remaining. static bool AtLeastNumCharsRemaining(const char *str, int n) { for (int i = 0; i < n; ++i) { - if (str == '\0') { + if (str[i] == '\0') { return false; } } @@ -223,9 +223,6 @@ static bool ParseTwoCharToken(State *state, const char *two_char_token) { // Returns true and advances "mangled_cur" if we find any character in // "char_class" at "mangled_cur" position. static bool ParseCharClass(State *state, const char *char_class) { - if (state->mangled_cur == '\0') { - return false; - } const char *p = char_class; for (; *p != '\0'; ++p) { if (state->mangled_cur[0] == *p) {