From: Chung-Ju Wu Date: Fri, 14 Feb 2014 06:02:16 +0000 (+0000) Subject: nds32.c (nds32_asm_function_prologue): Do not use nreverse() because it changes the... X-Git-Tag: releases/gcc-4.9.0~920 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2dafb914e2af3bf33984644906acc2d11f5ca5c;p=thirdparty%2Fgcc.git 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 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use nreverse() because it changes the content of original tree list. From-SVN: r207777 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2d1d9e98181e..3b9468d0766c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-02-14 Chung-Ju Wu + + * 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 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment. diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c index f533d9773a89..645d8dda3352 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)