This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Remove use of -mminimal-toc from powerpc64*-linux builds


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]