public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53083] New: gcc bug in moving from the SSE registers back onto the heap.
@ 2012-04-23  7:47 da_fox at mad dot scientist.com
  2012-04-23  7:56 ` [Bug c/53083] " ubizjak at gmail dot com
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: da_fox at mad dot scientist.com @ 2012-04-23  7:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53083

             Bug #: 53083
           Summary: gcc bug in moving from the SSE registers back onto the
                    heap.
    Classification: Unclassified
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: da_fox@mad.scientist.com


After investigation of a suspected graphics-driver bug, it was found that the
issue lay with gcc. Please see
https://bugs.freedesktop.org/show_bug.cgi?id=47559 .

The problem as I understand is that gcc-4.6.0 miscompiles miarc.c from the
xorg-server package if -ftree-vectorize is enabled. This flag is enabled with
-O3.

The following minimal set of CFLAGS worked:
"-g -O2"

Adding the -ftree-vectorize separately, "-g -O2 -ftree-vectorize", caused the
program to misbehave at runtime.

I am running gentoo, the default CFLAGS for my system are:
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer -fweb -ffast-math
-mtune=native -mfpmath=sse"
I don't know if these match exactly with what is passed by portage for
compiling GCC.

Software versions (gentoo package versions):
sys-devel/gcc-4.6.0 
x11-base/xorg-server-1.11.2-r2

My hardware is a Dell XPS 15 (L502x) laptop with a 'Intel(R) Core(TM) i7-2630QM
CPU @ 2.00GHz'

I additional information is required please let me know.


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

end of thread, other threads:[~2013-07-02 13:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-23  7:47 [Bug c/53083] New: gcc bug in moving from the SSE registers back onto the heap da_fox at mad dot scientist.com
2012-04-23  7:56 ` [Bug c/53083] " ubizjak at gmail dot com
2012-04-23 10:25 ` rguenth at gcc dot gnu.org
2012-04-23 12:27 ` da_fox at mad dot scientist.com
2012-04-23 12:29 ` da_fox at mad dot scientist.com
2012-04-23 14:51 ` ubizjak at gmail dot com
2012-04-23 15:29 ` ubizjak at gmail dot com
2012-04-25  7:30 ` da_fox at mad dot scientist.com
2012-05-01  7:55 ` da_fox at mad dot scientist.com
2012-05-16  6:34 ` ubizjak at gmail dot com
2012-05-16  6:36 ` ubizjak at gmail dot com
2012-05-16  7:11 ` ubizjak at gmail dot com
2013-07-02 13:38 ` ossman at cendio dot se
2013-07-02 13:38 ` ossman at cendio dot se
2013-07-02 13:55 ` ossman at cendio dot se

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