PR middle-end/69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align
authorMartin Sebor <msebor@redhat.com>
Tue, 23 Feb 2016 18:09:37 +0000 (18:09 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 23 Feb 2016 18:09:37 +0000 (11:09 -0700)
commit35886f0bd4a8bcb1fe8b5f60d76fb94e5a0d4f9a
tree31229d1c30f7097460a4e6ee71688919aa7913cf
parent162cc7e3831881c28bf89902caf3287c377d4f8d
PR middle-end/69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align

PR middle-end/69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align
with small alignment
PR c/69759 - __builtin_alloca and __builtin_alloca_with_align undocumented

gcc/c-family/ChangeLog:
* c-common.c (check_builtin_function_arguments): Validate and reject
invalid arguments to __builtin_alloca_with_align.

gcc/ChangeLog:
* doc/extend.texi (Other Builtins): Document __builtin_alloca and
__builtin_alloca_with_align.

gcc/testsuite/ChangeLog:
* g++.dg/ext/builtin_alloca.C: New test.
* gcc.dg/builtins-68.c: New test.

From-SVN: r233640
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/builtin_alloca.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/builtins-68.c [new file with mode: 0644]