egcs/gcc/stmt.c Expand expr even when -fsyntax-only

craig@jcb-sc.com craig@jcb-sc.com
Mon Feb 22 08:52:00 GMT 1999


I've just committed the following patch, per approval by Jeff Law.
It's the rest of the patch I proposed earlier.

        tq vm, (burley)


1999-02-22  Craig Burley  <craig@jcb-sc.com>

	Decrease spurious warnings from -fsyntax-only:
	* stmt.c (expand_expr_stmt): Expand expr even when -fsyntax-only.

*** g77-e/gcc/stmt.c.~1~	Mon Feb 15 20:43:56 1999
--- g77-e/gcc/stmt.c	Thu Feb 18 14:46:01 1999
*************** expand_expr_stmt (exp)
*** 1693,1703 ****
  
    last_expr_type = TREE_TYPE (exp);
!   if (flag_syntax_only && ! expr_stmts_for_value)
!     last_expr_value = 0;
!   else
!     last_expr_value = expand_expr (exp,
! 				   (expr_stmts_for_value
! 				    ? NULL_RTX : const0_rtx),
! 				   VOIDmode, 0);
  
    /* If all we do is reference a volatile value in memory,
--- 1693,1700 ----
  
    last_expr_type = TREE_TYPE (exp);
!   last_expr_value = expand_expr (exp,
! 				 (expr_stmts_for_value
! 				  ? NULL_RTX : const0_rtx),
! 				 VOIDmode, 0);
  
    /* If all we do is reference a volatile value in memory,


More information about the Gcc-patches mailing list