Re: [HACKERS] --enable-debug
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] --enable-debug |
Дата | |
Msg-id | 200001260105.UAA05685@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] --enable-debug (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [HACKERS] --enable-debug
|
Список | pgsql-hackers |
> Peter Eisentraut <peter_e@gmx.net> writes: > > It seems that for a debugging environment you should not only put a -g on > > the command line, but also a -Wall, and you most likely do not want to > > have any optimization flags there. If no one objects I would like to make > > this adjustment. (Perhaps the debug and cassert options should even be > > merged?) > > If you want --debug to imply --cassert, OK with me, but I will get upset > if you rearrange things in such a way that I can't have -O and -g and > --cassert. In other words --cassert should not imply turning off -O. > > Currently, I believe -Wall is turned on automatically if your compiler > is gcc --- at least it seems to work that way on my platform (maybe > it's in the hpux_gcc template?). Anyway I get a pretty good set of -W > options without doing anything special. It is real obvious that some > other developers do not run with the same options :-(, so I'd certainly > be glad to see more -W options turned on whenever the compiler is gcc, > --debug or no. I remember when we removed every warning gcc -Wall complained about. It fixed quite a number of problems, and pointed out coding errors in new patches. -- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: