diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-03 00:46:06 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-03-03 00:46:06 +0000 |
commit | a2b9a662bd8f52d2a131cf369dcbd37c5be6eb7a (patch) | |
tree | 89c4a2eac8c27b87bff6eb652865b74686befcd2 /gcc/coverage.c | |
parent | 8832296b8668d361081fe45a3d89482967f2483f (diff) | |
download | gcc-a2b9a662bd8f52d2a131cf369dcbd37c5be6eb7a.tar.gz |
PR middle-end/11767
* coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
* optabs.c (prepare_cmp_insn): Force trapping memories to registers
before the compare, if flag_non_call_exceptions.
* g++.dg/other/profile1.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78805 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/coverage.c')
-rw-r--r-- | gcc/coverage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/coverage.c b/gcc/coverage.c index 6d6f3b8b36f..d045d79358c 100644 --- a/gcc/coverage.c +++ b/gcc/coverage.c @@ -399,6 +399,7 @@ coverage_counter_ref (unsigned counter, unsigned no) ref = plus_constant (ctr_labels[counter], gcov_size / BITS_PER_UNIT * no); ref = gen_rtx_MEM (mode, ref); set_mem_alias_set (ref, new_alias_set ()); + MEM_NOTRAP_P (ref) = 1; return ref; } |