C++ User's Guide

-xsafe=mem

SPARC: Allows no memory-based traps to occur.

This option grants permission to use the speculative load instruction on V9 machines.

Interactions

This option is only effective if used with -xO5 optimization when -xarch=v8plus, v8plusa, v9, or v9a is specified.

Warnings

You should use this option only if you can safely assert that no memory-based traps occur in your program. For most programs, this assertion is appropriate and can be safely made. For a program that explicitly forces memory-based traps to handle exceptional conditions, this assertion is not safe.