summaryrefslogtreecommitdiffstatshomepage
path: root/lib.c
AgeCommit message (Expand)AuthorFilesLines
2019-10-03cleanup: make arch_msize_long staticLuc Van Oostenryck1-1/+1
2019-02-07predefs: add arch-specific predefinesLuc Van Oostenryck1-7/+60
2019-02-04predefs: fix for MIPS system headers needing _MIPS_SZ{INT,LONG,PTR}Luc Van Oostenryck1-0/+9
2019-02-04lib.c: move handle_arch_m64_finalize() to init_target()Luc Van Oostenryck1-41/+1
2019-02-04lib.c: move predefines out of handle_arch_m64_finalize()Luc Van Oostenryck1-12/+24
2018-12-19Merge branch 'bitwise-ptr'Luc Van Oostenryck1-0/+2
2018-12-17add a flag to warn on casts to/from bitwise pointersLuc Van Oostenryck1-0/+2
2018-12-17Merge branch 'predefs' into tipv0.6.0-rc1Luc Van Oostenryck1-65/+101
2018-12-17add predefine_min() and use it for __{WCHAR,WINT}_MIN__Luc Van Oostenryck1-2/+17
2018-12-17add predefine for __CHAR_UNSIGNED__Luc Van Oostenryck1-1/+3
2018-12-17add predefined macros for char{16,32}_tLuc Van Oostenryck1-0/+2
2018-12-17add predefined macros for [u]int32_tLuc Van Oostenryck1-0/+2
2018-12-17add predefined macros for [u]int64_tLuc Van Oostenryck1-0/+8
2018-12-17add predefined macros for [u]int{8,16}_tLuc Van Oostenryck1-0/+5
2018-12-17add predefined macros for [u]intmaxLuc Van Oostenryck1-0/+6
2018-12-17add predefined macros for [u]intptrLuc Van Oostenryck1-0/+2
2018-12-17add predefined macros for wint_tLuc Van Oostenryck1-0/+1
2018-12-17use the type for predefined_max()Luc Van Oostenryck1-5/+5
2018-12-17give a type to wcharLuc Van Oostenryck1-3/+3
2018-12-17make predefined_type_size() more genericLuc Van Oostenryck1-23/+38
2018-12-14use bits_mask() for predefined_max()Luc Van Oostenryck1-1/+2
2018-12-14allow optional "_T" suffix to __SIZEOF_XXX__Luc Van Oostenryck1-12/+12
2018-12-14fix '__SIZE_TYPE__' for LLP64Luc Van Oostenryck1-10/+7
2018-12-14Consolidate 'machine detection' into "machine.h"Luc Van Oostenryck1-21/+1
2018-12-09Merge branch 'dump-macros'Luc Van Oostenryck1-9/+32
2018-12-01Conditionalize 'warning: non-ANSI function ...'John Levon1-0/+4
2018-12-01Use -Wimplicit-int when warning about missing K&R argument typesLuc Van Oostenryck1-0/+2
2018-11-24pre-process: add the -dM option to dump macro definitionsRamsay Jones1-9/+32
2018-11-24teach sparse about '-x <language>'Luc Van Oostenryck1-0/+8
2018-11-24teach sparse about '-o <file>'Luc Van Oostenryck1-0/+13
2018-11-23constant: add -Wconstant-suffix warningRamsay Jones1-0/+2
2018-09-06Merge branches 'missing-return' and 'fix-logical-phi' into tipLuc Van Oostenryck1-0/+1
2018-09-05add linearization as a passLuc Van Oostenryck1-0/+1
2018-09-01stricter warning for explicit cast to ulongLuc Van Oostenryck1-0/+2
2018-09-01has-attr: add support for __has_attribute()Luc Van Oostenryck1-0/+1
2018-08-25Merge branch 'ssa' into tipLuc Van Oostenryck1-0/+4
2018-07-23big-shift: add -Wshift-count-{negative,overflow}Luc Van Oostenryck1-0/+4
2018-07-01dom: add some debugging for the dominance treeLuc Van Oostenryck1-0/+2
2018-07-01graph: add debugging for (reverse) postorder traversalLuc Van Oostenryck1-0/+2
2018-06-23cast: add support for -Wpointer-to-int-castLuc Van Oostenryck1-0/+2
2018-06-23cast: specialize casts from unsigned to pointersLuc Van Oostenryck1-0/+2
2018-06-21Merge branch 'ptrlist-cleanup' into tipLuc Van Oostenryck1-2/+2
2018-06-21ptrlist: remove ptr_list_empty()Luc Van Oostenryck1-1/+1
2018-06-21Merge branch 'ir-validate' into tipLuc Van Oostenryck1-4/+6
2018-06-21add predefines for __INT_WIDTH__ & friendsLuc Van Oostenryck1-0/+15
2018-06-16ir-validate: add framework for IR validationLuc Van Oostenryck1-0/+2
2018-06-16keep the debug flags alphabetically sortedLuc Van Oostenryck1-4/+4
2018-06-16add support for -fdiagnostic-prefix[=prefix]Luc Van Oostenryck1-3/+19
2018-06-13ptrlist: remove now unneeded add_ptr_list_notag()Luc Van Oostenryck1-1/+1
2018-06-13teach sparse about -m16Luc Van Oostenryck1-1/+1
2018-06-12Merge branches 'has-builtin' and 'builtin-predef' into tipLuc Van Oostenryck1-97/+86
2018-06-12builtin: merge declare_builtin_function() with declare_builtins()Luc Van Oostenryck1-19/+0
2018-06-12builtin: switch calling order of predefined_macros() & friendsLuc Van Oostenryck1-2/+2
2018-06-08builtin: consolidate predefined_macros()Luc Van Oostenryck1-56/+56
2018-06-08builtin: directly predefine builtin macrosLuc Van Oostenryck1-38/+45
2018-06-08builtin: add support for __has_builtin()Luc Van Oostenryck1-0/+1
2018-06-04dyn-macro: add real support for __BASE_FILE__Luc Van Oostenryck1-3/+3
2018-06-01avoid multiple error message after parsing errorLuc Van Oostenryck1-1/+8
2018-05-26add helper for new parsing errors: unexpected()Luc Van Oostenryck1-1/+16
2018-05-21Merge branch 'doc-sphinx' into tipLuc Van Oostenryck1-0/+1
2018-05-21api: move evaluate interface to its own header fileLuc Van Oostenryck1-0/+1
2018-05-05Merge branches 'no-path-max', 'vcompound' and 'build-x32' into tipLuc Van Oostenryck1-6/+23
2018-05-04sparse: option to print compound global data symbol infoRandy Dunlap1-0/+2
2018-05-01use also __x86_64 when __x86_64__ is usedLuc Van Oostenryck1-2/+3
2018-05-01add a flag -mx32 ILP32 env on 64 bit archsLuc Van Oostenryck1-0/+12
2018-05-01use an enum for ARCH_LP32 & friendsLuc Van Oostenryck1-3/+5
2018-04-30fix alignment of 64 bit integers on LLP64Luc Van Oostenryck1-1/+1
2018-04-30default to LP64 for all and only for 64 bit ABIsLuc Van Oostenryck1-1/+1
2018-04-11sparse: add -Wpointer-arith flag to toggle sizeof(void) warningsJoey Pabalinas1-0/+2
2018-02-24rename variable 'optimize' to 'optimize_level'Luc Van Oostenryck1-3/+3
2018-02-17builtin: make builtins more builtinLuc Van Oostenryck1-155/+5
2018-02-17add __builtin functions for isinf_sign, isfinite and isnanLogan Gunthorpe1-0/+3
2018-02-15By default disable the warning flag '-Wunknown-attribute'Luc Van Oostenryck1-1/+1
2018-01-26lib.c: early return from handle_onoff_switch()Randy Dunlap1-0/+1
2018-01-07cleanup: make some functions staticLuc Van Oostenryck1-3/+3
2018-01-07Merge branches 'fmax-warnings', 'funsigned-char', 'testcase-fix-missing-retur...Luc Van Oostenryck1-3/+16
2018-01-03teach sparse about '-fmax-warnings'Luc Van Oostenryck1-3/+11
2017-12-29add support for '-f[no-][un]signed-char'Luc Van Oostenryck1-0/+3
2017-12-29let handle_switches() also handle reverse logicLuc Van Oostenryck1-0/+2
2017-12-16fix: spaces in macro definition on the command lineLuc Van Oostenryck1-1/+1
2017-12-13fix: accept 'sparse -D M...'Luc Van Oostenryck1-4/+8
2017-11-13Merge branch 'dump-ir' into tipLuc Van Oostenryck1-61/+185
2017-11-13dump-ir: make it more flexibleLuc Van Oostenryck1-8/+62
2017-11-13dump-ir: rename -fdump-linearize to -fdump-irLuc Van Oostenryck1-4/+4
2017-11-12dump-ir: allow to specify the passes to execute via cli's optionsLuc Van Oostenryck1-0/+34
2017-11-11Merge branches 'volatile-loads-are-side-effects', 'fix-volatile-simplificatio...Luc Van Oostenryck1-0/+1
2017-11-11flush stdout when warningLuc Van Oostenryck1-0/+1
2017-09-18fix: missing evaluate with '-include'Luc Van Oostenryck1-0/+14
2017-09-14option: handle switches by tableLuc Van Oostenryck1-43/+48
2017-09-14option: constify match_option()Luc Van Oostenryck1-7/+7
2017-09-14option: use OPTION_NUMERIC() for handle_switch_fmemcpy_max_count()Luc Van Oostenryck1-17/+5
2017-09-14option: add support for '-<some-option>=unlimited'Luc Van Oostenryck1-0/+4
2017-09-14option: add support for options with 'zero is infinity'Luc Van Oostenryck1-1/+6
2017-09-14option: extract OPTION_NUMERIC() from handle_switch_fmemcpy_max_count()Luc Van Oostenryck1-0/+19
2017-09-14option: let handle_simple_switch() handle an array of flagsLuc Van Oostenryck1-9/+18
2017-09-14option: rename 'struct warning' to 'struct flag'Luc Van Oostenryck1-5/+5
2017-09-14option: add helper to parse/match command line optionsLuc Van Oostenryck1-14/+20
2017-08-28Merge remote-tracking branch 'luc/constexpr-v4' into masterChristopher Li1-0/+2
2017-08-09lib: workaround the 'redeclared with different type' errorsRamsay Jones1-0/+2
2017-08-09Adding _Pragma()Christopher Li1-0/+1
2017-06-21teach sparse about __BYTE_ORDER__ & __ORDER_{BIG,LITTLE}_ENDIAN__Luc Van Oostenryck1-0/+6
2017-06-21teach sparse about __{BIG,LITTLE}_ENDIAN__Luc Van Oostenryck1-0/+3
2017-06-21teach sparse about -m{big,little}-endianLuc Van Oostenryck1-1/+14
2017-06-15add support for -fmemcpy-max-countLuc Van Oostenryck1-0/+18
2017-06-15add support for -Wmemcpy-max-countLuc Van Oostenryck1-0/+2
2017-06-15keep the warnings table alphabetically sortedLuc Van Oostenryck1-1/+1
2017-06-14Merge branches 'quiets-bool-cast-restricted-v3', 'error-vs-warnings-v2', 'imp...Luc Van Oostenryck1-17/+125
2017-06-13Add more declarations for more builtin functionsLuc Van Oostenryck1-0/+44
2017-06-10finer control over error vs. warningsLuc Van Oostenryck1-2/+5
2017-05-19Merge branches 'dump-macros-v2', 'fix-predefined-size', 'fix-bool-context', '...v0.5.1-rc1Luc Van Oostenryck1-15/+76
2017-05-19let -dD report macro definitionsLuc Van Oostenryck1-0/+5
2017-05-19teach sparse how to handle -dD flagLuc Van Oostenryck1-0/+16
2017-05-19fix definition of __SCHAR_MAX__ & friendsLuc Van Oostenryck1-7/+10
2017-05-19avoid to redefine __INT_MAX__ and friendsLuc Van Oostenryck1-4/+0
2017-05-19add support for a new flag: -fdump-linearize[=only]Luc Van Oostenryck1-0/+22
2017-05-15teach sparse how to handle '-fmem-report'Luc Van Oostenryck1-4/+4
2017-05-15add helper handle_simple_switch()Luc Van Oostenryck1-0/+19
2017-04-30Merge branches 'sent/float-expand-v2', 'sent/fix-kill-ttsb-v2', 'sent/fix-con...Luc Van Oostenryck1-0/+2
2017-03-31constexpr: check static storage duration objects' intializers' constnessNicolai Stange1-0/+2
2017-03-27predefine __SIZEOF_INT__ & friendsLuc Van Oostenryck1-0/+10
2017-03-27predefine __INT_MAX__ and friendsLuc Van Oostenryck1-5/+18
2017-03-22teach sparse about -WaddressLuc Van Oostenryck1-0/+2
2017-03-06add an optional validation method to external_declaration()Luc Van Oostenryck1-1/+1
2017-03-04ignore whole-range overlapping initializerLuc Van Oostenryck1-0/+1
2017-03-04allow to warn on all overlapping initializersLuc Van Oostenryck1-0/+2
2017-03-04use option: '-Woverride-init'Luc Van Oostenryck1-0/+2
2017-03-04make -Wbitwise operational againLuc Van Oostenryck1-1/+1
2017-02-13expand __builtin_bswap*() with constant argsLuc Van Oostenryck1-32/+3
2017-02-13add support for LLP64 archLuc Van Oostenryck1-7/+27
2017-02-13add warning option '-Wtautological-compare'Luc Van Oostenryck1-0/+2
2017-02-13define __LONG_MAX__ & __SIZEOF_POINTER__Luc Van Oostenryck1-0/+6
2017-02-13add an helper for common predefined macrosLuc Van Oostenryck1-1/+6
2017-02-13define __LP64__ & _LP64 if arch_m64 is enabledLuc Van Oostenryck1-0/+2
2017-02-13C11: teach sparse about '--std={c11,gnu11}'Luc Van Oostenryck1-0/+21
2017-02-13implement constant-folding in __builtin_bswap*()Johannes Berg1-3/+32
2017-02-13Warn on unknown attributes instead of throwing errorsLuc Van Oostenryck1-0/+2
2017-01-27sparse: update __builtin_object_size() prototypeLance Richardson1-1/+1
2015-03-13Add a define for __builtin_ms_va_copy()Michael Stefaniuc1-0/+1
2015-03-13Add the __builtin functions needed for INFINITY and nan().Michael Stefaniuc1-0/+11
2014-10-10Add support for multiarch system header filesRamsay Jones1-1/+17
2014-10-10don't call isdigit/tolower with a char argumentRamsay Jones1-2/+2
2014-10-10rename -Werror to -Wsparse-errorChristopher Li1-4/+4
2014-09-28sparse: Make -Werror turn warnigns into errorsThomas Graf1-20/+29
2014-06-29Minor clean up for option handlingChristopher Li1-20/+24
2014-06-28lib.c: skip --param parametersAndy Shevchenko1-2/+22
2014-02-27sparse: Allow override of sizeof(bool) warningJoe Perches1-0/+2
2014-01-29Define __CHAR_BIT__Emilio G. Cota1-0/+1
2013-12-21sparse: add built-in atomic memory access identifiersKim Phillips1-2/+19
2013-11-29sparse: Relicense under the MIT licenseFranz Schrober1-1/+17
2013-07-25sparse: add __builtin_va_arg_pack() and __builtin_va_arg_pack_len()Jeff Layton1-0/+2
2013-04-21Define __SIZEOF_POINTER__Josh Triplett1-0/+1
2013-04-19Warn about initialization of a char array with a too long constant C string.Masatake YAMATO1-0/+2
2013-04-08Proper variable length array warningChristopher Li1-2/+4
2013-03-06There's no current way to know the versionJoe Perches1-0/+25
2013-02-19sparse: add built-in byte swap identifiersKim Phillips1-0/+5
2013-02-13Merge git://git.kernel.org/pub/scm/linux/kernel/git/viro/sparse into margeChristopher Li1-19/+6
2013-02-12fix handling of -includeAl Viro1-19/+6
2013-02-10remove weak define x86_64Christopher Li1-2/+0
2012-03-23Adding default for m64/m32 handleChristopher Li1-2/+41
2012-03-23Add __builtin_stpcpy, __sync_synchronize, __sync_bool_compare_and_swap to dec...Frederic Crozat1-0/+3
2011-05-31Remove set but not used variableChristopher Li1-3/+0
2011-01-03use ARRAY_SIZE() when possibleNamhyung Kim1-4/+4
2010-10-08parser: add Blackfin gcc infoMike Frysinger1-0/+9
2010-07-19skip may_alias and declare builtin_fabsMorten Welinder1-0/+1
2010-07-13parser: define __builtin_unreachableJiri Slaby1-0/+1
2010-03-28New attribute designated_init: mark a struct as requiring designated initJosh Triplett1-0/+2
2010-03-28Rename -Wall to Wsparse-all, so it doesn't get turned on unintentionallyJosh Triplett1-1/+1
2010-03-28Handle __builtin_ms_va_list.Michael Stefaniuc1-0/+2
2009-08-21sparse: Add GCC pre-defined macros for user-spacev0.4.2-rc1Pekka Enberg1-0/+8
2009-08-03Add c{l,t}z{,l,ll}, ffsl{,l}, popcountll and floating point comparison builtins.Blue Swirl1-3/+22
2009-07-18Turn off '-Wtransparent-union' by defaultLinus Torvalds1-1/+1
2009-07-17refactor handle_switch_fHannes Eder1-11/+20
2009-01-02Add -ftabstop=WIDTHHannes Eder1-1/+14
2008-12-18Rename dirafter to idirafter.Alexey Zaytsev1-10/+5
2008-12-18Set gcc include path at runtime.Alexey Zaytsev1-3/+20
2008-12-18Handle missing argument to -D.Alexey Zaytsev1-0/+4
2008-12-18Mark handle_switch as static and don't export it from lib.hAlexey Zaytsev1-1/+1
2008-12-18Handle a terminal -o option properly.Alexey Zaytsev1-4/+7
2008-12-18Remove pre_bufferChristopher Li1-9/+14
2008-04-21Add -Wno-declaration-after-statementGeoff Johnstone1-0/+24
2008-04-05Add builtin functions for use with __FORTIFY_SOURCEGeoff Johnstone1-0/+16
2008-04-05Add support for GCC's -std=... and -ansi command line options.Geoff Johnstone1-0/+75
2007-09-16Added a prototype for mempcpy().Tilman Sauerbeck1-0/+1
2007-08-31Rename Wundefined_preprocessor to Wundef to match the command-line argumentJosh Triplett1-2/+2
2007-08-31Rename Wcast_to_address_space to Wcast_to_as to match the command-line argumentJosh Triplett1-2/+2
2007-08-30Sort warning options in lib.c and lib.hJosh Triplett1-26/+26
2007-08-22add __builtin_labs()Randy Dunlap1-0/+1
2007-07-28[PATCH] add __builtin_strlen()Al Viro1-0/+1
2007-07-27Turn off -Wdo-while by default.Josh Triplett1-1/+1
2007-07-13add sparse_keep_tokens api to lib.hRob Taylor1-1/+12
2007-07-08make size_t better approximate the realityAl Viro1-1/+9
2007-06-26[PATCH] implement __builtin_offsetof()Al Viro1-1/+0
2007-06-25[PATCH] warn on return <void expression>;Al Viro1-0/+2
2007-06-18[PATCH] rewrite of initializer handlingAl Viro1-0/+2
2007-06-13Fix -E handlingAlexey Dobriyan1-1/+2
2007-06-13Turn on -Wdecl by default.Josh Triplett1-1/+1
2007-05-22Add __builtin_strcat and __builtin_strncat.Josh Triplett1-0/+2
2007-05-22Add -Wno-non-pointer-null to turn off warning about using a plain integer as ...Josh Triplett1-0/+2
2007-05-22Add -Wno-old-initializer to turn off warnings about non-C99 struct initializersJosh Triplett1-0/+2
2007-05-20__DATE__ & __TIME expansionDamien Lespiau1-2/+0