This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -ftree-check for review
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Nic Volanschi" <nic dot volanschi at free dot fr>
- Cc: tromey at redhat dot com, gcc-patches at gcc dot gnu dot org, "Sebastian Pop" <sebastian dot pop at inria dot fr>
- Date: Wed, 9 May 2007 13:29:36 -0700
- Subject: Re: -ftree-check for review
- References: <200704281544.05708.nic.volanschi@free.fr> <m31whwwjuz.fsf@fleche.redhat.com> <200705092139.31110.nic.volanschi@free.fr>
On 5/9/07, Nic Volanschi <nic.volanschi@free.fr> wrote:
gcc --tree-check="%_ = fopen(%_, "rw")" *.c
Except this won't match:
fopen(XXXX, &"rw"[0])
Or:
fopen(XXXX, &"11\0rw"[3])
While the first is more likely (I think the C++ front-end produces
that), the second can happen if people are smart (or doing something
crazy).
Thanks,
Andrew Pinski