From 687038f1f09d9ea174fb948cf668169d949bc6e5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 29 Jan 1996 16:26:41 +0000 Subject: [PATCH] Don't use #ifndef inside call to strchr, to avoid AIX problem From-SVN: r11121 --- gcc/dbxout.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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. */ -- 2.30.2