public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59379] New: gomp_init_num_threads is compiled into an infinite loop with --with-arch=corei7  --with-cpu=slm
@ 2013-12-03 21:40 hjl.tools at gmail dot com
  2013-12-03 21:46 ` [Bug target/59379] " octoploid at yandex dot com
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: hjl.tools at gmail dot com @ 2013-12-03 21:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59379
           Summary: gomp_init_num_threads is compiled into an infinite
                    loop with --with-arch=corei7  --with-cpu=slm
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
                CC: areg.melikadamyan at gmail dot com

On Linux/x86-64, when GCC revision 205645 configured with

--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld
--enable-languages=c,c++,fortran,java,lto,objc,obj-c++,go  --prefix=/usr/local
--enable-gnu-indirect-function --disable-werror
--with-build-config=bootstrap-lto --with-fpmath=sse --with-arch=corei7 
--with-cpu=slm

is bootstrapped with "make profiledbootstrap", gomp_init_num_threads
is compiled into an infinite loop:

(gdb) next
90      gomp_cpusetp = (cpu_set_t *) gomp_malloc (gomp_cpuset_size);
(gdb) 
106            if (CPU_ISSET_S (i - 1, gomp_cpuset_size, gomp_cpusetp))
(gdb) 
90      gomp_cpusetp = (cpu_set_t *) gomp_malloc (gomp_cpuset_size);
(gdb) 
106            if (CPU_ISSET_S (i - 1, gomp_cpuset_size, gomp_cpusetp))
(gdb) 
90      gomp_cpusetp = (cpu_set_t *) gomp_malloc (gomp_cpuset_size);
(gdb) 
106            if (CPU_ISSET_S (i - 1, gomp_cpuset_size, gomp_cpusetp))
(gdb) 
90      gomp_cpusetp = (cpu_set_t *) gomp_malloc (gomp_cpuset_size);
(gdb) 
106            if (CPU_ISSET_S (i - 1, gomp_cpuset_size, gomp_cpusetp))
(gdb) 
90      gomp_cpusetp = (cpu_set_t *) gomp_malloc (gomp_cpuset_size);
(gdb) 
106            if (CPU_ISSET_S (i - 1, gomp_cpuset_size, gomp_cpusetp))
(gdb) 
90      gomp_cpusetp = (cpu_set_t *) gomp_malloc (gomp_cpuset_size);
(gdb) 
106            if (CPU_ISSET_S (i - 1, gomp_cpuset_size, gomp_cpusetp))
(gdb) 
90      gomp_cpusetp = (cpu_set_t *) gomp_malloc (gomp_cpuset_size);
(gdb) 
106            if (CPU_ISSET_S (i - 1, gomp_cpuset_size, gomp_cpusetp))
(gdb) 

Stage3 GCC is miscompiled.


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

end of thread, other threads:[~2014-01-22 18:40 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-03 21:40 [Bug target/59379] New: gomp_init_num_threads is compiled into an infinite loop with --with-arch=corei7 --with-cpu=slm hjl.tools at gmail dot com
2013-12-03 21:46 ` [Bug target/59379] " octoploid at yandex dot com
2013-12-03 21:51 ` hjl.tools at gmail dot com
2013-12-03 21:52 ` hjl.tools at gmail dot com
2013-12-04  0:41 ` hjl.tools at gmail dot com
2013-12-04  0:48 ` hjl.tools at gmail dot com
2013-12-04 10:52 ` [Bug target/59379] [4.9 Regression] " hjl.tools at gmail dot com
2013-12-04 23:39 ` hjl.tools at gmail dot com
2013-12-05  3:11 ` hjl.tools at gmail dot com
2013-12-05 11:17 ` rguenth at gcc dot gnu.org
2013-12-06  1:45 ` hjl.tools at gmail dot com
2013-12-19 15:37 ` rguenth at gcc dot gnu.org
2013-12-26 12:41 ` izamyatin at gmail dot com
2013-12-26 12:57 ` hjl.tools at gmail dot com
2013-12-26 14:41 ` hjl.tools at gmail dot com
2013-12-30 21:16 ` izamyatin at gmail dot com
2013-12-31  7:02 ` izamyatin at gmail dot com
2014-01-18 17:13 ` hjl.tools at gmail dot com
2014-01-18 19:47 ` ubizjak at gmail dot com
2014-01-19  9:51 ` ubizjak at gmail dot com
2014-01-19 14:18 ` hjl.tools at gmail dot com
2014-01-19 15:48 ` uros at gcc dot gnu.org
2014-01-22 18:29 ` uros at gcc dot gnu.org
2014-01-22 18:40 ` ubizjak at gmail dot com

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