Re: some compile errors fo gdb-7.0.1

Joel Brobecker
2010-03-01T06:51:26Z

> one more small patch for AIX in config/mh-ppc-aix in case $CC includes
> spaces. for some reason in older gdb version we needed CC='gcc
> -isystem /usr/include' shows that quoting problem. will test if this
> still is needed (read: what's the real problem and a better fix, iff
> still needed at alll).

Your patch looks reasonable to me, but it is not relevant to GDB
specifically. You need to send it to gcc-patches.

> Index: mh-ppc-aix
> ===================================================================
> RCS file: /cvs/src/src/config/mh-ppc-aix,v
> retrieving revision 1.3
> diff -u -r1.3 mh-ppc-aix
> --- mh-ppc-aix 16 Aug 2009 12:49:48 -0000 1.3
> +++ mh-ppc-aix 23 Feb 2010 16:31:34 -0000
> @@ -5,4 +5,4 @@
> # don't do it any more.
> BOOT_ADAFLAGS = -gnatapg
> BOOT_LDFLAGS = -Wl,-bbigtoc
> -LDFLAGS = `case $(CC) in *gcc*) echo -Wl,-bbigtoc ;; esac;`
> +LDFLAGS = `case "$(CC)" in *gcc*) echo -Wl,-bbigtoc ;; esac;`

--
Joel