From: Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
"abhay@linux.ibm.com" <abhay@linux.ibm.com>
Cc: Abhay Kandpal <Abhay.k@ibm.com>, "cel@linux.ibm.com" <cel@linux.ibm.com>
Subject: Re: [PATCH v1] PowerPC: Use -mcmodel=large for the compile command
Date: Tue, 28 Jul 2026 10:24:12 +0000 [thread overview]
Message-ID: <a4c047345ee2da6ff3977dd713c3d67b86d5606d.camel@de.ibm.com> (raw)
In-Reply-To: <20260728064909.1080844-1-abhay@linux.ibm.com>
Abhay Kandpal <abhay@linux.ibm.com> wrote:
>The cause is the code model used to compile the injected object.
>Commit 533f04079c7 ("[gdb] [rs6000] Add
>ppc64_linux_gcc_target_options method.") made ppc64 return an empty
>string from gdbarch_gcc_target_options, overriding the
>"-mcmodel=large" that default_gcc_target_options supplies for 64-bit
>targets, so GCC falls back to -mcmodel=medium.
I can see why large model is more appropriate for this type
of compilation. However, your patch just reverts the effect
of the above commit, without actually reverting it. (This
causes ppc64_linux_gcc_target_options to pretty much duplicate
default_gcc_target_options.) I think it would be preferable
to fully revert the commit instead.
Bye,
Ulrich
next prev parent reply other threads:[~2026-07-28 10:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 6:49 Abhay Kandpal
2026-07-28 10:24 ` Ulrich Weigand [this message]
2026-07-28 17:49 ` Abhay Kandpal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a4c047345ee2da6ff3977dd713c3d67b86d5606d.camel@de.ibm.com \
--to=ulrich.weigand@de.ibm.com \
--cc=Abhay.k@ibm.com \
--cc=abhay@linux.ibm.com \
--cc=cel@linux.ibm.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox