Occurred on Windows Vista, with GCC 4.5.0 and 4.4.0 and -masm=intel and -Ox x>0, the code generation produces a faulty output with -O1 and a faulty control frow leading to SIGSEGV when -O2 or -O3.
When -masm=intel or -Ox deleted, no SIGSEGV occurs and output is right. This phenomena doesn't occur on Linux version of GCC (tested with 4.4.3). -- Summary: [MinGW GCC]: Faulty code optimization when -masm=intel added Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dg dot recrutement31 at gmail dot com GCC host triplet: Windows VISTA http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44447