summaryrefslogtreecommitdiff
path: root/sysutils/cdrtools-devel/files/patch-inc_avoffset.c
blob: a2c0807ebfd00253af5c2fab134b7cda8d583829 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
###########################################################################
# This patch was contributed by Dimitry Andric.
###########################################################################
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License").  You may not use this file except in compliance
# with the License.
#
# See the file CDDL.Schily.txt in this distribution for details.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file CDDL.Schily.txt from this distribution.
###########################################################################
# The file CDDL.Schily.txt can be found in the original cdrtools tarball,
# which is mirrored at ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/.
###########################################################################

--- inc/avoffset.c.orig	2017-08-01 18:10:02 UTC
+++ inc/avoffset.c
@@ -50,7 +50,7 @@ main(ac, av)
 {
 	int		stdir;
 #ifdef	HAVE_SCANSTACK
-	register struct frame *fp;
+	volatile struct frame *fp;
 	register int	i = 0;
 	register int	o = 0;
 
@@ -105,6 +105,7 @@ main(ac, av)
 	 * does not affect the new code extended as well.
 	 */
 	while (i <= 1000 && fp->fr_savfp) {
+#if 0
 		/*
 		 * Workaround for the still buggy clang...
 		 * clang version 4.0.0 on ARM64 FreeBSD has become worse.
@@ -113,6 +114,7 @@ main(ac, av)
 		 * is never touched.
 		 */
 		write(-1, "", 0);
+#endif
 		if (fp->fr_savpc == 0)
 			break;