diff options
author | David Edelsohn <edelsohn@gnu.org> | 2005-11-11 17:59:54 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2005-11-11 12:59:54 -0500 |
commit | d35a40fca5e07a1b8399e1299110b97b960e7109 (patch) | |
tree | 579ca01ef316f3815821b5b5fc7a82d62fcb1aaa /gcc/varasm.c | |
parent | 51a641fdb2ae830bce646ad72ab9919a269fb9d3 (diff) | |
download | gcc-d35a40fca5e07a1b8399e1299110b97b960e7109.zip gcc-d35a40fca5e07a1b8399e1299110b97b960e7109.tar.gz gcc-d35a40fca5e07a1b8399e1299110b97b960e7109.tar.bz2 |
re PR c/24644 (gcc-4.1 compiled ppc64 kernels do not boot)
PR 24644
* common.opt (Wvolatile-register-var): New.
* varasm.c (make_decl_rtl): Only emit warning when option
specified. Clarify warning message.
* doc/invoke.texi (Wvolatile-register-var): Document new option.
* doc/md.texi (copysign): Document standard named pattern.
From-SVN: r106791
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r-- | gcc/varasm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c index ac511f6..ad4d060 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -955,8 +955,9 @@ make_decl_rtl (tree decl) error ("global register variable has initial value"); } if (TREE_THIS_VOLATILE (decl)) - warning (0, "volatile register variables don%'t " - "work as you might wish"); + warning (OPT_Wvolatile_register_var, + "optimization may eliminate reads and/or " + "writes to register variables"); /* If the user specified one of the eliminables registers here, e.g., FRAME_POINTER_REGNUM, we don't want to get this variable |