2017-04-19 14:43 GMT+04:00 Georg-Johann Lay <a...@gjlay.de>: > This PR is about an incorrect warning for variables in progmem > without initializer. If the variable is just an alias like in > and with -fmerge-all-constants > > const __flash char string1[] = "same string"; > const __flash char string2[] = "same string"; > > this will result in an incorrect > > warning: uninitialized variable 'string2' put into program memory area > [-Wuninitialized] > > Hence, this patch tests whether the decl is just an alias. > > Ok to apply? > > Johann > > PR target/80462 > * config/avr/avr.c (tree.h): Include it. > (cgraph.h): Include it. > (avr_encode_section_info): Don't warn for uninitialized progmem > variable if it's just an alias. >
Please apply.