]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: pa.h (MAX_PCREL17F_OFFSET): Adjust.
authorJohn David Anglin <danglin@gcc.gnu.org>
Fri, 1 Nov 2019 23:24:54 +0000 (23:24 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Fri, 1 Nov 2019 23:24:54 +0000 (23:24 +0000)
Backport from mainline
2019-10-03  John David Anglin  <danglin@gcc.gnu.org>

* config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.

From-SVN: r277731

gcc/ChangeLog
gcc/config/pa/pa.h

index 37a7432c3e8ba6315286a53206ba96abf57051f2..1fb0e82b35a8965bf3947ec3205cf78c44828312 100644 (file)
@@ -1,3 +1,10 @@
+2019-11-01  John David Anglin  <danglin@gcc.gnu.org>
+
+       Backport from mainline
+       2019-10-03  John David Anglin  <danglin@gcc.gnu.org>
+
+       * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
+
 2019-10-30  Iain Sandoe  <iain@sandoe.co.uk>
 
        Backport from mainline
index 385feb27033c5bf8dd8460c565b8258f856c8c41..24739e56f9748950c846e2b927ac3328f43a31ac 100644 (file)
@@ -1293,13 +1293,12 @@ do {                                                                         \
 #endif
 
 /* The maximum offset in bytes for a PA 1.X pc-relative call to the
-   head of the preceding stub table.  The selected offsets have been
-   chosen so that approximately one call stub is allocated for every
-   86.7 instructions.  A long branch stub is two instructions when
-   not generating PIC code.  For HP-UX and ELF targets, PIC stubs are
-   seven and four instructions, respectively.  */  
-#define MAX_PCREL17F_OFFSET \
-  (flag_pic ? (TARGET_HPUX ? 198164 : 221312) : 240000)
+   head of the preceding stub table.  A long branch stub is two or three
+   instructions for non-PIC and PIC, respectively.  Import stubs are
+   seven and five instructions for HP-UX and ELF targets, respectively.
+   The default stub group size for ELF targets is 217856 bytes.
+   FIXME: We need an option to set the maximum offset.  */  
+#define MAX_PCREL17F_OFFSET (TARGET_HPUX ? 198164 : 217856)
 
 #define NEED_INDICATE_EXEC_STACK 0