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]
Other format: [Raw text]

Re: [rfc] exception handling in gimple


On 09/10/2009 03:49 AM, Michael Matz wrote:
+    case NON_LVALUE_EXPR:
      case PAREN_EXPR:
      CASE_CONVERT:
        if (treeop0 == error_mark_node)

Blaehh... reminds me that I once wanted to try to get rid of that tree
code, or at least that fold produces it when outside gimple form (the
latter probably is the reason that you need that hunk, as you build a
new gimple switch while expanding).

Actually, it's generated within expand_case itself. It folds (INDEX - 0) to NON_LVALUE_EXPR(INDEX).

I've no idea how this gets handled differently for
switch statements coming from gimple originally.


r~



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