implicit conversion from enum ld_plugin_level to enum ld_plugin_status
authorAlan Modra <amodra@gmail.com>
Mon, 23 Sep 2019 11:00:22 +0000 (20:30 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 23 Sep 2019 14:14:21 +0000 (23:44 +0930)
This is a gcc10 warning fix.

gold/
* testsuite/plugin_new_section_layout.c (new_input_hook): Correct
return status enum values.

gold/ChangeLog
gold/testsuite/plugin_new_section_layout.c

index 37643cca01b1c3c16fe8e51e35d8cc1c2487a565..53ee2b9baa0d832e8959f31aeae74045fb998ccb 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-23  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/plugin_new_section_layout.c (new_input_hook): Correct
+       return status enum values.
+
 2019-09-20  Alan Modra  <amodra@gmail.com>
 
        PR 24768
index 2fe0d5ea33051fb129a73e5478bd20a2374ce84a..91a7c952b4f5179fb7b41f7d7e6ee36b0984ba72 100644 (file)
@@ -144,12 +144,12 @@ new_input_hook(const struct ld_plugin_input_file *file)
     section.shndx = i;
 
     if (get_input_section_type(section, &type) != LDPS_OK)
-      return LDPL_FATAL;
+      return LDPS_ERR;
     if (type != SHT_PROGBITS)
       continue;
 
     if (get_input_section_name(section, &name))
-      return LDPL_FATAL;
+      return LDPS_ERR;
 
     /* As in plugin_section_order.c, order is foo() followed by bar()
        followed by baz() */
@@ -172,7 +172,7 @@ new_input_hook(const struct ld_plugin_input_file *file)
   }
 
   if (num_entries != 3)
-    return LDPL_FATAL;
+    return LDPS_ERR;
 
   update_section_order(section_list, num_entries);
   unique_segment_for_sections (".text.plugin_created_unique", 0, 0x1000,
This page took 0.025554 seconds and 4 git commands to generate.