[Bug target/31868] Non-Linux DWARF EH x86-64 targets have broken crtend.o

2009-02-14 Thread rob1weld at aol dot com


--- Comment #9 from rob1weld at aol dot com  2009-02-14 17:28 ---
(In reply to comment #8)
 Subject: Bug 31868
 Author: hjl
 Date: Sun Feb 10 22:25:24 2008
 New Revision: 13
 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=13
 Log: 2008-02-10  H.J. Lu  hongjiu...@intel.com
 Backport from mainline:
 2007-08-06  H.J. Lu  hongjiu...@intel.com
 Daniel Jacobowitz  d...@codesourcery.com
 PR target/31868
 * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
 tmake_file.
 (x86_64-*-netbsd*): Likewise.
 (x86_64-*-linux*): Likewise.
 (x86_64-*-kfreebsd*-gnu): Likewise.
 (x86_64-*-knetbsd*-gnu): Likewise.
 (i[34567]86-*-solaris2.1[0-9]*): Likewise.
 * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
 * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
 Add -fno-asynchronous-unwind-tables.
 * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
 * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
 * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
 * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
 * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
 
 Modified:
 branches/gcc-4_2-branch/gcc/ChangeLog
 branches/gcc-4_2-branch/gcc/config.gcc
 branches/gcc-4_2-branch/gcc/config/i386/t-crtstuff
 branches/gcc-4_2-branch/gcc/config/i386/t-linux64
 branches/gcc-4_2-branch/gcc/config/t-freebsd
 branches/gcc-4_2-branch/gcc/config/t-libc-ok
 branches/gcc-4_2-branch/gcc/config/t-lynx
 branches/gcc-4_2-branch/gcc/config/t-netbsd
 branches/gcc-4_2-branch/gcc/config/t-svr4

Notification:

This issue affects the (missing / new ?) Target: x86_64-pc-solaris2.11

The x86_64-pc-solaris2.11 Target refers to a Native-Cross on
OpenSolaris 2009.06 (snv_106) from i386-pc-solaris2.11 to 
x86_64-pc-solaris2.11. 

In either 32 or 64 bit Boot Mode the Solaris Platform's uname will 
say we are i386. The correct thing to do is use isainfo -k.


Here is a bit of info on this:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39186
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39150


Here is it's -v:

# x86_64-pc-solaris2.11-gcc -v
Using built-in specs.
Target: x86_64-pc-solaris2.11
Configured with: ../gcc_trunk/configure --build=i386-pc-solaris2.11
--target=x86_64-pc-solaris2.11
--enable-languages=ada,c,c++,fortran,java,objc,obj-c++ --enable-shared
--disable-static --enable-multilib --enable-decimal-float
--with-long-double-128 --with-included-gettext --enable-stage1-checking
--enable-checking=release --with-tune=k8 --with-cpu=k8 --with-arch=k8
--with-gnu-as --with-as=/usr/local/bin/as --with-gnu-ld
--with-ld=/usr/local/bin/ld --with-gmp=/usr/local --with-mpfr=/usr/local
--without-ppl
Thread model: posix
gcc version 4.4.0 20090214 (experimental) [trunk revision 144177] (GCC) 


If and when x86_64-pc-solaris2.11 becomes popular this Bug Report 
may need to be reopened, and this patch fixed and applied. Then we
can check if we missed any other Targets and close this Bug for good.

Rob


-- 


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



[Bug target/31868] Non-Linux DWARF EH x86-64 targets have broken crtend.o

2008-02-10 Thread hjl at gcc dot gnu dot org


--- Comment #8 from hjl at gcc dot gnu dot org  2008-02-10 22:26 ---
Subject: Bug 31868

Author: hjl
Date: Sun Feb 10 22:25:24 2008
New Revision: 13

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=13
Log:
2008-02-10  H.J. Lu  [EMAIL PROTECTED]

Backport from mainline:
2007-08-06  H.J. Lu  [EMAIL PROTECTED]
Daniel Jacobowitz  [EMAIL PROTECTED]

PR target/31868
* config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
tmake_file.
(x86_64-*-netbsd*): Likewise.
(x86_64-*-linux*): Likewise.
(x86_64-*-kfreebsd*-gnu): Likewise.
(x86_64-*-knetbsd*-gnu): Likewise.
(i[34567]86-*-solaris2.1[0-9]*): Likewise.

* config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.

* config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
Add -fno-asynchronous-unwind-tables.

* config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
* config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
* config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
* config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
* config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.

Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/config.gcc
branches/gcc-4_2-branch/gcc/config/i386/t-crtstuff
branches/gcc-4_2-branch/gcc/config/i386/t-linux64
branches/gcc-4_2-branch/gcc/config/t-freebsd
branches/gcc-4_2-branch/gcc/config/t-libc-ok
branches/gcc-4_2-branch/gcc/config/t-lynx
branches/gcc-4_2-branch/gcc/config/t-netbsd
branches/gcc-4_2-branch/gcc/config/t-svr4


-- 


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



[Bug target/31868] Non-Linux DWARF EH x86-64 targets have broken crtend.o

2008-02-09 Thread hjl dot tools at gmail dot com


--- Comment #7 from hjl dot tools at gmail dot com  2008-02-09 16:55 ---
I posted a patch for gcc 4.2 at

http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00283.html


-- 


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



[Bug target/31868] Non-Linux DWARF EH x86-64 targets have broken crtend.o

2007-11-24 Thread bob at digilink dot net


--- Comment #5 from bob at digilink dot net  2007-11-24 11:15 ---
On Solaris 2.10 x86 (AMD64)

After the patches referenced in
http://gcc.gnu.org/ml/gcc-patches/2007-05/msg00563.html are applied to gcc
4.2.2 the build fails with:

/home/bob/src/gnu/gcc/gcc-4.2.2_SunOS-5.10.amd64/./gcc/xgcc
-B/home/bob/src/gnu/gcc/gcc-4.2.2_SunOS-5.10.amd64/./gcc/
-B/opt/i386-pc-solaris2.10/bin/ -B/opt/i386-pc-solaris2.10/lib/ -isystem
/opt/i386-pc-solaris2.10/include -isystem /opt/i386-pc-solaris2.10/sys-include
-O2  -O2 -g -O2  -DIN_GCC-W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared
-nodefaultlibs -Wl,--soname=libgcc_s.so.1
-Wl,--version-script=libgcc/./libgcc.map -o ./libgcc_s.so.1.tmp 
libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o
libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o
libgcc/./_ucmpdi2_s.o libgcc/./_clear_cache_s.o
libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./__main_s.o
libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o
libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o
libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o
libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o
libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_clzsi2_s.o
libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o
libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o
libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o
libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o
libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o
libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o
libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_fixunssfsi_s.o
libgcc/./_fixunsdfsi_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o
libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s.o libgcc/./_floatundisf_s.o
libgcc/./_fixdfdi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o
libgcc/./_floatundidf_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o
libgcc/./_floatdixf_s.o libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o
libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_floatunditf_s.o
libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o
libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o
libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde_s.o libgcc/./unwind-sjlj_s.o
libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc  rm -f ./libgcc_s.so  if [
-f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else
true; fi  mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1  ln -s libgcc_s.so.1
./libgcc_s.so
/var/tmp//cchgMfta.s: Assembler messages:
/var/tmp//cchgMfta.s:69: Error: suffix or operands invalid for `pop'
/var/tmp//cchgMfta.s:70: Error: Incorrect register `%rdx' used with `l' suffix
make[5]: *** [amd64/crtbegin.o] Error 1


-- 


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



[Bug target/31868] Non-Linux DWARF EH x86-64 targets have broken crtend.o

2007-11-24 Thread bob at digilink dot net


--- Comment #6 from bob at digilink dot net  2007-11-24 19:14 ---
I forgot to add that the above failure occurs when building with the following
options:

+ ../gcc-4.2.2/configure --prefix=/opt --with-local-prefix=/opt/include
--with-gnu-as --with-gnu-ld --with-build-time-tools=/opt/bin --enable-shared
--enable-languages=c,c++ 

GNU assembler version 2.18 (i386-pc-solaris2.10) using BFD version (GNU
Binutils) 2.18
GNU ld (GNU Binutils) 2.18


-- 

bob at digilink dot net changed:

   What|Removed |Added

 CC||bob at digilink dot net


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



[Bug target/31868] Non-Linux DWARF EH x86-64 targets have broken crtend.o

2007-08-20 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2007-08-20 06:49 ---
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.3.0


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



[Bug target/31868] Non-Linux DWARF EH x86-64 targets have broken crtend.o

2007-08-06 Thread hjl at gcc dot gnu dot org


--- Comment #3 from hjl at gcc dot gnu dot org  2007-08-06 19:58 ---
Subject: Bug 31868

Author: hjl
Date: Mon Aug  6 19:58:11 2007
New Revision: 127248

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=127248
Log:
2007-08-06  H.J. Lu  [EMAIL PROTECTED]
Daniel Jacobowitz  [EMAIL PROTECTED]

PR target/31868
* config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
tmake_file.
(x86_64-*-netbsd*): Likewise.
(x86_64-*-linux*): Likewise.
(x86_64-*-kfreebsd*-gnu): Likewise.
(x86_64-*-knetbsd*-gnu): Likewise.
(i[34567]86-*-solaris2.1[0-9]*): Likewise.

* config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.

* config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
Add -fno-asynchronous-unwind-tables.

* config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
* config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
* config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
* config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
* config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/config.gcc
trunk/gcc/config/i386/t-crtstuff
trunk/gcc/config/i386/t-linux64
trunk/gcc/config/t-freebsd
trunk/gcc/config/t-libc-ok
trunk/gcc/config/t-lynx
trunk/gcc/config/t-netbsd
trunk/gcc/config/t-svr4


-- 


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



[Bug target/31868] Non-Linux DWARF EH x86-64 targets have broken crtend.o

2007-05-08 Thread hjl at lucon dot org


--- Comment #1 from hjl at lucon dot org  2007-05-08 18:12 ---
A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2007-05/msg00557.html


-- 


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



[Bug target/31868] Non-Linux DWARF EH x86-64 targets have broken crtend.o

2007-05-08 Thread hjl at lucon dot org


--- Comment #2 from hjl at lucon dot org  2007-05-08 18:55 ---
Patches against 4.1, 4.2 and 4.3 are at

http://gcc.gnu.org/ml/gcc-patches/2007-05/msg00563.html


-- 


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