diff options
author | Nick Clifton <nickc@redhat.com> | 2007-11-06 17:15:10 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2007-11-06 17:15:10 +0000 |
commit | 8c7504802aa101a9df8e799e1d1943ab7b5ff80b (patch) | |
tree | 304a13d2252064bcff551cb28d724bef16deffb1 /gas/ehopt.c | |
parent | 102890f04c44b64cf5cef4588267dd9f24086ac7 (diff) | |
download | gdb-8c7504802aa101a9df8e799e1d1943ab7b5ff80b.zip gdb-8c7504802aa101a9df8e799e1d1943ab7b5ff80b.tar.gz gdb-8c7504802aa101a9df8e799e1d1943ab7b5ff80b.tar.bz2 |
* ehopt.c (check_eh_frame): If md_allow_eh_opt is defined, invoke it to see if the optimizations should be applied.
* config/tc-mn10300.h (md_allow_eh_opt): Define. Only allow call frame optimization if linker relaxation is not enabled.
* gas/elf/elf.exp: Disable ehopt test for mn10300.
Diffstat (limited to 'gas/ehopt.c')
-rw-r--r-- | gas/ehopt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/ehopt.c b/gas/ehopt.c index 2b0609b..048bc57 100644 --- a/gas/ehopt.c +++ b/gas/ehopt.c @@ -275,6 +275,11 @@ check_eh_frame (expressionS *exp, unsigned int *pnbytes) if (flag_traditional_format) return 0; +#ifdef md_allow_eh_opt + if (! md_allow_eh_opt) + return 0; +#endif + /* Select the proper section data. */ if (strcmp (segment_name (now_seg), ".eh_frame") == 0) d = &eh_frame_data; |