public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/39059] [4.3/4.4 regression] ICE with fixed-point type in inline-asm
  2009-02-01 11:14 [Bug inline-asm/39059] New: [4.3/4.4 regression] ICE with fixed-point type in inline-asm reichelt at gcc dot gnu dot org
@ 2009-02-01 11:14 ` reichelt at gcc dot gnu dot org
  2009-02-01 13:16 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-02-01 11:14 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.3.4


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


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

* [Bug inline-asm/39059]  New: [4.3/4.4 regression] ICE with fixed-point type in inline-asm
@ 2009-02-01 11:14 reichelt at gcc dot gnu dot org
  2009-02-01 11:14 ` [Bug inline-asm/39059] " reichelt at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-02-01 11:14 UTC (permalink / raw)
  To: gcc-bugs

The following (IMHO valid) testcase triggers an ICE since GCC 4.3.0
(when fixed-point types were introduced):

============================================================
void foo()
{
  asm("" : : "r"(0r));
}
============================================================

bug.c: In function 'foo':
bug.c:4: internal compiler error: in init_move_cost, at reginfo.c:270
Please submit a full bug report, [etc.]

Technically, this is a regression since the code did not crash the
compiler before (because it was rejected earlier).


-- 
           Summary: [4.3/4.4 regression] ICE with fixed-point type in
                    inline-asm
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: inline-asm
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug inline-asm/39059] [4.3/4.4 regression] ICE with fixed-point type in inline-asm
  2009-02-01 11:14 [Bug inline-asm/39059] New: [4.3/4.4 regression] ICE with fixed-point type in inline-asm reichelt at gcc dot gnu dot org
  2009-02-01 11:14 ` [Bug inline-asm/39059] " reichelt at gcc dot gnu dot org
@ 2009-02-01 13:16 ` rguenth at gcc dot gnu dot org
  2009-02-03 10:07 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-02-01 13:16 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug inline-asm/39059] [4.3/4.4 regression] ICE with fixed-point type in inline-asm
  2009-02-01 11:14 [Bug inline-asm/39059] New: [4.3/4.4 regression] ICE with fixed-point type in inline-asm reichelt at gcc dot gnu dot org
  2009-02-01 11:14 ` [Bug inline-asm/39059] " reichelt at gcc dot gnu dot org
  2009-02-01 13:16 ` rguenth at gcc dot gnu dot org
@ 2009-02-03 10:07 ` jakub at gcc dot gnu dot org
  2009-02-03 17:27 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-03 10:07 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jakub at gcc dot gnu dot org  2009-02-03 10:06 -------
Similarly
__typeof (0r)
foo (void)
{
  return 0r;
}
ICEs on x86-64 and so does
_Fract foo (void)
{
  return 0r;
}
(the last one just as error-recovery ICE).  I'd say for
!targetm.fixed_point_supported_p () we should remove the loop hole that
fixed-point constants introduce fixed point types without any error, similarly
for C++ we should reject FIXED_CSTs, and to improve error-recovery, we
shouldn't used fixed point types after we've diagnosed we don't support them.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-02-03 10:06:51
               date|                            |


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


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

* [Bug inline-asm/39059] [4.3/4.4 regression] ICE with fixed-point type in inline-asm
  2009-02-01 11:14 [Bug inline-asm/39059] New: [4.3/4.4 regression] ICE with fixed-point type in inline-asm reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2009-02-03 10:07 ` jakub at gcc dot gnu dot org
@ 2009-02-03 17:27 ` jakub at gcc dot gnu dot org
  2009-02-03 19:30 ` [Bug inline-asm/39059] [4.3 " jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-03 17:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from jakub at gcc dot gnu dot org  2009-02-03 17:26 -------
Subject: Bug 39059

Author: jakub
Date: Tue Feb  3 17:26:28 2009
New Revision: 143900

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143900
Log:
        PR inline-asm/39059
        * c-parser.c (c_parser_postfix_expression): If fixed point is not
        supported, don't accept FIXED_CSTs.
        * c-decl.c (finish_declspecs): Error if fixed point is not supported
        and _Sat is used without _Fract/_Accum.  Set specs->type to
        integer_type_node for cts_fract/cts_accum if fixed point is not
        supported.

        * parser.c (cp_parser_primary_expression): Reject FIXED_CSTs.

        * gcc.dg/nofixed-point-2.c: New test.
        * g++.dg/ext/fixed1.C: Adjust expected diagnostics.
        * g++.dg/ext/fixed2.C: Likewise.
        * g++.dg/other/error25.C: Likewise.
        * g++.dg/lookup/crash7.C: Likewise.
        * g++.dg/cpp0x/decltype-38655.C: Likewise.

Added:
    trunk/gcc/testsuite/gcc.dg/nofixed-point-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-decl.c
    trunk/gcc/c-parser.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/decltype-38655.C
    trunk/gcc/testsuite/g++.dg/ext/fixed1.C
    trunk/gcc/testsuite/g++.dg/ext/fixed2.C
    trunk/gcc/testsuite/g++.dg/lookup/crash7.C
    trunk/gcc/testsuite/g++.dg/other/error25.C


-- 


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


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

* [Bug inline-asm/39059] [4.3 regression] ICE with fixed-point type in inline-asm
  2009-02-01 11:14 [Bug inline-asm/39059] New: [4.3/4.4 regression] ICE with fixed-point type in inline-asm reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2009-02-03 17:27 ` jakub at gcc dot gnu dot org
@ 2009-02-03 19:30 ` jakub at gcc dot gnu dot org
  2009-08-04 12:55 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:30 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-02-03 19:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2009-02-03 19:30 -------
Fixed on the trunk.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.3/4.4 regression] ICE    |[4.3 regression] ICE with
                   |with fixed-point type in    |fixed-point type in inline-
                   |inline-asm                  |asm


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


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

* [Bug inline-asm/39059] [4.3 regression] ICE with fixed-point type in inline-asm
  2009-02-01 11:14 [Bug inline-asm/39059] New: [4.3/4.4 regression] ICE with fixed-point type in inline-asm reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2009-02-03 19:30 ` [Bug inline-asm/39059] [4.3 " jakub at gcc dot gnu dot org
@ 2009-08-04 12:55 ` rguenth at gcc dot gnu dot org
  2010-05-22 18:30 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-08-04 12:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-08-04 12:29 -------
GCC 4.3.4 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.4                       |4.3.5


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


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

* [Bug inline-asm/39059] [4.3 regression] ICE with fixed-point type in inline-asm
  2009-02-01 11:14 [Bug inline-asm/39059] New: [4.3/4.4 regression] ICE with fixed-point type in inline-asm reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2009-08-04 12:55 ` rguenth at gcc dot gnu dot org
@ 2010-05-22 18:30 ` rguenth at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-22 18:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from rguenth at gcc dot gnu dot org  2010-05-22 18:13 -------
GCC 4.3.5 is being released, adjusting target milestone.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.3.5                       |4.3.6


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


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

end of thread, other threads:[~2010-05-22 18:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-01 11:14 [Bug inline-asm/39059] New: [4.3/4.4 regression] ICE with fixed-point type in inline-asm reichelt at gcc dot gnu dot org
2009-02-01 11:14 ` [Bug inline-asm/39059] " reichelt at gcc dot gnu dot org
2009-02-01 13:16 ` rguenth at gcc dot gnu dot org
2009-02-03 10:07 ` jakub at gcc dot gnu dot org
2009-02-03 17:27 ` jakub at gcc dot gnu dot org
2009-02-03 19:30 ` [Bug inline-asm/39059] [4.3 " jakub at gcc dot gnu dot org
2009-08-04 12:55 ` rguenth at gcc dot gnu dot org
2010-05-22 18:30 ` rguenth 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).