mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-11-04 07:12:33 +01:00 
			
		
		
		
	Generalize AVR -Werror=array-bounds workaround (#21798)
GCC 13 needs the same workaround as GCC 12. To avoid having to maintain an ever-growing list of broken versions apply the workaround wherever it can be used. If at some point a fixed version of GCC is released the workaround can be disabled for those fixed versions. See #17064
This commit is contained in:
		
							parent
							
								
									f7cf066e0f
								
							
						
					
					
						commit
						f699fde7d9
					
				@ -12,8 +12,7 @@ HEX = $(OBJCOPY) -O $(FORMAT) -R .eeprom -R .fuse -R .lock -R .signature
 | 
				
			|||||||
EEP = $(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT)
 | 
					EEP = $(OBJCOPY) -j .eeprom --set-section-flags=.eeprom="alloc,load" --change-section-lma .eeprom=0 --no-change-warnings -O $(FORMAT)
 | 
				
			||||||
BIN =
 | 
					BIN =
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
 | 
					ifeq ("$(shell echo "int main(){}" | $(CC) --param=min-pagesize=0 -x c - -o /dev/null 2>&1)", "")
 | 
				
			||||||
ifneq ($(findstring 12.,$(shell avr-gcc --version 2>/dev/null)),)
 | 
					 | 
				
			||||||
COMPILEFLAGS += --param=min-pagesize=0
 | 
					COMPILEFLAGS += --param=min-pagesize=0
 | 
				
			||||||
endif
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user