This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/40268] New: continued build failures from PR39791 and PR40061 fixes


gcc-4.3-20090524 fails to build for target=alpha-unknown-linux:

/tmp/gcc-4.3-20090524/gcc/dwarf2out.c: In function 'add_subscript_info':
/tmp/gcc-4.3-20090524/gcc/dwarf2out.c:11328: error: break statement not within
loop or switch

gcc-4.3.3 and earlier build fine so this is a regression.

The problem is that the PR39791 fix put a break statement in a block which is a
loop body only when !MIPS_DEBUGGING_INFO. This and an undeclared variable issue
were reported as PR40061, but the fix for PR40061 only fixed the undeclared
variable issue, not the invalid break statement issue.

The break issue could be fixed by turning this block into a loop body also in
the !MIPS_DEBUGGING_INFO case, but that looks like it will require more #ifdefs
and local variables. So I suggest to just #ifdef the break statement. I'm
attaching patch which does just that.


-- 
           Summary: continued build failures from PR39791 and PR40061 fixes
           Product: gcc
           Version: 4.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mikpe at it dot uu dot se
GCC target triplet: alpha-unknown-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40268


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]