Commit dfadfb19853c57c8623c436d0ef2bdafab24b433

Anthony Green 2012-10-31T06:46:41

Rebase for ppc64 fix

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
diff --git a/.pc/aarch64/ChangeLog b/.pc/aarch64/ChangeLog
index 596609c..51ac025 100644
--- a/.pc/aarch64/ChangeLog
+++ b/.pc/aarch64/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-10-12  Walter Lee  <walt@tilera.com>
 
         * Makefile.am: Add TILE-Gx/TILEPro support.
diff --git a/.pc/aix-fix/ChangeLog b/.pc/aix-fix/ChangeLog
index 9d31a06..56d7725 100644
--- a/.pc/aix-fix/ChangeLog
+++ b/.pc/aix-fix/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/apple-fixes/ChangeLog b/.pc/apple-fixes/ChangeLog
index 54d1e6c..08a516d 100644
--- a/.pc/apple-fixes/ChangeLog
+++ b/.pc/apple-fixes/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/bfin/ChangeLog b/.pc/bfin/ChangeLog
index 7a57f0b..84d1580 100644
--- a/.pc/bfin/ChangeLog
+++ b/.pc/bfin/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/darwin-missing-semi/ChangeLog b/.pc/darwin-missing-semi/ChangeLog
index 27bc680..d6c8f02 100644
--- a/.pc/darwin-missing-semi/ChangeLog
+++ b/.pc/darwin-missing-semi/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/darwin12/ChangeLog b/.pc/darwin12/ChangeLog
index 3c972c1..f1624db 100644
--- a/.pc/darwin12/ChangeLog
+++ b/.pc/darwin12/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-10-30  James Greenhalgh  <james.greenhalgh at arm.com>
             Marcus Shawcroft  <marcus.shawcroft at arm.com>
 
diff --git a/.pc/dist-tests/ChangeLog b/.pc/dist-tests/ChangeLog
index 3103d48..f35bba3 100644
--- a/.pc/dist-tests/ChangeLog
+++ b/.pc/dist-tests/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/emutramp/ChangeLog b/.pc/emutramp/ChangeLog
index 5646484..fcb7c97 100644
--- a/.pc/emutramp/ChangeLog
+++ b/.pc/emutramp/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-10-30  Frederick Cheung  <frederick.cheung@gmail.com>
 
 	* configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
diff --git a/.pc/emutramp/fficonfig.h.in b/.pc/emutramp/fficonfig.h.in
deleted file mode 100644
index b54b273..0000000
--- a/.pc/emutramp/fficonfig.h.in
+++ /dev/null
@@ -1,196 +0,0 @@
-/* fficonfig.h.in.  Generated from configure.ac by autoheader.  */
-
-/* Define if building universal (internal helper macro) */
-#undef AC_APPLE_UNIVERSAL_BUILD
-
-/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
-   systems. This function is required for `alloca.c' support on those systems.
-   */
-#undef CRAY_STACKSEG_END
-
-/* Define to 1 if using `alloca.c'. */
-#undef C_ALLOCA
-
-/* Define to the flags needed for the .section .eh_frame directive. */
-#undef EH_FRAME_FLAGS
-
-/* Define this if you want extra debugging. */
-#undef FFI_DEBUG
-
-/* Cannot use PROT_EXEC on this target, so, we revert to alternative means */
-#undef FFI_EXEC_TRAMPOLINE_TABLE
-
-/* Cannot use malloc on this target, so, we revert to alternative means */
-#undef FFI_MMAP_EXEC_WRIT
-
-/* Define this is you do not want support for the raw API. */
-#undef FFI_NO_RAW_API
-
-/* Define this is you do not want support for aggregate types. */
-#undef FFI_NO_STRUCTS
-
-/* Define to 1 if you have `alloca', as a function or macro. */
-#undef HAVE_ALLOCA
-
-/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
-   */
-#undef HAVE_ALLOCA_H
-
-/* Define if your assembler supports .ascii. */
-#undef HAVE_AS_ASCII_PSEUDO_OP
-
-/* Define if your assembler supports .cfi_* directives. */
-#undef HAVE_AS_CFI_PSEUDO_OP
-
-/* Define if your assembler supports .register. */
-#undef HAVE_AS_REGISTER_PSEUDO_OP
-
-/* Define if your assembler and linker support unaligned PC relative relocs.
-   */
-#undef HAVE_AS_SPARC_UA_PCREL
-
-/* Define if your assembler supports .string. */
-#undef HAVE_AS_STRING_PSEUDO_OP
-
-/* Define if your assembler supports unwind section type. */
-#undef HAVE_AS_X86_64_UNWIND_SECTION_TYPE
-
-/* Define if your assembler supports PC relative relocs. */
-#undef HAVE_AS_X86_PCREL
-
-/* Define to 1 if you have the <dlfcn.h> header file. */
-#undef HAVE_DLFCN_H
-
-/* Define if __attribute__((visibility("hidden"))) is supported. */
-#undef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define if you have the long double type and it is bigger than a double */
-#undef HAVE_LONG_DOUBLE
-
-/* Define to 1 if you have the `memcpy' function. */
-#undef HAVE_MEMCPY
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define to 1 if you have the `mmap' function. */
-#undef HAVE_MMAP
-
-/* Define if mmap with MAP_ANON(YMOUS) works. */
-#undef HAVE_MMAP_ANON
-
-/* Define if mmap of /dev/zero works. */
-#undef HAVE_MMAP_DEV_ZERO
-
-/* Define if read-only mmap of a plain file works. */
-#undef HAVE_MMAP_FILE
-
-/* Define if .eh_frame sections should be read-only. */
-#undef HAVE_RO_EH_FRAME
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define to 1 if you have the <sys/mman.h> header file. */
-#undef HAVE_SYS_MMAN_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Define to the sub-directory in which libtool stores uninstalled libraries.
-   */
-#undef LT_OBJDIR
-
-/* Define to 1 if your C compiler doesn't accept -c and -o together. */
-#undef NO_MINUS_C_MINUS_O
-
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the home page for this package. */
-#undef PACKAGE_URL
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* The size of `double', as computed by sizeof. */
-#undef SIZEOF_DOUBLE
-
-/* The size of `long double', as computed by sizeof. */
-#undef SIZEOF_LONG_DOUBLE
-
-/* If using the C implementation of alloca, define if you know the
-   direction of stack growth for your system; otherwise it will be
-   automatically deduced at runtime.
-	STACK_DIRECTION > 0 => grows toward higher addresses
-	STACK_DIRECTION < 0 => grows toward lower addresses
-	STACK_DIRECTION = 0 => direction of growth unknown */
-#undef STACK_DIRECTION
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* Define this if you are using Purify and want to suppress spurious messages.
-   */
-#undef USING_PURIFY
-
-/* Version number of package */
-#undef VERSION
-
-/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
-   significant byte first (like Motorola and SPARC, unlike Intel). */
-#if defined AC_APPLE_UNIVERSAL_BUILD
-# if defined __BIG_ENDIAN__
-#  define WORDS_BIGENDIAN 1
-# endif
-#else
-# ifndef WORDS_BIGENDIAN
-#  undef WORDS_BIGENDIAN
-# endif
-#endif
-
-
-#ifdef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
-#ifdef LIBFFI_ASM
-#define FFI_HIDDEN(name) .hidden name
-#else
-#define FFI_HIDDEN __attribute__ ((visibility ("hidden")))
-#endif
-#else
-#ifdef LIBFFI_ASM
-#define FFI_HIDDEN(name)
-#else
-#define FFI_HIDDEN
-#endif
-#endif
-
diff --git a/.pc/icc128/ChangeLog b/.pc/icc128/ChangeLog
index af657c6..9ff9d6f 100644
--- a/.pc/icc128/ChangeLog
+++ b/.pc/icc128/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/ios-fix/ChangeLog b/.pc/ios-fix/ChangeLog
index 1209bcb..1ac5158 100644
--- a/.pc/ios-fix/ChangeLog
+++ b/.pc/ios-fix/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/mint/ChangeLog b/.pc/mint/ChangeLog
index ef326b2..7fabdab 100644
--- a/.pc/mint/ChangeLog
+++ b/.pc/mint/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/msvc-changes/ChangeLog b/.pc/msvc-changes/ChangeLog
index 12a4ff2..56ce480 100644
--- a/.pc/msvc-changes/ChangeLog
+++ b/.pc/msvc-changes/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/tile/ChangeLog b/.pc/tile/ChangeLog
index e3535bd..96b0952 100644
--- a/.pc/tile/ChangeLog
+++ b/.pc/tile/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-10-12  Matthias Klose  <doko@ubuntu.com>
 
 	* generate-osx-source-and-headers.py: Normalize whitespace.
diff --git a/.pc/update-disty/ChangeLog b/.pc/update-disty/ChangeLog
index 329e7ed..ad74009 100644
--- a/.pc/update-disty/ChangeLog
+++ b/.pc/update-disty/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/vararg_float_test_fix/ChangeLog b/.pc/vararg_float_test_fix/ChangeLog
index b58ca5a..76c469f 100644
--- a/.pc/vararg_float_test_fix/ChangeLog
+++ b/.pc/vararg_float_test_fix/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/vfp-eabi/ChangeLog b/.pc/vfp-eabi/ChangeLog
index 0033179..5e8f892 100644
--- a/.pc/vfp-eabi/ChangeLog
+++ b/.pc/vfp-eabi/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/whitespace-fix/ChangeLog b/.pc/whitespace-fix/ChangeLog
index 6984b0a..2d7d98a 100644
--- a/.pc/whitespace-fix/ChangeLog
+++ b/.pc/whitespace-fix/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/win32-return-sign/ChangeLog b/.pc/win32-return-sign/ChangeLog
index f68982b..4e4fd7a 100644
--- a/.pc/win32-return-sign/ChangeLog
+++ b/.pc/win32-return-sign/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/win32/ChangeLog b/.pc/win32/ChangeLog
index 9b188bf..1f68217 100644
--- a/.pc/win32/ChangeLog
+++ b/.pc/win32/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/win32_tests/ChangeLog b/.pc/win32_tests/ChangeLog
index 00161a0..2008d86 100644
--- a/.pc/win32_tests/ChangeLog
+++ b/.pc/win32_tests/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/x32libtool/ChangeLog b/.pc/x32libtool/ChangeLog
index e0e3f97..f93ca07 100644
--- a/.pc/x32libtool/ChangeLog
+++ b/.pc/x32libtool/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/xcode-improvements/ChangeLog b/.pc/xcode-improvements/ChangeLog
index 8087dfc..98b1864 100644
--- a/.pc/xcode-improvements/ChangeLog
+++ b/.pc/xcode-improvements/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/.pc/xcode/ChangeLog b/.pc/xcode/ChangeLog
index 29c7402..0c60f66 100644
--- a/.pc/xcode/ChangeLog
+++ b/.pc/xcode/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* src/powerpc/linux64_closure.S: Add new ABI support.
+	* src/powerpc/linux64.S: Likewise.
+
 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
 
 	* configure: Regenerated.
diff --git a/ChangeLog b/ChangeLog
index 176b51b..ccbd9ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-31  Alan Modra  <amodra@gmail.com>
+
+	* 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>
 
diff --git a/patches/aarch64 b/patches/aarch64
index daada51..50d0ba7 100644
--- a/patches/aarch64
+++ b/patches/aarch64
@@ -2596,7 +2596,10 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -1,3 +1,27 @@
+@@ -3,6 +3,30 @@
+ 	* src/powerpc/linux64_closure.S: Add new ABI support.
+ 	* src/powerpc/linux64.S: Likewise.
+ 
 +2012-10-30  James Greenhalgh  <james.greenhalgh at arm.com>
 +            Marcus Shawcroft  <marcus.shawcroft at arm.com>
 +
diff --git a/patches/aix-fix b/patches/aix-fix
index 4659597..7f2a090 100644
--- a/patches/aix-fix
+++ b/patches/aix-fix
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -32,6 +32,11 @@
+@@ -37,6 +37,11 @@
  	(ffi_call): Silence possibly undefined warning.
  	(ffi_closure_helper_SYSV): Declare variable type.
  
diff --git a/patches/apple-fixes b/patches/apple-fixes
index ac936de..eff6b60 100644
--- a/patches/apple-fixes
+++ b/patches/apple-fixes
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,13 @@
+@@ -29,6 +29,13 @@
  
  	* configure: Regenerated.
  
diff --git a/patches/bfin b/patches/bfin
index 1b573be..3c5f3ac 100644
--- a/patches/bfin
+++ b/patches/bfin
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,13 @@
+@@ -29,6 +29,13 @@
  
  	* configure: Regenerated.
  
diff --git a/patches/darwin-missing-semi b/patches/darwin-missing-semi
index 471947e..c043af5 100644
--- a/patches/darwin-missing-semi
+++ b/patches/darwin-missing-semi
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,10 @@
+@@ -29,6 +29,10 @@
  
  	* configure: Regenerated.
  
diff --git a/patches/darwin12 b/patches/darwin12
index aadc1e7..7655733 100644
--- a/patches/darwin12
+++ b/patches/darwin12
@@ -2,7 +2,10 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -1,3 +1,9 @@
+@@ -3,6 +3,12 @@
+ 	* src/powerpc/linux64_closure.S: Add new ABI support.
+ 	* src/powerpc/linux64.S: Likewise.
+ 
 +2012-10-30  Frederick Cheung  <frederick.cheung@gmail.com>
 +
 +	* configure.ac: Enable FFI_MAP_EXEC_WRIT for Darwin 12 (mountain
diff --git a/patches/dist-tests b/patches/dist-tests
index f7bd997..0acf85e 100644
--- a/patches/dist-tests
+++ b/patches/dist-tests
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,11 @@
+@@ -29,6 +29,11 @@
  
  	* configure: Regenerated.
  
diff --git a/patches/emutramp b/patches/emutramp
index c9dc834..6203a4b 100644
--- a/patches/emutramp
+++ b/patches/emutramp
@@ -2,7 +2,10 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -1,3 +1,11 @@
+@@ -3,6 +3,14 @@
+ 	* 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>
 +
diff --git a/patches/icc128 b/patches/icc128
index 5c2bda7..05980c7 100644
--- a/patches/icc128
+++ b/patches/icc128
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -26,6 +26,11 @@
+@@ -31,6 +31,11 @@
  
  2012-04-06  Anthony Green  <green@moxielogic.com>
  
diff --git a/patches/ios-fix b/patches/ios-fix
index 5aaa183..02aadef 100644
--- a/patches/ios-fix
+++ b/patches/ios-fix
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,11 @@
+@@ -29,6 +29,11 @@
  
  	* configure: Regenerated.
  
diff --git a/patches/mint b/patches/mint
index 42a02bc..85cf859 100644
--- a/patches/mint
+++ b/patches/mint
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,16 @@
+@@ -29,6 +29,16 @@
  
  	* configure: Regenerated.
  
@@ -19,7 +19,7 @@ Index: libffi/ChangeLog
  2012-04-02  Peter Bergner  <bergner@vnet.ibm.com>
  
  	* src/powerpc/ffi.c (ffi_prep_args_SYSV): Declare double_tmp.
-@@ -32,11 +42,6 @@
+@@ -37,11 +47,6 @@
  	(ffi_call): Silence possibly undefined warning.
  	(ffi_closure_helper_SYSV): Declare variable type.
  
diff --git a/patches/msvc-changes b/patches/msvc-changes
index 7d39762..f59bcf4 100644
--- a/patches/msvc-changes
+++ b/patches/msvc-changes
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,143 @@
+@@ -29,6 +29,143 @@
  
  	* configure: Regenerated.
  
@@ -163,7 +163,7 @@ Index: libffi/Makefile.in
 ===================================================================
 --- libffi.orig/Makefile.in
 +++ libffi/Makefile.in
-@@ -530,7 +530,7 @@ libffi_convenience_la_SOURCES = $(libffi
+@@ -543,7 +543,7 @@ libffi_convenience_la_SOURCES = $(libffi
  nodist_libffi_convenience_la_SOURCES = $(nodist_libffi_la_SOURCES)
  AM_CFLAGS = -g $(am__append_29)
  libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
diff --git a/patches/tile b/patches/tile
index 3721021..b433dd1 100644
--- a/patches/tile
+++ b/patches/tile
@@ -2,7 +2,10 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -1,3 +1,15 @@
+@@ -3,6 +3,18 @@
+ 	* src/powerpc/linux64_closure.S: Add new ABI support.
+ 	* src/powerpc/linux64.S: Likewise.
+ 
 +2012-10-12  Walter Lee  <walt@tilera.com>
 +
 +        * Makefile.am: Add TILE-Gx/TILEPro support.
diff --git a/patches/update-disty b/patches/update-disty
index e4f6f43..adcff3d 100644
--- a/patches/update-disty
+++ b/patches/update-disty
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,11 @@
+@@ -29,6 +29,11 @@
  
  	* configure: Regenerated.
  
diff --git a/patches/vararg_float_test_fix b/patches/vararg_float_test_fix
index 4af0f23..adc6331 100644
--- a/patches/vararg_float_test_fix
+++ b/patches/vararg_float_test_fix
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,12 @@
+@@ -29,6 +29,12 @@
  
  	* configure: Regenerated.
  
diff --git a/patches/vfp-eabi b/patches/vfp-eabi
index 5cb7543..e2db280 100644
--- a/patches/vfp-eabi
+++ b/patches/vfp-eabi
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -59,6 +59,14 @@
+@@ -64,6 +64,14 @@
  	* src/powerpc/ffi_darwin.c (ffi_prep_closure_loc): Fix AIX closure
  	support.
  
diff --git a/patches/whitespace-fix b/patches/whitespace-fix
index f325b60..6a661c1 100644
--- a/patches/whitespace-fix
+++ b/patches/whitespace-fix
@@ -2,7 +2,10 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -1,3 +1,7 @@
+@@ -3,6 +3,10 @@
+ 	* src/powerpc/linux64_closure.S: Add new ABI support.
+ 	* src/powerpc/linux64.S: Likewise.
+ 
 +2012-10-12  Matthias Klose  <doko@ubuntu.com>
 +
 +	* generate-osx-source-and-headers.py: Normalize whitespace.
diff --git a/patches/win32 b/patches/win32
index b3bdcbd..9a346e1 100644
--- a/patches/win32
+++ b/patches/win32
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,18 @@
+@@ -29,6 +29,18 @@
  
  	* configure: Regenerated.
  
diff --git a/patches/win32-return-sign b/patches/win32-return-sign
index 7814c55..59f9ab6 100644
--- a/patches/win32-return-sign
+++ b/patches/win32-return-sign
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -212,6 +212,14 @@
+@@ -217,6 +217,14 @@
  	(ffi_call): Silence possibly undefined warning.
  	(ffi_closure_helper_SYSV): Declare variable type.
  
diff --git a/patches/win32_tests b/patches/win32_tests
index 87dad70..7b62a41 100644
--- a/patches/win32_tests
+++ b/patches/win32_tests
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,13 @@
+@@ -29,6 +29,13 @@
  
  	* configure: Regenerated.
  
diff --git a/patches/x32libtool b/patches/x32libtool
index dc844a6..b9256b1 100644
--- a/patches/x32libtool
+++ b/patches/x32libtool
@@ -2,7 +2,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -29,6 +29,10 @@
+@@ -34,6 +34,10 @@
  	* src/x86/ffi64.c (UINT128): Define differently for Intel and GNU
  	compilers, then use it.
  
diff --git a/patches/xcode b/patches/xcode
index 7d6070b..1d3ac80 100644
--- a/patches/xcode
+++ b/patches/xcode
@@ -602,7 +602,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -26,6 +26,18 @@
+@@ -31,6 +31,18 @@
  
  2012-04-06  Anthony Green  <green@moxielogic.com>
  
diff --git a/patches/xcode-improvements b/patches/xcode-improvements
index 43e0f22..2b64371 100644
--- a/patches/xcode-improvements
+++ b/patches/xcode-improvements
@@ -14,7 +14,7 @@ Index: libffi/ChangeLog
 ===================================================================
 --- libffi.orig/ChangeLog
 +++ libffi/ChangeLog
-@@ -24,6 +24,14 @@
+@@ -29,6 +29,14 @@
  
  	* configure: Regenerated.
  
diff --git a/src/powerpc/linux64.S b/src/powerpc/linux64.S
index 57b56cb..f28da81 100644
--- a/src/powerpc/linux64.S
+++ b/src/powerpc/linux64.S
@@ -30,16 +30,25 @@
 #include <ffi.h>
 
 #ifdef __powerpc64__
-	.hidden	ffi_call_LINUX64, .ffi_call_LINUX64
-	.globl	ffi_call_LINUX64, .ffi_call_LINUX64
+	.hidden	ffi_call_LINUX64
+	.globl	ffi_call_LINUX64
 	.section	".opd","aw"
 	.align	3
 ffi_call_LINUX64:
+#ifdef _CALL_LINUX
+	.quad	.L.ffi_call_LINUX64,.TOC.@tocbase,0
+	.type	ffi_call_LINUX64,@function
+	.text
+.L.ffi_call_LINUX64:
+#else
+	.hidden	.ffi_call_LINUX64
+	.globl	.ffi_call_LINUX64
 	.quad	.ffi_call_LINUX64,.TOC.@tocbase,0
 	.size	ffi_call_LINUX64,24
 	.type	.ffi_call_LINUX64,@function
 	.text
 .ffi_call_LINUX64:
+#endif
 .LFB1:
 	mflr	%r0
 	std	%r28, -32(%r1)
@@ -58,7 +67,11 @@ ffi_call_LINUX64:
 
 	/* Call ffi_prep_args64.  */
 	mr	%r4, %r1
+#ifdef _CALL_LINUX
+	bl	ffi_prep_args64
+#else
 	bl	.ffi_prep_args64
+#endif
 
 	ld	%r0, 0(%r29)
 	ld	%r2, 8(%r29)
@@ -137,7 +150,11 @@ ffi_call_LINUX64:
 .LFE1:
 	.long	0
 	.byte	0,12,0,1,128,4,0,0
+#ifdef _CALL_LINUX
+	.size	ffi_call_LINUX64,.-.L.ffi_call_LINUX64
+#else
 	.size	.ffi_call_LINUX64,.-.ffi_call_LINUX64
+#endif
 
 	.section	.eh_frame,EH_FRAME_FLAGS,@progbits
 .Lframe1:
diff --git a/src/powerpc/linux64_closure.S b/src/powerpc/linux64_closure.S
index f7aa2c9..b1e1219 100644
--- a/src/powerpc/linux64_closure.S
+++ b/src/powerpc/linux64_closure.S
@@ -32,16 +32,24 @@
 
 #ifdef __powerpc64__
 	FFI_HIDDEN (ffi_closure_LINUX64)
-	FFI_HIDDEN (.ffi_closure_LINUX64)
-	.globl  ffi_closure_LINUX64, .ffi_closure_LINUX64
+	.globl  ffi_closure_LINUX64
 	.section        ".opd","aw"
 	.align  3
 ffi_closure_LINUX64:
+#ifdef _CALL_LINUX
+	.quad   .L.ffi_closure_LINUX64,.TOC.@tocbase,0
+	.type   ffi_closure_LINUX64,@function
+	.text
+.L.ffi_closure_LINUX64:
+#else
+	FFI_HIDDEN (.ffi_closure_LINUX64)
+	.globl  .ffi_closure_LINUX64
 	.quad   .ffi_closure_LINUX64,.TOC.@tocbase,0
 	.size   ffi_closure_LINUX64,24
 	.type   .ffi_closure_LINUX64,@function
 	.text
 .ffi_closure_LINUX64:
+#endif
 .LFB1:
 	# save general regs into parm save area
 	std	%r3, 48(%r1)
@@ -91,7 +99,11 @@ ffi_closure_LINUX64:
 	addi %r6, %r1, 128
 
 	# make the call
+#ifdef _CALL_LINUX
+	bl ffi_closure_helper_LINUX64
+#else
 	bl .ffi_closure_helper_LINUX64
+#endif
 .Lret:
 
 	# now r3 contains the return type
@@ -194,7 +206,11 @@ ffi_closure_LINUX64:
 .LFE1:
 	.long	0
 	.byte	0,12,0,1,128,0,0,0
+#ifdef _CALL_LINUX
+	.size	ffi_closure_LINUX64,.-.L.ffi_closure_LINUX64
+#else
 	.size	.ffi_closure_LINUX64,.-.ffi_closure_LINUX64
+#endif
 
 	.section	.eh_frame,EH_FRAME_FLAGS,@progbits
 .Lframe1: