diff options
author | John David Anglin <dave.anglin@nrc-cnrc.gc.ca> | 2009-01-12 17:29:25 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2009-01-12 17:29:25 +0000 |
commit | 2842bb86fd3ac50af7309959d23d8e725683c91e (patch) | |
tree | 36988d93c528ce6478c19bb41ff7da2aaf888215 /gcc/config/pa | |
parent | f0561e9ee3ff8eb570f4f273677ef794185ff82b (diff) | |
download | gcc-2842bb86fd3ac50af7309959d23d8e725683c91e.tar.gz |
pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk function when...
* pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
function when not using named sections on targets with named sections
if branch distance is less than 262132.
From-SVN: r143300
Diffstat (limited to 'gcc/config/pa')
-rw-r--r-- | gcc/config/pa/pa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/pa/pa.c b/gcc/config/pa/pa.c index 44ded73f908..5e96120a64f 100644 --- a/gcc/config/pa/pa.c +++ b/gcc/config/pa/pa.c @@ -7980,6 +7980,10 @@ pa_asm_output_mi_thunk (FILE *file, tree thunk_fndecl, HOST_WIDE_INT delta, || ((DECL_SECTION_NAME (thunk_fndecl) == DECL_SECTION_NAME (function)) && last_address < 262132))) + || (targetm.have_named_sections + && DECL_SECTION_NAME (thunk_fndecl) == NULL + && DECL_SECTION_NAME (function) == NULL + && last_address < 262132) || (!targetm.have_named_sections && last_address < 262132)))) { if (!val_14) |