| Summary: | wrong code generated for _itoa() from glibc 2.15 | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dan Horák <dan> | ||||||
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||||
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | rawhide | CC: | brueckner, jakub | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | s390 | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | gcc-4.7.0-0.10.fc17 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2012-01-27 10:40:32 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
Dan Horák
2012-01-24 11:32:35 UTC
Created attachment 557198 [details]
disassembly of _itoa() from glibc-2.15-1
Indeed,
char * _itoa (unsigned long long, char *, unsigned, int);
char buf[64];
int
main (void)
{
char *p = _itoa (4LL, buf, 10, 0);
return 0;
}
linked statically against 2.15-1.s390 libc.a works, and against 2.15-2.s390 libc.a segfaults.
Should be fixed in gcc-4.7.0-0.10.fc17, but you need to remove the miscompiled glibc from the buildroots first, then build this gcc, then rebuild glibc. |