http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48516
Summary: internal compiler error: in insert_value_copy_on_edge, at tree-outof-ssa.c:242 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: tomm...@online.de Created attachment 23927 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23927 ci-file with function which crashes the linker Internal error appears with -flto option only In file included from :11:0: library\src\stm32f10x_adc.c: In function 'ADC_GetSoftwareStartInjectedConvCmdStatus': library\src\stm32f10x_adc.c:930:12: internal compiler error: in insert_value_copy_on_edge, at tree-outof-ssa.c:242 Please submit a full bug report, with preprocessed source if appropriate. cmd line: arm-none-eabi-g++ *.o -Wl,-cref,-u,Reset_Handler -Wl,-Map=map.map -Wl,--gc-sections -mthumb -mcpu=cortex-m3 -ffunction-sections -fdata-sections -Tstm32_flash.ld -static -flto