diff --git a/py/compile.c b/py/compile.c
index ea0bbc2d55763dc2a26443837ad3c2905eefc79c..42bac7d28acaea7d7472e46dd3eb97b59b11dd4a 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -1610,7 +1610,7 @@ void compile_try_except(compiler_t *comp, py_parse_node_t pn_body, int n_except,
 
         EMIT(pop_top);
 
-        int l3;
+        int l3 = 0;
         if (qstr_exception_local != 0) {
             l3 = comp_next_label(comp);
             EMIT(setup_finally, l3);
diff --git a/stm/Makefile b/stm/Makefile
index a5d0aad8a0cbb0152fc1ae52cfece204cb4638fc..8817717950989854af3217dcbdf310ec06f154fc 100644
--- a/stm/Makefile
+++ b/stm/Makefile
@@ -148,7 +148,7 @@ $(BUILD)/%.o: $(CC3KSRC)/%.c
 	$(CC) $(CFLAGS) -c -o $@ $<
 
 $(BUILD)/%.o: $(PYSRC)/%.s
-	$(AS) -c -o $@ $<
+	$(AS) -o $@ $<
 
 $(BUILD)/%.o: $(PYSRC)/%.c mpyconfig.h
 	$(CC) $(CFLAGS) -c -o $@ $<
diff --git a/unix/Makefile b/unix/Makefile
index 8c59b5b3f2f2395d75f8f9dd3dff36e23738cb91..76cc0a385523af8ffb63b3e33b2bc18597cc4876 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -50,7 +50,7 @@ $(BUILD)/%.o: %.c
 	$(CC) $(CFLAGS) -c -o $@ $<
 
 $(BUILD)/%.o: $(PYSRC)/%.s
-	$(AS) -c -o $@ $<
+	$(AS) -o $@ $<
 
 $(BUILD)/%.o: $(PYSRC)/%.c mpyconfig.h
 	$(CC) $(CFLAGS) -c -o $@ $<