This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch for enable-checking failure egcs-19980715




Hi,

egcs-19980715 fails to bootstrap with enable-checking enabled

This is because safe_from_p() temporarily marks any visited SAVE_EXPR
tree nodes as ERROR_MARK tree nodes to prevent combinational explosion.

Here's a patch which allows egcs-19980715 to complete "make bootstrap"
on x86-linux.

The patch replaces the use of ERROR_MARK tree node to mark a
SAVE_EXPR tree node visited node with a new tree node
SAVE_EXPR_MARKED defined in tree.def


 

Ch

PATCH~1.DIF

angeLog entries

 * gcc/tree.def: Define new tree node SAVE_EXPR_MARKED.

 * gcc/expr.c (safe_from_p): Use new tree node SAVE_EXPR_MARKED
 to mark SAVE_EXPR nodes visited.

With this change It would be possible to eliminate save_expr_rewritten[]   
at the
expense of another tree walk to change any SAVE_EXPR_MARKED
nodes back into SAVE_EXPR nodes.


Graham





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]