Skip to content
Snippets Groups Projects
  • Andrew Pinski's avatar
    efe3da62
    ASAN: call initialize_sanitizer_builtins for hwasan [PR115205] · efe3da62
    Andrew Pinski authored
    
    Sometimes initialize_sanitizer_builtins is not called before emitting
    the asan builtins with hwasan. In the case of the bug report, there
    was a path with the fortran front-end where it was not called.
    So let's call it in asan_instrument before calling transform_statements
    and from hwasan_finish_file.
    
    Built and tested for aarch64-linux-gnu with no regressions.
    
    Changes since v1:
    * v2: Add call of asan_instrument to hwasan_finish_file also.
    
    gcc/ChangeLog:
    
    	PR sanitizer/115205
    	* asan.cc (asan_instrument): Call initialize_sanitizer_builtins
    	for hwasan.
    	(hwasan_finish_file): Likewise.
    
    Signed-off-by: default avatarAndrew Pinski <quic_apinski@quicinc.com>
    efe3da62
    History
    ASAN: call initialize_sanitizer_builtins for hwasan [PR115205]
    Andrew Pinski authored
    
    Sometimes initialize_sanitizer_builtins is not called before emitting
    the asan builtins with hwasan. In the case of the bug report, there
    was a path with the fortran front-end where it was not called.
    So let's call it in asan_instrument before calling transform_statements
    and from hwasan_finish_file.
    
    Built and tested for aarch64-linux-gnu with no regressions.
    
    Changes since v1:
    * v2: Add call of asan_instrument to hwasan_finish_file also.
    
    gcc/ChangeLog:
    
    	PR sanitizer/115205
    	* asan.cc (asan_instrument): Call initialize_sanitizer_builtins
    	for hwasan.
    	(hwasan_finish_file): Likewise.
    
    Signed-off-by: default avatarAndrew Pinski <quic_apinski@quicinc.com>