Bug 38460 - fails to build unwinder
Summary: fails to build unwinder
Status: RESOLVED DUPLICATE of bug 35034
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: assemble-failure
Depends on:
Blocks:
 
Reported: 2008-12-09 20:34 UTC by Bernhard Reutner-Fischer
Modified: 2008-12-29 14:26 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
unreduced file1 (50.04 KB, text/plain)
2008-12-09 20:37 UTC, Bernhard Reutner-Fischer
Details
unreduced file2 (27.42 KB, text/plain)
2008-12-09 20:37 UTC, Bernhard Reutner-Fischer
Details
unreduced file3 (65.91 KB, text/plain)
2008-12-09 20:38 UTC, Bernhard Reutner-Fischer
Details
output of unreduced input (9.54 KB, text/plain)
2008-12-09 20:38 UTC, Bernhard Reutner-Fischer
Details
reduced file1 (76 bytes, text/plain)
2008-12-09 20:39 UTC, Bernhard Reutner-Fischer
Details
reduced file3 (157 bytes, text/plain)
2008-12-09 20:39 UTC, Bernhard Reutner-Fischer
Details
reduced file3 (545 bytes, text/plain)
2008-12-09 20:40 UTC, Bernhard Reutner-Fischer
Details
output of reduced input (574 bytes, text/plain)
2008-12-09 20:41 UTC, Bernhard Reutner-Fischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Reutner-Fischer 2008-12-09 20:34:42 UTC
compiling gcc/unwind* with IMA fails to produce correct assembly with trunk:

/there/src/buildroot.git.pentium4/i686_build/staging/usr/bin/i686-linux-uclibc-gcc  -Os -pipe -fno-builtin -O2  -Os -pipe -fno-builtin   -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition  -isystem ./include  -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I. -I../.././gcc -I/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc -I/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/. -I/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc -I/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../include  -DHAVE_CC_TLS -DUSE_TLS -o libgcc_eh_onestep.o -MT libgcc_eh_onestep.o -MD -MP -MF libgcc_eh_onestep.dep -fexceptions /there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/emutls.c /there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/gthr-gnat.c /there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-c.c /there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde-glibc.c /there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2.c /there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-sjlj.c -fvisibility=hidden -DHIDE_EXPORTS -c -combine
In file included from /there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde-glibc.c:62:
/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde.c: In function ‘fde_unencoded_compare’:
/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde.c:326: warning: dereferencing type-punned pointer will break strict-aliasing rules
/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde.c:327: warning: dereferencing type-punned pointer will break strict-aliasing rules
/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde.c: In function ‘add_fdes’:
/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde.c:682: warning: dereferencing type-punned pointer will break strict-aliasing rules
/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde.c: In function ‘linear_search_fdes’:
/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde.c:800: warning: dereferencing type-punned pointer will break strict-aliasing rules
/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde.c: In function ‘binary_search_unencoded_fdes’:
/there/src/buildroot.git.pentium4/i686_toolchain/gcc-4.4.0/libgcc/../gcc/unwind-dw2-fde.c:848: warning: dereferencing type-punned pointer will break strict-aliasing rules
{standard input}: Assembler messages:
{standard input}:4640: Error: symbol `read_encoded_value' is already defined
make[3]: *** [libgcc_eh_onestep.o] Error 1
Comment 1 Bernhard Reutner-Fischer 2008-12-09 20:37:04 UTC
Created attachment 16856 [details]
unreduced file1
Comment 2 Bernhard Reutner-Fischer 2008-12-09 20:37:38 UTC
Created attachment 16857 [details]
unreduced file2
Comment 3 Bernhard Reutner-Fischer 2008-12-09 20:38:23 UTC
Created attachment 16858 [details]
unreduced file3
Comment 4 Bernhard Reutner-Fischer 2008-12-09 20:38:54 UTC
Created attachment 16859 [details]
output of unreduced input

/there/src/buildroot.git.pentium4/i686_build/staging/usr/bin/i686-linux-uclibc-gcc -Os emutls.i unwind-c.i unwind-dw2.i -S -o libgcc_eh-unreduced.S -combine
Comment 5 Bernhard Reutner-Fischer 2008-12-09 20:39:17 UTC
Created attachment 16860 [details]
reduced file1
Comment 6 Bernhard Reutner-Fischer 2008-12-09 20:39:44 UTC
Created attachment 16861 [details]
reduced file3
Comment 7 Bernhard Reutner-Fischer 2008-12-09 20:40:09 UTC
Created attachment 16862 [details]
reduced file3
Comment 8 Bernhard Reutner-Fischer 2008-12-09 20:41:19 UTC
Created attachment 16863 [details]
output of reduced input

/there/src/buildroot.git.pentium4/i686_build/staging/usr/bin/i686-linux-uclibc-gcc -Os emutls.0.i unwind-c.0.i unwind-dw2.0.i -c -o libgcc_eh.o -combine -w
/tmp/ccBHYNVJ.s: Assembler messages:
/tmp/ccBHYNVJ.s:29: Error: symbol `read_encoded_value' is already defined
Comment 9 Andrew Pinski 2008-12-09 22:32:24 UTC
This will most likely be closed as won't fix.  -combine is really not supported and should be removed.
Comment 10 Andrew Pinski 2008-12-29 14:26:48 UTC

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