Small step in factoring out arch-specific code: replace
__attribute((regparm(n))) with REGPARM(n) everywhere. REGPARM() is defined in
vg_skin.h, but will eventually be defined separately for each arch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2601 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c
index 4a8256a..bfad60b 100644
--- a/memcheck/mc_main.c
+++ b/memcheck/mc_main.c
@@ -762,7 +762,7 @@
Under all other circumstances, it defers to the relevant _SLOWLY
function, which can handle all situations.
*/
-__attribute__ ((regparm(1)))
+REGPARM(1)
UInt MC_(helperc_LOADV4) ( Addr a )
{
# ifdef VG_DEBUG_MEMORY
@@ -787,7 +787,7 @@
# endif
}
-__attribute__ ((regparm(2)))
+REGPARM(2)
void MC_(helperc_STOREV4) ( Addr a, UInt vbytes )
{
# ifdef VG_DEBUG_MEMORY
@@ -812,7 +812,7 @@
# endif
}
-__attribute__ ((regparm(1)))
+REGPARM(1)
UInt MC_(helperc_LOADV2) ( Addr a )
{
# ifdef VG_DEBUG_MEMORY
@@ -835,7 +835,7 @@
# endif
}
-__attribute__ ((regparm(2)))
+REGPARM(2)
void MC_(helperc_STOREV2) ( Addr a, UInt vbytes )
{
# ifdef VG_DEBUG_MEMORY
@@ -856,7 +856,7 @@
# endif
}
-__attribute__ ((regparm(1)))
+REGPARM(1)
UInt MC_(helperc_LOADV1) ( Addr a )
{
# ifdef VG_DEBUG_MEMORY
@@ -879,7 +879,7 @@
# endif
}
-__attribute__ ((regparm(2)))
+REGPARM(2)
void MC_(helperc_STOREV1) ( Addr a, UInt vbytes )
{
# ifdef VG_DEBUG_MEMORY
@@ -1107,7 +1107,7 @@
FPU load and store checks, called from generated code.
------------------------------------------------------------------ */
-__attribute__ ((regparm(2)))
+REGPARM(2)
void MC_(fpu_read_check) ( Addr addr, Int size )
{
/* Ensure the read area is both addressible and valid (ie,
@@ -1199,7 +1199,7 @@
}
-__attribute__ ((regparm(2)))
+REGPARM(2)
void MC_(fpu_write_check) ( Addr addr, Int size )
{
/* Ensure the written area is addressible, and moan if otherwise.