public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/63358] New: [4.8.3 - 4.9.1] gcc -O2/-O3 wrong assembly code (crash / Segmentation fault)
@ 2014-09-24 13:03 jean-baptiste.laurent at epitech dot eu
  2014-09-24 13:09 ` [Bug c/63358] " trippels at gcc dot gnu.org
  2014-09-24 13:41 ` redi at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: jean-baptiste.laurent at epitech dot eu @ 2014-09-24 13:03 UTC (permalink / raw)
  To: gcc-bugs

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).


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-24 13:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-24 13:03 [Bug c/63358] New: [4.8.3 - 4.9.1] gcc -O2/-O3 wrong assembly code (crash / Segmentation fault) jean-baptiste.laurent at epitech dot eu
2014-09-24 13:09 ` [Bug c/63358] " trippels at gcc dot gnu.org
2014-09-24 13:41 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).