Commit 00f07fb9 by Richard Kenner

(output_constant_def): Do hashing and make label even if bytecode.

From-SVN: r6784
parent 8e2b13c3
...@@ -2540,8 +2540,6 @@ output_constant_def (exp) ...@@ -2540,8 +2540,6 @@ output_constant_def (exp)
to see if any of them describes EXP. If yes, the descriptor records to see if any of them describes EXP. If yes, the descriptor records
the label number already assigned. */ the label number already assigned. */
if (!output_bytecode)
{
hash = const_hash (exp) % MAX_HASH_TABLE; hash = const_hash (exp) % MAX_HASH_TABLE;
for (desc = const_hash_table[hash]; desc; desc = desc->next) for (desc = const_hash_table[hash]; desc; desc = desc->next)
...@@ -2572,7 +2570,6 @@ output_constant_def (exp) ...@@ -2572,7 +2570,6 @@ output_constant_def (exp)
/* Create a string containing the label name, in LABEL. */ /* Create a string containing the label name, in LABEL. */
ASM_GENERATE_INTERNAL_LABEL (label, "LC", const_labelno); ASM_GENERATE_INTERNAL_LABEL (label, "LC", const_labelno);
} }
}
/* We have a symbol name; construct the SYMBOL_REF and the MEM. */ /* We have a symbol name; construct the SYMBOL_REF and the MEM. */
...@@ -2580,8 +2577,6 @@ output_constant_def (exp) ...@@ -2580,8 +2577,6 @@ output_constant_def (exp)
if (TREE_PERMANENT (exp)) if (TREE_PERMANENT (exp))
end_temporary_allocation (); end_temporary_allocation ();
if (!output_bytecode)
{
def = gen_rtx (SYMBOL_REF, Pmode, desc->label); def = gen_rtx (SYMBOL_REF, Pmode, desc->label);
TREE_CST_RTL (exp) TREE_CST_RTL (exp)
...@@ -2590,7 +2585,7 @@ output_constant_def (exp) ...@@ -2590,7 +2585,7 @@ output_constant_def (exp)
if (TREE_CODE (TREE_TYPE (exp)) == RECORD_TYPE if (TREE_CODE (TREE_TYPE (exp)) == RECORD_TYPE
|| TREE_CODE (TREE_TYPE (exp)) == ARRAY_TYPE) || TREE_CODE (TREE_TYPE (exp)) == ARRAY_TYPE)
MEM_IN_STRUCT_P (TREE_CST_RTL (exp)) = 1; MEM_IN_STRUCT_P (TREE_CST_RTL (exp)) = 1;
}
pop_obstacks (); pop_obstacks ();
/* Optionally set flags or add text to the name to record information /* Optionally set flags or add text to the name to record information
......
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