Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Commit 8d4d2d7

Browse files
authored
Merge pull request #659 from ibuclaw/gdc9
Update to gcc-9-20180429
2 parents 7485d25 + 03302b2 commit 8d4d2d7

File tree

7 files changed

+69
-64
lines changed

7 files changed

+69
-64
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ Work is currently under way to merge GDC into a future release of GCC. Assistanc
1414

1515
The master branch of this project closely follows [GCC development branch][gcc-devel], which if you intend to use GDC for production applications, is likely not the version of GCC you want to build against. For versions of GDC compatible with GCC releases, checkout one of the following branches:
1616

17-
* [GCC 4.9.x](https://github.com/D-Programming-GDC/GDC/tree/gdc-4.9)
1817
* [GCC 5.x](https://github.com/D-Programming-GDC/GDC/tree/gdc-5)
1918
* [GCC 6.x](https://github.com/D-Programming-GDC/GDC/tree/gdc-6)
2019
* [GCC 7.x](https://github.com/D-Programming-GDC/GDC/tree/gdc-7)
20+
* [GCC 8.x](https://github.com/D-Programming-GDC/GDC/tree/gdc-8)
2121

2222
[home]: http://gdcproject.org
2323
[wiki]: http://wiki.dlang.org/GDC

gcc.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
gcc-8-20180422
1+
gcc-9-20180429
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ relevant documentation about the GDC front end.
2121
else if (! strcmp (language_string, "GNU F77")
2222
--- a/gcc/config/rs6000/rs6000.c
2323
+++ b/gcc/config/rs6000/rs6000.c
24-
@@ -29149,11 +29149,12 @@ rs6000_output_function_epilogue (FILE *f
24+
@@ -29228,11 +29228,12 @@ rs6000_output_function_epilogue (FILE *f
2525
use language_string.
2626
C is 0. Fortran is 1. Pascal is 2. Ada is 3. C++ is 9.
2727
Java is 13. Objective-C is 14. Objective-C++ isn't assigned
@@ -82,7 +82,7 @@ relevant documentation about the GDC front end.
8282
default language, but is built by default because @option{--enable-lto} is
8383
enabled by default. The other languages are default languages. If
8484
@code{all} is specified, then all available languages are built. An
85-
@@ -2746,7 +2746,7 @@ on a simulator as described at @uref{htt
85+
@@ -2747,7 +2747,7 @@ on a simulator as described at @uref{htt
8686

8787
In order to run sets of tests selectively, there are targets
8888
@samp{make check-gcc} and language specific @samp{make check-c},
@@ -93,7 +93,7 @@ relevant documentation about the GDC front end.
9393
in the @file{gcc} subdirectory of the object directory. You can also
9494
--- a/gcc/doc/invoke.texi
9595
+++ b/gcc/doc/invoke.texi
96-
@@ -1407,6 +1407,15 @@ Go source code.
96+
@@ -1413,6 +1413,15 @@ Go source code.
9797
@item @var{file}.brig
9898
BRIG files (binary representation of HSAIL).
9999

@@ -109,7 +109,7 @@ relevant documentation about the GDC front end.
109109
@item @var{file}.ads
110110
Ada source code file that contains a library unit declaration (a
111111
declaration of a package, subprogram, or generic, or a generic
112-
@@ -1453,6 +1462,7 @@ objective-c objective-c-header objecti
112+
@@ -1459,6 +1468,7 @@ objective-c objective-c-header objecti
113113
objective-c++ objective-c++-header objective-c++-cpp-output
114114
assembler assembler-with-cpp
115115
ada
@@ -147,7 +147,7 @@ relevant documentation about the GDC front end.
147147
@xref{Top, GNAT Reference Manual, About This Guide, gnat_rm,
148148
--- a/gcc/dwarf2out.c
149149
+++ b/gcc/dwarf2out.c
150-
@@ -5464,6 +5464,16 @@ is_ada (void)
150+
@@ -5469,6 +5469,16 @@ is_ada (void)
151151
return lang == DW_LANG_Ada95 || lang == DW_LANG_Ada83;
152152
}
153153

@@ -164,7 +164,7 @@ relevant documentation about the GDC front end.
164164
/* Remove the specified attribute if present. Return TRUE if removal
165165
was successful. */
166166

167-
@@ -24391,6 +24401,8 @@ gen_compile_unit_die (const char *filena
167+
@@ -24411,6 +24421,8 @@ gen_compile_unit_die (const char *filena
168168
language = DW_LANG_ObjC;
169169
else if (strcmp (language_string, "GNU Objective-C++") == 0)
170170
language = DW_LANG_ObjC_plus_plus;
@@ -173,7 +173,7 @@ relevant documentation about the GDC front end.
173173
else if (dwarf_version >= 5 || !dwarf_strict)
174174
{
175175
if (strcmp (language_string, "GNU Go") == 0)
176-
@@ -25994,7 +26006,7 @@ declare_in_namespace (tree thing, dw_die
176+
@@ -26014,7 +26026,7 @@ declare_in_namespace (tree thing, dw_die
177177

178178
if (ns_context != context_die)
179179
{
@@ -182,7 +182,7 @@ relevant documentation about the GDC front end.
182182
return ns_context;
183183
if (DECL_P (thing))
184184
gen_decl_die (thing, NULL, NULL, ns_context);
185-
@@ -26017,7 +26029,7 @@ gen_namespace_die (tree decl, dw_die_ref
185+
@@ -26037,7 +26049,7 @@ gen_namespace_die (tree decl, dw_die_ref
186186
{
187187
/* Output a real namespace or module. */
188188
context_die = setup_namespace_context (decl, comp_unit_die ());
@@ -191,7 +191,7 @@ relevant documentation about the GDC front end.
191191
? DW_TAG_module : DW_TAG_namespace,
192192
context_die, decl);
193193
/* For Fortran modules defined in different CU don't add src coords. */
194-
@@ -26089,7 +26101,7 @@ gen_decl_die (tree decl, tree origin, st
194+
@@ -26109,7 +26121,7 @@ gen_decl_die (tree decl, tree origin, st
195195
break;
196196

197197
case CONST_DECL:
@@ -200,7 +200,7 @@ relevant documentation about the GDC front end.
200200
{
201201
/* The individual enumerators of an enum type get output when we output
202202
the Dwarf representation of the relevant enum type itself. */
203-
@@ -26686,7 +26698,7 @@ dwarf2out_decl (tree decl)
203+
@@ -26706,7 +26718,7 @@ dwarf2out_decl (tree decl)
204204
case CONST_DECL:
205205
if (debug_info_level <= DINFO_LEVEL_TERSE)
206206
return;
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ The following OS versions are implemented:
220220
tm_defines=
221221
xm_defines=
222222
# Set this to force installation and use of collect2.
223-
@@ -303,12 +314,14 @@ aarch64*-*-*)
223+
@@ -304,12 +315,14 @@ aarch64*-*-*)
224224
extra_headers="arm_fp16.h arm_neon.h arm_acle.h"
225225
c_target_objs="aarch64-c.o"
226226
cxx_target_objs="aarch64-c.o"
@@ -235,55 +235,55 @@ The following OS versions are implemented:
235235
extra_options="${extra_options} g.opt"
236236
;;
237237
am33_2.0-*-linux*)
238-
@@ -328,6 +341,7 @@ arm*-*-*)
238+
@@ -329,6 +342,7 @@ arm*-*-*)
239239
target_type_format_char='%'
240240
c_target_objs="arm-c.o"
241241
cxx_target_objs="arm-c.o"
242242
+ d_target_objs="arm-d.o"
243243
extra_options="${extra_options} arm/arm-tables.opt"
244244
target_gtfiles="\$(srcdir)/config/arm/arm-builtins.c"
245245
;;
246-
@@ -360,6 +374,7 @@ i[34567]86-*-*)
246+
@@ -361,6 +375,7 @@ i[34567]86-*-*)
247247
cpu_type=i386
248248
c_target_objs="i386-c.o"
249249
cxx_target_objs="i386-c.o"
250250
+ d_target_objs="i386-d.o"
251251
extra_objs="x86-tune-sched.o x86-tune-sched-bd.o x86-tune-sched-atom.o x86-tune-sched-core.o"
252252
extra_options="${extra_options} fused-madd.opt"
253253
extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
254-
@@ -389,6 +404,7 @@ x86_64-*-*)
254+
@@ -390,6 +405,7 @@ x86_64-*-*)
255255
cpu_type=i386
256256
c_target_objs="i386-c.o"
257257
cxx_target_objs="i386-c.o"
258258
+ d_target_objs="i386-d.o"
259259
extra_options="${extra_options} fused-madd.opt"
260260
extra_objs="x86-tune-sched.o x86-tune-sched-bd.o x86-tune-sched-atom.o x86-tune-sched-core.o"
261261
extra_headers="cpuid.h mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h
262-
@@ -438,6 +454,7 @@ microblaze*-*-*)
262+
@@ -439,6 +455,7 @@ microblaze*-*-*)
263263
;;
264264
mips*-*-*)
265265
cpu_type=mips
266266
+ d_target_objs="mips-d.o"
267267
extra_headers="loongson.h msa.h"
268268
extra_objs="frame-header-opt.o"
269269
extra_options="${extra_options} g.opt fused-madd.opt mips/mips-tables.opt"
270-
@@ -493,6 +510,7 @@ sparc*-*-*)
270+
@@ -494,6 +511,7 @@ sparc*-*-*)
271271
cpu_type=sparc
272272
c_target_objs="sparc-c.o"
273273
cxx_target_objs="sparc-c.o"
274274
+ d_target_objs="sparc-d.o"
275275
extra_headers="visintrin.h"
276276
;;
277277
spu*-*-*)
278-
@@ -500,6 +518,7 @@ spu*-*-*)
278+
@@ -501,6 +519,7 @@ spu*-*-*)
279279
;;
280280
s390*-*-*)
281281
cpu_type=s390
282282
+ d_target_objs="s390-d.o"
283283
extra_options="${extra_options} fused-madd.opt"
284284
extra_headers="s390intrin.h htmintrin.h htmxlintrin.h vecintrin.h"
285285
;;
286-
@@ -529,10 +548,13 @@ tilepro*-*-*)
286+
@@ -530,10 +549,13 @@ tilepro*-*-*)
287287
esac
288288

289289
tm_file=${cpu_type}/${cpu_type}.h
@@ -297,7 +297,7 @@ The following OS versions are implemented:
297297
extra_modes=
298298
if test -f ${srcdir}/config/${cpu_type}/${cpu_type}-modes.def
299299
then
300-
@@ -801,8 +823,10 @@ case ${target} in
300+
@@ -802,8 +824,10 @@ case ${target} in
301301
esac
302302
c_target_objs="${c_target_objs} glibc-c.o"
303303
cxx_target_objs="${cxx_target_objs} glibc-c.o"
@@ -308,7 +308,7 @@ The following OS versions are implemented:
308308
;;
309309
*-*-netbsd*)
310310
tm_p_file="${tm_p_file} netbsd-protos.h"
311-
@@ -3172,6 +3196,10 @@ if [ "$common_out_file" = "" ]; then
311+
@@ -3183,6 +3207,10 @@ if [ "$common_out_file" = "" ]; then
312312
fi
313313
fi
314314

@@ -319,7 +319,7 @@ The following OS versions are implemented:
319319
# Support for --with-cpu and related options (and a few unrelated options,
320320
# too).
321321
case ${with_cpu} in
322-
@@ -4689,6 +4717,7 @@ case ${target} in
322+
@@ -4734,6 +4762,7 @@ case ${target} in
323323
out_file="${cpu_type}/${cpu_type}.c"
324324
c_target_objs="${c_target_objs} ${cpu_type}-c.o"
325325
cxx_target_objs="${cxx_target_objs} ${cpu_type}-c.o"
@@ -778,7 +778,7 @@ The following OS versions are implemented:
778778
extern void i386_pe_declare_function_type (FILE *, const char *, int);
779779
--- a/gcc/config/i386/i386.h
780780
+++ b/gcc/config/i386/i386.h
781-
@@ -702,6 +702,9 @@ extern const char *host_detect_local_cpu
781+
@@ -705,6 +705,9 @@ extern const char *host_detect_local_cpu
782782
/* Target Pragmas. */
783783
#define REGISTER_TARGET_PRAGMAS() ix86_register_pragmas ()
784784

@@ -1208,7 +1208,7 @@ The following OS versions are implemented:
12081208
+}
12091209
--- a/gcc/config/rs6000/rs6000-protos.h
12101210
+++ b/gcc/config/rs6000/rs6000-protos.h
1211-
@@ -232,6 +232,9 @@ extern void rs6000_target_modify_macros
1211+
@@ -233,6 +233,9 @@ extern void rs6000_target_modify_macros
12121212
extern void (*rs6000_target_modify_macros_ptr) (bool, HOST_WIDE_INT,
12131213
HOST_WIDE_INT);
12141214

File renamed without changes.

0 commit comments

Comments
 (0)