]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
nds32.c (nds32_asm_function_prologue): Do not use nreverse() because it changes the...
authorChung-Ju Wu <jasonwucj@gmail.com>
Fri, 14 Feb 2014 06:02:16 +0000 (06:02 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Fri, 14 Feb 2014 06:02:16 +0000 (06:02 +0000)
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

gcc/ChangeLog
gcc/config/nds32/nds32.c

index 2d1d9e98181e3cd74f1169d7efa4cdd5d51a4d85..3b9468d0766ce96756d5735e01bae9235df5a813 100644 (file)
@@ -1,3 +1,8 @@
+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.
index f533d9773a8927fa02451dd8b57e08aa151f075f..645d8dda33523dc78c175ab2dfcd3350ac03f896 100644 (file)
@@ -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)