aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib.c
AgeCommit message (Expand)AuthorFilesLines
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
2007-04-20Declare do_error staticJosh Triplett1-1/+1
2007-04-20Remove unused variable "include" from lib.cJosh Triplett1-1/+0
2007-04-20Fix comment to reference #weak_define rather than #ifndef, matching codeJosh Triplett1-1/+1
2007-03-09Fix typos in commentsJosh Triplett1-3/+3
2007-02-28Disable liveness "dead" instruction by default.Christopher Li1-1/+3
2007-02-27Introduce expression_errorChristopher Li1-4/+18
2007-02-25Adding debug option for showing the linearized instruction.Christopher Li1-13/+48
2007-01-27Coding style fix: in a pointer type, * goes with the name, not the type.Josh Triplett1-1/+1
2007-01-27Allow more than one command line include file.Christopher Li1-20/+25
2006-12-05Support -Wall flagPavel Roskin1-3/+27
2006-12-04cleanup write to argument array hackChristopher Li1-22/+6
2006-12-04delay removing file scopeChristopher Li1-2/+1
2006-11-06Add support for __builtin_strpbrk()Pavel Roskin1-0/+1
2006-10-24added a bunch of gcc builtinsAl Viro1-0/+10
2006-10-16Merge branch 'Wcontext-default' into stagingJosh Triplett1-1/+1
2006-10-16merge branch 'more-warning-flags' into staging and fix conflictsJosh Triplett1-0/+2
2006-10-01Add warning message for naked do-whileLinus Torvalds1-0/+2
2006-09-14Turn on -Wcontext by defaultJosh Triplett1-1/+1
2006-09-14Add -Wno-uninitializedJosh Triplett1-0/+2
2006-08-29[PATCH] Add -Wno-cast-truncateJosh Triplett1-0/+2
2006-08-29[PATCH] Add -Wno-enum-mismatchJosh Triplett1-0/+2
2006-08-29[PATCH] Add -Wno-address-spaceJosh Triplett1-0/+2
2006-08-29[PATCH] sparse_error() should not silence info() after sparse_error()sJosh Triplett1-3/+10
2006-08-29[PATCH] Add support for GCC's __builtin_va_copyJosh Triplett1-0/+1
2006-08-29[PATCH] Add support for GCC's __builtin_extract_return_addr function.Josh Triplett1-0/+1
2006-07-31First cut at something that approaches a sane -WshadowLinus Torvalds1-0/+2
2005-12-20[PATCH] introduce __sparse() functionOleg Nesterov1-2/+9
2005-11-25[PATCH] Made __GNUC__ et.al. weak defines, so that we could override them wit...Al Viro1-3/+3
2005-11-22[PATCH] new flag - Wone-bit-signed-bitfieldAl Viro1-0/+2
2005-11-22[PATCH] new flag - -WdeclAl Viro1-0/+2
2005-11-22[PATCH] missing builtin - memcmp()Al Viro1-0/+1
2005-11-16Re-name "error()" function to "sparse_error()"Linus Torvalds1-3/+3
2005-11-02Handle symbols from "-include" file tooLinus Torvalds1-5/+7
2005-09-24[PATCH] handle -G x switch for mipsAtsushi Nemoto1-0/+9
2005-09-22[PATCH] replaced warnings with errors.Mitesh Shah1-3/+5
2005-09-15Add various declarations for more builtin functionsLinus Torvalds1-1/+10
2005-09-15Make sure that when we define __OPTIMIZE[_SIZE]_ we define it to somethingLinus Torvalds1-2/+2
2005-09-14[PATCH] add support for -imacrosSam Ravnborg1-0/+9
2005-09-10[PATCH] sparse: add __GNUC_PATCHLEVEL__Alexey Dobriyan1-0/+3
2005-09-09[PATCH] More address space checkingviro@ZenIV.linux.org.uk1-0/+2
2005-08-15Add __OPTIMIZE[_SIZE]__ predefinesLinus Torvalds1-1/+21
2005-08-03Update the calling interface to "sparse()".Linus Torvalds1-28/+40
2005-08-03Get closer to parsing multiple files correctly.Linus Torvalds1-24/+63
2005-08-02Make "sparse()" handle multiple input files on the command lineLinus Torvalds1-48/+65
2005-08-02Start work on proper scoping with multiple filesLinus Torvalds1-0/+1
2005-07-03Add "__builtin_offsetof()" to work with newer gcc'sLinus Torvalds1-0/+1
2005-06-20[PATCH] __attribute__ handling for attributes used in the userlandPeter Jones1-0/+2
2005-06-19Default to reporting the same GNU C version as the host compilerLinus Torvalds1-2/+8
2005-06-04[LIB] allow changing the gcc version in the definesArnaldo Carvalho de Melo1-2/+4
2005-04-07[PATCH] static declearChristopher Li1-14/+14
2005-04-07Move the ptrlist macros out of the sparse "lib.[ch]" files.Linus Torvalds1-212/+0
2005-04-07Shut up informational messages once we've hit the maximumLinus Torvalds1-8/+11
2005-04-07[PATCH] make include path handling gcc compatibleSam Ravnborg1-11/+13
2005-04-07[PATCH] sparse: fails to locate stdarg.hSam Ravnborg1-0/+6
2005-04-07Add option "-Wptr-subtraction-blows" to warn about expensiveLinus Torvalds1-0/+2
2005-04-07When removing/replacing pointer list entries, return the finalLinus Torvalds1-3/+6
2005-04-07Support tagged add_ptr_listLinus Torvalds1-1/+3
2005-04-07Beginning infrastructure for tagged lists.Linus Torvalds1-0/+3
2005-04-07Add "stream_name()" helper function, and use it.Linus Torvalds1-1/+1
2005-04-07Remove stat-based file identity tests.Linus Torvalds1-1/+0
2005-04-07Allow -vv as shorthand for "-v -v" aka "very verbose".Linus Torvalds1-1/+3