Automatic date update in version.in
[binutils-gdb.git] / gas / stabs.c
index 1755a99f3b8d4e7a278847fc0e631196b98d26c8..e80015ad4fdceef28156e4027923080282e1c3a2 100644 (file)
@@ -1,5 +1,5 @@
 /* Generic stabs parsing for gas.
-   Copyright (C) 1989-2021 Free Software Foundation, Inc.
+   Copyright (C) 1989-2022 Free Software Foundation, Inc.
 
    This file is part of GAS, the GNU Assembler.
 
@@ -49,7 +49,7 @@ static void generate_asm_file (int, const char *);
    stabs_generate_asm_lineno emits function relative line number stabs.
    Otherwise it emits line number stabs with absolute addresses.  Note that
    both cases only apply to assembler code assembled with -gstabs.  */
-static bfd_boolean in_dot_func_p = FALSE;
+static bool in_dot_func_p = false;
 
 /* Label at start of current function if in_dot_func_p != FALSE.  */
 static const char *current_function_label;
@@ -80,7 +80,7 @@ static const char *current_function_label;
 
 unsigned int
 get_stab_string_offset (const char *string, const char *stabstr_secname,
-                       bfd_boolean free_stabstr_secname)
+                       bool free_stabstr_secname)
 {
   unsigned int length;
   unsigned int retval;
@@ -494,14 +494,14 @@ stabs_generate_asm_file (void)
   file = as_where (&lineno);
   if (use_gnu_debug_info_extensions)
     {
-      const char *dir;
+      char *dir;
       char *dir2;
 
       dir = remap_debug_filename (getpwd ());
       dir2 = concat (dir, "/", NULL);
       generate_asm_file (N_SO, dir2);
       free (dir2);
-      xfree ((char *) dir);
+      free (dir);
     }
   generate_asm_file (N_SO, file);
 }
@@ -652,7 +652,7 @@ stabs_generate_asm_lineno (void)
 void
 stabs_generate_asm_func (const char *funcname, const char *startlabname)
 {
-  static bfd_boolean void_emitted_p = FALSE;
+  static bool void_emitted_p = false;
   char *buf;
   unsigned int lineno;
 
@@ -661,7 +661,7 @@ stabs_generate_asm_func (const char *funcname, const char *startlabname)
       temp_ilp ((char *) "\"void:t1=1\",128,0,0,0");
       s_stab ('s');
       restore_ilp ();
-      void_emitted_p = TRUE;
+      void_emitted_p = true;
     }
 
   as_where (&lineno);
@@ -675,7 +675,7 @@ stabs_generate_asm_func (const char *funcname, const char *startlabname)
   free (buf);
 
   current_function_label = xstrdup (startlabname);
-  in_dot_func_p = TRUE;
+  in_dot_func_p = true;
 }
 
 /* Emit a stab to record the end of a function.  */
@@ -700,6 +700,6 @@ stabs_generate_asm_endfunc (const char *funcname ATTRIBUTE_UNUSED,
   restore_ilp ();
   free (buf);
 
-  in_dot_func_p = FALSE;
+  in_dot_func_p = false;
   current_function_label = NULL;
 }