mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Handle 8-byte value-check failures using a special fast-case fn (like
0,1,4 sized) rather than the generic one. Remove size 2 since that never seems to get used. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3545
This commit is contained in:
parent
59505fcb00
commit
c0967c9762
@ -55,8 +55,8 @@ extern Bool MC_(clo_avoid_strlen_errors);
|
||||
|
||||
/* Functions defined in mc_main.c */
|
||||
extern VGA_REGPARM(1) void MC_(helperc_complain_undef) ( HWord );
|
||||
extern void MC_(helperc_value_check8_fail) ( void );
|
||||
extern void MC_(helperc_value_check4_fail) ( void );
|
||||
extern void MC_(helperc_value_check2_fail) ( void );
|
||||
extern void MC_(helperc_value_check1_fail) ( void );
|
||||
extern void MC_(helperc_value_check0_fail) ( void );
|
||||
|
||||
|
||||
@ -1493,16 +1493,16 @@ void MC_(helperc_value_check1_fail) ( void )
|
||||
MC_(record_value_error) ( VG_(get_running_tid)(), 1 );
|
||||
}
|
||||
|
||||
//zz void MC_(helperc_value_check2_fail) ( void )
|
||||
//zz {
|
||||
//zz MC_(record_value_error) ( VG_(get_running_tid)(), 2 );
|
||||
//zz }
|
||||
|
||||
void MC_(helperc_value_check4_fail) ( void )
|
||||
{
|
||||
MC_(record_value_error) ( VG_(get_running_tid)(), 4 );
|
||||
}
|
||||
|
||||
void MC_(helperc_value_check8_fail) ( void )
|
||||
{
|
||||
MC_(record_value_error) ( VG_(get_running_tid)(), 8 );
|
||||
}
|
||||
|
||||
VGA_REGPARM(1) void MC_(helperc_complain_undef) ( HWord sz )
|
||||
{
|
||||
MC_(record_value_error) ( VG_(get_running_tid)(), (Int)sz );
|
||||
|
||||
@ -702,6 +702,13 @@ static void complainIfUndefined ( MCEnv* mce, IRAtom* atom )
|
||||
mkIRExprVec_0()
|
||||
);
|
||||
break;
|
||||
case 8:
|
||||
di = unsafeIRDirty_0_N( 0/*regparms*/,
|
||||
"MC_(helperc_value_check8_fail)",
|
||||
&MC_(helperc_value_check8_fail),
|
||||
mkIRExprVec_0()
|
||||
);
|
||||
break;
|
||||
default:
|
||||
di = unsafeIRDirty_0_N( 1/*regparms*/,
|
||||
"MC_(helperc_complain_undef)",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user