diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-10-24 11:09:28 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-10-24 11:09:28 +0000 |
commit | 4f9d22a0b15a371db7df4b41c1633fde25932ff1 (patch) | |
tree | aa6979c634219b862efa215bac762baf06d62365 /ld/ldmain.h | |
parent | 35c813e2242319efee1bad5c7cdd6e7e224ce94e (diff) | |
download | binutils-4f9d22a0b15a371db7df4b41c1633fde25932ff1.zip binutils-4f9d22a0b15a371db7df4b41c1633fde25932ff1.tar.gz binutils-4f9d22a0b15a371db7df4b41c1633fde25932ff1.tar.bz2 |
Move disable_target_specific_optimizations to bfd_link_info
include/
* bfdlink.h (bfd_link_info): Add
disable_target_specific_optimizations.
ld/
* ld.h (command_line): Remove
disable_target_specific_optimizations.
(RELAXATION_DISABLED_BY_DEFAULT): Removed.
(RELAXATION_DISABLED_BY_USER): Likewise.
(RELAXATION_ENABLED): Likewise.
(DISABLE_RELAXATION): Likewise.
(ENABLE_RELAXATION): Likewise.
* ldmain.c (main): Updated.
* ldmain.h (RELAXATION_DISABLED_BY_DEFAULT): New macro.
(RELAXATION_DISABLED_BY_USER): Likewise.
(RELAXATION_ENABLED): Likewise.
(DISABLE_RELAXATION): Likewise.
(ENABLE_RELAXATION): Likewise.
Diffstat (limited to 'ld/ldmain.h')
-rw-r--r-- | ld/ldmain.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/ldmain.h b/ld/ldmain.h index 4d6bb04..69928f8 100644 --- a/ld/ldmain.h +++ b/ld/ldmain.h @@ -39,6 +39,17 @@ extern const char *output_filename; extern struct bfd_link_info link_info; extern int overflow_cutoff_limit; +#define RELAXATION_DISABLED_BY_DEFAULT \ + (link_info.disable_target_specific_optimizations < 0) +#define RELAXATION_DISABLED_BY_USER \ + (link_info.disable_target_specific_optimizations > 0) +#define RELAXATION_ENABLED \ + (link_info.disable_target_specific_optimizations == 0) +#define DISABLE_RELAXATION \ + do { link_info.disable_target_specific_optimizations = 1; } while (0) +#define ENABLE_RELAXATION \ + do { link_info.disable_target_specific_optimizations = 0; } while (0) + extern void add_ysym (const char *); extern void add_wrap (const char *); extern void add_ignoresym (struct bfd_link_info *, const char *); |