]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
gcc-4.3 build fixes.
authorJulian Seward <jseward@acm.org>
Fri, 16 Nov 2007 12:43:32 +0000 (12:43 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 16 Nov 2007 12:43:32 +0000 (12:43 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@1797

VEX/Makefile
VEX/priv/host-arm/isel.c

index 2e8d805222de49d83020b77da8628111b11055c8..e0f3085b011d71daf235b75ff1c735792bc1963a 100644 (file)
@@ -73,10 +73,10 @@ endif
 
 # Put -g -O2 after any flags we inherit from V.  -O2 vs -O
 # makes a significant difference, at least with gcc4.
-CCFLAGS = -Wall -Wmissing-prototypes -Wshadow -Winline \
+CCFLAGS = -Wall -Wmissing-prototypes -Wshadow \
                -Wpointer-arith -Wbad-function-cast -Wcast-qual \
                -Wcast-align -Wmissing-declarations \
-               $(EXTRA_CFLAGS) -g -O2
+               $(EXTRA_CFLAGS) -g -O2 -fstrict-aliasing
 
 #CC = icc
 #CCFLAGS = -g -Wall -wd981 -wd279 -wd1287 -wd869 -wd111 -wd188 -wd186
index e040974c0b3e01be19d5386bb1e133991937ead1..6659c9546621cbc3e9d23bd299af1cb8ac0da034 100644 (file)
@@ -129,7 +129,7 @@ static HReg newVRegI ( ISelEnv* env )
 static ARMAMode1*     iselIntExpr_AMode1_wrk ( ISelEnv* env, IRExpr* e );
 static ARMAMode1*     iselIntExpr_AMode1     ( ISelEnv* env, IRExpr* e );
 
-static ARMAMode2*     iselIntExpr_AMode2_wrk ( ISelEnv* env, IRExpr* e );
+/* static ARMAMode2*     iselIntExpr_AMode2_wrk ( ISelEnv* env, IRExpr* e ); */
 static ARMAMode2*     iselIntExpr_AMode2     ( ISelEnv* env, IRExpr* e );
 
 static ARMAMode3*     iselIntExpr_AMode3_wrk ( ISelEnv* env, IRExpr* e );
@@ -601,6 +601,7 @@ static ARMAMode1* iselIntExpr_AMode1_wrk ( ISelEnv* env, IRExpr* e )
 
 /* ---------------- Addressing Mode 2 ---------------- */
 
+__attribute__((unused))
 static Bool sane_AMode2 ( ARMAMode2* am )
 {
    switch (am->tag) {
@@ -609,12 +610,14 @@ static Bool sane_AMode2 ( ARMAMode2* am )
    }
 }
 
+/* Apparently unused
 static ARMAMode2* iselIntExpr_AMode2_wrk ( ISelEnv* env, IRExpr* e )
 {
     ARMAMode2* am = iselIntExpr_AMode2_wrk(env, e);
     vassert(sane_AMode2(am));
     return am;
 }
+*/
 
 /* DO NOT CALL THIS DIRECTLY ! */
 static ARMAMode2* iselIntExpr_AMode2 ( ISelEnv* env, IRExpr* e )