This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Remove use of -mminimal-toc from powerpc64*-linux builds
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: bergner at vnet dot ibm dot com (Peter Bergner)
- Cc: gdb-patches at sourceware dot org, amodra at gmail dot com (Alan Modra)
- Date: Tue, 7 Mar 2017 09:14:15 +0100 (CET)
- Subject: Re: [PATCH] Remove use of -mminimal-toc from powerpc64*-linux builds
- Authentication-results: sourceware.org; auth=none
Peter Bergner wrote:
> This is caused by a since fixed gcc bug when using -mminimal-toc.
> The -mminimal-toc option is only used with the small code model,
> which is all the powerpc64-linux used to have, but with Alan's
> long ago patch that added -mcmodel={small,medium,large} and medium
> code model being the default, we don't need to use -mminimal-toc
> anymore.
>
> The following patch replaces -mminimal-toc with -mcmodel=medium.
> This allows trunk to build again, but also catches people using
> ancient gcc's and leaves them a comment in the source on how to
> work around their build problem.
>
> Ok for trunk?
Given that GDB now requires a C++11 compiler to build anyway,
and as far as I can see, all versions of GCC that support C++11
already support (and default to) the medium memory model, can
we simply remove the MH_CFLAGS setting instead?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU/Linux compilers and toolchain
Ulrich.Weigand@de.ibm.com