Commit f2dafb91 by Chung-Ju Wu Committed by Chung-Ju Wu

nds32.c (nds32_asm_function_prologue): Do not use nreverse() because it changes…

nds32.c (nds32_asm_function_prologue): Do not use nreverse() because it changes the content of original tree list.

2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>

	* config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
	nreverse() because it changes the content of original tree list.

From-SVN: r207777
parent 59043e75
2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
nreverse() because it changes the content of original tree list.
2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
* config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
......
......@@ -1960,10 +1960,9 @@ nds32_asm_function_prologue (FILE *file,
/* Display the attributes of this function. */
fprintf (file, "\t! function attributes: ");
/* GCC build attributes list with reverse order,
so we use nreverse() to make it looks like
the order that user specifies. */
attrs = nreverse (DECL_ATTRIBUTES (current_function_decl));
/* Get the attributes tree list.
Note that GCC builds attributes list with reverse order. */
attrs = DECL_ATTRIBUTES (current_function_decl);
/* If there is no any attribute, print out "None". */
if (!attrs)
......
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