diff options
author | Richard Henderson <rth@redhat.com> | 2002-05-24 18:56:57 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-05-24 18:56:57 -0700 |
commit | 755ac5d48039681a08775d40dae2be21298dbb99 (patch) | |
tree | 47c0a424dd4ddb14ba161597a08dd4617e0ff7d1 /gcc/config | |
parent | c429f12e2ed0a0612115b8c95935cdf7f9c50c84 (diff) | |
download | gcc-755ac5d48039681a08775d40dae2be21298dbb99.zip gcc-755ac5d48039681a08775d40dae2be21298dbb99.tar.gz gcc-755ac5d48039681a08775d40dae2be21298dbb99.tar.bz2 |
flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
* flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
* toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
* config/i386/i386.c (tls_model_chars): Add leading space.
(tls_symbolic_operand): Don't bias by 1.
(legitimize_address): Don't unbias by 1.
From-SVN: r53861
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ba52c7c..cf2def2 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -546,7 +546,7 @@ rtx ix86_compare_op1 = NULL_RTX; /* The encoding characters for the four TLS models present in ELF. */ -static char const tls_model_chars[] = "GLil"; +static char const tls_model_chars[] = " GLil"; #define MAX_386_STACK_LOCALS 3 /* Size of the register save area. */ @@ -3007,7 +3007,7 @@ tls_symbolic_operand (op, mode) if (symbol_str[0] != '%') return 0; - return strchr (tls_model_chars, symbol_str[1]) - tls_model_chars + 1; + return strchr (tls_model_chars, symbol_str[1]) - tls_model_chars; } static int @@ -5490,13 +5490,12 @@ legitimize_address (x, oldx, mode) debug_rtx (x); } - /* Note that tls_symbolic_operand return is biased by 1 to return true. */ log = tls_symbolic_operand (x, mode); if (log) { rtx dest, base, off, pic; - switch (log - 1) + switch (log) { case TLS_MODEL_GLOBAL_DYNAMIC: dest = gen_reg_rtx (Pmode); |