diff options
author | kraai <kraai@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-19 00:31:10 +0000 |
---|---|---|
committer | kraai <kraai@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-19 00:31:10 +0000 |
commit | 3be2f219ac7d91186508ecd1a8791842eefa1764 (patch) | |
tree | f366b57eefbdbdfedd85abe04f495ca30220e2a2 /gcc/config/frv | |
parent | a1edcc36b5443b8aa3bb455cd6be36679c127a93 (diff) | |
download | gcc-3be2f219ac7d91186508ecd1a8791842eefa1764.tar.gz |
* flags.h (g_switch_value): Change to an unsigned
HOST_WIDE_INT.
* toplev.c (g_switch_value): Likewise.
* config/alpha/alpha.c (small_symbolic_operand): Remove
g_switch_value cast.
(alpha_in_small_data_p): Cast size to an unsigned
HOST_WIDE_INT.
* config/frv/frv.c (frv_in_small_data_p): Cast size to an
unsigned HOST_WIDE_INT.
* config/frv/frv.h (g_switch_value, g_switch_set): Remove.
(ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
* config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
unsigned HOST_WIDE_INT.
(m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
* config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
(ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
* config/rs6000/rs6000.c (rs6000_file_start): Use
HOST_WIDE_INT_PRINT_UNSIGNED.
(small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
(rs6000_elf_in_small_data_p): Cast size to unsigned
HOST_WIDE_INT.
* config/rs6000/sysv4.h (g_switch_value, g_switch_set):
Remove.
(SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
g_switch_set.
(ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
g_switch_value cast.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66945 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/frv')
-rw-r--r-- | gcc/config/frv/frv.c | 2 | ||||
-rw-r--r-- | gcc/config/frv/frv.h | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/gcc/config/frv/frv.c b/gcc/config/frv/frv.c index 822c19a0693..c2a8ef95c6c 100644 --- a/gcc/config/frv/frv.c +++ b/gcc/config/frv/frv.c @@ -9714,7 +9714,7 @@ frv_in_small_data_p (decl) return false; size = int_size_in_bytes (TREE_TYPE (decl)); - if (size > 0 && size <= g_switch_value) + if (size > 0 && (unsigned HOST_WIDE_INT) size <= g_switch_value) return true; /* If we already know which section the decl should be in, see if diff --git a/gcc/config/frv/frv.h b/gcc/config/frv/frv.h index c93ad267a75..f7d46c0ab80 100644 --- a/gcc/config/frv/frv.h +++ b/gcc/config/frv/frv.h @@ -554,9 +554,6 @@ extern int target_flags; #define SDATA_DEFAULT_SIZE 8 #endif -extern int g_switch_value; /* value of the -G xx switch */ -extern int g_switch_set; /* whether -G xx was passed. */ - /* Storage Layout */ @@ -2783,6 +2780,8 @@ extern int size_directive_output; #undef ASM_OUTPUT_ALIGNED_DECL_LOCAL #define ASM_OUTPUT_ALIGNED_DECL_LOCAL(STREAM, DECL, NAME, SIZE, ALIGN) \ do { \ + extern unsigned HOST_WIDE_INT g_switch_value; \ + \ if ((SIZE) > 0 && (SIZE) <= g_switch_value) \ sbss_section (); \ else \ |