public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17279] New: internal compiler error with 128 bit integers
@ 2004-09-02 9:12 amgastineau at yahoo dot fr
2004-09-02 9:21 ` [Bug c/17279] " jsm at polyomino dot org dot uk
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: amgastineau at yahoo dot fr @ 2004-09-02 9:12 UTC (permalink / raw)
To: gcc-bugs
arithmetic operations on 128 bit integers (TI mode) on Apple G5 computers with macos X 10.3.5
produce internal compiler error.
The program (buggcc341.c) is :
void main (void)
{
typedef unsigned __uint128_t __attribute__ (( __mode__ (__TI__)));
__uint128_t x,a,w;
x=a*w+a-w/a;
}
The intermediaire file (buggcc341.i) is :
# 1 "buggcc341.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "buggcc341.c"
void main (void)
{
typedef unsigned __uint128_t __attribute__ (( __mode__ (__TI__)));
__uint128_t x,a,w;
x=a*w+a-w/a;
}
Description of the execution of gcc
$ /Volumes/WORK/gastin/gcc341/bin/gcc -v -save-temps buggcc341.c
Reading specs from /Volumes/WORK/gastin/gcc341/lib/gcc/powerpc-apple-darwin7.5.0/3.4.1/specs
Configured with: ./configure --prefix=/Volumes/WORK/gastin/gcc341
Thread model: posix
gcc version 3.4.1
/Volumes/WORK/gastin/gcc341/libexec/gcc/powerpc-apple-darwin7.5.0/3.4.1/cc1 -E -quiet -v
-D__DYNAMIC__ buggcc341.c -fPIC -o buggcc341.i
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/Volumes/WORK/gastin/gcc341/lib/gcc/powerpc-apple-darwin7.5.0/
3.4.1/../../../../powerpc-apple-darwin7.5.0/include"
#include "..." search starts here:
#include <...> search starts here:
/Volumes/WORK/gastin/gcc341/include
/Volumes/WORK/gastin/gcc341/lib/gcc/powerpc-apple-darwin7.5.0/3.4.1/include
/usr/include
End of search list.
/Volumes/WORK/gastin/gcc341/libexec/gcc/powerpc-apple-darwin7.5.0/3.4.1/cc1 -fpreprocessed
buggcc341.i -fPIC -quiet -dumpbase buggcc341.c -auxbase buggcc341 -version -o buggcc341.s
GNU C version 3.4.1 (powerpc-apple-darwin7.5.0)
compiled by GNU C version 3.3 20030304 (Apple Computer, Inc. build 1666).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
buggcc341.c: In function `main':
buggcc341.c:2: warning: return type of 'main' is not `int'
buggcc341.c:5: internal compiler error: in expand_mult, at expmed.c:2654
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: internal compiler error with 128 bit integers
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: amgastineau at yahoo dot fr
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin7.5.0
GCC host triplet: powerpc-apple-darwin7.5.0
GCC target triplet: powerpc-apple-darwin7.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/17279] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
@ 2004-09-02 9:21 ` jsm at polyomino dot org dot uk
2004-09-02 17:03 ` [Bug target/17279] " pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jsm at polyomino dot org dot uk @ 2004-09-02 9:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From jsm at polyomino dot org dot uk 2004-09-02 09:20 -------
Subject: Re: New: internal compiler error with 128 bit integers
On Thu, 2 Sep 2004, amgastineau at yahoo dot fr wrote:
> typedef unsigned __uint128_t __attribute__ (( __mode__ (__TI__)));
On the platforms where such types might actually work, GCC provides
built-in __int128_t and __uint128_t typedefs. But:
(a) In any case, GCC should not give an internal compiler error.
(b) These types are never currently extended integer types within the
meaning of C99 (see the documentation of implementation-defined behavior
on mainline), although they may act quite similarly to such types.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
2004-09-02 9:21 ` [Bug c/17279] " jsm at polyomino dot org dot uk
@ 2004-09-02 17:03 ` pinskia at gcc dot gnu dot org
2004-09-03 7:59 ` amgastineau at yahoo dot fr
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-02 17:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-02 17:03 -------
Hmm, I think this is a regression but I could be wrong, the problem is that we semi-support TI mode
on powerpc-darwin but only -mpowerpc64.
Why I said semi is because we don't impement the libgcc part of the functions which would be easy to
add.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c |target
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Last reconfirmed|0000-00-00 00:00:00 |2004-09-02 17:03:08
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
2004-09-02 9:21 ` [Bug c/17279] " jsm at polyomino dot org dot uk
2004-09-02 17:03 ` [Bug target/17279] " pinskia at gcc dot gnu dot org
@ 2004-09-03 7:59 ` amgastineau at yahoo dot fr
2004-11-12 3:37 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: amgastineau at yahoo dot fr @ 2004-09-03 7:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From amgastineau at yahoo dot fr 2004-09-03 07:59 -------
If I compile the option -mpowerpc64, gcc compiles my code.
If I compile without the option -mpowerpc64, gcc reports an internal error (instead of reporting an
error on the type __int128_t )
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
` (2 preceding siblings ...)
2004-09-03 7:59 ` amgastineau at yahoo dot fr
@ 2004-11-12 3:37 ` pinskia at gcc dot gnu dot org
2004-11-12 3:57 ` [Bug target/17279] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 3:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-12 03:37 -------
Fixed in 3.4.3, we reject it:
t.c: In function 'main':
t.c:3: error: unable to emulate 'TI'
But if we don't do the typedef we still get an error:
t.c:4: internal compiler error: in expand_mult, at expmed.c:3001
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2004-09-02 17:03:08 |2004-11-12 03:37:24
date| |
Target Milestone|--- |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] [3.4/4.0 Regression] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
` (3 preceding siblings ...)
2004-11-12 3:37 ` pinskia at gcc dot gnu dot org
@ 2004-11-12 3:57 ` pinskia at gcc dot gnu dot org
2004-11-12 3:57 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 3:57 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.3 |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] [3.4/4.0 Regression] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
` (4 preceding siblings ...)
2004-11-12 3:57 ` [Bug target/17279] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-11-12 3:57 ` pinskia at gcc dot gnu dot org
2004-11-12 3:58 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 3:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-12 03:57 -------
This is a 3.4/4.0 regression as before HOST_WIDE_INT was not 64bits.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|internal compiler error with|[3.4/4.0 Regression]
|128 bit integers |internal compiler error with
| |128 bit integers
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] [3.4/4.0 Regression] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
` (5 preceding siblings ...)
2004-11-12 3:57 ` pinskia at gcc dot gnu dot org
@ 2004-11-12 3:58 ` pinskia at gcc dot gnu dot org
2004-11-12 4:33 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 3:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-12 03:58 -------
Created an attachment (id=7525)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7525&action=view)
patch which I am testing which should fix the remaining problem
Patch which I am going to test which should fix the problem even we don't do an
explicit typedef in the code.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] [3.4/4.0 Regression] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
` (6 preceding siblings ...)
2004-11-12 3:58 ` pinskia at gcc dot gnu dot org
@ 2004-11-12 4:33 ` pinskia at gcc dot gnu dot org
2004-11-14 18:54 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 4:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-12 04:33 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00937.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] [3.4/4.0 Regression] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
` (7 preceding siblings ...)
2004-11-12 4:33 ` pinskia at gcc dot gnu dot org
@ 2004-11-14 18:54 ` cvs-commit at gcc dot gnu dot org
2004-11-14 19:03 ` [Bug target/17279] [3.4 " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-11-14 18:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-11-14 18:54 -------
Subject: Bug 17279
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2004-11-14 18:54:19
Modified files:
gcc : ChangeLog c-common.c
Log message:
2004-11-14 Andrew Pinski <pinskia@physics.uc.edu>
PR c/17279
* c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
support TImode before adding __int128_t and __uint128_t types.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6335&r2=2.6336
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&r1=1.585&r2=1.586
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] [3.4 Regression] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
` (8 preceding siblings ...)
2004-11-14 18:54 ` cvs-commit at gcc dot gnu dot org
@ 2004-11-14 19:03 ` pinskia at gcc dot gnu dot org
2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
2005-08-23 2:08 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-14 19:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-14 19:03 -------
Fixed on the mainline but a number of things have to be backported to the 3.4 branch to get this fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pinskia at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
Summary|[3.4/4.0 Regression] |[3.4 Regression] internal
|internal compiler error with|compiler error with 128 bit
|128 bit integers |integers
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] [3.4 Regression] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
` (9 preceding siblings ...)
2004-11-14 19:03 ` [Bug target/17279] [3.4 " pinskia at gcc dot gnu dot org
@ 2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
2005-08-23 2:08 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:50 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.4 |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/17279] [3.4 Regression] internal compiler error with 128 bit integers
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
` (10 preceding siblings ...)
2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
@ 2005-08-23 2:08 ` pinskia at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-23 2:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-23 02:03 -------
This is invalid code and I have no interesting in back porting the whole infrastructure to 3.4.x so I am
closing as fixed for 4.0.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|3.4.5 |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17279
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2005-08-23 2:06 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-02 9:12 [Bug c/17279] New: internal compiler error with 128 bit integers amgastineau at yahoo dot fr
2004-09-02 9:21 ` [Bug c/17279] " jsm at polyomino dot org dot uk
2004-09-02 17:03 ` [Bug target/17279] " pinskia at gcc dot gnu dot org
2004-09-03 7:59 ` amgastineau at yahoo dot fr
2004-11-12 3:37 ` pinskia at gcc dot gnu dot org
2004-11-12 3:57 ` [Bug target/17279] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-12 3:57 ` pinskia at gcc dot gnu dot org
2004-11-12 3:58 ` pinskia at gcc dot gnu dot org
2004-11-12 4:33 ` pinskia at gcc dot gnu dot org
2004-11-14 18:54 ` cvs-commit at gcc dot gnu dot org
2004-11-14 19:03 ` [Bug target/17279] [3.4 " pinskia at gcc dot gnu dot org
2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
2005-08-23 2:08 ` pinskia at gcc dot gnu dot 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).