Print this page
5196 The cw wrapper restricts gcc to -O2
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/libc/sparcv9/Makefile.com
+++ new/usr/src/lib/libc/sparcv9/Makefile.com
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
↓ open down ↓ |
15 lines elided |
↑ open up ↑ |
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21 #
22 22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright (c) 2012, Joyent, Inc. All rights reserved.
24 24 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
25 25 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
26 +# Copyright 2014 Gary Mills
26 27 #
27 28 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
28 29 # Use is subject to license terms.
29 30 #
30 31
31 32 LIBCDIR= $(SRC)/lib/libc
32 33 LIB_PIC= libc_pic.a
33 34 VERS= .1
34 35 CPP= /usr/lib/cpp
35 36 TARGET_ARCH= sparc
36 37
37 38 # objects are grouped by source directory
38 39
39 40 # Symbol capabilities objects.
40 41 EXTPICS= \
41 42 $(LIBCDIR)/capabilities/sun4u/sparcv9/pics/symcap.o \
42 43 $(LIBCDIR)/capabilities/sun4u-opl/sparcv9/pics/symcap.o \
43 44 $(LIBCDIR)/capabilities/sun4u-us3-hwcap1/sparcv9/pics/symcap.o \
44 45 $(LIBCDIR)/capabilities/sun4u-us3-hwcap2/sparcv9/pics/symcap.o \
45 46 $(LIBCDIR)/capabilities/sun4v-hwcap1/sparcv9/pics/symcap.o \
46 47 $(LIBCDIR)/capabilities/sun4v-hwcap2/sparcv9/pics/symcap.o
47 48
48 49 # local objects
49 50 STRETS=
50 51
51 52 CRTOBJS= \
52 53 __align_cpy_2.o \
53 54 __align_cpy_4.o \
54 55 __align_cpy_8.o \
55 56 _ftou.o \
56 57 cerror.o
57 58
58 59 DYNOBJS=
59 60
60 61 FPOBJS= \
61 62 _D_cplx_div.o \
62 63 _D_cplx_div_ix.o \
63 64 _D_cplx_div_rx.o \
64 65 _D_cplx_mul.o \
65 66 _F_cplx_div.o \
66 67 _F_cplx_div_ix.o \
67 68 _F_cplx_div_rx.o \
68 69 _F_cplx_mul.o \
69 70 _Q_add.o \
70 71 _Q_cmp.o \
71 72 _Q_cmpe.o \
72 73 _Q_cplx_div.o \
73 74 _Q_cplx_div_ix.o \
74 75 _Q_cplx_div_rx.o \
75 76 _Q_cplx_lr_div.o \
76 77 _Q_cplx_lr_div_ix.o \
77 78 _Q_cplx_lr_div_rx.o \
78 79 _Q_cplx_lr_mul.o \
79 80 _Q_cplx_mul.o \
80 81 _Q_div.o \
81 82 _Q_dtoq.o \
82 83 _Q_fcc.o \
83 84 _Q_itoq.o \
84 85 _Q_mul.o \
85 86 _Q_neg.o \
86 87 _Q_qtod.o \
87 88 _Q_qtoi.o \
88 89 _Q_qtos.o \
89 90 _Q_qtou.o \
90 91 _Q_scl.o \
91 92 _Q_sqrt.o \
92 93 _Q_stoq.o \
93 94 _Q_sub.o \
94 95 _Q_utoq.o
95 96
96 97 FPOBJS64= \
97 98 _Qp_qtox.o \
98 99 _Qp_qtoux.o \
99 100 _Qp_xtoq.o \
100 101 _Qp_uxtoq.o \
101 102 __dtoul.o \
102 103 __ftoul.o
103 104
104 105 FPASMOBJS= \
105 106 _Q_get_rp_rd.o \
106 107 __quad_mag64.o \
107 108 fpgetmask.o \
108 109 fpgetrnd.o \
109 110 fpgetsticky.o \
110 111 fpsetmask.o \
111 112 fpsetrnd.o \
112 113 fpsetsticky.o
113 114
114 115 $(__GNUC)FPASMOBJS += \
115 116 __quad.o
116 117
117 118 ATOMICOBJS= \
118 119 atomic.o
119 120
120 121 XATTROBJS= \
121 122 xattr_common.o
122 123
123 124 COMOBJS= \
124 125 bcmp.o \
125 126 bcopy.o \
126 127 bsearch.o \
127 128 bzero.o \
128 129 memccpy.o \
129 130 qsort.o \
130 131 strtol.o \
131 132 strtoul.o \
132 133 strtoll.o \
133 134 strtoull.o
134 135
135 136 GENOBJS= \
136 137 _getsp.o \
137 138 _xregs_clrptr.o \
138 139 abs.o \
139 140 alloca.o \
140 141 ascii_strcasecmp.o \
141 142 byteorder.o \
142 143 cuexit.o \
143 144 ecvt.o \
144 145 getctxt.o \
145 146 lock.o \
146 147 makectxt.o \
147 148 memchr.o \
148 149 memcmp.o \
149 150 new_list.o \
150 151 setjmp.o \
151 152 siginfolst.o \
152 153 siglongjmp.o \
153 154 smt_pause.o \
154 155 sparc_data.o \
155 156 strchr.o \
156 157 strcmp.o \
157 158 strlcpy.o \
158 159 strncmp.o \
159 160 strncpy.o \
160 161 strnlen.o \
161 162 swapctxt.o \
162 163 sync_instruction_memory.o
163 164
164 165 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
165 166 # This macro should ALWAYS be empty; native APIs are already 'large file'.
166 167 COMSYSOBJS64=
167 168
168 169 SYSOBJS64=
169 170
170 171 COMSYSOBJS= \
171 172 __clock_timer.o \
172 173 __getloadavg.o \
173 174 __rusagesys.o \
174 175 __signotify.o \
175 176 __sigrt.o \
176 177 __time.o \
177 178 _lgrp_home_fast.o \
178 179 _lgrpsys.o \
179 180 _nfssys.o \
180 181 _portfs.o \
181 182 _pset.o \
182 183 _rpcsys.o \
183 184 _sigaction.o \
184 185 _so_accept.o \
185 186 _so_bind.o \
186 187 _so_connect.o \
187 188 _so_getpeername.o \
188 189 _so_getsockname.o \
189 190 _so_getsockopt.o \
190 191 _so_listen.o \
191 192 _so_recv.o \
192 193 _so_recvfrom.o \
193 194 _so_recvmsg.o \
194 195 _so_send.o \
195 196 _so_sendmsg.o \
196 197 _so_sendto.o \
197 198 _so_setsockopt.o \
198 199 _so_shutdown.o \
199 200 _so_socket.o \
200 201 _so_socketpair.o \
201 202 _sockconfig.o \
202 203 acct.o \
203 204 acl.o \
204 205 adjtime.o \
205 206 alarm.o \
206 207 brk.o \
207 208 chdir.o \
208 209 chroot.o \
209 210 cladm.o \
210 211 close.o \
211 212 execve.o \
212 213 exit.o \
213 214 facl.o \
214 215 fchdir.o \
215 216 fchroot.o \
216 217 fdsync.o \
217 218 fpathconf.o \
218 219 fstatfs.o \
219 220 fstatvfs.o \
220 221 getcpuid.o \
221 222 getdents.o \
222 223 getegid.o \
223 224 geteuid.o \
224 225 getgid.o \
225 226 getgroups.o \
226 227 gethrtime.o \
227 228 getitimer.o \
228 229 getmsg.o \
229 230 getpid.o \
230 231 getpmsg.o \
231 232 getppid.o \
232 233 getrlimit.o \
233 234 getuid.o \
234 235 gtty.o \
235 236 install_utrap.o \
236 237 ioctl.o \
237 238 kaio.o \
238 239 kill.o \
239 240 llseek.o \
240 241 lseek.o \
241 242 memcntl.o \
242 243 mincore.o \
243 244 mmap.o \
244 245 mmapobjsys.o \
245 246 modctl.o \
246 247 mount.o \
247 248 mprotect.o \
248 249 munmap.o \
249 250 nice.o \
250 251 ntp_adjtime.o \
251 252 ntp_gettime.o \
252 253 p_online.o \
253 254 pathconf.o \
254 255 pause.o \
255 256 pcsample.o \
256 257 pipe2.o \
257 258 pollsys.o \
258 259 pread.o \
259 260 priocntlset.o \
260 261 processor_bind.o \
261 262 processor_info.o \
262 263 profil.o \
263 264 putmsg.o \
264 265 putpmsg.o \
265 266 pwrite.o \
266 267 read.o \
267 268 readv.o \
268 269 resolvepath.o \
269 270 seteguid.o \
270 271 setgid.o \
271 272 setgroups.o \
272 273 setitimer.o \
273 274 setreid.o \
274 275 setrlimit.o \
275 276 setuid.o \
276 277 sigaltstk.o \
277 278 sigprocmsk.o \
278 279 sigsendset.o \
279 280 sigsuspend.o \
280 281 statfs.o \
281 282 statvfs.o \
282 283 stty.o \
283 284 sync.o \
284 285 sysconfig.o \
285 286 sysfs.o \
286 287 sysinfo.o \
287 288 syslwp.o \
288 289 times.o \
289 290 ulimit.o \
290 291 umask.o \
291 292 umount2.o \
292 293 utssys.o \
293 294 uucopy.o \
294 295 vhangup.o \
295 296 waitid.o \
296 297 write.o \
297 298 writev.o \
298 299 yield.o
299 300
300 301 SYSOBJS= \
301 302 __clock_gettime.o \
302 303 __getcontext.o \
303 304 __uadmin.o \
304 305 _lwp_mutex_unlock.o \
305 306 _stack_grow.o \
306 307 door.o \
307 308 forkx.o \
308 309 forkallx.o \
309 310 gettimeofday.o \
310 311 sparc_utrap_install.o \
311 312 syscall.o \
312 313 tls_get_addr.o \
313 314 uadmin.o \
314 315 umount.o \
315 316 uname.o \
316 317 vforkx.o
317 318
318 319 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
319 320 # This macro should ALWAYS be empty; native APIs are already 'large file'.
320 321 PORTGEN64=
321 322
322 323 # objects from source under $(LIBCDIR)/port
323 324 PORTFP= \
324 325 __flt_decim.o \
325 326 __flt_rounds.o \
326 327 __tbl_10_b.o \
327 328 __tbl_10_h.o \
328 329 __tbl_10_s.o \
329 330 __tbl_2_b.o \
330 331 __tbl_2_h.o \
331 332 __tbl_2_s.o \
332 333 __tbl_fdq.o \
333 334 __tbl_tens.o \
334 335 __x_power.o \
335 336 _base_sup.o \
336 337 aconvert.o \
337 338 decimal_bin.o \
338 339 double_decim.o \
339 340 econvert.o \
340 341 fconvert.o \
341 342 file_decim.o \
342 343 finite.o \
343 344 fp_data.o \
344 345 func_decim.o \
345 346 gconvert.o \
346 347 hex_bin.o \
347 348 ieee_globals.o \
348 349 pack_float.o \
349 350 sigfpe.o \
350 351 string_decim.o
351 352
352 353 PORTGEN= \
353 354 _env_data.o \
354 355 _xftw.o \
355 356 a64l.o \
356 357 abort.o \
357 358 addsev.o \
358 359 ascii_strncasecmp.o \
359 360 assert.o \
360 361 attrat.o \
361 362 atof.o \
362 363 atoi.o \
363 364 atol.o \
364 365 atoll.o \
365 366 attropen.o \
366 367 atexit.o \
367 368 atfork.o \
368 369 basename.o \
369 370 calloc.o \
370 371 catgets.o \
371 372 catopen.o \
372 373 cfgetispeed.o \
373 374 cfgetospeed.o \
374 375 cfree.o \
375 376 cfsetispeed.o \
376 377 cfsetospeed.o \
377 378 cftime.o \
378 379 clock.o \
379 380 closedir.o \
380 381 closefrom.o \
381 382 confstr.o \
382 383 crypt.o \
383 384 csetlen.o \
384 385 ctime.o \
385 386 ctime_r.o \
386 387 daemon.o \
387 388 deflt.o \
388 389 directio.o \
389 390 dirname.o \
390 391 div.o \
391 392 drand48.o \
392 393 dup.o \
393 394 env_data.o \
394 395 err.o \
395 396 errno.o \
396 397 euclen.o \
397 398 event_port.o \
398 399 execvp.o \
399 400 fattach.o \
400 401 fdetach.o \
401 402 fdopendir.o \
402 403 ffs.o \
403 404 fls.o \
404 405 fmtmsg.o \
405 406 ftime.o \
406 407 ftok.o \
407 408 ftw.o \
408 409 gcvt.o \
409 410 getauxv.o \
410 411 getcwd.o \
411 412 getdate_err.o \
412 413 getdtblsize.o \
413 414 getenv.o \
414 415 getexecname.o \
415 416 getgrnam.o \
416 417 getgrnam_r.o \
417 418 gethostid.o \
418 419 gethostname.o \
419 420 gethz.o \
420 421 getisax.o \
421 422 getloadavg.o \
422 423 getlogin.o \
423 424 getmntent.o \
424 425 getnetgrent.o \
425 426 get_nprocs.o \
426 427 getopt.o \
427 428 getopt_long.o \
428 429 getpagesize.o \
429 430 getpw.o \
430 431 getpwnam.o \
431 432 getpwnam_r.o \
432 433 getrusage.o \
433 434 getspent.o \
434 435 getspent_r.o \
435 436 getsubopt.o \
436 437 gettxt.o \
437 438 getusershell.o \
438 439 getut.o \
439 440 getutx.o \
440 441 getvfsent.o \
441 442 getwd.o \
442 443 getwidth.o \
443 444 getxby_door.o \
444 445 gtxt.o \
445 446 hsearch.o \
446 447 iconv.o \
447 448 imaxabs.o \
448 449 imaxdiv.o \
449 450 index.o \
450 451 initgroups.o \
451 452 insque.o \
452 453 isaexec.o \
453 454 isastream.o \
454 455 isatty.o \
455 456 killpg.o \
456 457 klpdlib.o \
457 458 l64a.o \
458 459 lckpwdf.o \
459 460 lconstants.o \
460 461 ldivide.o \
461 462 lexp10.o \
462 463 lfind.o \
463 464 lfmt.o \
464 465 lfmt_log.o \
465 466 lldiv.o \
466 467 llog10.o \
467 468 lltostr.o \
468 469 lmath.o \
469 470 localtime.o \
470 471 lsearch.o \
471 472 madvise.o \
472 473 malloc.o \
473 474 memalign.o \
474 475 memmem.o \
475 476 mkdev.o \
476 477 mkdtemp.o \
477 478 mkfifo.o \
478 479 mkstemp.o \
479 480 mktemp.o \
480 481 mlock.o \
481 482 mlockall.o \
482 483 mon.o \
483 484 msync.o \
484 485 munlock.o \
485 486 munlockall.o \
486 487 ndbm.o \
487 488 nftw.o \
488 489 nlspath_checks.o \
489 490 nsparse.o \
490 491 nss_common.o \
491 492 nss_dbdefs.o \
492 493 nss_deffinder.o \
493 494 opendir.o \
494 495 opt_data.o \
495 496 perror.o \
496 497 pfmt.o \
497 498 pfmt_data.o \
498 499 pfmt_print.o \
499 500 pipe.o \
500 501 plock.o \
501 502 poll.o \
502 503 posix_fadvise.o \
503 504 posix_fallocate.o \
504 505 posix_madvise.o \
505 506 posix_memalign.o \
506 507 priocntl.o \
507 508 privlib.o \
508 509 priv_str_xlate.o \
509 510 psiginfo.o \
510 511 psignal.o \
511 512 pt.o \
512 513 putpwent.o \
513 514 putspent.o \
514 515 raise.o \
515 516 rand.o \
516 517 random.o \
517 518 rctlops.o \
518 519 readdir.o \
519 520 readdir_r.o \
520 521 realpath.o \
521 522 reboot.o \
522 523 regexpr.o \
523 524 remove.o \
524 525 rewinddir.o \
525 526 rindex.o \
526 527 scandir.o \
527 528 seekdir.o \
528 529 select.o \
529 530 setlabel.o \
530 531 setpriority.o \
531 532 settimeofday.o \
532 533 sh_locks.o \
533 534 sigflag.o \
534 535 siglist.o \
535 536 sigsend.o \
536 537 sigsetops.o \
537 538 ssignal.o \
538 539 stack.o \
539 540 stpcpy.o \
540 541 stpncpy.o \
541 542 str2sig.o \
542 543 strcase_charmap.o \
543 544 strcat.o \
544 545 strchrnul.o \
545 546 strcspn.o \
546 547 strdup.o \
547 548 strerror.o \
548 549 strlcat.o \
549 550 strncat.o \
550 551 strndup.o \
551 552 strpbrk.o \
552 553 strrchr.o \
553 554 strsep.o \
554 555 strsignal.o \
555 556 strspn.o \
556 557 strstr.o \
557 558 strtod.o \
558 559 strtoimax.o \
559 560 strtok.o \
560 561 strtok_r.o \
561 562 strtoumax.o \
562 563 swab.o \
563 564 swapctl.o \
564 565 sysconf.o \
565 566 syslog.o \
566 567 tcdrain.o \
567 568 tcflow.o \
568 569 tcflush.o \
569 570 tcgetattr.o \
570 571 tcgetpgrp.o \
571 572 tcgetsid.o \
572 573 tcsendbreak.o \
573 574 tcsetattr.o \
574 575 tcsetpgrp.o \
575 576 tell.o \
576 577 telldir.o \
577 578 tfind.o \
578 579 time_data.o \
579 580 time_gdata.o \
580 581 tls_data.o \
581 582 truncate.o \
582 583 tsdalloc.o \
583 584 tsearch.o \
584 585 ttyname.o \
585 586 ttyslot.o \
586 587 ualarm.o \
587 588 ucred.o \
588 589 valloc.o \
589 590 vlfmt.o \
590 591 vpfmt.o \
591 592 waitpid.o \
592 593 walkstack.o \
593 594 wdata.o \
594 595 xgetwidth.o \
595 596 xpg4.o \
596 597 xpg6.o
597 598
598 599 PORTPRINT_W= \
599 600 doprnt_w.o
600 601
601 602 PORTPRINT= \
602 603 asprintf.o \
603 604 doprnt.o \
604 605 fprintf.o \
605 606 printf.o \
606 607 snprintf.o \
607 608 sprintf.o \
608 609 vfprintf.o \
609 610 vprintf.o \
610 611 vsnprintf.o \
611 612 vsprintf.o \
612 613 vwprintf.o \
613 614 wprintf.o
614 615
615 616 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
616 617 # This macro should ALWAYS be empty; native APIs are already 'large file'.
617 618 PORTSTDIO64=
618 619
619 620 PORTSTDIO_W= \
620 621 doscan_w.o
621 622
622 623 PORTSTDIO= \
623 624 __extensions.o \
624 625 _endopen.o \
625 626 _filbuf.o \
626 627 _findbuf.o \
627 628 _flsbuf.o \
628 629 _wrtchk.o \
629 630 clearerr.o \
630 631 ctermid.o \
631 632 ctermid_r.o \
632 633 cuserid.o \
633 634 data.o \
634 635 doscan.o \
635 636 fdopen.o \
636 637 feof.o \
637 638 ferror.o \
638 639 fgetc.o \
639 640 fgets.o \
640 641 fileno.o \
641 642 flockf.o \
642 643 flush.o \
643 644 fopen.o \
644 645 fpos.o \
645 646 fputc.o \
646 647 fputs.o \
647 648 fread.o \
648 649 fseek.o \
649 650 fseeko.o \
650 651 ftell.o \
651 652 ftello.o \
652 653 fwrite.o \
653 654 getc.o \
654 655 getchar.o \
655 656 getline.o \
656 657 getpass.o \
657 658 gets.o \
658 659 getw.o \
659 660 popen.o \
660 661 putc.o \
661 662 putchar.o \
662 663 puts.o \
663 664 putw.o \
664 665 rewind.o \
665 666 scanf.o \
666 667 setbuf.o \
667 668 setbuffer.o \
668 669 setvbuf.o \
669 670 system.o \
670 671 tempnam.o \
671 672 tmpfile.o \
672 673 tmpnam_r.o \
673 674 ungetc.o \
674 675 mse.o \
675 676 vscanf.o \
676 677 vwscanf.o \
677 678 wscanf.o
678 679
679 680 PORTI18N= \
680 681 getwchar.o \
681 682 putwchar.o \
682 683 putws.o \
683 684 strtows.o \
684 685 wcsnlen.o \
685 686 wcstoimax.o \
686 687 wcstol.o \
687 688 wcstoul.o \
688 689 wcswcs.o \
689 690 wscat.o \
690 691 wschr.o \
691 692 wscmp.o \
692 693 wscpy.o \
693 694 wscspn.o \
694 695 wsdup.o \
695 696 wslen.o \
696 697 wsncat.o \
697 698 wsncmp.o \
698 699 wsncpy.o \
699 700 wspbrk.o \
700 701 wsprintf.o \
701 702 wsrchr.o \
702 703 wsscanf.o \
703 704 wsspn.o \
704 705 wstod.o \
705 706 wstok.o \
706 707 wstol.o \
707 708 wstoll.o \
708 709 wsxfrm.o \
709 710 wmemchr.o \
710 711 wmemcmp.o \
711 712 wmemcpy.o \
712 713 wmemmove.o \
713 714 wmemset.o \
714 715 wcsstr.o \
715 716 gettext.o \
716 717 gettext_real.o \
717 718 gettext_util.o \
718 719 gettext_gnu.o \
719 720 plural_parser.o \
720 721 wdresolve.o \
721 722 _ctype.o \
722 723 isascii.o \
723 724 toascii.o
724 725
725 726 PORTI18N_COND= \
726 727 wcstol_longlong.o \
727 728 wcstoul_longlong.o
728 729
729 730 PORTLOCALE= \
730 731 big5.o \
731 732 btowc.o \
732 733 collate.o \
733 734 collcmp.o \
734 735 euc.o \
735 736 fnmatch.o \
736 737 fgetwc.o \
737 738 fgetws.o \
738 739 fix_grouping.o \
739 740 fputwc.o \
740 741 fputws.o \
741 742 fwide.o \
742 743 gb18030.o \
743 744 gb2312.o \
744 745 gbk.o \
745 746 getdate.o \
746 747 isdigit.o \
747 748 iswctype.o \
748 749 ldpart.o \
749 750 lmessages.o \
750 751 lnumeric.o \
751 752 lmonetary.o \
752 753 localeconv.o \
753 754 localeimpl.o \
754 755 mbftowc.o \
755 756 mblen.o \
756 757 mbrlen.o \
757 758 mbrtowc.o \
758 759 mbsinit.o \
759 760 mbsnrtowcs.o \
760 761 mbsrtowcs.o \
761 762 mbstowcs.o \
762 763 mbtowc.o \
763 764 mskanji.o \
764 765 nextwctype.o \
765 766 nl_langinfo.o \
766 767 none.o \
767 768 regcomp.o \
768 769 regfree.o \
769 770 regerror.o \
770 771 regexec.o \
771 772 rune.o \
772 773 runetype.o \
773 774 setlocale.o \
774 775 setrunelocale.o \
775 776 strcasecmp.o \
776 777 strcasestr.o \
777 778 strcoll.o \
778 779 strfmon.o \
779 780 strftime.o \
780 781 strncasecmp.o \
781 782 strptime.o \
782 783 strxfrm.o \
783 784 table.o \
784 785 timelocal.o \
785 786 tolower.o \
786 787 towlower.o \
787 788 ungetwc.o \
788 789 utf8.o \
789 790 wcrtomb.o \
790 791 wcscasecmp.o \
791 792 wcscoll.o \
792 793 wcsftime.o \
793 794 wcsnrtombs.o \
794 795 wcsrtombs.o \
795 796 wcstombs.o \
796 797 wcswidth.o \
797 798 wcsxfrm.o \
798 799 wctob.o \
799 800 wctomb.o \
800 801 wctrans.o \
801 802 wctype.o \
802 803 wcwidth.o \
803 804 wscol.o
804 805
805 806 AIOOBJS= \
806 807 aio.o \
807 808 aio_alloc.o \
808 809 posix_aio.o
809 810
810 811 RTOBJS= \
811 812 clock_timer.o \
812 813 mqueue.o \
813 814 pos4obj.o \
814 815 sched.o \
815 816 sem.o \
816 817 shm.o \
817 818 sigev_thread.o
818 819
819 820 TPOOLOBJS= \
820 821 thread_pool.o
821 822
822 823 THREADSOBJS= \
823 824 alloc.o \
824 825 assfail.o \
825 826 cancel.o \
826 827 door_calls.o \
827 828 tmem.o \
828 829 pthr_attr.o \
829 830 pthr_barrier.o \
830 831 pthr_cond.o \
831 832 pthr_mutex.o \
832 833 pthr_rwlock.o \
833 834 pthread.o \
834 835 rwlock.o \
835 836 scalls.o \
836 837 sema.o \
837 838 sigaction.o \
838 839 spawn.o \
839 840 synch.o \
840 841 tdb_agent.o \
841 842 thr.o \
842 843 thread_interface.o \
843 844 tls.o \
844 845 tsd.o
845 846
846 847 THREADSMACHOBJS= \
847 848 machdep.o
848 849
849 850 THREADSASMOBJS= \
850 851 asm_subr.o
851 852
852 853 UNICODEOBJS= \
853 854 u8_textprep.o \
854 855 uconv.o
855 856
856 857 UNWINDMACHOBJS= \
857 858 unwind.o
858 859
859 860 UNWINDASMOBJS= \
860 861 unwind_frame.o
861 862
862 863 # Preserved solely to ease maintenance of 32-bit and 64-bit library builds
863 864 # This macro should ALWAYS be empty; native APIs are already 'large file'.
864 865 PORTSYS64=
865 866
866 867 PORTSYS= \
867 868 _autofssys.o \
868 869 access.o \
869 870 acctctl.o \
870 871 bsd_signal.o \
871 872 chmod.o \
872 873 chown.o \
873 874 corectl.o \
874 875 exacctsys.o \
875 876 execl.o \
876 877 execle.o \
877 878 execv.o \
878 879 fcntl.o \
879 880 getpagesizes.o \
880 881 getpeerucred.o \
881 882 inst_sync.o \
882 883 issetugid.o \
883 884 label.o \
884 885 link.o \
885 886 lockf.o \
886 887 lwp.o \
887 888 lwp_cond.o \
888 889 lwp_rwlock.o \
889 890 lwp_sigmask.o \
890 891 meminfosys.o \
891 892 mkdir.o \
892 893 mknod.o \
893 894 msgsys.o \
894 895 nfssys.o \
895 896 open.o \
896 897 pgrpsys.o \
897 898 posix_sigwait.o \
898 899 ppriv.o \
899 900 psetsys.o \
900 901 rctlsys.o \
901 902 readlink.o \
902 903 rename.o \
903 904 sbrk.o \
904 905 semsys.o \
905 906 set_errno.o \
906 907 sharefs.o \
907 908 shmsys.o \
908 909 sidsys.o \
909 910 siginterrupt.o \
910 911 signal.o \
911 912 sigpending.o \
912 913 sigstack.o \
913 914 stat.o \
914 915 symlink.o \
915 916 tasksys.o \
916 917 time.o \
917 918 time_util.o \
918 919 ucontext.o \
919 920 unlink.o \
920 921 ustat.o \
921 922 utimesys.o \
922 923 zone.o
923 924
924 925 PORTREGEX= \
925 926 glob.o \
926 927 regcmp.o \
927 928 regex.o \
928 929 wordexp.o
929 930
930 931 VALUES= values-Xa.o
931 932
932 933 MOSTOBJS= \
933 934 $(STRETS) \
934 935 $(CRTOBJS) \
935 936 $(DYNOBJS) \
936 937 $(FPOBJS) \
937 938 $(FPOBJS64) \
938 939 $(FPASMOBJS) \
939 940 $(ATOMICOBJS) \
940 941 $(XATTROBJS) \
941 942 $(COMOBJS) \
942 943 $(GENOBJS) \
943 944 $(PRFOBJS) \
944 945 $(PORTFP) \
945 946 $(PORTGEN) \
946 947 $(PORTGEN64) \
947 948 $(PORTI18N) \
948 949 $(PORTI18N_COND) \
949 950 $(PORTLOCALE) \
950 951 $(PORTPRINT) \
951 952 $(PORTPRINT_W) \
952 953 $(PORTREGEX) \
953 954 $(PORTSTDIO) \
954 955 $(PORTSTDIO64) \
955 956 $(PORTSTDIO_W) \
956 957 $(PORTSYS) \
957 958 $(PORTSYS64) \
958 959 $(AIOOBJS) \
959 960 $(RTOBJS) \
960 961 $(TPOOLOBJS) \
961 962 $(THREADSOBJS) \
962 963 $(THREADSMACHOBJS) \
963 964 $(THREADSASMOBJS) \
964 965 $(UNICODEOBJS) \
965 966 $(UNWINDMACHOBJS) \
966 967 $(UNWINDASMOBJS) \
967 968 $(COMSYSOBJS) \
968 969 $(SYSOBJS) \
969 970 $(COMSYSOBJS64) \
970 971 $(SYSOBJS64) \
971 972 $(VALUES)
972 973
973 974 TRACEOBJS= \
974 975 plockstat.o
975 976
976 977 # NOTE: libc.so.1 must be linked with the minimal crti.o and crtn.o
977 978 # modules whose source is provided in the $(SRC)/lib/common directory.
978 979 # This must be done because otherwise the Sun C compiler would insert
979 980 # its own versions of these modules and those versions contain code
980 981 # to call out to C++ initialization functions. Such C++ initialization
981 982 # functions can call back into libc before thread initialization is
982 983 # complete and this leads to segmentation violations and other problems.
983 984 # Since libc contains no C++ code, linking with the minimal crti.o and
984 985 # crtn.o modules is safe and avoids the problems described above.
985 986 OBJECTS= $(CRTI) $(MOSTOBJS) $(CRTN)
986 987 CRTSRCS= ../../common/sparcv9
987 988
988 989 # include common library definitions
989 990 include $(SRC)/lib/Makefile.lib
990 991 include $(SRC)/lib/Makefile.lib.64
991 992
992 993 # we need to override the default SONAME here because we might
993 994 # be building a variant object (still libc.so.1, but different filename)
994 995 SONAME = libc.so.1
995 996
996 997 CFLAGS64 += $(CCVERBOSE)
997 998
998 999 # This is necessary to avoid problems with calling _ex_unwind().
999 1000 # We probably don't want any inlining anyway.
1000 1001 CFLAGS64 += -xinline=
1001 1002
1002 1003 CERRWARN += -_gcc=-Wno-parentheses
1003 1004 CERRWARN += -_gcc=-Wno-switch
1004 1005 CERRWARN += -_gcc=-Wno-uninitialized
1005 1006 CERRWARN += -_gcc=-Wno-unused-value
1006 1007 CERRWARN += -_gcc=-Wno-unused-label
1007 1008 CERRWARN += -_gcc=-Wno-unused-variable
1008 1009 CERRWARN += -_gcc=-Wno-type-limits
1009 1010 CERRWARN += -_gcc=-Wno-char-subscripts
1010 1011 CERRWARN += -_gcc=-Wno-clobbered
1011 1012 CERRWARN += -_gcc=-Wno-unused-function
1012 1013 CERRWARN += -_gcc=-Wno-address
1013 1014
1014 1015 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1015 1016 # enables ASSERT() checking in the threads portion of the library.
1016 1017 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1017 1018 THREAD_DEBUG =
1018 1019 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1019 1020
1020 1021 # Make string literals read-only to save memory.
1021 1022 CFLAGS64 += $(XSTRCONST)
1022 1023
1023 1024 ALTPICS= $(TRACEOBJS:%=pics/%)
1024 1025
1025 1026 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1026 1027
1027 1028 MAPFILES = $(LIBCDIR)/port/mapfile-vers
1028 1029
1029 1030 sparcv9_C_PICFLAGS= -K PIC
1030 1031 CFLAGS64 += $(EXTN_CFLAGS)
1031 1032 CPPFLAGS= -D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
1032 1033 -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1033 1034 ASFLAGS= $(EXTN_ASFLAGS) -K PIC -P -D__STDC__ -D_ASM -D__sparcv9 $(CPPFLAGS) \
1034 1035 $(sparcv9_AS_XARCH)
1035 1036
1036 1037 # As a favor to the dtrace syscall provider, libc still calls the
1037 1038 # old syscall traps that have been obsoleted by the *at() interfaces.
1038 1039 # Delete this to compile libc using only the new *at() system call traps
1039 1040 CPPFLAGS += -D_RETAIN_OLD_SYSCALLS
1040 1041
1041 1042 # Inform the run-time linker about libc specialized initialization
1042 1043 RTLDINFO = -z rtldinfo=tls_rtldinfo
1043 1044 DYNFLAGS += $(RTLDINFO)
1044 1045
1045 1046 # Force libc's internal references to be resolved immediately upon loading
1046 1047 # in order to avoid critical region problems. Since almost all libc symbols
1047 1048 # are marked 'protected' in the mapfiles, this is a minimal set (15 to 20).
1048 1049 DYNFLAGS += -znow
1049 1050
1050 1051 DYNFLAGS += $(EXTN_DYNFLAGS)
1051 1052
1052 1053 BUILD.s= $(AS) $(ASFLAGS) $< -o $@
1053 1054
1054 1055 # Override this top level flag so the compiler builds in its native
1055 1056 # C99 mode. This has been enabled to support the complex arithmetic
1056 1057 # added to libc.
1057 1058 C99MODE= $(C99_ENABLE)
1058 1059
1059 1060 # libc method of building an archive
1060 1061 # The "$(GREP) -v ' L '" part is necessary only until
1061 1062 # lorder is fixed to ignore thread-local variables.
1062 1063 BUILD.AR= $(RM) $@ ; \
1063 1064 $(AR) q $@ `$(LORDER) $(MOSTOBJS:%=$(DIR)/%) | $(GREP) -v ' L ' | $(TSORT)`
1064 1065
1065 1066 # extra files for the clean target
1066 1067 CLEANFILES= \
1067 1068 $(LIBCDIR)/port/gen/errlst.c \
1068 1069 $(LIBCDIR)/port/gen/new_list.c \
1069 1070 assym.h \
1070 1071 genassym \
1071 1072 pics/crti.o \
1072 1073 pics/crtn.o \
1073 1074 $(ALTPICS)
1074 1075
1075 1076 CLOBBERFILES += $(LIB_PIC)
1076 1077
1077 1078 # list of C source for lint
1078 1079 SRCS= \
1079 1080 $(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c) \
1080 1081 $(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
1081 1082 $(COMOBJS:%.o=$(SRC)/common/util/%.c) \
1082 1083 $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c) \
1083 1084 $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c) \
1084 1085 $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c) \
1085 1086 $(PORTLOCALE:%.o=$(LIBCDIR)/port/locale/%.c) \
1086 1087 $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c) \
1087 1088 $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c) \
1088 1089 $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c) \
1089 1090 $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c) \
1090 1091 $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c) \
1091 1092 $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c) \
1092 1093 $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c) \
1093 1094 $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c) \
1094 1095 $(THREADSMACHOBJS:%.o=$(LIBCDIR)/$(MACH)/threads/%.c) \
1095 1096 $(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
1096 1097 $(UNWINDMACHOBJS:%.o=$(LIBCDIR)/port/unwind/%.c) \
1097 1098 $(FPOBJS:%.o=$(LIBCDIR)/$(MACH)/fp/%.c) \
1098 1099 $(FPOBJS64:%.o=$(LIBCBASE)/fp/%.c) \
1099 1100 $(LIBCBASE)/crt/_ftou.c \
1100 1101 $(LIBCBASE)/gen/_xregs_clrptr.c \
1101 1102 $(LIBCBASE)/gen/byteorder.c \
1102 1103 $(LIBCBASE)/gen/ecvt.c \
1103 1104 $(LIBCBASE)/gen/getctxt.c \
1104 1105 $(LIBCBASE)/gen/makectxt.c \
1105 1106 $(LIBCBASE)/gen/siginfolst.c \
1106 1107 $(LIBCBASE)/gen/siglongjmp.c \
1107 1108 $(LIBCBASE)/gen/swapctxt.c
1108 1109
1109 1110 # conditional assignments
1110 1111 $(DYNLIB) := CRTI = crti.o
1111 1112 $(DYNLIB) := CRTN = crtn.o
1112 1113
1113 1114 # Files which need the threads .il inline template
1114 1115 TIL= \
1115 1116 aio.o \
1116 1117 alloc.o \
1117 1118 assfail.o \
1118 1119 atexit.o \
1119 1120 atfork.o \
1120 1121 cancel.o \
1121 1122 door_calls.o \
1122 1123 err.o \
1123 1124 errno.o \
1124 1125 getctxt.o \
1125 1126 lwp.o \
1126 1127 ma.o \
1127 1128 machdep.o \
1128 1129 posix_aio.o \
1129 1130 pthr_attr.o \
1130 1131 pthr_barrier.o \
1131 1132 pthr_cond.o \
1132 1133 pthr_mutex.o \
1133 1134 pthr_rwlock.o \
1134 1135 pthread.o \
1135 1136 rand.o \
1136 1137 rwlock.o \
1137 1138 scalls.o \
1138 1139 sched.o \
1139 1140 sema.o \
1140 1141 sigaction.o \
1141 1142 sigev_thread.o \
1142 1143 spawn.o \
1143 1144 stack.o \
1144 1145 swapctxt.o \
1145 1146 synch.o \
1146 1147 tdb_agent.o \
1147 1148 thr.o \
1148 1149 thread_interface.o \
1149 1150 thread_pool.o \
1150 1151 tls.o \
1151 1152 tsd.o \
1152 1153 unwind.o
1153 1154
1154 1155 $(TIL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/threads/sparcv9.il
1155 1156
1156 1157 # Files in fp, port/fp subdirectories that need base.il inline template
1157 1158 IL= \
1158 1159 __flt_decim.o \
1159 1160 decimal_bin.o
1160 1161
1161 1162 $(IL:%=pics/%) := CFLAGS64 += $(LIBCBASE)/fp/base.il
1162 1163
1163 1164 # Files in fp subdirectory which need __quad.il inline template
1164 1165 QIL= \
1165 1166 _Q_add.o \
1166 1167 _Q_cmp.o \
1167 1168 _Q_cmpe.o \
1168 1169 _Q_div.o \
1169 1170 _Q_dtoq.o \
1170 1171 _Q_fcc.o \
1171 1172 _Q_mul.o \
1172 1173 _Q_qtod.o \
1173 1174 _Q_qtoi.o \
↓ open down ↓ |
1138 lines elided |
↑ open up ↑ |
1174 1175 _Q_qtos.o \
1175 1176 _Q_qtou.o \
1176 1177 _Q_sqrt.o \
1177 1178 _Q_stoq.o \
1178 1179 _Q_sub.o \
1179 1180 _Qp_qtox.o \
1180 1181 _Qp_qtoux.o
1181 1182
1182 1183 $(QIL:%=pics/%) := CFLAGS64 += $(LIBCDIR)/$(MACH)/fp/__quad.il
1183 1184 pics/_Qp%.o := CFLAGS64 += -I$(LIBCDIR)/$(MACH)/fp
1184 -pics/_Q%.o := sparcv9_COPTFLAG = -xO4 -xchip=ultra
1185 +pics/_Q%.o := sparcv9_COPTFLAG = -_cc=-xO4 -_gcc=-O2 -xchip=ultra
1185 1186
1186 1187 # Files in crt subdirectory which need muldiv64.il inline template
1187 1188 #CIL= mul64.o divrem64.o
1188 1189 #$(CIL:%=pics/%) := CFLAGS += $(LIBCBASE)/crt/mul64.il
1189 1190
1190 1191 # large-file-aware components that should be built large
1191 1192
1192 1193 #$(COMSYSOBJS64:%=pics/%) := \
1193 1194 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1194 1195
1195 1196 #$(SYSOBJS64:%=pics/%) := \
1196 1197 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1197 1198
1198 1199 #$(PORTGEN64:%=pics/%) := \
1199 1200 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1200 1201
1201 1202 #$(PORTSTDIO64:%=pics/%) := \
1202 1203 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1203 1204
1204 1205 #$(PORTSYS64:%=pics/%) := \
1205 1206 # CPPFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
1206 1207
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
1207 1208 $(PORTSTDIO_W:%=pics/%) := \
1208 1209 CPPFLAGS += -D_WIDE
1209 1210
1210 1211 $(PORTPRINT_W:%=pics/%) := \
1211 1212 CPPFLAGS += -D_WIDE
1212 1213
1213 1214 $(PORTI18N_COND:%=pics/%) := \
1214 1215 CPPFLAGS += -D_WCS_LONGLONG
1215 1216
1216 1217 # Files which need extra optimization
1217 -pics/getenv.o := sparcv9_COPTFLAG = -xO4
1218 +pics/getenv.o := sparcv9_COPTFLAG = -_cc=-xO4 -_gcc=-O2
1218 1219
1219 1220 .KEEP_STATE:
1220 1221
1221 1222 all: $(LIBS) $(LIB_PIC)
1222 1223
1223 1224 lint := CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
1224 1225 lint := CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
1225 1226 lint := LINTFLAGS64 += -mn
1226 1227
1227 1228 lint:
1228 1229 @echo $(LINT.c) ... $(LDLIBS)
1229 1230 @$(LINT.c) $(SRCS) $(LDLIBS)
1230 1231
1231 1232 $(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
1232 1233 $(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
1233 1234 $(LINTLIB):= LINTFLAGS64=-nvx -m64
1234 1235
1235 1236 # object files that depend on inline template
1236 1237 $(TIL:%=pics/%): $(LIBCBASE)/threads/sparcv9.il
1237 1238 $(IL:%=pics/%): $(LIBCBASE)/fp/base.il
1238 1239 $(QIL:%=pics/%): $(LIBCDIR)/$(MACH)/fp/__quad.il
1239 1240 #$(CIL:%=pics/%): $(LIBCBASE)/crt/muldiv64.il
1240 1241
1241 1242 # include common libc targets
1242 1243 include $(LIBCDIR)/Makefile.targ
1243 1244
1244 1245 # We need to strip out all CTF and DOF data from the static library
1245 1246 $(LIB_PIC) := DIR = pics
1246 1247 $(LIB_PIC): pics $$(PICS)
1247 1248 $(BUILD.AR)
1248 1249 $(MCS) -d -n .SUNW_ctf $@ > /dev/null 2>&1
1249 1250 $(MCS) -d -n .SUNW_dof $@ > /dev/null 2>&1
1250 1251 $(AR) -ts $@ > /dev/null
1251 1252 $(POST_PROCESS_A)
1252 1253
1253 1254 # special cases
1254 1255 #$(STRETS:%=pics/%): crt/stret.s
1255 1256 # $(AS) $(ASFLAGS) -DSTRET$(@F:stret%.o=%) crt/stret.s -o $@
1256 1257 # $(POST_PROCESS_O)
1257 1258
1258 1259 #crt/_rtbootld.s: crt/_rtboot.s crt/_rtld.c
1259 1260 # $(CC) $(CPPFLAGS) -O -S -K pic crt/_rtld.c -o crt/_rtld.s
1260 1261 # $(CAT) crt/_rtboot.s crt/_rtld.s > $@
1261 1262 # $(RM) crt/_rtld.s
1262 1263
1263 1264 ASSYMDEP_OBJS= \
1264 1265 _lwp_mutex_unlock.o \
1265 1266 _stack_grow.o \
1266 1267 asm_subr.o \
1267 1268 setjmp.o \
1268 1269 smt_pause.o \
1269 1270 tls_get_addr.o \
1270 1271 unwind_frame.o \
1271 1272 vforkx.o
1272 1273
1273 1274 $(ASSYMDEP_OBJS:%=pics/%) := CPPFLAGS += -I.
1274 1275
1275 1276 $(ASSYMDEP_OBJS:%=pics/%): assym.h
1276 1277
1277 1278 # assym.h build rules
1278 1279
1279 1280 assym.h := CFLAGS64 += -g
1280 1281
1281 1282 GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
1282 1283
1283 1284 genassym: $(GENASSYM_C)
1284 1285 $(NATIVECC) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
1285 1286 $(CPPFLAGS.native) -o $@ $(GENASSYM_C)
1286 1287
1287 1288 OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
1288 1289
1289 1290 assym.h: $(OFFSETS) genassym
1290 1291 $(OFFSETS_CREATE) <$(OFFSETS) >$@
1291 1292 ./genassym >>$@
1292 1293
1293 1294 # derived C source and related explicit dependencies
1294 1295 $(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
1295 1296 cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
1296 1297
1297 1298 pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
↓ open down ↓ |
70 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX