[Bug c/79471] New: valgrind error for gcc.c-torture/compile/limits-fnargs.c

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Sat Feb 11 21:20:00 GMT 2017


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

            Bug ID: 79471
           Summary: valgrind error for
                    gcc.c-torture/compile/limits-fnargs.c
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

I just built a valgrind version of gcc trunk and tried
out the gcc testsuite on it. 

For testcase gcc.c-torture/compile/limits-fnargs.c, I got

./gcc.c-torture/compile/limits-fnargs.c
==21687== Invalid write of size 8
==21687==    at 0x6F33B9: expand_call(tree_node*, rtx_def*, int) (calls.c:3266)
==21687==    by 0x7DFF36: expand_expr_real_1(tree_node*, rtx_def*,
machine_mode, expand_modifier, rtx_def**, bool) (expr.c:10785)
==21687==    by 0x703E54: expand_expr (expr.h:276)
==21687==    by 0x703E54: expand_call_stmt (cfgexpand.c:2658)

Admittedly an extreme case, but I think gcc shouldn't be doing
invalid writes.


More information about the Gcc-bugs mailing list