[Bug target/40832] gfortran 4.4.0 generates invalid .s file on solaris-x86 using -march=k8 for 130.socorro

2009-07-23 Thread ubizjak at gmail dot com
--- Comment #5 from ubizjak at gmail dot com 2009-07-23 07:03 --- (In reply to comment #4) > > What happens if you use gas instead of Sun's assembler? > > $HOME/gnu-x86/local/bin/gfortran -c site.f90 -march=k8 -m32 -S > gas --32 site.s > site.s:652: Error: invalid character '.' in mnem

[Bug target/40832] gfortran 4.4.0 generates invalid .s file on solaris-x86 using -march=k8 for 130.socorro

2009-07-23 Thread ubizjak at gmail dot com
--- Comment #6 from ubizjak at gmail dot com 2009-07-23 07:06 --- (In reply to comment #5) > The code that confuses gas is in fact ffreep insn. Since your gas is detected > as not supporting ffreep mnemonic directly, gcc generates it with .word > 0xc0df. /s/gcc/sun as/, of course. Whe

[Bug target/40832] gfortran 4.4.0 generates invalid .s file on solaris-x86 using -march=k8 for 130.socorro

2009-07-23 Thread ubizjak at gmail dot com
--- Comment #7 from ubizjak at gmail dot com 2009-07-23 07:58 --- We should use ASM_SHORT instead of .word. I have a patch. -- ubizjak at gmail dot com changed: What|Removed |Added --

[Bug target/40835] New: redundant comparison instruction

2009-07-23 Thread carrot at google dot com
Compile the following code with options -Os -mthumb -march=armv5te int bar(); void goo(int, int); void foo() { int v = bar(); if (v == 0) return; goo(1, v); } Gcc generates: push{r3, lr} bl bar mov r1, r0 cmp r0, #0// * beq

[Bug target/40835] redundant comparison instruction

2009-07-23 Thread carrot at google dot com
--- Comment #1 from carrot at google dot com 2009-07-23 08:38 --- Created an attachment (id=18241) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18241&action=view) test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40835

[Bug c++/40834] [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006

2009-07-23 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-07-23 08:47 --- Can you try with the patch for 40799 applied before gimplification unit-at-a-time? Does the failure reproduce with the test data or only with the ref data? -- rguenth at gcc dot gnu dot org changed: W

[Bug fortran/40728] Bogus error "Error: Can't convert UNKNOWN to REAL(8) at (1)"

2009-07-23 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2009-07-23 08:52 --- Hmm, to early, the gfc_*_intrinsic are not called, unless attr.intrinsic is set. The but the issue is indeed that they are regarded as PTYPE_SPECIFIC and not as PTYPE_UNKNOWN, as a printf in resolve_function shows - t

[Bug c/40836] New: ICE: "insn does not satisfy its constraints"

2009-07-23 Thread enrico dot scholz at informatik dot tu-chemnitz dot de
When trying to build an iwmmxt optimized gcc 4.4.1, build fails in libobjc with an ICE: In function 'objc_msg_sendv': error: insn does not satisfy its constraints: (set (reg/f:SI 13 sp) (reg/f:SI 43 wcgr0 [146])) 441 {*iwmmxt_movsi_insn} (nil)) internal compiler error: in reload_

[Bug c/40836] ICE: "insn does not satisfy its constraints"

2009-07-23 Thread enrico dot scholz at informatik dot tu-chemnitz dot de
--- Comment #1 from enrico dot scholz at informatik dot tu-chemnitz dot de 2009-07-23 09:46 --- Created an attachment (id=18242) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18242&action=view) gcc cmdline + output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40836

[Bug c/40836] ICE: "insn does not satisfy its constraints"

2009-07-23 Thread enrico dot scholz at informatik dot tu-chemnitz dot de
--- Comment #2 from enrico dot scholz at informatik dot tu-chemnitz dot de 2009-07-23 09:47 --- Created an attachment (id=18243) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18243&action=view) preprocessor output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40836

[Bug c/40836] ICE: "insn does not satisfy its constraints"

2009-07-23 Thread enrico dot scholz at informatik dot tu-chemnitz dot de
--- Comment #3 from enrico dot scholz at informatik dot tu-chemnitz dot de 2009-07-23 09:48 --- Created an attachment (id=18244) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18244&action=view) assembly output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40836

[Bug target/40832] gfortran 4.4.0 generates invalid .s file on solaris-x86 using -march=k8 for 130.socorro

2009-07-23 Thread uros at gcc dot gnu dot org
--- Comment #8 from uros at gcc dot gnu dot org 2009-07-23 09:51 --- Subject: Bug 40832 Author: uros Date: Thu Jul 23 09:51:33 2009 New Revision: 149988 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149988 Log: PR target/40832 * config/i386/i386.c (output_387_ff

[Bug target/40832] gfortran 4.4.0 generates invalid .s file on solaris-x86 using -march=k8 for 130.socorro

2009-07-23 Thread uros at gcc dot gnu dot org
--- Comment #9 from uros at gcc dot gnu dot org 2009-07-23 10:22 --- Subject: Bug 40832 Author: uros Date: Thu Jul 23 10:22:43 2009 New Revision: 149995 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149995 Log: PR target/40832 * config/i386/i386.c (output_387_ff

[Bug target/40832] gfortran 4.4.0 generates invalid .s file on solaris-x86 using -march=k8 for 130.socorro

2009-07-23 Thread uros at gcc dot gnu dot org
--- Comment #10 from uros at gcc dot gnu dot org 2009-07-23 10:23 --- Subject: Bug 40832 Author: uros Date: Thu Jul 23 10:23:43 2009 New Revision: 149996 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149996 Log: PR target/40832 * config/i386/i386.c (output_387_f

[Bug target/40832] gfortran 4.4.0 generates invalid .s file on solaris-x86 using -march=k8 for 130.socorro

2009-07-23 Thread ubizjak at gmail dot com
--- Comment #11 from ubizjak at gmail dot com 2009-07-23 10:26 --- Fixed. -- ubizjak at gmail dot com changed: What|Removed |Added URL|

[Bug target/40837] New: trampolines not working on x86-64 windows vista

2009-07-23 Thread charlet at gcc dot gnu dot org
The following C program should print "369", and return a zero exit status. It does not work on 64-bit Windows Vista. Instead, it crashes before the printf, and returns exit status 5. This is, I assume, because trampolines do not work. I guess the protection bits for stack pages need to be set to

[Bug bootstrap/40833] gcc configure problem with mpfr.h

2009-07-23 Thread david dot sagan at gmail dot com
--- Comment #2 from david dot sagan at gmail dot com 2009-07-23 10:59 --- The commands show: lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> find /usr -name gmp.h /usr/include/gmp.h find: /usr/share/ssl/CA: Permission denied [1] + Done emacs -g 100x80 ~/.chsrc lnx498:/n

[Bug target/40837] trampolines not working on x86-64 windows vista

2009-07-23 Thread sezeroz at gmail dot com
--- Comment #1 from sezeroz at gmail dot com 2009-07-23 11:10 --- Curious. As a data point, can't reproduce this with 4.4 (svn rev.149965). -- sezeroz at gmail dot com changed: What|Removed |Added --

[Bug rtl-optimization/40667] [4.4/4.5 Regression] stack frames are generated even with -fomit-frame-pointer

2009-07-23 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #15 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-07-23 11:12 --- The patch just walks around the problem and doesn't really fix it. It is simply a hack that disables frame generation for long long, while for the other types the same problem persists: Exampl

[Bug middle-end/40830] gcc.dg/vect/vect-pre-interact.c doesn't work on Linux/ia32

2009-07-23 Thread matz at gcc dot gnu dot org
--- Comment #1 from matz at gcc dot gnu dot org 2009-07-23 11:16 --- Mine. -- matz at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gc

[Bug rtl-optimization/40667] [4.4/4.5 Regression] stack frames are generated even with -fomit-frame-pointer

2009-07-23 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #16 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-07-23 11:18 --- In the above example, the output of assembler is: f: pushl %ebp movl%esp, %ebp subl$8, %esp fldl8(%ebp) fstpl (%esp) callg

[Bug rtl-optimization/40667] [4.4/4.5 Regression] stack frames are generated even with -fomit-frame-pointer

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #17 from jakub at gcc dot gnu dot org 2009-07-23 11:36 --- Incorrect? Why do you think so? double on ix86 has 8 byte alignment, and unlike long long it has also performance effects when you misalign it (in theory, we could handle double the same as long long with -Os though)

[Bug middle-end/40830] gcc.dg/vect/vect-pre-interact.c doesn't work on Linux/ia32

2009-07-23 Thread matz at gcc dot gnu dot org
--- Comment #2 from matz at gcc dot gnu dot org 2009-07-23 12:03 --- Subject: Bug 40830 Author: matz Date: Thu Jul 23 12:02:37 2009 New Revision: 14 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=14 Log: PR middle-end/40830 * gcc.dg/vect/vect-pre-interact

[Bug middle-end/40830] gcc.dg/vect/vect-pre-interact.c doesn't work on Linux/ia32

2009-07-23 Thread matz at gcc dot gnu dot org
--- Comment #3 from matz at gcc dot gnu dot org 2009-07-23 12:05 --- Fixed. -- matz at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug rtl-optimization/40667] [4.4/4.5 Regression] stack frames are generated even with -fomit-frame-pointer

2009-07-23 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #18 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-07-23 12:16 --- The bug is this: you don't align the stack and you generate the frame. Why? Why don't you do one of these?: * generate the frame and align * don't generate the frame and don't align these two

[Bug target/40837] trampolines not working on x86-64 windows vista

2009-07-23 Thread charlet at gcc dot gnu dot org
--- Comment #2 from charlet at gcc dot gnu dot org 2009-07-23 12:20 --- Are you using a 64 bit compiler? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40837

[Bug rtl-optimization/40667] [4.4/4.5 Regression] stack frames are generated even with -fomit-frame-pointer

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #19 from jakub at gcc dot gnu dot org 2009-07-23 12:33 --- Because you need to decide whether to use a frame pointer or not before register allocation, and only during/after register allocation you can find out that something needs to be spilled to stack. -- http://gcc.g

[Bug bootstrap/40597] Powerpc bootstrap is broken due to changes in expmed.c

2009-07-23 Thread krebbel at gcc dot gnu dot org
--- Comment #33 from krebbel at gcc dot gnu dot org 2009-07-23 12:37 --- Your patch from 2009-06-30 prevents the following code from being implemented jumpless on S/390: int a, b; ... int x = a == b; In emit_store_flag the following code now invokes emit_store_flag_1 instead of emit_s

[Bug target/40837] trampolines not working on x86-64 windows vista

2009-07-23 Thread sezeroz at gmail dot com
--- Comment #3 from sezeroz at gmail dot com 2009-07-23 12:40 --- I cross-compile from i686-linux to x86_64-pc-mingw32. (I can also try cross-compiling from x86_64-linux to x86_64-pc-mingw32, if you want.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40837

[Bug rtl-optimization/40838] New: gcc shouldn't assume that the stack is aligned

2009-07-23 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
typedef int v4si __attribute__ ((vector_size (16))); v4si y(v4si *s3) { return *s3; } extern v4si s1, s2; v4si x(void) { v4si s3 = s1 + s2; return y(&s3); } And compile it with -O2 -fno-inline -msse2 -fomit-frame-pointer The variable s3 is stored using unaligned store (

[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2009-07-23 12:56 --- Linux/ix86 ABI says that stack must be 16 byte aligned. So GCC can rely on it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838

[Bug target/40837] trampolines not working on x86-64 windows vista

2009-07-23 Thread charlet at gcc dot gnu dot org
--- Comment #4 from charlet at gcc dot gnu dot org 2009-07-23 13:10 --- Interesting, thanks for the feedback. Let me double check a few things on my side (testing various GCC versions). Arno -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40837

[Bug target/38496] Gcc misaligns arrays when stack is forced follow the x8632 ABI

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #22 from jakub at gcc dot gnu dot org 2009-07-23 13:13 --- *** Bug 40838 has been marked as a duplicate of this bug. *** -- jakub at gcc dot gnu dot org changed: What|Removed |Added --

[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-07-23 13:13 --- *** This bug has been marked as a duplicate of 38496 *** -- jakub at gcc dot gnu dot org changed: What|Removed |Added --

[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned

2009-07-23 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #3 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-07-23 13:15 --- What I would propose to fix this and bug #40667: Each type has required alignment and preferred alignment. Enforced alignment is what is needed to not crash and not violate the ABI, preferred a

[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned

2009-07-23 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #4 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-07-23 13:19 --- "Linux/ix86 ABI says that stack must be 16 byte aligned." No it doesn't. There is a plenty of Linux code that doesn't have the stack aligned on 16-byte boundary. (at least anything that was com

[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2009-07-23 13:24 --- The ABI has changed 8+ years ago, you are coming too late. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40838

[Bug rtl-optimization/40667] [4.4/4.5 Regression] stack frames are generated even with -fomit-frame-pointer

2009-07-23 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #20 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-07-23 13:28 --- I see, if it gets spilled to the stack as a local variable, it realigns the stack, if it doesn't get spilled, it doesn't. But shouldn't "passing the variable as an argument on the stack" be tre

[Bug bootstrap/37739] [4.4 Regression] bootstrap broken with core gcc > gcc-4.2.x

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #23 from jakub at gcc dot gnu dot org 2009-07-23 13:36 --- Can you please grep xmake_file= gcc/Makefile in the gcc build directory as well as write what gcc -Wl,--version prints? Binutils 2.19 and later have the needed relax fixes I think, so rs6000/x-linux-relax should be u

[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2009-07-23 13:43 --- *** This bug has been marked as a duplicate of 39315 *** -- hjl dot tools at gmail dot com changed: What|Removed |Added --

[Bug middle-end/39315] Unaligned move used on aligned stack variable

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #11 from hjl dot tools at gmail dot com 2009-07-23 13:43 --- *** Bug 40838 has been marked as a duplicate of this bug. *** -- hjl dot tools at gmail dot com changed: What|Removed |Added -

[Bug target/40837] trampolines not working on x86-64 windows vista

2009-07-23 Thread sezeroz at gmail dot com
--- Comment #5 from sezeroz at gmail dot com 2009-07-23 13:46 --- Compiled my same toolchain on linux-x86_64 and compiled the test for x86_64-pc-mingw32, the resulting exe prints 369 on Vista-SP2-x64 and exits normally. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40837

[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned

2009-07-23 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #7 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-07-23 13:49 --- See bug #27537, quoting "GNU/Linux follows the SYSV x86 ABI which is documented, maybe you cannot find it but it does exist. The SYSV x86 ABI says the stack is aligned 4 byte aligned." That bug

[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2009-07-23 13:54 --- Please read Joseph's responses in PR38496. If you are aware of places in glibc that don't maintain 16 byte stack alignment, please report them. Certainly calling glibc (or any other default compiler flags compiled) l

[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #9 from hjl dot tools at gmail dot com 2009-07-23 13:56 --- (In reply to comment #7) > > Another point: if gcc realigns the stack, why then use movdqu to store the > values on the stack? That is suboptimal. > This is a dup for PR 39315. -- http://gcc.gnu.org/bugzilla/

[Bug c++/40828] Rejected valid specialization of member class template

2009-07-23 Thread jwakely dot gcc at gmail dot com
--- Comment #1 from jwakely dot gcc at gmail dot com 2009-07-23 14:06 --- The code is invalid. This is allowed: template <> template class Outer::Inner {}; but not the other way around. The diagnostic is correct to say "enclosing class templates are not explicitly specialized" See

[Bug target/38496] Gcc misaligns arrays when stack is forced follow the x8632 ABI

2009-07-23 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #23 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-07-23 14:34 --- So, Joseph is basically arguing that it doesn't make sense to follow bad standards. Fine. So let's ignore the "i386 ABI standard" thing for a moment a look at the change from the practical poin

[Bug rtl-optimization/40838] gcc shouldn't assume that the stack is aligned

2009-07-23 Thread mikulas at artax dot karlin dot mff dot cuni dot cz
--- Comment #10 from mikulas at artax dot karlin dot mff dot cuni dot cz 2009-07-23 14:36 --- Jakub: so try that "test $15, %esp; jnz abort" at every function, as I proposed in bug #38496. There are much more places that will trigger this. Just go catch them. -- http://gcc.gnu.org/

[Bug other/40784] [4.5 Regression] Revision 149725 caused autoconf warning in libstdc++

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2009-07-23 14:38 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|UNCONFIRM

[Bug c++/40834] [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2009-07-23 14:40 --- (In reply to comment #1) > Can you try with the patch for 40799 applied before gimplification > unit-at-a-time? Does the failure reproduce with the test data or only with the > ref data? > I applied the patch for P

[Bug bootstrap/40833] gcc configure problem with mpfr.h

2009-07-23 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2009-07-23 14:55 --- (In reply to comment #2) > The commands show: > > lnx498:/nfs/acc/temp/dcs/gcc/gcc_tmp> find /usr -name gmp.h > /usr/include/gmp.h > find: /usr/share/ssl/CA: Permission denied > [1] + Done em

[Bug target/40837] trampolines not working on x86-64 windows vista

2009-07-23 Thread charlet at gcc dot gnu dot org
--- Comment #6 from charlet at gcc dot gnu dot org 2009-07-23 15:02 --- My confusion: I thought I had tested with GCC 4.5 but in fact I had used GCC 4.3 which does not have the 'MINGW_ENABLE_EXECUTE_STACK' macro (and __enable_execute_stack symbol). Arno -- charlet at gcc dot gnu dot

[Bug c++/40828] Rejected valid specialization of member class template

2009-07-23 Thread paolo dot carlini at oracle dot com
--- Comment #2 from paolo dot carlini at oracle dot com 2009-07-23 15:06 --- Thanks Jon. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/40834] [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006

2009-07-23 Thread rguenther at suse dot de
--- Comment #3 from rguenther at suse dot de 2009-07-23 15:21 --- Subject: Re: [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006 On Thu, 23 Jul 2009, hjl dot tools at gmail dot com wrote: > --- Comment #2 from hjl dot tools at gmail dot com 2009-07-23 14:40

[Bug bootstrap/40833] gcc configure problem with mpfr.h

2009-07-23 Thread david dot sagan at gmail dot com
--- Comment #4 from david dot sagan at gmail dot com 2009-07-23 15:32 --- > It has nothing to do with the version number. Read the log file you > included in your original post. You'll find Thanks for the information. As I see it, the problem here is that the error message from confi

[Bug fortran/40839] New: gfortran segmentation fault when a unit number is missing

2009-07-23 Thread Philippe dot Poilbarbe at cls dot fr
Compiling this code with gfortran (4.3.2 and 4.3.3, Linux and Solaris) produces a segmentation fault in gfortran (internal error): write(fmt='(''STRING'')') end Compile command: gfortran FilecontainingCode.f Message: f951: internal compiler error: Segmentation fault Please submit a

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2009-07-23 Thread manu at gcc dot gnu dot org
--- Comment #15 from manu at gcc dot gnu dot org 2009-07-23 15:35 --- Patch: http://gcc.gnu.org/ml/gcc-patches/2009-07/msg01179.html -- manu at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/40820] gfortran does not recognize -Wno-unused-parameters

2009-07-23 Thread wirawan0 at gmail dot com
--- Comment #4 from wirawan0 at gmail dot com 2009-07-23 16:03 --- Sorry for my confusion. It turned out that the option -Wno-unused-parameter (no s) did work on 4.3.2. Marking this bug as invalid. -- wirawan0 at gmail dot com changed: What|Removed

[Bug tree-optimization/40759] [4.5 Regression] segfault in useless_type_conversion_p

2009-07-23 Thread hubicka at ucw dot cz
--- Comment #4 from hubicka at ucw dot cz 2009-07-23 16:15 --- Subject: Re: [4.5 Regression] segfault in useless_type_conversion_p Hi, the problem here is in removing virtual PHI. We replace uses of the virtual PHI results by the corresponding VAR_DECL and send symbol for renaming. H

[Bug fortran/40839] gfortran segmentation fault when a unit number is missing

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2009-07-23 16:29 --- Created an attachment (id=18245) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18245&action=view) gcc45-pr40839.patch Patch I'm going to test. -- jakub at gcc dot gnu dot org changed: What|Re

[Bug c++/40828] Rejected valid specialization of member class template

2009-07-23 Thread andhow at gmail dot com
--- Comment #3 from andhow at gmail dot com 2009-07-23 16:31 --- That is very strange indeed; sorry for the mistake! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40828

[Bug bootstrap/37739] [4.4 Regression] bootstrap broken with core gcc > gcc-4.2.x

2009-07-23 Thread giffordj at la dot twcbc dot com
--- Comment #24 from giffordj at la dot twcbc dot com 2009-07-23 16:50 --- root:/var/build_system/work/gcc-build# grep xmake_file= gcc/Makefile xmake_file= $(srcdir)/config/rs6000/x-rs6000 $(srcdir)/config/rs6000/x-linux-relax $(srcdir)/config/x-linux root:/var/build_system$ gcc -Wl,--

[Bug bootstrap/37739] [4.4 Regression] bootstrap broken with core gcc > gcc-4.2.x

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #25 from jakub at gcc dot gnu dot org 2009-07-23 16:56 --- Is -Wl,--relax passed to the compiler driver when linking the binary that fails to link then? If yes, you are looking at a ld problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37739

[Bug c++/35989] code rejected in template specialization (4.2 did accept)

2009-07-23 Thread da_cra_hunt at yahoo dot com
--- Comment #3 from da_cra_hunt at yahoo dot com 2009-07-23 17:34 --- Simple case : template struct A {}; template struct B { struct Inner {}; }; template struct A::Inner> {}; 4.1.2/VS2005 compile quietly. 4.3.2 (g++ -c test.cpp) gives : kk.cpp:5: error: template parameters not use

[Bug c++/40684] ICE in tsubst

2009-07-23 Thread hjl dot tools at gmail dot com
-- hjl dot tools at gmail dot com changed: What|Removed |Added Target Milestone|--- |4.4.1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40684

[Bug c++/40799] [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006

2009-07-23 Thread hjl at gcc dot gnu dot org
--- Comment #10 from hjl at gcc dot gnu dot org 2009-07-23 17:51 --- Subject: Bug 40799 Author: hjl Date: Thu Jul 23 17:50:56 2009 New Revision: 150020 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020 Log: 2009-07-23 H.J. Lu Backport from mainline: 2009-

[Bug debug/40705] [4.5 Regression] ICE in gen_type_die_with_usage, at dwarf2out.c:15117

2009-07-23 Thread hjl at gcc dot gnu dot org
--- Comment #8 from hjl at gcc dot gnu dot org 2009-07-23 17:51 --- Subject: Bug 40705 Author: hjl Date: Thu Jul 23 17:50:56 2009 New Revision: 150020 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020 Log: 2009-07-23 H.J. Lu Backport from mainline: 2009-0

[Bug bootstrap/40753] [4.5 Regression] ICE in refs_may_alias_p_1 for libffi/src/powerpc/ffi.c

2009-07-23 Thread hjl at gcc dot gnu dot org
--- Comment #5 from hjl at gcc dot gnu dot org 2009-07-23 17:51 --- Subject: Bug 40753 Author: hjl Date: Thu Jul 23 17:50:56 2009 New Revision: 150020 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020 Log: 2009-07-23 H.J. Lu Backport from mainline: 2009-0

[Bug c++/40357] [4.5 Regression] compiler hang for C++ code

2009-07-23 Thread hjl at gcc dot gnu dot org
--- Comment #8 from hjl at gcc dot gnu dot org 2009-07-23 17:51 --- Subject: Bug 40357 Author: hjl Date: Thu Jul 23 17:50:56 2009 New Revision: 150020 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020 Log: 2009-07-23 H.J. Lu Backport from mainline: 2009-0

[Bug fortran/40662] gfortran 4.5 segfaults when specific FORMAT is invoked twice

2009-07-23 Thread hjl at gcc dot gnu dot org
--- Comment #7 from hjl at gcc dot gnu dot org 2009-07-23 17:51 --- Subject: Bug 40662 Author: hjl Date: Thu Jul 23 17:50:56 2009 New Revision: 150020 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020 Log: 2009-07-23 H.J. Lu Backport from mainline: 2009-0

[Bug libfortran/40330] [4.5 Regression] incorrect IO

2009-07-23 Thread hjl at gcc dot gnu dot org
--- Comment #38 from hjl at gcc dot gnu dot org 2009-07-23 17:51 --- Subject: Bug 40330 Author: hjl Date: Thu Jul 23 17:50:56 2009 New Revision: 150020 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020 Log: 2009-07-23 H.J. Lu Backport from mainline: 2009-

[Bug tree-optimization/40496] [4.5 Regression] ICE in verify_stmts with -fprefetch-loop-arrays

2009-07-23 Thread hjl at gcc dot gnu dot org
--- Comment #6 from hjl at gcc dot gnu dot org 2009-07-23 17:51 --- Subject: Bug 40496 Author: hjl Date: Thu Jul 23 17:50:56 2009 New Revision: 150020 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020 Log: 2009-07-23 H.J. Lu Backport from mainline: 2009-0

[Bug middle-end/40692] [4.5 Regression] Endless recursion between fold_ternary and fold_cond_expr_with_comparison

2009-07-23 Thread hjl at gcc dot gnu dot org
--- Comment #4 from hjl at gcc dot gnu dot org 2009-07-23 17:51 --- Subject: Bug 40692 Author: hjl Date: Thu Jul 23 17:50:56 2009 New Revision: 150020 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020 Log: 2009-07-23 H.J. Lu Backport from mainline: 2009-0

[Bug tree-optimization/40676] [4.5 Regression] internal compiler error: verify_ssa error: definition in block 5 does not dominate use in block 7

2009-07-23 Thread hjl at gcc dot gnu dot org
--- Comment #9 from hjl at gcc dot gnu dot org 2009-07-23 17:51 --- Subject: Bug 40676 Author: hjl Date: Thu Jul 23 17:50:56 2009 New Revision: 150020 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150020 Log: 2009-07-23 H.J. Lu Backport from mainline: 2009-0

[Bug fortran/40839] gfortran segmentation fault when a unit number is missing

2009-07-23 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-07-23 18:09 --- Subject: Bug 40839 Author: jakub Date: Thu Jul 23 18:09:43 2009 New Revision: 150021 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150021 Log: PR fortran/40839 * io.c (gfc_resolve_dt): Add LOC

[Bug c++/40834] [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #4 from hjl dot tools at gmail dot com 2009-07-23 18:15 --- FunctionSubstringAfter.cpp FunctionSubstringBefore.cpp FunctionSubstring.cpp are miscompiled. I have to replace all of them to get a working binary, -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40834

[Bug c++/40834] [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2009-07-23 18:19 --- (In reply to comment #4) > FunctionSubstringAfter.cpp FunctionSubstringBefore.cpp FunctionSubstring.cpp > are miscompiled. I have to replace all of them to get a working binary, > It fails even with -O0. Replace

[Bug bootstrap/37739] [4.4 Regression] bootstrap broken with core gcc > gcc-4.2.x

2009-07-23 Thread giffordj at la dot twcbc dot com
--- Comment #26 from giffordj at la dot twcbc dot com 2009-07-23 18:36 --- Looks like it's being used. Any ideas? gcc -isystem /usr/include -m32 -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition

[Bug c++/40834] [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2009-07-23 18:48 --- Created an attachment (id=18246) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18246&action=view) A testcase You can compare the outputs before and after change. -- http://gcc.gnu.org/bugzilla/show_bug.cg

[Bug c++/40834] [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #7 from hjl dot tools at gmail dot com 2009-07-23 18:56 --- Here are the differences between good and bad GOOD const struct XalanDOMString & theFirstString = (const struct XalanDOMString &) (const struct XalanDOMString *) OBJ_TYPE_REF(*(SAVE_EXPR (&arg1)>->D.20005._vptr.Xal

[Bug c++/40834] [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #8 from hjl dot tools at gmail dot com 2009-07-23 18:57 --- Jason, can you take a look at this? -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug c++/40834] [4.5 Regression] Revision 149750 failed 483.xalancbmk in SPEC CPU 2006

2009-07-23 Thread hjl dot tools at gmail dot com
--- Comment #9 from hjl dot tools at gmail dot com 2009-07-23 19:16 --- This patch: Index: cp-gimplify.c === --- cp-gimplify.c (revision 149933) +++ cp-gimplify.c (working copy) @@ -804,15 +804,6 @@ cp_genericiz

RE: Failed to build plural.c on IRIX64 6.5

2009-07-23 Thread Tovrea, George W (US SSA)
As you suggested, I downloaded/built bison 1.875 (plus the latest m4) and got passed the problem below. However, there is a new problem. File config.cache in the gcc directory is empty and no Makefile was generated. Consequently, the following error occurs: make[3]: Entering directory `/home/user

[Bug c++/40840] New: Segfault with SPU C++ compiler 4.1.1 (const member + vector array)

2009-07-23 Thread dimitrij dot kotrev at googlemail dot com
spu-g++ -v Using built-in specs. Target: spu Configured with: ../toolchain/gcc/configure --prefix=/opt/cell/toolchain --mandir=/opt/cell/toolchain/man --infodir=/opt/cell/toolchain/info --with-sysroot=/opt/cell/sysroot --disable-shared --disable-threads --disable-checking --with-headers --with-sys

[Bug c++/40840] Segfault with SPU C++ compiler 4.1.1 (const member + vector array)

2009-07-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-07-23 20:14 --- Fixed in 4.4.0. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|

[Bug middle-end/38770] internal compiler error: asm clobber conflict with output operand

2009-07-23 Thread doubletwist at fearthepenguin dot net
--- Comment #2 from doubletwist at fearthepenguin dot net 2009-07-23 20:21 --- I see the exact same error on Solaris 8 Sparc using GCC 4.3.2 -- doubletwist at fearthepenguin dot net changed: What|Removed |Added

[Bug middle-end/38770] internal compiler error: asm clobber conflict with output operand

2009-07-23 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-07-23 20:24 --- This error is correct as we have: register int overflow __asm__("%g6"); ... __asm__ ( "addcc %2,%3,%0; addx %%g0,%%g0,%1" : "=r" (__value), "=r" (overflow) : "r" (__arg1), "r" (__arg2) : "%g6","cc"); So t

[Bug libstdc++/40841] New: Application segfaults when throwing an exception that destroys an fstream

2009-07-23 Thread zlynx at acm dot org
I configure the fstream like this: ifstream is; is.exceptions(ifstream::badbit | ifstream::failbit); is.open(filename, ifstream::in | ifstream::binary); When it tries to open a file that does not exist, it throws an exception just as it should. If this is immediately inside a try/cat

[Bug libstdc++/40841] Application segfaults when throwing an exception that destroys an fstream

2009-07-23 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-07-23 20:46 --- First of all, please provide a complete, small, self contained, snippet showing the problem. Thanks. -- paolo dot carlini at oracle dot com changed: What|Removed |Added -

[Bug libstdc++/40841] Application segfaults when throwing an exception that destroys an fstream

2009-07-23 Thread zlynx at acm dot org
--- Comment #2 from zlynx at acm dot org 2009-07-23 21:01 --- Created an attachment (id=18247) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18247&action=view) reproduce -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40841

[Bug libstdc++/40841] Application segfaults when throwing an exception that destroys an fstream

2009-07-23 Thread zlynx at acm dot org
--- Comment #3 from zlynx at acm dot org 2009-07-23 21:03 --- Also note that this seems to be a IA64 problem, not x86. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40841

[Bug libstdc++/40841] Application segfaults when throwing an exception that destroys an fstream

2009-07-23 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2009-07-23 21:09 --- I see, I can't reproduce it on x86_64-linux, maybe Richard can help for ia64 testing... If that's really the case, however, probably not a libstdc++-proper issue. -- paolo dot carlini at oracle dot com chan

[Bug rtl-optimization/40842] New: Poor register class choice in IRA

2009-07-23 Thread pthaugen at gcc dot gnu dot org
Moving this issue from bz 39976 since it is a separate problem than the original documented there. Verified the behavior still exists using current trunk revision (150020). The testcase comes from cpu2000 sixtrack benchmark. Following is original comment I posted: === The attatched testcase

[Bug rtl-optimization/40842] Poor register class choice in IRA

2009-07-23 Thread pthaugen at gcc dot gnu dot org
--- Comment #1 from pthaugen at gcc dot gnu dot org 2009-07-23 21:33 --- Created an attachment (id=18248) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18248&action=view) Testcase The reduced testcase (since you can't attatch one when opening a new bz). -- http://gcc.gnu.org

[Bug c++/40843] New: private access violation: compile bad code

2009-07-23 Thread sipych at gmail dot com
// Illegal access to private member not detected, program compiles silently. // bug found in: // g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44) // g++ (Ubuntu 4.3.3-5ubuntu4) 4.3.3 #include class A { enum { value=1 }; // private }; template // bug appears only if B is a template struc

[Bug c++/40843] access violation not detected for non dependent qualified enum value

2009-07-23 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-07-23 21:46 --- I think this is a duplicate of bug 21008. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug tree-optimization/38785] [4.3/4.4/4.5 Regression] huge performance regression on EEMBC bitmnp01

2009-07-23 Thread drow at gcc dot gnu dot org
--- Comment #17 from drow at gcc dot gnu dot org 2009-07-23 21:50 --- Steven, have you had time for this? Anything we can do to help? -- drow at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/40843] access violation not detected for non dependent qualified enum value

2009-07-23 Thread sipych at gmail dot com
--- Comment #2 from sipych at gmail dot com 2009-07-23 22:08 --- (In reply to comment #1) > I think this is a duplicate of bug 21008. > Not shure, A::value may not be accessible neither at the template definition, nor at the instantiation time. -- http://gcc.gnu.org/bugzilla/show_

[Bug tree-optimization/38785] [4.3/4.4/4.5 Regression] huge performance regression on EEMBC bitmnp01

2009-07-23 Thread stevenb dot gcc at gmail dot com
--- Comment #18 from stevenb dot gcc at gmail dot com 2009-07-23 22:23 --- Subject: Re: [4.3/4.4/4.5 Regression] huge performance regression on EEMBC bitmnp01 I had the patch ready but Matz' PRE patch means I have to rework things a bit. Since I only have time for this in wee

[Bug libstdc++/40841] Application segfaults when throwing an exception that destroys an fstream

2009-07-23 Thread zlynx at acm dot org
--- Comment #5 from zlynx at acm dot org 2009-07-23 22:26 --- The actual segfault seems to happen in the .plt section. I am not entirely clear on how this is laid out and how to find what symbol is where. But on entry to the plt code, the r1 register is set to an invalid memory location

  1   2   >