[Bug c/8268] no compile time array index checking

2007-01-16 Thread dcb314 at hotmail dot com


--- Comment #41 from dcb314 at hotmail dot com  2007-01-16 21:18 ---
(In reply to comment #40)
 I've a patch, which is currently blocked by -fivopts bug

Still blocked ?


-- 


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



[Bug bootstrap/30136] bootstrap fail for 4.3-20061209

2007-01-17 Thread dcb314 at hotmail dot com


--- Comment #6 from dcb314 at hotmail dot com  2007-01-17 12:14 ---
(In reply to comment #5)
 I can confirm this problem on recent snapshots as well (20070105 and 
 20070112).

Agreed.

Snapshot 20010112 goes wrong and it's definately the flag
--with-cpu=opteron that causes the trouble.

Looks like a broken machine description to me, but I could
be wrong.


-- 


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



[Bug c++/30490] New: Segmentation fault for legal code with -O2

2007-01-17 Thread dcb314 at hotmail dot com
I just tried to compile package FlightGear-0.9.10-40
with the GNU C++ compiler version 4.3 snapshot 20070112.

The compiler said

replay.cxx: In function 'FGReplayData interpolate(double, FGReplayData,
FGReplayData)':
replay.cxx:224: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Here is some help from valgrind

==7400== Invalid read of size 8
==7400==at 0x5C731A: finalize_ssa_vuses (tree-ssa-operands.c:553)
==7400==by 0x5C8047: finalize_ssa_stmt_operands (tree-ssa-operands.c:1169)
==7400==by 0x5C8D3D: update_stmt_operands (tree-ssa-operands.c:2357)
==7400==by 0x5D20C4: compute_may_aliases (tree-flow-inline.h:388)
==7400==by 0x905CC4: execute_one_pass (passes.c:951)
==7400==by 0x905EFB: execute_pass_list (passes.c:999)
==7400==by 0x905F0D: execute_pass_list (passes.c:1000)
==7400==by 0x58D0D1: tree_rest_of_compilation (tree-optimize.c:543)
==7400==by 0x4F0317: expand_body (semantics.c:3095)
==7400==by 0x95EF41: cgraph_expand_function (cgraphunit.c:989)
==7400==by 0x960F75: cgraph_optimize (cgraphunit.c:1052)
==7400==by 0x4924D4: cp_write_global_declarations (decl2.c:3347)
==7400==  Address 0xAFAFAFAFAFAFAFAF is not stack'd, malloc'd or (recently)
free'd

Preprocessed source code attached. Flag -O2 required.


-- 
   Summary: Segmentation fault for legal code with -O2
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c++/30490] Segmentation fault for legal code with -O2

2007-01-17 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-01-17 12:17 ---
Created an attachment (id=12914)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12914action=view)
gzipped C++ source code


-- 


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



[Bug c++/30509] New: ice for legal code with -O3

2007-01-19 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package hydrogen-0.9.3-41
with the GNU C++ compiler version 4.3 snapshot 20070112.

The compiler said

src/lib/Object.cpp:306: internal compiler error: in calc_dfs_tree, at
dominance.c:374
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flag -O3 required.


-- 
   Summary: ice for legal code with -O3
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c++/30509] ice for legal code with -O3

2007-01-19 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-01-19 13:54 ---
Created an attachment (id=12923)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12923action=view)
C++ source code


-- 


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



[Bug middle-end/30333] [4.3 Regression] Segmentation fault for -O2 on legal code

2007-01-22 Thread dcb314 at hotmail dot com


--- Comment #3 from dcb314 at hotmail dot com  2007-01-22 15:51 ---
(In reply to comment #2)
 I think this was already fixed a while back.
 Can you try again?

I tried again, and it seems fixed to me.


-- 


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



[Bug c/30559] New: compiler loops forever with flag -O3

2007-01-23 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package libnasl-2.2.6-40
with the new GNU C compiler version 4.3 snapshot 20070119.

I used compiler flag -O3. The compiler appeared to hang
for more than 30 minutes when compiling source code file regex.c.

I tried compiling the same file with the same compiler and
flag -O2 and the compiler took 5 seconds.

I tried compiling the same file with gcc 4.1.2 and flag -O3
and that compiler took 2.3 seconds.

I checked the memory usage of the 20070119 compiler and
it was about 40Megs on an idle system with 512Meg of RAM 
fitted.

Preprocessed source code attached. Flag -O3 required.


-- 
   Summary: compiler loops forever with flag -O3
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/30559] compiler loops forever with flag -O3

2007-01-23 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-01-23 16:13 ---
Created an attachment (id=12938)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12938action=view)
C source code


-- 


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



[Bug c++/30562] New: ice for legal code with -O2

2007-01-23 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package limal-ca-mgm-1.2.9-14
with the GNU C++ compiler version 4.3 snapshot 20070119.

The compiler said

/usr/include/blocxx/List.hpp: In member function 'void
blocxx4::ListT::push_back(const T) [with T = blocxx4::String]':
/usr/include/blocxx/List.hpp:362: internal compiler error: in
referenced_var_lookup, at tree-dfa.c:626
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flag -O2 required.


-- 
   Summary: ice for legal code with -O2
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c++/30562] ice for legal code with -O2

2007-01-23 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-01-23 20:55 ---
Created an attachment (id=12939)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12939action=view)
C++ source code


-- 


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



[Bug c/30563] New: ice for legal code with flags -O2 -fno-unit-at-a-time

2007-01-23 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package lsvpd-0.16.0-35
with the GNU C compiler version 4.3 snapshot 20070119.

The compiler said

cc -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-unit-at-a-time -I../lib  
-c -o node_handler.o node_handler.c
node_handler.c:213: error: inlined_to pointer is set but no predecessors found
call_inits/151(-1): (inline copy in main/144) availability:available(93) 19
insns tree finalized inlinable
  called by:
  calls:
node_handler.c:213: internal compiler error: verify_cgraph_node failed
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flags -O2 -fno-unit-at-a-time required.


-- 
   Summary: ice for legal code with flags -O2 -fno-unit-at-a-time
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/30563] ice for legal code with flags -O2 -fno-unit-at-a-time

2007-01-23 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-01-23 20:57 ---
Created an attachment (id=12940)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12940action=view)
C source code


-- 


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



[Bug c/30564] New: ice for legal code with -O3

2007-01-23 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package lynx-2.8.6_rel2-23
with the GNU C compiler version 4.3 snapshot 20070119.

The compiler said

gcc -DLINUX  -D_GNU_SOURCE -DHAVE_CONFIG_H -I../.. -I../../src
-I../../src/chrtrans -I../../WWW/Library/Implementation -I../../   -O3
-fmessage-length=0 -D_FORTIFY_SOURCE=2 -pipe   -c ./makeuctb.c
./makeuctb.c: In function 'main':
./makeuctb.c:253: internal compiler error: in extract_range_from_assert, at
tree-vrp.c:820
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flag -O3 required.


-- 
   Summary: ice for legal code with -O3
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/30564] ice for legal code with -O3

2007-01-23 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-01-23 21:00 ---
Created an attachment (id=12941)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12941action=view)
C source code


-- 


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



[Bug c/30559] compiler loops forever with flag -O3

2007-01-27 Thread dcb314 at hotmail dot com


--- Comment #3 from dcb314 at hotmail dot com  2007-01-27 22:12 ---
(In reply to comment #2)
 This should be fixed with
 http://gcc.gnu.org/ml/gcc-patches/2007-01/msg01728.html I think.

I suspect not.

The snapshot 20070126 still seems to have the problem.


-- 


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



[Bug tree-optimization/30559] [4.3 Regression] compiler loops forever with flag -O3

2007-02-05 Thread dcb314 at hotmail dot com


--- Comment #6 from dcb314 at hotmail dot com  2007-02-05 17:44 ---
(In reply to comment #5)
 Can you try after:
 http://gcc.gnu.org/viewcvs?root=gccview=revrev=121295

The snapshot 20070202 seems fixed to me.


-- 


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



[Bug c++/30771] New: ice for legal code with -O2 -ftree-vectorize

2007-02-12 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package ladspa-1.12.code10-56
with the GNU C++ compiler version 4.3 snapshot 20070209.

The compiler said

Descriptor.h: In static member function 'static void*
DescriptorT::_instantiate(const _LADSPA_Descriptor*, ulong) [with T =
CabinetII]':
Descriptor.h:117: internal compiler error: in vectorizable_type_promotion, at
tree-vect-transform.c:2601
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flags -ftree-vectorize -O2 required.


-- 
   Summary: ice for legal code with -O2 -ftree-vectorize
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c++/30771] ice for legal code with -O2 -ftree-vectorize

2007-02-12 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-02-12 08:53 ---
Created an attachment (id=13038)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13038action=view)
C++ source code


-- 


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



[Bug c/30772] New: ice for legal code with -fno-unit-at-a-time -O2

2007-02-12 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package lsvpd-0.16.0-36
with the GNU C++ compiler version 4.3 snapshot 20070209.

The compiler said

In file included from node.c:31:
/usr/include/stdlib.h: In function 'atof':
/usr/include/stdlib.h:400: internal compiler error: in optimize_inline_calls,
at tree-inline.c:2808
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flags -fno-unit-at-a-time -O2 required.


-- 
   Summary: ice for legal code with -fno-unit-at-a-time -O2
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/30772] ice for legal code with -fno-unit-at-a-time -O2

2007-02-12 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-02-12 08:55 ---
Created an attachment (id=13039)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13039action=view)
C source code


-- 


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



[Bug c/30795] New: ice for legal code with -ftree-vectorize -O2

2007-02-14 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package MozillaThunderbird-1.5.0.8-7
with the GNU C++ compiler version 4.3 snapshot 20070209.

The compiler said

blocksort.c: In function 'mainSort':
blocksort.c:805: internal compiler error: in vect_get_vec_def_for_stmt_copy, at
tree-vect-transform.c:901
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flags -ftree-vectorize -O2 required.


-- 
   Summary: ice for legal code with -ftree-vectorize -O2
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/30795] ice for legal code with -ftree-vectorize -O2

2007-02-14 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-02-14 18:48 ---
Created an attachment (id=13051)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13051action=view)
C source code


-- 


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



[Bug c++/30839] New: tree check fail for legal code

2007-02-18 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package ruby-zypp-0.1-44
with the GNU C++ compiler version 4.3 snapshot 20070216.

The compiler said

/usr/include/boost/regex/v4/perl_matcher_non_recursive.hpp:190: internal
compiler error: tree check: expected tree_list, have function_decl in
build_call, at cp/call.c:331
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. No flags required.


-- 
   Summary: tree check fail for legal code
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c++/30839] tree check fail for legal code

2007-02-18 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-02-18 11:26 ---
Created an attachment (id=13062)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13062action=view)
gzipped C++ source code


-- 


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



[Bug c++/30840] New: ice for legal code with flags -O3 -fno-strict-aliasing

2007-02-18 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package rxvt-unicode-8.1-3
with the GNU C++ compiler version 4.3 snapshot 20070216.

The compiler said

screen.C: In member function 'void rxvt_term::scr_reset()':
screen.C:160: internal compiler error: in set_lattice_value, at
tree-ssa-ccp.c:487
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flags -O3 -fno-strict-aliasing required.


-- 
   Summary: ice for legal code with flags -O3 -fno-strict-aliasing
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c++/30840] ice for legal code with flags -O3 -fno-strict-aliasing

2007-02-18 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-02-18 11:28 ---
Created an attachment (id=13063)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13063action=view)
C++ source code


-- 


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



[Bug c/30843] New: ice for legal code with -ftree-vectorize -O2

2007-02-18 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package sane-backends-1.0.18-5
with the GNU C++ compiler version 4.3 snapshot 20070216.

The compiler said

plustek-pp_dac.c: In function 'dacP98WaitForShading':
plustek-pp_dac.c:780: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Here is some output from valgrind

==17180== Invalid read of size 8
==17180==at 0x674ADB: bsi_for_stmt (tree-flow-inline.h:744)
==17180==by 0x9C3DFC: vect_get_vec_def_for_operand
(tree-vect-transform.c:638)
==17180==by 0x9C6520: vectorizable_store (tree-vect-transform.c:3210)
==17180==by 0x9CC6BB: vect_transform_loop (tree-vect-transform.c:4270)
==17180==by 0x775216: vectorize_loops (tree-vectorizer.c:2187)
==17180==by 0x5F9060: execute_one_pass (passes.c:1055)
==17180==by 0x5F921B: execute_pass_list (passes.c:1107)
==17180==by 0x5F922D: execute_pass_list (passes.c:1108)
==17180==by 0x5F922D: execute_pass_list (passes.c:1108)
==17180==by 0x6B73A6: tree_rest_of_compilation (tree-optimize.c:412)
==17180==by 0x40AADB: c_expand_body (c-decl.c:6842)
==17180==by 0x7ED120: cgraph_expand_function (cgraphunit.c:1008)
==17180==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

Preprocessed source code attached. Flags -ftree-vectorize -O2 required.


-- 
   Summary: ice for legal code with -ftree-vectorize -O2
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_suse-linux


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



[Bug c/30843] ice for legal code with -ftree-vectorize -O2

2007-02-18 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-02-18 16:58 ---
Created an attachment (id=13064)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13064action=view)
C source code


-- 


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



[Bug c/30846] New: ice for legal code with -O2

2007-02-18 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package snd-8.8-2
with the GNU C++ compiler version 4.3 snapshot 20070216.

The compiler said

clm2xen.c: In function 'g_edot_product':
clm2xen.c:7351: internal compiler error: in sra_build_assignment, at
tree-sra.c:1733
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flag -O2 required.


-- 
   Summary: ice for legal code with -O2
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/30846] ice for legal code with -O2

2007-02-18 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-02-18 21:52 ---
Created an attachment (id=13067)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13067action=view)
C source code


-- 


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



[Bug c/30858] New: ice for legal code with -O2 -ftree-vectorize

2007-02-19 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package timidity-2.13.2-60
with the GNU C++ compiler version 4.3 snapshot 20070216.

The compiler said

ncurs_c.c:1196: internal compiler error: in get_initial_def_for_reduction, at
tree-vect-transform.c:1036
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flags -O2 -ftree-vectorize required.

On the wider issue of the quality of the vectorizer, I
have thrown most of Suse Linux 10.3 at it and it has crashed
in a few places.

I suspect there would be considerable value at getting some
other distribution [ Debian ?], maybe on another type of 
machine [ PPC64 ?], and flushing out a few more bugs in the optimizer.

You would need to ensure that -ftree-vectorize was switched
on for every compile.

Just a suggestion.


-- 
   Summary: ice for legal code with -O2 -ftree-vectorize
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/30858] ice for legal code with -O2 -ftree-vectorize

2007-02-19 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-02-19 11:59 ---
Created an attachment (id=13069)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13069action=view)
C source code


-- 


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



[Bug c++/30864] New: ice for legal code with -O3

2007-02-19 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package vym-1.8.1-39
with the GNU C++ compiler version 4.3 snapshot 20070216.

The compiler said

main.cpp: In function 'void __tcf_8(void*)':
main.cpp:123: internal compiler error: in alloc_aux_for_block, at cfg.c:665
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flag -O3 required.


-- 
   Summary: ice for legal code with -O3
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c++/30864] ice for legal code with -O3

2007-02-19 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-02-19 20:45 ---
Created an attachment (id=13070)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13070action=view)
gzipped C++ source code


-- 


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



[Bug tree-optimization/30858] [4.3 Regression] ice for legal code with -O2 -ftree-vectorize

2007-02-21 Thread dcb314 at hotmail dot com


--- Comment #7 from dcb314 at hotmail dot com  2007-02-21 12:17 ---
(In reply to comment #6)
 proposed patches - http://gcc.gnu.org/ml/gcc-patches/2007-02/msg01734.html

 would you mind giving these patches a try? (to see what's the next ICE...?)

If the patches have been applied to gcc mainstream,
then they will appear in the next 4.3 snapshot, due 23 Feb,
and so I will test them then.

Is this acceptable ?


-- 


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



[Bug c/30958] New: ice for legal code with -ftree-vectorize -Os -mno-sse

2007-02-25 Thread dcb314 at hotmail dot com
I just tried to compile Linux kernel 2.6.20.1
with the GNU C++ compiler version 4.3 snapshot 20070223.

The compiler said

drivers/media/video/pwc/pwc-dec23.c: In function 'pwc_dec23_init':
drivers/media/video/pwc/pwc-dec23.c:305: error: invalid reference prefix
{63368}

drivers/media/video/pwc/pwc-dec23.c:305: error: invalid reference prefix
{63368}

drivers/media/video/pwc/pwc-dec23.c:305: error: invalid reference prefix
{63368}

drivers/media/video/pwc/pwc-dec23.c:305: error: invalid reference prefix
{63368}

drivers/media/video/pwc/pwc-dec23.c:305: internal compiler error: verify_stmts
failed
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flags -ftree-vectorize -Os -mno-sse
required.


-- 
   Summary: ice for legal code with -ftree-vectorize -Os -mno-sse
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/30958] ice for legal code with -ftree-vectorize -Os -mno-sse

2007-02-25 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-02-25 12:35 ---
Created an attachment (id=13106)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13106action=view)
C source code


-- 


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



[Bug c/20459] Warning for variables that are set but not used

2007-03-02 Thread dcb314 at hotmail dot com


--- Comment #3 from dcb314 at hotmail dot com  2007-03-02 09:07 ---
(In reply to comment #1)
 Created an attachment (id=8382)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8382action=view) [edit]
 A patch that implements this feature (with some false positives)

For fun, I tried out your patch on gcc 4.3

It doesn't seem to patch and bootstrap ok anymore.

Does the patch need some work to remain up to date ?


-- 

dcb314 at hotmail dot com changed:

   What|Removed |Added

 CC||dcb314 at hotmail dot com


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



[Bug c/31041] New: ice for legal code with -O2 -ftree-vectorize

2007-03-05 Thread dcb314 at hotmail dot com
I just tried to compile a Suse Linux package 
with the GNU C++ compiler version 4.3 snapshot 20070302.

The compiler said

utrie.c: In function 'utrie_open_3_4':
utrie.c:51: error: invalid operand to binary operator
(int) j_93;

utrie.c:51: error: incorrect sharing of tree nodes
vect_cst_.1224_132 = {(int) j_93, stmp_var_.1221_129, stmp_var_.1222_130,
stmp_var_.1223_131};

(int) j_93;

utrie.c:51: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flags -O2 -ftree-vectorize required.


-- 
   Summary: ice for legal code with -O2 -ftree-vectorize
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/31041] ice for legal code with -O2 -ftree-vectorize

2007-03-05 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-03-05 10:50 ---
Created an attachment (id=13144)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13144action=view)
C source code


-- 


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



[Bug c++/31080] New: ice for legal code with -O2

2007-03-08 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package opensp-1.5.1-120
with the GNU C++ compiler version 4.3 snapshot 20070302.

The compiler said

URLStorage.cxx: In member function 'OpenSP::HTTP_RESPONSE_TYPE
OpenSP::HttpSocketStorageObject::readHeader(OpenSP::Messenger, char*)':
URLStorage.cxx:601: error: definition in block 74 does not dominate use in
block 77
for SSA_NAME: NMT.1285_487 in statement:
NMT.1285_354 = PHI NMT.1285_485(ab)(69), NMT.1285_487(77), NMT.1285_487(78),
NMT.1285_485(ab)(68), NMT.1285_485(ab)(71), NMT.1285_487(74)
PHI argument
NMT.1285_487
for PHI node
NMT.1285_354 = PHI NMT.1285_485(ab)(69), NMT.1285_487(77), NMT.1285_487(78),
NMT.1285_485(ab)(68), NMT.1285_485(ab)(71), NMT.1285_487(74)
URLStorage.cxx:601: internal compiler error: verify_ssa failed
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.


Preprocessed source code attached. Flag -O2 required.


-- 
   Summary: ice for legal code with -O2
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c++/31080] ice for legal code with -O2

2007-03-08 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-03-08 12:11 ---
Created an attachment (id=13170)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13170action=view)
C++ source code


-- 


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



[Bug c/31135] New: ice for legal code with -O3

2007-03-11 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package rasmol-2.7.3.1-44
with the GNU C++ compiler version 4.3 snapshot 20070309.

The compiler said

repres.c: In function 'InitialiseRepres':
repres.c:1638: internal compiler error: in cse_find_path, at cse.c:5930
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flag -O3 required.


-- 
   Summary: ice for legal code with -O3
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/31135] ice for legal code with -O3

2007-03-11 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-03-11 16:19 ---
Created an attachment (id=13190)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13190action=view)
C source code


-- 


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



[Bug c/31254] New: ice for legal code with -O2

2007-03-18 Thread dcb314 at hotmail dot com
I just tried to compile recent Linux kernel 2.6.20.3
with GNU C compiler 4.3 snapshot 20070316.

The compiler said

fs/afs/inode.c: In function 'afs_inode_map_status':
fs/afs/inode.c:286: error: type mismatch between an SSA_NAME and its symbol
fs/afs/inode.c:286: error: in statement
vnode_2(D)-vfs_inode.i_mtime = inode_4-i_ctime;
fs/afs/inode.c:286: internal compiler error: verify_ssa failed
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.
make[2]: *** [fs/afs/inode.o] Error 1
make[1]: *** [fs/afs] Error 2
make: *** [fs] Error 2

Preprocessed source code attached. Flag -O2 required.


-- 
   Summary: ice for legal code with -O2
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/31254] ice for legal code with -O2

2007-03-18 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-03-18 10:02 ---
Created an attachment (id=13224)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13224action=view)
C source code


-- 


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



[Bug c/31654] New: Linux kernel fails to compile

2007-04-22 Thread dcb314 at hotmail dot com
Hello there,

I just tried to compile Linux kernel 2.6.20.7 with the 
GNU C compiler 4.3 snapshot 20070420.

It said

drivers/w1/w1.c: In function 'w1_slave_read_id':
drivers/w1/w1.c:118: error: cannot take address of bit-field 'family'
drivers/w1/w1.c:118: error: cannot take address of bit-field 'family'
drivers/w1/w1.c:118: error: cannot take address of bit-field 'family'
drivers/w1/w1.c:118: error: cannot take address of bit-field 'family'
drivers/w1/w1.c:118: error: cannot take address of bit-field 'family'
drivers/w1/w1.c:118: error: cannot take address of bit-field 'family'

The code compiled fine under snapshot 20070406
and gcc 4.1.2 and it looks fine to me.

Preprocessed source code attached.


-- 
   Summary: Linux kernel fails to compile
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: x86_64-suse-linux


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



[Bug c/31654] Linux kernel fails to compile

2007-04-22 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-04-22 09:08 ---
Created an attachment (id=13414)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13414action=view)
C source code


-- 


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



[Bug c/31962] New: ice for legal code with -Wall -O2

2007-05-16 Thread dcb314 at hotmail dot com
I just tried to compile Suse Linux package icecream-0.7.14a-5 with the GNU C 
compiler version 4.3 snapshot 20070511

The compiler said

minilzo.c: In function '_lzo_config_check':
minilzo.c:2162: internal compiler error: tree check: expected tree that
contains 'decl common' structure, have 'struct_field_tag' in ffan_walker, at
tree-ssa-alias-warnings.c:638
Please submit a full bug report,
with preprocessed source if appropriate.
See URL:http://gcc.gnu.org/bugs.html for instructions.

Pre-processed source code attached. Flags -Wall -O2 required.


-- 
   Summary: ice for legal code with -Wall -O2
   Product: gcc
   Version: 4.3.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: suse-linux-x86_64


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



[Bug c/31962] ice for legal code with -Wall -O2

2007-05-16 Thread dcb314 at hotmail dot com


--- Comment #1 from dcb314 at hotmail dot com  2007-05-16 19:34 ---
Created an attachment (id=13565)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13565action=view)
C source code


-- 


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



[Bug tree-optimization/55260] [4.8 Regression] ICE: in ipa_get_parm_lattices, at ipa-cp.c:263 with -O2 -fno-inline -fipa-cp-clone

2012-11-11 Thread dcb314 at hotmail dot com


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



David Binderman dcb314 at hotmail dot com changed:



   What|Removed |Added



 CC||dcb314 at hotmail dot com



--- Comment #1 from David Binderman dcb314 at hotmail dot com 2012-11-11 
10:32:16 UTC ---

This seems to have broken sometime between 7 Nov and 11 Nov.


[Bug rtl-optimization/55330] [4.8 Regression] ICE: Maximum number of LRA constraint passes is achieved (15) on gfortran.dg/actual_array_constructor_1.f90

2012-11-16 Thread dcb314 at hotmail dot com


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



David Binderman dcb314 at hotmail dot com changed:



   What|Removed |Added



 CC||dcb314 at hotmail dot com



--- Comment #2 from David Binderman dcb314 at hotmail dot com 2012-11-16 
09:13:53 UTC ---

(In reply to comment #1)

 I don't see it on x86_64-apple-darwin10 (revisions 193495+patches and 193329).



Looks like a duplicate of 55122.


[Bug c/55350] New: verify_gimple failed with invalid (pointer) operands to plus/minus

2012-11-16 Thread dcb314 at hotmail dot com

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

 Bug #: 55350
   Summary: verify_gimple failed with invalid (pointer) operands
to plus/minus
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dcb...@hotmail.com


Created attachment 28706
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28706
C source code

I just tried to compile the package gcl-2.6.8-0.11.20120705cvs
on gcc-4.8 trunk dated 2012 on an AMD x86_64 box.

The compiler said

bug91.c: In function ‘intern’:
bug91.c:11585:1: error: invalid (pointer) operands to plus/minus
 intern(st, p)
 ^
_856 = _847 + 8B;

bug91.c:11585:1: error: invalid (pointer) operands to plus/minus
_865 = _856 + 8B;

bug91.c:11585:1: error: invalid (pointer) operands to plus/minus
_874 = _865 + 8B;

bug91.c:11585:1: error: invalid (pointer) operands to plus/minus
_143 = _874 + 8B;

bug91.c:11585:1: internal compiler error: verify_gimple failed
0x90ed8b verify_gimple_in_cfg(function*)
../../src/trunk/gcc/tree-cfg.c:4728
0x84de57 execute_function_todo
../../src/trunk/gcc/passes.c:1975
0x84e897 execute_todo
../../src/trunk/gcc/passes.c:2008
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flag -O3 required.


[Bug c++/55632] New: trunk/gcc/cp/decl.c:10614: strange line of code

2012-12-09 Thread dcb314 at hotmail dot com


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



 Bug #: 55632

   Summary: trunk/gcc/cp/decl.c:10614: strange line of code

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: minor

  Priority: P3

 Component: c++

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com





The line of code in question is



/* Record presence of `static'.  */

publicp = (ctype != NULL_TREE

   || storage_class == sc_extern

   || storage_class != sc_static);



This might be better as 



/* Record presence of `static'.  */

publicp = (ctype != NULL_TREE

   || storage_class != sc_static);



But then the code and the comment don't match up.

Suggest code rework.


[Bug c/55697] New: Another ice in remove_redundant_iv_tests

2012-12-14 Thread dcb314 at hotmail dot com


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



 Bug #: 55697

   Summary: Another ice in remove_redundant_iv_tests

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: c

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com





Created attachment 28969

  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28969

C source code



I just tried to compile the package freetds-0.91-5

on gcc-4.8 trunk dated 20121212 on an AMD x86_64 box.



The compiler said



convert.c: In function 'string_to_numeric':

convert.c:1939:1: internal compiler error: in remove_redundant_iv_tests, at

tree-ssa-loop-ivcanon.c:559

 string_to_numeric(const char *instr, const char *pend, CONV_RESULT * cr)

 ^

0xd62045 remove_redundant_iv_tests

../../src/trunk/gcc/tree-ssa-loop-ivcanon.c:559

0xd62045 canonicalize_loop_induction_variables

../../src/trunk/gcc/tree-ssa-loop-ivcanon.c:951

0xd63018 tree_unroll_loops_completely(bool, bool)

../../src/trunk/gcc/tree-ssa-loop-ivcanon.c:1122

0x9e8922 tree_complete_unroll_inner

../../src/trunk/gcc/tree-ssa-loop.c:509

Please submit a full bug report,

with preprocessed source if appropriate.

Please include the complete backtrace with any bug report.

See http://gcc.gnu.org/bugs.html for instructions.



Preprocessed source code attached. Flag -O3 required.

This looks like a different bug report to # 55208.


[Bug c/55791] New: gcc fails to detect wrong type in sizeof in malloc

2012-12-22 Thread dcb314 at hotmail dot com


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



 Bug #: 55791

   Summary: gcc fails to detect wrong type in sizeof in malloc

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: c

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com





Given the following code, culled from customer code,



# include stdlib.h



extern void g(char *);



void f()

{

char *p;



// wrong type in sizeof in malloc

p = (char *) malloc( 10 * sizeof( char *));



g(p);

}



gcc can't detect that the malloc line should be something closer to



p = (char *) malloc( 10 * sizeof( char));



i.e. the type in the sizeof expression must be the same as (or 

at very least the same size as) the type of destination buffer.


[Bug c++/55823] New: ice in inline_call, at ipa-inline-transform.c:270

2012-12-28 Thread dcb314 at hotmail dot com


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



 Bug #: 55823

   Summary: ice in inline_call, at ipa-inline-transform.c:270

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: c++

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com





Created attachment 29056

  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=29056

gzipped C source code



I just tried to compile the package audacity-2.0.2-2

on gcc-4.8 trunk dated 20121227 on an AMD x86_64 box.



The compiler said



widgets/AButton.cpp:395:1: internal compiler error: in inline_call, at

ipa-inline-transform.c:270

 }

 ^

0xec3fc4 inline_call(cgraph_edge*, bool, veccgraph_edge*, va_heap, vl_ptr*,

int*, bool)

../../src/trunk/gcc/ipa-inline-transform.c:266

0xec356a inline_small_functions

../../src/trunk/gcc/ipa-inline.c:1614

0xec356a ipa_inline

../../src/trunk/gcc/ipa-inline.c:1795

Please submit a full bug report,

with preprocessed source if appropriate.

Please include the complete backtrace with any bug report.

See http://gcc.gnu.org/bugs.html for instructions.





Preprocessed source code attached. Flag -O3 required.



This might be related to bug # 55683


[Bug middle-end/51544] uninitialized variable false positive prevents bootstrap with -fipa-cp-clone

2013-01-31 Thread dcb314 at hotmail dot com

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

David Binderman dcb314 at hotmail dot com changed:

   What|Removed |Added

 CC||dcb314 at hotmail dot com

--- Comment #3 from David Binderman dcb314 at hotmail dot com 2013-01-31 
18:03:04 UTC ---
I think I may be seeing something similar.

I've been trying to bootstrap using -g -O3 in BOOT_CFLAGS. 
That doesn't work, but -g -O2 of course does.

After trying out all the flags individually that
make the difference from -O2 to -O3, it is the -fipa-cp-clone
flag that is the only one that breaks bootstrap. The rest of 
the flags are fine.

On trunk snapshot of 20130130, I get

../../src/trunk/gcc/c/c-parser.c: In function ‘c_expr
c_parser_postfix_expression_after_primary(c_parser*, location_t, c_expr)’:
../../src/trunk/gcc/c/c-parser.c:6908:16: error: ‘origtypes’ may be used
uninitialized in this function [-Werror=maybe-uninitialized]
   origtypes);
^
This looks a false positive to me.


[Bug c/54582] gap in FORTIFY checking of buffer lengths

2013-02-06 Thread dcb314 at hotmail dot com


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



--- Comment #2 from David Binderman dcb314 at hotmail dot com 2013-02-06 
10:58:22 UTC ---

I went through the source code of Fedora Linux rawhide

and there are about 220 occurrences of this problem.



So it appears far more frequently than I had suspected.


[Bug c++/57945] [4.9 Regression] ICE: in varpool_get_node, at cgraph.h:840

2013-10-06 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57945

--- Comment #2 from David Binderman dcb314 at hotmail dot com ---
I have another test case that generates this ICE.

Source code available on request.


[Bug tree-optimization/58530] [4.9 Regression] crash in get_combined_adhoc_loc

2013-10-09 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58530

David Binderman dcb314 at hotmail dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from David Binderman dcb314 at hotmail dot com ---
Seems to be fixed by 20131009, revision 203302


[Bug middle-end/54327] [4.8 Regression] Segmentation fault in init_ggc

2013-10-27 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54327

David Binderman dcb314 at hotmail dot com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |---

--- Comment #8 from David Binderman dcb314 at hotmail dot com ---
Seems to be newly broken. 20131023 ok, 20131027 not, as follows

htslib.c: In function ‘x_escape_http’:
htslib.c:3804:7: internal compiler error: in operator[], at vec.h:827
0xb8fa27 vecoperand_entry*, va_heap, vl_embed::operator[](unsigned int)
../../src/trunk/gcc/vec.h:827
0xb91572 vecoperand_entry*, va_heap, vl_embed::operator[](unsigned int)
../../src/trunk/gcc/tree.h:2792
0xb91572 vecoperand_entry*, va_heap, vl_ptr::operator[](unsigned int)
../../src/trunk/gcc/vec.h:1256
0xb91572 update_ops
../../src/trunk/gcc/tree-ssa-reassoc.c:2619
0xbf maybe_optimize_range_tests
../../src/trunk/gcc/tree-ssa-reassoc.c:2907
0xbf reassociate_bb
../../src/trunk/gcc/tree-ssa-reassoc.c:4325
0xb98eb7 reassociate_bb
../../src/trunk/gcc/tree-ssa-reassoc.c:4482
0xb9b7ab do_reassoc
../../src/trunk/gcc/tree-ssa-reassoc.c:4515
0xb9b7ab execute_reassoc
../../src/trunk/gcc/tree-ssa-reassoc.c:4597
0xb9b7ab execute
../../src/trunk/gcc/tree-ssa-reassoc.c:4639
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.

[Bug c/58911] New: ice in operator[], at vec.h:827

2013-10-29 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58911

Bug ID: 58911
   Summary: ice in operator[], at vec.h:827
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dcb314 at hotmail dot com

Following on from bug # 54327, I compiled
the attached source code with gcc trunk dated 20131027
with flag -O2.

It said

htslib.c: In function ‘x_escape_http’:
htslib.c:3804:7: internal compiler error: in operator[], at vec.h:827
0xb8fa27 vecoperand_entry*, va_heap, vl_embed::operator[](unsigned int)
../../src/trunk/gcc/vec.h:827
0xb91572 vecoperand_entry*, va_heap, vl_embed::operator[](unsigned int)
../../src/trunk/gcc/tree.h:2792
0xb91572 vecoperand_entry*, va_heap, vl_ptr::operator[](unsigned int)
../../src/trunk/gcc/vec.h:1256
0xb91572 update_ops
../../src/trunk/gcc/tree-ssa-reassoc.c:2619
0xbf maybe_optimize_range_tests
../../src/trunk/gcc/tree-ssa-reassoc.c:2907
0xbf reassociate_bb
../../src/trunk/gcc/tree-ssa-reassoc.c:4325
0xb98eb7 reassociate_bb
../../src/trunk/gcc/tree-ssa-reassoc.c:4482
0xb9b7ab do_reassoc
../../src/trunk/gcc/tree-ssa-reassoc.c:4515
0xb9b7ab execute_reassoc
../../src/trunk/gcc/tree-ssa-reassoc.c:4597
0xb9b7ab execute
../../src/trunk/gcc/tree-ssa-reassoc.c:4639
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.

[Bug c/58911] ice in operator[], at vec.h:827

2013-10-29 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58911

--- Comment #1 from David Binderman dcb314 at hotmail dot com ---
Created attachment 31102
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31102action=edit
gzipped C source code


[Bug middle-end/54327] [4.8 Regression] Segmentation fault in init_ggc

2013-10-29 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54327

--- Comment #10 from David Binderman dcb314 at hotmail dot com ---
(In reply to Richard Biener from comment #9)
 Please open a new bugreport - this seems completely unrelated.

Done - # 58911


[Bug tree-optimization/58911] [4.9 Regression] ice in operator[], at vec.h:827

2013-10-30 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58911

David Binderman dcb314 at hotmail dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from David Binderman dcb314 at hotmail dot com ---
Crash seems to have gone away in the version of 20131030.


[Bug middle-end/58555] [4.9 Regression] Floating point exception in want_inline_self_recursive_call_p

2013-11-13 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58555

--- Comment #9 from David Binderman dcb314 at hotmail dot com ---
(In reply to Markus Trippelsdorf from comment #8)
 The following patch seems to fix the issue:

Looks good to me. 

I think it needs to get into the compiler source code somehow.

Would posting the patch to gcc-patches be the correct way forward ?


[Bug c/59129] New: assert fail for tree.c:4150

2013-11-14 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59129

Bug ID: 59129
   Summary: assert fail for tree.c:4150
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dcb314 at hotmail dot com

Created attachment 31216
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31216action=edit
C source code

I just tried to compile package gplcver-2.12a-7.fc20 with
gcc 4.9 trunk dated 20131113. It said

v_vpi3.c: In function 'set_vpisfcall_retval':
v_vpi3.c:4542:13: internal compiler error: Segmentation fault
 static void set_vpisfcall_retval(struct h_t *hp, p_vpi_value value_p)
 ^
0xa76c9f crash_signal
../../src/trunk/gcc/toplev.c:334
0xcb8e83 build2_stat(tree_code, tree_node*, tree_node*, tree_node*)
../../src/trunk/gcc/tree.c:4150
0x67938c gimple_assign_rhs_to_tree(gimple_statement_d*)
../../src/trunk/gcc/cfgexpand.c:103
0xc35851 insert_debug_temp_for_var_def(gimple_stmt_iterator_d*, tree_node*)
../../src/trunk/gcc/tree-ssa.c:442
0xc35f49 insert_debug_temps_for_defs(gimple_stmt_iterator_d*)
../../src/trunk/gcc/tree-ssa.c:549
0x84607a gsi_remove(gimple_stmt_iterator_d*, bool)
../../src/trunk/gcc/gimple-iterator.c:563
0xf7d77c insert_trap_and_remove_trailing_statements
../../src/trunk/gcc/gimple-ssa-isolate-paths.c:110
0xf7e552 gimple_ssa_isolate_erroneous_paths
../../src/trunk/gcc/gimple-ssa-isolate-paths.c:305
0xf7e552 execute
../../src/trunk/gcc/gimple-ssa-isolate-paths.c:370
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flags -g -O2 required.


[Bug c/59129] assert fail for tree.c:4150

2013-11-17 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59129

David Binderman dcb314 at hotmail dot com changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #2 from David Binderman dcb314 at hotmail dot com ---
(In reply to Richard Biener from comment #1)
 I think this is a already fixed.

Agreed. I tried 20131117 and it seems fixed to me.


[Bug c/59203] New: config/cris/cris.c:2491: possible typo ?

2013-11-20 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59203

Bug ID: 59203
   Summary: config/cris/cris.c:2491: possible typo ?
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dcb314 at hotmail dot com

I just ran cppcheck over the trunk source code.

It said

[trunk/gcc/config/cris/cris.c:2491] - [trunk/gcc/config/cris/cris.c:2491]:
(style) Same expression on both sides of '||'.

Source code is

enum cris_pic_symbol_type t1 = cris_pic_symbol_type_of (XEXP (x, 0));
enum cris_pic_symbol_type t2 = cris_pic_symbol_type_of (XEXP (x, 1));

gcc_assert (t1 == cris_no_symbol || t2 == cris_no_symbol);

if (t1 == cris_got_symbol || t1 == cris_got_symbol)
  return cris_got_symbol_needing_fixup;

Suggest code rework. It might be as simple as changing t1 to t2 after
the ||, but given the assert, I doubt it.


[Bug target/59205] New: config/iq2000/iq2000.c:2188: possible cut'n'paste error ?

2013-11-20 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59205

Bug ID: 59205
   Summary: config/iq2000/iq2000.c:2188: possible cut'n'paste
error ?
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dcb314 at hotmail dot com

I just ran the static analyser cppcheck over the 
trunk source code.

It said

[trunk/gcc/config/iq2000/iq2000.c:2188] -
[trunk/gcc/config/iq2000/iq2000.c:2173]: (style) Found duplicate branches for
'if' and 'else'.

Source code is

  if (TARGET_EMBEDDED_DATA)
{
  /* For embedded applications, always put an object in read-only data
 if possible, in order to reduce RAM usage.  */
  if ((TREE_CODE (decl) == VAR_DECL
TREE_READONLY (decl)  !TREE_SIDE_EFFECTS (decl)
DECL_INITIAL (decl)
(DECL_INITIAL (decl) == error_mark_node
   || TREE_CONSTANT (DECL_INITIAL (decl
  /* Deal with calls from output_constant_def_contents.  */
  || TREE_CODE (decl) != VAR_DECL)
return readonly_data_section;
  else
return data_section;
}
  else
{
  /* For hosted applications, always put an object in small data if
 possible, as this gives the best performance.  */
  if ((TREE_CODE (decl) == VAR_DECL
TREE_READONLY (decl)  !TREE_SIDE_EFFECTS (decl)
DECL_INITIAL (decl)
(DECL_INITIAL (decl) == error_mark_node
   || TREE_CONSTANT (DECL_INITIAL (decl
  /* Deal with calls from output_constant_def_contents.  */
  || TREE_CODE (decl) != VAR_DECL)
return readonly_data_section;
  else
return data_section;
}

Suggest code rework.


[Bug target/59207] New: config/sparc/sparc.c:10663: possible uninit local variable ?

2013-11-20 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59207

Bug ID: 59207
   Summary: config/sparc/sparc.c:10663: possible uninit local
variable ?
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: target
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dcb314 at hotmail dot com

I just ran the static analyser over the trunk source code.

It said

[trunk/gcc/config/sparc/sparc.c:10663]: (error) Uninitialized variable:
neg2_ovf

Source code is

  bool neg1_ovf, neg2_ovf, add1_ovf, add2_ovf;

  tmp = e1.neg_with_overflow (neg1_ovf);
  tmp = e0.add_with_sign (tmp, false, add1_ovf);
  if (tmp.is_negative ())
tmp = tmp.neg_with_overflow (neg2_ovf);

  result = result.add_with_sign (tmp, false, add2_ovf);
  overflow |= neg1_ovf | neg2_ovf | add1_ovf | add2_ovf;

Since neg2_ovf is only conditionally initialised, suggest initialise
at its declaration. Like

  bool neg1_ovf, neg2_ovf = false, add1_ovf, add2_ovf;


[Bug c++/59208] New: ice in initialize_flags_in_bb

2013-11-20 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59208

Bug ID: 59208
   Summary: ice in initialize_flags_in_bb
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dcb314 at hotmail dot com

Created attachment 31256
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31256action=edit
gzipped C++ source code

The source code from bug # 45875, when compiled with today's trunk
of 20131120, says

bug1.cc: In function ‘void add_button(Widget, int, Dimension, DebuggerType,
EntryType, string)’:
bug1.cc:48073:13: internal compiler error: in initialize_flags_in_bb, at
tree-into-ssa.c:459
 static void add_button(Widget form, int row, Dimension max_width,
 ^
0xcd9db9 initialize_flags_in_bb
../../src/trunk/gcc/tree-into-ssa.c:459
0xcd9db9 mark_block_for_update
../../src/trunk/gcc/tree-into-ssa.c:473
0xce1f50 mark_use_interesting
../../src/trunk/gcc/tree-into-ssa.c:2456
0xce1f50 prepare_block_for_update
../../src/trunk/gcc/tree-into-ssa.c:2531

This worked a few days ago, at 20131117, so there is recent breakage.

[Bug c/59362] New: Abort in fini_object_sizes

2013-12-01 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59362

Bug ID: 59362
   Summary: Abort in fini_object_sizes
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dcb314 at hotmail dot com

Created attachment 31344
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31344action=edit
C source code

I just tried to compile the attached source code
with trunk of 20131130 and it said

lens.c:1063:7: internal compiler error: Aborted
0xa8ed5f crash_signal
../../src/trunk/gcc/toplev.c:336
0xb18fe4 fini_object_sizes
../../src/trunk/gcc/tree-object-size.c:1200
0xb18fe4 compute_object_sizes
../../src/trunk/gcc/tree-object-size.c:1279
0xb18fe4 execute
../../src/trunk/gcc/tree-object-size.c:1309
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flags -O2 -std=gnu99 required.
~


[Bug c++/59473] New: ice in get_class_context with -O3

2013-12-11 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59473

Bug ID: 59473
   Summary: ice in get_class_context with -O3
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dcb314 at hotmail dot com

Created attachment 31420
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31420action=edit
gzipped C++ source code

I just tried to compile the attached source code with flag -O3
with trunk of 20131211 and it said

In file included from /usr/include/QtGui/QListWidget:1:0,
 from widgets/iconwidget.h:24,
 from widgets/iconwidget.cpp:21:
/usr/include/QtGui/qlistwidget.h: In member function ‘virtual int
IconsetSelectItem::width() const’:
/usr/include/QtGui/qlistwidget.h:90:49: internal compiler error: in
get_class_context, at ipa-devirt.c:851
 { return data(Qt::DisplayRole).toString(); }
 ^
0xa96269 get_class_context
../../src/trunk/gcc/ipa-devirt.c:851
0xa97b48 contains_type_p
../../src/trunk/gcc/ipa-devirt.c:920
0xa97b48 get_polymorphic_call_info(tree_node*, tree_node*, tree_node**, long*,
ipa_polymorphic_call_context*)
../../src/trunk/gcc/ipa-devirt.c:1034
0x89e231 cgraph_create_indirect_edge(cgraph_node*, gimple_statement_base*, int,
long, int)
../../src/trunk/gcc/cgraph.c:974
0x8a7311 cgraph_clone_edge(cgraph_edge*, cgraph_node*, gimple_statement_base*,
unsigned int, long, int, bool)
../../src/trunk/gcc/cgraphclones.c:136
0xce2e2b copy_bb
../../src/trunk/gcc/tree-inline.c:1760
0xce5768 copy_cfg_body
../../src/trunk/gcc/tree-inline.c:2485
0xce5768 copy_body
../../src/trunk/gcc/tree-inline.c:2708
0xce8f9d expand_call_inline
../../src/trunk/gcc/tree-inline.c:4324
0xce8f9d gimple_expand_calls_inline
../../src/trunk/gcc/tree-inline.c:4432
0xce8f9d optimize_inline_calls(tree_node*)
../../src/trunk/gcc/tree-inline.c:4573
0x11de7ab inline_transform(cgraph_node*)
../../src/trunk/gcc/ipa-inline-transform.c:435
0xb9a495 execute_one_ipa_transform_pass
../../src/trunk/gcc/passes.c:2050
0xb9a495 execute_all_ipa_transforms()
../../src/trunk/gcc/passes.c:2091
0x8a40d0 expand_function
../../src/trunk/gcc/cgraphunit.c:1756
0x8a6398 expand_all_functions
../../src/trunk/gcc/cgraphunit.c:1868
0x8a6398 compile
../../src/trunk/gcc/cgraphunit.c:2203
0x8a69a4 compile
../../src/trunk/gcc/cgraphunit.c:2103
0x8a69a4 finalize_compilation_unit()
../../src/trunk/gcc/cgraphunit.c:2280
0x64e9dc cp_write_global_declarations()
../../src/trunk/gcc/cp/decl2.c:4431
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

[Bug c/59491] New: compiler can't detect if xpression is always fixed value

2013-12-13 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59491

Bug ID: 59491
   Summary: compiler can't detect if xpression is always fixed
value
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
  Assignee: unassigned at gcc dot gnu.org
  Reporter: dcb314 at hotmail dot com

Given the following code 

void g( int n);

void f( int n)
{
if ((n  0x08) == 1)
g( n);
}

trunk gcc says not a lot

[dcb@zippy4 Alphasrc]$ ~/gcc/results/bin/gcc -g -O2 -Wall -c dec12b.cc
[dcb@zippy4 Alphasrc]$ ~/gcc/results/bin/gcc -g -O2 -Wall -Wextra -pedantic -c
dec12b.cc

Here is cppcheck being a bit more vocal about it 

[dcb@zippy4 Alphasrc]$ cppcheck --enable=all dec12b.cc
Checking dec12b.cc...
[dec12b.cc:6]: (style) Expression '(X  0x8) == 0x1' is always false.


[Bug rtl-optimization/59350] [4.9 regression] ICE: in vt_expand_var_loc_chain, at var-tracking.c:8212

2013-12-17 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59350

--- Comment #31 from David Binderman dcb314 at hotmail dot com ---
Created attachment 31456
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31456action=edit
C source code


[Bug rtl-optimization/59350] [4.9 regression] ICE: in vt_expand_var_loc_chain, at var-tracking.c:8212

2013-12-17 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59350

--- Comment #32 from David Binderman dcb314 at hotmail dot com ---
Same error with gcc trunk, dated 20131215, for attached
source code.

Flags -O3 -g -fPIC -fstack-protector-strong required.

[dcb@zippy4 foundBugs]$ ../results/bin/gcc -c -O3 -g -fPIC
-fstack-protector-strong bug126.c
zprime.c: In function ‘zfactor’:
zprime.c:577:1: internal compiler error: in vt_expand_var_loc_chain, at
var-tracking.c:8213
0xd1b1d0 vt_expand_var_loc_chain
../../src/trunk/gcc/var-tracking.c:8213
0xd1b5c7 vt_expand_loc_callback
../../src/trunk/gcc/var-tracking.c:8409
0x6d44de cselib_expand_value_rtx_1
../../src/trunk/gcc/cselib.c:1684
0x6d44de cselib_expand_value_rtx_cb(rtx_def*, bitmap_head*, int, rtx_def*
(*)(rtx_def*, bitmap_head*, int, void*), void*)
../../src/trunk/gcc/cselib.c:1531

...

[Bug target/59203] config/cris/cris.c:2491: possible typo ?

2013-12-19 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59203

--- Comment #2 from David Binderman dcb314 at hotmail dot com ---
(In reply to Hans-Peter Nilsson from comment #1)
 Thanks for catching, yep, s/t1/t2/ there.

You are welcome.

 Not sure why you mean by code rework, looks otherwise clear to me.

I am not familiar with the code, so if the code is clear to you,
then proceed with s/t1/t2.


[Bug rtl-optimization/59350] [4.9 regression] ICE: in vt_expand_var_loc_chain, at var-tracking.c:8212

2013-12-19 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59350

--- Comment #35 from David Binderman dcb314 at hotmail dot com ---
(In reply to David Binderman from comment #32)
 Same error with gcc trunk, dated 20131215, for attached
 source code.
 
 Flags -O3 -g -fPIC -fstack-protector-strong required.

Sorry, I forgot to mention for machine type x86_64 ( AMD Phenom).


[Bug middle-end/59569] [4.9 Regression] r206148 causes internal compiler error: in vect_create_destination_var, at tree-vect-data-refs.c:4294

2013-12-22 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59569

--- Comment #5 from David Binderman dcb314 at hotmail dot com ---
(In reply to Zhendong Su from comment #4)
 Below is a very similar testcase that I've encountered: 

I have a third test case available on request.


[Bug middle-end/59569] [4.9 Regression] r206148 causes internal compiler error: in vect_create_destination_var, at tree-vect-data-refs.c:4294

2013-12-22 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59569

--- Comment #7 from David Binderman dcb314 at hotmail dot com ---
Created attachment 31501
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31501action=edit
C source code

Source code from bug # 45948. Compiler flag -O3 required.
Machine type x86_64.


[Bug middle-end/58555] [4.9 Regression] Floating point exception in want_inline_self_recursive_call_p

2014-01-02 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58555

--- Comment #14 from David Binderman dcb314 at hotmail dot com ---
(In reply to Jan Hubicka from comment #13)
 I see, we should just short citcuit case when caller_freq
 is 0.  I will test patch.

Any news with the patch ?


[Bug c++/58252] [4.9 Regression] ice in gimple_get_virt_method_for_binfo with -O2

2014-01-02 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58252

--- Comment #10 from David Binderman dcb314 at hotmail dot com ---
(In reply to David Binderman from comment #6)
 (In reply to Jan Hubicka from comment #5)
  This seems like a frontend issue to me.  
 
 Still broken in trunk dated 20131016.

Still broken in trunk 20140101


[Bug c/54321] New: ice in tree_low_cst at -O3

2012-08-19 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54321

 Bug #: 54321
   Summary: ice in tree_low_cst at -O3
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dcb...@hotmail.com


Created attachment 28050
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28050
C source code

I just tried to compile the package fcron-3.0.6-5
on gcc-4.8 trunk dated 20120819 on an AMD x86_64 box.

The compiler said

fileconf.c: In function 'read_period':
fileconf.c:1317:1: internal compiler error: in tree_low_cst, at tree.c:6546
 read_period(char *ptr, cf_t *cf)
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flag -O3 required.


[Bug c/54327] New: Segmentation fault in init_ggc

2012-08-19 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54327

 Bug #: 54327
   Summary: Segmentation fault in init_ggc
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dcb...@hotmail.com


I just tried to compile the package httrack-3.43.9-5
on gcc-4.8 trunk dated 20120819 on an AMD x86_64 box.

The compiler said

htslib.c: In function 'treathead':
htslib.c:1246:6: internal compiler error: Segmentation fault
 void treathead(t_cookie* cookie,char* adr,char* fil,htsblk* retour,char* rcvd)
{
  ^
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.

Here is valgrind with some more details

==13706== Invalid read of size 4
==13706==at 0xD4FF90: linemap_location_from_macro_expansion_p(line_maps*,
un
signed int) (line-map.c:796)
==13706==by 0xD4FFCF: linemap_lookup(line_maps*, unsigned int)
(line-map.c:5
12)
==13706==by 0x8E6534:
virt_loc_aware_diagnostic_finalizer(diagnostic_context
*, diagnostic_info*) (tree-diagnostic.c:113)
==13706==by 0xD3A263: diagnostic_report_diagnostic(diagnostic_context*,
diag
nostic_info*) (diagnostic.c:652)
==13706==by 0xD3B03F: internal_error(char const*, ...) (diagnostic.c:957)
==13706==by 0x8B800F: crash_signal(int) (toplev.c:335)
==13706==by 0x3809C3599F: ??? (in /usr/lib64/libc-2.15.so)
==13706==by 0x5A7625: init_ggc() (hwint.h:264)
==13706==by 0x8B967F: toplev_main(int, char**) (toplev.c:1137)
==13706==by 0x3809C21734: (below main) (in /usr/lib64/libc-2.15.so)
==13706==  Address 0x24 is not stack'd, malloc'd or (recently) free'd
==13706==

Preprocessed source code attached. Flag -O2 required.


[Bug c/54327] Segmentation fault in init_ggc

2012-08-19 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54327

--- Comment #1 from David Binderman dcb314 at hotmail dot com 2012-08-19 
20:14:08 UTC ---
Created attachment 28052
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28052
gzipped C source code


[Bug c/54520] New: ice in merge_latch_edges with -O3

2012-09-07 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54520

 Bug #: 54520
   Summary: ice in merge_latch_edges with -O3
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dcb...@hotmail.com


Created attachment 28151
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28151
C source code

I just tried to compile the package source-highlight-3.1.6-3
on gcc-4.8 trunk dated 20120905 on an AMD x86_64 box.

The compiler said

readtags.c: In function 'parseTagLine':
readtags.c:292:13: internal compiler error: in merge_latch_edges, at
cfgloop.c:678
 static void parseTagLine (tagFile *file, tagEntry *const entry)
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.

Preprocessed source code attached. Flag -O3 required.


[Bug c/54582] New: gap in FORTIFY checking of buffer lengths

2012-09-14 Thread dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54582

 Bug #: 54582
   Summary: gap in FORTIFY checking of buffer lengths
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: minor
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dcb...@hotmail.com


Consider the following code

# include stdio.h

void f(int n)
{
char buf[2];

sprintf(buf, ab%d, n);
printf(%s\n, buf);

sprintf(buf, ab);
printf(%s\n, buf);
}

int
main()
{
f(2);

return 0;
}

compiled as

[dcb@zippy Alphasrc]$ ~/gcc/trunk/results/bin/gcc -g -O2 -Wall
-D_FORTIFY_SOURCE=2 -c sep14a.c
In file included from /usr/include/stdio.h:936:0,
 from sep14a.c:2:
In function ‘sprintf’,
inlined from ‘f’ at sep14a.c:11:9:
/usr/include/bits/stdio2.h:34:3: warning: call to __builtin___sprintf_chk will
always overflow destination buffer [enabled by default]
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
   ^

so gcc can find the problem in the 2nd sprintf, but not the first.

All the numeric specifiers (%d, %u etc) all produce at least one 
character, so gcc could take account of this in checking buffer lengths.

Here is cppcheck finding the problem

Checking sep14a.c...
[sep14a.c:8]: (error) Buffer is accessed out of bounds.
[sep14a.c:11]: (error) Buffer is accessed out of bounds.


[Bug c++/54647] New: Segmentation fault in get_expr_value_id with -O2

2012-09-20 Thread dcb314 at hotmail dot com


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



 Bug #: 54647

   Summary: Segmentation fault in get_expr_value_id with -O2

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: c++

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com





Created attachment 28240

  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28240

C++ source code



I just tried to compile the package kdelibs3-3.5.10-39

on gcc-4.8 trunk dated 20120919 on an AMD x86_64 box.



The compiler said



render_table.cpp: In member function 'void khtml::RenderTable::splitColumn(int,

int)':

render_table.cpp:563:6: internal compiler error: Segmentation fault

 void RenderTable::splitColumn( int pos, int firstSpan )

  ^

Please submit a full bug report,

with preprocessed source if appropriate.

See http://gcc.gnu.org/bugs.html for instructions.



Here is valgrind helping out with a stack backtrace



==27576== Invalid read of size 4

==27576==at 0xB5BAC8: get_expr_value_id(pre_expr_d*) (tree-ssa-pre.c:615)

==27576==by 0xB6346A: find_or_generate_expression(basic_block_def*,

pre_expr_d*, gimple_statement_d**, gimple_statement_d*) [clone .constprop.104]

(tree-ssa-pre.c:2894)

==27576==by 0xB60282: create_expression_by_pieces(basic_block_def*,

pre_expr_d*, gimple_statement_d**, gimple_statement_d*, tree_node*) [clone

.constprop.103] (tree-ssa-pre.c:2995)

==27576==by 0xB606FD: insert_into_preds_of_block(basic_block_def*, unsigned

int, vec_tpre_expr_d**) (tree-ssa-pre.c:3234)

==27576==by 0xB61743: insert_aux(basic_block_def*) (tree-ssa-pre.c:3524)

==27576==by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)

==27576==by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)

==27576==by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)

==27576==by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)

==27576==by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)

==27576==by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)

==27576==by 0xB61127: insert_aux(basic_block_def*) (tree-ssa-pre.c:3749)

==27576==  Address 0x0 is not stack'd, malloc'd or (recently) free'd

==27576==



Preprocessed source code attached. Flag -O2 required.


[Bug c/54745] New: gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ?

2012-09-29 Thread dcb314 at hotmail dot com


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



 Bug #: 54745

   Summary: gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ?

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: c

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com





[dcb@zippy trunk]$ fgrep CASE_CONVERT gcc/c/*.c

gcc/c/c-typeck.c:CASE_CONVERT:

gcc/c/c-typeck.c:CASE_CONVERT:



The two pieces of code are



case REALPART_EXPR:

case IMAGPART_EXPR:

CASE_CONVERT:

case ADDR_EXPR:



and



CASE_CONVERT:

case NON_LVALUE_EXPR:

case PLUS_EXPR:



It is odd to define a label and then not use it, even more

so in the middle of a switch statement. Is it likely

that the programmer intended keyword case on the front

of CASE_CONVERT, like



case CASE_CONVERT:


[Bug c/54745] gcc/c/c-typeck.c: CASE_CONVERT possible coding bug ?

2012-09-29 Thread dcb314 at hotmail dot com


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



--- Comment #1 from David Binderman dcb314 at hotmail dot com 2012-09-29 
10:29:35 UTC ---

More of the same over in trunk/gcc/c-family/c-pretty-print.c



[dcb@zippy src]$ fgrep CASE_CONVERT !$

fgrep CASE_CONVERT trunk/gcc/c-family/c-pretty-print.c

CASE_CONVERT:

CASE_CONVERT:

[dcb@zippy src]$


[Bug target/54746] New: config/s390/s390.c:1583: possible missing break in switch ?

2012-09-29 Thread dcb314 at hotmail dot com


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



 Bug #: 54746

   Summary: config/s390/s390.c:1583: possible missing break in

switch ?

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: target

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com

Target: s390





break;

case PROCESSOR_2097_Z10:

  s390_cost = z10_cost;

case PROCESSOR_2817_Z196:

  s390_cost = z196_cost;



Looks like a missing break to me. The wrong cost gets picked up.


[Bug target/54747] New: config/bfin/bfin.c:2721: possible missing break ?

2012-09-29 Thread dcb314 at hotmail dot com


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



 Bug #: 54747

   Summary: config/bfin/bfin.c:2721: possible missing break ?

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: target

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com

Target: bfin





case POST_DEC:

if (LEGITIMATE_MODE_FOR_AUTOINC_P (mode)

 REG_P (XEXP (x, 0))

 bfin_valid_reg_p (REGNO (XEXP (x, 0)), strict, mode, POST_INC))

  return true;

  case PRE_DEC:



Looking at the rest of the switch statement, it might be true

that there is a missing break.



If not, suggest document the fallthrough with a comment.


[Bug libmudflap/54748] New: libmudflap/mf-hooks2.c:1776: possible missing break ?

2012-09-29 Thread dcb314 at hotmail dot com


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



 Bug #: 54748

   Summary: libmudflap/mf-hooks2.c:1776: possible missing break ?

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: libmudflap

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com





case GETALL:

MF_VALIDATE_EXTENT (arg.array, sizeof (*arg.array), __MF_CHECK_WRITE,

  semctl array);

  case SETALL:



All the other cases in this switch have break, this one doesn't.

Suggest either add a break, or add a comment to document the fallthrough.


[Bug other/54800] New: libiberty/simple-object-mach-o.c:704: possible optimisation ?

2012-10-03 Thread dcb314 at hotmail dot com


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



 Bug #: 54800

   Summary: libiberty/simple-object-mach-o.c:704: possible

optimisation ?

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: minor

  Priority: P3

 Component: other

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com





I just tried the latest cppcheck over the source code

of trunk and it said



[trunk/libiberty/simple-object-mach-o.c:704] -

[trunk/libiberty/simple-object-mach-o.c:705]: (performance) Buffer 'namebuf' is

being written before its old content has been used.



The source code is



  memset (namebuf, 0, MACH_O_NAME_LEN * 2 + 2);

  memcpy (namebuf, (char *) sechdr + segname_offset, MACH_O_NAME_LEN);



Maybe something like



  memcpy (namebuf, (char *) sechdr + segname_offset, MACH_O_NAME_LEN);

  memset (namebuf[MACH_O_NAME_LEN], MACH_O_NAME_LEN + 2);



might be faster and simpler ?


[Bug other/54800] libiberty/simple-object-mach-o.c:704: possible optimisation ?

2012-10-03 Thread dcb314 at hotmail dot com


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



--- Comment #1 from David Binderman dcb314 at hotmail dot com 2012-10-03 
21:22:31 UTC ---

Or if you want something that compiles



  memset (namebuf[MACH_O_NAME_LEN], 0, MACH_O_NAME_LEN + 2);



might be closer ;-


[Bug c++/54844] New: ice tsubst_copy, at cp/pt.c:12352

2012-10-07 Thread dcb314 at hotmail dot com

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

 Bug #: 54844
   Summary: ice tsubst_copy, at cp/pt.c:12352
Classification: Unclassified
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: dcb...@hotmail.com


Created attachment 28379
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=28379
gzipped C++ source code

The original source code I provided for bug #46240 seems to 
now cause an ice.

oct-norm.cc: In instantiation of ‘R vector_norm(const MArrayT, R) [with T =
double; R = double]’:
oct-norm.cc:521:75:   required from here
oct-norm.cc:309:234: internal compiler error: in tsubst_copy, at cp/pt.c:12352
0x58361a tsubst_copy
../../src/trunk/gcc/cp/pt.c:12352
0x5745c2 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../src/trunk/gcc/cp/pt.c:13479
0x57321c tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../src/trunk/gcc/cp/pt.c:13504
0x574139 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../src/trunk/gcc/cp/pt.c:13459
0x5736c9 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../src/trunk/gcc/cp/pt.c:13863
0x57aa9a tsubst_expr
../../src/trunk/gcc/cp/pt.c:13159
0x57b61a tsubst_expr
../../src/trunk/gcc/cp/pt.c:12792
0x57b6ce tsubst_expr
../../src/trunk/gcc/cp/pt.c:12814
0x57c56d tsubst_expr
../../src/trunk/gcc/cp/pt.c:12800
0x57b6ce tsubst_expr
../../src/trunk/gcc/cp/pt.c:12814
0x57c56d tsubst_expr
../../src/trunk/gcc/cp/pt.c:12800
0x57b753 tsubst_expr
../../src/trunk/gcc/cp/pt.c:12630
0x57b6ce tsubst_expr
../../src/trunk/gcc/cp/pt.c:12814
0x579966 instantiate_decl(tree_node*, int, bool)
../../src/trunk/gcc/cp/pt.c:18635
0x5b3e33 instantiate_pending_templates(int)
../../src/trunk/gcc/cp/pt.c:18734
0x5ee1ae cp_write_global_declarations()
../../src/trunk/gcc/cp/decl2.c:3742
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See http://gcc.gnu.org/bugs.html for instructions.

No special compiler flags required.

This code used to compile with trunk dated 2012 Oct 03, so 
a recent change seems to be causing the problem.


[Bug ada/54845] New: [trunk/gcc/c-family/c-ada-spec.c:3114]: (error) Buffer is accessed out of bounds.

2012-10-07 Thread dcb314 at hotmail dot com


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



 Bug #: 54845

   Summary: [trunk/gcc/c-family/c-ada-spec.c:3114]: (error) Buffer

is accessed out of bounds.

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: ada

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: dcb...@hotmail.com





I just ran the static analysis checker cppcheck over

the source code of today's trunk.



The checker said



[trunk/gcc/c-family/c-ada-spec.c:3114]: (error) Buffer is accessed out of

bounds.



The source code is



  sprintf (buf, field_%d : aliased , field_num + 1);



but 



  char buf[16];



I make that at least 19 chars written into a 16 char buffer.

Suggest increase buf size.


<    1   2   3   4   5   6   7   8   9   10   >