| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Development <pgsql-hackers(at)postgreSQL(dot)org> |
| Subject: | Re: [HACKERS] --enable-debug |
| Date: | 2000-01-26 01:05:11 |
| Message-ID: | 200001260105.UAA05685@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> Peter Eisentraut <peter_e(at)gmx(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hannu Krosing | 2000-01-26 01:08:27 | Re: Happy column adding (was RE: [HACKERS] Happycolumndropping) |
| Previous Message | Hannu Krosing | 2000-01-26 00:56:12 | Re: [HACKERS] Well, then you keep your darn columns |