diff options
author | Marek Polacek <polacek@redhat.com> | 2014-01-23 19:18:49 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2014-01-23 19:18:49 +0000 |
commit | f04dda3093541436d9ebd3194761ff8199c5ac79 (patch) | |
tree | 9a9f80e007c4a37b50f0d20171385546900224a6 /gcc/lra-constraints.c | |
parent | 789eadcd54ffe62037461a4a22c2737ad9cbd01e (diff) | |
download | gcc-f04dda3093541436d9ebd3194761ff8199c5ac79.zip gcc-f04dda3093541436d9ebd3194761ff8199c5ac79.tar.gz gcc-f04dda3093541436d9ebd3194761ff8199c5ac79.tar.bz2 |
re PR c/58346 (ICE with SIGFPE at -O1 and above on x86_64-linux-gnu (affecting trunk, 4.8, 4.7, and 4.6))
PR c/58346
c-family/
* c-common.c (pointer_to_zero_sized_aggr_p): New function.
* c-common.h: Declare it.
cp/
* typeck.c (pointer_diff): Give an error on arithmetic on pointer to
an empty aggregate.
c/
* c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
an empty aggregate.
testsuite/
* c-c++-common/pr58346-1.c: New test.
* c-c++-common/pr58346-2.c: New test.
* c-c++-common/pr58346-3.c: New test.
From-SVN: r207004
Diffstat (limited to 'gcc/lra-constraints.c')
0 files changed, 0 insertions, 0 deletions