[Bug gas/14260] ARM ldrt instruction causes an internal error.

2012-06-18 Thread m.lesniewski at samsung dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14260

Michał Leśniewski  changed:

   What|Removed |Added

 CC||m.lesniewski at samsung dot
   ||com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/14260] New: ARM ldrt instruction causes an internal error.

2012-06-18 Thread m.lesniewski at samsung dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14260

 Bug #: 14260
   Summary: ARM ldrt instruction causes an internal error.
   Product: binutils
   Version: 2.19
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassig...@sourceware.org
ReportedBy: m.lesniew...@samsung.com
Classification: Unclassified


Created attachment 6455
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6455
Source file, which can be used to reproduce the error.

Using ldrt ARM instruction causes an internal error when the source address is
in the literal pool. An example of an instruction, which causes such behavior:

   ldrt r0, =0x0

Trying to compile a file containing this instruction causes the following
messages to be printed:

foo.S: Assembler messages:
foo.S:6: Internal error!
Assertion failure in encode_arm_addr_mode_common at
/home/docbrown/binutils/binutils-2.19/gas/config/tc-arm.c line 6262.
Please report this bug

I guess the error can be related to the fact, that the ldrt instruction
requires a post-indexing addressing mode. Normally the second operand of the
instruction is a register and the third operand is an offset (immediate value
or register), for example:

   ldrt r0, [r1], #12; load one word at address [r1] to r0 and update r1 to
r1 + 12

Of course, using ldrt to load constants from a literal pool makes no sense (or
am I missing something?). I found the error because of a typo in my source file
-- I wanted to use the ldr instruction instead of ldrt. Perhaps the assembler
should not allow such kinds of instructions and automatically suggest using ldr
instead of ldrt in cases like this.

I attached a file, which can be used to reproduce the error.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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 gold/14262] New: icf corrupts unwind info and makes exception throwing to abort

2012-06-18 Thread vincenzo.innocente at cern dot ch
http://sourceware.org/bugzilla/show_bug.cgi?id=14262

 Bug #: 14262
   Summary: icf corrupts unwind info and makes exception throwing
to abort
   Product: binutils
   Version: 2.22
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: i...@airs.com
ReportedBy: vincenzo.innoce...@cern.ch
CC: ccout...@google.com
Classification: Unclassified


This is a crosspost from gcc http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43581
please refer to the code in first comment there

on fedora17
c++ -Wl,-v -g -fno-omit-frame-pointer -pthread -O2 lib.cpp -flto
-ffunction-sections -fPIC -fvisibility-inlines-hidden -shared -Wl,-rpath ./ -o
liblib.so -Wl,-E  -Wl,--icf=all
c++ -g -fno-omit-frame-pointer -pthread -O2 main.cpp  -flto -ffunction-sections
-fPIC -fvisibility-inlines-hidden  -Wl,-rpath ./ -Wl,-E  -Wl,--icf=all -L ./
-llib
gdb ./a.out




(gdb) run
Starting program: /home/innocent/ctest/bugs48/ex43581/a.out 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGABRT, Aborted.
0x003a45635965 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install glibc-2.15-37.fc17.x86_64
libgcc-4.7.0-5.fc17.x86_64 libstdc++-4.7.0-5.fc17.x86_64
(gdb) where
#0  0x003a45635965 in raise () from /lib64/libc.so.6
#1  0x003a45637118 in abort () from /lib64/libc.so.6
#2  0x003a49a101f0 in ?? () from /lib64/libgcc_s.so.1
#3  0x003a49a115c1 in ?? () from /lib64/libgcc_s.so.1
#4  0x003a4572cf46 in dl_iterate_phdr () from /lib64/libc.so.6
#5  0x003a49a11ad2 in _Unwind_Find_FDE () from /lib64/libgcc_s.so.1
#6  0x003a49a0efeb in ?? () from /lib64/libgcc_s.so.1
#7  0x003a49a0fafb in _Unwind_RaiseException () from /lib64/libgcc_s.so.1
#8  0x003a52e5ef41 in __cxa_throw () from /lib64/libstdc++.so.6
#9  0x77ffb25a in libbar () at lib.cpp:6
#10 0x7fffe3e8 in ?? ()
#11 0x004030c8 in ?? ()
#12 0x003a459b1f40 in ?? () from /lib64/libc.so.6
#13 0x in ?? ()
(gdb) q
A debugging session is active.

Inferior 1 [process 6370] will be killed.

Quit anyway? (y or n) y
[innocent@pcphsftkepler ex43581]$ c++ -v
Using built-in specs.
COLLECT_GCC=/bin/c++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.7.0/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --disable-build-with-cxx
--disable-build-poststage1-with-cxx --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin
--enable-initfini-array --enable-java-awt=gtk --disable-dssi
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog --with-tune=generic --with-arch_32=i686
--build=x86_64-redhat-linux
Thread model: posix
gcc version 4.7.0 20120507 (Red Hat 4.7.0-5) (GCC) 
[innocent@pcphsftkepler ex43581]$ ld -vc
GNU gold (version 2.22.52.0.1-10.fc17 20120131) 1.11

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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 gold/14262] icf corrupts unwind info and makes exception throwing to abort

2012-06-18 Thread vincenzo.innocente at cern dot ch
http://sourceware.org/bugzilla/show_bug.cgi?id=14262

Vincenzo Innocente  changed:

   What|Removed |Added

 CC||vincenzo.innocente at cern
   ||dot ch

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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 gold/14262] icf corrupts unwind info and makes exception throwing to abort

2012-06-18 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14262

Ian Lance Taylor  changed:

   What|Removed |Added

 CC||ian at airs dot com,
   ||tmsriram at google dot com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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 gold/14262] icf corrupts unwind info and makes exception throwing to abort

2012-06-18 Thread ppluzhnikov at google dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14262

Paul Pluzhnikov  changed:

   What|Removed |Added

 CC||ppluzhnikov at google dot
   ||com

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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/14263] New: »val« may be used uninitialized in this function tc-arm.c parse_operands()

2012-06-18 Thread bruck.michael at googlemail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14263

 Bug #: 14263
   Summary: »val« may be used uninitialized in this function
tc-arm.c parse_operands()
   Product: binutils
   Version: 2.22
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
AssignedTo: unassig...@sourceware.org
ReportedBy: bruck.mich...@googlemail.com
Classification: Unclassified


building binutils 2.22.52 on cygwin with gcc 4.5.3 and -O6:

gcc -DHAVE_CONFIG_H -I. -I../../../src/binutils-2.22.52/gas  -I.
-I../../../src/binutils-2.22.52/gas -I../bfd
-I../../../src/binutils-2.22.52/gas/config 
-I../../../src/binutils-2.22.52/gas/../include
-I../../../src/binutils-2.22.52/gas/..
-I../../../src/binutils-2.22.52/gas/../bfd  
-DLOCALEDIR="\"/cygdrive/p/Ablage/DG-GCC/install/share/locale\""  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -O6 -MT tc-arm.o -MD
-MP -MF .deps/tc-arm.Tpo -c -o tc-arm.o `test -f 'config/tc-arm.c' || echo
'../../../src/binutils-2.22.52/gas/'`config/tc-arm.c
cc1: warnings being treated as errors
../../../src/binutils-2.22.52/gas/config/tc-arm.c: In Funktion
»parse_operands«:
../../../src/binutils-2.22.52/gas/config/tc-arm.c:6205:10: Fehler: »val« may be
used uninitialized in this function

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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 ld/12017] Would like to disable compiler warning re use of tmpnam

2012-06-18 Thread vampyrebat at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12017

--- Comment #6 from Kib  2012-06-19 00:55:06 UTC 
---
(In reply to comment #5)
> the warning isn't coming from the compiler, it's coming from the linker

Yes, I said exactly that in comment #1.  I assumed, however, that the compiler
would pass the show-no-warnings flag along to the linker.  I see now in a quick
test that that's not the case.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- 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