public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] RISC-V: Document -mcmodel=large
@ 2023-12-20 18:08 Palmer Dabbelt
  2023-12-20 18:13 ` Jeff Law
  0 siblings, 1 reply; 4+ messages in thread
From: Palmer Dabbelt @ 2023-12-20 18:08 UTC (permalink / raw)
  To: gcc-patches; +Cc: Palmer Dabbelt

This slipped through the cracks.  Probably also NEWS-worthy.

gcc/ChangeLog:

	* doc/invoke.texi (RISC-V): Add -mcmodel=large.
---
 gcc/doc/invoke.texi | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index 5af978b0a67..d8b355627d9 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -1245,7 +1245,7 @@ See RS/6000 and PowerPC Options.
 -msave-restore  -mno-save-restore
 -mshorten-memrefs  -mno-shorten-memrefs
 -mstrict-align  -mno-strict-align
--mcmodel=medlow  -mcmodel=medany
+-mcmodel=medlow  -mcmodel=medany -mcmodel=large
 -mexplicit-relocs  -mno-explicit-relocs
 -mrelax  -mno-relax
 -mriscv-attribute  -mno-riscv-attribute
@@ -30158,6 +30158,11 @@ The code generated by the medium-any code model is position-independent, but is
 not guaranteed to function correctly when linked into position-independent
 executables or libraries.
 
+@opindex -mcmodel=large
+@item -mcmodel=large
+Generate code for a large code model, which has no restrictions on size or
+placement of symbols.
+
 @item -mexplicit-relocs
 @itemx -mno-exlicit-relocs
 Use or do not use assembler relocation operators when dealing with symbolic
-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] RISC-V: Document -mcmodel=large
  2023-12-20 18:08 [PATCH] RISC-V: Document -mcmodel=large Palmer Dabbelt
@ 2023-12-20 18:13 ` Jeff Law
  2023-12-20 18:23   ` Palmer Dabbelt
  2024-05-06 21:36   ` Jeff Law
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Law @ 2023-12-20 18:13 UTC (permalink / raw)
  To: gcc-patches



On 12/20/23 11:08, Palmer Dabbelt wrote:
> This slipped through the cracks.  Probably also NEWS-worthy.
> 
> gcc/ChangeLog:
> 
> 	* doc/invoke.texi (RISC-V): Add -mcmodel=large.
OK.

And yes, I think we're going to need to to a new/changes update for the 
port as a whole as part of the gcc-14 process.

jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] RISC-V: Document -mcmodel=large
  2023-12-20 18:13 ` Jeff Law
@ 2023-12-20 18:23   ` Palmer Dabbelt
  2024-05-06 21:36   ` Jeff Law
  1 sibling, 0 replies; 4+ messages in thread
From: Palmer Dabbelt @ 2023-12-20 18:23 UTC (permalink / raw)
  To: jeffreyalaw; +Cc: gcc-patches

On Wed, 20 Dec 2023 10:13:06 PST (-0800), jeffreyalaw@gmail.com wrote:
>
>
> On 12/20/23 11:08, Palmer Dabbelt wrote:
>> This slipped through the cracks.  Probably also NEWS-worthy.
>>
>> gcc/ChangeLog:
>>
>> 	* doc/invoke.texi (RISC-V): Add -mcmodel=large.
> OK.
>
> And yes, I think we're going to need to to a new/changes update for the
> port as a whole as part of the gcc-14 process.

Sent.  Looks like we had no NEWS for 14, so we'll need to deal with 
that.  If nobody else does I'll scrub the history, but I need to deal 
with binutils, glibc, and Linux first...

>
> jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] RISC-V: Document -mcmodel=large
  2023-12-20 18:13 ` Jeff Law
  2023-12-20 18:23   ` Palmer Dabbelt
@ 2024-05-06 21:36   ` Jeff Law
  1 sibling, 0 replies; 4+ messages in thread
From: Jeff Law @ 2024-05-06 21:36 UTC (permalink / raw)
  To: gcc-patches



On 12/20/23 11:13 AM, Jeff Law wrote:
> 
> 
> On 12/20/23 11:08, Palmer Dabbelt wrote:
>> This slipped through the cracks.  Probably also NEWS-worthy.
>>
>> gcc/ChangeLog:
>>
>>     * doc/invoke.texi (RISC-V): Add -mcmodel=large.
> OK.
> 
> And yes, I think we're going to need to to a new/changes update for the 
> port as a whole as part of the gcc-14 process.
This never got committed as far as I can tell.  So I pushed it.

Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-05-06 21:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-20 18:08 [PATCH] RISC-V: Document -mcmodel=large Palmer Dabbelt
2023-12-20 18:13 ` Jeff Law
2023-12-20 18:23   ` Palmer Dabbelt
2024-05-06 21:36   ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).