From 5f329d5b1409dfb86e3eb6a22e9f84cc58c254b1 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 23 Aug 2015 20:54:45 +0930 Subject: [PATCH] Reorder enum output_type for better code generation 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 | 4 ++++ include/bfdlink.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/ChangeLog b/include/ChangeLog index e4dad82..4fedda7 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2015-08-23 Alan Modra + + * bfdlink.h (enum output_type): Reorder enum. + 2015-08-19 Alan Modra * bfdlink.h (enum output_type): Delete type_executable, add type_pde diff --git a/include/bfdlink.h b/include/bfdlink.h index 458a768..43bcc6a 100644 --- a/include/bfdlink.h +++ b/include/bfdlink.h @@ -264,8 +264,8 @@ struct bfd_elf_version_tree; enum output_type { type_pde, - type_relocatable, type_pie, + type_relocatable, type_dll, }; -- 2.7.4