[Bug other/52438] [4.7 Regression] Some files still GPLv2

2012-03-17 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52438

Eric Botcazou ebotcazou at gcc dot gnu.org changed:

   What|Removed |Added

 CC||ebotcazou at gcc dot
   ||gnu.org

--- Comment #2 from Eric Botcazou ebotcazou at gcc dot gnu.org 2012-03-17 
09:46:12 UTC ---
 FSF not (only) copyright holder (so can't change license?):
 * gcc/ada/s-osinte-kfreebsd-gnu.ads
 * gcc/ada/s-osinte-rtems.adb
 * gcc/ada/s-taspri-lynxos.ads
 * gcc/ada/s-tpopsp-rtems.adb

Pure oversight, all other similar files were changed.


[Bug bootstrap/52601] Gcc build fails at Making all in tools with find: bad option -path and find: path-list predicate-list

2012-03-17 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52601

Eric Botcazou ebotcazou at gcc dot gnu.org changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 CC||ebotcazou at gcc dot
   ||gnu.org
 Resolution||WORKSFORME

--- Comment #2 from Eric Botcazou ebotcazou at gcc dot gnu.org 2012-03-17 
09:59:59 UTC ---
Do not build libjava if you don't need it (configure with --disable-libgcj).

If you do, you need the GNU version of various tools, in particular 'find'.


[Bug libfortran/52608] New: [4.8 Regression] The test FM110 of the NIST test suite fails since revision 185433

2012-03-17 Thread dominiq at lps dot ens.fr
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52608

 Bug #: 52608
   Summary: [4.8 Regression] The test FM110 of the NIST test suite
fails since revision 185433
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libfortran
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: domi...@lps.ens.fr
CC: j...@gcc.gnu.org


The test FM110 of the NIST test suite fails since revision 185433. The
following reduced code shows the problem:

  AAVS = .087654
  BAVS = .87654
35043 FORMAT ( ,16X,COMPUTED: ,22X,1P/26X,F5.4,3X,2P,F5.3,+3P, ,
  (23X,F6.2),3X)
 5043 FORMAT (17X,CORRECT:  ,/24X,
.8765   8.765 87.65)
  WRITE (NUVI,35043) AAVS,AAVS,AAVS
  WRITE (NUVI,5043)
end

[macbook] /Users/dominiq% a.out
 COMPUTED: 
  *   *087.65
 CORRECT:  
  .8765   8.765 87.65


[Bug other/52609] New: -Wstrict-aliasing / missed diagnostics

2012-03-17 Thread pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52609

 Bug #: 52609
   Summary: -Wstrict-aliasing / missed diagnostics
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: pl...@agmk.net
Target: x86_64-gnu-linux


void bug1( unsigned* buffer, int index, float w )
{
*(float*)(buffer[index])=w;
}

void bug2( unsigned* buffer, int index, float w )
{
float* ptr=(float*)buffer[index];
*ptr=w;
}

accessing unsigned* via float* looks buggy but

$ gcc48 -Wall -Wstrict-aliasing=3 -Wextra -fstrict-aliasing -O2 -S alias-bug.c

reports no warnings.


[Bug libstdc++/52514] --disable-nls changes libstdc++-7.dll export table.

2012-03-17 Thread pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52514

Pawel Sikora pluto at agmk dot net changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID

--- Comment #1 from Pawel Sikora pluto at agmk dot net 2012-03-17 12:30:36 
UTC ---
this was a side-effect of broken c++config.h (see PR52540) between builds.


[Bug libfortran/52608] [4.8 Regression] The test FM110 of the NIST test suite fails since revision 185433

2012-03-17 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52608

Janne Blomqvist jb at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-03-17
 Ever Confirmed|0   |1

--- Comment #1 from Janne Blomqvist jb at gcc dot gnu.org 2012-03-17 14:25:11 
UTC ---
The following patch should fix it:

diff --git a/libgfortran/io/write_float.def b/libgfortran/io/write_float.def
index 07437f0..6521f3c 100644
--- a/libgfortran/io/write_float.def
+++ b/libgfortran/io/write_float.def
@@ -180,12 +180,6 @@ output_float (st_parameter_dt *dtp, const fnode *f, char
*buffer, size_t size,
   /* Make sure the decimal point is a '.'; depending on the
 locale, this might not be the case otherwise.  */
   digits[nbefore] = '.';
-  if (digits[0] == '0'  nbefore == 1)
-   {
- digits++;
- nbefore--;
- ndigits--;
-   }
   if (p != 0)
{
  if (p  0)
@@ -229,6 +223,13 @@ output_float (st_parameter_dt *dtp, const fnode *f, char
*buffer, size_t size,
  nafter = d;
}

+  while (digits[0] == '0'  nbefore  0)
+   {
+ digits++;
+ nbefore--;
+ ndigits--;
+   }
+
   expchar = 0;
   /* If we need to do rounding ourselves, get rid of the dot by
 moving the fractional part.  */


[Bug go/52583] Several new go testsuite failues on Solaris

2012-03-17 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52583

--- Comment #11 from Uros Bizjak ubizjak at gmail dot com 2012-03-17 15:13:15 
UTC ---
Created attachment 26906
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26906
Patch to log/log_test.go that witll trigger the failure on x86_64.

(In reply to comment #6)

 The place that Go is reading that information is 
 libgo/go/debug/dwarf/line.go. 
 Most likely something is going wrong in the way that it gathers the
 information, but I don't know what.

Attached patch will trigger the failure on x86_64.

Please place breakpoint at findLine (line.go:103), and check ranges at
line.go:111:

(gdb) p ln.addrs 
$7 = {__values = 0xf8400a3900, __count = 6, __capacity = 8}
(gdb) p ln.addrs.__values[0]
$8 = {pc = 4212288, line = 60}
(gdb) p ln.addrs.__values[5]
$9 = {pc = 4212356, line = 60}

(gdb) p/x ln.addrs.__values[0].pc
$11 = 0x404640
(gdb) p/x ln.addrs.__values[5].pc
$12 = 0x404684

(gdb) p/x *pc
$13 = 0x4047d5

The pc will be outside the boundaries, and will cause:

[uros@localhost gotest30392]$ ./a.out
--- FAIL: log.TestAll (0.01 seconds)
log_test.go:55: log output should match
^.*/[A-Za-z0-9_\\-]+\\.go:(54|56): hello 23 world$ is :0: hello 23 world
FAIL


[Bug go/52583] Several new go testsuite failues on Solaris

2012-03-17 Thread ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52583

--- Comment #12 from Ian Lance Taylor ian at airs dot com 2012-03-17 16:41:21 
UTC ---
Can you attach the output of readelf --debug (not just --debug=line) for the
program that fails?


[Bug fortran/52585] Wromg result for ASSOCIATED with dummy procedure pointer

2012-03-17 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52585

--- Comment #3 from Tobias Burnus burnus at gcc dot gnu.org 2012-03-17 
17:04:03 UTC ---
Author: burnus
Date: Sat Mar 17 17:03:59 2012
New Revision: 185485

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=185485
Log:
2012-03-17  Tobias Burnus  bur...@net-b.de

PR fortran/52585
* trans-intrinsic.c (gfc_conv_associated): Fix handling of
procpointer dummy arguments.

2012-03-17  Tobias Burnus  bur...@net-b.de

PR fortran/52585
* gfortran.dg/proc_ptr_36.f90: New.


Added:
trunk/gcc/testsuite/gfortran.dg/proc_ptr_36.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-intrinsic.c
trunk/gcc/testsuite/ChangeLog


[Bug go/52583] Several new go testsuite failues on Solaris

2012-03-17 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52583

--- Comment #13 from Uros Bizjak ubizjak at gmail dot com 2012-03-17 17:18:30 
UTC ---
Created attachment 26907
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26907
readelf --debug output for patched log/check a.out

Output of readelf --debug on x86_64, patched log/check test.


[Bug libfortran/52608] [4.8 Regression] The test FM110 of the NIST test suite fails since revision 185433

2012-03-17 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52608

--- Comment #2 from Janne Blomqvist jb at gcc dot gnu.org 2012-03-17 17:19:54 
UTC ---
Author: jb
Date: Sat Mar 17 17:19:49 2012
New Revision: 185486

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=185486
Log:
PR libfortran/52608 Move the removal of initial zeros.

2012-03-17  Janne Blomqvist  j...@gcc.gnu.org

PR libfortran/52608
* io/write_float.def (output_float): Move removal of initial zeros
until after the scale factor has been applied.


Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/io/write_float.def


[Bug go/52583] Several new go testsuite failues on Solaris

2012-03-17 Thread ubizjak at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52583

Uros Bizjak ubizjak at gmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-03-17
 Ever Confirmed|0   |1

--- Comment #14 from Uros Bizjak ubizjak at gmail dot com 2012-03-17 17:22:00 
UTC ---
(In reply to comment #11)

 Patch to log/log_test.go that witll trigger the failure on x86_64.

Maybe I should say that this is on x86_64-pc-linux-gnu.


[Bug libfortran/52608] [4.8 Regression] The test FM110 of the NIST test suite fails since revision 185433

2012-03-17 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52608

Janne Blomqvist jb at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #3 from Janne Blomqvist jb at gcc dot gnu.org 2012-03-17 17:24:17 
UTC ---
Fixed, closing.


[Bug fortran/52585] Wrong result for ASSOCIATED with dummy procedure pointer

2012-03-17 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52585

Tobias Burnus burnus at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||FIXED
Summary|Wromg result for ASSOCIATED |Wrong result for ASSOCIATED
   |with dummy procedure|with dummy procedure
   |pointer |pointer

--- Comment #4 from Tobias Burnus burnus at gcc dot gnu.org 2012-03-17 
17:55:58 UTC ---
FIXED on the trunk (GCC 4.8).

Thanks for the report!


[Bug libfortran/52608] [4.8 Regression] The test FM110 of the NIST test suite fails since revision 185433

2012-03-17 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52608

--- Comment #4 from Janne Blomqvist jb at gcc dot gnu.org 2012-03-17 18:20:47 
UTC ---
Author: jb
Date: Sat Mar 17 18:20:34 2012
New Revision: 185487

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=185487
Log:
2012-03-17  Janne Blomqvist  j...@gcc.gnu.org

PR libfortran/52608
* gfortran.dh/pr52608.f90: New test.


Added:
trunk/gcc/testsuite/gfortran.dg/pr52608.f90
Modified:
trunk/gcc/testsuite/ChangeLog


[Bug libfortran/52608] [4.8 Regression] The test FM110 of the NIST test suite fails since revision 185433

2012-03-17 Thread jb at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52608

--- Comment #5 from Janne Blomqvist jb at gcc dot gnu.org 2012-03-17 18:24:15 
UTC ---
Author: jb
Date: Sat Mar 17 18:24:09 2012
New Revision: 185488

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=185488
Log:
PR libfortran/52608 Add dejagnu directive to testcase

Modified:
trunk/gcc/testsuite/gfortran.dg/pr52608.f90


[Bug target/52607] v4df __builtin_shuffle with {0,2,1,3} or {1,3,0,2}

2012-03-17 Thread marc.glisse at normalesup dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52607

--- Comment #2 from Marc Glisse marc.glisse at normalesup dot org 2012-03-17 
19:20:36 UTC ---
Created attachment 26908
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26908
copy-paste patch for 0213 and 1302

This seems to handle 0213 and 1302 (I only vaguely looked at the generated
code, can't do proper testing).

It is really a copy-paste of the function that handles 1230. I didn't try to
understand everything, so there may be things that made sense in the original
function but don't anymore here. It should be possible to merge the 2 new
functions, but merging them with the previous one looks harder.


[Bug target/52607] v4df __builtin_shuffle with {0,2,1,3} or {1,3,0,2}

2012-03-17 Thread marc.glisse at normalesup dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52607

--- Comment #3 from Marc Glisse marc.glisse at normalesup dot org 2012-03-17 
19:55:18 UTC ---
Uh. I feel silly, but it looks like vshufpd could replace vpermilpd+vblendpd in
many cases, including the original 1230 from PR52568...


[Bug target/52610] New: mpfr fails to compile when specifying CFLAGS=-O3 -mcpu=leon

2012-03-17 Thread matt at use dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52610

 Bug #: 52610
   Summary: mpfr fails to compile when specifying CFLAGS=-O3
-mcpu=leon
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: target
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: m...@use.net


error when compiling MPFR 3.1.0:
debian-sparc:~/src/mpfr-3.1.0# CFLAGS=-O3 -mcpu=leon -flto CXXFLAGS=-O3
-mcpu=v8 -flto LDFLAGS=-flto -O3 -mcpu=v8  ./configure
--prefix=/opt/gcc-4.7.0 --with-gnu-as --with-gnu-ld --with-gmp=/opt/gcc-4.7.0
[...]
make
[...]
libtool: compile:  gcc -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DTIME_WITH_SYS_TIME=1 -DHAVE_LOCALE_H=1 -DHAVE_WCHAR_H=1 -DHAVE_STDARG=1
-DHAVE_SYS_TIME_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_STDINT_H=1 -DHAVE_VA_COPY=1
-DHAVE_SETLOCALE=1 -DHAVE_GETTIMEOFDAY=1 -DHAVE_LONG_LONG=1 -DHAVE_INTMAX_T=1
-DMPFR_HAVE_INTMAX_MAX=1 -DMPFR_HAVE_FESETROUND=1 -DHAVE_DENORMS=1
-DHAVE_FLOOR=1 -DHAVE_CEIL=1 -DMPFR_USE_THREAD_SAFE=1 -DLT_OBJDIR=\.libs/\
-DHAVE_ATTRIBUTE_MODE=1 -DHAVE___GMPN_ROOTREM=1 -DHAVE___GMPN_SBPI1_DIVAPPR_Q=1
-I. -I/opt/gcc-4.7.0/include -O3 -mcpu=leon -flto -MT cmp.lo -MD -MP -MF
.deps/cmp.Tpo -c cmp.c  -fPIC -DPIC -o .libs/cmp.o
/tmp/ccjJFPW2.s: Assembler messages:
/tmp/ccjJFPW2.s:241: Error: Hardware capability mul32 not enabled for smul.
make[2]: *** [cmp.lo] Error 1

When I try to add -Av8 to CFLAGS, I get this error:
command-line:0:1: error: missing '(' after predicate

I have a qemu-sparc virtual machine based on Debian/Sarge I can provide that
reproduces the problem. I'll work on attaching a pre-processed example.


[Bug target/52610] mpfr fails to compile when specifying CFLAGS=-O3 -mcpu=leon

2012-03-17 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52610

--- Comment #1 from Mikael Pettersson mikpe at it dot uu.se 2012-03-17 
20:32:59 UTC ---
Are you using binutils-2.22 or newer with a host gcc built from some revision
earlier than r180966 (November 4 2011)?  If so then you're the victim of sparc
binutils issue http://sourceware.org/bugzilla/show_bug.cgi?id=13441

On sparc you have to update your host gcc to one that includes the PR50979 fix
before you can update binutils to 2.22 or newer.


[Bug target/10412] Renesas SH - Incorrect code generation

2012-03-17 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10412

Oleg Endo olegendo at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||olegendo at gcc dot gnu.org
 Resolution||FIXED

--- Comment #17 from Oleg Endo olegendo at gcc dot gnu.org 2012-03-17 
21:09:17 UTC ---
As of GCC 4.7.0 this is not a problem anymore.


[Bug go/52586] libgo fails to build for mips*64-linux-gnu (reference to undefined name 'SYS_GETDENTS64')

2012-03-17 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52586

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||build
 Target||mips*64-linux-gnu
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-03-17
Summary|libgo fails to build for|libgo fails to build for
   |mipsel64-linux-gnu  |mips*64-linux-gnu
   |(reference to undefined |(reference to undefined
   |name 'SYS_GETDENTS64')  |name 'SYS_GETDENTS64')
 Ever Confirmed|0   |1

--- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2012-03-17 
21:35:03 UTC ---
Confirmed on the trunk with glibc 2.15 on mips64-linux-gnu and not just the
little-endian version of mips64.


[Bug other/52609] -Wstrict-aliasing / missed diagnostics

2012-03-17 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52609

--- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2012-03-17 
21:57:19 UTC ---
accessing unsigned* via float* looks buggy

It does not have to be if the original argument was originally of type float.
Aliasing is not about type of pointers but the type which is used to access and
such.


[Bug target/52607] v4df __builtin_shuffle with {0,2,1,3} or {1,3,0,2}

2012-03-17 Thread marc.glisse at normalesup dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52607

Marc Glisse marc.glisse at normalesup dot org changed:

   What|Removed |Added

  Attachment #26908|0   |1
is obsolete||

--- Comment #4 from Marc Glisse marc.glisse at normalesup dot org 2012-03-17 
22:03:08 UTC ---
Created attachment 26909
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26909
patch

Here is a try. Again, I just looked at the generated code on a couple examples,
which isn't very reliable...

expand_vec_perm_vperm2f128_vblend0 is already covered by
expand_vec_perm_vperm2f128_vblend1, but it is confusing to have a 3-instruction
function generate only 2.

I didn't do generic permutations with 4 instructions.

There is probably more that can be done with vshufp[sd].


[Bug target/48068] loongson intrinsics improvement opportunities

2012-03-17 Thread hp at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48068

--- Comment #5 from Hans-Peter Nilsson hp at gcc dot gnu.org 2012-03-17 
22:17:11 UTC ---
Issue 1 may have been solved by r182662 on trunk, now in 4.7.


[Bug c/52611] New: ia64-hp-hpux11.31, internal compiler error: verify_gimple failed

2012-03-17 Thread pda at freeshell dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52611

 Bug #: 52611
   Summary: ia64-hp-hpux11.31, internal compiler error:
verify_gimple failed
Classification: Unclassified
   Product: gcc
   Version: 4.6.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: p...@freeshell.org


Created attachment 26910
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26910
ffi.i from src/ia64/ffi.c

This isn't my code, but from the libffi package.  Attached is the preprocessor
output, and the complete error output looks like

depbase=`echo src/ia64/ffi.lo | sed 's|[^/]*$|.deps/|;s|\.lo$||'`;\
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  -I.
-I../include -Iinclude -I../src  -g  -fno-strict-aliasing -fwrapv  -save-temps
-Wall -fexceptions -MT src/ia64/ffi.lo -MD -MP -MF $depbase.Tpo -c -o
src/ia64/ffi.lo ../src/ia64/ffi.c \
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -Iinclude
-I../src -g -fno-strict-aliasing -fwrapv -save-temps -Wall -fexceptions -MT
src/ia64/ffi.lo -MD -MP -MF src/ia64/.deps/ffi.Tpo -c ../src/ia64/ffi.c  -fPIC
-DPIC -o src/ia64/.libs/ffi.o
../src/ia64/ffi.c: In function 'ffi_prep_closure_loc':
../src/ia64/ffi.c:409:1: error: invalid types in nop conversion
long long unsigned int
void *
D.3647 = (long long unsigned int) codeloc;

../src/ia64/ffi.c:409:1: internal compiler error: verify_gimple failed
Please submit a full bug report,
with preprocessed source if appropriate.