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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
|
2006-12-22 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* java/io/natObjectInputStream.cc (allocateObject): Now method on
VMObjectStream.
(currentLoader): Removed.
* java/io/ObjectInputStream.java: Removed.
* java/io/VMObjectInputStream.java: New file.
* scripts/classes.pl (scan): Ignore .svn directories.
* gcj/javaprims.h: Updated.
2006-12-22 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.jni/register2.c: Include jni.h, not
register2.h.
* testsuite/libjava.cni/cni.exp (gcj_cni_build_headers):
Special-case shortfield.
2006-12-20 Andrew Haley <aph@redhat.com>
* java/lang/natClass.cc (getDeclaredAnnotations): Call
ClassLoader.getDeclaredAnnotations and
ClassLoader.putDeclaredAnnotations.
* java/lang/ClassLoader.java (AnnotationsKey): New class.
(getDeclaredAnnotations, putDeclaredAnnotations): New.
2006-12-19 Andrew Haley <aph@redhat.com>
* java/lang/natClassLoader.cc (_Jv_CheckABIVersion): Move here
from include/jvm.h.
Add BC ABI Version 1.
Throw a ClassFormatError if we're not ABI-compatible.
(_Jv_RegisterClasses): Throw a ClassFormatError if we're not
ABI-compatible.
(_Jv_RegisterClasses_Counted): Likewise.
(_Jv_NewClassFromInitializer): Likewise.
Call Class::initializerSize to get size of initializer struct.
* include/jvm.h (_Jv_CheckABIVersion): Move to natClassLoader.cc.
* java/lang/Class.h (Class::initializerSize): New function.
2006-12-18 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_build_headers):
Don't use jv-scan.
2006-12-18 Tom Tromey <tromey@redhat.com>
* HACKING: Updated.
* gnu/classpath/Configuration.java (CLASSPATH_VERSION): Now 0.93.
2006-12-15 Tom Tromey <tromey@redhat.com>
* configure, Makefile.in: Rebuilt.
* Makefile.am (gcjh.stamp): Use JAVA_MAINTAINER_MODE.
* configure.ac: Added --enable-java-maintainer-mode.
2006-12-15 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.compile: Removed.
2006-12-15 Andrew Haley <aph@redhat.com>
* Makefile.am (AM_MAKEFLAGS): Pass JAR to sub-make.
(libgcj_tools_la_GCJFLAGS): Pass -fsource-filename to gcj.
2006-12-14 Gary Benson <gbenson@redhat.com>
* include/java-stack.h (stackwalker_nnl_trace_fn,
GetStackWalkerFirstNonNullLoader): Declare.
* stacktrace.cc (stackwalker_nnl_trace_fn,
GetStackWalkerFirstNonNullLoader): New methods.
* gnu/classpath/natVMStackWalker.cc
(firstNonNullClassLoader): New method.
* gnu/classpath/VMStackWalker.java
(firstNonNullClassLoader): Replace with native method.
2006-12-13 Gary Benson <gbenson@redhat.com>
* stacktrace.cc (stackwalker_trace_fn,
GetStackWalkerCallingClass): Be less strict about caller.
* gnu/classpath/natVMStackWalker.cc
(getCallingClassLoader): New method.
* gnu/classpath/VMStackWalker.java
(getCallingClassLoader): Replace with native method.
2006-12-12 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* gnu/java/rmi/rmic/CompilerProcess.java: Removed.
* gnu/java/rmi/rmic/RMICException.java: Removed.
* gnu/java/rmi/rmic/Compiler.java: Removed.
* gnu/java/rmi/rmic/Compile_gcj.java: Removed.
* gnu/java/rmi/rmic/Compile_jikes.java: Removed.
* gnu/java/rmi/rmic/TabbedWriter.java: Removed.
* gnu/java/rmi/rmic/Compile_kjc.java: Removed.
* gnu/java/rmi/rmic/RMIC.java: Removed.
* Makefile.am (toolexeclib_LTLIBRARIES): Uncomment
libgcj-tools.la.
(jar_DATA): Uncomment libgcj-tools jar.
(libgcj_tools_la_SOURCES): Uncomment.
(libgcj_tools_la_GCJFLAGS): Likewise.
(libgcj_tools_la_LDFLAGS): Likewise.
(libgcj_tools_la_DEPENDENCIES): Likewise.
(libgcj_tools_la_LINK): Likewise.
(libgcj-tools-$(gcc_version).jar): Uncomment.
(bin_PROGRAMS): Add gappletviewer, gjarsigner, gkeytool, gjar,
gjavah, gnative2ascii, gorbd, grmid, gserialver, gtnameserv.
(gjar_SOURCES): New variable.
(gjar_LDFLAGS): Likewise.
(gjar_LINK): Likewise.
(gjar_LDADD): Likewise.
(gjar_DEPENDENCIES): Likewise.
(gjavah_SOURCES): Likewise.
(gjavah_LDFLAGS): Likewise.
(gjavah_LINK): Likewise.
(gjavah_LDADD): Likewise.
(gjavah_DEPENDENCIES): Likewise.
(gnative2ascii_SOURCES): Likewise.
(gnative2ascii_LDFLAGS): Likewise.
(gnative2ascii_LINK): Likewise.
(gnative2ascii_LDADD): Likewise.
(gnative2ascii_DEPENDENCIES): Likewise.
(gorbd_SOURCES): Likewise.
(gorbd_LDFLAGS): Likewise.
(gorbd_LINK): Likewise.
(gorbd_LDADD): Likewise.
(gorbd_DEPENDENCIES): Likewise.
(grmid_SOURCES): Likewise.
(grmid_LDFLAGS): Likewise.
(grmid_LINK): Likewise.
(grmid_LDADD): Likewise.
(grmid_DEPENDENCIES): Likewise.
(gserialver_SOURCES): Likewise.
(gserialver_LDFLAGS): Likewise.
(gserialver_LINK): Likewise.
(gserialver_LDADD): Likewise.
(gserialver_DEPENDENCIES): Likewise.
(gtnameserv_SOURCES): Likewise.
(gtnameserv_LDFLAGS): Likewise.
(gtnameserv_LINK): Likewise.
(gtnameserv_LDADD): Likewise.
(gtnameserv_DEPENDENCIES): Likewise.
(grmic_LDADD): Link against tools library.
(grmic_LDFLAGS): Changed --main.
(grmiregistry_LDADD): Link against tools library.
(grmiregistry_LDFLAGS): Changed --main.
(grmic_DEPENDENCIES): Updated.
(grmiregistry_DEPENDENCIES): Likewise.
2006-12-12 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* gnu/java/nio/FileLockImpl.java: New override.
* gnu/java/nio/SelectorProviderImpl.java: New override.
* gnu/java/nio/PipeImpl.java: New override.
* gnu/java/nio/SocketChannelSelectionKeyImpl.java: New override.
* gnu/java/nio/NIOSocket.java: New override.
* gnu/java/nio/SocketChannelSelectionKey.java: New override.
* java/io/FileDescriptor.java: New override.
* java/io/RandomAccessFile.java: New override.
* java/io/FileInputStream.java: New override.
* java/io/FileOutputStream.java: New override.
* configure.ac: Pass --disable-Werror, --disable-tool-wrappers to
Classpath configure.
* java/io/ObjectInputStream.java (readClassDescriptor): Don't pass
class loader to ObjectStreamField.
* java/net/DatagramSocket.java: New override.
* java/net/Socket.java: New override.
* java/net/MulticastSocket.java: New override.
* gnu/classpath/VMStackWalker.java (firstNonNullClassLoader): New
method from Classpath.
* java/lang/Class.java (newInstance): Fixed return type.
(forName): Likewise.
(getClasses): Likewise.
(getComponentType): Likewise.
(getConstructors): Likewise.
(getDeclaredClasses): Likewise.
(getDeclaredConstructors): Likewise.
(getDeclaringClass): Likewise.
(getInterfaces): Likewise.
(getSuperclass): Likewise.
(internalGetClasses): Genericized.
(getMethod): Likewise.
(isAssignableFrom): Likewise.
* java/util/zip/natDeflater.cc (getBytesWritten): Renamed.
(getBytesRead): Likewise.
* java/util/zip/Deflater.java (getBytesRead, getBytesWritten): New
methods.
(getTotalIn, getTotalOut): Rewrote.
* java/net/NetworkInterface.java: New override.
* java/lang/ClassLoader.java (defineClass): New overload from
Classpath.
2006-12-11 Gary Benson <gbenson@redhat.com>
* gcj/Makefile.in: Rebuilt.
2006-12-11 Gary Benson <gbenson@redhat.com>
* Makefile.in: Rebuilt.
* include/Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
2006-12-08 Mohan Embar <gnustuff@thisiscool.com>
* configure, Makefile.in: Rebuilt.
* configure.ac: (GCJ_FOR_ECJX) New substitution.
(host_exeext): Likewise.
(ENABLE_SHARED): New conditional,
* Makefile.am: Added GCJ_FOR_ECJX and GCJ_FOR_ECJX_LINK.
(install-exec-hook): Correctly rename ecjx to ecj1.
(ecjx_LINK, ecjx_LDFLAGS, ecjx_LDADD, ecjx_DEPENDENCIES): Define
as a function of whether we're doing a native and/or shared build.
2006-12-08 Mohan Embar <gnustuff@thisiscool.com>
* posix-threads.cc (_Jv_ThreadUnpark): Removed.
(ParkHelper::unpark): Ported from _Jv_ThreadUnpark.
(ParkHelper::deactivate): Implemented.
(_Jv_ThreadPark): Removed.
(ParkHelper::park): Ported from _Jv_ThreadPark; moved
mutex locking and unlocking to inside if statement.
* win32-threads.cc (compare_and_exchange): New helper function.
(_Jv_ThreadUnpark, _Jv_ThreadPark): Removed.
(ParkHelper::init): Implemented.
(ParkHelper::init_event): Implemented.
(ParkHelper::deactivate): Implemented.
(ParkHelper::destroy): Implemented.
(ParkHelper::unpark): Implemented.
(ParkHelper::park): Implemented.
* java/lang/natThread.cc (initialize_native): Use ParkHelper
instead of POSIX synchronization constructs.
(finalize_native): Likewise.
(interrupt): Use ParkHelper method instead of _Jv_ThreadUnpark().
(finish_): Use ParkHelper::deactivate().
* include/jvm.h (struct natThread): Use ParkHelper instead of POSIX
synchronization constructs.
* include/posix-threads.h: Include sysdep/locks.h
(_Jv_ThreadUnpark, _Jv_ThreadPark): Removed.
(ParkHelper): New struct.
(ParkHelper::init): Implemented.
(ParkHelper::destroy): Implemented.
* include/win32-threads.h (ParkHelper): New struct.
(TEXT): undefined this macro.
* sun/misc/natUnsafe.cc (unpark): Use ParkHelper instead of
_Jv_ThreadUnpark.
(park): Use ParkHelper instead of _Jv_ThreadPark.
2006-12-08 Ben Konrath <bkonrath@redhat.com>
PR libgcj/30110:
* Makefile.am: Add contents of classpath/external to src.zip.
* Makefile.in: Regenerate.
2006-12-07 Tom Tromey <tromey@redhat.com>
PR libgcj/30076:
* defineclass.cc (read_fields): Sort fields here.
(handleFieldsEnd): Removed.
(handleField): Added field map argument.
(struct _Jv_ClassReader): Updated.
(handleParameterAnnotations): Use writeInt for the length.
2006-12-07 Gary Benson <gbenson@redhat.com>
* include/java-stack.h (stackwalker_trace_fn,
GetStackWalkerCallingClass): Declare.
* stacktrace.cc (stackwalker_trace_fn,
GetStackWalkerCallingClass): New methods.
* gnu/classpath/natVMStackWalker.cc
(getCallingClass): Use the above.
* gnu/classpath/VMStackWalker.java
(getCallingClass): Replace with native method.
2006-12-06 Tom Tromey <tromey@redhat.com>
PR java/24938:
* sources.am, Makefile.in: Rebuilt.
* gnu/CORBA/DynAn/gnuDynValue.java: Removed.
* gnu/CORBA/DynAn/RecordAny.java: Removed.
* gnu/CORBA/DynAn/RecordAny.h: Rebuilt.
2006-12-06 Andrew Haley <aph@redhat.com>
* gcj/javaprims.h (_Jv_is_proxy): Declare.
* java/lang/reflect/natVMProxy.cc (_Jv_is_proxy): Define
(run_proxy): Register this proxy invocation with a _Jv_InterpFrame.
* include/java-stack.h (struct _Jv_StackFrame): Add proxyClass and
proxyMethod.
* stacktrace.cc (UnwindTraceFn): Add frame_proxy handling.
(getLineNumberForFrame): Likewise.
(FillInFrameInfo): Likewise.
2006-12-05 Andrew Haley <aph@redhat.com>
* Makefile.am: Add java/lang/reflect/natVMProxy.cc.
* java/lang/reflect/Method.java (exception_types, parameter_types,
return_type): Make package private.
* include/jvm.h (_Jv_makeUtf8Const(const char *s)): New function.
(_Jv_Linker::layout_vtable_methods): Given
public linkage.
(_Jv_Linker::search_method_in_class): Likewise.
* interpret.cc (_Jv_init_cif): Renamed from init_cif. Given
public linkage.
* include/java-interp.h (_Jv_init_cif): Likewise.
* java/lang/reflect/natVMProxy.cc: New file.
* java/lang/VMCompiler.java (precompiles): New method.
(compileClass): Use it.
* java/lang/reflect/VMProxy.java
(HAVE_NATIVE_GENERATE_PROXY_CLASS): true.
(generateProxyClass): Native.
2006-12-05 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (libexecsubdir): New variable.
(install-exec-hook): Install ecj1 in libexecsubdir.
(libexecsub_PROGRAMS): Renamed.
2006-12-05 Tom Tromey <tromey@redhat.com>
PR java/29495:
* testsuite/libjava.lang/PR29495.out: New file.
* testsuite/libjava.lang/PR29495.java: New file.
2006-12-05 Gary Benson <gbenson@redhat.com>
* gnu/classpath/natVMStackWalker.cc: Comment fixes.
2006-12-05 Gary Benson <gbenson@redhat.com>
* gnu/classpath/natVMStackWalker.cc (getCallingClass): Unwind
the stack when the caller is a compiled frame and the caller
of the caller is an interpreted frame.
2006-12-04 Adam Megacz <megacz@cs.berkeley.edu>
* gnu/gcj/runtime/natSharedLibLoader.cc (init): add "::" to fix
syntax error
2006-12-04 Adam Megacz <megacz@cs.berkeley.edu>
* include/win32.h (_Jv_platform_process): change to Win32Process
2006-12-04 Gary Benson <gbenson@redhat.com>
* stacktrace.cc (GetClassContext): Remove.
* include/java-stack.h (GetClassContext): Likewise.
2006-12-04 Gary Benson <gbenson@redhat.com>
* java/lang/SecurityManager.java: Removed.
* java/lang/VMSecurityManager.java: Likewise.
* java/lang/natVMSecurityManager.cc: Likewise.
* javax/naming/spi/NamingManager.java: Likewise.
* gnu/CORBA/ObjectCreator.java: Likewise.
* sun/reflect/Reflection.java: Replaced with reference.
* sun/reflect/natReflection.cc: Removed.
* gcj/javaprims.h: Removed reference to VMSecurityManager.
* Makefile.am (nat_source_files): Removed natReflection.cc
and natVMSecurityManager.cc.
* sources.am, Makefile.in: Rebuilt.
2006-12-01 Gary Benson <gbenson@redhat.com>
* java/net/URLClassLoader.java
(findClass): Inhibit calling this.toString() further into VM
initialization.
(runtimeInitialized): Removed.
* java/net/natURLClassLoader.cc: Removed.
* Makefile.am: Reflect the above.
* Makefile.in: Rebuilt.
2006-11-30 Tom Tromey <tromey@redhat.com>
* java/lang/Class.java (getAnnotations): Don't recurse.
2006-11-30 Gary Benson <gbenson@redhat.com>
* include/java-stack.h (GetStackWalkerStack): Declare.
* stacktrace.cc (GetStackWalkerStack): New method.
* gnu/classpath/natVMStackWalker.cc (getClassContext): Likewise.
* gnu/classpath/VMStackWalker.java
(getClassContext): Replace stub with native method declaration.
(getCallingClass): Remove "throws NotImplementedException".
(getCallingClassLoader): Likewise.
2006-11-30 Gary Benson <gbenson@redhat.com>
* java/lang/ClassLoader.java: Merged javadoc.
(getParent, getSystemClassLoader): Use VMStackWalker.
2006-11-30 Gary Benson <gbenson@redhat.com>
* java/lang/Thread.java: Merged javadoc.
(getContextClassLoader): Use VMStackWalker.
2006-11-29 Gary Benson <gbenson@redhat.com>
* java/lang/Package.java: Removed.
* java/security/Security.java: Likewise.
* java/util/ResourceBundle.java: Likewise.
* java/util/natResourceBundle.cc: Likewise.
* Makefile.am (nat_source_files): Removed natResourceBundle.cc.
* sources.am, Makefile.in: Rebuilt.
2006-11-29 Gary Benson <gbenson@redhat.com>
* gnu/classpath/VMStackWalker.java: Added javadoc.
2006-11-27 Andrew Haley <aph@redhat.com>
* sun/reflect/misc/ReflectUtil.java (checkPackageAccess):
Implement.
2006-11-23 Andrew Haley <aph@redhat.com>
* java/lang/natClassLoader.cc (_Jv_RegisterClasses): Abort if we
are ABI-incompatible.
2006-11-23 Andrew Haley <aph@redhat.com>
* Makefile.am (nat_source_files): Add gnu/classpath/natVMStackWalker.cc.
* sources.am: Rebuild.
* gnu/classpath/natVMStackWalker.cc: New file.
* gnu/classpath/VMStackWalker.java: New file.
* headers.txt: prepend
_Jv_Thread_t* _Jv_ThreadGetData(java::lang::Thread* thread)
* include/java-stack.h: Add VMStackWalker namespace.
Add friend class gnu::classpath::VMStackWalker.
2006-11-23 Gary Benson <gbenson@redhat.com>
* java/security/Security.java: Merge with classpath.
* java/lang/Package.java: Likewise.
2006-11-21 Andrew Haley <aph@redhat.com>
* java/lang/Class.h: (isEnum, isSynthetic, isAnnotation): Move
to native code.
* java/lang/Class.java (isEnum, isSynthetic, isAnnotation):
Likewise.
2006-11-17 Andrew Haley <aph@redhat.com>
* java/net/natVMURLConnection.cc: Check for HAVE_MAGIC_OPEN.
* configure.ac: Add HAVE_MAGIC_OPEN.
* include/config.h.in: Regenerated.
* configure: Regenerated.
2006-11-07 Andrew Haley <aph@redhat.com>
* java/lang/VMCompiler.java (compileClass): Revert mistaken
change.
* java/lang/natVMClassLoader.cc (defineClass): Register the new
class with the initiating loader.
2006-11-06 Andrew Haley <aph@redhat.com>
* defineclass.cc (prepare_pool_entry): Be careful about which
constant pool entries have their '/' characters stripped.
(handleGenericSignature): Likewise.
(handleAnnotationElement): Likewise.
(handleAnnotation): Likewise.
(read_one_class_attribute): Likewise.
(handleMethod): Likewise.
* include/java-cpool.h (JV_CONSTANT_LazyFlag): New.
* java/lang/natClass.cc (check_constant): Likewise.
* link.cc (resolve_pool_entry): Mask JV_CONSTANT_LazyFlag.
2006-11-01 Andrew Haley <aph@redhat.com>
* java/lang/natClass.cc (parseAnnotationElement): Set result from
anno_class.
2006-10-21 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.lang/PR260.out: Rewrote for 1.5.
* testsuite/libjava.lang/pr179.out: Rewrote for 1.5.
* testsuite/libjava.lang/pr179.java: Updated comments.
* testsuite/libjava.compile/inner_1.xfail: Removed.
2006-10-20 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.cni/cni.exp (gcj_cni_build_headers): Don't use
jv-scan.
* testsuite/lib/libjava.exp (test_libjava_from_javac): Removed.
(find_jvscan): Removed.
2006-10-20 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.jni/jni.exp (gcj_jni_build_header): Use
-force.
* testsuite/lib/libjava.exp (find_gcjh): Find 'gjavah' instead.
* testsuite/libjava.cni/cni.exp (gcj_cni_build_headers): Pass -cni
and -force to gcjh.
* Makefile.in: Rebuilt.
* Makefile.am (MYGCJH): Use gjavah.
2006-10-18 Tom Tromey <tromey@redhat.com>
PR classpath/28203:
* java/lang/Class.java (getAnnotations): Rewrote.
* java/lang/reflect/Method.java (METHOD_MODIFIERS): Now
package-private.
* java/lang/reflect/Field.java (FIELD_MODIFIERS): Now
package-private.
* gcj/field.h (_Jv_FIELD_CONSTANT_VALUE): Removed.
* defineclass.cc (handleConstantValueAttribute): Added found_value
argument. Don't use _Jv_FIELD_CONSTANT_VALUE.
(read_one_field_attribute): Updated.
(read_fields): Likewise.
(handleField): Mask with FIELD_MODIFIERS, not ALL_FLAGS.
(handleMethod): Mask with METHOD_MODIFIERS, not ALL_FLAGS.
2006-10-17 Tom Tromey <tromey@redhat.com>
* defineclass.cc (handleMemberAnnotations): Write member index
after 'kind'.
(handleAnnotation): Call prepare_pool_entry.
* java/lang/reflect/natMethod.cc (getDeclaredAnnotationsInternal):
Removed unused variable.
(getParameterAnnotationsInternal): Likewise.
* java/lang/reflect/natField.cc (getDeclaredAnnotationsInternal):
Removed unused variable.
* java/lang/reflect/natConstructor.cc
(getDeclaredAnnotationsInternal): Removed unused variable.
(getParameterAnnotationsInternal): Likewise.
* java/lang/natClass.cc (parseAnnotation): Create annotation.
(parseAnnotationElement): Handle 'c' and 'e' cases more
correctly.
(getMethodDefaultValue): Fixed variable names.
(parseAnnotationElement): Create String for 's' entry.
* java/lang/reflect/Constructor.java (getAnnotation): New method.
* java/lang/reflect/Field.java (getAnnotation): New method.
* java/lang/reflect/Method.java (getAnnotation): New method.
2006-10-17 Tom Tromey <tromey@redhat.com>
* java/lang/natClass.cc (parseAnnotationElement): Expect a utf8
constant in the "string" case.
* defineclass.cc (handleAnnotationElement): Expect a utf8 constant
in the "string" case.
2006-10-17 Tom Tromey <tromey@redhat.com>
* configure, Makefile.in: Rebuilt.
* Makefile.am (install-exec-hook): Now unconditional. Rename ecjx
if needed.
(jar_DATA): Add ecj jar when needed.
(toolexec_PROGRAMS): New variable.
(ecjx_SOURCES, ecjx_LDFLAGS, ecjx_LDADD, ecjx_DEPENDENCIES):
Likewise.
* prims.cc (JvRunMainName): New function.
* include/jvm.h (JvRunMainName): Declare.
* configure.ac: Added --with-ecj-jar.
(ECJ_JAR): New subst.
(ECJ_BUILD_JAR): Likewise.
(INSTALL_ECJ_JAR): New conditional.
(BUILD_ECJ1): Likewise.
2006-10-13 Tom Tromey <tromey@redhat.com>
* HACKING: Updated.
* sources.am, Makefile.in: Rebuilt.
* scripts/makemake.tcl (emit_bc_rule): Updated for class files in
srcdir.
(emit_package_rule): Likewise.
(emit_process_package_rule): Likewise.
* Makefile.am (gcjh.stamp): Conditional on MAINTAINER_MODE. Put
headers in srcdir.
(libgcj-$(gcc_version).jar): Updated to find classes in source
tree.
(BOOTCLASSPATH): Likewise.
(install-data-local): Likewise.
Added all the .class and CNI .h files.
2006-10-12 Andrew Haley <aph@redhat.com>
* java/lang/natThreadLocal.cc: New file.
* java/lang/ThreadLocal.java: Rewrite to use native TLS.
* Makefile.am: Add java/lang/natThreadLocal.cc.
* sources.am: Move classpath/java/lang/ThreadLocal.java to
java/lang/ThreadLocal.java.
2006-10-11 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in, include/config.h.in, configure:
Rebuilt.
* Makefile.am (nat_source_files): Added natConfiguration.cc.
* gnu/classpath/natConfiguration.cc: New file.
* configure.ac (AWT_TOOLKIT): New define.
(LIBGCJ_PREFIX): Likewise.
* gnu/classpath/Configuration.java: New file.
* sources.am: Rebuilt.
* scripts/makemake.tcl: Don't special case Configuration.java.
2006-10-10 Tom Tromey <tromey@redhat.com>
* gcj/javaprims.h: Updated.
* sources.am, Makefile.in: Rebuilt.
* standard.omit.in: Removed process source files.
* scripts/makemake.tcl: Removed ConcreteProcess special case.
(emit_package_rule): Also special-case Process.
(emit_process_package_rule): New proc.
* Makefile.am (inner_nat_headers): Removed
PLATFORM_INNER_NAT_HDRS.
* configure: Rebuilt.
* configure.ac (PLATFORM_INNER_NAT_HDRS): Removed subst.
Don't create ConcreteProcess.java link.
(PLATFORM): New subst.
* java/lang/natWin32Process.cc: Updated.
* java/lang/natPosixProcess.cc: Updated.
* java/lang/natEcosProcess.cc: Updated.
* java/lang/Win32Process.java (Win32Process): Renamed from
ConcreteProcess.
* java/lang/EcosProcess.java (EcosProcess): Renamed from
ConcreteProcess.
* java/lang/PosixProcess.java (PosixProcess): Renamed from
ConcreteProcess.
* include/win32.h (_Jv_platform_process): New define.
* java/lang/natRuntime.cc (execInternal): Use
_Jv_platform_process.
* include/posix.h (_Jv_platform_process): New define.
2006-10-09 Andrew Haley <aph@redhat.com>
* win32-threads.cc (_Jv_ThreadUnpark, _Jv_ThreadPark): New
functions.
2006-10-06 Tom Tromey <tromey@redhat.com>
PR libgcj/29278:
* Makefile.in: Rebuilt.
* Makefile.am ($(generic_header_files)): Depend on gcjh.stamp.
(gcjh.stamp): New target.
2006-10-06 Andrew Haley <aph@redhat.com>
* posix-threads.cc (_Jv_ThreadUnpark, _Jv_ThreadPark): Moved here
from sun/misc/natUnsafe.cc.
* sun/misc/natUnsafe.cc (class spinlock): New class.
(compareAndSwap): New methods.
(compareAndSwapInt, compareAndSwapLong, compareAndSwapObject)
(putOrderedLong, putLongVolatile, putObjectVolatile, putLong)
(getIntVolatile, getObjectVolatile, getLong, getLongVolatile):
Rewrite to use gcj's own atomic functions rather than gcc
builtins.
(unpark): Moved to posix-threads.cc
(park): Likewise.
* include/jvm.h (struct natThread::alive_flag): Moved here from
Thread.java.
(struct natThread): Likewise.
* include/posix-threads.h: (_Jv_ThreadUnpark, _Jv_ThreadPark):
moved here from sun/misc/natUnsafe.cc.
* java/lang/natThread.cc (initialize_native): Set alive_flag here.
(isAlive): Moved here from Thread.java.
(interrupt): alive_flag is now in the natThread structure.
(interrupt): Call _Jv_ThreadUnpark().
(finish_): parkPermit and alive_flag are now in the natThread
structure.
(start): LIkewise.
(_Jv_AttachCurrentThread): Likewise.
* java/lang/Thread.java (alive_flag): Remove.
(parkPermit): Likewise.
(Thread): Don't set alive_flag.
(isAlive): Make native.
2006-09-13 Andrew Haley <aph@redhat.com>
* Makefile.am: Add sun/reflect/natReflection.cc.
* Makefile.in: Rebuild.
* sun/reflect/natReflection.cc: New file.
* sun/reflect/Reflection.java (getCallerClass): Now native.
* stacktrace.cc (GetClassContext): Don't check the class if
checkClass is NULL.
2006-09-12 Andrew Haley <aph@redhat.com>
* java/lang/Thread.java (alive_flag): Make it a byte.
(THREAD_DEAD, THREAD_ALIVE, THREAD_SIGNALED): new constants.
(parkPermit): New variable.
(data): Now package private.
(Thread): Set alive_flag to THREAD_DEAD, not false.
(isAlive): Test against THREAD_DEAD.
* java/lang/natThread.cc (initialize_native): Initialize
park_mutex and park_cond.
(finish_): Set parkPermit THREAD_PARK_DEAD.
(interrupt): Rewrite. Use an atomic update rather than a mutex to
access alive_flag.
If the thread is parked, unpark it.
(start): Set alive_flag to THREAD_ALIVE, not true.
(finalize_native): Destroy park_mutex and park_cond.
* sun/misc/natUnsafe.cc (unpark): New method.
(park): New method.
* include/jvm.h (struct natThread): Moved here.
2006-06-07 Andrew Haley <aph@redhat.com>
* include/jvm.h (_Jv_Linker::maybe_adjust_signature): New.
(_Jv_Linker::uaddr): New.
* link.cc (resolve_pool_entry): Call search_method_in_superclasses
instead of an open-coded loop around search_method_in_class.
(search_method_in_class): Add a new arg, check_perms.
(search_method_in_superclasses): New.
(link_symbol_table): Call maybe_adjust_signature() to extract the
least significnt bit of the signature pointer. Do this three
times, for instace method calls, static methods, and interfaces.
Call search_method_in_superclasses() instead of
_Jv_LookupDeclaredMethod.
(typedef uaddr): Delete.
2006-09-11 Andrew Haley <aph@redhat.com>
* gij.cc (main): Remove bogus code that sets LTDL_SHLIBPATH_VAR
and forks.
2006-06-16 Andrew Haley <aph@redhat.com>
* java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Don't
copy the whole Class instance from the initializer: instead, copy
everything but the first word (the vtable pointer).
Change prototype to (const char* class_initializer).
(_Jv_RegisterNewClasses): Change prototype to (const char**).
* java/lang/Class.h (_Jv_RegisterNewClasses): Change prototype to
(const char**).
2006-08-31 Tom Tromey <tromey@redhat.com>
PR libgcj/28698:
* libgcj_bc.c (DECLARE_PRIM_TYPE): New macro. Declare primitive
classes.
2006-08-21 Bryce McKinlay <mckinlay@redhat.com>
* java/lang/natThread.cc (_Jv_AttachCurrentThread): Attach thread
to GC.
(_Jv_DetachCurrentThread): Detach thread from GC.
* include/boehm-gc.h (_Jv_GCAttachThread, _Jv_GCDetachThread):
Declare.
* boehm.cc (_Jv_GCAttachThread): New function.
(_Jv_GCDetachThread): Likewise.
2006-08-16 Jakub Jelinek <jakub@redhat.com>
Bryce McKinlay <bryce@mckinlay.net.nz>
* configure, Makefile.in: Rebuilt.
* Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la.
(libgcj_bc_la_SOURCES): New variable.
(libgcj_bc_la_LDFLAGS): Likewise.
(libgcj_bc_la_LIBADD): Likewise.
(libgcj_bc_la_DEPENDENCIES): Likewise.
(libgcj_bc_la_LINK): Likewise.
(libgcj_bc_dummy_LINK): Likewise.
(libgcj_bc.la): New target.
(install-exec-hook): Likewise.
* libgcj.spec.in (*lib): Use LIBGCJ_SPEC.
* libgcj_bc.c: New file.
* configure.ac (LIBGCJ_SPEC): New subst.
* configure.host (use_libgcj_bc): New variable.
2006-08-26 Andrew John Hughes <gnu_andrew@member.fsf.org>
* link.cc:
Increment loaded classes when printing verbose output.
* gnu/java/lang/management/natVMMemoryMXBeanImpl.cc:
Added comments.
* gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc:
(getMemoryManagerNames(jstring)): Implemented.
(isValid(jstring)): Implemented.
* gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc:
(getLoadedClassCount()): Implemented.
(getUnloadedClassCount()): Likewise.
(isVerbose()): Likewise.
(setVerbose(jboolean)): Likewise.
* java/lang/management/natVMManagementFactory.cc:
(getMemoryPoolNames()): Implemented.
(getMemoryManagerNames()): Likewise.
(getGarbageCollectorNames()): Likewise.
* include/jvm.h:
Add loaded and unloaded class counts.
* defineclasses.c:
Increment loaded classes count.
* prims.cc:
Add loaded and unloaded class counts.
2006-08-16 Tom Tromey <tromey@redhat.com>
* include/posix-threads.h (_Jv_MutexLock): No longer inline.
* posix-threads.cc (_Jv_CondWait): Set thread's state.
* include/jvm.h (class JvSetThreadState): New class.
(JvThreadState): New enum.
* java/lang/Thread.java (state): New field.
* java/lang/natThread.cc (_Jv_ThreadRun): Use
getUncaughtExceptionHandler.
(start): Set state.
(_Jv_AttachCurrentThread): Likewise.
(finish_): Likewise.
(getState): Wrote.
2006-08-15 Tom Tromey <tromey@redhat.com>
* gnu/gcj/runtime/natSharedLibLoader.cc (init): Added missing
'::'.
* gnu/gcj/convert/natIconv.cc (init): Added missing '::'.
(read): Likewise.
* gnu/gcj/natCore.cc (create): Added missing '::'.
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Added missing '::'
2006-08-14 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (libgcj_la_LIBADD): Add LIBMAGIC.
* java/net/natVMURLConnection.cc: Wrote, based on Classpath.
* configure, config.h.in: Rebuilt.
* configure.ac: Check for magic.h and -lmagic.
2006-08-14 Tom Tromey <tromey@redhat.com>
* java/lang/natThread.cc (getId): Removed.
* java/lang/Thread.java (threadId): New field.
(totalThreadsCreated): Likewise.
(Thread): Set threadId.
(getId): No longer native.
2006-08-14 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Added new .cc files.
(libgcj-$(gcc_version).jar): Include 'sun'.
(src.zip): Likewise.
* java/lang/natThread.cc (getId): New stub.
(getState): Likewise.
* scripts/makemake.tcl (emit_source_var): Use -decreasing when
sorting.
* gnu/java/lang/management/natVMMemoryMXBeanImpl.cc: New file.
* gnu/java/lang/management/natVMCompilationMXBeanImpl.cc: New file.
* gnu/java/lang/management/natVMGarbageCollectorMXBeanImpl.cc: New
file.
* gnu/java/lang/management/natVMMemoryPoolMXBeanImpl.cc: New file.
* gnu/java/lang/management/natVMMemoryManagerMXBeanImpl.cc: New file.
* gnu/java/lang/management/natVMClassLoadingMXBeanImpl.cc: New file.
* gnu/java/lang/management/natVMThreadMXBeanImpl.cc: New file.
* gnu/java/nio/natVMChannel.cc: New file.
* gcj/javaprims.h: Updated.
* sources.am: Likewise.
* java/lang/management/natVMManagementFactory.cc: New file.
* java/net/natVMURLConnection.cc: New file.
* java/util/concurrent/atomic/natAtomicLong.cc: New file.
* sun/misc/natUnsafe.cc: New file.
2006-08-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
* libjava/Makefile.in,
* libjava/sources.am:
Regenerated.
* libjava/scripts/makemake.tcl:
Added gconf and dnd peers as BC.
2006-08-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
* libjava/Makefile.in,
* libjava/sources.am:
Regenerated.
* libjava/scripts/makemake.tcl:
Added external/jsr166.
2006-08-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
* libjava/configure,
* libjava/Makefile.in:
Regenerated.
* libjava/scripts/makemake.tcl:
Handle the Escher peers as we handle Qt.
* libjava/gcj/Makefile.in:
Regenerated.
* libjava/configure.ac:
Handle Escher peers and disable plugin when Gtk+ is not used.
* libjava/sources.am:
Regenerated.
* libjava/classpath/gnu/java/awt/peer/x/fonts.properties:
Removed (as recently on generics branch of Classpath).
* libjava/include/Makefile.in,
* libjava/testsuite/Makefile.in:
Regenerated.
2006-07-23 Andrew John Hughes <gnu_andrew@member.fsf.org>
* libjava/Makefile.in:
Regenerated.
* libjava/scripts/classes.pl:
Ignore .svn directories.
* libjava/scripts/makemake.tcl:
Include sun directory.
* libjava/gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
* libjava/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
* libjava/gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
* libjava/gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
* libjava/gnu/java/lang/management/VMThreadMXBeanImpl.java,
* libjava/gnu/java/lang/management/VMMemoryMXBeanImpl.java,
* libjava/gnu/java/lang/management/VMCompilationMXBeanImpl.java,
* libjava/gnu/java/nio/VMChannel.java:
Copied over from classpath/vm/reference.
* libjava/gnu/java/nio/channels/FileChannelImpl.java:
(getNativeFD()): Implemented.
* libjava/gcj/javaprims.h:
Updated for generics merge from 20060709.
* libjava/javax/naming/spi/NamingManager.java:
Copied over from classpath/vm/reference.
* libjava/sources.am:
Regenerated.
* libjava/java/lang/Thread.java:
(getId()): Implemented.
(getState()): Likewise.
(getAllStackTraces()): Likewise.
(getStackTrace()): Likewise.
* libjava/java/lang/management/VMManagementFactory.java,
* libjava/java/net/VMURLConnection.java:
Copied over from classpath/vm/reference.
* libjava/classpath/vm/reference/java/lang/management/VMThreadInfo.java:
Removed.
* libjava/classpath/native/fdlibm/namespace.h:
Changed back to GCJ LOCAL version.
* libjava/sun/reflect/Reflection.java,
* libjava/sun/reflect/misc/ReflectUtil.java,
* libjava/sun/misc/Unsafe.java:
Copied over from classpath/vm/reference.
2006-07-07 Andrew John Hughes <gnu_andrew@member.fsf.org>
* sources.am, Makefile.in: Rebuilt.
* gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
* gnu/java/lang/management/natVMRuntimeMXBeanImpl.cc:
New files.
* include/jvm.h:
Add new variables used in prims.cc.
* Makefile.am:
Add natVMRuntimeMXBeanImpl.cc.
* prims.cc:
(_Jv_CreateJavaVM): Retain start time and input
arguments.
2006-07-21 Tom Tromey <tromey@redhat.com>
PR libgcj/4105:
* java/lang/natClass.cc (findInnerClassAttribute): New method.
(findDeclaredClasses): Likewise.
(getDeclaredClasses): Implemented.
(getDeclaringClass): Likewise.
(isAnonymousClass): Likewise.
(isMemberClass): Likewise.
(check_constant): Pass message in exception. Allow resolved
constants.
(resolve_class_constant): New function.
* defineclass.cc (read_one_class_attribute): Handle InnerClasses.
* java/lang/Class.h (isAnonymousClass, isLocalClass,
isMemberClass): Declare.
* java/lang/Class.java (getSimpleName): Implemented.
(isAnonymousClass, isLocalClass, isMemberClass): New methods.
2006-07-16 Tom Tromey <tromey@redhat.com>
* configure: Rebuilt.
* configure.ac (JV_API_VERSION, JV_VERSION): Claim 1.5.
2006-07-12 Andrew Haley <aph@redhat.com>
* Makefile.am (java/lang/Object.lo): Add -fsource-filename.
(java/lang/Class.lo): Likewise.
* Makefile.in: Regenerate.
2006-07-07 Tom Tromey <tromey@redhat.com>
* defineclass.cc (input_data, input_offset): New fields.
(reflection_data, data_stream): Likewise.
(get_reflection_stream): New method.
(_Jv_ClassReader): Initialize new fields.
(parse): Call finish_reflection_data.
(finish_reflection_data): New method.
(handleEnclosingMethod): Likewise.
(handleGenericSignature): Likewise.
(handleAnnotationElement): Likewise.
(handleAnnotation): Likewise.
(handleAnnotations): Likewise.
(handleMemberAnnotations): Likewise.
(handleAnnotationDefault): Likewise.
(handleParameterAnnotations): Likewise.
(read_one_field_attribute): Handle new attributes.
(read_one_method_attribute): Likewise.
(read_one_class_attribute): Likewise.
* include/jvm.h (resolve_method_entry): New method.
* java/lang/Class.h (jv_attr_type, jv_attr_kind): New enums.
(Class): Updated for new methods. Field, Method, Constructor now
friends.
(reflection_data): New field.
* java/lang/Class.java (asSubclass, cast): New methods.
(getEnclosingClass, getEnclosingConstructor): Now native.
(getEnclosingMethod): Likewise.
(getClassSignature): New method.
(getGenericInterfaces, getGenericSuperclass, getTypeParameters):
Likewise.
(Class): Implements AnnotatedElement.
(getAnnotation, isAnnotationPresent, getAnnotations): New methods.
(getDeclaredAnnotations): New method.
(getDeclaredAnnotationsInternal): Likewise.
* java/lang/reflect/natConstructor.cc (anno_a_t, anno_aa_t): New
typedefs.
(getSignature): New method.
(getDeclaredAnnotationsInternal): Likewise.
(getParameterAnnotationsInternal): Likewise.
* java/lang/reflect/natField.cc (anno_a_t): New typedef.
(getSignature): New method.
(getDeclaredAnnotationsInternal): Likewise.
* java/lang/reflect/natMethod.cc (anno_a_t, anno_aa_t): New
typedefs.
(getSignature): New method.
(getDefaultValue): Likewise.
(getDeclaredAnnotationsInternal): Likewise.
(getParameterAnnotationsInternal): Likewise.
* java/lang/reflect/Constructor.java (addTypeParameters):
Genericized.
(getSignature): Now native.
(getDeclaredAnnotations, getDeclaredAnnotationsInternal,
getParameterAnnotations, getParameterAnnotationsInternal): New
methods.
* java/lang/reflect/Field.java (getDeclaringClass, getType):
Genericized.
(getSignature): Now native.
(getDeclaredAnnotations, getDeclaredAnnotationsInternal): New
methods.
* java/lang/reflect/Method.java (getReturnType): Genericized.
(getParameterTypes, getExceptionTypes, getTypeParameters):
Likewise.
(getSignature): Now native.
(getDefaultValue, getDeclaredAnnotations,
getParameterAnnotations, getDeclaredAnnotationsInternal,
getParameterAnnotationsInternal): New methods.
* java/lang/natClass.cc (read_u1): New functions.
(read_u2): Likewise.
(read_4): New function.
(getReflectionSignature): New methods.
(getClassSignature): New method.
(getEnclosingMethodData): Likewise.
(getEnclosingClass): Likewise.
(getEnclosingMethod): Likewise.
(getEnclosingConstructor): Likewise.
(check_constant): New function.
(parseAnnotationElement): Likewise.
(parseAnnotation): Likewise.
(parseAnnotations): Likewise.
(parseParameterAnnotations): Likewise.
(getMethodDefaultValue): New method.
(getDeclaredAnnotations): New methods.
(getDeclaredAnnotationsInternal): New method.
* boehm.cc (_Jv_MarkObj): Mark 'reflection_data' field.
* link.cc (resolve_method_entry): New method.
(resolve_pool_entry): Use it.
2006-07-07 Andrew Haley <aph@redhat.com>
* Makefile.am: Use -fsource-filename when compiling libgcj.
* Makefile.in: Regenerate.
2006-06-23 Tom Tromey <tromey@redhat.com>
Merged in classpath-generics.
* sources.am, Makefile.in: Rebuilt.
* Makefile.am (generic_header_files): Don't filter out omitted
headers.
(generic_header_files): Rewrote.
(MYGCJH): New variable.
Removed all .h rules.
* headers.txt: New file.
* java/io/PrintStream.java (PrintStream): Implement Appendable.
* java/lang/Class.java: Genericized.
(getEnumConstants): New method.
(isEnum): Likewise.
(isSynthetic): Likewise.
(isAnnotation): Likewise.
* java/lang/reflect/Constructor.java (getDeclaringClass,
getTypeParameters, declaringClass): Genericized.
* java/lang/reflect/Method.java (invoke): Now varargs.
* java/lang/ref/Reference.java (Reference): Imported genericized
version from Classpath.
(get): Now native.
* java/lang/ref/natReference.cc (get): New method.
* java/lang/ProcessBuilder.java: New file.
* java/lang/System.java (environmentMap): New field.
(clearProperty): New method.
(getenv): Likewise.
(EnvironmentCollection): New class.
(EnvironmentMap): Likewise.
(EnvironmentSet): Likewise.
* java/lang/StringBuilder.java (StringBuilder): Implements
Appendable.
* gnu/classpath/SystemProperties.java (remove): New method.
2006-06-23 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.loader/TestLeak.java: Don't use wildcard
import for java.lang.reflect.
2006-06-21 Tom Tromey <tromey@redhat.com>
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Set java.class.version to 49.
2006-06-21 Tom Tromey <tromey@redhat.com>
* link.cc (resolve_pool_entry): Initialize field's declaring
class, not its qualifying class.
2006-06-21 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.jacks/jacks.xfail: Updated for ecj.
2006-06-20 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.compile/Where.xfail: Now 'no-link'.
2006-06-19 Tom Tromey <tromey@redhat.com>
* gnu/java/lang/natMainThread.cc (call_main): Link main class.
2006-06-19 Tom Tromey <tromey@redhat.com>
* testsuite/lib/libjava.exp (test_libjava): Don't compile via
bytecode. Run BC compilations from source.
2006-06-19 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.lang/TestProxy.java: Don't use wildcard
imports for java.lang.reflect.
2006-06-13 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.lang/stringconst.xfail: Removed.
* testsuite/libjava.lang/ArrayStore2.xfail: Removed.
2006-06-08 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* Makefile.am (libgcj_la_LIBADD): Add Object.lo and Class.lo.
(java/lang/Object.lo): New target.
(java/lang/Class.lo): Likewise.
* scripts/makemake.tcl (emit_package_rule): Add special case for
Object and Class.
2006-06-06 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (gcj_dbtool_DEPENDENCIES): Add gcj_dbtool.lo.
2006-06-06 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (nat_headers): Don't list Main.h.
(generic_header_files): Likewise.
2006-06-05 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.loader/TestLeak.java (MyLoader): Now static.
* testsuite/libjava.jacks/jacks.exp (gcj_jacks_write): Use -w.
* testsuite/lib/libjava.exp (libjava_arguments): Add -w.
* testsuite/libjava.compile/G19990210_2.java: Removed.
* testsuite/libjava.compile/PR208.java: Removed.
* testsuite/libjava.compile/PR208.xfail: Removed.
* testsuite/libjava.compile/support/Case.java: Removed.
* testsuite/libjava.compile/Case.java: Removed.
2006-06-04 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* Makefile.am (gcj_dbtool_LDADD): Add
gnu-gcj-tools-gcj_dbtool.lo.
(gcj_dbtool_SOURCES): Updated.
(EXTRA_libgcj_la_SOURCES): New macro.
* scripts/makemake.tcl (emit_package_rule): Compile class files
from the package.
(gcj_dbtool/Main.java, Class.java, Object.java): Removed
package_map settings.
(emit_package_rule): Special case gnu.gcj.tools.gcj_dbtool.
2006-06-04 Tom Tromey <tromey@redhat.com>
* java/lang/Class.java (getClassLoaderInternal): Now native.
2006-12-20 Adam Megacz <megacz@cs.berkeley.edu>
* configure.ac: add $built_gcc_dir to $GCJH and $GCJ when
crossbuilding.
* configure: Regenerate.
2006-12-18 Adam Megacz <megacz@cs.berkeley.edu>
* Makefile.am: remove @X_CFLAGS@ from AM_CXXFLAGS; it causes
-I/usr/include to wind up in cross-builds
* configure: Regenerate.
2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
* configure: Regenerate.
2006-11-27 Mike Stump <mrs@apple.com>
* sysdep/x86-64/locks.h: Enable use of either file on either
target to support multilibs from one to the other.
* sysdep/i386/locks.h: Likewise.
2006-11-21 Gary Benson <gbenson@redhat.com>
* java/security/Security.java: Merge with classpath.
* java/lang/Package.java: Likewise.
* java/lang/Class.java (getDeclaredAnnotations): New method.
2006-11-20 David Daney <ddaney@avtrex.com>
* include/mips-signal.h (sys/syscall.h): Do not include.
(sig_ucontext_t): Removed.
(MAKE_THROW_FRAME): Changed to be a nop.
(_INIT_SIG_HANDLER): New macro.
(INIT_SEGV): Rewrote to use _INIT_SIG_HANDLER.
(INIT_FPE): Same.
2006-11-20 David Daney <ddaney@avtrex.com>
* testsuite/libjava.lang/Throw_3.java: New Test.
* testsuite/libjava.lang/Throw_3.out: Its expected output.
2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
* configure: Regenerated.
2006-11-03 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java: Removed.
* java/net/natInetAddressNoNet.cc: Likewise.
* java/net/natInetAddressPosix.cc: Likewise.
* java/net/natInetAddressWin32.cc: Likewise.
* java/net/VMInetAddress.java (getLocalHostname,
lookupInaddrAny, getHostByAddr, getHostByName,
aton): Replace glue methods with native ones.
* java/net/natVMInetAddressNoNet.cc: New file.
* java/net/natVMInetAddressPosix.cc: Likewise.
* java/net/natVMInetAddressWin32.cc: Likewise.
* Makefile.am, configure.ac: Reflect the above.
* sources.am, Makefile.in, configure: Rebuilt.
* java/net/natVMNetworkInterfaceWin32.cc
(winsock2GetRealNetworkInterfaces): Create InetAddress
objects using InetAddress.getByAddress.
* gnu/java/net/natPlainSocketImplWin32.cc
(accept, getOption): Likewise.
* gnu/java/net/natPlainDatagramSocketImplWin32.cc
(peekData, receive, getOption): Likewise.
2006-11-02 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/natVMMethod.cc (getLineTable): Implement.
2006-11-02 Keith Seitz <keiths@redhat.com>
* jvmti.cc (_Jv_JVMTI_GetLineNumberTable): New function.
(_Jv_JVMTI_Interface): Define GetLineNumberTable.
2006-11-01 Keith Seitz <keiths@redhat.com>
* gnu/gcj/jvmti/Location.java: New file.
* gnu/gcj/jvmti/BreakpointManager.java: New file.
* jvmti.cc (_Jv_JVMTI_SetBreakpoint): New function.
(_Jv_JVMTI_ClearBreakpoint): New function.
(_Jv_JVMTI_Interface): Define SetBreakpoint and ClearBreakpoint.
* sources.am: Regenerated.
* Makefile.in: Regenerated.
2006-10-28 Keith Seitz <keiths@redhat.com>
* Makefile.am (nat_source_files): Add natBreakpoint.cc.
* sources.am: Regenerated.
* Makefile.in: Regenerated.
* gnu/gcj/jvmti/Breakpoint.java: New file.
* gnu/gcj/jvmti/natBreakpoint.java: New file.
2006-10-27 Keith Seitz <keiths@redhat.com>
* include/java-stack.h (ncodeMap): Declare.
(_Jv_StackTrace): Make _Jv_GetMethodDeclaringClass friend.
* java/lang/Class.h (_Jv_GetMethodDeclaringClass): Declare.
* java/lang/natClass.cc (_Jv_GetMethodDeclaringClass): New
function.
* stacktrace.cc (ncodeMap): Redefine from file global to global
for class _Jv_StackTrace.
(_Jv_StackTrace::UpdateNCodeMap): Add interpreted classes, too,
so that _Jv_GetMethodDeclaringClass can find them all.
(_Jv_StackTrace::ClassForFrame): Exclude interpreted classes.
* jvmti.cc (_Jv_JVMTI_GetMethodDeclaringClass): New function.
(_Jv_JVMTI_Interface): Define GetMethodDeclaringClass function.
2006-10-25 Andreas Tobler <a.tobler@schweiz.org>
* testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests): Replace
formatting modifiers %p with %#llx and cast the arguments.
2006-10-20 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.jvmti/natevents.cc (do_callback_arg_tests):
Correctly pass jvalues.
2006-10-18 Tom Tromey <tromey@redhat.com>
Bryce McKinlay <mckinlay@redhat.com>
* testsuite/libjava.jni/register2.java: New file.
* testsuite/libjava.jni/register2.out: New file.
* testsuite/libjava.jni/register2.c: New file.
* java/lang/natClass.cc (_Jv_GetClassNameUtf8): New function.
* java/lang/Class.h (_Jv_GetClassNameUtf8): Declare.
* jni.cc (struct NativeMethodCacheEntry): New struct.
(nathash): Changed type.
(hash): Updated.
(nathash_find_slot): Likewise.
(nathash_find): Likewise.
(natrehash): Likewise.
(nathash_add): Likewise.
(_Jv_JNI_RegisterNatives): Likewise.
(_Jv_LookupJNIMethod): Likewise.
Idea from Juerg Lehni <juerg@scratchdisk.com>
2006-10-16 Geoffrey Keating <geoffk@apple.com>
* testsuite/libjava.jvmti/natevents.cc (env): Delete.
(ExceptionCB): Fix types for printf arguments.
(ExceptionCatchCB): Likewise.
(SingleStepCB): Likewise.
(BreakpointCB): Likewise.
(FieldAccessCB): Likewise.
(FieldModificationCB): Likewise.
(CompiledMethodLoadCB): Likewise.
2006-10-14 Keith Seitz <keiths@redhat.com>
* include/java-insns.h (enum java_code): Add op_breakpoint.
* include/java-interp.h (_Jv_InterpMethod): Declare breakpoint_insn.
[INTERPRETER]: Declare _Jv_InterpMethod::bp_insn_slot.
[!INTERPRETER]: Declare _Jv_InterpMethod::bp_insn_opcode.
(install_break): Declare.
* interpret.cc (breakpoint_insn): Define breakpoint insn.
(compile): Add op_breakpoint to "can't happen" cases.
[INTERPRETER] Initialize breakpoint insn if necessary.
(install_break): New method.
* interpret-run.cc: Add op_breakpoint to insn_targets.
Add insn_breakpoint label.
* verify.cc (branch_prepass): Add op_breakpoint to unrecognized
opcodes section of switch statement.
(verify_instructions_0): Likewise.
2006-10-12 Keith Seitz <keiths@redhat.com>
* include/jvmti-int.h (JVMTI): Declare all members "extern".
* jvmti.cc (JVMTI): Define.
2006-10-11 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (install-data-local): Use mkinstalldirs.
2006-10-10 Tom Tromey <tromey@redhat.com>
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Removed obsolete comment.
2006-10-10 Keith Seitz <keiths@redhat.com>
* include/java-interp.h (_Jv_InterpMethod::get_insn): Declare.
(_Jv_InterpMethod::set_insn): Declare.
* interpret.cc (_Jv_InterpMethod::get_insn): New method.
(_Jv_InterpMethod::get_insn): New method.
2006-10-10 Tom Tromey <tromey@redhat.com>
* prims.cc (_Jv_PrependVersionedLibdir): Use
_Jv_platform_path_separator.
2006-10-10 Tom Tromey <tromey@redhat.com>
PR libgcj/29205:
* Makefile.in: Rebuilt.
* Makefile.am (install-data-local): Install the .pc file.
(pkgconfig_DATA): Removed.
2006-10-03 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java
(<clinit>): Reorder the static initializers.
2006-10-02 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java
(checkConnect): Reinstated.
(loopbackAddress): Ensure initialized from non-null object.
2006-09-30 Keith Seitz <keiths@redhat.com>
* include/java-interp.h (prepared): Change type to pc_t.
(insn_index): Define for both DIRECT_THREADED and bytecode interpreters.
* interpret.cc [!DIRECT_THREADED] (POKEI): Fix typo.
(insn_index): Implement for bytecode interpreter.
* interpret-run.cc [!DIRECT_THREADED] (AVAL1U): Add _Jv_Linker class
qualifier to resolve_pool_entry.
[!DIRECT_THREADED] (AVAL2U): Likewise.
[!DIRECT_THREADED] bytecode() cannot be called without an object.
Changed all typos.
[!DIRECT_THREADED] Likewise for defining_class.
2006-09-26 Jack Howarth <howarth@bromo.med.uc.edu>
PR target/26792:
* exception.cc (PERSONALITY_FUNCTION): use _Unwind_GetIP
if HAVE_GETIPINFO not defined.
* stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Likewise.
(_Jv_StackTrace::getLineNumberForFrame): Likewise.
* configure.ac: use GCC_CHECK_UNWIND_GETIPINFO.
* aclocal.m4, configure, include/config.h.in, Makefile.in:
Rebuilt.
2006-09-27 Tom Tromey <tromey@redhat.com>
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=201712
* java/util/Locale.java (hashcode): No longer transient.
(writeObject): Use ObjectOutputStream.PutField and
defaultWriteObject.
(readObject): Use defaultReadObject.
2006-09-25 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/VMVirtualMachine.java
(_jdwp_suspend_counts): New private variable.
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(initialize): Initialize _jdwp_suspend_counts.
(suspendThread): Implement.
(resumeThread): Implement.
(getSuspendCount): Implement.
2006-09-22 Marco Trudel <mtrudel@gmx.ch>
* jvmti.cc (_Jv_JVMTI_GetErrorName): Now static. Marked JNICALL.
2006-09-21 Keith Seitz <keiths@redhat.com>
* jvmti.cc (_Jv_JVMTI_DisposeEnvironment): Check for enabled
events.
(check_enabled_event): New function.
(check_enabled_events): New function.
(post_event): New function.
(_Jv_JVMTI_SetEventNotificationMode): New function.
(_Jv_JVMTI_SetEventCallbacks): New function.
(_Jv_JVMTI_Interface): Define SetEventNotificationMode and
SetEventCallbacks members.
* include/jvmti-int.h: New file.
* include/jvmti_md.h (EVENT_SLOTS) [__GCJ_JNI_IMP__]: Define.
(_CLASSPATH_JVMTIENV_CONTENTS) [__GCJ_JNI_IMPL__]: Define.
* testsuite/libjava.jvmti/events.java: New file.
* testsuite/libjava.jvmti/events.out: New file.
* testsuite/libjava.jvmti/natevents.cc: New file.
2006-09-21 Sandro Tolaini <tolaini@libero.it>
* configure.ac: Don't use darwin-signal.h as signal handler for
Darwin/i386.
* configure.host: Enable Darwin/i386 as a supported host, with no
signal unwinding.
2006-09-20 Keith Seitz <keiths@redhat.com>
* jvmti.cc (_Jv_JVMTI_CreateRawMonitor): Use _Jv_MallocUnchked
and return JVMTI_ERROR_OUT_OF_MEMORY if necessary.
(_Jv_JVMTI_GetClassMethods): Likewise.
(_Jv_JVMTI_GetClassLoaderClasses): Likewise.
(_Jv_JVMTI_GetJNIFunctionTable): Likewise.
(_Jv_JVMTI_GetSystemProperty): Likewise.
2006-09-20 Keith Seitz <keiths@redhat.com>
* jvmti.cc (_Jv_JVMTI_GetErrorName): New function.
(_Jv_JVMTI_Interface): Define GetErrorName member.
* testsuite/libjava.jvmti/geterrorname.java: New file.
* testsuite/libjava.jvmti/geterrorname.out: New file.
* testsuite/libjava.jvmti/natgeterrorname.cc: New file.
2006-09-20 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java: Mostly merged with Classpath.
* java/net/VMInetAddress.java: New file.
* sources.am, Makefile.in: Rebuilt.
* java/net/natVMNetworkInterfacePosix.cc
(getInterfaces): Create InetAddress objects using
InetAddress.getByAddress.
* gnu/java/net/natPlainSocketImplPosix.cc
(accept, getOption): Likewise.
* gnu/java/net/natPlainDatagramSocketImplPosix.cc
(peekData, receive, getLocalAddress): Likewise.
2006-09-19 Keith Seitz <keiths@redhat.com>
* testsuite/libjava.jvmti/jvmti.exp: New file.
2006-09-19 Keith Seitz <keiths@redhat.com>
* jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Clarify parameter list.
(THREAD_CHECK_VALID): Likewise.
(THREAD_CHECK_ALIVE): Likewise.
(_Jv_JVMTI_SuspendThread): Call THREAD_CHECK_VALID on a Thread not
jthread.
(_Jv_JVMTI_ResumeThread): Likewise.
(_Jv_JVMTI_InterruptThread): Likewise.
(_Jv_JVMTI_DisposeEnvironment): Probably unwise to dereference an object
that was just freed.
2006-09-19 Mark Wielaard <mark@klomp.org>
Fixes bug #29137
* java/util/logging/LogManager.java (addLogger): Always check for
existing children of a new Logger.
2006-09-19 Tom Tromey <tromey@redhat.com>
* java/util/logging/LogManager.java: Re-merged with Classpath.
2006-09-18 Tom Tromey <tromey@redhat.com>
* configure: Rebuilt.
2006-09-18 Petr Salinger <Petr.Salinger@seznam.cz>
* configure.host: Handle kfreebsd.
2006-09-18 Petr Salinger <Petr.Salinger@seznam.cz>
* configure: Rebuilt.
* shlibpath.m4: Handle GNU/kFreeBSD.
2006-09-14 Tom Tromey <tromey@redhat.com>
PR boehm-gc/29068:
* boehm.cc (_Jv_GCAttachThread): Disable on Solaris.
(_Jv_GCDetachThread): Likewise.
2006-09-14 Andreas Schwab <schwab@suse.de>
* posix-threads.cc: Include "posix.h".
2006-09-13 Geoffrey Keating <geoffk@apple.com>
* posix.cc (_Jv_platform_nanotime): Return nanoseconds, not
microseconds; use gettimeofday when available.
* posix-threads.cc (_Jv_CondWait): Improve accuracy and range of
timeout calculation.
* testsuite/libjava.lang/Thread_Sleep_2.java: New.
* testsuite/libjava.lang/Thread_Sleep_2.out: New.
* testsuite/libjava.lang/Thread_Sleep_2.xfail: New.
2006-09-12 Tom Tromey <tromey@redhat.com>
PR java/29013:
* testsuite/libjava.lang/PR29013.out: Likewise.
* testsuite/libjava.lang/PR29013.java: New file.
2006-09-12 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.jacks/jacks.exp (load_gcc_lib): Removed.
2006-09-07 Matthias Klose <doko@debian.org>
* Makefile.am (AM_CXXFLAGS): Remove duplicate define.
* Makefile.in: Regenerate.
2006-09-06 Keith Seitz <keiths@redhat.com>
* java/lang/Class.h (_Jv_FindInterpreterMethod): Change return type
to _Jv_MethodBase instead of _Jv_InterpMethod.
* java/lang/natClass.cc (_Jv_FindInterpreterMethod): Likewise.
Do not check access flags.
Fix some minor style anomalies.
2006-09-01 Geoffrey Keating <geoffk@apple.com>
* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
Pass -lgcj to linker for C++ files on Darwin.
2006-09-01 Keith Seitz <keiths@redhat.com>
* jvmti.cc (THREAD_DEFAULT_TO_CURRENT): Encapsulate in do..while loop.
(THREAD_CHECK_VALID): Likewise.
(THREAD_CHECK_IS_ALIVE): Likewise.
(NULL_CHECK): Likewise.
(ILLEGAL_ARGUMENT): Likewise.
2006-09-01 Keith Seitz <keiths@redhat.com>
* include/jvm.h (_Jv_JVMTI_Init): Declare.
* jvmti.cc (_Jv_JVMTI_Init): New function.
* prims.cc (_Jv_CreateJavaVM): Initialize JVMTI.
* jvmti.cc (ILLEGAL_ARGUMENT): New macro.
(_Jv_JVMTI_Allocate): Use ILLEGAL_ARUMENT.
* jvmti.cc (_jvmtiEnvironments): New linked list of
JVMTI environments.
(FOREACH_ENVIRONMENT): New macro.
(_envListLock): New object to act as synchronization lock
for _jvmtiEnvironments.
(_Jv_JVMTI_DisposeEnvironment): Check for NULL environment.
Remove the environment from the list of known environments.
(_Jv_GetJVMTIEnv): Add the new environment to the list
of known environments.
2006-09-01 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java (getLocalHost): Refactor to avoid
security check if getLocalHostname() fails and to provide more
meaningful exceptions it the security check fails.
2006-09-01 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java (getByAddress): Create Inet4Address
objects when passed IPv4-mapped IPv6 addresses.
(getByName, getAllByName): Defer to the above to ensure that the
correct Inet*Address objects are returned.
2006-09-01 Gary Benson <gbenson@redhat.com>
* java/net/InetAddress.java (getByName, getAllByName):
Only perform security check when DNS lookups are required.
2006-08-31 Keith Seitz <keiths@redhat.com>
* include/jvmti_md.h: New file.
* jvmti.cc (_Jv_JVMTI_RawMonitorWait): Add millis parameter.
Pass millis to _Jv_CondWait.
2006-08-31 Tom Tromey <tromey@redhat.com>
PR libgcj/28698:
* libgcj_bc.c (DECLARE_PRIM_TYPE): New macro. Declare primitive
classes.
2006-08-24 Keith Seitz <keiths@redhat.com>
* prims.cc (remoteDebug): New global.
(jdwpOptions): New global.
(parse_x_arg): Add processing for "X" options "debug" and
"runjdwp:"
(_Jv_RunMain): If debugging, start up JDWP backend.
Send VM_INIT and VM_DEATH when appropriate.
2006-08-23 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/VMVirtualMachine.java
(initialize): Declare.
* gnu/classpath/jdwp/natVMVirtualMachine.cc
(initialize): Get and save JVMTI environment.
2006-08-22 Thomas Fitzsimmons <fitzsim@redhat.com>
PR libgcj/27890
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Set gnu.classpath.home.url to TOOLEXECLIBDIR.
* configure.ac: Do not add --with-native-libdir to
ac_configure_args.
* java/security/libgcj.security: Remove file.
* java/util/logging/logging.properties: Likewise.
* classpath/m4/acinclude.m4 (CLASSPATH_TOOLEXECLIBDIR): New macro.
* classpath/resource/Makefile.am (loggingdir): Define to
toolexeclibdir.
(securitydir): Likewise.
* classpath/configure.ac: Call CLASSPATH_TOOLEXECLIBDIR.
Set default nativeexeclibdir using toolexeclibdir.
* HACKING: Fix classpath aclocal arguments.
* Makefile.am (secdir): Remove variable.
(propdir): Likewise.
(AM_CXXFLAGS): Replace LIBDIR definition with TOOLEXECLIBDIR
definition.
(all_property_files): Remove variable.
(install-data-local): Do not install libgcj.security or
logging.properties.
* configure, Makefile.in, classpath/configure,
classpath/Makefile.in, classpath/native/jni/java-lang/Makefile.in,
classpath/native/jni/midi-alsa/Makefile.in,
classpath/native/jni/classpath/Makefile.in,
classpath/native/jni/midi-dssi/Makefile.in,
classpath/native/jni/Makefile.in,
classpath/native/jni/java-nio/Makefile.in,
classpath/native/jni/java-net/Makefile.in,
classpath/native/jni/gconf-peer/Makefile.in,
classpath/native/jni/java-io/Makefile.in,
classpath/native/jni/xmlj/Makefile.in,
classpath/native/jni/java-util/Makefile.in,
classpath/native/jni/qt-peer/Makefile.in,
classpath/native/jni/gtk-peer/Makefile.in,
classpath/native/Makefile.in, classpath/native/jawt/Makefile.in,
classpath/native/target/Linux/Makefile.in,
classpath/native/target/Makefile.in,
classpath/native/target/generic/Makefile.in,
classpath/native/fdlibm/Makefile.in,
classpath/native/plugin/Makefile.in,
classpath/resource/Makefile.in, classpath/scripts/Makefile.in,
classpath/tools/Makefile.in, classpath/doc/Makefile.in,
classpath/doc/api/Makefile.in, classpath/lib/Makefile.in,
classpath/external/Makefile.in,
classpath/external/sax/Makefile.in,
classpath/external/w3c_dom/Makefile.in,
classpath/external/relaxngDatatype/Makefile.in,
classpath/include/Makefile.in, classpath/aclocal.m4,
classpath/examples/Makefile.in, aclocal.m4: Regenerate.
2006-08-21 Bryce McKinlay <mckinlay@redhat.com>
* java/lang/natThread.cc (_Jv_AttachCurrentThread): Attach thread
to GC.
(_Jv_DetachCurrentThread): Detach thread from GC.
* include/boehm-gc.h (_Jv_GCAttachThread, _Jv_GCDetachThread):
Declare.
* boehm.cc (_Jv_GCAttachThread): New function.
(_Jv_GCDetachThread): Likewise.
2006-08-19 Ranjit Mathew <rmathew@gcc.gnu.org>
* sysdep/i386/backtrace.h (fallback_backtrace): Add "0x55 0x8B 0xEC"
as another sequence that can indicate a "pushl %ebp; movl %esp, %ebp"
function prologue.
2006-08-17 H.J. Lu <hongjiu.lu@intel.com>
* Makefile.am (install-exec-hook): Support $(DESTDIR).
* Makefile.in: Regenerated.
2006-08-16 Tom Tromey <tromey@redhat.com>
* libtool-version: Updated.
2006-08-16 Jakub Jelinek <jakub@redhat.com>
Bryce McKinlay <bryce@mckinlay.net.nz>
* configure, Makefile.in: Rebuilt.
* Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj_bc.la.
(libgcj_bc_la_SOURCES): New variable.
(libgcj_bc_la_LDFLAGS): Likewise.
(libgcj_bc_la_LIBADD): Likewise.
(libgcj_bc_la_DEPENDENCIES): Likewise.
(libgcj_bc_la_LINK): Likewise.
(libgcj_bc_dummy_LINK): Likewise.
(libgcj_bc.la): New target.
(install-exec-hook): Likewise.
* libgcj.spec.in (*lib): Use LIBGCJ_SPEC.
* libgcj_bc.c: New file.
* configure.ac (LIBGCJ_SPEC): New subst.
* configure.host (use_libgcj_bc): New variable.
2006-08-15 Kyle Galloway <kgallowa@redhat.com>
* include/java-interp.h (_Jv_InterpMethod::run_debug): New method.
* interpret.cc: Added placeholder for debug variable type info to STORE*
macros.
(_Jv_InterpMethod::run_debug): New method.
(_Jv_InterpMethod::run_sync_object_debug): New method.
(_Jv_InterpMethod::run_sync_class_debug): New method.
(_Jv_InterpMethod::run_normal_debug): New method.
(_Jv_InterpMethod::run_class_debug): New method.
(_Jv_InterpMethod::ncode ()): Changed to select either debug or normal
versions of these functions.
* interpret-run.cc: New file, holds contents of old
_Jv_InterpMethod::run method.
* stacktrace.cc (_Jv_StackTrace::UnwindTraceFn): Changed to select
appropriate function for debug or normal mode.
2006-08-14 Mark Wielaard <mark@klomp.org>
Imported GNU Classpath 0.92
* HACKING: Add more importing hints. Update automake version
requirement.
* configure.ac (gconf-peer): New enable AC argument.
Add --disable-gconf-peer and --enable-default-preferences-peer
to classpath configure when gconf is disabled.
* scripts/makemake.tcl: Set gnu/java/util/prefs/gconf and
gnu/java/awt/dnd/peer/gtk to bc. Classify
gnu/java/security/Configuration.java as generated source file.
* gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
gnu/java/lang/management/VMThreadMXBeanImpl.java,
gnu/java/lang/management/VMMemoryMXBeanImpl.java,
gnu/java/lang/management/VMCompilationMXBeanImpl.java: New VM stub
classes.
* java/lang/management/VMManagementFactory.java: Likewise.
* java/net/VMURLConnection.java: Likewise.
* gnu/java/nio/VMChannel.java: Likewise.
* java/lang/Thread.java (getState): Add stub implementation.
* java/lang/Class.java (isEnum): Likewise.
* java/lang/Class.h (isEnum): Likewise.
* gnu/awt/xlib/XToolkit.java (getClasspathTextLayoutPeer): Removed.
* javax/naming/spi/NamingManager.java: New override for StackWalker
functionality.
* configure, sources.am, Makefile.in, gcj/Makefile.in,
include/Makefile.in, testsuite/Makefile.in: Regenerated.
2006-08-14 Gary Benson <gbenson@redhat.com>
* java/lang/Thread.java (accessControlState): New field.
* java/security/VMAccessControlState.java: New file.
* java/security/natVMAccessControlState.cc: Likewise.
* java/security/VMAccessController.java
(contexts, inGetContext): Removed.
(pushContext, popContext, getContext): Use VMAccessControlState.
* Makefile.am (nat_source_files): Updated.
* sources.am, Makefile.in: Rebuilt.
2006-08-10 Gary Benson <gbenson@redhat.com>
* include/java-stack.h (GetAccessControlStack): Change return
type.
* stacktrace.cc (accesscontrol_trace_fn): Record the number of
Java frames encountered.
(GetAccessControlStack): Return a flag indicating whether a call to
doPrivileged was encountered rather than an array of method names.
* java/security/natVMAccessController.cc (getStack): Change return
type.
* java/security/VMAccessController.java (getStack): Likewise.
(getContext): Change to reflect the above.
2006-08-09 Gary Benson <gbenson@redhat.com>
* stacktrace.cc (accesscontrol_trace_fn): Skip non-Java frames.
2006-08-09 Gary Benson <gbenson@redhat.com>
* java/lang/System.java (setSecurityManager): Javadoc fix.
* java/security/VMAccessController.java (getContext): Comment fix.
2006-08-09 Gary Benson <gbenson@redhat.com>
* include/java-stack.h (accesscontrol_trace_fn): Declare.
(GetAccessControlStack): Likewise.
(GetClassMethodStack): Remove.
* stacktrace.cc (accesscontrol_trace_fn): New method.
(GetAccessControlStack): Likewise.
(GetClassMethodStack): Remove.
* java/security/natVMAccessController.cc (getStack): Use
GetAccessControlStack.
2006-08-07 Gary Benson <gbenson@redhat.com>
PR libgcj/28340:
* java/lang/ClassLoader.java (clinit): Install a default
security manager if java.security.manager is defined.
(getParent, getSystemClassLoader): Use the correct stack
frame during security checks.
* java/net/URLClassLoader.java (findClass): Avoid calling
this.toString() during VM initialization.
(runtimeInitialized): New method.
* java/net/natURLClassLoader.cc: New file.
* Makefile.am (nat_source_files): Added the above.
* Makefile.in: Rebuilt.
2006-08-07 Gary Benson <gbenson@redhat.com>
Casey Marshall <csm@gnu.org>
* java/lang/SecurityManager.java (getSecurityContext,
checkPermission, checkAccess, checkRead, checkConnect,
checkPackageAccess, checkPackageDefinition, checkPackageList):
Merge with Classpath.
(SecurityContext): Remove.
2006-08-07 Gary Benson <gbenson@redhat.com>
* java/security/VMAccessController.java (pushContext, popContext,
getContext): Use Thread.currentThread() to determine when we're
bootstrapping.
(runtimeInitialized): Remove.
* java/security/natVMAccessController.cc (runtimeInitialized):
Remove.
2006-08-06 Tom Tromey <tromey@redhat.com>
PR libgcj/28491:
* configure, include/config.h.in: Rebuilt.
* configure.ac: Look for ifaddrs.h, getifaddrs.
* java/net/natVMNetworkInterfacePosix.cc (getInterfaces): Use
getifaddrs if available.
2006-08-06 Tom Tromey <tromey@redhat.com>
PR libgcj/28576:
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (connect):
Implemented.
(disconnect): Likewise.
(send): Handle already-connected case.
2006-08-04 Mark Wielaard <mark@klomp.org>
* jvmti.cc: Include gcj/method.h.
2006-08-04 Tom Tromey <tromey@redhat.com>
* jvmti.cc: Added MAYBE_UNUSED to 'env' parameters.
(_Jv_JVMTI_GetObjectSize): Cast _Jv_GetArrayElementFromElementType
result to _Jv_uintptr_t.
2006-08-01 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/VMFrame.java: Update to Classpath 0.91.
* gnu/classpath/jdwp/VMIdManager.java: Likewise.
* gnu/classpath/jdwp/VMMethod.java: Likewise.
* gnu/classpath/jdwp/VMVirtualMachine: Likewise.
* gnu/classpath/jdwp/natVMFrame.java: New file.
* gnu/classpath/jdwp/natVMMethod.java: New file.
* gnu/classpath/jdwp/natVMVirtualMachine.java: New file.
* Makefile.am (nat_source_files): Add new filles.
* Makefile.in: Regenerated.
2006-08-03 Tom Tromey <tromey@redhat.com>
* jvmti.cc (REQUIRE_PHASE): New macro.
(_Jv_JVMTI_InterruptThread): New function.
(_Jv_JVMTI_CreateRawMonitor): Likewise.
(_Jv_JVMTI_DestroyRawMonitor): Likewise.
(_Jv_JVMTI_RawMonitorEnter): Likewise.
(_Jv_JVMTI_RawMonitorExit): Likewise.
(_Jv_JVMTI_RawMonitorWait): Likewise.
(_Jv_JVMTI_RawMonitorNotify): Likewise.
(_Jv_JVMTI_RawMonitorNotifyAll): Likewise.
(_Jv_JVMTI_Allocate): Likewise.
(_Jv_JVMTI_Deallocate): Likewise.
(_Jv_JVMTI_GetClassModifiers): Likewise.
(_Jv_JVMTI_GetClassMethods): Likewise.
(_Jv_JVMTI_IsInterface): Likewise.
(_Jv_JVMTI_IsArrayClass): Likewise.
(_Jv_JVMTI_GetClassLoader): Likewise.
(_Jv_JVMTI_GetObjectHashCode): Likewise.
(_Jv_JVMTI_GetFieldModifiers): Likewise.
(_Jv_JVMTI_IsFieldSynthetic): Likewise.
(_Jv_JVMTI_GetMethodModifiers): Likewise.
(_Jv_JVMTI_IsMethodNative): Likewise.
(_Jv_JVMTI_IsMethodSynthetic): Likewise.
(_Jv_JVMTI_GetClassLoaderClasses): Likewise.
(_Jv_JVMTI_ForceGarbageCollection): Likewise.
(_Jv_JVMTI_GetSystemProperty): Likewise.
(_Jv_JVMTI_SetSystemProperty): Likewise.
(_Jv_JVMTI_GetTime): Likewise.
(_Jv_JVMTI_GetAvailableProcessors): Likewise.
(_Jv_JVMTI_AddToBootstrapClassLoaderSearch): Likewise.
(_Jv_JVMTI_SetVerboseFlag): Likewise.
(_Jv_JVMTI_GetObjectSize): Likewise.
(_Jv_JVMTI_SetJNIFunctionTable): Likewise.
(_Jv_JVMTI_GetJNIFunctionTable): Likewise.
(_Jv_JVMTI_Interface): Updated.
(NULL_CHECK): New macro.
2006-08-02 Andreas Tobler <a.tobler@schweiz.ch>
PR libgcj/28546
* include/no-threads.h: Declare _Jv_Thread_t as empty class.
2006-08-01 Andreas Tobler <a.tobler@schweiz.ch>
* gnu/classpath/natSystemProperties.cc: Add additional check for
getpwuid_r on _POSIX_PTHREAD_SEMANTICS.
(SystemProperties::insertSystemProperties): Likewise.
* java/io/natFilePosix.cc (File::performList): Add
additional check for readdir_r on _POSIX_PTHREAD_SEMANTICS.
* java/util/natVMTimeZone.cc (VMTimeZone::getSystemTimeZoneId): Add
additional check for localtime_r on _POSIX_PTHREAD_SEMANTICS.
2006-07-31 Thomas Fitzsimmons <fitzsim@redhat.com>
PR libgcj/28312
* classpath/native/jni/midi-alsa/Makefile.am
(libgjsmalsa_la_LDFLAGS): Add -avoid-version.
* classpath/native/jni/midi-alsa/Makefile.in: Regenerate.
* classpath/native/jni/midi-dssi/Makefile.am
(libgjsmdssi_la_LDFLAGS): Add -avoid-version.
* classpath/native/jni/midi-dssi/Makefile.in: Regenerate.
* classpath/native/jni/qt-peer/Makefile.am: Remove GCJ LOCAL
sections.
(libqtpeer_la_LDFLAGS): Add -avoid-version.
* classpath/native/jni/qt-peer/Makefile.in: Regenerate.
* classpath/native/jni/gtk-peer/Makefile.am
(libgtkpeer_la_LDFLAGS): Add -avoid-version.
* classpath/native/jni/gtk-peer/Makefile.in: Regenerate.
* classpath/native/jawt/Makefile.am (libjawt_la_LDFLAGS): Add
-avoid-version.
* classpath/native/jawt/Makefile.in: Regenerate.
* Makefile.am (libjvm_la_LDFLAGS): Add -avoid-version.
* Makefile.in: Regenerate.
2006-07-28 Andrew Haley <aph@redhat.com>
* gnu/gcj/runtime/natSharedLibLoader.cc (init): Don't set
curLoader to VMClassLoader::bootLoader.
2006-07-28 Gary Benson <gbenson@redhat.com>
Casey Marshall <csm@gnu.org>
PR libgcj/13604:
* include/java-stack.h (GetClassMethodStack): Declare.
* stacktrace.cc (GetClassMethodStack): New method.
* java/security/AccessController.java: Removed.
* java/security/VMAccessController.java: New file.
* java/security/natVMAccessController.cc: Likewise.
* Makefile.am (nat_source_files): Added the above.
* sources.am, Makefile.in: Rebuilt.
2006-07-28 Gary Benson <gbenson@redhat.com>
* java/lang/SecurityManager.java (currentClassLoader,
currentLoadedClass, classLoaderDepth, checkAccess, checkRead,
checkWrite, checkTopLevelWindow, checkPrintJobAccess,
checkSystemClipboardAccess, checkAwtEventQueueAccess,
checkPackageList): Remerged javadoc.
2006-07-28 Gary Benson <gbenson@redhat.com>
* prims.cc (_Jv_CreateJavaVM): Move setting runtimeInitialized
from the start to the end of the function. Remove references
to VMThrowable.trace_enabled.
* java/lang/natVMThrowable.cc (fillInStackTrace): Use
runtimeInitialized rather than trace_enabled to decide
whether to inhibit stack trace generation.
* java/lang/VMThrowable.java (trace_enabled): Removed.
2006-07-23 Mohan Embar <gnustuff@thisiscool.com>
* include/win32-threads.h (_Jv_Thread_t): Explicitly
name the struct.
2006-07-23 Mohan Embar <gnustuff@thisiscool.com>
* jvmti.cc (_Jv_JVMTI_SuspendThread): Add missing JNICALL
attribute.
(_Jv_JVMTI_ResumeThread): Likewise.
(_Jv_JVMTI_DisposeEnvironment): Likewise.
2006-07-21 Mohan Embar <gnustuff@thisiscool.com>
* gnu/java/net/natPlainSocketImplPosix.cc (bind): Clear
SockAddr before using - needed for OS X/PPC.
2006-07-21 Keith Seitz <keiths@redhat.com>
* boehm.cc (_Jv_SuspendThread): Don't ifdef the function declaration,
just the contents.
(_Jv_ResumeThread): Likewise.
* posix-threads.cc: Revert 2006-06-19 _Jv_ThreadDebugSuspend,
_Jv_ThreadDebugResume, _Jv_ThreadDebugSuspendCount patch. Moving
to JVMTI instead.
* include/posix-threads.h: Likewise.
* win32-threads.cc: Likewise.
* include/win32-threads.h: Likewise.
* jvmti.cc (_Jv_JVMTI_SuspentThread): New function.
(_Jv_JVMTI_ResumeThread): New function.
(_Jv_JVMTI_Interface): Define SuspendThread and ResumeThread.
2006-07-21 David Daney <ddaney@avtrex.com>
PR libgcj/28426
* configure: Regenerated.
2006-07-21 Mark Wielaard <mark@klomp.org>
* java/io/OutputStreamWriter.java (flush): Create work if null.
2006-07-21 Keith Seitz <keiths@redhat.com>
* java/lang/natThread.cc (_Jv_ThreadGetData): New function.
* Makefile.am (java/lang/Thread.h): Add friend function
_Jv_ThreadGetData.
* Makefile.in: Regenerate.
2006-07-20 Keith Seitz <keiths@redhat.com>
* jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function.
(_Jv_JVMTI_Interface): Define DisposeEnvironment method.
2006-07-20 Keith Seitz <keiths@redhat.com>
* include/jvm.h (_Jv_GetJVMTIEnv): Declare.
* jni.cc (_Jv_JNI_GetEnv): Handle JVMTI requests.
* jvmti.cc: New file.
* Makefile.am (libgcj_la_SOURCES): Add jvmti.cc.
* Makefile.in: Regenerate.
2006-07-20 David Daney <ddaney@avtrex.com>
* configure.host: Enable the interpreter for mipsel-* and mips-*.
2006-07-20 David Daney <ddaney@avtrex.com>
* include/mips-signal.h: Update copyright.
(struct kernel_sigaction): Removed.
(SIGNAL_HANDLER): Changed prototype.
(MAKE_THROW_FRAME): Added cast.
(INIT_SEGV): Use sigaction instead of syscall.
(INIT_FPE): Likewise.
2006-07-18 Paolo Bonzini <bonzini@gnu.org>
* configure: Regenerate.
2006-07-18 Gary Benson <gbenson@redhat.com>
* java/io/File.java (deleteOnExit): Fix security check.
2006-07-14 Anthony Green <green@redhat.com>
* java/io/natFilePosix.cc (performSetLastModified): Return true on
success, false otherwise.
2006-07-14 Ranjit Mathew <rmathew@gcc.gnu.org>
* stacktrace.cc (_Jv_StackTrace::GetStackTrace): Unconditionally use
_Unwind_Backtrace().
(_Jv_StackTrace::GetCallerInfo): Enable even for targets using SJLJ
EH.
(_Jv_StackTrace::GetClassContext): Unconditionally use
_Unwind_Backtrace().
(_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise.
* sysdep/i386/backtrace.h (HAVE_FALLBACK_BACKTRACE): Do not define.
(_Unwind_GetIPInfo): Define macro if SJLJ EH is in use.
(_Unwind_GetRegionStart): Likewise.
(_Unwind_Backtrace): Likewise.
(fallback_backtrace): Accept additional unwind trace function
argument. Call it during unwinding. Stop when any of _Jv_RunMain(),
_Jv_ThreadStart() or main() is seen during unwinding.
* sysdep/generic/backtrace.h (fallback_backtrace): Accept an
additional unwind trace function argument.
2006-07-14 Gary Benson <gbenson@redhat.com>
* java/io/File.java (internalExists): New method.
(exists): Use internalExists.
(internalIsDirectory): New method.
(isDirectory): Use internalIsDirectory.
(createTempFile): Use internalExists and internalIsDirectory.
2006-07-13 Bryce McKinlay <mckinlay@redhat.com>
* interpret.cc (_Jv_InterpMethod::run): Don't SAVE_PC for fdiv.
2006-07-13 Bryce McKinlay <mckinlay@redhat.com>
* interpret.cc (_Jv_InterpMethod::compile): Add FIXME comment.
(_Jv_InterpMethod::run): SAVE_PC before executing any instruction
using resolve_pool_entry, as it can throw. Likewise for div/rem ops
that can throw ArithmeticException.
2006-07-12 Gary Benson <gbenson@redhat.com>
* java/io/File.java (renameTo): Fix security checks.
2006-07-12 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/28352
* stacktrace.cc (getLineNumberForFrame): Roll back PC by 1 when
looking up line number for interpreted frame.
2006-07-07 Bryce McKinlay <mckinlay@redhat.com>
Geoffrey Keating <geoffk@apple.com>
* testsuite/libjava.lang/StackTrace2.java: Renamed from
StackTrace.java. Changed class name.
* testsuite/libjava.lang/StackTrace2.out: Renamed from
StackTrace.out. Updated for new class name.
2006-07-07 Ranjit Mathew <rmathew@gcc.gnu.org>
* sysdep/i386/backtrace.h (fallback_backtrace): Scan for a function's
prologue to determine its beginning. Stop unwinding when we reach
JvRunMain().
2006-07-07 Gary Benson <gbenson@redhat.com>
* Makefile.am (BOOT_CLASS_PATH_DIR): Only contain libgcj.jar.
* Makefile.in: Regenerate.
2006-07-06 Bryce McKinlay <mckinlay@redhat.com>
* stacktrace.cc (ClassForFrame): Remove commented-out code.
(UnwindTraceFn): Use _Unwind_GetIPInfo and adjust IP
only when needed.
(getLineNumberForFrame): Don't adjust IP here.
* testsuite/libjava.lang/StackTrace.java: New test case.
* testsuite/libjava.lang/StackTrace.out: Ditto.
2006-07-06 Thomas Fitzsimmons <fitzsim@redhat.com>
* Makefile.am (libgcj_tools_la_GCJFLAGS): Add
-fno-indirect-classes.
* Makefile.in: Regenerate.
* gcj/Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
2006-07-06 Bryce McKinlay <mckinlay@redhat.com>
* boehm.cc (_Jv_MarkObj): Mark the next_or_version field.
2006-07-06 Thomas Fitzsimmons <fitzsim@redhat.com>
* configure.ac (ac_configure_args): Add --with-native-libdir.
* configure: Regenerate.
* classpath/native/jni/gtk-peer/Makefile.am: Remove GCJ LOCAL
sections.
* classpath/native/jni/gtk-peer/Makefile.in: Regenerate.
* classpath/native/jawt/Makefile.am: Remove GCJ LOCAL sections.
* classpath/native/jawt/Makefile.in: Regenerate.
* classpath/native/plugin/Makefile.am: Remove GCJ LOCAL sections.
* classpath/native/plugin/Makefile.in: Regenerate.
2006-07-05 Ranjit Mathew <rmathew@gcc.gnu.org>
Danny Smith <dannysmith@users.sourceforge.net>
* libgcj.spec.in: Use THREADSTARTFILESPEC to affect the spec for
startfile.
* configure.ac: Allow targets to affect the spec for startfile
by specifying a THREADSTARTFILESPEC variable. Define this for
the win32 threads package to include crtmt.o.
* configure: Regenerate.
* win32.cc (_CRT_MT): Remove definition.
(__mingwthr_key_dtor): Likewise.
2006-07-04 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/lib/libjava.exp (libjava_init): Call the GCJ_UNDER_TEST with
the -B$specdir.
PR libgcj/28226:
* include/posix.h (_Jv_platform_dladdr): Remove const qualifier.
* include/win32.h (_Jv_platform_dladdr): Likewise.
* posix.cc (_Jv_platform_dladdr): Likewise.
* win32.cc (_Jv_platform_dladdr): Likewise.
* testsuite/lib/libjava.exp (libjava_init): Look for libgcj-$version.jar
instead of libgcj-*.jar.
2006-07-04 Thomas Fitzsimmons <fitzsim@redhat.com>
PR libgcj/28244:
* Makefile.am (libgcj_tools_la_DEPENDENCIES): Add libgcj.la and
libgcj.spec.
* Makefile.in: Regenerate.
2006-06-30 Thomas Fitzsimmons <fitzsim@redhat.com>
* classpath/tools/Makefile.am: Comment out tools wrapper creation.
(TOOLS_ZIP): Rename tools.zip tools.jar.
(noinst_DATA): Do not install tools.jar.
* classpath/tools/Makefile.in: Regenerate.
* classpath/Makefile.am (SUBDIRS): Add tools.
(DIST_SUBDIRS): Likewise.
* classpath/Makefile.in: Regenerate.
* Makefile.am (toolexeclib_LTLIBRARIES): Add libgcj-tools.la.
(jar_DATA): Add libgcj-tools-$(gcc_version).jar.
(bin_PROGRAMS): Add gappletviewer, gjarsigner and gkeytool.
Add build logic for libgcj-tools.la,
libgcj-tools-$(gcc_version).jar and gappletviewer, gjarsigner and
gkeytool.
* Makefile.in: Regenerate.
2006-06-29 Ranjit Mathew <rmathew@gcc.gnu.org>
* gcj/javaprims.h (_Jv_uintptr_t): New typedef similar to uintptr_t in
C99.
* include/java-stack.h: Include stdlib.h.
(_Jv_AddrInfo): New structure to hold address information.
* include/posix.h (_Jv_platform_dladdr): Declare.
* include/win32.h (_Jv_platform_dladdr): Declare.
(backtrace): Remove declaration.
* posix.cc: Include dlfcn.h if available. Include java-stack.h.
(_Jv_platform_dladdr): Define.
* win32.cc: Include string.h. Include java-stack.h.
(backtrace): Remove.
(_Jv_platform_dladdr): Define.
* sysdep/i386/backtrace.h (fallback_backtrace): Check that a potential
frame pointer value is 32-bit word-aligned. Use operand of the CALL
instruction calling the current function to find its starting address.
* stacktrace.cc: Do not include dlfcn.h. Include platform.h.
(_Jv_StackTrace::getLineNumberForFrame): Use _Jv_platform_dladdr()
instead of dladdr().
(_Jv_StackTrace::GetStackTraceElements): Use nCodeMap even for Windows.
(_Jv_StackTrace::GetClassContext): Use fallback_backtrace() for
targets with SJLJ exceptions instead of using _Unwind_Backtrace().
(_Jv_StackTrace::GetFirstNonSystemClassLoader): Likewise.
2006-06-27 Tom Tromey <tromey@redhat.com>
* java/io/OutputStreamWriter.java (writeChars): Use a 'do' loop.
Set 'out.count' earlier.
(close): Call setFinished on converter.
(flush): Always write work buffer.
* java/io/PrintStream.java (writeChars): Do 'do' loop.
(close): Call setFinished on converter. Write a 'flush' array.
* java/lang/natString.cc (getBytes): Call setFinished on
converter.
* gnu/gcj/convert/CharsetToBytesAdaptor.java (hasBytes): New
field.
(write): Set hasBytes. Changed 'finished' logic.
(havePendingBytes): Rewrote.
(setFinished): New method.
* gnu/gcj/convert/UnicodeToBytes.java (setFinished): New method.
* testsuite/libjava.lang/RH194522.java: New file.
* testsuite/libjava.lang/RH194522.out: New file.
2006-06-27 Marco Trudel <mtrudel@gmx.ch>
* boehm.cc (_Jv_SuspendThread, _Jv_ResumeThread): Define
conditionally on GC_PTHREADS, !GC_SOLARIS_THREADS,
!GC_WIN32_THREADS and !GC_DARWIN_THREADS.
2006-06-27 Tom Tromey <tromey@redhat.com>
PR libgcj/28178:
* jni.cc (_Jv_JNI_DeleteLocalRef): Ignore null argument.
(_Jv_JNI_DeleteGlobalRef): Likewise.
* testsuite/libjava.jni/PR28178.java: New file.
* testsuite/libjava.jni/PR28178.c: New file.
* testsuite/libjava.jni/PR28178.out: New file.
2006-06-26 Keith Seitz <keiths@redhat.com>
* include/posix-threads.h: Fix coding style aberrations from
2006-06-19 check-in.
* posix-threads.cc (_Jv_ThreadDebugSuspend): Ditto.
* include/win32-threads.h (_Jv_ThreadDebugSuspend): Ditto.
* win32-threads.cc (_Jv_ThreadDebugSuspend): Ditto.
2006-06-26 Keith Seitz <keiths@redhat.com>
* include/no-gc.h (_Jv_SuspendThread): Declare.
(_Jv_ResumeThread): Likewise.
* include/boehm-gc.h (_Jv_SuspendThread): Declare.
(_Jv_ResumeThread): Likewise.
* nogc.cc (_Jv_SuspendThread): New function.
(_Jv_ResumeThread): Likewise.
* boehm.cc (_Jv_SuspendThread): New function.
(_Jv_ResumeThread): Likewise.
2006-06-22 Thomas Fitzsimmons <fitzsim@redhat.com>
* testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one):
Link against -ljvm, not -lgcj.
2006-06-22 Thomas Fitzsimmons <fitzsim@redhat.com>
* Makefile.am (libjvm_la_LDFLAGS): Do not set -rpath to
toolexeclibdir.
* Makefile.in: Regenerate.
2006-06-22 Tom Tromey <tromey@redhat.com>
* java/lang/reflect/natField.cc (getAddr): Allow setting of final
field when it is accessible.
2006-06-21 Bryce McKinlay <mckinlay@redhat.com>
* include/win32-threads.h (_Jv_ThreadDesc_t): New typedef.
(_Jv_GetPlatformThreadID): New function.
* include/posix-threads.h (_Jv_ThreadDesc_t): New typedef.
(_Jv_GetPlatformThreadID): New function.
2006-06-20 Bryce McKinlay <mckinlay@redhat.com>
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Bump "java.class.version" to 48.0.
2006-06-20 Thomas Fitzsimmons <fitzsim@redhat.com>
* Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR to
"$(dbexecdir)".
Build libjvm.la.
* Makefile.in: Regenerate.
* jni.cc (the_vm): Rename and export as ...
(_Jv_the_vm): New exported symbol.
(_Jv_JNI_AttachCurrentThread): Export.
(_Jv_JNI_DestroyJavaVM): Replace the_vm references with _Jv_the_vm
references.
(_Jv_GetJavaVM): Likewise.
(JNI_GetDefaultJavaVMInitArgs, JNI_CreateJavaVM,
JNI_GetCreatedJavaVMs): Move to ...
* jni-libjvm.cc: New file.
2006-06-19 Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/PR27908.out: New.
* testsuite/libjava.lang/PR27908.java: New.
2006-06-19 Keith Seitz <keiths@redhat.com>
* include/posix-threads.h (_Jv_ThreadDebugSuspend): Declare.
(_Jv_ThreadDebugResume): Declare.
(_Jv_ThreadDebugSuspendCount): Declare.
* posix-threads.cc (_Jv_ThreadDebugSuspend): New function.
(_Jv_ThreadDebugSuspendCount): New function.
(_Jv_ThreadDebugResume): New function.
* include/win32-threads.h (_Jv_ThreadDebugSuspend): Declare.
(_Jv_ThreadDebugResume): Declare.
(_Jv_ThreadDebugSuspendCount): Declare.
* win32-threads.cc (_Jv_ThreadDebugSuspend): New function.
(_Jv_ThreadDebugSuspendCount): New function.
(_Jv_ThreadDebugResume): New function.
2006-06-16 Andrew Haley <aph@redhat.com>
* java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Don't
copy the whole Class instance from the initializer: instead, copy
everything but the first word (the vtable pointer).
Change prototype to (const char* class_initializer).
(_Jv_RegisterNewClasses): Change prototype to (const char**).
* java/lang/Class.h (_Jv_RegisterNewClasses): Change prototype to
(const char**).
2006-06-15 Thomas Fitzsimmons <fitzsim@redhat.com>
* classpath/Makefile.am: Do not recurse into tools directory.
* classpath/Makefile.in: Regenerate.
2006-06-14 Thomas Fitzsimmons <fitzsim@redhat.com>
* classpath/tools/Makefile.am (gappletviewer_CFLAGS): Add
-I$(top_srcdir)/include.
(gjarsigner_CFLAGS): Likewise.
(gkeytool_CFLAGS): Likewise.
* classpath/tools/Makefile.in: Regenerate.
2006-06-13 Thomas Fitzsimmons <fitzsim@redhat.com>
* configure: Regenerate.
* Makefile.in: Regenerate.
* configure.ac (--enable-plugin): New option.
(ac_configure_args): Add --enable-tool-wrappers.
(ac_configure_args): Add --disable-plugin unless --enable-plugin
was specified.
* gcj/Makefile.in: Regenerate.
* sources.am (gnu_java_net_source_files): Add
classpath/gnu/java/net/IndexListParser.java.
(property_files): Remove
classpath/resource/gnu/classpath/tools/jarsigner/MessageBundle.properties,
classpath/resource/gnu/classpath/tools/keytool/MessageBundle.properties.
Add
classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle.properties,
classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle_de.properties,
classpath/resource/gnu/classpath/tools/getopt/Messages.properties,
classpath/resource/gnu/classpath/tools/jar/messages.properties,
classpath/resource/gnu/classpath/tools/jarsigner/messages.properties,
classpath/resource/gnu/classpath/tools/keytool/messages.properties,
classpath/resource/gnu/classpath/tools/native2ascii/messages.properties,
classpath/resource/gnu/classpath/tools/serialver/messages.properties.
* classpath/Makefile.in: Regenerate.
* classpath/native/jni/gtk-peer/cairographics2d.h,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c:
Merge from GNU Classpath.
* classpath/native/Makefile.in: Regenerate.
* classpath/native/jawt/Makefile.in: Regenerate.
* classpath/native/jawt/Makefile.am: Install libjawt.so in GCJ's
versioned library directory.
* classpath/native/Makefile.am: Add plugin directory if
--enable-plugin was specified.
* classpath/native/plugin/Makefile.in: Regenerate. *
classpath/native/plugin/Makefile.am: Install libgcjwebplugin.so in
GCJ's versioned library directory.
* classpath/resource/gnu/classpath/tools/native2ascii/messages.properties:
New file.
* classpath/resource/gnu/classpath/tools/getopt/Messages.properties:
Likewise.
* classpath/resource/gnu/classpath/tools/jarsigner/messages.properties:
Likewise.
* classpath/resource/gnu/classpath/tools/jarsigner/MessageBundle.properties:
Remove file.
* classpath/resource/gnu/classpath/tools/keytool/messages.properties:
New file.
* classpath/resource/gnu/classpath/tools/keytool/MessageBundle.properties:
Remove file.
* classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle_de.properties:
New file.
* classpath/resource/gnu/classpath/tools/appletviewer/MessagesBundle.properties:
Likewise.
* classpath/resource/gnu/classpath/tools/jar/messages.properties:
Likewise.
* classpath/resource/gnu/classpath/tools/serialver/messages.properties:
Likewise.
* classpath/gnu/java/net/IndexListParser.java:
Likewise.
* classpath/gnu/java/awt/peer/gtk/VolatileImageGraphics.java,
classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,
classpath/gnu/java/awt/peer/gtk/CairoSurface.java,
classpath/gnu/java/awt/peer/gtk/GdkFontPeer.java,
classpath/gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java,
classpath/gnu/java/awt/peer/gtk/GdkTextLayout.java,
classpath/gnu/java/awt/peer/gtk/ComponentGraphics.java,
classpath/gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java,
classpath/gnu/java/awt/peer/gtk/GtkVolatileImage.java,
classpath/gnu/java/awt/font/opentype/truetype/VirtualMachine.java,
classpath/gnu/java/awt/java2d/PolyEdge.java,
classpath/gnu/java/awt/java2d/AbstractGraphics2D.java: Merge from
GNU Classpath.
* classpath/tools/toolwrapper.c: Replace tools.zip reference with
libgcj-tools-4.2.0.jar.
* classpath/tools/Makefile.in: Regenerate.
* classpath/tools/Makefile.am: Rename tools.zip to
libgcj-tools-4.2.0.jar. Install libgcj-tools-4.2.0.jar in
$(datadir)/java.
* classpath/javax/swing/JTabbedPane.java,
classpath/javax/swing/text/DefaultStyledDocument.java,
classpath/javax/swing/text/html/HTMLDocument.java,
classpath/javax/swing/text/GapContent.java,
classpath/javax/swing/JComponent.java,
classpath/javax/swing/RepaintManager.java,
classpath/javax/swing/plaf/basic/BasicComboBoxRenderer.java,
classpath/javax/swing/plaf/basic/BasicScrollBarUI.java,
classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java,
classpath/javax/swing/plaf/basic/BasicScrollPaneUI.java,
classpath/javax/swing/plaf/basic/BasicLookAndFeel.java,
classpath/javax/swing/plaf/metal/MetalButtonUI.java,
classpath/java/text/Bidi.java,
classpath/java/awt/image/BufferedImage.java,
classpath/java/awt/datatransfer/DataFlavor.java,
classpath/java/awt/geom/AffineTransform.java,
classpath/java/awt/dnd/DropTargetDropEvent.java,
classpath/java/awt/dnd/DropTargetContext.java,
classpath/java/awt/font/TextLayout.java,
classpath/include/gnu_java_awt_peer_gtk_ComponentGraphics.h,
classpath/include/gnu_java_awt_peer_gtk_CairoGraphics2D.h,
classpath/include/gnu_java_awt_peer_gtk_FreetypeGlyphVector.h,
classpath/include/gnu_java_awt_peer_gtk_GdkTextLayout.h,
classpath/include/gnu_java_awt_peer_gtk_GtkVolatileImage.h,
classpath/include/gnu_java_awt_peer_gtk_CairoSurface.h: Merge from
GNU Classpath.
* classpath/include/gnu_java_awt_peer_gtk_GdkGraphics.h,
classpath/include/gnu_java_awt_peer_gtk_GdkGraphics2D.h,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c,
classpath/native/jni/gtk-peer/gtkcairopeer.h,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c:
Remove files.
* classpath/Makefile.am (SUBDIRS, DIST_SUBDIRS): Include tools
directory.
* include/Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
2006-06-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* configure.host (hppa*-*): Set 'enable_hash_synchronization_default'
to no.
2006-06-12 Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/PR27908.out: Delete.
* testsuite/libjava.lang/PR27908.java: Delete.
2006-06-12 Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/PR27908.out: New.
* testsuite/libjava.lang/PR27908.java: New.
2006-06-10 Thomas Fitzsimmons <fitzsim@redhat.com>
* configure.ac (ac_configure_args): Add --disable-plugin.
(--enable-gtk-cairo): Remove option.
* configure: Regenerate.
2006-06-09 Tom Tromey <tromey@redhat.com>
PR libgcj/27730:
* java/lang/Thread.java (threadId): New field.
(nextThreadId): New static field.
(Thread): Initialize new field.
(getId): New method.
2006-06-09 Tom Tromey <tromey@redhat.com>
* java/lang/Class.java (getClassLoaderInternal): Now native.
2006-06-09 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
(getDefaultScreenDevice): Remove unnecessary GCJ local hack.
* gnu/java/awt/peer/gtk/GtkToolkit.java (getSystemEventQueueImpl):
Likewise.
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java (registerFormat):
Likewise.
2006-06-09 Thomas Fitzsimmons <fitzsim@redhat.com>
* java/lang/String.java, classpath/native/jni/classpath/jcl.h,
classpath/native/jni/qt-peer/eventmethods.h,
classpath/native/jni/qt-peer/qtmenupeer.cpp,
classpath/native/jni/qt-peer/.cvsignore,
classpath/native/jni/gtk-peer/gdkdisplay.h,
classpath/native/jni/gtk-peer/cairographics2d.h,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c,
classpath/native/jni/gtk-peer/.cvsignore,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCanvasPeer.c,
classpath/native/jni/gtk-peer/gtkpeer.h,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkTextLayout.c,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFramePeer.c,
classpath/native/jni/gtk-peer/Makefile.am,
classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c,
classpath/native/jawt/Makefile.am,
classpath/native/jawt/.cvsignore,
classpath/native/target/Linux/Makefile.in,
classpath/native/plugin/gcjwebplugin.cc,
classpath/native/plugin/Makefile.am,
classpath/native/plugin/.cvsignore,
classpath/resource/Makefile.in,
classpath/gnu/java/awt/peer/gtk/VolatileImageGraphics.java,
classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,
classpath/gnu/java/awt/peer/gtk/CairoSurface.java,
classpath/gnu/java/awt/peer/gtk/GdkFontPeer.java,
classpath/gnu/java/awt/peer/gtk/GdkPixbufDecoder.java,
classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java,
classpath/gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java,
classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java,
classpath/gnu/java/awt/peer/gtk/ComponentGraphicsCopy.java,
classpath/gnu/java/awt/peer/gtk/GtkComponentPeer.java,
classpath/gnu/java/awt/peer/gtk/GdkGraphics.java,
classpath/gnu/java/awt/peer/gtk/GtkToolkit.java,
classpath/gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java,
classpath/gnu/java/awt/peer/gtk/BufferedImageGraphics.java,
classpath/gnu/java/awt/peer/gtk/GdkTextLayout.java,
classpath/gnu/java/awt/peer/gtk/GdkGraphicsConfiguration.java,
classpath/gnu/java/awt/peer/gtk/ComponentGraphics.java,
classpath/gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java,
classpath/gnu/java/awt/peer/gtk/GtkImage.java,
classpath/gnu/java/awt/peer/gtk/GtkVolatileImage.java,
classpath/gnu/java/awt/peer/gtk/GdkGlyphVector.java,
classpath/gnu/java/awt/peer/gtk/GtkCanvasPeer.java,
classpath/gnu/java/awt/peer/swing/SwingContainerPeer.java,
classpath/gnu/java/awt/peer/swing/SwingComponent.java,
classpath/gnu/java/awt/peer/swing/SwingTextFieldPeer.java,
classpath/gnu/java/awt/peer/swing/SwingMenuBarPeer.java,
classpath/gnu/java/awt/peer/swing/SwingFramePeer.java,
classpath/gnu/java/awt/peer/swing/SwingComponentPeer.java,
classpath/gnu/java/awt/peer/swing/SwingWindowPeer.java,
classpath/gnu/java/awt/print/JavaPrinterJob.java,
classpath/gnu/java/awt/print/PostScriptGraphics2D.java,
classpath/gnu/java/awt/print/SpooledDocument.java,
classpath/gnu/java/awt/print/JavaPrinterGraphics.java,
classpath/gnu/java/awt/BitwiseXORComposite.java,
classpath/gnu/java/awt/font/GNUGlyphVector.java,
classpath/gnu/java/awt/font/opentype/NameDecoder.java,
classpath/gnu/java/awt/java2d/RasterGraphics.java,
classpath/gnu/java/awt/java2d/TexturePaintContext.java,
classpath/gnu/java/awt/java2d/PolyEdge.java,
classpath/gnu/java/awt/java2d/AbstractGraphics2D.java,
classpath/gnu/java/awt/java2d/AlphaCompositeContext.java,
classpath/gnu/java/awt/java2d/ImagePaint.java,
classpath/gnu/java/awt/Buffers.java,
classpath/gnu/classpath/Configuration.java.in,
classpath/gnu/javax/swing/text/html/CombinedAttributes.java,
classpath/gnu/javax/swing/text/html/CharacterAttributeTranslator.java,
classpath/gnu/javax/swing/text/html/parser/htmlAttributeSet.java,
classpath/gnu/javax/swing/text/html/parser/SmallHtmlAttributeSet.java,
classpath/gnu/javax/swing/text/html/ImageViewIconFactory.java,
classpath/tools/toolwrapper.c,
classpath/tools/gnu/classpath/tools/native2ascii/Native2ASCII.java,
classpath/tools/gnu/classpath/tools/native2ascii/Messages.java,
classpath/tools/gnu/classpath/tools/getopt/FileArgumentCallback.java,
classpath/tools/gnu/classpath/tools/getopt/OptionGroup.java,
classpath/tools/gnu/classpath/tools/getopt/OptionException.java,
classpath/tools/gnu/classpath/tools/getopt/Messages.java,
classpath/tools/gnu/classpath/tools/getopt/Option.java,
classpath/tools/gnu/classpath/tools/getopt/Parser.java,
classpath/tools/gnu/classpath/tools/getopt/ClasspathToolParser.java,
classpath/tools/gnu/classpath/tools/jarsigner/JarSigner.java,
classpath/tools/gnu/classpath/tools/jarsigner/Main.java,
classpath/tools/gnu/classpath/tools/jarsigner/Messages.java,
classpath/tools/gnu/classpath/tools/jarsigner/package.html,
classpath/tools/gnu/classpath/tools/keytool/ListCmd.java,
classpath/tools/gnu/classpath/tools/keytool/StorePasswdCmd.java,
classpath/tools/gnu/classpath/tools/keytool/ExportCmd.java,
classpath/tools/gnu/classpath/tools/keytool/GenKeyCmd.java,
classpath/tools/gnu/classpath/tools/keytool/Messages.java,
classpath/tools/gnu/classpath/tools/keytool/package.html,
classpath/tools/gnu/classpath/tools/keytool/Command.java,
classpath/tools/gnu/classpath/tools/keytool/IdentityDBCmd.java,
classpath/tools/gnu/classpath/tools/keytool/Main.java,
classpath/tools/gnu/classpath/tools/keytool/DeleteCmd.java,
classpath/tools/gnu/classpath/tools/keytool/CertReqCmd.java,
classpath/tools/gnu/classpath/tools/keytool/SelfCertCmd.java,
classpath/tools/gnu/classpath/tools/keytool/KeyCloneCmd.java,
classpath/tools/gnu/classpath/tools/keytool/KeyPasswdCmd.java,
classpath/tools/gnu/classpath/tools/keytool/ImportCmd.java,
classpath/tools/gnu/classpath/tools/keytool/PrintCertCmd.java,
classpath/tools/gnu/classpath/tools/rmi/registry/package.html,
classpath/tools/gnu/classpath/tools/rmi/RMIC.txt,
classpath/tools/gnu/classpath/tools/rmi/RMIC.java,
classpath/tools/gnu/classpath/tools/appletviewer/ErrorApplet.java,
classpath/tools/gnu/classpath/tools/appletviewer/AppletClassLoader.java,
classpath/tools/gnu/classpath/tools/appletviewer/CommonAppletContext.java,
classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletContext.java,
classpath/tools/gnu/classpath/tools/appletviewer/AppletSecurityManager.java,
classpath/tools/gnu/classpath/tools/appletviewer/PluginAppletContext.java,
classpath/tools/gnu/classpath/tools/appletviewer/AppletWarning.java,
classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletViewer.java,
classpath/tools/gnu/classpath/tools/appletviewer/AppletTag.java,
classpath/tools/gnu/classpath/tools/appletviewer/ConsoleDialog.java,
classpath/tools/gnu/classpath/tools/appletviewer/Main.java,
classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletWindow.java,
classpath/tools/gnu/classpath/tools/appletviewer/PluginAppletViewer.java,
classpath/tools/gnu/classpath/tools/appletviewer/TagParser.java,
classpath/tools/gnu/classpath/tools/appletviewer/PluginAppletWindow.java,
classpath/tools/gnu/classpath/tools/appletviewer/CommonAppletStub.java,
classpath/tools/gnu/classpath/tools/serialver/Messages.java,
classpath/tools/gnu/classpath/tools/serialver/SerialVer.java,
classpath/tools/gnu/classpath/tools/jar/Creator.java,
classpath/tools/gnu/classpath/tools/jar/Entry.java,
classpath/tools/gnu/classpath/tools/jar/Lister.java,
classpath/tools/gnu/classpath/tools/jar/Main.java,
classpath/tools/gnu/classpath/tools/jar/Updater.java,
classpath/tools/gnu/classpath/tools/jar/Messages.java,
classpath/tools/gnu/classpath/tools/jar/Extractor.java,
classpath/tools/gnu/classpath/tools/jar/Action.java,
classpath/tools/gnu/classpath/tools/jar/Indexer.java,
classpath/tools/gnu/classpath/tools/jar/WorkSet.java,
classpath/tools/gnu/classpath/tools/giop/GRMIC.txt,
classpath/tools/gnu/classpath/tools/giop/grmic/GiopRmicCompiler.java,
classpath/tools/gnu/classpath/tools/giop/GRMIC.java,
classpath/tools/Makefile.am, classpath/tools/jarsigner.in,
classpath/tools/keytool.in, classpath/tools/appletviewer.in,
classpath/tools/.cvsignore, classpath/configure.ac,
classpath/javax/swing/JTabbedPane.java,
classpath/javax/swing/AbstractButton.java,
classpath/javax/swing/JViewport.java,
classpath/javax/swing/KeyboardManager.java,
classpath/javax/swing/JMenuItem.java,
classpath/javax/swing/JMenuBar.java,
classpath/javax/swing/MenuSelectionManager.java,
classpath/javax/swing/JOptionPane.java,
classpath/javax/swing/JSpinner.java,
classpath/javax/swing/JCheckBoxMenuItem.java,
classpath/javax/swing/JEditorPane.java,
classpath/javax/swing/JFormattedTextField.java,
classpath/javax/swing/JTree.java,
classpath/javax/swing/CellRendererPane.java,
classpath/javax/swing/JScrollPane.java,
classpath/javax/swing/tree/VariableHeightLayoutCache.java,
classpath/javax/swing/tree/TreeNode.java,
classpath/javax/swing/tree/FixedHeightLayoutCache.java,
classpath/javax/swing/tree/DefaultTreeCellEditor.java,
classpath/javax/swing/tree/TreePath.java,
classpath/javax/swing/tree/RowMapper.java,
classpath/javax/swing/tree/DefaultMutableTreeNode.java,
classpath/javax/swing/tree/DefaultTreeModel.java,
classpath/javax/swing/tree/AbstractLayoutCache.java,
classpath/javax/swing/tree/TreeSelectionModel.java,
classpath/javax/swing/tree/DefaultTreeSelectionModel.java,
classpath/javax/swing/tree/DefaultTreeCellRenderer.java,
classpath/javax/swing/tree/ExpandVetoException.java,
classpath/javax/swing/JList.java,
classpath/javax/swing/table/JTableHeader.java,
classpath/javax/swing/table/AbstractTableModel.java,
classpath/javax/swing/table/DefaultTableModel.java,
classpath/javax/swing/table/TableCellEditor.java,
classpath/javax/swing/table/TableCellRenderer.java,
classpath/javax/swing/ProgressMonitor.java,
classpath/javax/swing/JToolBar.java,
classpath/javax/swing/TransferHandler.java,
classpath/javax/swing/DefaultCellEditor.java,
classpath/javax/swing/DefaultButtonModel.java,
classpath/javax/swing/JLayeredPane.java,
classpath/javax/swing/text/DefaultEditorKit.java,
classpath/javax/swing/text/DefaultCaret.java,
classpath/javax/swing/text/FieldView.java,
classpath/javax/swing/text/JTextComponent.java,
classpath/javax/swing/text/TextAction.java,
classpath/javax/swing/text/StyleContext.java,
classpath/javax/swing/text/html/HTMLDocument.java,
classpath/javax/swing/text/html/MinimalHTMLWriter.java,
classpath/javax/swing/text/html/ImageView.java,
classpath/javax/swing/text/html/HTMLEditorKit.java,
classpath/javax/swing/text/AbstractWriter.java,
classpath/javax/swing/text/GapContent.java,
classpath/javax/swing/text/Utilities.java,
classpath/javax/swing/text/PlainView.java,
classpath/javax/swing/UIManager.java,
classpath/javax/swing/JSplitPane.java,
classpath/javax/swing/JComponent.java,
classpath/javax/swing/SwingUtilities.java,
classpath/javax/swing/border/AbstractBorder.java,
classpath/javax/swing/border/CompoundBorder.java,
classpath/javax/swing/border/TitledBorder.java,
classpath/javax/swing/border/MatteBorder.java,
classpath/javax/swing/border/BevelBorder.java,
classpath/javax/swing/RepaintManager.java,
classpath/javax/swing/JTable.java,
classpath/javax/swing/UIDefaults.java,
classpath/javax/swing/DefaultDesktopManager.java,
classpath/javax/swing/JMenu.java,
classpath/javax/swing/JLabel.java,
classpath/javax/swing/JSlider.java,
classpath/javax/swing/plaf/basic/BasicToolBarUI.java,
classpath/javax/swing/plaf/basic/BasicButtonUI.java,
classpath/javax/swing/plaf/basic/BasicOptionPaneUI.java,
classpath/javax/swing/plaf/basic/BasicTextAreaUI.java,
classpath/javax/swing/plaf/basic/BasicToggleButtonUI.java,
classpath/javax/swing/plaf/basic/BasicSpinnerUI.java,
classpath/javax/swing/plaf/basic/BasicSliderUI.java,
classpath/javax/swing/plaf/basic/BasicTabbedPaneUI.java,
classpath/javax/swing/plaf/basic/BasicComboPopup.java,
classpath/javax/swing/plaf/basic/BasicCheckBoxUI.java,
classpath/javax/swing/plaf/basic/BasicInternalFrameUI.java,
classpath/javax/swing/plaf/basic/BasicProgressBarUI.java,
classpath/javax/swing/plaf/basic/BasicRadioButtonUI.java,
classpath/javax/swing/plaf/basic/BasicPanelUI.java,
classpath/javax/swing/plaf/basic/BasicSplitPaneUI.java,
classpath/javax/swing/plaf/basic/BasicTreeUI.java,
classpath/javax/swing/plaf/basic/BasicTableHeaderUI.java,
classpath/javax/swing/plaf/basic/BasicFileChooserUI.java,
classpath/javax/swing/plaf/basic/BasicScrollPaneUI.java,
classpath/javax/swing/plaf/basic/BasicComboBoxUI.java,
classpath/javax/swing/plaf/basic/BasicListUI.java,
classpath/javax/swing/plaf/basic/BasicIconFactory.java,
classpath/javax/swing/plaf/basic/BasicTextUI.java,
classpath/javax/swing/plaf/basic/BasicLookAndFeel.java,
classpath/javax/swing/plaf/basic/BasicDirectoryModel.java,
classpath/javax/swing/plaf/basic/BasicRootPaneUI.java,
classpath/javax/swing/plaf/basic/BasicTableUI.java,
classpath/javax/swing/plaf/basic/SharedUIDefaults.java,
classpath/javax/swing/plaf/multi/MultiComboBoxUI.java,
classpath/javax/swing/plaf/multi/MultiListUI.java,
classpath/javax/swing/plaf/multi/MultiSplitPaneUI.java,
classpath/javax/swing/plaf/multi/MultiFileChooserUI.java,
classpath/javax/swing/plaf/multi/MultiOptionPaneUI.java,
classpath/javax/swing/plaf/multi/MultiTabbedPaneUI.java,
classpath/javax/swing/plaf/multi/MultiLookAndFeel.java,
classpath/javax/swing/plaf/metal/MetalSliderUI.java,
classpath/javax/swing/plaf/metal/MetalIconFactory.java,
classpath/javax/swing/plaf/metal/MetalComboBoxIcon.java,
classpath/javax/swing/plaf/metal/MetalTabbedPaneUI.java,
classpath/javax/swing/plaf/metal/MetalLookAndFeel.java,
classpath/javax/swing/plaf/metal/MetalCheckBoxUI.java,
classpath/javax/swing/plaf/metal/MetalSeparatorUI.java,
classpath/javax/swing/plaf/metal/MetalBorders.java,
classpath/javax/swing/plaf/metal/MetalSplitPaneDivider.java,
classpath/javax/swing/plaf/metal/MetalScrollBarUI.java,
classpath/javax/swing/plaf/metal/MetalRootPaneUI.java,
classpath/javax/swing/plaf/metal/MetalInternalFrameUI.java,
classpath/javax/swing/plaf/metal/MetalRadioButtonUI.java,
classpath/javax/swing/plaf/metal/MetalToolTipUI.java,
classpath/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java,
classpath/javax/swing/plaf/metal/MetalFileChooserUI.java,
classpath/javax/swing/plaf/metal/MetalUtils.java,
classpath/javax/swing/plaf/metal/MetalComboBoxButton.java,
classpath/javax/swing/plaf/metal/MetalPopupMenuSeparatorUI.java,
classpath/javax/swing/plaf/metal/MetalButtonUI.java,
classpath/javax/swing/JPopupMenu.java,
classpath/javax/swing/JProgressBar.java,
classpath/javax/swing/WindowConstants.java,
classpath/javax/swing/JFrame.java,
classpath/javax/swing/JFileChooser.java,
classpath/javax/swing/JComboBox.java,
classpath/javax/swing/event/EventListenerList.java,
classpath/javax/swing/ListSelectionModel.java,
classpath/javax/swing/JScrollBar.java,
classpath/java/text/SimpleDateFormat.java,
classpath/java/text/NumberFormat.java,
classpath/java/text/class-dependencies.conf,
classpath/java/awt/image/ColorModel.java,
classpath/java/awt/image/BufferedImage.java,
classpath/java/awt/Window.java,
classpath/java/awt/ContainerOrderFocusTraversalPolicy.java,
classpath/java/awt/LightweightDispatcher.java,
classpath/java/awt/EventDispatchThread.java,
classpath/java/awt/BasicStroke.java,
classpath/java/awt/ColorPaintContext.java,
classpath/java/awt/Container.java,
classpath/java/awt/TexturePaint.java,
classpath/java/awt/Component.java, classpath/java/awt/Font.java,
classpath/java/awt/GraphicsConfiguration.java,
classpath/java/awt/DefaultKeyboardFocusManager.java,
classpath/java/awt/print/PrinterJob.java,
classpath/java/awt/im/InputContext.java,
classpath/java/awt/dnd/DragGestureRecognizer.java,
classpath/java/awt/Toolkit.java,
classpath/java/awt/font/GraphicAttribute.java,
classpath/java/awt/font/ImageGraphicAttribute.java,
classpath/java/awt/font/GlyphVector.java,
classpath/java/awt/font/GlyphMetrics.java,
classpath/java/awt/font/ShapeGraphicAttribute.java,
classpath/java/awt/Graphics2D.java,
classpath/include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h,
classpath/include/gnu_java_awt_peer_gtk_ComponentGraphics.h,
classpath/include/gnu_java_awt_peer_gtk_CairoGraphics2D.h,
classpath/include/gnu_java_awt_peer_gtk_FreetypeGlyphVector.h,
classpath/include/gnu_java_awt_peer_gtk_GtkCanvasPeer.h,
classpath/include/config.h.in,
classpath/include/gnu_java_awt_peer_gtk_GdkTextLayout.h,
classpath/include/gnu_java_awt_peer_gtk_GtkComponentPeer.h,
classpath/include/gnu_java_awt_peer_gtk_GdkFontPeer.h,
classpath/include/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.h,
classpath/include/gnu_java_awt_peer_gtk_GtkVolatileImage.h,
classpath/include/gnu_java_awt_peer_gtk_GtkImage.h,
classpath/include/gnu_java_awt_peer_gtk_CairoSurface.h,
classpath/include/gnu_java_awt_peer_gtk_GdkScreenGraphicsDevice.h:
Merge from GNU Classpath HEAD.
2006-06-08 Tom Tromey <tromey@redhat.com>
* gnu/classpath/natSystemProperties.cc (insertSystemProperties):
Set gnu.gcj.user.realname.
2006-06-09 Andreas Tobler <a.tobler@schweiz.ch>
* scripts/jar.in: Replace hardcoded /bin/sh with @SHELL@.
2006-06-07 Andrew Haley <aph@redhat.com>
* include/jvm.h (_Jv_Linker::maybe_adjust_signature): New.
(_Jv_Linker::uaddr): New.
* link.cc (resolve_pool_entry): Call search_method_in_superclasses
instead of an open-coded loop around search_method_in_class.
(search_method_in_class): Add a new arg, check_perms.
(search_method_in_superclasses): New.
(link_symbol_table): Call maybe_adjust_signature() to extract the
least significnt bit of the signature pointer. Do this three
times, for instace method calls, static methods, and interfaces.
Call search_method_in_superclasses() instead of
_Jv_LookupDeclaredMethod.
(typedef uaddr): Delete.
2006-06-07 Thomas Fitzsimmons <fitzsim@redhat.com>
* scripts/makemake.tcl (emit_bc_rule): Do not skip
gnu-java-awt-peer-qt.lo.
* configure.ac (QT_AWT): Remove conditional.
Do not add gnu/java/awt/peer/qt to standard.omit.
* classpath/native/jni/qt-peer/Makefile.am: Install libqtpeer.so
in GCJ's versioned library directory.
* classpath/gnu/java/awt/peer/qt/QtToolkit.java (initToolkit):
Load libqtpeer.so unconditionally.
* gij.cc (main): Do not re-exec gij.
* Makefile.am: Remove lib-gnu-java-awt-peer-qt.lo build logic.
(gij_LDFLAGS): Point -rpath at GCJ's versioned library directory
when linking gij.
2006-06-06 David Daney <ddaney@avtrex.com>
* gnu/gcj/runtime/NameFinder.java (show_raw): New field.
(showRaw): New method.
* stacktrace.cc : Include gnu/gcj/runtime/StringBuffer.h.
(getLineNumberForFrame): Show IP offset in trace if line number
not available and show_raw true.
2006-06-06 Gary Benson <gbenson@redhat.com>
* java/io/natFilePosix.cc (getCanonicalPath): Rewritten.
* configure.ac: Remove realpath check and add checks for
lstat and readlink.
* configure: Rebuilt.
* include/config.h.in: Likewise.
* java/io/File.java: Javadoc fix.
2006-06-05 Andreas Schwab <schwab@suse.de>
PR libgcj/27860
* link.cc: Check for closure support in libffi with FFI_CLOSURES.
2006-06-05 Tom Tromey <tromey@redhat.com>
PR libgcj/27892:
* gij.cc (main): Use putenv.
2006-06-03 Paolo Bonzini <bonzini@gnu.org>
* scripts/jar.in: Ensure return with argument has non-empty argument.
2006-06-01 Paolo Bonzini <bonzini@gnu.org>
* configure.ac (ZIP, UNZIP): New programs.
(JAR): Fall back to bash script. Generate it.
(BASH_JAR): New conditional.
* Makefile.am (bin_SCRIPTS): New.
* scripts/jar.in: New file.
2006-06-01 Bryce McKinlay <mckinlay@redhat.com>
* gnu/java/lang/MainThread (run): Revert exception chaining change.
2006-05-31 Bryce McKinlay <mckinlay@redhat.com>
* prims.cc (_Jv_RunMain): Use JvNewStringUTF for command-line class
name, not Latin1.
* gnu/java/lang/MainThread.java (run): Allow file separator char to
be used in place of '.' as class-name separator. Don't chain
ClassNotFoundException.
2006-05-31 Thomas Fitzsimmons <fitzsim@redhat.com>
* java/lang/VMClassLoader.java (initialize): Set default library
control to LIB_NEVER.
2006-05-31 Alan Modra <amodra@bigpond.net.au>
* stacktrace.cc (_Jv_StackTrace::UpdateNCodeMap): Don't add
interpreted classes.
2006-05-30 Thomas Fitzsimmons <fitzsim@redhat.com>
* scripts/makemake.tcl (emit_bc_rule): Do not skip
gnu-java-awt-peer-gtk.lo.
Include gnu/java/awt/peer/gtk Java objects in libgcj.so. Use C++
ABI for gnu/java/awt/peer/gtk package.
* gnu/classpath/natSystemProperties.cc (PrependVersionedLibdir):
New function.
(insertSystemProperties): Only set java.ext.dirs if it is not
already defined. Prepend GCJ_VERSIONED_LIBDIR to module search
path where necessary.
* configure.ac (GTK_AWT): Remove automake conditional.
Do not add gnu/java/awt/peer/gtk to standard.omit.
* include/jvm.h (_Jv_PrependVersionedLibdir): New function
declaration.
* gij.cc (main): Prepend LD_LIBRARY_PATH with GCJ_VERSIONED_LIBDIR
and re-exec self.
* Makefile.am (AM_CXXFLAGS): Define GCJ_VERSIONED_LIBDIR and
PATH_SEPARATOR macros.
Remove lib-gnu-java-awt-peer-gtk.la and libgcjawt.la build logic.
* prims.cc (_Jv_PrependVersionedLibdir): New function.
2006-05-29 Thomas Fitzsimmons <fitzsim@redhat.com>
* java/lang/natThread.cc (countStackFrames): Do not throw
UnsupportedOperationException.
(resume): Likewise.
(stop): Likewise.
(suspend): Likewise.
2006-05-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* configure.ac: Add sys/rw_lock.h to AC_CHECK_HEADERS.
* configure: Rebuilt.
* include/config.h.in: Likewise.
* include/posix.h: If HAVE_SYS_RW_LOCK_H is defined, include
<sys/rw_lock.h>.
2006-05-24 Tom Tromey <tromey@redhat.com>
PR libgcj/27024:
* sources.am, Makefile.in: Rebuilt.
* gnu/java/net/DefaultContentHandlerFactory.java: Removed.
* java/net/URLConnection.java: Removed.
2006-05-24 Carlos O'Donell <carlos@codesourcery.com>
* Makefile.am: Add install-html target. Add install-html to .PHONY
* Makefile.in: Regenerate.
* aclocal.m4: Regenerate.
* gcj/Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
2006-05-24 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libjava.lang/stacktrace.java: New file.
* testsuite/libjava.lang/stacktrace.out: Likewise.
2006-05-24 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* scripts/makemake.tcl: Accept -verbose command-line option.
(is_verbose): New global.
(verbose): Use it.
(classify_source_file): Don't special case '.' for 'package'
type.
2006-05-24 Tom Tromey <tromey@redhat.com>
PR libgcj/27729:
* java/lang/reflect/natField.cc (getAddr): Added parens.
* java/lang/reflect/natConstructor.cc (getModifiersInternal):
Renamed. Don't mask flags.
* java/lang/reflect/Constructor.java (CONSTRUCTOR_MODIFIERS): New
constant.
(getModifiersInternal): Renamed.
(getModifiers): Rewrote.
(isSynthetic, isVarArgs): New methods.
(hashCode): Rewrote.
(addTypeParameters, toGenericString): New methods.
(getTypeParameters): Rewrote.
(getSignature): New method.
(getGenericParameterTypes, getGenericExceptionTypes): Likewise.
* java/lang/reflect/natMethod.cc (getModifiersInternal):
Renamed. Don't mask flags.
* java/lang/reflect/natField.cc (getModifiersInternal): Renamed.
Don't mask flags.
* java/lang/reflect/Modifier.java (BRIDGE, VARARGS, SYNTHETIC,
ENUM): New constants.
(INVISIBLE): Changed value.
* java/lang/reflect/Method.java: Mostly merged with Classpath.
(getModifiersInternal): Renamed.
(getModifiers): Rewrote.
(isBridge, isSynthetic, isVarArgs): New methods.
(toGenericString): Likewise.
(getTypeParameters): Likewise.
(getSignature): Likewise.
(getGenericExceptionTypes, getGenericParameterTypes,
getGenericReturnType): Likewise.
(METHOD_MODIFIERS): New constant.
* java/lang/reflect/Field.java: Mostly merged with Classpath.
Added javadoc everywhere.
(getModifiersInternal): Renamed.
(getModifiers, isSynthetic, isEnumConstant): Rewrote.
(toGenericString): New method.
(getGenericType, getSignature): Likewise.
(FIELD_MODIFIERS): New constant.
2006-05-24 Tom Tromey <tromey@redhat.com>
PR libgcj/27731:
* java/lang/natMath.cc (cbrt, cosh, expm1, hypot, log1p, sinh,
tanh): New methods.
* java/lang/Math.java (cbrt, cosh, expm1, hypot, log1p, sinh,
tanh): Declare.
2006-05-22 Mark Wielaard <mark@klomp.org>
* HACKING: Update GNU Classpath import instructions.
2006-05-21 Andreas Tobler <a.tobler@schweiz.ch>
* java/lang/natClass.cc (_Jv_FindMethodInCache): Mark klass, name and
signature as MAYBE_UNUSED for HAVE_TLS == 0.
(_Jv_AddMethodToCache): Mark klass and method as MAYBE_UNUSED for
HAVE_TLS == 0.
2006-05-20 Andreas Tobler <a.tobler@schweiz.ch>
John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* configure.ac: Add the POSIX thread libs to the HP-UX PA
configuration. Add signal specification for HP-UX PA.
* configure: Rebuilt.
* configure.host: Add defaults for the HP-UX PA architecture.
Add descriptor files for HP-UX PA 32-bit and 64-bit.
* include/hppa-signal.h: New file.
* include/posix.h: Add shared library suffix for HP-UX.
* sysdep/pa/descriptor-pa32-hpux.h: New file.
* sysdep/pa/descriptor-pa64-hpux.h: Likewise.
2006-05-19 Ranjit Mathew <rmathew@gcc.gnu.org>
* ChangeLog: Correct incorrect GNU Classpath version in the
entry for the latest import.
2006-05-18 Tom Tromey <tromey@redhat.com>
* source.am, Makefile.in: Rebuilt.
* Makefile.am (property_files): Removed.
* scripts/makemake.tcl (properties_map): New global.
(properties_files): Likewise.
(emit_property_files): New proc.
(scan_packages): Scan META-INF.
Print property_files variable. Scan classpath/resource.
2006-05-18 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.special/special.exp (gcj_special_pr21115):
Renamed.
(gcj_write_and_byte_compile): New proc.
(gcj_special_lazy_illegal_access): Likewise.
2006-05-18 Mark Wielaard <mark@klomp.org>
Imported GNU Classpath 0.91
* scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale.
* sources.am: Regenerated.
* gcj/javaprims.h: Regenerated.
* Makefile.in: Regenerated.
* gcj/Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
* gnu/java/lang/VMInstrumentationImpl.java: New override.
* gnu/java/net/local/LocalSocketImpl.java: Likewise.
* gnu/classpath/jdwp/VMMethod.java: Likewise.
* gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest
interface.
* java/lang/Thread.java: Add UncaughtExceptionHandler.
* java/lang/reflect/Method.java: Implements GenericDeclaration and
isSynthetic(),
* java/lang/reflect/Field.java: Likewise.
* java/lang/reflect/Constructor.java
* java/lang/Class.java: Implements Type, GenericDeclaration,
getSimpleName() and getEnclosing*() methods.
* java/lang/Class.h: Add new public methods.
* java/lang/Math.java: Add signum(), ulp() and log10().
* java/lang/natMath.cc (log10): New function.
* java/security/VMSecureRandom.java: New override.
* java/util/logging/Logger.java: Updated to latest classpath
version.
* java/util/logging/LogManager.java: New override.
2006-05-15 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/27352
* java/lang/Class.java (getClassLoaderInternal): New method.
(forName (String, Class)): Use getClassLoaderInternal.
(getPackage): Likewise.
(getResource): Likewise.
(getResourceAsStream): Likewise.
(desiredAssertionStatus): Likewise.
2006-05-15 Andreas Tobler <a.tobler@schweiz.ch>
* stacktrace.cc (StackTrace::FillInFrameInfo): Use
UNWRAP_FUNCTION_DESCRIPTOR to compare frame->start_ip against the
klass->methods[j].ncode.
2006-05-13 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Mention natVMChannels.cc, not
natChannels.cc.
* java/nio/channels/natVMChannels.cc: Renamed from
natChannels.cc.
* java/nio/channels/Channels.java: Removed.
* java/nio/channels/natChannels.cc: Removed.
* java/nio/channels/VMChannels.java: New file.
2006-05-13 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* java/text/DateFormat.java: Removed.
2006-05-13 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* gnu/java/net/protocol/jar/Connection.java: Removed.
* java/net/JarURLConnection.java: Removed.
2006-05-13 Tom Tromey <tromey@redhat.com>
* include/java-interp.h (_Jv_InterpMethod::dump_object): Removed
declaration.
2006-05-12 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* java/util/logging/LogManager.java: Removed.
* java/util/logging/Logger.java (resetLogger): New method, from
Classpath.
* java/io/RandomAccessFile.java: Removed.
* gnu/java/nio/channels/FileChannelImpl.java (create): New
method.
(FileChannelImpl): Now private.
* java/io/FileInputStream.java: Removed.
* java/io/FileOutputStream.java: Removed.
* java/security/AccessControlContext.java: Removed.
* java/lang/ThreadLocal.java: Removed.
* java/lang/InheritableThreadLocal.java: Removed.
* java/lang/Thread.java (locals): New field.
(getThreadLocals): New method.
* java/lang/natThread.cc (finish_): Clear 'locals'.
2006-05-11 Bryce McKinlay <mckinlay@redhat.com>
* gnu/gcj/runtime/NameFinder.java (lookup): If exec'ing addr2line
fails, don't try again.
(use_addr2line): Field no longer final.
2006-05-11 Bryce McKinlay <mckinlay@redhat.com>
* gnu/gcj/runtime/NameFinder.java (blacklist): New static field.
(lookup): If addr2line fails to find an address, flag the binary as
having no debug info and avoid calling addr2line on it again.
2006-05-11 David Daney <ddaney@avtrex.com>
* testsuite/libjava.compile/PR20418.java: New.
* testsuite/libjava.compile/PR20418.xfail: New.
2006-05-11 Andrew Haley <aph@redhat.com>
* gnu/gcj/runtime/natSharedLibLoader.cc (init): Remove debugging
line.
2006-05-10 Andrew Haley <aph@redhat.com>
* java/lang/natClassLoader.cc: Add comments.
2006-05-09 Andrew Haley <aph@redhat.com>
* prims.cc (_Jv_soleIndirectCompiledEngine): New.
* include/execution.h (Jv_CompiledEngine::do_allocate_static_fields):
Remove body.
(_Jv_CompiledEngine::allocate_field_initializers): New.
(_Jv_CompiledEngine::_Jv_CompiledEngine): Initialize
allocate_field_initializers.
(class _Jv_IndirectCompiledClass): New.
(struct _Jv_IndirectCompiledEngine): New.
* java/lang/Class.h: (IndirectCompiledEngine): New.
* java/lang/natClassLoader.cc (_Jv_NewClassFromInitializer): Set
engine to _Jv_soleIndirectCompiledEngine
* link.cc (ensure_fields_laid_out): Call
engine->allocate_field_initializers().
2006-05-06 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Add check for
HP-UX and add appropriate extension for shared libraries, sl.
(gcj_jni_test_one): Likewise.
* testsuite/lib/libjava.exp (libjava_find_lib): Add sl to the shared
library extensions.
2006-05-05 Tom Tromey <tromey@redhat.com>
PR libgcj/27294:
* java/lang/natVMClassLoader.cc (defineClass): Throw
VirtualMachineError if no interpreter configured.
2006-05-03 Andrew Haley <aph@redhat.com>
PR libgcj/27352
* java/lang/Class.java (getClassLoader(Class)): New.
forName(String, Class): New.
* java/lang/natClass.cc (getClassLoader(Class)): New.
2006-05-02 Andrew Haley <aph@redhat.com>
* prims.cc (_Jv_NewMultiArray): Check for phantom class.
2006-05-04 Tom Tromey <tromey@redhat.com>
PR libgcj/26861:
* interpret.cc (run) <insn_getfield>: Removed 0xffff check.
<insn_putfield>: Likewise.
(NULLCHECK): Define unconditionally.
* link.cc (ensure_class_linked): Removed dead code.
2006-05-04 Tom Tromey <tromey@redhat.com>
* java/lang/Class.h (JV_STATE_LOADING): Added comment.
* Makefile.in: Rebuilt.
* Makefile.am (nat_source_files): Added natSystemClassLoader.cc.
* gnu/gcj/runtime/natSystemClassLoader.cc: New file.
* gnu/gcj/runtime/SystemClassLoader.java (nativeClasses):
New field.
(loadedClasses): Removed.
(findClass): Declare.
(addClass): Add to nativeClasses, not loadedClasses.
2006-05-04 Andrew Haley <aph@redhat.com>
PR java/26858
* testsuite/libjava.lang/PR26858.xfail: Delete.
2006-05-02 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/lib/libjava.exp (test_libjava): Test bytecode->native
-findirect-dispatch compilation.
2006-05-01 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Simplify the mmap check a bit more.
* configure: Rebuilt.
* include/config.h.in: Likewise.
2006-05-01 Roger Sayle <roger@eyesopen.com>
Andrew Haley <aph@redhat.com>
* boehm.cc (_Jv_InitGC): Check both HAVE_DLFCN_H and HAVE_DLADDR
before calling GC_register_has_static_roots_callback.
(_Jv_RegisterLibForGc): Likewise, test for both HAVE_DLFCN_H and
HAVE_DLADDR before calling dladdr.
2006-04-28 Bryce McKinlay <mckinlay@redhat.com>
* link.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index
to resolve_method.
* interpret.cc (insn_invokevirtual): Use method->index, not
vtable_index. Check accflag FINAL to determine finals. Only do
explicit null check if calling a final method. Use
throw_null_pointer_exception.
(invokevirtual_resolved): Likewise.
(null_pointer_exc): Remove static field.
(throw_null_pointer_exception): Always define. Throw a new
NullPointerException every time.
* include/java-interp.h (_Jv_ResolvedMethod): Remove vtable_index
field.
* include/execution.h (resolve_method): Remove vtable_index argument.
2006-04-28 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Add an additional checks for dladdr and dlopen on dld.
* configure: Rebuilt.
2006-04-25 Tom Tromey <tromey@redhat.com>
* gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h later.
Include platform.h. Set GC_DEBUG before including gc.h, if
needed.
2006-04-25 Andrew Haley <aph@redhat.com>
* java/lang/natClassLoader.cc: Don't include link.h or dladdr.h.
* boehm.cc: Don't include link.h.
(_Jv_RegisterLibForGc): Cast away const when calling dladdr().
2006-04-24 Tom Tromey <tromey@redhat.com>
* java/lang/natClass.cc (_Jv_getInterfaceMethod): Skip <clinit>.
2006-04-21 Andrew Haley <aph@redhat.com>
* include/execution.h (struct _Jv_CompiledEngine): Define for
compiled classes.
* java/lang/natClassLoader.cc (_Jv_RegisterClasses): Call
_Jv_RegisterLibForGc.
(_Jv_RegisterClasses_Counted): Likewise.
(_Jv_NewClassFromInitializer): New.
(_Jv_RegisterNewClasses): New.
* sources.am: Regenerate.
* boehm.cc (_Jv_GC_has_static_roots): new.
(_Jv_InitGC): Call GC_register_has_static_roots_callback.
(filename_node, find_file, _Jv_print_gc_store, new_node,
_Jv_GC_has_static_roots, _Jv_RegisterLibForGc): New.
* scripts/makemake.tcl: Add -fno-indirect-classes.
* Makefile.in: Regenerate.
* link.cc (resolve_pool_entry): Allocate constant pool.
Allocate fields.
2006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Weaken the check for MMAP.
* configure: Rebuilt.
* include/config.h.in: Likewise.
2006-04-20 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/27170
* gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h to override
dlopen(). From Anthony Green.
2006-04-20 Tom Tromey <tromey@redhat.com>
PR libgcj/21941:
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (send): Throw
UnknownHostException if needed.
* gnu/java/net/natPlainSocketImplPosix.cc (connect): Throw
UnknownHostException if needed.
2006-04-19 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (CLEANFILES): Removed all_java_filelist_files,
all_java_deps_files.
2006-04-19 Tom Tromey <tromey@redhat.com>
* gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
handle EINTR.
2006-04-17 Tom Tromey <tromey@redhat.com>
PR libgcj/27171:
* testsuite/libjava.lang/pr27171.java: New file.
* testsuite/libjava.lang/pr27171.out: New file.
* gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return
true if we've seen a high surrogate.
(write): Handle high surrogates at the end of the stream.
Properly emit isolated low surrogates.
2006-04-17 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libjava.lang/stringconst2.java: Print a stack trace in case
of failure.
2006-04-13 Tom Tromey <tromey@redhat.com>
PR libgcj/26522:
* Makefile.in: Rebuilt.
* Makefile.am (libsubdir): New variable.
2006-04-12 NAKATA Maho <maho@FreeBSD.org>
PR libgcj/23829
* configure.ac: Link against -lpthread rather than -lc_r on
FreeBSD 5 and above.
* configure: Regenerate.
2006-04-11 Bryce McKinlay <mckinlay@redhat.com>
* gnu/gcj/runtime/SystemClassLoader.java (addClass): Get the value
of package-private field "loadedClasses" using reflection.
* java/lang/VMCompiler.java (compileClass): Remove unreachable catch
block.
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
2006-04-10 Andrew Haley <aph@redhat.com>
* include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): New.
(SIGNAL_HANDLER): Mark arg as unused.
* configure.host (x86_64-* DIVIDESPEC): Use
fno-use-divide-subroutine.
2006-04-07 Andrew Haley <aph@redhat.com>
* java/net/InetAddress.java: Throw an UnknownHostException if
lookup fails.
2006-04-05 Tom Tromey <tromey@redhat.com>
PR libgcj/26625:
* Makefile.in: Rebuilt.
* Makefile.am (libgcj-$(gcc_version).jar): Depend on
classpath/lib/compile-classes.
2006-04-05 Ranjit Mathew <rmathew@gcc.gnu.org>
* configure.host: Add -fno-omit-frame-pointer to libgcj_flags for
MinGW since EBP is used for backtracking through call frames on this
platform.
2006-04-05 Archit Shah <ashah@redhat.com>
PR java/25414
* gnu/java/rmi/rmic/CompilerProcess.java (computeTypicalArguments):
Add classpath argument.
* gnu/java/rmi/rmic/Compile_gcj.java (computeArguments): Adjust
caller.
* gnu/java/rmi/rmic/Compile_jikes.java (computeArguments): Likewise.
* gnu/java/rmi/rmic/Compile_kjc.java (computeArguments): Likewise.
* gnu/java/rmi/rmic/Compiler.java (getClasspath, setClasspath): New.
* gnu/java/rmi/rmic/RMIC.java: Set classpath for compiler, call
mkdirs for destination directory, correct handling of superclasses
and interfaces of the remote class, correct handling of exceptions
declared by remote methods.
2006-04-04 Tom Tromey <tromey@redhat.com>
PR libgcj/26990:
* prims.cc (_Jv_RunMain): Use exitNoChecksAccessor.
* gnu/java/lang/natMainThread.cc (call_main): Use
exitNoChecksAccessor.
* testsuite/libjava.lang/pr26990.out: New file.
* testsuite/libjava.lang/pr26990.java: New file.
* java/lang/Runtime.java (exitNoChecks): New method.
(exitNoChecksAccessor): Likewise.
(exit): Call exitNoChecks.
2006-04-03 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt.
* Makefile.am (ZIP): Removed.
(libgcj-$(gcc_version).jar): Use $(JAR).
(src.zip): Likewise.
* configure: Rebuilt.
* configure.ac: Check for jar. Removed code to set ZIP.
2006-04-03 Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/Float_2.java: New file.
2006-03-31 Andreas Tobler <a.tobler@schweiz.ch>
* posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.
2006-03-30 Tom Tromey <tromey@redhat.com>
PR java/26042:
* testsuite/libjava.compile/pr26042.java: New file.
2006-03-29 Tom Tromey <tromey@redhat.com>
* sources.am, Makefile.in: Rebuilt.
* scripts/makemake.tcl: Scan classpath/external/relaxngDatatype.
2006-03-29 Tom Tromey <tromey@redhat.com>
PR java/26390:
* testsuite/libjava.lang/pr26390.out: New file.
* testsuite/libjava.lang/pr26390.java: New file.
* sources.am, Makefile.in: Rebuilt.
* scripts/makemake.tcl: Compile gnu/java/awt/peer/swing.
2006-03-29 Tom Tromey <tromey@redhat.com>
* posix.cc (_Jv_platform_nanotime): Look for CLOCK_MONOTONIC and
CLOCK_HIGHRES.
2006-03-28 Anthony Balkissoon <abalkiss@redhat.com>
* scripts/unicode-muncher.pl: Removed this file.
* scripts/MakeCharTables.java: Likewise.
* scripts/unicode-to-chartables.pl: New file.
* java/lang/natCharacter.cc:
(UNASSIGNED_TYPE): New field.
(UNASSIGNED_DIGIT): Likewise.
(UNASSIGNED_DIRECTION): Likewise.
(UNASSIGNED_NUMERIC_VALUE): Likewise.
(PRIVATE_TYPE): Likewise.
(PRIVATE_DIRECTION): Likewise.
(readCodePoint): New method.
(getType(jint)): Likewise.
(toLowerCase(jint)): Likewise.
(toUpperCase(jint)): Likewise.
(toTitleCase(jint)): Likewise.
(digit(jint, jint)): Likewise.
(getNumericValue(jint)): Likewise.
(getDirectionality(jint)): Likewise.
(readChar),
(getType(jchar)),
(toLowerCase(jchar)),
(toUpperCase(jchar)),
(toTitleCase(jchar)),
(digit(jchar, jint)),
(getNumericValue(jchar)),
(getDirectionality(jchar)): Changed references from data to data[0],
blocks to blocks[0], direction to direction[0], numValue to
numValue[0], upper to upper[0], lower to lower[0], and shift to
shift[0] to reflect the new structures in java-chartables.h.
* java/lang/Character.java:
(readCodePoint): Declared new native method.
(getType(int)): Likewise.
(toLowerCase(int)): Likewise.
(toUpperCase(int)): Likewise.
(toTitleCase(int)): Likewise.
(digit(int, int)): Likewise.
(getNumericValue(int)): Likewise.
(getDirectionality(int)): Likewise.
(isLowerCase(int)): New method.
(isUpperCase(int)): Likewise.
(itTitleCase(int)): Likewise.
(isDigit(int)): Likewise.
(isDefined(int)): Likewise.
(isLetter(int)): Likewise.
(isLetterOrDigit(int)): Likewise.
(isJavaIdentifierStart(int)): Likewise.
(isJavaIdentifierPart(int)): Likewise.
(isUnicodeIdentifierStart(int)): Likewise.
(isUnicodeIdentifierPart(int)): Likewise.
(isIdentifierIgnorable(int)): Likewise.
(isSpaceChar(int)): Likewise.
(isWhitespace(int)): Likewise.
(isISOControl(int)): Likewise.
(isMirrored(int)): Likewise.
* include/java-chartables.h: Generated from
scripts/unicode-to-chartables.h.
2006-03-24 David Daney <ddaney@avtrex.com)
* testsuite/libjava.lang/PR26858.java: New test.
* testsuite/libjava.lang/PR26858.out: Ditto.
* testsuite/libjava.lang/PR26858.xfail: Ditto.
2006-03-16 Kaz Kojima <kkojima@gcc.gnu.org>
* include/sh-signal.h (MAKE_THROW_FRAME): Change into empty
macro.
2006-03-15 Tom Tromey <tromey@redhat.com>
* testsuite/libjava.jacks/jacks.xfail: Removed
13.1-runtime-method-5.
2006-03-15 Tom Tromey <tromey@redhat.com>
PR java/26638:
* link.cc (get_interfaces): Skip <clinit>.
(append_partial_itable): Likewise.
2006-03-10 Tom Tromey <tromey@redhat.com>
PR libgcj/25713:
* java/util/zip/Deflater.java (flush): New method.
* sources.am, Makefile.in: Rebuilt.
* java/util/zip/DeflaterOutputStream.java: Removed.
* java/util/zip/InflaterInputStream.java: Likewise.
* java/util/zip/GZIPInputStream.java: Likewise.
* java/util/zip/GZIPOutputStream.java: Likewise.
2006-03-10 Andreas Tobler <a.tobler@schweiz.ch>
* include/powerpc-signal.h: Fix typo in comment.
2006-03-09 Mark Wielaard <mark@klomp.org>
Imported GNU Classpath 0.90
* scripts/makemake.tcl: Set gnu/java/awt/peer/swing to ignore.
* gnu/classpath/jdwp/VMFrame.java (SIZE): New constant.
* java/lang/VMCompiler.java: Use gnu.java.security.hash.MD5.
* java/lang/Math.java: New override file.
* java/lang/Character.java: Merged from Classpath.
(start, end): Now 'int's.
(canonicalName): New field.
(CANONICAL_NAME, NO_SPACES_NAME, CONSTANT_NAME): New constants.
(UnicodeBlock): Added argument.
(of): New overload.
(forName): New method.
Updated unicode blocks.
(sets): Updated.
* sources.am: Regenerated.
* Makefile.in: Likewise.
2006-03-09 Tom Tromey <tromey@redhat.com>
PR libgcj/23495:
* java/lang/natString.cc (_Jv_NewString): Use memcpy.
(equals): Use memcmp.
(contentEquals): Likewise.
(getChars): Use memcpy.
(toCharArray): Likewise.
(regionMatches): Use memcmp.
(regionMatches): Likewise.
(startsWith): Likewise.
(concat): Use memcpy.
(valueOf): Likewise.
2006-03-09 Tom Tromey <tromey@redhat.com>
* configure: Rebuilt.
* configure.ac (HAVE_CLOCK_GETTIME): Put -lrt in THREADLIBS as
well.
2006-03-09 Tom Tromey <tromey@redhat.com>
PR libgcj/24461:
* java/util/zip/InflaterInputStream.java (fill): Throw exception
if stream is truncated.
2006-03-09 Tom Tromey <tromey@redhat.com>
* win32.cc (_Jv_platform_nanotime): New function.
* include/win32.h (_Jv_platform_nanotime): Declare.
* posix.cc (_Jv_platform_nanotime): New function.
* include/posix.h (_Jv_platform_nanotime): Declare.
* java/lang/natSystem.cc (nanoTime): New method.
* java/lang/System.java (nanoTime): Declare.
* include/config.h.in, configure: Rebuilt.
* configure.ac: Check for clock_gettime.
2006-03-08 David Daney <ddaney@avtrex.com>
* configure.ac (LD): Add AC_CHECK_TOOL for ld.
(LD_START_STATIC_SPEC): New AC_SUBST, set with ld check.
(LD_FINISH_STATIC_SPEC): Ditto
* configure: Regenerated.
* libgcj.spec.in: Wrap -lgcj in LD_START_STATIC_SPEC and
LD_FINISH_STATIC_SPEC.
2006-03-07 Tom Tromey <tromey@redhat.com>
PR libgcj/26103:
* java/lang/ClassLoader.java (loadClass): Don't throw
StringIndexOutOfBoundsException if name is empty.
* java/lang/natClassLoader.cc (loadClassFromSig): Throw exception
if class not found.
2006-03-07 David Daney <ddaney@avtrex.com>
* include/java-interp.h: Removed extern "C" around #include <ffi.h>.
2006-03-07 David Daney <ddaney@avtrex.com>
* link.cc: Include ffi.h if USE_LIBFFI defined.
2006-03-03 Tom Tromey <tromey@redhat.com>
* interpret.cc (do_allocate_static_fields): Added comment.
2006-03-01 Tom Tromey <tromey@redhat.com>
PR java/24321:
* testsuite/libjava.lang/pr24321.java: New file.
* testsuite/libjava.lang/pr24321.out: New file.
* java/lang/natClass.cc (isInstance): Don't initialize class.
(isAssignableFrom): Likewise.
2006-02-27 Jakub Jelinek <jakub@redhat.com>
PR other/26208
* exception.cc (PERSONALITY_FUNCTION): Use _Unwind_GetIPInfo instead
of _Unwind_GetIP.
* include/i386-signal.h (MAKE_THROW_FRAME): Change into empty macro.
(HANDLE_DIVIDE_OVERFLOW): Don't adjust _res->eip if falling through
to throw.
* include/x86_64-signal.h (MAKE_THROW_FRAME): Change into empty
macro.
* include/powerpc-signal.h (MAKE_THROW_FRAME): Change into empty
macro.
2006-02-23 Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/j2d/IntegerGraphicsState.java (getClip): Clone clip
before returning, handle null clip.
(getClipBounds): Handle null clip.
* gnu/awt/j2d/Graphics2DImpl.java (clipRect): Handle null clip.
* gnu/awt/xlib/XCanvasPeer.java ():
(getLocationOnScreen): Implement.
* classpath/gnu/java/awt/peer/GLightweightPeer.java
(repaint): Merged with Classpath.
* classpath/java/awt/Graphics.java (hitClip): Merged with
Classpath.
2006-02-21 Robert Schuster <robertschuster@fsfe.org>
* link.cc: Added variant of create_error_method that
will not complain about unused parameter if compiled with
USE_LIBFFI not being defined.
(_Jv_Linker::find_field_helper): Fixed indentation.
(_Jv_Linker::create_error_method): Fixed indentation.
(_Jv_Linker::link_symbol_table): Fixed indentation.
2006-02-16 Andrew Haley <aph@redhat.com>
* stacktrace.cc (GetStackTraceElements): Call
gnu::gcj::runtime::NameFinder::removeUnknown() to determine if
non-Java frames should be removed from a printed stack trace.
Pass methodName to getLineNumberForFrame().
(getLineNumberForFrame): Set method_name from info.dli_sname.
* gnu/gcj/runtime/NameFinder.java (removeUnknown): New method.
(remove_unknown): New variable.
* include/java-stack.h (_Jv_StackTrace::getLineNumberForFrame):
Add methodName arg.
2006-02-15 Matthias Klose <doko@debian.org>
* gnu/java/nio/charset, gnu/java/net/protocol/file,
gnu/regexp: Remove empty directories.
2006-02-09 Bryce McKinlay <mckinlay@redhat.com>
* java/lang/Class.h (_Jv_IDispatchTable): Make it a struct. Put
'itable' inline, instead of as a pointer.
(java::lang::Class): Put 'idt' in anonymous union with 'ioffsets'.
* link.cc (null_idt): Update definition.
(_Jv_Linker::prepare_constant_time_tables): Allocate klass->idt
as a single struct. Use _Jv_AllocBytes, not _Jv_AllocRawObj.
(_Jv_Linker::generate_itable): Update to use 'ioffsets'.
(_Jv_Linker::find_iindex): Likewise. Update comment.
* java/lang/natClass.cc (_Jv_LookupInterfaceMethodIdx): Update for
_Jv_IDispatchTable change.
(_Jv_IsAssignableFrom): Likewise.
2006-02-08 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/25187:
* gnu/gcj/io/natSimpleSHSStream.cc
(gnu::gcj::io::SimpleSHSStream::shsFinal): Remove bogus cast.
* interpret.cc (_Jv_InterpMethod::run): Simplify arguments to
_Jv_InterpFrame().
* boehm.cc: #undef some autoconf macros before including gc-config.h.
(_Jv_MarkObject): Don't mark the class, it is reachable via the vtable.
(_Jv_MarkArray): Likewise.
* java/lang/ref/natReference.cc (java::lang::ref::Reference::create):
Simplify _Jv_GCRegisterDisappearingLink() call.
* java/lang/Class.h (getComponentType): Use element_type.
(element_type): New field declaration, as a union with "methods".
* java/lang/natClassLoader.cc (_Jv_NewArrayClass): Use "element_type".
* java/net/natVMNetworkInterfacePosix.cc
(java::net::VMNetworkInterface::getInterfaces): Add "int" cast to
avoid sign comparison warning.
* include/java-interp.h (_Jv_InterpFrame): Take thread as second
argument, not parent call frame.
* include/x86_64-signal.h (MAKE_THROW_FRAME): Use "gregs" directly,
without a cast.
(restore_rt): Declare with hidden visibility, not "static".
* posix.cc (_Jv_platform_initProperties): Make "tmpdir" a string
constant.
* jni.cc (_Jv_JNI_DestroyJavaVM): Use a union to avoid strict alias
warning.
2006-02-08 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/26113:
* link.cc (_Jv_Linker::print_class_loaded): Declare string constants
as "const char *".
* verify.cc (verify_fail): Likewise.
* gnu/classpath/natSystemProperties.cc (file_encoding): Likewise.
* interpret.cc (throw_internal_error, throw_class_format_error):
Likewise.
* gcj/javaprims.h (_Jv_hashUtf8String, _Jv_Utf8Const::space_needed,
_Jv_Utf8Const::init, _Jv_makeUtf8Const): Likewise.
* java/lang/Class.h (_Jv_InitPrimClass): Likewise.
* include/jvm.h (_Jv_strLengthUtf8, _Jv_makeUtf8Const): Likewise.
* defineclass.cc (throw_internal_error, throw_no_class_def_found_error,
is_attribute_name): Likewise.
* prims.cc (_Jv_strLengthUtf8, _Jv_hashUtf8String, _Jv_Utf8Const::init,
_Jv_makeUtf8Const, _Jv_InitPrimClass): Likewise.
2006-02-08 Tom Tromey <tromey@redhat.com>
PR libgcj/26063, PR libgcj/17978, PR libgcj/10598:
* defineclass.cc (parse): Use _Jv_AllocRawObj.
(read_constpool): Likewise.
(read_one_code_attribute): Use internal function name.
(handleConstantPool): Use _Jv_AllocRawObj.
(handleInterfacesBegin): Likewise.
(handleFieldsBegin): Likewise.
(handleMethodsBegin): Likewise.
(handleCodeAttribute): Likewise.
(handleMethodsEnd): Likewise.
* include/jvm.h (new_vtable): Use _Jv_AllocRawObj.
* interpret.cc (do_allocate_static_fields): Use _Jv_AllocRawObj.
Allocate reference fields separately.
* link.cc (prepare_constant_time_tables): Use _Jv_AllocRawObj.
(add_miranda_methods): Likewise.
(generate_itable): Use _Jv_AllocBytes.
(find_iindex): Likewise.
(struct method_closure): New structure.
(create_error_method): Use struct method_closure; allocate with
_Jv_AllocBytes.
(ensure_fields_laid_out): Separate reference fields from
non-reference fields.
* boehm.cc (_Jv_MarkObj): Mark vtable. Only mark direct fields
of Class.
(_Jv_MarkArray): Mark vtable.
(_Jv_AllocRawObj): Don't allocate objects of size 0.
* include/execution.h
(_Jv_ExecutionEngine::allocate_static_fields): Added 'int'
parameter.
(struct _Jv_CompiledEngine): Updated.
(class _Jv_InterpreterEngine): Updated.
2006-02-08 Tom Tromey <tromey@redhat.com>
PR java/22578:
* gcj/javaprims.h: Updated.
* sources.am, Makefile.in: Rebuilt.
* java/lang/natDouble.cc (doubleToLongBits): Moved to VMDouble.
(doubleToRawLongBits): Likewise.
(longBitsToDouble): Likewise.
(toString): Likewise.
(parseDouble): Likewise.
* java/lang/natFloat.cc (floatToIntBits): Moved to VMFloat.
(floatToRawIntBits): Likewise.
(intBitsToFloat): Likewise.
* java/lang/VMDouble.java: New file.
* java/lang/VMFloat.java: New file.
* java/lang/Float.java, java/lang/Double.java: Removed.
2006-02-06 Tom Tromey <tromey@redhat.com>
* gij.cc (version): Use 2006.
* gnu/java/rmi/rmic/RMIC.java (parseOptions): Use 2006.
* gnu/gcj/convert/Convert.java (version): Use 2006.
* gnu/gcj/tools/gcj_dbtool/Main.java (main): Use 2006.
2006-02-04 Tom Tromey <tromey@redhat.com>
PR java/25676:
* testsuite/libjava.lang/pr25676.out: New file.
* testsuite/libjava.lang/pr25676.java: New file.
2006-02-03 Thomas Fitzsimmons <fitzsim@redhat.com>
* Makefile.am (src.zip): Update src.zip file search to look in
classpath directory.
* Makefile.in: Regenerate.
2006-02-03 Robert Schuster <robertschuster@fsfe.org>
* link.cc:
(_Jv_Linker::create_error_method): Added missing (void *) cast.
2006-02-03 Robert Schuster <robertschuster@fsfe.org>
* include/jvm.h:
(_Jv_Linker::create_error_method): New method declaration.
* link.cc:
(_Jv_Linker::create_error_method): New method.
(_Jv_Linker::link_symbol_table): Use new method above.
2006-02-01 Robert Schuster <robertschuster@fsfe.org>
* link.cc:
(_Jv_Linker::find_field_helper): Added checks.
(_Jv_Linker::find_field): Use exception swallowing class resolution
and added early return.
(_Jv_ThrowNoClassDefFoundErrorTrampoline): New function.
(_Jv_Linker::link_symbol_table): Use exception swallowing class
resolution, added ffi_closure installation routine, use
_Jv_ThrowNoClassDefFoundError for missing static method.
(_Jv_Linker::ensure_class_linked): Added string check which does
not trigger class resolution.
* java/lang/natClassLoader.cc:
(_Jv_FindClassNoException): New method.
* java/lang/Class.h:
(_Jv_FindClassNoException): New method declaration.
* include/jvm.h:
(_Jv_FindClassNoException): New method declaration.
(_Jv_FindClassFromSignatureNoException): New method declaration.
* prims.cc:
(_Jv_FindClassFromSignatureNoException): New method.
* gcj/javaprims.h:
(_Jv_equalsUtf8Classname): New method declaration.
(_Jv_isPrimitiveOrDerived): Dito.
* prims.cc:
(_Jv_equalsUtf8Classnames): New method.
(_Jv_isPrimitiveOrDerived): New method.
* verify.cc:
(ref_intersection::equals): Use new classname comparison method.
(type::compatible): Use new classname comparison method. Added
check whether LHS' type is java.lang.Object .
(type::resolve): Added new optional debug message and simplified
if-expression.
(type::to_array): Added codepath that generates an array type
without resolving the element type.
2006-01-31 Mark Wielaard <mark@klomp.org>
* NEWS: Add 4.1 updates.
2006-01-30 Keith Seitz <keiths@redhat.com>
* include/java-interp.h (insn_index): New declaration.
(num_insn_slots): New private variable.
(get_line_table): New declaration.
* interpret.cc (insn_index): New function.
(get_line_table): New function.
2006-01-24 Archit Shah <ashah@redhat.com>
Tom Tromey <tromey@redhat.com>
* prims.cc (next_property_value): Never return NULL.
(process_gcj_properties): Copy 'props' before using it.
2006-01-23 Keith Seitz <keiths@redhat.com>
* java/lang/Class.h (_Jv_FindInterpreterMethod): Add new declaration.
* java/lang/natClass.cc (_Jv_FindInterpreterMethod): New function.
2006-01-23 David Daney <ddaney@avtrex.com>
* configure.host (disable_dladdr): Remove variable and its
documentation.
* configure.ac: Do not test for disable_dladdr.
* configure: Regenerate.
* include/config.h.in: Regenerate.
2006-01-18 Tom Tromey <tromey@redhat.com>
* jni.cc (_Jv_JNI_AttachCurrentThread): Return environment if it
already exists.
2006-01-18 Keith Seitz <keiths@redhat.com>
* include/java-interp.h (_Jv_CompileMethod): Add declaration.
(class _Jv_InterpMethod): Add _Jv_CompileMethod as a friend.
* interpret.cc (_Jv_CompileMethod): New function.
(run): Massage code to allow for NULL args.
Update comments to explain NULL args.
Return if compiling the method and args is NULL.
2006-01-18 H.J. Lu <hongjiu.lu@intel.com>
PR libgcj/25840
* include/x86_64-signal.h (RESTORE2): Add ".text\n".
2006-01-17 Tom Tromey <tromey@redhat.com>
PR classpath/20198:
* java/net/URLClassLoader.java (FileURLLoader): Added argument.
(JarURLLoader): Likewise.
(addURLImpl): Canonicalize file URLs.
2006-01-16 Mark Wielaard <mark@klomp.org>
Imported GNU Classpath 0.20
* Makefile.am (AM_CPPFLAGS): Add classpath/include.
* java/nio/charset/spi/CharsetProvider.java: New override file.
* java/security/Security.java: Likewise.
* sources.am: Regenerated.
* Makefile.in: Likewise.
2006-01-17 Jakub Jelinek <jakub@redhat.com>
* configure.ac (dbexecdir): New substituted var.
* configure: Rebuilt.
* Makefile.am (dbexecdir): Remove.
* Makefile.in: Rebuilt.
2006-01-13 Tom Tromey <tromey@redhat.com>
* gnu/regexp/MessagesBundle_fr.properties: Removed.
* gnu/regexp/MessagesBundle.properties: Removed.
2006-01-13 Tom Tromey <tromey@redhat.com>
* java/security/classpath.security: Removed.
* Makefile.in: Rebuilt.
* Makefile.am (install-data-local): Don't install
classpath.security.
2006-01-08 Chris Burdess <dog@gnu.org>
* java/lang/Character.java (toChars,toCodePoint): Correct these
methods to use algorithms from Unicode specification.
2006-01-08 Tom Tromey <tromey@redhat.com>
* java/lang/StringBuilder.java (appendCodePoint): New method.
(insert): New overloads.
* java/lang/StringBuffer.java (StringBuffer): New constructor.
(charAt): Remerged javadoc.
(codePointAt, codePointBefore): New methods.
(appendCodePoint): New method.
(append): New overloads.
(insert): Likewise.
(trimToSize, codePointCount, offsetByCodePoints): New methods.
* java/lang/Float.java (SIZE): New field.
(valueOf): New method.
* java/lang/natDouble.cc (initIDs): Removed.
* java/lang/Double.java (static initializer): Removed.
(SIZE): New field.
(valueOf): New method.
(initIDs): Removed.
2006-01-07 Jakub Jelinek <jakub@redhat.com>
PR libgcj/24940
* shlibpath.m4: Replace $SED with sed.
* configure: Rebuilt.
2006-01-06 Tom Tromey <tromey@redhat.com>
* java/lang/Character.java (SIZE, MAX_CACHE, charCache,
MIN_SURROGATE, MAX_SURROGATE): New fields from Classpath.
(MIN_HIGH_SURROGATE, MAX_HIGH_SURROGATE, MIN_LOW_SURROGATE,
MAX_LOW_SURROGATE): Javadoc fixes.
(valueOf, reverseBytes, isHighSurrogate, isLowSurrogate,
isSurrogatePair, toCodePoint, codePointAt, codePointBefore): New
methods from Classpath.
* java/lang/String.java (codePointAt, codePointBefore,
codePointCount, contains, replace): New methods from Classpath.
(contentEquals): Declare.
* java/lang/natString.cc (contentEquals): New method.
2005-12-26 Anthony Green <green@redhat.com>
* gnu/java/nio/SocketChannelImpl.java (read): Compute the right amount
of data to read (dst.remaining()).
* gnu/java/nio/DatagramChannelImpl.java (receive): Ditto.
2005-11-11 Mark Wielaard <mark@klomp.org>
Reported by john.zigman@anu.edu.au as bug #24608.
* gnu/java/nio/SocketChannelImpl.java (read): Put readBytes in
destination ByteBuffer when it doesn't have an array instead of len
bytes.
2006-01-05 Tom Tromey <tromey@redhat.com>
* java/lang/natThread.cc (finish_): Don't clear 'group'.
* sources.am, Makefile.in: Rebuilt.
* java/lang/Runtime.java (exit): Merged with Classpath.
(runShutdownHooks): New method from Classpath.
* java/io/File.java (deleteOnExit): Use DeleteFileHelper, not
FileDeleter.
* gnu/gcj/runtime/FileDeleter.java: Removed.
* java/lang/natRuntime.cc (runFinalizationForExit): New method.
(exitInternal): Don't run finalizers or delete files.
2006-01-05 Tom Tromey <tromey@redhat.com>
* java/lang/natPosixProcess.cc (reap): Ignore unknown children.
2006-01-04 Krister Walfridsson <cato@df.lth.se>
* posix-threads.cc (_Jv_InitThreads): #ifdef PTHREAD_STACK_MIN
2006-01-04 Tom Tromey <tromey@redhat.com>
* java/lang/Class.h (_Jv_CopyClassesToSystemLoader): Updated.
* java/lang/natClassLoader.cc (_Jv_CopyClassesToSystemLoader):
Changed argument type. Use SystemClassLoader.addClass.
* gnu/gcj/runtime/SystemClassLoader.java (addClass): New method.
|