public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/43477]  New: -march=k8-sse3 on turion-rm75 failed
@ 2010-03-22 15:05 aflyhorse at foxmail dot com
  2010-03-22 15:09 ` [Bug rtl-optimization/43477] " aflyhorse at foxmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: aflyhorse at foxmail dot com @ 2010-03-22 15:05 UTC (permalink / raw)
  To: gcc-bugs

i'm using amd turion RM75 CPU under msys-mingw64 
i want to make a fully optimized gcc of my own, so first i generated a general
version of gcc. when i was making binutils the second time with -march=k8-sse3,
i got this message:

gcc -o chew.$$ -O3 -fomit-frame-pointer -pipe -march=k8-sse3 -mfpmath=sse -m64
-
mthreads -minline-stringops-dynamically -mcmodel=large -s -Wl,--as-needed \
           -I.. -I../../../src/bfd/doc/.. -I../../../src/bfd/doc/../../include
-
I../../../src/bfd/doc/../../intl -I../../intl ../../../src/bfd/doc/chew.c; \
        /bin/sh ../../../src/bfd/doc/../../move-if-change chew.$$ chew.exe
../../../src/bfd/doc/chew.c: In function 'push_number':
../../../src/bfd/doc/chew.c:403:10: warning: cast from pointer to integer of
dif
ferent size
../../../src/bfd/doc/chew.c: In function 'compile':
../../../src/bfd/doc/chew.c:1364:29: warning: cast to pointer from integer of
di
fferent size
../../../src/bfd/doc/chew.c: In function 'bang':
../../../src/bfd/doc/chew.c:1386:4: warning: cast to pointer from integer of
dif
ferent size
../../../src/bfd/doc/chew.c: In function 'atsign':
../../../src/bfd/doc/chew.c:1395:13: warning: cast to pointer from integer of
di
fferent size
../../../src/bfd/doc/chew.c:1571:1: error: unable to find a register to spill
in
 class 'AREG'
../../../src/bfd/doc/chew.c:1571:1: error: this is the insn:
(insn 1666 1663 1668 74 ../../../src/bfd/doc/chew.c:1235 (set (mem/f/c/i:DI
(sym
bol_ref:DI ("tos") [flags 0x2] <var_decl 00000000039FE780 tos>) [10 tos+0 S8
A12
8])
        (symbol_ref:DI ("stack") [flags 0x2] <var_decl 00000000039FE6E0
stack>))
 90 {*movabsdi_1_rex64} (expr_list:REG_EQUAL (symbol_ref:DI ("stack") [flags
0x2
] <var_decl 00000000039FE6E0 stack>)
        (nil)))
../../../src/bfd/doc/chew.c:1571:1: internal compiler error: in spill_failure,
a
t reload1.c:2158
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

i don't know whether it's a bug of gcc or simply AMD hadn't fully supported
SSE3
thx


-- 
           Summary: -march=k8-sse3 on turion-rm75 failed
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: aflyhorse at foxmail dot com
  GCC host triplet: x86_64-w64-mingw32


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


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

* [Bug rtl-optimization/43477] -march=k8-sse3 on turion-rm75 failed
  2010-03-22 15:05 [Bug rtl-optimization/43477] New: -march=k8-sse3 on turion-rm75 failed aflyhorse at foxmail dot com
@ 2010-03-22 15:09 ` aflyhorse at foxmail dot com
  2010-03-23 10:25 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: aflyhorse at foxmail dot com @ 2010-03-22 15:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from aflyhorse at foxmail dot com  2010-03-22 15:08 -------
in additional, i'm using the 20100317 version of gcc 4.5.0 and binutils 2.20.51


-- 


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


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

* [Bug rtl-optimization/43477] -march=k8-sse3 on turion-rm75 failed
  2010-03-22 15:05 [Bug rtl-optimization/43477] New: -march=k8-sse3 on turion-rm75 failed aflyhorse at foxmail dot com
  2010-03-22 15:09 ` [Bug rtl-optimization/43477] " aflyhorse at foxmail dot com
@ 2010-03-23 10:25 ` rguenth at gcc dot gnu dot org
  2010-03-23 16:31 ` aflyhorse at foxmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-03-23 10:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-03-23 10:24 -------
We need a testcase to reproduce the bug (preprocessed source).  You also
might want to try removing -mcmodel=large (you really shouldn't need that).


-- 


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


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

* [Bug rtl-optimization/43477] -march=k8-sse3 on turion-rm75 failed
  2010-03-22 15:05 [Bug rtl-optimization/43477] New: -march=k8-sse3 on turion-rm75 failed aflyhorse at foxmail dot com
  2010-03-22 15:09 ` [Bug rtl-optimization/43477] " aflyhorse at foxmail dot com
  2010-03-23 10:25 ` rguenth at gcc dot gnu dot org
@ 2010-03-23 16:31 ` aflyhorse at foxmail dot com
  2010-03-24  0:27 ` aflyhorse at foxmail dot com
  2010-04-01  1:04 ` aflyhorse at foxmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: aflyhorse at foxmail dot com @ 2010-03-23 16:31 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from aflyhorse at foxmail dot com  2010-03-23 16:30 -------
(In reply to comment #2)
> We need a testcase to reproduce the bug (preprocessed source).  You also
> might want to try removing -mcmodel=large (you really shouldn't need that).

I've tryed to remove all newly added optimize option seperately, and only
remove the -mcmodel doesn't work. The resolving way is to remove all the
options concerning sse3 (including -march=k8-sse3 -mtune=k8-sse3
-Wa,march=k8+sse3;  use -march=k8 and -nsse3 produce the same error).

I am building binutils (SVN 20100317) at that time. I have tried various way of
CCFLAGS struggling to avoid this problem.

In addition, file:
/libcpp/files.c: Line 609-614:
comparison is always false under win x64

and

/gcc/emit-rtl.c: Line 361:
/gcc/ggc-common.c: Line 310:
/gcc/graphite-dependences.c: Line 107:
/gcc/src/gcc/ira-conflicts.c: Line 125:
/gcc/src/gcc/pointer-set.c: Line 67:
/gcc/src/gcc/tree dump: Line 168:
/gcc/src/gcc/cp/class.c: Line 6740, 6742, 6764, 6767, 6900:

all have host-dependent code such as explictly cast a pointer to long (in win
x64 means long long to long) and use %ld or &lx to fprintf a pointer.

they cause the cc1 treat warnings as error and stop the make procedure, though
they are easy to fix manually but quite annoying while making bootstrap.

(These are gcc 4.5.0 20100322 version source)


-- 


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


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

* [Bug rtl-optimization/43477] -march=k8-sse3 on turion-rm75 failed
  2010-03-22 15:05 [Bug rtl-optimization/43477] New: -march=k8-sse3 on turion-rm75 failed aflyhorse at foxmail dot com
                   ` (2 preceding siblings ...)
  2010-03-23 16:31 ` aflyhorse at foxmail dot com
@ 2010-03-24  0:27 ` aflyhorse at foxmail dot com
  2010-04-01  1:04 ` aflyhorse at foxmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: aflyhorse at foxmail dot com @ 2010-03-24  0:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from aflyhorse at foxmail dot com  2010-03-24 00:26 -------
Hmmm... i don't know if it is useful to give you the configure option i did at
that time... Happy i have a habit of recording every command i used during
installation:

$ ../src/configure --build=x86_64-w64-mingw32
--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32 --disable-shared
--enable-static --disable-nls --with-mpc=/local --with-gmp=/local
--with-mpfr=/local --with-ppl=/local --with-cloog=/local --prefix=/mingw64
--with-sysroot=/mingw64 CFLAGS="-march=k8-sse3 -mfpmath=sse -m64 -mthreads
-minline-stringops-dynamically -mcmodel=large -Wa,-march=k8+sse3" LDFLAGS="-s
-Wl,--as-needed"

maybe it's not gcc's fault because the libc mingw-w64 migrated is so old...


-- 


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


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

* [Bug rtl-optimization/43477] -march=k8-sse3 on turion-rm75 failed
  2010-03-22 15:05 [Bug rtl-optimization/43477] New: -march=k8-sse3 on turion-rm75 failed aflyhorse at foxmail dot com
                   ` (3 preceding siblings ...)
  2010-03-24  0:27 ` aflyhorse at foxmail dot com
@ 2010-04-01  1:04 ` aflyhorse at foxmail dot com
  4 siblings, 0 replies; 6+ messages in thread
From: aflyhorse at foxmail dot com @ 2010-04-01  1:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from aflyhorse at foxmail dot com  2010-04-01 01:04 -------
Failed to build with sse3, i surrounded...


-- 

aflyhorse at foxmail dot com changed:

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


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


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

end of thread, other threads:[~2010-04-01  1:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-22 15:05 [Bug rtl-optimization/43477] New: -march=k8-sse3 on turion-rm75 failed aflyhorse at foxmail dot com
2010-03-22 15:09 ` [Bug rtl-optimization/43477] " aflyhorse at foxmail dot com
2010-03-23 10:25 ` rguenth at gcc dot gnu dot org
2010-03-23 16:31 ` aflyhorse at foxmail dot com
2010-03-24  0:27 ` aflyhorse at foxmail dot com
2010-04-01  1:04 ` aflyhorse at foxmail dot com

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).