../gcc-4.2.2/libstdc++-v3/configure can't determine version of ld 2.18

2008-01-10 Thread Yevgeniy Litvinenko
Hello, I have binutils 2.18 $ ld --version GNU ld (GNU Binutils) 2.18 ... But during compilation I get following: configure: WARNING: === Linker version 1800 is too old for configure: WARNING: === full symbol versioning support in this release of GCC. configure: WARNING: === You would

[Bug rtl-optimization/34628] [4.2/4.3 Regression] problems with inlining on ARM

2008-01-10 Thread ebotcazou at gcc dot gnu dot org
--- Comment #11 from ebotcazou at gcc dot gnu dot org 2008-01-10 14:03 --- Created an attachment (id=14907) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14907action=view) Lightly tested fix. I'll give it a whirl on IA-64 but it would be nice to test it on ARM too. --

[Bug fortran/34721] Output statements fool the -Wuninitialized option

2008-01-10 Thread manu at gcc dot gnu dot org
--- Comment #1 from manu at gcc dot gnu dot org 2008-01-10 14:07 --- This is an example that shows that small differences in code lead to quite different SSA representations. Without print we have a PHI node, where one of the operands is the uninitialized value, so we warn. However,

[Bug tree-optimization/34651] [4.3 Regression] ICE in set_value_range, at tree-vrp.c:321

2008-01-10 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2008-01-10 14:28 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug tree-optimization/34651] [4.3 Regression] ICE in set_value_range, at tree-vrp.c:321

2008-01-10 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-01-10 14:29 --- Subject: Bug 34651 Author: rguenth Date: Thu Jan 10 14:28:40 2008 New Revision: 131442 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=131442 Log: 2008-01-10 Richard Guenther [EMAIL PROTECTED] PR

[Bug fortran/34729] New: Localization of run-time error messages, written into the executable

2008-01-10 Thread burnus at gcc dot gnu dot org
I saw that gfortran writes (at least sometimes) a localized run-time error message: _gfortran_runtime_error (Attempt to allocate a negative amount of memory.[1]{lb: 1 sz: 1}); _gfortran_os_error (Memory allocation failed[1]{lb: 1 sz: 1}); becomes then (LANG=de_DE.UTF-8): _gfortran_runtime_error

[Bug c/34668] [4.3 Regression] ICE in find_compatible_field with -combine

2008-01-10 Thread jakub at gcc dot gnu dot org
--- Comment #9 from jakub at gcc dot gnu dot org 2008-01-10 14:50 --- http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00404.html http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00408.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34668

[Bug tree-optimization/34683] [4.3 Regression] SSA rewriting in the loop unroller causes quadratic behavior

2008-01-10 Thread rguenth at gcc dot gnu dot org
--- Comment #38 from rguenth at gcc dot gnu dot org 2008-01-10 14:36 --- Created an attachment (id=14908) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14908action=view) hack to disable rewriting of VOPs I tried to change the unroller doing only SSA_NAME replacement update after

[Bug tree-optimization/34683] [4.3 Regression] SSA rewriting in the loop unroller causes quadratic behavior

2008-01-10 Thread rguenth at gcc dot gnu dot org
--- Comment #39 from rguenth at gcc dot gnu dot org 2008-01-10 15:01 --- Hmm, looks I was compeltely wrong about the cause of the slowdown. We actually run cfg_cleanup after cunroll and merge blocks like BB1 ... BB2 # SFT.1_2 = PHI SFT.1_1 (BB1) ... # SFT.1000_2 = PHI

[Bug rtl-optimization/30957] Misscompare with variable expansion optimization

2008-01-10 Thread eres at il dot ibm dot com
--- Comment #14 from eres at il dot ibm dot com 2008-01-10 15:05 --- -fassociative-math and -fsigned-zeros flags can not co-exist. I guess this testcase should be removed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30957

[Bug fortran/34721] Output statements fool the -Wuninitialized option

2008-01-10 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2008-01-10 15:08 --- Related to PR 31094, PR 31279, and PR 23169. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34721

[Bug libstdc++/34730] New: Legal program doesn't compile with -D_GLIBCXX_DEBUG

2008-01-10 Thread dominik dot strasser at onespin-solutions dot com
The attached C++ source is AFAICS legal C++. However it doesn't compile with the debug libstdc++, as the debug code assumes that each given set can be compared with the passed compare operator. -- Summary: Legal program doesn't compile with -D_GLIBCXX_DEBUG Product: gcc

[Bug libstdc++/34730] Legal program doesn't compile with -D_GLIBCXX_DEBUG

2008-01-10 Thread dominik dot strasser at onespin-solutions dot com
--- Comment #1 from dominik dot strasser at onespin-solutions dot com 2008-01-10 15:28 --- Created an attachment (id=14909) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14909action=view) Source code showing the problem -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34730

[Bug tree-optimization/34683] [4.3 Regression] SSA rewriting in the loop unroller causes quadratic behavior

2008-01-10 Thread rguenth at gcc dot gnu dot org
--- Comment #40 from rguenth at gcc dot gnu dot org 2008-01-10 15:32 --- After you fix this, we're back to SCCVN is slow with lots of virtual operands. For -O2 (which appearantly is the worst case) we now have the following profile: Each sample counts as 0.01 seconds. % cumulative

[Bug target/34299] [avr] ICE on function attribute syntax for main()

2008-01-10 Thread j at uriah dot heep dot sax dot de
--- Comment #3 from j at uriah dot heep dot sax dot de 2008-01-10 15:56 --- Some bugs appear to re-appear. :-( While I get __attribute__((naked)) int main(void) { // ... return 42; } to compile with the current compiler, the following piece of code: __attribute__((signal,

[Bug middle-end/31094] Support annotating function parameters as read-only and/or non-escaping

2008-01-10 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2008-01-10 15:38 --- Isn't this similar to include stdio.h main() { char foo[10]; printf(%s, foo); } and other functions that we know for sure don't modify their arguments. It seems a missed optimisation not only for Fortran. --

[Bug middle-end/31094] Support annotating function parameters as read-only and/or non-escaping

2008-01-10 Thread manu at gcc dot gnu dot org
--- Comment #3 from manu at gcc dot gnu dot org 2008-01-10 15:40 --- Actually, that is for Wuninitialized. For a missed optimisation: #include stdio.h char foo() { char str[] = Hola; char c; printf(%s, str); c = str[0]; return c; } --

[Bug libstdc++/34730] Legal program doesn't compile with -D_GLIBCXX_DEBUG

2008-01-10 Thread pcarlini at suse dot de
--- Comment #2 from pcarlini at suse dot de 2008-01-10 15:59 --- Interesting. I agree the code is legal, on the other hand, we want to check the required ordering... Would it be ok to you to have the check moved to _GLIBCXX_DEBUG_PEDANTIC?? -- pcarlini at suse dot de changed:

[Bug libstdc++/34730] Legal program doesn't compile with -D_GLIBCXX_DEBUG

2008-01-10 Thread pcarlini at suse dot de
--- Comment #3 from pcarlini at suse dot de 2008-01-10 16:10 --- Hi Doug. As the main author of our debug-mode, I'd like to know your opinion about this issue... On one hand, in the actual algorithm we are not comparing values from the same range, on the other hand, clearly the

[Bug target/34641] [4.3 Regression] ICE in reload_cse_simplify_operands, at postreload.c:395

2008-01-10 Thread krebbel at gcc dot gnu dot org
--- Comment #6 from krebbel at gcc dot gnu dot org 2008-01-10 16:47 --- Subject: Bug 34641 Author: krebbel Date: Thu Jan 10 16:46:26 2008 New Revision: 131445 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=131445 Log: 2008-01-10 Andreas Krebbel [EMAIL PROTECTED] PR

[Bug tree-optimization/34683] [4.3 Regression] SSA rewriting in the loop unroller causes quadratic behavior

2008-01-10 Thread rguenth at gcc dot gnu dot org
--- Comment #41 from rguenth at gcc dot gnu dot org 2008-01-10 16:59 --- Subject: Bug 34683 Author: rguenth Date: Thu Jan 10 16:59:06 2008 New Revision: 131446 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=131446 Log: 2008-01-10 Richard Guenther [EMAIL PROTECTED] PR

[Bug tree-optimization/34683] SSA rewriting in the loop unroller causes quadratic behavior

2008-01-10 Thread rguenth at gcc dot gnu dot org
--- Comment #43 from rguenth at gcc dot gnu dot org 2008-01-10 17:05 --- Actually this is not a regression against a released compiler, as both the 4.1 and the 4.2 branches ICE for this testcase: gfortran-4.2 -S -o /dev/null t.f90 -O -fstrict-aliasing t.f90: In function 'ampli':

[Bug tree-optimization/34683] [4.3 Regression] SSA rewriting in the loop unroller causes quadratic behavior

2008-01-10 Thread rguenth at gcc dot gnu dot org
--- Comment #42 from rguenth at gcc dot gnu dot org 2008-01-10 17:02 --- This is probably all we can get for now - maybe another few % with minor tweaks, but nothing earth-shattering. After all, we _do_ have a much larger IL due to the number of VOPs not partitioned. --

[Bug tree-optimization/34683] SSA rewriting in the loop unroller causes quadratic behavior

2008-01-10 Thread steven at gcc dot gnu dot org
--- Comment #44 from steven at gcc dot gnu dot org 2008-01-10 17:39 --- Yes, fixed. -- steven at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug target/34299] [avr] ICE on function attribute syntax for main()

2008-01-10 Thread eric dot weddington at atmel dot com
--- Comment #4 from eric dot weddington at atmel dot com 2008-01-10 17:56 --- (In reply to comment #3) __attribute__((signal, naked)) void __vector_42(void) { static unsigned char x; x++; } still triggers the ICE: However, if there is a function prototype, and the

[Bug target/34299] [avr] ICE on function attribute syntax for main()

2008-01-10 Thread eric dot weddington at atmel dot com
-- eric dot weddington at atmel dot com changed: What|Removed |Added Status|WAITING |NEW Ever Confirmed|0 |1 Last

[Bug tree-optimization/30927] tree-nested creates pointless static chains and trampolines when the callgraph is non-trivial

2008-01-10 Thread baldrick at gcc dot gnu dot org
--- Comment #8 from baldrick at gcc dot gnu dot org 2008-01-10 18:25 --- Your solution seems to be somewhat complex though. Can't we get away with an iterative propagation algorithm for the DECL_NO_STATIC_CHAIN flag? Yes, but it is less efficient: in the worst case the number of

[Bug target/34299] [avr] ICE on function attribute syntax for main()

2008-01-10 Thread steven at gcc dot gnu dot org
--- Comment #5 from steven at gcc dot gnu dot org 2008-01-10 18:05 --- If there is an ICE, there is a bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34299

[Bug rtl-optimization/30957] Misscompare with variable expansion optimization

2008-01-10 Thread ubizjak at gmail dot com
--- Comment #15 from ubizjak at gmail dot com 2008-01-10 18:23 --- (In reply to comment #13) This testcase has an execution failure on i686-pc-linux-gnu when using -fpic/-fPIC. They also fail for non-pic compilations when the testcase _really_ executes the test: Index:

[Bug rtl-optimization/30957] Misscompare with variable expansion optimization

2008-01-10 Thread eres at il dot ibm dot com
--- Comment #16 from eres at il dot ibm dot com 2008-01-10 18:32 --- This is because the test requires -fassociative-math for enabling the variable-expansion as well as -fsigned-zeros for honor the sign of zero; but they can not co-exist; also under -funsafe-math-optimizations. --

[Bug middle-end/34400] [4.3 regression] bad interaction between DF and SJLJ exceptions

2008-01-10 Thread zadeck at naturalbridge dot com
--- Comment #48 from zadeck at naturalbridge dot com 2008-01-10 18:44 --- Subject: Re: I do not want to commit this patch until after seongbae gets the new node visiting sorted out. This patch does for the rd problem what http://gcc.gnu.org/bugzilla/attachment.cgi?id=14729 does for

[Bug fortran/34396] Length of substrings defined by expressions not correctly computed in constructors

2008-01-10 Thread pault at gcc dot gnu dot org
--- Comment #9 from pault at gcc dot gnu dot org 2008-01-10 19:11 --- Subject: Bug 34396 Author: pault Date: Thu Jan 10 19:10:48 2008 New Revision: 131448 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=131448 Log: 2008-01-10 Paul Thomas [EMAIL PROTECTED] PR

[Bug fortran/34396] Length of substrings defined by expressions not correctly computed in constructors

2008-01-10 Thread pault at gcc dot gnu dot org
--- Comment #10 from pault at gcc dot gnu dot org 2008-01-10 19:13 --- Fixed on trunk Paul -- pault at gcc dot gnu dot org changed: What|Removed |Added

[Bug middle-end/30905] [4.3 Regression] Fails to cross-jump

2008-01-10 Thread steven at gcc dot gnu dot org
--- Comment #8 from steven at gcc dot gnu dot org 2008-01-10 19:18 --- We start with a CFG that looks like this (all edges directed down): ENTRY | 2 |\ | \ 3 5 |\ \ | \ \ 7 4--6 \ / \ / 8 | EXIT where basic block 4 is a forwarder block. Insns in blocks 6 and 7 match

[Bug c/34732] New: Optimization flag trigger unexpected crash

2008-01-10 Thread ijeukens at yahoo dot com dot br
This is the core of the problem (at comp_0.c): ... for(j = 0;j 3;j++) { comp_0_fptr[j][1](); } ... comp_0_fptr holds pointers to void functions. When compiling with -g, everything works ok. Compiling with -O2, or any other, the effect that I get is: comp_0_fptr[0][1]();

[Bug c/34732] Optimization flag trigger unexpected crash

2008-01-10 Thread ijeukens at yahoo dot com dot br
--- Comment #1 from ijeukens at yahoo dot com dot br 2008-01-10 19:24 --- Created an attachment (id=14910) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14910action=view) execution output -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732

[Bug middle-end/34732] Optimization flag trigger unexpected crash

2008-01-10 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|blocker |normal Component|c |middle-end

[Bug middle-end/34732] Optimization flag trigger unexpected crash

2008-01-10 Thread ijeukens at yahoo dot com dot br
--- Comment #2 from ijeukens at yahoo dot com dot br 2008-01-10 19:26 --- Created an attachment (id=14911) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14911action=view) source 1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732

[Bug middle-end/34732] Optimization flag trigger unexpected crash

2008-01-10 Thread ijeukens at yahoo dot com dot br
--- Comment #3 from ijeukens at yahoo dot com dot br 2008-01-10 19:27 --- Created an attachment (id=14912) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14912action=view) source 2 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732

[Bug middle-end/34732] Optimization flag trigger unexpected crash

2008-01-10 Thread ijeukens at yahoo dot com dot br
--- Comment #4 from ijeukens at yahoo dot com dot br 2008-01-10 19:27 --- Created an attachment (id=14913) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14913action=view) source 3 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732

[Bug middle-end/34732] Optimization flag trigger unexpected crash

2008-01-10 Thread ijeukens at yahoo dot com dot br
--- Comment #5 from ijeukens at yahoo dot com dot br 2008-01-10 19:28 --- Created an attachment (id=14914) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14914action=view) source 4 .. and last one -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34732

[Bug target/32895] Clobber list isn't working

2008-01-10 Thread wvangulik at xs4all dot nl
--- Comment #4 from wvangulik at xs4all dot nl 2008-01-10 19:00 --- In 4.2.2 there is still no warning when compiling without -O. void main(void) { volatile struct { int a, b, c, d, e, f; } x; x.d = 5; asm volatile(in r28, 0x2F : : : r28); x.d = 6; }

[Bug libstdc++/34730] Legal program doesn't compile with -D_GLIBCXX_DEBUG

2008-01-10 Thread pcarlini at suse dot de
--- Comment #4 from pcarlini at suse dot de 2008-01-10 20:04 --- Thinking more about this issue, probably a more sophisticated solution would be running the checks only when the value_types are equal. I'll try to prepare something. --

[Bug tree-optimization/34683] SSA rewriting in the loop unroller causes quadratic behavior

2008-01-10 Thread jaydub66 at gmail dot com
--- Comment #45 from jaydub66 at gmail dot com 2008-01-10 20:14 --- (In reply to comment #42) This is probably all we can get for now - maybe another few % with minor tweaks, but nothing earth-shattering. After all, we _do_ have a much larger IL due to the number of VOPs not

[Bug middle-end/30905] [4.3 Regression] Fails to cross-jump

2008-01-10 Thread steven at gcc dot gnu dot org
--- Comment #9 from steven at gcc dot gnu dot org 2008-01-10 20:16 --- Created an attachment (id=14915) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14915action=view) Fix using run_fast_dce I see no way around running run_fast_DCE. But at least let's try to run it only when

[Bug tree-optimization/34683] SSA rewriting in the loop unroller causes quadratic behavior

2008-01-10 Thread steven at gcc dot gnu dot org
--- Comment #46 from steven at gcc dot gnu dot org 2008-01-10 20:21 --- See e.g. bug 27004 and bug 33974. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34683

[Bug rtl-optimization/31944] [4.1/4.2/4.3 Regression] Endless loop while building a 64-bit 2.6.20 kernel

2008-01-10 Thread janis at gcc dot gnu dot org
--- Comment #22 from janis at gcc dot gnu dot org 2008-01-10 21:24 --- Steven asked for a regression hunt, but will not be pleased by the results. A hunt using a hppa64-linux cross cc1 on powerpc-linux identified http://gcc.gnu.org/viewcvs?view=revrev=81764 r81764 | dnovillo |

[Bug rtl-optimization/31944] [4.1/4.2/4.3 Regression] Endless loop while building a 64-bit 2.6.20 kernel

2008-01-10 Thread steven at gcc dot gnu dot org
--- Comment #23 from steven at gcc dot gnu dot org 2008-01-10 22:18 --- Created an attachment (id=14916) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14916action=view) new test case that fails before the tree-ssa merge I made a new test case out of the .final_cleanup dump, and

[Bug rtl-optimization/31944] [4.1/4.2/4.3 Regression] Endless loop while building a 64-bit 2.6.20 kernel

2008-01-10 Thread janis at gcc dot gnu dot org
--- Comment #24 from janis at gcc dot gnu dot org 2008-01-10 23:17 --- A regression test using the test added in comment #23 identified: http://gcc.gnu.org/viewcvs?view=revrev=74332 r74332 | sayle | 2003-12-05 14:06:46 + (Fri, 05 Dec 2003) --

[Bug rtl-optimization/31944] [4.1/4.2/4.3 Regression] Endless loop while building a 64-bit 2.6.20 kernel

2008-01-10 Thread steven at gcc dot gnu dot org
--- Comment #25 from steven at gcc dot gnu dot org 2008-01-10 23:44 --- So this has been failing since at least GCC 3.4. And I see nothing in the identified patch that is related to how CSE handles its values, so I suspect this bug exists in older compilers as well (just needs another

[Bug rtl-optimization/31944] [4.1/4.2/4.3 Regression] Endless loop while building a 64-bit 2.6.20 kernel

2008-01-10 Thread steven at gcc dot gnu dot org
--- Comment #26 from steven at gcc dot gnu dot org 2008-01-10 23:58 --- Mark, wrt. the release, I recommend this PR shouldn't be a blocker. The problem is old and is currently latent on the trunk, where it is only exposed with non-default options (-fno-inline-small-functions).

[Bug ada/34466] s-tasinf.ads:81:42: cpu_set_t not declared in OS_Interface

2008-01-10 Thread danglin at gcc dot gnu dot org
--- Comment #1 from danglin at gcc dot gnu dot org 2008-01-11 01:01 --- Subject: Bug 34466 Author: danglin Date: Fri Jan 11 01:00:48 2008 New Revision: 131457 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=131457 Log: PR ada/34466 * s-osinte-linux-hppa.ads

[Bug libstdc++/34733] New: numpunct::grouping() doesn't match libc value for Bulgarian (bg_BG) locale

2008-01-10 Thread sebor at roguewave dot com
I came across this while investigating (most likely) a related problem in Apache stdcxx. Btw., I suspect the bg_BG locale is incorrect in defining thousands_sep to NUL and filed http://sources.redhat.com/bugzilla/show_bug.cgi?id=5599 $ cat t.cpp g++ -dumpversion g++ t.cpp LC_NUMERIC=bg_BG

[Bug ada/34466] s-tasinf.ads:81:42: cpu_set_t not declared in OS_Interface

2008-01-10 Thread danglin at gcc dot gnu dot org
--- Comment #2 from danglin at gcc dot gnu dot org 2008-01-11 01:07 --- Fixed. -- danglin at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/34734] New: attribute((progmem)) not handled properly in C++ for AVRs

2008-01-10 Thread markuslampert at yahoo dot com
Using the progmem attribute in C++ sources produce warning messages about uninitialized variables. The following preprocessor output works correctly under 4.1 but produces said warnings (in every warning level): # 1 is.cpp # 1 built-in # 1 command-line # 1 is.cpp int i1

[Bug libstdc++/34733] numpunct::grouping() doesn't match libc value for Bulgarian (bg_BG) locale

2008-01-10 Thread pcarlini at suse dot de
--- Comment #1 from pcarlini at suse dot de 2008-01-11 01:54 --- Yes, I think we want to suspend this, waiting for the resolution of the glibc issue. Because, I clearly remember adjusting the code basing on feedback from people working on glibc: I learned that an empty thousand

[Bug libstdc++/34733] numpunct::grouping() doesn't match libc value for Bulgarian (bg_BG) locale

2008-01-10 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2008-01-11 02:09 --- Right, in C it does mean that (because thousands_sep is a multibyte string, and so the value is really ). The problem is that in C++ a NUL thousands_sep is a perfectly valid single-byte character, i.e., '\0'. IMO, the

[Bug libstdc++/34733] numpunct::grouping() doesn't match libc value for Bulgarian (bg_BG) locale

2008-01-10 Thread pcarlini at suse dot de
--- Comment #3 from pcarlini at suse dot de 2008-01-11 02:18 --- (In reply to comment #2) Right, in C it does mean that (because thousands_sep is a multibyte string, and so the value is really ). The problem is that in C++ a NUL thousands_sep is a perfectly valid single-byte

[Bug libstdc++/34733] numpunct::grouping() doesn't match libc value for Bulgarian (bg_BG) locale

2008-01-10 Thread pcarlini at suse dot de
--- Comment #4 from pcarlini at suse dot de 2008-01-11 02:27 --- In other terms, on the v3 side, we are not grouping anything in such cases, therefore grouping() can only be the empty string, consistently with 22.2.3.1.2. As for the thousands separator, a '\0' seems a good character as

[Bug target/34641] [4.3 Regression] ICE in reload_cse_simplify_operands, at postreload.c:395

2008-01-10 Thread ismail at pardus dot org dot tr
--- Comment #7 from ismail at pardus dot org dot tr 2008-01-11 02:31 --- Added testcase doesn't compile on i686-linux : gcc/testsuite/g++.dg/torture/pr34641.C:16: error: 'operator new' takes type 'size_t' ('unsigned int') as first parameter -- ismail at pardus dot org dot tr

[Bug libstdc++/34733] numpunct::grouping() doesn't match libc value for Bulgarian (bg_BG) locale

2008-01-10 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2008-01-11 03:09 --- It's irrelevant to the implementation but it could be relevant to user-defined formatting (or parsing) code that bypasses num_put (or num_get) but uses numpunct to get the expected formats. IMO, the improvement in any

[Bug libstdc++/34733] numpunct::grouping() doesn't match libc value for Bulgarian (bg_BG) locale

2008-01-10 Thread pcarlini at suse dot de
--- Comment #6 from pcarlini at suse dot de 2008-01-11 03:17 --- (In reply to comment #5) It's irrelevant to the implementation but it could be relevant to user-defined formatting (or parsing) code that bypasses num_put (or num_get) but uses numpunct to get the expected formats. I'm

[Bug libstdc++/34733] numpunct::grouping() doesn't match libc value for Bulgarian (bg_BG) locale

2008-01-10 Thread sebor at roguewave dot com
--- Comment #7 from sebor at roguewave dot com 2008-01-11 03:37 --- But that's just the libstdc++ interpretation of grouping and thousands_sep (no offense). The C library paints a different picture. If I want to write my own formatter/parser for numbers in the Bulgarian locale that

[Bug tree-optimization/33826] [4.1/4.2/4.3 Regression] GCC generates wrong code for infinitely recursive functions

2008-01-10 Thread ghazi at gcc dot gnu dot org
--- Comment #18 from ghazi at gcc dot gnu dot org 2008-01-11 03:57 --- Thanks Kenny, patch posted here: http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00445.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33826

[Bug middle-end/33187] Missed cmove opportunity

2008-01-10 Thread ghazi at gcc dot gnu dot org
--- Comment #8 from ghazi at gcc dot gnu dot org 2008-01-11 03:58 --- Thanks Uros, patch posted here: http://gcc.gnu.org/ml/gcc-patches/2008-01/msg00445.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33187

[Bug libstdc++/34733] numpunct::grouping() doesn't match libc value for Bulgarian (bg_BG) locale

2008-01-10 Thread pcarlini at suse dot de
--- Comment #8 from pcarlini at suse dot de 2008-01-11 03:59 --- (In reply to comment #7) What I'm saying is that if the C library says localeconv()-grouping is \3\3 the C++ numpunct::grouping() shouldn't say it's something else. Why not? If we agree that when the thousand separator

[Bug target/27971] eliminate shift in array[(x2)3]

2008-01-10 Thread raksit at gcc dot gnu dot org
--- Comment #5 from raksit at gcc dot gnu dot org 2008-01-11 04:21 --- Subject: Bug 27971 Author: raksit Date: Fri Jan 11 04:20:32 2008 New Revision: 131460 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=131460 Log: gcc/ChangeLog PR rtl-optimization/27971 *

[Bug middle-end/29256] [4.2/4.3 regression] loop performance regression

2008-01-10 Thread ghazi at gcc dot gnu dot org
--- Comment #20 from ghazi at gcc dot gnu dot org 2008-01-11 04:21 --- Is the testcase gcc.dg/tree-ssa/loop-19.c supposed to work with -fpic/-fPIC? I'm getting failures on mainline and 4.2 with x86_64, and only on 4.2 with i686. Mainline i686 seems to work though. Fails:

[Bug c/34735] New: C99 6.7.4/2 is not diagnose

2008-01-10 Thread pinskia at gcc dot gnu dot org
This is not rejected: static int a() { return 0; } extern int f(void); inline int f(void) { return a(); } CUT --- This violates C99 6.7.4/2 which says: An inline definition of a function with external linkage shall not contain a definition of a modifiable object with static storage

[Bug middle-end/29256] [4.2/4.3 regression] loop performance regression

2008-01-10 Thread rakdver at kam dot mff dot cuni dot cz
--- Comment #21 from rakdver at kam dot mff dot cuni dot cz 2008-01-11 04:44 --- Subject: Re: [4.2/4.3 regression] loop performance regression Is the testcase gcc.dg/tree-ssa/loop-19.c supposed to work with -fpic/-fPIC? not necessarily; with -fpic, both memory accesses are fully

[Bug c/16622] [C99] extern inline is handled wrong in C99 mode

2008-01-10 Thread pinskia at gcc dot gnu dot org
--- Comment #18 from pinskia at gcc dot gnu dot org 2008-01-11 04:50 --- 2 -- What does constraint #3 of section 6.7.4 mean? It is not fully as 6.7.4/3 is not diagnosed, I filed this as PR 34735. I guess Geoff forgot about this constraint. -- pinskia at gcc dot gnu dot org

[Bug c/34735] C99 6.7.4/3 is not diagnose

2008-01-10 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-01-11 05:15 --- We do reject this though: static int a() { return 0; } inline int f(void) { return a(); } extern int f(void); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34735

[Bug libstdc++/34733] numpunct::grouping() doesn't match libc value for Bulgarian (bg_BG) locale

2008-01-10 Thread sebor at roguewave dot com
--- Comment #9 from sebor at roguewave dot com 2008-01-11 05:44 --- I don't agree that localeconv()-grouping is garbage just because thousands_sep is NUL. I'm not aware of anything in C or POSIX that says that. In the case of bg_BG, the grouping is clearly correct. What's questionable

[Bug c/34736] New: AVR optimiser does not keep interrupt disabled blocks small

2008-01-10 Thread gcc-david at tulloh dot id dot au
I am compiling for an avr target and sharing variables with interrupts. To safely update the variables I am disabling interrupts but I want the interrupts to be disabled for the shortest possible period of time. The compiler shifts the instructions around slightly when optimizing, this has the

[Bug c/34736] AVR optimiser does not keep interrupt disabled blocks small

2008-01-10 Thread gcc-david at tulloh dot id dot au
--- Comment #1 from gcc-david at tulloh dot id dot au 2008-01-11 06:04 --- Created an attachment (id=14917) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14917action=view) Trivial example source file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34736

[Bug c/34736] AVR optimiser does not keep interrupt disabled blocks small

2008-01-10 Thread gcc-david at tulloh dot id dot au
--- Comment #2 from gcc-david at tulloh dot id dot au 2008-01-11 06:05 --- Created an attachment (id=14918) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14918action=view) Trivial example intermediate file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34736

[Bug c/34736] AVR optimiser does not keep interrupt disabled blocks small

2008-01-10 Thread gcc-david at tulloh dot id dot au
--- Comment #3 from gcc-david at tulloh dot id dot au 2008-01-11 06:05 --- Created an attachment (id=14919) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14919action=view) Trivial example assembler output file -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34736

[Bug c++/33887] [4.1/4.2/4.3 Regression] Reference to bitfield gets wrong value when optimizing

2008-01-10 Thread aoliva at gcc dot gnu dot org
--- Comment #18 from aoliva at gcc dot gnu dot org 2008-01-11 06:46 --- I don't see anything in expand_expr_real_1 that, given something like (wider)narrower_typed_value, would reduce the value in a way that takes the narrower_type into account. NOP_EXPR and CONVERT_EXPR will just

[Bug libfortran/34712] Formatted write of float broken (mingw32)

2008-01-10 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2008-01-11 07:02 --- Reply to comment #2: I will update and see if that fixes it. Thanks Danny -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34712

[Bug tree-optimization/34648] [4.3 Regression] ICE in find_or_generate_expression

2008-01-10 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34648

[Bug c/34668] [4.3 Regression] ICE in find_compatible_field with -combine

2008-01-10 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34668

[Bug c++/34691] [4.1/4.2/4.3 Regression] Default argument checking not performed after overload resolution with C linkage

2008-01-10 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34691

[Bug preprocessor/34692] [4.2/4.3 regression] Internal error with pragma in macro

2008-01-10 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34692

[Bug rtl-optimization/34628] [4.2/4.3 Regression] problems with inlining on ARM

2008-01-10 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34628