Commit c28aa982 by Rainer Orth Committed by Rainer Orth

sparc.opt (mimpure-text): Move ...

	* config/sparc/sparc.opt (mimpure-text): Move ...
	* config/sol2.opt: ... here.
	Correct description.
	* config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
	* doc/invoke.texi (Option Summary, SPARC Options): Move
	-mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
	(Option Summary, Solaris 2 Options): ... here.
	(Submodel Options, Solaris 2 Options): New menu entry.
	(SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
	(Solaris 2 Options): ... here.

From-SVN: r164757
parent 80920132
2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/sparc/sparc.opt (mimpure-text): Move ...
* config/sol2.opt: ... here.
Correct description.
* config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
* doc/invoke.texi (Option Summary, SPARC Options): Move
-mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
(Option Summary, Solaris 2 Options): ... here.
(Submodel Options, Solaris 2 Options): New menu entry.
(SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
(Solaris 2 Options): ... here.
2010-09-30 Michael Eager <eager@eagercon.com> 2010-09-30 Michael Eager <eager@eagercon.com>
* extend.texi (interrupt_handler): Add MicroBlaze to list. * extend.texi (interrupt_handler): Add MicroBlaze to list.
...@@ -653,6 +653,9 @@ case ${target} in ...@@ -653,6 +653,9 @@ case ${target} in
*-*-uclinux*) *-*-uclinux*)
use_gcc_stdint=wrap use_gcc_stdint=wrap
;; ;;
*-*-solaris2*)
extra_options="${extra_options} sol2.opt"
;;
*-*-vxworks*) *-*-vxworks*)
tmake_file=t-vxworks tmake_file=t-vxworks
xm_defines=POSIX xm_defines=POSIX
......
; Options for the Solaris 2 port of the compiler
;
; Copyright (C) 2010 Free Software Foundation, Inc.
;
; This file is part of GCC.
;
; GCC is free software; you can redistribute it and/or modify it under
; the terms of the GNU General Public License as published by the Free
; Software Foundation; either version 3, or (at your option) any later
; version.
;
; GCC is distributed in the hope that it will be useful, but WITHOUT
; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
; License for more details.
;
; You should have received a copy of the GNU General Public License
; along with GCC; see the file COPYING3. If not see
; <http://www.gnu.org/licenses/>.
mimpure-text
Target Report
Pass -z text to linker
...@@ -34,10 +34,6 @@ munaligned-doubles ...@@ -34,10 +34,6 @@ munaligned-doubles
Target Report Mask(UNALIGNED_DOUBLES) Target Report Mask(UNALIGNED_DOUBLES)
Assume possible double misalignment Assume possible double misalignment
mimpure-text
Target Report
Pass -assert pure-text to linker
mapp-regs mapp-regs
Target Report Mask(APP_REGS) Target Report Mask(APP_REGS)
Use ABI reserved registers Use ABI reserved registers
......
...@@ -848,6 +848,10 @@ See RS/6000 and PowerPC Options. ...@@ -848,6 +848,10 @@ See RS/6000 and PowerPC Options.
-madjust-unroll -mindexed-addressing -mgettrcost=@var{number} -mpt-fixed @gol -madjust-unroll -mindexed-addressing -mgettrcost=@var{number} -mpt-fixed @gol
-maccumulate-outgoing-args -minvalid-symbols} -maccumulate-outgoing-args -minvalid-symbols}
@emph{Solaris 2 Options}
@gccoptlist{-mimpure-text -mno-impure-text @gol
-threads -pthreads -pthread}
@emph{SPARC Options} @emph{SPARC Options}
@gccoptlist{-mcpu=@var{cpu-type} @gol @gccoptlist{-mcpu=@var{cpu-type} @gol
-mtune=@var{cpu-type} @gol -mtune=@var{cpu-type} @gol
...@@ -856,11 +860,10 @@ See RS/6000 and PowerPC Options. ...@@ -856,11 +860,10 @@ See RS/6000 and PowerPC Options.
-mfaster-structs -mno-faster-structs @gol -mfaster-structs -mno-faster-structs @gol
-mfpu -mno-fpu -mhard-float -msoft-float @gol -mfpu -mno-fpu -mhard-float -msoft-float @gol
-mhard-quad-float -msoft-quad-float @gol -mhard-quad-float -msoft-quad-float @gol
-mimpure-text -mno-impure-text -mlittle-endian @gol -mlittle-endian @gol
-mstack-bias -mno-stack-bias @gol -mstack-bias -mno-stack-bias @gol
-munaligned-doubles -mno-unaligned-doubles @gol -munaligned-doubles -mno-unaligned-doubles @gol
-mv8plus -mno-v8plus -mvis -mno-vis -mv8plus -mno-v8plus -mvis -mno-vis}
-threads -pthreads -pthread}
@emph{SPU Options} @emph{SPU Options}
@gccoptlist{-mwarn-reloc -merror-reloc @gol @gccoptlist{-mwarn-reloc -merror-reloc @gol
...@@ -9847,6 +9850,7 @@ platform. ...@@ -9847,6 +9850,7 @@ platform.
* S/390 and zSeries Options:: * S/390 and zSeries Options::
* Score Options:: * Score Options::
* SH Options:: * SH Options::
* Solaris 2 Options::
* SPARC Options:: * SPARC Options::
* SPU Options:: * SPU Options::
* System V Options:: * System V Options::
...@@ -16705,6 +16709,51 @@ It will then prevent cross-basic-block cse, hoisting and most scheduling ...@@ -16705,6 +16709,51 @@ It will then prevent cross-basic-block cse, hoisting and most scheduling
of symbol loads. The default is @option{-mno-invalid-symbols}. of symbol loads. The default is @option{-mno-invalid-symbols}.
@end table @end table
@node Solaris 2 Options
@subsection Solaris 2 Options
@cindex Solaris 2 options
These @samp{-m} options are supported on Solaris 2:
@table @gcctabopt
@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}.
@end table
These switches are supported in addition to the above on Solaris 2:
@table @gcctabopt
@item -threads
@opindex threads
Add support for multithreading using the Solaris threads library. This
option sets flags for both the preprocessor and linker. This option does
not affect the thread safety of object code produced by the compiler or
that of libraries supplied with it.
@item -pthreads
@opindex pthreads
Add support for multithreading using the POSIX threads library. This
option sets flags for both the preprocessor and linker. This option does
not affect the thread safety of object code produced by the compiler or
that of libraries supplied with it.
@item -pthread
@opindex pthread
This is a synonym for @option{-pthreads}.
@end table
@node SPARC Options @node SPARC Options
@subsection SPARC Options @subsection SPARC Options
@cindex SPARC options @cindex SPARC options
...@@ -16793,22 +16842,6 @@ ABI@. Thus, it's intended only for use on targets where the developer ...@@ -16793,22 +16842,6 @@ 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 acknowledges that their resulting code will not be directly in line with
the rules of the ABI@. 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 -mcpu=@var{cpu_type} @item -mcpu=@var{cpu_type}
@opindex mcpu @opindex mcpu
Set the instruction set, register set, and instruction scheduling parameters Set the instruction set, register set, and instruction scheduling parameters
...@@ -16957,28 +16990,6 @@ when making stack frame references. This is the default in 64-bit mode. ...@@ -16957,28 +16990,6 @@ when making stack frame references. This is the default in 64-bit mode.
Otherwise, assume no such offset is present. Otherwise, assume no such offset is present.
@end table @end table
These switches are supported in addition to the above on Solaris:
@table @gcctabopt
@item -threads
@opindex threads
Add support for multithreading using the Solaris threads library. This
option sets flags for both the preprocessor and linker. This option does
not affect the thread safety of object code produced by the compiler or
that of libraries supplied with it.
@item -pthreads
@opindex pthreads
Add support for multithreading using the POSIX threads library. This
option sets flags for both the preprocessor and linker. This option does
not affect the thread safety of object code produced by the compiler or
that of libraries supplied with it.
@item -pthread
@opindex pthread
This is a synonym for @option{-pthreads}.
@end table
@node SPU Options @node SPU Options
@subsection SPU Options @subsection SPU Options
@cindex SPU options @cindex SPU options
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment