From 6efdeb47f64a1ea167190b458079ebeb3df425d5 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 16 Oct 1992 00:24:08 -0600 Subject: [PATCH] * pa.h (TARGET_SWITCHES): New switch "-mlong-calls". From-SVN: r2487 --- gcc/config/pa/pa.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 63541f8b818..ddb64ba8717 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -111,6 +111,14 @@ extern int target_flags; #define TARGET_SHARED_LIBS (target_flags & 8) +/* Force all function calls to indirect addressing via a register. This + avoids lossage when the function is very far away from the current PC. + + ??? What about simple jumps, they can suffer from the same problem. + Would require significant surgery in pa.md. */ + +#define TARGET_LONG_CALLS (target_flags & 16) + /* Macro to define tables used to set the flags. This is a list in braces of pairs in braces, each pair being { "NAME", VALUE } @@ -126,6 +134,7 @@ extern int target_flags; {"kernel", 4}, \ {"shared-libs", 8}, \ {"no-shared-libs", -8},\ + {"long-calls", 16}, \ { "", TARGET_DEFAULT}} #define TARGET_DEFAULT 0 -- 2.30.2