public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/54356] New: ICE in output_pic_addr_const
@ 2012-08-23 11:42 alexander.adam at informatik dot tu-chemnitz.de
  2012-08-23 11:45 ` [Bug c/54356] " rguenth at gcc dot gnu.org
  2012-08-23 11:47 ` rguenth at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: alexander.adam at informatik dot tu-chemnitz.de @ 2012-08-23 11:42 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54356

             Bug #: 54356
           Summary: ICE in output_pic_addr_const
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: alexander.adam@informatik.tu-chemnitz.de


Created attachment 28069
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28069
File demonstrating the bug.

In the attachment is a very stripped down version of the code that makes gcc
ICE. I tested with version:
     4.1.2.20070115 (prerelease) on SuSE Linux 32 bit
     4.7.1 on Debian (4.7.1-2) 64 bit with -m32-Flag

The command line used to compile the code was:
     gcc -O1 -fPIC -c -m32 -o test.o asm_p_flag_ice.c

This is a very minimalistic example.
It works fine if we use the function address as argument.
It works with other modifiers for the assembler.
It works if -fPIC is ommitted or -O0 is used.

I give here the options that were used to build the gcc bit on Debian:

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.1-2'
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object
--enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.1 (Debian 4.7.1-2)

$ uname -a
Linux dimensio0 3.2.0-3-amd64 #1 SMP Mon Jul 23 02:45:17 UTC 2012 x86_64
GNU/Linux

The output, if the file is compiled:

$ gcc -O1 -fPIC -c -m32 -o test.o asm_p_flag_ice.c 
asm_p_flag_ice.c: In function ‘ICE_func’:
asm_p_flag_ice.c:15:1: internal compiler error: in output_pic_addr_const, at
config/i386/i386.c:13099
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccLvrTP3.out file, please attach this to
your bugreport.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/54356] ICE in output_pic_addr_const
  2012-08-23 11:42 [Bug c/54356] New: ICE in output_pic_addr_const alexander.adam at informatik dot tu-chemnitz.de
@ 2012-08-23 11:45 ` rguenth at gcc dot gnu.org
  2012-08-23 11:47 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-08-23 11:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54356

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-08-23 11:44:48 UTC ---
*** Bug 54357 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c/54356] ICE in output_pic_addr_const
  2012-08-23 11:42 [Bug c/54356] New: ICE in output_pic_addr_const alexander.adam at informatik dot tu-chemnitz.de
  2012-08-23 11:45 ` [Bug c/54356] " rguenth at gcc dot gnu.org
@ 2012-08-23 11:47 ` rguenth at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-08-23 11:47 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54356

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-08-23 11:47:46 UTC ---
.

*** This bug has been marked as a duplicate of bug 54358 ***


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-23 11:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-23 11:42 [Bug c/54356] New: ICE in output_pic_addr_const alexander.adam at informatik dot tu-chemnitz.de
2012-08-23 11:45 ` [Bug c/54356] " rguenth at gcc dot gnu.org
2012-08-23 11:47 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).