[LinuxBIOS] romcc / GCC4 fix.

Jonathan McDowell noodles at earth.li
Wed Aug 3 17:08:29 CEST 2005


I've found that since Debian upgraded the default GCC to 4 romcc doesn't
compile any more. The attached trivial patch fixes this. I don't see how
it could break anything, but let me know if you can see any issues with
it.

J.

-- 
If I want to hear the pitter patter of little feet, I'll put shoes on
my cats.
-------------- next part --------------
diff -ruN LinuxBIOSv2.01/util/romcc/romcc.c LinuxBIOSv2.02/util/romcc/romcc.c
--- LinuxBIOSv2.01/util/romcc/romcc.c	2005-08-03 15:13:50.376453000 +0100
+++ LinuxBIOSv2.02/util/romcc/romcc.c	2005-08-03 15:59:44.360566500 +0100
@@ -1301,7 +1301,10 @@
 	struct compile_state *state, struct triple *ins);
 static struct triple *flatten(
 	struct compile_state *state, struct triple *first, struct triple *ptr);
-
+static void print_dominators(struct compile_state *state,
+	FILE *fp, struct basic_blocks *bb);
+static void print_dominance_frontiers(struct compile_state *state,
+	FILE *fp, struct basic_blocks *bb);
 
 
 
@@ -15293,8 +15296,6 @@
 }
 static void print_blocks(struct compile_state *state, const char *func, FILE *fp)
 {
-	static void print_dominators(struct compile_state *state, FILE *fp, struct basic_blocks *bb);
-	static void print_dominance_frontiers(struct compile_state *state, FILE *fp, struct basic_blocks *bb);
 	if (state->compiler->debug & DEBUG_BASIC_BLOCKS) {
 		fprintf(fp, "After %s\n", func);
 		romcc_print_blocks(state, fp);


More information about the coreboot mailing list