wok-current view xorg-server/stuff/xorg-gcc6.patch @ rev 25601
use gcc49-lib-base for openldap-dev
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Sep 01 12:04:33 2023 +0000 (16 months ago) |
parents | |
children |
line source
1 From 21b896939c5bb242f3aacc37baf12379e43254b6 Mon Sep 17 00:00:00 2001
2 From: Egbert Eich <eich@freedesktop.org>
3 Date: Tue, 3 Mar 2015 16:27:05 +0100
4 Subject: symbols: Fix sdksyms.sh to cope with gcc5
6 Gcc5 adds additional lines stating line numbers before and
7 after __attribute__() which need to be skipped.
9 Signed-off-by: Egbert Eich <eich@freedesktop.org>
10 Tested-by: Daniel Stone <daniels@collabora.com>
11 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
12 ---
13 hw/xfree86/sdksyms.sh | 14 +++++++++++++-
14 1 file changed, 13 insertions(+), 1 deletion(-)
16 diff --git a/hw/xfree86/sdksyms.sh b/hw/xfree86/sdksyms.sh
17 index 2305073a0..05ac41096 100755
18 --- a/hw/xfree86/sdksyms.sh
19 +++ b/hw/xfree86/sdksyms.sh
20 @@ -350,13 +350,25 @@ BEGIN {
21 if (sdk) {
22 n = 3;
24 + # skip line numbers GCC 5 adds before __attribute__
25 + while ($n == "" || $0 ~ /^# [0-9]+ "/) {
26 + getline;
27 + n = 1;
28 + }
29 +
30 # skip attribute, if any
31 while ($n ~ /^(__attribute__|__global)/ ||
32 # skip modifiers, if any
33 $n ~ /^\*?(unsigned|const|volatile|struct|_X_EXPORT)$/ ||
34 # skip pointer
35 - $n ~ /^[a-zA-Z0-9_]*\*$/)
36 + $n ~ /^[a-zA-Z0-9_]*\*$/) {
37 n++;
38 + # skip line numbers GCC 5 adds after __attribute__
39 + while ($n == "" || $0 ~ /^# [0-9]+ "/) {
40 + getline;
41 + n = 1;
42 + }
43 + }
45 # type specifier may not be set, as in
46 # extern _X_EXPORT unsigned name(...)
47 --
48 cgit v1.2.1