[Bug lto/38995] lto1 uses unaligned data accesses

2009-01-29 Thread hjl dot tools at gmail dot com
--- Comment #3 from hjl dot tools at gmail dot com 2009-01-29 22:52 --- I think the problem is LTO uses mmap to read in LTO sections. But all LTO sections have alignment of 0. They have have alignment of void * instead. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38995

[Bug testsuite/36443] [4.3/4.4 Regression]: HOSTCC doesn't work with installed gcc

2009-01-29 Thread rob1weld at aol dot com
--- Comment #44 from rob1weld at aol dot com 2009-01-29 23:12 --- (In reply to comment #43) > Rob, your various assertions do not show that there is a bug here. ... ... > I built GCC from 20090106, broke a couple of thing affecting cc1, float.h, and > libgcc.a, and installed it. Then I

[Bug c/39031] New: HUGE_VAL_D32, HUGE_VAL_D64, HUGE_VAL_D128 missing from

2009-01-29 Thread tydeman at tybor dot com
The Decimal Floating Point (DFP) Technical Report (TR) added DFP versions of HUGE_VAL to . They are missing in (at least) gcc 4.3.2-7. /* DFP TR 24732 == WG14 / N1176, N1312 */ #define __STDC_WANT_DEC_FP__/* Tell implementation that we want Decimal FP */ #include/* HUGE_VAL_D*

[Bug c/39031] HUGE_VAL_D32, HUGE_VAL_D64, HUGE_VAL_D128 missing from

2009-01-29 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-01-30 00:05 --- IIRC math.h is controlled by the glibc project and really this is a bug in glibc and not GCC. GCC officially only implements the freestanding C library. It is better to report it to the glibc project about this pro

[Bug c/39032] New: DEC_INFINITY missing from

2009-01-29 Thread tydeman at tybor dot com
gcc 4.3.2-7 with command line option -std=gnu99 of /* DFP TR 24732 == WG14 / N1176, N1312 */ #define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP */ #include/* DEC_INFINITY */ _Decimal32 d32 = DEC_INFINITY; gets: test2.c:5: warning: ISO C does not support decimal

[Bug c/39032] DEC_INFINITY missing from

2009-01-29 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-01-30 00:19 --- math.h is not controlled by the GCC project, so please file it with glibc. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39032

[Bug c++/39018] Cannot take address of template function

2009-01-29 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-01-30 00:21 --- Yes this is a known bug, please see PR 11407. *** This bug has been marked as a duplicate of 11407 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/11407] [DR 115] Function cannot be resolved

2009-01-29 Thread pinskia at gcc dot gnu dot org
--- Comment #15 from pinskia at gcc dot gnu dot org 2009-01-30 00:21 --- *** Bug 39018 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c/39031] HUGE_VAL_D32, HUGE_VAL_D64, HUGE_VAL_D128 missing from

2009-01-29 Thread janis at gcc dot gnu dot org
--- Comment #2 from janis at gcc dot gnu dot org 2009-01-30 00:25 --- Andrew is correct, math.h is not provided by GCC. TR 24732 is not supported by GLIBC and probably won't be until it is incorporated into a C standard. Meanwhile it is in a branch of the EGLIBC project, but I understa

[Bug c/39032] DEC_INFINITY missing from

2009-01-29 Thread janis at gcc dot gnu dot org
--- Comment #2 from janis at gcc dot gnu dot org 2009-01-30 00:31 --- Please don't file a bug report against GLIBC for missing decimal float support unless you enjoy being yelled at. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39032

[Bug c/39033] New: DEC_EVAL_METHOD missing from

2009-01-29 Thread tydeman at tybor dot com
Using gcc 4.3.2-7 on Intel Pentium running Linux Fedora Core 10 with -std=gnu99 of /* DFP TR 24732 == WG14 / N1176, N1312 */ #define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP */ #include /* DEC_EVAL_METHOD */ #ifndef DEC_EVAL_METHOD #error Missing DEC_EVAL_METHOD #

[Bug c/39033] DEC_EVAL_METHOD missing from

2009-01-29 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-01-30 01:12 --- /* The floating-point expression evaluation method. -1 indeterminate 0 evaluate all operations and constants just to the range and precision of the type 1 evaluate operations

[Bug other/39033] DEC_EVAL_METHOD missing from

2009-01-29 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-01-30 01:13 --- Fixed by: http://gcc.gnu.org/ml/gcc-patches/2008-09/msg00944.html -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/39026] Gcc accepts invalid code

2009-01-29 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2009-01-30 01:17 --- (In reply to comment #4) > > I think the frontend should, in C89 mode and if just issueing a warning, > set DECL_EXTERNAL properly on the decl. > Do we want to make such a change, especially for 4.3 branch? --

[Bug c/39034] New: Decimal floating-point math done wrong

2009-01-29 Thread tydeman at tybor dot com
Using gcc 4.3.2-7 on Intel Pentium 4 running Fedora Core 10 with -std=gnu99 of /* DFP TR 24732 == WG14 / N1176, N1312 */ #define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP */ #include /* printf() */ int main(void){ double d2 = (double)((28./3.-9.) - (31./3.-1

[Bug c/39035] New: if( 0.0DF ) is considered true

2009-01-29 Thread tydeman at tybor dot com
Using gcc 4.3.2-7 on Intel Pentium 4 running Fedora Core 10 and -std=gnu99 of /* DFP TR 24732 == WG14 / N1176, N1312 */ #define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP */ #include /* printf() */ int main(void){ if( 0.0DF ){ printf("0.0DF should be zero\n");

[Bug lto/38995] lto1 uses unaligned data accesses

2009-01-29 Thread hjl dot tools at gmail dot com
--- Comment #4 from hjl dot tools at gmail dot com 2009-01-30 01:41 --- I am testing this patch: Index: gcc/langhooks.c === --- gcc/langhooks.c (revision 143777) +++ gcc/langhooks.c (working copy) @@ -612,6 +612,7 @@

[Bug c++/38928] infinite loop on error message in C++ only

2009-01-29 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2009-01-30 01:43 --- On it. -- paolo dot carlini at oracle dot com changed: What|Removed |Added AssignedT

[Bug c/39036] New: Decimal floating-point exception flags done wrong

2009-01-29 Thread tydeman at tybor dot com
Using gcc 4.3.2-7 on Intel Pentium 4 running Linux Fedora Core 10 and -std=gnu99 /* DFP TR 24732 == WG14 / N1176, N1312 */ #define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP */ #pragma STDC FENV_ACCESS ON /* will be testing FP exception flags */ #include /* prin

[Bug c/39037] New: FLOAT_CONST_DECIMAL64 pragma not supported

2009-01-29 Thread tydeman at tybor dot com
Using gcc 4.3.2-7 on Intel Pentium 4 running Linux Fedora Core 10 with -std=gnu99 /* DFP TR 24732 == WG14 / N1312 */ #define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP */ #pragma STDC FLOAT_CONST_DECIMAL64 ON /* unsuffixed => Decimal (not Binary) */ _Decimal64 d10 = 1.0DD

Re: [Bug c/39036] New: Decimal floating-point exception flags done wrong

2009-01-29 Thread Andrew Thomas Pinski
Sent from my iPhone On Jan 29, 2009, at 6:00 PM, "tydeman at tybor dot com" > wrote: Using gcc 4.3.2-7 on Intel Pentium 4 running Linux Fedora Core 10 and -std=gnu99 There were some dfp fixes on the trunk relating to fp exceptions so you should try the trunk before reporting any more bug

[Bug c/39036] Decimal floating-point exception flags done wrong

2009-01-29 Thread pinskia at gmail dot com
--- Comment #1 from pinskia at gmail dot com 2009-01-30 02:41 --- Subject: Re: New: Decimal floating-point exception flags done wrong Sent from my iPhone On Jan 29, 2009, at 6:00 PM, "tydeman at tybor dot com" wrote: > Using gcc 4.3.2-7 on Intel Pentium 4 running Linux Fedora Cor

[Bug c++/33465] Broken diagnostic: 'fix_trunc_expr' and 'float_expr' not supported by dump_expr

2009-01-29 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2009-01-30 03:22 --- On it. -- paolo dot carlini at oracle dot com changed: What|Removed |Added AssignedT

[Bug testsuite/38946] [4.4 Regression] gcc trunk 143562 - Testsuite - gfortran failing tests that worked previously

2009-01-29 Thread rob1weld at aol dot com
--- Comment #15 from rob1weld at aol dot com 2009-01-30 03:24 --- (In reply to comment #9) > Subject: Re: [trunk regression]?gcc trunk 143562 - Testsuite - gfortran > failing tests that worked previously > > I think adding a printf() clone to libiberty is WAY overkill just to > silence

[Bug bootstrap/38892] gcc 4.4.0 20090104 - natVMVirtualMachine.cc:903: error: request for member 'frame_type' in ...

2009-01-29 Thread rob1weld at aol dot com
--- Comment #3 from rob1weld at aol dot com 2009-01-30 04:31 --- The building of Language Java is broken on (at least) two platforms. Checking http://gcc.gnu.org/ml/gcc-testresults/2009-01/ it seems to work on some other platforms. I'll investigate if it is my ./configure . Rob --

[Bug c++/39038] New: Redeclaration

2009-01-29 Thread mahesh dot balasubramanian at wipro dot com
Hello, I found a strange behavior of the following code. void fn(int x, int y){ if(int temp = ( x > y ? (x /y) : (x % y))){ cout << temp; } else{ double temp = x / y; // ill-formed, redeclaration of temp cout << temp; } } int main(int argc, char **argv){ fn(2, 3); } According to $6.4

[Bug fortran/39039] New: segfault with common block and "-O1 -ftree-vectorize -msse2"

2009-01-29 Thread billingd at gcc dot gnu dot org
The following program segfaults when compiled with "-O1 -ftree-vectorize -msse2". Compiler is gfortran trunk revision 143693 (4.4.0 20090127). Also fails with higher levels of optimization but requires both -ftree-vectorize and -msse2. program common real (kind=8) b(5) common /com1/b b

[Bug c++/39040] New: Redeclaration

2009-01-29 Thread mahesh dot balasubramanian at wipro dot com
Hello, I found a strange behavior of the following code. void fn(int x, int y){ if(int temp = ( x > y ? (x /y) : (x % y))){ cout << temp; } else{ double temp = x / y; // ill-formed, redeclaration of temp cout << temp; } } int main(int argc, char **argv){ fn(2, 3); } According to $6.4

[Bug lto/38995] lto1 uses unaligned data accesses

2009-01-29 Thread hjl dot tools at gmail dot com
--- Comment #5 from hjl dot tools at gmail dot com 2009-01-30 05:35 --- A patch is posted at http://gcc.gnu.org/ml/gcc-patches/2009-01/msg01498.html -- hjl dot tools at gmail dot com changed: What|Removed |Added ---

[Bug c/39026] Gcc accepts invalid code

2009-01-29 Thread rguenther at suse dot de
--- Comment #6 from rguenther at suse dot de 2009-01-30 06:52 --- Subject: Re: Gcc accepts invalid code On Fri, 30 Jan 2009, hjl dot tools at gmail dot com wrote: > --- Comment #5 from hjl dot tools at gmail dot com 2009-01-30 01:17 > --- > (In reply to comment #4) > > > >

[Bug c/39032] DEC_INFINITY missing from

2009-01-29 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-01-30 07:14 --- Invalid. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFI

[Bug c/39035] if( 0.0DF ) is considered true

2009-01-29 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-01-30 07:17 --- isn't this a dup of the previous bug? -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/39036] Decimal floating-point exception flags done wrong

2009-01-29 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-01-30 07:19 --- STDC FENV_ACCESS is not implemented. *** This bug has been marked as a duplicate of 20785 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/20785] Pragma STDC * (C99 FP) unimplemented

2009-01-29 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2009-01-30 07:19 --- *** Bug 39036 has been marked as a duplicate of this bug. *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c++/39038] Redeclaration

2009-01-29 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-01-30 07:21 --- *** Bug 39040 has been marked as a duplicate of this bug. *** -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39038

[Bug c++/39040] Redeclaration

2009-01-29 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-01-30 07:21 --- *** This bug has been marked as a duplicate of 39038 *** -- rguenth at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/39038] Redeclaration

2009-01-29 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2009-01-30 07:23 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCON

<    1   2