[PATCH] TIC6X/GAS: Fix array bounds compilation error

Maciej W. Rozycki macro@orcam.me.uk
Mon Oct 6 20:43:07 GMT 2025


On Thu, 7 Aug 2025, Jan Beulich wrote:

> > Fix a compilation error:
> > 
> > .../gas/config/tc-tic6x.c: In function 'tic6x_start_unwind_section':
> > .../gas/config/tc-tic6x.c:4632:17: error: offset '16' outside bounds of constant string [-Werror=array-bounds]
> >  4632 |       text_name += strlen (".gnu.linkonce.t.");
> >       |       ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > 
> > observed with GCC 10.
> 
> Same as for the IA-64 patch: The compiler clearly isn't using all information
> it has available, i.e. ...

 Committed with s/Fix/Work around/ applied as requested.  Thanks for your 
review.

  Maciej


More information about the Binutils mailing list