--- BasiliskII/src/uae_cpu/cpuopti.c 1999/10/03 14:16:26 1.1.1.1 +++ BasiliskII/src/uae_cpu/cpuopti.c 2012/03/30 01:25:46 1.3 @@ -5,6 +5,20 @@ * Based on work by Tauno Taipaleenmaki * * Copyright 1996 Bernd Schmidt + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include @@ -27,7 +41,7 @@ struct func { static void oops(void) { fprintf(stderr, "Don't know how to optimize this file.\n"); - abort(); + exit(1); } static char * match(struct line *l, const char *m) @@ -46,7 +60,7 @@ static int insn_references_reg (struct l { if (reg[0] != 'e') { fprintf(stderr, "Unknown register?!?\n"); - abort(); + exit(1); } if (strstr (l->data, reg) != 0) return 1; @@ -121,7 +135,7 @@ static void do_function(struct func *f) l3 = l3->prev; } if (l3 == l2) - abort(); + exit(1); for (l4 = l2; l4 != l3; l4 = l4->prev) { /* The register may not be referenced by any of the insns that we * move the popl past */