Summary: | app-shells/tcsh-6.18.01-r2: calloc helper optimized into recursive calloc call with gcc-5.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | David Kredba <kredba> |
Component: | [OLD] GCC Porting | Assignee: | Fabian Groffen <grobian> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | rhill |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://gcc.gnu.org/ml/gcc-help/2015-03/msg00112.html | ||
See Also: | http://bugs.debian.org/778142 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 536984 | ||
Attachments: |
Build.log
Config.log tcsh-6.18.01-gcc5.patch |
Description
David Kredba
2015-03-31 18:56:53 UTC
-fno-builtin isn't the right answer. tcsh shouldn't be defining calloc at all. Linux should have SYSMALLOC defined, so you would end up using scalloc (wrapper to system calloc) instead. Is __GLIBC__ defined in your case? (In reply to Fabian Groffen from comment #2) > Linux should have SYSMALLOC defined, so you would end up using scalloc > (wrapper to system calloc) instead. Is __GLIBC__ defined in your case? I not found any "glibc" nor "GLIBC" in ./config.log and Makefile. Environment file states ELIBC=glibc I will attach build.log up to compile phase, including it + config.log. Created attachment 400626 [details]
Build.log
Created attachment 400628 [details]
Config.log
(In reply to Fabian Groffen from comment #2) > Linux should have SYSMALLOC defined, so you would end up using scalloc > (wrapper to system calloc) instead. Is __GLIBC__ defined in your case? gcc doesn't define __GLIBC__ on linux. you need to include <features.h> for that. Created attachment 406286 [details, diff] tcsh-6.18.01-gcc5.patch Upstream discussion: http://mx.gw.com/pipermail/tcsh-bugs/2015-May/000930.html Upstream commit: https://github.com/tcsh-org/tcsh/commit/624d3aebb6e6afadb4f35e894d11b5ebe290cd87 That commit doesn't fix the problem though; k needs to be made volatile for it to work. feel free to apply/commit/push Fixed in tcsh-6.18.01-r3. |