public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/33726]  New: [4.3 Regression] Type checking error with address-of and volatile and arrays
@ 2007-10-10 13:26 rguenth at gcc dot gnu dot org
  2007-10-10 13:39 ` [Bug c/33726] " rguenth at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-10-10 13:26 UTC (permalink / raw)
  To: gcc-bugs

typedef unsigned int U032;
typedef volatile struct {
     U032 Monochrome[1];
     struct {
          U032 WidthHeight;
     } UnclippedRectangle[1];
} RivaBitmap;
void writel(void *);
void rivafb_fillrect(RivaBitmap *bm)
{
  writel(&bm->UnclippedRectangle[0].WidthHeight);
}

fbdev.3.i: In function 'rivafb_fillrect':
fbdev.3.i:11: warning: passing argument 1 of 'writel' discards qualifiers from
pointer target type
fbdev.3.i:10: error: type mismatch in address expression
volatile U032 *

U032 *

D.1551 = &bm->UnclippedRectangle[0].WidthHeight
fbdev.3.i:10: internal compiler error: verify_gimple failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: [4.3 Regression] Type checking error with address-of and
                    volatile and arrays
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, ice-checking
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

* [Bug c/33726] [4.3 Regression] Type checking error with address-of and volatile and arrays
  2007-10-10 13:26 [Bug middle-end/33726] New: [4.3 Regression] Type checking error with address-of and volatile and arrays rguenth at gcc dot gnu dot org
@ 2007-10-10 13:39 ` rguenth at gcc dot gnu dot org
  2007-10-11  8:11 ` rguenth at gcc dot gnu dot org
  2007-10-11  8:59 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-10-10 13:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2007-10-10 13:39 -------
The C FE strips qualifier in building the ARRAY_REF.  I have a patch.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
          Component|middle-end                  |c
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-10-10 13:39:34
               date|                            |


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


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

* [Bug c/33726] [4.3 Regression] Type checking error with address-of and volatile and arrays
  2007-10-10 13:26 [Bug middle-end/33726] New: [4.3 Regression] Type checking error with address-of and volatile and arrays rguenth at gcc dot gnu dot org
  2007-10-10 13:39 ` [Bug c/33726] " rguenth at gcc dot gnu dot org
@ 2007-10-11  8:11 ` rguenth at gcc dot gnu dot org
  2007-10-11  8:59 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-10-11  8:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2007-10-11 08:11 -------
Subject: Bug 33726

Author: rguenth
Date: Thu Oct 11 08:11:18 2007
New Revision: 129227

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129227
Log:
2007-10-11  Richard Guenther  <rguenther@suse.de>

        PR c/33726
        * c-typeck.c (build_array_ref): Do not strip qualifiers from
        the array element type.

        * gcc.dg/pr33726.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/pr33726.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c/33726] [4.3 Regression] Type checking error with address-of and volatile and arrays
  2007-10-10 13:26 [Bug middle-end/33726] New: [4.3 Regression] Type checking error with address-of and volatile and arrays rguenth at gcc dot gnu dot org
  2007-10-10 13:39 ` [Bug c/33726] " rguenth at gcc dot gnu dot org
  2007-10-11  8:11 ` rguenth at gcc dot gnu dot org
@ 2007-10-11  8:59 ` rguenth at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-10-11  8:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2007-10-11 08:59 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

end of thread, other threads:[~2007-10-11  8:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-10 13:26 [Bug middle-end/33726] New: [4.3 Regression] Type checking error with address-of and volatile and arrays rguenth at gcc dot gnu dot org
2007-10-10 13:39 ` [Bug c/33726] " rguenth at gcc dot gnu dot org
2007-10-11  8:11 ` rguenth at gcc dot gnu dot org
2007-10-11  8:59 ` 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).