[Bug bootstrap/44509] [4.6 Regression] Revision 160626 breaks bootstrap on *-apple-darwin*

2010-06-13 Thread jakub at gcc dot gnu dot org
--- Comment #17 from jakub at gcc dot gnu dot org 2010-06-14 06:59 --- Created an attachment (id=20906) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20906&action=view) gcc46-pr44509.patch Untested patch. -- jakub at gcc dot gnu dot org changed: What|Removed

[Bug middle-end/43365] [4.5 Regression] Destructor not called when returning in exception handler

2010-06-13 Thread ian at gcc dot gnu dot org
--- Comment #7 from ian at gcc dot gnu dot org 2010-06-14 06:57 --- Subject: Bug 43365 Author: ian Date: Mon Jun 14 06:57:36 2010 New Revision: 160704 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160704 Log: Avoid crash when exception landing pad becomes unreachable. Bring ov

[Bug target/44531] New: [SuperH] Multilib configuration does not work as expected

2010-06-13 Thread ljsebald at gmail dot com
When building a clean GCC 4.5.0 targeting sh-elf, the multilib configuration of the compiler does not appear to work at all. For instance, building GCC 4.5.0 with the following set of configure flags: ../gcc-4.5.0/configure --target=sh-elf --prefix=/usr/local/dc2/sh-elf --with-newlib --enable-lang

[Bug middle-end/44530] wrong code due to branch optimization

2010-06-13 Thread Daniel dot Davies at xerox dot com
--- Comment #3 from Daniel dot Davies at xerox dot com 2010-06-14 02:49 --- Thank You! Adding the -fwrapv flag fixed the problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44530

[Bug c/44485] [4.6 Regression] ICE in get_expr_operands, at tree-ssa-operands.c:1020

2010-06-13 Thread zsojka at seznam dot cz
--- Comment #4 from zsojka at seznam dot cz 2010-06-14 01:25 --- I am not sure if that's related, but the testcase fails with -O -funsafe-loop-optimizations in r160687/x86_64-linux: $ /mnt/svn/gcc-trunk/binary-160687-lto-fortran-checking-yes-rtl/bin/gcc -O1 -funsafe-loop-optimizations p

[Bug middle-end/44530] wrong code due to branch optimization

2010-06-13 Thread pinskia at gmail dot com
--- Comment #2 from pinskia at gmail dot com 2010-06-13 21:58 --- Subject: Re: New: wrong code due to branch optimization Sent from my iPhone On Jun 13, 2010, at 2:34 PM, "Daniel dot Davies at xerox dot com" wrote: > When compiled with -03, the attached file prints out an error

Re: [Bug middle-end/44530] New: wrong code due to branch optimization

2010-06-13 Thread Andrew Pinski
Sent from my iPhone On Jun 13, 2010, at 2:34 PM, "Daniel dot Davies at xerox dot com" > wrote: When compiled with -03, the attached file prints out an error message due to incorrectly comparing "xCount + 32 < 0x8000". When compiled with the default optimization, it prints out the co

[Bug fortran/44529] [F03] array allocation with SOURCE

2010-06-13 Thread janus at gcc dot gnu dot org
--- Comment #1 from janus at gcc dot gnu dot org 2010-06-13 21:38 --- (In reply to comment #0) > First example: > > > integer, allocatable :: a(:), b(:) > allocate (a, source = b) > end > > > This is rejected with > > allocate (a, source = b) > 1 > Error: Array specificati

[Bug middle-end/44530] wrong code due to branch optimization

2010-06-13 Thread Daniel dot Davies at xerox dot com
--- Comment #1 from Daniel dot Davies at xerox dot com 2010-06-13 21:35 --- Created an attachment (id=20905) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20905&action=view) Preprocessed source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44530

[Bug middle-end/44530] New: wrong code due to branch optimization

2010-06-13 Thread Daniel dot Davies at xerox dot com
When compiled with -03, the attached file prints out an error message due to incorrectly comparing "xCount + 32 < 0x8000". When compiled with the default optimization, it prints out the correct message. $ gcc -v -save-temps -std=gnu99 -fno-strict-aliasing -funroll-loops -march=core2 -mfpmath=

[Bug fortran/44529] New: [F03] array allocation with SOURCE

2010-06-13 Thread janus at gcc dot gnu dot org
First example: integer, allocatable :: a(:), b(:) allocate (a, source = b) end This is rejected with allocate (a, source = b) 1 Error: Array specification required in ALLOCATE statement at (1) although it is valid (cf. F08:C633). Second example: integer, allocatable :: a(:) int

[Bug c/44515] improve message for missing ";"

2010-06-13 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2010-06-13 19:33 --- Perhaps, but the location should be at the end of the expression, where most programmers would put the ';'. Then, mentioning '}', which may be in a totally different line with a lot comments in between, would be confusi

[Bug c/44515] improve message for missing ";"

2010-06-13 Thread joseph at codesourcery dot com
--- Comment #3 from joseph at codesourcery dot com 2010-06-13 18:25 --- Subject: Re: improve message for missing ";" Perhaps "between expression and '}' token" would be more precise. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44515

[Bug c++/42101] Linking failure with static constants and ternary inline function

2010-06-13 Thread paolo dot carlini at oracle dot com
--- Comment #14 from paolo dot carlini at oracle dot com 2010-06-13 17:53 --- *** Bug 44528 has been marked as a duplicate of this bug. *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added ---

[Bug c++/44528] ld returns 1 and reports undefined reference to a defined static class variable

2010-06-13 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-06-13 17:53 --- *** This bug has been marked as a duplicate of 42101 *** -- paolo dot carlini at oracle dot com changed: What|Removed |Added ---

[Bug testsuite/44518] [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread mikpe at it dot uu dot se
--- Comment #10 from mikpe at it dot uu dot se 2010-06-13 17:42 --- Created an attachment (id=20904) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20904&action=view) correction to encode-3.mm The powerpc64 failure in encode-3.mm was also caused by a plain char mangling difference.

[Bug c++/44528] New: ld returns 1 and reports undefined reference to a defined static class variable

2010-06-13 Thread gcc at razorcam dot com
when executing the command g++ bug_report.cc , i get the output: /tmp/ccM7O0pr.o: In function `A::init()': bug_report.cc:(.text._ZN1A4initEv[A::init()]+0x6): undefined reference to `A::i' collect2: ld returned 1 exit status here is the output of the command ld -v GNU ld (GNU Binutils for Debian

[Bug c/44515] improve message for missing ";"

2010-06-13 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2010-06-13 17:33 --- (In reply to comment #1) > Actually before is more correct than saying after bar(). Because expressions > don't need to end on the same line. I wonder why people tend to write: bar(); rather than ;} Obviously the

[Bug inline-asm/44527] improve diagnostics in inline assembly

2010-06-13 Thread manu at gcc dot gnu dot org
--- Comment #6 from manu at gcc dot gnu dot org 2010-06-13 17:30 --- This column information: t.c:2:11: note: generated from here __asm__ ("frob%0" : "+r" (X)); ^ I am not going to get into a reopen war with you anyway. I am just trying to make a list of the diagnostic i

[Bug c++/44524] improve diagnostic for . vs -> typo

2010-06-13 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44524

[Bug c/44515] improve message for missing ";"

2010-06-13 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-13 17:25 --- Actually before is more correct than saying after bar(). Because expressions don't need to end on the same line. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug testsuite/44518] [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread iains at gcc dot gnu dot org
--- Comment #9 from iains at gcc dot gnu dot org 2010-06-13 17:20 --- (In reply to comment #8) > On ARM encode-2.mm fails in part for the same "plain char mangles differently" > reason as on powerpc64, but also due to a backend oddity. Here's how the > string is output in the assembly f

[Bug inline-asm/44527] improve diagnostics in inline assembly

2010-06-13 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2010-06-13 17:18 --- >The column information is wrong. What column information :). >The diagnostic markers are inconsistent (Error versus error). Report that to the binutils project. >This depends on the gnu assembler, which is not t

[Bug testsuite/44518] [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread mikpe at it dot uu dot se
--- Comment #8 from mikpe at it dot uu dot se 2010-06-13 17:15 --- On ARM encode-2.mm fails in part for the same "plain char mangles differently" reason as on powerpc64, but also due to a backend oddity. Here's how the string is output in the assembly file on ARM: .ascii "{?={

[Bug c++/44500] [C++0x] Bogus narrowing conversion error

2010-06-13 Thread redi at gcc dot gnu dot org
--- Comment #14 from redi at gcc dot gnu dot org 2010-06-13 17:14 --- (In reply to comment #12) > Why not make -Wconversion an error, at least this would > be consistent ;-) You can use -Werror=conversion -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44500

[Bug testsuite/44518] [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread iains at gcc dot gnu dot org
--- Comment #7 from iains at gcc dot gnu dot org 2010-06-13 17:07 --- (In reply to comment #5) > Created an attachment (id=20903) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20903&action=view) [edit] > correction to encode-2.mm > > On powerpc64 encode-2.mm fails because the test

[Bug testsuite/44518] [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread iains at gcc dot gnu dot org
--- Comment #6 from iains at gcc dot gnu dot org 2010-06-13 17:04 --- (In reply to comment #4) > (In reply to comment #3) > > powerpc*-darwin9 passes and, apparently, *86*-linux-gnu (I checked Lu's > > output) > > I've scanned the gcc-testresults list archive for May and June quite > c

[Bug inline-asm/44527] improve diagnostics in inline assembly

2010-06-13 Thread manu at gcc dot gnu dot org
--- Comment #4 from manu at gcc dot gnu dot org 2010-06-13 16:59 --- The column information is wrong. The diagnostic markers are inconsistent (Error versus error). This depends on the gnu assembler, which is not the default in many places. -- manu at gcc dot gnu dot org changed:

[Bug bootstrap/44512] --enable-build-with-cxx bootstrap fails in revision 160669

2010-06-13 Thread amylaar at gcc dot gnu dot org
.c (main): Output include of insn-constants.h * Makefile.in (insn-enums.o): Depend on insn-constants.h. gcc/c-family: PR bootstrap/44512 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast for C++ standard compliance. Modified: branches/multi-target-

[Bug testsuite/44518] [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread mikpe at it dot uu dot se
--- Comment #5 from mikpe at it dot uu dot se 2010-06-13 16:49 --- Created an attachment (id=20903) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20903&action=view) correction to encode-2.mm On powerpc64 encode-2.mm fails because the test case scans the assembly output for the str

[Bug inline-asm/44527] improve diagnostics in inline assembly

2010-06-13 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2010-06-13 16:49 --- Now with Apple's as we get the weird error message you pointed out but that is because apple's as does not support the change in line info we output: # 2 "t.c" 1 frob%eax # 0 "" 2 -- pinskia at gcc do

[Bug inline-asm/44527] improve diagnostics in inline assembly

2010-06-13 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2010-06-13 16:47 --- GNU assembler (GNU Binutils for Debian) 2.18.0.20080103 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44527

[Bug inline-asm/44527] improve diagnostics in inline assembly

2010-06-13 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2010-06-13 16:47 --- Hmm, with a newer binutils we get a better error message: t.c: Assembler messages: t.c:2: Error: no such instruction: `frob %eax' -- pinskia at gcc dot gnu dot org changed: What|Removed

[Bug c/44527] New: improve diagnostics in inline assembly

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: int foo(int X) { __asm__ ("frob%0" : "+r" (X)); return X; } gcc-4.6: /var/folders/51/51Qw875vFdGa9KojoIi7Zk+++TM/-Tmp-//ccyXfgfZ.s:11:no such instruction: `frob %eax' clang: :1:2: error: unrecognized instruction frob%eax ^ t.c:2:11: note: generated from here

[Bug testsuite/44518] [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread mikpe at it dot uu dot se
--- Comment #4 from mikpe at it dot uu dot se 2010-06-13 16:42 --- (In reply to comment #3) > powerpc*-darwin9 passes and, apparently, *86*-linux-gnu (I checked Lu's > output) I've scanned the gcc-testresults list archive for May and June quite carefully, and I don't think anyone is tes

[Bug fortran/43954] gfortran-4.4 does not support -Wp, -MD for *.F (4.3 -> 4.4 regression, needed for auto-dependencies)

2010-06-13 Thread dfranke at gcc dot gnu dot org
--- Comment #8 from dfranke at gcc dot gnu dot org 2010-06-13 16:09 --- Makefile dependency generation is now available in trunk (-cpp -MD). See PR44526 for a follow-up request to libcpp. Closing. -- dfranke at gcc dot gnu dot org changed: What|Removed

[Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options

2010-06-13 Thread dfranke at gcc dot gnu dot org
--- Comment #16 from dfranke at gcc dot gnu dot org 2010-06-13 16:07 --- Fixed in trunk. See PR44526 for a follow-up request for libcpp. Closing. -- dfranke at gcc dot gnu dot org changed: What|Removed |Added --

[Bug preprocessor/44526] New: libcpp should avoid circular dependencies

2010-06-13 Thread dfranke at gcc dot gnu dot org
Since r160684 gfortran supports generation of Makefile dependencies via libcpp. In the example below, foo.mod is a target as it is generated from the .f90 file, but also a dependency as it used in the same source file: $ cat foo.f90 MODULE foo END MODULE USE foo END $ gfortran-svn -cpp -M foo.f9

[Bug fortran/43954] gfortran-4.4 does not support -Wp, -MD for *.F (4.3 -> 4.4 regression, needed for auto-dependencies)

2010-06-13 Thread dfranke at gcc dot gnu dot org
--- Comment #7 from dfranke at gcc dot gnu dot org 2010-06-13 16:05 --- Subject: Bug 43954 Author: dfranke Date: Sun Jun 13 16:05:01 2010 New Revision: 160684 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160684 Log: 2010-06-13 Daniel Franke PR fortran/31588

[Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options

2010-06-13 Thread dfranke at gcc dot gnu dot org
--- Comment #15 from dfranke at gcc dot gnu dot org 2010-06-13 16:05 --- Subject: Bug 31588 Author: dfranke Date: Sun Jun 13 16:05:01 2010 New Revision: 160684 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160684 Log: 2010-06-13 Daniel Franke PR fortran/31588

[Bug testsuite/44525] New: Profiling assumes host directory structure

2010-06-13 Thread dougsemler at gmail dot com
When executing the profiling tests (e.g. gcc.dg/matrix/matrix.exp) on a remote machine, the test run assumes that the directory structure is the same on the remote target machine as it is on the host machine. The path structure assumption is made based on the working directory during the build of

[Bug testsuite/44518] [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread iains at gcc dot gnu dot org
--- Comment #3 from iains at gcc dot gnu dot org 2010-06-13 15:31 --- (In reply to comment #1) > Ian - testsuite regressions are not acceptable on the branch (XPASSes are ok > though). Well, of course, the patch did not cause any regressions on targets I have access to. These now XPASS.

[Bug testsuite/44518] [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread iains at gcc dot gnu dot org
--- Comment #2 from iains at gcc dot gnu dot org 2010-06-13 15:26 --- Subject: Bug 44518 Author: iains Date: Sun Jun 13 15:26:22 2010 New Revision: 160682 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160682 Log: partial reversion of r160541. PR testsuite/44518

[Bug testsuite/44518] [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-06-13 14:20 --- Ian - testsuite regressions are not acceptable on the branch (XPASSes are ok though). Please restore the previous state by at least re-instantiating the XFAIL on the branch. Thanks. -- rguenth at gcc dot gnu do

[Bug c/44511] Misdetects missing return with non-void return type, but only if the function is static

2010-06-13 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2010-06-13 14:18 --- (In reply to comment #2) > (In reply to comment #1) > > > > instead. So the warning you see is really warning about no return > > statement, > > not about control reaching the end of a non-void function. And it d

[Bug c++/44524] New: improve diagnostic for . vs -> typo

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: #include int bar(std::map *X) { return X.empty(); } gcc-4.6: /home/manuel/test/src/gcc/testsuite/g++.dg/warn/clang-11.C: In function 'int bar(std::map*)':^M /home/manuel/test/src/gcc/testsuite/g++.dg/warn/clang-11.C:4:12: error: request for member 'empty' in 'X', which is of non-cl

[Bug c++/44523] New: improve diagnostic for :: vs : typo (complex case)

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: namespace x { struct a { }; } template class foo { }; foo a1; foo a2; x::a a3 = a2; gcc-4.6: clang-10.C:10:8: error: template argument 1 is invalid clang-10.C:10:12: error: invalid type in declaration before ‘;’ token clang-10.C:12:11: error: conversion from ‘int’ to non-scalar t

[Bug c++/44522] New: improve diagnostic for :: vs : typo

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: namespace x { struct a { }; } x:a a2; x::a a3 = a2; gcc-4.6: clang-9.C:5:1: error: ‘x’ does not name a type clang-9.C:6:11: error: ‘a2’ was not declared in this scope clang: t.cc:5:2: error: unexpected ':' in nested name specifier x:a a2; ^ :: "In addition to getting the error

[Bug c/44511] Misdetects missing return with non-void return type, but only if the function is static

2010-06-13 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2010-06-13 13:49 --- (In reply to comment #1) > > instead. So the warning you see is really warning about no return statement, > not about control reaching the end of a non-void function. And it does so > by design just for functions wit

[Bug c++/44521] New: unhelpful candidates for ambiguous lookup

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: struct B1 { void f(); }; struct B2 { void f(double); }; struct I1 : B1 { }; struct I2 : B1 { }; struct D: I1, I2, B2 { void g() { f(); } }; gcc-4.6: clang-8.C:9:5: error: reference to ‘f’ is ambiguous clang-8.C:2:18: error: candidates are: void B2::f(double) clang-8.C:1:18:

[Bug c++/44520] New: improve diagnostic for ambiguous lookup

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: struct B1 { void f(); }; struct B2 { void f(double); }; struct I1 : B1 { }; struct I2 : B1 { }; struct D: I1, I2, B2 { using B1::f; using B2::f; void g() { f(); } }; gcc-4.6: clang-7.C:10:7: error: ‘B1’ is an ambiguous base of ‘D’ clang: t.cc:10:5: error: ambiguous conv

[Bug c/44519] New: improve message for missing ";" after struct

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: struct foo { int x; } typedef int bar; gcc-4.6: clang-6.c:3:9: error: two or more data types in declaration specifiers Notice the line and the column are far away from the problem. clang: t.c:1:22: error: expected ';' after struct struct foo { int x; } ^

[Bug objc++/44518] New: [4.5/4.6 regression] objc++ encode-2.mm and encode-3.mm fail on several platforms

2010-06-13 Thread mikpe at it dot uu dot se
On 4_5-branch, the objc++ encode-2.mm and encode-3.mm tests started to fail recently on several platforms: FAIL: obj-c++.dg/encode-2.mm scan-assembler {?={Vec=ddi}{Vec=ffi}fd{Vec=cci}i} FAIL: obj-c++.dg/encode-3.mm -fgnu-runtime execution test Compare e.g. http://gcc.gnu.org/ml/gcc-testresults/2

[Bug c/44517] New: improve diagnostic for mispelled typename in function declaration

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: int foo(int x, pid_t y) { return x+y; } gcc-4.6: clang-5.c:1:16: error: expected declaration specifiers or ‘...’ before ‘pid_t’ foo clang-5.c: In function ‘foo’: clang-5.c:2:12: error: ‘y’ undeclared (first use in this function) clang-5.c:2:12: note: each undeclared identifier is re

[Bug c++/44516] New: unclear error message for invalid operands to binary operator

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: namespace services { struct WebService { }; } namespace myapp { namespace servers { struct Server { }; } } using namespace myapp; void addHTTPService(servers::Server const &server, ::services::WebService const *http) { server += http; } gcc-4.6: clang-4.C:12:13: error: n

[Bug c++/16630] missing type name in __PRETTY_FUNCTION__

2010-06-13 Thread manu at gcc dot gnu dot org
--- Comment #10 from manu at gcc dot gnu dot org 2010-06-13 12:46 --- I don't care as long as there is a testcase that tests for this bug. Bugs shouldn't be closed if a testcase has not been committed that prevents regressing. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16630

[Bug c/44515] New: improve message for missing ";"

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: void bar(void); void foo(void) { bar() } gcc-4.6: clang-3.c:7:1: error: expected ‘;’ before ‘}’ token clang: t.c:4:8: error: expected ';' after expression bar() ^ ; -- Summary: improve message for missing ";" Product: gcc V

[Bug c/44514] New: bad error recovery with forgotten ; after class definition

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: template class a {} class temp {}; a b; struct b { } gcc-4.6: clang-2.C:3:15: error: multiple types in one declaration clang-2.C:4:7: error: non-template type ‘a’ used as a template clang-2.C:4:10: error: invalid type in declaration before ‘;’ token clang-2.C:6:1: error: expected unq

[Bug c/44513] New: improve column number and text of format warnings

2010-06-13 Thread manu at gcc dot gnu dot org
Testcase: /* { dg-do compile } */ /* { dg-options "-std=iso9899:1990 -pedantic -Wformat" } */ #include "format.h" void foo (int i) { printf ("%d%d", i); } gcc-4.6: /home/manuel/test/src/gcc/testsuite/gcc.dg/format/clang-1.c: In function 'foo': /home/manuel/test/src/gcc/testsuite/gcc.dg/forma

[Bug bootstrap/44512] --enable-build-with-cxx bootstrap fails in revision 160669

2010-06-13 Thread rsandifo at gcc dot gnu dot org
--- Comment #3 from rsandifo at gcc dot gnu dot org 2010-06-13 12:29 --- Created an attachment (id=20902) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20902&action=view) Patch for unspec{,v}_strings definition One fix would be to make insn-enums.c include insn-constants.h, but I

[Bug tree-optimization/44507] [4.5/4.6 Regression] vectorization ANDs array elements together incorrectly

2010-06-13 Thread rguenth at gcc dot gnu dot org
--- Comment #8 from rguenth at gcc dot gnu dot org 2010-06-13 12:25 --- (In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > The bug is in creation of a neutral value for BIT_AND_EXPR. What is the > > > correct > > > way to create it for all types? I fo

[Bug libstdc++/44510] stream unformatted inserter is slower than formatted inserter

2010-06-13 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2010-06-13 12:12 --- First, note that the *extractor*, ie, read, is slower, not the inserter. That said, I think it's not at all obvious that read must be faster than the pointer extractor, because in the latter case the parsing it

[Bug bootstrap/44512] --enable-build-with-cxx bootstrap fails in revision 160669

2010-06-13 Thread amylaar at gcc dot gnu dot org
/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lcloog -lppl_c -lppl -lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl -L../zlib -lz -lelf libbackend.a(print-rtl.o): In function `print_rtx': /user/inria/fsf/bldxx-20100613-2/gcc/../../gc

[Bug tree-optimization/44507] [4.5/4.6 Regression] vectorization ANDs array elements together incorrectly

2010-06-13 Thread irar at il dot ibm dot com
--- Comment #7 from irar at il dot ibm dot com 2010-06-13 12:01 --- (In reply to comment #6) > (In reply to comment #5) > > The bug is in creation of a neutral value for BIT_AND_EXPR. What is the > > correct > > way to create it for all types? I found > > double-int.h:#define ALL_ONES

[Bug bootstrap/44509] [4.6 Regression] Revision 160626 breaks bootstrap on *-apple-darwin*

2010-06-13 Thread dominiq at lps dot ens dot fr
--- Comment #16 from dominiq at lps dot ens dot fr 2010-06-13 11:47 --- See also pr44512. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44509

[Bug bootstrap/44512] --enable-build-with-cxx bootstrap fails in revision 160669

2010-06-13 Thread dominiq at lps dot ens dot fr
--- Comment #1 from dominiq at lps dot ens dot fr 2010-06-13 11:46 --- Could it be a duplicate of pr44509? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44512

[Bug bootstrap/44512] New: --enable-build-with-cxx bootstrap fails in revision 160669

2010-06-13 Thread amylaar at gcc dot gnu dot org
./move-if-change tmp-attrtab.c insn-attrtab.c echo timestamp > s-attrtab rm gcov.pod gfdl.pod cpp.pod fsf-funding.pod gcc.pod make[3]: Leaving directory `/user/inria/fsf/bldxx-20100613/gcc' make[2]: *** [all-stage1-gcc] Error 2 make[2]: Leaving directory `/user/inria/fsf/bldxx-20100613' mak

[Bug bootstrap/44509] [4.6 Regression] Revision 160626 breaks bootstrap on *-apple-darwin*

2010-06-13 Thread iains at gcc dot gnu dot org
--- Comment #15 from iains at gcc dot gnu dot org 2010-06-13 11:35 --- powerpc64-darwin9; failed in stage3: In file included from /usr/include/math.h:26:0, from /GCC/gcc-live-trunk/gcc/genautomata.c:117: /usr/include/architecture/ppc/math.h: In function ‘__inline_isno

[Bug tree-optimization/44507] [4.5/4.6 Regression] vectorization ANDs array elements together incorrectly

2010-06-13 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-06-13 11:35 --- (In reply to comment #5) > The bug is in creation of a neutral value for BIT_AND_EXPR. What is the > correct > way to create it for all types? I found > double-int.h:#define ALL_ONES (~((unsigned HOST_WIDE_INT) 0))

[Bug c/44511] Misdetects missing return with non-void return type, but only if the function is static

2010-06-13 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2010-06-13 10:33 --- It's because /* Complain if there's just no return statement. */ if (warn_return_type ... /* Normally, with -Wreturn-type, flow will complain, but we might optimize out static functions. */

[Bug tree-optimization/44507] [4.5/4.6 Regression] vectorization ANDs array elements together incorrectly

2010-06-13 Thread irar at il dot ibm dot com
--- Comment #5 from irar at il dot ibm dot com 2010-06-13 10:29 --- The bug is in creation of a neutral value for BIT_AND_EXPR. What is the correct way to create it for all types? I found double-int.h:#define ALL_ONES (~((unsigned HOST_WIDE_INT) 0)) but it won't work for signed. Thanks

[Bug middle-end/44505] [4.6 Regression] gcc.c-torture/execute/frame-address.c

2010-06-13 Thread dominiq at lps dot ens dot fr
--- Comment #2 from dominiq at lps dot ens dot fr 2010-06-13 09:52 --- Confirmed on x86_64-apple-darwin10.3.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44505

[Bug c/44511] New: Misdetects missing return with non-void return type, but only if the function is static

2010-06-13 Thread richard+gcc at sfere dot greenend dot org dot uk
GCC 4.5 -Wall warns if your function has a non-void return type but returns. It can also detect an infinite loop which means that "falling off the end" doesn't actually imply a return, and therefore suppress the warning in that case. However, if the function is static, this infinite loop detectio

[Bug target/44481] [4.3/4.4/4.5/4.6 Regression] __builtin_parity() causes ICE in trunc_int_for_mode()

2010-06-13 Thread ubizjak at gmail dot com
--- Comment #8 from ubizjak at gmail dot com 2010-06-13 08:54 --- Fixed. -- ubizjak at gmail dot com changed: What|Removed |Added Status|ASSIGNED

[Bug target/44481] [4.3/4.4/4.5/4.6 Regression] __builtin_parity() causes ICE in trunc_int_for_mode()

2010-06-13 Thread uros at gcc dot gnu dot org
--- Comment #7 from uros at gcc dot gnu dot org 2010-06-13 08:52 --- Subject: Bug 44481 Author: uros Date: Sun Jun 13 08:51:51 2010 New Revision: 160672 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=160672 Log: PR target/44481 * config/i386/i386.md (UNSPEC_PARIT