[#6276] builtins-64.c execution test fail when test gcc through jtag in 2010r1-rc3

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6276] builtins-64.c execution test fail when test gcc through jtag in 2010r1-rc3

Submitted By: Vivi Li

Open Date

2010-09-27 04:11:40     Close Date

2011-01-20 02:28:54


Medium High     Assignee:

Vivi Li

Stuart Henderson


N/A     Silicon Revision:


Fixed     Fixed In Release:




Host Operating System:

toolchain rev.:

2010r1-rc3     kernel rev.:


Closed     Found In Release:


Is this bug repeatable?:


Summary: builtins-64.c execution test fail when test gcc through jtag in 2010r1-rc3



builtins-64.c execution test fail when test gcc through jtag in 2010r1-rc3.

I don't see this failure in 2010r1-rc2.



spawn bfin-elf-gcc /home/test/work/cruise/checkouts/toolchain/gcc-4.3/gcc/testsuite/gcc.dg/builtins-64.c -ansi -pedantic-errors -DSTACK_SIZE=4096 -DNO_TRAMPOLINES -fno-show-column -mcpu=bf561-0.5 -lm -o ./builtins-64.exe^M

PASS: gcc.dg/builtins-64.c (test for excess errors)

delete breakpoints^M

Delete all breakpoints? (y or n) y^M

(gdb) info breakpoints^M

No breakpoints or watchpoints.^M

(gdb) file ./builtins-64.exe^M

Load new symbol table from "/home/test/work/cruise/temp/regtest_build4.3/gcc_build/testsuite/builtins-64.exe"? (y or n) y^M

Reading symbols from /home/test/work/cruise/temp/regtest_build4.3/gcc_build/testsuite/builtins-64.exe...done.^M

(gdb) target remote :2000^M

Remote debugging using :2000^M

[New Thread 1]^M

[New Thread 2]^M

0xffa01090 in ?? ()^M

(gdb) source /home/test/work/cruise/temp/regtest_build4.3/boards/gdb-init-comman ^Mds^M

(gdb) load^M

Loading section .l1.text, size 0x20 lma 0x0^M

Loading section .rodata, size 0x8 lma 0xff800000^M

Loading section .eh_frame, size 0x4 lma 0xff800008^M

Loading section .ctors, size 0x8 lma 0xff80000c^M

Loading section .dtors, size 0x8 lma 0xff800014^M

Loading section .jcr, size 0x4 lma 0xff80001c^M

Loading section .data, size 0x818 lma 0xff800020^M

Loading section .text, size 0xea0 lma 0xffa00000^M

Loading section .init, size 0x12 lma 0xffa00ea0^M

Loading section .fini, size 0xe lma 0xffa00eb2^M

Start address 0xffa00000, load size 5912^M

Transfer rate: 508559 bits/sec, 591 bytes/write.^M

(gdb) break _exit^M

Breakpoint 1724 at 0xffa00e64: file /usr/src/packages/BUILD/blackfin-toolchain-2010R1/gcc-4.3/libgloss/libnosys/_exit.c, line 13.^M

(gdb) break abort^M

Function "abort" not defined.^M

(gdb) jump *_start^M

Continuing at 0xffa00000.^M

target exec^M

FAIL: gcc.dg/builtins-64.c execution test





--- Stuart Henderson                                         2010-09-28 09:30:43

clear_cache_range is being placed at address 0x0.  which would make sense as the

l1_text attribute places code in .l1.text, which isn't currently handled by

bfin-common-sc.ld (have we never used it before?).  presumably we need to add an

.l1.text input section to the start of the .text output section.


  .text           :


+   *(.l1.text)

    *(.text .stub .text.* .gnu.linkonce.t.*)

    KEEP (*(.text.*personality*))

    /* .gnu.warning sections are handled specially by elf32.em.  */


  } >MEM_L1_CODE =0


--- Mike Frysinger                                           2010-09-28 10:58:43

no, i dont think we've used any L1 attributes with the bfin-elf toolchain

before.  they were originally designed for linux kernel & user space.


you'll probably have to add section info for l2/l1 data/l1 text to the sc and

mc bfin-common linker scripts.


--- Sonic Zhang                                              2010-09-29 00:05:15

I add a new RC4 targeted at Oct. 5 to toolchain 2010R1 plan. This bug should be

fixed in RC4.


--- Stuart Henderson                                         2010-10-01 06:40:50

this is fixed on the trunk and 2010R1 branch and should pass in RC4.


--- Vivi Li                                                  2010-10-13 23:58:58

OK in 2010r1-rc4.


--- Vivi Li                                                  2011-01-20 02:28:54

OK in trunk.

Close it.












File Name     File Type     File Size     Posted By

gcc_log.tar.bz2    application/x-bzip2    827006    Vivi Li