-
Notifications
You must be signed in to change notification settings - Fork 0
/
906-Ada-build-fix-for-GCC-4.4-and-4.3-building-GCC-4.3.patch
92 lines (82 loc) · 2.47 KB
/
906-Ada-build-fix-for-GCC-4.4-and-4.3-building-GCC-4.3.patch
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
From d0f9065a80cf88d4dcd2330a478c97b4f22e6833 Mon Sep 17 00:00:00 2001
From: Tim Stahlhut <stahta01@gmail.com>
Date: Sun, 30 Oct 2022 07:18:36 -0400
Subject: Ada build fix for GCC-4.4 and GCC-4.3 building GCC-4.3
Fixes unreachable code errors.
This patch is to be used only to create an GCC Compiler with Ada;
then that compiler needs to be rebuilt without this patch.
---
gcc/ada/einfo.adb | 4 ----
gcc/ada/lib-xref.adb | 3 ---
gcc/ada/sem_ch3.adb | 1 -
gcc/ada/sem_elab.adb | 2 --
gcc/ada/sem_util.adb | 2 --
5 files changed, 12 deletions(-)
diff --git a/gcc/ada/einfo.adb b/gcc/ada/einfo.adb
index d8be3e75932..f7e45568408 100644
--- a/gcc/ada/einfo.adb
+++ b/gcc/ada/einfo.adb
@@ -5636,8 +5636,6 @@ package body Einfo is
S := Scope (S);
end if;
end loop;
-
- return S;
end Enclosing_Dynamic_Scope;
----------------------
@@ -6858,8 +6856,6 @@ package body Einfo is
end if;
end loop;
end if;
-
- raise Program_Error;
end Root_Type;
-----------------
diff --git a/gcc/ada/lib-xref.adb b/gcc/ada/lib-xref.adb
index 931049335e8..e012dfe8d10 100644
--- a/gcc/ada/lib-xref.adb
+++ b/gcc/ada/lib-xref.adb
@@ -305,9 +305,6 @@ package body Lib.Xref is
end if;
end loop;
- -- Parent (N) is assignment statement, check whether N is its name
-
- return Name (Parent (N)) = N;
end Is_On_LHS;
-- Start of processing for Generate_Reference
diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb
index 920b1494040..a4b29a92366 100644
--- a/gcc/ada/sem_ch3.adb
+++ b/gcc/ada/sem_ch3.adb
@@ -13879,7 +13879,6 @@ package body Sem_Ch3 is
Ancestor := Etype (Ancestor);
end loop;
- return True;
end;
end if;
end Is_Visible_Component;
diff --git a/gcc/ada/sem_elab.adb b/gcc/ada/sem_elab.adb
index e3bd6897a1c..cc414aab527 100644
--- a/gcc/ada/sem_elab.adb
+++ b/gcc/ada/sem_elab.adb
@@ -3091,8 +3091,6 @@ package body Sem_Elab is
Scop := Scope (Scop);
end if;
end loop;
-
- raise Program_Error;
end Within;
--------------------------
diff --git a/gcc/ada/sem_util.adb b/gcc/ada/sem_util.adb
index 344122a0df0..5311aea2cbd 100644
--- a/gcc/ada/sem_util.adb
+++ b/gcc/ada/sem_util.adb
@@ -5734,8 +5734,6 @@ package body Sem_Util is
T := Base_Type (Etyp);
end loop;
end if;
-
- raise Program_Error;
end Is_Descendent_Of;
--------------
--