Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 528639

Summary: internal compiler error: in loc_cmp, at var-tracking.c:2433
Product: [Fedora] Fedora Reporter: Kedar Sovani <kedars>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: high    
Version: rawhideCC: jakub
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: arm9   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-09 17:37:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 245418    
Attachments:
Description Flags
auto-generated pre-compiled sources none

Description Kedar Sovani 2009-10-13 07:33:32 UTC
Host/Build/Target Triple: armv5tel-redhat-linux-gnueabi

with gcc version: gcc-4.4.1-21

Complete build logs:
http://arm.koji.fedoraproject.org/koji/getfile?taskID=73218&name=build.log

Initially I thought this to be the same as
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41252. But the gcc sources already
had the patch indicated in that bug
(http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151437)

Comment 1 Kedar Sovani 2009-10-13 07:34:22 UTC
Created attachment 364554 [details]
auto-generated pre-compiled sources

auto-generated pre-compiled sources

Comment 2 Jakub Jelinek 2009-10-19 10:44:55 UTC
Can't reproduce this with redhat/gcc-4_4-branch and a cross compiler.  So, please try gcc-4.4.2-4.fc12.

Comment 3 Kedar Sovani 2009-10-21 10:11:12 UTC
Re-opening this bug. It is still seen with gcc-4.4.2-5.fc12

Failure build log:
http://arm.koji.fedoraproject.org/koji/getfile?taskID=73937&name=build.log&offset=-2000

Would it be rather better to reopen this bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41679

Although the bug is in the Fedora branch, some gcc-arm folks might at least *suggest* some fixes/tweaks etc. over there

Comment 4 Jakub Jelinek 2009-11-09 16:35:27 UTC
Sorry, still can't reproduce, so there is hardly anything I can do about it.

You could try to build just first stage of gcc on arm (configure with --disable-bootstrap in addition to the options gcc.spec passes to configure), see if even the first stage reproduces it.  If not, this might be miscompilation of gcc itself.

Comment 5 Jakub Jelinek 2009-11-09 16:47:25 UTC
Actually, after hand editting auto-host.h quite a bit to more match the native one and what I guess arm gas provides I've managed to reproduce it.  Looking into it.

Comment 6 Jakub Jelinek 2009-11-09 17:11:29 UTC
Smaller testcase:

/* { dg-do compile } */
/* { dg-options "-march=armv5te -g -O2" } */

extern int a;
extern char b;
extern int foo (void);

void
test (void)
{
  int c;
  b = foo () ? '~' : '\0';
  while ((c = foo ()))
    if (c == '7')
      a = 0;
}