public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22311] New: internal compiler error: in c_common_type, at c-typeck.c:531
@ 2005-07-05 15:51 christophe dot monat at st dot com
  2005-07-05 15:52 ` [Bug c/22311] " christophe dot monat at st dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: christophe dot monat at st dot com @ 2005-07-05 15:51 UTC (permalink / raw)
  To: gcc-bugs

$  /apa/gnu/Linux-RH-7.2/gcc/gcc-4.0.0/bin/gcc  -O3 -march=pentium4 -mfpmath=sse
-fomit-frame-pointer -ffast-math -std=c99 -fshort-enums -Wall -Wno-unused
BlockRegion.i
/home/compwork/monat/Open64-1-7-0-B-Linux/CVSTop-LAO2/LAO_PRO/lao/PFA/BlockRegion.xcc:
In function 'BlockRegion_findInvariants':
/home/compwork/monat/Open64-1-7-0-B-Linux/CVSTop-LAO2/LAO_PRO/lao/PFA/BlockRegion.xcc:1017:
internal compiler error: in c_common_type, at c-typeck.c:531
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: in c_common_type, at c-
                    typeck.c:531
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: christophe dot monat at st dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c/22311] internal compiler error: in c_common_type, at c-typeck.c:531
  2005-07-05 15:51 [Bug c/22311] New: internal compiler error: in c_common_type, at c-typeck.c:531 christophe dot monat at st dot com
@ 2005-07-05 15:52 ` christophe dot monat at st dot com
  2005-07-05 16:04 ` [Bug c/22311] [4.0/4.1 Regression] internal compiler error: in c_common_type (-fshort-enums) pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: christophe dot monat at st dot com @ 2005-07-05 15:52 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From christophe dot monat at st dot com  2005-07-05 15:52 -------
Created an attachment (id=9207)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9207&action=view)
Preprocessed input file to reproduce bug


-- 


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


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

* [Bug c/22311] [4.0/4.1 Regression] internal compiler error: in c_common_type (-fshort-enums)
  2005-07-05 15:51 [Bug c/22311] New: internal compiler error: in c_common_type, at c-typeck.c:531 christophe dot monat at st dot com
  2005-07-05 15:52 ` [Bug c/22311] " christophe dot monat at st dot com
@ 2005-07-05 16:04 ` pinskia at gcc dot gnu dot org
  2005-07-31 23:41 ` jsm28 at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-05 16:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-05 16:04 -------
Confirmed, reduced testcase:
typedef enum {
  IssueItemFlag_Discard = 0x1
} IssueItemFlag;
void
BlockRegion_findInvariants(IssueItemFlag invariant, unsigned char a)
{
  a |= invariant;
}

Only -fshort-enums is needed to reproduce the bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
  GCC build triplet|i686-pc-linux-gnu           |i686-pc-linux-gnu
   GCC host triplet|i686-pc-linux-gnu           |i686-pc-linux-gnu
 GCC target triplet|i686-pc-linux-gnu           |i686-pc-linux-gnu
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.0.0 4.1.0
      Known to work|                            |3.4.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-07-05 16:04:30
               date|                            |
            Summary|internal compiler error: in |[4.0/4.1 Regression]
                   |c_common_type, at c-        |internal compiler error: in
                   |typeck.c:531                |c_common_type (-fshort-
                   |                            |enums)
   Target Milestone|---                         |4.0.2


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


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

* [Bug c/22311] [4.0/4.1 Regression] internal compiler error: in c_common_type (-fshort-enums)
  2005-07-05 15:51 [Bug c/22311] New: internal compiler error: in c_common_type, at c-typeck.c:531 christophe dot monat at st dot com
  2005-07-05 15:52 ` [Bug c/22311] " christophe dot monat at st dot com
  2005-07-05 16:04 ` [Bug c/22311] [4.0/4.1 Regression] internal compiler error: in c_common_type (-fshort-enums) pinskia at gcc dot gnu dot org
@ 2005-07-31 23:41 ` jsm28 at gcc dot gnu dot org
  2005-08-01  1:29 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-07-31 23:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jsm28 at gcc dot gnu dot org  2005-07-31 22:57 -------
Testing a patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jsm28 at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2005-07-05 16:04:30         |2005-07-31 22:57:37
               date|                            |


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


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

* [Bug c/22311] [4.0/4.1 Regression] internal compiler error: in c_common_type (-fshort-enums)
  2005-07-05 15:51 [Bug c/22311] New: internal compiler error: in c_common_type, at c-typeck.c:531 christophe dot monat at st dot com
                   ` (2 preceding siblings ...)
  2005-07-31 23:41 ` jsm28 at gcc dot gnu dot org
@ 2005-08-01  1:29 ` cvs-commit at gcc dot gnu dot org
  2005-08-01  1:34 ` cvs-commit at gcc dot gnu dot org
  2005-08-01  1:40 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-01  1:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-01 01:29 -------
Subject: Bug 22311

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	jsm28@gcc.gnu.org	2005-08-01 01:29:07

Modified files:
	gcc            : ChangeLog c-typeck.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: pr22311-1.c 

Log message:
	PR c/22311
	* c-typeck.c (build_binary_op): Use common_type wrapper on
	shortened types.
	(common_type): Update comment.
	
	testsuite:
	* gcc.dg/pr22311-1.c : New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9619&r2=2.9620
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&r1=1.472&r2=1.473
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5861&r2=1.5862
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr22311-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug c/22311] [4.0/4.1 Regression] internal compiler error: in c_common_type (-fshort-enums)
  2005-07-05 15:51 [Bug c/22311] New: internal compiler error: in c_common_type, at c-typeck.c:531 christophe dot monat at st dot com
                   ` (3 preceding siblings ...)
  2005-08-01  1:29 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-01  1:34 ` cvs-commit at gcc dot gnu dot org
  2005-08-01  1:40 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-01  1:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-01 01:34 -------
Subject: Bug 22311

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	jsm28@gcc.gnu.org	2005-08-01 01:34:14

Modified files:
	gcc            : ChangeLog c-typeck.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/gcc.dg: pr22311-1.c 

Log message:
	PR c/22311
	* c-typeck.c (build_binary_op): Use common_type wrapper on
	shortened types.
	(common_type): Update comment.
	
	testsuite:
	* gcc.dg/pr22311-1.c : New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.343&r2=2.7592.2.344
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.419.2.10&r2=1.419.2.11
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.313&r2=1.5084.2.314
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/pr22311-1.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1



-- 


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


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

* [Bug c/22311] [4.0/4.1 Regression] internal compiler error: in c_common_type (-fshort-enums)
  2005-07-05 15:51 [Bug c/22311] New: internal compiler error: in c_common_type, at c-typeck.c:531 christophe dot monat at st dot com
                   ` (4 preceding siblings ...)
  2005-08-01  1:34 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-01  1:40 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-01  1:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-01 01:40 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2005-08-01  1:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-05 15:51 [Bug c/22311] New: internal compiler error: in c_common_type, at c-typeck.c:531 christophe dot monat at st dot com
2005-07-05 15:52 ` [Bug c/22311] " christophe dot monat at st dot com
2005-07-05 16:04 ` [Bug c/22311] [4.0/4.1 Regression] internal compiler error: in c_common_type (-fshort-enums) pinskia at gcc dot gnu dot org
2005-07-31 23:41 ` jsm28 at gcc dot gnu dot org
2005-08-01  1:29 ` cvs-commit at gcc dot gnu dot org
2005-08-01  1:34 ` cvs-commit at gcc dot gnu dot org
2005-08-01  1:40 ` 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).