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: [patch] Fix tree checking for SWITCH_STMT vs. SWITCH_EXPR (anda few others)


Steven Bosscher wrote:
Hi,

While playing with a patch for PR18133 I noticed we were trying
to take the SWITCH_COND of a GOTO_EXPR.  Uhm, right.

The fix is a bit more involved than I had expected at first.  The
accessor macros of SWITCH_EXPR are overloaded by the C and C++
front ends for SWITCH_STMT.  So I had to give them each their own
set of accessor macros.

I also noticed a few other missing tree checks.

Bootstrapped and tested on x86_64-suse-linux-gnu. OK for mainline?

OK.


--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


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