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: [GSoC][match-and-simplify] sanitize option checking


On Sun, Jul 27, 2014 at 10:45 PM, Prathamesh Kulkarni
<bilbotheelffriend@gmail.com> wrote:
> Added checks to see if either cmmand-line options is not repeated,
> and generates match-and-simplify code on both GENERIC and GIMPLE
> if both -generic and -gimple are specified.

I don't think we want to do this - in GCC earlier options are just overridden.
So passing multiple copies is fine.

Code-generation for both GIMPLE and GENERIC off one invocation of
genmatch doesn't work as you get the wrong macro predefined.

Not applied.

Richard.

> * genmatch.c (cmd_options): New struct.
>     (check_repeated_arg): New function.
>     (parse_cmd_arg): Likewise.
>     (main): Emit diagnostic if no command line options are given.
>                Add call to parse_cmd_arg.
>
> Thanks,
> Prathamesh


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