[Bug gas/16946] [v850-elf] Intenal error : tc-v850.c line 3248 in md_assemble

2014-05-16 Thread mon...@monami-software.com
https://sourceware.org/bugzilla/show_bug.cgi?id=16946

--- Comment #5 from Masaki MURANAKA  ---
Hello Nick,

As you said, I'm using a git head of gcc-4_7 (old).

I got better messages after applied your patch:
```
/var/folders/wr/mrhq4cgx2b15l4xwgj12jchmgn/T//ccGtpXOI.s: Assembler
messages:
/var/folders/wr/mrhq4cgx2b15l4xwgj12jchmgn/T//ccGtpXOI.s:88: Error: callt
ctoff(__callt_save_r31c): ctoff() is not supported by the rh850 ABI. Use
-mgcc-abi instead
/var/folders/wr/mrhq4cgx2b15l4xwgj12jchmgn/T//ccGtpXOI.s:99: Error: callt
ctoff(__callt_return_r31c): ctoff() is not supported by the rh850 ABI. Use
-mgcc-abi instead
make[3]: *** [_absvsi2.o] Error 1
make[2]: *** [multi-do] Error 1
make[1]: *** [all-multi] Error 2
make: *** [all-target-libgcc] Error 2
```

And I see this issue is caused by ABI. I'll make a local patch for gcc to avoid
this issue.
Thank you for your suggestion.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/16946] [v850-elf] Intenal error : tc-v850.c line 3248 in md_assemble

2014-05-14 Thread mon...@monami-software.com
https://sourceware.org/bugzilla/show_bug.cgi?id=16946

--- Comment #2 from Masaki MURANAKA  ---
You will reproduce this issue with the assembler code I attached (_absvsi2.s)
by calling:
```
as-new -mv850e _absvsi2.s
```

I checked code in BFD. And I guess this issue is caused a treatment of "callt".

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/16946] [v850-elf] Intenal error : tc-v850.c line 3248 in md_assemble

2014-05-14 Thread mon...@monami-software.com
https://sourceware.org/bugzilla/show_bug.cgi?id=16946

--- Comment #1 from Masaki MURANAKA  ---
Created attachment 7599
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7599&action=edit
Issue eeproductive assembler code.

This is a result of executing :
/Volumes/git/binutils-gdb/build/./gcc/xgcc
-B/Volumes/git/binutils-gdb/build/./gcc/ -B/usr/local/v850-elf/bin/
-B/usr/local/v850-elf/lib/ -isystem /usr/local/v850-elf/include -isystem
/usr/local/v850-elf/sys-include -L/Volumes/git/binutils-gdb/build/./ld-g
-O2 -mv850e -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include -mno-app-regs -msmall-sld
-Wa,-mwarn-signed-overflow -Wa,-mwarn-unsigned-overflow  -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector -Dinhibit_libc  -I. -I.
-I../../.././gcc -I../../../../libgcc -I../../../../libgcc/.
-I../../../../libgcc/../gcc -I../../../../libgcc/../include   -DUSE_EMUTLS -o
_absvsi2.s -MT _absvsi2.o -MD -MP -MF _absvsi2.dep -DL_absvsi2 -S
../../../../libgcc/../gcc/libgcc2.c

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/16946] New: [v850-elf] Intenal error : tc-v850.c line 3248 in md_assemble

2014-05-14 Thread mon...@monami-software.com
https://sourceware.org/bugzilla/show_bug.cgi?id=16946

Bug ID: 16946
   Summary: [v850-elf] Intenal error : tc-v850.c line 3248 in
md_assemble
   Product: binutils
   Version: 2.25 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: mon...@monami-software.com

I got an internal error like this.
```
/Volumes/git/binutils-gdb/build/./gcc/xgcc
-B/Volumes/git/binutils-gdb/build/./gcc/ -B/usr/local/v850-elf/bin/
-B/usr/local/v850-elf/lib/ -isystem /usr/local/v850-elf/include -isystem
/usr/local/v850-elf/sys-include -L/Volumes/git/binutils-gdb/build/./ld-g
-O2 -mv850e -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include -mno-app-regs -msmall-sld
-Wa,-mwarn-signed-overflow -Wa,-mwarn-unsigned-overflow  -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector -Dinhibit_libc  -I. -I.
-I../../.././gcc -I../../../../libgcc -I../../../../libgcc/.
-I../../../../libgcc/../gcc -I../../../../libgcc/../include   -DUSE_EMUTLS -o
_absvsi2.o -MT _absvsi2.o -MD -MP -MF _absvsi2.dep -DL_absvsi2 -c
../../../../libgcc/../gcc/libgcc2.c \

/var/folders/wr/mrhq4cgx2b15l4xwgj12jchmgn/T//ccR2sNlE.s: Assembler
messages:
/var/folders/wr/mrhq4cgx2b15l4xwgj12jchmgn/T//ccR2sNlE.s:88: Internal
error, aborting at ../../gas/config/tc-v850.c line 3248 in md_assemble
Please report this bug.
make[3]: *** [_absvsi2.o] Error 1
make[2]: *** [multi-do] Error 1
make[1]: *** [all-multi] Error 2
make: *** [all-target-libgcc] Error 2
```

Host compiler
```
gcc-4.6 -v
Using built-in specs.
COLLECT_GCC=gcc-4.6
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc46/4.6.4/libexec/gcc/x86_64-apple-darwin13.1.0/4.6.4/lto-wrapper
Target: x86_64-apple-darwin13.1.0
Configured with: ../configure --build=x86_64-apple-darwin13.1.0
--prefix=/usr/local/Cellar/gcc46/4.6.4 --enable-languages=c,c++,objc,obj-c++
--program-suffix=-4.6 --with-gmp=/usr/local/opt/gmp4
--with-mpfr=/usr/local/opt/mpfr2 --with-mpc=/usr/local/opt/libmpc08
--with-ppl=/usr/local/opt/ppl011 --with-cloog=/usr/local/opt/cloog-ppl015
--with-system-zlib --enable-version-specific-runtime-libs
--enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release
--enable-lto --disable-werror --enable-plugin --disable-nls --enable-multilib
Thread model: posix
gcc version 4.6.4 (GCC) 
```

Building compiler
```
xgcc -v
Using built-in specs.
COLLECT_GCC=/Volumes/git/binutils-gdb/build/./gcc/xgcc
Target: v850-elf
Configured with: ../configure --target=v850-elf --disable-werror --without-ppl
--without-cloog --enable-languages=c
Thread model: single
gcc version 4.6.4 (GCC) 
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils