c/592: gcc for arm (thumb mode) Insn bug with -fpic flag

iant@palmchip.com iant@palmchip.com
Mon Oct 2 20:26:00 GMT 2000


>Number:         592
>Category:       c
>Synopsis:       gcc for arm (thumb mode) Insn bug with -fpic flag
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 02 20:26:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Ian Thompson
>Release:        2.96 20000313 (experimental)
>Organization:
>Environment:
Sparc 2 running Solaris 2.6
>Description:
{~home}: /tools/arm/ecos/H-i686-pc-linux-gnu/bin/thumb-elf-gcc -v --save-temps -c -fpic -o ian.o ../src/ian.c
Reading specs from /tools/arm/ecos/H-i686-pc-linux-gnu/lib/gcc-lib/thumb-elf/2.96/specs
gcc version 2.96 20000313 (experimental)
 /tools/arm/ecos/H-i686-pc-linux-gnu/lib/gcc-lib/thumb-elf/2.96/cpp -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -Dthumb -Dthumbelf -D__thumb -D__thumb__ -D__thumbelf__ -D__thumb -D__thumb -D__thumbelf -Acpu(arm) -Amachine(arm) -D__CHAR_UNSIGNED__ -D__ARMEL__ -D__THUMBEL__ ../src/ian.c ian.i
GNU CPP version 2.96 20000313 (experimental) (cpplib)
 (Thumb/elf)
ignoring nonexistent directory `/tools/arm/ecos/H-i686-pc-linux-gnu/thumb-elf/sys-include'
#include "..." search starts here:
#include <...> search starts here:
 /tools/arm/ecos/H-i686-pc-linux-gnu/lib/gcc-lib/thumb-elf/2.96/include
 /tools/arm/ecos/H-i686-pc-linux-gnu/thumb-elf/include
End of search list.
 /tools/arm/ecos/H-i686-pc-linux-gnu/lib/gcc-lib/thumb-elf/2.96/cc1 ian.i -quiet -dumpbase ian.c -version -fpic -o ian.s
GNU C version 2.96 20000313 (experimental) (thumb-elf) compiled by GNU C version 2.7.2.3.
../src/ian.c: In function `MyFunction':
../src/ian.c:9: Insn does not satisfy its constraints:
(insn 34 29 22 (set (reg:SI 10 sl)
        (mem:SI (label_ref 38) 0)) 1 {*movsi_insn} (nil)
    (nil))
../src/ian.c:9: Internal compiler error in `insn_default_length', at insn-attrtab.c:164
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
>How-To-Repeat:
use the gnu for arm compiler (target thumb-elf) (redhat/cygnus) and compile ian.c with the -fpic flag:

thumb-elf-gcc -v --save-temps -c -fpic -o ian.o ../src/ian.c
>Fix:
take out the -fpic flag, or modify the source somehow...
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="ian.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ian.c"

dHlwZWRlZiBzdHJ1Y3QgbXlfc3RydWN0X3Qgew0KICAgIHVuc2lnbmVkIGxvbmcgdmFsOw0KfSBt
eV9zdHJ1Y3Q7DQoNCmV4dGVybiBteV9zdHJ1Y3QgZXh0ZXJuU3RydWN0W107DQoNCnZvaWQgTXlG
dW5jdGlvbiAoKSB7DQogIGV4dGVyblN0cnVjdFswXS52YWw9MDsNCn0NCg==


More information about the Gcc-bugs mailing list