[Bug target/80986] auto keyword variable lost its attributes

2019-09-02 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #8 from linzj --- (In reply to Anssi Hannula from comment #7) > Created attachment 46772 [details] > Simple testcase for the issue > > The regression still exists on GCC trunk. > > We also hit the issue with >

[Bug target/80986] auto keyword variable lost its attributes

2019-08-28 Thread anssi.hannula at bitwise dot fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 Anssi Hannula changed: What|Removed |Added CC||anssi.hannula at bitwise dot fi ---

[Bug target/80986] auto keyword variable lost its attributes

2017-09-20 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #6 from Ramana Radhakrishnan --- (In reply to linzj from comment #5) > Is the following patch okay? Or should I add the new bit to indicate not to > remove an attribute? > diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c > index

[Bug target/80986] auto keyword variable lost its attributes

2017-07-04 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #5 from linzj --- Is the following patch okay? Or should I add the new bit to indicate not to remove an attribute? diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index f8436b30b37..97bc82272af 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@

[Bug target/80986] auto keyword variable lost its attributes

2017-06-16 Thread ramana at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 Ramana Radhakrishnan changed: What|Removed |Added CC||ramana at gcc dot gnu.org ---

[Bug target/80986] auto keyword variable lost its attributes

2017-06-14 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #3 from linzj --- Hi Pinskia, This bug can be fix easily. Can you commit the fix patch? -- Lin Zuojian 2017-06-07 9:45 GMT+08:00 pinskia at gcc dot gnu.org : >

[Bug target/80986] auto keyword variable lost its attributes

2017-06-07 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #2 from linzj --- I have found the cause of this bug. In 5.3, the function strip_typedefs only use result = cp_build_type_attribute_variant (result, TYPE_ATTRIBUTES (t)); but in 6.3 remove_attributes prediction get invovled: if

[Bug target/80986] auto keyword variable lost its attributes

2017-06-06 Thread manjian2006 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80986 --- Comment #1 from linzj --- >From the peek of -fdump-tree-tu-all, the translation unit already get the function_type wrong. Before use the auto, the function type has the attribute pcs. But after the auto use, the function type has dropped the