Module Name: src
Committed By: christos
Date: Fri Nov 1 18:12:49 UTC 2013
Modified Files:
src/external/gpl3/gcc/dist/gcc: unwind-dw2.c
Log Message:
make the code compilable with gcc-4.8.1; this loop has an array overflow,
but it is only used for sparc register windows; ifdef it sparc for now,
it's the easiest fix.
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/gpl3/gcc/dist/gcc/unwind-dw2.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gcc/dist/gcc/unwind-dw2.c
diff -u src/external/gpl3/gcc/dist/gcc/unwind-dw2.c:1.1.1.1 src/external/gpl3/gcc/dist/gcc/unwind-dw2.c:1.2
--- src/external/gpl3/gcc/dist/gcc/unwind-dw2.c:1.1.1.1 Mon Jun 20 21:19:54 2011
+++ src/external/gpl3/gcc/dist/gcc/unwind-dw2.c Fri Nov 1 14:12:49 2013
@@ -1076,12 +1076,14 @@ execute_cfa_program (const unsigned char
break;
case DW_CFA_GNU_window_save:
+#ifdef __sparc__
/* ??? Hardcoded for SPARC register window configuration. */
for (reg = 16; reg < 32; ++reg)
{
fs->regs.reg[reg].how = REG_SAVED_OFFSET;
fs->regs.reg[reg].loc.offset = (reg - 16) * sizeof (void *);
}
+#endif
break;
case DW_CFA_GNU_args_size: