Don't use #ifndef inside call to strchr, to avoid AIX problem
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 29 Jan 1996 16:26:41 +0000 (16:26 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 29 Jan 1996 16:26:41 +0000 (16:26 +0000)
From-SVN: r11121

gcc/dbxout.c

index 3fb0717b70a8c09ed7271e19416f2294936dede4..256d1aa11744fdcd505b4e112d8bf295e0c275cb 100644 (file)
@@ -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.  */