adapt a sparc64 patch; still not enough because it decides to segfault in
libgcc. found by landry@ in a bulk. fuck gcc.
This commit is contained in:
parent
fd14b138bb
commit
402ab6593a
@ -1,6 +1,7 @@
|
||||
# $OpenBSD: Makefile,v 1.15 2012/09/03 13:24:58 pascal Exp $
|
||||
# $OpenBSD: Makefile,v 1.16 2012/09/04 10:11:56 pascal Exp $
|
||||
|
||||
ONLY_FOR_ARCHS = amd64 i386 powerpc sparc sparc64
|
||||
BROKEN-sparc64 = ICE in libgcc
|
||||
|
||||
V = 4.7.1
|
||||
FULL_VERSION = $V
|
||||
|
@ -1,12 +1,12 @@
|
||||
$OpenBSD: patch-gcc_config_sparc_sparc_c,v 1.2 2012/07/01 18:56:45 pascal Exp $
|
||||
$OpenBSD: patch-gcc_config_sparc_sparc_c,v 1.3 2012/09/04 10:11:56 pascal Exp $
|
||||
--- gcc/config/sparc/sparc.c.orig Fri May 4 00:34:34 2012
|
||||
+++ gcc/config/sparc/sparc.c Wed Jun 20 14:39:12 2012
|
||||
+++ gcc/config/sparc/sparc.c Mon Sep 3 13:10:18 2012
|
||||
@@ -5048,6 +5048,9 @@ sparc_expand_prologue (void)
|
||||
if (crtl->uses_pic_offset_table)
|
||||
load_got_register ();
|
||||
|
||||
+ if (warn_stack_larger_than && actual_fsize > stack_larger_than_size)
|
||||
+ warning (OPT_Wstack_larger_than_, "stack usage is %d bytes", actual_fsize);
|
||||
+ if (warn_stack_larger_than && size > stack_larger_than_size)
|
||||
+ warning (OPT_Wstack_larger_than_, "stack usage is %d bytes", size);
|
||||
+
|
||||
/* Advertise that the data calculated just above are now valid. */
|
||||
sparc_prologue_data_valid_p = true;
|
||||
|
Loading…
Reference in New Issue
Block a user