https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63358
Bug ID: 63358 Summary: [4.8.3 - 4.9.1] gcc -O2/-O3 wrong assembly code (crash / Segmentation fault) Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: major Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jean-baptiste.laurent at epitech dot eu Created attachment 33547 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33547&action=edit The zip file containing the small code making gcc generate wrong assembly, and both the .s and .i generated by -save-temps. Hi, It appears that gcc, when compiling the code in attachment generate an assembly which is wrong. This code has been tested with gcc 4.7.1 (working), 4.8.3 (crash) on Fedora 18 and Fedora 20, and 4.9.1 (crash) on Ubuntu 14.04. The source file produce a wrong code when compiling with at least -O2. Warning flags (-W -Wall -Wextra) do not influence the result. There are no warning generated. When looking at the assembly directly it look like there is a whole part of the code missing (like the compilation stopped but do not failed).