95669 Commits

Author SHA1 Message Date
Richard Henderson
671f9f3098 gimple-iterator.c (gimple_find_edge_insert_loc): Use gimple_seq_empty_p to test for no PHI nodes.
* gimple-iterator.c (gimple_find_edge_insert_loc): Use
        gimple_seq_empty_p to test for no PHI nodes.
        * tree-cfg.c (split_critical_edges): Likewise.

From-SVN: r151602
2009-09-10 11:01:23 -07:00
Richard Henderson
15a15e8dc4 * c-common.h (c_dialect_cxx, c_dialect_objc): Boolify.
From-SVN: r151601
2009-09-10 11:01:15 -07:00
Hariharan Sandanagobalane
f90f4827aa final.c (shorten_branches): Ignore DEBUG_INSN_P instructions introduced by the VTA branch merge.
* final.c (shorten_branches) : Ignore DEBUG_INSN_P instructions
introduced by the VTA branch merge.

From-SVN: r151599
2009-09-10 16:48:54 +00:00
Uros Bizjak
edb30094a6 ira-conflicts.c: Use fputs or putc instead of fprintf where appropriate.
* ira-conflicts.c: Use fputs or putc instead of fprintf
	where appropriate.
	* cfg.c: Ditto.
	* toplev.c: Ditto.
	* tree-switch-conversion.c: Ditto.

From-SVN: r151598
2009-09-10 18:21:45 +02:00
Hariharan Sandanagobalane
f3d9e91bcc picochip.c: Ignore DEBUG_INSN_P instructions introduced by the VTA branch merge.
* config/picochip/picochip.c : Ignore DEBUG_INSN_P instructions
        introduced by the VTA branch merge.

From-SVN: r151597
2009-09-10 16:03:53 +00:00
Uros Bizjak
3a3d54f2fe Revert:
2009-09-09  Uros Bizjak  <ubizjak@gmail.com>

	PR rtl-optimization/39779
	* expr.c (convert_modes): Return when mode == oldmode after
	CONST_INTs are processed.

testsuite/ChangeLog:

	Revert:
	2009-09-09  Uros Bizjak <ubizjak@gmail.com>

	PR rtl-optimization/39779
	* gcc.dg/pr39979.c: New test.

From-SVN: r151596
2009-09-10 17:14:39 +02:00
Nick Clifton
1c6679e236 mep.c (mep_encode_section_info): Copy weakness attribute and referring decl when creating renamed symbol.
* config/mep/mep.c (mep_encode_section_info): Copy weakness
        attribute and referring decl when creating renamed symbol.

From-SVN: r151595
2009-09-10 15:04:39 +00:00
Iain Sandoe
bb59df5289 re PR bootstrap/41245 (Bootstrap broken on I386-apple-darwin9 at revision 151373)
PR bootstrap/41245
	* compare-debug: Handle stripping of dwarf debug sections from darwin
	mach-o objects.

From-SVN: r151594
2009-09-10 16:32:51 +02:00
Richard Guenther
90097c6771 re PR middle-end/41257 (Bogus error '*.LTHUNK0' aliased to undefined symbol '_ZN1CD1Ev')
2009-09-10  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41257
	* cgraphunit.c (cgraph_emit_thunks): Emit thunks only for
	reachable nodes.
	(cgraph_finalize_compilation_unit): Compute reachability
	before emitting thunks.  Properly process aliases before
	possibly removing unreachable nodes.

	* g++.dg/torture/pr41257-2.C: New testcase.

From-SVN: r151592
2009-09-10 11:42:25 +00:00
Richard Guenther
c7a3980a09 re PR middle-end/41254 (crashed compile Qt4 gui library)
2009-09-10  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41254
	* tree.c (struct free_lang_data_d): Add worklist member.
	(find_decls_types_r): Push onto the worklist instead of recursing.
	Handle TREE_BINFOs properly.
	(find_decls_types): New function wrapped around find_decls_types_r
	to process the worklist.
	(find_decls_types_in_eh_region): Use it.
	(find_decls_types_in_node): Likewise.
	(find_decls_types_in_var): Likewise.
	(free_lang_data_in_cgraph): Likewise.  Free the worklist.
	* tree.h (RECORD_OR_UNION_TYPE_P): New.
	(AGGREGATE_TYPE_P): Adjust.

From-SVN: r151590
2009-09-10 08:52:36 +00:00
Jason Merrill
7cb4dfec24 * error.c (find_typenames_r): Also add decltypes.
From-SVN: r151586
2009-09-10 01:16:17 -04:00
Jason Merrill
e00ded6863 configure.ac: Check glibc version even if we have an in-tree assembler.
* configure.ac: Check glibc version even if we have an in-tree
	assembler.

From-SVN: r151585
2009-09-10 01:16:08 -04:00
GCC Administrator
52718995ee Daily bump.
From-SVN: r151584
2009-09-10 00:17:52 +00:00
Paolo Carlini
3937f036d7 re PR c++/28293 (ICE on invalid typedef)
/cp
2009-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/28293
	* decl2.c (grokfield): Check for explicit template argument lists.

/testsuite
2009-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/28293
	* g++.dg/template/crash91.C: New.

From-SVN: r151581
2009-09-09 23:33:38 +00:00
Paolo Carlini
e7e5ba0984 re PR c++/28293 (ICE on invalid typedef)
/cp
2009-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/28293
	* decl.c (grokfield): Check for explicit template argument lists.

/testsuite
2009-09-09  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/28293
	* g++.dg/template/crash91.C: New.

From-SVN: r151580
2009-09-09 23:31:47 +00:00
Anthony Green
75cd1c8f4e moxie.md (*movsi, [...]): Use xor to load the constant 0 when appropriate.
* config/moxie/moxie.md (*movsi, *movhi, *movqi): Use xor to load
	the constant 0 when appropriate.
	* config/moxie/constraints.md: Add constraint O.

	* config/moxie/moxie.c (moxie_setup_incoming_varargs): Adjust
	to pass up to 6 32-bit argument values in registers.
	(moxie_function_arg): Ditto.
	(moxie_arg_partial_bytes): Ditto.
	* config/moxie/moxie.h (FUNCTION_ARG_ADVANCE): Ditto.
	(REG_PARM_STACK_SPACE): Ditto.
	(FUNCTION_ARG_REGNO_P): Ditto.

	* config/moxie/moxie.c (moxie_expand_prologue): Use dec
	instruction to allocate stack space.

From-SVN: r151579
2009-09-09 22:29:13 +00:00
Loren J. Rittle
29cd5cc56a typesizes.cc: Remove *-*-freebsd* from both dg-do and dg-options.
2009-09-09  Loren J. Rittle  <ljrittle@acm.org>

	* testsuite/30_threads/thread/native_handle/typesizes.cc: Remove
	*-*-freebsd* from both dg-do and dg-options.

From-SVN: r151578
2009-09-09 21:59:40 +00:00
Richard Guenther
39b747f2c9 re PR fortran/41297 (Functions are called twice)
2009-09-09  Richard Guenther  <rguenther@suse.de>

	PR fortran/41297
	* trans-expr.c (gfc_trans_scalar_assign): Correct typo that
	left 'tmp' unused in derived type assignment.

From-SVN: r151576
2009-09-09 20:03:49 +00:00
Segher Boessenkool
93fbf85741 rs6000.md (bswapdi2_64bit): Fix unnecessarily stringent constraints.
2009-09-08  Segher Boessenkool  <segher@kernel.crashing.org>

	* config/rs6000/rs6000.md (bswapdi2_64bit): Fix
	unnecessarily stringent constraints.  Fix address
	calculation in the splitters.

From-SVN: r151575
2009-09-09 21:50:42 +02:00
Paolo Bonzini
c13e029be4 stdint.m4 (GCC_HEADER_STDINT): Revert changes to this macro in the previous two patches.
config:
2009-09-09  Paolo Bonzini  <bonzini@gnu.org>

	* stdint.m4 (GCC_HEADER_STDINT): Revert changes to this macro in
	the previous two patches.

libgfortran:
2009-09-09  Paolo Bonzini  <bonzini@gnu.org>

	* configure: Regenerate.

libdecnumber:
2009-09-09  Paolo Bonzini  <bonzini@gnu.org>

	* configure: Regenerate.

From-SVN: r151574
2009-09-09 19:42:21 +00:00
Uros Bizjak
ed9d5a4a1a re PR c/39779 (ICE shifting byte to the right with constant > 7FFFFFFF)
PR rtl-optimization/39779
	* expr.c (convert_modes): Return when mode == oldmode after
	CONST_INTs are processed.

testsuite/ChangeLog:

	PR rtl-optimization/39779
	* gcc.dg/pr39979.c: New test.

From-SVN: r151573
2009-09-09 21:25:31 +02:00
Kai Tietz
3d88772106 i386.c (ix86_can_use_return_insn_p): Check for padding0, too.
2009-09-09  Kai Tietz  <kai.tietz@onevision.com>

	PR/41315
	* config/i386.c (ix86_can_use_return_insn_p): Check for
	padding0, too.
	(ix86_expand_prologue): Take frame.padding0 into logic of
	to_allocate checks.
	(ix86_expand_epilogue): Likewise.

From-SVN: r151570
2009-09-09 21:05:55 +02:00
Jakub Jelinek
80a76d1d75 t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, [...]): New variables.
* config/t-slibgcc-elf-ver (SHLIB_MAKE_SOLINK, SHLIB_INSTALL_SOLINK):
	New variables.
	(SHLIB_LINK, SHLIB_INSTALL): Use them.
	* config/t-slibgcc-libgcc: New file.
	* config.gcc (powerpc*-*-linux*, powerpc*-*-gnu*): Use it.

From-SVN: r151568
2009-09-09 20:39:52 +02:00
Paolo Bonzini
d72a3ac17b stdint.m4: Store temporary file in $tmp/_GCC_STDINT_H.
2009-09-09  Paolo Bonzini  <bonzini@gnu.org>

	* stdint.m4: Store temporary file in $tmp/_GCC_STDINT_H.
	Eliminate now pointless comments.

libdecnumber:
2009-09-09  Paolo Bonzini  <bonzini@gnu.org>

	* configure: Regenerate.

libgfortran:
2009-09-09  Paolo Bonzini  <bonzini@gnu.org>

	* configure: Regenerate.

From-SVN: r151567
2009-09-09 16:51:14 +00:00
Martin Jambor
ca1bb752ae re PR target/41089 (stdarg pass produces wrong code)
2009-09-09  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/41089
	* tree-sra.c (find_var_candidates): Do not consider va_lists in
	early SRA.

From-SVN: r151566
2009-09-09 18:50:15 +02:00
Richard Henderson
8b9db065c6 gimple.h (CASE_GIMPLE_OMP): New.
* gimple.h (CASE_GIMPLE_OMP): New.
        (is_gimple_omp): Use it.
        * tree-cfg.c (is_ctrl_altering_stmt): Likewise.
        (verify_gimple_debug): Likewise.

From-SVN: r151565
2009-09-09 09:47:06 -07:00
Joseph Myers
4056c2c6ed * MAINTAINERS (Reviewers): Add self as driver reviewer.
From-SVN: r151564
2009-09-09 17:42:18 +01:00
Richard Guenther
70a6b17e84 re PR tree-optimization/41101 (ICE in compute_antic, at tree-ssa-pre.c:2419)
2009-09-09  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/41101
	* tree-ssa-pre.c (maximal_set): Remove.
	(compute_antic_aux): Treat the maximal set as implicitly all ones.
	Defer all blocks we didn't visit at least one successor.
	(add_to_exp_gen): Do not add to the maximal set.
	(make_values_for_phi): Likewise.
	(compute_avail): Likewise.
	(init_pre): Do not allocate the maximal set.
	(execute_pre): Do not dump it.

	* gcc.c-torture/compile/pr41101.c: New testcase.

From-SVN: r151561
2009-09-09 15:04:27 +00:00
Martin Jambor
7648edc4d3 tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is an SSA_NAME rather than a is_gimple_variable.
2009-09-09  Martin Jambor  <mjambor@suse.cz>

	* tree-cfg.c (verify_gimple_phi): Check that gimple_phi_result is
	an SSA_NAME rather than a is_gimple_variable.

From-SVN: r151560
2009-09-09 16:44:23 +02:00
Richard Guenther
5a4b005fef re PR middle-end/41317 (folding causes strict aliasing violation)
2009-09-09  Richard Guenther  <rguenther@suse.de>

	PR middle-end/41317
	* tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Remove
	code dealing with plain pointer bases.
	(maybe_fold_offset_to_reference): Likewise.
	(maybe_fold_stmt_addition): Adjust.

	* gcc.c-torture/execute/pr41317.c: New testcase.
	* gcc.dg/tree-ssa/forwprop-11.c: XFAIL.
	* gcc.dg/tree-ssa/forwprop-12.c: Likewise.

From-SVN: r151559
2009-09-09 14:35:51 +00:00
Richard Guenther
ccffb7554e tree.c (free_lang_data_in_type): Do not free the type variant chains.
2009-09-09  Richard Guenther  <rguenther@suse.de>

	* tree.c (free_lang_data_in_type): Do not free the type variant
	chains.
	(free_lang_data): Merge char_type_node with its properly signed
	variant.
	(pass_ipa_free): Collect after freeing language specific data.

From-SVN: r151558
2009-09-09 09:30:26 +00:00
François-Xavier Coudert
e79faf7e44 * ChangeLog: Fix last entry.
From-SVN: r151557
2009-09-09 09:15:16 +00:00
Jack Howarth
f105647b0b re PR bootstrap/41180 (can not build gcc 4.4.1 on Snow Leopard Mac OS X 10.6)
PR bootstrap/41180
	* gcc/cp/Make-lang.in: Remove redundant code from linkage
	for darwin10.

From-SVN: r151554
2009-09-09 08:14:36 +00:00
Michael Matz
4e18a7d41d re PR middle-end/41268 (bootstrap is broken after r151350 (expand from tuples))
PR middle-end/41268
	* cfgexpand.c (expand_gimple_stmt_1): Use an int for storing
	SUBREG_PROMOTED_UNSIGNED_P, instead of a bool.
	* rtl.h (struct rtx, SUBREG_PROMOTED_UNSIGNED_P): Update comments
	to reflect reality.

From-SVN: r151544
2009-09-09 00:43:36 +00:00
DJ Delorie
5fb455bc70 * config/mep/mep.c (conversions[]): Add "ml" pattern.
From-SVN: r151543
2009-09-08 20:17:52 -04:00
GCC Administrator
06ae202234 Daily bump.
From-SVN: r151542
2009-09-09 00:17:01 +00:00
Dodji Seketeli
c0389e926a Use -fno-merge-debug-string for some dwarf tests
Use -fno-merge-debug-string to comply with Darwin
	* g++.dg/debug/dwarf2/namespace-1.C: Use -fno-merge-debug-string
	and adjust.
	* g++.dg/debug/dwarf2/template-func-params-6.C: Likewise.
	* g++.dg/debug/dwarf2/template-func-params-7.C: Likewise.
	* g++.dg/debug/dwarf2/template-params-6.C: Likewise.
	* g++.dg/debug/dwarf2/pubnames-1.C: Likewise. Also, adjust to
	take darwin specifics in account.

From-SVN: r151538
2009-09-09 00:36:41 +02:00
Joseph Myers
edf736cb4d profile-dir-1.c, [...]: Disable for remote-host testing.
* gcc.dg/profile-dir-1.c, gcc.dg/profile-dir-2.c,
	gcc.dg/profile-dir-3.c: Disable for remote-host testing.

From-SVN: r151537
2009-09-08 23:31:13 +01:00
Paolo Carlini
f8c6dba24e re PR c++/39923 ([C++0x] ICE in build_init_list_var_init)
/cp
2009-09-08  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/39923
	* decl.c (build_init_list_var_init): Check return value of
	perform_implicit_conversion.

/testsuite
2009-09-08  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/39923
	* g++.dg/cpp0x/initlist24.C: New.

From-SVN: r151536
2009-09-08 22:00:42 +00:00
Eric Botcazou
7c20033ecc decl.c (gnat_to_gnu_entity): Tidy flow of control.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
	flow of control.
	Avoid useless work when processing the Treat_As_Volatile flag.

From-SVN: r151535
2009-09-08 19:40:00 +00:00
Jason Merrill
d5df7223bf tree.c (tree_find_value): Remove.
* tree.c (tree_find_value): Remove.
	* tree.h: Remove prototype.
	* varasm.c (assemble_external): Use value_member instead.

From-SVN: r151534
2009-09-08 15:26:06 -04:00
Ozkan Sezer
60adb6417c large-size-array-2.c: Fix target requirement.
2009-09-08  Ozkan Sezer  <sezeroz@gmail.com>

        * gcc.dg/large-size-array-2.c: Fix target requirement.
        * gcc.dg/large-size-array-4.c: Likewise.
        * gcc.dg/c90-const-expr-2.c: Define ZERO as 0LL for _WIN64.
        * gcc.dg/c99-const-expr-2.c: Likewise.
        * gcc.dg/c90-const-expr-6.c: Typedef ptrdiff_t with __extension__.
        * gcc.dg/c90-const-expr-9.c: Typedef size_t with __extension__.
        * gcc.dg/c90-const-expr-10.c: Likewise.
        * gcc.dg/torture/pr39074.c: Use intptr_t typedef'ed as __PTRDIFF_TYPE__
        instead of long.
        * gcc.dg/tree-ssa/pr33920.c: Likewise.
        * gcc.dg/vect/pr33846.c: Likewise.
        * gcc.dg/vect/pr33833.c: Use uintptr_t, typedef'ed as unsigned
        __PTRDIFF_TYPE__, instead of unsigned long.
        * gcc.dg/vect/O1-pr33854.c: Use __SIZE_TYPE__ instead of unsigned long.

From-SVN: r151533
2009-09-08 21:16:18 +02:00
Richard Henderson
35ecd40884 tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are more VR->OPERANDS than LHS operands.
* tree-ssa-sccvn.c (vn_reference_lookup_3): Don't assume there are
        more VR->OPERANDS than LHS operands.  Free LHS before returning.

From-SVN: r151530
2009-09-08 11:35:24 -07:00
Jason Merrill
3e5e84be5a class.c (currently_open_class): Make sure we're dealing with the main variant.
* class.c (currently_open_class): Make sure we're dealing with the
	main variant.

From-SVN: r151529
2009-09-08 14:13:02 -04:00
Jason Merrill
ee18fe39d3 cp-tree.h (enum overload_flags): Remove OP_FLAG.
* cp-tree.h (enum overload_flags): Remove OP_FLAG.
	* method.c (lazily_declare_fn): Check for dtorness in ABI warning.

From-SVN: r151528
2009-09-08 14:12:54 -04:00
Jason Merrill
f33ab5c3f1 name-lookup.c (is_class_level): Remove.
* name-lookup.c (is_class_level): Remove.
	(push_binding_level, leave_scope, resume_scope): Adjust.
	(pushlevel_class): Adjust.
	(poplevel_class): Make sure we're on class_binding_level.

From-SVN: r151527
2009-09-08 14:12:45 -04:00
Jason Merrill
02c5ff73d4 decl.c (grokmethod): Rename from start_method.
* decl.c (grokmethod): Rename from start_method.
	(finish_method): Remove.
	* cp-tree.h: Adjust.
	* parser.c (cp_parser_save_member_function_body): Adjust.

From-SVN: r151526
2009-09-08 14:12:37 -04:00
Ralf Wildenhues
3e54529c11 Fix toplevel config.status for HP-UX sed.
/:
	* configure.ac: Do not use $extrasub for replacing @if/@endif
	parts in Makefile; instead, use additional arguments to
	AC_CONFIG_COMMANDS to do the replacement manually, with several
	sed invocations, to avoid HP-UX sed command limits.
	* configure: Regenerate.

From-SVN: r151525
2009-09-08 17:55:03 +00:00
Alexandre Oliva
6a57e634bf toplev.c (process_options): Choose default debugging type when gtoggle enables debug info and type is unset.
* toplev.c (process_options): Choose default debugging type when
gtoggle enables debug info and type is unset.

From-SVN: r151524
2009-09-08 17:44:50 +00:00
Alexandre Oliva
da4a947987 re PR debug/41276 (Segmentation fault in lookup_page_table_entry)
PR debug/41276
PR debug/41307
* cselib.c (cselib_expand_value_rtx_1): Don't return copy of
invalid subreg.

From-SVN: r151523
2009-09-08 17:44:10 +00:00