From 54284728e5916502a5bbd8e7f82e265d10e9c304 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 17 Jul 2003 09:30:07 +0200 Subject: [PATCH] re PR other/11466 ('-mlittle-endian' doesn't work with GCC3.2.3 under Solaris 2.x) PR other/11466 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian" and its restrictions for the SPARC64 port. Move the entry of "-mimpure-text" before that of "-mv8". From-SVN: r69497 --- gcc/ChangeLog | 7 +++++++ gcc/doc/invoke.texi | 37 +++++++++++++++++++------------------ 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7fcfdfc6591..0495a41c0b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2003-07-17 Eric Botcazou + + PR other/11466 + * doc/invoke.texi (SPARC Options): Document "-mlittle-endian" + and its restrictions for the SPARC64 port. + Move the entry of "-mimpure-text" before that of "-mv8". + 2003-07-17 Eric Botcazou Phil Edwards diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index f292dc3fa3b..1c8d3bbef53 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -350,7 +350,7 @@ in the following sections. -mapp-regs -mbroken-saverestore -mcypress @gol -mfaster-structs -mflat @gol -mfpu -mhard-float -mhard-quad-float @gol --mimpure-text -mlive-g0 -mno-app-regs @gol +-mimpure-text -mlittle-endian -mlive-g0 -mno-app-regs @gol -mno-faster-structs -mno-flat -mno-fpu @gol -mno-impure-text -mno-stack-bias -mno-unaligned-doubles @gol -msoft-float -msoft-quad-float -msparclite -mstack-bias @gol @@ -6022,22 +6022,6 @@ this to work. Generate output containing quad-word (long double) floating point instructions. -@item -mimpure-text -@opindex mimpure-text -@option{-mimpure-text}, used in addition to @option{-shared}, tells -the compiler to not pass @option{-z text} to the linker when linking a -shared object. Using this option, you can link position-dependent -code into a shared object. - -@option{-mimpure-text} suppresses the ``relocations remain against -allocatable but non-writable sections'' linker error message. -However, the necessary relocations will trigger copy-on-write, and the -shared object is not actually shared across processes. Instead of -using @option{-mimpure-text}, you should compile all source code with -@option{-fpic} or @option{-fPIC}. - -This option is only available on SunOS and Solaris. - @item -msoft-quad-float @opindex msoft-quad-float Generate output containing library calls for quad-word (long double) @@ -6091,6 +6075,22 @@ ABI@. Thus, it's intended only for use on targets where the developer acknowledges that their resulting code will not be directly in line with the rules of the ABI@. +@item -mimpure-text +@opindex mimpure-text +@option{-mimpure-text}, used in addition to @option{-shared}, tells +the compiler to not pass @option{-z text} to the linker when linking a +shared object. Using this option, you can link position-dependent +code into a shared object. + +@option{-mimpure-text} suppresses the ``relocations remain against +allocatable but non-writable sections'' linker error message. +However, the necessary relocations will trigger copy-on-write, and the +shared object is not actually shared across processes. Instead of +using @option{-mimpure-text}, you should compile all source code with +@option{-fpic} or @option{-fPIC}. + +This option is only available on SunOS and Solaris. + @item -mv8 @itemx -msparclite @opindex mv8 @@ -6199,7 +6199,8 @@ on SPARC V9 processors in 64-bit environments. @table @gcctabopt @item -mlittle-endian @opindex mlittle-endian -Generate code for a processor running in little-endian mode. +Generate code for a processor running in little-endian mode. It is only +available for a few configurations and most notably not on Solaris. @item -m32 @itemx -m64 -- 2.30.2