public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/16480] New: using -msdata causes internal compiler error
@ 2004-07-11 21:37 kurt at symbolicsound dot com
2004-07-11 21:39 ` [Bug c/16480] " kurt at symbolicsound dot com
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: kurt at symbolicsound dot com @ 2004-07-11 21:37 UTC (permalink / raw)
To: gcc-bugs
Code compiles fine without -msdata tag, gives an internal compiler error when
tag is used. Will attach the preprocessor output.
The following is the full output:
------------- Compiling /home/kurt/Flame/FlameAVC/build/source/main.o...
/opt/gcc/bin/powerpc-eabi-gcc -msoft-float -mcpu=405 -msdata -v -save-temps
-mmultiple -O2 -Wall -I/home/kurt/Flame/flame-ecos_install/include
-I/home/kurt/Flame/FlameAVC/build/include -ffunction-sections -fdata-sections
-fstrict-aliasing -D SBP2_NO_EXCLUSIVE -D AVCTGT_DONT_ADD_ROM_ENTRY -D
INCLUDE_OHCI -D DMASafeBuffersNeeded=1 -D INCLUDE_GUID_PLUGIN -D
ORANGELINK_PATCH=0 -D DBG -D logMsg=TNFprintf -D WALNUT -c
/home/kurt/Flame/FlameAVC/build/source/main.c -o
/home/kurt/Flame/FlameAVC/build/source/main.o
Reading specs from /opt/gcc/lib/gcc/powerpc-eabi/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --prefix=/opt/gcc --target=powerpc-eabi
--enable-languages=c,c++ --with-newlib
--with-headers=../newlib-1.12.0/newlib/libc/include
Thread model: single
gcc version 3.4.1
/opt/gcc/libexec/gcc/powerpc-eabi/3.4.1/cc1 -E -quiet -v
-I/home/kurt/Flame/flame-ecos_install/include
-I/home/kurt/Flame/FlameAVC/build/include -D SBP2_NO_EXCLUSIVE -D
AVCTGT_DONT_ADD_ROM_ENTRY -D INCLUDE_OHCI -D DMASafeBuffersNeeded=1 -D
INCLUDE_GUID_PLUGIN -D ORANGELINK_PATCH=0 -D DBG -D logMsg=TNFprintf -D WALNUT
/home/kurt/Flame/FlameAVC/build/source/main.c -msdata=default -msoft-float
-mcpu=405 -msdata -mmultiple -Wall -ffunction-sections -fdata-sections
-fstrict-aliasing -O2 -o main.i
#include "..." search starts here:
#include <...> search starts here:
/home/kurt/Flame/flame-ecos_install/include
/home/kurt/Flame/FlameAVC/build/include
/opt/gcc/lib/gcc/powerpc-eabi/3.4.1/include
/opt/gcc/lib/gcc/powerpc-eabi/3.4.1/../../../../powerpc-eabi/sys-include
/opt/gcc/lib/gcc/powerpc-eabi/3.4.1/../../../../powerpc-eabi/include
End of search list.
In file included from /home/kurt/Flame/FlameAVC/build/source/main.c:2:
/home/kurt/Flame/FlameAVC/build/include/Flame.h:172:1: warning: multi-line comment
/opt/gcc/libexec/gcc/powerpc-eabi/3.4.1/cc1 -fpreprocessed main.i
-msdata=default -quiet -dumpbase main.c -msoft-float -mcpu=405 -msdata
-mmultiple -auxbase-strip /home/kurt/Flame/FlameAVC/build/source/main.o -O2
-Wall -version -ffunction-sections -fdata-sections -fstrict-aliasing -o main.s
GNU C version 3.4.1 (powerpc-eabi)
compiled by GNU C version 3.3.1 (SuSE Linux).
GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64337
/home/kurt/Flame/FlameAVC/build/source/main.c: In function `IdleLoop':
/home/kurt/Flame/FlameAVC/build/source/main.c:165: internal compiler error: in
rs6000_split_multireg_move, at config/rs6000/rs6000.c:10448
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [/home/kurt/Flame/FlameAVC/build/source/main.o] Error 1
--
Summary: using -msdata causes internal compiler error
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: critical
Priority: P1
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kurt at symbolicsound dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i586-suse-linux
GCC target triplet: powerpc-*-eabi?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug c/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
@ 2004-07-11 21:39 ` kurt at symbolicsound dot com
2004-07-12 4:34 ` [Bug target/16480] " pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: kurt at symbolicsound dot com @ 2004-07-11 21:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From kurt at symbolicsound dot com 2004-07-11 21:39 -------
Created an attachment (id=6724)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6724&action=view)
compiler output when -sdata is used
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
2004-07-11 21:39 ` [Bug c/16480] " kurt at symbolicsound dot com
@ 2004-07-12 4:34 ` pinskia at gcc dot gnu dot org
2004-08-25 7:11 ` amodra at bigpond dot net dot au
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-12 4:34 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
Component|c |target
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
2004-07-11 21:39 ` [Bug c/16480] " kurt at symbolicsound dot com
2004-07-12 4:34 ` [Bug target/16480] " pinskia at gcc dot gnu dot org
@ 2004-08-25 7:11 ` amodra at bigpond dot net dot au
2004-08-25 11:21 ` amodra at bigpond dot net dot au
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-08-25 7:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From amodra at bigpond dot net dot au 2004-08-25 07:11 -------
3.4.2 20040819 shows the bug too
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Known to fail| |3.4.2
Last reconfirmed|0000-00-00 00:00:00 |2004-08-25 07:11:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (2 preceding siblings ...)
2004-08-25 7:11 ` amodra at bigpond dot net dot au
@ 2004-08-25 11:21 ` amodra at bigpond dot net dot au
2004-08-26 0:03 ` geoffk at geoffk dot org
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-08-25 11:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From amodra at bigpond dot net dot au 2004-08-25 11:21 -------
Mainline fails similarly. The failure results from this splitter
(define_split
[(set (match_operand:DI 0 "nonimmediate_operand" "")
(match_operand:DI 1 "input_operand" ""))]
"reload_completed && !TARGET_POWERPC64
&& gpr_or_gpr_p (operands[0], operands[1])"
[(pc)]
{ rs6000_split_multireg_move (operands[0], operands[1]); DONE; })
The "input_operand" predicate accepts any memory operand as the second operand.
rs6000_split_multireg_move thus needs to accept anything that we accept in
rs6000_legitimate_address. For this particular failure, that's a
(mem (symbol_ref (...))), which happens to satisfy legitimate_small_data_p.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |amodra at bigpond dot net
|dot org |dot au
Status|NEW |ASSIGNED
Keywords| |patch
Known to fail|3.4.2 |3.4.2 3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (3 preceding siblings ...)
2004-08-25 11:21 ` amodra at bigpond dot net dot au
@ 2004-08-26 0:03 ` geoffk at geoffk dot org
2004-08-26 1:18 ` amodra at bigpond dot net dot au
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: geoffk at geoffk dot org @ 2004-08-26 0:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From geoffk at geoffk dot org 2004-08-26 00:03 -------
Subject: Re: using -msdata causes internal compiler error
"amodra at bigpond dot net dot au" <gcc-bugzilla@gcc.gnu.org> writes:
> ------- Additional Comments From amodra at bigpond dot net dot au 2004-08-25 11:21 -------
> Mainline fails similarly. The failure results from this splitter
>
> (define_split
> [(set (match_operand:DI 0 "nonimmediate_operand" "")
> (match_operand:DI 1 "input_operand" ""))]
> "reload_completed && !TARGET_POWERPC64
> && gpr_or_gpr_p (operands[0], operands[1])"
> [(pc)]
> { rs6000_split_multireg_move (operands[0], operands[1]); DONE; })
>
> The "input_operand" predicate accepts any memory operand as the second operand.
> rs6000_split_multireg_move thus needs to accept anything that we accept in
> rs6000_legitimate_address. For this particular failure, that's a
> (mem (symbol_ref (...))), which happens to satisfy legitimate_small_data_p.
It's probably the code under this comment:
/* We have now address involving an base register only.
If we use one of the registers to address memory,
we have change that register last. */
I expect the right thing to do is simply do
if (GET_CODE (breg) != SYMBOL_REF)
{
if (! REG_P (breg)) abort();
if (REGNO (breg) ...)
j = ...;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (4 preceding siblings ...)
2004-08-26 0:03 ` geoffk at geoffk dot org
@ 2004-08-26 1:18 ` amodra at bigpond dot net dot au
2004-08-26 1:20 ` cvs-commit at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-08-26 1:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From amodra at bigpond dot net dot au 2004-08-26 01:18 -------
More analysis in http://gcc.gnu.org/ml/gcc-patches/2004-08/msg02093.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (5 preceding siblings ...)
2004-08-26 1:18 ` amodra at bigpond dot net dot au
@ 2004-08-26 1:20 ` cvs-commit at gcc dot gnu dot org
2004-08-26 1:29 ` amodra at bigpond dot net dot au
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-08-26 1:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-08-26 01:20 -------
Subject: Bug 16480
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: amodra@gcc.gnu.org 2004-08-26 01:20:28
Modified files:
gcc : ChangeLog
gcc/config/rs6000: rs6000.c
Log message:
PR target/16480
* config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
as PLUS base regs.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5097&r2=2.5098
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&r1=1.700&r2=1.701
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (6 preceding siblings ...)
2004-08-26 1:20 ` cvs-commit at gcc dot gnu dot org
@ 2004-08-26 1:29 ` amodra at bigpond dot net dot au
2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-08-26 1:29 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.4.2 3.5.0 |3.2.3 3.3.4 3.4.0 3.4.1
| |3.4.2
Known to work| |3.5.0
Target Milestone|--- |3.4.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (7 preceding siblings ...)
2004-08-26 1:29 ` amodra at bigpond dot net dot au
@ 2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-08-29 18:12 -------
Postponed until GCC 3.4.3.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (8 preceding siblings ...)
2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
@ 2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
2004-11-01 0:47 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-08-29 18:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-08-29 18:14 -------
Postponed until GCC 3.4.3.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.2 |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (9 preceding siblings ...)
2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
@ 2004-11-01 0:47 ` mmitchel at gcc dot gnu dot org
2004-11-10 3:15 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-11-01 0:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-11-01 00:46 -------
Postponed until GCC 3.4.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.3 |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (10 preceding siblings ...)
2004-11-01 0:47 ` mmitchel at gcc dot gnu dot org
@ 2004-11-10 3:15 ` cvs-commit at gcc dot gnu dot org
2004-11-10 3:20 ` amodra at bigpond dot net dot au
2004-11-24 2:14 ` amodra at bigpond dot net dot au
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-10 3:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-10 03:14 -------
Subject: Bug 16480
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: amodra@gcc.gnu.org 2004-11-10 03:14:42
Modified files:
gcc : ChangeLog
gcc/config/rs6000: rs6000.c
Log message:
PR target/16480
2004-08-26 Alan Modra <amodra@bigpond.net.au>
* config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
as PLUS base regs.
2004-08-01 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
if trying to *store* to a non-offsettable address.
2004-07-30 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/rs6000.c (rs6000_split_multireg_move): Cope with
non-offsettable addresses being moved into multiple GPRs.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.682&r2=2.2326.2.683
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.576.2.33&r2=1.576.2.34
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (11 preceding siblings ...)
2004-11-10 3:15 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-10 3:20 ` amodra at bigpond dot net dot au
2004-11-24 2:14 ` amodra at bigpond dot net dot au
13 siblings, 0 replies; 15+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-11-10 3:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From amodra at bigpond dot net dot au 2004-11-10 03:20 -------
Fixed mainline and 3.4
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug target/16480] using -msdata causes internal compiler error
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
` (12 preceding siblings ...)
2004-11-10 3:20 ` amodra at bigpond dot net dot au
@ 2004-11-24 2:14 ` amodra at bigpond dot net dot au
13 siblings, 0 replies; 15+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-11-24 2:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From amodra at bigpond dot net dot au 2004-11-24 02:14 -------
*** Bug 17337 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |osv at javad dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16480
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2004-11-24 2:14 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-11 21:37 [Bug c/16480] New: using -msdata causes internal compiler error kurt at symbolicsound dot com
2004-07-11 21:39 ` [Bug c/16480] " kurt at symbolicsound dot com
2004-07-12 4:34 ` [Bug target/16480] " pinskia at gcc dot gnu dot org
2004-08-25 7:11 ` amodra at bigpond dot net dot au
2004-08-25 11:21 ` amodra at bigpond dot net dot au
2004-08-26 0:03 ` geoffk at geoffk dot org
2004-08-26 1:18 ` amodra at bigpond dot net dot au
2004-08-26 1:20 ` cvs-commit at gcc dot gnu dot org
2004-08-26 1:29 ` amodra at bigpond dot net dot au
2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
2004-08-29 18:16 ` mmitchel at gcc dot gnu dot org
2004-11-01 0:47 ` mmitchel at gcc dot gnu dot org
2004-11-10 3:15 ` cvs-commit at gcc dot gnu dot org
2004-11-10 3:20 ` amodra at bigpond dot net dot au
2004-11-24 2:14 ` amodra at bigpond dot net dot au
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).