Commit Graph

107947 Commits

Author SHA1 Message Date
Joseph Myers
413519aef8 options.texi (ToLower): Document.
* doc/options.texi (ToLower): Document.
	* opt-functions.awk (switch_bit_fields): Initialize cl_tolower
	field.
	* opts-common.c (decode_cmdline_option): Handle cl_tolower.
	* opts.h (cl_option): Add cl_tolower field.
	* config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
	arguments with lowercase strings.
	* config/rx/rx.opt (mcpu=): Add ToLower.
	* config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
	argument.

From-SVN: r171932
2011-04-04 11:17:11 +01:00
Jakub Jelinek
2aeaa366ad re PR debug/48401 (ICE: RTL check: access of elt 4 of 'var_location' with last elt 2 in expand_gimple_basic_block, at cfgexpand.c:3585)
PR debug/48401
	* cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
	Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.

From-SVN: r171930
2011-04-04 11:48:45 +02:00
Richard Sandiford
7d34a1b095 pdp11.h (IRA_COVER_CLASSES): Delete.
gcc/
	* config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.

From-SVN: r171929
2011-04-04 08:11:37 +00:00
Richard Sandiford
c30e7434d8 vax.c: Include reload.h.
gcc/
	* config/vax/vax.c: Include reload.h.

From-SVN: r171928
2011-04-04 08:09:34 +00:00
Uros Bizjak
e9c18386c7 * gcc/ChangeLog: Fix formatting.
From-SVN: r171927
2011-04-04 09:37:46 +02:00
Kai Tietz
ab380bb46e re PR ada/47163 (Failure building target-libada for MingW64)
2011-04-04  Kai Tietz  <ktietz@redhat.com>

        PR ada/47163
        * s-oscons-tmplt.c (MSG_WAITALL): Define it for native windows
        targets to flag value.

From-SVN: r171926
2011-04-04 09:31:11 +02:00
Anatoly Sokolov
112a861d6d sparc.h (PREFERRED_RELOAD_CLASS): Remove.
* config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
	* config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
	(sparc_preferred_reload_class): New function.

From-SVN: r171925
2011-04-04 11:11:51 +04:00
Jakub Jelinek
e8c6bb7473 re PR debug/48401 (ICE: RTL check: access of elt 4 of 'var_location' with last elt 2 in expand_gimple_basic_block, at cfgexpand.c:3585)
PR debug/48404
	* cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
	Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.

From-SVN: r171924
2011-04-04 09:02:50 +02:00
Nathan Froyd
2c081cafc8 tree.h (struct tree_const_decl): Inherit from tree_decl_common.
* tree.h (struct tree_const_decl): Inherit from tree_decl_common.
	* tree.c (initialize_tree_contains_struct): Adjust accordingly.

From-SVN: r171923
2011-04-04 01:40:17 +00:00
GCC Administrator
b4dcc39363 Daily bump.
From-SVN: r171922
2011-04-04 00:17:50 +00:00
Ian Lance Taylor
a9ac13f7bf Start using backend interface separate from gofrontend.
* go-gcc.cc: New file.
	* Make-lang.in (GO_OBJS): Add go/go-gcc.o.
	(go/go-gcc.o): New target.
	(go/go.o): Depend on go/gofrontend/backend.h.
	(go/statements.o): Likewise.

From-SVN: r171917
2011-04-03 22:44:18 +00:00
Kai Tietz
3edf1dd5bd re PR middle-end/48422 (bootstrap failure for i686-*-* targets by ICE)
2011-04-03  Kai Tietz  <ktietz@redhat.com>

        PR middle-end/48422
        * Make-lang.in (f95-lang.o): Add some missing dependencies.

From-SVN: r171916
2011-04-03 22:09:46 +02:00
Anatoly Sokolov
53802f278c avr.h (ASM_OUTPUT_BSS): Remove.
* config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
	(ASM_OUTPUT_ALIGNED_BSS): Define.

From-SVN: r171915
2011-04-03 23:43:49 +04:00
Tobias Burnus
1e4eb7bba3 re PR fortran/48311 ([Quadmath] Documentation - typo, order)
2011-04-03  Tobias Burnus  <burnus@net-b.de>

       PR fortran/48311
       * libquadmath.texi (strtoflt128): Fix typo.
       (quadmath_snprintf): Move note up, make @item.

From-SVN: r171914
2011-04-03 20:45:16 +02:00
Ian Lance Taylor
3b66f10536 Mark as executable in SVN.
From-SVN: r171913
2011-04-03 16:14:19 +00:00
Tobias Burnus
3aa8b384e3 bessel_6.f90: Reduce mymax for Tru64.
2011-04-03  Tobias Burnus  <burnus@net-b.de>

       * gfortran.dg/bessel_6.f90: Reduce mymax for Tru64.

From-SVN: r171912
2011-04-03 18:04:25 +02:00
Tobias Burnus
99ebea0382 unix.c: Adapt stat DEFINEs since MinGW64 supports LFS.
2011-04-04  Tobias Burnus  <burnus@net-b.de>

        * unix.c: Adapt stat DEFINEs since MinGW64 supports LFS.
        (fallback_access, open_internal4, compare_file_filename,
        find_file, file_size, inquire_sequential, inquire_direct,
        inquire_formatted): Use "struct stat" instead of gfstat_t.

From-SVN: r171911
2011-04-03 17:44:02 +02:00
Joseph Myers
6733afe1b8 be.po, [...]: Update.
* be.po, ca.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po,
	ja.po, nl.po, ru.po, sv.po, tr.po, uk,po, vi.po, zh_CN.po,
	zh_TW.po: Update.

From-SVN: r171909
2011-04-03 12:33:31 +01:00
Joseph Myers
a01c413422 be.po, [...]: Update.
* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, id.po, ja.po,
	nl.po, ru.po, sr.po, sv.po, tr.po, vi.po, zh_CN.po, zh_TW.po:
	Update.

From-SVN: r171907
2011-04-03 12:30:18 +01:00
Michael Matz
e89964e31c lto-streamer.h (struct lto_streamer_cache_d): Remove offsets and next_slot members.
* lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
	and next_slot members.
	(lto_streamer_cache_insert, lto_streamer_cache_insert_at,
	lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
	(lto_streamer_cache_append): Declare.
	* lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
	unsigned index, remove offset parameter, ensure that we append
	or update existing entries.
	(lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
	parameter, update next_slot for append.
	(lto_streamer_cache_insert): Use unsigned index, remove offset_p
	parameter.
	(lto_streamer_cache_insert_at): Likewise.
	(lto_streamer_cache_append): New function.
	(lto_streamer_cache_lookup): Use unsigned index.
	(lto_streamer_cache_get): Likewise.
	(lto_record_common_node): Don't test tree_node_can_be_shared.
	(preload_common_node): Adjust call to lto_streamer_cache_insert.
	(lto_streamer_cache_delete): Don't free offsets member.
	* lto-streamer-out.c (eq_string_slot_node): Use memcmp.
	(lto_output_string_with_length): Use lto_output_data_stream.
	(lto_output_tree_header): Remove ix parameter, don't write it.
	(lto_output_builtin_tree): Likewise.
	(lto_write_tree): Adjust callers to above, don't track and write
	offset, write unsigned index.
	(output_unreferenced_globals): Don't emit all global vars.
	(write_global_references): Use unsigned indices.
	(lto_output_decl_state_refs): Likewise.
	(write_symbol): Likewise.
	* lto-streamer-in.c (lto_input_chain): Move earlier.
	(input_function): Use unsigned index.
	(input_alias_pairs): Don't read and then ignore all global vars.
	(lto_materialize_tree): Remove ix_p parameter, don't read index,
	don't pass it back, use lto_streamer_cache_append.
	(lto_register_var_decl_in_symtab): Use unsigned index.
	(lto_register_function_decl_in_symtab): Likewise.
	(lto_get_pickled_tree): Don't read in or handle offset, read unsigned
	index.
	(lto_get_builtin_tree): Don't read index, use
	lto_streamer_cache_append.
	(lto_read_tree): Adjust call to lto_materialize_tree.

	* ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
	don't use function calls in arguments to MIN.

	* varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
	twice.

	* gimple.c (gimple_type_leader_entry): Mark deletable.

lto/
	* lto.c (lto_materialize_function): Don't read and then discard
	sections in WPA mode.
	(lto_read_in_decl_state): Adjust call to lto_streamer_cache_get.

	* lto-lang.c (registered_builtin_fndecls): Remove.
	(lto_getdecls): Return NULL_TREE.
	(lto_builtin_function): Don't remember in registered_builtin_fndecls.

From-SVN: r171906
2011-04-03 11:21:06 +00:00
Alan Modra
b9a5b5b2a2 dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
* dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.

From-SVN: r171905
2011-04-03 20:46:20 +09:30
Michael Matz
ac6a641b41 tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not an integer.
* tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
	an integer.
	* tree.h (tree_decl_non_common.vindex): Adjust comment.

From-SVN: r171904
2011-04-03 11:14:14 +00:00
Michael Matz
0038d4e090 cgraphbuild.c (record_reference): Canonicalize constructor values.
* cgraphbuild.c (record_reference): Canonicalize constructor
	values.
	* gimple-fold.c (canonicalize_constructor_val): Accept being called
	without function context.
	* cgraphunit.c (cgraph_finalize_compilation_unit): Clear
	current_function_decl and cfun.

From-SVN: r171903
2011-04-03 11:13:09 +00:00
Michael Matz
91f2fae8cc tree.c (decl_init_priority_insert): Don't create entry for default priority.
* tree.c (decl_init_priority_insert): Don't create entry for
	default priority.
	(decl_fini_priority_insert): Ditto.
	(fields_compatible_p, find_compatible_field): Remove.
	* tree.h (fields_compatible_p, find_compatible_field): Remove.
	* gimple.c (gimple_compare_field_offset): Adjust block comment.

From-SVN: r171902
2011-04-03 11:11:25 +00:00
Eric Botcazou
da29e0700f * combine.c (try_combine): Remove useless local variable.
From-SVN: r171901
2011-04-03 09:19:26 +00:00
Richard Guenther
4979c28bc9 tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all non-variable offsets and compare the remaining bases of the two...
* tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
	non-variable offsets and compare the remaining bases of the two
	accesses instead of looking for exact same data-ref.


Co-Authored-By: Ira Rosen <ira.rosen@linaro.org>

From-SVN: r171900
2011-04-03 08:30:53 +00:00
GCC Administrator
b5f3cf4982 Daily bump.
From-SVN: r171899
2011-04-03 00:17:58 +00:00
Jonathan Wakely
0569d07d16 re PR libstdc++/48398 ([C++0x] std::unique_ptr<T, D> is broken when D::pointer is not T*)
2011-04-02  Jonathan Wakely  <redi@gcc.gnu.org>

	PR libstdc++/48398
	* include/bits/unique_ptr.h (__tuple_type): Store pointer type.
	* testsuite/20_util/unique_ptr/modifiers/48398.cc: New.
	* testsuite/20_util/unique_ptr/requirements/pointer_type.cc: Remove
	unused parameter name.

From-SVN: r171894
2011-04-02 20:32:15 +01:00
Jonathan Wakely
79455ea1f8 Add missing change log for r171531
From-SVN: r171893
2011-04-02 20:31:04 +01:00
Kai Tietz
f90298e1d0 re PR target/48416 (Revision 171890 failed to build)
2011-04-02  Kai Tietz  <ktietz@redhat.com>

        PR target/48416
        * i386.c (ix86_function_arg_boundary): Fix printf formatter.

From-SVN: r171892
2011-04-02 20:41:49 +02:00
Kai Tietz
1cd8eab12b Restore old state for accidentially escaped local change.
From-SVN: r171891
2011-04-02 20:37:54 +02:00
Kai Tietz
b4ddcaeeaa i386.c (ix86_is_msabi_thiscall): New helper function.
2011-04-02  Kai Tietz  <ktietz@redhat.com>

	* i386.c (ix86_is_msabi_thiscall): New helper function.
	(ix86_is_type_thiscall): New helper function.
	(ix86_comp_type_attributes): Handle thiscall for method-functions
	special.
	(init_cumulative_args): Likewise.
	(find_drap_reg): Likewise.
	(ix86_static_chain): Likewise.
	(x86_this_parameter): Likewise.
	(x86_output_mi_thunk): Likewise.

From-SVN: r171890
2011-04-02 19:08:33 +02:00
Eric Botcazou
8ffac116df utils2.c (build_allocator): In the unconstrained array type case...
* gcc-interface/utils2.c (build_allocator): In the unconstrained array
	type case, do not strip a padding type around the array type.

From-SVN: r171888
2011-04-02 09:38:22 +00:00
Eric Botcazou
de9528f029 utils.c (update_pointer_to): Finalize named pointer types.
* gcc-interface/utils.c (update_pointer_to): Finalize named pointer
	types.

From-SVN: r171887
2011-04-02 09:20:38 +00:00
Eric Botcazou
d9d7a26cf1 lang.opt (feliminate-unused-debug-types): Delete.
* gcc-interface/lang.opt (feliminate-unused-debug-types): Delete.
	* gcc-interface/misc.c (gnat_handle_option): Remove special handling
	code for -feliminate-unused-debug-types
	(gnat_post_options): Likewise.

From-SVN: r171886
2011-04-02 09:08:37 +00:00
Eric Botcazou
4cb12a90e7 utils.c (gnat_pushdecl): If this is a non-artificial declaration of a pointer type...
* gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
	declaration of a pointer type, then set DECL_ORIGINAL_TYPE to a
	distinct copy.

From-SVN: r171885
2011-04-02 08:59:45 +00:00
Eric Botcazou
acccc61c77 decl.c (gnat_to_gnu_entity): Do not force the DECL_ARTIFICIAL flag on enumeration types.
* gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
	DECL_ARTIFICIAL flag on enumeration types.

From-SVN: r171884
2011-04-02 08:54:18 +00:00
Eric Botcazou
583eb0c997 decl.c (gnat_to_gnu_entity): Do not make fat pointer types artificial unconditionally.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not make
	fat pointer types artificial unconditionally.
	<E_Array_Subtype>: Attach the base array type as a parallel type if it
	isn't artificial.

From-SVN: r171883
2011-04-02 08:50:32 +00:00
Eric Botcazou
e3edbd56ba gigi.h (get_dummy_type): Declare.
* gcc-interface/gigi.h (get_dummy_type): Declare.
	(build_dummy_unc_pointer_types): Likewise.
	(finish_fat_pointer_type): Likewise.
	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If a dummy
	fat pointer type has been built, complete it in place.
	<E_Access_Type>: Call build_dummy_unc_pointer_types to build dummy fat
	and thin pointers.  Remove useless variable.
	(finish_fat_pointer_type): Make global and move to...
	* gcc-interface/utils.c (finish_fat_pointer_type): ...here.
	(get_dummy_type): New function.
	(build_dummy_unc_pointer_types): Likewise.
	(gnat_pushdecl): Propage the name to the anonymous variants only.
	(update_pointer_to): Only adjust the pointer types in the unconstrained
	array case.

From-SVN: r171882
2011-04-02 08:44:43 +00:00
Eric Botcazou
65444786be ada-tree.h (DECL_TAFT_TYPE_P): New flag.
* gcc-interface/ada-tree.h (DECL_TAFT_TYPE_P): New flag.
	* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Incomplete_Type>: Set it
	if this is a Taft amendment type and the full declaration is available.
	* gcc-interface/trans.c (process_type): Likewise.
	If there is an old type, mark the new one as used if DECL_TAFT_TYPE_P.
	(process_freeze_entity): Likewise.
	* gcc-interface/utils.c (dummy_global): New static variable.
	(gnat_write_global_declarations): If there are types declared as used
	at the global level, insert them in the global hash table.

From-SVN: r171881
2011-04-02 08:36:32 +00:00
Eric Botcazou
1aeb40dd6d gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
* gcc-interface/gigi.h (record_builtin_type): Add ARTIFICIAL_P param.
	* gcc-interface/utils.c (gnat_pushdecl): If this is a non-artificial
	declaration of an array type, then set DECL_ORIGINAL_TYPE to a distinct
	copy.
	(record_builtin_type): Add ARTIFICIAL_P parameter.  Set DECL_ARTIFICIAL
	flag of the type accordingly.
	* gcc-interface/trans.c (gigi): Adjust calls to record_builtin_type.

From-SVN: r171880
2011-04-02 08:28:21 +00:00
Eric Botcazou
80ec8b4cf1 decl.c (gnat_to_gnu_entity): Defer finalizing types when updating the pointers to the designated type.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Defer
	finalizing types when updating the pointers to the designated type.
	<all>: Finalize the deferred types even if we didn't defer processing
	of incomplete types in this invocation.

From-SVN: r171879
2011-04-02 08:16:29 +00:00
Ian Lance Taylor
bb0ce33a0e libgo: Sort test output in libgo.sum and libgo.log.
From-SVN: r171868
2011-04-02 00:29:49 +00:00
GCC Administrator
c9181fc867 Daily bump.
From-SVN: r171867
2011-04-02 00:18:10 +00:00
Olivier Hainque
2a9d769a7f dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
* dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
	(add_gnat_descriptive_type_attribute): New function.
	(gen_array_type_die): Call it.
	(gen_enumeration_type_die): Likewise.
	(gen_struct_or_union_type_die): Likewise.
	(modified_type_die): Likewise.
	* langhooks.h (lang_hooks_for_types): New descriptive_type hook.
	* langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
	(LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
ada/
	* gcc-interface/misc.c (gnat_descriptive_type): New function.
	(LANG_HOOKS_DESCRIPTIVE_TYPE): Redefine to gnat_descriptive_type.

Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
Co-Authored-By: Nicolas Setton <setton@adacore.com>

From-SVN: r171862
2011-04-01 23:38:57 +00:00
Uros Bizjak
9b2398a4c4 * go.test/go-test.exp (go-set-goarch): Recognize alpha*-*-*.
From-SVN: r171861
2011-04-01 23:03:54 +00:00
Ian Lance Taylor
e59b917109 libgo: Support for alpha.
From Uros Bizjak.

From-SVN: r171860
2011-04-01 23:02:16 +00:00
Ian Lance Taylor
4ac7fcaac0 libgo: Try to guess the right type for select bits in mksysinfo.
From-SVN: r171858
2011-04-01 22:53:54 +00:00
Jakub Jelinek
15a03a11ce re PR bootstrap/48148 (LTO bootstrap failed with bootstrap-profiled)
PR bootstrap/48148
	* dwarf2out.c (resolve_addr): Don't call force_decl_die
	if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.

	Revert:
	2011-03-17  Richard Guenther  <rguenther@suse.de>

	PR bootstrap/48148
	* lto-cgraph.c (input_overwrite_node): Clear the abstract
	origin for decls in other ltrans units.
	(input_varpool_node): Likewise.

From-SVN: r171856
2011-04-01 23:14:36 +02:00
Jakub Jelinek
19228b93ea re PR middle-end/48335 (ICE in convert_move)
PR middle-end/48335
	* expr.c (expand_assignment): Handle all possibilities
	if TO_RTX is CONCAT.
	* expmed.c (store_bit_field_1): Avoid trying to create
	invalid SUBREGs.
	(store_split_bit_field): If SUBREG_REG (op0) or
	op0 itself has smaller mode than word, return it
	for offset 0 and const0_rtx for out-of-bounds stores.
	If word is const0_rtx, skip it.

	* gcc.c-torture/compile/pr48335-1.c: New test.
	* gcc.dg/pr48335-1.c: New test.
	* gcc.dg/pr48335-2.c: New test.
	* gcc.dg/pr48335-3.c: New test.
	* gcc.dg/pr48335-4.c: New test.
	* gcc.dg/pr48335-5.c: New test.
	* gcc.dg/pr48335-6.c: New test.
	* gcc.dg/pr48335-7.c: New test.
	* gcc.dg/pr48335-8.c: New test.
	* gcc.target/i386/pr48335-1.c: New test.

From-SVN: r171855
2011-04-01 23:13:29 +02:00