comparison gcc/c.opt @ 63:b7f97abdc517 gcc-4.6-20100522

update gcc from gcc-4.5.0 to gcc-4.6
author ryoma <e075725@ie.u-ryukyu.ac.jp>
date Mon, 24 May 2010 12:47:05 +0900
parents 77e2b8dfacca
children
comparison
equal deleted inserted replaced
56:3c8a44c06a95 63:b7f97abdc517
1 ; Options for the C, ObjC, C++ and ObjC++ front ends. 1 ; Options for the C, ObjC, C++ and ObjC++ front ends.
2 ; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 2 ; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
3 ; Free Software Foundation, Inc. 3 ; Free Software Foundation, Inc.
4 ; 4 ;
5 ; This file is part of GCC. 5 ; This file is part of GCC.
6 ; 6 ;
7 ; GCC is free software; you can redistribute it and/or modify it under 7 ; GCC is free software; you can redistribute it and/or modify it under
169 169
170 Wconversion 170 Wconversion
171 C ObjC C++ ObjC++ Var(warn_conversion) Warning 171 C ObjC C++ ObjC++ Var(warn_conversion) Warning
172 Warn for implicit type conversions that may change a value 172 Warn for implicit type conversions that may change a value
173 173
174 Wconversion-null
175 C++ ObjC++ Var(warn_conversion_null) Init(1) Warning
176 Warn for converting NULL from/to a non-pointer type
177
174 Wsign-conversion 178 Wsign-conversion
175 C ObjC C++ ObjC++ Var(warn_sign_conversion) Init(-1) 179 C ObjC C++ ObjC++ Var(warn_sign_conversion) Init(-1)
176 Warn for implicit type conversions between signed and unsigned integers 180 Warn for implicit type conversions between signed and unsigned integers
177 181
178 Wctor-dtor-privacy 182 Wctor-dtor-privacy
257 Winit-self 261 Winit-self
258 C ObjC C++ ObjC++ Var(warn_init_self) Warning 262 C ObjC C++ ObjC++ Var(warn_init_self) Warning
259 Warn about variables which are initialized to themselves 263 Warn about variables which are initialized to themselves
260 264
261 Wimplicit 265 Wimplicit
262 C ObjC C++ ObjC++ Warning 266 C ObjC Var(warn_implicit) Init(-1) Warning
267 Warn about implicit declarations
263 268
264 Wimplicit-function-declaration 269 Wimplicit-function-declaration
265 C ObjC Var(warn_implicit_function_declaration) Init(-1) Warning 270 C ObjC Var(warn_implicit_function_declaration) Init(-1) Warning
266 Warn about implicit function declarations 271 Warn about implicit function declarations
267 272
268 Wimplicit-int 273 Wimplicit-int
269 C ObjC Var(warn_implicit_int) Warning 274 C ObjC Var(warn_implicit_int) Init(-1) Warning
270 Warn when a declaration does not specify a type 275 Warn when a declaration does not specify a type
271 276
272 Wimport 277 Wimport
273 C ObjC C++ ObjC++ Undocumented 278 C ObjC C++ ObjC++ Undocumented
274 279
275 Wint-to-pointer-cast 280 Wint-to-pointer-cast
276 C ObjC Var(warn_int_to_pointer_cast) Init(1) Warning 281 C ObjC C++ ObjC++ Var(warn_int_to_pointer_cast) Init(1) Warning
277 Warn when there is a cast to a pointer from an integer of a different size 282 Warn when there is a cast to a pointer from an integer of a different size
278 283
279 Winvalid-offsetof 284 Winvalid-offsetof
280 C++ ObjC++ Var(warn_invalid_offsetof) Init(1) Warning 285 C++ ObjC++ Var(warn_invalid_offsetof) Init(1) Warning
281 Warn about invalid uses of the \"offsetof\" macro 286 Warn about invalid uses of the \"offsetof\" macro
681 fnonansi-builtins 686 fnonansi-builtins
682 C++ ObjC++ 687 C++ ObjC++
683 688
684 fnonnull-objects 689 fnonnull-objects
685 C++ ObjC++ 690 C++ ObjC++
691
692 fnothrow-opt
693 C++ ObjC++ Optimization Var(flag_nothrow_opt)
694 Treat a throw() exception specification as noexcept to improve code size
686 695
687 ; Generate special '- .cxx_construct' and '- .cxx_destruct' methods 696 ; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
688 ; to initialize any non-POD ivars in Objective-C++ classes. 697 ; to initialize any non-POD ivars in Objective-C++ classes.
689 fobjc-call-cxx-cdtors 698 fobjc-call-cxx-cdtors
690 ObjC++ Var(flag_objc_call_cxx_cdtors) 699 ObjC++ Var(flag_objc_call_cxx_cdtors)
767 fsigned-bitfields 776 fsigned-bitfields
768 C ObjC C++ ObjC++ 777 C ObjC C++ ObjC++
769 When \"signed\" or \"unsigned\" is not given make the bitfield signed 778 When \"signed\" or \"unsigned\" is not given make the bitfield signed
770 779
771 fsigned-char 780 fsigned-char
772 C ObjC C++ ObjC++ 781 C ObjC C++ ObjC++ LTO
773 Make \"char\" signed by default 782 Make \"char\" signed by default
774 783
775 fsquangle 784 fsquangle
776 C++ ObjC++ 785 C++ ObjC++
777 786
778 fstats 787 fstats
779 C++ ObjC++ 788 C++ ObjC++
780 Display statistics accumulated during compilation 789 Display statistics accumulated during compilation
790
791 fstrict-enums
792 C++ ObjC++ Optimization Var(flag_strict_enums)
793 Assume that values of enumeration type are always within the minimum range of that type
781 794
782 fstrict-prototype 795 fstrict-prototype
783 C++ ObjC++ 796 C++ ObjC++
784 797
785 ftabstop= 798 ftabstop=
786 C ObjC C++ ObjC++ Joined RejectNegative UInteger 799 C ObjC C++ ObjC++ Joined RejectNegative UInteger
787 -ftabstop=<number> Distance between tab stops for column reporting 800 -ftabstop=<number> Distance between tab stops for column reporting
788 801
789 ftemplate-depth- 802 ftemplate-depth-
803 C++ ObjC++ Joined RejectNegative UInteger Undocumented
804
805 ftemplate-depth=
790 C++ ObjC++ Joined RejectNegative UInteger 806 C++ ObjC++ Joined RejectNegative UInteger
791 -ftemplate-depth-<number> Specify maximum template instantiation depth 807 -ftemplate-depth=<number> Specify maximum template instantiation depth
792 808
793 fthis-is-variable 809 fthis-is-variable
794 C++ ObjC++ 810 C++ ObjC++
795 811
796 fthreadsafe-statics 812 fthreadsafe-statics
800 funsigned-bitfields 816 funsigned-bitfields
801 C ObjC C++ ObjC++ 817 C ObjC C++ ObjC++
802 When \"signed\" or \"unsigned\" is not given make the bitfield unsigned 818 When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
803 819
804 funsigned-char 820 funsigned-char
805 C ObjC C++ ObjC++ 821 C ObjC C++ ObjC++ LTO
806 Make \"char\" unsigned by default 822 Make \"char\" unsigned by default
807 823
808 fuse-cxa-atexit 824 fuse-cxa-atexit
809 C++ ObjC++ 825 C++ ObjC++
810 Use __cxa_atexit to register destructors 826 Use __cxa_atexit to register destructors
873 C ObjC C++ ObjC++ Joined Separate 889 C ObjC C++ ObjC++ Joined Separate
874 -imacros <file> Accept definition of macros in <file> 890 -imacros <file> Accept definition of macros in <file>
875 891
876 imultilib 892 imultilib
877 C ObjC C++ ObjC++ Joined Separate 893 C ObjC C++ ObjC++ Joined Separate
878 -imultilib <dir> Set <dir> to be the multilib include subdirectory 894 -imultilib <dir> Set <dir> to be the multilib include subdirectory
879 895
880 include 896 include
881 C ObjC C++ ObjC++ Joined Separate 897 C ObjC C++ ObjC++ Joined Separate
882 -include <file> Include the contents of <file> before other files 898 -include <file> Include the contents of <file> before other files
883 899
952 Conform to the ISO 1998 C++ standard, with extensions that are likely to 968 Conform to the ISO 1998 C++ standard, with extensions that are likely to
953 become a part of the upcoming ISO C++ standard, dubbed C++0x. Note that the 969 become a part of the upcoming ISO C++ standard, dubbed C++0x. Note that the
954 extensions enabled by this mode are experimental and may be removed in 970 extensions enabled by this mode are experimental and may be removed in
955 future releases of GCC. 971 future releases of GCC.
956 972
973 std=c1x
974 C ObjC
975 Conform to the ISO 201X C standard draft (experimental and incomplete support)
976
957 std=c89 977 std=c89
978 C ObjC
979 Conform to the ISO 1990 C standard
980
981 std=c90
958 C ObjC 982 C ObjC
959 Conform to the ISO 1990 C standard 983 Conform to the ISO 1990 C standard
960 984
961 std=c99 985 std=c99
962 C ObjC 986 C ObjC
975 Conform to the ISO 1998 C++ standard, with GNU extensions and 999 Conform to the ISO 1998 C++ standard, with GNU extensions and
976 extensions that are likely to become a part of the upcoming ISO C++ 1000 extensions that are likely to become a part of the upcoming ISO C++
977 standard, dubbed C++0x. Note that the extensions enabled by this mode 1001 standard, dubbed C++0x. Note that the extensions enabled by this mode
978 are experimental and may be removed in future releases of GCC. 1002 are experimental and may be removed in future releases of GCC.
979 1003
1004 std=gnu1x
1005 C ObjC
1006 Conform to the ISO 201X C standard draft with GNU extensions (experimental and incomplete support)
1007
980 std=gnu89 1008 std=gnu89
1009 C ObjC
1010 Conform to the ISO 1990 C standard with GNU extensions
1011
1012 std=gnu90
981 C ObjC 1013 C ObjC
982 Conform to the ISO 1990 C standard with GNU extensions 1014 Conform to the ISO 1990 C standard with GNU extensions
983 1015
984 std=gnu99 1016 std=gnu99
985 C ObjC 1017 C ObjC