Commit Graph

115994 Commits

Author SHA1 Message Date
Richard Henderson
7b470faf61 * dwarf2out.c (gen_variable_die): Initialize off.
From-SVN: r186016
2012-03-30 11:00:03 -07:00
Uros Bizjak
7ffeb78e28 * ChangeLog: Fix last entry.
From-SVN: r186015
2012-03-30 17:38:31 +02:00
Tristan Gingold
c531f06a2a vms-f.c: New file.
2012-03-30  Tristan Gingold  <gingold@adacore.com>

	* config/vms/vms-f.c: New file.
	* config/vms/t-vms (vms-f.o): New rule.
	* config.gcc (*-*-*vms*): Define fortran_target_objs.

From-SVN: r186013
2012-03-30 13:54:23 +00:00
Richard Guenther
fef205d534 re PR other/52754 (indirect indexing broken with -fpredictive-commoning)
2012-03-30  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/52754
	* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
	propagate arbitrary addresses into really plain dereferences.

	* gcc.target/i386/pr52754.c: New testcase.

From-SVN: r186012
2012-03-30 13:41:24 +00:00
Richard Guenther
0b7fccfaf2 re PR c++/52772 (internal compiler error: Segmentation fault)
2012-03-30  Richard Guenther <rguenther@suse.de>

	PR middle-end/52772
	* except.c (emit_to_new_bb_before): Move loop updating ...
	(dw2_build_landing_pads): ... here.  Use a proper block for
	querying the loop father.

	* g++.dg/torture/pr52772.C: New testcase.

From-SVN: r186011
2012-03-30 13:40:17 +00:00
Tristan Gingold
fe5798c059 ia64.c (ia64_section_type_flags): Remove common_object attribute handling.
2012-03-30  Tristan Gingold  <gingold@adacore.com>

	* config/ia64/ia64.c (ia64_section_type_flags): Remove
	common_object attribute handling.
	(SECTION_VMS_OVERLAY): Remove
	(ia64_vms_common_object_attribute): Replace abort with an assert.
	Do not set DECL_SECTION_NAME.
	(ia64_vms_output_aligned_decl_common): Handle common_object
	attribute.
	(ia64_vms_elf_asm_named_section): Remove.
	* config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.

From-SVN: r186010
2012-03-30 13:25:45 +00:00
Uros Bizjak
5cc553023d * ChangeLog: Fix entry.
From-SVN: r186009
2012-03-30 13:12:29 +02:00
Uros Bizjak
0b20f4a6ca re PR libfortran/52758 (libgfortran/intrinsics/chmod.c: Array index out of bounds)
PR libgfortran/52758
	* intrinsics/chmod.c: Remove out-of-bound initialization of rwxXstugo.

From-SVN: r186008
2012-03-30 13:07:46 +02:00
Arnaud Charlet
4b985e2054 [multiple changes]
2012-03-30  Robert Dewar  <dewar@adacore.com>

	* exp_ch5.adb, sem_util.adb, exp_ch4.adb: Minor comment updates.

2012-03-30  Yannick Moy  <moy@adacore.com>

	* lib-xref-alfa.adb (Add_Alfa_File): Treat possibly 2 units at the same
	time, putting all scopes in the same Alfa file.
	(Add_Alfa_Xrefs): Correct errors in comparison function. Correct value
	of Def component.
	(Collect_Alfa): Possibly pass 2 units to Add_Alfa_File.

From-SVN: r186006
2012-03-30 11:32:55 +02:00
Arnaud Charlet
e0adfeb41a [multiple changes]
2012-03-30  Hristian Kirtchev  <kirtchev@adacore.com>

	* exp_util.adb (Is_Secondary_Stack_BIP_Func_Call): Handle a case where
	a build-in-place call appears as Prefix'Reference'Reference.

2012-03-30  Yannick Moy  <moy@adacore.com>

	* lib-xref-alfa.adb: Minor refactoring to remove internal package.

2012-03-30  Hristian Kirtchev  <kirtchev@adacore.com>

	* sem_ch5.adb (Analyze_Iteration_Scheme): Preanalyze the subtype
	definition of a loop when the context is a quantified expression.

2012-03-30  Vincent Celier  <celier@adacore.com>

	* prj.ads: Minor comment update.

From-SVN: r186005
2012-03-30 11:29:15 +02:00
Yannick Moy
ce5c2061b4 lib-xref-alfa.adb, [...]: Minor addition of comments and refactoring.
2012-03-30  Yannick Moy  <moy@adacore.com>

	* lib-xref-alfa.adb, alloc.ads, lib-xref.ads: Minor addition of
	comments and refactoring.

From-SVN: r186004
2012-03-30 11:26:59 +02:00
Robert Dewar
5b0113d671 lib-xref.adb, [...]: Minor reformatting & code reorganization.
2012-03-30  Robert Dewar  <dewar@adacore.com>

	* lib-xref.adb, lib-xref-alfa.adb: Minor reformatting & code
	reorganization.

From-SVN: r186003
2012-03-30 11:26:00 +02:00
Yannick Moy
23e7bf6a4e lib-xref-alfa.adb (Generate_Dereference): Use Get_Code_Unit instead of Get_Source_Unit to get file for reference.
2012-03-30  Yannick Moy  <moy@adacore.com>

	* lib-xref-alfa.adb (Generate_Dereference): Use Get_Code_Unit
	instead of Get_Source_Unit to get file for reference.
	(Traverse_Compilation_Unit): Do not add scopes for generic units.
	* lib-xref.adb (Generate_Reference): Use Get_Code_Unit instead
	of Get_Source_Unit to get file for reference.
	* sem_ch12.adb (Analyze_Package_Instantiation): Enable
	instantiation in Alfa mode.

From-SVN: r186002
2012-03-30 11:24:09 +02:00
Arnaud Charlet
cdc96e3ea6 [multiple changes]
2012-03-30  Hristian Kirtchev  <kirtchev@adacore.com>

	* exp_ch7.adb (Process_Declarations): Replace
	the call to Is_Null_Access_BIP_Func_Call with
	Is_Secondary_Stack_BIP_Func_Call. Update the related comment.
	* exp_util.adb (Is_Null_Access_BIP_Func_Call): Removed.
	(Is_Secondary_Stack_BIP_Func_Call): New routine.
	(Requires_Cleanup_Actions): Replace
	the call to Is_Null_Access_BIP_Func_Call with
	Is_Secondary_Stack_BIP_Func_Call. Update the related comment.
	* exp_util.ads (Is_Null_Access_BIP_Func_Call): Removed.
	(Is_Secondary_Stack_BIP_Func_Call): New routine.

2012-03-30  Yannick Moy  <moy@adacore.com>

	* lib-xref-alfa.adb, lib-xref.adb: Code clean ups.

From-SVN: r186001
2012-03-30 11:21:43 +02:00
Richard Guenther
5cf01d62a8 re PR other/52786 (double-int.c:231:31: error: comparison between signed and unsigned)
2012-03-30  Richard Guenther  <rguenther@suse.de>

	PR middle-end/52786
	* double-int.c (rshift_double): Remove not needed cast.

From-SVN: r186000
2012-03-30 09:20:54 +00:00
Arnaud Charlet
207503fa51 [multiple changes]
2012-03-30  Gary Dismukes  <dismukes@adacore.com>

	* exp_ch5.adb (Expand_Iterator_Loop_Over_Array): For the case of a
	loop entity which is rewritten as a renaming
	of the indexed array, explicitly mark the entity as needing
	debug info so that Materialize entity will be set later by
	Debug_Renaming_Declaration when the renaming is expanded.

2012-03-30  Robert Dewar  <dewar@adacore.com>

	* sem_attr.ads: Update comment.

From-SVN: r185999
2012-03-30 11:17:34 +02:00
Arnaud Charlet
50421527ec [multiple changes]
2012-03-30  Vincent Celier  <celier@adacore.com>

	* prj.ads: New Dependency_Kind: ALI_Closure.

2012-03-30  Thomas Quinot  <quinot@adacore.com>

	* exp_pakd.adb: Minor reformatting.

From-SVN: r185998
2012-03-30 11:15:22 +02:00
Yannick Moy
2fa3b95556 lib-xref-alfa.adb (Add_Alfa_File): Take into account possible absence of compilation unit for unit in Sdep_Table.
2012-03-30  Yannick Moy  <moy@adacore.com>

	* lib-xref-alfa.adb (Add_Alfa_File): Take into account possible absence
	of compilation unit for unit in Sdep_Table.

From-SVN: r185997
2012-03-30 11:13:48 +02:00
Thomas Quinot
702d139e26 freeze.adb (Freeze_Record_Type): For a type with reversed bit order and reversed storage order...
2012-03-30  Thomas Quinot  <quinot@adacore.com>

	* freeze.adb (Freeze_Record_Type): For a type with reversed bit
	order and reversed storage order, disable front-end relayout.

From-SVN: r185996
2012-03-30 11:11:38 +02:00
Richard Guenther
aeb83f098d tree-affine.h (print_aff): Remove.
2012-03-30  Richard Guenther  <rguenther@suse.de>

	* tree-affine.h (print_aff): Remove.
	* tree-affine.c (print_aff): Make static.
	* tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
	(get_references_in_stmt): Likewise.
	(print_direction_vector): Likewise.
	(print_dir_vectors): Likewise.
	(print_dist_vectors): Likewise.
	(dump_subscript): Likewise.
	(dump_ddrs): Likewise.
	(dump_dist_dir_vectors): Likewise.
	(dump_data_references): Likewise.
	(dump_data_dependence_relation): Likewise.
	(dump_data_dependence_direction): Likewise.
	(dump_rdg_vertex): Likewise.
	(dump_rdg_component): Likewise.
	(debug_ddrs): Declare.
	(struct data_ref_loc_d): Move ...
	* tree-data-ref.c (struct data_ref_loc_d): ... here.
	(get_references_in_stmt): Make static.
	(dump_data_references): Likewise.
	(dump_subscript): Likewise.
	(print_direction_vector): Likewise.
	(print_dir_vectors): Likewise.
	(print_dist_vectors): Likewise.
	(dump_data_dependence_relation): Likewise.
	(dump_dist_dir_vectors): Likewise.
	(dump_ddrs): Likewise.
	(dump_rdg_vertex): Likewise.
	(dump_rdg_component): Likewise.
	(debug_ddrs): New function.
	(access_matrix_get_index_for_parameter): Remove.

From-SVN: r185994
2012-03-30 08:52:32 +00:00
Tristan Gingold
b9268e550b vms.c (VMS_CRTL_FLOAT32): Rename.
2012-03-30  Tristan Gingold  <gingold@adacore.com>

	* config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
	(VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
	(VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
	(VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
	(VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
	(vms_patch_builtins): Handle new flags
	* config/vms/vms-crtlmap.map: Completed using nm on
	c and math system libraries.
	* config/vms/make-crtlmap.awk: Handle any number of flags.

From-SVN: r185993
2012-03-30 08:42:47 +00:00
Ian Lance Taylor
50f671c667 compiler: Fix order of evaluation of struct composite literals.
From-SVN: r185990
2012-03-30 04:59:02 +00:00
GCC Administrator
7b770e43ee Daily bump.
From-SVN: r185988
2012-03-30 00:18:21 +00:00
Paolo Carlini
9f693d564f re PR c++/52718 (-Wzero-as-null-pointer-constant: misleading location for 0 as default argument)
/cp
2012-03-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52718
	* decl.c (check_default_argument): With -Wzero-as-null-pointer-constant
	warn for a zero as null pointer constant default argument.

/testsuite
2012-03-29  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52718
	* g++.dg/warn/Wzero-as-null-pointer-constant-5.C: New.

From-SVN: r185983
2012-03-29 22:45:46 +00:00
Martin Jambor
b9bebd7f03 tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there is a builtin_stack_save in a dominating BB.
2012-03-30  Martin Jambor  <mjambor@suse.cz>

	* tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
	is a builtin_stack_save in a dominating BB.

From-SVN: r185982
2012-03-30 00:29:10 +02:00
Uros Bizjak
a15d0d03ae sse.md (avx_h<plusminus_insn>v4df3): Fix results crossing 128bit lane boundary.
* config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
	crossing 128bit lane boundary.

From-SVN: r185978
2012-03-29 23:57:30 +02:00
Steven Bosscher
63737e7a0c re PR java/52730 (Java front end emits assembly)
PR java/52730
	* class.c (emit_register_classes_in_jcr_section): New function.
	(emit_Jv_RegisterClass_calls): New function, split out from ...
	(emit_register_classes): ... here. Reorganize.  Do not call
	output_constant.

From-SVN: r185977
2012-03-29 21:00:23 +00:00
Vladimir Makarov
d79318b79c ira-color.c (setup_left_conflict_sizes_p): Process all conflicting objects.
2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>

	* ira-color.c (setup_left_conflict_sizes_p): Process all
	conflicting objects.

From-SVN: r185971
2012-03-29 17:23:39 +00:00
Jason Merrill
0526229463 re PR c++/52685 (ICE in copy_binfo)
PR c++/52685
	* tree.c (copy_binfo): Handle BINFO_DEPENDENT_BASE_P.

From-SVN: r185968
2012-03-29 11:55:01 -04:00
Jakub Jelinek
3cb04a5317 re PR c++/52759 (ICE in cp/mangle.c)
PR c++/52759
	* decl.c (start_decl): Don't call maybe_apply_pragma_weak
	if processing_template_decl.

	* g++.dg/ext/weak4.C: New test.

From-SVN: r185966
2012-03-29 17:02:38 +02:00
Jakub Jelinek
b84b294aaf re PR tree-optimization/52760 (Revision 185599 causes miscompare on sphinx3)
PR tree-optimization/52760
	* tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
	shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).

	* gcc.c-torture/execute/pr52760.c: New test.

From-SVN: r185965
2012-03-29 16:55:53 +02:00
Jason Merrill
37b9a3bd0b re PR c++/52743 (g++-4.7.0 seg faults on overload functions.)
PR c++/52743
	* call.c (compare_ics): Handle ck_aggr like ck_list.

From-SVN: r185963
2012-03-29 10:14:00 -04:00
Richard Guenther
711417cd3b cgraph.h (cgraph_materialize_all_clones): Remove.
2012-03-29  Richard Guenther  <rguenther@suse.de>

	* cgraph.h (cgraph_materialize_all_clones): Remove.
	(reset_inline_failed): Likewise.
	* cgraphunit.c (cgraph_materialize_all_clones): Make static.
	* cgraphbuild.c (reset_inline_failed): Remove.
	* rtl.h (cse_main): Remove.
	(extended_count): Likewise.
	* cse.c (dump_class): Mark as DEBUG_FUNCTION.
	(cse_main): Make static.
	* combine.c (extended_count): Remove.
	(dump_combine_stats): Mark as DEBUG_FUNCTION.
	* basic-block.h (reorder_basic_blocks): Remove.
	* bb-reorder.c (reorder_basic_blocks): Make static.
	* Makefile.in (dse.o): Remove dse.h dependency.
	* dse.h: Remove.
	* dse.c (gate_dse): Remove.
	(clear_alias_mode_eq): Likewise.
	(clear_alias_mode_hash): Likewise.
	(dse_record_singleton_alias_set): Likewise.
	(dse_invalidate_singleton_alias_set): Likewise.

From-SVN: r185962
2012-03-29 13:54:16 +00:00
H.J. Lu
a1ecc15c21 Use crtbegin_so%O%s/crtend_so%O%s for -mandroid -shared
2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>

	* config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
	crtbegin_so%O%s for -shared.
	(ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.

From-SVN: r185958
2012-03-29 05:57:05 -07:00
H.J. Lu
6401aaf5df Define x86_64_fallback_frame_state only for glibc
2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/linux-unwind.h (x86_64_fallback_frame_state): Define
	only for glibc.

From-SVN: r185957
2012-03-29 05:48:08 -07:00
Richard Guenther
6bcfb75385 tree-flow.h (struct pre_expr_d): Remove forward declaration.
2012-03-29  Richard Guenther  <rguenther@suse.de>

	* tree-flow.h (struct pre_expr_d): Remove forward declaration.
	(add_to_value): Remove.
	(print_value_expressions): Likewise.
	* tree-ssa-pre.c (add_to_value): Make static.
	(print_value_expressions): Likewise.
	* gimple.h (gimple_adjust_this_by_delta): Remove.
	* gimple-fold.c (gimple_adjust_this_by_delta): Likewise.

From-SVN: r185956
2012-03-29 12:47:51 +00:00
Anthony Green
6adb730866 Restore trampled commits
From-SVN: r185955
2012-03-29 12:41:52 +00:00
Richard Guenther
477fcae3e8 re PR middle-end/50708 (Infinite loop between rshift_double and lshift_double if count is LONG_MIN)
2012-03-29  Richard Guenther  <rguenther@suse.de>

	PR middle-end/50708
	* double-int.h (rshift_double): Remove.
	* double-int.c (lshift_double): Use absu_hwi to make count
	positive.
	(rshift_double): Make static, take unsigned count argument,
	remove handling of negative count argument.
	(double_int_rshift): Dispatch to lshift_double.

From-SVN: r185951
2012-03-29 08:27:04 +00:00
Benjamin Kosnik
0b28472897 re PR libstdc++/52689 (static linking with libstdc++ fails)
2012-03-28  Benjamin Kosnik  <bkoz@redhat.com>

	PR libstdc++/52689
	* libsupc++/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
	* libsupc++/Makefile.in: Regenerated.
	* src/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
	(libstdc___la_SOURCES): Add in compatiblity files, with content
	that varies with -DPIC.
	* src/Makefile.in: Regenerated.
	* src/c++11/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
	* src/c++11/Makefile.in: Regenerated.
	* src/c++11/compatibility-atomic-c++0x.cc: Guard with PIC.
	* src/c++11/compatibility-c++0x.cc: Same.
	* src/c++11/future.cc: Consolidate compatibility bits into..
	* src/c++11/mutex.cc: Consolidate compatibility bits into..
	* src/c++11/compatibility-thread-cxx0x.cc: ...here. New.
	* src/c++98/Makefile.am (LTCXXCOMPILE, CXXLINK): Tweak.
	* src/c++98/Makefile.in: Regenerated.
	* src/c++98/compatibility-ldbl.cc: Guard with PIC
	* src/c++98/compatibility-list-2.cc: Same.
	* src/c++98/compatibility-list.cc: Same.
	* src/c++98/compatibility.cc: Tweak comments.

From-SVN: r185950
2012-03-29 06:14:32 +00:00
Ian Lance Taylor
a0c8ad3bdf compiler, libgo: unsafe.{Sizeof,Alignof,Offsetof} return uintptr.
From-SVN: r185946
2012-03-29 03:53:13 +00:00
Jason Merrill
917c1602aa re PR c++/52746 (Explicit virtual destructor call replaced by direct call in template function)
PR c++/52746
	* typeck.c (lookup_destructor): Clear BASELINK_QUALIFIED_P if
	we didn't get an explicit scope.
	* pt.c (tsubst_baselink): Likewise.

From-SVN: r185945
2012-03-28 22:58:29 -04:00
GCC Administrator
8187e104e7 Daily bump.
From-SVN: r185943
2012-03-29 00:19:04 +00:00
Ian Lance Taylor
199ebde370 mksysinfo: Fix use of _in6_addr in _zone_net_addr_t.
From Rainer Orth.

From-SVN: r185938
2012-03-28 23:19:06 +00:00
H.J. Lu
1ab8b791c8 Add ABI_64 and replace ISA_X32 with ABI_X32
2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
	OPTION_MASK_ABI_64.

	* config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
	(SPEC_X32): Likewise.
	(MULTILIB_DEFAULTS): Likewise.

	* config/i386/i386.c (isa_opts): Remove -m64.
	(ix86_target_string): Properly handle -m32/-m64/-mx32.
	(ix86_option_override_internal): Properly
	set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
	handle -m32, -m64 and -mx32.

	* config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
	with OPTION_ABI_X32.  Moved after TARGET_LP64.
	(TARGET_LP64): Changed to OPTION_ABI_64.

	* config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
	(mx32): Replace ISA_X32 with ABI_X32.

From-SVN: r185937
2012-03-28 15:42:28 -07:00
Ian Lance Taylor
2e540b5059 compiler: fix null-dereference on invalid len() arg.
This patch fixes an ICE caused by syntax errors in arguments
to unary built-in functions like len().

Updates issue 7.

From Rémy Oudompheng.

From-SVN: r185935
2012-03-28 22:31:02 +00:00
Ian Lance Taylor
1fbb888cfc compiler: avoid an ICE on bound interface methods used as values.
Updates issue 7.

From-SVN: r185933
2012-03-28 22:25:37 +00:00
Ian Lance Taylor
350733e388 compiler: fix method finalization of unnamed structs.
Used to trigger an ICE on
  var v struct{I}; type I interface{}

Updates issue 7.

From-SVN: r185931
2012-03-28 22:21:57 +00:00
Eric Botcazou
2defb110db * tree.c (tree_size) <VECTOR_CST>: New case.
From-SVN: r185930
2012-03-28 21:59:23 +00:00
Ian Lance Taylor
552ab9772f compiler: fix crashes.
The compiler would crash on:
        if true || x, y := 1, 2 {}
and
        var s string
        s = append(s, "hello")

Reported in issue 3186.

From-SVN: r185928
2012-03-28 21:33:15 +00:00
Uros Bizjak
2310e4504d i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
* config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
	(ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.

From-SVN: r185927
2012-03-28 23:28:15 +02:00