]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk function when...
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Mon, 12 Jan 2009 17:29:25 +0000 (17:29 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 12 Jan 2009 17:29:25 +0000 (17:29 +0000)
* 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

gcc/ChangeLog
gcc/config/pa/pa.c

index 0920534487ff8dd6bbf46361c44ae2aa74d967ec..a86f0095cc9e996becd80c6d9515d6dc286867b1 100644 (file)
@@ -1,3 +1,9 @@
+2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * 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.
+
 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
 
        * combine.c (combine_instructions):  Recompute
index 44ded73f90894ab9c17e80adf6b3dcc945e4dce8..5e96120a64f62cf6c20384b7782468b45d137e07 100644 (file)
@@ -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)