This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: PR/7531: Update documentation to mention -mcmodel for x86-64


Jakub Jelinek <jakub@redhat.com> writes:

> On Thu, Aug 08, 2002 at 09:37:14AM +0200, Andreas Jaeger wrote:
>> +@item -mcmodel=large
>> +@opindex mcmodel=large
>> +Generate code for the medium model: This model makes no assumptions
> 			 ^^^^^^ guess this should be large...

It should be.  Fixed now - and tested the patch also with running make
info.

Ok to commit for mainline and 3.2.1 now?
Andreas

2002-08-08  Andreas Jaeger  <aj@suse.de>

	PR target/7531:
	* doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.

============================================================
Index: gcc/doc/invoke.texi
--- gcc/doc/invoke.texi	7 Aug 2002 02:57:53 -0000	1.168
+++ gcc/doc/invoke.texi	8 Aug 2002 07:43:05 -0000
@@ -492,6 +492,7 @@ in the following sections.
 -mpush-args  -maccumulate-outgoing-args  -m128bit-long-double @gol
 -m96bit-long-double  -mregparm=@var{num}  -momit-leaf-frame-pointer @gol
 -mno-red-zone@gol
+-mcmodel=@var{code-model} @gol
 -m32 -m64}
 
 @emph{HPPA Options}
@@ -7714,6 +7715,32 @@ by the x86-64 ABI, it is a 128-byte area
 stack pointer that will not be modified by signal or interrupt handlers
 and therefore can be used for temporary data without adjusting the stack
 pointer.  The flag @option{-mno-red-zone} disables this red zone.
+
+@item -mcmodel=small
+@opindex mcmodel=small
+Generate code for the small code model: the program and its symbols must
+be linked in the lower 2 GB of the address space.  Pointers are 64 bits.
+Programs can be statically or dynamically linked.  This is the default
+code model.
+
+@item -mcmodel=kernel
+@opindex mcmodel=kernel
+Generate code for the kernel code model.  The kernel runs in the
+negative 2 GB of the address space.
+This model has to be used for Linux kernel code.
+
+@item -mcmodel=medium
+@opindex mcmodel=medium
+Generate code for the medium model: The program is linked in the lower 2
+GB of the address space but symbols can be located anywhere in the
+address space.  Programs can be statically or dynamically linked, but
+building of shared libraries are not supported with the medium model.
+
+@item -mcmodel=large
+@opindex mcmodel=large
+Generate code for the large model: This model makes no assumptions
+about addresses and sizes of sections.  Currently GCC does not implement
+this model.
 @end table
 
 @node HPPA Options

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


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