Do not allow -fgnu-tm w/ -fsanitize={kernel-,}address (PR sanitizer/81302).
2017-07-17 Martin Liska <mliska@suse.cz> PR sanitizer/81302 * opts.c (finish_options): Do not allow -fgnu-tm w/ -fsanitize={kernel-,}address. Say sorry. From-SVN: r250271
This commit is contained in:
parent
6ff3751980
commit
26c5b549cf
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2017-07-17 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR sanitizer/81302
|
||||
* opts.c (finish_options): Do not allow -fgnu-tm
|
||||
w/ -fsanitize={kernel-,}address. Say sorry.
|
||||
|
||||
2017-07-17 Bin Cheng <bin.cheng@arm.com>
|
||||
|
||||
PR target/81369
|
||||
|
|
|
@ -1005,6 +1005,13 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
|
|||
|
||||
opts->x_flag_stack_reuse = SR_NONE;
|
||||
}
|
||||
|
||||
if ((opts->x_flag_sanitize & SANITIZE_USER_ADDRESS) && opts->x_flag_tm)
|
||||
sorry ("transactional memory is not supported with %<-fsanitize=address%>");
|
||||
|
||||
if ((opts->x_flag_sanitize & SANITIZE_KERNEL_ADDRESS) && opts->x_flag_tm)
|
||||
sorry ("transactional memory is not supported with "
|
||||
"%<-fsanitize=kernel-address%>");
|
||||
}
|
||||
|
||||
#define LEFT_COLUMN 27
|
||||
|
|
Loading…
Add table
Reference in a new issue