aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright to The Linux FoundationDuy Truong2013-03-151-2/+2
| | | | | Change-Id: Ibead64ce2e901dede2ddd1b86088b88f2350ce92 Signed-off-by: Duy Truong <dtruong@codeaurora.org>
* scripts: gcc-wrapper: Add an allowed warning for alignment.cSridhar Parasuram2013-02-201-50/+2
| | | | | | | | | | | | | | | | kernel/arch/arm/mm/alignment.c:327:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized] | error, forbidden warning: alignment.c:327 | make[2]: *** [arch/arm/mm/alignment.o] Error 1 Change-Id: Iadba4720a38997682036527a89b5adeb52ea6119 Signed-off-by: Sridhar Parasuram <sridhar@codeaurora.org> (cherry picked from commit 32cd2e999c18bf7fa2c5722c90c9bdf6dea60aba) Conflicts: scripts/gcc-wrapper.py
* scripts/gcc-wrapper: Squash mmc changes to gcc-wrapper in 1 commitSeungwon Jeon2013-02-201-2/+2
| | | | Change-Id: I147e19fa51c215cba1f5c508df5d2f68d2ae5046
* scripts: gcc-wrapper: Add an allowed warning for block.cRohit Vaswani2013-02-201-0/+2
| | | | | | | | | | | | | | | | | Commit f2b3f49ede3be96e11b60880c22a768328ce4d2f added a warning from Open Emdedded's gcc-4.6.3 compiler. | kernel/drivers/mmc/card/block.c: In function 'mmc_blk_issue_rq': | kernel/drivers/mmc/card/block.c:836:18: | warning: 'arg' may be used uninitialized in this function | [-Wuninitialized] error, forbidden warning: block.c:836 | kernel/drivers/mmc/card/block.c:835:6: warning: 'nr' may be used | uninitialized in this function [-Wuninitialized] | error, forbidden warning: block.c:835 Change-Id: I05a45033e5dae8b126cbbba89188d84244485afd Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org> (cherry picked from commit 3d2c28943e880d6a0e7619c4234d8a52ccf8f9e1)
* scripts: gcc-wrapper: Add exceptions for netfilter failures with gcc-4.6.3Rohit Vaswani2013-02-201-0/+26
| | | | | | | | | Compiling the kernel with gcc-4.6.3 generates multiple forbidden warnings for netfilter. Adding them to the allowed warnings list. Change-Id: I7214d8c1bb59c99e2422eaac2a820fb43cf62b1e Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org> (cherry picked from commit 660d3ffb16a8ee7c5693d745a8588c991035c8e7)
* scripts: gcc-wrapper: Add exceptions for failures with gcc-4.6.3Rohit Vaswani2013-02-201-2/+4
| | | | | | | | | | | | | | | | | | | | | | Compiling the kernel with gcc-4.6.3 generates two new forbidden warnings. Adding them to the allowed warnings list. Warning 1: kernel/arch/arm/mm/alignment.c:298:15: warning: 'offset.un' may be used uninitialized in this function [-Wuninitialized] Warning 2: kernel/net/sched/sch_generic.c:678:2: warning: the comparison will always evaluate as 'true' for the address of 'noop_qdisc' will never be NULL [-Waddress] Change-Id: Ib559420337ac4c2d25b55eb80e8da3c2221b2f75 Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org> (cherry picked from commit 116bcf08bd2c078e809a2d1e53fe901cf6f65502) Conflicts: scripts/gcc-wrapper.py
* gcc-wrapper: print friendlier errors.Gregory Bean2013-02-201-5/+14
| | | | | | | | | | | Print something friendlier than a stack trace for OSErrors, and something helpful for 'file not found' errors. This prevents flummoxing people who build the kernel without the compiler in their path, which is far and away the most common error. Change-Id: If1a3dfdd0868abc8531a06a61f2f374b54c64cd0 Signed-off-by: Gregory Bean <gbean@codeaurora.org> (cherry picked from commit e1f91f8e6b38594caa30bf82c586674b83e9c0b4)
* gcc-wrapper: Add warning for dir.c:43Michael Bohan2013-02-201-0/+1
| | | | | | | | | Change bde4ec0140fadc028d22c8959347fb8d0f501b84 consolidated warnings generated from several toolchains, but forgot this one. Change-Id: I4ab67610962572371cefedace30bb2e89b818c12 Signed-off-by: Michael Bohan <mbohan@codeaurora.org> (cherry picked from commit c630d473862bfaad8e3a1ab7e7a5f454d49087a7)
* gcc-wrapper: fix forbidden-errors list.Gregory Bean2013-02-201-27/+17
| | | | | | | | | | Change-Id: I161afde698155db38d2b35f8fdf5b7f9e5eb5276 Signed-off-by: Gregory Bean <gbean@codeaurora.org> (cherry picked from commit bde4ec0140fadc028d22c8959347fb8d0f501b84) Conflicts: scripts/gcc-wrapper.py
* scripts: Use wrapper to check compiler warningsDavid Brown2013-02-201-0/+116
Rather than telling gcc to make warnings as errors, and then hunting down make rules to disable this, leave them as warnings, but invoke gcc through a wrapper that checks the warnings against a whitelist. The initial whitelist comes from the warnings in the current build, all of which have been allowed through Make overrides. Change-Id: Ifc9952e03d1a5dbcd90819dc7aa0ec7e50328e20 Signed-off-by: David Brown <davidb@codeaurora.org> (cherry picked from commit d21ced2f0dda815cac69c693cd81e2e75d8f0007)