OSDN Git Service

* pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jan 2009 17:29:25 +0000 (17:29 +0000)
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Jan 2009 17:29:25 +0000 (17:29 +0000)
function when not using named sections on targets with named sections
if branch distance is less than 262132.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143300 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 0920534..a86f009 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 44ded73..5e96120 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)