forked from libffi/libffi
-
Notifications
You must be signed in to change notification settings - Fork 9
/
ChangeLog.old
7407 lines (5554 loc) · 249 KB
/
ChangeLog.old
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
Libffi change logs used to be maintained in separate ChangeLog files.
These days we generate them directly from the git commit messages.
The old ChangeLog files are saved here in order to maintain the historical
record.
=============================================================================
From the old ChangeLog.libffi-3.1 file...
2014-03-16 Josh Triplett <josh@joshtriplett.org>
* ChangeLog: Archive to ChangeLog.libffi-3.1 and delete. Future
changelogs will come from git, with autogenerated snapshots shipped in
distributed tarballs.
2014-03-16 Josh Triplett <josh@joshtriplett.org>
Add support for stdcall, thiscall, and fastcall on non-Windows
x86-32.
Linux supports the stdcall calling convention, either via
functions explicitly declared with the stdcall attribute, or via
code compiled with -mrtd which effectively makes stdcall the
default.
This introduces FFI_STDCALL, FFI_THISCALL, and FFI_FASTCALL on
non-Windows x86-32 platforms, as non-default calling conventions.
* Makefile.am: Compile in src/x86/win32.S on non-Windows x86-32.
* src/x86/ffitarget.h: Add FFI_STDCALL, FFI_THISCALL, and
FFI_FASTCALL on non-Windows x86-32. Increase trampoline size to
accomodate these calling conventions, and unify some ifdeffery.
* src/x86/ffi.c: Add support for FFI_STDCALL, FFI_THISCALL, and
FFI_FASTCALL on non-Windows x86-32 platforms; update ifdeffery.
* src/x86/win32.S: Support compiling on non-Windows x86-32
platforms. On those platforms, avoid redefining the SYSV symbols
already provided by src/x86/sysv.S.
* testsuite/libffi.call/closure_stdcall.c: Run on non-Windows.
#define __stdcall if needed.
* testsuite/libffi.call/closure_thiscall.c: Run on non-Windows.
#define __fastcall if needed.
* testsuite/libffi.call/fastthis1_win32.c: Run on non-Windows.
* testsuite/libffi.call/fastthis2_win32.c: Ditto.
* testsuite/libffi.call/fastthis3_win32.c: Ditto.
* testsuite/libffi.call/many2_win32.c: Ditto.
* testsuite/libffi.call/many_win32.c: Ditto.
* testsuite/libffi.call/strlen2_win32.c: Ditto.
* testsuite/libffi.call/strlen_win32.c: Ditto.
* testsuite/libffi.call/struct1_win32.c: Ditto.
* testsuite/libffi.call/struct2_win32.c: Ditto.
2014-03-16 Josh Triplett <josh@joshtriplett.org>
* prep_cif.c: Remove unnecessary ifdef for X86_WIN32.
ffi_prep_cif_core had a special case for X86_WIN32, checking for
FFI_THISCALL in addition to the FFI_FIRST_ABI-to-FFI_LAST_ABI
range before returning FFI_BAD_ABI. However, on X86_WIN32,
FFI_THISCALL already falls in that range, making the special case
unnecessary. Remove it.
2014-03-16 Josh Triplett <josh@joshtriplett.org>
* testsuite/libffi.call/closure_stdcall.c,
testsuite/libffi.call/closure_thiscall.c: Remove fragile stack
pointer checks. These files included inline assembly to save the
stack pointer before and after the call, and compare the values.
However, compilers can and do leave the stack in different states
for these two pieces of inline assembly, such as by saving a
temporary value on the stack across the call; observed with gcc
-Os, and verified as spurious through careful inspection of
disassembly.
2014-03-16 Josh Triplett <josh@joshtriplett.org>
* testsuite/libffi.call/many.c: Avoid spurious failure due to
excess floating-point precision.
* testsuite/libffi.call/many_win32.c: Ditto.
2014-03-16 Josh Triplett <josh@joshtriplett.org>
* libtool-ldflags: Re-add.
2014-03-16 Josh Triplett <josh@joshtriplett.org>
* Makefile.in, aclocal.m4, compile, config.guess, config.sub,
configure, depcomp, include/Makefile.in, install-sh,
libtool-ldflags, ltmain.sh, m4/libtool.m4, m4/ltoptions.m4,
m4/ltsugar.m4, m4/ltversion.m4, m4/lt~obsolete.m4,
man/Makefile.in, mdate-sh, missing, testsuite/Makefile.in: Delete
autogenerated files from version control.
* .gitignore: Add autogenerated files.
* autogen.sh: New script to generate the autogenerated files.
* README: Document requirement to run autogen.sh when building
directly from version control.
* .travis.yml: Run autogen.sh
2014-03-14 Anthony Green <green@moxielogic.com>
* configure, Makefile.in: Rebuilt.
2014-03-10 Mike Hommey <mh+mozilla@glandium.org>
* configure.ac: Allow building for mipsel with Android NDK r8.
* Makefile.am (AM_MAKEFLAGS): Replace double quotes with single
quotes.
2014-03-10 Landry Breuil <landry@openbsd.org>
* configure.ac: Ensure the linker supports @unwind sections in libffi.
2014-03-01 Anthony Green <green@moxielogic.com>
* Makefile.am (EXTRA_DIST): Replace old scripts with
generate-darwin-source-and-headers.py.
* Makefile.in: Rebuilt.
2014-02-28 Anthony Green <green@moxielogic.com>
* Makefile.am (AM_CFLAGS): Reintroduce missing -DFFI_DEBUG for
--enable-debug builds.
* Makefile.in: Rebuilt.
2014-02-28 Makoto Kato <m_kato@ga2.so-net.ne.jp>
* src/closures.c: Fix build failure when using clang for Android.
2014-02-28 Marcin Wojdyr <wojdyr@gmail.com>
* libffi.pc.in (toolexeclibdir): use -L${toolexeclibdir} instead
of -L${libdir}.
2014-02-28 Paulo Pizarro <paulo.pizarro@gmail.com>
* src/bfin/sysv.S: Calling functions in shared libraries requires
considering the GOT.
2014-02-28 Josh Triplett <josh@joshtriplett.org>
* src/x86/ffi64.c (classify_argument): Handle case where
FFI_TYPE_LONGDOUBLE == FFI_TYPE_DOUBLE.
2014-02-28 Anthony Green <green@moxielogic.com>
* ltmain.sh: Generate with libtool-2.4.2.418.
* m4/libtool.m4, m4/ltoptions.m4, m4/ltversion.m4: Ditto.
* configure: Rebuilt.
2014-02-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
* configure.ac (AC_ARG_ENABLE struct): Fix typo in help
message.
(AC_ARG_ENABLE raw_api): Ditto.
* configure, fficonfig.h.in: Rebuilt.
2014-02-28 Will Newton <will.newton@linaro.org>
* src/arm/sysv.S: Initialize IP register with FP.
2014-02-28 Yufeng Zhang <yufeng.zhang@arm.com>
* src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
main CFA reg; update cfi_rel_offset.
2014-02-15 Marcus Comstedt <marcus@mc.pp.se>
* src/powerpc/ffi_linux64.c, src/powerpc/linux64_closure.S: Remove
assumption on contents of r11 in closure.
2014-02-09 Heiher <r@hev.cc>
* src/mips/n32.S: Fix call floating point va function.
2014-01-21 Zachary Waldowski <zach@waldowski.me>
* src/aarch64/ffi.c: Fix missing semicolons on assertions under
debug mode.
2013-12-30 Zachary Waldowski <zach@waldowski.me>
* .gitignore: Exclude darwin_* generated source and build_* trees.
* src/aarch64/ffi.c, src/arm/ffi.c, src/x86/ffi.c: Inhibit Clang
previous prototype warnings.
* src/arm/ffi.c: Prevent NULL dereference, fix short type warning
* src/dlmalloc.c: Fix warnings from set_segment_flags return type,
and the native use of size_t for malloc on platforms
* src/arm/sysv.S: Use unified syntax. Clang clean-ups for
ARM_FUNC_START.
* generate-osx-source-and-headers.py: Remove.
* build-ios.sh: Remove.
* libffi.xcodeproj/project.pbxproj: Rebuild targets. Include
x86_64+aarch64 pieces in library. Export headers properly.
* src/x86/ffi64.c: More Clang warning clean-ups.
* src/closures.c (open_temp_exec_file_dir): Use size_t.
* src/prep_cif.c (ffi_prep_cif_core): Cast ALIGN result.
* src/aarch64/sysv.S: Use CNAME for global symbols. Only use
.size for ELF targets.
* src/aarch64/ffi.c: Clean up for double == long double. Clean up
from Clang warnings. Use Clang cache invalidation builtin. Use
size_t in place of unsigned in many places. Accommodate for
differences in Apple AArch64 ABI.
2013-12-02 Daniel Rodríguez Troitiño <drodrigueztroitino@yahoo.es>
* generate-darwin-source-and-headers.py: Clean up, modernize,
merged version of previous scripts.
2013-11-21 Anthony Green <green@moxielogic.com>
* configure, Makefile.in, include/Makefile.in, include/ffi.h.in,
man/Makefile.in, testsuite/Makefile.in, fficonfig.h.in: Rebuilt.
2013-11-21 Alan Modra <amodra@gmail.com>
* Makefile.am (EXTRA_DIST): Add new src/powerpc files.
(nodist_libffi_la_SOURCES <POWERPC, POWERPC_FREEBSD>): Likewise.
* configure.ac (HAVE_LONG_DOUBLE_VARIANT): Define for powerpc.
* include/ffi.h.in (ffi_prep_types): Declare.
* src/prep_cif.c (ffi_prep_cif_core): Call ffi_prep_types.
* src/types.c (FFI_NONCONST_TYPEDEF): Define and use for
HAVE_LONG_DOUBLE_VARIANT.
* src/powerpc/ffi_powerpc.h: New file.
* src/powerpc/ffi.c: Split into..
* src/powerpc/ffi_sysv.c: ..new file, and..
* src/powerpc/ffi_linux64.c: ..new file, rewriting parts.
* src/powerpc/ffitarget.h (enum ffi_abi): Rewrite powerpc ABI
selection as bits controlling features.
* src/powerpc/linux64.S: For consistency, use POWERPC64 rather
than __powerpc64__.
* src/powerpc/linux64_closure.S: Likewise.
* src/powerpc/ppc_closure.S: Likewise. Move .note.FNU-stack
inside guard.
* src/powerpc/sysv.S: Likewise.
* configure: Regenerate.
* fficonfig.h.in: Regenerate.
* Makefile.in: Regenerate.
2013-11-20 Alan Modra <amodra@gmail.com>
* src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use
NUM_FPR_ARG_REGISTERS64 and NUM_GPR_ARG_REGISTERS64 not their
32-bit versions for 64-bit code.
* src/powerpc/linux64_closure.S: Don't use the return value area
as a parameter save area on ELFv2.
2013-11-18 Iain Sandoe <iain@codesourcery.com>
* src/powerpc/darwin.S (EH): Correct use of pcrel FDE encoding.
* src/powerpc/darwin_closure.S (EH): Likewise. Modernise picbase
labels.
2013-11-18 Anthony Green <green@moxielogic.com>
* src/arm/ffi.c (ffi_call): Hoist declaration of temp to top of
function.
* src/arm/ffi.c (ffi_closure_inner): Moderize function declaration
to appease compiler.
Thanks for Gregory P. Smith <greg@krypto.org>.
2013-11-18 Anthony Green <green@moxielogic.com>
* README (tested): Mention PowerPC ELFv2.
2013-11-16 Alan Modra <amodra@gmail.com>
* src/powerpc/ppc_closure.S: Move errant #endif to where it belongs.
Don't bl .Luint128.
2013-11-16 Alan Modra <amodra@gmail.com>
* src/powerpc/ffi.c (ffi_prep_cif_machdep_core): Use #if _CALL_ELF
test to select parameter save sizing for ELFv2 vs. ELFv1.
* src/powerpc/ffitarget.h (FFI_V2_TYPE_FLOAT_HOMOG,
FFI_V2_TYPE_DOUBLE_HOMOG, FFI_V2_TYPE_SMALL_STRUCT): Define.
(FFI_TRAMPOLINE_SIZE): Define variant for ELFv2.
* src/powerpc/ffi.c (FLAG_ARG_NEEDS_PSAVE): Define.
(discover_homogeneous_aggregate): New function.
(ffi_prep_args64): Adjust start of param save area for ELFv2.
Handle homogenous floating point struct parms.
(ffi_prep_cif_machdep_core): Adjust space calculation for ELFv2.
Handle ELFv2 return values. Set FLAG_ARG_NEEDS_PSAVE. Handle
homogenous floating point structs.
(ffi_call): Increase size of smst_buffer for ELFv2. Handle ELFv2.
(flush_icache): Compile for ELFv2.
(ffi_prep_closure_loc): Set up ELFv2 trampoline.
(ffi_closure_helper_LINUX64): Don't return all structs directly
to caller. Handle homogenous floating point structs. Handle
ELFv2 struct return values.
* src/powerpc/linux64.S (ffi_call_LINUX64): Set up r2 for
ELFv2. Adjust toc save location. Call function pointer using
r12. Handle FLAG_RETURNS_SMST. Don't predict branches.
* src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Set up r2
for ELFv2. Define ELFv2 versions of STACKFRAME, PARMSAVE, and
RETVAL. Handle possibly missing parameter save area. Handle
ELFv2 return values.
(.note.GNU-stack): Move inside outer #ifdef.
2013-11-16 Alan Modra <amodra@gmail.com>
* src/powerpc/ffi.c (ffi_prep_cif_machdep): Revert 2013-02-08
change. Do not consume an int arg when returning a small struct
for FFI_SYSV ABI.
(ffi_call): Only use bounce buffer when FLAG_RETURNS_SMST.
Properly copy bounce buffer to destination.
* src/powerpc/sysv.S: Revert 2013-02-08 change.
* src/powerpc/ppc_closure.S: Remove stray '+'.
2013-11-16 Alan Modra <amodra@gmail.com>
* src/powerpc/ffi.c (ffi_prep_args64): Align struct parameters
according to __STRUCT_PARM_ALIGN__.
(ffi_prep_cif_machdep_core): Likewise.
(ffi_closure_helper_LINUX64): Likewise.
2013-11-16 Alan Modra <amodra@gmail.com>
* src/powerpc/linux64.S (ffi_call_LINUX64): Tweak restore of r28.
(.note.GNU-stack): Move inside outer #ifdef.
* src/powerpc/linux64_closure.S (STACKFRAME, PARMSAVE,
RETVAL): Define and use throughout.
(ffi_closure_LINUX64): Save fprs before buying stack.
(.note.GNU-stack): Move inside outer #ifdef.
2013-11-16 Alan Modra <amodra@gmail.com>
* src/powerpc/ffitarget.h (FFI_TARGET_SPECIFIC_VARIADIC): Define.
(FFI_EXTRA_CIF_FIELDS): Define.
* src/powerpc/ffi.c (ffi_prep_args64): Save fprs as per the
ABI, not to both fpr and param save area.
(ffi_prep_cif_machdep_core): Renamed from ffi_prep_cif_machdep.
Keep initial flags. Formatting. Remove dead FFI_LINUX_SOFT_FLOAT
code.
(ffi_prep_cif_machdep, ffi_prep_cif_machdep_var): New functions.
(ffi_closure_helper_LINUX64): Pass floating point as per ABI,
not to both fpr and parameter save areas.
* libffi/testsuite/libffi.call/cls_double_va.c (main): Correct
function cast and don't call ffi_prep_cif.
* libffi/testsuite/libffi.call/cls_longdouble_va.c (main): Likewise.
2013-11-15 Andrew Haley <aph@redhat.com>
* doc/libffi.texi (Closure Example): Fix the sample code.
* doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
2013-11-15 Andrew Haley <aph@redhat.com>
* testsuite/libffi.call/va_struct1.c (main): Fix broken test.
* testsuite/libffi.call/cls_uint_va.c (cls_ret_T_fn): Likewise
* testsuite/libffi.call/cls_struct_va1.c (test_fn): Likewise.
* testsuite/libffi.call/va_1.c (main): Likewise.
2013-11-14 David Schneider <david.schneider@bivab.de>
* src/arm/ffi.c: Fix register allocation for mixed float and
doubles.
* testsuite/libffi.call/cls_many_mixed_float_double.c: Testcase
for many mixed float and double arguments.
2013-11-13 Alan Modra <amodra@gmail.com>
* doc/libffi.texi (Simple Example): Correct example code.
* doc/libffi.info, doc/stamp-vti, doc/version.texi: Rebuilt.
2013-11-13 Anthony Green <green@moxielogic.com>
* include/ffi_common.h: Respect HAVE_ALLOCA_H for GNU compiler
based build. (Thanks to tmr111116 on github)
2013-11-09 Anthony Green <green@moxielogic.com>
* m4/libtool.m4: Refresh.
* configure, Makefile.in: Rebuilt.
* README: Add more notes about next release.
2013-11-09 Shigeharu TAKENO <shige@iee.niit.ac.jp>
* m4/ax_gcc_archflag.m4 (ax_gcc_arch): Don't recognize
UltraSPARC-IIi as ultrasparc3.
2013-11-06 Mark Kettenis <kettenis@gnu.org>
* src/x86/freebsd.S (ffi_call_SYSV): Align the stack pointer to
16-bytes.
2013-11-06 Konstantin Belousov <kib@freebsd.org>
* src/x86/freebsd.S (ffi_closure_raw_SYSV): Mark the assembler
source as not requiring executable stack.
2013-11-02 Anthony Green <green@moxielogic.com>
* doc/libffi.texi (The Basics): Clarify return value buffer size
requirements. Also, NULL result buffer pointers are no longer
supported.
* doc/libffi.info: Rebuilt.
2013-11-02 Mischa Jonker <mjonker@synopsys.com>
* Makefile.am (nodist_libffi_la_SOURCES): Fix build error.
* Makefile.in: Rebuilt.
2013-11-02 David Schneider <david.schneider@bivab.de>
* src/arm/ffi.c: more robust argument handling for closures on arm hardfloat
* testsuite/libffi.call/many_mixed.c: New file.
* testsuite/libffi.call/cls_many_mixed_args.c: More tests.
2013-11-02 Vitaly Budovski
* src/x86/ffi.c (ffi_prep_cif_machdep): Don't align stack for win32.
2013-10-23 Mark H Weaver <mhw@netris.org>
* src/mips/ffi.c: Fix handling of uint32_t arguments on the
MIPS N32 ABI.
2013-10-13 Sandra Loosemore <sandra@codesourcery.com>
* README: Add Nios II to table of supported platforms.
* Makefile.am (EXTRA_DIST): Add nios2 files.
(nodist_libffi_la_SOURCES): Likewise.
* Makefile.in: Regenerated.
* configure.ac (nios2*-linux*): New host.
(NIOS2): Add AM_CONDITIONAL.
* configure: Regenerated.
* src/nios2/ffi.c: New.
* src/nios2/ffitarget.h: New.
* src/nios2/sysv.S: New.
* src/prep_cif.c (initialize_aggregate): Handle extra structure
alignment via FFI_AGGREGATE_ALIGNMENT.
(ffi_prep_cif_core): Conditionalize structure return for NIOS2.
2013-10-10 Sandra Loosemore <sandra@codesourcery.com>
* testsuite/libffi.call/cls_many_mixed_args.c (cls_ret_double_fn):
Fix uninitialized variable.
2013-10-11 Marcus Shawcroft <marcus.shawcroft@arm.com>
* testsuite/libffi.call/many.c (many): Replace * with +.
2013-10-08 Ondřej Bílka <neleai@seznam.cz>
* src/aarch64/ffi.c, src/aarch64/sysv.S, src/arm/ffi.c,
src/arm/gentramp.sh, src/bfin/sysv.S, src/closures.c,
src/dlmalloc.c, src/ia64/ffi.c, src/microblaze/ffi.c,
src/microblaze/sysv.S, src/powerpc/darwin_closure.S,
src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/sh/ffi.c,
src/tile/tile.S, testsuite/libffi.call/nested_struct11.c: Fix
spelling errors.
2013-10-08 Anthony Green <green@moxielogic.com>
* aclocal.m4, compile, config.guess, config.sub, depcomp,
install-sh, mdate-sh, missing, texinfo.tex: Update from upstream.
* configure.ac: Update version to 3.0.14-rc0.
* Makefile.in, configure, Makefile.in, include/Makefile.in,
man/Makefile.in, testsuite/Makefile.in: Rebuilt.
* README: Mention M88K and VAX.
2013-07-15 Miod Vallat <miod@openbsd.org>
* Makefile.am,
configure.ac,
src/m88k/ffi.c,
src/m88k/ffitarget.h,
src/m88k/obsd.S,
src/vax/elfbsd.S,
src/vax/ffi.c,
src/vax/ffitarget.h: Add m88k and vax support.
2013-06-24 Alan Modra <amodra@gmail.com>
* src/powerpc/ffi.c (ffi_prep_args_SYSV): Move var declaration
before statements.
(ffi_prep_args64): Support little-endian.
(ffi_closure_helper_SYSV, ffi_closure_helper_LINUX64): Likewise.
* src/powerpc/linux64_closure.S (ffi_closure_LINUX64): Likewise.
* src/powerpc/ppc_closure.S (ffi_closure_SYSV): Likewise.
2013-06-12 Mischa Jonker <mjonker@synopsys.com>
* configure.ac: Add support for ARC.
* Makefile.am: Likewise.
* README: Add ARC details.
* src/arc/arcompact.S: New.
* src/arc/ffi.c: Likewise.
* src/arc/ffitarget.h: Likewise.
2013-03-28 David Schneider <david.schneider@bivab.de>
* src/arm/ffi.c: Fix support for ARM hard-float calling convention.
* src/arm/sysv.S: call different methods for SYSV and VFP ABIs.
* testsuite/libffi.call/cls_many_mixed_args.c: testcase for a closure with
mixed arguments, many doubles.
* testsuite/libffi.call/many_double.c: testcase for calling a function using
more than 8 doubles.
* testcase/libffi.call/many.c: use absolute value to check result against an
epsilon
2013-03-17 Anthony Green <green@moxielogic.com>
* README: Update for 3.0.13.
* configure.ac: Ditto.
* configure: Rebuilt.
* doc/*: Update version.
2013-03-17 Dave Korn <dave.korn.cygwin@gmail.com>
* src/closures.c (is_emutramp_enabled
[!FFI_MMAP_EXEC_EMUTRAMP_PAX]): Move default definition outside
enclosing #if scope.
2013-03-17 Anthony Green <green@moxielogic.com>
* configure.ac: Only modify toolexecdir in certain cases.
* configure: Rebuilt.
2013-03-16 Gilles Talis <gilles.talis@gmail.com>
* src/powerpc/ffi.c (ffi_prep_args_SYSV): Don't use
fparg_count,etc on __NO_FPRS__ targets.
2013-03-16 Alan Hourihane <alanh@fairlite.co.uk>
* src/m68k/sysv.S (epilogue): Don't use extb instruction on
m680000 machines.
2013-03-16 Alex Gaynor <alex.gaynor@gmail.com>
* src/x86/ffi.c (ffi_prep_cif_machdep): Always align stack.
2013-03-13 Markos Chandras <markos.chandras@imgtec.com>
* configure.ac: Add support for Imagination Technologies Meta.
* Makefile.am: Likewise.
* README: Add Imagination Technologies Meta details.
* src/metag/ffi.c: New.
* src/metag/ffitarget.h: Likewise.
* src/metag/sysv.S: Likewise.
2013-02-24 Andreas Schwab <schwab@linux-m68k.org>
* doc/libffi.texi (Structures): Fix missing category argument of
@deftp.
2013-02-11 Anthony Green <green@moxielogic.com>
* configure.ac: Update release number to 3.0.12.
* configure: Rebuilt.
* README: Update release info.
2013-02-10 Anthony Green <green@moxielogic.com>
* README: Add Moxie.
* src/moxie/ffi.c: Created.
* src/moxie/eabi.S: Created.
* src/moxie/ffitarget.h: Created.
* Makefile.am (nodist_libffi_la_SOURCES): Add Moxie.
* Makefile.in: Rebuilt.
* configure.ac: Add Moxie.
* configure: Rebuilt.
* testsuite/libffi.call/huge_struct.c: Disable format string
warnings for moxie*-*-elf tests.
2013-02-10 Anthony Green <green@moxielogic.com>
* Makefile.am (LTLDFLAGS): Fix reference.
* Makefile.in: Rebuilt.
2013-02-10 Anthony Green <green@moxielogic.com>
* README: Update supported platforms. Update test results link.
2013-02-09 Anthony Green <green@moxielogic.com>
* testsuite/libffi.call/negint.c: Remove forced -O2.
* testsuite/libffi.call/many2.c (foo): Remove GCCism.
* testsuite/libffi.call/ffitest.h: Add default PRIuPTR definition.
* src/sparc/v8.S (ffi_closure_v8): Import ancient ulonglong
closure return type fix developed by Martin v. Löwis for cpython
fork.
2013-02-08 Andreas Tobler <andreast@fgznet.ch>
* src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix small struct
support.
* src/powerpc/sysv.S: Ditto.
2013-02-08 Anthony Green <green@moxielogic.com>
* testsuite/libffi.call/cls_longdouble.c: Remove xfail for
arm*-*-*.
2013-02-08 Anthony Green <green@moxielogic.com>
* src/sparc/ffi.c (ffi_prep_closure_loc): Fix cache flushing for GCC.
2013-02-08 Matthias Klose <doko@ubuntu.com>
* man/ffi_prep_cif.3: Clean up for debian linter.
2013-02-08 Peter Bergner <bergner@vnet.ibm.com>
* src/powerpc/ffi.c (ffi_prep_args_SYSV): Account for FP args pushed
on the stack.
2013-02-08 Anthony Green <green@moxielogic.com>
* Makefile.am (EXTRA_DIST): Add missing files.
* testsuite/Makefile.am (EXTRA_DIST): Ditto.
* Makefile.in: Rebuilt.
2013-02-08 Anthony Green <green@moxielogic.com>
* configure.ac: Move sparc asm config checks to within functions
for compatibility with sun tools.
* configure: Rebuilt.
* src/sparc/ffi.c (ffi_prep_closure_loc): Flush cache on v9
systems.
* src/sparc/v8.S (ffi_flush_icache): Implement a sparc v9 cache
flusher.
2013-02-08 Nathan Rossi <nathan.rossi@xilinx.com>
* src/microblaze/ffi.c (ffi_closure_call_SYSV): Fix handling of
small big-endian structures.
(ffi_prep_args): Ditto.
2013-02-07 Anthony Green <green@moxielogic.com>
* src/sparc/v8.S (ffi_call_v8): Fix typo from last patch
(effectively hiding ffi_call_v8).
2013-02-07 Anthony Green <green@moxielogic.com>
* configure.ac: Update bug reporting address.
* configure.in: Rebuild.
* src/sparc/v8.S (ffi_flush_icache): Out-of-line cache flusher for
Sun compiler.
* src/sparc/ffi.c (ffi_call): Remove warning.
Call ffi_flush_icache for non-GCC builds.
(ffi_prep_closure_loc): Use ffi_flush_icache.
* Makefile.am (EXTRA_DIST): Add libtool-ldflags.
* Makefile.in: Rebuilt.
* libtool-ldflags: New file.
2013-02-07 Daniel Schepler <dschepler@gmail.com>
* configure.ac: Correctly identify x32 systems as 64-bit.
* m4/libtool.m4: Remove libtool expr error.
* aclocal.m4, configure: Rebuilt.
2013-02-07 Anthony Green <green@moxielogic.com>
* configure.ac: Fix GCC usage test.
* configure: Rebuilt.
* README: Mention LLVM/GCC x86_64 issue.
* testsuite/Makefile.in: Rebuilt.
2013-02-07 Anthony Green <green@moxielogic.com>
* testsuite/libffi.call/cls_double_va.c (main): Replace // style
comments with /* */ for xlc compiler.
* testsuite/libffi.call/stret_large.c (main): Ditto.
* testsuite/libffi.call/stret_large2.c (main): Ditto.
* testsuite/libffi.call/nested_struct1.c (main): Ditto.
* testsuite/libffi.call/huge_struct.c (main): Ditto.
* testsuite/libffi.call/float_va.c (main): Ditto.
* testsuite/libffi.call/cls_struct_va1.c (main): Ditto.
* testsuite/libffi.call/cls_pointer_stack.c (main): Ditto.
* testsuite/libffi.call/cls_pointer.c (main): Ditto.
* testsuite/libffi.call/cls_longdouble_va.c (main): Ditto.
2013-02-06 Anthony Green <green@moxielogic.com>
* man/ffi_prep_cif.3: Clean up for debian lintian checker.
2013-02-06 Anthony Green <green@moxielogic.com>
* Makefile.am (pkgconfigdir): Add missing pkgconfig install bits.
* Makefile.in: Rebuild.
2013-02-02 Mark H Weaver <mhw@netris.org>
* src/x86/ffi64.c (ffi_call): Sign-extend integer arguments passed
via general purpose registers.
2013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
* README: Add MicroBlaze details.
* Makefile.am: Add MicroBlaze support.
* configure.ac: Likewise.
* src/microblaze/ffi.c: New.
* src/microblaze/ffitarget.h: Likewise.
* src/microblaze/sysv.S: Likewise.
2013-01-21 Nathan Rossi <nathan.rossi@xilinx.com>
* testsuite/libffi.call/return_uc.c: Fixed issue.
2013-01-21 Chris Zankel <chris@zankel.net>
* README: Add Xtensa support.
* Makefile.am: Likewise.
* configure.ac: Likewise.
* Makefile.in Regenerate.
* configure: Likewise.
* src/prep_cif.c: Handle Xtensa.
* src/xtensa: New directory.
* src/xtensa/ffi.c: New file.
* src/xtensa/ffitarget.h: Ditto.
* src/xtensa/sysv.S: Ditto.
2013-01-11 Anthony Green <green@moxielogic.com>
* src/powerpc/ffi_darwin.c (ffi_prep_args): Replace // style
comments with /* */ for xlc compiler.
* src/powerpc/aix.S (ffi_call_AIX): Ditto.
* testsuite/libffi.call/ffitest.h (allocate_mmap): Delete
deprecated inline function.
* testsuite/libffi.special/ffitestcxx.h: Ditto.
* README: Add update for AIX support.
2013-01-11 Anthony Green <green@moxielogic.com>
* configure.ac: Robustify pc relative reloc check.
* m4/ax_cc_maxopt.m4: Don't -malign-double. This is an ABI
changing option for 32-bit x86.
* aclocal.m4, configure: Rebuilt.
* README: Update supported target list.
2013-01-10 Anthony Green <green@moxielogic.com>
* README (tested): Add Compiler column to table.
2013-01-10 Anthony Green <green@moxielogic.com>
* src/x86/ffi64.c (struct register_args): Make sse array and array
of unions for sunpro compiler compatibility.
2013-01-10 Anthony Green <green@moxielogic.com>
* configure.ac: Test target platform size_t size. Handle both 32
and 64-bit builds for x86_64-* and i?86-* targets (allowing for
CFLAG option to change default settings).
* configure, aclocal.m4: Rebuilt.
2013-01-10 Anthony Green <green@moxielogic.com>
* testsuite/libffi.special/special.exp: Only run exception
handling tests when using GNU compiler.
* m4/ax_compiler_vendor.m4: New file.
* configure.ac: Test for compiler vendor and don't use
AX_CFLAGS_WARN_ALL with the sun compiler.
* aclocal.m4, configure: Rebuilt.
2013-01-10 Anthony Green <green@moxielogic.com>
* include/ffi_common.h: Don't use GCCisms to define types when
building with the SUNPRO compiler.
2013-01-10 Anthony Green <green@moxielogic.com>
* configure.ac: Put local.exp in the right place.
* configure: Rebuilt.
* src/x86/ffi.c: Update comment about regparm function attributes.
* src/x86/sysv.S (ffi_closure_SYSV): The SUNPRO compiler requires
that all function arguments be passed on the stack (no regparm
support).
2013-01-08 Anthony Green <green@moxielogic.com>
* configure.ac: Generate local.exp. This sets CC_FOR_TARGET
when we are using the vendor compiler.
* testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): Point to
../local.exp.
* configure, testsuite/Makefile.in: Rebuilt.
* testsuite/libffi.call/call.exp: Run tests with different
options, depending on whether or not we are using gcc or the
vendor compiler.
* testsuite/lib/libffi.exp (libffi-init): Set using_gcc based on
whether or not we are building/testing with gcc.
2013-01-08 Anthony Green <green@moxielogic.com>
* configure.ac: Switch x86 solaris target to X86 by default.
* configure: Rebuilt.
2013-01-08 Anthony Green <green@moxielogic.com>
* configure.ac: Fix test for read-only eh_frame.
* configure: Rebuilt.
2013-01-08 Anthony Green <green@moxielogic.com>
* src/x86/sysv.S, src/x86/unix64.S: Only emit DWARF unwind info
when building with the GNU toolchain.
* testsuite/libffi.call/ffitest.h (CHECK): Fix for Solaris vendor
compiler.
2013-01-07 Thorsten Glaser <tg@mirbsd.org>
* testsuite/libffi.call/cls_uchar_va.c,
testsuite/libffi.call/cls_ushort_va.c,
testsuite/libffi.call/va_1.c: Testsuite fixes.
2013-01-07 Thorsten Glaser <tg@mirbsd.org>
* src/m68k/ffi.c (CIF_FLAGS_SINT8, CIF_FLAGS_SINT16): Define.
(ffi_prep_cif_machdep): Fix 8-bit and 16-bit signed calls.
* src/m68k/sysv.S (ffi_call_SYSV, ffi_closure_SYSV): Ditto.
2013-01-04 Anthony Green <green@moxielogic.com>
* Makefile.am (AM_CFLAGS): Don't automatically add -fexceptions
and -Wall. This is set in the configure script after testing for
GCC.
* Makefile.in: Rebuilt.
2013-01-02 rofl0r <https://github.com/rofl0r>
* src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix build error on ppc
when long double == double.
2013-01-02 Reini Urban <rurban@x-ray.at>
* Makefile.am (libffi_la_LDFLAGS): Add -no-undefined to LDFLAGS
(required for shared libs on cygwin/mingw).
* Makefile.in: Rebuilt.
2012-10-31 Alan Modra <amodra@gmail.co>
* src/powerpc/linux64_closure.S: Add new ABI support.
* src/powerpc/linux64.S: Likewise.
2012-10-30 Magnus Granberg <zorry@gentoo.org>
Pavel Labushev <pavel.labushev@runbox.ru>
* configure.ac: New options pax_emutramp
* configure, fficonfig.h.in: Regenerated
* src/closures.c: New function emutramp_enabled_check() and
checks.
2012-10-30 Frederick Cheung <frederick.cheung@gmail.com>
* configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
lion) and future version.
* configure: Rebuild.
2012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
Marcus Shawcroft <marcus.shawcroft at arm.com>
* README: Add details of aarch64 port.
* src/aarch64/ffi.c: New.
* src/aarch64/ffitarget.h: Likewise.
* src/aarch64/sysv.S: Likewise.
* Makefile.am: Support aarch64.
* configure.ac: Support aarch64.
* Makefile.in, configure: Rebuilt.
2012-10-30 James Greenhalgh <james.greenhalgh at arm.com>
Marcus Shawcroft <marcus.shawcroft at arm.com>
* testsuite/lib/libffi.exp: Add support for aarch64.
* testsuite/libffi.call/cls_struct_va1.c: New.
* testsuite/libffi.call/cls_uchar_va.c: Likewise.
* testsuite/libffi.call/cls_uint_va.c: Likewise.
* testsuite/libffi.call/cls_ulong_va.c: Likewise.
* testsuite/libffi.call/cls_ushort_va.c: Likewise.
* testsuite/libffi.call/nested_struct11.c: Likewise.
* testsuite/libffi.call/uninitialized.c: Likewise.
* testsuite/libffi.call/va_1.c: Likewise.
* testsuite/libffi.call/va_struct1.c: Likewise.
* testsuite/libffi.call/va_struct2.c: Likewise.
* testsuite/libffi.call/va_struct3.c: Likewise.
2012-10-12 Walter Lee <walt@tilera.com>
* Makefile.am: Add TILE-Gx/TILEPro support.
* configure.ac: Likewise.
* Makefile.in: Regenerate.
* configure: Likewise.
* src/prep_cif.c (ffi_prep_cif_core): Handle TILE-Gx/TILEPro.
* src/tile: New directory.
* src/tile/ffi.c: New file.
* src/tile/ffitarget.h: Ditto.
* src/tile/tile.S: Ditto.
2012-10-12 Matthias Klose <doko@ubuntu.com>
* generate-osx-source-and-headers.py: Normalize whitespace.
2012-09-14 David Edelsohn <dje.gcc@gmail.com>
* configure: Regenerated.
2012-08-26 Andrew Pinski <apinski@cavium.com>
PR libffi/53014
* src/mips/ffi.c (ffi_prep_closure_loc): Allow n32 with soft-float and n64 with
soft-float.
2012-08-08 Uros Bizjak <ubizjak@gmail.com>
* src/s390/ffi.c (ffi_prep_closure_loc): Don't ASSERT ABI test,
just return FFI_BAD_ABI when things are wrong.
2012-07-18 H.J. Lu <hongjiu.lu@intel.com>
PR libffi/53982
PR libffi/53973
* src/x86/ffitarget.h: Check __ILP32__ instead of __LP64__ for x32.
(FFI_SIZEOF_JAVA_RAW): Defined to 4 for x32.
2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated.
2012-05-05 Nicolas Lelong
* libffi.xcodeproj/project.pbxproj: Fixes.
* README: Update for iOS builds.
2012-04-23 Alexandre Keunecke I. de Mendonca <alexandre.keunecke@gmail.com>
* configure.ac: Add Blackfin/sysv support
* Makefile.am: Add Blackfin/sysv support
* src/bfin/ffi.c: Add Blackfin/sysv support
* src/bfin/ffitarget.h: Add Blackfin/sysv support
2012-04-11 Anthony Green <green@moxielogic.com>
* Makefile.am (EXTRA_DIST): Add new script.
* Makefile.in: Rebuilt.
2012-04-11 Zachary Waldowski <zwaldowski@gmail.com>
* generate-ios-source-and-headers.py,
libffi.xcodeproj/project.pbxproj: Support a Mac static library via
Xcode. Set iOS compatibility to 4.0. Move iOS trampoline
generation into an Xcode "run script" phase. Include both as
Xcode build scripts. Don't always regenerate config files.
2012-04-10 Anthony Green <green@moxielogic.com>
* src/powerpc/ffi_darwin.c (ffi_prep_args): Add missing semicolon.
2012-04-06 Anthony Green <green@moxielogic.com>
* Makefile.am (EXTRA_DIST): Add new iOS/xcode files.
* Makefile.in: Rebuilt.
2012-04-06 Mike Lewis <mikelikespie@gmail.com>
* generate-ios-source-and-headers.py: New file.
* libffi.xcodeproj/project.pbxproj: New file.
* README: Update instructions on building iOS binary.
* build-ios.sh: Delete.
2012-04-06 Anthony Green <green@moxielogic.com>
* src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
compilers, then use it.
2012-04-06 H.J. Lu <hongjiu.lu@intel.com>
* m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.
2012-04-06 Anthony Green <green@moxielogic.com>
* testsuite/Makefile.am (EXTRA_DIST): Add missing test cases.
* testsuite/Makefile.in: Rebuilt.
2012-04-05 Zachary Waldowski <zwaldowski@gmail.com>
* include/ffi.h.in: Add missing trampoline table fields.
* src/arm/sysv.S: Fix ENTRY definition, and wrap symbol references
in CNAME.
* src/x86/ffi.c: Wrap Windows specific code in ifdefs.
2012-04-02 Peter Bergner <bergner@vnet.ibm.com>
* src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
Silence casting pointer to integer of different size warning.
Delete goto to previously deleted label.
(ffi_call): Silence possibly undefined warning.
(ffi_closure_helper_SYSV): Declare variable type.
2012-04-02 Peter Rosin <peda@lysator.liu.se>
* src/x86/win32.S (ffi_call_win32): Sign/zero extend the return
value in the Intel version as is already done for the AT&T version.
(ffi_closure_SYSV): Likewise.
(ffi_closure_raw_SYSV): Likewise.
(ffi_closure_STDCALL): Likewise.