[Bug lto/91724] [8 Regression] profiled lto bootstrap fails on arm-linux-gnueabihf

2020-02-19 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91724

--- Comment #9 from Matthias Klose  ---
that works again with the gcc-8 branch from 20200218.  LTO link times however
are about three hours.

[Bug lto/91724] [8 Regression] profiled lto bootstrap fails on arm-linux-gnueabihf

2020-02-18 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91724

Matthias Klose  changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #5 from Matthias Klose  ---
I've started a new build with today's git branch.

This is again a compiler configured with --enable-default-pie, and other
hardening flags turned on by default:

/usr/lib/gcc/arm-linux-gnueabihf/8/cc1 -quiet -v -imultiarch
arm-linux-gnueabihf foo.c -quiet -dumpbase foo.c -mfloat-abi=hard
-mfpu=vfpv3-d16 -mthumb -mtls-dialect=gnu -march=armv7-a+fp -auxbase foo
-version -fstack-protector-strong -Wformat -Wformat-security

[Bug rtl-optimization/93658] [9/10 Regression] infinite loop building ghostscript and icu with -O3 on powerpc64le-linux-gnu

2020-02-10 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93658

--- Comment #4 from Matthias Klose  ---
the file from icu 65.1 is built using

g++ -v -Wdate-time -g -O3 -fstack-protector-strong -Wformat
-Werror=format-security -W -Wall -pedantic -Wpointer-arith -Wwrite-strings
-Wno-long-long -std=c++11 -c -o genmbcs.o genmbcs.ii

no specific patches applied for the trunk. The compiler defaults to PIE, and
the usual hardening defaults:

/usr/lib/gcc/powerpc64le-linux-gnu/10/cc1plus -fpreprocessed genmbcs.ii
-msecure-plt -quiet -dumpbase genmbcs.ii -mcpu=power8 -auxbase-strip genmbcs.o
-g -O3 -Wdate-time -Wformat=1 -Werror=format-security -Wextra -Wall -Wpedantic
-Wpointer-arith -Wwrite-strings -Wno-long-long -std=c++11 -version
-fstack-protector-strong -fasynchronous-unwind-tables -fstack-protector-strong
-Wformat-security -fstack-clash-protection

[Bug rtl-optimization/93658] [9/10 Regression] infinite loop building ghostscript and icu with -O3 on powerpc64le-linux-gnu

2020-02-10 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93658

Matthias Klose  changed:

   What|Removed |Added

   Keywords||ra
 Target||powerpc64le-linux-gnu
  Known to work||9.2.0
  Known to fail||10.0, 9.2.1

--- Comment #1 from Matthias Klose  ---
memory usage stays constant at about 2GB, the package build gets cancelled
after 150 minutes.

[Bug rtl-optimization/93658] New: [9/10 Regression] infinite loop building ghostscript and icu with -O3 on powerpc64le-linux-gnu

2020-02-10 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93658

Bug ID: 93658
   Summary: [9/10 Regression] infinite loop building ghostscript
and icu with -O3 on powerpc64le-linux-gnu
   Product: gcc
   Version: 9.2.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at ubuntu dot com
  Target Milestone: ---

Created attachment 47813
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47813=edit
preprocessed source

seen with gcc-9 and trunk 20200204, building ghostscript and icu with -O3 on
powerpc64le-linux-gnu.  Falling back to -O2 lets the build succeed, a -O3 build
on x86_64-linux-gnu succeeds.

Program received signal SIGTSTP, Stopped (user).
push_to_sequence (first=0x7320d580) at ../../src/gcc/emit-rtl.c:5574
5574../../src/gcc/emit-rtl.c: No such file or directory.
(gdb) bt
#0  push_to_sequence (first=0x7320d580) at ../../src/gcc/emit-rtl.c:5574
#1  0x10843000 in process_address_1 (nop=nop@entry=0, 
check_only_p=check_only_p@entry=false, before=before@entry=0x7fffdbf0, 
after=after@entry=0x7fffdbe8) at ../../src/gcc/lra-constraints.c:3434
#2  0x1084527c in process_address (after=,
before=, 
check_only_p=, nop=) at
../../src/gcc/lra-constraints.c:3637
#3  curr_insn_transform (check_only_p=check_only_p@entry=false)
at ../../src/gcc/lra-constraints.c:3952
#4  0x1084ad10 in lra_constraints (first_p=)
at ../../src/gcc/lra-constraints.c:5025
#5  0x10833940 in lra (f=) at ../../src/gcc/lra.c:2437
#6  0x107d893c in do_reload () at ../../src/gcc/ira.c:5518
#7  (anonymous namespace)::pass_reload::execute (this=) at
../../src/gcc/ira.c:5704
#8  0x10928280 in execute_one_pass (pass=pass@entry=0x11d106f0)
at ../../src/gcc/passes.c:2500
#9  0x10929314 in execute_pass_list_1 (pass=0x11d106f0) at
../../src/gcc/passes.c:2588
#10 0x1092932c in execute_pass_list_1 (pass=0x11d0f4f0) at
../../src/gcc/passes.c:2589
#11 0x109293b8 in execute_pass_list (fn=,
pass=)
at ../../src/gcc/passes.c:2599
#12 0x104f4a2c in cgraph_node::expand (this=0x76ee7d28) at
../../src/gcc/context.h:48
#13 0x104f600c in expand_all_functions () at
../../src/gcc/cgraphunit.c:2454
#14 symbol_table::compile (this=this@entry=0x752f) at
../../src/gcc/cgraphunit.c:2804
#15 0x104f8c54 in symbol_table::compile (this=0x752f)
at ../../src/gcc/cgraphunit.c:2984
#16 symbol_table::finalize_compilation_unit (this=0x752f)
at ../../src/gcc/cgraphunit.c:2984
#17 0x10a321bc in compile_file () at ../../src/gcc/toplev.c:483
#18 0x10187c8c in do_compile () at ../../src/gcc/toplev.c:2273
#19 toplev::main (this=0x7fffe6a0, argc=, argv=)
at ../../src/gcc/toplev.c:2412
#20 0x10189e78 in main (argc=, argv=0x7fffeac8)
at ../../src/gcc/main.c:39

GCC defaults to hardening options and is configured using
--enable-languages=c,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr
--with-gcc-major-version-only --program-suffix=-10
--program-prefix=powerpc64le-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object --enable-plugin
--enable-default-pie --with-system-zlib --disable-libphobos
--enable-objc-gc=auto --enable-secureplt --with-cpu=power8
--enable-targets=powerpcle-linux --disable-multilib --enable-multiarch
--disable-werror --with-long-double-128 --enable-offload-targets=nvptx-none
--without-cuda-driver --enable-checking=release --build=powerpc64le-linux-gnu
--host=powerpc64le-linux-gnu --target=powerpc64le-linux-gnu

[Bug rtl-optimization/93583] [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-04 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583

--- Comment #1 from Matthias Klose  ---
a build without lto seems to succeed.

[Bug rtl-optimization/93583] New: [10 Regression] bootstrap failure on powerpc64le-linux-gnu

2020-02-04 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93583

Bug ID: 93583
   Summary: [10 Regression] bootstrap failure on
powerpc64le-linux-gnu
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at ubuntu dot com
  Target Milestone: ---

seen with trunk 20200204 5124c34fcc62f0f880ae947542678e28aa2ce703 on
powerpc64le-linux-gnu.

during RTL pass: expand
../../src/gcc/config/rs6000/driver-rs6000.c: In function
'host_detect_local_cpu':
../../src/gcc/config/rs6000/driver-rs6000.c:342:25: internal compiler error:
Segmentation fault
  342 |   return describe_cache (l1_sizekb, l1_line, l1_assoc, l2_sizekb);
  | ^
0x1077f863 crash_signal
../../src/gcc/toplev.c:328
0x101f0a60 expand_call(tree_node*, rtx_def*, int)
../../src/gcc/calls.c:4672
0x103664ff expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
../../src/gcc/expr.c:11130
0x1020249f expand_expr
../../src/gcc/expr.h:282
0x1020249f expand_call_stmt
../../src/gcc/cfgexpand.c:2703
0x1020249f expand_gimple_stmt_1
../../src/gcc/cfgexpand.c:3682
0x1020249f expand_gimple_stmt
../../src/gcc/cfgexpand.c:3847
0x10209117 expand_gimple_basic_block
../../src/gcc/cfgexpand.c:5887
0x10209117 execute
../../src/gcc/cfgexpand.c:6542
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.
make[6]: *** [/tmp/cc4GyZt0.mk:5: /tmp/cpp.EgoT71.ltrans1.ltrans.o] Error 1
make[6]: *** Waiting for unfinished jobs

lto-wrapper: fatal error: /usr/bin/make returned 2 exit status
compilation terminated.
/usr/bin/powerpc64le-linux-gnu-ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:2089: cpp] Error 1
make[5]: *** Waiting for unfinished jobs

this is a compiler defaulting to hardening options, configured with

Configured with: -v
 --enable-languages=c,c++,go,d,fortran,objc,obj-c++
 --prefix=/usr
 --with-gcc-major-version-only
 --program-suffix=-10
 --program-prefix=powerpc64le-linux-gnu-
 --enable-shared
 --enable-linker-build-id
 --libexecdir=/usr/lib
 --without-included-gettext
 --enable-threads=posix
 --libdir=/usr/lib
 --enable-nls
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --enable-plugin
 --enable-default-pie
 --with-system-zlib
 --disable-libphobos
 --enable-objc-gc=auto
 --enable-secureplt
 --with-cpu=power8
 --enable-targets=powerpcle-linux
 --disable-multilib
 --enable-multiarch
 --disable-werror
 --with-long-double-128
 --enable-offload-targets=nvptx-none
 --without-cuda-driver
 --enable-checking=release
 --build=powerpc64le-linux-gnu
 --host=powerpc64le-linux-gnu
 --target=powerpc64le-linux-gnu
 --with-build-config=bootstrap-lto-lean
 --enable-link-mutex

[Bug modula2/93575] New: the modula2 frontend fails to build with a profiled bootstrap

2020-02-04 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93575

Bug ID: 93575
   Summary: the modula2 frontend fails to build with a profiled
bootstrap
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: modula2
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at ubuntu dot com
  Target Milestone: ---

the modula2 frontend fails to build with a profiled bootstrap, seen with trunk
20200204.

/<>/build/./prev-gcc/xgcc -B/<>/build/./prev-gcc/
-B/usr/x86_64-linux-gnu/bin/ -B/usr/x86_64-linux-gnu/bin/
-B/usr/x86_64-linux-gnu/lib/
 -isystem /usr/x86_64-linux-gnu/include -isystem
/usr/x86_64-linux-gnu/sys-include -isystem /<>/build/sys-include  
-fno-checking -g -o m2/boot-bin/m
c m2/mc-boot/GArgs.o m2/mc-boot/GASCII.o m2/mc-boot/GAssertion.o
m2/mc-boot/GBreak.o m2/mc-boot/GCmdArgs.o m2/mc-boot/GDebug.o
m2/mc-boot/GDynamicStrings.o m2/mc-
boot/GEnvironment.o m2/mc-boot/GFIO.o m2/mc-boot/GFormatStrings.o
m2/mc-boot/GFpuIO.o m2/mc-boot/GIO.o m2/mc-boot/GRTExceptions.o
m2/mc-boot/GRTint.o m2/mc-boot/G
M2EXCEPTION.o m2/mc-boot/GM2RTS.o m2/mc-boot/GMemUtils.o m2/mc-boot/GNumberIO.o
m2/mc-boot/GPushBackInput.o m2/mc-boot/GSArgs.o m2/mc-boot/GSFIO.o
m2/mc-boot/GStd
IO.o m2/mc-boot/GStorage.o m2/mc-boot/GStrCase.o m2/mc-boot/GStringConvert.o
m2/mc-boot/GStrIO.o m2/mc-boot/GStrLib.o m2/mc-boot/GSysStorage.o
m2/mc-boot/GTimeStr
ing.o m2/mc-boot/Galists.o m2/mc-boot/Gdecl.o m2/mc-boot/GIndexing.o
m2/mc-boot/Gkeyc.o m2/mc-boot/Glists.o m2/mc-boot/GmcComp.o
m2/mc-boot/GmcComment.o m2/mc-boo
t/GmcDebug.o m2/mc-boot/GmcError.o m2/mc-boot/GmcFileName.o
m2/mc-boot/GmcLexBuf.o m2/mc-boot/GmcMetaError.o m2/mc-boot/GmcOptions.o
m2/mc-boot/GmcPreprocess.o m2
/mc-boot/GmcPretty.o m2/mc-boot/GmcPrintf.o m2/mc-boot/GmcQuiet.o
m2/mc-boot/GmcReserved.o m2/mc-boot/GmcSearch.o m2/mc-boot/GmcStack.o
m2/mc-boot/GmcStream.o m2/
mc-boot/GnameKey.o m2/mc-boot/GsymbolKey.o m2/mc-boot/Gvarargs.o
m2/mc-boot/Gwlists.o m2/mc-boot/Gtop.o m2/mc-boot/Gmcp1.o m2/mc-boot/Gmcp2.o
m2/mc-boot/Gmcp3.o m
2/mc-boot/Gmcp4.o m2/mc-boot/Gmcp5.o m2/mc-boot-ch/Glibc.o
m2/mc-boot-ch/Gmcrts.o m2/mc-boot-ch/GUnixArgs.o m2/mc-boot-ch/GSelective.o
m2/mc-boot-ch/Gtermios.o m2
/mc-boot-ch/GSysExceptions.o m2/mc-boot-ch/Gldtoa.o m2/mc-boot-ch/Gdtoa.o
m2/mc-boot-ch/Gwrapc.o m2/mc-boot-ch/GSYSTEM.o m2/mc-boot-ch/Gerrno.o
-static-libstdc++ 
-static-libgcc -Wl,-z,relro m2/mc-boot/main.o mcflex.o
m2/gm2-libs-boot/RTcodummy.o -lm
build/genmodes -h > tmp-modes.h
/bin/bash ../../src/gcc/../move-if-change tmp-modes.h insn-modes.h
echo timestamp > s-modes-h
build/genmodes -i > tmp-modes-inline.h
/bin/bash ../../src/gcc/../move-if-change tmp-modes-inline.h \
  insn-modes-inline.h
echo timestamp > s-modes-inline-h
/usr/bin/x86_64-linux-gnu-ld: m2/gm2-libs-boot/RTcodummy.o: in function
`RTco_turnInterrupts':
/<>/build/gcc/../../src/gcc/m2/gm2-libs-ch/RTcodummy.c:114:
undefined reference to `__gcov_indirect_call'
/usr/bin/x86_64-linux-gnu-ld:
/<>/build/gcc/../../src/gcc/m2/gm2-libs-ch/RTcodummy.c:114:
undefined reference to `__gcov_indirect_call_profiler_v4'
/usr/bin/x86_64-linux-gnu-ld:
/<>/build/gcc/../../src/gcc/m2/gm2-libs-ch/RTcodummy.c:114:
undefined reference to `__gcov_time_profiler_counter'
:

collect2: error: ld returned 1 exit status
make[5]: *** [../../src/gcc/m2/Make-lang.in:1550: m2/boot-bin/mc] Error 1
make[5]: *** Waiting for unfinished jobs
rm cpp.pod fsf-funding.pod lto-dump.pod gfdl.pod gpl.pod gccbrig.pod gccgo.pod
gcc.pod gdc.pod gcov-dump.pod gfortran.pod gcov-tool.pod gcov.pod
make[5]: Leaving directory '/<>/build/gcc'
make[4]: *** [Makefile:4922: all-stageprofile-gcc] Error 2
make[4]: Leaving directory '/<>/build'
make[3]: *** [Makefile:26677: stageprofile-bubble] Error 2
make[3]: Leaving directory '/<>/build'
make[2]: *** [Makefile:26942: profiledbootstrap-lean] Error 2
make[2]: Leaving directory '/<>/build'
make[1]: *** [debian/rules2:1233: stamps/05-build-stamp] Error 2

[Bug bootstrap/93409] [10 Regression] gcn libgomp plugin fails to build for x32

2020-01-29 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93409

--- Comment #6 from Matthias Klose  ---
no, it fails earlier in libgcc. using llvm-9 as the linker/assembler

[Bug bootstrap/93416] New: [10 Regression] ICE in in tree_cmp, at analyzer/region-model.cc:1851 on s390x-linux-gnu

2020-01-24 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93416

Bug ID: 93416
   Summary: [10 Regression] ICE in in tree_cmp, at
analyzer/region-model.cc:1851 on s390x-linux-gnu
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at ubuntu dot com
  Target Milestone: ---

seen with 20200124 on s390x-linux-gnu. It tells it cannot be reproduced, but I
see it repeatedly.

gcc configured with

Configured with: -v
 --enable-languages=c,c++,go,d,fortran,objc,obj-c++
 --prefix=/usr/lib/gcc-snapshot
 --with-gcc-major-version-only
 --program-prefix=
 --enable-shared
 --enable-linker-build-id
 --disable-nls
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --disable-libquadmath
 --disable-libquadmath-support
 --enable-plugin
 --with-system-zlib
 --with-target-system-zlib=auto
 --enable-objc-gc=auto
 --enable-multiarch
 --disable-werror
 --with-arch=z196
 --with-long-double-128
 --enable-multilib
 --enable-checking=yes
 --build=s390x-linux-gnu
 --host=s390x-linux-gnu
 --target=s390x-linux-gnu

[...]
echo timestamp > s-macro_list
/<>/build/./gcc/xgcc -B/<>/build/./gcc/ -xc -nostdinc
/dev/null -S -o /dev/null -fself-test=../../src/gcc/testsuite/selftests
cc1: internal compiler error: in tree_cmp, at analyzer/region-model.cc:1851
/<>/build/./gcc/xgcc -B/<>/build/./gcc/ -xc++
-nostdinc /dev/null -S -o /dev/null
-fself-test=../../src/gcc/testsuite/selftests
0x3ffa06ab3a5 __libc_start_main
/build/glibc-MXXdq1/glibc-2.29/csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.
cc1plus: internal compiler error: in tree_cmp, at analyzer/region-model.cc:1851
0x3ff848ab3a5 __libc_start_main
/build/glibc-MXXdq1/glibc-2.29/csu/libc-start.c:308
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See  for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[5]: *** [../../src/gcc/c/Make-lang.in:124: s-selftest-c] Error 1
make[5]: *** Waiting for unfinished jobs
The bug is not reproducible, so it is likely a hardware or OS problem.
make[5]: *** [../../src/gcc/cp/Make-lang.in:178: s-selftest-c++] Error 1
rm gcov.pod fsf-funding.pod lto-dump.pod gfdl.pod gpl.pod cpp.pod gccgo.pod
gcc.pod gdc.pod gcov-dump.pod gfortran.pod gcov-tool.pod
make[5]: Leaving directory '/<>/build/gcc'
make[4]: *** [Makefile:4746: all-stage2-gcc] Error 2
make[4]: Leaving directory '/<>/build'
make[3]: *** [Makefile:24566: stage2-bubble] Error 2
make[3]: Leaving directory '/<>/build'
make[2]: *** [Makefile:24770: bootstrap] Error 2
make[2]: Leaving directory '/<>/build'

[Bug bootstrap/93409] [10 Regression] gcn libgomp plugin fails to build for x32

2020-01-24 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93409

--- Comment #3 from Matthias Klose  ---
this is needed for the bootstrap, you have to build the plugin for all
multilibs, although it's discarded on install.

[Bug other/93409] New: [10 Regression] gcn libgomp plugin fails to build for x32

2020-01-23 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93409

Bug ID: 93409
   Summary: [10 Regression] gcn libgomp plugin fails to build for
x32
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at ubuntu dot com
  Target Milestone: ---

an x86_64-linux-gnu build configured with
--with-multilib-list=m32,m64,mx32
--enable-offload-targets=nvptx-none,amdgcn-amdhsa,hsa

fails to build the gcn libgomp plugin. This worked in earler snapshots.


../../../../src/libgomp/plugin/plugin-gcn.c: In function
'print_kernel_dispatch':
../../../../src/libgomp/plugin/plugin-gcn.c:1030:5: error: cast to pointer from
integer of different size [-Werror=int-to-pointer-cast]
 1030 | (void*)kernargs->heap_ptr);
  | ^
../../../../src/libgomp/plugin/plugin-gcn.c:1032:5: error: cast to pointer from
integer of different size [-Werror=int-to-pointer-cast]
 1032 | (void*)kernargs->arena_ptr);
  | ^
../../../../src/libgomp/plugin/plugin-gcn.c:1033:34: error: format '%lu'
expects argument of type 'long unsigned int', but argument 5 has type
'uint64_t' {aka 'long long unsigned int'} [-Werror=format=]
 1033 |   fprintf (stderr, "%*sobject: %lu\n", indent, "", dispatch->object);
  |~~^ 
  |  | |
  |  long unsigned int uint64_t
{aka long long unsigned int}
  |%llu
../../../../src/libgomp/plugin/plugin-gcn.c: In function
'create_kernel_dispatch':
../../../../src/libgomp/plugin/plugin-gcn.c:1882:23: error: cast from pointer
to integer of different size [-Werror=pointer-to-int-cast]
 1882 |   kernargs->out_ptr = (int64_t)>output_data;
  |   ^
../../../../src/libgomp/plugin/plugin-gcn.c:1892:24: error: cast from pointer
to integer of different size [-Werror=pointer-to-int-cast]
 1892 |   kernargs->heap_ptr = (int64_t)kernel->module->heap;
  |^
../../../../src/libgomp/plugin/plugin-gcn.c:1896:27: error: cast from pointer
to integer of different size [-Werror=pointer-to-int-cast]
 1896 | kernargs->arena_ptr = (int64_t)get_team_arena (agent, num_teams);
  |   ^
../../../../src/libgomp/plugin/plugin-gcn.c: In function 'console_output':
../../../../src/libgomp/plugin/plugin-gcn.c:1946:27: error: format '%ld'
expects argument of type 'long int', but argument 3 has type 'int64_t' {aka
'long long int'} [-Werror=format=]

[Bug rtl-optimization/93303] [10 Regression] ICE in lra_constraints.c4948 on aarch64-linux-gnu

2020-01-17 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93303

--- Comment #1 from Matthias Klose  ---
Created attachment 47667
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47667=edit
preprocessed source

[Bug rtl-optimization/93303] New: [10 Regression] ICE in lra_constraints.c4948 on aarch64-linux-gnu

2020-01-17 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93303

Bug ID: 93303
   Summary: [10 Regression] ICE in lra_constraints.c4948 on
aarch64-linux-gnu
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: rtl-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at ubuntu dot com
  Target Milestone: ---

Created attachment 47666
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47666=edit
test case

seen with trunk 20200116 on aarch64-linux-gnu:

$ g++ -c -O2 -std=gnu++11 -fstack-protector-strong -fasynchronous-unwind-tables
-fstack-protector-strong test.ii 
during RTL pass: reload
: In function 'void dh(dd, dg, cz, av, av, de,
df, int, int, int, int, int, int, int) [with  = ae; bz
= bp; dd = int; de = aw; df = aw; dg = cy; cz =
ao]':
:158:1: internal compiler error: maximum number of generated reload insns per
insn achieved (90)
0xadc5d7 lra_constraints(bool)
../../src/gcc/lra-constraints.c:4948
0xac6977 lra(_IO_FILE*)
../../src/gcc/lra.c:2437
0xa85887 do_reload
../../src/gcc/ira.c:5526
0xa85887 execute
../../src/gcc/ira.c:5712
Please submit a full bug report,
with preprocessed source if appropriate.

[Bug tree-optimization/93292] New: [10 Regression] ICE (segfault) in vectorizable_comparison on powerpc64le-linux-gnu

2020-01-16 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93292

Bug ID: 93292
   Summary: [10 Regression] ICE (segfault) in
vectorizable_comparison on powerpc64le-linux-gnu
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
  Assignee: unassigned at gcc dot gnu.org
  Reporter: doko at ubuntu dot com
  Target Milestone: ---

seen with 20200116 on powerpc64-linux-gnu


$ cat editor_profiler.ii
class a {
public:
  static int c(float p1) {
static int b;
b = p1 ? p1 + 0.5 : 0;
return b;
  }
};
int *d;
float e;
void f() {
  float g;
  for (int h; h; h++) {
d[h] += a::c(g < 0 ?: g > 5 ?: g);
a::c(e);
  }
}

$ g++ -c -O3 -fstack-protector-strong editor_profiler.ii
during GIMPLE pass: vect
editor_profiler.ii: In function ‘void f()’:
editor_profiler.ii:11:6: internal compiler error: Segmentation fault
   11 | void f() {
  |  ^
0x10a217c3 crash_signal
../../src/gcc/toplev.c:328
0x10c9c79c TYPE_VECTOR_SUBPARTS(tree_node const*)
../../src/gcc/tree.h:3836
0x10c9c79c vectorizable_comparison
../../src/gcc/tree-vect-stmts.c:10495
0x10cad147 vect_analyze_stmt(_stmt_vec_info*, bool*, _slp_tree*,
_slp_instance*, vec*)
../../src/gcc/tree-vect-stmts.c:10907
0x10cdb0ef vect_slp_analyze_node_operations
../../src/gcc/tree-vect-slp.c:2786
0x10cdb053 vect_slp_analyze_node_operations
../../src/gcc/tree-vect-slp.c:2850
0x10cdb053 vect_slp_analyze_node_operations
../../src/gcc/tree-vect-slp.c:2850
0x10cdb053 vect_slp_analyze_node_operations
../../src/gcc/tree-vect-slp.c:2850
0x10cdb053 vect_slp_analyze_node_operations
../../src/gcc/tree-vect-slp.c:2850
0x10cdf97f vect_slp_analyze_operations(vec_info*)
../../src/gcc/tree-vect-slp.c:2926
0x10ce208f vect_slp_analyze_bb_1
../../src/gcc/tree-vect-slp.c:3250
0x10ce208f vect_slp_bb_region
../../src/gcc/tree-vect-slp.c:3311
0x10ce208f vect_slp_bb(basic_block_def*)
../../src/gcc/tree-vect-slp.c:3446
0x10ce79eb try_vectorize_loop_1
../../src/gcc/tree-vectorizer.c:946
0x10ce83ff vectorize_loops()
../../src/gcc/tree-vectorizer.c:1125
0x10baec9f execute
../../src/gcc/tree-ssa-loop.c:414
Please submit a full bug report,
with preprocessed source if appropriate.

[Bug rtl-optimization/93159] [10 Regression] ICE (segfault) during RTL pass on arm-linux-gnueabihf

2020-01-09 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93159

Matthias Klose  changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #2 from Matthias Klose  ---
it's reproducible, but not with the auto retires. Still need to look at that.

[Bug rtl-optimization/92866] [10 Regression] libgo build failure on arm-linux-gnueabihf (ICE, segfault)

2019-12-10 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92866

Matthias Klose  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |WORKSFORME

--- Comment #2 from Matthias Klose  ---
and it works again with r279131 ...

[Bug go/92866] New: [10 Regression] libgo build failure on arm-linux-gnueabihf (ICE, segfault)

2019-12-09 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92866

Bug ID: 92866
   Summary: [10 Regression] libgo build failure on
arm-linux-gnueabihf (ICE, segfault)
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: go
  Assignee: ian at airs dot com
  Reporter: doko at ubuntu dot com
CC: cmang at google dot com
  Target Milestone: ---

seen with 20191208 trunk.

./../../src/libgo/go/text/template/parse/node.go: In function
'parse.CopyPipe..1text/template/parse.PipeNode':
../../../src/libgo/go/text/template/parse/node.go:186:1: internal compiler
error: Segmentation fault
  186 | func (p *PipeNode) CopyPipe() *PipeNode {
  | ^
0x5532c3 crash_signal
../../src/gcc/toplev.c:328
0x44c96b add_regs_to_insn_regno_info
../../src/gcc/lra.c:1509
0x44ca5f add_regs_to_insn_regno_info
../../src/gcc/lra.c:1531
0x44ca5f add_regs_to_insn_regno_info
../../src/gcc/lra.c:1531
0x44db0d lra_update_insn_regno_info(rtx_insn*)
../../src/gcc/lra.c:1624
0x46062b process_insn_for_elimination
../../src/gcc/lra-eliminations.c:1317
0x46062b lra_eliminate(bool, bool)
../../src/gcc/lra-eliminations.c:1367
0x44ed77 lra(_IO_FILE*)
../../src/gcc/lra.c:2557
0x420895 do_reload
../../src/gcc/ira.c:5518
0x420895 execute
../../src/gcc/ira.c:5704
Please submit a full bug report,
with preprocessed source if appropriate.

gcc configured with

 --enable-languages=c,c++,go,d,fortran,objc,obj-c++
 --prefix=/usr
 --with-gcc-major-version-only
 --program-suffix=-10
 --program-prefix=arm-linux-gnueabihf-
 --enable-shared
 --enable-linker-build-id
 --libexecdir=/usr/lib
 --without-included-gettext
 --enable-threads=posix
 --libdir=/usr/lib
 --enable-nls
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --with-default-libstdcxx-abi=new
 --enable-gnu-unique-object
 --disable-libitm
 --disable-libquadmath
 --disable-libquadmath-support
 --enable-plugin
 --enable-default-pie
 --with-system-zlib
 --with-target-system-zlib=auto
 --enable-objc-gc=auto
 --enable-multiarch
 --enable-multilib
 --disable-sjlj-exceptions
 --with-arch=armv7-a
 --with-fpu=vfpv3-d16
 --with-float=hard
 --with-mode=thumb
 --disable-werror
 --enable-multilib
 --enable-checking=release
 --build=arm-linux-gnueabihf
 --host=arm-linux-gnueabihf
 --target=arm-linux-gnueabihf

[Bug go/92842] New: [10 Regression] libgo build failure on i686-gnu

2019-12-06 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92842

Bug ID: 92842
   Summary: [10 Regression] libgo build failure on i686-gnu
   Product: gcc
   Version: 10.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: go
  Assignee: ian at airs dot com
  Reporter: doko at ubuntu dot com
CC: cmang at google dot com
  Target Milestone: ---

trunk 20191205 ftbfs on the Hurd, i686-gnu:

./../../src/libgo/go/runtime/os_hurd.go:42:7: error: reference to undefined
field or method 'mos'
   42 |  if mp.mos.waitsema != 0 {
  |   ^
../../../src/libgo/go/runtime/os_hurd.go:55:4: error: reference to undefined
field or method 'mos'
   55 |  mp.mos.waitsema = uintptr(unsafe.Pointer(sem))
  |^
../../../src/libgo/go/runtime/os_hurd.go:65:48: error: reference to undefined
field or method 'mos'
   65 |   if sem_timedwait((*_sem_t)(unsafe.Pointer(_m_.mos.waitsema)), ) !=
0 {
  |^
../../../src/libgo/go/runtime/os_hurd.go:75:46: error: reference to undefined
field or method 'mos'
   75 |   r1 := sem_wait((*_sem_t)(unsafe.Pointer(_m_.mos.waitsema)))
  |  ^
../../../src/libgo/go/runtime/os_hurd.go:89:41: error: reference to undefined
field or method 'mos'
   89 |  if sem_post((*_sem_t)(unsafe.Pointer(mp.mos.waitsema))) != 0 {
  | ^
../../../src/libgo/go/runtime/os_hurd.go:95:21: error: reference to undefined
name '_SC_NPROCESSORS_ONLN'
   95 |  n := int32(sysconf(_SC_NPROCESSORS_ONLN))
  | ^
Makefile:2836: recipe for target 'runtime.lo' failed
make[6]: *** [runtime.lo] Error 1

[Bug go/92820] [10 Regression] libgo.so.15 has executable stack

2019-12-05 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92820

Matthias Klose  changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #8 from Matthias Klose  ---
an arm-linux-gnuebaihf build now fails with:

./../../src/libgo/runtime/go-context.S: Assembler messages:
../../../src/libgo/runtime/go-context.S:74: Error: junk at end of line, first
unrecognized character is `,'
make[6]: *** [Makefile:1441: runtime/go-context.lo] Error 1

[Bug other/87036] -O1/-O2 affects floating point precision on at least i686 and ppc64el

2018-08-21 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87036

--- Comment #3 from Matthias Klose  ---
On 21.08.2018 09:53, pinskia at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87036
> 
> --- Comment #1 from Andrew Pinski  ---
> For powerpc at least this is due to fma. Use -ffp-contract=off to turn it off.

yes, -ffp-contract=off helps.

[Bug libobjc/78698] [7 regression] Using static PIC libgc fails when it has dependencies

2016-12-07 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78698

--- Comment #3 from Matthias Klose  ---
On 07.12.2016 17:06, egall at gwmail dot gwu.edu wrote:
> Note that some package managers automatically delete .la files as part of the
> installation process. I suppose it'd just fall through to the compile-and-link
> tests in that case, though, which might still work...

yes, it will. And I think it will still fail a --disable-shared build without
having a libgc.la.  The alternative would be to run the to-be-generated
LIBTOOL_COMPILE and LIBTOOL_LINK in the configure file. But I couldn't find any
references how that could be done.

[Bug target/65464] [4.8/4.9 Regression] disabling multilib support for powerpc64le-linux-gnu breaks kernel builds

2015-03-19 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65464

--- Comment #5 from Matthias Klose doko at ubuntu dot com ---
 Well, on x86_64 if you build gcc with --disable-multilib you still
 can compile with -m32 (even without a 32-bit user runtime).
 Why should this be different on ppc64le?

$ gcc -m32 -c foo.c
foo.c:1:0: error: -m32 not supported in this configuration

well, it is different, and this doesn't work on 4.8, 4.9 and 5 anymore.


[Bug plugins/61176] [4.9/4.10 Regression] plugin builds including gimple.h not building

2014-05-14 Thread doko at ubuntu dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61176

--- Comment #6 from Matthias Klose doko at ubuntu dot com ---
Am 14.05.2014 14:21, schrieb amacleod at redhat dot com:
 btw, the long term plan is that #include gimple.h will get all the basic
 prerequisites you need to manipulate gimple. And then you just #include any
 extras your specific task requires.  We're just in a transition state this
 release as we flatten to reconstruct a more sensible modular layout.

this is for 4.10, but what to do about 4.9? Maybe have gimple-plugin.h and
tree-plugin.h headers, which won't go away for 4.10 and then would just include
gimple.h and tree.h?  I would appreciate if you could name all the toplevel
headers.


[Bug fortran/61126] gfortran does not enable -Wununused-parameter with -Wextra

2014-05-09 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61126

--- Comment #9 from Matthias Klose doko at ubuntu dot com ---
Am 09.05.2014 18:02, schrieb manu at gcc dot gnu.org:
 I don't understand how it was working before. What is exactly the
 command-line passed to that testcase?

the test passes just -Wextra, adding either a -Wunused or a -Wall lets the
warning re-appear.


[Bug target/49821] New: [4.6 regression] ICE in dwarf2out_cfi_begin_epilogue, at dwarf2out.c:3015

2011-07-23 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49821

   Summary: [4.6 regression] ICE in dwarf2out_cfi_begin_epilogue,
at dwarf2out.c:3015
   Product: gcc
   Version: 4.6.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com
Target: ia64-linux-gnu


Created attachment 24813
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24813
preprocessed source

[forwarded from http://bugs.debian.org/635153]

fails with 4.6 branch 20110714, works with 4.5 branch. Either omitting
-fvisibility=hidden or changing the optimization level to -O/-O2 works around
the issue.

$ g++ -c -fvisibility=hidden -g -Os nsRuleNode.i 
In file included from nsRuleNode.cpp:82:0:
CSSCalc.h: In function 'typename CalcOps::result_type
mozilla::css::ComputeCalc(const typename CalcOps::input_type, CalcOps) [with
CalcOps = CalcLengthCalcOps, typename CalcOps::result_type = int, typename
CalcOps::input_type = nsCSSValue]':
CSSCalc.h:144:1: internal compiler error: in dwarf2out_cfi_begin_epilogue, at
dwarf2out.c:3015
Please submit a full bug report,
with preprocessed source if appropriate.


[Bug target/49049] ICE in copyprop_hardreg_forward_1, at regcprop.c:767

2011-07-21 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49049

Matthias Klose doko at ubuntu dot com changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #4 from Matthias Klose doko at ubuntu dot com 2011-07-21 08:28:41 
UTC ---
[ http://bugs.debian.org/630746 ]

looks like a regression in current 4.6 branch and the trunk, works with current
4.4 and 4.5 branches. The volume.i builds with -O2 instead of -O1 (the Debian
compiler targets armv4 by default).

$ gcc -g -O -c volume.i../vol/volume.c: In function 'VShutdown_r':
../vol/volume.c:1320:1: error: insn does not satisfy its constraints:
(insn 1117 1116 669 56 (set (reg:SI 8 r8 [561])
(minus:SI (const_int 12 [0xc])
(const_int 5784 [0x1698]))) ../vol/volume.c:1409 29
{*arm_subsi3_insn}
 (nil))
../vol/volume.c:1320:1: internal compiler error: in copyprop_hardreg_forward_1,
at regcprop.c:767
Please submit a full bug report,
with preprocessed source if appropriate.


[Bug target/49049] ICE in copyprop_hardreg_forward_1, at regcprop.c:767

2011-07-21 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49049

--- Comment #5 from Matthias Klose doko at ubuntu dot com 2011-07-21 08:31:56 
UTC ---
Created attachment 24801
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24801
preprocessed volume.i source


[Bug tree-optimization/49140] [4.6 regression] wrong code with -O2 and -O3, not with -O3 -no-inline

2011-07-18 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49140

--- Comment #7 from Matthias Klose doko at ubuntu dot com 2011-07-18 10:19:28 
UTC ---
the pari tests still fail


[Bug tree-optimization/49756] New: g++ ICE

2011-07-15 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49756

   Summary: g++ ICE
   Product: gcc
   Version: 4.6.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


Created attachment 24773
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24773
preprocessed source

[forwarded from http://launchpad.net/bugs/721378]

might related to PR48766, although I don't see the recursion in
fold_binary_loc(). seen with current 4.4, 4.5, 4.6 branches and trunk.

$ g++ -c testcase.ii 
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.

Program received signal SIGSEGV, Segmentation fault.
0x008046dc in fold_binary_loc ()
(gdb) bt
#0  0x008046dc in fold_binary_loc ()
#1  0x008905e2 in gimplify_expr ()
#2  0x00895269 in ?? ()
#3  0x0089067e in gimplify_expr ()
#4  0x0089f7a2 in ?? ()
#5  0x00891188 in gimplify_expr ()
#6  0x008a22f9 in ?? ()
#7  0x0088fd3e in gimplify_expr ()
#8  0x00898367 in gimplify_stmt ()
#9  0x0089f41d in ?? ()
#10 0x008916f0 in gimplify_expr ()
#11 0x008961b3 in ?? ()
#12 0x0088fcd5 in gimplify_expr ()
#13 0x00898367 in gimplify_stmt ()
#14 0x00890b9e in gimplify_expr ()
#15 0x00898367 in gimplify_stmt ()
#16 0x00898d5c in ?? ()
#17 0x00891414 in gimplify_expr ()
#18 0x00898367 in gimplify_stmt ()
#19 0x008908a9 in gimplify_expr ()
#20 0x00898367 in gimplify_stmt ()
#21 0x00898d5c in ?? ()
#22 0x00891414 in gimplify_expr ()
#23 0x00898367 in gimplify_stmt ()
#24 0x008908a9 in gimplify_expr ()
#25 0x00898367 in gimplify_stmt ()
[...]

bug submitter writes:

- if you comment out the ~Base destructor, the ICE goes away.

- The ICE also goes away if you significantly reduce the number of Child
members in the Container class.


[Bug fortran/49690] New: [4.6 regression] ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1019

2011-07-09 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49690

   Summary: [4.6 regression] ICE in gfc_typenode_for_spec, at
fortran/trans-types.c:1019
   Product: gcc
   Version: 4.6.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: fortran
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


Created attachment 24726
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24726
preprocessed source

[forwarded from http://bugs/debian.org/631204]

not seen with 4.5.3, seen with 4.6.1 on powerpc-linux-gnu. not checked on the
trunk.

$ gfortran -c -g ctrl_cx.f 
ctrl_cx.f: In function ‘set_ctrl_c’:
ctrl_cx.f:108:0: internal compiler error: in gfc_typenode_for_spec, at
fortran/trans-types.c:1019
Please submit a full bug report,
with preprocessed source if appropriate.


[Bug target/49621] New: [4.5/4.6/4.7 regression] ICE in trunc_int_for_mode, at explow.c:57

2011-07-03 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49621

   Summary: [4.5/4.6/4.7 regression] ICE in trunc_int_for_mode, at
explow.c:57
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


[forwarded from http://bugs.debian.org/632510]

works with 4.4.6, fails with recent 4.5 and 4.6 branches and trunk
(powerpc-linux)



$ gcc -c -O -maltivec -g foo.i 
foo.i: In function 'foo':
foo.i:17:1: internal compiler error: in trunc_int_for_mode, at explow.c:56
Please submit a full bug report,
with preprocessed source if appropriate.

int foo(void)
{
  __attribute__((altivec(vector__))) unsigned a, b, c;
  unsigned k = 1;

  a = (__attribute__((altivec(vector__))) unsigned) { 0, 0, 0, 1 };
  b = c = (__attribute__((altivec(vector__))) unsigned) { 0, 0, 0, 0 };

  a = __builtin_vec_add(a, __builtin_vec_splats(k));
  b = __builtin_vec_add(b, a);
  c = __builtin_vec_sel(c, a, b);

  if (__builtin_vec_vcmpeq_p(1, b, c))
return 1;

  return 0;
}


[Bug target/49419] New: [4.6/4.7 regression] gcc -O2 miscompiles gp2c

2011-06-15 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49419

   Summary: [4.6/4.7 regression] gcc -O2 miscompiles gp2c
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


[forwarded from http://bugs.debian.org/630567]

fails with -O2/-O3, works with -O1/-Os with 20110611 4.6 branch, 20110531
trunk, apparently on {powerpc,mips,mipsel,s390}-linux.

gcc-4.6 miscompiles gp2c on several platforms including powerpc, see 
https://buildd.debian.org/status/package.php?p=gp2c

On powerpc (32 bit):
The function 'listostack' in src/utils.c is miscompiled with -O2.
Please find a testcase.

gcc-4.6 -O2 -Wall gccbug.c -o gccbug  ./gccbug
zsh: segmentation fault  ./gccbug
gcc-4.6 -O1 -Wall gccbug.c -o gccbug  ./gccbug
nb=2
0: 1
1: 2


#include stdio.h
#include stdlib.h

typedef struct
{
  enum {LEAF=0, NODE=1} f;/*node function*/
  int x;  /*node left child*/
  int y;  /*node right child*/
} node; 

node *tree;

int listtostack(int n, int f, int *stack, int nbmax)
{
  int x,i,nb;
  if (n==-1) return 0;
  for(x=n,i=0;tree[x].f==f  inbmax;x=tree[x].x,i++);
  if (i==nbmax)
exit(1);
  nb=i+1;
  for(x=n;i0;stack[i]=tree[x].y,x=tree[x].x,i--);
  stack[0]=x;
  return nb;
}

#define STACKSZ 3

int main(void)
{
  int stack[STACKSZ];
  int i,nb;
  tree = (node *)calloc(STACKSZ,sizeof(node));
  tree[0].f = NODE;
  tree[0].x = 1;
  tree[0].y = 2;
  nb=listtostack(0,1,stack,STACKSZ);
  printf(nb=%d\n,nb);
  for(i=0;inb;i++)
printf(%d: %d\n,i,stack[i]);
  return 0;
}


[Bug tree-optimization/49140] New: [4.6 regression] wrong code with -O2 and -O3, not with -O3 -no-inline

2011-05-24 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49140

   Summary: [4.6 regression] wrong code with -O2 and -O3, not with
-O3 -no-inline
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: tree-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


Created attachment 24342
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24342
preprocessed source

[forwarded from http://bugs.debian.org/627084]

seen with r174102 from the 4.6 branch, works with r173903 from the trunk


Step to reproduce:

wget 'http://pari.math.u-bordeaux.fr/~bill/pari-2.4.3.12000.tar.gz'
tar xf pari-2.4.3.12000.tar.gz
cd pari-2.4.3.alpha
./Configure
make gp
make bench

Result: all test suite fail.

Cause: 

The function pari_init_parser() in the file src/language/parsec.h is
miscompiled.
(This file is included by src/language/parse.y).

If you replace the line 43: s_node.n=OPnboperator; by parsestate_reset(); 
(which does the same thing), then all test pass.

It seems that the issue is that the function stack_alloc() is not inlined
correctly,
which cause pari_tree to be NULL (or maybe the call to pari_inline inside
stack_alloc()
is not inlined correctly.

The command line used is
gcc-4.6  -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer-I.
-I../src/headers -fPIC -o
parse.o ../src/language/parse.c

It also happens with -O2, but not with -O3 -fno-inline.

It works fine with gcc 4.3, 4.4 and 4.5.


[Bug other/49144] New: [4.6/4.7 regression] miscompiled reverse_iterator?

2011-05-24 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49144

   Summary: [4.6/4.7 regression] miscompiled reverse_iterator?
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


[forwarded from http://bugs.debian.org/PR627795]

seen with 4.6 r174102 and trunk r173903

The attached test program is supposed to print -42, and does so when compiled
with g++-4.4 or g++-4.5. However, it outputs random junk when compiled with
g++-4.6:

$ g++ -Wall -O2 test.cxx
$ ./a.out
31
$ ./a.out
207
$ ./a.out
79


#include iostream

int f()
{
unsigned char data[3] = { 42, 42, 42 };
unsigned char *begin = data;
unsigned char *end = data + 3;
std::reverse_iteratorunsigned char * reversed(end);
for (; begin  end; begin++, reversed++)
if (*reversed != 42)
return *reversed;
return -42;
}

int main(int argc, char ** argv)
{
std::cout  f()  \n;
}


[Bug tree-optimization/48988] [4.7 regression] ICE at pred_chain_length_cmp at tree-ssa-uninit.c:1624

2011-05-21 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48988

Matthias Klose doko at ubuntu dot com changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #2 from Matthias Klose doko at ubuntu dot com 2011-05-21 09:21:55 
UTC ---
PR48799 shows an ICE in the same location


[Bug debug/48159] [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g

2011-05-02 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48159

--- Comment #3 from Matthias Klose doko at ubuntu dot com 2011-05-02 17:06:02 
UTC ---
Created attachment 24168
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24168
preprocessed source


[Bug debug/48159] [4.7 Regression] ICE: SIGSEGV in build2_stat (tree.c:3802) with -O -ftree-loop-distribution -fno-tree-ch -g

2011-05-02 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48159

Matthias Klose doko at ubuntu dot com changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #2 from Matthias Klose doko at ubuntu dot com 2011-05-02 17:05:14 
UTC ---
have a similiar build failure, but seen with both 4.6 and 4.7, so this seems to
be a 4.6 regression too. works with -O2 and below.

fails with 4.6 20110428 and trunk 20110419.

$ gcc -g -O3 -c psf.i 
psf.c: In function 'psf_fit':
psf.c:300:6: internal compiler error: Segmentation fault
Please submit a full bug report,


Program received signal SIGSEGV, Segmentation fault.
0x0083e71a in build2_stat ()
(gdb) bt
#0  0x0083e71a in build2_stat ()
#1  0x005490ee in gimple_assign_rhs_to_tree ()
#2  0x0080114e in insert_debug_temp_for_var_def ()
#3  0x00801538 in insert_debug_temps_for_defs ()
#4  0x0062553a in gsi_remove ()
#5  0x00763862 in ?? ()
#6  0x0076402f in ?? ()
#7  0x0069f0e9 in execute_one_pass ()
#8  0x0069f395 in execute_pass_list ()
#9  0x0069f3a7 in execute_pass_list ()
#10 0x0069f3a7 in execute_pass_list ()
#11 0x0076b051 in tree_rest_of_compilation ()
#12 0x008a915f in ?? ()
#13 0x008aadba in cgraph_optimize ()
#14 0x008ab1ba in cgraph_finalize_compilation_unit ()
#15 0x004b6e05 in c_write_global_declarations ()
#16 0x007301be in toplev_main ()
#17 0x7625aeed in __libc_start_main (main=value optimized out,
argc=value optimized out, 
ubp_av=value optimized out, init=value optimized out, fini=value
optimized out, 
rtld_fini=value optimized out, stack_end=0x7fffe5e8) at
libc-start.c:228
#18 0x004a67f9 in _start ()


[Bug middle-end/48685] New: [4.5/4.6/4.7 regression] ICE in gimplify_expr, at gimplify.c:7034

2011-04-19 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48685

   Summary: [4.5/4.6/4.7 regression] ICE in gimplify_expr, at
gimplify.c:7034
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: middle-end
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


[forwarded from http://bugs.debian.org/623161]

works with 4.4.6, fails with 4.5, 4.6 branches and trunk

$ cat foo.c 
int main() {
unsigned long int pixel;
((void)((1 == 2) ? ((void)(0)) : ((pixel) = 0)));
return 0;
}

$ gcc-snapshot-20110419/build/gcc/xgcc -Bgcc-snapshot-20110419/build/gcc/ foo.c
foo.c: In function 'main':
foo.c:3:10: internal compiler error: in gimplify_expr, at gimplify.c:7034
Please submit a full bug report,


[Bug c/48687] New: for errors from -pedantic, -Werror reports [-Werror=edantic]

2011-04-19 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48687

   Summary: for errors from -pedantic,  -Werror reports
[-Werror=edantic]
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


$ gcc -c -std=c89 -pedantic -Werror test.c
test.c:3:7: error: ISO C90 does not support flexible array members
[-Werror=edantic]
cc1: all warnings being treated as errors

$ cat test.c
struct foo {
int dummy;
char flex[];
};


[Bug ada/48368] New: gnat on arm-linux-gnueabi only has sjlj exception support, not zcx

2011-03-30 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48368

   Summary: gnat on arm-linux-gnueabi only has sjlj exception
support, not zcx
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: enhancement
  Priority: P3
 Component: ada
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


gnat on arm-linux-gnueabi only has sjlj exception support, not zcx


[Bug ada/48368] gnat on arm-linux-gnueabi only has sjlj exception support, not zcx

2011-03-30 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48368

--- Comment #2 from Matthias Klose doko at ubuntu dot com 2011-03-30 16:21:28 
UTC ---
the enhancement request is to add zero cost exception support.


[Bug libstdc++/47145] configure test for docbook-xsl-ns stylesheets uses hardcoded path

2011-03-22 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47145

--- Comment #27 from Matthias Klose doko at ubuntu dot com 2011-03-22 
09:09:26 UTC ---
yes, thanks! already done.


[Bug target/48173] [4.6 regression] bootstrap error on arm-linux-gnueabi (defaulting to armv4t)

2011-03-22 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48173

--- Comment #3 from Matthias Klose doko at ubuntu dot com 2011-03-22 13:13:57 
UTC ---
had to reproduce it with a local build ...

the ice is triggered with any warning, -Warray-bounds as in the example, or
faster with -Wlong-long, e.g.:

  -g -O2 -Warray-bounds -Wlong-long

Program received signal SIGSEGV, Segmentation fault.
pp_base_format (pp=0x7833fc, text=0xbeee47bc) at
../../src/gcc/pretty-print.c:217
217   new_chunk_array = XOBNEW (buffer-chunk_obstack, struct chunk_info);
(gdb) bt
#0  pp_base_format (pp=0x7833fc, text=0xbeee47bc) at
../../src/gcc/pretty-print.c:217
#1  0x00166d54 in diagnostic_report_diagnostic (context=0x937a14,
diagnostic=0xbeee47bc)
at ../../src/gcc/diagnostic.c:541
#2  0x00086fc4 in pedwarn_c90 (location=value optimized out, opt=250, 
gmsgid=0x7833fc ISO C90 does not support %long long%) at
../../src/gcc/c-errors.c:62
#3  0x00095930 in declspecs_add_type (loc=572947, specs=0xa95758, spec=...)
at ../../src/gcc/c-decl.c:8780
#4  0x000b8d24 in c_parser_declspecs (parser=0x40824b60, specs=0xa95758, 
scspec_ok=value optimized out, typespec_ok=value optimized out,
start_attr_ok=1 '\001', 
la=cla_nonabstract_decl) at ../../src/gcc/c-parser.c:2090
#5  0x000b9c80 in c_parser_parameter_declaration (parser=0x40824b60,
attrs=value optimized out)
at ../../src/gcc/c-parser.c:3230
#6  0x000b9f84 in c_parser_parms_list_declarator (parser=0x40824b60,
id_list_ok=value optimized out, 
attrs=value optimized out) at ../../src/gcc/c-parser.c:3137
#7  c_parser_parms_declarator (parser=0x40824b60, id_list_ok=value optimized
out, 
attrs=value optimized out) at ../../src/gcc/c-parser.c:3085
#8  0x000ba51c in c_parser_direct_declarator_inner (parser=0x40824b60, 
id_present=value optimized out, inner=0xa95738) at
../../src/gcc/c-parser.c:3015
#9  0x000b13b0 in c_parser_declaration_or_fndef (parser=0x40824b60, fndef_ok=1
'\001', 
static_assert_ok=value optimized out, empty_ok=value optimized out,
nested=0 '\000', 
start_attr_ok=1 '\001', objc_foreach_object_declaration=0x0) at
../../src/gcc/c-parser.c:1576
#10 0x000bd2d4 in c_parser_external_declaration (parser=0x40824b60) at
../../src/gcc/c-parser.c:1332
#11 0x000bdfdc in c_parser_translation_unit () at ../../src/gcc/c-parser.c:1220
#12 c_parse_file () at ../../src/gcc/c-parser.c:9950
#13 0x000eb36c in c_common_parse_file () at
../../src/gcc/c-family/c-opts.c:1077
#14 0x00333650 in compile_file (argc=11085600, argv=0x40024de0) at
../../src/gcc/toplev.c:579
#15 do_compile (argc=11085600, argv=0x40024de0) at ../../src/gcc/toplev.c:1900
#16 toplev_main (argc=11085600, argv=0x40024de0) at ../../src/gcc/toplev.c:1963
#17 0x000f94e0 in main (argc=value optimized out, argv=value optimized out)
at ../../src/gcc/main.c:36
(gdb) p buffer
$1 = (output_buffer *) 0x204f5349
(gdb) p buffer-chunk_obstack
Cannot access memory at address 0x204f5375


[Bug libstdc++/47145] configure test for docbook-xsl-ns stylesheets uses hardcoded path

2011-03-17 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47145

--- Comment #25 from Matthias Klose doko at ubuntu dot com 2011-03-17 
22:00:16 UTC ---
builds on a non-networked machine succeed


[Bug target/48173] New: [4.6 regression] bootstrap error on arm-linux-gnueabi (defaulting to armv4t)

2011-03-17 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48173

   Summary: [4.6 regression] bootstrap error on arm-linux-gnueabi
(defaulting to armv4t)
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


according to
https://buildd.debian.org/fetch.cgi?pkg=gcc-4.6arch=armelver=4.6.0~rc1-1stamp=1300253746file=logas=raw

the bootstrap build fails with:

/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build/./prev-gcc/xgcc
-B/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build/./prev-gcc/
-B/usr/arm-linux-gnueabi/bin/ -B/usr/arm-linux-gnueabi/bin/
-B/usr/arm-linux-gnueabi/lib/ -isystem /usr/arm-linux-gnueabi/include -isystem
/usr/arm-linux-gnueabi/sys-include-c   -g -O2 -gtoggle -DIN_GCC   -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat  -Wno-error
-DHAVE_CONFIG_H -I. -I. -I../../src/gcc -I../../src/gcc/.
-I../../src/gcc/../include -I../../src/gcc/../libcpp/include 
-I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd
-I../libdecnumber../../src/gcc/expmed.c -o expmed.o
../../src/gcc/expmed.c: In function 'init_expmed':
../../src/gcc/expmed.c:134:3: warning: array subscript is above array bounds
[-Warray-bounds]
xgcc: internal compiler error: Segmentation fault (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.6/README.Bugs for instructions.
make[5]: *** [expmed.o] Error 4
make[5]: Leaving directory
`/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build/gcc'
make[4]: *** [all-stage2-gcc] Error 2
make[4]: Leaving directory
`/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build'
make[3]: *** [stage2-bubble] Error 2
make[3]: Leaving directory
`/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build'
make[2]: *** [bootstrap-lean] Error 2
make[2]: Leaving directory
`/build/buildd-gcc-4.6_4.6.0~rc1-1-armel-5jpjEr/gcc-4.6-4.6.0~rc1/build'
s=`cat status`; rm -f status; test $s -eq 0
make[1]: *** [stamps/05-build-stamp] Error 1


configured as:
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib  --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-plugin --enable-gold --enable-ld=default --with-plugin-ld=ld.gold
--enable-objc-gc --disable-sjlj-exceptions --enable-checking=release
--build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi

and the patch:
--- a/src/gcc/config/arm/linux-eabi.h
+++ b/src/gcc/config/arm/linux-eabi.h
@@ -44,7 +44,7 @@
The ARM10TDMI core is the default for armv5t, so set
SUBTARGET_CPU_DEFAULT to achieve this.  */
 #undef  SUBTARGET_CPU_DEFAULT
-#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
+#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi

 /* TARGET_BIG_ENDIAN_DEFAULT is set in
config.gcc for big endian configurations.  */


[Bug target/47487] ICE in rs6000_output_function_epilogue, at config/rs6000/rs6000.c:21782 building 64bit libgo

2011-02-21 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47487

--- Comment #4 from Matthias Klose doko at ubuntu dot com 2011-02-22 03:03:28 
UTC ---
libgo has configury bits for powerpc*-linux. that was my reason to assume that
Go is supported on powerpc.


[Bug target/47487] ICE in rs6000_output_function_epilogue, at config/rs6000/rs6000.c:21782 building 64bit libgo

2011-02-20 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47487

Matthias Klose doko at ubuntu dot com changed:

   What|Removed |Added

 Target|powerpc-linux-gnu   |powerpc-linux-gnu
   ||powerpc64-linux-gnu

--- Comment #1 from Matthias Klose doko at ubuntu dot com 2011-02-20 15:49:19 
UTC ---
still seen on trunk 20110220, powerpc-linux-gnu and powerpc64-linux-gnu targets


[Bug tree-optimization/46723] [4.5 Regression] internal compiler error: in get_initial_def_for_induction, at tree-vect-loop.c:2431

2011-02-19 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46723

Matthias Klose doko at ubuntu dot com changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #13 from Matthias Klose doko at ubuntu dot com 2011-02-19 
18:43:00 UTC ---
the patch fixes the ICE on the 4.5 branch, no regressions on a i686-linux-gnu
biarch build and test.


[Bug target/47487] New: ICE in rs6000_output_function_epilogue, at config/rs6000/rs6000.c:21782 building 64bit libgo

2011-01-27 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47487

   Summary: ICE in rs6000_output_function_epilogue, at
config/rs6000/rs6000.c:21782 building 64bit libgo
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


powerpc-linux-gnu, trunk 20110126, configured with --enable-targes=all fails
with:

echo timestamp  s-syscall_arch
rm -f `echo unicode/libunicode.a | sed -e 's|/lib|/|' -e 's/\.a/.gox/'`; test
-d unicode || /bin/mkdir -p unicode; rm -f unicode/libunicode.a; files=`echo
../../../../src/libgo/go/unicode/casetables.go
../../../../src/libgo/go/unicode/digit.go
../../../../src/libgo/go/unicode/letter.go
../../../../src/libgo/go/unicode/tables.go | sed -e 's/[^ ]*\.gox//g'`; if
/bin/bash ./libtool --tag GO --mode=compile
/build/buildd/gcc-snapshot-20110126/build/./gcc/gccgo
-B/build/buildd/gcc-snapshot-20110126/build/./gcc/
-B/usr/lib/gcc-snapshot/powerpc-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/powerpc-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/powerpc-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/powerpc-linux-gnu/sys-include  -O2 -g  -m64 -fPIC
-mstrict-align -I . -c -fgo-prefix=libgo_unicode -o unicode/libunicode.a.o
$files; then ar rc unicode/libunicode.a unicode/libunicode.a.o; else exit 1; fi
libtool: compile:  /build/buildd/gcc-snapshot-20110126/build/./gcc/gccgo
-B/build/buildd/gcc-snapshot-20110126/build/./gcc/
-B/usr/lib/gcc-snapshot/powerpc-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/powerpc-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/powerpc-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/powerpc-linux-gnu/sys-include -O2 -g -m64 -fPIC
-mstrict-align -I . -c -fgo-prefix=libgo_unicode
../../../../src/libgo/go/unicode/casetables.go
../../../../src/libgo/go/unicode/digit.go
../../../../src/libgo/go/unicode/letter.go
../../../../src/libgo/go/unicode/tables.go 
../../../../src/libgo/go/unicode/letter.go: In function 'unicode.to.isra.0':
../../../../src/libgo/go/unicode/letter.go:176:1: internal compiler error: in
rs6000_output_function_epilogue, at config/rs6000/rs6000.c:21782
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-snapshot/README.Bugs for instructions.
make[10]: *** [unicode/libunicode.a] Error 1
make[10]: Leaving directory
`/build/buildd/gcc-snapshot-20110126/build/powerpc-linux-gnu/64/libgo'
make[9]: *** [all-recursive] Error 1
make[9]: Leaving directory
`/build/buildd/gcc-snapshot-20110126/build/powerpc-linux-gnu/64/libgo'
make[8]: *** [all] Error 2


[Bug gcov-profile/38292] [4.3/4.4/4.5/4.6 Regression] corrupted profile info with -O[23] -fprofile-use

2011-01-24 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38292

--- Comment #15 from Matthias Klose doko at ubuntu dot com 2011-01-25 
05:21:24 UTC ---
hmm, can't set the status back to NEW, just to RESOLVED. ...

a normal build of 3.2rc1 succeeds with trunk r169142 and the proposed fix for
PR47271.

the profiled build still fails with:


gcc-4.6 -pthread -c  -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-fprofile-use  -I. -IInclude -I../Include-DPy_BUILD_CORE -o
Python/bltinmodule.o ../Python/bltinmodule.c
../Python/bltinmodule.c: In function 'builtin___build_class__':
../Python/bltinmodule.c:40:23: warning: variable 'nbases' set but not used
[-Wunused-but-set-variable]
../Python/bltinmodule.c: In function 'builtin_exec':
../Python/bltinmodule.c:769:9: warning: variable 'plain' set but not used
[-Wunused-but-set-variable]
gcc-4.6 -pthread -c  -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-fprofile-use  -I. -IInclude -I../Include-DPy_BUILD_CORE -o Python/ceval.o
../Python/ceval.c
../Python/ceval.c: In function 'PyEval_RestoreThread':
../Python/ceval.c:4472:1: error: corrupted profile info: profile data is not
flow-consistent
../Python/ceval.c:4472:1: error: corrupted profile info: number of executions
for edge 4-5 thought to be 2002859
../Python/ceval.c:4472:1: error: corrupted profile info: number of executions
for edge 4-1 thought to be -9
make[3]: *** [Python/ceval.o] Error 1


[Bug gcov-profile/38292] [4.3/4.4/4.5/4.6 Regression] corrupted profile info with -O[23] -fprofile-use

2011-01-19 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38292

--- Comment #13 from Matthias Klose doko at ubuntu dot com 2011-01-19 
11:43:30 UTC ---
trying to build python 3.2~rc1, I run into:

I get (with the just built python (built with -fprofile-generate):

build-static$ ./python
XXX lineno: 1101, opcode: 0
Fatal Python error: Py_Initialize: Unable to get the locale encoding
Traceback (most recent call last):
  File
/home/packages/python/3.2/python3.2-3.2~rc1/build-static/../Lib/encodings/__init__.py,
line 31, in module
XXX lineno: 39, opcode: 0
Aborted

The build is ok with the normal build.


[Bug gcov-profile/38292] [4.3/4.4/4.5/4.6 Regression] corrupted profile info with -O[23] -fprofile-use

2011-01-19 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38292

--- Comment #14 from Matthias Klose doko at ubuntu dot com 2011-01-19 
11:53:54 UTC ---
no, normal python build fails too, this is reported as bug #47271.


[Bug rtl-optimization/47299] [4.6 Regression] Widening multiply optimization generates bad code

2011-01-17 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47299

--- Comment #5 from Matthias Klose doko at ubuntu dot com 2011-01-17 23:05:35 
UTC ---
a biarch build for yesterday's trunk on i686 with the proposed patch applied
succeeds and doesn't show any regressions.


[Bug rtl-optimization/47299] Widening multiply optimization generates bad code

2011-01-15 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47299

Matthias Klose doko at ubuntu dot com changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #2 from Matthias Klose doko at ubuntu dot com 2011-01-16 03:51:05 
UTC ---
4.5/4.6 regression


[Bug tree-optimization/47283] New: [4.6 regression] ICE in refs_may_alias_p_1, at tree-ssa-alias.c

2011-01-13 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47283

   Summary: [4.6 regression] ICE in refs_may_alias_p_1, at
tree-ssa-alias.c
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


this was the only ICE seen in a partial distribution rebuilds on ix86 and
x86_64

trunk 20101113, on i686-linux-gnu, works with -Os, -O1, fails with -O2, -O3

$ g++-4.6 -c kcategorizedview.ii -g -O3
../../kdeui/itemviews/kcategorizedview.cpp: In member function 'virtual void
KCategorizedView::mouseMoveEvent(QMouseEvent*)':
../../kdeui/itemviews/kcategorizedview.cpp:961:75: warning: 'virtual void
KCategoryDrawerV2::mouseButtonMoved(const QModelIndex, QMouseEvent*)' is
deprecated (declared at ../../kdeui/itemviews/kcategorydrawer.h:127)
[-Wdeprecated-declarations]
../../kdeui/itemviews/kcategorizedview.cpp: In member function 'virtual void
KCategorizedView::mousePressEvent(QMouseEvent*)':
../../kdeui/itemviews/kcategorizedview.cpp:999:77: warning: 'virtual void
KCategoryDrawerV2::mouseButtonPressed(const QModelIndex, QMouseEvent*)' is
deprecated (declared at ../../kdeui/itemviews/kcategorydrawer.h:123)
[-Wdeprecated-declarations]
../../kdeui/itemviews/kcategorizedview.cpp: In member function 'virtual void
KCategorizedView::mouseReleaseEvent(QMouseEvent*)':
../../kdeui/itemviews/kcategorizedview.cpp:1030:78: warning: 'virtual void
KCategoryDrawerV2::mouseButtonReleased(const QModelIndex, QMouseEvent*)' is
deprecated (declared at ../../kdeui/itemviews/kcategorydrawer.h:125)
[-Wdeprecated-declarations]
In file included from ../../kdeui/itemviews/kcategorizedview.cpp:1470:0:
./kcategorizedview.moc: In member function 'virtual int
KCategorizedView::qt_metacall(QMetaObject::Call, int, void**)':
./kcategorizedview.moc:87:162: warning: 'virtual void
KCategorizedView::rowsInsertedArtifficial(const QModelIndex, int, int)' is
deprecated (declared at ../../kdeui/itemviews/kcategorizedview.cpp:1433)
[-Wdeprecated-declarations]
./kcategorizedview.moc:88:150: warning: 'virtual void
KCategorizedView::rowsRemoved(const QModelIndex, int, int)' is deprecated
(declared at ../../kdeui/itemviews/kcategorizedview.cpp:1444)
[-Wdeprecated-declarations]
../../kdeui/itemviews/kcategorizedview.cpp: In member function 'virtual void
KCategorizedView::updateGeometries()':
../../kdeui/itemviews/kcategorizedview.cpp:1378:1: internal compiler error: in
refs_may_alias_p_1, at tree-ssa-alias.c:1081
Please submit a full bug report,
with preprocessed source if appropriate.


[Bug tree-optimization/47283] [4.6 regression] ICE in refs_may_alias_p_1, at tree-ssa-alias.c

2011-01-13 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47283

--- Comment #1 from Matthias Klose doko at ubuntu dot com 2011-01-13 22:11:25 
UTC ---
Created attachment 22962
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=22962
preprocessed source


[Bug objc/46710] fast enumeration tests failing on ia64-suse-linux-gnu

2011-01-13 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46710

Matthias Klose doko at ubuntu dot com changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #4 from Matthias Klose doko at ubuntu dot com 2011-01-14 00:03:15 
UTC ---
the build was done on a buildd. will try to do a manual build next week.


[Bug bootstrap/47248] New: libffi build failure with ld.gold (works with trunk 20110106, fails with 20110110)

2011-01-10 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47248

   Summary: libffi build failure with ld.gold (works with trunk
20110106, fails with 20110110)
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


this is a build enabled to build Go, and pulling in libffi, which fails with

libtool: link: /scratch/packages/gcc/4.6/gcc-4.6-4.6-20110110/build/./gcc/xgcc
-B/scratch/packages/gcc/4.6/gcc-4.6-4.6-20110110/build/./gc
c/ -B/usr/i686-linux-gnu/bin/ -B/usr/i686-linux-gnu/lib/ -isystem
/usr/i686-linux-gnu/include -isystem /usr/i686-linux-gnu/sys-include
-shared  src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o
src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o
src/x86/.libs/ffi.o src/x86/.libs/sysv.o  -Wl,-soname -Wl,libffi.so.4 -o
.libs/libffi.so.4.0.1
ld.gold: internal error in set_offset, at ../../gold/output.cc:4030
collect2: ld returned 1 exit status
make[6]: *** [libffi.la] Error 1

I didn't change the build environment between the two builds. gcc was
configured with 

 --enable-languages=c,c++,fortran,objc,obj-c++,go
 --prefix=/usr
 --program-suffix=-4.6
 --enable-shared
 --with-system-zlib
 --without-included-gettext
 --enable-threads=posix
 --enable-nls
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --enable-plugin
 --enable-gold
 --enable-ld=default
 --with-plugin-ld=ld.gold
 --enable-objc-gc
 --enable-targets=all
 --with-arch-32=i686
 --with-tune=generic
 --enable-checking=release
 --build=i686-linux-gnu
 --host=i686-linux-gnu
 --target=i686-linux-gnu


[Bug bootstrap/47248] libffi build failure with ld.gold (works with trunk 20110106, fails with 20110110)

2011-01-10 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47248

--- Comment #1 from Matthias Klose doko at ubuntu dot com 2011-01-10 17:22:26 
UTC ---
ld.gold from binutils 2.21 was used.

object files at
https://bugs.launchpad.net/gcc/+bug/701110/+attachment/1790281/+files/tst.tar.xz


[Bug gcov-profile/38292] [4.3/4.4/4.5/4.6 Regression] corrupted profile info with -O[23] -fprofile-use

2011-01-10 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38292

--- Comment #12 from Matthias Klose doko at ubuntu dot com 2011-01-10 
17:24:03 UTC ---
I ran into bug #47248 trying to build a recent snapshot.


[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-10 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

--- Comment #10 from Matthias Klose doko at ubuntu dot com 2011-01-11 
00:54:10 UTC ---
works for me.

Joel, either use a build before 2010-11-13, or a fixed build. I put a recent
gcc-snapshot build for armel on 
http://people.canonical.com/~doko/tmp/gcc-snapshot_20110106-1ubuntu1_armel.deb

unpack with ar, if you don't have a dpkg available.

I only did see this on arm-linux-gnueabi.


[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-07 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

--- Comment #7 from Matthias Klose doko at ubuntu dot com 2011-01-07 08:33:03 
UTC ---
I still see this with r168558.


[Bug libstdc++/47145] [4.6 Regression] cross-compilation fails with cannot check for file existence when cross compiling

2011-01-04 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47145

Matthias Klose doko at ubuntu dot com changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #16 from Matthias Klose doko at ubuntu dot com 2011-01-04 
20:10:26 UTC ---
doc/Makefile.am has hardcoded SCHEMA_FLAGS and XSL_STYLE_DIR


[Bug libobjc/47173] New: both objc_lookUpClass and objc_lookup_class are exported symbols

2011-01-04 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47173

   Summary: both objc_lookUpClass and objc_lookup_class are
exported symbols
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libobjc
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


I assume that the first one should be removed?


[Bug go/46958] ARM Go Does Not Compile (__builtin_return_address)

2010-12-18 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46958

--- Comment #1 from Matthias Klose doko at ubuntu dot com 2010-12-18 17:00:55 
UTC ---
same build failure on ia64-linux


[Bug other/46840] New: libgo should link against libm

2010-12-07 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46840

   Summary: libgo should link against libm
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


building libgo, I see:

dpkg-shlibdeps: warning: symbol sqrtl used by
debian/libgo0/usr/lib/libgo.so.0.0.0 found in none of the libraries.

so libgo should linked against libm?


[Bug other/46789] New: go configuration with --prefix=/usr pollutes the /usr/lib namespace

2010-12-03 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46789

   Summary: go configuration with --prefix=/usr pollutes the
/usr/lib namespace
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: other
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


[go/libgo components missing in the bug tracker]

with --prefix=/usr libgo pollutes /usr/lib ? is there a recommended way to
install the runtime into something like /usr/lib/go? or /usr/lib/go-version

 - the .gox files maybe should go to /usr/lib/go or
   /usr/lib/go-version, so that you can have parallel
   installations of different GCC versions with the
   same prefix. libjava is doing this too.

 - libgobegin.a maybe should installed into gcc_lib_dir?


[Bug ada/46704] New: ada bootstrap failure on arm-linux-gnueabi

2010-11-29 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

   Summary: ada bootstrap failure on arm-linux-gnueabi
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


trunk 20101116 was the last one to build (with the patch suggested in PR46040),
20101128 fails. both builds done with binutils from the 2.21 branch.

gcc is configured with
 --with-arch=armv7-a
 --with-float=softfp
 --with-fpu=vfpv3-d16
 --with-mode=thumb

gnatgcc -static-libgcc  -o gnat1 ada/b_gnat1.o ada/adadecode.o ada/adaint.o
ada/cstreams.o ada/cio.o ada/targtyps.o ada/decl.o ada/misc.o ada/utils.o
ada/utils2.o ada/trans.o ada/cuintp.o ada/argv.o ada/raise.o ada/init.o
ada/tracebak.o ada/initialize.o ada/env.o ada/a-charac.o ada/a-chlat1.o
ada/a-elchha.o ada/a-except.o ada/a-ioexce.o ada/ada.o ada/ali.o ada/alloc.o
ada/aspects.o ada/atree.o ada/butil.o ada/casing.o ada/checks.o ada/comperr.o
ada/csets.o ada/cstand.o ada/debug.o ada/debug_a.o ada/einfo.o ada/elists.o
ada/err_vars.o ada/errout.o ada/erroutc.o ada/eval_fat.o ada/exp_aggr.o
ada/exp_atag.o ada/exp_attr.o ada/exp_cg.o ada/exp_ch11.o ada/exp_ch12.o
ada/exp_ch13.o ada/exp_ch2.o ada/exp_ch3.o ada/exp_ch4.o ada/exp_ch5.o
ada/exp_ch6.o ada/exp_ch7.o ada/exp_ch8.o ada/exp_ch9.o ada/exp_code.o
ada/exp_dbug.o ada/exp_disp.o ada/exp_dist.o ada/exp_fixd.o ada/exp_imgv.o
ada/exp_intr.o ada/exp_pakd.o ada/exp_prag.o ada/exp_sel.o ada/exp_smem.o
ada/exp_strm.o ada/exp_tss.o ada/exp_util.o ada/exp_vfpt.o ada/expander.o
ada/fmap.o ada/fname-uf.o ada/fname.o ada/freeze.o ada/frontend.o
ada/g-byorma.o ada/g-hesora.o ada/g-htable.o ada/g-spchge.o ada/g-speche.o
ada/g-u3spch.o ada/get_scos.o ada/get_targ.o ada/gnat.o ada/gnatvsn.o ada/hlo.o
ada/hostparm.o ada/impunit.o ada/inline.o ada/interfac.o ada/itypes.o
ada/krunch.o ada/layout.o ada/lib-load.o ada/lib-util.o ada/lib-writ.o
ada/lib-xref.o ada/lib.o ada/live.o ada/namet-sp.o ada/namet.o ada/nlists.o
ada/nmake.o ada/opt.o ada/osint-c.o ada/osint.o ada/output.o ada/par.o
ada/par_sco.o ada/prep.o ada/prepcomp.o ada/put_scos.o ada/repinfo.o
ada/restrict.o ada/rident.o ada/rtsfind.o ada/s-addope.o ada/s-assert.o
ada/s-bitops.o ada/s-carun8.o ada/s-casuti.o ada/s-conca2.o ada/s-conca3.o
ada/s-conca4.o ada/s-conca5.o ada/s-conca6.o ada/s-conca7.o ada/s-conca8.o
ada/s-conca9.o ada/s-crc32.o ada/s-crtl.o ada/s-except.o ada/s-exctab.o
ada/s-htable.o ada/s-imenne.o ada/s-imgenu.o ada/s-mastop.o ada/s-memory.o
ada/s-os_lib.o ada/s-parame.o ada/s-purexc.o ada/s-restri.o ada/s-secsta.o
ada/s-soflin.o ada/s-sopco3.o ada/s-sopco4.o ada/s-sopco5.o ada/s-stache.o
ada/s-stalib.o ada/s-stoele.o ada/s-strcom.o ada/s-strhas.o ada/s-string.o
ada/s-strops.o ada/s-traceb.o ada/s-traent.o ada/s-unstyp.o ada/s-utf_32.o
ada/s-wchcnv.o ada/s-wchcon.o ada/s-wchjis.o ada/scans.o ada/scil_ll.o
ada/scn.o ada/scng.o ada/scos.o ada/sdefault.o ada/seh_init.o ada/sem.o
ada/sem_aggr.o ada/sem_attr.o ada/sem_aux.o ada/sem_case.o ada/sem_cat.o
ada/sem_ch10.o ada/sem_ch11.o ada/sem_ch12.o ada/sem_ch13.o ada/sem_ch2.o
ada/sem_ch3.o ada/sem_ch4.o ada/sem_ch5.o ada/sem_ch6.o ada/sem_ch7.o
ada/sem_ch8.o ada/sem_ch9.o ada/sem_disp.o ada/sem_dist.o ada/sem_elab.o
ada/sem_elim.o ada/sem_eval.o ada/sem_intr.o ada/sem_mech.o ada/sem_prag.o
ada/sem_res.o ada/sem_scil.o ada/sem_smem.o ada/sem_type.o ada/sem_util.o
ada/sem_vfpt.o ada/sem_warn.o ada/sinfo-cn.o ada/sinfo.o ada/sinput-d.o
ada/sinput-l.o ada/sinput.o ada/snames.o ada/sprint.o ada/stand.o ada/stringt.o
ada/style.o ada/styleg.o ada/stylesw.o ada/switch-c.o ada/switch.o ada/system.o
ada/table.o ada/targext.o ada/targparm.o ada/tbuild.o ada/tree_gen.o
ada/tree_in.o ada/tree_io.o ada/treepr.o ada/treeprs.o ada/ttypes.o ada/types.o
ada/uintp.o ada/uname.o ada/urealp.o ada/usage.o ada/validsw.o ada/widechar.o
ada/back_end.o ada/gnat1drv.o prefix.o main.o tree-browser.o libbackend.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a attribs.o ../libcpp/libcpp.a 
 ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lcloog -lppl_c
-lppl -lgmpxx -lmpc -lmpfr -lgmp -rdynamic -ldl  -lz -g -fkeep-inline-functions
ada/a-charac.o:(.debug_aranges+0x6): undefined reference to `.Ldebug_info0'
ada/ada.o:(.debug_aranges+0x6): undefined reference to `.Ldebug_info0'
ada/alloc.o:(.debug_aranges+0x6): undefined reference to `.Ldebug_info0'
ada/g-htable.o:(.debug_aranges+0x6): undefined reference to `.Ldebug_info0'
ada/g-spchge.o:(.debug_aranges+0x6): undefined reference to `.Ldebug_info0'
ada/get_scos.o:(.debug_aranges+0x6): more undefined references to
`.Ldebug_info0' follow
/usr/bin/ld: warning: .init_array section has zero size
/usr/bin/ld: warning: .fini_array section has zero size
collect2: ld returned 1 exit status
make[5]: *** [gnat1] Error 1
make[5]: Leaving directory `/build/buildd/gcc-snapshot-20101128/build/gcc'
make[4]: *** [all-stage1-gcc] 

[Bug target/46040] crtstuff.c:308:26: error: '__DTOR_LIST__' undeclared

2010-11-26 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46040

--- Comment #8 from Matthias Klose doko at ubuntu dot com 2010-11-26 10:32:43 
UTC ---
Looking at Debian/Ubuntu build logs:

- the last sucessful build was 20100918-0ubuntu1.

- 20101004-0ubuntu1 shows an ICE building stage2 libgcc

- 20101004-0ubuntu1 shows an ICE building stage2 libgcc

- 20101009-1 (Debian) shows the ICE

 -20101012-0ubuntu1 is the last one showing this ICE

- 20101016-1 (Debian) shows the CTOR issue

- 20101114-1 shows the current CTOR issue (building stage1 GCC)

Maybe the issue was introduced between 20101012 and 20101016?


[Bug objc/41617] [4.4/4.5/4.6 regression] ObjC: Error: symbol `_OBJC_CLASS_AppController' is already defined

2010-11-23 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41617

Matthias Klose doko at ubuntu dot com changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||FIXED

--- Comment #11 from Matthias Klose doko at ubuntu dot com 2010-11-23 
09:29:59 UTC ---
works on armv5 too, current 4.4 branch and binutils 2.20.1


[Bug target/46040] crtstuff.c:308:26: error: '__DTOR_LIST__' undeclared

2010-11-23 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46040

Matthias Klose doko at ubuntu dot com changed:

   What|Removed |Added

 CC||doko at ubuntu dot com

--- Comment #5 from Matthias Klose doko at ubuntu dot com 2010-11-23 18:18:31 
UTC ---
applying this patch, I see excess errors in every testcase:

/usr/bin/ld: warning: .init_array section has zero size
/usr/bin/ld: warning: .fini_array section has zero size


[Bug objc/41617] [4.4/4.5/4.6 regression] ObjC: Error: symbol `_OBJC_CLASS_AppController' is already defined

2010-11-22 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41617

--- Comment #9 from Matthias Klose doko at ubuntu dot com 2010-11-22 17:56:29 
UTC ---
no, can't see this even with 4.4 now, on a system with binutils 2.21


[Bug bootstrap/46486] New: bootstrap comparision error (libcpp/symtab.o) on powerpc-linux-gnu

2010-11-15 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46486

   Summary: bootstrap comparision error (libcpp/symtab.o) on
powerpc-linux-gnu
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: bootstrap
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: d...@ubuntu.com


seen with trunk 20101114, built on current Debian unstable,

configured for

 --enable-languages=c,ada,c++,fortran,objc,obj-c++
 --prefix=/usr/lib/gcc-snapshot
 --enable-shared
 --enable-multiarch
 --enable-linker-build-id
 --with-system-zlib
 --disable-nls
 --enable-clocale=gnu
 --enable-libstdcxx-debug
 --enable-libstdcxx-time=yes
 --enable-plugin
 --enable-gold
 --with-plugin-ld=ld.gold
 --enable-objc-gc
 --enable-secureplt
 --disable-softfloat
 --enable-targets=powerpc-linux,powerpc64-linux
 --with-cpu=default32
 --with-long-double-128
 --disable-werror
 --enable-checking=yes
 --build=powerpc-linux-gnu
 --host=powerpc-linux-gnu
 --target=powerpc-linux-gnu


make[5]: Leaving directory
`/build/buildd-gcc-snapshot_20101114-1-powerpc-axHIqk/gcc-snapshot-20101114/build'
Comparing stages 2 and 3
warning: gcc/cc1obj-checksum.o differs
warning: gcc/cc1plus-checksum.o differs
warning: gcc/cc1objplus-checksum.o differs
warning: gcc/cc1-checksum.o differs
Bootstrap comparison failure!
libcpp/symtab.o differs
make[4]: *** [compare] Error 1
make[4]: Leaving directory
`/build/buildd-gcc-snapshot_20101114-1-powerpc-axHIqk/gcc-snapshot-20101114/build'
make[3]: *** [stage3-bubble] Error 2
make[3]: Leaving directory
`/build/buildd-gcc-snapshot_20101114-1-powerpc-axHIqk/gcc-snapshot-20101114/build'
make[2]: *** [bootstrap-lean] Error 2

complete build log
https://buildd.debian.org/fetch.cgi?pkg=gcc-snapshot;ver=20101114-1;arch=powerpc;stamp=1289779560


[Bug ada/45394] [4.6 regression] gnat fails to build on s390, trunk 20100918

2010-09-21 Thread doko at ubuntu dot com


--- Comment #3 from doko at ubuntu dot com  2010-09-21 14:59 ---
https://buildd.debian.org/pkg.cgi?pkg=gcc-snapshot

yes, 20100918 still fails to build:


-- 

doko at ubuntu dot com changed:

   What|Removed |Added

 Status|WAITING |UNCONFIRMED
Summary|[4.6 regression] gnat fails |[4.6 regression] gnat fails
   |to build on s390, trunk |to build on s390, trunk
   |20100814|20100918


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45394



[Bug objc/45735] New: ICE in objc_add_method, at objc/objc-act.c:6941

2010-09-20 Thread doko at ubuntu dot com
seen in 4.3, 4.4, 4.5, 4.6, didn't find an existing report:

$ gcc -c Fraction.m
Fraction.m:9:29: error: expected identifier before ':' token
Fraction.m:9:29: internal compiler error: tree check: expected tree that
contains 'decl minimal' structure, have 'error_mark' in objc_add_method, at
objc/objc-act.c:6941
Please submit a full bug report,
with preprocessed source if appropriate.


@interface Fraction {

 int numaretor;
 int denominator;

}
-(void) print;
-(void) setNumaretor: (int) :(int) ;

-(int) numaretor;
-(int) denominator;

@end

@implementation Fraction
-(void) print {
  printf(%i/%i,numaretor,denominator);
 }

-(void) setNumaretor: (int) n: (int) m {
  numaretor = n;
  denominator = m;
 }

-(int) numaretor {
  return numaretor;
 }

-(int) denominator {
  return denominator;
 }

@end


-- 
   Summary: ICE in objc_add_method, at objc/objc-act.c:6941
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: objc
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45735



[Bug c/43082] ICE in tree check: expected class 'type', have 'exceptional' (error_mark) in useless_type_conversion_p

2010-09-20 Thread doko at ubuntu dot com


--- Comment #7 from doko at ubuntu dot com  2010-09-20 18:01 ---
trunk 20100918 fails with:

gcc -g -O0 -c foo.c
foo.c: In function 'main':
foo.c:4:5: error: void value not ignored as it ought to be
foo.c:4:5: error: void value not ignored as it ought to be
foo.c:4:7: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in get_narrower, at tree.c:7856
Please submit a full bug report,
with preprocessed source if appropriate.


-- 

doko at ubuntu dot com changed:

   What|Removed |Added

  Known to fail|4.3.4 4.4.2 4.5.0   |4.3.5 4.4.4 4.5.1 4.6.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43082



[Bug c++/43085] Make profiledbootstrap fails with cc1plus catching SIGSEGV

2010-09-06 Thread doko at ubuntu dot com


--- Comment #4 from doko at ubuntu dot com  2010-09-06 15:56 ---
I can confirm this with 20100902 from the 4.5 branch. the profiled bootstrap
did work with the 4.5.1 release.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43085



[Bug ada/45394] New: [4.6 regression] gnat fails to build on s390, trunk 20100814

2010-08-24 Thread doko at ubuntu dot com
gnat fails to build on s390, trunk 20100814:

/build/buildd-gcc-snapshot_20100814-1-s390-y0XRB7/gcc-snapshot-20100814/build/./gcc/xgcc
-B/build/buildd-gcc-snapshot_20100814-1-s390-y0XRB7/gcc-snapshot-20100814/build/./gcc/
-B/usr/lib/gcc-snapshot/s390-linux-gnu/bin/
-B/usr/lib/gcc-snapshot/s390-linux-gnu/lib/ -isystem
/usr/lib/gcc-snapshot/s390-linux-gnu/include -isystem
/usr/lib/gcc-snapshot/s390-linux-gnu/sys-include-c -g -O2  -fPIC  -W -Wall
-gnatpg   g-comlin.adb -o g-comlin.o

g-comlin.adb: In function 'GNAT.COMMAND_LINE.CURRENT_PARAMETER':
g-comlin.adb:2412:8: error: missing REG_EH_REGION note in the end of bb 29
g-comlin.adb:2412:8: error: in basic block 29:
g-comlin.adb:2412:8: error: flow control insn inside a basic block
(insn 157 155 156 29 (parallel [
(set (mem/s/j:SI (reg/f:SI 80 [ D.6104 ]) [31
D.6104_152-BOUNDS.LB0+0 S4 A32])
(plus:SI (reg/v:SI 59 [
gnat__command_line__current_parameter__B_56__TTpSP1___L ])
(const_int 1 [0x1])))
(clobber (reg:CC 33 %cc))
]) g-comlin.adb:2409 250 {*addsi3}
 (expr_list:REG_UNUSED (reg:CC 33 %cc)
(expr_list:REG_DEAD (reg/v:SI 59 [
gnat__command_line__current_parameter__B_56__TTpSP1___L ])
(expr_list:REG_EH_REGION (const_int 1 [0x1])
(nil)
+===GNAT BUG DETECTED==+
| 4.6.0 20100814 (experimental) [trunk revision 163239] (s390-ibm-linux-gnu)
GCC error:|
| in rtl_verify_flow_info_1, at cfgrtl.c:2030  |
| Error detected around g-comlin.adb:2412:8|
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.|
| Use a subject line meaningful to you and us to track the bug.|
| Include the entire contents of this bug box in the report.   |
| Include the exact gcc or gnatmake command that you entered.  |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files).   |
+==+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

system.ads
g-comlin.adb
g-comlin.ads
gnat.ads
ada.ads
a-comlin.ads
g-dirope.ads
a-string.ads
a-strmap.ads
a-charac.ads
a-chlat1.ads
g-os_lib.ads
s-os_lib.ads
s-string.ads
a-uncdea.ads
g-regexp.ads
s-regexp.ads
a-finali.ads
s-finroo.ads
a-stream.ads
a-unccon.ads
a-strunb.ads
s-exctab.ads
s-stalib.ads
s-unstyp.ads
a-tags.ads
s-stoele.ads
s-stoele.adb
a-except.ads
s-parame.ads
s-traent.ads
s-soflin.ads
s-stache.ads
s-secsta.ads
s-finimp.ads
s-stratt.ads
a-filico.ads


raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:423
make[9]: *** [g-comlin.o] Error 1


-- 
   Summary: [4.6 regression] gnat fails to build on s390, trunk
20100814
   Product: gcc
   Version: 4.6.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com
GCC target triplet: s390-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45394



[Bug ada/45394] [4.6 regression] gnat fails to build on s390, trunk 20100814

2010-08-24 Thread doko at ubuntu dot com


--- Comment #1 from doko at ubuntu dot com  2010-08-24 10:29 ---
seen as well with 20100824


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45394



[Bug plugins/45078] New: config/vxworks-dummy.h not installed as a plugin header on some archs

2010-07-26 Thread doko at ubuntu dot com
dehydra fails to build with the following error:

/usr/bin/gcc-4.5 -MD -g3 -Wall -fPIC -DXP_UNIX -DIN_GCC -DPLUGIN_NO_POISON
-DHAVE_CONFIG_H  -I/usr/lib/gcc/sparc-linux-gnu/4.5.1/plugin/include
-I/usr/include/mozjs -I/usr/lib -I//home/buildd/local/include/js/  -g -O2 -c
dehydra_plugin.c
In file included from
/usr/lib/gcc/sparc-linux-gnu/4.5.1/plugin/include/tm.h:16:0,
 from gcc_cp_headers.h:40,
 from dehydra_plugin.c:28:
/usr/lib/gcc/sparc-linux-gnu/4.5.1/plugin/include/config/sparc/sparc.h:25:34:
fatal error: config/vxworks-dummy.h: No such file or directory

$ fgrep -r vxworks-dummy.h src/gcc/config
src/gcc/config/arm/arm.h:#include config/vxworks-dummy.h
src/gcc/config/i386/i386.h:#include config/vxworks-dummy.h
src/gcc/config/sparc/sparc.h:#include config/vxworks-dummy.h
src/gcc/config/sh/sh.h:#include config/vxworks-dummy.h
src/gcc/config/mips/mips.h:#include config/vxworks-dummy.h

on ix86 this is added to tm_h in config.gcc, and tm_h files are installed as
plugin header files. the file is included on other archs too, but not added to
tm_h.

so either always install it as a plugin header, or add it to tm_h on these
architectures too?


-- 
   Summary: config/vxworks-dummy.h not installed as a plugin header
on some archs
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: plugins
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45078



[Bug c/45079] New: function names in error message (�c_maybe_const_expr� not supported by 'pp_c_expression')

2010-07-26 Thread doko at ubuntu dot com
4.4 doesn't print the function names in the error message, while 4.5 and 4.6 do
so:

$ cat  foo.c
void foo(const char *p, int cond, int a, int b)
{
p[cond ? a : b] = '\0';
}

$ gcc-4.4 -c foo.c
foo.c: In function 'foo':
foo.c:3: error: assignment of read-only location '*(p + (cond != 0 ? (long
unsigned int)(long unsigned int)a : (long unsigned int)(long unsigned int)b))'

$ gcc-4.5 -c foo.c
#'c_maybe_const_expr' not supported by pp_c_expression#) != 0 ? (long unsigned
int)a : (long unsigned int)b) * 1ul))'foo.c: In function 'foo':
foo.c:3:2: error: assignment of read-only location

is the new format expected?


-- 
   Summary: function names in error message
(�c_maybe_const_expr� not supported by
'pp_c_expression')
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45079



[Bug libstdc++/44679] New: [4.5/4.6 regression] 30_threads/condition_variable_any/cons/1.cc fails with -fstack-protector (built with 4.4, run with 4.5)

2010-06-26 Thread doko at ubuntu dot com
building 30_threads/condition_variable_any/cons/1.cc with the 4.4 branch

g++ -fstack-protector -std=c++0x any.cc -o any

and running the binary on a system with the shared libstdc++.so installed from
the 4.5 branch aborts.

#include condition_variable
#include system_error

int main()
{
  bool test __attribute__((unused)) = true;

  try 
{
  std::condition_variable_any c1;
}
  catch (const std::system_error e)
{
  perror(system_error);
  exit(1);
}
  catch (...)
{
  perror(system_error);
  exit(2);
}

  return 0;
}


*** stack smashing detected ***: ./any terminated
=== Backtrace: =
/lib/libc.so.6(__fortify_fail+0x37)[0x7fae2e3c3947]
/lib/libc.so.6(__fortify_fail+0x0)[0x7fae2e3c3910]
./any[0x4009b7]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fae2e2e2d8d]
./any[0x400839]
=== Memory map: 
0040-00401000 r-xp  09:01 8172845   
/scratch/packages/gcc/4.4/u/any
0060-00601000 rw-p  09:01 8172845   
/scratch/packages/gcc/4.4/u/any
00748000-00769000 rw-p  00:00 0  [heap]
7fae2e2c4000-7fae2e43e000 r-xp  09:00 919600
/lib/libc-2.12.so
7fae2e43e000-7fae2e63e000 ---p 0017a000 09:00 919600
/lib/libc-2.12.so
7fae2e63e000-7fae2e642000 r--p 0017a000 09:00 919600
/lib/libc-2.12.so
7fae2e642000-7fae2e643000 rw-p 0017e000 09:00 919600
/lib/libc-2.12.so
7fae2e643000-7fae2e648000 rw-p  00:00 0
7fae2e648000-7fae2e65d000 r-xp  09:00 2888799   
/usr/lib/gcc-snapshot/lib/libgcc_s.so.1
7fae2e65d000-7fae2e85c000 ---p 00015000 09:00 2888799   
/usr/lib/gcc-snapshot/lib/libgcc_s.so.1
7fae2e85c000-7fae2e85d000 rw-p 00014000 09:00 2888799   
/usr/lib/gcc-snapshot/lib/libgcc_s.so.1
7fae2e85d000-7fae2e8df000 r-xp  09:00 922106
/lib/libm-2.12.so
7fae2e8df000-7fae2eade000 ---p 00082000 09:00 922106
/lib/libm-2.12.so
7fae2eade000-7fae2eadf000 r--p 00081000 09:00 922106
/lib/libm-2.12.so
7fae2eadf000-7fae2eae rw-p 00082000 09:00 922106
/lib/libm-2.12.so
7fae2eae-7fae2ebc4000 r-xp  09:00 2888785   
/usr/lib/gcc-snapshot/lib/libstdc++.so.6.0.15
7fae2ebc4000-7fae2edc3000 ---p 000e4000 09:00 2888785   
/usr/lib/gcc-snapshot/lib/libstdc++.so.6.0.15
7fae2edc3000-7fae2edcb000 r--p 000e3000 09:00 2888785   
/usr/lib/gcc-snapshot/lib/libstdc++.so.6.0.15
7fae2edcb000-7fae2edcd000 rw-p 000eb000 09:00 2888785   
/usr/lib/gcc-snapshot/lib/libstdc++.so.6.0.15
7fae2edcd000-7fae2ede2000 rw-p  00:00 0
7fae2ede2000-7fae2ee03000 r-xp  09:00 918062
/lib/ld-2.12.so
7fae2eff3000-7fae2eff8000 rw-p  00:00 0
7fae2f00-7fae2f002000 rw-p  00:00 0
7fae2f002000-7fae2f003000 r--p 0002 09:00 918062
/lib/ld-2.12.so
7fae2f003000-7fae2f004000 rw-p 00021000 09:00 918062
/lib/ld-2.12.so
7fae2f004000-7fae2f005000 rw-p  00:00 0
7fff0acec000-7fff0ad01000 rw-p  00:00 0 
[stack]
7fff0ad9f000-7fff0ada r-xp  00:00 0  [vdso]
ff60-ff601000 r-xp  00:00 0 
[vsyscall]
Aborted


-- 
   Summary: [4.5/4.6 regression]
30_threads/condition_variable_any/cons/1.cc fails with -
fstack-protector (built with 4.4, run with 4.5)
   Product: gcc
   Version: 4.4.5
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44679



[Bug libstdc++/44680] New: [4.5/4.6 regression] regex_traits/char/value.cc built with 4.4, run with 4.5's libstdc++ fails

2010-06-26 Thread doko at ubuntu dot com
the binary built with 4.4 and run with 4.5's libstdc++ shared library fails:

#include tr1/regex
# include cassert
# define VERIFY(fn) assert(fn)

// Tests the value() function of the regex_traitschar class.
void test01()
{
  bool test __attribute__((unused)) = true;
  std::tr1::regex_traitschar t;
  VERIFY( t.value('7', 8)  == 7 );
  VERIFY( t.value('7', 10) == 7 );
  VERIFY( t.value('7', 16) == 7 );
  VERIFY( t.value('9', 8)  == -1 );
  VERIFY( t.value('9', 10) == 9 );
  VERIFY( t.value('9', 16) == 9 );
  VERIFY( t.value('d', 8)  == -1 );
  VERIFY( t.value('d', 10) == -1 );
  VERIFY( t.value('d', 16) == 13 );
}

int
main()
{ 
  test01();
  return 0;
};


FAIL: tr1/7_regular_expressions/regex_traits/char/value.cc execution test

value.exe:
/scratch/packages/gcc/4.4/u/gcc-4.4-4.4.4/src/libstdc++-v3/testsuite/tr1/7_regular_expressions/
regex_traits/char/value.cc:35: void test01(): Assertion `t.value('9', 8) == -1'
failed.

FAIL: tr1/7_regular_expressions/regex_traits/wchar_t/value.cc execution test

value.exe:
/scratch/packages/gcc/4.4/u/gcc-4.4-4.4.4/src/libstdc++-v3/testsuite/tr1/7_regular_expressions/
regex_traits/wchar_t/value.cc:35: void test01(): Assertion `t.value('9', 8) ==
-1' failed.


-- 
   Summary: [4.5/4.6 regression] regex_traits/char/value.cc built
with 4.4, run with 4.5's libstdc++ fails
   Product: gcc
   Version: 4.5.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44680



[Bug target/44624] New: [4.4 regression] wrong code (wrong order) generated with -O2

2010-06-22 Thread doko at ubuntu dot com
[forwarded from https://launchpad.net/bugs/590859]

seen with 4.4 branch and -O2, not -O1, works with 4.3.

When compiling with :
gcc -O2 -c -o proc.o proc.c
The generated code is :
   0x00af +175: movl $0x0,%gs:0x4
   0x00ba +186: lgdtl (%edx)
   0x00bd +189: mov $0x18,%edx
   0x00c2 +194: mov %edx,%gs
   0x00c4 +196: mov %eax,%gs:0x0

When compiling with :
gcc -O1 -c -o proc.o proc.c
   0x00af +175: lgdtl (%edx)
   0x00b2 +178: mov $0x18,%edx
   0x00b7 +183: mov %edx,%gs
   0x00b9 +185: mov %eax,%gs:0x0
   0x00bf +191: movl $0x0,%gs:0x4

The first code is wrong : register GS is used (movl $0x0,%gs:0x4) before
loading the GDT (lgdtl (%edx))


-- 
   Summary: [4.4 regression] wrong code (wrong order) generated with
-O2
   Product: gcc
   Version: 4.4.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com
GCC target triplet: i486-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44624



[Bug target/44624] [4.4 regression] wrong code (wrong order) generated with -O2

2010-06-22 Thread doko at ubuntu dot com


--- Comment #1 from doko at ubuntu dot com  2010-06-22 08:07 ---
Created an attachment (id=20973)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20973action=view)
preprocessed source


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44624



[Bug c++/44625] New: ICE after error: anonymous struct not inside named type

2010-06-22 Thread doko at ubuntu dot com
seen with 4.3, 4.4, 4.5 and trunk:

Starting program: /scratch/packages/gcc/4.4/gcc-4.4-4.4.4/build/gcc/cc1plus
-fpreprocessed ../../Vector3D.ii -quiet -dumpbase Vector3D.ii -mtune=generic
-auxbase Vector3D -version -fpermissive -o /tmp/ccG8KwAM.s
GNU C++ (Debian 4.4.4-6) version 4.4.4 (x86_64-linux-gnu)
compiled by GNU C version 4.4.4, GMP version 4.3.2, MPFR version
2.4.2-p1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 98feda5ccf2f6c27a26b5ced57e2b3dd
In file included from Vector3D.cpp:4:
Vector3D.h: In member function 'VecFP_ VecFP_::operator^=(VecFP_)':
Vector3D.h:112: error: anonymous struct not inside named type
Vector3D.h: In member function 'VecFP_ VecFP_::operator^=(VecFP_) [with
FP_ = double]':
Vector3D.cpp:19:   instantiated from here
Vector3D.h:112: error: anonymous struct not inside named type

Program received signal SIGSEGV, Segmentation fault.
tsubst_copy_and_build (t=0x0, args=0x76112fc0,
complain=tf_warning_or_error, 
in_decl=0x762b2c80, function_p=value optimized out, 
integral_constant_expression_p=value optimized out) at
../../src/gcc/cp/pt.c:11716
11716   if (BASELINK_P (member))
(gdb) p member
$1 = (tree) 0x0


-- 
   Summary: ICE after error: anonymous struct not inside named type
   Product: gcc
   Version: 4.4.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44625



[Bug c++/44625] ICE after error: anonymous struct not inside named type

2010-06-22 Thread doko at ubuntu dot com


--- Comment #1 from doko at ubuntu dot com  2010-06-22 08:36 ---
Created an attachment (id=20974)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20974action=view)
preprocessed source


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44625



[Bug target/44626] New: [4.4 regression] ICE in output_operand: invalid expression as operand

2010-06-22 Thread doko at ubuntu dot com
seen with 4.4 with -O1 -march=armv7-a -mthumb, works with 4.3 and 4.5, work
around in 4.4 with -O0, -O2, or -O1 -marm

$ gcc-4.4 -fno-strict-aliasing -O1 -g -c afs_vnop_link.i 
/home/packages/tmp/openafs-1.4.12.1+dfsg/src/afs/VNOPS/afs_vnop_link.c: In
function 'afs_link':
/home/packages/tmp/openafs-1.4.12.1+dfsg/src/afs/VNOPS/afs_vnop_link.c:164:
internal compiler error: output_operand: invalid expression as operand
Please submit a full bug report,
with preprocessed source if appropriate.


-- 
   Summary: [4.4 regression] ICE in output_operand: invalid
expression as operand
   Product: gcc
   Version: 4.4.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com
GCC target triplet: arm-linux-gnueabi


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44626



[Bug target/44626] [4.4 regression] ICE in output_operand: invalid expression as operand

2010-06-22 Thread doko at ubuntu dot com


--- Comment #1 from doko at ubuntu dot com  2010-06-22 08:57 ---
Created an attachment (id=20975)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20975action=view)
preprocessed source


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44626



[Bug c++/44627] New: ICE in dump_expr, at cp/error.c:1735

2010-06-22 Thread doko at ubuntu dot com
seen with 4.3, 4.4, 4.5, 4.6

class A
{
A * get_a_pointer();
};

template class T
void function()
{
A::get_a_pointer().anything;
}

g++ -c foo.cc 
'
In function 'void function()':
tree check: accessed operand 4 of call_expr with 3 operands in dump_expr, at
cp/error.c:1735
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-snapshot/README.Bugs for instructions.


-- 
   Summary: ICE in dump_expr, at cp/error.c:1735
   Product: gcc
   Version: 4.4.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44627



[Bug c++/44628] New: ICE in cp_build_unary_op at cp/typeck.c:4671

2010-06-22 Thread doko at ubuntu dot com
seen with 4.3 and newer

template typename T
class Temp
{
  int Val;
  public:
  operator T(void)  { return Val; }

  virtual T operator=(T a )
  {
Val = a;
return Val;
  }
};

class Int : public Tempint
{
  public:
  Int operator=(int a)
  {
return (*this);
  }
};


Program received signal SIGSEGV, Segmentation fault.
cp_build_unary_op (code=ADDR_EXPR, xarg=value optimized out, noconvert=value
optimized out, 
complain=3) at ../../src/gcc/cp/typeck.c:4671
4671return error_mark_node;


-- 
   Summary: ICE in cp_build_unary_op at cp/typeck.c:4671
   Product: gcc
   Version: 4.4.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44628



[Bug c++/44629] New: ICE in unify, at cp/pt.c:15155

2010-06-22 Thread doko at ubuntu dot com
seen with 4.3, 4.4, 4.5, 4.6

$ gcc-4.5 -c aclib.ii 
../aclib/aclib.cpp: In function 'void ac_print_dot(acSearcher*)':
../aclib/aclib.cpp:35:61: internal compiler error: in unify, at cp/pt.c:15155
Please submit a full bug report,
with preprocessed source if appropriate.


-- 
   Summary: ICE in unify, at cp/pt.c:15155
   Product: gcc
   Version: 4.4.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44629



[Bug c++/44629] ICE in unify, at cp/pt.c:15155

2010-06-22 Thread doko at ubuntu dot com


--- Comment #1 from doko at ubuntu dot com  2010-06-22 09:57 ---
Created an attachment (id=20976)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20976action=view)
preprocessed source


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44629



[Bug libstdc++/44630] New: profiler_trace.h defines functions __max and __min which causes portability problems

2010-06-22 Thread doko at ubuntu dot com
[forwarded from http://bugs.debian.org/577458]

The problem is that on Windows are defined macros with the names __min and
__max
and if some code uses these macros then conflict occurs with using
_GLIBCXX_PROFILE.


-- 
   Summary: profiler_trace.h defines functions __max and __min which
causes portability problems
   Product: gcc
   Version: 4.4.4
Status: UNCONFIRMED
  Severity: minor
  Priority: P3
 Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44630



[Bug target/44631] New: [sparc] long long to double conversion error

2010-06-22 Thread doko at ubuntu dot com
[forwarded from http://bugs.debian.org/581571]

seen with current 4.3, 4.4, 4.5, trunk

gcc -O0 -mcpu=v9 foo.c  ./a.out prints 2.47804e+17 instead of 9.79798e+16.
works with -mcpu=v8.
same error with gcc -m64 -O0 foo.c  ./a.out

#include stdio.h
int main(void) {
unsigned long long l = 97979797979797980LL;

printf(%g\n, (double)l);
return(0);
}


-- 
   Summary: [sparc] long long to double conversion error
   Product: gcc
   Version: 4.4.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com
GCC target triplet: sparc-linux-gnu sparc64-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44631



[Bug target/44631] [sparc] long long to double conversion error

2010-06-22 Thread doko at ubuntu dot com


--- Comment #2 from doko at ubuntu dot com  2010-06-22 13:53 ---
yes, gcc -mcpu=v9 and gcc -m64 work both with -O1 and -O1 -ffast-math.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44631



[Bug target/44632] New: [4.4/4.5/4.6 regression] wrong code for complex division

2010-06-22 Thread doko at ubuntu dot com
[forwarded from http://bugs.debian.org/585925]

seen with current 4.5 and 4.5 branches, and trunk

g++-4.4 miscompiles complex division:

(sid)jw...@paer:~$ cat test.cxx 
#include complex
#include iostream

void f(std::complexdouble x)
{
 std::cout  x  std::endl;
 x = 1.0 / x;
 std::cout  x  std::endl;
}

int main()
{
 f(2.0);
}

(sid)jw...@paer:~$ g++-4.3 -Wall test.cxx  ./a.out
(2,0)
(0.5,0)

(sid)jw...@paer:~$ g++-4.4 -Wall test.cxx  ./a.out
(2,0)
(1,0)


-- 
   Summary: [4.4/4.5/4.6 regression] wrong code for complex division
   Product: gcc
   Version: 4.4.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com
GCC target triplet: hppa-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44632



[Bug target/44634] New: [4.4 regression] ICE in change_address_1, at emit-rtl.c:1954

2010-06-22 Thread doko at ubuntu dot com
[forwarded from http://bugs.debian.org/566242]

works with -O0, or with -mcpu=v8/v9. not seen in 4.3, 4.5 and the trunk

$ gcc-4.4 -mcpu=ultrasparc -c -std=c99 -O1 -fPIC cpu_stats.i
Cudd/util/cpu_stats.c: In function 'util_print_cpu_stats':
Cudd/util/cpu_stats.c:33: warning: implicit declaration of function
'gethostname'
Cudd/util/cpu_stats.c:40: warning: implicit declaration of function 'sbrk'
Cudd/util/cpu_stats.c:89: internal compiler error: in change_address_1, at
emit-rtl.c:1954
Please submit a full bug report,
with preprocessed source if appropriate.


-- 
   Summary: [4.4 regression] ICE in change_address_1, at emit-
rtl.c:1954
   Product: gcc
   Version: 4.4.4
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: doko at ubuntu dot com
GCC target triplet: sparc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44634



[Bug target/44634] [4.4 regression] ICE in change_address_1, at emit-rtl.c:1954

2010-06-22 Thread doko at ubuntu dot com


--- Comment #1 from doko at ubuntu dot com  2010-06-22 14:42 ---
Created an attachment (id=20981)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20981action=view)
preprocessed source


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44634



  1   2   3   4   >