Subject: Backport r250271
2017-07-27 Martin Liska <mliska@suse.cz> Backport from mainline 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: r250608
This commit is contained in:
parent
4dad7c1d13
commit
01cee97570
|
@ -1,3 +1,12 @@
|
|||
2017-07-27 Martin Liska <mliska@suse.cz>
|
||||
|
||||
Backport from mainline
|
||||
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-27 Martin Liska <mliska@suse.cz>
|
||||
|
||||
Backport from mainline
|
||||
|
|
|
@ -1007,6 +1007,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…
Reference in New Issue