comparison gcc/defaults.h @ 55:77e2b8dfacca gcc-4.4.5

update it from 4.4.3 to 4.5.0
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Fri, 12 Feb 2010 23:39:51 +0900
parents 58ad6c70ea60
children b7f97abdc517
comparison
equal deleted inserted replaced
52:c156f1bd5cd9 55:77e2b8dfacca
253 #else 253 #else
254 #define SUPPORTS_WEAK 0 254 #define SUPPORTS_WEAK 0
255 #endif 255 #endif
256 #endif 256 #endif
257 257
258 /* This determines whether or not we support the discriminator
259 attribute in the .loc directive. */
260 #ifndef SUPPORTS_DISCRIMINATOR
261 #ifdef HAVE_GAS_DISCRIMINATOR
262 #define SUPPORTS_DISCRIMINATOR 1
263 #else
264 #define SUPPORTS_DISCRIMINATOR 0
265 #endif
266 #endif
267
258 /* This determines whether or not we support link-once semantics. */ 268 /* This determines whether or not we support link-once semantics. */
259 #ifndef SUPPORTS_ONE_ONLY 269 #ifndef SUPPORTS_ONE_ONLY
260 #ifdef MAKE_DECL_ONE_ONLY 270 #ifdef MAKE_DECL_ONE_ONLY
261 #define SUPPORTS_ONE_ONLY 1 271 #define SUPPORTS_ONE_ONLY 1
262 #else 272 #else
448 #define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2) 458 #define LONG_DOUBLE_TYPE_SIZE (BITS_PER_WORD * 2)
449 #endif 459 #endif
450 460
451 #ifndef DECIMAL32_TYPE_SIZE 461 #ifndef DECIMAL32_TYPE_SIZE
452 #define DECIMAL32_TYPE_SIZE 32 462 #define DECIMAL32_TYPE_SIZE 32
453 #endif 463 #endif
454 464
455 #ifndef DECIMAL64_TYPE_SIZE 465 #ifndef DECIMAL64_TYPE_SIZE
456 #define DECIMAL64_TYPE_SIZE 64 466 #define DECIMAL64_TYPE_SIZE 64
457 #endif 467 #endif
458 468
459 #ifndef DECIMAL128_TYPE_SIZE 469 #ifndef DECIMAL128_TYPE_SIZE
460 #define DECIMAL128_TYPE_SIZE 128 470 #define DECIMAL128_TYPE_SIZE 128
461 #endif 471 #endif
462 472
488 #define LONG_ACCUM_TYPE_SIZE (LONG_FRACT_TYPE_SIZE * 2) 498 #define LONG_ACCUM_TYPE_SIZE (LONG_FRACT_TYPE_SIZE * 2)
489 #endif 499 #endif
490 500
491 #ifndef LONG_LONG_ACCUM_TYPE_SIZE 501 #ifndef LONG_LONG_ACCUM_TYPE_SIZE
492 #define LONG_LONG_ACCUM_TYPE_SIZE (LONG_LONG_FRACT_TYPE_SIZE * 2) 502 #define LONG_LONG_ACCUM_TYPE_SIZE (LONG_LONG_FRACT_TYPE_SIZE * 2)
503 #endif
504
505 /* We let tm.h override the types used here, to handle trivial differences
506 such as the choice of unsigned int or long unsigned int for size_t.
507 When machines start needing nontrivial differences in the size type,
508 it would be best to do something here to figure out automatically
509 from other information what type to use. */
510
511 #ifndef SIZE_TYPE
512 #define SIZE_TYPE "long unsigned int"
513 #endif
514
515 #ifndef PID_TYPE
516 #define PID_TYPE "int"
517 #endif
518
519 /* If GCC knows the exact uint_least16_t and uint_least32_t types from
520 <stdint.h>, use them for char16_t and char32_t. Otherwise, use
521 these guesses; getting the wrong type of a given width will not
522 affect C++ name mangling because in C++ these are distinct types
523 not typedefs. */
524
525 #ifdef UINT_LEAST16_TYPE
526 #define CHAR16_TYPE UINT_LEAST16_TYPE
527 #else
528 #define CHAR16_TYPE "short unsigned int"
529 #endif
530
531 #ifdef UINT_LEAST32_TYPE
532 #define CHAR32_TYPE UINT_LEAST32_TYPE
533 #else
534 #define CHAR32_TYPE "unsigned int"
535 #endif
536
537 #ifndef WCHAR_TYPE
538 #define WCHAR_TYPE "int"
539 #endif
540
541 /* WCHAR_TYPE gets overridden by -fshort-wchar. */
542 #define MODIFIED_WCHAR_TYPE \
543 (flag_short_wchar ? "short unsigned int" : WCHAR_TYPE)
544
545 #ifndef PTRDIFF_TYPE
546 #define PTRDIFF_TYPE "long int"
547 #endif
548
549 #ifndef WINT_TYPE
550 #define WINT_TYPE "unsigned int"
551 #endif
552
553 #ifndef INTMAX_TYPE
554 #define INTMAX_TYPE ((INT_TYPE_SIZE == LONG_LONG_TYPE_SIZE) \
555 ? "int" \
556 : ((LONG_TYPE_SIZE == LONG_LONG_TYPE_SIZE) \
557 ? "long int" \
558 : "long long int"))
559 #endif
560
561 #ifndef UINTMAX_TYPE
562 #define UINTMAX_TYPE ((INT_TYPE_SIZE == LONG_LONG_TYPE_SIZE) \
563 ? "unsigned int" \
564 : ((LONG_TYPE_SIZE == LONG_LONG_TYPE_SIZE) \
565 ? "long unsigned int" \
566 : "long long unsigned int"))
567 #endif
568
569
570 /* There are no default definitions of these <stdint.h> types. */
571
572 #ifndef SIG_ATOMIC_TYPE
573 #define SIG_ATOMIC_TYPE ((const char *) NULL)
574 #endif
575
576 #ifndef INT8_TYPE
577 #define INT8_TYPE ((const char *) NULL)
578 #endif
579
580 #ifndef INT16_TYPE
581 #define INT16_TYPE ((const char *) NULL)
582 #endif
583
584 #ifndef INT32_TYPE
585 #define INT32_TYPE ((const char *) NULL)
586 #endif
587
588 #ifndef INT64_TYPE
589 #define INT64_TYPE ((const char *) NULL)
590 #endif
591
592 #ifndef UINT8_TYPE
593 #define UINT8_TYPE ((const char *) NULL)
594 #endif
595
596 #ifndef UINT16_TYPE
597 #define UINT16_TYPE ((const char *) NULL)
598 #endif
599
600 #ifndef UINT32_TYPE
601 #define UINT32_TYPE ((const char *) NULL)
602 #endif
603
604 #ifndef UINT64_TYPE
605 #define UINT64_TYPE ((const char *) NULL)
606 #endif
607
608 #ifndef INT_LEAST8_TYPE
609 #define INT_LEAST8_TYPE ((const char *) NULL)
610 #endif
611
612 #ifndef INT_LEAST16_TYPE
613 #define INT_LEAST16_TYPE ((const char *) NULL)
614 #endif
615
616 #ifndef INT_LEAST32_TYPE
617 #define INT_LEAST32_TYPE ((const char *) NULL)
618 #endif
619
620 #ifndef INT_LEAST64_TYPE
621 #define INT_LEAST64_TYPE ((const char *) NULL)
622 #endif
623
624 #ifndef UINT_LEAST8_TYPE
625 #define UINT_LEAST8_TYPE ((const char *) NULL)
626 #endif
627
628 #ifndef UINT_LEAST16_TYPE
629 #define UINT_LEAST16_TYPE ((const char *) NULL)
630 #endif
631
632 #ifndef UINT_LEAST32_TYPE
633 #define UINT_LEAST32_TYPE ((const char *) NULL)
634 #endif
635
636 #ifndef UINT_LEAST64_TYPE
637 #define UINT_LEAST64_TYPE ((const char *) NULL)
638 #endif
639
640 #ifndef INT_FAST8_TYPE
641 #define INT_FAST8_TYPE ((const char *) NULL)
642 #endif
643
644 #ifndef INT_FAST16_TYPE
645 #define INT_FAST16_TYPE ((const char *) NULL)
646 #endif
647
648 #ifndef INT_FAST32_TYPE
649 #define INT_FAST32_TYPE ((const char *) NULL)
650 #endif
651
652 #ifndef INT_FAST64_TYPE
653 #define INT_FAST64_TYPE ((const char *) NULL)
654 #endif
655
656 #ifndef UINT_FAST8_TYPE
657 #define UINT_FAST8_TYPE ((const char *) NULL)
658 #endif
659
660 #ifndef UINT_FAST16_TYPE
661 #define UINT_FAST16_TYPE ((const char *) NULL)
662 #endif
663
664 #ifndef UINT_FAST32_TYPE
665 #define UINT_FAST32_TYPE ((const char *) NULL)
666 #endif
667
668 #ifndef UINT_FAST64_TYPE
669 #define UINT_FAST64_TYPE ((const char *) NULL)
670 #endif
671
672 #ifndef INTPTR_TYPE
673 #define INTPTR_TYPE ((const char *) NULL)
674 #endif
675
676 #ifndef UINTPTR_TYPE
677 #define UINTPTR_TYPE ((const char *) NULL)
493 #endif 678 #endif
494 679
495 /* Width in bits of a pointer. Mind the value of the macro `Pmode'. */ 680 /* Width in bits of a pointer. Mind the value of the macro `Pmode'. */
496 #ifndef POINTER_SIZE 681 #ifndef POINTER_SIZE
497 #define POINTER_SIZE BITS_PER_WORD 682 #define POINTER_SIZE BITS_PER_WORD
691 then the word-endianness is the same as for integers. */ 876 then the word-endianness is the same as for integers. */
692 #ifndef FLOAT_WORDS_BIG_ENDIAN 877 #ifndef FLOAT_WORDS_BIG_ENDIAN
693 #define FLOAT_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN 878 #define FLOAT_WORDS_BIG_ENDIAN WORDS_BIG_ENDIAN
694 #endif 879 #endif
695 880
696 #ifndef TARGET_FLT_EVAL_METHOD 881 #ifdef TARGET_FLT_EVAL_METHOD
882 #define TARGET_FLT_EVAL_METHOD_NON_DEFAULT 1
883 #else
697 #define TARGET_FLT_EVAL_METHOD 0 884 #define TARGET_FLT_EVAL_METHOD 0
885 #define TARGET_FLT_EVAL_METHOD_NON_DEFAULT 0
698 #endif 886 #endif
699 887
700 #ifndef TARGET_DEC_EVAL_METHOD 888 #ifndef TARGET_DEC_EVAL_METHOD
701 #define TARGET_DEC_EVAL_METHOD 2 889 #define TARGET_DEC_EVAL_METHOD 2
702 #endif 890 #endif
873 1061
874 #ifndef SHIFT_COUNT_TRUNCATED 1062 #ifndef SHIFT_COUNT_TRUNCATED
875 #define SHIFT_COUNT_TRUNCATED 0 1063 #define SHIFT_COUNT_TRUNCATED 0
876 #endif 1064 #endif
877 1065
878 #ifndef LEGITIMIZE_ADDRESS
879 #define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
880 #endif
881
882 #ifndef LEGITIMATE_PIC_OPERAND_P 1066 #ifndef LEGITIMATE_PIC_OPERAND_P
883 #define LEGITIMATE_PIC_OPERAND_P(X) 1 1067 #define LEGITIMATE_PIC_OPERAND_P(X) 1
884 #endif 1068 #endif
885 1069
886 #ifndef TARGET_MEM_CONSTRAINT 1070 #ifndef TARGET_MEM_CONSTRAINT
900 #define FRAME_GROWS_DOWNWARD 0 1084 #define FRAME_GROWS_DOWNWARD 0
901 #endif 1085 #endif
902 1086
903 /* On most machines, the CFA coincides with the first incoming parm. */ 1087 /* On most machines, the CFA coincides with the first incoming parm. */
904 #ifndef ARG_POINTER_CFA_OFFSET 1088 #ifndef ARG_POINTER_CFA_OFFSET
905 #define ARG_POINTER_CFA_OFFSET(FNDECL) FIRST_PARM_OFFSET (FNDECL) 1089 #define ARG_POINTER_CFA_OFFSET(FNDECL) \
1090 (FIRST_PARM_OFFSET (FNDECL) + crtl->args.pretend_args_size)
906 #endif 1091 #endif
907 1092
908 /* On most machines, we use the CFA as DW_AT_frame_base. */ 1093 /* On most machines, we use the CFA as DW_AT_frame_base. */
909 #ifndef CFA_FRAME_BASE_OFFSET 1094 #ifndef CFA_FRAME_BASE_OFFSET
910 #define CFA_FRAME_BASE_OFFSET(FNDECL) 0 1095 #define CFA_FRAME_BASE_OFFSET(FNDECL) 0
961 /* Alignment value for attribute ((aligned)). */ 1146 /* Alignment value for attribute ((aligned)). */
962 #ifndef ATTRIBUTE_ALIGNED_VALUE 1147 #ifndef ATTRIBUTE_ALIGNED_VALUE
963 #define ATTRIBUTE_ALIGNED_VALUE BIGGEST_ALIGNMENT 1148 #define ATTRIBUTE_ALIGNED_VALUE BIGGEST_ALIGNMENT
964 #endif 1149 #endif
965 1150
1151 /* Many ports have no mode-dependent addresses (except possibly autoincrement
1152 and autodecrement addresses, which are handled by target-independent code
1153 in recog.c). */
1154 #ifndef GO_IF_MODE_DEPENDENT_ADDRESS
1155 #define GO_IF_MODE_DEPENDENT_ADDRESS(X, WIN)
1156 #endif
1157
1158 /* For most ports anything that evaluates to a constant symbolic
1159 or integer value is acceptable as a constant address. */
1160 #ifndef CONSTANT_ADDRESS_P
1161 #define CONSTANT_ADDRESS_P(X) (CONSTANT_P (X) && GET_CODE (X) != CONST_DOUBLE)
1162 #endif
1163
966 #endif /* ! GCC_DEFAULTS_H */ 1164 #endif /* ! GCC_DEFAULTS_H */