OSDN Git Service

Don't use #ifndef inside call to strchr, to avoid AIX problem
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Jan 1996 16:26:41 +0000 (16:26 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Jan 1996 16:26:41 +0000 (16:26 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@11121 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/dbxout.c

index 3fb0717..256d1aa 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.  */