1. 01 Apr, 2011 32 commits
    • re PR bootstrap/48400 (powerpc-apple-darwin9 fails to bootstrap at revision 171824) · 756d6ee9
      PR 48400
      * dwarf2out.c (dwarf2out_source_line): Disable discriminators
      in strict mode before dwarf4.  Re-order tests to early out
      before switching sections.
      
      From-SVN: r171852
      Richard Henderson committed
    • constraints.md: New file. · ceaaaeab
      	* config/h8300/constraints.md: New file.
      	* config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
      	satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
      	(*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
      	* config/h8300/predicates.md (bit_operand): Likewise.
      	(incdec_operand): Use satisfies_constraint_M and
      	satisfies_constraint_O.  Don't use C code block.
      	* config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
      	* config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
      	(compute_mov_length): Use satisfies_constraint_G.
      	(fix_bit_operand): Use satisfies_constraint_U.
      	* config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
      	(CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
      	(CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
      	(CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
      	(CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
      	(CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
      	(CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
      	(OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
      	(OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
      	(OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
      	(EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
      	(EXTRA_MEMORY_CONSTRAINT): Delete.
      
      From-SVN: r171851
      Nathan Froyd committed
    • 2011-04-01 Vincent Lefevre <vincent+gcc@vinc17.org> · c1c0e8e1
      	PR c/36299
      	* gcc.dg/Waddress.c: New test.
      
      From-SVN: r171850
      Vincent Lefevre committed
    • re PR fortran/48352 (segfault in fortran/frontend-passes.c) · 6e98bce4
      2011-04-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/48352
      	* frontend-passes (cfe_register_funcs):  Don't
      	register functions if they appear as iterators in DO loops.
      
      2011-04-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
      
      	PR fortran/48352
      	* gfortran.dg/function_optimize_3.f90:  New test.
      
      From-SVN: r171849
      Thomas Koenig committed
    • configure.ac (avr-*-*): Add comment about why libssp is disabled. · b318fb4b
      	* configure.ac (avr-*-*): Add comment about why libssp is disabled.
      	(microblaze*): Don't disable libssp.
      	* configure: Regenerate.
      
      From-SVN: r171848
      Joseph Myers committed
    • Fix 48262 · 08ae38e0
      Co-Authored-By: Michael Meissner <meissner@linux.vnet.ibm.com>
      
      From-SVN: r171847
      Andrew Pinski committed
    • Don't add DW_AT_low_pc if the CU has no associated code. · bdb0b0f6
              * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
              high_pc attribute if the CU has no associated code. Only output
              DW_AT_entry_pc for CU if not generating strict dwarf and
              dwarf_version < 4.
      
      From-SVN: r171846
      Mark Wielaard committed
    • haifa-sched.c (prune_ready_list): New function, broken out of schedule_block. · 9d701248
      	* haifa-sched.c (prune_ready_list): New function, broken out of
      	schedule_block.
      	(schedule_block): Use it.
      
      From-SVN: r171845
      Bernd Schmidt committed
    • 20091002-1_0.C: Use "dg-require-effective-target fpic". · eabb8ea4
      	* g++.dg/lto/20091002-1_0.C: Use "dg-require-effective-target fpic".
      	* g++.dg/lto/20091002-2_0.C: Likewise.
      	* g++.dg/lto/20090303_0.c: Likewise.
      	* g++.dg/lto/20091004-1_0.C: Likewise.
      	* g++.dg/lto/20091002-3_0.C: Likewise.
      	* g++.dg/lto/20091004-2_0.C: Likewise.
      	* g++.dg/lto/20081123_0.C: Likewise.
      	* g++.dg/lto/20090313_0.C: Likewise.
      	* g++.dg/lto/20081109-1_0.C: Likewise.
      	* g++.dg/lto/20081219_0.C: Likewise.
      	* g++.dg/lto/20081204-1_0.C: Likewise.
      	* g++.dg/lto/20090302_0.C: Likewise.
      	* g++.dg/lto/20081119-1_0.C: Likewise.
      	* g++.dg/lto/20081118_0.C: Likewise.
      	* gcc.dg/lto/20091020-2_0.c: Likewise.
      	* gcc.dg/lto/20090210_0.c: Likewise.
      	* gcc.dg/lto/20081204-1_0.c: Likewise.
      	* gcc.dg/lto/20081224_0.c: Likewise.
      	* gcc.dg/lto/20090219_0.c: Likewise.
      	* gcc.dg/lto/20091014-1_0.c: Likewise.
      	* gcc.dg/lto/20091016-1_0.c: Likewise.
      	* gcc.dg/lto/20090206-2_0.c: Likewise.
      	* gcc.dg/lto/20090116_0.c: Likewise.
      	* gcc.dg/lto/20091013-1_0.c: Likewise.
      	* gcc.dg/lto/20091015-1_0.c: Likewise.
      	* gcc.dg/lto/20090126-2_0.c: Likewise.
      
      From-SVN: r171844
      Bernd Schmidt committed
    • sched-ebb.c (begin_schedule_ready): Remove second argument. · 86014d07
      	* sched-ebb.c (begin_schedule_ready): Remove second argument.
      	Split most of the code into...
      	(begin_move_insn): ... here.  New function.
      	(ebb_sched_info): Add a pointer to it.
      	* haifa-sched.c (scheduled_insns): New static variable.
      	(sched_extend_ready_list): Allocate it.
      	(schedule_block): Use it to record the order of scheduled insns.
      	Perform RTL changes to move insns only after all scheduling
      	decisions have been made.
      	* modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
      	begin_move_insn field.
      	* sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
      	* sched-int.h (struct haifa_sched_info): Remove second argument
      	from begin_schedule_ready hook.  Add new member begin_move_insn.
      	* sched-rgn.c (begin_schedule_ready): Remove second argument.
      	(rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
      
      From-SVN: r171843
      Bernd Schmidt committed
    • haifa-sched.c (queue_insn): New arg REASON. · ec4efea9
      	* haifa-sched.c (queue_insn): New arg REASON.  All callers
      	changed.  Print it in debugging output.
      
      From-SVN: r171841
      Bernd Schmidt committed
    • ifcvt.c (cond_exec_process_insns): Disallow converting a block that contains the prologue. · c5dd277d
      	* ifcvt.c (cond_exec_process_insns): Disallow converting a block
      	that contains the prologue.
      
      	* gcc.c-torture/compile/20110401-1.c: New test.
      
      From-SVN: r171840
      Bernd Schmidt committed
    • dwarf2out.h (dwarf2out_frame_debug_init): Declare. · 722279e4
      	* dwarf2out.h (dwarf2out_frame_debug_init): Declare.
      	* dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
      	out of ...
      	(dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
      	* final.c (final_start_function): Call the new function rather
      	than using a NULL argument for dwarf2out_frame_debug.
      
      From-SVN: r171839
      Bernd Schmidt committed
    • * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>. · 1ca1dad5
      From-SVN: r171837
      Ulrich Weigand committed
    • And last the ChangeLog · 49568e45
      From-SVN: r171836
      Kai Tietz committed
    • Missing new files from previous patch. · b6bce27b
      From-SVN: r171834
      Kai Tietz committed
    • config.gcc (*-*-mingw*): Allow as option the posix threading model. · c04bdac0
      2011-04-01  Kai Tietz  <ktietz@redhat.com>
      
      	* config.gcc (*-*-mingw*): Allow as option the
      	posix threading model.
      	* config/i386/mingw32.h ( SPEC_PTHREAD1,  SPEC_PTHREAD2):
      	New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
      	definition.
      	(CPP_SPEC): Add pthread/no-pthread handling.
      	(LIB_SPEC): Likewise.
      	* config/i386/mingw-w64.h (CPP_SPEC):Likewise.
      	(LIB_SPEC): Likewise.
      	* config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
      	flag to pass -pthread option for shared libgcc build.
      	(SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
      	for shared libgcc build.
      	* config/i386/t-mingw-pthread: New file.
      	* config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
      	New define to enable use of library pthread by default.
      	* config/i386/mingw.opt (pthread): New driver option.
      	(no-pthread): New driver option.
      	* config/i386/cygming.opt: Make sure trailing empty line
      	is retained.
      	* config/i386/mingw-w64.opt: Likewise.
      
      From-SVN: r171833
      Kai Tietz committed
    • c-decl.c (grokdeclarator): Fix formatting. · 636b4106
      2011-04-01  Gary Funck <gary@intrepid.com>
      
      	* c-decl.c (grokdeclarator): Fix formatting.
      
      From-SVN: r171831
      Gary Funck committed
    • configure.ac: Remove code setting CONFIG_SHELL, config_shell and moveifchange. · 72691ba6
      	* configure.ac: Remove code setting CONFIG_SHELL, config_shell and
      	moveifchange.
      	* configure: Regenerate.
      	* Makefile.tpl: Use @SHELL@ not @config_shell@.
      	* Makefile.in: Regenerate.
      
      From-SVN: r171830
      Joseph Myers committed
    • configure.ac (*-*-sysv4*): Don't enable libgomp. · 6de66370
      	* configure.ac (*-*-sysv4*): Don't enable libgomp.
      	(alpha*-*-*vms*, i[[34567]]86-*-sco3.2v5*, mn10300-*-*,
      	powerpc-*-chorusos*, powerpc*-*-eabi*, powerpc*-*-sysv*,
      	powerpc*-*-kaos*, s390x-ibm-tpf*, sparc64-*-elf*, v850*-*-*,
      	xtensa*-*-elf*, *-*-beos*, *-*-elf*, *-*-netware*, *-*-rtems*,
      	*-*-sysv[[45]]*, *-*-vxworks*, *-wrs-windiss): Remove
      	md_exec_prefix cases.
      	* configure: Regenerate.
      
      From-SVN: r171829
      Joseph Myers committed
    • configure.ac: Separate cases disabling target-libssp... · 1e9e0e23
      	* configure.ac: Separate cases disabling target-libssp,
      	target-libiberty, target-libstdc++-v3 and Fortran from general
      	case over targets.
      	* configure: Regenerate.
      
      From-SVN: r171827
      Joseph Myers committed
    • configure.ac (*-*-chorusos): Don't disable libgcj. · 0036370f
      	* configure.ac (*-*-chorusos): Don't disable libgcj.
      	(*-*-freebsd[[12]] | *-*-freebsd[[12]].* | *-*-freebsd*aout*):
      	Remove case.
      	(*-*-kaos*): Don't disable GCC libraries, zlib or fastjar.
      	(arm-*-coff): Don't disable libgcj.
      	(arm*-*-linux-gnueabi): Remove useless assignment.
      	(arm-*-riscix*): Don't disable libgcj.
      	(bfin-*-*): Don't enable target-bsp and target-cygmon depending on
      	configuration.
      	(c4x-*-* | tic4x-*-*): Don't disable GCC libraries.
      	(c54x*-*-*): Remove case.
      	(tic54x-*-*): Don't disable GCC or GCC libraries.
      	(cris-*-* | crisv32-*-*): Don't handle *-*-aout.  Change *-*-elf
      	to *.
      	(d10v-*-*): Don't disable GCC libraries.
      	(d30v-*-*): Don't disable libgcj.
      	(h8500-*-*): Don't disable GCC libraries.
      	(i960-*-*): Don't disable libgcj.
      	(i[[3456789]]86-*-linux*): Don't handle *-*-*libc1*.
      	(i[[3456789]]86-*-sco3.2v5*, i[[3456789]]86-*-sco*,
      	i[[3456789]]86-*-sysv4*, i[[3456789]]86-*-beos*): Don't disable
      	libgcj.
      	(m68k-*-coff*): Remove case.
      	(mmix-*-*): Don't disable libgloss on host.
      	(mn10200-*-*, mn10300-*-*): Remove cases.
      	(powerpc*-*-winnt* | powerpc*-*-pe*, powerpcle-*-solaris*,
      	powerpc-*-beos*, m68k-apollo-*, mips*-*-irix5*, mips*-*-bsd*):
      	Don't disable libgcj.
      	(romp-*-*): Remove case.
      	(sparclite-*-*, sparc-*-sunos4*): Don't disable libgcj.
      	(sparc-*-solaris2.[[0-6]] | sparc-*-solaris2.[[0-6]].*): Remove
      	case.
      	(v810-*-*): Don't disable GCC libraries.
      	(v850*-*-*, vax-*-vms, xtensa*-*-*): Remove cases.
      	(ip2k-*-*): Don't disable GCC libraries.
      	* configure: Regenerate.
      
      From-SVN: r171826
      Joseph Myers committed
    • expr.c (emit_block_move_via_movmem): Use n_generator_args instead of n_operands. · f04713ee
      gcc/
      	* expr.c (emit_block_move_via_movmem): Use n_generator_args
      	instead of n_operands.
      	(set_storage_via_setmem): Likewise.
      	* optabs.c (maybe_gen_insn): Likewise.
      	* config/arm/arm.c (arm_init_neon_builtins): Likewise.
      	* config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
      	(mips_expand_builtin_direct): Likewise.
      	* config/spu/spu.c (expand_builtin_args): Likewise.
      
      From-SVN: r171823
      Richard Sandiford committed
    • recog.h (insn_data_d): Add n_generator_args. · b29387ee
      gcc/
      	* recog.h (insn_data_d): Add n_generator_args.
      	* genoutput.c (data): Likewise.
      	(output_insn_data): Print it.
      	(max_opno, num_dups): Delete.
      	(scan_operands): Just fill in "d->operand[...]".
      	(gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
      
      From-SVN: r171822
      Richard Sandiford committed
    • gensupport.h (pattern_stats): New structure. · e792559a
      gcc/
      	* gensupport.h (pattern_stats): New structure.
      	* gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
      	* genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
      	(max_operand_1, max_operand_vec): Delete.
      	(gen_insn, gen_expand, gen_split): Use get_pattern_stats.
      
      From-SVN: r171821
      Richard Sandiford committed
    • libgo: Support Solaris 8/9. · 90630d19
      From Rainer Orth.
      
      From-SVN: r171818
      Ian Lance Taylor committed
    • emit-rtl.c (emit_pattern_after_setloc): New function. · e8110d6f
      	* emit-rtl.c (emit_pattern_after_setloc): New function.
      	(emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
      	(emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
      	(emit_pattern_after): New function.
      	(emit_insn_after, emit_jump_insn_after): Call it.
      	(emit_call_insn_after, emit_debug_insn_after): Likewise.
      	(emit_pattern_before_setloc): New function.
      	(emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
      	(emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
      	Likewise.
      	(emit_pattern_before): New function.
      	(emit_insn_before, emit_jump_insn_before): Call it.
      	(emit_call_insn_before, emit_debug_insn_before): Likewise.
      
      From-SVN: r171817
      Nathan Froyd committed
    • dwarf2out.c (dw_separate_line_info_ref): Remove. · 576f85f1
              * dwarf2out.c (dw_separate_line_info_ref): Remove.
              (dw_separate_line_info_entry): Remove.
              (enum dw_line_info_opcode): New.
              (dw_line_info_entry): Use it.
              (dw_line_info_table, dw_line_info_table_p): New.
              (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
              (line_info_table, line_info_label_num): Remove.
              (line_info_table_in_use): Remove.
              (separate_line_info_table): Remove.
              (separate_line_info_table_allocated): Remove.
              (separate_line_info_table_in_use): Remove.
              (LINE_INFO_TABLE_INCREMENT): Remove.
              (line_info_label_num): New.
              (cur_line_info_table): New.
              (text_section_line_info, cold_text_section_line_info): New.
              (separate_line_info): New.
              (SEPARATE_LINE_CODE_LABEL): Remove.
              (print_dwarf_line_table): Remove.
              (debug_dwarf): Don't dump it.
              (output_one_line_info_table): New.
              (output_line_info): Use it.
              (new_line_info_table): New.
              (set_cur_line_info_table): New.
              (dwarf2out_switch_text_section): Use it.
              (dwarf2out_begin_function): Likewise.
              (push_dw_line_info_entry): New.
              (dwarf2out_source_line): Rewrite for new line info tables.
              (dwarf2out_init): Remove dead initailizations.
      
      From-SVN: r171816
      Richard Henderson committed
    • Daily bump. · d428585c
      From-SVN: r171813
      GCC Administrator committed
    • libgo: Recognize MIPS ABIs. · 85a09210
      From-SVN: r171809
      Ian Lance Taylor committed
  2. 31 Mar, 2011 8 commits