From fcee9591b1a94679deab06a8c3790dd29ada1b87 Mon Sep 17 00:00:00 2001 From: jeffman Date: Sat, 15 Apr 2017 12:46:34 -0400 Subject: [PATCH] Turning off all inlining and constant propagation for now Can always turn these back on again later, it's just easier to debug with them off --- compiled/Amalgamator/Amalgamator/Program.cs | 2 ++ compiled/vwf.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/compiled/Amalgamator/Amalgamator/Program.cs b/compiled/Amalgamator/Amalgamator/Program.cs index 285eb8b..a5f1917 100644 --- a/compiled/Amalgamator/Amalgamator/Program.cs +++ b/compiled/Amalgamator/Amalgamator/Program.cs @@ -211,6 +211,8 @@ namespace Amalgamator "-o", objectName, "-c", "-O3", + "-fno-ipa-cp", + "-fno-inline", fileName, "-march=armv4t", "-mtune=arm7tdmi", diff --git a/compiled/vwf.c b/compiled/vwf.c index 4317788..3fc5422 100644 --- a/compiled/vwf.c +++ b/compiled/vwf.c @@ -1,7 +1,7 @@ #include "window.h" #include "vwf.h" -int __attribute__((noinline)) get_tile_number(int x, int y) +int get_tile_number(int x, int y) { x--; y--; @@ -25,7 +25,7 @@ byte reduce_bit_depth(int row, int foreground) return lower | (upper << 4); } -byte __attribute__ ((noinline)) print_character(byte chr, byte x, byte y, byte font, byte foreground) +byte print_character(byte chr, byte x, byte y, byte font, byte foreground) { int tileWidth = m2_font_widths[font]; int tileHeight = m2_font_heights[font];