public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/40023]  New: type mismatch in address expression
@ 2009-05-05  6:40 happyarch at gmail dot com
  2009-05-05  6:41 ` [Bug c/40023] " happyarch at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: happyarch at gmail dot com @ 2009-05-05  6:40 UTC (permalink / raw)
  To: gcc-bugs

Hi, when i compiling Firefox trunk version, got error

include .i file.

TIA
======================================================
gcc -o prscanf.o -c -fvisibility=hidden     -Wall -pthread -O2 -fPIC  -UDEBUG 
-DMOZILLA_CLIENT=1 -DNDEBUG=1 -DHAVE_VISIBILITY_HIDDEN_ATTRIBUTE=1
-DHAVE_VISIBILITY_PRAGMA=1 -DXP_UNIX=1 
-D_GNU_SOURCE=1 -DHAVE_FCNTL_FILE_LOCKING=1 -DLINUX=1 -DHAVE_LCHOWN=1
-DHAVE_STRERROR=1 -D_REENTRANT=1  -DFORCE_PR_LOG -D_PR_PTHREADS
-UHAVE_CVAR_BUILT_ON_SEM -D_NSPR_BUILD_ -I/home/use
r/d/src/ff-opt/dist/include/nspr -I/home/user/d/src/nsprpub/pr/include
-I/home/user/d/src/nsprpub/pr/include/private 
/home/user/d/src/nsprpub/pr/src/io/prscanf.c
/home/user/d/src/nsprpub/pr/src/io/prscanf.c: In function :
/home/user/d/src/nsprpub/pr/src/io/prscanf.c:669: error: type mismatch in
address expression
struct  *

struct [1] *

D.5714 = &state->ap;

/home/user/d/src/nsprpub/pr/src/io/prscanf.c:669: error: type mismatch in
address expression
struct  *

struct [1] *

D.5714 = &state->ap;

/home/user/d/src/nsprpub/pr/src/io/prscanf.c:669: error: type mismatch in
address expression
struct  *

struct [1] *

D.5714 = &state->ap;

/home/user/d/src/nsprpub/pr/src/io/prscanf.c:669: error: type mismatch in
address expression
struct  *

struct [1] *

D.5714 = &state->ap;

/home/user/d/src/nsprpub/pr/src/io/prscanf.c:669: error: type mismatch in
address expression
struct  *

struct [1] *

D.5714 = &state->ap;

/home/user/d/src/nsprpub/pr/src/io/prscanf.c:669: error: type mismatch in
address expression
struct  *

struct [1] *

D.5714 = &state->ap;

/home/user/d/src/nsprpub/pr/src/io/prscanf.c:669: error: type mismatch in
address expression
struct  *

struct [1] *

D.5714 = &state->ap;

/home/user/d/src/nsprpub/pr/src/io/prscanf.c:669: 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.
bash-4.0$ cc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --prefix=/usr --libexecdir=/usr/lib
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu --enable-languages=c,c++ --disable-bootstrap
--disable-multilib
Thread model: posix
gcc version 4.5.0 20090504 (experimental) (GCC)


-- 
           Summary: type mismatch in address expression
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: happyarch at gmail dot com
 GCC build triplet: x86_64
  GCC host triplet: x86_64
GCC target triplet: x86_64


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


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

* [Bug c/40023] type mismatch in address expression
  2009-05-05  6:40 [Bug c/40023] New: type mismatch in address expression happyarch at gmail dot com
@ 2009-05-05  6:41 ` happyarch at gmail dot com
  2009-05-05  9:54 ` rguenth at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: happyarch at gmail dot com @ 2009-05-05  6:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from happyarch at gmail dot com  2009-05-05 06:40 -------
Created an attachment (id=17801)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17801&action=view)
.i file


-- 


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


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

* [Bug c/40023] type mismatch in address expression
  2009-05-05  6:40 [Bug c/40023] New: type mismatch in address expression happyarch at gmail dot com
  2009-05-05  6:41 ` [Bug c/40023] " happyarch at gmail dot com
@ 2009-05-05  9:54 ` rguenth at gcc dot gnu dot org
  2009-05-05 12:47 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-05  9:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2009-05-05 09:54 -------
Reducing.


-- 


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


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

* [Bug c/40023] type mismatch in address expression
  2009-05-05  6:40 [Bug c/40023] New: type mismatch in address expression happyarch at gmail dot com
  2009-05-05  6:41 ` [Bug c/40023] " happyarch at gmail dot com
  2009-05-05  9:54 ` rguenth at gcc dot gnu dot org
@ 2009-05-05 12:47 ` rguenth at gcc dot gnu dot org
  2009-05-05 14:28 ` [Bug middle-end/40023] " rguenth at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-05 12:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-05-05 12:47 -------
Confirmed.

typedef __builtin_va_list va_list;
typedef struct {
    va_list ap;
} ScanfState;
void
GetInt(ScanfState *state, long llval)
{
    *__builtin_va_arg(state->ap,long *) = llval;
    __builtin_va_end(state->ap);
}

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
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-05-05 12:47:11
               date|                            |


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


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

* [Bug middle-end/40023] type mismatch in address expression
  2009-05-05  6:40 [Bug c/40023] New: type mismatch in address expression happyarch at gmail dot com
                   ` (2 preceding siblings ...)
  2009-05-05 12:47 ` rguenth at gcc dot gnu dot org
@ 2009-05-05 14:28 ` rguenth at gcc dot gnu dot org
  2009-05-05 15:44 ` [Bug target/40023] [4.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-05 14:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-05-05 14:28 -------
Bah.  This va_list type stuff is exceptionally bad.  The backends expect the
bogus address form :/


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |middle-end


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


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

* [Bug target/40023] [4.5 Regression] type mismatch in address expression
  2009-05-05  6:40 [Bug c/40023] New: type mismatch in address expression happyarch at gmail dot com
                   ` (3 preceding siblings ...)
  2009-05-05 14:28 ` [Bug middle-end/40023] " rguenth at gcc dot gnu dot org
@ 2009-05-05 15:44 ` pinskia at gcc dot gnu dot org
  2009-05-05 16:09 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-05-05 15:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2009-05-05 15:44 -------
Which back-end expects that form?  Only x86-64 or others?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|middle-end                  |target
           Keywords|                            |ice-on-valid-code
            Summary|type mismatch in address    |[4.5 Regression] type
                   |expression                  |mismatch in address
                   |                            |expression
   Target Milestone|---                         |4.5.0


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


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

* [Bug target/40023] [4.5 Regression] type mismatch in address expression
  2009-05-05  6:40 [Bug c/40023] New: type mismatch in address expression happyarch at gmail dot com
                   ` (4 preceding siblings ...)
  2009-05-05 15:44 ` [Bug target/40023] [4.5 Regression] " pinskia at gcc dot gnu dot org
@ 2009-05-05 16:09 ` rguenth at gcc dot gnu dot org
  2009-05-05 16:10 ` [Bug middle-end/40023] " rguenth at gcc dot gnu dot org
  2009-05-06 17:48 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-05 16:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2009-05-05 16:08 -------
Subject: Bug 40023

Author: rguenth
Date: Tue May  5 16:08:24 2009
New Revision: 147127

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147127
Log:
2009-05-05  Richard Guenther  <rguenther@suse.de>

        PR middle-end/40023
        * builtins.c (gimplify_va_arg_expr): Properly build the
        address.

        * gcc.c-torture/compile/pr40023.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/compile/pr40023.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/40023] type mismatch in address expression
  2009-05-05  6:40 [Bug c/40023] New: type mismatch in address expression happyarch at gmail dot com
                   ` (5 preceding siblings ...)
  2009-05-05 16:09 ` rguenth at gcc dot gnu dot org
@ 2009-05-05 16:10 ` rguenth at gcc dot gnu dot org
  2009-05-06 17:48 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-05-05 16:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2009-05-05 16:10 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
          Component|target                      |middle-end
           Keywords|ice-on-valid-code           |
         Resolution|                            |FIXED
            Summary|[4.5 Regression] type       |type mismatch in address
                   |mismatch in address         |expression
                   |expression                  |


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


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

* [Bug middle-end/40023] type mismatch in address expression
  2009-05-05  6:40 [Bug c/40023] New: type mismatch in address expression happyarch at gmail dot com
                   ` (6 preceding siblings ...)
  2009-05-05 16:10 ` [Bug middle-end/40023] " rguenth at gcc dot gnu dot org
@ 2009-05-06 17:48 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-05-06 17:48 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from hjl at gcc dot gnu dot org  2009-05-06 17:47 -------
Subject: Bug 40023

Author: hjl
Date: Wed May  6 17:45:40 2009
New Revision: 147195

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147195
Log:
2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline:
        2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>

        PR middle-end/40021
        * gfortran.fortran-torture/execute/pr40021.f: New.

        2009-05-05  Richard Guenther  <rguenther@suse.de>

        PR middle-end/40023
        * gcc.c-torture/compile/pr40023.c: New testcase.

        2009-05-03  Richard Guenther  <rguenther@suse.de>

        PR c/39983
        * gcc.c-torture/compile/pr39983.c: New testcase.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr39983.c
      - copied unchanged from r147193,
trunk/gcc/testsuite/gcc.c-torture/compile/pr39983.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr40023.c
      - copied unchanged from r147194,
trunk/gcc/testsuite/gcc.c-torture/compile/pr40023.c
   
branches/gcc-4_4-branch/gcc/testsuite/gfortran.fortran-torture/execute/pr40021.f
      - copied unchanged from r147193,
trunk/gcc/testsuite/gfortran.fortran-torture/execute/pr40021.f
Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2009-05-06 17:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-05  6:40 [Bug c/40023] New: type mismatch in address expression happyarch at gmail dot com
2009-05-05  6:41 ` [Bug c/40023] " happyarch at gmail dot com
2009-05-05  9:54 ` rguenth at gcc dot gnu dot org
2009-05-05 12:47 ` rguenth at gcc dot gnu dot org
2009-05-05 14:28 ` [Bug middle-end/40023] " rguenth at gcc dot gnu dot org
2009-05-05 15:44 ` [Bug target/40023] [4.5 Regression] " pinskia at gcc dot gnu dot org
2009-05-05 16:09 ` rguenth at gcc dot gnu dot org
2009-05-05 16:10 ` [Bug middle-end/40023] " rguenth at gcc dot gnu dot org
2009-05-06 17:48 ` hjl 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).