Commit Graph

95890 Commits

Author SHA1 Message Date
Bernd Schmidt
db689ed6ab From Jie Zhang <jie.zhang@analog.com>:
* config/bfin/bfin.c (bfin_expand_call): Handle L2 functions.
	(bfin_handle_l2_attribute): New.
	(bfin_attribute_table): Add l2 attribute.

From-SVN: r151634
2009-09-11 13:32:31 +00:00
Uros Bizjak
7c9162b24d * gcc.dg/pr39779.c: Remove for real.
From-SVN: r151632
2009-09-11 13:21:26 +02:00
Michael Matz
5c3ec539b7 re PR c++/41275 (ICE: expand_expr_real_1, at expr.c:8416)
PR middle-end/41275
	* tree-inline.c (remap_decls): Don't put DECL_EXTERNAL decls
	on the local_decls list.

testsuite/
	* g++.dg/tree-ssa/pr41275.C: New test.

From-SVN: r151631
2009-09-11 11:08:38 +00:00
Alexandre Oliva
0b7e34d7dd re PR debug/41276 (Segmentation fault in lookup_page_table_entry)
PR debug/41276
PR debug/41307
* cselib.c (cselib_expand_value_rtx_cb): Document callback
interface.
(cselib_expand_value_rtx_1): Use callback for SUBREGs.  Adjust
for VALUEs, to implement the documented interface.
* var-tracking.c (vt_expand_loc_callback): Handle SUBREGs.
Adjust for VALUEs and anything else, to implement the
documented interface.

From-SVN: r151628
2009-09-11 07:44:06 +00:00
Ralf Wildenhues
878f62e5bd Override all per-target *_LINK variables correctly.
boehm-gc/:
	* Makefile.am (libgcjgc_la_LINK, gctest_LINK): New.
	(gctest_LDADD): Depend on libgcjgc.la instead of ./libgcjgc.la,
	so that library dependency resolution works with portable make.
	* Makefile.in: Regenerate.

libgfortran/:
	* Makefile.am (libgfortranbegin_la_LINK): New.
	* Makefile.in: Regenerate.

libgomp/:
	* Makefile.am (libgomp_la_LINK): New.
	* Makefile.in: Regenerate.

libjava/:
	* Makefile.am (libgij_la_LINK, libjvm_la_LINK): New.
	* Makefile.in: Regenerate.

libstdc++-v3/:
	* src/Makefile.am (libstdc___la_LINK): New.
	* src/Makefile.in: Regenerate.

From-SVN: r151627
2009-09-11 05:02:20 +00:00
Nathan Froyd
b851135c6c rs6000.h (DATA_ALIGNMENT): Check that we are dealing with actual SPE/paired vector modes before using...
* config/rs6000/rs6000.h (DATA_ALIGNMENT): Check that we are dealing
	with actual SPE/paired vector modes before using 64-bit alignment.
	Check that TYPE is a REAL_TYPE for TARGET_E500_DOUBLE.

From-SVN: r151626
2009-09-11 03:20:37 +00:00
DJ Delorie
5ba863d70d mep.md (eh_epilogue): Defer until after epilogue is emitted.
* config/mep/mep.md (eh_epilogue): Defer until after epilogue is
emitted.

* config/mep/mep.h (LEGITIMATE_CONSTANT_P): New.
* config/mep/mep.c (mep_legitimate_constant_p): New.
* config/mep/mep-protos.h: Prototype it.

From-SVN: r151625
2009-09-10 21:06:36 -04:00
GCC Administrator
24f7037972 Daily bump.
From-SVN: r151624
2009-09-11 00:16:42 +00:00
Janus Weil
664e411ba5 re PR fortran/41242 (PPC call rejected (related to user-defined assignment?))
2009-09-11  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/41242
	* resolve.c (resolve_ordinary_assign): Don't call resolve_code,
	to avoid that subsequent codes are resolved more than once.
	(resolve_code): Make sure that type-bound assignment operators are
	resolved correctly.


2009-09-11  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/41242
	* gfortran.dg/proc_ptr_comp_21.f90: New.

From-SVN: r151620
2009-09-11 00:47:03 +02:00
Richard Henderson
68bcdeed11 * print-rtl.c (print_rtx): Fix JUMP_LABEL index.
From-SVN: r151619
2009-09-10 14:46:31 -07:00
Jason Merrill
ad42ff1e07 tree.c (chain_index): New fn.
* tree.c (chain_index): New fn.
	* tree.h: Declare it.

From-SVN: r151618
2009-09-10 17:40:06 -04:00
Steven G. Kargl
43dfd40c1d re PR fortran/31292 (ICE with module procedure interface in a procedure body)
2009-09-10  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/31292
	* fortran/decl.c(gfc_match_modproc): Check that module procedures
	from a module can USEd in module procedure statements in other
	program units.  Update locus for better error message display.
	Detect intrinsic procedures in module procedure statements.

2009-09-10  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/31292
	* gfortran.dg/module_procedure_1.f90: New test.
	* gfortran.dg/module_procedure_2.f90: Ditto.
	* gfortran.dg/generic_14.f90: Move dg-error to new location.

From-SVN: r151616
2009-09-10 21:22:08 +00:00
Rainer Orth
1382ae05e3 gcc/testsuite:
PR ada/18302
	* ada/acats/run_all.sh (target_run): Use run_test.exp to execute
	commands.
	* ada/acats/run_test.exp: New file.

	gcc/ada:

	PR ada/18302
	* gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.

Co-Authored-By: James A. Morrison <phython@gcc.gnu.org>

From-SVN: r151614
2009-09-10 20:36:19 +00:00
Rainer Orth
0e6748ab2c sol2-c.c (cmn_err_length_specs): Initialize scalar_identity_flag.
* config/sol2-c.c (cmn_err_length_specs): Initialize
	scalar_identity_flag.

From-SVN: r151613
2009-09-10 19:13:21 +00:00
Richard Henderson
b6777feaf5 tree.h (struct tree_decl_common): Move align member earlier; move label_decl_uid member ...
* tree.h (struct tree_decl_common): Move align member earlier;
        move label_decl_uid member ...
        (struct tree_label_decl): ... here.
        (LABEL_DECL_UID): Update to match.

From-SVN: r151610
2009-09-10 11:46:07 -07:00
Richard Henderson
feb4e5ba87 tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH, not TDF_DETAILS.
* tree-cfg.c (dump_function_to_file): Dump eh tree with TDF_EH,
        not TDF_DETAILS.

From-SVN: r151608
2009-09-10 11:28:24 -07:00
Richard Henderson
1c061be541 tree-cfg.c (gimple_redirect_edge_and_branch): Do gimple_try_redirect_by_replacing_jump test after no-op and EH tests.
* tree-cfg.c (gimple_redirect_edge_and_branch): Do
        gimple_try_redirect_by_replacing_jump test after no-op and EH tests.

From-SVN: r151607
2009-09-10 11:28:18 -07:00
Richard Henderson
88e24a5ab9 tree-cfg.c (split_edge_bb_loc): Don't disallow placement at dest_prev if the edge is complex.
* tree-cfg.c (split_edge_bb_loc): Don't disallow placement at
        dest_prev if the edge is complex.

From-SVN: r151606
2009-09-10 11:28:11 -07:00
Richard Henderson
40a3286202 * tree-cfg.c (is_ctrl_stmt): Use a switch.
From-SVN: r151605
2009-09-10 11:28:05 -07:00
Richard Henderson
8e7c5fddbe tree-cfg.c (gimple_can_merge_blocks_p): Move label and loop latch tests earlier.
* tree-cfg.c (gimple_can_merge_blocks_p): Move label and
        loop latch tests earlier.

From-SVN: r151604
2009-09-10 11:27:59 -07:00
Richard Henderson
07c358c60c gimple-iterator.c (gimple_find_edge_insert_loc): Insert before GIMPLE_RETURN, not after its predecessor; insert before GIMPLE_RESX.
* gimple-iterator.c (gimple_find_edge_insert_loc): Insert
        before GIMPLE_RETURN, not after its predecessor; insert
        before GIMPLE_RESX.

From-SVN: r151603
2009-09-10 11:27:51 -07:00
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