diff options
| author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-27 20:47:14 +0000 |
|---|---|---|
| committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-27 20:47:14 +0000 |
| commit | 3ac12e63c4e0f7551dbf4427519ec3b30e73f7c3 (patch) | |
| tree | 2b3d14269d5c5a94deec0e880de6e0fc394c5e66 | |
| parent | e09c9f17db0aa3d76789e20750128355dae1e135 (diff) | |
| download | ppe42-gcc-3ac12e63c4e0f7551dbf4427519ec3b30e73f7c3.tar.gz ppe42-gcc-3ac12e63c4e0f7551dbf4427519ec3b30e73f7c3.zip | |
2004-06-27 Andrew Pinski <pinskia@physics.uc.edu>
PR c/14963
* c-decl.c (start_decl): Check for null types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83744 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/c-decl.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1fe1b439e31..8ea4cd76853 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-06-27 Andrew Pinski <pinskia@physics.uc.edu> + + PR c/14963 + * c-decl.c (start_decl): Check for null types. + 2004-06-27 David Edelsohn <edelsohn@gnu.org> * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 4591ec95d7a..7a68adbd0ed 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -2715,7 +2715,7 @@ start_decl (tree declarator, tree declspecs, int initialized, tree attributes) for (; args; args = TREE_CHAIN (args)) { tree type = TREE_TYPE (args); - if (INTEGRAL_TYPE_P (type) + if (type && INTEGRAL_TYPE_P (type) && TYPE_PRECISION (type) < TYPE_PRECISION (integer_type_node)) DECL_ARG_TYPE (args) = integer_type_node; } |

