Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/gcc make the code compilable with gcc...
details: https://anonhg.NetBSD.org/src/rev/5729bf53d36c
branches: trunk
changeset: 791046:5729bf53d36c
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 01 18:12:49 2013 +0000
description:
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.
diffstat:
external/gpl3/gcc/dist/gcc/unwind-dw2.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (18 lines):
diff -r fceb8f5f874e -r 5729bf53d36c external/gpl3/gcc/dist/gcc/unwind-dw2.c
--- a/external/gpl3/gcc/dist/gcc/unwind-dw2.c Fri Nov 01 18:11:49 2013 +0000
+++ b/external/gpl3/gcc/dist/gcc/unwind-dw2.c Fri Nov 01 18:12:49 2013 +0000
@@ -1076,12 +1076,14 @@
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:
Home |
Main Index |
Thread Index |
Old Index