[Bug c/22014] New: ICE in do_structure_copy, at tree-ssa-structalias.c:2363

2005-06-11 Thread marcus at jet dot franken dot de
following code (extracted from WINE) fails in HEAD branch with: 
 
/home/marcus/projects/gcc/BIN/bin/gcc -c -O2 server.i  
server.i: In function 'f': 
server.i:17: internal compiler error: in do_structure_copy, at 
tree-ssa-structalias.c:2363 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See http://gcc.gnu.org/bugs.html> for instructions.

-- 
   Summary: ICE in do_structure_copy, at tree-ssa-structalias.c:2363
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marcus at jet dot franken dot de
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=22014


[Bug c/22014] ICE in do_structure_copy, at tree-ssa-structalias.c:2363

2005-06-11 Thread marcus at jet dot franken dot de

--- Additional Comments From marcus at jet dot franken dot de  2005-06-11 
07:16 ---
Created an attachment (id=9068)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9068&action=view)
server.i

gcc -c -O2 server.i

-- 


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


[Bug c/22014] ICE in do_structure_copy, at tree-ssa-structalias.c:2363

2005-06-11 Thread steven at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||dberlin at gcc dot gnu dot
   ||org
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-06-11 08:50:31
   date||


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


[Bug c/22013] ICE in gimple_add_tmp_var, at gimplify.c:535

2005-06-11 Thread steven at gcc dot gnu dot org

--- Additional Comments From steven at gcc dot gnu dot org  2005-06-11 
09:11 ---
Problem seems to be that the C front end assumes something without 
a DECL_NAME is not yet in the unexpanded variables list.  Don't ask 
me why :-/ 
 
Hack: 
 
Index: c-gimplify.c 
=== 
RCS file: /cvs/gcc/gcc/gcc/c-gimplify.c,v 
retrieving revision 2.30 
diff -u -3 -p -r2.30 c-gimplify.c 
--- c-gimplify.c1 Jun 2005 02:50:51 -   2.30 
+++ c-gimplify.c11 Jun 2005 09:10:51 - 
@@ -185,9 +185,11 @@ gimplify_compound_literal_expr (tree *ex 
   tree decl = DECL_EXPR_DECL (decl_s); 
 
   /* This decl isn't mentioned in the enclosing block, so add it to the 
- list of temps.  FIXME it seems a bit of a kludge to say that 
- anonymous artificial vars aren't pushed, but everything else is.  */ 
-  if (DECL_NAME (decl) == NULL_TREE) 
+ list of temps if it is not already in that list. 
+ FIXME it seems a bit of a kludge to say that anonymous artificial 
+ vars aren't pushed, but everything else is.  */ 
+  if (DECL_NAME (decl) == NULL_TREE 
+  && !DECL_SEEN_IN_BIND_EXPR_P (decl)) 
 gimple_add_tmp_var (decl); 
 
   gimplify_and_add (decl_s, pre_p); 
 

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-06-11 09:11:54
   date||


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


[Bug fortran/19926] Incorrect rank with PARAMETER and array element.

2005-06-11 Thread eedelman at acclab dot helsinki dot fi

--- Additional Comments From eedelman at acclab dot helsinki dot fi  
2005-06-11 09:39 ---
(In reply to comment #4) 
> I tested the attached patch, which is equivalent to Erik's
> patch with the exception that I remove an unnecesary \n in
> the conditional of the if ().
> 
> I've also attached a test case.  If no one has any objections,
> I'll apply the patch after my current regression test completes.

Just to elaborate on what I meant with suspecting thet the patch only hides the
problem instead of solving it.

One thing that slightly worries my is, why isn't e->rank zero by itself?  If you
make string_comp in the fortran code a PROGRAM instead of SUBROUTINE, e->rank
_is_ zero (even without the patch).  I feel there is something fishy going on,
and I don't feel completely comfortable with the patch before I know what it is.

-- 


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


[Bug libstdc++/21951] [4.0 only] std::vector.reserve() unusable with -Werror -Wall -O -fno-exceptions

2005-06-11 Thread dank at kegel dot com

--- Additional Comments From dank at kegel dot com  2005-06-11 11:25 ---
OK, I'm testing a patch now.

-- 


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


[Bug fortran/19926] Incorrect rank with PARAMETER and array element.

2005-06-11 Thread eedelman at acclab dot helsinki dot fi

--- Additional Comments From eedelman at acclab dot helsinki dot fi  
2005-06-11 12:43 ---
(In reply to comment #7) 
> One thing that slightly worries my is, why isn't e->rank zero by itself?  If 
> you
> make string_comp in the fortran code a PROGRAM instead of SUBROUTINE, e->rank
> _is_ zero (even without the patch).  I feel there is something fishy going on,
> and I don't feel completely comfortable with the patch before I know what it 
> is.

Ok, I've messed up a bit -- when I changed SUBROUTINE to PROGRAM, I did some
other changes to the code as well.  Apperantly, it was one of those other
changes that made it work.  I have no objections against applying the patch.

-- 


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


[Bug fortran/19926] Incorrect rank with PARAMETER and array element.

2005-06-11 Thread sgk at troutmask dot apl dot washington dot edu

--- Additional Comments From sgk at troutmask dot apl dot washington dot 
edu  2005-06-11 13:49 ---
Subject: Re:  Incorrect rank with PARAMETER and array element.

On Sat, Jun 11, 2005 at 09:39:13AM -, eedelman at acclab dot helsinki dot 
fi wrote:
> 
> Just to elaborate on what I meant with suspecting thet the patch only hides 
> the
> problem instead of solving it.
> 
> One thing that slightly worries my is, why isn't e->rank zero by itself?

You might be right that this is papering over the true bug.

The code looks like 

  case FL_PARAMETER:
if (sym->value && sym->value->expr_type != EXPR_ARRAY)
  {
 e = gfc_copy_expr (sym->value);
 e->rank = 0;
  }

e = gfc_copy_expr (sym->value) literally copies the sym->value expression
node into the e expression node.  sym->value->rank is 1.  We've probably
kludged around the bug by setting e->rank = 0.  So, how do we get here.
sym->value->expr_type == EXPR_CONSTANT because of PARAMETER in "REAL,
PARAMETER :: map(0:50) = 0".  I'll look at this sometime today.



-- 


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


[Bug other/22015] New: ICE in do_structure_copy, at tree-ssa-structalias.c:2363

2005-06-11 Thread pluto at agmk dot net
gcc-4.1.0-20050610 
 
$ gcc imake.i -c -O  
imake.c: In function 'doit':  
imake.c:790: internal compiler error: in do_structure_copy, 
 at tree-ssa-structalias.c:2363

-- 
   Summary: ICE in do_structure_copy, at tree-ssa-structalias.c:2363
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: other
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pluto at agmk dot net
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pld-linux
  GCC host triplet: i686-pld-linux
GCC target triplet: i686-pld-linux


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


[Bug other/22015] ICE in do_structure_copy, at tree-ssa-structalias.c:2363

2005-06-11 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2005-06-11 13:51 ---
Created an attachment (id=9069)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9069&action=view)
testcase


-- 


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


[Bug tree-optimization/21933] [4.1 regression] ICE with -ftree-vectorize

2005-06-11 Thread reichelt at gcc dot gnu dot org

--- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-11 
14:04 ---
Fixed by Keith's patch.


-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug c++/10611] operations on vector mode not recognized in C++

2005-06-11 Thread bert dot hubert at netherlabs dot nl

--- Additional Comments From bert dot hubert at netherlabs dot nl  
2005-06-11 14:13 ---
Subject: Re:  operations on vector mode not recognized in C++

Updated http://ds9a.nl/gcc-simd/ to this effect, thanks.

On Sat, Jun 11, 2005 at 12:20:03AM -, aldyh at gcc dot gnu dot org wrote:
> 
> --- Additional Comments From aldyh at gcc dot gnu dot org  2005-06-11 
> 00:20 ---
> Fixed on mainline.  Backported to 3.4.  4.0 patch will be committed once the
> branch is opened.
> 
> -- 
>What|Removed |Added
> 
>  Status|ASSIGNED|RESOLVED
>  Resolution||FIXED
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10611
> 
> --- You are receiving this mail because: ---
> You are on the CC list for the bug, or are watching someone who is.
> 
> 
> !DSPAM:42aa2e35254161288245759!



-- 


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


[Bug c/22016] New: ICE while compiling CVS postgres

2005-06-11 Thread ahaas at airmail dot net
Builds from the last couple of days have ICE'd while trying to compile CVS 
postgres:

gcc -v -save-temps -O2 -march=athlon -std=gnu99 -finline-limit=10 -Wall
-Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wold-style-definition -Wendif-labels -fno-strict-aliasing
-I../../../src/include -I/home/arth/src/pgsql/src/include -D_GNU_SOURCE   -c -o
pgstat.o /home/arth/src/pgsql/src/backend/postmaster/pgstat.c
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /home/arth/src/gcc/configure --prefix=/opt/gnu
--enable-__cxa_atexit --enable-threads=posix --enable-languages=c,c++,objc
--with-system-zlib --disable-checking
Thread model: posix
gcc version 4.1.0 20050611 (experimental)
 /opt/gnu/libexec/gcc/i686-pc-linux-gnu/4.1.0/cc1 -E -quiet -v
-I../../../src/include -I/home/arth/src/pgsql/src/include -D_GNU_SOURCE
/home/arth/src/pgsql/src/backend/postmaster/pgstat.c -march=athlon -std=gnu99
-Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wold-style-definition -Wendif-labels -finline-limit=10 -fno-strict-aliasing
-O2 -fpch-preprocess -o pgstat.i
ignoring nonexistent directory
"/opt/gnu/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 ../../../src/include
 /home/arth/src/pgsql/src/include
 /usr/local/include
 /opt/gnu/include
 /opt/gnu/lib/gcc/i686-pc-linux-gnu/4.1.0/include
 /usr/include
End of search list.
 /opt/gnu/libexec/gcc/i686-pc-linux-gnu/4.1.0/cc1 -fpreprocessed pgstat.i -quiet
-dumpbase pgstat.c -march=athlon -auxbase-strip pgstat.o -O2 -Wall
-Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wold-style-definition -Wendif-labels -std=gnu99 -version -finline-limit=10
-fno-strict-aliasing -o pgstat.s
GNU C version 4.1.0 20050611 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 4.1.0 20050611 (experimental).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129452
Compiler executable checksum: 6dc05d29ea7052439abf3d79a314377d
/home/arth/src/pgsql/src/backend/postmaster/pgstat.c: In function
‘pgstat_init’:/home/arth/src/pgsql/src/backend/postmaster/pgstat.c:203: internal
compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

Pre-processed file 'pgstat.i' will be attached in follow up.

The regression probably occurred within the last week as I was able to build CVS
postgres with CVS GCC in the beginning of June.

-- 
   Summary: ICE while compiling CVS postgres
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ahaas at airmail dot net
CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu


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


[Bug c/22016] ICE while compiling CVS postgres

2005-06-11 Thread ahaas at airmail dot net

--- Additional Comments From ahaas at airmail dot net  2005-06-11 14:16 
---
Created an attachment (id=9070)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9070&action=view)
Preprocessed file producing ICE

Pre-processed file compressed with gzip as it is large.

-- 


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


[Bug tree-optimization/21884] [4.1 regression] ICE with -ftree-vectorize

2005-06-11 Thread reichelt at gcc dot gnu dot org

--- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-11 
14:19 ---
All three testcases (from comment #1, #4, and #7)
got fixed by Keith's patch.


-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED


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


[Bug tree-optimization/21155] [4.1 Regression] ICE in ssa tree check compiling crafty with -ftree-vectorize -maltivec

2005-06-11 Thread reichelt at gcc dot gnu dot org

--- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-11 
14:22 ---
Janis, since Keith's patch went in, could you please retry
with the current sources?


-- 


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


[Bug c/22017] New: Error to pass struct parameter when compile with mingw's gcc.exe using "-march=i386 -mrtd" flags

2005-06-11 Thread lyuzhou at 21cn dot com
System type: Microsoft Windows 2000 [Version 5.00.2195]

Sources file for reproducing the bug:
= main.cpp (begin) =
extern "C" void __cdecl _assert (const char*, const char*, int);
#define assert(e)   ((e) ? (void)0 : _assert(#e, __FILE__, __LINE__))

struct st_t {
int m_i;
char m_ch[260];
};

void foo(int *pInt, struct st_t st)
{
assert(*pInt == 123);
}

int main()
{
int i = 123;

struct st_t st;
st.m_i = 1;
st.m_ch[0] = 0;

foo(&i, st);
return 0;
}
= main.cpp (end) =

Error output when execute the object file(a.exe):
= error (begin) ===
Assertion failed: *pInt == 123, file main.cpp, line 11

abnormal program termination
= error (end) ===

The command line and other information:
== compile information (begin) 
>gcc -v -save-temps -march=i386 -mrtd main.cpp
Reading specs from 
D:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --
host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --
enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-
shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x -
-enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-
synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.4 (mingw special)
 D:/Elastos/extern/gnuSDK.x86/bin/../libexec/gcc/mingw32/3.4.4/cc1plus.exe -E -
quiet -v -iprefix D:\Elastos\extern\gnuSDK.x86\bin/../lib/gcc/mingw32/3.4.4/ 
main.cpp -march=i386 -mrtd -o main.ii
ignoring nonexistent 
directory "D:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/../../../..
/mingw32/include"
ignoring nonexistent 
directory "/mingw/lib/gcc/mingw32/../../../include/c++/3.4.4"
ignoring nonexistent 
directory "/mingw/lib/gcc/mingw32/../../../include/c++/3.4.4/mingw32"
ignoring nonexistent 
directory "/mingw/lib/gcc/mingw32/../../../include/c++/3.4.4/backward"
ignoring nonexistent directory "/mingw/lib/gcc/mingw32/3.4.4/include"
ignoring nonexistent directory "/mingw/lib/gcc/mingw32/../../../mingw32/include"
#include "..." search starts here:
#include <...> search starts here:
 
D:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c+
+/3.4.4
 
D:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c+
+/3.4.4/mingw32
 
D:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/../../../../include/c+
+/3.4.4/backward
 D:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/../../../../include
 D:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/include
 /mingw/lib/gcc/mingw32/../../../include
 /mingw/include
 /mingw/include
End of search list.
 D:/Elastos/extern/gnuSDK.x86/bin/../libexec/gcc/mingw32/3.4.4/cc1plus.exe -
fpreprocessed main.ii -quiet -dumpbase main.cpp -march=i386 -mrtd -auxbase 
main -version -o main.s
GNU C++ version 3.4.4 (mingw special) (mingw32)
compiled by GNU C version 3.4.4.
GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32614
 
D:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/../../../../mingw32/bi
n/as.exe -o main.o main.s
 D:/Elastos/extern/gnuSDK.x86/bin/../libexec/gcc/mingw32/3.4.4/collect2.exe -
Bdynamic /mingw/lib/crt2.o 
D:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/crtbegin.o -
LD:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4 -
LD:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc -
LD:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/../../../../mingw32/l
ib -L/mingw/lib/gcc/mingw32/../../../mingw32/lib -L/mingw/lib -
LD:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/../../.. -
L/mingw/lib/gcc/mingw32/../.. main.o -lmingw32 -lgcc -lmoldname -lmingwex -
lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -
lmingwex -lmsvcrt 
D:/Elastos/extern/gnuSDK.x86/bin/../lib/gcc/mingw32/3.4.4/crtend.o
== compile information (end) 

-- 
   Summary: Error to pass struct parameter when compile with mingw's
gcc.exe using "-march=i386 -mrtd" flags
   Product: gcc
   Version: 3.4.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lyuzhou at 21cn dot com
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: Microsoft Windows 2000
  GCC host triplet: --host=mingw32
GCC target triplet: --target=mingw32


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


[Bug c/22017] Error to pass struct parameter when compile with mingw's gcc.exe using "-march=i386 -mrtd" flags

2005-06-11 Thread lyuzhou at 21cn dot com

--- Additional Comments From lyuzhou at 21cn dot com  2005-06-11 14:52 
---
The sources file MUST ".cpp" file, not ".c" file.
Must compile with BOTH two flags: "-march=i386 -mrtd".

Known to work:mingw gcc 3.3.3
Known to fail:mingw gcc 3.4.2  3.4.3  3.4.4

precompile file:
= main.ii (begin) ==
# 1 "main.cpp"
# 1 ""
# 1 ""
# 1 "main.cpp"
extern "C" void __attribute__((__cdecl__)) _assert (const char*, const char*, 
int);


struct st_t {
int m_i;
char m_ch[260];
};

void foo(int *pInt, struct st_t st)
{
((*pInt == 123) ? (void)0 : _assert("*pInt == 123", "main.cpp", 11));
}

int main()
{
int i = 123;

struct st_t st;
st.m_i = 1;
st.m_ch[0] = 0;

foo(&i, st);
return 0;
}
= main.ii (end) ==



-- 
   What|Removed |Added

  Known to fail||3.4.2 3.4.3 3.4.4
  Known to work||3.3.3


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


[Bug target/22017] Error to pass struct parameter when compile with mingw's gcc.exe using "-march=i386 -mrtd" flags

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

  Component|c   |target
   Keywords||ABI, wrong-code


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


[Bug tree-optimization/22014] [4.1 Regression] ICE in do_structure_copy, at tree-ssa-structalias.c:2363

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
14:56 ---
Confirmed.

-- 
   What|Removed |Added

  Component|c   |tree-optimization
   Keywords||ice-on-valid-code
   Last reconfirmed|2005-06-11 08:50:31 |2005-06-11 14:56:46
   date||
Summary|ICE in do_structure_copy, at|[4.1 Regression] ICE in
   |tree-ssa-structalias.c:2363 |do_structure_copy, at tree-
   ||ssa-structalias.c:2363
   Target Milestone|--- |4.1.0


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


[Bug c/22013] [4.0/4.1 Regression] ICE in gimple_add_tmp_var, at gimplify.c:535

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
14:58 ---
Confirmed.

-- 
   What|Removed |Added

 CC||pinskia 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   |
   Keywords||ice-on-valid-code
   Last reconfirmed|2005-06-11 09:11:54 |2005-06-11 14:58:56
   date||
Summary|ICE in gimple_add_tmp_var,  |[4.0/4.1 Regression] ICE in
   |at gimplify.c:535   |gimple_add_tmp_var, at
   ||gimplify.c:535
   Target Milestone|--- |4.0.1


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


[Bug other/22015] ICE in do_structure_copy, at tree-ssa-structalias.c:2363

2005-06-11 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2005-06-11 14:59 ---


*** This bug has been marked as a duplicate of 22014 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug tree-optimization/22014] [4.1 Regression] ICE in do_structure_copy, at tree-ssa-structalias.c:2363

2005-06-11 Thread pluto at agmk dot net

--- Additional Comments From pluto at agmk dot net  2005-06-11 14:59 ---
*** Bug 22015 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||pluto at agmk dot net


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


[Bug tree-optimization/22014] [4.1 Regression] ICE in do_structure_copy, at tree-ssa-structalias.c:2363

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
15:12 ---
*** Bug 22016 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||ahaas at airmail dot net


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


[Bug c/22016] ICE while compiling CVS postgres

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
15:12 ---
This is a dup of bug 22014, it has to due with __transparent_union__.

*** This bug has been marked as a duplicate of 22014 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug java/22011] converting jar files into .so library in win32

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Severity|critical|normal
   Keywords||ice-on-valid-code


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


[Bug tree-optimization/21963] [4.1 Regression] ICE (Segmentation fault) with -m64

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
15:19 ---
Patch here: .

-- 
   What|Removed |Added

URL||http://gcc.gnu.org/ml/gcc-
   ||patches/2005-
   ||06/msg00856.html
   Keywords||patch


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


[Bug middle-end/21728] [4.0/4.1 Regression] Nonlocal goto from an unused nested function

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
15:23 ---
Patch here: .

-- 
   What|Removed |Added

URL||http://gcc.gnu.org/ml/gcc-
   ||patches/2005-
   ||06/msg00737.html
   Keywords||patch


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


[Bug libgcj/21940] boehm-gc gctest fails on Solaris 10/x86

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Severity|critical|normal


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


[Bug libgcj/21942] boehm-gc doesn't compile on Solaris 10/amd64

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Severity|critical|normal


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


[Bug tree-optimization/22018] New: [4.1 Regression] VRP miscompiles multiply

2005-06-11 Thread pinskia at gcc dot gnu dot org
The following should not abort at any optimization level but does at -O2:
void abort (void);
void g(int);
void f(int l)
{
  unsigned i;
  for (i = 0; i < l; i++)
{
  int y = i;
  int z = y*-32;
  g(z);
}
}

void g(int i)
{
  static int x = 0;
  if (i == 0)
x ++;
  if (x > 1)
abort ();
}

int main(void)
{
  f(3);
  return 0;
}


This is reduced from the message at:
.

-- 
   Summary: [4.1 Regression] VRP miscompiles multiply
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Keywords: wrong-code, build
  Severity: critical
  Priority: P2
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug tree-optimization/22018] [4.1 Regression] VRP miscompiles multiply

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||ebotcazou at libertysurf dot
   ||fr


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


[Bug tree-optimization/22018] [4.1 Regression] VRP miscompiles multiply

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||dnovillo at gcc dot gnu dot
   ||org
   Target Milestone|--- |4.1.0


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


[Bug middle-end/21916] [4.1 Regression] ICE: segmentation fault in stage3

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
16:14 ---
This is most likely the same as PR 22018 which has a reduced testcase but since 
I don't have access to 
hppa-linux-gnu, I don't know for sure.

-- 
   What|Removed |Added

  BugsThisDependsOn||22018


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


[Bug tree-optimization/22018] [4.1 Regression] VRP miscompiles multiply

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

OtherBugsDependingO||21916
  nThis||


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


[Bug tree-optimization/22018] [4.1 Regression] VRP miscompiles multiply

2005-06-11 Thread ebotcazou at gcc dot gnu dot org

--- Additional Comments From ebotcazou at gcc dot gnu dot org  2005-06-11 
16:19 ---
Thanks Andrew!


-- 
   What|Removed |Added

 CC|ebotcazou at libertysurf dot|ebotcazou at gcc dot gnu dot
   |fr  |org
 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-06-11 16:19:58
   date||


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


[Bug middle-end/21916] [4.1 Regression] ICE: segmentation fault in stage3

2005-06-11 Thread dave at hiauly1 dot hia dot nrc dot ca

--- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  
2005-06-11 16:47 ---
Subject: Re:  [4.1 Regression] ICE: segmentation fault in stage3

> This is most likely the same as PR 22018 which has a reduced testcase but 
> since I don't have access to 
> hppa-linux-gnu, I don't know for sure.

I'll try the testcase.

Dave


-- 


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


[Bug middle-end/21985] [4.0/4.1 Regression] miscompiled or wrong code snippet?

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 Status|REOPENED|NEW


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


[Bug ada/22019] New: do_structure_copy ICE on Ada gnatlib

2005-06-11 Thread laurent at guerby dot net
../../xgcc -B../../  -c -g -O2 -fPIC  -W -Wall -gnatpg  g-socket.adb -o
g-socket.o
+===GNAT BUG DETECTED==+
| 4.1.0 20050610 (experimental) (x86_64-unknown-linux-gnu) GCC error:  |
| tree check: expected integer_cst, have cond_expr in  |
|do_structure_copy, at tree-ssa-structalias.c:2321 |
| Error detected at g-socket.adb:2236:1|

Works at -O0

-- 
   Summary: do_structure_copy ICE on Ada gnatlib
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Keywords: ice-on-valid-code
  Severity: normal
  Priority: P2
 Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: laurent at guerby dot net
CC: dberlin at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
dot org


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


[Bug tree-optimization/22019] [4.1 Regression] do_structure_copy ICE on Ada gnatlib

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
  BugsThisDependsOn||21959
  Component|ada |tree-optimization
Summary|do_structure_copy ICE on Ada|[4.1 Regression]
   |gnatlib |do_structure_copy ICE on Ada
   ||gnatlib
   Target Milestone|--- |4.1.0


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


[Bug tree-optimization/15353] [tree-ssa] Merge two "if"s if one subsumes the other.

2005-06-11 Thread rguenth at gcc dot gnu dot org

--- Additional Comments From rguenth at gcc dot gnu dot org  2005-06-11 
19:05 ---
And it should merge them, too, like for

 int g(void);
 int h(void);
 int f(int i, int j)
 {
   while (1)
   {
 if (i > j)
   break;
 if (i == j)
   break;
 return g();
   }
   return h();
 }


-- 
   What|Removed |Added

 CC||rguenth at tat dot physik
   ||dot uni-tuebingen dot de


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


[Bug tree-optimization/15353] [tree-ssa] Merge two "if"s if one subsumes the other.

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
19:16 ---
(In reply to comment #3)
> And it should merge them, too, like for

I better testcase which shows why we don't convert i > j || i == j into i >= j
which is reduced from Richard's tramp3d:
int g(void);
int h(void);
int f(int *i, int *j)
{
  while (1)
  {
if (*i > *j || *i == *j)
  break;
return g();
  }
  return h();
}


-- 


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


[Bug c/22020] New: Poor error message for invalid cast in initializer

2005-06-11 Thread ebotcazou at gcc dot gnu dot org
Compile

int a;
int b = (int)&a;
short c = (short)&a;

on a 32-bit platform:

[EMAIL PROTECTED]:~> gcc -S t.c 
t.c:3: error: initializer element is not constant


Reading C99 6.6 §7-10, I understand that the compiler is entitled to accept the
first initializer but not the second.  However I find the error message not very
helpful, especially in light of the other case.

The Sun Studio compiler issues:

gax% cc -S t.c
"t.c", line 3: an address is not allowed in a constant initializer for an
integral type whose size is smaller than the size of a pointer

which is much nicer.

-- 
   Summary: Poor error message for invalid cast in initializer
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Keywords: diagnostic
  Severity: enhancement
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ebotcazou at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug c/22020] Poor error message for invalid cast in constant initializer

2005-06-11 Thread ebotcazou at gcc dot gnu dot org


-- 
   What|Removed |Added

Summary|Poor error message for  |Poor error message for
   |invalid cast in initializer |invalid cast in constant
   ||initializer


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


[Bug libstdc++/21951] [4.0 only] std::vector.reserve() unusable with -Werror -Wall -O -fno-exceptions

2005-06-11 Thread dank at kegel dot com

--- Additional Comments From dank at kegel dot com  2005-06-11 19:29 ---
Created an attachment (id=9071)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9071&action=view)
proposed workaround


-- 


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


[Bug c/22020] Poor error message for invalid cast in constant initializer

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
19:38 ---
Confirmed.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-06-11 19:38:32
   date||


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


[Bug libfortran/21333] in_pack / in_unpack alignment issues

2005-06-11 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-11 
19:39 ---
Subject: Bug 21333

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-06-11 19:39:13

Modified files:
libgfortran: Makefile.in Makefile.am libgfortran.h 
libgfortran/m4 : in_pack.m4 in_unpack.m4 
libgfortran/runtime: in_pack_generic.c in_unpack_generic.c 
libgfortran/generated: in_pack_i4.c in_pack_i8.c in_unpack_i4.c 
   in_unpack_i8.c 
gcc/testsuite  : ChangeLog 
Added files:
libgfortran/generated: in_pack_c4.c in_pack_c8.c in_unpack_c4.c 
   in_unpack_c8.c 
gcc/testsuite/gfortran.fortran-torture/execute: in-pack.f90 

Log message:
2005-06-11  Thomas Koenig  <[EMAIL PROTECTED]>

PR libfortran/21333
* Makefile.am: Add in_pack_c4.c, in_pack_c8.c, in_unpack_c4.c
and in_unpack_c8.c.
* Makefile.in: Regenerate.
* libgfortran.h:  Declare internal_pack_c4, internal_pack_c8,
internal_unpack_c4 and internal_unpack_c8.
* m4/in_pack.m4: Use rtype_ccode insteald of rtype_kind
in function name.
Use sizeof (rtype_name) as size for memory allocation.
* m4/in_unpack.m4: Use rtype_ccode insteald of rtype_kind
in function name.
Use sizeof (rtype_name) for calculation of sizes for memcpy.
* runtime/in_pack_generic.c:  For real, integer and logical
call internal_pack_4 if size==4 and internal_pack_8 if
size==8.
For complex, call internal_pack_c4 if size==8 and
internal_pack_c8 if size==16.
* runtime/in_unpack_generic.c: For real, integer and logical
call internal_unpack_4 if size==4 and internal_unpack_8 if
size==8.
For complex, call internal_unpack_c4 if size==8 and
internal_unpack_c8 if size==16.
* generated/in_pack_i4.c:  Regenerated.
* generated/in_pack_i8.c:  Regenerated.
* generated/in_unpack_i4.c:  Regenerated.
* generated/in_unpack_i8.c:  Regenerated.
* generated/in_pack_c4.c:  New file.
* generated/in_pack_c8.c:  New file.
* generated/in_unpack_c4.c:  New file.
* generated/in_unpack_c8.c:  New file.

2005-05-11  Thomas Koenig  <[EMAIL PROTECTED]>

* gfortran.fortran-torture/execute/in-pack.f90:  New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/Makefile.in.diff?cvsroot=gcc&r1=1.36&r2=1.37
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/Makefile.am.diff?cvsroot=gcc&r1=1.35&r2=1.36
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/libgfortran.h.diff?cvsroot=gcc&r1=1.24&r2=1.25
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/m4/in_pack.m4.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/m4/in_unpack.m4.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/runtime/in_pack_generic.c.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/runtime/in_unpack_generic.c.diff?cvsroot=gcc&r1=1.6&r2=1.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/in_pack_c4.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/in_pack_c8.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/in_unpack_c4.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/in_unpack_c8.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/in_pack_i4.c.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/in_pack_i8.c.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/in_unpack_i4.c.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/generated/in_unpack_i8.c.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5621&r2=1.5622
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.fortran-torture/execute/in-pack.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


[Bug fortran/20786] Can't use AINT intrinsic with KIND parameter

2005-06-11 Thread jblomqvi at cc dot hut dot fi

--- Additional Comments From jblomqvi at cc dot hut dot fi  2005-06-11 
20:07 ---
Actually, ANINT also exhibits the same problem:

  implicit none
  real(4) :: r = 42.7, r2
  r2 = aint (r,kind=8)
  print *, 'aint: ', r2
  r2 = anint (r, kind=8)
  print *, 'anint: ', r2
  end

Prints out:

 aint:0.00
 anint:0.00


-- 


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


[Bug libfortran/21333] [4.0 only] in_pack / in_unpack alignment issues

2005-06-11 Thread tkoenig at gcc dot gnu dot org

--- Additional Comments From tkoenig at gcc dot gnu dot org  2005-06-11 
20:19 ---
Fixed in 4.1, waiting for 4.0 to reopen.

-- 
   What|Removed |Added

  Known to fail||4.0.1
  Known to work||4.1.0
Summary|in_pack / in_unpack |[4.0 only] in_pack /
   |alignment issues|in_unpack alignment issues
   Target Milestone|--- |4.0.2


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


[Bug libfortran/20930] [4.0 Regression] gfortran.dg/backspace.f execution test

2005-06-11 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-11 
20:21 ---
Subject: Bug 20930

CVSROOT:/cvs/gcc
Module name:gcc
Branch: gcc-4_0-branch
Changes by: [EMAIL PROTECTED]   2005-06-11 20:21:41

Modified files:
libgfortran: ChangeLog 
libgfortran/io : rewind.c 

Log message:
Backport from mainline:
PR libfortran/20930
* io/rewind.c (st_rewind): Flush the stream when resetting the mode
from WRITING to READING.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.163.2.48&r2=1.163.2.49
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libgfortran/io/rewind.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.9&r2=1.9.10.1



-- 


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


[Bug libfortran/21995] Problem using spread intrinsic

2005-06-11 Thread tkoenig at gcc dot gnu dot org

--- Additional Comments From tkoenig at gcc dot gnu dot org  2005-06-11 
20:46 ---
>From the .t02.original file:

real4 C.476 = 1.0e+0;
struct array1_real4 atmp.0;

atmp.0.dtype = 281;
atmp.0.data = 0B;
atmp.0.offset = 0;
atmp.0.dim[0].stride = 0;
_gfortran_spread (&atmp.0, &C.476, &C.477, &C.478);

The front end passes a pointer to a real where the
back end expects an array descriptor.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-06-11 20:46:39
   date||


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


[Bug tree-optimization/22019] [4.1 Regression] do_structure_copy ICE on Ada gnatlib

2005-06-11 Thread laurent at guerby dot net

--- Additional Comments From laurent at guerby dot net  2005-06-11 20:49 
---
gnattools hits the same ICE on two files, -O0 works there too. Now on to 
ACATS...

../../xgcc -B../../ -c -g -O2  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -fno-common  -gnatpg -gnata -I- -I../rts -I.
-I/home/guerby/work/gcc/version-head/gcc/ada
/home/guerby/work/gcc/version-head/gcc/ada/make.adb -o make.o
+===GNAT BUG DETECTED==+
| 4.1.0 20050610 (experimental) (x86_64-unknown-linux-gnu) GCC error:  |
| tree check: expected integer_cst, have cond_expr in  |
|do_structure_copy, at tree-ssa-structalias.c:2321 |
| Error detected at make.adb:7263:23   |


../../xgcc -B../../ -c -g -O2  -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -fno-common  -gnatpg -gnata -I- -I../rts -I.
-I/home/guerby/work/gcc/version-head/gcc/ada
/home/guerby/work/gcc/version-head/gcc/ada/prj-util.adb -o prj-util.o
+===GNAT BUG DETECTED==+
| 4.1.0 20050610 (experimental) (x86_64-unknown-linux-gnu) GCC error:  |
| tree check: expected integer_cst, have cond_expr in  |
|do_structure_copy, at tree-ssa-structalias.c:2321 |
| Error detected at prj-util.adb:668:1 |


-- 


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


[Bug fortran/22021] New: gfortran dies with Bus error

2005-06-11 Thread Russell dot Edwards at csiro dot au
Trying to compile the attached ancient fortran source file, gfortran dies with 
a bus error. g77 doesn't 
have a problem with it.

pksguest18:genutil>gfortran -v  -save-temps -O2 -c parpos.f -o parpos.o
Using built-in specs.
Target: powerpc-apple-darwin7.9.0
Configured with: ../gcc/configure --enable-languages=c++,f95
Thread model: posix
gcc version 4.1.0 20050517 (experimental)
 /usr/local/libexec/gcc/powerpc-apple-darwin7.9.0/4.1.0/f951 parpos.f -ffixed-fo
rm -fPIC -quiet -dumpbase parpos.f -auxbase-strip parpos.o -O2 -version -o parpo
s.s
GNU F95 version 4.1.0 20050517 (experimental) (powerpc-apple-darwin7.9.0)
compiled by GNU C version 3.3 20030304 (Apple Computer, Inc. build 1671)
.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
parpos.f: In function 'parpos':
parpos.f:100: internal compiler error: Bus error


The system is Mac OS X 10.3.9 with gcc 4.1.0 . 

A minimal test file with just the offending line and minimal declarations etc 
does not reproduce the 
bug.

-- 
   Summary: gfortran dies with Bus error
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Russell dot Edwards at csiro dot au
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.9.0
  GCC host triplet: powerpc-apple-darwin7.9.0
GCC target triplet: powerpc-apple-darwin7.9.0


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


[Bug fortran/22021] gfortran dies with Bus error

2005-06-11 Thread Russell dot Edwards at csiro dot au

--- Additional Comments From Russell dot Edwards at csiro dot au  
2005-06-11 21:39 ---
Created an attachment (id=9072)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9072&action=view)
source code


-- 


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


[Bug fortran/15966] ICE and segmentation fault on internal write

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
21:54 ---
*** Bug 22021 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||Russell dot Edwards at csiro
   ||dot au


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


[Bug fortran/22021] gfortran dies with Bus error

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
21:54 ---
Reduces down to PR 15966.

*** This bug has been marked as a duplicate of 15966 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug tree-optimization/22019] [4.1 Regression] do_structure_copy ICE on Ada gnatlib

2005-06-11 Thread laurent at guerby dot net

--- Additional Comments From laurent at guerby dot net  2005-06-11 21:58 
---
2 ACATS tests with the same ICE:

c37213j
c37213l

+===GNAT BUG DETECTED==+
| 4.1.0 20050610 (experimental) (x86_64-unknown-linux-gnu) GCC error:  |
| tree check: expected integer_cst, have cond_expr in  |
|do_structure_copy, at tree-ssa-structalias.c:2321 |
| Error detected at c37213j.adb:320:5  |

+===GNAT BUG DETECTED==+
| 4.1.0 20050610 (experimental) (x86_64-unknown-linux-gnu) GCC error:  |
| tree check: expected integer_cst, have cond_expr in  |
|do_structure_copy, at tree-ssa-structalias.c:2321 |
| Error detected at c37213l.adb:329:5  |


-- 


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


[Bug ada/22022] New: ACATS ICE cxg1002 tree_split_edge, at tree-cfg.c:3025

2005-06-11 Thread laurent at guerby dot net
Andrew Pinski says it might be somewhat related to  PR21994

+===GNAT BUG DETECTED==+
| 4.1.0 20050610 (experimental) (x86_64-unknown-linux-gnu) GCC error:  |
| in tree_split_edge, at tree-cfg.c:3025   | 
| Error detected at cxg1002.adb:198:5  |

 0  internal_error (gmsgid=0xa9ac83 "in %s, at %s:%d") at
/home/guerby/work/gcc/version-head/gcc/diagnostic.c:528
 #1  0x0071c81c in fancy_abort (file=Variable "file" is not
available.
 ) at /home/guerby/work/gcc/version-head/gcc/diagnostic.c:588
 #2  0x00998e41 in tree_split_edge (edge_in=0x2a95eb2580) at
/home/guerby/work/gcc/version-head/gcc/tree-cfg.c:3025
 #3  0x00933faa in split_edge (e=Variable "e" is not available.
 ) at /home/guerby/work/gcc/version-head/gcc/cfghooks.c:407
 #4  0x0099d34f in tree_find_edge_insert_loc (e=0x2a95eb2580,
bsi=0x7fb4b0, new_bb=0x0)
 at /home/guerby/work/gcc/version-head/gcc/tree-cfg.c:2909
 #5  0x0099d726 in bsi_commit_one_edge_insert (e=Variable "e" is
not available.
 ) at /home/guerby/work/gcc/version-head/gcc/tree-cfg.c:2950
 #6  0x009a3b72 in bsi_commit_edge_inserts () at
/home/guerby/work/gcc/version-head/gcc/tree-cfg.c:2931
 #7  0x006a9a05 in tree_lower_complex () at
/home/guerby/work/gcc/version-head/gcc/tree-complex.c:1320

-- 
   Summary: ACATS ICE cxg1002 tree_split_edge, at tree-cfg.c:3025
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Keywords: ice-on-valid-code
  Severity: normal
  Priority: P2
 Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: laurent at guerby dot net
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug tree-optimization/22022] [4.1 Regression] ACATS ICE cxg1002 tree_split_edge, at tree-cfg.c:3025

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||rth at gcc dot gnu dot org,
   ||pinskia at gcc dot gnu dot
   ||org
  Component|ada |tree-optimization
Summary|ACATS ICE cxg1002   |[4.1 Regression] ACATS ICE
   |tree_split_edge, at tree-   |cxg1002 tree_split_edge, at
   |cfg.c:3025  |tree-cfg.c:3025
   Target Milestone|--- |4.1.0


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


[Bug fortran/21375] Rising run-time errors at DEALLOCATE with STAT clause

2005-06-11 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-11 
22:29 ---
Subject: Bug 21375

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-06-11 22:29:18

Modified files:
gcc/fortran: ChangeLog trans-array.c trans-array.h 
 trans-decl.c trans-stmt.c 

Log message:
PR fortran/17792
PR fortran/21375
* trans-array.c (gfc_array_deallocate): pstat is new argument
(gfc_array_allocate): update gfc_array_deallocate() call.
(gfc_trans_deferred_array): ditto.
* trans-array.h: update gfc_array_deallocate() prototype.
* trans-decl.c (gfc_build_builtin_function_decls): update declaration
* trans-stmt.c (gfc_trans_deallocate): Implement STAT= feature.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.459&r2=1.460
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&r1=1.48&r2=1.49
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.h.diff?cvsroot=gcc&r1=1.8&r2=1.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-decl.c.diff?cvsroot=gcc&r1=1.60&r2=1.61
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-stmt.c.diff?cvsroot=gcc&r1=1.32&r2=1.33



-- 


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


[Bug fortran/17792] deallocate does not return stat

2005-06-11 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-11 
22:29 ---
Subject: Bug 17792

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-06-11 22:29:18

Modified files:
gcc/fortran: ChangeLog trans-array.c trans-array.h 
 trans-decl.c trans-stmt.c 

Log message:
PR fortran/17792
PR fortran/21375
* trans-array.c (gfc_array_deallocate): pstat is new argument
(gfc_array_allocate): update gfc_array_deallocate() call.
(gfc_trans_deferred_array): ditto.
* trans-array.h: update gfc_array_deallocate() prototype.
* trans-decl.c (gfc_build_builtin_function_decls): update declaration
* trans-stmt.c (gfc_trans_deallocate): Implement STAT= feature.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.459&r2=1.460
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.c.diff?cvsroot=gcc&r1=1.48&r2=1.49
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-array.h.diff?cvsroot=gcc&r1=1.8&r2=1.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-decl.c.diff?cvsroot=gcc&r1=1.60&r2=1.61
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-stmt.c.diff?cvsroot=gcc&r1=1.32&r2=1.33



-- 


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


[Bug fortran/17792] deallocate does not return stat

2005-06-11 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-11 
22:33 ---
Subject: Bug 17792

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-06-11 22:33:11

Modified files:
gcc/testsuite  : ChangeLog 
Added files:
gcc/testsuite/gfortran.dg: deallocate_stat.f90 

Log message:
PR fortran/17792
PR fortran/21375
* gfortran.dg/deallocate_statO.f90:  New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5622&r2=1.5623
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/deallocate_stat.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


[Bug fortran/21375] Rising run-time errors at DEALLOCATE with STAT clause

2005-06-11 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-11 
22:33 ---
Subject: Bug 21375

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-06-11 22:33:11

Modified files:
gcc/testsuite  : ChangeLog 
Added files:
gcc/testsuite/gfortran.dg: deallocate_stat.f90 

Log message:
PR fortran/17792
PR fortran/21375
* gfortran.dg/deallocate_statO.f90:  New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5622&r2=1.5623
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/deallocate_stat.f90.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


[Bug tree-optimization/21994] [4.1 regression] complex throwing functions cause ICE

2005-06-11 Thread rth at gcc dot gnu dot org


-- 
   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |rth at gcc dot gnu dot org
   |dot org |
 Status|NEW |ASSIGNED
   Last reconfirmed|2005-06-10 15:22:57 |2005-06-11 22:35:19
   date||


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


[Bug fortran/22023] New: ICE in gfc_conv_descriptor_dtype at trans_array.c:177

2005-06-11 Thread c dot lemmen at fz-juelich dot de
ICE in Numerical Recipes nrutil module

joey:/opt/src/numrec-f90 carsten$ gfortran -v -c  src/nrtype.f90 src/nrutil.f90
src/nr.f90
Using built-in specs.
Target: powerpc-apple-darwin7.8.0
Configured with: ../gcc/configure --prefix=/usr/local/gfortran
--enable-languages=c,f95
Thread model: posix
gcc version 4.1.0 20050325 (experimental)
 /usr/local/gfortran/libexec/gcc/powerpc-apple-darwin7.8.0/4.1.0/f951
src/nrtype.f90 -fPIC -quiet -dumpbase nrtype.f90 -auxbase nrtype -version -o
/var/tmp//ccuRpGyu.s
GNU F95 version 4.1.0 20050325 (experimental) (powerpc-apple-darwin7.8.0)
compiled by GNU C version 3.3 20030304 (Apple Computer, Inc. build 
1640).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
 as -arch ppc -o nrtype.o /var/tmp//ccuRpGyu.s
 /usr/local/gfortran/libexec/gcc/powerpc-apple-darwin7.8.0/4.1.0/f951
src/nrutil.f90 -fPIC -quiet -dumpbase nrutil.f90 -auxbase nrutil -version -o
/var/tmp//ccuRpGyu.s
GNU F95 version 4.1.0 20050325 (experimental) (powerpc-apple-darwin7.8.0)
compiled by GNU C version 3.3 20030304 (Apple Computer, Inc. build 
1640).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
src/nrutil.f90: In function 'reallocate_hv':
src/nrutil.f90:257: internal compiler error: in gfc_conv_descriptor_dtype, at
fortran/trans-array.c:177

-- 
   Summary: ICE in gfc_conv_descriptor_dtype at trans_array.c:177
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: c dot lemmen at fz-juelich dot de
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.8.0
  GCC host triplet: powerpc-apple-darwin7.8.0
GCC target triplet: powerpc-apple-darwin7.8.0


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


[Bug fortran/21797] complex(4) sqrt failures on alpha-linux

2005-06-11 Thread sgk at troutmask dot apl dot washington dot edu

--- Additional Comments From sgk at troutmask dot apl dot washington dot 
edu  2005-06-11 22:43 ---
Subject: Re:  complex(4) sqrt failures on alpha-linux

On Thu, Jun 02, 2005 at 07:56:27AM -, tkoenig at gcc dot gnu dot org wrote:
> 
> Created an attachment (id=9011)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9011&action=view)
>  --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9011&action=view)
> Proposed patch
> 
> This patch fixes the problems noted by Steve Kargl (wrong
> types for floating point functions), and also cleans up the m4
> style so only variables are unquoted.
> 

I'm not sure if I'm allowed to ok this patch.  But, it is
correct as far as I can tell, so please commit it.



-- 


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


[Bug fortran/22023] ICE in gfc_conv_descriptor_dtype at trans_array.c:177

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
22:45 ---
I think it is time to update your compiler.  This has already been fixed.

This is a dup of bug 17202.

*** This bug has been marked as a duplicate of 17202 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug fortran/17202] ice-on-valid-code, trans-array.c:217: gfc_conv_descriptor_dtype Assertion failed

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
22:45 ---
*** Bug 22023 has been marked as a duplicate of this bug. ***

-- 


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


[Bug ada/22024] New: ACATS ICE cxa5a07 cxa5a08 cxg2016 SEGV in get_rank tree-ssa-reassoc.c:292

2005-06-11 Thread laurent at guerby dot net
More info on cxa5a07
(gdb) bt
#0  0x0095330e in get_rank (e=0x2a95fea230) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-reassoc.c:292
#1  0x009534fc in get_rank (e=0x2a95fea2a0) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-reassoc.c:320
#2  0x00953773 in reassociate_bb (bb=0x2a95fb98f0) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-reassoc.c:429
#3  0x00953850 in reassociate_bb (bb=0x2a95fb9270) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-reassoc.c:588
#4  0x00953850 in reassociate_bb (bb=0x2a95fb9000) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-reassoc.c:588
#5  0x00953850 in reassociate_bb (bb=0x2a95fb7dd0) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-reassoc.c:588
#6  0x00953850 in reassociate_bb (bb=0x2a95fb7a90) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-reassoc.c:588
#7  0x0095452b in execute_reassoc () at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-reassoc.c:599
#8  0x0063e9cf in execute_pass_list (pass=0xca57e0) at
/home/guerby/work/gcc/version-head/gcc/tree-optimize.c:630
#9  0x0063ea5f in execute_pass_list (pass=0xc8f2c0) at
/home/guerby/work/gcc/version-head/gcc/tree-optimize.c:668
#10 0x0063edc5 in tree_rest_of_compilation (fndecl=0x2a95962d00) at
/home/guerby/work/gcc/version-head/gcc/tree-optimize.c:800
#11 0x00983586 in cgraph_expand_function (node=0x2a95981ea0) at
/home/guerby/work/gcc/version-head/gcc/cgraphunit.c:968
#12 0x00985337 in cgraph_optimize () at
/home/guerby/work/gcc/version-head/gcc/cgraphunit.c:1034
#13 0x0041b08a in gnat_parse_file (set_yydebug=Variable "set_yydebug" is
not available.

289
290   if (TREE_CODE (SSA_NAME_VAR (e)) == PARM_DECL
291   && e == default_def (SSA_NAME_VAR (e)))
292 return find_value_rank (e)->rank;
293

(gdb) p debug_generic_stmt (current_function_decl)
cxa5a07__test_block__gef__arctan__2D.891

(gdb)  p debug_generic_stmt (e.ssa_name.var)
CHAIN.89D.1968

$12 = void
(gdb) p debug_tree (current_function_decl.decl.arguments)
 
unit size 
user align 32 symtab 0 alias set -1 precision 32 min  max >
readonly SF file
/home/guerby/work/gcc/install/install-20050611T203622/lib/gcc/x86_64-unknown-linux-gnu/4.1.0/adainclude/a-ngelfu.ads
line 48 size  unit size 
align 32 context  result  initial 
arg-type  arg-type-as-written
 chain >
$13 = void

+===GNAT BUG DETECTED==+
| 4.1.0 20050610 (experimental) (x86_64-unknown-linux-gnu) GCC error:  |
| Segmentation fault   |
| Error detected at cxa5a07.adb:413:5  |

+===GNAT BUG DETECTED==+
| 4.1.0 20050610 (experimental) (x86_64-unknown-linux-gnu) GCC error:  |
| Segmentation fault   |
| Error detected at cxa5a08.adb:474:5  |

+===GNAT BUG DETECTED==+
| 4.1.0 20050610 (experimental) (x86_64-unknown-linux-gnu) GCC error:  |
| Segmentation fault   |
| Error detected at cxg2016.adb:482:5  |

-- 
   Summary: ACATS ICE cxa5a07 cxa5a08 cxg2016 SEGV in get_rank tree-
ssa-reassoc.c:292
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Keywords: ice-on-valid-code
  Severity: normal
  Priority: P2
 Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: laurent at guerby dot net
CC: dberlin at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
dot org


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


[Bug ada/22025] New: ACATS ICE (8) fieldoff_compare, at tree-ssa-structalias.c:2550

2005-06-11 Thread laurent at guerby dot net
+===GNAT BUG DETECTED==+
| 4.1.0 20050610 (experimental) (x86_64-unknown-linux-gnu) GCC error:  |
| tree check: expected integer_cst, have mult_expr in  |
|fieldoff_compare, at tree-ssa-structalias.c:2550  |
| Error detected at c34006d.adb:238:5  |

Also happens on

c34006f
c34007s
c34007u
c34009d
c34009f
c34009j
c34009l

gdb information:

#0  internal_error (gmsgid=0xa9ac83 "in %s, at %s:%d") at
/home/guerby/work/gcc/version-head/gcc/diagnostic.c:528
#1  0x0071c81c in fancy_abort (file=Variable "file" is not available.
) at /home/guerby/work/gcc/version-head/gcc/diagnostic.c:588
#2  0x0095625e in create_variable_info_for (decl=0x2a95946c30,
name=0x2a95946270 "\020d\224\225*")
at /home/guerby/work/gcc/version-head/gcc/tree-ssa-structalias.c:2774
#3  0x009563c0 in get_constraint_exp_from_ssa_var (t=0x2a95946c30) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-structalias.c:1827
#4  0x00956ae1 in get_constraint_for (t=0x2a95946c30) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-structalias.c:2184
#5  0x00956cf3 in get_constraint_for (t=0x2a9593cb00) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-structalias.c:2084
#6  0x00956e6b in get_constraint_for (t=0x2a95963bc0) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-structalias.c:2171
#7  0x00957465 in find_func_aliases (t=0x2a95960a50) at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-structalias.c:2460
#8  0x0095a71b in create_alias_vars () at
/home/guerby/work/gcc/version-head/gcc/tree-ssa-structalias.c:3091
#9  0x0063e9cf in execute_pass_list (pass=0xca5e00) at
/home/guerby/work/gcc/version-head/gcc/tree-optimize.c:630
#10 0x0063ea5f in execute_pass_list (pass=0xc8f2c0) at
/home/guerby/work/gcc/version-head/gcc/tree-optimize.c:668
#11 0x0063edc5 in tree_rest_of_compilation (fndecl=0x2a95935680) at
/home/guerby/work/gcc/version-head/gcc/tree-optimize.c:800
#12 0x00983586 in cgraph_expand_function (node=0x2a95942d00) at
/home/guerby/work/gcc/version-head/gcc/cgraphunit.c:968
#13 0x00985337 in cgraph_optimize () at
/home/guerby/work/gcc/version-head/gcc/cgraphunit.c:1034
#14 0x0041b08a in gnat_parse_file (set_yydebug=Variable "set_yydebug" is
not available.

gdb) up
#2  0x0095625e in create_variable_info_for (decl=0x2a95946c30,
name=0x2a95946270 "\020d\224\225*")
at /home/guerby/work/gcc/version-head/gcc/tree-ssa-structalias.c:2774
2774  gcc_assert (bitpos_of_field (field) == 0);
(gdb) p notokay
$1 = 0 '\0'

Patch from Daniel Berlin:
===
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-structalias.c,v
retrieving revision 2.1
diff -u -p -r2.1 tree-ssa-structalias.c
--- tree-ssa-structalias.c  9 Jun 2005 13:05:39 -   2.1
+++ tree-ssa-structalias.c  11 Jun 2005 21:54:10 -
@@ -2756,7 +2756,8 @@ create_variable_info_for (tree decl, con
  break;
}
}
-  sort_fieldstack (fieldstack);
+  if (!notokay)
+   sort_fieldstack (fieldstack);
   if (VEC_length (fieldoff_s, fieldstack) != 0)
fo = VEC_index (fieldoff_s, fieldstack, 0);

Will test tomorrow.

-- 
   Summary: ACATS ICE (8) fieldoff_compare, at tree-ssa-
structalias.c:2550
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Keywords: ice-on-valid-code
  Severity: normal
  Priority: P2
 Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: laurent at guerby dot net
CC: dberlin at gcc dot gnu dot org,gcc-bugs at gcc dot gnu
dot org


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


[Bug tree-optimization/22024] [4.1 Regression] ACATS ICE cxa5a07 cxa5a08 cxg2016 SEGV in get_rank tree-ssa-reassoc.c:292

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
23:05 ---
This patch should fix it, it sets up the rank for the chain decl too:
Index: tree-ssa-reassoc.c
===

RCS file: /cvs/gcc/gcc/gcc/tree-ssa-reassoc.c,v
retrieving revision 2.1
diff -u -p -r2.1 tree-ssa-reassoc.c
--- tree-ssa-reassoc.c  6 Jun 2005 18:55:59 -   2.1
+++ tree-ssa-reassoc.c  11 Jun 2005 23:03:41 -
@@ -230,6 +230,13 @@ init_reassoc (void)
  insert_value_rank (def, ++rank);
}
 }
+  /* Give the chain decl a distinct rank. */
+  if (cfunc->static_chain_decl != NULL)
+{
+  tree def = default_def (cfunc->static_chain_decl);
+  if (def != NULL)
+insert_value_rank (def, ++rank);
+}
   
   /* Set up rank for each BB  */
   for (i = 0; i < n_basic_blocks; i++)


-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
  Component|ada |tree-optimization
Summary|ACATS ICE cxa5a07 cxa5a08   |[4.1 Regression] ACATS ICE
   |cxg2016 SEGV in get_rank|cxa5a07 cxa5a08 cxg2016 SEGV
   |tree-ssa-reassoc.c:292  |in get_rank tree-ssa-
   ||reassoc.c:292
   Target Milestone|--- |4.1.0


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


[Bug tree-optimization/21994] [4.1 regression] complex throwing functions cause ICE

2005-06-11 Thread laurent at guerby dot net

--- Additional Comments From laurent at guerby dot net  2005-06-11 23:05 
---
12 ACATS tests have the same ICE "throw in middle of block":

cxg1001
cxg1003
cxg1004
cxg1005
cxg2002
cxg2006
cxg2007
cxg2008
cxg2018
cxg2019
cxg2020
cxg2021



-- 


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


[Bug tree-optimization/22025] [4.1 Regression] ACATS ICE (8) fieldoff_compare, at tree-ssa-structalias.c:2550

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

 CC||pinskia at gcc dot gnu dot
   ||org
  Component|ada |tree-optimization
Summary|ACATS ICE (8)   |[4.1 Regression] ACATS ICE
   |fieldoff_compare, at tree-  |(8) fieldoff_compare, at
   |ssa-structalias.c:2550  |tree-ssa-structalias.c:2550
   Target Milestone|--- |4.1.0


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


[Bug ada/20548] [4.1 Regression] ACATS c52103x segfault at runtime on x86_64

2005-06-11 Thread laurent at guerby dot net

--- Additional Comments From laurent at guerby dot net  2005-06-11 23:10 
---
Still there on 4.1 20050611 x86_64.

-- 


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


[Bug ada/22026] New: ACATS FAIL C45331A fixed point wrong code

2005-06-11 Thread laurent at guerby dot net
4.1.0 20050611 on x86_64
Fri Jun 10 20:07:24 UTC 2005

,.,. C45331A ACATS 2.5 05-06-11 23:20:58
 C45331A CHECK THAT FOR FIXED POINT TYPES THE OPERATORS "+" AND "-" 
PRODUCE CORRECT RESULTS - BASIC TYPES.
   * C45331A -1000.0 + 1000.0 /= 0.0.
 C45331A FAILED .

-- 
   Summary: ACATS FAIL C45331A fixed point wrong code
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Keywords: wrong-code
  Severity: normal
  Priority: P2
 Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: laurent at guerby dot net
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug ada/21242] ACATS wrong array copy code c52102b c52102d

2005-06-11 Thread laurent at guerby dot net

--- Additional Comments From laurent at guerby dot net  2005-06-11 23:16 
---
C52102B and C52102D still failing as of 4.1.0 Fri Jun 10 20:07:24 UTC 2005 on
x86_64-linux.

C41203A C41203B C62002A are no longer failing.


-- 
   What|Removed |Added

Summary|ACATS wrong array copy code |ACATS wrong array copy code
   |c41203a c41203b c52102b |c52102b c52102d
   |c52102d c62002a |


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


[Bug ada/18819] [4.1 Regression] ACATS cdd2a02 fails at runtime

2005-06-11 Thread laurent at guerby dot net

--- Additional Comments From laurent at guerby dot net  2005-06-11 23:19 
---
Still failing as of 4.1.0 Fri Jun 10 20:07:24 UTC 2005 on x86_64-linux.

-- 


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


[Bug fortran/22027] New: ICE in gfc_trans_scalar_assign at trans-expr.c:2004

2005-06-11 Thread c dot lemmen at fz-juelich dot de
Another Bug in Numerical Recipes on Darwin

/usr/local/gfortran/libexec/gcc/powerpc-apple-darwin7.8.0/4.1.0/f951
src/mpops.f90 -fPIC -quiet -dumpbase mpops.f90 -auxbase mpops -version -o
/var/tmp//ccH8Fg40.s
GNU F95 version 4.1.0 20050325 (experimental) (powerpc-apple-darwin7.8.0)
compiled by GNU C version 3.3 20030304 (Apple Computer, Inc. build 
1640).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
src/mpops.f90: In function 'mplsh':
src/mpops.f90:113: internal compiler error: in gfc_trans_scalar_assign, at
fortran/trans-expr.c:2004

-- 
   Summary: ICE in gfc_trans_scalar_assign at trans-expr.c:2004
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: c dot lemmen at fz-juelich dot de
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.8.0
  GCC host triplet: powerpc-apple-darwin7.8.0
GCC target triplet: powerpc-apple-darwin7.8.0


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


[Bug ada/18818] ACATS cd10002 fails at runtime

2005-06-11 Thread laurent at guerby dot net

--- Additional Comments From laurent at guerby dot net  2005-06-11 23:22 
---
Started failing again on 4.1.0 Fri Jun 10 20:07:24 UTC 2005 x86_64-linux. It's a
slightly different part of the test that fails but since this was never properly
analyzed, reopening.

,.,. CD10002 ACATS 2.5 05-06-11 23:31:28
 CD10002 Check that operational items are allowed in some contexts
where representation items are not.
   - CD10002 Check that the name of an incompletely defined type can be 
used when specifying an operational item.
   - CD10002 Check that operational items can be specified for a
descendant of a generic formal untagged type.
   * CD10002 Incorrect calls to the stream attributes for Inst.Nt9.
   - CD10002 Check that operational items can be specified for a derived
untagged type even if the parent type is a by-reference 
type, or has user-defined primitive subprograms.
 CD10002 FAILED .


-- 
   What|Removed |Added

 Status|RESOLVED|UNCONFIRMED
 Resolution|FIXED   |


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


[Bug fortran/22027] ICE in gfc_trans_scalar_assign at trans-expr.c:2004

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
23:28 ---
Time to update your GCC. The version from March is so old.  Try a snapshot of 
4.0.x which should have 
all the fixes for gfortran which were also applied to the mainline.

*** This bug has been marked as a duplicate of 19271 ***

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||DUPLICATE


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


[Bug fortran/19271] ICE on a = transpose(a) for character array

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-11 
23:28 ---
*** Bug 22027 has been marked as a duplicate of this bug. ***

-- 
   What|Removed |Added

 CC||c dot lemmen at fz-juelich
   ||dot de


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


[Bug c/22028] New: ICE after invalid struct declaration

2005-06-11 Thread falk at debian dot org
[EMAIL PROTECTED]:/tmp% cat bug.c && gcc -c bug.c
int f(){
struct { int i[]; } u;
}

bug.c: In function 'f':
bug.c:2: error: flexible array member in otherwise empty struct
bug.c:2: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in gimplify_type_sizes, at gimplify.c:4491
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.

-- 
   Summary: ICE after invalid struct declaration
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Keywords: ice-on-invalid-code, error-recovery
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: falk at debian dot org
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug middle-end/22028] [4.0/4.1 Regression] ICE after invalid struct declaration

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-12 
00:10 ---
Confirmed, caused by:

2005-06-01  Jakub Jelinek  <[EMAIL PROTECTED]>

PR c/21536
PR c/20760
* gimplify.c (gimplify_decl_expr): Call gimplify_type_sizes
on variable sizes types if a decl is a pointer to a VLA.
(gimplify_type_sizes): Handle POINTER_TYPE and REFERENCE_TYPE.
Call gimplify_type_sizes on aggregate fields.  Prevent infinite
recursion.


-- 
   What|Removed |Added

 CC||jakub at gcc dot gnu dot org
 Status|UNCONFIRMED |NEW
  Component|c   |middle-end
 Ever Confirmed||1
  Known to fail||4.0.1 4.1.0
  Known to work||4.0.0
   Last reconfirmed|-00-00 00:00:00 |2005-06-12 00:10:15
   date||
Summary|ICE after invalid struct|[4.0/4.1 Regression] ICE
   |declaration |after invalid struct
   ||declaration
   Target Milestone|--- |4.0.1


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


[Bug tree-optimization/22024] [4.1 Regression] ACATS ICE cxa5a07 cxa5a08 cxg2016 SEGV in get_rank tree-ssa-reassoc.c:292

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-12 
02:01 ---
s/cfunc/cfun/ in the patch, I must have forgot what the name of variable was 
for some reason.

-- 


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


[Bug tree-optimization/22018] [4.1 Regression] VRP miscompiles multiply

2005-06-11 Thread danglin at gcc dot gnu dot org

--- Additional Comments From danglin at gcc dot gnu dot org  2005-06-12 
02:06 ---
Test also aborts on hppa-2.0w-hp-hpux11.11 and hppa-unknown-linux-gnu
using stage1/xgcc (4.1.0).


-- 
   What|Removed |Added

 CC||danglin at gcc dot gnu dot
   ||org


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


[Bug tree-optimization/18777] Redundant loop count insns in simple vectorized loop

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-12 
03:19 ---
Fixed on the mainline:
_Z6foobarv:
.LFB2:
pushl   %ebp
.LCFI0:
movl%esp, %ebp
.LCFI1:
subl$56, %esp
.LCFI2:
movaps  -40(%ebp), %xmm0
mulps   -24(%ebp), %xmm0
movaps  %xmm0, -56(%ebp)
fldz
fadds   -56(%ebp)
fadds   -52(%ebp)
fadds   -48(%ebp)
fadds   -44(%ebp)
leave
ret

-- 
   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.1.0


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


[Bug c++/22005] [4.1 Regression] ICE: SSA_NAME verification failure

2005-06-11 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-12 
03:19 ---
Subject: Bug 22005

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-06-12 03:19:26

Modified files:
gcc: ChangeLog tree-ssa-structalias.c 
Added files:
gcc/testsuite/g++.dg/tree-ssa: pr22005.C 

Log message:
2005-06-11  Daniel Berlin  <[EMAIL PROTECTED]>

Fix PR tree-optimization/22005
Fix PR tree-optimization/22025

* tree-ssa-structalias.c (struct variable_info): Add has_union
member.
(create_variable_info_for):  Mark variables containing unions.
Don't sort the field stack if notokay is true.
(find_what_p_points_to): Convert variables containing unions back
to their SFT's if necessary.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9127&r2=2.9128
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-structalias.c.diff?cvsroot=gcc&r1=2.1&r2=2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/tree-ssa/pr22005.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


[Bug tree-optimization/22025] [4.1 Regression] ACATS ICE (8) fieldoff_compare, at tree-ssa-structalias.c:2550

2005-06-11 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-06-12 
03:19 ---
Subject: Bug 22025

CVSROOT:/cvs/gcc
Module name:gcc
Changes by: [EMAIL PROTECTED]   2005-06-12 03:19:26

Modified files:
gcc: ChangeLog tree-ssa-structalias.c 
Added files:
gcc/testsuite/g++.dg/tree-ssa: pr22005.C 

Log message:
2005-06-11  Daniel Berlin  <[EMAIL PROTECTED]>

Fix PR tree-optimization/22005
Fix PR tree-optimization/22025

* tree-ssa-structalias.c (struct variable_info): Add has_union
member.
(create_variable_info_for):  Mark variables containing unions.
Don't sort the field stack if notokay is true.
(find_what_p_points_to): Convert variables containing unions back
to their SFT's if necessary.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9127&r2=2.9128
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-ssa-structalias.c.diff?cvsroot=gcc&r1=2.1&r2=2.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/tree-ssa/pr22005.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


[Bug target/15397] [g77] c float function called from fortran gives wrong result

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-12 
03:23 ---
(In reply to comment #5)
> May be the following may give a hint to the g77 developers:
> if using the -fno-f2c compile option the error does not occur on AMD64
> architectures.

That means the ABI is different with those two.

I don't think this is a bug.

-- 


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


[Bug rtl-optimization/17752] Hot/cold basic block partitioning optimization has problems

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-12 
03:29 ---
All of these three issues have now been fixed.  Closing as fixed.

-- 
   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED


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


[Bug pending/20337] Unable to run dynamicly linked binaries on ARCH sh3 (hitachi)

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Severity|critical|normal


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


[Bug target/20337] Unable to run dynamicly linked binaries on ARCH sh3 (hitachi)

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

  Component|pending |target
 GCC target triplet|--target=sh3|sh3


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


[Bug tree-optimization/22029] New: [4.1 Regression] ICE with -fdump-tree-copyprop3-details

2005-06-11 Thread pinskia at gcc dot gnu dot org
The following code ICEs with -ftree-vectorize -O1 -msse3 
-fdump-tree-copyprop3-details:
#include 

void dupa()
{
double* wagi;
unsigned int i,synapsy=100;

wagi = (double*)malloc(100*synapsy);

for( i=0;ihttp://gcc.gnu.org/bugzilla/show_bug.cgi?id=22029


[Bug tree-optimization/22029] [4.1 Regression] ICE with -fdump-tree-copyprop3-details

2005-06-11 Thread pinskia at gcc dot gnu dot org


-- 
   What|Removed |Added

   Target Milestone|--- |4.1.0


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


[Bug tree-optimization/21829] [4.1 Regression] missed jump threading after unroller

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-12 
03:44 ---
Confirmed.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-06-12 03:44:19
   date||


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


[Bug rtl-optimization/21887] missed optimization with globals (-mdynamic-no-pic)

2005-06-11 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-12 
03:47 ---
Confirmed, -fno-PIC works and so does -fPIC but -mdynamic-no-pic does not for 
some reason.

-- 
   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever Confirmed||1
   Last reconfirmed|-00-00 00:00:00 |2005-06-12 03:47:17
   date||
Summary|missed optimization with|missed optimization with
   |globals |globals (-mdynamic-no-pic)


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


[Bug c/22030] New: [4.1 Regression] ICE: Segmentation fault

2005-06-11 Thread halcy0n at gentoo dot org
Target: i686-pc-linux-gnu
Configured with:
/var/tmp/portage/gcc-4.1.0_beta20050611/work/gcc-4.1-20050611/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.1.0-beta20050611
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-beta20050611/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-beta20050611
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-beta20050611/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.1.0-beta20050611/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.1.0-beta20050611/include/g++-v4
--host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec
--enable-nls --without-included-gettext --with-system-zlib --disable-checking
--disable-werror --disable-libunwind-exceptions --disable-multilib
--disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix
--enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.0 20050611 (experimental)

i686-pc-linux-gnu-gcc ../sysdeps/unix/sysv/linux/syslog.c -c -std=gnu99 -O2
-Wall -Winline -Wstrict-prototypes -Wwrite-strings -march=athlon-mp
-mtune=athlon-mp -save-temps -pipe -mpreferred-stack-boundary=2  -g0 -O99
-fomit-frame-pointer -D__USE_STRING_INLINES -fexceptions   -I../include -I.
-I/var/tmp/portage/glibc-2.3.5.20050421/work/build-default-i686-pc-linux-gnu-nptl/misc
-I.. -I../libio -I../nptl
-I/var/tmp/portage/glibc-2.3.5.20050421/work/build-default-i686-pc-linux-gnu-nptl
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux
-I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../nptl/sysdeps/unix/sysv
-I../nptl/sysdeps/unix -I../nptl/sysdeps/i386/i686 -I../nptl/sysdeps/i386
-I../nptl/sysdeps/generic -I../libidn/sysdeps/unix
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32
-I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf
-I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc/i686-pc-linux-gnu/4.1.0/include -isystem /usr/include
-D_LIBC_REENTRANT -D_LIBC_REENTRANT -include ../include/libc-symbols.h   -o
/var/tmp/portage/glibc-2.3.5.20050421/work/build-default-i686-pc-linux-gnu-nptl/misc/syslog.o
-MD -MP -MF
/var/tmp/portage/glibc-2.3.5.20050421/work/build-default-i686-pc-linux-gnu-nptl/misc/syslog.o.dt
-MT
/var/tmp/portage/glibc-2.3.5.20050421/work/build-default-i686-pc-linux-gnu-nptl/misc/syslog.o
i686-pc-linux-gnu-gcc: warning: -pipe ignored because -save-temps specified
In file included from ../include/stdlib.h:9,
 from ../nptl/sysdeps/i386/i686/../tls.h:29,
 from ../nptl/sysdeps/i386/i686/tls.h:35,
 from ../include/tls.h:7,
 from ../include/netdb.h:7,
 from ../sysdeps/generic/syslog.c:39,
 from ../sysdeps/unix/sysv/linux/syslog.c:11:
../stdlib/stdlib.h:621: warning: '__malloc__' attribute ignored
In file included from ../nptl/sysdeps/i386/i686/../tls.h:29,
 from ../nptl/sysdeps/i386/i686/tls.h:35,
 from ../include/tls.h:7,
 from ../include/netdb.h:7,
 from ../sysdeps/generic/syslog.c:39,
 from ../sysdeps/unix/sysv/linux/syslog.c:11:
../include/stdlib.h:99: warning: '__malloc__' attribute ignored
../sysdeps/generic/syslog.c: In function 'openlog_internal':
../sysdeps/generic/syslog.c:326: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

-- 
   Summary: [4.1 Regression] ICE: Segmentation fault
   Product: gcc
   Version: 4.1.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: halcy0n at gentoo dot org
CC: gcc-bugs at gcc dot gnu dot org


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


[Bug c/22030] [4.1 Regression] ICE: Segmentation fault

2005-06-11 Thread halcy0n at gentoo dot org

--- Additional Comments From halcy0n at gentoo dot org  2005-06-12 03:52 
---
Created an attachment (id=9073)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9073&action=view)
Preprocessed file for above failure


-- 


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


[Bug c/22030] [4.1 Regression] ICE: Segmentation fault

2005-06-11 Thread halcy0n at gentoo dot org


-- 
   What|Removed |Added

   Attachment #9073|application/octet-stream|text/plain
  mime type||


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


[Bug target/22017] Error to pass struct parameter when compile with mingw's gcc.exe using "-march=i386 -mrtd" flags

2005-06-11 Thread dannysmith at users dot sourceforge dot net

--- Additional Comments From dannysmith at users dot sourceforge dot net  
2005-06-12 05:18 ---
Hi,

I think the problem is that 

st.m_i = 1;
st.m_ch[0] = 0;

causes gcc to generate a call to the library memcpy.  Since the -mrtd switch is 
in effect, the call is generated assuming that memcpy will pop the stack.  It 
doesn't, of course, so the stack is corrupted.

Adding a static extern "C" memcpy code to the testcase, so that the local 
memcpy does indeed use rtd convention,  make the assert succeed.

Danny

-- 


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


  1   2   >