gcc.dg/Warray-bounds-3.c test regression

Bug #602277 reported by Andrew Stubbs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Won't Fix
Low
Unassigned

Bug Description

Linaro GCC has a test regression vs. FSF GCC:

+FAIL: gcc.dg/Warray-bounds-3.c (test for excess errors)

This is caused by an unexpected warning message and depends on the use of -funroll-loops. It is thought to be quite hard to fix.

[CodeSourcery internal ID #5156]

Loïc Minier (lool)
Changed in gcc-linaro:
importance: Undecided → Low
Revision history for this message
Andrew Stubbs (ams-codesourcery) wrote :

More infomation:

The warnings are correct. The reason it's hard to fix is that they only occur when you use -funroll-loops, so it's hard to harden the testcase against it.

The way to fix it would be to fix the compiler such that it gives consistent warning messages across all optimization levels, and then fix up the testcase to match.

Michael Hope (michaelh1)
tags: added: testsuite
Michael Hope (michaelh1)
Changed in gcc-linaro:
status: New → Confirmed
Michael Hope (michaelh1)
tags: added: regression
Revision history for this message
Viktor (vchong) wrote :

GCC version no longer supported.

Changed in gcc-linaro:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.