From: Andreas Jaeger Date: Sun, 11 Aug 2002 09:47:47 +0000 (+0200) Subject: re PR target/7531 (-mcmodel not documented for x86-64) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7701995123ce7d11d9648a9a45f343edc3eed5c;p=gcc.git re PR target/7531 (-mcmodel not documented for x86-64) PR target/7531: * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel. From-SVN: r56198 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ed9a4452d0..296e960097d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-08-11 Andreas Jaeger + + PR target/7531: + * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel. + 2002-08-10 Ziemowit Laski * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace @@ -57,7 +62,7 @@ Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka (finish_struct): Likewise. * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl. (maybe_objc_comptypes): Rename to objc_comptypes. - (maybe_building_objc_message_expr): Rename to + (maybe_building_objc_message_expr): Rename to objc_message_selector. * c-lex.c (lex_charconst): Remove uses of clk_objective_c, replace with flag_objc as needed. @@ -66,7 +71,7 @@ Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka * c-parse.in (init_reswords): Likewise. * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl. (maybe_objc_comptypes): Rename to objc_comptypes. - (maybe_building_objc_message_expr): Rename to + (maybe_building_objc_message_expr): Rename to objc_message_selector. * c-typeck.c (comptypes): Call objc_comptypes instead of maybe_objc_comptypes, and/or objc_message_selector instead of @@ -78,7 +83,7 @@ Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka independently of those for other languages. * objc/objc-act.c (maybe_objc_comptypes): Delete. (maybe_objc_check_decl): Delete. - (maybe_building_objc_message_expr): Rename to + (maybe_building_objc_message_expr): Rename to objc_message_selector. * objc/objc-lang.c (objc_init_options): Use clk_c instead of clk_objective_c; set flag_objc flag. @@ -135,15 +140,15 @@ Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka 2002-08-08 Devang Patel - * objc/objc-act.c (build_selector_translation_table): Issue warning, - when -Wselector is used,if method for which selector is being + * objc/objc-act.c (build_selector_translation_table): Issue warning, + when -Wselector is used,if method for which selector is being created does not exist. - + 2002-08-08 Stephen Clarke * config/sh/sh.c (prepare_move_operands): Only call target_reg_operand if TARGET_SHMEDIA. - + 2002-08-08 Jakub Jelinek * config/rs6000/rs6000.h, config/rs6000/aix.h, @@ -190,7 +195,7 @@ Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka * objc/Make-lang.in (objc.mostlyclean): Remove coverage files. * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files. - + 2002-08-08 Neil Booth * c-opts.c (cpp_opts): New. @@ -513,7 +518,7 @@ Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name mangling. Adjust output format to make it more machine readable. * doc/gcov.texi: Document & clarify semantics. - + 2002-08-04 Joseph S. Myers * doc/include/gcc-common.texi (version-GCC): Increase to 3.3. @@ -540,10 +545,10 @@ Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka of TARGET_ALIGN_DOUBLE. 2002-08-04 Gabriel Dos Reis - + * diagnostic.c (inform): New function. * diagnostic.h (inform): Declare. - + 2002-08-03 David Edelsohn * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 6383cd20cb8..cef144d613c 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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} @@ -7720,6 +7721,32 @@ by the x86-64 ABI, it is a 128-byte area beyond the location of the 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