gdb/testsuite: enable __INTEL_LLVM_COMPILER preprocessor in get_compiler_info
[binutils-gdb.git] / gas / input-file.c
index 79910b9d37a58ee9bdca27808d399cc7abec770d..f1085c1f0f15025040d21afbe7fd58b33f0fa385 100644 (file)
@@ -1,5 +1,5 @@
 /* input_file.c - Deal with Input Files -
-   Copyright (C) 1987-2019 Free Software Foundation, Inc.
+   Copyright (C) 1987-2022 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -171,7 +171,7 @@ input_file_open (const char *filename,
       if (c == 'N')
        {
          if (fgets (buf, sizeof (buf), f_in)
-             && !strncmp (buf, "O_APP", 5) && ISSPACE (buf[5]))
+             && startswith (buf, "O_APP") && ISSPACE (buf[5]))
            preprocess = 0;
          if (!strchr (buf, '\n'))
            ungetc ('#', f_in); /* It was longer.  */
@@ -181,7 +181,7 @@ input_file_open (const char *filename,
       else if (c == 'A')
        {
          if (fgets (buf, sizeof (buf), f_in)
-             && !strncmp (buf, "PP", 2) && ISSPACE (buf[2]))
+             && startswith (buf, "PP") && ISSPACE (buf[2]))
            preprocess = 1;
          if (!strchr (buf, '\n'))
            ungetc ('#', f_in);