1. 19 Aug, 2014 40 commits
    • emit_jump_table_data returns an rtx_jump_table_data * · 4598afdd
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* emit-rtl.c (emit_jump_table_data): Strengthen return type from
      	rtx to rtx_jump_table_data *.  Also for local.
      	* rtl.h (emit_jump_table_data): Likewise.
      
      From-SVN: r214193
      David Malcolm committed
    • Convert various rtx to rtx_note * · 66e8df53
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* basic-block.h (create_basic_block_structure): Strengthen third
      	param "bb_note" from rtx to rtx_note *.
      	* rtl.h (emit_note_before): Strengthen return type from rtx to
      	rtx_note *.
      	(emit_note_after): Likewise.
      	(emit_note): Likewise.
      	(emit_note_copy): Likewise.  Also, strengthen param similarly.
      	* function.h (struct rtl_data): Strengthen field
      	"x_stack_check_probe_note" from rtx to rtx_note *.
      
      	* cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
      	from rtx to rtx_note *.
      	* cfgrtl.c (create_basic_block_structure): Strengthen third param
      	"bb_note" from rtx to rtx_note *.
      	(duplicate_insn_chain): Likewise for local "last".  Add a checked cast
      	when calling emit_note_copy.
      	* emit-rtl.c (make_note_raw): Strengthen return type from rtx to
      	rtx_note *.
      	(emit_note_after): Likewise.
      	(emit_note_before): Likewise.
      	(emit_note_copy): Likewise.  Also, strengthen param similarly.
      	(emit_note): Likewise.
      	* except.c (emit_note_eh_region_end): Likewise for return type.
      	Strengthen local "next" from rtx to rtx_insn *.
      	(convert_to_eh_region_ranges): Strengthen local "note"
      	from rtx to rtx_note *.
      	* final.c (change_scope): Likewise.
      	(reemit_insn_block_notes): Likewise, for both locals named "note".
      	Also, strengthen local "insn" from rtx to rtx_insn *.
      	* haifa-sched.c (sched_extend_bb): Strengthen local "note" from
      	rtx to rtx_note *.
      	* reg-stack.c (compensate_edge): Likewise for local "after". Also,
      	strengthen local "seq" from rtx to rtx_insn *.
      	* reload1.c (reload_as_needed): Strengthen local "marker" from rtx
      	to rtx_note *.
      	* sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
      	vec<rtx_note *>.
      	(get_bb_note_from_pool): Strengthen return type from rtx to
      	rtx_note *.
      	(sel_create_basic_block): Strengthen local "new_bb_note" from
      	insn_t to rtx_note *.
      	* var-tracking.c (emit_note_insn_var_location): Strengthen local
      	"note" from rtx to rtx_note *.
      	(emit_notes_in_bb): Likewise.
      
      From-SVN: r214192
      David Malcolm committed
    • rtl_data.x_parm_birth_insn is an insn · 7a688d52
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* function.h (struct rtl_data): Strengthen field
      	"x_parm_birth_insn" from rtx to rtx_insn *.
      	* function.c (struct assign_parm_data_all): Strengthen fields
      	"first_conversion_insn" and "last_conversion_insn" from rtx to
      	rtx_insn *.
      
      From-SVN: r214191
      David Malcolm committed
    • cfgexpand.c: Use rtx_insn · b47aae36
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* cfgexpand.c (expand_used_vars): Strengthen return type from rtx
      	to rtx_insn *; also for local "var_end_seq".
      	(maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
      	(maybe_cleanup_end_of_block): Likewise for param "last" and local
      	"insn".
      	(expand_gimple_cond): Likewise for locals "last2" and "last".
      	(mark_transaction_restart_calls): Likewise for local "insn".
      	(expand_gimple_stmt): Likewise for return type and locals "last"
      	and "insn".
      	(expand_gimple_tailcall): Likewise for locals "last2" and "last".
      	(avoid_complex_debug_insns): Likewise for param "insn".
      	(expand_debug_locations): Likewise for locals "insn", "last",
      	"prev_insn" and "insn2".
      	(expand_gimple_basic_block): Likewise for local "last".
      	(construct_exit_block): Likewise for locals "head", "end",
      	"orig_end".
      	(pass_expand::execute): Likewise for locals "var_seq",
      	"var_ret_seq", "next".
      
      From-SVN: r214190
      David Malcolm committed
    • asan_emit_stack_protection returns an insn · 3a4abd2f
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* asan.h (asan_emit_stack_protection): Strengthen return type from
      	rtx to rtx_insn *.
      	* asan.c (asan_emit_stack_protection): Likewise.  Add local
      	"insns" to hold the return value.
      
      From-SVN: r214189
      David Malcolm committed
    • bb_note returns a rtx_note * · ed270997
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* basic-block.h (bb_note): Strengthen return type from rtx to
      	rtx_note *.
      	* sched-int.h (bb_note): Likewise.
      	* cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
      
      From-SVN: r214188
      David Malcolm committed
    • make_insn_raw returns an rtx_insn · 167b9fae
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtl.h (make_insn_raw): Strengthen return type from rtx to
      	rtx_insn *.
      
      	* emit-rtl.c (make_insn_raw): Strengthen return type and local
      	"insn" from rtx to rtx_insn *.
      	(make_debug_insn_raw): Strengthen return type from rtx to
      	rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
      	(make_jump_insn_raw):  Strengthen return type from rtx to
      	rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
      	(make_call_insn_raw):  Strengthen return type from rtx to
      	rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
      	(emit_pattern_before_noloc): Strengthen return type of "make_raw"
      	callback from rtx to rtx_insn *; likewise for local "insn" and
      	"next", adding a checked cast to rtx_insn in the relevant cases of
      	the switch statement.
      	(emit_pattern_after_noloc): Strengthen return type of "make_raw"
      	callback from rtx to rtx_insn *.
      	(emit_pattern_after_setloc): Likewise.
      	(emit_pattern_after): Likewise.
      	(emit_pattern_before_setloc): Likewise.
      	(emit_pattern_before): Likewise.
      
      From-SVN: r214187
      David Malcolm committed
    • last_call_insn returns an rtx_call_insn * · 049cfc4a
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* emit-rtl.c (last_call_insn): Strengthen return type from rtx to
      	rtx_call_insn *.
      	* rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
      	accepting an rtx_insn *.
      	(last_call_insn): Strengthen return type from rtx to
      	rtx_call_insn *.
      
      From-SVN: r214186
      David Malcolm committed
    • delete_trivially_dead_insns works on insns · 169d13f5
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtl.h (delete_trivially_dead_insns): Strengthen initial param
      	"insns" from rtx to rtx_insn *.
      	* cse.c (delete_trivially_dead_insns): Likewise, also do it for
      	locals "insn" and "prev".
      
      From-SVN: r214185
      David Malcolm committed
    • Make tablejump_p accept a rtx_jump_table_data ** · 8942ee0f
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtl.h (tablejump_p): Strengthen third param from rtx * to
      	rtx_jump_table_data **.
      
      	* cfgbuild.c (make_edges): Introduce local "table", using it in
      	place of "tmp" for jump table data.
      	(find_bb_boundaries): Strengthen local "table" from rtx to
      	rtx_jump_table_data *.
      	* cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
      	(outgoing_edges_match): Likewise for locals "table1" and "table2".
      	(try_crossjump_to_edge): Likewise.
      	* cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
      	"table".
      	(patch_jump_insn): Introduce local "table", using it in place of
      	"tmp" for jump table data.
      	(force_nonfallthru_and_redirect): Introduce local "table", so that
      	call to tablejump_p can receive an rtx_jump_table_data **.  Update
      	logic around the call to overwrite "note" appropriately if
      	tablejump_p returns non-zero.
      	(get_last_bb_insn): Introduce local "table", using it in place of
      	"tmp" for jump table data.
      	* dwarf2cfi.c (create_trace_edges): Likewise.
      
      	* config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
      	from rtx to rtx_jump_table_data *.
      	(create_fix_barrier): Strengthen local "tmp" from rtx to
      	rtx_jump_table_data *.
      	(arm_reorg): Likewise for local "table".
      
      	* config/s390/s390.c (s390_chunkify_start): Likewise.
      
      	* config/spu/spu.c (spu_emit_branch_hint): Likewise.
      
      	* jump.c (delete_related_insns): Strengthen local "lab_next" from
      	rtx to rtx_jump_table_data *.
      
      	* rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
      	rtx_jump_table_data **.  Add a checked cast when writing through
      	the pointer: we know there that local "table" is non-NULL and that
      	JUMP_TABLE_DATA_P (table) holds.
      	(label_is_jump_target_p): Introduce local "table", using it in
      	place of "tmp" for jump table data.
      
      From-SVN: r214184
      David Malcolm committed
    • re PR c++/62153 (warn for bool expression compared with integer different from 0/1) · 04159acf
      	PR c++/62153
      	* doc/invoke.texi: Document -Wbool-compare.
      c-family/
      	* c-common.c (maybe_warn_bool_compare): New function.
      	* c-common.h (maybe_warn_bool_compare): Declare.
      	* c.opt (Wbool-compare): New option.
      c/
      	* c-typeck.c (build_binary_op): If either operand of a comparison
      	is a boolean expression, call maybe_warn_bool_compare.
      cp/
      	* call.c (build_new_op_1): Remember the type of arguments for
      	a comparison.  If either operand of a comparison is a boolean
      	expression, call maybe_warn_bool_compare.
      testsuite/
      	* c-c++-common/Wbool-compare-1.c: New test.
      
      From-SVN: r214183
      Marek Polacek committed
    • entry_of_function returns an insn · 8a2e8325
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtl.h (entry_of_function): Strengthen return type from rtx to
      	rtx_insn *.
      	* cfgrtl.c (entry_of_function): Likewise.
      
      From-SVN: r214182
      David Malcolm committed
    • re PR tree-optimization/62091 (ice in before_dom_children) · 27093ee4
      	PR tree-optimization/62091
      	* decl2.c (decl_needed_p): Return true for virtual functions when
      	devirtualizing.
      
      From-SVN: r214181
      Jason Merrill committed
    • Return rtx_insn from get_insns/get_last_insn · 981ac3c7
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* emit-rtl.h (get_insns): Strengthen return type from rtx to
      	rtx_insn *, adding a checked cast for now.
      	(get_last_insn): Likewise.
      
      From-SVN: r214180
      David Malcolm committed
    • Strengthen return type of gen_label_rtx · 7dcc3ab5
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtl.h (gen_label_rtx): Strengthen return type from rtx to
      	rtx_code_label *.
      
      	* emit-rtl.c (gen_label_rtx): Likewise.
      
      From-SVN: r214179
      David Malcolm committed
    • Strengthen return types of various {next|prev}_*insn from rtx to rtx_insn * · eb51c837
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtl.h (previous_insn): Strengthen return type from rtx to
      	rtx_insn *.
      	(next_insn): Likewise.
      	(prev_nonnote_insn): Likewise.
      	(prev_nonnote_insn_bb): Likewise.
      	(next_nonnote_insn): Likewise.
      	(next_nonnote_insn_bb): Likewise.
      	(prev_nondebug_insn): Likewise.
      	(next_nondebug_insn): Likewise.
      	(prev_nonnote_nondebug_insn): Likewise.
      	(next_nonnote_nondebug_insn): Likewise.
      	(prev_real_insn): Likewise.
      	(next_real_insn): Likewise.
      	(prev_active_insn): Likewise.
      	(next_active_insn): Likewise.
      
      	* emit-rtl.c (next_insn): Strengthen return type from rtx to
      	rtx_insn *, adding a checked cast.
      	(previous_insn): Likewise.
      	(next_nonnote_insn): Likewise.
      	(next_nonnote_insn_bb): Likewise.
      	(prev_nonnote_insn): Likewise.
      	(prev_nonnote_insn_bb): Likewise.
      	(next_nondebug_insn): Likewise.
      	(prev_nondebug_insn): Likewise.
      	(next_nonnote_nondebug_insn): Likewise.
      	(prev_nonnote_nondebug_insn): Likewise.
      	(next_real_insn): Likewise.
      	(prev_real_insn): Likewise.
      	(next_active_insn): Likewise.
      	(prev_active_insn): Likewise.
      
      	* config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
      	param "stepfunc" so that it returns an rtx_insn * rather than an
      	rtx, to track the change to prev_nonnote_insn_bb, which is the
      	only function this is called with.
      	* config/sh/sh.c (sh_find_set_of_reg): Likewise.
      
      From-SVN: r214178
      David Malcolm committed
    • re PR lto/53808 (Undefined symbol when building a library with lto) · ad035db8
      	PR lto/53808
      	PR c++/61659
      	* decl.c (maybe_commonize_var): Don't use DECL_COMDAT to trigger
      	comdat_linkage.
      
      From-SVN: r214177
      Jason Merrill committed
    • ipa-visibility.c (update_visibility_by_resolution_info): Fix assert. · 46ae0465
      
      	* ipa-visibility.c (update_visibility_by_resolution_info): Fix
      	assert.
      
      From-SVN: r214174
      Jan Hubicka committed
    • Add subclasses for the various kinds of instruction · 6f983e60
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* coretypes.h (class rtx_debug_insn): Add forward declaration.
      	(class rtx_nonjump_insn): Likewise.
      	(class rtx_jump_insn): Likewise.
      	(class rtx_call_insn): Likewise.
      	(class rtx_jump_table_data): Likewise.
      	(class rtx_barrier): Likewise.
      	(class rtx_code_label): Likewise.
      	(class rtx_note): Likewise.
      
      	* rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
      	adding the invariant DEBUG_INSN_P (X).
      	(class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
      	the invariant NONJUMP_INSN_P (X).
      	(class rtx_jump_insn): New, a subclass of rtx_insn, adding
      	the invariant JUMP_P (X).
      	(class rtx_call_insn): New, a subclass of rtx_insn, adding
      	the invariant CALL_P (X).
      	(class rtx_jump_table): New, a subclass of rtx_insn, adding the
      	invariant JUMP_TABLE_DATA_P (X).
      	(class rtx_barrier): New, a subclass of rtx_insn, adding the
      	invariant BARRIER_P (X).
      	(class rtx_code_label): New, a subclass of rtx_insn, adding
      	the invariant LABEL_P (X).
      	(class rtx_note): New, a subclass of rtx_insn, adding
      	the invariant NOTE_P(X).
      	(is_a_helper <rtx_debug_insn *>::test): New.
      	(is_a_helper <rtx_nonjump_insn *>::test): New.
      	(is_a_helper <rtx_jump_insn *>::test): New.
      	(is_a_helper <rtx_call_insn *>::test): New.
      	(is_a_helper <rtx_jump_table_data *>::test): New functions,
      	overloaded for both rtx and rtx_insn *.
      	(is_a_helper <rtx_barrier *>::test): New.
      	(is_a_helper <rtx_code_label *>::test): New functions, overloaded
      	for both rtx and rtx_insn *.
      	(is_a_helper <rtx_note *>::test): New.
      
      From-SVN: r214172
      David Malcolm committed
    • alpha.h (CLZ_DEFINED_VALUE_AT_ZERO, [...]): Return 0/1 rather than bool. · 1068ced5
      	* config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
      	CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
      	* config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
      	CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
      
      From-SVN: r214171
      Marek Polacek committed
    • BND_TO scaffolding · c1286e0b
      gcc/
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* sel-sched-ir.h (BND_TO): insn_t will eventually be an
      	rtx_insn *.  To help with transition, for now, convert from an
      	access macro into a pair of functions: BND_TO, returning an
      	rtx_insn *, and...
      	(SET_BND_TO): New function, for use where BND_TO is used as an
      	lvalue.
      
      	* sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
      	SET_BND_TO.
      	(BND_TO): New function, adding a checked cast.
      	(SET_BND_TO): New function.
      
      	* sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
      	SET_BND_TO.
      	(compute_av_set_on_boundaries): Likewise.
      
      /
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtx-classes-status.txt (TODO): Add SET_BND_TO
      
      From-SVN: r214170
      David Malcolm committed
    • Don't clear destination if it is used in source · b4e8ceb9
      	* config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
      	destination if it is used in source.
      	(*clz<mode>2_lzcnt_falsedep_1): Likewise.
      	(*popcount<mode>2_falsedep_1): Likewise.
      
      From-SVN: r214169
      H.J. Lu committed
    • Set install_gold_as_default to no first · 95204cd5
      	PR other/62168
      	* configure.ac: Set install_gold_as_default to no first.
      	 * configure: Regenerated.
      
      From-SVN: r214168
      H.J. Lu committed
    • BB_NOTE_LIST scaffolding · c2fc1aee
      gcc/
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
      	"note_list" field will eventually be an rtx_insn *.  To help with
      	transition, for now, convert from an access macro into a pair of
      	functions: BB_NOTE_LIST, returning an rtx_insn *, and...
      	(SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
      	used as an lvalue.
      
      	* sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
      	of BB_NOTE_LIST to SET_BB_NOTE_LIST.
      
      	* sel-sched-ir.c (init_bb): Likewise.
      	(sel_restore_notes): Likewise.
      	(move_bb_info): Likewise.
      	(BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
      	(SET_BB_NOTE_LIST): New function.
      
      /
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtx-classes-status.txt (TODO): Add SET_BB_NOTE_LIST.
      
      From-SVN: r214167
      David Malcolm committed
    • * lex.c (_cpp_lex_direct): Fix a typo. · 3f4f5c9a
      From-SVN: r214166
      Marek Polacek committed
    • VINSN_INSN_RTX scaffolding · 68975683
      gcc/
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
      	field will eventually be an rtx_insn *.  To help with transition,
      	for now, convert from an access macro into a pair of functions:
      	VINSN_INSN_RTX, returning an rtx_insn *, and...
      	(SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
      	is used as an lvalue.
      
      	* sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
      	SET_VINSN_INSN_RTX where it's used as an lvalue.
      	(VINSN_INSN_RTX): New function.
      	(SET_VINSN_INSN_RTX): New function.
      
      /
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtx-classes-status.txt (TODO): Add SET_VINSN_INSN_RTX.
      
      From-SVN: r214165
      David Malcolm committed
    • DEP_PRO/DEP_CON scaffolding · d914bc6b
      gcc/
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
      	eventually be rtx_insn *, but to help with transition, for now,
      	convert from an access macro into a pair of functions: DEP_PRO
      	returning an rtx_insn * and...
      	(SET_DEP_PRO): New function, for use where DEP_PRO is used as an
      	lvalue, returning an rtx&.
      	(DEP_CON): Analogous changes to DEP_PRO above.
      	(SET_DEP_CON): Likewise.
      
      	* haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
      	an lvalue to SET_DEP_CON.
      	* sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
      	(sd_copy_back_deps): Likewise for DEP_CON.
      	(DEP_PRO): New function, adding a checked cast for now.
      	(DEP_CON): Likewise.
      	(SET_DEP_PRO): New function.
      	(SET_DEP_CON): Likewise.
      
      /
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtx-classes-status.txt (TODO): Add SET_DEP_PRO, SET_DEP_CON.
      
      From-SVN: r214164
      David Malcolm committed
    • os_defines.h (_GLIBCXX_THREAD_ATEXIT_WIN32): Define. · 1ed3ba05
      2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
      	Kai Tietz  <ktietz@redhat.com>
      
      	* config/os/mingw32-w64/os_defines.h (_GLIBCXX_THREAD_ATEXIT_WIN32):
      	Define.
      	* config/os/newlib/os_defines.h (_GLIBCXX_THREAD_ATEXIT_WIN32):
      	Ditto.
      	* libsupc++/atexit_thread.cc [_GLIBCXX_THREAD_ATEXIT_WIN32]:
      	#include <windows.h>.
      	(struct elt): Add dll member.
      	(run): Decrement dll refcount.
      	(__cxxabiv1::__cxa_thread_atexit): Increment dll refcount.
      
      
      Co-Authored-By: Kai Tietz <ktietz@redhat.com>
      
      From-SVN: r214163
      Yaakov Selkowitz committed
    • cygming-crtend.c (register_frame_ctor): Move atexit call from here... · 25efdb9f
      2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
      
      	* config/i386/cygming-crtend.c (register_frame_ctor): Move atexit
      	call from here...
      	* config/i386/cygming-crtbegin.c (__gcc_register_frame): to here.
      	(__dso_handle): Define on Cygwin.
      	* config/i386/t-cygming (crtbeginS.o): New rule.
      	* config.host (*-*-cygwin*): Add crtbeginS.o to extra_parts.
      
      From-SVN: r214162
      Yaakov Selkowitz committed
    • config.gcc (*-*-cygwin*): Use __cxa_atexit by default. · 301f4402
      2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
      
      	* config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
      	(extra_options): Add i386/cygwin.opt.
      	* config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
      	(CPP_SPEC): Accept -pthread.
      	(LINK_SPEC): Ditto.
      	(GOMP_SELF_SPECS): Update comment.
      	* config/i386/cygwin.opt: New file for -pthread flag.
      
      From-SVN: r214161
      Yaakov Selkowitz committed
    • Convert DF_REF_INSN to a function for now · 8020a4d5
      gcc/
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* df-core.c (DF_REF_INSN): New, using a checked cast for now.
      	* df.h (DF_REF_INSN): Convert from a macro to a function, so
      	that we can return an rtx_insn *.
      
      /
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtx-classes-status.txt (TODO): Add DF_REF_INSN.
      
      From-SVN: r214160
      David Malcolm committed
    • MAINTAINERS (Write After Approval): Add myself. · a231b8a5
      2014-08-19  Joost VandeVondele <vondele@gcc.gnu.org>
      
      	* MAINTAINERS (Write After Approval): Add myself.
      
      From-SVN: r214159
      Joost VandeVondele committed
    • cygwin.h (LINK_SPEC): Pass --tsaware flag only when building executables, not DLLs. · 04017283
      2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
      
              * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
              when building executables, not DLLs.  Add --large-address-aware
              under the same conditions.
              * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
              when building executables, not DLLs.  Add --large-address-aware
              under the same conditions when using -m32.
      
      From-SVN: r214158
      Yaakov Selkowitz committed
    • MAINTAINERS: Remove myself · ce8126f5
      2014-08-19  Christopher Faylor  <me.gnu@cgf.cx>
      
      	* MAINTAINERS: Remove myself
      
      From-SVN: r214157
      Christopher Faylor committed
    • cygwin-stdint.h: Throughout, make type definitions dependent on target architecture, not host. · a3b69d6f
      2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
      
              * config/i386/cygwin-stdint.h: Throughout, make type
              definitions dependent on target architecture, not host.
      
      From-SVN: r214156
      Yaakov Selkowitz committed
    • configure.tgt: Add cygwin to supported targets. · 6fe8c024
      2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
      
              * configure.tgt: Add cygwin to supported targets.
      
      From-SVN: r214154
      Kai Tietz committed
    • cygming-crtbegin.c (deregister_frame_fn): Fix declaration syntax. · 1ac83976
      2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
      
              * config/i386/cygming-crtbegin.c (deregister_frame_fn): Fix
              declaration syntax.
      
      From-SVN: r214153
      Yaakov Selkowitz committed
    • Replace PREV_INSN et al macros with functions · 6306c300
      gcc/
      2014-08-19  David Malcolm  <dmalcolm@redhat.com>
      
      	* rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
      	the return type from rtx to rtx_insn *,  which will enable various
      	conversions in followup patches.  For now this is is done by a
      	checked cast.
      	(NEXT_INSN): Likewise.
      	(SET_PREV_INSN): Convert to an inline function.  This is intended
      	for use as an lvalue, and so returns an rtx& to allow in-place
      	modification.
      	(SET_NEXT_INSN): Likewise.
      
      From-SVN: r214152
      David Malcolm committed
    • re PR c/45584 (typeof with casting from const to non-const does not work properly) · c77935ee
      2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
      
      	PR c/45584
      	* c-typeck.c (build_c_cast): Do a conversion even when the
      	TYPE_MAIN_VARIANTs are the same.
      
      2014-08-19  Patrick Palka  <ppalka@gcc.gnu.org>
      
      	PR c/45584
      	* gcc.dg/pr13519-1.c: Adjust.
      
      From-SVN: r214151
      Patrick Palka committed
    • gcc.dg/guality/const-volatile.c: Add `used' attribute to pi. · d2077030
      From-SVN: r214144
      Mark Wielaard committed