aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChung-Ju Wu <jasonwucj@gmail.com>2014-02-14 06:02:16 +0000
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>2014-02-14 06:02:16 +0000
commitf2dafb914e2af3bf33984644906acc2d11f5ca5c (patch)
treee3316b596a578c11e4619b45986739a0c0ca36bb
parent59043e7595b930aa7c94dade272905ebadb44d6f (diff)
downloadgcc-f2dafb914e2af3bf33984644906acc2d11f5ca5c.zip
gcc-f2dafb914e2af3bf33984644906acc2d11f5ca5c.tar.gz
gcc-f2dafb914e2af3bf33984644906acc2d11f5ca5c.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/nds32/nds32.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2d1d9e9..3b9468d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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.
diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c
index f533d97..645d8dd 100644
--- a/gcc/config/nds32/nds32.c
+++ b/gcc/config/nds32/nds32.c
@@ -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)