[Bug c/39394] New: gcc 4.4.0 20090306 segfaults at argp-help.c in glibc 2.7 and 2.9

2009-03-06 Thread kdebugs at hotmail dot com
gfaults at argp-help.c It has been like that for about two weeks. This machine attempts to compile gcc-svn and glibc daily. Sometimes it works sometimes not. I tested with glibc 2.9 and gcc appears to still segfault. -- Summary: gcc 4.4.0 20090306 segfaults at argp-help.c in

[Bug middle-end/39333] gcc 4.3.3 miscompiles when -finline-small-functions is used

2009-03-06 Thread pinskia at gmail dot com
--- Comment #17 from pinskia at gmail dot com 2009-03-07 04:35 --- Subject: Re: gcc 4.3.3 miscompiles when -finline-small-functions is used Sent from my iPhone On Mar 6, 2009, at 8:30 PM, "galtgendo at o2 dot pl" wrote: > > > --- Comment #16 from galtgendo at o2 dot pl 2009-0

Re: [Bug middle-end/39333] gcc 4.3.3 miscompiles when -finline-small-functions is used

2009-03-06 Thread Andrew Thomas Pinski
Sent from my iPhone On Mar 6, 2009, at 8:30 PM, "galtgendo at o2 dot pl" > wrote: --- Comment #16 from galtgendo at o2 dot pl 2009-03-07 04:30 --- OK, I've done a little test and I'd like to know, if it's results actually mean anything: I've compiled freeciv with CFLAGS="-O2 -f

[Bug middle-end/39333] gcc 4.3.3 miscompiles when -finline-small-functions is used

2009-03-06 Thread galtgendo at o2 dot pl
--- Comment #16 from galtgendo at o2 dot pl 2009-03-07 04:30 --- OK, I've done a little test and I'd like to know, if it's results actually mean anything: I've compiled freeciv with CFLAGS="-O2 -finline-functions -fno-guess-branch-probability" and it did not crash. Does the above confir

[Bug inline-asm/39393] invalid instructions accepted in inline assembly language on 32 bit machines

2009-03-06 Thread markhobley at yahoo dot co dot uk
--- Comment #3 from markhobley at yahoo dot co dot uk 2009-03-07 02:40 --- Subject: Re: invalid instructions accepted in inline assembly language on 32 bit machines --- On Sat, 7/3/09, hjl dot tools at gmail dot com wrote: > I got > > h...@gnu-9 tmp]$ gcc -march=i386 -Wa,-march=i3

[Bug target/37520] NO_DOLLAR_IN_LABEL should be defined on x86 targets

2009-03-06 Thread hjl dot tools at gmail dot com
--- Comment #21 from hjl dot tools at gmail dot com 2009-03-07 01:48 --- Fixed. -- hjl dot tools at gmail dot com changed: What|Removed |Added Status|NEW

[Bug target/37520] NO_DOLLAR_IN_LABEL should be defined on x86 targets

2009-03-06 Thread hjl at gcc dot gnu dot org
--- Comment #20 from hjl at gcc dot gnu dot org 2009-03-07 01:47 --- Subject: Bug 37520 Author: hjl Date: Sat Mar 7 01:47:25 2009 New Revision: 144692 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144692 Log: 2009-03-06 H.J. Lu PR c++/37520 * cp-tree.h: Che

[Bug inline-asm/39393] invalid instructions accepted in inline assembly language on 32 bit machines

2009-03-06 Thread hjl dot tools at gmail dot com
--- Comment #2 from hjl dot tools at gmail dot com 2009-03-07 01:31 --- (In reply to comment #0) > On an x86_64 bit machine, if an attempt to compile code containing an invalid > instruction is attempted, an error will correctly occur: > > cat /etc/testasm.c > int main(void) > { > a

[Bug inline-asm/39393] invalid instructions accepted in inline assembly language on 32 bit machines

2009-03-06 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-03-07 01:01 --- Since this is an inline-asm, it gets processed by the assembler and not GCC. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug c/39393] New: invalid instructions accepted in inline assembly language on 32 bit machines

2009-03-06 Thread markhobley at yahoo dot co dot uk
On an x86_64 bit machine, if an attempt to compile code containing an invalid instruction is attempted, an error will correctly occur: cat /etc/testasm.c int main(void) { asm("cpuid"); /* Invalid on the i386 */ } gcc -march=i386 -Wa,-march=i386 testasm.c Error: `cpuid' is not support

[Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563

2009-03-06 Thread linuxl4 at sohu dot com
--- Comment #14 from linuxl4 at sohu dot com 2009-03-07 00:12 --- thanks a lot. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39360

[Bug c++/33492] [4.2/4.3 regression] Broken diagnostic: 'must_not_throw_expr' not supported by dump_expr

2009-03-06 Thread paolo dot carlini at oracle dot com
--- Comment #7 from paolo dot carlini at oracle dot com 2009-03-06 23:53 --- Fixed for 4.4.0. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/33492] [4.2/4.3/4.4 regression] Broken diagnostic: 'must_not_throw_expr' not supported by dump_expr

2009-03-06 Thread paolo at gcc dot gnu dot org
--- Comment #6 from paolo at gcc dot gnu dot org 2009-03-06 23:52 --- Subject: Bug 33492 Author: paolo Date: Fri Mar 6 23:52:02 2009 New Revision: 144686 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144686 Log: /cp 2009-03-06 Paolo Carlini PR c++/33492 * e

[Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #13 from jakub at gcc dot gnu dot org 2009-03-06 22:53 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug debug/39372] [4.3 Regression] Missing DW_AT_location for constructor static variable

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2009-03-06 22:52 --- Fixed on the trunk so far. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Known t

[Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #12 from jakub at gcc dot gnu dot org 2009-03-06 22:51 --- Subject: Bug 39360 Author: jakub Date: Fri Mar 6 22:51:28 2009 New Revision: 144683 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144683 Log: PR middle-end/39360 * tree-flow.h (add_reference

[Bug debug/39372] [4.3/4.4 Regression] Missing DW_AT_location for constructor static variable

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2009-03-06 22:49 --- Subject: Bug 39372 Author: jakub Date: Fri Mar 6 22:49:39 2009 New Revision: 144682 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144682 Log: PR debug/39372 * dwarf2out.c (add_abstract_origin

[Bug c++/39367] [4.4 Regression] ICE at tree-inline.c:1042 with -O

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #10 from jakub at gcc dot gnu dot org 2009-03-06 22:47 --- Jason, if you think you can fix this by not using a VLA at all, please take this bug over. -- jakub at gcc dot gnu dot org changed: What|Removed |Added -

[Bug bootstrap/26539] make install fails in libcpp if bootstrap compiler got removed

2009-03-06 Thread v dot merkatz at gmx dot net
--- Comment #9 from v dot merkatz at gmx dot net 2009-03-06 22:06 --- Works fine with gcc 4.3.2. -- v dot merkatz at gmx dot net changed: What|Removed |Added

[Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563

2009-03-06 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org

[Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #11 from jakub at gcc dot gnu dot org 2009-03-06 19:11 --- Created an attachment (id=17412) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17412&action=view) gcc44-pr39360.patch Patch I'm bootstrapping/regtesting now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=

[Bug middle-end/39392] internal compiler error: in referenced_var_lookup

2009-03-06 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2009-03-06 18:16 --- Most likely a duplicate of bug 39360. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39392

[Bug c/39392] internal compiler error: in referenced_var_lookup

2009-03-06 Thread jkolb at wsi dot com
--- Comment #3 from jkolb at wsi dot com 2009-03-06 18:02 --- Created an attachment (id=17411) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17411&action=view) preprocessed file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39392

[Bug c/39392] internal compiler error: in referenced_var_lookup

2009-03-06 Thread jkolb at wsi dot com
--- Comment #2 from jkolb at wsi dot com 2009-03-06 18:01 --- Created an attachment (id=17410) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17410&action=view) #included by h264.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39392

[Bug c/39392] internal compiler error: in referenced_var_lookup

2009-03-06 Thread jkolb at wsi dot com
--- Comment #1 from jkolb at wsi dot com 2009-03-06 18:00 --- Created an attachment (id=17409) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17409&action=view) Offending Source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39392

[Bug c/39392] New: internal compiler error: in referenced_var_lookup

2009-03-06 Thread jkolb at wsi dot com
Trying to compile latest ffmpeg (ffmpeg-checkout-2009-03-06) Using mingw-w64-bin_i686-mingw_20090303 I get an ICE on mingw compiling for x64. $ make x86_64-pc-mingw32-gcc -DHAVE_AV_CONFIG_H -I. -I"/c/ffmpeg-checkout-2009-03-06" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99 -D_FILE_OFFSET_BITS

[Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #10 from jakub at gcc dot gnu dot org 2009-03-06 17:53 --- To "do the same" the easiest would be probably change add_referenced_var to return bool, whatever referenced_var_check_and_insert returned, and use add_referenced_var instead of referenced_var_check_and_insert in expa

[Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563

2009-03-06 Thread hubicka at ucw dot cz
--- Comment #9 from hubicka at ucw dot cz 2009-03-06 17:30 --- Subject: Re: [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563 > part. So, either tree-inline.c needs to do the same, or it can't use > referenced_vars bit as a test whether it has been queued already onto >

[Bug c/39383] sizeof object with zero-length array ignores initializer

2009-03-06 Thread jsm28 at gcc dot gnu dot org
--- Comment #7 from jsm28 at gcc dot gnu dot org 2009-03-06 17:27 --- Reopening. -- jsm28 at gcc dot gnu dot org changed: What|Removed |Added Status|RESOLVED

[Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2009-03-06 17:24 --- I think it is the new: 3384 if (TREE_STATIC (var) && !TREE_ASM_WRITTEN (var)) 3385{ 3386 if (var_ann (var) && referenced_var_check_and_insert (var)) 3387cfun->local_decls = tree_cons (

[Bug tree-optimization/31849] [4.3/4.4 Regression] Code size increased with PR 31360 (IV-opts not understanding autoincrement)

2009-03-06 Thread amylaar at gcc dot gnu dot org
--- Comment #48 from amylaar at gcc dot gnu dot org 2009-03-06 15:54 --- Created an attachment (id=17408) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17408&action=view) patch to take POST_DEC and POST_MODIFY into account The Copyright assignment issue has been resulved now. Th

[Bug middle-end/39360] [4.4 Regression] ICE in referenced_var_lookup, at tree-dfa.c:563

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #7 from jakub at gcc dot gnu dot org 2009-03-06 15:39 --- Smaller testcase: static int a[] = { 1 }; static inline void bar (int **x) { static int *c[2] = { 0, a }; *x = c[1]; } int foo (int **x) { bar (x); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39360

[Bug tree-optimization/31849] [4.3/4.4 Regression] Code size increased with PR 31360 (IV-opts not understanding autoincrement)

2009-03-06 Thread alexandre dot nunes at gmail dot com
--- Comment #47 from alexandre dot nunes at gmail dot com 2009-03-06 15:29 --- Any news on the subject? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31849

[Bug driver/39356] assembler isn't called

2009-03-06 Thread ktietz at gcc dot gnu dot org
--- Comment #3 from ktietz at gcc dot gnu dot org 2009-03-06 15:12 --- Well, the issues in driver seems to be related to pexecute in protoize.c. On a first glance, I noticed that here for pid's an 'int' type is used (btw in libiberty a 'long' is used for keeping the pids, which is for w6

[Bug c++/39367] [4.4 Regression] ICE at tree-inline.c:1042 with -O

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2009-03-06 15:06 --- Created an attachment (id=17407) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17407&action=view) gcc44-pr39367.patch Patch I'm going to bootstrap/regtest now. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug c/39383] sizeof object with zero-length array ignores initializer

2009-03-06 Thread algrant at acm dot org
--- Comment #6 from algrant at acm dot org 2009-03-06 14:44 --- Right. The existence of a statically initialized object whose size can be determined at compile-time to be larger than the (notional) type size, is specific to GCC. Here's another thing: the assembler output shows

[Bug tree-optimization/39390] [4.4 regression] Bogus aliasing warning with std::set

2009-03-06 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2009-03-06 14:16 --- Scheduling another pass_phi_only_cprop after VRP removes the single-argument PHI nodes (I think that really cfg-cleanup should do this, as they usually result from edge removal). While this is reasonably cheap it do

[Bug c++/39367] [4.4 Regression] ICE at tree-inline.c:1042 with -O

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #8 from jakub at gcc dot gnu dot org 2009-03-06 14:06 --- Normally TYPE_MAX_VALUE etc. shouldn't contain anything but constants or VAR_DECLs after gimplification, gimplify_type_sizes is supposed to take care of this. The problem here is that build_new_1 when it creates its VL

[Bug c++/39391] argument dependant name lookup don't catch pointer to function

2009-03-06 Thread chrbr at gcc dot gnu dot org
--- Comment #1 from chrbr at gcc dot gnu dot org 2009-03-06 14:05 --- Created an attachment (id=17406) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17406&action=view) Example -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39391

[Bug c++/39391] New: argument dependant name lookup don't catch pointer to function

2009-03-06 Thread chrbr at gcc dot gnu dot org
ref iec/iso c++ section 3.4.2 gcc correctly reports an error when the argument is one of the fundamental type and the associated namespace is empty. like the call to 'f' in the attached example. However if the argument is a pointer to function the associated name space should be the one associate

[Bug middle-end/39390] [4.4 regression] Bogus aliasing warning with std::set

2009-03-06 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-03-06 13:36 --- Confirmed with the reduced testcase only, at -O2 -Wall. The warning happens after PTA triggered by SRA. Relevant constraints: __y_7 = &s.64+64 D.2839_21 = __y_7 __x.8_43 = D.2839_21 and code: D.2839_21 = &__y_

[Bug middle-end/39390] [4.4 regression] Bogus aliasing warning with std::set

2009-03-06 Thread reichelt at gcc dot gnu dot org
--- Comment #2 from reichelt at gcc dot gnu dot org 2009-03-06 13:27 --- Oops, typo: I meant the bug is triggered with "-O3 -Wall". The reduced testcase already triggers the warning with "-O2 -Wall" thanks to some additional "inline"s. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?i

[Bug middle-end/39390] [4.4 regression] Bogus aliasing warning with std::set

2009-03-06 Thread reichelt at gcc dot gnu dot org
--- Comment #1 from reichelt at gcc dot gnu dot org 2009-03-06 13:10 --- Created an attachment (id=17405) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17405&action=view) Partially reduced testcase Somewhat reduced testcase. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=393

[Bug middle-end/39390] [4.4 regression] Bogus aliasing warning with std::set

2009-03-06 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39390

[Bug middle-end/39390] New: [4.4 regression] Bogus aliasing warning with std::set

2009-03-06 Thread reichelt at gcc dot gnu dot org
Another problem with aliasing: The following code snippet triggers a bogus warning when compiled on trunk with "-O -Wall": == #include struct A { A() : i() {} int i; }; struct B { bool operator() (const A& x, const A&

[Bug tree-optimization/39367] [4.4 Regression] ICE at tree-inline.c:1042 with -O

2009-03-06 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2009-03-06 12:58 --- Yeah, we should drop TREE_BLOCK from anything not in stmts. Definitely for expressions in the types sizes and domains. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39367

[Bug tree-optimization/39367] [4.4 Regression] ICE at tree-inline.c:1042 with -O

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #6 from jakub at gcc dot gnu dot org 2009-03-06 12:48 --- The problem is that mark_all_vars_used only marks blocks used by actual code, but on the testcase the only reference to a one BLOCK is from TYPE_MAX_VALUE (TYPE_DOMAIN (type)) containing a PLUS_EXPR with that BLOCK as

[Bug lto/39317] [lto] - cannot compute suffix of object files - cannot represent relocation type BFD_RELOC_64

2009-03-06 Thread rob1weld at aol dot com
--- Comment #9 from rob1weld at aol dot com 2009-03-06 11:07 --- (In reply to comment #8) > (In reply to comment #7) > > (In reply to comment #6) After the workaround we get 10 failures on i686 and 33 failures on x86_64 when compiling trunk revision 144629, results here: Results for 4.

[Bug c/39375] asm with a "=X" output overwrites the output

2009-03-06 Thread balrogg at gmail dot com
--- Comment #3 from balrogg at gmail dot com 2009-03-06 10:34 --- (In reply to comment #2) > You need to use a "memory" clobber instead. "=X" (params[1]) says to GCC > that the asm operand 0 should be stored to params[1], which it does > (it allocates %eax to it). Note that "=r" doesn'

[Bug debug/39387] [4.4 Regression] Wrong DW_AT_decl_line on DW_TAG_imported* for using directives in C+ functions

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2009-03-06 10:31 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED

[Bug debug/39385] ICE in gen_type_die_with_usage

2009-03-06 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-03-06 10:01 --- Indeed. 0 shouldn't match T U::* -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug debug/39387] [4.4 Regression] Wrong DW_AT_decl_line on DW_TAG_imported* for using directives in C+ functions

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-03-06 09:48 --- Subject: Bug 39387 Author: jakub Date: Fri Mar 6 09:48:25 2009 New Revision: 144666 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144666 Log: PR debug/39387 * dwarf2out.c (dwarf2out_imported_

[Bug debug/39372] [4.3/4.4 Regression] Missing DW_AT_location for constructor static variable

2009-03-06 Thread jakub at gcc dot gnu dot org
--- Comment #5 from jakub at gcc dot gnu dot org 2009-03-06 09:46 --- Created an attachment (id=17404) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17404&action=view) gcc44-pr39372.patch Patch I'm going to bootstrap/regtest. -- jakub at gcc dot gnu dot org changed: