Useless option parsing code in genautomata.c ?

2009-01-15 Thread ccg ijsj
hi, I am trying to output automata description by using -v flag , but it failed. The option parsing code seems have a little bug? It parse extra flags in initiate_automaton_gen, after init_md_reader_args. 9327 if (init_md_reader_args (argc, argv) != SUCCESS_EXIT_CODE) 9328return (FATAL_E

Re: Useless option parsing code in genautomata.c ?

2009-01-17 Thread ccg ijsj
OK, I got it. ^_^ I should specify these options through (automata_option options) in md. //I tried to use those options in command line like "genautomata -v foo.md", which was not supported Thanks very much. Best, Jim On 1/16/09, Ben Elliston wrote: >> Now I just set v_flag to 1 manually

About strict-aliasing warning

2009-02-13 Thread ccg ijsj
hi all, I wrote a simple testcase with some type prunned pointer and compiled it with -O2 option. I assumed that gcc would issue some warnings as told in its documents. But i am afraid that no warnings at all. I have to specify the -Wstrict-aliasing or -Wall option manually. Is this a docu

Re: About strict-aliasing warning

2009-02-14 Thread ccg ijsj
OK, thank you very much. I interpreted it wrongly. And I agree with Ross's suggestion like "This option has no effect unless -fstrict-aliasing is active". One more question is why we won't make it "sufficient condition"? I think many newbies like me would not know about "strict-ali