[coreboot] #188: gcc-4.7 miscompiles coreboot on -Os, -O1, -O2, -O3 in 3 different ways

coreboot svn at coreboot.org
Sun Oct 14 14:14:00 CEST 2012


#188: gcc-4.7 miscompiles coreboot on -Os, -O1,-O2,-O3 in 3 different ways
-----------------------------+----------------------------------
    Reporter:  mustrumr97@…  |         Owner:  stepan@…
        Type:  defect        |        Status:  new
    Priority:  major         |     Milestone:
   Component:  coreboot      |      Keywords:
Dependencies:                |  Patch Status:  there is no patch
-----------------------------+----------------------------------
 Coreboot 1b97bdc42a91746906b99a37ad15ba0a0039e4a3
 Has been doing the same for at least 3 months
 On -O1:
 After printing
 {{{
 Adjust low_table_end from 0x00000528 to 0x00001000
 Adjust rom_table_end from 0x07fe0400 to 0x07ff0000
 Adding high table area
 coreboot memory table:
 }}}
 {{{
 #0  unpack_lb64 (value=...) at src/include/boot/coreboot_tables.h:54
 #1  lb_dump_memory_ranges (mem=0x7fe0418) at
 src/arch/x86/boot/coreboot_table.c:523
 #2  write_coreboot_table (low_table_start=low_table_start at entry=0,
 low_table_end=<optimized out>, low_table_end at entry=1280,
     rom_table_start=134086656, rom_table_end=<optimized out>,
 rom_table_end at entry=134087680) at src/arch/x86/boot/coreboot_table.c:669
 #3  0x00109004 in write_tables () at src/arch/x86/boot/tables.c:214
 #4  0x00100999 in hardwaremain (boot_complete=0) at
 src/boot/hardwaremain.c:146
 #5  0x0010009c in _text () at src/arch/x86/lib/c_start.S:89
 }}}


 On -O2 and -Os
 After printing
 {{{
 Adjust low_table_end from 0x00000528 to 0x00001000
 Adjust rom_table_end from 0x07fe0400 to 0x07ff0000
 }}}
 same stack trace


 On -O3 qemu resets after prining
 {{{
 coreboot-4.0-2820-g1b97bdc-dirty Sun Oct 14 15:07:41 EEST 2012 starting...
 Loading image.
 CBFS: Looking for 'fallback/coreboot_ram'
 CBFS: found.
 CBFS: loading stage fallback/coreboot_ram @ 0x100000 (180224 bytes), entry
 @ 0x100000
 }}}

-- 
Ticket URL: <https://tracker.coreboot.org/trac/coreboot/ticket/188>
coreboot <http://www.coreboot.org/>



More information about the coreboot mailing list