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

--- Comment #9 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Mon Jun 18 23:31:53 2018
New Revision: 261719

URL: https://gcc.gnu.org/viewcvs?rev=261719&root=gcc&view=rev
Log:
PR c/82063 - issues with arguments enabled by -Wall

gcc/ChangeLog:

        PR c/82063
        * calls.c (alloc_max_size): Correct a logic error/typo.
        Treat excessive arguments as infinite.  Warn for invalid arguments.
        * doc/invoke.texi (-Walloc-size-larger-than): Update.

gcc/testsuite/ChangeLog:

        PR c/82063
        * gcc.dg/Walloc-size-larger-than-1.c: New test.
        * gcc.dg/Walloc-size-larger-than-10.c: New test.
        * gcc.dg/Walloc-size-larger-than-11.c: New test.
        * gcc.dg/Walloc-size-larger-than-12.c: New test.
        * gcc.dg/Walloc-size-larger-than-13.c: New test.
        * gcc.dg/Walloc-size-larger-than-14.c: New test.
        * gcc.dg/Walloc-size-larger-than-15.c: New test.
        * gcc.dg/Walloc-size-larger-than-16.c: New test.
        * gcc.dg/Walloc-size-larger-than-2.c: New test.
        * gcc.dg/Walloc-size-larger-than-3.c: New test.
        * gcc.dg/Walloc-size-larger-than-4.c: New test.
        * gcc.dg/Walloc-size-larger-than-5.c: New test.
        * gcc.dg/Walloc-size-larger-than-6.c: New test.
        * gcc.dg/Walloc-size-larger-than-7.c: New test.
        * gcc.dg/Walloc-size-larger-than-8.c: New test.
        * gcc.dg/Walloc-size-larger-than-9.c: New test.
        * gcc.dg/Walloc-size-larger-than.c: New test.


Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-1.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-10.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-11.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-12.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-13.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-14.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-15.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-16.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-2.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-3.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-4.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-5.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-6.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-7.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-8.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than-9.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/Walloc-size-larger-than.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/calls.c
    branches/gcc-8-branch/gcc/doc/invoke.texi
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Reply via email to