-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
6161 lines (5255 loc) · 256 KB
/
ChangeLog
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2024-08-18 Bruno Haible <[email protected]>
trampoline: Try harder to find a temp file location on Linux, OpenBSD.
Reported by Simon Dales <[email protected]> on 2018-02-26.
* trampoline/trampoline.c: Include <sys/statfs.h>, <sys/statvfs.h>,
<mntent.h> or <sys/mount.h>.
(is_usable_mount, is_usable_mntent, local_rwx_tmp_dir): New functions.
(for_mmap_init) [EXECUTABLE_VIA_MMAP_SHARED_POSIX]: Use
local_rwx_tmp_dir.
* callback/trampoline_r/trampoline.c: Likewise.
2024-08-18 Bruno Haible <[email protected]>
trampoline: Use anonymous memory also on NetBSD.
* m4/codeexec.m4 (FFCALL_CODEEXEC): Add a test that may define
HAVE_MMAP_SHARED_NETBSD_CAN_EXEC.
* trampoline/trampoline.c (EXECUTABLE_VIA_MMAP_SHARED_NETBSD): New
macro.
(alloc_trampoline): Add alternative code for
EXECUTABLE_VIA_MMAP_SHARED_NETBSD.
* callback/trampoline_r/trampoline.c: Likewise.
* NEWS: Mention the improvement.
2024-08-18 Bruno Haible <[email protected]>
trampoline: More reliable autoconfiguration on Linux, FreeBSD, NetBSD.
* m4/codeexec.m4 (FFCALL_CODEEXEC): On Linux, FreeBSD, NetBSD, make the
results of HAVE_MPROTECT_AFTER_MALLOC_CAN_EXEC and
HAVE_MPROTECT_AFTER_MMAP_CAN_EXEC only dependent on the OS, independent
of configurable security policies.
2024-08-17 Bruno Haible <[email protected]>
trampoline: Work around failing mmap call on macOS 14,
and use memfd_create on Linux and FreeBSD.
Reported by Lorenzo Daneo <[email protected]> at
<https://lists.gnu.org/archive/html/libffcall/2024-08/msg00007.html>.
* m4/codeexec.m4 (FFCALL_CODEEXEC): Rename HAVE_MMAP_SHARED_CAN_EXEC to
HAVE_MMAP_SHARED_POSIX_CAN_EXEC.
Add a test that may define HAVE_MMAP_SHARED_MACOS_CAN_EXEC.
Add a test that may define HAVE_MMAP_SHARED_MEMFD_CAN_EXEC.
* trampoline/trampoline.c: Test HAVE_MMAP_SHARED_POSIX_CAN_EXEC instead
of HAVE_MMAP_SHARED_CAN_EXEC.
(EXECUTABLE_VIA_MMAP_SHARED_POSIX): Renamed from
EXECUTABLE_VIA_MMAP_FILE_SHARED.
(EXECUTABLE_VIA_MMAP_SHARED_MACOS, EXECUTABLE_VIA_MMAP_SHARED_MEMFD):
New macros.
(mach_vm_remap) [EXECUTABLE_VIA_MMAP_SHARED_MACOS]: New declaration.
(for_mmap_init): Add an alternative implementation for
EXECUTABLE_VIA_MMAP_SHARED_MEMFD.
(alloc_trampoline): Add alternative code for
EXECUTABLE_VIA_MMAP_SHARED_MACOS.
* callback/trampoline_r/trampoline.c: Likewise.
* NEWS: Mention the improvements.
2024-07-12 Bruno Haible <[email protected]>
Switch to autoconf 2.72, automake 1.17.
* configure.ac: Remove AC_PROG_GCC_TRADITIONAL invocation.
* autogen.sh: Update comments.
2024-04-04 Bruno Haible <[email protected]>
Fix macro file 'serial' numbers for 'aclocal --install'.
* m4/endianness.m4: Make 'serial' effective.
2023-09-18 Bruno Haible <[email protected]>
Fix shared library support on Android.
* libtool-patches/libtool-android.diff: New file, from
<https://savannah.gnu.org/patch/index.php?10393>.
* libtool-patches/README: Mention it.
* Makefile.maint (libtool-imported-files): Apply it.
2023-08-30 Bruno Haible <[email protected]>
Recognize the *-*-windows* config triplets introduced on 2023-06-26.
* m4/codeexec.m4 (FFCALL_CODEEXEC): Treat windows* as equivalent to
mingw*.
2023-06-29 Bruno Haible <[email protected]>
Update the installation instructions for Windows.
* INSTALL.windows: Add a note about MSYS2.
2023-05-21 Bruno Haible <[email protected]>
Support creating shared libraries on Hurd/x86_64.
* libtool-patches/libtool-hurd-64.diff: New file, from
https://lists.gnu.org/archive/html/bug-hurd/2023-05/msg00086.html.
* libtool-patches/README: Mention it.
* Makefile.maint (libtool-imported-files): Apply it.
2023-02-26 Bruno Haible <[email protected]>
Modernize handling of m4 macro dirs.
Suggested by Sébastien Villemot <[email protected]>.
* configure.ac (AC_CONFIG_MACRO_DIRS): Specify the m4 macro dirs here.
* Makefile.maint (aclocal.m4): ... not here.
* autogen.sh: Update comments.
2023-02-09 Bruno Haible <[email protected]>
Fix compilation error with ISO C 23 compliant compilers.
Note: The parameter list (...) was introduced in C23, for compatibility
with C++. See ISO C 23 § 6.7.6.(1) definition of parameter-type-list and
<https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2975.pdf>.
* trampoline/trampoline.h (trampoline_function_t): For ISO C23, use the
same syntax as for C++.
* callback/trampoline_r/trampoline_r.h (__TR_function): Likewise.
* callback/trampoline_r/test1.c (function): Likewise.
* callback/trampoline_r/test2.c (function): Likewise.
* callback/callback.h (callback_t): Likewise.
2022-07-18 Bruno Haible <[email protected]>
Make autopull.sh more suited for continuous integration.
* autopull.sh: Support option --one-time.
2022-07-18 Bruno Haible <[email protected]>
Move gnulib-tool invocation back from autopull.sh to autogen.sh.
* autogen.sh: Revert last change regarding gnulib. Improve comments.
* autopull.sh: Only call 'gitsub.sh pull' and fetch libtool.
2022-07-17 Bruno Haible <[email protected]>
Split autogen.sh into autopull.sh and autogen.sh.
* autopull.sh: New file, based on autogen.sh.
* autogen.sh: Remove code that was moved to autopull.sh. Remove
--skip-gnulib option.
* Makefile.in (SOURCE_FILES): Add README-hacking, autogen.sh.
* README-hacking: Mention autopull.sh.
2022-05-22 Bruno Haible <[email protected]>
Add GNU Project notice.
* JOIN-GNU: New file. Inspired by a suggestion from José E. Marchesi
on the gnu-prog-discuss mailing list.
* README: Refer to it.
* Makefile.in (SOURCE_FILES): Add it.
2022-05-15 Bruno Haible <[email protected]>
Switch to libtool 2.4.7.
* autogen.sh (LIBTOOL_VERSION): Set to 2.4.7.
* libtool-patches/libtool-midnightbsd-fix.diff: Remove file.
* libtool-patches/README: Don't mention it.
* Makefile.maint (libtool-imported-files): Don't apply it.
2022-05-08 Bruno Haible <[email protected]>
loongarch: Use the now-released GCC 12.
* cross-tools/cross-build.sh: Fix typo in comment.
(func_build_zstd): New function.
(func_build_gcc): For GCC versions ≥ 12, build also zstd.
* cross-tools/patches/gcc-12.1.0.patch: New file.
* cross-tools/cross.conf (loongarch64): Use GCC 12.1.0.
* avcall/Makefile.devel (avcall-loongarch64-linux.s): Force the use of
GCC 12.1.0.
* vacall/Makefile.devel (vacall-loongarch64-linux.s): Likewise.
* callback/vacall_r/Makefile.devel (vacall-loongarch64-linux.s):
Likewise.
* trampoline/Makefile.devel (proto-loongarch64.s): Likewise.
* callback/trampoline_r/Makefile.devel (proto-loongarch64.s): Likewise.
* trampoline/proto-loongarch64.s: Regenerated.
* callback/trampoline_r/proto-loongarch64.s: Regenerated.
2022-05-08 Bruno Haible <[email protected]>
riscv32: Add support for Linux/riscv32 with PIE-enabled GCC.
* vacall/Makefile.devel (vacall-riscv32-ilp32d-linux-pic.s): New target.
(vacall-riscv32-ilp32d-macro.S): Include code for the PIC and the
non-PIC case.
* vacall/Makefile.in (SOURCE_FILES): Add
vacall-riscv32-ilp32d-linux-pic.s.
2022-05-08 Bruno Haible <[email protected]>
riscv64: Add support for Linux/riscv64 with PIE-enabled GCC.
Reported by Raymond Wong <[email protected]> at
<https://savannah.gnu.org/bugs/?62422>.
* vacall/Makefile.devel (vacall-riscv64-lp64d-linux-pic.s): New target.
(vacall-riscv64-lp64d-macro.S): Include code for the PIC and the non-PIC
case.
* vacall/Makefile.in (SOURCE_FILES): Add
vacall-riscv64-lp64d-linux-pic.s.
2022-02-12 Bruno Haible <[email protected]>
loongarch: Fix gcc installation.
* cross-tools/cross.conf (loongarch64): Change gcc version to match what
it actually reports.
2022-02-12 Bruno Haible <[email protected]>
Fix cross-tools build.
* cross-tools/cross-build.sh (func_build_gcc): Set LD_LIBRARY_PATH, so
that libisl.so.15 gets found during installation.
2022-02-12 Bruno Haible <[email protected]>
loongarch: Allow for continuous integration.
* cross-tools/cross-build.sh (func_build_gcc): Download fork tarball
from alpha.gnu.org. Adjust installation completeness test.
* cross-tools/cross.conf (loongarch64): Use binutils 2.38.
2022-01-16 Bruno Haible <[email protected]>
loongarch: Add support for loongarch64 ABI.
* cross-tools/cross-build.sh (func_build_binutils): Add support for
newer binutils snapshots.
(func_build_gcc): Add support for GCC 10 and newer.
* cross-tools/cross.conf: Add configuration for loongarch64 cross tools.
* porting-tools/abis/call-used-registers.txt: Add info about
loongarch64.
* porting-tools/abis/reg-struct-return.txt: Likewise.
* porting-tools/abis/stack-frame.txt: Likewise. Some more tweaks.
* porting-tools/execstack/voidfunc.c: Add command for loongarch64.
* porting-tools/execstack/voidfunc-loongarch64.o: New generated file.
* porting-tools/execstack/main.c (voidfunc): Define also for loongarch.
* porting-tools/execstack/README: Add info about loongarch64.
* ffcall-abi.h: Add support for loongarch64-lp64.
* common/asm-loongarch.sh: New file.
* Makefile.in (SOURCE_FILES): Add it.
* avcall/avcall.h (__AV_STRUCT_RETURN, __AV_REGISTER_STRUCT_RETURN): Add
code for __loongarch64__.
* avcall/avcall-alist.h (__av_alist): Likewise.
* avcall/avcall-internal.h: Add code for __loongarch64__, especially
__av_start1, __av_reg_struct_return, __av_start_struct4, __av_word,
__av_long, __av_ulong, __av_ptr, __av_longlong, __av_ulonglong,
_av_float, _av_double, __av_struct.
* avcall/avcall-loongarch64.c: New file, based on
avcall/avcall-riscv64.c.
* avcall/Makefile.devel (avcall-loongarch64-linux.s,
avcall-loongarch64-macro.S): New targets.
* avcall/Makefile.in (avcall-loongarch64.lo, avcall-loongarch64.s): New
targets.
(clean): Remove avcall-loongarch64.s.
(SOURCE_FILES): Add avcall-loongarch64.c, avcall-loongarch64-linux.s,
avcall-loongarch64-macro.S.
* vacall/vacall.h (__VA_STRUCT_RETURN, __VA_REGISTER_STRUCT_RETURN): Add
code for __loongarch64__.
* vacall/vacall-internal.h: Add code for __loongarch64__, especially
__va_alist, __va_reg_struct_return, __va_start_struct2,
__va_arg_leftadjusted, __va_arg_adjusted, _va_arg_longlong,
_va_arg_ulonglong, __va_align_double, _va_arg_float, _va_arg_double,
__va_arg_struct, _va_return_longlong.
* vacall/vacall-loongarch64.c: New file, based on
vacall/vacall-riscv64.c.
* vacall/Makefile.devel (vacall-loongarch64-linux.s,
vacall-loongarch64-macro.S): New targets.
* vacall/Makefile.in (vacall-loongarch64.@OBJEXT@,
vacall-loongarch64.s): New targets.
(clean): Remove vacall-loongarch64.s.
(SOURCE_FILES): Add vacall-loongarch64.c, vacall-loongarch64-linux.s,
vacall-loongarch64-macro.S.
* callback/vacall_r/vacall_r.h (__VA_STRUCT_RETURN,
__VA_REGISTER_STRUCT_RETURN): Add code for __loongarch64__.
* callback/vacall_r/Makefile.devel (vacall-loongarch64-linux.s,
vacall-loongarch64-macro.S): New targets.
* callback/vacall_r/Makefile.in (vacall-loongarch64.lo,
vacall-loongarch64.s): New targets.
(clean): Remove vacall-loongarch64.s.
(SOURCE_FILES): Add vacall-loongarch64-linux.s,
vacall-loongarch64-macro.S.
* trampoline/Makefile.devel (proto-loongarch64.s, tramp-loongarch64.o):
New targets.
* trampoline/proto-loongarch64.s: New generated file.
* trampoline/tramp-loongarch64.s: New file.
* trampoline/tramp-loongarch64.o: New generated file.
* trampoline/trampoline.c: Implement for __loongarch64__.
* callback/trampoline_r/Makefile.devel (proto-loongarch64.s,
tramp-loongarch64.o): New targets.
* callback/trampoline_r/proto64.c: Add code for __loongarch64__.
* callback/trampoline_r/proto-loongarch64.s: New generated file.
* callback/trampoline_r/tramp-loongarch64.s: New file.
* callback/trampoline_r/tramp-loongarch64.o: New generated file.
* callback/trampoline_r/trampoline.c: Implement for __loongarch64__.
* callback/trampoline_r/test1.c: Add support for __loongarch64__.
* PLATFORMS, */PLATFORMS: List the 64-bit LoongArch ABI.
* NEWS: Mention the new port.
2022-01-16 Bruno Haible <[email protected]>
Simplify.
* callback/vacall_r/Makefile.in (vacall-alpha.s, vacall-powerpc.s,
vacall-s390.lo, vacall-s390x.s, vacall-riscv32-ilp32d.s,
vacall-riscv64-lp64d.s): Don't use -I options during preprocessing.
2021-06-26 Bruno Haible <[email protected]>
x86_64: Create a read-only .eh_frame section on all platforms.
Reported by Thomas Klausner <[email protected]> at
<https://savannah.gnu.org/bugs/?60815>.
* common/asm-x86_64.h (EH_FRAME_SECTION): Use flags "a" (instead of
"aw") on all platforms.
2021-06-13 Bruno Haible <[email protected]>
maint: Don't require an internet connection for running autogen.sh.
* libtool-patches: New directory.
* Makefile.maint (libtool-imported-files): Don't call wget. Take the
patches from libtool-patches/ instead.
2021-06-13 Bruno Haible <[email protected]>
Prepare for 2.4 release.
* VERSION: Set to 2.4.
2021-06-13 Bruno Haible <[email protected]>
Bump shared library version numbers.
* Makefile.in (LIBFFCALL_VERSION_INFO): Bump to 1:0:1.
* avcall/Makefile.in (LIBAVCALL_VERSION_INFO): Bump to 2:0:1.
* callback/Makefile.in (LIBCALLBACK_VERSION_INFO): Bump to 1:4:0.
2021-06-13 Bruno Haible <[email protected]>
Port to Solaris 11/SPARC 32-bit.
* avcall/avcall-sparc.c (avcall_call): Use preallocated trampolines
instead of generating a trampoline on the stack, because the stack is
not executable on Solaris 11.
* avcall/Makefile.devel (avcall-sparc-solaris.s,
avcall-sparc-solaris-macro.S): New rules.
* avcall/Makefile.in (SOURCE_FILES): Add avcall-sparc-solaris.s,
avcall-sparc-solaris-macro.S.
(avcall-sparc.s): Use a different input file on Solaris.
* NEWS: Mention the new port.
2021-06-13 Bruno Haible <[email protected]>
Fix build error on FreeBSD 12/arm.
* common/asm-arm.sh: Eliminate '.syntax divided' pseudo-ops.
* NEWS: Mention the new port.
2021-06-13 Bruno Haible <[email protected]>
Fix build error on 64-bit MSVC, due to newer libtool.
* avcall/Makefile.in (avcall-x86_64.lo) [IF_MSVC]: Use ml64 directly,
without invoking libtool.
* callback/vacall_r/Makefile.in (vacall-x86_64.lo) [IF_MSVC]: Likewise.
2021-06-12 Bruno Haible <[email protected]>
Finish port to macOS 11/arm64.
* PLATFORMS, */PLATFORMS: Mention the macOS 11/arm64 port.
* NEWS: Mention it as attained in release 2.4, not 2.3.
2021-06-12 Bruno Haible <[email protected]>
vacall: Fix regression on Linux/arm64.
* common/asm-arm64.h: Fix mistake.
2021-06-12 Bruno Haible <[email protected]>
vacall, callback: Add support for macOS 11/arm64.
* vacall/vacall.h (__varword): Define differently on macOS 11/arm64.
* callback/vacall_r/vacall_r.h (__varword): Likewise.
* vacall/vacall-internal.h (_va_arg_double): Update to allow for
sizeof(__vaword) < sizeof(double).
(__va_arg_struct): Compare type size with 2*sizeof(__varword).
* vacall/Makefile.devel (vacall-arm64-macos-macro.S): New rule.
* vacall/Makefile.in (SOURCE_FILES): Add vacall-arm64-macos-macro.S.
(vacall-arm64.s): Use a different input file on macOS.
* callback/vacall_r/Makefile.devel (vacall-arm64-macos-macro.S): New
rule.
* callback/vacall_r/Makefile.in (SOURCE_FILES): Add
vacall-arm64-macos-macro.S.
(vacall-arm64.s): Use a different input file on macOS.
2021-06-12 Bruno Haible <[email protected]>
vacall, callback: Distinguish a register word from a stack word.
* vacall/vacall.h (__varword): New type.
* callback/vacall_r/vacall_r.h (__varword): Likewise.
* vacall/vacall-alist.h: Use it as as element type of iarg[].
* vacall/vacall-internal.h: Use it when assigning to an iargs[] element.
* vacall/vacall-*.c: Use it for integer register variables.
2021-06-12 Bruno Haible <[email protected]>
avcall: Add support for macOS 11/arm64.
* avcall/avcall-arm64.c: Update comment regarding stack words.
* avcall/avcall.h (__avword): Define differently on macOS 11/arm64.
* avcall/avcall-internal.h (__av_long, __av_ulong, __av_ptr): Define
differently on macOS 11/arm64.
(_av_double): Update to allow for sizeof(__avword) < sizeof(double).
(__av_struct): Update to allow for sizeof(__avword) < sizeof(void*).
* avcall/Makefile.devel (avcall-arm64-macos-macro.S): New rule.
* avcall/Makefile.in (SOURCE_FILES): Add avcall-arm64-macos-macro.S.
(avcall-arm64.s): Use a different input file on macOS.
2021-06-12 Bruno Haible <[email protected]>
avcall: Distinguish a register word from a stack word.
* avcall/avcall.h (__avrword): New type.
(avcall_start, av_start_struct): Use it as return type of func.
* avcall/avcall-libapi.c (avcall_start, av_start_struct): Likewise.
* avcall/avcall-alist.h: Use it as return type of func and as element
type of iargs[].
* avcall/avcall-internal.h: Use it when assigning to an iargs[] element.
* avcall/avcall-*.c: Use it for integer register variables.
2021-06-12 Bruno Haible <[email protected]>
avcall: Support calling conventions that pass 'int', 'long' differently.
* avcall/avcall-internal.h (__av_int, __av_uint): New macros.
* avcall/avcall-libapi.c (avcall_arg_int, avcall_arg_uint): New
functions.
* avcall/avcall.h (avcall_arg_int, avcall_arg_uint): New declarations.
(av_char, av_schar, av_short, av_int, av_uchar, av_ushort, av_uint): Use
them.
2021-06-12 Bruno Haible <[email protected]>
Support assembly language syntax expected by macOS 11/arm64.
* common/asm-arm64.sh: New file, based on common/asm-arm.sh.
* common/asm-arm64.h: New file, based on common/asm-arm.h.
* Makefile.in (SOURCE_FILES): Add them.
* avcall/Makefile.devel (avcall-arm64-macro.S): Use asm-arm64.sh,
asm-arm64.h instead of asm-arm.sh, asm-arm.h.
* vacall/Makefile.devel (vacall-arm64-macro.S): Use asm-arm64.sh,
asm-arm64.h instead of asm-arm.sh, asm-arm.h.
* callback/vacall_r/Makefile.devel (vacall-arm64-macro.S): Use
asm-arm64.sh, asm-arm64.h instead of asm-arm.sh, asm-arm.h.
2021-06-11 Bruno Haible <[email protected]>
avcall: Remove handling of obsolete enum item '__AVword'.
* avcall/avcall-*.c: Remove handling of '__AVword'.
2021-06-11 Bruno Haible <[email protected]>
Fix undefined behaviour in the tests.
* testcases.c (us_cdcd): Cast from double (-30.4) to int to ushort, not
directly to ushort. This avoids undefined behaviour (see ISO C 11
§ 6.3.1.4.(2)).
* vacall/tests.c (simulator): Update accordingly.
* callback/tests.c (us_cdcd_simulator): Likewise.
2021-06-06 Bruno Haible <[email protected]>
Fix test crash with CC="gcc -ftrapv".
* callback/trampoline_r/test1.c (f): Reorder summands, to avoid signed
integer overflow.
2021-06-06 Bruno Haible <[email protected]>
Bump shared library version numbers.
* Makefile.in (LIBFFCALL_VERSION_INFO): Bump to 0:3:0.
* avcall/Makefile.in (LIBAVCALL_VERSION_INFO): Bump to 1:3:0.
* trampoline/Makefile.in (LIBTRAMPOLINE_VERSION_INFO): Likewise.
* callback/Makefile.in (LIBCALLBACK_VERSION_INFO): Likewise.
2021-06-06 Bruno Haible <[email protected]>
Add support for xlclang compiler in 64-bit mode on AIX.
* avcall/avcall.h (__AV_FLOAT_ARGS): Add __AV_AIXCC_FLOAT_ARGS on 64-bit
xlclang.
* vacall/vacall.h (__VA_FLOAT_ARGS): Add __VA_AIXCC_FLOAT_ARGS on 64-bit
xlclang.
* callback/vacall_r/vacall_r.h: Likewise.
2021-06-06 Bruno Haible <[email protected]>
vacall: Fix minitests crash on OpenBSD 6.5 and newer (x86_64).
* vacall/Makefile.devel (vacall-x86_64-linux-pic.s): New target.
(vacall-x86_64-macro.S): On OpenBSD, use the variant compiled with
-fPIC. Needed because without -fPIC, the .eh_frame section has
relocations.
2021-04-14 Bruno Haible <[email protected]>
build: Fix compilation error on FreeBSD 13.0/x86_64.
* common/asm-x86_64.h (EH_FRAME_SECTION): On FreeBSD, use flags "a"
instead of "aw".
2021-03-21 Bruno Haible <[email protected]>
trampoline: Work around failing mmap call on macOS 11.
* Makefile.maint (GNULIB_MODULES): Add clean-temp-simple.
* trampoline/trampoline.c: On macOS, define KEEP_TEMP_FILE_VISIBLE.
(for_mmap_init): If KEEP_TEMP_FILE_VISIBLE, don't delete the file here,
but instead register it for deletion when the process terminates.
* callback/trampoline_r/trampoline.c: Likewise.
2021-02-28 Bruno Haible <[email protected]>
Update DEPENDENCIES.
* DEPENDENCIES: Update some details.
2021-02-20 Bruno Haible <[email protected]>
build: Support creating shared libraries on MidnightBSD.
* Makefile.maint (libtool-imported-files): Apply the patch from
<https://savannah.gnu.org/patch/?10007>.
2021-02-20 Bruno Haible <[email protected]>
Switch to autoconf 2.71.
* autogen.sh: Update comments.
2020-12-09 Bruno Haible <[email protected]>
Switch to autoconf 2.70.
* configure.ac: Fix AC_CHECK_HEADERS invocation. Don't invoke
AC_HEADER_STDC.
* Makefile.maint (ACLOCAL, AUTOMAKE, AUTOCONF, AUTOHEADER): Remove the
fixed version suffix.
* autogen.sh: Update comments.
* README-hacking: Indicate which versions of autoconf and automake are
supported.
2020-12-09 Bruno Haible <[email protected]>
build: Fix syntax error in configure.ac (regression from 2020-07-19).
* configure.ac: Fix syntax error.
2020-07-19 Bruno Haible <[email protected]>
trampoline, callback: Fix another multithread-safety bug.
* trampoline/trampoline.c (alloc_trampoline): Invoke for_mmap_init
before assigning pagesize, not after.
* callback/trampoline_r/trampoline.c (alloc_trampoline_r): Likewise.
2020-07-19 Bruno Haible <[email protected]>
trampoline, callback: Fix a multithread-safety bug.
* trampoline/trampoline.c (free_trampoline): Take the freelist_lock.
* callback/trampoline_r/trampoline.c (free_trampoline_r): Likewise.
2020-07-19 Bruno Haible <[email protected]>
Use OS-provided functions for flushing the instruction cache.
* trampoline/trampoline.c (alloc_trampoline): For flushing the
instruction cache, use the OS-provided functions on Windows, macOS, AIX,
IRIX, Solaris.
* callback/trampoline_r/trampoline.c: Likewise.
* configure.ac: Arrange to not build cache-sparc.o or cache-sparc64.o on
Solaris.
2020-07-12 Bruno Haible <[email protected]>
build: Fix misuse of AC_CACHE_CHECK.
* m4/codeexec.m4 (FFCALL_CODEEXEC): Use two AC_CACHE_CHECK invocations
instead of one. Don't set ffcall_cv_func_mmap_works.
2020-07-12 Bruno Haible <[email protected]>
build: Avoid possible conflict with the broken AC_FUNC_MMAP.
* trampoline/trampoline.c: Don't test HAVE_MMAP.
* callback/trampoline_r/trampoline.c: Likewise.
* m4/codeexec.m4 (FFCALL_CODEEXEC): Don't define HAVE_MMAP.
2020-07-12 Bruno Haible <[email protected]>
Drop portability to IRIX 4.
* trampoline/trampoline.c (PROT_EXEC): Remove fallback definition.
* callback/trampoline_r/trampoline.c (PROT_EXEC): Likewise.
2020-07-12 Bruno Haible <[email protected]>
build: Simplify autoconf macros.
* m4/codeexec.m4: Include the code from m4/mmap.m4 and m4/mprotect.m4.
* m4/mmap.m4: Remove file.
* m4/mprotect.m4: Remove file.
* Makefile.in (SOURCE_FILES): Remove them.
* configure.ac: Invoke just FFCALL_CODEEXEC, instead of FFCALL_MMAP,
FFCALL_MPROTECT, FFCALL_CODEEXEC, FFCALL_CODEEXEC_PAX.
2020-07-12 Bruno Haible <[email protected]>
build: Use autoconf macros from gnulib.
* Makefile.maint (GNULIB_FILES): New variable.
(gnulib-imported-files): Import the $(GNULIB_FILES) from gnulib.
* Makefile.in (GNULIB_IMPORTED_FILES): Add m4/mmap-anon.m4.
* configure.ac: Invoke gl_FUNC_MMAP_ANON.
* m4/mmap.m4 (FFCALL_MMAP): Require gl_FUNC_MMAP_ANON. Don't test
MAP_ANON. Don't set HAVE_MMAP_ANON.
* m4/codeexec.m4 (FFCALL_CODEEXEC_PAX): Require gl_FUNC_MMAP_ANON. Don't
test HAVE_MMAP_ANON.
2020-07-12 Bruno Haible <[email protected]>
build: Simplify autoconf macros.
* m4/codeexec.m4 (FFCALL_CODEEXEC_PAX): Assume that all platforms that
have mprotect also have ENOTSUP.
2020-07-12 Bruno Haible <[email protected]>
build: Use common GNU style in autoconf macros.
* m4/mmap.m4 (FFCALL_MMAP): Define HAVE_MMAP, HAVE_MMAP_ANON,
HAVE_MMAP_ANONYMOUS, HAVE_MMAP_DEVZERO to 1, not empty.
* m4/mprotect.m4 (FFCALL_MPROTECT): Define HAVE_WORKING_MPROTECT to 1,
not empty.
* m4/codeexec.m4 (FFCALL_CODEEXEC_PAX): Define
HAVE_MMAP_SHARED_CAN_EXEC to 1, not empty.
* trampoline/trampoline.c: Test these macros with #if, not #ifdef.
* callback/trampoline_r/trampoline.c: Likewise.
2020-07-11 Bruno Haible <[email protected]>
build: Modernize autoconf macros.
* m4/mmap.m4 (FFCALL_MMAP): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
* m4/mprotect.m4 (FFCALL_MPROTECT): Likewise.
* m4/codeexec.m4 (FFCALL_CODEEXEC, FFCALL_CODEEXEC_PAX): Likewise.
2020-07-11 Bruno Haible <[email protected]>
Drop portability to OSF/1.
* trampoline/trampoline.c: Assume HAVE_MACH_VM is not defined.
* callback/trampoline_r/trampoline.c: Likewise.
* configure.ac: Don't invoke CL_MACH_VM.
* m4/mach-vm.m4: Remove file.
* Makefile.in (SOURCE_FILES): Remove it.
2020-07-11 Bruno Haible <[email protected]>
build: Simplify autoconf macros.
* trampoline/trampoline.c (getpagesize): Declare only on HP-UX. Remove
fallback definition.
* callback/trampoline_r/trampoline.c (getpagesize): Likewise.
* configure.ac: Don't invoke CL_GETPAGESIZE.
* m4/codeexec.m4 (FFCALL_CODEEXEC_PAX): Declare getpagesize only on
HP-UX. Remove its fallback definition.
* m4/mprotect.m4 (FFCALL_MPROTECT): Don't require CL_GETPAGESIZE.
Declare getpagesize only on HP-UX. Remove its fallback definition.
* m4/getpagesize.m4: Remove file.
* m4/proto.m4: Remove file.
* m4/general.m4: Remove file.
* Makefile.in (SOURCE_FILES): Remove them.
2020-07-11 Bruno Haible <[email protected]>
build: Simplify autoconf macros.
* configure.ac: Don't invoke FFCALL_SMALL_STRUCT_RETURN,
FFCALL_IREG_FLOAT_RETURN.
* m4/ireg.m4: Remove file.
* m4/smallstruct.m4: Remove file.
* Makefile.in (SOURCE_FILES): Remove them.
2020-07-11 Bruno Haible <[email protected]>
build: Simplify.
* Makefile.maint (GNULIB_MODULES): Remove 'longlong'.
2020-07-11 Bruno Haible <[email protected]>
build: Simplify autoconf macros.
* m4/codeexec.m4 (CE_DOC): Remove macro.
(FFCALL_CODEEXEC): Inline it.
2020-07-11 Bruno Haible <[email protected]>
build: Simplify autoconf macros.
* m4/getpagesize.m4 (CL_GETPAGESIZE): Inline CL_LINK_CHECK invocation.
* m4/mach-vm.m4 (CL_MACH_VM): Likewise.
* m4/general.m4 (CL_CHECK, CL_LINK_CHECK): Remove macros.
2020-07-11 Bruno Haible <[email protected]>
trampoline: Remove option to allocate memory through shared memory.
* trampoline/trampoline.c: Remove EXECUTABLE_VIA_SHM and its uses.
* callback/trampoline_r/trampoline.c: Likewise.
* configure.ac: Don't invoke CL_SHM_H, CL_SHM.
* m4/shm.m4: Remove file.
* Makefile.in (SOURCE_FILES): Remove it.
2019-10-13 Bruno Haible <[email protected]>
build: Update after armv7l-linux-gnueabihf gcc version changed.
* avcall/Makefile.devel (avcall-armhf-macro.S): Update.
* vacall/Makefile.devel (vacall-armhf-linux.s,
vacall-armhf-linux-pic.s): Likewise.
* callback/vacall_r/Makefile.devel (vacall-armhf-macro.S): Likewise.
2019-10-13 Bruno Haible <[email protected]>
cross-tools: Fix compilation error of binutils 2.17 with makeinfo-6.x.
* cross-tools/patches/binutils-2.17.patch: Fix sectioning in elf.texi.
2019-10-13 Bruno Haible <[email protected]>
cross-tools: Fix compilation error of binutils < 2.24 with makeinfo-6.1.
This backports the fix from
<https://sourceware.org/bugzilla/show_bug.cgi?id=15183>.
* cross-tools/patches/binutils-2.12.90.0.7.patch: Escape @ characters
inside @tex.
* cross-tools/patches/binutils-2.16.1.patch: Likewise.
* cross-tools/patches/binutils-2.17.patch: New file.
2019-10-09 Bruno Haible <[email protected]>
cross-tools: Fix compilation error for armhf CPU.
* cross-tools/cross.conf (armhf): Use GCC version 6.5.0 instead of
6.3.0.
* cross-tools/cross-build.sh (func_build_gcc): Expect GCC 6.x tarball
in .xz format.
2019-10-08 Bruno Haible <[email protected]>
cross-tools: Work around error 500 on www.multiprecision.org.
* cross-tools/cross-build.sh (func_build_mpc): Use alternate download
location.
2019-10-08 Bruno Haible <[email protected]>
cross-tools: Reduce verbosity.
* cross-tools/cross-build.sh (func_ensure_tarball): Use wget option
'-nv'.
2019-09-01 Bruno Haible <[email protected]>
build: Add support for shallow-cloning of subdirectories.
* gitsub.sh (func_usage): Document allowed git options with 'git pull'.
(func_pull): Accept GIT_OPTIONS argument.
(pull): Parse git options before complaining about too many arguments.
Pass the git options to func_pull.
2019-08-29 Bruno Haible <[email protected]>
trampoline: Fix "illegal instruction" on mips32r6.
Reported by Luyou Peng <[email protected]>
at <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925129>.
The instruction that, before mips32r6, encoded 'j $25' produces an
"illegal instruction" on mips32r6.
That instruction had the same effects as 'jal $0,$25'; this one works
on mips32r6 and on all other MIPS ISAs.
The assemblers and disassemblers were changed to map 'j $25' to
'jal $0,$25' and back automatically.
* trampoline/trampoline.c (alloc_trampoline): On MIPS, use instruction
'jal $0,$25' instead of 'j $25'.
* callback/trampoline_r/trampoline.c (alloc_trampoline_r): Likewise.
2019-08-28 Helmut Grohne <[email protected]> (tiny change)
Fix configure failure during a cross build.
* m4/codeexec.m4 (FFCALL_CODEEXEC_PAX): Fix AC_TRY_RUN invocations.
2019-08-24 Bruno Haible <[email protected]>
Bump shared library version numbers.
* Makefile.in (LIBFFCALL_VERSION_INFO): Bump to 0:2:0.
* avcall/Makefile.in (LIBAVCALL_VERSION_INFO): Bump to 1:2:0.
* trampoline/Makefile.in (LIBTRAMPOLINE_VERSION_INFO): Likewise.
* callback/Makefile.in (LIBCALLBACK_VERSION_INFO): Likewise.
2019-08-24 Bruno Haible <[email protected]>
hppa: Add comments about structure arguments.
* avcall/avcall-hppa.c: Add comment.
* avcall/avcall-internal.h (__av_struct): Likewise.
* vacall/vacall-internal.h (__va_arg_struct): Likewise.
2019-08-24 Bruno Haible <[email protected]>
Add a test for by-value passing.
* testcases.c (v_clobber_K): New function.
* avcall/tests.c (by_value_tests): New function.
(main): Invoke it.
* vacall/tests.c (simulator, main): Test v_clobber_K.
* callback/tests.c (v_clobber_K_simulator): New function.
(main): Test it.
2019-08-24 Bruno Haible <[email protected]>
hppa: Implement correct floating-point argument passing on Linux.
* avcall/avcall.h (__AV_ALIST_WORDS): Add comment.
* avcall/avcall-alist.h (__av_alist) [__hppa__]: Add farg_mask,
darg_mask.
* avcall/avcall-internal.h (__av_start1) [__hppa__]: Initialize
farg_mask, darg_mask.
(_av_float) [__hppa__]: Set a bit in farg_mask.
(_av_double) [__hppa__]: Set a bit in darg_mask.
* avcall/avcall-hppa.c (avcall_call): Copy floating-point arguments
among the first 4 words to %fr4L...%fr7L and %fr5,%fr7.
* vacall/vacall-internal.h (_va_arg_float, _va_arg_double) [__hppa__]:
For floating-point arguments among the first 4 words, use the value
passed in floating-point registers.
* PLATFORMS, */PLATFORMS: List the Linux/hppa ABI.
* NEWS: Mention the new port.
2019-08-24 Bruno Haible <[email protected]>
hppa: Fix stack corruption in avcall.
* avcall/avcall-hppa.c (avcall_call): Don't let GCC optimize away the
stack-allocated array.
* NEWS: Mention the fix.
2019-08-24 Bruno Haible <[email protected]>
Add another integer test.
* testcases.c (i17, ..., i32): New variables.
(i_i32): New function.
* avcall/tests.c (int_tests): Test it.
* vacall/tests.c (simulator, main): Likewise.
* callback/tests.c (i_i32_simulator): New function.
(main): Test it.
2019-08-24 Bruno Haible <[email protected]>
cross-tools: Add support for GCC 8 and 9.
* cross-tools/cross-build.sh (func_build_gcc): Handle also GCC 8 and 9.
2019-08-21 Bruno Haible <[email protected]>
mips: Change the default 32-bit ABI from fp32 to fpxx.
Reported by Sébastien Villemot <[email protected]>
at <https://savannah.gnu.org/bugs/?52510>.
He also found the trick with -fno-tree-dce.
* porting-tools/abis/mips-abis.txt: New file.
* cross-tools/cross.conf (mips): Use gcc 5 and binutils 2.27.
* common/asm-mips.sh: Eliminate .nan and .module lines.
* avcall/avcall-mipsn32.c (avcall_call): Use return value of
__builtin_alloca instead of accessing the stack pointer directly.
* avcall/Makefile.devel (avcall-mipseb-linux.s, avcall-mipsel-linux.s):
Build with gcc 5, with option -mfpxx (for compatibility with current
Debian), with -march=mips2 (required by -mfpxx), and -fno-tree-dce
(required to avoid that gcc eliminates the __builtin_alloca call).
(avcall-mipsn32eb-linux.s, avcall-mipsn32el-linux.s,
avcall-mips64eb-linux.s, avcall-mips64el-linux.s): Build with gcc 5.
* vacall/Makefile.devel (vacall-mipseb-linux.s, vacall-mipsel-linux.s):
Build with gcc 5, with option -mfpxx (for compatibility with current
Debian) and -march=mips2 (required by -mfpxx).
(vacall-mipsn32eb-linux.s, vacall-mipsn32el-linux.s,
vacall-mips64eb-linux.s, vacall-mips64el-linux.s): Build with gcc 5.
* callback/vacall_r/Makefile.devel (vacall-mipseb-linux.s,
vacall-mipsel-linux.s): Build with gcc 5, with option -mfpxx (for
compatibility with current Debian) and -march=mips2 (required by
-mfpxx).
(vacall-mipsn32eb-linux.s, vacall-mipsn32el-linux.s,
vacall-mips64eb-linux.s, vacall-mips64el-linux.s): Build with gcc 5.
* NEWS: Mention the change.
2019-08-20 Bruno Haible <[email protected]>
riscv32: Add support for riscv32-ilp32d ABI.
* cross-tools/cross.conf: Add configuration for riscv32 cross tools.
* porting-tools/emulation/buildroot-riscv-2018-10-20-riscv32.config: New
file.
* porting-tools/emulation/tinyemu-riscv32.txt: New file.
* porting-tools/emulation/README: Refer to it.
* porting-tools/abis/README: Tweaks.
* porting-tools/abis/call-used-registers.txt: Add info about riscv32.
* porting-tools/abis/reg-struct-return.txt: Likewise.
* porting-tools/abis/stack-frame.txt: Likewise.
* porting-tools/execstack/voidfunc.c: Add command for riscv32.
* porting-tools/execstack/voidfunc-riscv32.o: New generated file.
* porting-tools/execstack/README: Add info about riscv32.
* ffcall-abi.h: Add support for riscv32-lp64.
* configure.ac: Check for <sys/cachectl.h> also on riscv32.
* avcall/avcall.h (__AV_STRUCT_RETURN): Add code for __riscv32__.
* avcall/avcall-alist.h (__av_alist): Likewise.
* avcall/avcall-internal.h: Add code for __riscv32__, especially
__av_start1, __av_reg_struct_return, __av_start_struct4, __av_word,
__av_longlong, __av_ulonglong, __av_arg_longlong, _av_float, _av_double,
__av_struct.
* avcall/avcall-riscv32.c: New file.
* avcall/Makefile.devel (avcall-riscv32-ilp32d-linux.s,
avcall-riscv32-ilp32d-macro.S): New targets.
* avcall/Makefile.in (avcall-riscv32-ilp32d.lo,
avcall-riscv32-ilp32d.s): New targets.
(clean): Remove avcall-riscv32-ilp32d.s.
(SOURCE_FILES): Add avcall-riscv32.c, avcall-riscv32-ilp32d-linux.s,
avcall-riscv32-ilp32d-macro.S.
* vacall/vacall.h (__VA_STRUCT_RETURN): Add code for __riscv32__.
* vacall/vacall-internal.h: Add code for __riscv32__, especially
__va_alist, __va_reg_struct_return, __va_start_struct2,
__va_arg_leftadjusted, __va_arg_adjusted, _va_arg_longlong,
_va_arg_ulonglong, __va_arg_longlong, __va_align_double, _va_arg_float,
_va_arg_double, __va_arg_struct.
* vacall/vacall-riscv32.c: New file.
* vacall/Makefile.devel (vacall-riscv32-ilp32d-linux.s,
vacall-riscv32-ilp32d-macro.S): New targets.
* vacall/Makefile.in (vacall-riscv32-ilp32d.@OBJEXT@,
vacall-riscv32-ilp32d.s): New targets.
(clean): Remove vacall-riscv32-ilp32d.s.
(SOURCE_FILES): Add vacall-riscv32.c, vacall-riscv32-ilp32d-linux.s,
vacall-riscv32-ilp32d-macro.S.
* callback/vacall_r/vacall_r.h (__VA_STRUCT_RETURN): Add code for
__riscv32__.
* callback/vacall_r/Makefile.devel (vacall-riscv32-ilp32d-linux.s,
vacall-riscv32-ilp32d-macro.S): New targets.
* callback/vacall_r/Makefile.in (vacall-riscv32-ilp32d.lo,
vacall-riscv32-ilp32d.s): New targets.
(clean): Remove vacall-riscv32-ilp32d.s.
(SOURCE_FILES): Add vacall-riscv32-ilp32d-linux.s,
vacall-riscv32-ilp32d-macro.S.
* trampoline/Makefile.devel (proto-riscv32.s, tramp-riscv32.o): New
targets.
* trampoline/proto-riscv32.s: New generated file.
* trampoline/tramp-riscv32.old.s: New file.
* trampoline/tramp-riscv32.old.o: New generated file.
* trampoline/tramp-riscv32.s: New file.
* trampoline/tramp-riscv32.o: New generated file.
* trampoline/trampoline.c: Implement for __riscv32__.
* callback/trampoline_r/Makefile.devel (proto-riscv32.s,
tramp-riscv32.o): New targets.
* callback/trampoline_r/proto.c: Add code for __riscv32__.
* callback/trampoline_r/proto-riscv32.s: New generated file.
* callback/trampoline_r/tramp-riscv32.old.s: New file.
* callback/trampoline_r/tramp-riscv32.old.o: New generated file.
* callback/trampoline_r/tramp-riscv32.s: New file.
* callback/trampoline_r/tramp-riscv32.o: New generated file.
* callback/trampoline_r/trampoline.c: Implement for __riscv32__.
* callback/trampoline_r/test1.c: Add support for __riscv32__.
* PLATFORMS, */PLATFORMS: List the 32-bit RISC-V ABI.
* NEWS: Mention the new port.
2019-08-19 Bruno Haible <[email protected]>
Add some more general-purpose args boundary tests.
* testcases.c (l_l0J, l_l1J, l_l2J, l_l3J, l_l4J, l_l5J, l_l6J, l_l7J):
New functions.
* avcall/tests.c (gpargs_boundary_tests): Test them.
* vacall/tests.c (simulator, main): Likewise.
* callback/tests.c (l_l*J_simulator): New functions.
(main): Test them.
* porting-tools/abis/gpargs*.c: Add a corresponding test here as well.
2019-08-19 Bruno Haible <[email protected]>
riscv64: Fix bug regarding passing of more than 8 arguments.
* porting-tools/abis/stack-frame.txt: Correct information about riscv64
ABI.
* avcall/avcall-alist.h (__av_alist) [__riscv64__]: Remove ianum and
iargs.
* avcall/avcall-internal.h (__av_start1, __av_start_struct4, __av_long,
__av_ulong, __av_ptr, _av_float, _av_double, __av_struct) [__riscv64__]:
Change accordingly.
* avcall/avcall-riscv64.c (avcall_call): Likewise.
* vacall/vacall-internal.h (__va_arg_adjusted): Deal with a split struct
that spans the 8th and 9th argument words.
* vacall/vacall-riscv64.c (struct gpargsequence): New type.
(vacall_receiver): Use it to make sure that room is allocated when a
struct is passed that spans the 8th and 9th argument words.
2019-08-19 Bruno Haible <[email protected]>
arm64: Fix bug regarding passing of more than 8 arguments.
* vacall/vacall-internal.h (__va_arg_adjusted): Bump (LIST)->ianum when
switching from registers to the stack.
* NEWS: Mention it.
2019-08-19 Bruno Haible <[email protected]>
avcall: Remove unnecessary parentheses.
* avcall/avcall-internal.h (av_double, _av_float, _av_double): Remove
unnecessary level of parentheses.
2019-05-11 Bruno Haible <[email protected]>
Update bug reporting instructions.
* README: Tell users to report bugs in the bug tracker or by email.
* cross-tools/cross-build.sh (func_usage): Likewise.
2019-04-01 Bruno Haible <[email protected]>
build: Separate git operations from build operations.
* gitsub.sh: New file, from gnulib.
* .gitmodules: New file.
* autogen.sh: Remove all git operations. Look at GNULIB_SRCDIR
environment variable. Ignore the GNULIB_TOOL environment variable.
* README-hacking: Explain when to use gitsub.sh.
2019-01-19 Bruno Haible <[email protected]>
Record support for NetBSD/SPARC64.
* PLATFORMS, */PLATFORMS: List this platform.
2018-05-04 Bruno Haible <[email protected]>
Simplify code. Drop support for Borland C++ on Windows.
* common/asm-x86_64.h, common/asm-x86_64.sh, ffcall-stdint.h:
Simplify 'defined _WIN32 || defined __WIN32__' to just 'defined _WIN32'.
* avcall/avcall.h, avcall/avcall-alist.h: Likewise.
* vacall/vacall.h, vacall/vacall-internal.h: Likewise.
* callback/vacall_r/vacall_r.h: Likewise.
* trampoline/trampoline.c: Likewise.
* callback/trampoline_r/trampoline.c: Likewise.
2018-04-08 Bruno Haible <[email protected]>
riscv64: Add support for riscv64-lp64d ABI.
* cross-tools/cross-build.sh (func_build_gcc): Add support for GCC 7.2.0
and 7.3.0.
* cross-tools/cross.conf: Add configuration for riscv64 cross tools.
* porting-tools/emulation/qemu-riscv64.txt: New file.
* porting-tools/emulation/README: Refer to it.
* porting-tools/abis/README: Tweaks.
* porting-tools/abis/call-used-registers.txt: Add info about riscv64.
* porting-tools/abis/reg-struct-return.txt: Likewise.
* porting-tools/abis/stack-frame.txt: Likewise.
* porting-tools/abis/function-pointer.txt: Clarify file locations.
* porting-tools/execstack/voidfunc.c: Add command for riscv64.
* porting-tools/execstack/voidfunc-riscv64.o: New generated file.
* porting-tools/execstack/main.c (voidfunc): Define also for riscv.
* porting-tools/execstack/README: Add info about riscv64.
* ffcall-abi.h: Add support for riscv64-lp64.