Commit 8bd8e198 by Jim Wilson

(function_prologue): Put SDB_DEBUGGING_INFO ifdef around code for SDB_DEBUG support.

(function_prologue): Put SDB_DEBUGGING_INFO ifdef around
code for SDB_DEBUG support.
(mips_select_rtx_section, mips_select_section): Change rdata_section
to READONLY_DATA_SECTION and sdata_section to SMALL_DATA_SECTION.

From-SVN: r9250
parent 3cf6400d
...@@ -4836,8 +4836,10 @@ function_prologue (file, size) ...@@ -4836,8 +4836,10 @@ function_prologue (file, size)
ASM_OUTPUT_SOURCE_FILENAME (file, DECL_SOURCE_FILE (current_function_decl)); ASM_OUTPUT_SOURCE_FILENAME (file, DECL_SOURCE_FILE (current_function_decl));
#ifdef SDB_DEBUGGING_INFO
if (debug_info_level != DINFO_LEVEL_TERSE && write_symbols == SDB_DEBUG) if (debug_info_level != DINFO_LEVEL_TERSE && write_symbols == SDB_DEBUG)
ASM_OUTPUT_SOURCE_LINE (file, DECL_SOURCE_LINE (current_function_decl)); ASM_OUTPUT_SOURCE_LINE (file, DECL_SOURCE_LINE (current_function_decl));
#endif
inside_function = 1; inside_function = 1;
fputs ("\t.ent\t", file); fputs ("\t.ent\t", file);
...@@ -5406,7 +5408,7 @@ mips_select_rtx_section (mode, x) ...@@ -5406,7 +5408,7 @@ mips_select_rtx_section (mode, x)
{ {
/* For embedded applications, always put constants in read-only data, /* For embedded applications, always put constants in read-only data,
in order to reduce RAM usage. */ in order to reduce RAM usage. */
rdata_section (); READONLY_DATA_SECTION ();
} }
else else
{ {
...@@ -5415,9 +5417,9 @@ mips_select_rtx_section (mode, x) ...@@ -5415,9 +5417,9 @@ mips_select_rtx_section (mode, x)
if (GET_MODE_SIZE (mode) <= mips_section_threshold if (GET_MODE_SIZE (mode) <= mips_section_threshold
&& mips_section_threshold > 0) && mips_section_threshold > 0)
sdata_section (); SMALL_DATA_SECTION ();
else else
rdata_section (); READONLY_DATA_SECTION ();
} }
} }
...@@ -5455,9 +5457,9 @@ mips_select_section (decl, reloc) ...@@ -5455,9 +5457,9 @@ mips_select_section (decl, reloc)
&& (TREE_CODE (decl) != STRING_CST && (TREE_CODE (decl) != STRING_CST
|| !flag_writable_strings))) || !flag_writable_strings)))
&& ! (flag_pic && reloc)) && ! (flag_pic && reloc))
rdata_section (); READONLY_DATA_SECTION ();
else if (size > 0 && size <= mips_section_threshold) else if (size > 0 && size <= mips_section_threshold)
sdata_section (); SMALL_DATA_SECTION ();
else else
data_section (); data_section ();
} }
...@@ -5467,7 +5469,7 @@ mips_select_section (decl, reloc) ...@@ -5467,7 +5469,7 @@ mips_select_section (decl, reloc)
possible, as this gives the best performance. */ possible, as this gives the best performance. */
if (size > 0 && size <= mips_section_threshold) if (size > 0 && size <= mips_section_threshold)
sdata_section (); SMALL_DATA_SECTION ();
else if (((TREE_CODE (decl) == VAR_DECL else if (((TREE_CODE (decl) == VAR_DECL
&& TREE_READONLY (decl) && !TREE_SIDE_EFFECTS (decl) && TREE_READONLY (decl) && !TREE_SIDE_EFFECTS (decl)
&& DECL_INITIAL (decl) && DECL_INITIAL (decl)
...@@ -5478,7 +5480,7 @@ mips_select_section (decl, reloc) ...@@ -5478,7 +5480,7 @@ mips_select_section (decl, reloc)
&& (TREE_CODE (decl) != STRING_CST && (TREE_CODE (decl) != STRING_CST
|| !flag_writable_strings))) || !flag_writable_strings)))
&& ! (flag_pic && reloc)) && ! (flag_pic && reloc))
rdata_section (); READONLY_DATA_SECTION ();
else else
data_section (); data_section ();
} }
......
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