diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-03 12:17:59 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-03 12:17:59 +0000 |
commit | 73556f5f6c5d835df3baa9979de74da7bd85cd05 (patch) | |
tree | ac76e75c45976914468f05d9d01c6dab44ff831c /gcc/lto | |
parent | 009b254c18c50184aadbc41673222104cec47838 (diff) | |
download | gcc-73556f5f6c5d835df3baa9979de74da7bd85cd05.tar.gz |
2011-01-03 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 168414
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@168419 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto')
-rw-r--r-- | gcc/lto/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lto/lto-lang.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 1b15d919e8c..319a47a17a1 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,8 @@ +2010-12-22 Nathan Froyd <froydnj@codesourcery.com> + + * lto-lang.c (handle_nonnull_attribute, handle_sentinel_attribute): + Use prototype_p. + 2010-12-06 Richard Guenther <rguenther@suse.de> PR lto/46796 diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c index de51eb08340..968073ba4ef 100644 --- a/gcc/lto/lto-lang.c +++ b/gcc/lto/lto-lang.c @@ -313,7 +313,7 @@ handle_nonnull_attribute (tree *node, tree ARG_UNUSED (name), will have the correct types when we actually check them later. */ if (!args) { - gcc_assert (TYPE_ARG_TYPES (type)); + gcc_assert (prototype_p (type)); return NULL_TREE; } |