From c65908ef72667b8a5111111885f3d54eca21592d Mon Sep 17 00:00:00 2001 From: law Date: Sun, 22 Feb 1998 19:39:08 +0000 Subject: [PATCH] * expr.c (ffeexpr_token_arguments_): Make sure outer exprstack isn't null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18190 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/f/ChangeLog | 5 +++++ gcc/f/expr.c | 1 + gcc/f/news.texi | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 8ddfeb5..94031d8 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 20 12:45:53 1998 Craig Burley + + * expr.c (ffeexpr_token_arguments_): Make sure + outer exprstack isn't null. + Fri Feb 20 10:11:20 1998 Craig Burley * Make-lang.in (f77.install-info): Fix typo in script. diff --git a/gcc/f/expr.c b/gcc/f/expr.c index 4d618db..8dbab2f 100644 --- a/gcc/f/expr.c +++ b/gcc/f/expr.c @@ -18540,6 +18540,7 @@ ffeexpr_token_arguments_ (ffelexToken ft, ffebld expr, ffelexToken t) only if next token isn't the close-paren for REAL(me). */ if ((ffeexpr_stack_->previous != NULL) + && (ffeexpr_stack_->previous->exprstack != NULL) && (ffeexpr_stack_->previous->exprstack->type == FFEEXPR_exprtypeOPERAND_) && ((reduced = ffeexpr_stack_->previous->exprstack->u.operand) != NULL) && (ffebld_op (reduced) == FFEBLD_opSYMTER) diff --git a/gcc/f/news.texi b/gcc/f/news.texi index 3b9ece3..2853dfd 100644 --- a/gcc/f/news.texi +++ b/gcc/f/news.texi @@ -27,6 +27,10 @@ involve a combination of these elements. @heading In 0.5.22: @itemize @bullet @item +Fix a compiler crash on statements such as +@samp{PRINT *, (REAL(Z(I)),I=1,2)}, where +@samp{Z} is @code{DOUBLE COMPLEX}. + @item Improve diagnostic messages from @code{libf2c} so it is more likely that the printing of the @@ -47,6 +51,7 @@ is a constant. This provides a cleaner run-time diagnostic as provided by @code{libf2c} for statements like @samp{PRINT '(I1', 42}. +@item Fix @code{SIGNAL} intrinsic so it offers portable support for 64-bit systems (such as Digital Alphas running GNU/Linux). -- 2.7.4