From: Ian Lance Taylor Date: Mon, 29 Jan 1996 16:26:41 +0000 (+0000) Subject: Don't use #ifndef inside call to strchr, to avoid AIX problem X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=687038f1f09d9ea174fb948cf668169d949bc6e5;p=gcc.git Don't use #ifndef inside call to strchr, to avoid AIX problem From-SVN: r11121 --- diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 3fb0717b70a..256d1aa1174 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -921,17 +921,18 @@ dbxout_type_methods (type) if (flag_minimal_debug) { + char marker; + /* We can't optimize a method which uses an anonymous class, because the debugger will not be able to associate the arbitrary class name with the actual class. */ - if (strchr (debug_name, #ifndef NO_DOLLAR_IN_LABEL - '$' + marker = '$'; #else - '.' + marker = '.'; #endif - ) != NULL) + if (strchr (debug_name, marker) != NULL) show_arg_types = 1; /* Detect ordinary methods because their mangled names start with the operation name. */