public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65017] New: valgrind error in  get_constraint_for_address_of
@ 2015-02-11 10:51 dcb314 at hotmail dot com
  2015-02-11 11:27 ` [Bug c++/65017] " rguenth at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2015-02-11 10:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65017

            Bug ID: 65017
           Summary: valgrind error in  get_constraint_for_address_of
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

Created attachment 34722
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34722&action=edit
C++ source code

Given the C++ source code from bug # 47903, compiled
by trunk of 20150211 with flag -O2, then valgrind
says

==22708== Conditional jump or move depends on uninitialised value(s)
==22708==    at 0xD708FD: get_constraint_for_address_of
(tree-ssa-structalias.c:
3370)
==22708==    by 0xD708FD: get_constraint_for_1(tree_node*, vec<constraint_expr, 
va_heap, vl_ptr>*, bool, bool) (tree-ssa-structalias.c:3434)
==22708==    by 0xD743C9: get_constraint_for_rhs (tree-ssa-structalias.c:3580)
==22708==    by 0xD743C9: make_constraint_to(unsigned int, tree_node*)
(tree-ssa
-structalias.c:3703)

tree-ssa-structalias.c:3370 is

      if (c->type == DEREF)


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

* [Bug c++/65017] valgrind error in  get_constraint_for_address_of
  2015-02-11 10:51 [Bug c++/65017] New: valgrind error in get_constraint_for_address_of dcb314 at hotmail dot com
@ 2015-02-11 11:27 ` rguenth at gcc dot gnu.org
  2015-02-11 13:06 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-02-11 11:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65017

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-02-11
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.


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

* [Bug c++/65017] valgrind error in  get_constraint_for_address_of
  2015-02-11 10:51 [Bug c++/65017] New: valgrind error in get_constraint_for_address_of dcb314 at hotmail dot com
  2015-02-11 11:27 ` [Bug c++/65017] " rguenth at gcc dot gnu.org
@ 2015-02-11 13:06 ` rguenth at gcc dot gnu.org
  2015-02-11 13:24 ` dcb314 at hotmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-02-11 13:06 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65017

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I can't reproduce this - how did you compile/configure GCC?  Just tried both
--enable-checking and --enable-checking=release builds.


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

* [Bug c++/65017] valgrind error in  get_constraint_for_address_of
  2015-02-11 10:51 [Bug c++/65017] New: valgrind error in get_constraint_for_address_of dcb314 at hotmail dot com
  2015-02-11 11:27 ` [Bug c++/65017] " rguenth at gcc dot gnu.org
  2015-02-11 13:06 ` rguenth at gcc dot gnu.org
@ 2015-02-11 13:24 ` dcb314 at hotmail dot com
  2015-02-11 15:10 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2015-02-11 13:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65017

--- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Richard Biener from comment #2)
> I can't reproduce this - how did you compile/configure GCC?  Just tried both
> --enable-checking and --enable-checking=release builds.

../src/trunk/configure --prefix=/home/dcb/gcc/results \
    --disable-bootstrap \
    --disable-werror \
    --enable-checking=yes \
    --enable-languages=c,c++,fortran \
    CC="clang -fheinous-gnu-extensions" \
    CXX="clang++ -fheinous-gnu-extensions"

on AMD Phenom.


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

* [Bug c++/65017] valgrind error in  get_constraint_for_address_of
  2015-02-11 10:51 [Bug c++/65017] New: valgrind error in get_constraint_for_address_of dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2015-02-11 13:24 ` dcb314 at hotmail dot com
@ 2015-02-11 15:10 ` rguenth at gcc dot gnu.org
  2015-02-11 16:50 ` dcb314 at hotmail dot com
  2015-02-12  8:54 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-02-11 15:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65017

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #4)
> On Wed, 11 Feb 2015, dcb314 at hotmail dot com wrote:
> 
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65017
> > 
> > --- Comment #3 from David Binderman <dcb314 at hotmail dot com> ---
> > (In reply to Richard Biener from comment #2)
> > > I can't reproduce this - how did you compile/configure GCC?  Just tried both
> > > --enable-checking and --enable-checking=release builds.
> > 
> > ../src/trunk/configure --prefix=/home/dcb/gcc/results \
> >     --disable-bootstrap \
> >     --disable-werror \
> >     --enable-checking=yes \
> >     --enable-languages=c,c++,fortran \
> >     CC="clang -fheinous-gnu-extensions" \
> >     CXX="clang++ -fheinous-gnu-extensions"
> > 
> > on AMD Phenom.
> 
> Uh, so it might be very well clang miscompiling it.  I don't have
> clang to reproduce, so can you get me some more information,
> like
> 
> (gdb) p debug_tree (t)
> 
> at the point it barfs?  Can you disable optimization of clang?
> Thus build with CFLAGS="-g -O0" CXXFLAGS="-g -O0"?

Can't reproduce when building GCC with clang 3.3 like you specified above.


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

* [Bug c++/65017] valgrind error in  get_constraint_for_address_of
  2015-02-11 10:51 [Bug c++/65017] New: valgrind error in get_constraint_for_address_of dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2015-02-11 15:10 ` rguenth at gcc dot gnu.org
@ 2015-02-11 16:50 ` dcb314 at hotmail dot com
  2015-02-12  8:54 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: dcb314 at hotmail dot com @ 2015-02-11 16:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65017

--- Comment #6 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to Richard Biener from comment #5)
> Can't reproduce when building GCC with clang 3.3 like you specified above.

I removed clang from the configure of gcc, rebuilt gcc, tried again
and the problem went away !

A version of clang > 3.3 but <= 3.5 looks to be the culprit.


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

* [Bug c++/65017] valgrind error in  get_constraint_for_address_of
  2015-02-11 10:51 [Bug c++/65017] New: valgrind error in get_constraint_for_address_of dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2015-02-11 16:50 ` dcb314 at hotmail dot com
@ 2015-02-12  8:54 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-02-12  8:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65017

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |INVALID

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Thans for checking.


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

end of thread, other threads:[~2015-02-12  8:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-11 10:51 [Bug c++/65017] New: valgrind error in get_constraint_for_address_of dcb314 at hotmail dot com
2015-02-11 11:27 ` [Bug c++/65017] " rguenth at gcc dot gnu.org
2015-02-11 13:06 ` rguenth at gcc dot gnu.org
2015-02-11 13:24 ` dcb314 at hotmail dot com
2015-02-11 15:10 ` rguenth at gcc dot gnu.org
2015-02-11 16:50 ` dcb314 at hotmail dot com
2015-02-12  8:54 ` rguenth 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).