Commit 6efdeb47 by Jeff Law

* pa.h (TARGET_SWITCHES): New switch "-mlong-calls".

From-SVN: r2487
parent 5cf2759e
...@@ -111,6 +111,14 @@ extern int target_flags; ...@@ -111,6 +111,14 @@ extern int target_flags;
#define TARGET_SHARED_LIBS (target_flags & 8) #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. /* Macro to define tables used to set the flags.
This is a list in braces of pairs in braces, This is a list in braces of pairs in braces,
each pair being { "NAME", VALUE } each pair being { "NAME", VALUE }
...@@ -126,6 +134,7 @@ extern int target_flags; ...@@ -126,6 +134,7 @@ extern int target_flags;
{"kernel", 4}, \ {"kernel", 4}, \
{"shared-libs", 8}, \ {"shared-libs", 8}, \
{"no-shared-libs", -8},\ {"no-shared-libs", -8},\
{"long-calls", 16}, \
{ "", TARGET_DEFAULT}} { "", TARGET_DEFAULT}}
#define TARGET_DEFAULT 0 #define TARGET_DEFAULT 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment