Reorder enum output_type for better code generation
authorAlan Modra <amodra@gmail.com>
Sun, 23 Aug 2015 11:24:45 +0000 (20:54 +0930)
committerAlan Modra <amodra@gmail.com>
Sun, 23 Aug 2015 13:51:48 +0000 (23:21 +0930)
Works around a gcc bug #67328 for the most commonly used of bfd_link_pic
and bfd_link_executable.

* bfdlink.h (enum output_type): Reorder enum.

include/ChangeLog
include/bfdlink.h

index e4dad82d52c575528657b4390d1e9e4a37b84547..4fedda7ad0f4a2bf8ece32e7c033b9e9d999be1d 100644 (file)
@@ -1,3 +1,7 @@
+2015-08-23  Alan Modra  <amodra@gmail.com>
+
+       * bfdlink.h (enum output_type): Reorder enum.
+
 2015-08-19  Alan Modra  <amodra@gmail.com>
 
        * bfdlink.h (enum output_type): Delete type_executable, add type_pde
index 458a768b2139a91284cab42ecb4c0aca06d4e5de..43bcc6a90406829308ca102435eb1bc047303cfb 100644 (file)
@@ -264,8 +264,8 @@ struct bfd_elf_version_tree;
 enum output_type
 {
   type_pde,
-  type_relocatable,
   type_pie,
+  type_relocatable,
   type_dll,
 };