[Bug tree-optimization/39506] PTA TBAA pruning wrong for -fargument-noalias-*

2009-03-20 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2009-03-20 10:31 --- Hm? In the testcase the argument points to NULL. I do not see that 1) assigning sth else to the parameter is forbidden by the optimization switch 2) we prevent the compiler from coalescing an unrelated

[Bug middle-end/34109] Incorrect code for tail calls with a structure as 4th argument

2009-03-20 Thread mikpe at it dot uu dot se
--- Comment #4 from mikpe at it dot uu dot se 2009-03-20 11:08 --- (In reply to comment #3) No feedback in over a year. Presumed fixed in 4.3.0. I can confirm that this test case works when compiled with a vanilla gcc-4.3.3 built for armv5tel eabi. --

[Bug debug/37890] Incorrect nesting for DW_TAG_imported_declaration

2009-03-20 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2009-03-20 12:44 --- You're right. About to test an additional patch. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/37890] Incorrect nesting for DW_TAG_imported_declaration

2009-03-20 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2009-03-20 12:47 --- Created an attachment (id=17502) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17502action=view) gcc44-pr37890.patch Testcase with more namespace aliases: namespace A { int x = 1; } namespace B1 = A;

[Bug debug/39355] [4.4 Regression] Revision 144529 miscompiled libcpp/expr.c

2009-03-20 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #30 from dave at hiauly1 dot hia dot nrc dot ca 2009-03-20 13:17 --- Subject: Re: [4.4 Regression] Revision 144529 miscompiled libcpp/expr.c With todays, head, it seems the miscompilation is related to the inlining of check_promotion. Adding noinline attribute makes

[Bug c/39406] ice in tree-dfa.c for legal code with -O2

2009-03-20 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2009-03-20 14:08 --- Works for me as of revision 144963. -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug c/39369] ioquake3 SIGSEGVs when compiled with SSE optimizations

2009-03-20 Thread hjl dot tools at gmail dot com
--- Comment #1 from hjl dot tools at gmail dot com 2009-03-20 14:11 --- Can you try adding -mpreferred-stack-boundary=2? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39369

[Bug tree-optimization/39506] PTA TBAA pruning wrong for -fargument-noalias-*

2009-03-20 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2009-03-20 14:19 --- Subject: Bug 39506 Author: rguenth Date: Fri Mar 20 14:19:08 2009 New Revision: 144976 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=144976 Log: 2009-03-20 Richard Guenther rguent...@suse.de PR

[Bug tree-optimization/39506] PTA TBAA pruning wrong for -fargument-noalias-*

2009-03-20 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2009-03-20 14:20 --- Fixed on a-i branch. Invalid for trunk (not that this makes these switches usable somehow ...) -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/39459] ICE in libgcc2.c:1103: Segmentation fault

2009-03-20 Thread hjl dot tools at gmail dot com
--- Comment #6 from hjl dot tools at gmail dot com 2009-03-20 14:42 --- Don't use -fsee on x86-64. -- hjl dot tools at gmail dot com changed: What|Removed |Added

[Bug preprocessor/39512] New: linemap_init in lex.c does not initialize reallocator

2009-03-20 Thread roger dot ferrer at bsc dot es
Seems that 'reallocator' field is not set to NULL in lex.c:linemap_init. Later on in the code this field can be initialized with xrealloc only if it was NULL. Since it is a pointer to a function, using it it leads to unexpected behaviour (e.g. SIGILL or SIGTRAP). Doing a quick grep in the

[Bug debug/37890] Incorrect nesting for DW_TAG_imported_declaration

2009-03-20 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2009-03-20 16:16 --- Subject: Bug 37890 Author: jakub Date: Fri Mar 20 16:15:38 2009 New Revision: 144978 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=144978 Log: PR debug/37890 * dwarf2out.c (gen_namespace_die):

[Bug target/36834] structure return ABI for windows targets differs from native MSVC

2009-03-20 Thread mattias at virtutech dot se
--- Comment #7 from mattias at virtutech dot se 2009-03-20 17:16 --- The proposed patch works for plain C code, but also affects C++. Since libstdc++ contains code that returns aggregates or calls code that does, -mms-aggregate-return will make the generated code incompatible with the

[Bug tree-optimization/39355] [4.4 Regression] Revision 144529 miscompiled libcpp/expr.c

2009-03-20 Thread jason at gcc dot gnu dot org
--- Comment #31 from jason at gcc dot gnu dot org 2009-03-20 17:22 --- Changing component to tree-optimization. -- jason at gcc dot gnu dot org changed: What|Removed |Added

[Bug tree-optimization/39355] [4.4 Regression] Revision 144529 miscompiled libcpp/expr.c

2009-03-20 Thread rguenth at gcc dot gnu dot org
--- Comment #32 from rguenth at gcc dot gnu dot org 2009-03-20 17:29 --- Did you really mean that inserting the #if 1 disables the ICE or did you mean to insert #if 0? Is the preprocessor output different for the ICEing testcase? --

[Bug tree-optimization/39355] [4.4 Regression] Revision 144529 miscompiled libcpp/expr.c

2009-03-20 Thread hjl dot tools at gmail dot com
--- Comment #33 from hjl dot tools at gmail dot com 2009-03-20 18:04 --- Please provide preprocessed libcpp/expr.c which is miscompiled as well as the command line used to miscompile it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39355

[Bug c++/26266] [4.2/4.3/4.4 regression] Trouble with static const data members in template classes

2009-03-20 Thread jason at gcc dot gnu dot org
--- Comment #25 from jason at gcc dot gnu dot org 2009-03-20 18:11 --- I don't think the testcase in comment #7 indicates a bug at all. We don't issue an error because we don't instantiate A0::i. 14.6 says: If no valid specialization can be generated for a template definition, and

[Bug java/18190] [4.2/4.3/4.4 regression] primitive array optimization is gone

2009-03-20 Thread steven at gcc dot gnu dot org
--- Comment #12 from steven at gcc dot gnu dot org 2009-03-20 18:30 --- Tom, this hasn't been reconfirmed in a while. Does this bug still exist in gcj? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18190

[Bug java/18190] [4.2/4.3/4.4 regression] primitive array optimization is gone

2009-03-20 Thread steven at gcc dot gnu dot org
-- steven at gcc dot gnu dot org changed: What|Removed |Added Status|NEW |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18190

[Bug tree-optimization/39355] [4.4 Regression] Revision 144529 miscompiled libcpp/expr.c

2009-03-20 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #34 from dave at hiauly1 dot hia dot nrc dot ca 2009-03-20 19:07 --- Subject: Re: [4.4 Regression] Revision 144529 miscompiled libcpp/expr.c Did you really mean that inserting the #if 1 disables the ICE or did you mean to insert #if 0? Is the preprocessor

[Bug tree-optimization/39355] [4.4 Regression] Revision 144529 miscompiled libcpp/expr.c

2009-03-20 Thread dave at hiauly1 dot hia dot nrc dot ca
--- Comment #35 from dave at hiauly1 dot hia dot nrc dot ca 2009-03-20 19:09 --- Subject: Re: [4.4 Regression] Revision 144529 miscompiled libcpp/expr.c Please provide preprocessed libcpp/expr.c which is miscompiled as well as the command line used to miscompile it.

[Bug target/39212] ice for AVR target: unable to find a register to spill in class 'POINTER_REGS'

2009-03-20 Thread LAL at pro dot onet dot pl
--- Comment #4 from LAL at pro dot onet dot pl 2009-03-20 19:29 --- Created an attachment (id=17504) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17504action=view) Test case for spotting similar error The host is Fedora 8. [ar...@gizmo AVR]$ avr-gcc -v -save-temps -std=gnu99

[Bug rtl-optimization/24319] [4.2/4.3/4.4 regression] amd64 register spill error with -fschedule-insns

2009-03-20 Thread steven at gcc dot gnu dot org
--- Comment #11 from steven at gcc dot gnu dot org 2009-03-20 19:36 --- Reconfirmed for test cases of comment #9 (same spill failures). -- steven at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28879] [4.2/4.3/4.4 regression] ICE with VLA in template function

2009-03-20 Thread jason at gcc dot gnu dot org
--- Comment #10 from jason at gcc dot gnu dot org 2009-03-20 19:36 --- Taking. -- jason at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|mark at

[Bug debug/37890] Incorrect nesting for DW_TAG_imported_declaration

2009-03-20 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2009-03-20 19:38 --- Fixed for real now. -- jakub at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/26266] [4.2/4.3/4.4 regression] Trouble with static const data members in template classes

2009-03-20 Thread mark at codesourcery dot com
--- Comment #26 from mark at codesourcery dot com 2009-03-20 20:16 --- Subject: Re: [4.2/4.3/4.4 regression] Trouble with static const data members in template classes jason at gcc dot gnu dot org wrote: I don't think the testcase in comment #7 indicates a bug at all. FWIW, I

[Bug c++/39513] New: class defined in file scope got linked by other files

2009-03-20 Thread jengliang at gmail dot com
This happens when one class is defined in header file, the other defined in cpp file, have the same name. The program behavior becomes gcc argument order dependent. At any rate, class A defined in foo.cpp has file scope shouldn't be seen in bar.cpp. $ g++ main.cpp foo.cpp bar.cpp $ ./a.out

[Bug c++/39513] class defined in file scope got linked by other files

2009-03-20 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-03-20 20:44 --- You are violating C++'s One definition rule (ODR). This code is undefined because the definition of A::A() (and others) are different between the two files. -- pinskia at gcc dot gnu dot org changed:

[Bug c++/39513] class defined in file scope got linked by other files

2009-03-20 Thread jengliang at gmail dot com
--- Comment #2 from jengliang at gmail dot com 2009-03-20 20:52 --- (In reply to comment #1) You are violating C++'s One definition rule (ODR). This code is undefined because the definition of A::A() (and others) are different between the two files. Thanks for the quick response

[Bug c++/39513] class defined in file scope got linked by other files

2009-03-20 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-03-20 20:56 --- This is hard to detect really because of inlining differences between translational units. See http://en.wikipedia.org/wiki/One_Definition_Rule -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39513

[Bug java/18190] [4.2/4.3/4.4 regression] primitive array optimization is gone

2009-03-20 Thread rguenth at gcc dot gnu dot org
--- Comment #13 from rguenth at gcc dot gnu dot org 2009-03-20 22:44 --- It at least still happens with 4.3 and I have no belief that it is fixed with 4.4 if comment #3 applies. Code generated is also absymal (-O2): _ZN1t18__U3c_clinit__U3e_EJvv: .LFB2: pushl %ebp .LCFI0:

[Bug java/18190] [4.2/4.3/4.4 regression] primitive array optimization is gone

2009-03-20 Thread steven at gcc dot gnu dot org
-- steven at gcc dot gnu dot org changed: What|Removed |Added Status|WAITING |NEW Last reconfirmed|2006-09-17 19:41:31 |2009-03-20

[Bug middle-end/39514] New: unreported change to packed bitfields

2009-03-20 Thread janis at gcc dot gnu dot org
Tests t007 and t177 from the C++ struct-layout-1 compat tests fail when using GCC 4.3.3 as ALT compilers when testing trunk. The failure for one, check 932 in test t007, is due to a change from r132614 | ebotcazou | 2008-02-25 09:55:26 + (Mon, 25 Feb 2008) | 4 lines *

[Bug middle-end/39514] unreported change to packed bitfields

2009-03-20 Thread janis at gcc dot gnu dot org
--- Comment #1 from janis at gcc dot gnu dot org 2009-03-20 23:41 --- Created an attachment (id=17505) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17505action=view) partial patch to compiler, good patch to testsuite -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39514

[Bug middle-end/39514] unreported change to packed bitfields

2009-03-20 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-03-21 00:01 --- http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00686.html In fact I think the trunk is more correct at least that is the way I read the sizes and offsets. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39514

[Bug middle-end/39514] unreported change to packed bitfields

2009-03-20 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2009-03-21 00:02 --- Also see the thread starting at http://gcc.gnu.org/ml/gcc-patches/2007-09/msg00994.html . -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39514

[Bug middle-end/39514] unreported change to packed bitfields

2009-03-20 Thread janis at gcc dot gnu dot org
--- Comment #4 from janis at gcc dot gnu dot org 2009-03-21 00:22 --- I didn't call it a bug or a regression, but even a deliberate change can produce incompatibilities between objects compiled with different versions of GCC. That's why it would be good to get a suppressible

[Bug middle-end/35305] Speculative PRE support missing

2009-03-20 Thread steven at gcc dot gnu dot org
--- Comment #2 from steven at gcc dot gnu dot org 2009-03-21 00:54 --- I'm considering implementing/experimenting with something along the lines of this: http://www.cs.ualberta.ca/~amaral/cascon/CDP05/slides/CDP05-horspool.pdf -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35305

[Bug tree-optimization/39355] [4.4 Regression] Revision 144529 miscompiled libcpp/expr.c

2009-03-20 Thread danglin at gcc dot gnu dot org
--- Comment #37 from danglin at gcc dot gnu dot org 2009-03-21 00:53 --- Looking at the ICE some more, I see that the backtrace shown in the original report involves the code added by Honza in revision 144529. The loc value in frame 1 appears a somewhat wierd. --

[Bug target/36834] structure return ABI for windows targets differs from native MSVC

2009-03-20 Thread dannysmith at users dot sourceforge dot net
--- Comment #8 from dannysmith at users dot sourceforge dot net 2009-03-21 01:03 --- (In reply to comment #7) The proposed patch works for plain C code, but also affects C++. Since libstdc++ contains code that returns aggregates or calls code that does, An example, please. The

[Bug c++/36963] Bogus narrowing conversion error in initializer list with -std=c++0x

2009-03-20 Thread jason at gcc dot gnu dot org
--- Comment #8 from jason at gcc dot gnu dot org 2009-03-21 03:00 --- Fixed. -- jason at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED