[Bug c/50081] Wrong code (wrong order) generated with -O2 or -Os while function return a struct

2011-08-15 Thread lingyouz...@arimacomm-hz.cn
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50081 --- Comment #5 from LYZ 2011-08-15 08:29:12 UTC --- Created attachment 25013 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25013 asm code

[Bug c/50081] Wrong code (wrong order) generated with -O2 or -Os while function return a struct

2011-08-15 Thread lingyouz...@arimacomm-hz.cn
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50081 --- Comment #4 from LYZ 2011-08-15 08:28:09 UTC --- Created attachment 25012 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25012 source code

[Bug c/50081] Wrong code (wrong order) generated with -O2 or -Os while function return a struct

2011-08-15 Thread lingyouz...@arimacomm-hz.cn
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50081 LYZ changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug rtl-optimization/38644] [4.4/4.5/4.6/4.7 Regression] Optimization flag -O1 -fschedule-insns2 causes wrong code

2011-08-15 Thread lingyouz...@arimacomm-hz.cn
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38644 --- Comment #42 from LYZ 2011-08-15 08:08:46 UTC --- *** Bug 50081 has been marked as a duplicate of this bug. ***

[Bug c/50081] Wrong code (wrong order) generated with -O2 or -Os while function return a struct

2011-08-15 Thread lingyouz...@arimacomm-hz.cn
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50081 --- Comment #2 from LYZ 2011-08-15 08:01:26 UTC --- I am a new here, I try 4.4.1 still same issue. My compile is arm-none-eabi-gcc-4.4.1.exe. Yes Thumb-1 code, but I not sure whether same as PR38644. (In reply to comment #1) > Is this Thumb-1 c

[Bug c/50081] New: Wrong code (wrong order) generated with -O2 or -Os while function return a struct

2011-08-14 Thread lingyouz...@arimacomm-hz.cn
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: lingyouz...@arimacomm-hz.cn The code like: typedef struct { struct umdb_list_head_st *list_head; struct umdb_list_node_st *current