aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>1996-01-29 16:26:41 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>1996-01-29 16:26:41 +0000
commit687038f1f09d9ea174fb948cf668169d949bc6e5 (patch)
treed694c93eeb7db9c35945976a543071bd9b41342f
parente400d78221993ed2d0c41593c574c945ec15cf57 (diff)
downloadgcc-687038f1f09d9ea174fb948cf668169d949bc6e5.zip
gcc-687038f1f09d9ea174fb948cf668169d949bc6e5.tar.gz
gcc-687038f1f09d9ea174fb948cf668169d949bc6e5.tar.bz2
Don't use #ifndef inside call to strchr, to avoid AIX problem
From-SVN: r11121
-rw-r--r--gcc/dbxout.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 3fb0717..256d1aa 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. */