https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90407
Bug ID: 90407 Summary: Compilation error of a C function generated from Simulink Product: gcc Version: 4.9.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: laurent.muller at altran dot com Target Milestone: --- Created attachment 46323 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46323&action=edit Preprocessed fille During build process, compilation of a C file generated from Simulink model generate an error. Sometimes, after modification of the model, compilation could be finalized without error. Unfortunatly, it is not possible to link easily error message with C code. Command line is: "C:\Program Files (x86)\Nsi\CrossToolsMPC5748G/Cross_Tools/powerpc-eabivle-4_9/bin/powerpc-eabivle-gcc" -c -Dregister_architecture=e200 -Dregister_vendor=Freescale -Dregister_chip=MPC5748G -DMPC574xG -DSTART_FROM_FLASH -DTURN_ON_CPU0 -I"C:\Program Files (x86)\Nsi\CrossToolsMPC5748G/e200_ewl2/EWL_C/include" -I"C:\Program Files (x86)\Nsi\CrossToolsMPC5748G/e200_ewl2/EWL_C/include/pa" -O2 -DUSE_RTMODEL -DRT -DMODEL=DB35_SOFT_BANC_USINE_V10c_NVH -DMUXLAB4 -DMT=0 -g3 -Wall -c -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -mcpu=e200z4 -specs=ewl_c.specs -mbig -mvle -mregnames -mhard-float --sysroot="C:\Program Files (x86)\Nsi\CrossToolsMPC5748G/e200_ewl2" -save-temps -Isrc -Isrc/app -Isrc/drv -Isrc/os -I.. -I"C:\TOOLS\MATLAB\R2016b\simulink\include\sf_runtime" -I"C:\TOOLS\NSI\MUXLINK410\work\DB35_SOFT_BANC_USINE_V10c_NVH_nsi_rtw" -I"C:\TOOLS\NSI\MUXLINK410\work" -I../slprj/nsi_mpc/_sharedutils -I"C:\TOOLS\MATLAB\R2016b/extern/include" -I"C:\TOOLS\MATLAB\R2016b/simulink/include" -I"C:\TOOLS\MATLAB\R2016b/rtw/c/src" "src/GLOBAL_CTRL_PEB.c" -o obj/GLOBAL_CTRL_PEB.o Error message is: src/GLOBAL_CTRL_PEB.c:5556:1: error: could not split insn } ^ (insn 2247 2245 2248 (parallel [ (set (reg:CC 68 %cr0 [1873]) (compare:CC (and:SI (reg:SI 9 %r9 [orig:1872 DB35_SOFT_BANC_USINE_V10c_NVH_B+1220 ] [1872]) (const_int 16776960 [0xffff00])) (const_int 0 [0]))) (clobber (reg:SI 10 %r10)) (clobber (scratch:CC)) ]) src/GLOBAL_CTRL_PEB.c:2638 859 {*andsi3_internal2_mc} (expr_list:REG_DEAD (reg:SI 9 %r9 [orig:1872 DB35_SOFT_BANC_USINE_V10c_NVH_B+1220 ] [1872]) (expr_list:REG_UNUSED (reg:SI 10 %r10) (nil)))) src/GLOBAL_CTRL_PEB.c:5556:1: internal compiler error: in final_scan_insn, at final.c:2952