PR debug/46799
[official-gcc.git] / gcc / ChangeLog
blob96c235f768bc26747ecb8c1207f9c03452af811b
1 2010-12-07  Jakub Jelinek  <jakub@redhat.com>
3         PR debug/46799
4         * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
5         instead of BUILTINS_LOCATION.
6         (create_loop_fn): Add LOC argument, pass it to build_decl instead of
7         BUILTINS_LOCATION.
8         (create_parallel_loop): Add LOC argument, use it for OMP clauses
9         and GIMPLE_*OMP* statements.
10         (gen_parallel_loop): Determine locus for the parallel loop, pass it
11         to create_loop_fn and create_parallel_loop.
12         * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
13         set_curr_insn_source_location (UNKNOWN_LOCATION).
15 2010-12-07  Joern Rennecke  <amylaar@spamcop.net>
16             Richard Guenther  <rguenther@suse.de>
18         PR target/46737
19         * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
20         (bfin_reorder_loops): Change type of index to intptr_t.
22 2010-12-07  Richard Guenther  <rguenther@suse.de>
24         PR tree-optimization/46726
25         * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
27 2010-12-07  Richard Guenther  <rguenther@suse.de>
29         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
30         virtual operands.
32 2010-12-07  Nicola Pero  <nicola.pero@meta-innovation.com>
34         * c-parser.c (c_parser_typeof_specifier): Removed special
35         treatment of objc_volatilized attribute for Objective-C.
37 2010-12-06  Vladimir Makarov  <vmakarov@redhat.com>
39         * ira.c (update_equiv_regs): Prohibit move insns if
40         pressure-sensitive scheduling was done.
42 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
44         * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
45         of c_process_expr_stmt() for the iterating and collection
46         expressions of an Objective-C fast enumeration loop.
48 2010-12-06  Jakub Jelinek  <jakub@redhat.com>
50         PR debug/45997
51         * dwarf2out.c (modified_type_die): If both is_const_type and
52         is_volatile_type is set, start with DW_TAG_const_type or
53         DW_TAG_volatile_type depending on where we get qualified type
54         in the recursive call.
56         PR target/43897
57         * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
58         as a store into that register.
60         PR tree-optimization/46528
61         PR debug/46338
62         * profile.c (branch_prob): Make sure last is never set to a debug
63         stmt.
65         PR debug/46771
66         * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
67         on DEBUG_INSNs.
69         PR rtl-optimization/46777
70         * cfglayout.c (duplicate_insn_chain): Avoid duplicating
71         also barrier after tablejump.
73 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
74             Richard Henderson  <rth@redhat.com>
76         PR target/46740
77         * config/vax/vax.c (vax_output_int_move): Fold #if into if.
79 2010-12-06  Eric Botcazou  <ebotcazou@adacore.com>
81         * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
82         * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
84 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
86         PR target/46735
87         * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
88         (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
89         (int12_operand, int_2word_operand, uint16_operand): Likewise.
90         (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
91         (uint5_operand, uint4_operand): Likewise.
92         * config/frv/frv.h (IN_RANGE_P): Delete.
93         (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
94         (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
95         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
96         (CONST_OK_FOR_P): Likewise.
97         * config/frv/frv.md (*movqicc_internal2_int): Likewise.
98         (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
99         (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
100         (*movsicc_internal2_float, casesi): Likewise.
101         * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
102         (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
103         (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
104         (frv_split_cond_move, frv_rtx_costs): Likewise.
106         PR target/46739
107         * config/mmix/mmix.c (mmix_intval): Split shift count.
109 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
111         * config/i386/i386.c (m_COREI7): New.
112         (initial_ix86_tune_features): Turn on
113         X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
114         X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
116 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
118         * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
120         * config/i386/driver-i386.c (host_detect_local_cpu): Support
121         Sandy Bridge.
123         * config/i386/i386.c (override_options): Handle "corei7-avx".
125         * doc/invoke.texi: Document corei7-avx.
127 2010-12-06  Richard Guenther  <rguenther@suse.de>
129         PR tree-optimization/46806
130         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
131         coalesce different types.
133 2010-12-06  Richard Guenther  <rguenther@suse.de>
135         PR tree-optimization/46785
136         * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
137         call statements as operand definition.
139 2010-12-06  Mingjie Xing  <mingjie.xing@gmail.com>
141         * doc/tm.texi.in: Fix typo.
142         * doc/tm.texi: Regenerate.
144 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
146         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
147         last change.
149 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
151         * c-family/c-common.h: Removed the declarations of all the objc_
152         callbacks, and moved them into c-objc.h.  Removed
153         objc_ivar_visibility_kind and moved it into c-objc.h.
154         * c-family/c-objc.h: New file.
155         * c-family/c-common.c: Include c-objc.h.
156         * c-family/c-format.c: Same change.
157         * c-family/stub-objc.c: Same change.
158         * c-decl.c: Include c-family/c-objc.h.
159         * c-parser.c: Same change.      
160         * c-typeck.c: Same change.
161         * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
162         * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
163         (c-parser.o): same change.
164         (c-typeck.o): Same change.
165         (c-family/c-format.o): Same change.
166         (c-family/stub-objc.o): Same change.
167         (c-family/c-common.o): Same change.
168         (PLUGIN_HEADERS): Added c-family/c-objc.h.
169         
170 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
172         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]:  Ignore
173         --with-dwarf2 option.
175 2010-12-03  Jan Hubicka  <jh@suse.cz>
177         * lto-streamer-in.c (input_cfg): Fix pasto.
179 2010-12-03  Jan Hubicka  <jh@suse.cz>
181         * ipa.c (cgraph_externally_visible_p): Do not localize builtins
182         and functions with user asm defined names.
183         (varpool_externally_visible_p): Do not localize vars with user
184         asm defined names.
186 2010-12-03  Jan Hubicka  <jh@suse.cz>
188         * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
189         to prevent mangling with lto frontend.
191 2010-12-03  Jan Hubicka  <jh@suse.cz>
193         * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
194         * lto-cgraph.c (merge_profile_summaries): Fix thinko.
196 2010-12-03  Jan Hubicka  <jh@suse.cz>
198         PR tree-optimization/46760
199         * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
200         * cgraph.h (struct cgraph_node): Add count_materialization_scale.
201         * lto-cgraph.c (lto_output_edge): Fix assert.
202         (lto_output_node): Output count_materialization_scale.
203         (output_profile_summary): Output only runs and sum_max.
204         (input_node): Input count_materialization_scale.
205         (input_profile_summary): Read data into file specific gcov summary.
206         (merge_profile_summaries): New function.
207         (input_cgraph): Update call of input_profile_summary;
208         call merge_profile_summaries.
209         * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
210         rescale counts at read in.
211         (intput_bb): Likewise.
212         (input_function): Update call of input_bb.
213         (lto_read_body): Update call of input_cfg.
214         * lto-streamer.h: Inlclude gcov-io.h
215         (lto_file_decl_data): Add gcov_ctr_summary.
217 2010-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
219         * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
220         (Cond Exec Macros): ... to this.
221         * doc/tm.texi: Regenerate.
223 2010-12-03  Jason Merrill  <jason@redhat.com>
225         PR debug/46123
226         * dwarf2out.c (gen_tagged_type_die): Don't put local types in
227         a declaration DIE.
229 2010-12-03  Nathan Froyd  <froydnj@codesourcery.com>
231         * config/arm/arm.c (arm_legitimate_index_p): Split
232         VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases.  Permit
233         slightly larger constants in the latter case.
234         (thumb2_legitimate_index_p): Likewise.
236 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
238         * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
239         * gcc.c (cc1_options): Add %{Qy:}.
241 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
243         * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
244         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
245         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
247 2010-12-03  Alexander Monakov  <amonakov@ispras.ru>
249         PR rtl-optimization/45354
250         * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
251         (bb_has_removable_jump_to_p): This.  Update all callers. Make static.
252         Allow BBs ending with a conditional jump.  Forbid EDGE_CROSSING jumps.
253         * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
255 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
257         * basic-block.h (struct edge_prediction): Remove forward
258         declaration.
259         * tree-flow.h (struct edge_prediction): Move from here...
260         * predict.c (struct edge_prediction): ...to here.
261         * cselib.h (struct elt_list): Move from here...
262         * cselib.c (struct elt_list): ...to here.
264 2010-12-02  Ian Lance Taylor  <iant@google.com>
266         * gcc.c (default_compilers): Add entry for ".go".
267         * common.opt: Add -static-libgo as a driver option.
268         * doc/install.texi (Configuration): Mention libgo as an option for
269         --enable-shared.  Mention go as an option for --enable-languages.
270         * doc/invoke.texi (Overall Options): Mention .go as a file name
271         suffix.  Mention go as a -x option.
272         * doc/frontends.texi (G++ and GCC): Mention Go as a supported
273         language.
274         * doc/sourcebuild.texi (Top Level): Mention libgo.
275         * doc/standards.texi (Standards): Add section on Go language.
276         Move references for other languages into their own section.
277         * doc/contrib.texi (Contributors): Mention that I contributed the
278         Go frontend.
280 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
282         * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
283         (const_call_expr_arg_iterator_d): Likewise.
284         (expanded_location): Likewise.
285         * c-tree.h (struct c_arg_tag_d): Likewise.
286         * dwarf2out.c (struct cfa_loc): Likewise.
287         (struct skeleton_chain_struct): Likewise.
288         * except.c (struct ttypes_filter): Likewise.
289         * cselib.h (struct cselib_val_struct): Likewise.
290         (elt_loc_list): Likewise.
291         (elt_list): Likewise.
292         * varasm.c (struct addr_const): Likewise.
293         * tree-flow.h (struct edge_prediction): Likewise.
294         (struct int_tree_map): Likewise.
295         (struct _edge_var_map): Likewise.
297 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
299         PR target/46768
300         * config/i386/i386.c (initial_ix86_tune_features): Turn on
301         X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
303 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
305         * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
307 2010-12-02  Ian Lance Taylor  <iant@google.com>
309         * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX.  Check for C++
310         header files unordered_map, tr1/unordered_map, and ext/hash_map.
311         * configure, config.in: Rebuild.
313 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
315         PR target/46685
316         * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
317         (sparc_expand_move): Call it to decide whether to emit the special
318         mov{si,di}_pic_label_ref patterns.
319         (sparc_legitimize_pic_address): Call it to decide whether to emit
320         the regular PIC sequence for labels.  Fix long line.
321         (sparc_file_end): Set is_thunk for the PIC helper.
323 2010-12-02  Eric Botcazou  <ebotcazou@adacore.com>
325         * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
326         for a non-shared type.
328 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
330         PR middle-end/45297
331         * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
332         with MEM_REFs as POINTER_PLUS_EXPR.
334 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
336         * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
337         config/sparc/linux.h, config/sparc/linux64.h: Remove comments
338         mentioning /lib/elf.
340 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
342         * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
343         * config/frv/frv.h (LINK_SPEC): Remove %{b}.
344         * config/i386/netware.h (LINK_SPEC): Remove %{b}.
345         * config/i386/nto.h (LINK_SPEC): Remove %{b}.
346         * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
347         * config/sol2.h (LINK_SPEC): Remove %{b}.
348         * config/svr4.h (LINK_SPEC): Remove %{b}.
350 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
352         * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
353         * config/i386/linux.h (LINK_SPEC): Cut long comment.
354         * config/i386/netware.h (LINK_SPEC): Remove %{V}.
355         * config/m32r/linux.h (LINK_SPEC): Cut long comment.
356         * config/m68k/linux.h (LINK_SPEC): Cut long comment.
357         * config/sparc/linux.h (LINK_SPEC): Cut long comment.
358         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
359         * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
360         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
361         * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
362         %{v:%{!V:-V}}.
364 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
366         * gcc.c (trad_capable_cpp, default_compilers): Don't handle
367         -ftraditional.
369 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
371         * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
372         * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
373         * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
374         * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
375         * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
376         * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
377         * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
378         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
379         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
380         * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
381         * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
382         * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
383         * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
384         * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
385         * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
386         * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
387         * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
388         * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
390 2010-12-02  Paul Koning  <ni1d@arrl.net>
392         * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
393         opcodes if CC_NO_OVERFLOW is set.
394         (notice_update_cc_on_set): Correct setting of CC0 as a side
395         effect; set CC_NO_OVERFLOW for cases where C flag is not
396         meaningful.
398 2010-12-02  Ian Lance Taylor  <iant@google.com>
400         * doc/install.texi (Configuration): Update default for
401         --with-boot-ldflags.
403 2010-12-02  Nathan Froyd  <froydnj@codesourcery.com>
405         PR c/45062
406         * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
407         !funcdef_flag.
409 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
411         PR tree-optimization/45199
412         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
413         (stores_zero_from_loop): Call
414         mem_write_stride_of_same_size_as_unit_type_p.
415         * tree-data-ref.h (stride_of_unit_type_p): New.
416         * tree-loop-distribution.c (generate_memset_zero): Simplified.
417         Call stride_of_unit_type_p.
418         (build_rdg_partition_for_component): Do not call
419         rdg_flag_similar_memory_accesses when
420         flag_tree_loop_distribute_patterns is set.
422 2010-12-02  Richard Guenther  <rguenther@suse.de>
424         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
425         sign-changing conversions for induction detection.
427 2010-12-02  Richard Guenther  <rguenther@suse.de>
429         PR tree-optimization/46723
430         * tree-vect-loop.c (get_initial_def_for_induction): Strip
431         conversions from the induction evolution and apply it to
432         the result instead.
433         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
434         assigns for induction defs.
436 2010-12-02  Richard Guenther  <rguenther@suse.de>
438         * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
439         the case we need to split the edge and not the block.
441 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
443         DFA model for Core 2 and Core i7 scheduling.
445         * config/i386/core2.md: New DFA model for Core 2 and Core i7.
446         * config/i386/i386.c (ix86_option_override_internal): Update entries
447         for Core 2 and Core i7.
448         (ix86_issue_rate): Set issue rate to 3 [be realistic].
449         * config/i386/i386.md: Include "core2.md".
450         (define_attr cpu): Add "corei7".
452 2010-12-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
454         Define tuning for Core 2 and Core i7.
456         * config/i386/i386-c.c (ix86_target_macros_internal): Update.
457         * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
458         (m_CORE2): Replace with m_CORE2_{32,64}.
459         (m_CORE2I7{,_32,_64}): New macros.
460         (m_GENERIC32, m_GENERIC64): Update.
461         (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
462         (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
463         set m_CORE2I7_64 iff m_GENERIC64.
464         (processor_target_table): Use generic costs for Core 2 and Core i7.
465         (ix86_option_override_internal): Update entries for Core 2 and Core i7.
466         (ix86_issue_rate): Remove entry for Core 2.
467         (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
468         * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
469         (TARGET_CORE2): Update.
470         (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
471         (PROCESSOR_CORE2): Remove.
473 2010-12-02  Richard Guenther  <rguenther@suse.de>
475         * lto-streamer.h (LTO_major_version): Bump to 2.
477 2010-12-02  Richard Guenther  <rguenther@suse.de>
479         PR lto/44871
480         * gimple.c (canonical_type_hash_cache): New hashtable.
481         (gimple_type_hash): Make a wrapper around ...
482         (gimple_type_hash_1): ... this.  Take gtc_mode argument.
483         (gimple_canonical_type_hash): Likewise.
484         (gtc_visit): Take a gtc_mode argument.
485         (gimple_types_compatible_p_1): Likewise. Do not compare struct
486         tag names or field names when computing canonical types.
487         (gimple_types_compatible_p): Adjust.
488         (visit): Take a gtc_mode argument.
489         (iterative_hash_gimple_type): Likewise.  Do not hash struct tag
490         names or field names when computing hashes of canonical types.
491         (gimple_register_canonical_type): Use gimple_canonical_type_hash
492         for the hash.
493         (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
494         (free_gimple_type_tables): Free canonical_type_hash_cache.
496 2010-12-02  Richard Guenther  <rguenther@suse.de>
497             Ira Rosen  <irar@il.ibm.com>
499         PR tree-optimization/46663
500         * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
501         FUNCTION_DECL exists and that it's a builtin.
503 2010-12-02  Jie Zhang  <jie@codesourcery.com>
505         PR middle-end/46674
506         * varasm.c (compute_visible_aliases): Handle user set
507         assembler name.
509 2010-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
511         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
512         thinko regarding setting -mno-<xxx> debug switches.
513         (rs6000_rtx_costs): Add FMA.  Delete old rtl based FMA costs.
515 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
517         * intl.c: Don't include tm.h.
518         * Makefile.in (intl.o): Don't depend on $(TM_H).
520 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
522         * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
523         unused warning.
524         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
526 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
528         * graphite-sese-to-poly.c (analyze_drs): Removed.
529         (build_scop_drs): Do not call analyze_drs.
530         (analyze_drs_in_stmts): New.
531         (insert_stmts): New.
532         (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
533         (insert_out_of_ssa_copy_on_edge): Same.
534         (rewrite_close_phi_out_of_ssa): Call insert_stmts.
535         (rewrite_phi_out_of_ssa): Same.
536         (rewrite_cross_bb_scalar_dependence): Same.
537         (split_reduction_stmt): Move data references in the new basic blocks.
538         (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
540 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
542         * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
544 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
546         PR middle-end/45297
547         * graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
548         the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
549         * graphite-poly.h (new_poly_bb): Update declaration.
550         (gbb_from_bb): Moved here...
551         (pbb_from_bb): New.
552         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
553         Removed.
554         (graphite_stmt_p): Removed.
555         (try_generate_gimple_bb): Returns a gimple_bb_p.  Do not pass in
556         sbitmap reductions.  Always build a gimple_bb_p.  Do not call
557         new_poly_bb.
558         (build_scop_bbs_1): Do not pass in sbitmap reductions.
559         (build_scop_bbs): Same.
560         (gbb_from_bb): ... from here.
561         (add_conditions_to_constraints): Moved up.
562         (analyze_drs): New.
563         (build_scop_drs): Call analyze_drs.  Remove all the PBBs that do
564         not contain data references.
565         (new_pbb_from_pbb): New.
566         (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
567         block is split.
568         (rewrite_close_phi_out_of_ssa): Update call to
569         insert_out_of_ssa_copy_on_edge.
570         (rewrite_reductions_out_of_ssa): Now static.
571         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
572         (split_pbb): New.
573         (split_reduction_stmt): Call split_pbb.
574         (translate_scalar_reduction_to_array): Pass in the scop, do not
575         pass in the sbitmap reductions.
576         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
577         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
578         (rewrite_commutative_reductions_out_of_ssa): Same.
579         (build_poly_scop): Call build_scop_bbs,
580         rewrite_commutative_reductions_out_of_ssa,
581         rewrite_reductions_out_of_ssa, and
582         rewrite_cross_bb_scalar_deps_out_of_ssa.  Move build_scop_drs
583         before scop_to_lst.
584         * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
585         Removed declaration.
586         (rewrite_reductions_out_of_ssa): Same.
587         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
588         (build_scop_bbs): Same.
589         * graphite.c (graphite_transform_loops): Do not initialize reductions.
590         Do not call build_scop_bbs,
591         rewrite_commutative_reductions_out_of_ssa,
592         rewrite_reductions_out_of_ssa, and
593         rewrite_cross_bb_scalar_deps_out_of_ssa.
594         * sese.h (struct gimple_bb): Add field pbb.
595         (GBB_PBB): New.
597 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
599         * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
600         New.
601         (rewrite_cross_bb_scalar_deps): Pass in the scop.  Call
602         handle_scalar_deps_crossing_scop_limits.
603         (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
604         after the scop.  Update call to rewrite_cross_bb_scalar_deps.
606 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
608         * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
609         when replacing a constant in an ADDR_EXPR.
611 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
613         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
614         for the stride.
615         (lst_do_strip_mine): Same.
616         (scop_do_strip_mine): Same.
617         * graphite-poly.c (apply_poly_transforms): Update call to
618         scop_do_strip_mine.
619         * graphite-poly.h (scop_do_strip_mine): Update declaration.
621 2010-12-01  Jan Hubicka  <jh@suse.cz>
623         * tree.c (build_common_builtin_nodes): Do not initialize
624         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
625         * builtins.c (expand_builtin_profile_func): Remove.
626         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
627         BUILT_IN_PROFILE_FUNC_EXIT.
628         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
629         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
630         * gimplify.c (gimplify_function_tree): Reorganize code calling
631         profiling functions.
633 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
635         * opts.c: Expand comment on tm.h include.
637 2010-12-01  Yao Qi  <yao@codesourcery.com>
639         * config/arm/predicates.md ("vfp_register_operand"): Return true for
640         VFP_D0_D7_REGS classes.
642 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
644         * common.opt (flag_stack_check): New Variable entry.
645         (fcompare-debug-second): Use Var.
646         * flags.h (flag_compare_debug, flag_stack_check): Remove.
647         * opts.c (flag_compare_debug): Remove.
648         (common_handle_option): Don't handle OPT_fcompare_debug_second.
649         Set opts->x_flag_stack_check for OPT_fstack_check_.
650         * toplev.c (flag_stack_check): Remove.
652 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
654         * common.opt (main_input_filename, main_input_basename,
655         main_input_baselength): New Variable entries.  From toplev.c.
656         * final.c (output_quoted_string): Move from toplev.c.
657         * output.h (output_quoted_string): Move from toplev.h.
658         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
659         access main_input_filename, main_input_baselength and
660         main_input_basename.
661         * targhooks.c: Include intl.h and opts.h.
662         (option_affects_pch_p, default_get_pch_validity): Move from
663         toplev.c.
664         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
665         Move from toplev.h.
666         * toplev.c (main_input_filename, main_input_basename,
667         main_input_baselength): Move to common.opt.
668         (output_quoted_string): Move to final.c.
669         (warn_deprecated_use): Move to tree.c.
670         (option_affects_pch_p, default_get_pch_validity,
671         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
672         * toplev.h (skip_leading_substring): Move to tree-dump.c.
673         (warn_deprecated_use): Move to tree.h.
674         (output_quoted_string): Move to output.h.
675         (main_input_filename, main_input_basename, main_input_baselength):
676         Move to common.opt.
677         (default_get_pch_validity, default_pch_valid_p): Move to
678         targhooks.c.
679         * tree-dump.c (skip_leading_substring): Move from toplev.h.
680         * tree.c (warn_deprecated_use): Move from toplev.c.
681         * tree.h (warn_deprecated_use): Move from toplev.h.
682         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
683         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
684         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
685         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
686         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
687         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
688         config/mcore/mcore.c, config/mep/mep.c,
689         config/microblaze/microblaze.c, config/mips/mips.c,
690         config/mmix/mmix.c, config/mn10300/mn10300.c,
691         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
692         config/picochip/picochip.c, config/s390/s390.c,
693         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
694         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
695         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
696         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
697         varasm.c, xcoffout.c: Don't include toplev.h.
698         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
699         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
700         varasm.o, xcoffout.o): Update dependencies.
701         * config/arm/t-arm (arm.o): Update dependencies.
702         * config/spu/t-spu-elf (spu.o): Update dependencies.
704 2010-12-01  Richard Guenther  <rguenther@suse.de>
706         PR tree-optimization/46730
707         * value-prof.c (gimple_ic): Always generate a separate merge BB.
709 2010-11-30  Ian Lance Taylor  <iant@google.com>
711         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
712         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
713         * config/i386/linux64.h (ASM_SPEC): Likewise.
714         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
715         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
716         * config/i386/vxworks.h (ASM_SPEC): Likewise.
717         * config/i386/x86-64.h (ASM_SPEC): Likewise.
718         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
719         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
721 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
723         * c-decl.c (finish_function): Call objc_finish_function in
724         Objective-C.
725         * c-typeck.c (convert_for_assignment): Do not call
726         objc_type_quals_match().
728 2010-11-30  Richard Guenther  <rguenther@suse.de>
730         PR tree-optimization/46722
731         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
732         operands as arguments.
733         (execute_optimize_widening_mul): Also handle power of two as
734         multiplication.
736 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
738         PR middle-end/46709
739         * cgraphunit.c (process_function_and_variable_attributes): Fix
740         cut'n'pasteo.
742 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
744         * hwint.c:  New.  Extracted from toplev.c.
745         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
746         Move from toplev.h.
747         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
748         Move to hwint.c.
749         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
750         Move to hwint.h.
751         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
752         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
753         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
754         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
755         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
756         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
757         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
758         tree-vrp.c: Don't include toplev.h.
759         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
760         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
761         toplev.h in generated output.
762         * Makefile.in (OBJS-common): Add hwint.o.
763         Dependencies for above files changed to remove toplev.h.
764         (hwint.o): New.
765         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
766         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
767         toplev.h.
768         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
769         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
771 2010-11-30  Richard Guenther  <rguenther@suse.de>
773         PR tree-optimization/46717
774         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
775         call.  Manually create EH edges for the direct call and update
776         target PHI nodes.
778 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
780         * diagnostic-core.h: Include bversion.h.
781         * toplev.h: Don't include input.h or bversion.h.
782         (parse_optimize_options): Don't declare here.
783         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
784         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
785         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
786         config/host-darwin.c, config/i386/host-cygwin.c,
787         config/i386/host-mingw32.c, config/i386/msformat-c.c,
788         config/i386/netware.c, config/i386/nwld.c,
789         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
790         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
791         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
792         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
793         config/score/score3.c, config/score/score7.c,
794         config/sh/symbian-base.c, config/sh/symbian-c.c,
795         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
796         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
797         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
798         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
799         graphite-blocking.c, graphite-clast-to-gimple.c,
800         graphite-dependences.c, graphite-flattening.c,
801         graphite-interchange.c, graphite-poly.c,
802         graphite-scop-detection.c, graphite.c, haifa-sched.c,
803         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
804         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
805         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
806         lto-opts.c, lto-section-in.c, lto-section-out.c,
807         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
808         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
809         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
810         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
811         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
812         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
813         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
814         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
815         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
816         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
817         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
818         include toplev.h.
819         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
820         toplev.h.  Dependencies for above files and c-family files changed
821         to remove $(TOPLEV_H) or toplev.h.
822         (C_TREE_H): Don't include $(TOPLEV_H).
823         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
824         bversion.h.
825         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
826         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
827         config/t-darwin, config/t-sol2,
828         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
829         Dependencies for above files changed to remove $(TOPLEV_H) or
830         toplev.h.
832 2010-11-30  Richard Guenther  <rguenther@suse.de>
834         PR lto/44986
835         * gcc.c (main): Use the first input with a compiler as infile
836         for link spec processing.
838 2010-11-30  Richard Guenther  <rguenther@suse.de>
840         PR lto/45949
841         * cgraphunit.c (ipa_passes): Stop after errors from
842         small IPA passes.
844 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
846         * gcc-plugin.h: Include coretypes.h.
847         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
849 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
851         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
852         * ggc-none.c (ggc_internal_alloc_zone_stat)
853         (ggc_internal_cleared_alloc_zone_stat): New.
855 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
857         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
858         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
859         (rs6000_emit_prologue): Don't set PIC register if
860         TARGET_SINGLE_PIC_BASE.
861         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
862         * doc/invoke.texi (msingle-pic-base): Document.
864 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
866         PR driver/46712
867         * exec-tool.in (id): New.
868         Check and export LT_RCU_$id instead of LT_RCU.
870 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
872         PR tree-optimization/46675
873         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
874         in offset calculation.
876 2010-11-29  Jan Hubicka  <jh@suse.cz>
878         * collect2.c (main): Do not imply verbose output with
879         LTO and linker plugin.
881 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
883         * dwarf2out.c (print_die): Print the address of the current DIE or
884         of any DIE referenced by the current one.
886 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
888         PR debug/46101
889         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
890         function.
891         (scope_die_for, gen_type_die_for_member): Replace uses of
892         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
894 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
896         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
897         (darwin_asm_declare_object_name): Correct spelling.
898         (darwin_output_aligned_bss): Likewise.
900 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
901             Mike Stump  <mrs@gcc.gnu.org>
903         PR target/26427
904         PR target/33120
905         PR testsuite/35710
906         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
907         (ASM_OUTPUT_LOCAL): Likewise.
908         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
909         (darwin_output_aligned_bss): Likewise.
910         (darwin_asm_output_aligned_decl_local): Likewise.
911         (darwin_asm_output_aligned_decl_common): Likewise.
912         (darwin_use_anchors_for_symbol_p): Likewise.
913         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
914         (TARGET_ASM_OUTPUT_ANCHOR): Define.
915         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
916         (DARWIN_SECTION_ANCHORS): Set to 1.
917         * config/darwin.c (emit_aligned_common): New var.
918         (darwin_init_sections): Check that the Darwin private zero-size section
919         marker is in range.
920         (darwin_text_section): Check for zero-sized objects.
921         (darwin_mergeable_string_section): Likewise.
922         (darwin_mergeable_constant_section): Likewise.
923         (machopic_select_section): Adjust to check for zero-sized objects.
924         Assert that OBJC meta data are non-zero sized.
925         (darwin_asm_declare_object_name): New.
926         (darwin_asm_declare_constant_name): Adjust for zero-sized
927         object sections.
928         (BYTES_ZFILL): Define.
929         (darwin_emit_weak_or_comdat): New.
930         (darwin_emit_local_bss): New.
931         (darwin_emit_common): New.
932         (darwin_output_aligned_bss): New.
933         (darwin_asm_output_aligned_decl_common): New.
934         (darwin_asm_output_aligned_decl_local): New.
935         (darwin_file_end): Disable subsections_via_symbols when section
936         anchoring is active.
937         (darwin_asm_output_anchor): Re-enable.
938         (darwin_use_anchors_for_symbol_p): New.
939         (darwin_override_options): Check for versions that can emit
940         aligned common.  Update usage of flags to current.
941         * config/darwin-sections.def: Update comments and flags for
942         non-anchor sections.  zobj_const_section, zobj_data_section,
943         zobj_bss_section, zobj_const_data_section: New.
944         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
945         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
946         (L2_MAX_OFILE_ALIGNMENT): Define.
947         (ASM_OUTPUT_ALIGNED_BSS): Define.
948         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
949         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
950         (SECTION_NO_ANCHOR): Define.
951         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
952         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
954 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
956         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
957         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
958         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
959         Conditionally define.
960         (GET_ENVIRONMENT): Poison.
961         * configure.ac: Don't test for mincore.
962         * configure: Regenerate.
963         * config.in: Regenerate.
964         * collect2-aix.c: Don't include <sys/mman.h>.
965         * collect2.c: Don't include <signal.h>.
966         (SIGCHLD): Don't define.
967         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
968         * config/alpha/alpha.c: Include "splay-tree.h" instead of
969         <splay-tree.h>.
970         * config/arm/arm.c (arm_target_help): Use getenv instead of
971         GET_ENVIRONMENT.
972         * config/avr/driver-avr.c: Don't include <stdlib.h>.
973         * config/frv/frv.c: Don't include <ctype.h>.
974         * config/host-darwin.c: Don't include <sys/mman.h>.
975         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
976         (MAP_FAILED): Don't define.
977         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
978         * config/host-solaris.c: Don't include <sys/mman.h>.
979         * config/i386/cygming.h: Don't include <stdio.h>.
980         * config/i386/driver-i386.c: Don't include <stdlib.h>.
981         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
982         * config/iq2000/iq2000.c: Don't include <signal.h>.
983         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
984         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
985         * config/mep/mep-pragma.c: Don't include <stdio.h>.
986         * config/microblaze/microblaze.c: Don't include <signal.h>.
987         * config/mips/mips.c: Don't include <signal.h>.
988         * config/rs6000/host-darwin.c: Don't include <signal.h>.
989         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
990         * defaults.h (GET_ENVIRONMENT): Don't define.
991         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
992         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
993         (SIGCHLD, MAP_FAILED, kill): Don't define.
994         (process_command): Use getenv instead of GET_ENVIRONMENT.
995         * genhooks.c: Don't include <string.h>.
996         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
997         <sys/types.h>.
998         (MAP_FAILED): Don't define.
999         * ggc-page.c Don't include <sys/mman.h>.
1000         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1001         * ggc-zone.c: Don't include <sys/mman.h>.
1002         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1003         * graph.c: Include "config.h" instead of <config.h>.
1004         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
1005         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
1006         (SIGCHLD, kill): Don't define.
1007         * mips-tfile.c: Don't include <signal.h>.
1008         * opts.c: Don't include <signal.h> or <sys/resource.h>.
1009         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
1010         * passes.c: Don't include <signal.h>, <sys/resource.h> or
1011         <sys/times.h>.
1012         * sparseset.h: Don't include <assert.h>.
1013         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1014         * tlink.c: Don't include "libiberty.h".
1015         * toplev.c: Don't include <signal.h> or <sys/times.h>.
1016         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1017         * tree-switch-conversion.c: Don't include <signal.h>.
1018         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1020 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1022         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1023         c_parser_objc_try_catch_finally_statement for consistency with the
1024         C++ parser.  Parse @catch(...) and pass NULL_TREE to
1025         objc_begin_catch_clause() in that case.  Improved error recovery.
1026         Reorganized code to be almost identical to
1027         cp_parser_objc_try_catch_finally_statement.
1029 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
1031         PR tree-optimization/46621
1032         * gimple.h: Don't include tm.h or hard-reg-set.h .
1033         * Makefile.in (GIMPLE_H): Remove $(TM_H).
1035         PR bootstrap/44756
1036         * cppbuiltin.c: Include target.h .
1037         (define_builtin_macros_for_type_sizes):
1038         Use targetm.float_words_big_endian.
1040 2010-11-27  Jan Hubicka  <jh@suse.cz>
1042         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1043         and output cold_text_section_label.
1044         (dwarf2out_init): Don't do that there.
1045         (dwarf2out_finish): Handle cold section end label only if cold
1046         section was used.
1048 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1050         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1051         VLA variables.
1053 2010-11-27  Richard Guenther  <rguenther@suse.de>
1055         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1056         (gimple_assign_ssa_name_copy_p): Likewise.
1057         (gimple_assign_unary_nop_p): Use is_gimple_assign.
1058         (is_gimple_cast): Remove.
1059         (gimple_assign_single_p): Move ...
1060         * gimple.h (gimple_assign_single_p): ... here.
1061         (is_gimple_cast): Remove.
1062         (gimple_assign_rhs_code): Simplify.
1063         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1064         instead of is_gimple_cast.
1065         * ipa-type-escape.c (look_for_casts): Likewise.
1067 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
1069         * doc/options.texi (Enum, EnumValue): Document new record types.
1070         (Enum): Document new option flag.
1071         * opt-functions.awk
1072         * optc-gen.awk: Handle enumerated option arguments.
1073         * opth-gen.awk: Handle enumerated option arguments.
1074         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1075         enum_value_to_arg): New.
1076         (decode_cmdline_option): Handle enumerated arguments.
1077         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1078         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1079         * opts.c (print_filtered_help, print_specific_help): Take
1080         lang_mask arguments.
1081         (print_filtered_help): Handle printing values of enumerated
1082         options.  Print possible arguments for enumerated options.
1083         (print_specific_help): Update call to print_filtered_help.
1084         (common_handle_option): Update calls to print_specific_help.  Use
1085         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
1086         handle OPT_ffp_contract_, OPT_fexcess_precision_,
1087         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1088         OPT_fira_region_ here.
1089         * opts.h (enum cl_var_type): Add CLVC_ENUM.
1090         (struct cl_option): Add var_enum.
1091         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1092         struct cl_enum, cl_enums, cl_enums_count): New.
1093         (CL_ERR_ENUM_ARG): Define.
1094         (CL_ERR_NEGATIVE): Update value.
1095         (enum_value_to_arg): Declare.
1096         * common.opt (flag_ira_algorithm, flag_ira_region,
1097         flag_fp_contract_mode, flag_excess_precision_cmdline,
1098         default_visibility, flag_tls_default): Remove Variable entries.
1099         (help_enum_printed): New Variable.
1100         (fdiagnostics-show-location=): Use Enum.  Add associated
1101         SourceInclude, Enum and EnumValue entries.
1102         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1103         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
1104         associated Enum and EnumValue entries.
1106 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
1108         PR target/46623
1109         * config/microblaze/microblaze.c (microblaze_block_move_straight):
1110         Use XALLOCAVEC.
1111         (microblaze_option_override): Don't use C++ style comments.
1112         (save_restore_insns): Remove unused variable base_offset.
1113         (microblaze_expand_prologue): Remove unused variable insn.
1114         (microblaze_secondary_reload): Adjust type to match target.h .
1115         (microblaze_elf_in_small_data_p): Move declarations to start of block.
1116         (microblaze_expand_move): Likewise.
1117         * config/microblaze/microblaze.h (LARGE_INT):
1118         Avoid signed / unsigned comparisons.
1119         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1120         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1121         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
1123 2010-11-26  Michael Matz  <matz@suse.de>
1125         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1127         * passes.c (init_optimization_passes): Remove superfluous
1128         copy-prop pass.
1130 2010-11-26  Richard Guenther  <rguenther@suse.de>
1132         PR lto/46648
1133         * gimple.c (gtc_visit): Do not return true for members of an
1134         SCC still being processed but the current lattice value of
1135         the member.  Treat SCC members comparison state as lattice,
1136         starting at equal, eventually dropping to unequal.
1137         (gimple_types_compatible_p_1): Likewise.
1139 2010-11-26  Richard Guenther  <rguenther@suse.de>
1141         PR middle-end/46559
1142         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1143         for location list processing.
1145 2010-11-26  Richard Guenther  <rguenther@suse.de>
1147         PR lto/46560
1148         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1149         flags manually.
1151 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1153         * config/s390/s390.c (print_operand_address): Replace assert with
1154         error message.
1155         (print_operand): Replace assertions, gcc_unreachable and
1156         fatal_insn with error messages.
1158 2010-11-26  Richard Guenther  <rguenther@suse.de>
1160         PR tree-optimization/46665
1161         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1163 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
1165         * config/arm/arm.c (arm_option_override): enable loop array
1166         prefetching at -O3 for suitable targets, and configure params.
1167         * config/arm/arm-protos.h (struct tune_params): Add fields for
1168         configuring loop array prefetching.
1170 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
1172         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1174 2010-11-26  Richard Guenther  <rguenther@suse.de>
1176         PR tree-optimization/46664
1177         * tree-affine.c (aff_combination_to_tree): Add rest last.
1179 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1181         PR target/33637
1182         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1183         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1184         * configure: Regenerated.
1185         * exec-tool.in: Not quoting command, may have extra arguments.
1187 2010-11-26  Richard Guenther  <rguenther@suse.de>
1189         PR tree-optimization/46528
1190         PR debug/46338
1191         * profile.c (branch_prob): Do not split blocks based on locations
1192         from debug statements.
1194 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
1196         PR middle-end/46647
1197         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1198         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
1200         PR bootstrap/45700
1201         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1202         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1203         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1204         build6_loc): Define.
1205         * fold-const.c (protected_set_expr_location_unshare): New inline.
1206         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1207         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1208         pedantic_omit_one_operand_loc, omit_two_operands_loc,
1209         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1210         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1211         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1212         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1213         instead of buildN followed by SET_EXPR_LOCATION or
1214         protected_set_expr_location.
1215         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1216         Use buildN_stat_loc instead of buildN_stat followed by
1217         SET_EXPR_LOCATION.
1219 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
1221         * Makefile.in (s-tm-texi): Remove spurous tab.
1223 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1225         PR debug/46258
1226         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1227         debug stmts.
1229 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1231         * toplev.c (finalize): Add no_backend parameter.  Don't finish
1232         passes when preprocessing only.  Adjust...
1233         (do_compile): ... caller.
1235 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1237         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1238         flag_unsafe_math_optimizations.
1239         (negsf2): Likewise.
1240         Move fnegabs related patterns together.  Only use fmpynfadd instruction
1241         to negate a multiply if !flag_signed_zeros is true.
1243 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
1245         * gengtype-state.c (read_state_structures): Initialize "previous".
1247 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
1248             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1250         * gengtype-state.c: Add new file.
1252         * gengtype.c (type count): New variable.
1253         (new_structure, find_param_structure, create_pointer)
1254         (create_array): Use it to set state_number in types.
1255         (dump_everything): Improve comment.
1256         (main): Call read_state and write_state. Print type_count.
1258         * gengtype.h (type_lineloc): New function.
1259         (read_state, write_state): New declarations.
1261         * Makefile.in (GENGTYPE_FLAGS): New variable.
1262         (s-gtype): Run gengtype twice and generate gtype.state.
1263         (build/gengtype-state.o): New rule.
1264         (build/gengtype$(build_exeext)): Link gengtype-state.o.
1265         (mostlyclean): Update comment.  Remove gtype.state.
1267 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
1269         PR middle-end/46637
1270         * combine.c (try_combine): When substing i2dest for i2src, pass
1271         1 as last argument even if
1272         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1274 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
1276         PR middle-end/46647
1277         * builtins.c (target_char_cast): Check INTEGER_CST instead of
1278         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
1280 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
1282         * target.def (supports_split_stack, except_unwind_info): Take
1283         gcc_options parameters.
1284         * targhooks.c (default_except_unwind_info,
1285         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1286         gcc_options parameters.
1287         * targhooks.h (default_except_unwind_info,
1288         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
1289         prototypes.
1290         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
1291         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
1292         Document that hooks must not be modified.
1293         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
1294         * doc/tm.texi: Regenerate.
1295         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
1296         &global_options to targetm.except_unwind_info.
1297         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1298         dwarf2out_begin_prologue, dwarf2out_frame_init,
1299         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
1300         &global_options to targetm.except_unwind_info.
1301         * except.c (init_eh, finish_eh_generation,
1302         gate_convert_to_eh_region_ranges,
1303         output_one_function_exception_table): Pass &global_options to
1304         targetm.except_unwind_info.
1305         * expr.c (build_personality_function): Pass &global_options to
1306         targetm.except_unwind_info.
1307         * function.c (expand_function_end): Pass &global_options to
1308         targetm.except_unwind_info.
1309         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
1310         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
1311         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
1312         and targetm.supports_split_stack.  Remove assertions about opts
1313         and opts_set.
1314         (common_handle_option): Remove assertions about opts, opts_set and dc.
1315         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
1316         &global_options to targetm.except_unwind_info.
1317         * tree.c (build_common_builtin_nodes: Pass &global_options to
1318         targetm.except_unwind_info.
1319         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
1320         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
1321         thumb1_expand_prologue, thumb1_output_function_prologue,
1322         arm_unwind_emit, arm_output_fn_unwind): Update calls to
1323         arm_except_unwind_info.
1324         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
1325         parameter.
1326         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
1327         parameter.
1328         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
1329         ia64_reorg, ia64_asm_unwind_emit): Update calls to
1330         ia64_except_unwind_info.
1331         * config/pa/pa.c (pa_option_override): Pass &global_options to
1332         targetm.except_unwind_info.
1333         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1334         Remove prototype.
1336 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
1338         * cgraphunit.c (process_function_and_variable_attributes):
1339         Mark dllexport-ed function/variables as needed.
1340         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
1341         as externally visible.
1343 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
1345         PR rtl-optimization/46585
1346         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
1347         (vinsn_init): Skip computation of dependencies for local NOPs.
1348         (vinsn_delete): Don't try to free regsets for local NOPs.
1349         (setup_nop_and_exit_insns): Change definition of nop_pattern.
1351 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
1353         PR rtl-optimization/46602
1354         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
1355         (tidy_control_flow): Here.
1357 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
1358             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1360         PR bootstrap/45888
1361         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
1362         Fix target.def pathname in timestamp comparison.
1364 2010-11-24  Richard Henderson  <rth@redhat.com>
1366         * config/ia64/predicates.md (pmpyshr_operand): New.
1367         * config/ia64/ia64.c (ia64_expand_unpack): New.
1368         (ia64_expand_widen_mul_v4hi): New.
1369         (ia64_expand_widen_sum): Update for pattern renames.
1370         (ia64_expand_dot_prod_v8qi): Likewise.
1371         * config/ia64/ia64-protos.h: Update.
1372         * config/ia64/vect.md (vecwider): New mode attribute.
1373         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
1374         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
1375         (pmpyshr2, pmpyshr2_u): New.
1376         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
1377         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
1378         (mulv2si3): New.
1379         (vec_pack_ssat_v4hi): Rename from pack2_sss.
1380         (vec_pack_usat_v4hi): Rename from *pack2_uss.
1381         (vec_pack_ssat_v2si): Rename from pack4_sss.
1382         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
1383         vec_select operation.
1384         (vec_interleave_highv8qi): Similarly.
1385         (mux1_alt): Rename from *mux1_alt.
1386         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
1387         (vec_interleave_lowv4hi): Rename from unpack2_l.
1388         (vec_interleave_highv4hi): Rename from unpack2_h.
1389         (mix2_r): Rename from *mix2_r.
1390         (mix2_l): Similarly.
1391         (vec_extract_evenodd_helper): New.
1392         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
1393         (vec_interleave_lowv2si): Rename from *unpack4_l.
1394         (vec_interleave_highv2si): Rename from *unpack4_h.
1395         (vec_extract_evenv2si, vec_extract_oddv2si): New.
1396         (vec_interleave_lowv2sf): Rename from fmix_r.
1397         (vec_interleave_highv2sf): Rename from *fmix_l.
1398         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
1399         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
1400         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
1401         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
1403 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
1405         * targhooks.c (default_except_unwind_info): Remove
1406         MUST_USE_SJLJ_EXCEPTIONS case.
1407         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1408         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1409         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1410         * doc/tm.texi: Regenerate.
1411         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
1413 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
1415         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1416         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
1417         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
1418         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
1419         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
1421 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1423         PR target/46519
1424         * config/i386/i386.c (ix86_expand_call): Don't check
1425         TREE_THIS_VOLATILE.
1427 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1429         PR target/46519
1430         * config/i386/i386.c (upper_128bits_state): New.
1431         (block_info_def): Remove upper_128bits_set and done.  Add state,
1432         referenced, count, processed and rescanned.
1433         (check_avx256_stores): Updated.
1434         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
1435         Call note_stores only if needed.  Set referenced and count.
1436         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
1437         (rescan_move_or_delete_vzeroupper): New.
1438         (move_or_delete_vzeroupper):  Process and rescan all all basic
1439         blocks instead of predecessor blocks of all exit points.
1440         (ix86_option_override_internal): Enable vzeroupper optimization
1441         only for -fexpensive-optimizations and not optimizing for size.
1442         (use_avx256_p): Removed.
1443         (init_cumulative_args): Don't set use_avx256_p.
1444         (ix86_function_arg): Likewise.
1445         (ix86_expand_move): Likewise.
1446         (ix86_expand_vector_move_misalign): Likewise.
1447         (ix86_local_alignment): Likewise.
1448         (ix86_minimum_alignment): Likewise.
1449         (ix86_expand_epilogue): Don't check use_avx256_p when generating
1450         vzeroupper.
1451         (ix86_expand_call): Likewise.
1453         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
1454         and use_avx256_p.  Add rescan_vzeroupper_p.
1456 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1458         * toplev.c: Include <signal.h>.
1460 2010-11-24  Richard Guenther  <rguenther@suse.de>
1462         PR lto/43218
1463         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
1464         conflicting function signatures as non-inlineable.
1466 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1468         PR rtl-optimization/46614
1469         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
1470          (deps_analyze_insn): Mark JUMP_INSNs in
1471         last_pending_memory_flush that weren't added through
1472         flush_pending_lists with NON_FLUSH_JUMP_KIND.
1473         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
1474         on INSN_LIST instead of JUMP_P check on its operand.
1475         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
1477 2010-11-24  Richard Guenther  <rguenther@suse.de>
1479         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
1481 2010-11-24  Richard Guenther  <rguenther@suse.de>
1483         PR lto/46606
1484         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
1485         a FIELD_DECL that is type correct issue a warning and fixup
1486         with a VIEW_CONVERT_EXPR.
1488 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1490         * doc/invoke.texi (Options for Debugging Your Program or GCC):
1491         Explain static numbering of dump files.
1493 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1495         * common.opt (user_vect_verbosity_level): New Variable entry.
1496         (ftree-vectorizer-verbose=): Mark as UInteger.
1497         * flag-types.h (enum vect_verbosity_levels): Move from enum
1498         verbosity_levels in tree-vectorizer.h.
1499         * opts.c: Don't include tree.h.
1500         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
1501         gcc_options parameter; take integer option argument.
1502         (common_handle_option): Update call to vect_set_verbosity_level.
1503         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
1504         (vect_set_verbosity_level): Move to opts.c.
1505         (vect_verbosity_level, vect_print_dump_info): Update for change of
1506         enum name.
1507         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
1508         (vect_print_dump_info): Update for change of enum name.
1509         * tree.h (vect_set_verbosity_level): Remove.
1510         * Makefile.in (opts.o): Update dependencies.
1512 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1514         PR middle-end/46629
1515         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
1516         instead of insn with any_condjump_p.
1518 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
1520         * config/mips/loongson.md: Change the description comment of the file
1521         and update the copyright years.
1522         (define_insn "<u>div<mode>3): Add loongson3a support.
1523         (define_insn "<u>mod<mode>3"): Likewise.
1524         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
1525         mul<mode>3_mul3_loongson.
1526         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
1527         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
1529 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1531         * common.opt (initial_max_fld_align, flag_debug_asm,
1532         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
1533         flag_print_asm_name, graph_dump_format, help_printed,
1534         help_columns, flag_opts_finished): New Variable entries.
1535         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
1536         frandom-seed=): Mark deferred.
1537         (fsched-verbose=): Use UInteger and Var.
1538         * flags.h (set_struct_debug_option, flag_print_asm_name,
1539         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
1540         graph_dump_format): Don't declare here.
1541         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
1542         * opts-global.c: Include dbgcnt.h and debug.h.
1543         (decode_options): Pass location to finish_options.
1544         (handle_common_deferred_options): Check flag_dump_all_passed.
1545         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
1546         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
1547         OPT_fstack_limit.
1548         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
1549         (set_struct_debug_option): Add location_t parameter.  Update
1550         recursive call.  Use error_at.
1551         (default_options_optimization): Use error_at.
1552         (finish_options): Add location_t parameter.  Use
1553         opts->x_flag_opts_finished instead of first_time_p.  Use
1554         opts->x_optimize instead of optimize.  Use error_at.  Pass
1555         location to inform.
1556         (print_filtered_help): Use opts->x_help_printed to track what
1557         options have been printed.
1558         (print_specific_help): Use opts->x_help_columns to track number of
1559         columns.
1560         (common_handle_option): Pass locations and gcc_options pointers to
1561         more functions.  Use warning_at instead of fnotice and warning.
1562         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
1563         OPT_fdebug_prefix_map_.  Use error_at.  Set
1564         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
1565         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
1566         OPT_fsched_verbose_.
1567         (handle_param): Add location_r parameter.  Use error_at.
1568         (set_debug_level): Add location_r parameter.  Use error_at and
1569         warning_at.
1570         (setup_core_dumping): Add diagnostic_context parameter.
1571         (decode_d_option): Add gcc_options, location_t and
1572         diagnostic_context parameters and use them instead of global
1573         state.  Use warning_at.
1574         (enable_warning_as_error): Use error_at.
1575         * opts.h (finish_options): Update prototype.
1576         (set_struct_debug_option): Declare here.
1577         * rtl.h (fix_sched_param): Remove.
1578         * stor-layout.c (initial_max_fld_align): Remove.
1579         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
1580         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
1581         (process_options): Set maximum_field_alignment.
1582         * tree.h (initial_max_fld_align) Don't declare here.
1583         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1585 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1587         * flag-types.h (struct visibility_flags): Don't declare here.
1588         * flags.h (strip_off_ending, fast_math_flags_set_p,
1589         fast_math_flags_struct_set_p): Declare here.
1590         (visibility_options): Don't declare here.
1591         * opts-common.c (option_enabled, get_option_state): Move from
1592         opts.c.
1593         * opts-global.c: Include diagnostic.h instead of
1594         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
1595         and toplev.h.
1596         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1597         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1598         print_ignored_options, unknown_option_callback,
1599         post_handling_callback, lang_handle_option, add_input_filename,
1600         read_cmdline_options, initial_lang_mask, init_options_once,
1601         decode_cmdline_options_to_array_default_mask,
1602         set_default_handlers, decode_options): Move from opts.c.
1603         (print_ignored_options): Use warning_at instead of saving and
1604         restoring input_location.
1605         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
1606         instead of expr.h.  Don't include langhooks.h, except.h or
1607         lto-streamer.h.  Add more comments on includes.
1608         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
1609         toplev.c.
1610         (visibility_options): Move to c-family/c-common.c.
1611         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1612         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1613         print_ignored_options, unknown_option_callback,
1614         post_handling_callback, lang_handle_option, add_input_filename,
1615         read_cmdline_options, initial_lang_mask, init_options_once,
1616         decode_cmdline_options_to_array_default_mask,
1617         set_default_handlers, decode_options): Move to opts-global.c.
1618         (target_handle_option, default_options_optimization,
1619         finish_options, common_handle_option): Remove static.
1620         (option_enabled, get_option_state): Move to opts-common.c.
1621         * opts.h (common_handle_option, target_handle_option,
1622         finish_options, default_options_optimization): Declare.
1623         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
1624         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
1625         opts.c.
1626         * toplev.h (strip_off_ending, decode_d_option,
1627         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
1628         declare here.
1629         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1631 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
1633         PR driver/42690
1634         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
1635         options, replace by call of pass-through-libs spec function to process
1636         link_gcc_c_sequence spec.
1637         (lto_libgcc_spec): Delete variable.
1638         (static_specs[]): Remove related entry.
1639         (static_spec_functions[]): Add new entry for pass-through-libs.
1640         (main): Don't generate deleted lto_libgcc_spec.
1641         (pass_through_libs_spec_func): New function to implement the new
1642         pass-through-libs spec function.
1643         * doc/invoke.texi (pass-through-libs): Document new spec function.
1645 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1647         * doc/options.texi (Warning, Optimization): Document.
1649 2010-11-23  Jan Hubicka  <jh@suse.cz>
1651         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
1652         (tree_decl_with_vis): Add implicit_section_name_p.
1653         * targhooks.h (default_function_section): Declare.
1654         * target.def (function_section): New hook.
1655         * defaults.h (HOT_TEXT_SECTION_NAME,
1656         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1657         * predict.c (choose_function_section): Remove.
1658         (estimate_bb_frequencies): Do not use choose_function_section.
1659         * coretypes.h (enum node_frequency): Move here from cgraph.h
1660         * cgraph.h (enum node_frequency): Remove.
1661         * varasm.c (initialize_cold_section_name, unlikely_text_section,
1662         unlikely_text_section_p): Remove.
1663         (named_subsection_entry): New structure.
1664         (get_text_section): New function.
1665         (default_function_section): New function.
1666         (function_section_1): Break out from ...; handle profile info.
1667         (function_section): ... here.
1668         (unlikely_text_section): Remove.
1669         (unlikely_text_section_p): Use function_section_1.
1670         (assemble_start_function): Do not initialize cold section.
1671         (default_section_type_flags): Do not special case cold subsection.
1672         (switch_to_section): Likewise.
1673         * output.h (get_text_section): Define.
1674         * config/i386/winnt.c: Do not special case cold section.
1675         * config/darwin-protos.h (darwin_function_section): Declare.
1676         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
1677         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1678         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
1679         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1680         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
1681         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
1682         * config/darwin.c (machopic_select_section): Use
1683         darwin_function_section.
1684         (darwin_function_section): New function.
1685         * config/darwin.h (HOT_TEXT_SECTION_NAME,
1686         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1687         (TARGET_ASM_FUNCTION_SECTION): Define.
1688         * system.h (HOT_TEXT_SECTION_NAME,
1689         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
1691 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1693         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
1694         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
1696 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
1698         PR middle-end/46499
1699         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
1700         following unconditional jumps.
1702 2010-11-23  Richard Guenther  <rguenther@suse.de>
1704         * doc/md.texi (386 constraints): Clarify A constraint documentation.
1706 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1707             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1709         * gengtype.c (enum typekind, struct options)
1710         (struct nested_ptr_data, struct pair, NUM_PARAM)
1711         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
1712         Move to gengtype.h.
1713         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
1714         Remove static, add zero state_number.
1715         (typedefs, structures, param_structs, variables): Remove static.
1716         (create_option): Remove.
1717         (create_string_option, create_type_option, create_nested_option):
1718         New functions.
1719         (create_nested_ptr_option): Use create_nested_option.
1720         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
1721         new create*option functions.
1722         (process_gc_options): Adjust for discriminated option.
1723         (output_mangled_typename): Handle TYPE_NONE.
1724         (walk_type): Test option kinds.
1725         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
1726         (write_func_for_structure, write_type, write_local, write_root)
1727         (write_roots, note_def_vec, dump_options): Adjust for
1728         discriminated option.
1730         * gengtype.h (typedefs, structures, param_structs, variables
1731         enum typekind): Move from gengtype.c
1732         (enum option_kind): New discriminating enumeration.
1733         (struct options): Becomes discriminated.
1734         (struct nested_ptr_data): Nove from gengtype.c
1735         (create_string_option, create_type_option, create_nested_option)
1736         (create_nested_ptr_option): New functions
1737         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
1738         (UNION_OR_STRUCT_P): Move from gengtype.c
1740         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
1741         discriminated options.
1743 2010-11-23  Richard Guenther  <rguenther@suse.de>
1745         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
1746         twice.  Avoid re-allocating the ops vector all the time.
1748 2010-11-23  Richard Guenther  <rguenther@suse.de>
1750         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
1751         is_gimple_min_invariant, group tree code checks to allow
1752         combining them.
1753         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
1754         of is_gimple_reg.
1756 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1758         * config.gcc (sparc*-*-*): Reorder.
1760 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1762         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
1763         Remove ENABLE_CHECKING around DBGPRINTF.
1765 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
1767         * common.opt (exit_after_options, write_symbols, debug_info_level,
1768         use_gnu_debug_info_extensions): New Variable entries.
1769         (fprofile-dir=): Use Var.
1770         * flag-types.h (enum debug_info_level): Rename to enum
1771         debug_info_levels.
1772         * flags.h (write_symbols, debug_info_level,
1773         use_gnu_debug_info_extensions): Remove declarations.
1774         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
1775         (set_struct_debug_option): Make static variables const.
1776         (use_gnu_debug_info_extensions): Remove.
1777         (set_debug_level, print_filtered_help, print_specific_help,
1778         fast_math_flags_set_p): Take gcc_options parameters and use them
1779         in place of global variables.
1780         (print_filtered_help): Make new_help non-static.
1781         (print_specific_help): Update call to print_filtered_help.
1782         (common_handle_option): Update calls to print_specific_help.  Use
1783         gcc_options structure for more settings.  Make --help table
1784         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
1785         set_debug_level.
1786         * toplev.c (profile_data_prefix): Remove.
1787         * toplev.h (profile_data_prefix, exit_after_options): Remove
1788         declarations.
1789         (fast_math_flags_set_p): Update prototype.
1790         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1791         Update call to fast_math_flags_set_p.
1793 2010-11-22  Richard Henderson  <rth@redhat.com>
1795         PR target/46434
1796         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
1797         return the address register extracted.
1798         (crx_decompose_address): Update the extracted address register.
1800 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
1802         PR driver/43335
1803         * gcc.c (main): Don't crash when lto-wrapper program is not found.
1805 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
1807         PR target/46608
1808         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
1809         * config/picochip/picochip-protos.h: Don't include "target.h" .
1810         (picochip_secondary_reload): Don't declare.
1812         PR target/46613
1813         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
1814         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
1815         static.
1817 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1819         PR bootstrap/46609
1820         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
1821         (source_dot_c_frul): Likewise.
1823 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
1825         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
1827 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
1829         PR bootstrap/44970
1830         * Makefile.in (fwprop.o) Add sparseset.h.
1831         * fwprop.c: Include sparseset.h
1832         (struct find_occurrence_data, find_occurrence_callback,
1833         find_occurrence): Remove.
1834         (active_defs, active_defs_check, register_active_defs,
1835         update_df_init, update_uses): New.
1836         (update_df): Rewrite.
1837         (try_fwprop_subst, forward_propagate_asm): Add calls to
1838         update_df_init and update_df.
1839         (fwprop_init): Allocate active_defs and active_defs_check.
1840         (fwprop_done): Free them.
1841         (fwprop, fwprop_addr): Adjust comments.
1842         * df.h (df_uses_create): Declare.
1843         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
1844         (df_ref_create): Return result of df_ref_create_structure directly.
1845         (df_ref_create_structure): Call df_install_ref_incremental when
1846         no collection_rec is passed.
1847         (df_ref_record): Do not create multiword hard reg info when no
1848         collection_rec is passed.
1849         (df_uses_create): New.
1851 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1853         PR middle-end/43057
1854         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
1855         setting location.
1857 2010-11-22  Richard Guenther  <rguenther@suse.de>
1859         * gimple-fold.c (maybe_fold_reference): When canonicalizing
1860         MEM_REFs, preserve volatileness.
1861         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
1862         addresses.
1864 2010-11-22  Richard Guenther  <rguenther@suse.de>
1866         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
1868 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
1870         PR rtl-optimization/45652
1871         * alias.c (get_reg_base_value): New.
1872         * rtl.h (get_reg_base_value): Add prototype.
1873         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
1874         non-null REG_BASE_VALUE for renaming.
1876 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1877             Basile Starynkevitch  <basile@starynkevitch.net>
1879         * gengtype.c: Include xregex.h and obstack.h
1880         Added comments about role of get_output_file_with_visibility and
1881         our regexpr machinery.
1882         (frul_actionrout_t, struct file_rule_st): New.
1883         (hader_dot_h_frul, source_dot_c_frul): New functions.
1884         (NULL_REGEX,  NULL_FRULACT): New.
1885         (files_rules): New.
1886         (matching_file_name_substitute): New function.
1887         (get_output_file_with_visibility): Updated comments and rewritten
1888         to use the new files_rules machinery.
1890         * Makefile.in (XREGEX_H): Added variable.
1891         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
1893 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1895         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
1897 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1899         * target.def (conditional_register_usage): Define.
1900         * reginfo.c (init_reg_sets_1): Call
1901         targetm.conditional_register_usage.
1902         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
1903         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
1904         for making it a hook.
1905         * doc/tm.texi: Regenerate.
1906         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1907         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
1908         New function.
1909         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1910         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1911         * config/arc/arc.c (arc_conditional_register_usage): ...here.
1912         New function.
1913         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1914         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1915         * config/arm/arm.c (arm_conditional_register_usage): ...here.
1916         New function.
1917         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1918         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
1919         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
1920         * config/bfin/bfin.c (conditional_register_usage): Move code into...
1921         (bfin_conditional_register_usage): ...here.  New function.
1922         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1923         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
1924         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
1925         * config/cris/cris.c (cris_conditional_register_usage): Make static.
1926         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1927         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
1928         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
1929         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
1930         * config/frv/frv.c (frv_conditional_register_usage): Make static.
1931         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1932         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1933         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
1934         New function.
1935         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1936         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
1937         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
1938         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
1939         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1940         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
1941         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
1942         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
1943         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1944         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1945         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
1946         New function.
1947         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1948         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
1949         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
1950         Delete.
1951         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
1952         static.
1953         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1954         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
1955         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
1956         * config/mep/mep.c (mep_conditional_register_usage): Make static.
1957         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1958         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
1959         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
1960         * config/mips/mips.c (mips_conditional_register_usage): Make static.
1961         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1962         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
1963         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
1964         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
1965         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1966         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1967         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
1968         ...here.  New function.
1969         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1970         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1971         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
1972         * config/pa/pa.c (pa_conditional_register_usage): ...here.
1973         New function.
1974         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1975         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1976         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
1977         New function.
1978         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1979         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
1980         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
1981         Delete.
1982         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
1983         static.
1984         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1985         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
1986         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
1987         * config/rx/rx.c (rx_conditional_register_usage): Make static.
1988         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1989         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
1990         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
1991         * config/s390/s390.c (s390_conditional_register_usage): Make static.
1992         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1993         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1994         * config/score/score.c (score_conditional_register_usage): ...here.
1995         New function.
1996         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1997         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1998         * config/sh/sh.c (sh_conditional_register_usage): ...here.
1999         New function.
2000         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2001         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2002         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
2003         New function.
2004         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2005         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
2006         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
2007         * config/spu/spu.c (spu_conditional_register_usage): Make static.
2008         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2009         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2010         * config/v850/v850.c (v850_conditional_register_usage): ...here.
2011         New function.
2012         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2014 2010-11-21  Jan Hubicka  <jh@suse.cz>
2015             Dominique d'Humieres <dominiq@lps.ens.ft>
2017         PR target/46510
2018         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2019         finalize external decls.
2021 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
2023         * system.h (strerror): Poison.
2025 2010-11-21  Richard Henderson  <rth@redhat.com>
2027         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2028         for infq/huge_valq.
2030 2010-11-21  Richard Henderson  <rth@redhat.com>
2032         PR rtl-optimization/46571
2033         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2034         (compute_hash_table_work): Use NONDEBUG_INSN_P.
2036 2010-11-21  Paul Koning  <ni1d@arrl.net>
2038         * config/mips/pdp11.md (negsi2): Fix wrong code.
2040 2010-11-21  Paul Koning  <ni1d@arrl.net>
2042         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2043         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2045 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2047         * config/mips/mips.c (machine_function): Rename load_label_length to
2048         load_label_num_insns.
2049         (mips_load_label_length): Rename to...
2050         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
2051         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
2053 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
2055         PR target/46533
2056         * config/alpha/predicates.md (direct_call_operand): Return false
2057         for !TARGET_SMALL_TEXT targets.
2059 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
2061         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2062         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2063         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2064         * doc/tm.texi: Regenerate.
2065         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2066         HANDLE_PRAGMA_WEAK): Poison.
2067         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2068         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2069         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2070         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2071         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2072         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2073         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2074         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2075         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2076         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2077         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2078         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2079         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2080         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2081         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2082         (HANDLE_PRAGMA_WEAK): Don't undefine.
2083         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2084         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2085         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2086         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2087         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2088         (HANDLE_PRAGMA_WEAK): Don't undefine.
2089         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2090         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2091         (HANDLE_PRAGMA_PACK): Don't undefine.
2092         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2093         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2094         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2095         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2096         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2097         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2098         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2099         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2100         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2101         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2102         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2103         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2104         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2105         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2106         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2107         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2108         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2110 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2112         PR target/31100
2113         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2114         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2115         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2117 2010-11-20  Jan Hubicka  <jh@suse.cz>
2119         * cgraph.c (ld_plugin_symbol_resolution_names): New.
2120         (dump_cgraph_node): Dump resolution.
2121         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2122         (cgraph_comdat_can_be_unshared_p): Dclare.
2123         * lto-streamer-out.c (produce_symtab): Use
2124         cgraph_comdat_can_be_unshared_p.
2125         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2126         (cgraph_comdat_can_be_unshared_p): New function based on logic
2127         in cgraph_externally_visible_p.
2128         (cgraph_externally_visible_p): Use it.
2129         (varpool_externally_visible_p): Virtual tables can be unshared.
2130         * varpool.c (dump_varpool_node): Dump resolution.
2132 2010-11-20  Jan Hubicka  <jh@suse.cz>
2134         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2136 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2138         PR other/46202
2139         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2140         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2141         shell quoting.
2142         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2143         (install-strip): New target.
2144         (STRIPPROG): New variable, exported if STRIP is set.
2145         * doc/install.texi (Final install): Minor markup and code style
2146         fixes.  Document install-strip target.
2148 2010-11-20  Paul Koning  <ni1d@arrl.net>
2150         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2151         pdp11_regno_reg_class): New functions.
2152         * config/pdp11/pdp11.md (define_constants): Add register numbers.
2153         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2154         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2155         functions.
2156         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2157         frame pointer and argument pointer pseudo-registers.
2158         (ARG_POINTER_REGNUM): Define.
2159         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2160         argument pointer.
2161         (FIRST_PARM_OFFSET): Update for argument pointer.
2162         (INITIAL_FRAME_POINTER_OFFSET): Delete.
2163         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2164         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2165         frame pointer and argument pointer.
2167 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
2169         PR debug/46561
2170         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2171         when looking for immediate uses.
2173         PR tree-optimization/45830
2174         * stmt.c (expand_switch_using_bit_tests_p): New function.
2175         (expand_case): Use it.
2176         * tree.h (expand_switch_using_bit_tests_p): New prototype.
2177         * tree-switch-conversion.c (struct switch_conv_info): Add
2178         bit_test_uniq, bit_test_count and bit_test_bb fields.
2179         (check_range): Fix a comment.
2180         (check_process_case): Compute bit_test_uniq and bit_test_count.
2181         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2182         allocation.
2183         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2184         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2185         (array_value_type): New function.
2186         (build_one_array): Use it, if it returned different type,
2187         fold_convert all constructor fields and convert back to the
2188         wider type in the generated code.
2189         (process_switch): Initialize bit_test_uniq, bit_test_count and
2190         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
2191         returned true.
2193 2010-11-19  Michael Matz  <matz@suse.de>
2195         PR tree-optimization/46077
2196         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2198 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
2200         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2201         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2202         function.
2203         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2205 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2207         * mode-switching.c (optimize_mode_switching): Use
2208         FOR_BB_INSNS instead of open-coded loop.
2209         * cfgrtl.c (redirect_branch_edge): Ditto.
2211 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
2213         PR target/46436
2214         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2215         to accomodate 32 bit HOST_WIDE_INT.
2216         (m68hc11_emit_logical): Remove unused variable insn.
2217         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2218         this_insn_uses_iy before use.
2220         PR target/46434
2221         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2223 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2225         PR c/46547
2226         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2227         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2229 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2231         * doc/extend.texi (Function attributes): Document PowerPC target
2232         attributes that are supported.
2233         (Pragmas): Document that PowerPC now supports target pragmas.
2235         * doc/options.texi (TargetVariable): Document TargetVariable,
2236         HeaderInclude, and SourceInclude.
2238         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2239         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2240         -ffp-contract=off.
2242         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2243         SourceInclude directives.  Fix a cut+paste error with target save
2244         enum variables.  Sort enums in the structures after ints and
2245         before shorts.
2246         * opth-gen.awk: Ditto.
2248         * configure.ac: Add support for HeaderInclude and SourceInclude option
2249         directives to add the appropriate files to the dependency lists.
2250         * configure: Regenerate.
2251         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2252         (OPTIONS_C_EXTRA): New variable for SourceInclude.
2253         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2254         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2255         (gcc-options.o): Ditto.
2256         * opt-include.awk: New awk script to handle HeaderInclude and
2257         TargetInclude.
2259         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2260         gets saved in the target options.
2261         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2262         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2263         (-mprototype): Ditto.
2264         (-mbit-word): ditto.
2265         (-mregnames): Ditto.
2266         (-msecure-plt): Ditto.
2267         (-mbss-plt): Ditto.
2268         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2269         (-mpowerpc-gfxopt): Ditto.
2270         (-mmfcrf): Ditto.
2271         (-mpopcntb): Ditto.
2272         (-mfprnd): Ditto.
2273         (-mcmpb): Ditto.
2274         (-mmmfpgpr): Ditto.
2275         (-maltivec): Ditto.
2276         (-mhard-dfp): Ditto.
2277         (-mmulhw): Ditto.
2278         (-mdlmzb): Ditto.
2279         (-mmultiple): Ditto.
2280         (-mstring): Ditto.
2281         (-mpopcntd): Ditto.
2282         (-mfriz): Ditto.
2283         (-mvsx): Ditto.
2284         (-mno-update): Ditto.
2285         (-mavoid-indexed-addresses): Ditto.
2286         (-mtls-markers): Ditto.
2287         (-msched-epilog): Ditto.
2288         (-msched-prolog): Ditto.
2289         (-maix-struct-return): Ditto.
2290         (-msvr4-struct-return): Ditto.
2291         (-mxl-compat): Ditto.
2292         (-mrecip-precision): Ditto.
2293         (-mfp-in-toc): Ditto.
2294         (-msum-in-toc): Ditto.
2295         (-mvrsave): Ditto.
2296         (-mblock-move-inline-limit=): Ditto.
2297         (-misel): Ditto.
2298         (-mpaired): Ditto.
2299         (-mlongcall): Ditto.
2300         (-mgen-cell-microcode): Ditto.
2301         (-mwarn-cell-microcode): Ditto.
2302         (-mwarn-altivec-long): Ditto.
2303         (-mprioritize-restricted-insns=): Ditto.
2304         (-msingle-float): Ditto.
2305         (-mdouble-float): Ditto.
2306         (-msimple-fpu): Ditto.
2307         (-mxilinx-fpu): Ditto.
2308         * config/rs6000/aix64.opt (-mpe): Ditto.
2310         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
2311         (rs6000_cpu): Move variable to be a target variable.  Rename
2312         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
2313         -mdebug=<xxx> variables into a single int.
2314         (rs6000_always_hint): Ditto.
2315         (rs6000_sched_groups): Ditto.
2316         (rs6000_align_branch_targets): Ditto.
2317         (rs6000_sched_costly_dep): Ditto.
2318         (rs6000_sched_insert_nops): Ditto.
2319         (rs6000_long_double_type_size): Ditto.
2320         (rs6000_ieeequad): Ditto.
2321         (rs6000_altivec_abi): Ditto.
2322         (rs6000_spe): Ditto.
2323         (rs6000_spe_abi): Ditto.
2324         (rs6000_float_gprs): Ditto.
2325         (rs6000_darwin64_abi): Ditto.
2326         (can_override_loop_align): Ditto.
2327         (rs6000_sdata): Ditto.
2328         (rs6000_tls_size): Ditto.
2329         (rs6000_current_abi): Ditto.
2330         (rs6000_traceback): Ditto.
2331         (rs6000_alignment_flags): Ditto.
2332         (rs6000_current_cmodel): Ditto.
2333         (rs6000_recip_control): Ditto.
2334         (rs6000_cpu_index): Ditto.
2335         (rs6000_tune_index): Ditto.
2336         (rs6000_debug): Ditto.
2337         (rs6000_target_flags_explict): Ditto.
2339         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
2340         declaration.
2342         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
2343         cmodel.  Change all uses.
2345         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
2346         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
2347         Rename cmodel to rs6000_current_cmodel.
2348         (rs6000_sched_groups): Ditto.
2349         (rs6000_align_branch_targets): Ditto.
2350         (rs6000_sched_costly_dep): Ditto.
2351         (rs6000_sched_insert_nops): Ditto.
2352         (rs6000_long_double_type_size): Ditto.
2353         (rs6000_ieeequad): Ditto.
2354         (rs6000_altivec_abi): Ditto.
2355         (rs6000_spe): Ditto.
2356         (rs6000_spe_abi): Ditto.
2357         (rs6000_float_gprs): Ditto.
2358         (rs6000_darwin64_abi): Ditto.
2359         (can_override_loop_align): Ditto.
2360         (rs6000_sdata): Ditto.
2361         (rs6000_tls_size): Ditto.
2362         (rs6000_current_abi): Ditto.
2363         (rs6000_traceback): Ditto.
2364         (rs6000_alignment_flags): Ditto.
2365         (rs6000_current_cmodel): Ditto.
2366         (rs6000_recip_control): Ditto.
2367         (rs6000_cpu_index): Ditto.
2368         (rs6000_tune_index): Ditto.
2369         (rs6000_debug): Ditto.
2370         (rs6000_target_flags_explict): Ditto.
2371         (rs6000_sched_insert_nops_str): Make static.
2372         (rs6000_sched_costly_dep_str): Ditto.
2373         (rs6000_recip_name): Ditto.
2374         (rs6000_abi_name): Ditto.
2375         (rs6000_sdata_name): Ditto.
2376         (enum rs6000_traceback_name): Move to rs6000-opts.h.
2377         (rs6000_parse_tls_size_option): Delete.
2378         (rs6000_valid_attribute_p): New function for target attributes and
2379         pragmas.
2380         (rs6000_function_specific_save): Ditto.
2381         (rs6000_function_specific_restore): Ditto.
2382         (rs6000_function_specific_print): Ditto.
2383         (rs6000_can_inline_p): Ditto.
2384         (rs6000_set_current_function): Ditto.
2385         (rs6000_inner_target_options): Ditto.
2386         (rs6000_debug_target_options): Ditto.
2387         (rs6000_pragma_target_parse): Ditto.
2388         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
2389         attributes and pragmas.
2390         (TARGET_OPTION_SAVE): Ditto.
2391         (TARGET_OPTION_RESTORE): Ditto.
2392         (TARGET_OPTION_PRINT): Ditto.
2393         (TARGET_CAN_INLINE_P): Ditto.
2394         (TARGET_SET_CURRENT_FUNCTION): Ditto.
2395         (POWER_MASKS): Move to file level scope from the
2396         rs6000_option_override_internal function.
2397         (POWERPC_MASKS): Ditto.
2398         (ISA_*_MASKS): Ditto.
2399         (struct rs6000_ptt): Ditto.
2400         (processor_target_table): Ditto.
2401         (rs6000_cpu_name_lookup): Map cpu name to an index in
2402         processor_target_table.
2403         (rs6000_debug_reg_global): Print more information on processor
2404         options for -mdebug=reg.
2405         (rs6000_init_hard_regno_mode_ok): Add support for target
2406         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
2407         Allow -mdebug=val1,val2.  Rename cmodel variable.
2408         (rs6000_option_override_internal): Ditto.
2409         (rs6000_option_override): Ditto.
2410         (rs6000_handle_option): Ditto.
2411         (rs6000_conditional_register_usage): Add debug trace message.
2412         (struct rs6000_opt_mask): New for target attribute/pragma support.
2413         (rs6000_opt_masks): Ditto.
2414         (struct rs6000_opt_var): Ditto.
2415         (rs6000_opt_vars): Ditto.
2416         (rs6000_previous_function): Ditto.
2418         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
2419         wasn't already included.
2420         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
2421         (enum processor_type): Ditto.
2422         (rs6000_cpu): Ditto.
2423         (enum fpu_type_t): Ditto.
2424         (fpu_type): Ditto.
2425         (enum rs6000_dependence_cost): Ditto.
2426         (enum rs6000_nop_insertion): Ditto.
2427         (enum group_termination): Ditto.
2428         (rs6000_long_double_type_size): Ditto.
2429         (rs6000_ieeequad): Ditto.
2430         (rs6000_altivec_abi): Ditto.
2431         (rs6000_spe_abi): Ditto.
2432         (rs6000_spe): Ditto.
2433         (rs6000_float_gprs): Ditto.
2434         (rs6000_alignment_flags): Ditto.
2435         (rs6000_sched_insert_nops): Ditto.
2436         (enum rs6000_vector): Ditto.
2437         (enum rs6000_abi): Ditto.
2438         (rs6000_current_opt): Ditto.
2439         (rs6000_debug_*): Delete.
2440         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
2441         (TARGET_DEBUG*): Ditto.
2443         * config/rs6000/rs6000-opts.h: New header file to define the enums
2444         that are used in target variables that are now defined in rs6000.opt.
2446         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
2447         rs6000-opts.h.
2448         (rs6000_sdata): Ditto.
2449         (rs6000_abi_name): Delete.
2450         (rs6000_sdata_name): Ditto.
2451         (rs6000_tls_size_string): Ditto.
2453 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2455         * common.opt (debug_struct_ordinary, debug_struct_generic): New
2456         Variable entries.
2457         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
2458         should_emit_struct_debug): Move from opts.c.
2459         * flag-types.h (enum debug_struct_file): Move from opts.c.
2460         * flags.h (should_emit_struct_debug): Remove.
2461         (base_of_path): Declare.
2462         (set_struct_debug_option): Add gcc_options parameter.
2463         * optc-gen.awk, opth-gen.awk: Handle array variables.
2464         * opts.c (enum debug_struct_file, debug_struct_ordinary,
2465         debug_struct_generic): Remove.
2466         (set_struct_debug_option): Add gcc_options parameter.
2467         (base_of_path): Remove static.
2468         (main_input_basename, main_input_baselength, matches_main_base,
2469         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
2470         Remove.
2471         * toplev.c (main_input_basename, main_input_baselength): Define
2472         here.
2473         * toplev.h (main_input_basename, main_input_baselength): Declare
2474         here.
2476 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2478         * common.opt (flag_instrument_functions_exclude_functions,
2479         flag_instrument_functions_exclude_files): New Variable definitions.
2480         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
2481         * gimplify.c (char_p): Declare type and vectors.
2482         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
2483         * opts.c (flag_instrument_functions_exclude_functions,
2484         flag_instrument_functions_exclude_files): Remove.
2485         (add_comma_separated_to_vector): Take void **.
2486         (flag_instrument_functions_exclude_p): Move to gimplify.c.
2487         (common_handle_option): Use options structure for
2488         -finstrument-functions-exclude- options.
2490 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2492         * doc/options.texi (Var): Document effects of Defer.
2493         (Defer): Document.
2494         * opt-functions.awk (var_type, var_set): Handle deferred options.
2495         * opts-common.c (set_option): Handle CLVC_DEFER.
2496         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
2497         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
2498         fstack-limit-symbol=): Mark as deferred.
2499         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
2500         plugin.h.
2501         (print_filtered_help): Don't report state of CLVC_DEFER options.
2502         (common_handle_option): Move code for OPT_fcall_used_,
2503         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
2504         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
2505         OPT_fstack_limit_symbol_ to opts-global.c.
2506         (option_enabled, get_option_state): Handle CLVC_DEFER.
2507         * opts.h: Include vec.h.
2508         (enum cl_var_type): Add CLVC_DEFER.
2509         (cl_deferred_option): Define type and vectors.
2510         (handle_common_deferred_options): Declare.
2511         * opts-global.c: New.
2512         * toplev.c (toplev_main): Call handle_common_deferred_options
2513         * Makefile.in (OPTS_H): Include $(VEC_H).
2514         (OBJS-common): Include opts-global.o.
2515         (opts.o): Update dependencies.
2516         (opts-global.o): Add dependencies.
2518 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2520         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
2521         to objc_declare_protocols.
2523 2010-11-19  Richard Guenther  <rguenther@suse.de>
2525         PR lto/45789
2526         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
2527         IDENTIFIERs do not stream TREE_TYPE.
2528         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
2530 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
2532         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
2534 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
2536         PR target/45870
2537         * dwarf2out.c (const_ok_for_output_1): Don't complain about
2538         non-delegitimized TLS UNSPECs.
2540 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
2541             Ian Lance Taylor  <iant@google.com>
2543         * config/darwin-c.c (darwin_additional_format_types): Export.
2545 2010-11-18  Paul Koning  <ni1d@arrl.net>
2547         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
2548         pointer.
2550 2010-11-18  Paul Koning  <ni1d@arrl.net>
2552         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
2553         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
2554         * config/pdp11/pdp11.opt (-mabshi): Delete.
2556 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
2558         * resource.h (struct resources): Fix typo in the comment.
2560 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2562         PR target/46546
2563         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
2565 2010-11-18  Richard Henderson  <rth@redhat.com>
2567         PR middle-end/46515
2568         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
2569         maybe_copy_epilogue_insn; handle prologue insns as well.
2570         * rtl.h, cfglayout.c: Update for rename.
2571         * recog.c (peep2_attempt): Copy prologue/epilogue data for
2572         RTX_FRAME_RELATED_P insns.
2574 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
2576         PR middle-end/46534
2577         * builtins.c (fold_builtin_printf): Don't copy and modify string
2578         before build_string_literal, instead modify what
2579         build_string_literal returned.
2581 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
2583         PR c/33193
2584         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
2585         REALPART_EXPR and IMAGPART_EXPR.
2587 2010-11-18  Richard Guenther  <rguenther@suse.de>
2589         PR tree-optimization/46172
2590         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
2591         function.
2592         (slpeel_tree_peel_loop_to_edge): Call it.
2594 2010-11-18  Jeff Law  <law@redhat.com>
2596         PR middle-end-optimization/46297
2597         * postreload.c (reload_combine_note_store): Deal with embedded
2598         side effects in MEM expressions.
2600 2010-11-18  Richard Guenther  <rguenther@suse.de>
2602         PR lto/45089
2603         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
2604         when checking is not enabled.
2606 2010-11-18  Richard Guenther  <rguenther@suse.de>
2608         PR lto/46525
2609         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
2610         type leaders.
2611         (gimple_register_canonical_type): Also cache the canoncial type
2612         for non type leaders.
2614 2010-11-18  Richard Guenther  <rguenther@suse.de>
2616         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
2618 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
2620         PR middle-end/46518
2621         * sel-sched-ir.c (init_expr): Use the correct type for
2622         target_available.
2623         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
2625 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
2627         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
2628         as well as -mrelocatable at the same time.
2630 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
2632         PR target/46422
2633         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
2634         Call the clz builtin.
2636 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
2637             Steve Ellcey  <sje@cup.hp.com>
2639         PR middle-end/31490
2640         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
2641         if section attribute used.
2643 2010-11-17  Jan Hubicka  <jh@suse.cz>
2645         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
2646         expand errno setting variant when optimizing for size.
2648 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2650         * postreload.c (reload_combine): Call control_flow_insn_p only once.
2651         Reverse backward loop.  Fix formatting issues.
2653 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
2655         * c-parser.c (c_token_is_qualifier,
2656         c_parser_next_token_is_qualifier): New.
2657         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
2658         Improve error message on specs->tagdef_seen_p.
2659         (c_parser_struct_or_union_specifier): Improve error recovery.
2660         (c_parser_declspecs): Move exit condition on C_ID_ID early.
2661         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
2662         using c_parser_next_token_is_qualifier; extend it to cover
2663         a ctsk_tagdef typespec and !typespec_ok in general.
2665 2010-11-17  Richard Guenther  <rguenther@suse.de>
2667         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
2668         (gimple_mod_pow2_value_transform): Likewise.
2669         (gimple_mod_subtract_transform): Likewise.
2671 2010-11-17  Richard Guenther  <rguenther@suse.de>
2673         PR lto/46504
2674         * gimple.c (gimple_register_canonical_type): Make sure to only
2675         make type leaders canonical types.
2677 2010-11-17  Michael Matz  <matz@suse.de>
2679         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
2680         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
2681         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
2682         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
2683         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
2684         (pass_build_ssa): ... but here.
2685         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
2686         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
2687         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
2688         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
2689         * predict.c (rebuild_frequencies): Ditto.
2690         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
2691         * emit-rtl.c (verify_rtl_sharing): Ditto.
2692         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
2693         * tree-ssa-live.c (remove_unused_locals): Ditto.
2694         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
2695         * tree-ssa.c (pass_early_warn_uninitialized,
2696         execute_update_addresses_taken, pass_update_address_taken): Ditto.
2697         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
2698         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
2699         * passes.c (pass_postreload, execute_todo): Ditto.
2700         * tree-ssanames.c (pass_release_ssa_names): Ditto.
2702 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2704         * doc/invoke.texi (-dy): Remove.
2705         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
2706         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
2707         * langhooks.c (lhd_do_nothing_i): Remove.
2708         * langhooks.h (lang_hooks.parse_file): Take no arguments.
2709         * toplev.c (set_yydebug): Remove.
2710         (compile_file): Update call to lang_hooks.parse_file.
2711         (decode_d_option): Don't handle -dy.
2713 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2715         PR rtl-optimization/46440
2716         * combine.c (update_cfg_for_uncondjump): When changing
2717         an indirect jump into unconditional jump, remove BARRIERs
2718         from bb's footer.
2720 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2722         * opts.c (target_handle_option): Do not assert that loc ==
2723         UNKNOWN_LOCATION.
2725 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2726             Richard Guenther  <rguenther@suse.de>
2728         PR middle-end/45838
2729         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2730         call_may_clobber_ref_p_1): Return true for __sync_* and some
2731         OpenMP builtins that act as threading barriers.
2733 2010-11-17  Richard Guenther  <rguenther@suse.de>
2735         PR tree-optimization/46498
2736         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
2738 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2740         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
2741         (xtensa_function_arg_boundary): ...this.
2742         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
2743         thinko in declaration.
2744         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
2745         number of parameters to picochip_function_arg_boundary.
2746         (picochip_arg_advance): Likewise.
2748 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2750         PR target/46512
2751         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
2752         under check for type.
2754 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2756         * ifcvt.c (dead_or_predicable): Fix typo.
2758 2010-11-16  Richard Henderson  <rth@redhat.com>
2760         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
2761         * config/s390/s390.opt (mfused-madd): Remove.
2762         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
2763         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2764         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
2765         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
2767 2010-11-16  Richard Henderson  <rth@redhat.com>
2769         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
2770         * config/rs6000/rs6000.opt (mfused-madd): Remove.
2771         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
2772         (*altivec_vmaddfp_1): Remove.
2773         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
2774         (altivec_mulv4sf3): Expand to FMA directly.
2775         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
2776         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
2777         * config/rs6000/paired.md (paired_madds0): Use FMA.
2778         (paired_madds1): Likewise.
2779         (*paired_madd): Rename from paired_madd; use FMA.
2780         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
2781         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
2782         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
2783         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
2784         (rs6000_emit_madd): Use fma_optab.
2785         (rs6000_emit_msub): Use fms_optab.
2786         (rs6000_emit_nmsub): Expand the FMA pattern directly.
2787         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
2788         (*fmasf4_fpr): Rename from fmasf4_fpr.
2789         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
2790         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
2791         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
2792         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
2793         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
2794         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
2795         (*fmadf4_fpr): Rename from fmadf4_fpr.
2796         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
2797         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
2798         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
2799         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
2800         (fmasf4, fmadf4): Macroize into...
2801         (fma<FMA_F>4): ... here.
2802         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
2803         (nfma<FMA_F>4, nfms<FMA_F>4): New.
2804         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
2805         TARGET_FUSED_MADD.
2806         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
2807         (*vsx_fmadd<mode>4_1): Remove.
2808         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
2809         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
2810         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
2811         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
2812         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
2813         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
2814         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
2816 2010-11-16  Richard Henderson  <rth@redhat.com>
2818         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
2819         (fmasf4, fnmadf4, fnmasf4): Likewise.
2820         (unnamed plus+mult insns and splitters): Delete.
2822 2010-11-16  Richard Henderson  <rth@redhat.com>
2824         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
2825         (fnma<VSF>4): Rename from fnms_<VSF>.
2826         (fms<VSF>4): Rename from fms_<VSF>.
2827         (fma<VDF>4): Rename from fma_<VDF>.
2828         (fms<VDF>4): Rename from fms_<VDF>.
2829         (nfma<VDF>4): Rename from fnma_<VDF>.
2830         (nfms<VDF>4): Rename from fnms_<VDF>.
2831         (fnma<VDF>4, fnms<VDF>4): New expanders.
2832         (floatunsdisf2): Update for the renames.
2833         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
2834         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
2836 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2838         PR rtl-optimization/46490
2839         * combine.c (expand_compound_operation): Fix thinko.
2841 2010-11-16  Richard Henderson  <rth@redhat.com>
2843         PR target/46470
2844         * recog.c (peep2_attempt): Convert frame-related info when possible.
2845         (peep2_fill_buffer): Allow frame-related insns into the buffer.
2846         (peephole2_optimize): Allow peep2_attempt to fail.
2848 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2850         PR rtl-optimization/46315
2851         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
2852         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
2853         extracted from...
2854         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
2855         (remove_reg_equal_equiv_notes_for_defs): ...this.
2856         (delete_unmarked_insns): Adjust to above renaming.
2857         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
2858         referring to registers set in the insns being moved, if any.
2860         * df-core.c (df_ref_dump): New function extracted from...
2861         (df_refs_chain_dump): ...here.  Call it.
2862         (df_regs_chain_dump): Likewise.
2863         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
2864         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
2866 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
2868         PR rtl-optimization/46395
2869         * postreload.c (reload_combine): Invalidate register use
2870         information on all control flow insns.
2872         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
2873         LABEL_REF in UNSPEC operand.
2875 2010-11-16  Jan Hubicka  <jh@suse.cz>
2877         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
2878         when !flag_toplevel_reorder do not remove unless variable is
2879         COMDAT or ARTIFICIAL.
2880         * ipa.c (varpool_can_remove_if_no_refs): ... here.
2881         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
2882         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
2883         * varpool.c (decide_is_variable_needed): Do not handle visibility
2884         issues.
2885         (varpool_finalize_decl): Likewise.
2886         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
2887         update outdated comment on DECL_RTL_SET_P check.
2889 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2891         * config/sol2.h (NM_FLAGS): Define.
2892         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
2893         * doc/tm.texi: Update.
2895 2010-11-16  Nick Clifton  <nickc@redhat.com>
2897         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
2898         (msubsf4): Rename to fmssf4, and use fma.
2899         (nmaddsf4): Rename to fnmasf4 and use fma.
2900         (nmsubsf4): Rename to fnmssf4 and use fma.
2902 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
2904         PR target/44762
2905         * config/score/score3.c (score3_return_in_memory): Constify arguments.
2906         (score3_in_small_data_p, score3_function_value): Likewise.
2907         (score3_trampoline_init): Use LCT_NORMAL.
2908         (score3_print_operand): Initialize code as UNKNOWN.
2909         * config/score/predicates.md (score_load_multiple_operation):
2910         Remove unused variable.
2911         (score_store_multiple_operation): Likewise.
2912         * config/score/score7.c (score7_return_in_memory): Constify arguments.
2913         (score7_in_small_data_p, score7_function_value): Likewise.
2914         (score7_trampoline_init): Use LCT_NORMAL.
2915         (score7_print_operand): Initialize code as UNKNOWN.
2916         * config/score/score3.h (score3_return_in_memory): Update prototype.
2917         (score3_in_small_data_p, score3_function_value): Likewise.
2918         * config/score/score-protos.h (score_function_value): Likewise.
2919         * config/score/score7.h (score7_return_in_memory): Update prototype.
2920         (score7_in_small_data_p, score7_function_value): Likewise.
2921         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
2922         (score_return_in_memory, score_pass_by_reference): Constify arguments.
2923         (score_output_mi_thunk, score_function_prologue): Don't return a value.
2924         (score_function_epilogue, score_in_small_data_p): Likewise.
2925         (score_option_override, score_asm_trampoline_template): Likewise.
2926         (score_trampoline_init, score_print_operand): Likewise.
2927         (score_print_operand_address, score_prologue): Likewise.
2928         (score_epilogue, score_call, score_call_value): Likewise.
2929         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
2930         (score_function_arg_advance): Likewise. Make static.
2931         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
2932         (score_function_arg, score_legitimate_address_p): Make static.
2933         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
2934         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
2935         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
2936         Allow (W) == HOST_BITS_PER_WIDE_INT.
2938         PR java/46386
2939         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
2940         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
2942 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2944         * config/arc/arc.c: Delete pasto.
2945         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
2947 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
2949         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
2950         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2951         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
2952         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2953         (mn10300_preferred_reload_class,
2954         mn10300_preferred_output_reload_class): New functions.
2956 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2958         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
2959         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
2960         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
2961         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
2963 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2965         * builtins.c (std_gimplify_va_arg_expr): Use
2966         targetm.calls.function_arg_boundary.
2967         * function.c (assign_parms, locate_and_pad_parm): Likewise.
2968         * calls.c (struct arg_data): Update comment.
2969         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
2970         * target.def (function_arg_boundary): Define.
2971         * targhooks.h (default_function_arg_boundary): Declare.
2972         * targhooks.c (default_function_arg_boundary): Define.
2973         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
2974         TARGET_FUNCTION_ARG_BOUNDARY.
2975         (FUNCTION_ARG_BOUNDARY): Delete.
2976         (TARGET_FUNCTION_ARG_BOUNDARY): New.
2977         * doc/tm.texi: Regenerate.
2978         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
2979         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
2980         * config/arc/arc.c (arc_function_arg_boundary): Define.
2981         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2982         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
2983         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
2984         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
2985         (arm_function_arg_boundary): Define.
2986         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2987         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
2988         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
2989         * config/frv/frv.c (frv_function_arg_boundary): Make static.
2990         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2991         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
2992         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
2993         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
2994         (ix86_compat_function_arg_boundary): Take and return unsigned int.
2995         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2996         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
2997         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
2998         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
2999         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3000         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
3001         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
3002         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3003         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
3004         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
3005         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
3006         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3007         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
3008         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
3009         * config/mips/mips.c (mips_function_arg_boundary): Make static.
3010         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3011         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
3012         * config/pa/pa.c (pa_function_arg_boundary): Define.
3013         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3014         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
3015         * config/picochip/picochip-protos.h
3016         (picochip_get_function_arg_boundary): Delete.
3017         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
3018         Rename to...
3019         (picochip_function_arg_boundary): ...this.  Make static.
3020         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
3021         (picochip_arg_advance): Adjust.
3022         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3023         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
3024         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
3025         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
3026         (rs6000_function_arg_boundary): ...this.  Make static.
3027         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
3028         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3029         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
3030         * config/rx/rx.c (rx_function_arg_boundary): Define.
3031         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3032         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
3033         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
3034         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3035         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
3036         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
3037         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
3038         (xtensa_function_arg_boundary): ...this.  Make static.
3039         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3041 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3043         * expr.c (alignment_for_piecewise_move): New function.
3044         (widest_int_mode_for_size): New function.
3045         (move_by_pieces, move_by_pieces_ninsns): Call them.
3046         (can_store_by_pieces, store_by_pieces_1): Likewise.
3048 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3050         * gcc.c (char_p): Define.  Define a VEC of it.
3051         (n_linker_options, n_assembler_options, n_preprocessor_options):
3052         Delete.
3053         (linker_options, assembler_options, preprocessor_options): Convert
3054         to a VEC.
3055         (add_preprocessor_option): Adjust.
3056         (add_assembler_option): Adjust.
3057         (add_linker_option): Adjust.
3058         (do_specs_vec): New function.
3059         (do_spec_1): Call it.  Adjust for new types.
3061 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3063         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
3064         (sreal.o, statistics.o, stringpool.o): Likewise.
3066 2010-11-16  Richard Guenther  <rguenther@suse.de>
3068         PR tree-optimization/44545
3069         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
3070         statements are not reassociatable.
3071         (reassociate_bb): Likewise.
3073 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3075         * bitmap.c: Delete unnecessary includes.
3076         * ebitmap.c: Likewise.
3077         * et-forest.c: Likewise.
3078         * sreal.c: Likewise.
3079         * statistics.c: Likewise.
3080         * stringpool.c: Likewise.
3081         * double-int.c: Add comment for inclusion of tm.h.
3083 2010-11-16  Richard Guenther  <rguenther@suse.de>
3085         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
3086         (visit_nary_op): ... this.
3087         (visit_binary_op): Remove.
3088         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
3090 2010-11-16  Richard Guenther  <rguenther@suse.de>
3092         PR middle-end/45172
3093         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
3095 2010-11-16  Nick Clifton  <nickc@redhat.com>
3097         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
3098         record is packed.
3100 2010-11-15  Richard Henderson  <rth@redhat.com>
3102         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
3103         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
3104         DOT_PROD_EXPR.
3106 2010-11-15  Richard Henderson  <rth@redhat.com>
3108         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
3109         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
3110         fma rtx_code.
3112 2010-11-15  Richard Henderson  <rth@redhat.com>
3114         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
3115         and *mulsubsf4 respectively.  Use fma rtx_code.
3117 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
3119         * gcc.c: Include "vec.h".
3120         (argbuf): Make into a VEC.
3121         (argbuf_length, argbuf_index): Remove.
3122         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
3123         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
3124         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
3125         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
3126         (gcc.o): Depend on $(VEC_H).
3128 2010-11-15  Richard Henderson  <rth@redhat.com>
3130         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
3131         via FMA if unsafe math.
3132         (insert_var_expansion_initialization): Handle FMA.
3133         (combine_var_copies_in_loop_exit): Likewise.
3135 2010-11-15  Richard Henderson  <rth@redhat.com>
3137         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
3138         * config/ia64/ia64.opt: Remove mfused-madd.
3139         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
3140         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
3141         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
3142         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
3143         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
3144         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
3145         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
3146         (fmav2sf4): Rename from fpma; use FMA code.
3147         (fmsv2sf4): Rename from fpms; use FMA code.
3148         (fnmav2sf4): Rename from *fpnma; use FMA code.
3149         * config/ia64/ia64.md (MODE_SDF): New iterator.
3150         (suffix): New mode attribute.
3151         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
3152         (fmssf4): Rename from *fmssf4.
3153         (fnmasf4): Rename from *nfmasf4.
3154         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
3155         (*nmadddf4, *nmadddf4_truncsf): Remove.
3156         (fmsdf4): Rename from *fmsdf4.
3157         (fnmadf4): Rename from *nfmadf4.
3158         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
3159         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
3160         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
3161         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
3162         (fmsxf4): Rename from *fmsxf4.
3163         (fnmaxf4): Rename from *nfmaxf4.
3164         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
3165         (*fnmaxf_trunc_<MODE_SDF>): New.
3167 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
3169         PR tree-optimization/46461
3170         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
3171         a gimple val.
3173 2010-11-15  Ian Lance Taylor  <iant@google.com>
3175         * godump.c: New file.
3176         * common.opt (fdump-go-spec=): New option.
3177         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
3178         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
3179         (TYPE_SYMTAB_IS_DIE): Define.
3180         (struct tree_type): Change GTY for symtab field to use
3181         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
3182         to pick the union field.
3183         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
3184         (dump_go_spec_init): Declare.
3185         * toplev.c (process_options): Handle flag_dump_go_spec.
3186         * debug.c: Include "tree.h".
3187         (do_nothing_debug_hooks): Set tree_type_symtab_field.
3188         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3189         * dbxout.c (dbx_debug_hooks): Likewise.
3190         (xcoff_debug_hooks): Likewise.
3191         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3192         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
3193         SDB_DEBUGGING_INFO is not defined.
3194         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
3195         (Overall Options): Document -fdump-go-spec.
3196         * Makefile.in (OBJS-common): Add godump.o.
3197         (debug.o): Add dependency on $(TREE_H).
3198         (godump.o): New target.
3199         (GTFILES): Add $(srcdir)/godump.c.
3201 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
3203         PR debug/46095
3204         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
3205         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
3206         style < 0, add REG_FRAME_RELATED_EXPR.
3208         PR debug/46387
3209         * rtl.h (vt_equate_reg_base_value): New prototype.
3210         * alias.c (vt_equate_reg_base_value): New function.
3211         * var-tracking.c (vt_init_cfa_base): Use it.
3213 2010-11-15  Jan Hubicka  <jh@suse.cz>
3214             Diego Novillo  <dnovillo@google.com>
3216         PR lto/41528
3217         * doc/lto.texi: Add.
3218         * doc/gccint.texi: Add reference to lto.texi.
3219         * doc/invoke.texi: Update user documentation for LTO.
3220         Move internal flags to lto.texi
3222 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3224         * c-typeck.c (build_unary_op): Use
3225         objc_build_incr_expr_for_property_ref to build the pre/post
3226         increment/decrement of an Objective-C property ref, and skip the
3227         lvalue_or_else check in that case.
3229 2010-11-15  Martin Jambor  <mjambor@suse.cz>
3231         PR tree-optimization/46349
3232         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
3233         (contains_vce_or_bfcref_p): Likewise.
3234         (sra_modify_assign): Use them.
3236 2010-11-15  Richard Guenther  <rguenther@suse.de>
3238         PR tree-optimization/46467
3239         * tree-ssa-structalias.c (do_structure_copy): Properly treat
3240         variables without subvars.
3242 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
3244         * config/picochip/picochip.c (file header): Picochip name change.
3245         * config/picochip/picochip.md (file header): Likewise.
3246         * config/picochip/predicates.md (file header): Likewise.
3247         * config/picochip/dfa_space.md (file header): Likewise.
3248         * config/picochip/dfa_speed.md (file header): Likewise.
3249         * config/picochip/picochip.h(file header): Likewise.
3250         * config/picochip/constraints.md (file header): Likewise.
3251         * config/picochip/picochip-protos.h (file header): Likewise.
3252         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
3253         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
3254         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
3255         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
3256         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
3257         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
3258         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
3259         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
3260         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
3261         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
3262         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
3263         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
3264         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
3265         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
3267 2010-11-15  Richard Guenther  <rguenther@suse.de>
3269         PR bootstrap/46474
3270         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
3272 2010-11-15  Nick Clifton  <nickc@redhat.com>
3274         * config/stormy16/stormy16.c (direct_return): Do not generate a
3275         direct return for interrupt handlers.
3277 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
3279         * Makefile.in (tm.texi): Replace with rule for:
3280         ($(srcdir)/doc/tm.texi).
3281         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
3282         $(srcdir)/doc/tm.texi .
3283         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
3284         tm.texi .
3286         PR target/46427
3287         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
3289         PR bootstrap/45444
3290         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
3291         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
3293         PR target/46432
3294         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3296 2010-11-15  Richard Guenther  <rguenther@suse.de>
3298         PR lto/44150
3299         * lto-opts.c (lto_write_options): Write -fexceptions even if
3300         not set by the user.
3302 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3304         PR c/46462
3305         * c-decl.c (declspecs_add_type): Make variables with error types
3306         integers.
3307         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
3308         do not start a declaration before an Objective-C foreach.
3309         (c_parser_declaration_or_fndef): Improve recovery after unknown
3310         type name.
3311         (c_parser_for_statement): Hoist entrance of "foreach context"
3312         before ifs, add corresponding reset where it was missing.  Do
3313         not set objc_could_be_foreach_context for C.
3315 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
3317         PR tree-optimization/45722
3318         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
3319         this is a reference to a component.
3320         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
3321         (ipa_note_param_call): Adjust comment.
3323 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
3325         * config/mips/mips.c (machine_function): Remove
3326         initialized_mips16_gp_pseudo_p.
3327         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
3328         detect whether a pseudo has already been created.  Unconditionally
3329         create a new one if not.
3330         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
3331         expanding to rtl.  Create a new pseudo otherwise, if allowed.
3333 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
3335         PR target/43440
3336         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
3337         * tm.texi: Regenerated.
3338         * output.h (decode_reg_name_and_count): Declare.
3339         * varasm.c (decode_reg_name_and_count): New function.
3340         (decode_reg_name): Reimplement using decode_reg_name_and_count.
3341         * reginfo.c (fix_register): Use decode_reg_name_and_count and
3342         iterate over all regs used.
3343         * stmt.c (expand_asm_operands): Likewise.
3344         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
3345         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
3346         multiple machine registers.
3348 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3350         * stor-layout.c (place_union_field): Do not put location information
3351         on offset expressions.
3352         (place_field): Likewise.
3353         (finalize_record_size): Likewise on size expressions.
3354         (finalize_type_size): Likewise.
3355         (layout_type): Likewise.
3357 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
3359         PR debug/42889
3360         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
3361         * df-core.c (df_set_bb_dirty_nonrl): Remove.
3362         * df.h (df_set_bb_dirty_nonlr): Likewise.
3364 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
3366         * config/mips/mips.md (call_internal): Pass curr_insn to
3367         mips_split_call.
3368         (call_internal_direct): Ditto.
3369         (call_value_internal): Ditto.
3370         (call_value_internal_direct): Ditto.
3371         (call_value_multiple_internal): Ditto.
3372         * config/mips/mips.c (mips_split_call): Do not copy
3373         CALL_INSN_FUNCTION_USAGE here.
3375 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
3377         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
3378         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
3379         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
3380         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
3381         (TUNE_LOONGSON_3A): Define.
3382         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
3383         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
3384         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
3385         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
3386         (mips_rtx_cost_data): Add Loongson-3A.
3388 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
3390         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
3391         switches.
3393 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
3395         * dwarf2out.c (macinfo_entry): New struct.
3396         (output_comp_unit): Emit the section start label here and flag that we
3397         will emit an info section.
3398         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
3399         emitting directly.
3400         (dwarf2out_end_source_file): Likewise.
3401         (dwarf2out_define): Likewise.
3402         (dwarf2out_undef): Likewise.
3403         (output_macinfo): New.
3404         (dwarf2out_init): Do not emit debug section switches here, allocate a
3405         vec for macinfo, when required.
3406         (dwarf2out_finish): First switch to debug_abbrev_section here.
3407         debug_line_section,  debug_macinfo_section, Likewise.
3408         Check that the pubtypes table has at least one unpruned entry before
3409         trying to emit it.
3411 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3413         PR c/20385
3414         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
3415         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
3416         token lookahead.
3417         (c_parser_compound_statement_nostart, c_parser_label,
3418         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
3419         (c_parser_declaration_or_fndef): Detect the case now matched by
3420         c_parser_next_tokens_start_declaration, give error and correct it.
3422 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3424         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
3425         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
3426         with typespec_kind.
3427         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
3428         (shadow_tag_warned, check_compound_literal_type): Adjust
3429         uses of tag_defined_p.
3430         (declspecs_add_type): Set typespec_kind.
3431         * c-parser.c (c_parser_declaration_or_fndef,
3432         c_parser_declspecs, c_parser_struct_declaration,
3433         c_parser_parameter_declaration, c_parser_type_name,
3434         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
3435         of type_seen_p.
3436         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
3437         tag_defined_p, pass ctsk_firstref through.
3439 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3441         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
3442         (struct format_wanted_type): Replace field "name" with "kind", add
3443         "format_start" and "format_length".
3444         (check_format_info_main): Fill in new fields.  Fill in
3445         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
3446         after the final NUL outside the while loop.  Do not include
3447         width and precision modifiers in the format_start/format_length
3448         of the main format.
3449         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
3450         arguments.  Compute WANTED_TYPE first so that format_type_warning
3451         can be called for missing arguments.  Adjust calls to
3452         format_type_warning.
3453         (format_type_warning): Fetch as much information as possible
3454         from format_wanted_type.  Adjust printing now that every
3455         warning has a "descr", as well as for missing argument warnings
3456         and to include % sign for format specifiers.
3458 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
3460         PR rtl-optimization/46204
3461         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
3462         Update all callers.  Do not recompute topological order.  Adjust
3463         fallthrough edges following a degenerate conditional jump.
3465 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3467         * opts-common.c (control_warning_option): New.
3468         * opts.c (set_default_handlers): New.
3469         (decode_options): Use set_default_handlers and
3470         control_warning_option.
3471         (common_handle_option): Update call to enable_warning_as_error.
3472         (enable_warning_as_error): Take gcc_options parameters.  Use
3473         control_warning_option.
3474         * opts.h (set_default_handlers, control_warning_option): Declare.
3476 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
3478         * Makefile.in (OPTS_H): Define.
3479         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
3480         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
3481         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
3482         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
3483         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
3484         * gcc.c (driver_handle_option): Take location_t parameter.
3485         (process_command, do_self_spec): Update calls to
3486         read_cmdline_option.
3487         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
3488         * langhooks.c (lhd_handle_option): Take location_t parameter.
3489         * langhooks.h (handle_option): Take location_t parameter.
3490         * lto-opts.c (lto_reissue_options): Update call to set_option.
3491         * opts-common.c (handle_option): Make static.  Take location_t
3492         parameter and pass it to other functions.
3493         (handle_generated_option): Take location_t parameter and pass it
3494         to other functions.
3495         (read_cmdline_option): Take location_t parameter and pass it to
3496         other functions.  Use warning_at and error_at.
3497         (set_option): Take location_t parameter and pass it to other
3498         functions.
3499         * opts.c (common_handle_option): Take location_t parameter and
3500         pass it to other functions.
3501         (enable_warning_as_error): Make static.  Take location_t parameter
3502         and pass it to other functions.
3503         (lang_handle_option): Take location_t parameter and pass it to
3504         other functions.
3505         (target_handle_option): Take location_t parameter.
3506         (read_cmdline_options, maybe_default_option,
3507         maybe_default_options, default_options_optimization,
3508         decode_options): Take location_t parameter and pass it to other
3509         functions.
3510         * opts.h: Include input.h.
3511         (struct cl_option_handler_func, decode_options, set_option,
3512         handle_generated_option, read_cmdline_option): Take location_t
3513         parameters.
3514         (handle_option, enable_warning_as_error): Remove.
3515         * toplev.c (toplev_main): Update call to decode_options.
3517 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
3519         * graphite-cloog-util.c (oppose_constraint,
3520         cloog_matrix_to_ppl_constraint,
3521         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
3522         CLooG isl uses unsigned integers.  This triggered a warning.
3524 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3526         PR target/46438
3527         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
3528         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
3529         (xtensa_function_arg_1): De-constify cum.
3530         (xtensa_expand_prologue): Use add_reg_note.
3532         PR target/46435
3533         * config/cris/cris.c (saved_regs_mentioned): Delete.
3534         (cris_reload_address_legitimized): Cast itype to enum reload_type.
3535         Remove unused variable op0p.
3536         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
3537         (cris_emit_movem_store): Use add_reg_note.
3539         PR bootstrap/46456
3540         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
3542 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3544         * function.c (expand_function_end): Set the locator of the prologue on
3545         the stack checking insns.
3547 2010-11-12  Richard Henderson  <rth@redhat.com>
3549         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
3550         * config/xtensa/xtensa.opt (mfused-madd): Remove.
3551         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
3552         MASK_FUSED_MADD.
3553         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
3554         (fnmasf4): Rename from mulsubsf3; use fma.
3556 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3557             Richard Henderson  <rth@redhat.com>
3559         PR target/46428
3560         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
3561         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
3562         comparison.
3564 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
3566         * opts-common.c (decode_cmdline_option): Initialize separate_args.
3568 2010-11-12  Jan Hubicka  <jh@suse.cz>
3570         * doc/invoke.texi (early-inlining-insns): Update default.
3571         * params.def (early-inlining-insns): Default to 10.
3573 2010-11-12  Olivier Hainque  <hainque@adacore.com>
3575         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
3577 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3579         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
3580         (SUPPORTS_INIT_PRIORITY): Define.
3582 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
3584         PR target/46430
3585         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
3586         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
3587         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
3588         (avr_device_to_devicelib): Likewise.
3589         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
3590         into block.
3591         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
3592         (zero_extendhidi2, zero_extendsidi2): Likewise.
3593         * config/avr/avr.c (avr_num_arg_regs): Constify type.
3594         (avr_return_addr_rtx): De-constify tem.
3595         (avr_rotate_bytes): Move declarations to start of block.
3596         Don't use variable length array.  Put nested if/else into block.
3598         PR rtl-optimization/46433
3599         * var-tracking.c: Include tm_p.h .
3601         PR bootstrap/44756
3602         PR build/44767
3603         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
3604         should be unsigned.
3605         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
3606         * doc/tm.texi: Regenerate.
3608         PR target/46412
3609         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
3610         * config/bfin/bfin.c: Include sel-sched.h .
3611         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
3612         (expand_interrupt_handler_prologue): Remove unused variable insn.
3613         (bfin_load_pic_reg): Likewise.
3614         (bfin_rtx_costs): Make code / outer_code variables of type
3615         enum rtx_code, copied from re-named parameters.
3616         (bfin_local_alignment): Change align argument and return type
3617         to unsigned.
3618         (bfin_adjust_cost): Remove unused variable insn_type.
3619         Declare variables at start of block.
3620         (struct loop_info): Rename to...
3621         (struct loop_info_d).
3622         (workaround_rts_anomaly): Change type of icode to int.
3623         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
3624         with int-typed variable.
3625         (note_np_check_stores): Likewise.
3626         (trapping_loads_p): Remove unused variable pat.
3627         (bfin_expand_binop_builtin): Use expand_normal.
3628         (bfin_expand_unop_builtin): Likewise.
3629         (bfin_expand_builtin): Likewise.  Set tmode before use.
3631         PR middle-end/44769
3632         * final.c (split_double): Don't use BITS_PER_WORD directly in
3633         shift count.
3635         PR target/46431
3636         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
3637         assignment.
3639         PR target/46450
3640         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
3641         Use add_reg_note.
3642         (xstormy16_function_arg): Dereference cum.
3643         (xstormy16_expand_builtin): Use expand_normal.
3644         Change type of omode to enum machine_mode.
3645         (combine_bnp): Rename and to and_insn.
3647         PR target/46437
3648         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
3649         localreg.
3651 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3653         PR debug/46375
3654         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
3656 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
3658         PR lto/46376
3659         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
3661 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
3663         PR c/44782
3664         * common.opt (fmax-errors=): New option.
3665         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
3666         * diagnostic.h (struct diagnostic_context): Add max_errors field.
3667         * diagnostic.c (diagnostic_initialize): Initialize it.
3668         (diagnostic_action_after_output): Exit if more than max_errors
3669         have been output.
3670         * doc/invoke.texi (Warning Options): Add -fmax-errors.
3671         (-fmax-errors): Document.
3673 2010-11-11  Richard Henderson  <rth@redhat.com>
3675         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
3677 2010-11-11  Richard Henderson  <rth@redhat.com>
3679         * config/fused-madd.opt: New file.
3680         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
3681         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
3682         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3683         * config/i386/i386.opt (mfused-madd): Remove.
3684         * config/i386/sse.md (split_fma): Remove.
3685         (split_fms, split_fnma, split_fnms): Remove.
3687 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
3689         PR target/46088
3690         * config/i386/i386.md (*ashl<mode>3_cconly,
3691         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
3692         change nonimmediate_operand predicate to register_operand.
3694 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
3696         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
3698 2010-11-11  Jan Hubicka  <jh@suse.cz>
3700         * opts.c (finish_options): Do not error on -flto-partition alone.
3702         * doc/invoke.texi (-fwhopr): Merge into -flto section.
3703         (-flto-partition): Document none.
3704         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
3705         * lto-wrapper.c: Update comment.
3706         (run_gcc): Update LTO option parsing.
3707         * opts.c (finish_options): add support -flto-partition=none
3708         (common_handle_option): Remove fwhopr.
3709         * common.opt: Turn fwhopr into flto.
3710         * collect2.c (main): Update option handling.
3711         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
3712         * ipa-split.c (execute_split_functions): Remove flag_whopr.
3713         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
3714         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
3715         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
3717 2010-11-11  Jan Hubicka  <jh@suse.cz>
3719         PR tree-optimize/40436
3720         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
3721         (eliminated_by_inlining_prob): ... this one; return 50% probability
3722         for SRA.
3723         (estimate_function_body_sizes): Update use of
3724         eliminated_by_inlining_prob; estimate static function size
3725         for 2 instructions.
3727 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
3729         PR target/44749
3730         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
3731         declare.  Change type of argument four to type int.
3732         (mep_secondary_input_reload_class): Returns enum reg_class.
3733         (mep_secondary_output_reload_class): Likewise.
3734         (mep_function_value): Change types of arguments to cont_tree.
3735         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
3736         argument four to type int.
3737         (mep_secondary_input_reload_class): Returns enum reg_class.
3738         (mep_secondary_output_reload_class): Likewise.
3739         (mep_function_value): Change types of arguments to cont_tree.
3740         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
3741         mep_regno_reg_class to enum reg_class.
3743 2010-11-11  Richard Henderson  <rth@redhat.com>
3745         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
3746         that the target has the exact fma operation that we matched.
3748 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3750         * reginfo.c (fix_register): Avoid inserting English word in
3751         diagnostic sentence.  Use %qs for quoting and %'.
3753 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
3755         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3756         Intel processor family 6, model 0x2c.
3758 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3760         * opts.c (warning_as_error_callback,
3761         register_warning_as_error_callback): Remove.
3762         (enable_warning_as_error): Don't use warning_as_error_callback.
3763         * opts.h (register_warning_as_error_callback): Remove.
3765 2010-11-11  Richard Henderson  <rth@redhat.com>
3767         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
3768         in between the MULT and the PLUS/MINUS.
3770 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3772         PR middle-end/46388
3773         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
3774         BLKmode mode for it.
3775         (expand_expr_real_1): Similarly for op0.
3777 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3779         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
3780         Document optional target selector.
3782 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
3784         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
3785         assembling high and low parts of size if not using 32-bit HWINT; else
3786         use DECL_SIZE_UNITS, not DECL_SIZE.
3788 2010-11-11  Martin Jambor  <mjambor@suse.cz>
3790         PR tree-optimization/46383
3791         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
3792         offsets.
3793         (compute_complex_ancestor_jump_func): Likewise.
3794         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
3796 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3798         PR debug/46150
3799         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
3800         true if expr1->hash != expr2->hash.
3802 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3804         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
3805         diagnostics with lowercase letters.
3806         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
3807         lowercase letters.
3808         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
3809         diagnostic.
3810         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3811         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
3812         lowercase letters.
3813         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3814         Remove trailing ' ' from diagnostic.
3815         * config/avr/avr.c (print_operand_address): Start diagnostic with
3816         a lowercase letter and remove trailing '.'.
3817         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
3818         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
3819         with lowercase letters.  Use %' in diagnostics.  Remove trailing
3820         '.' from diagnostics.
3821         (bfin_handle_longcall_attribute): Use %' in diagnostic.
3822         * config/cris/cris.c (cris_split_movdx,
3823         cris_expand_pic_call_address): Start diagnostics with lowercase
3824         letters.
3825         (cris_asm_output_label_ref): Use %' in diagnostic.
3826         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
3827         letter.
3828         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
3829         lowercase letter.
3830         * config/darwin-c.c (version_as_macro): Start diagnostic with a
3831         lowercase letter.
3832         * config/darwin-driver.c (darwin_default_min_version): Use %' in
3833         diagnostic.
3834         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
3835         diagnostic.
3836         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3837         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
3838         diagnostics.
3839         * config/i386/i386.c (ix86_option_override_internal): Write
3840         diagnostic as a single sentence without trailing '.'.  Use %' in
3841         diagnostics.
3842         (ix86_function_sseregparm, classify_argument): Start diagnostics
3843         with lowercase letters.
3844         (ix86_expand_prologue): Use %' in diagnostic.
3845         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
3846         diagnostic.
3847         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
3848         lowercase letter.
3849         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
3850         diagnostic.
3851         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3852         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
3853         '`' in help text.
3854         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
3855         lowercase letter.
3856         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
3857         lowercase letters.
3858         * config/microblaze/microblaze.c (microblaze_handle_option):
3859         Remove trailing '.' from diagnostic.
3860         (print_operand): Start diagnostic with a lowercase letter.
3861         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
3862         lowercase letters.  Avoid '`' in diagnostics.
3863         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
3864         lowercase letters.  Avoid '`' in diagnostics.
3865         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
3866         lowercase letters.  Avoid '`' in diagnostics.
3867         * config/picochip/picochip.c (picochip_option_override,
3868         picochip_emit_save_register, picochip_function_arg,
3869         picochip_output_label, picochip_output_internal_label,
3870         picochip_asm_output_opcode, picochip_output_cbranch,
3871         picochip_output_compare, picochip_output_branch,
3872         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
3873         diagnostics. Start diagnostics with lowercase letters.  Use %' in
3874         diagnostics.
3875         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
3876         "SPE" capitalization.  Start diagnostic with a lowercase letter.
3877         (rs6000_handle_option): Start diagnostics with lowercase letters.
3878         (def_builtin): Remove trailing '.' from diagnostic.
3879         (rs6000_savres_routine_name): Start diagnostic with a lowercase
3880         letter.
3881         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
3882         diagnostic.
3883         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
3884         lowercase letter.
3885         * config/s390/s390.c (s390_option_override) Start diagnostics with
3886         lowercase letters.  Use %' in diagnostic.
3887         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
3888         lowercase letters.
3889         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
3890         diagnostic.
3891         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
3892         diagnostic.
3893         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
3894         diagnostic.
3895         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3896         * config/spu/spu.c (spu_option_override): Start diagnostics with
3897         lowercase letters.  Use %qs for quoting in diagnostics.
3898         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
3899         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
3900         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
3901         from diagnostic.
3902         * convert.c (convert_to_integer, convert_to_vector): Use %' in
3903         diagnostics.
3904         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
3905         letter and use "cannot" spelling.
3906         * expmed.c (extract_fixed_bit_field): Start diagnostic with
3907         lowercase letter and format as a single sentence without '.'.
3908         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
3909         Use %' in diagnostics.
3910         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
3911         Use %' in diagnostics.
3912         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
3913         Use %' in diagnostics.
3914         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
3915         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
3916         with lowercase letters and remove tailing '.' and '\n'.
3917         * lto-cgraph.c (input_profile_summary): Start diagnostic with
3918         lowercase letter and remove trailing '.'.
3919         (input_cgraph): Start diagnostics with lowercase letters and
3920         remove trailing '\n'.
3921         * opts.c (finish_options, common_handle_option): Start diagnostics
3922         with lowercase letters and remove trailing '.'.  Fix typo in
3923         diagnostic.
3924         * passes.c (position_pass): Start diagnostic with lowercase letter.
3925         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
3926         register_callback, try_init_one_plugin): Start diagnostics with
3927         lowercase letters.
3928         * reload1.c (spill_failure): Use %' in diagnostic.
3929         (gen_reload): Start diagnostic with a lowercase letter.
3930         * stor-layout.c (place_field): Start diagnostic with a lowercase
3931         letter.
3932         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
3933         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
3934         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
3935         Start diagnostics with lowercase letters, remove trailing '.' and
3936         use %' in diagnostics.
3937         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
3938         (verify_ssa): Don't split diagnostic across two error calls.
3939         Spell out "number" and use %' in diagnostic.
3940         * value-prof.c (visit_hist, check_counter): Start diagnostics with
3941         lowercase letters.
3943 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
3945         PR middle-end/46419
3946         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
3947         (_mm_cvtpu16_ps): Ditto.
3949 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3951         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
3952         warn_larger_than, larger_than_size, warn_frame_larger_than,
3953         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
3954         default_visibility, flag_tls_default): New Variable declarations.
3955         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
3956         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
3957         (v): Declare as Common and document here.
3958         * flags.h (default_visibility, flag_generate_lto,
3959         warn_larger_than, larger_than_size, warn_frame_larger_than,
3960         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
3961         flag_shlib, flag_excess_precision_cmdline): Remove.
3962         (set_Wstrict_aliasing): Update prototype.
3963         * gcc.c (verbose_flag): Remove.
3964         (driver_handle_option): Add diagnostic_context parameter.  Don't
3965         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
3966         incrementing it.
3967         * opts-common.c (handle_option): Pass dc to handler.
3968         * opts.c (warn_larger_than, larger_than_size,
3969         warn_frame_larger_than, frame_larger_than_size,
3970         default_visibility): Remove.
3971         (common_handle_option): Add diagnostic_context parameter.
3972         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
3973         gcc_options parameters.
3974         (lang_handle_option, target_handle_option, read_cmdline_options,
3975         decode_options): Add diagnostic_context parameters.
3976         (finish_options): Access option state through opts pointer where
3977         possible.
3978         (common_handle_option): Access option state through opts pointer
3979         where possible.  Do not set local static variable verbose.  Do not
3980         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
3981         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
3982         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
3983         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
3984         OPT_fwhopr_.  Do not explicitly set .opt file variables for
3985         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
3986         (set_Wstrict_aliasing): Add gcc_options parameter.
3987         * opts.h (struct cl_option_handler_func): Add diagnostic_context
3988         parameter to handler.
3989         (decode_options): Add diagnostic_context parameter.
3990         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
3991         asm_file_name, flag_generate_lto, flag_gen_aux_info,
3992         aux_info_file_name, flag_shlib, flag_tls_default,
3993         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
3994         (toplev_main): Pass global_dc to decode_options.
3995         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
3996         aux_info_file_name, asm_file_name): Remove.
3997         * tree.h (flag_tls_default): Remove.
3999 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
4001         PR target/45986
4002         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
4003         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
4005 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
4007         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
4008         (x86_64-*-*): Likewise.
4009         * config/i386/cpuid.h: Define TBM bit.
4010         * config/i386/driver-i386.c (host_detect_local_cpu): Define
4011         and set has_tbm.
4012         * config/i386/i386-c.c (ix86_target_macros_internal): Check
4013         isa_flag for TBM.
4014         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
4015         (OPTION_MASK_ISA_TBM_UNSET): New.
4016         (ix86_handle_option): Handle -mtbm.
4017         (isa_opts): Add -mtbm.
4018         (enum pta_flags): Add PTA_TBM.
4019         (ix86_option_override_internal): Add TBM support.
4020         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
4021         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
4022         (IX86_BUILTIN_BEXTRI64): Likewise.
4023         (bdesc_args): Add TBM intrinsics.
4024         (ix86_expand_builtin): Add TBM specific case.
4025         * config/i386/i386.h (TARGET_TBM): New for TBM.
4026         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
4027         (tbm_bextri_<mode>): Likewise.
4028         (*tbm_blcfill_<mode>): Likewise.
4029         (*tbm_blci_<mode>): Likewise.
4030         (*tbm_blcic_<mode>): Likewise.
4031         (*tbm_blcmsk_<mode>): Likewise.
4032         (*tbm_blcs_<mode>): Likewise.
4033         (*tbm_blsfill_<mode>): Likewise.
4034         (*tbm_blsic_<mode>): Likewise.
4035         (*tbm_t1mskc_<mode>): Likewise.
4036         (*tbm_tzmsk_<mode>): Likewise.
4037         * config/i386/i386.opt: Add -mtbm.
4038         * config/i386/tbmintrin.h (__bextri_u32): New.
4039         (__blcfill_u32): Likewise.
4040         (__blci_u32): Likewise.
4041         (__blcic_u32): Likewise.
4042         (__blcmsk_u32): Likewise.
4043         (__blcs_u32): Likewise.
4044         (__blsfill_u32): Likewise.
4045         (__blsic_u32): Likewise.
4046         (__t1mskc_u32): Likewise.
4047         (__tzmsk_u32): Likewise.
4048         (__bextri_u64): Likewise.
4049         (__blcfill_u64): Likewise.
4050         (__blci_u64): Likewise.
4051         (__blcic_u64): Likewise.
4052         (__blcmsk_u64): Likewise.
4053         (__blcs_u64): Likewise.
4054         (__blsfill_u64): Likewise.
4055         (__blsic_u64): Likewise.
4056         (__t1mskc_u64): Likewise.
4057         (__tzmsk_u64): Likewise.
4058         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
4059         * doc/invoke.texi: Document -mtbm.
4060         * doc/extend.texi: Document TBM built-in functions.
4062 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
4064         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
4065         (x86_64-*-*): Likewise.
4066         * config/i386/cpuid.h: Define BMI bit.
4067         * config/i386/driver-i386.c (host_detect_local_cpu): Define
4068         and set has_bmi.
4069         * config/i386/i386-c.c (ix86_target_macros_internal): Check
4070         isa_flag for BMI.
4071         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
4072         (OPTION_MASK_ISA_BMI_UNSET): New.
4073         (ix86_handle_option): Handle -mbmi.
4074         (isa_opts): Add -mbmi.
4075         (enum pta_flags): Add PTA_BMI.
4076         (ix86_option_override_internal): Add BMI support.
4077         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
4078         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
4079         (IX86_BUILTIN_BEXTR64): Likewise.
4080         (IX86_BUILTIN_CTZS): Likewise.
4081         (bdesc_args): Add BMI intrinsics.
4082         (ix86_expand_args_builtin): Add BMI specific cases.
4083         * config/i386/i386.h (TARGET_BMI): New for BMI.
4084         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
4085         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
4086         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
4087         (UNSPEC_TZCNT): Likewise.
4088         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
4089         (bmi_andn_<mode>): New for BMI.
4090         (bmi_bextr_<mode>): Likewise.
4091         (bmi_blsi_<mode>): Likewise.
4092         (bmi_blsmsk_<mode>): Likewise.
4093         (bmi_blsr_<mode>): Likewise.
4094         * config/i386/i386.opt: Add -mbmi.
4095         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
4096         * config/i386/bmiintrin.h (__lzcnt_u16): New.
4097         (__tzcnt_u16): Likewise.
4098         (__andn_u32): Likewise.
4099         (__bextr_u32): Likewise.
4100         (__blsi_u32): Likewise.
4101         (__blsmsk_u32): Likewise.
4102         (__blsr_u32): Likewise.
4103         (__lzcnt_u32): Likewise.
4104         (__tzcnt_u32): Likewise.
4105         (__andn_u64): Likewise.
4106         (__bextr_u64): Likewise.
4107         (__blsi_u64): Likewise.
4108         (__blsmsk_u64): Likewise.
4109         (__blsr_u64): Likewise.
4110         (__lzcnt_u64): Likewise.
4111         (__tzcnt_u64): Likewise.
4112         * doc/invoke.texi: Document -mbmi and -mno-bmi.
4113         * doc/extend.texi: Document BMI built-in functions.
4115 2010-11-10  Jan Hubicka  <jh@suse.cz>
4117         PR tree-optimize/46228
4118         * doc/invoke.texi (comdat-sharing-probability): Document.
4119         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
4120         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
4122 2010-11-10  Jan Hubicka  <jh@suse.cz>
4124         PR tree-optimize/46228
4125         * cgraph.c (cgraph_propagate_frequency): Fix typo.
4127 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
4129         PR tree-optimization/46414
4130         * tree-inline.c (estimate_move_cost): Check preferred vector
4131         mode for vector type.
4133 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4135         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
4137 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
4139         PR tree-optimization/45971
4140         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
4141         for phi nodes analyzable by scev.
4143 2010-11-10  Richard Guenther  <rguenther@suse.de>
4145         PR tree-optimization/44964
4146         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
4148 2010-11-10  Martin Jambor  <mjambor@suse.cz>
4150         PR tree-optimization/46351
4151         PR tree-optimization/46377
4152         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
4153         aggregate bit-fields.
4155 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
4157         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4158         * doc/tm.texi: Regenerate.
4159         * opts-common.c (tm.h): Don't include.
4160         (target_option_translations): Remove.
4161         (decode_cmdline_options_to_array): Don't handle translating options.
4162         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
4163         * config/darwin-driver.c: Don't condition includes on
4164         CROSS_DIRECTORY_STRUCTURE.
4165         (darwin_default_min_version): Make static.
4166         (darwin_driver_init): New.  Call darwin_default_min_version if not
4167         CROSS_DIRECTORY_STRUCTURE.
4168         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4169         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
4170         (ASM_SPEC): Add %{static}.
4171         (darwin_default_min_version): Don't declare.
4172         (darwin_driver_init): Declare.
4173         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
4174         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
4175         * config/darwin.opt (all_load, allowable_client,
4176         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
4177         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
4178         exported_symbols_list, filelist, findirect-virtual-calls,
4179         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
4180         framework, fterminated-vtables, gfull, gused, image_base, init,
4181         install_name, multi_module, multiply_defined,
4182         multiply_defined_unused, no_dead_strip_inits_and_terms,
4183         seg_addr_table, seg_addr_table_filename, segaddr,
4184         segs_read_only_addr, segs_read_write_addr, single_module,
4185         umbrella, unexported_symbols_list, weak_reference_mismatches,
4186         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
4187         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
4188         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
4189         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
4190         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
4191         (ASM_SPEC): Add %{static}.
4192         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
4193         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4194         (DRIVER_SELF_SPECS): Handle options formerly in
4195         TARGET_OPTION_TRANSLATE_TABLE.
4196         * config/mep/mep.opt (mfar): New.
4197         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4198         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
4199         TARGET_OPTION_TRANSLATE_TABLE.
4200         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
4201         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
4202         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
4203         ffix-and-continue, findirect-data): New.
4204         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
4205         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
4206         (mnofpu): Define mask and use Report here.
4208 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4210         * config/s390/s390.c (s390_emit_prologue): Report the stack
4211         size if -fstack-usage is used.
4213 2010-11-10  Richard Guenther  <rguenther@suse.de>
4215         PR tree-optimization/46398
4216         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
4218 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
4220         PR target/44760
4221         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
4222         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
4223         GP_REG_OR_PSEUDO_STRICT_P.
4224         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
4225         unexpected alternative.
4226         (*movsf_internal): Likewise.
4227         (indirect_jump): Replace call to non-existant function with call to
4228         internal_error.
4229         (tablejump): Likewise.
4230         * config/iq2000/iq2000.c: Include df.h .
4231         (iq2000_function_arg_advance): Use CONST_CAST2.
4232         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
4233         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
4234         a non-zero function address.
4235         (iq2000_initial_elimination_offset): Add gcc_unreachable for
4236         unexpected value of FROM.
4237         (symbolic_expression_p): Delete.
4238         (iq2000_function_value): Constify func.
4239         (expand_one_builtin): Use expand_normal.
4240         (iq2000_print_operand): Don't print VALUE if calculating it failed.
4242         PR rtl-optimization/44764
4243         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
4245         PR target/46407
4246         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
4247         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
4248         with ATTRIBUTE_UNUSED.
4249         (valid_psw_flag): Constify parameter which.
4250         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
4252         PR target/46415
4253         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
4254         (mmix_dbx_register_number): Likewise.
4255         * config/mmix/mmix.c: Include df.h .
4256         (mmix_local_alignment): Change argument basic_align and return type
4257         to unsigned.
4258         (mmix_dbx_register_number): Change argument and return type to
4259         unsigned.
4260         (mmix_expand_prologue): Use add_reg_note.
4262         PR target/46417
4263         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
4264         (spu_split_store): Use aform.
4265         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
4267 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4269         PR/46268
4270         * doc/gty.texi (GTY Options): Clarify that variable_size produces
4271         allocators taking size in bytes, compare with length option.  Add
4272         size calculation example.
4273         (Invoking the garbage collector): Ensure that sentences are
4274         followed by two spaces.  Describe that pointer fields must be
4275         initialized at ggc_collect call.
4276         (Troubleshooting): New section.
4278 2010-11-09  Jan Hubicka  <jh@suse.cz>
4280         PR tree-optimization/40436
4281         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
4282         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
4283         normal instructions; be sure bultin is not implemented in this file;
4284         compute non-zero return cost.
4285         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
4286         * tree-inline.h (eni_weights_d): Add return cost.
4288 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
4290         * c-parser.c (c_parser_struct_declaration): Handle declaration
4291         specifiers followed by CPP_CLOSE_BRACE.
4293 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
4295         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
4296         split occurs before reload, and we allocate memory at the time of
4297         the split, not during expansion.  Add attributes.
4298         (floatsi<mode>2_lfiwax_mem): Ditto.
4299         (floatunssi<mode>2_lfiwzx): Ditto.
4300         (floatunssi<mode>2_lfiwzx_mem): Ditto.
4301         (floatsidf2): Ditto.
4302         (floatunssisf2): Ditto.
4303         (floatunssidf2): Ditto.
4304         (fix_trunc<mode>si2): Ditto.
4305         (fix_trunc<mode>si2_stfiwx): Ditto.
4306         (fix_trunc<mode>si2_internal): Ditto.
4307         (fix_trunc<mode>si2): Ditto.
4308         (fix_trunc<mode>di2): Ditto.
4309         (fixuns_trunc<mode>si2_stfiwx): Ditto.
4310         (floatsisf2): Ditto.
4311         (floatdidf2_mem): Ditto.
4312         (floatunsdidf2_mem): Ditto.
4313         (floatunsdidf2): Ditto.
4314         (floatdisf2_internal1): Ditto.
4315         (floatdisf2_mem): Ditto.
4316         (floatunsdisf2_mem): Ditto.
4317         (floatsi<mode>2_lfiwax_mem2): Delete.
4318         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
4319         (fix_trunc<mode>si2_mem): Ditto.
4320         (fixuns_trunc<mode>si2_mem): Ditto.
4321         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
4322         type operations to reduce copying the values to multiple memory slots.
4323         (roundu32<mode>2_fprs): Ditto.
4325         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
4326         PRE_INC, PRE_DEC, PRE_MODIFY.
4327         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
4329         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
4330         Delete prototype.
4332 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
4334         PR target/43808
4335         * cfgexpand.c (partition_stack_vars): Call
4336         update_alias_info_with_stack_vars unconditionally.
4337         (update_alias_info_with_stack_vars): Allow unused
4338         unreferenced vars when not optimizing.
4340 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
4342         PR tree-optimization/46036
4343         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
4344         add_to_dst_predicate_list.
4346 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
4348         PR debug/46171
4349         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
4350         earlier.
4351         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
4352         argument, call dead_debug_reset when adding REG_UNUSED note.
4353         (dead_debug_reset): New function.
4354         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
4355         df_create_unused_note callers.
4357 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
4359         * config/fr30/fr30.c: Include "df.h".
4361 2010-11-09  Richard Guenther  <rguenther@suse.de>
4363         PR tree-optimization/46355
4364         * tree-loop-distribution.c (tree_loop_distribution): Do not
4365         distribute loops without a single exit.
4367 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4369         PR rtl-optimization/46237
4370         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
4371         saved hard regs if they might get partially clobbered.
4373 2010-11-09  Paul Koning  <ni1d@arrl.net>
4375         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
4377 2010-11-09  Richard Guenther  <rguenther@suse.de>
4379         PR tree-optimization/46177
4380         * tree-loop-distribution.c (prop_phis): Remove.
4381         (generate_builtin): Re-use the old loop exit edge to avoid
4382         needing to update PHI nodes.
4384 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
4386         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
4387         type of args_size to unsigned HOST_WIDE_INT.
4389         PR target/44755
4390         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
4391         * config/t-pnt16-warn: New file.
4392         * config/picochip/picochip.c (picochip_emit_stack_allocate):
4393         Use add_reg_note.
4394         (picochip_emit_save_register): Likewise.
4395         (picochip_emit_restore_register): Remove variable insn.
4396         (picochip_legitimize_address): Don't use C++ style comments.
4397         (picochip_legitimize_reload_address): Likewise.
4398         (reorder_var_tracking_notes): Remove variable vliw_start.
4399         (picochip_reorg): Cast first arguemnt to emit_note_after to
4400         enum insn_note.
4401         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
4402         (picochip_expand_builtin_3op): Likewise.
4403         (picochip_expand_builtin_2opvoid): Likewise.
4404         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
4405         (picochip_expand_array_testport): Likewise.
4406         (picochip_init_builtins): Remove unused variables.
4407         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
4408         to unsigned long, and output it as such.
4409         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
4410         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
4411         (schedType): Cast result of picochip_schedule_type to
4412         enum attr_schedType.
4414         PR target/44759
4415         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
4416         conditional to type of S.
4417         (mn10300_function_arg): Remove unused variable align.
4418         (mn10300_arg_partial_bytes): Likewise.
4419         * config/mn10300/mn10300.md (attribute cpu): Cast value to
4420         enum attr_cpu.
4422 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
4424         PR bootstrap/46392
4425         * gengtype-parse.c (type): Call get_input_file_name to get file name.
4427 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
4429         * tree.h (contains_placeholder_p): Fix comment.
4430         (type_contains_placeholder_p): Adjust comment.
4431         * tree.c (contains_placeholder_p): Fix comment.
4432         (type_contains_placeholder_1): Do not recurse on pointed-to types and
4433         adjust comment.
4434         (type_contains_placeholder_p): Add comment.
4436 2010-11-09  Paul Koning  <ni1d@arrl.net>
4438         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
4439         output of byte values.
4441 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
4443         PR middle-end/46360
4444         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
4445         not in SSA mode.
4447 2010-11-09  Richard Guenther  <rguenther@suse.de>
4449         PR middle-end/46221
4450         * varasm.c (compute_visible_aliases): New function.
4451         (remove_unreachable_alias_pairs): Aliases make a target available
4452         even though we reclaimed the cgraph node.
4453         (finish_aliases_1): Likewise.
4454         * Makefile.in (varasm.o): Add pointer-set.h dependency.
4456 2010-11-09  Nick Clifton  <nickc@redhat.com>
4458         * config/mn10300/mn10300-modes.def: New file.
4460 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
4461             Jeremie Salvucci  <jeremie.salvucci@free.fr>
4463         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
4464         (plugin_files, get_file_basename, get_file_realbasename)
4465         (get_file_langdir, error_at_line, gt_files, this_file)
4466         (system_h_file, read_input_list, create_field_all)
4467         (get_file_srcdir_relative_path, get_file_basename)
4468         (get_file_langdir, get_file_gtfilename)
4469         (get_output_file_with_visibility, get_output_file_name)
4470         (struct flist, put_mangled_filename, walk_type)
4471         (put_mangled_filename, finish_root_table, write_roots): Use
4472         input_file-s.
4473         (lang_dir_names, num_lang_dirs): Remove static.
4474         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
4475         (main): Use input_file-s.
4477         * gengtype.h: (struct input_file_st, input_file): New type.
4478         (struct fileloc): Use it.
4479         (gt_files, num_gt_files, this_file, system_h_file)
4480         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
4481         (get_input_file_name): New function.
4482         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
4483         use input_file.
4484         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
4485         (get_output_file_name): Ditto.
4487         * gengtype-lex.l (yybegin): Use input_file.
4489         * gengtype-parse.c (parse_error): Use input_file.
4491 2010-11-08  Xinliang David Li  <davidxl@google.com>
4493         PR tree-optimization/46316
4494         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
4495         * double-int.h (double_int_mul_with_sign): New function.
4496         * double-int.c (double_int_mul_with_sign): New function.
4498 2010-11-08  Paul Koning  <ni1d@arrl.net>
4500         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
4502 2010-11-08  Paul Koning  <ni1d@arrl.net>
4504         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
4506 2010-11-08  Paul Koning  <ni1d@arrl.net>
4508         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
4509         to 8 bits.
4511 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
4513         PR target/46378
4514         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4515         turn on ISA 2.04 rounding instructions for power5.
4517         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
4518         not ISA 2.02.
4520         PR target/45585
4521         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
4522         in FPR registers.
4523         (movdi_low_st): Ditto.
4525 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
4526             Richard Henderson  <rth@redhat.com>
4528         PR target/44758
4529         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
4530         (attribute acc_group): Cast value to enum attr_acc_group.
4531         (*movdi_nodouble+6): Use gen_int_mode.
4532         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
4533         if RTX_CODE is defined or not.
4534         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
4535         struct frv_io.
4536         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
4537         (frv_frame_access, frv_expand_prologue): Remove unused variables.
4538         (frv_expand_block_clear): Likewise.
4539         (frv_trampoline_init): Use LCT_NORMAL.
4540         (struct frv_packet_group): New struct, broken out of type of
4541         frv_packet.
4542         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
4543         use cast in loop counter increment.
4544         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
4545         assigning to io->type.
4546         (bdesc_set): Use rtx_code UNKNOWN in initializer.
4547         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
4548         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
4549         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
4550         (frv_read_argument): Use expand_normal.
4552         PR target/44757
4553         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
4554         lm32_legitimate_constant_p.
4555         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
4556         * config/lm32/lm32.c (gen_int_relational): Make new block for
4557         LE / LT / LEU / LTU case.  Declare variables at start of block.
4558         (lm32_block_move_inline): Use XALLOCAVEC.
4560 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4562         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
4564 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
4566         * gengtype (get_output_file_for_structure): Ensure type is union
4567         or struct.
4568         (write_splay_tree_allocator_def): Use
4569         get_output_file_with_visibility.
4571 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4573         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
4574         to defined values in case of an error.
4575         (s390_option_override): Skip further processing if the -march
4576         parameter wasn't recognized.
4578 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
4580         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
4581         assert that REG is a hard register number before using it as an index.
4583         PR bootstrap/46358
4584         * config/i386/i386.c (ix86_expand_split_stack_prologue):
4585         Avoid warnings when HOST_WIDE_INT is 32 bit.
4587 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
4589         PR target/46208
4590         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
4591         (sparc_promote_prototypes): Likewise.
4592         (sparc_promote_function_mode): Promote in 32-bit mode as well.
4593         (sparc_return_in_memory): Remove superfluous parentheses.
4594         (sparc_struct_value_rtx): Fix long lines.
4595         (sparc_function_value_1): Promote in 32-bit mode as well.
4597 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
4599         PR rtl-optimization/45352
4600         * sel-sched.c (find_best_expr): Do not set pneed_stall when
4601         the variable_issue hook is not implemented.
4602         (fill_insns): Remove dead variable stall_iterations.
4603         (init_seqno_1): Force EBB start for resetting sched cycles on any
4604         successor blocks of the rescheduled region.
4605         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
4606         (reset_sched_cycles_in_current_ebb): Add debug printing.
4607         New variable issued_insns.  Advance state when we have issued
4608         issue_rate insns.
4610 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
4612         * gengtype (main): Get here's position using POS_HERE macro for
4613         do*typedef calls.
4615 2010-11-07  Ian Lance Taylor  <iant@google.com>
4617         PR target/46089
4618         * config/i386/i386.c (split_stack_fn_large): New static variable.
4619         (ix86_expand_split_stack_prologue): Handle large model.
4621 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
4623         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
4624         all possible addressing modes.
4626 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
4628         PR tree-optimization/46346
4629         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
4631 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
4633         * config/mips/mips.c: Revert previous patch.
4634         * config/mips/mips.md: Likewise.
4636 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
4638         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
4639         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
4640         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
4641         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
4642         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
4643         to use FMA.
4644         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
4645         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
4646         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
4647         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
4649 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
4651         PR c/43384
4652         * c-decl.c (lookup_label): Labels can only be referenced in a
4653         function's scope.
4654         (store_parm_decls_oldstyle): Skip erroneous parameters.
4656 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
4658         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4659         LIBCALL_VALUE): Remove macros.
4660         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4661         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4662         (fr30_function_value_regno_p, fr30_function_value,
4663         fr30_libcall_value): New functions.
4665 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
4667         PR middle-end/46314
4668         * target.def (generate_internal_label): New asm_out hook.
4669         * output.h (default_generate_internal_label): Declare.
4670         * varasm.c (default_generate_internal_label): Define.
4672 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
4674         PR target/44981
4675         * doc/extend.tex (format): Document NSString extension.
4676         (format_arg): Likewise.
4677         (Darwin Format Checks): New section.
4678         * doc/tm.texi: Document string object hooks (generated).
4679         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
4680         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
4681         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
4682         * target.def (objc_construct_string_object): Rename, amend
4683         documentation.
4684         (string_object_ref_type_p): New hook.
4685         (check_string_object_format_arg): New hook.
4686         * c-parser.c (c_parser_attributes): Allow objective-c class names as
4687         attribute identifiers.
4688         * config/darwin-c.c (darwin_cfstring_ref_p): New.
4689         (darwin_check_cfstring_format_arg): New.
4690         (darwin_additional_format_types): New.
4691         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
4692         (darwin_check_cfstring_format_arg): New.
4693         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
4694         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
4695         (TARGET_N_FORMAT_TYPES): New.
4696         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
4698 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
4699             Pascal Obry  <obry@adacore.com>
4701         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
4702         in 64-bit mode and 17 otherwise.
4704 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4706         PR debug/45939
4707         * var-tracking.c (emit_note_insn_var_location): Make sure that
4708         call related var location notes come before the normal ones.
4710 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
4712         PR target/46326
4713         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
4714         in the last change.
4716 2010-11-05  Ian Lance Taylor  <iant@google.com>
4718         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
4720 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4722         PR c/44772
4723         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
4724         pointer_set_contains if DECL_NAME is NULL.
4726 2010-11-05  Ian Lance Taylor  <iant@google.com>
4728         PR target/46084
4729         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
4730         request enough additional space for alignment, and force alignment.
4732 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
4734         * config/i386/i386.c (legitimate_pic_address_disp_p):
4735         Handle UNSPEC_PCREL.
4736         (ix86_legitimate_address_p): Likewise.
4737         (legitimize_pic_address): Likewise.
4738         (output_pic_addr_const): Likewise.
4739         (ix86_delegitimize_address): Likewise.
4740         (ix86_find_base_term): Likewise.
4741         (memory_address_length): Likewise.
4742         (x86_output_mi_thunk): Handle special case x64
4743         for non local binding.
4744         * config/i386/i386.md (UNSPEC_PCREL): New.
4745         * config/i386/winnt.c (i386_pe_binds_local_p):
4746         Allow weak symbol for x64 windows with non-local binding.
4748 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4750         PR target/45670
4751         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
4752         instead of EXPAND_NORMAL for base expansion.
4754 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
4756         * config.gcc: Support --with-fpmath=avx for x86.
4757         * config/i386/avxmath.h: New.
4758         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
4760 2010-11-05  Ian Lance Taylor  <iant@google.com>
4762         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
4763         * gengtype.c (walk_type): Don't recognize descbits option.
4765 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
4767         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
4768         WORD_SWITCH_TAKES_ARG): Remove.
4769         * doc/options.texi (Args): Document.
4770         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
4771         * doc/tm.texi: Regenerate.
4772         * opt-functions.awk (switch_flags): Handle Args.
4773         * opts-common.c: Update comment on tm.h include.
4774         (decode_cmdline_option): Handle options with multiple arguments.
4775         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
4776         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
4777         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
4778         CL_COMMON): Update values.
4779         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
4780         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
4781         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
4782         sectobjectsymbols, sectorder, segcreate, segprot): New.
4784 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
4785             Uros Bizjak  <ubizjak@gmail.com>
4787         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
4788         256bit AVX register is used.
4789         (ix86_expand_vector_move_misalign): Likewise.
4790         (ix86_expand_vector_move): Replace use_avx256_p with
4791         VALID_AVX256_REG_MODE.
4793 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
4795          PR target/44750
4796         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
4797         change.  Set $@-warn.o to -Wno-error.
4799         PR bootstrap/44756
4800         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
4801         comparing it to a signed value.
4803         PR middle-end/44766
4804         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
4805         PR bootstrap/44770
4806         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
4807         to i.
4809         PR target/44754
4810         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
4811         (m32c_function_arg).  Add comma between arguments two and three.
4812         (m32c_promote_prototypes): Remove declaration.
4813         (current_function_special_page_vector): Likewise.
4814         (m32c_regno_reg_class): Change return type to enum reg_class.
4815         (m32c_pushm_popm): Use add_reg_note.
4816         (m32c_push_rounding): Change return type to unsigned int.
4817         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
4818         enum reload_type.
4819         (m32c_insert_attributes): Constify variable name.
4820         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
4821         (m32c_prepare_shift): Remove variable lref.
4822         (m32c_expand_movcc): Remove variable cmp.
4823         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
4824         (m32c_compare_redundant): Remove variable op2.
4825         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
4826         (m32c_pragma_memregs): Assign the number to target_memregs.
4827         (m32c_pragma_address): Remove variable var_str.
4828         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
4829         enum reg_class.
4830         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
4831         * config/m32c/bitops.md (andsi3): Add default case to switch.
4832         (iorsi3, xorsi3): Likewise.
4833         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
4834         * config/m32c/jump.md (call, call_value): Likewise.
4835         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
4836         (m32c_regno_reg_class): Likewise.
4837         (current_function_special_page_vector): Declare.
4839 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4841         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
4843         PR tree-optimization/46099
4844         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
4845         if it is NULL and uid wasn't found in the hash table.  Just fold the
4846         result if it is NULL otherwise.  Insert other potentially needed
4847         stmts right before current stmt instead of on the entry edge.
4848         (struct elv_data): Add gsi and reset fields.
4849         (eliminate_local_variables_1): Adjust caller.  If take_address_of
4850         failed for debug stmt, set dta->reset and return.
4851         (eliminate_local_variables_stmt): Change STMT argument for GSI,
4852         pass GSI through to the callback, handle resetting of debug stmts.
4853         (eliminate_local_variables): Adjust caller.  Process debug stmts
4854         in second phase.
4856         PR middle-end/43690
4857         * gimplify.c (gimplify_asm_expr): If a "m" input is a
4858         {pre,post}{in,de}crement, fail.
4860         PR debug/46307
4861         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
4862         * tree-pretty-print.c (dump_generic_node): Likewise.
4863         (op_code_prio): Likewise.
4864         * cfgexpand.c (expand_debug_expr): Likewise.
4866 2010-11-04  Paul Koning  <ni1d@arrl.net>
4868         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
4869         constraints.
4871 2010-11-04  Chao-ying Fu  <fu@mips.com>
4873         * configure.ac: Test assembler support for DSP Rev1 mult.
4874         * configure: Regenerate.
4875         * config.in: Regenerate.
4876         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
4877         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
4878         (CODE_FOR_mips_multu): New define.
4879         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
4880         dspr2_32 to dsp_32.
4881         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
4882         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
4883         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
4884         New define_expand patterns.
4885         * config/mips/constraints.md (ka): Update the constraint to test
4886         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
4887         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
4888         mips_multu): Delete.
4889         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
4890         Change target constraint to "ka".
4891         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
4892         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
4893         Emit the accumulator destination when ISA_HAS_DSP_MULT.
4894         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
4895         Emit the accumulator destination when ISA_HAS_DSP_MULT.
4896         (<u>maddsidi4): Likewise.
4897         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
4898         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
4900 2010-11-04  Paul Koning  <ni1d@arrl.net>
4902         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
4904 2010-11-04  Paul Koning  <ni1d@arrl.net>
4906         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
4908 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4910         Fixed using the Objective-C 2.0 dot-syntax with class names.
4911         * c-parser.c (c_parser_next_token_starts_declspecs): In
4912         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
4913         (c_parser_next_token_starts_declaration): Same.
4914         (c_parser_postfix_expression): Parse the Objective-C 2.0
4915         dot-syntax with a class name.
4917 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
4919         * final.c (compute_alignments): Compute/free loop info all the time.
4920         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
4921         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
4922         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
4923         * config/rs6000/rs6000.c (cfgloop.h): Include.
4924         (can_override_loop_align): New.
4925         (rs6000_option_override_internal): Set it.
4926         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
4927         (rs6000_loop_align): New function.
4928         (rs6000_loop_align_max_skip): Likewise.
4930 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4932         PR driver/45703
4933         * collect2.c (main): Print --help output to stdout.  Do not
4934         exit right away, so ld --help is appended.  Add empty lines
4935         to separate output suitably.
4937 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
4939         PR tree-optimization/46233
4940         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
4941         after calling analyze_function, not before.
4943         PR target/46234
4944         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
4945         instead of build_va_arg_indirect_ref.
4946         * config/spu/spu.c (spu_va_start): Likewise.
4947         * config/s390/s390.c (s390_va_start): Likewise.
4949 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
4951         PR middle-end/46292
4952         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
4953         if the innermode is not vector mode, determine the mode of a subreg
4954         by using mode_for_size of inner_size.
4956 2010-11-04  Richard Guenther  <rguenther@suse.de>
4958         PR rtl-optimization/46183
4959         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
4960         (execute_rtl_pre): Likewise.
4961         (execute_rtl_hoist): Likewise.
4963 2010-11-04  Richard Guenther  <rguenther@suse.de>
4965         PR tree-optimization/46068
4966         * ipa-split.c (consider_split): Remove gcc_unreachable.
4968 2010-11-04  Richard Guenther  <rguenther@suse.de>
4970         * tree-nested.c (build_addr): Use build_fold_addr_expr.
4972 2010-11-04  Richard Guenther  <rguenther@suse.de>
4974         PR tree-optimization/45991
4975         * gimplify.c (force_gimple_operand_1): Use the provded test
4976         function in the initial test.
4978 2010-11-04  Jeff Law  <law@redhat.com>
4980         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
4981         of readonly memory equivalances for const/pure calls.
4983 2010-11-04  Richard Guenther  <rguenther@suse.de>
4985         PR tree-optimization/45733
4986         * tree-vect-stmts.c (reverse_vec_elements): Honor the
4987         permute builtins function return type.
4989 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
4991         PR middle-end/44765
4992         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
4993         as an index, check it is not INVALID_REGNUM.
4995         PR bootstrap/44756
4996         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
4997         unsignedp.
4998         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
5000         PR bootstrap/44756
5001         * function.c (thread_prologue_and_epilogue_insns): Add
5002         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
5004         PR bootstrap/44756
5005         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
5007         PR target/44750
5008         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
5009         (pdp11_preferred_reload_class): Rename class to rclass.
5010         (pdp11_preferred_output_reload_class): Likewise.
5011         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
5012         ALL_COMPILERFLAGS .
5013         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
5015         PR bootstrap/44756
5016         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
5017         iteration variables to enum machine_mode.
5019         PR target/44751
5020         * config/h8300/h8300.c: Include df.h.
5021         (push, pop): Use add_reg_note.
5022         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
5023         (compute_a_shift_cc): Likewise.
5024         (expand_a_shift): Argument code has type enum rtx_code.
5025         (struct shift_insn): Member cc_valid has type enum attr_cc.
5026         (struct shift_info) <cc_inline, cc_special>: Likewise.
5027         enum attr_cc.
5028         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
5029         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
5031 2010-11-04  Ira Rosen  <irar@il.ibm.com>
5033         PR tree-optimization/46213
5034         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
5035         MINUS_EXPR only if the first operand is reduction operand.
5037 2010-11-04  Richard Guenther  <rguenther@suse.de>
5038             Richard Henderson  <rth@redhat.com>
5040         * tree.def (FMA_EXPR): New tree code.
5041         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
5042         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
5043         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
5044         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
5045         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
5046         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
5047         (execute_optimize_widening_mul): Call it.  Reorganize to allow
5048         dead stmt removal.  Move TODO flags ...
5049         (pass_optimize_widening_mul): ... here.
5050         * flag-types.h (enum fp_contract_mode): New enum.
5051         * common.opt (flag_fp_contract_mode): New variable.
5052         (-ffp-contract): New option.
5053         * opts.c (common_handle_option): Handle it.
5054         * doc/invoke.texi (-ffp-contract): Document.
5055         * tree.h (fold_fma): Declare.
5056         * builtins.c (fold_fma): New function.
5057         (fold_builtin_fma): Likewise.
5058         (fold_builtin_3): Call it for fma.
5059         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
5060         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
5061         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
5062         New expanders.
5063         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
5064         named patterns.
5065         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
5066         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
5067         (fms_optab, fnma_optab, fnms_optab): New defines.
5068         * gimplify.c (gimplify_expr): Handle binary truth expressions
5069         explicitly.  Handle FMA_EXPR.
5070         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
5071         operations.
5073 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
5074             Richard Guenther  <rguenther@suse.de>
5076         * passes.c (init_optimization_passes): Move veclower after SSA.
5077         * tree-vect-generic.c (uniform_vector_p): New function.
5078         (expand_vector_operations_1): Handle conversion.
5079         (pass_lower_vector): Update SSA form.
5081 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
5083         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
5084         plugin capabilities.
5085         * configure: Regenerate.
5087 2010-11-03  Xinliang David Li  <davidxl@google.com>
5089         PR target/46200
5090         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
5091         Adjust cbase if the use stmt is after iv update.
5093 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5095         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
5097 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5099         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
5100         comment.  Pass true to the last argument of output_stack_adjust.
5102 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
5104         PR target/46295
5105         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
5106         if 256bit AVX register is used.
5108 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
5110         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
5111         xsmindp/xsmaxdp on VSX for single precision min/max.
5112         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
5113         (vsx_sminsf3): Ditto.
5115 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5117         * combine.c (try_combine): Fix formatting issues, improve comments and
5118         fix a pasto.
5120 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
5122         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
5123         of the result before building binary expressions.
5125 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
5127         PR rtl-optimization/45865
5128         * Makefile.in (df-problems.o): Revert revision 164552.
5129         * basic-block.h (enum bb_flags): Likewise.
5130         * cfgcleanup.c (block_was_dirty): Likewise.
5131         (try_forward_edges): Likewise.
5132         (try_crossjump_bb): Likewise.
5133         (try_head_merge_bb): Likewise.
5134         (try_optimize_cfg): Likewise.
5135         (cleanup_cfg): Likewise.
5136         * df-core.c (df_set_bb_dirty): Likewise.
5137         * df-problems.c: Likewise.
5138         (df_simulate_find_uses): Likewise.
5139         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
5140         (find_memory, find_memory_store): Likewise.
5141         (can_move_insns_across): Likewise.
5142         * df.h (can_move_insns_across): Likewise.
5143         * ifcvt.c (find_memory): Likewise.
5144         (dead_or_predicable): Likewise.
5146 2010-11-03  Richard Guenther  <rguenther@suse.de>
5148         PR middle-end/46288
5149         * predict.c (strip_predict_hints): Simply DCE builtin expect if
5150         the result is unused.
5152 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5154         PR tree-optimization/46009
5155         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
5156         cond_if_else_store_replacement if bb1 and bb2 have the same
5157         single successor.
5158         (cond_store_replacement): Use gimple_assign_single_p, don't
5159         check if rhs is SSA_NAME or invariant.  Call release_defs for
5160         assign.
5161         (cond_if_else_store_replacement): New function.
5163 2010-11-03  Richard Guenther  <rguenther@suse.de>
5165         * opts.c (finish_options): Properly check for all WHOPR
5166         flags before complaining about -flto-partition.
5168 2010-11-04  Alan Modra  <amodra@gmail.com>
5170         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
5171         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
5172         TARGET_SECURE_PLT.
5173         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
5174         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
5175         on input, "r" on output.
5177 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
5179         Implemented -fobjc-std=objc1 flag.
5180         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
5181         option.
5182         * doc/standards.texi (Standards): Updated the section on
5183         Objective-C; mention support for Objective-C 2.0 features and the
5184         new -fstd-objc=objc1 flag to disable them.
5186 2010-11-03  Richard Guenther  <rguenther@suse.de>
5188         PR middle-end/46241
5189         * dwarf2out.c (scope_die_for): Properly detect global scope.
5191 2010-11-03  Richard Guenther  <rguenther@suse.de>
5193         PR tree-optimization/46190
5194         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5195         Properly compute peel iterations.
5197 2010-11-03  Richard Guenther  <rguenther@suse.de>
5199         PR tree-optimization/46286
5200         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
5201         re-allocated vector data.
5203 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
5205         PR target/46285
5206         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
5207         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
5208         is completed.
5210 2010-11-03  Richard Guenther  <rguenther@suse.de>
5212         PR tree-optimization/46217
5213         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
5214         flag matches.
5215         (execute_update_addresses_taken): Likewise.
5217 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
5219         PR bootstrap/44335
5220         * targhooks.c (targhook_words_big_endian): New function.
5221         (targhook_float_words_big_endian): Likewise.
5222         * targhooks.h (targhook_words_big_endian): Declare.
5223         (targhook_float_words_big_endian): Likewise.
5224         * target.def (words_big_endian, float_words_big_endian): New hooks.
5226 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5228         PR tree-optimization/46165
5229         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
5230         a normal call into noreturn call.
5232 2010-11-03  Richard Guenther  <rguenther@suse.de>
5234         PR middle-end/46251
5235         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
5236         not INDIRECT_REFs.
5238 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5240         PR tree-optimization/46107
5241         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
5242         if cfg_hook_duplicate_loop_to_header_edge failed.
5244 2010-11-03  Ian Lance Taylor  <iant@google.com>
5246         PR lto/46273
5247         * config.gcc: Don't set lto_binary_reader.
5248         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
5249         (Configuration): Mention --disable-lto.  Remove --with-libelf
5250         paragraph.
5252 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
5254         PR debug/46252
5255         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
5256         prev_real_insn.
5257         * gcse.c (insert_insn_end_basic_block): Likewise.
5259         PR rtl-optimization/46034
5260         PR rtl-optimization/46212
5261         PR rtl-optimization/46248
5262         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
5263         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
5264         before i0dest -> i0src substitution and pass 1 instead of 0 as last
5265         argument to subst on i2pat.
5267 2010-11-02  Ian Lance Taylor  <iant@google.com>
5269         * configure.ac: Use AC_SYS_LARGEFILE.
5270         * configure: Rebuild.
5271         * config.in: Rebuild.
5273 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
5275         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
5276         fold_convert.
5277         * c-typeck.c (build_function_call_vec): Likewise.
5278         * cfgexpand.c (expand_debug_expr): Likewise.
5279         * cgraphunit.c (assemble_thunk): Likewise.
5280         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
5281         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
5282         (fold_binary_loc, fold_ternary_loc): Likewise.
5283         * gimple-fold.c (get_symbol_constant_value): Likewise.
5284         * gimple-low.c (lower_builtin_setjmp): Likewise.
5285         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
5286         * gimplify.c (gimplify_init_constructor): Likewise.
5287         * lambda.h (build_linear_expr): Likewise.
5288         * omp-low.c (omp_reduction_init): Likewise.
5289         * tree-inline.c (remap_ssa_name): Likewise.
5290         * tree-object-size.c (compute_object_sizes): Likewise.
5291         * tree-sra.c (init_subtree_with_zero): Likewise.
5292         (sra_ipa_modify_assign): Likewise.
5293         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
5294         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
5295         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
5296         (undistribute_ops_list): Likewise.
5297         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
5298         * tree-vect-stmts.c (vectorizable_call): Likewise.
5299         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
5300         (build_zero_cst): Handle more cases directly.  Update comment.
5302 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5304         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
5305         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
5307         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
5308         and call ix86_split_call_vzeroupper instead of
5309         ix86_split_call_pop_vzeroupper.
5310         (*call_pop_1_vzeroupper): Likewise.
5311         (*sibcall_pop_1_vzeroupper): Likewise.
5312         (*call_value_pop_0_vzeroupper): Likewise.
5313         (*call_value_pop_1_vzeroupper): Likewise.
5314         (*sibcall_value_pop_1_vzeroupper): Likewise.
5316 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5318         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
5320 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
5322         * basic-block.h (insert_insn_end_bb_new): Delete.
5323         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
5325 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
5326             H.J. Lu  <hongjiu.lu@intel.com>
5328         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
5329         (ix86_split_call_pop_vzeroupper): Likewise.
5331         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
5332         (ix86_expand_call): Conditionally decorate calls with
5333         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
5334         (ix86_split_call_vzeroupper): New.
5335         (ix86_split_call_pop_vzeroupper): Likewise.
5337         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
5338         (*call_pop_0_vzeroupper): New insn_and_split pattern.
5339         (*call_pop_1_vzeroupper): Likewise.
5340         (*sibcall_pop_1_vzeroupper): Likewise.
5341         (*call_0_vzeroupper): Likewise.
5342         (*call_1_vzeroupper): Likewise.
5343         (*sibcall_1_vzeroupper): Likewise.
5344         (*call_1_rex64_vzeroupper): Likewise.
5345         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
5346         (*call_1_rex64_large_vzeroupper): Likewise.
5347         (*sibcall_1_rex64_vzeroupper): Likewise.
5348         (*call_value_pop_0_vzeroupper): Likewise.
5349         (*call_value_pop_1_vzeroupper): Likewise.
5350         (*sibcall_value_pop_1_vzeroupper): Likewise.
5351         (*call_value_0_vzeroupper): Likewise.
5352         (*call_value_0_rex64_vzeroupper): Likewise.
5353         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
5354         (*call_value_1_vzeroupper): Likewise.
5355         (*sibcall_value_1_vzeroupper): Likewise.
5356         (*call_value_1_rex64_vzeroupper): Likewise.
5357         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
5358         (*call_value_1_rex64_large_vzeroupper): Likewise.
5359         (*sibcall_value_1_rex64_vzeroupper): Likewise.
5361 2010-11-02  Ian Lance Taylor  <iant@google.com>
5363         PR lto/46273
5364         * config.gcc: Revert last patch: set lto_binary_reader.
5366 2010-11-02  Richard Guenther  <rguenther@suse.de>
5368         PR tree-optimization/46149
5369         * tree-ssa-structalias.c (get_constraint_fop_1): Properly handle
5370         non-indirect MEM_REF variants.
5372 2010-11-02  Richard Guenther  <rguenther@suse.de>
5374         PR tree-optimization/46216
5375         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5376         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
5378 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5380         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
5381         (*-*-osf*): Likewise.
5382         * configure: Regenerate.
5384 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5386         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
5387         for Intel Core 2 and Core i7.
5389 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
5391         Model decoder of Core 2/i7 for multipass scheduling.
5393         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
5394         New type to hold target-specific data for multipass scheduling.
5395         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
5396         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
5397         Core 2/i7.
5398         (core2i7_secondary_decoder_max_insn_size,)
5399         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
5400         New static variables.
5401         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
5402         ([_]ix86_first_cycle_multipass_data): New static variable.
5403         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
5404         Implement targetm.sched hooks.
5405         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
5406         of ...
5407         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
5408         Implement new targetm.sched hooks.
5409         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
5410         targetm.sched hook to install multipass scheduling hooks on demand.
5412         * doc/tm.texi.in: Document new targetm.sched hooks.
5413         * doc/tm.texi: Regenerate.
5415         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
5416         (first_cycle_multipass_data_t): New typedef.
5417         (struct choice_entry: target_data): New field.
5418         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
5419         to allow target model restrictions not represented in DFA.
5420         (choose_ready, schedule_block): Update.
5421         (sched_extend_ready_list, sched_finish_ready_list): Call new target
5422         hooks to initialize target-specific data for multipass scheduling.
5423         * sched-int.h (max_issue): Update declaration.
5424         * sel-sched.c (choose_best_insn): Update.
5425         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
5426         (first_cycle_multipass_{init, fini}): Define and document new
5427         targetm.sched hooks.
5429 2010-11-02  Richard Guenther  <rguenther@suse.de>
5431         PR tree-optimization/46184
5432         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
5433         input vector type from the reduction operand as well.
5435 2010-11-02  Richard Guenther  <rguenther@suse.de>
5437         PR tree-optimization/46177
5438         * tree-loop-distribution.c (prop_phis): Use
5439         mark_virtual_phi_result_for_renaming.
5441 2010-11-02  Martin Jambor  <mjambor@suse.cz>
5443         PR middle-end/46120
5444         * tree.c (get_binfo_at_offset): Bail out on artificial
5445         fields.  Identify primary bases according to their offsets.
5447 2010-11-02  Martin Jambor  <mjambor@suse.cz>
5449         PR tree-optimization/45875
5450         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
5451         (gimple_get_relevant_ref_binfo): Detect primary bases according to
5452         their field offset.
5454 2010-11-02  Ian Lance Taylor  <iant@google.com>
5456         * doc/install.texi (Configuration): Note in two places that Java
5457         is not enabled by default.
5459 2010-11-02  Ian Lance Taylor  <iant@google.com>
5461         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
5462         (Configuration): Mention --disable-lto.  Remove --with-libelf
5463         paragraph.
5465 2010-11-02  Ian Lance Taylor  <iant@google.com>
5467         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
5468         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
5469         LIBELFINC.  Remove HAVE_libelf.
5470         * config.gcc: Don't set lto_binary_reader.
5471         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
5472         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
5473         (LIBS): Remove $(LIBELFLIBS).
5474         (INCLUDES): Remove $(LIBELFINC).
5475         * configure: Rebuild.
5476         * config.in: Rebuild.
5478 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
5480         * config/microblaze/microblaze-protos.h (function_arg): Delete.
5481         (function_arg_advance): Delete.
5482         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
5483         (FUNCTION_ARG): Delete.
5484         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
5485         (microblaze_function_arg_advance): ...this.  Make static.  Take a
5486         const_tree and a bool.
5487         (function-arg): Rename to...
5488         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
5489         and a bool.
5490         (microblaze_expand_prologue): Call targetm.calls.function_arg and
5491         targetm.calls.function_arg_advance.
5492         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5494 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
5496         Merge from FSF "apple/trunk" branch.
5498         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
5499         * config/darwin.opt: .. to here.
5500         (matt-stubs): New option.
5501         * config/i386/darwin.opt: Delete.
5502         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
5503         (MACHO_DYNAMIC_NO_PIC_P): New.
5504         (MACHOPIC_INDIRECT): New.
5505         (MACHOPIC_PURE): New.
5506         * config/i386/darwin.h (DARWIN_X86) Define to 1.
5507         (MACHOPIC_ATT_STUB): New.
5508         (CC1_SPEC): Do not remove mdynamic-no-pic.
5509         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
5510         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
5511         (FUNCTION_PROFILER): Correct over-length line.
5512         (SUBTARGET_OVERRIDE_OPTIONS): New.
5513         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
5514         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
5515         (legitimate_constant_p): Handle mdynamic-no-pic.
5516         (ix86_legitimate_address_p): Likewise.
5517         (ix86_legitimize_address): Likewise.
5518         (ix86_expand_move): Likewise.
5519         (machopic_output_stub): Update for ATT-style stubs and
5520         mdynamic-no-pic.
5521         * config/darwin-protos.h (machopic_symbol_defined_p): New.
5522         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
5523         TARGET_DYNAMIC_NO_PIC: Remove.
5524         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
5525         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
5526         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
5527         Remove handling of mdynamic-no-pic.
5528         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
5529         Define if required.
5530         (machopic_symbol_defined_p): Do not try to use current_function_decl
5531         when generating _get_pc thunks within stubs.
5532         (machopic_indirect_data_reference): Rework for direct conditionals
5533         rather than #ifdefs, add x86 mdynamic-no-pic
5534         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
5535         defined value.
5536         (darwin_override_options): Handle mdynamic-no-pic here.
5537         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
5538         (machopic_lazy_symbol_ptr3_section): New.
5539         (machopic_picsymbol_stub2_section): New.
5540         (machopic_picsymbol_stub3_section): New.
5541         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
5542         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
5543         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
5544         Moved common definition from x86 and rs6000.
5545         (MACHO_DYNAMIC_NO_PIC_P): Override value.
5546         (MACHOPIC_INDIRECT): Likewise.
5547         (MACHOPIC_PURE): Likewise.
5548         * config.gcc (x86-darwin-*): Remove darwin.opt.
5550 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
5552         PR debug/46255
5553         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
5554         instead of gsi_last_bb.
5556 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
5557             Maxim Kuvyrkov  <maxim@codesourcery.com>
5559         * config/i386/i386.c (cpu_names): Add "corei7".
5560         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
5562 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
5563             Maxim Kuvyrkov  <maxim@codesourcery.com>
5565         Tune alignment for Intel Core i7
5567         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
5568         (enum processor_type): Update comment.  Add entries for Core i7.
5569         * config/i386-c.c (ix86_target_macros_internal): Update.
5570         * config/i386.c (m_COREI7{_32,_64}): New macros.
5571         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
5572         (processor_target_table): Tune alignment for Core i7.
5573         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
5575         * doc/invoke.texi: Document "corei7" option value.
5577 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
5578             Maxim Kuvyrkov  <maxim@codesourcery.com>
5579             H.J. Lu  <hjl.tools@gmail.com>
5581         Basic support for Intel Core i7
5583         * i386.c (ix86_option_override_internal): Add entry for corei7, use
5584         generic tuning.  Use generic32 when compiling for 32-bit ABI.
5586 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
5588         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
5589         sections and call darwin_asm_dwarf_section() to handle them.
5590         (darwin_asm_dwarf_section): New.
5591         (darwin_file_start): Remove code emitting dwarf section symbols.
5593 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
5595         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
5596         explicitly disable stack protection when building libgcc.
5597         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
5599 2010-11-01  Jason Merrill  <jason@redhat.com>
5601         * fold-const.c (fold_indirect_ref_1): Handle folding
5602         POINTER_PLUS_EXPR to ARRAY_REF.
5604 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
5606         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
5607         (sh_delegitimize_address): New function.
5609 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
5611         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
5612         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
5613         (CC1_SPEC): Don't handle -target.
5614         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
5615         options.
5616         * config/darwin.opt (Zallowable_client, Zbundle_loader,
5617         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
5618         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
5619         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
5620         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
5621         Zweak_reference_mismatches, client_name, compatibility_version,
5622         current_version, dylinker_install_name, pagezero_size,
5623         read_only_relocs, seg1addr, segs_read_only_addr,
5624         segs_read_write_addr, sub_library, sub_umbrella): New.
5625         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
5626         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
5627         * config/freebsd.opt: New.
5628         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
5629         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
5630         * config/rpath.opt: New.
5631         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
5632         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
5633         Use rpath.opt.
5635 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
5637         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
5638         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
5639         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
5640         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
5641         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
5642         Document that options in .opt files do not need to be included.
5643         * doc/tm.texi: Regenerate.
5644         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
5645         * opts-common.c: Update comment on tm.h include.
5646         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
5647         * system.h (SWITCH_TAKES_ARG): Poison.
5648         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
5649         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
5650         in darwin.opt.
5651         (LINK_COMMAND_SPEC_A): Don't include %{x}.
5652         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5653         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
5654         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
5655         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5656         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
5657         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
5658         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
5659         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
5660         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5661         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
5662         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
5663         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
5664         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
5665         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
5666         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
5667         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
5668         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
5669         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
5670         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
5671         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
5672         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
5673         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
5674         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5676 2010-11-01  Paul Koning  <ni1d@arrl.net>
5678         * config/pdp11/pdp11.md: Use iterators.
5679         (addqi3, subqi3, iorsi3, xorsi3): Delete.
5681 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
5683         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
5684         GCC_INSN_FLAGS_H.
5685         * libgcov.c (__gcov_indirect_call_profiler): Set
5686         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
5687         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
5689 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
5691         PR tree-optimization/46259
5693         Revert:
5694         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5695         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
5696         build_vector_from_val.
5698 2010-11-01  DJ Delorie  <dj@redhat.com>
5700         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
5701         as well as an assertion.
5703 2010-11-01  Paul Koning  <ni1d@arrl.net>
5705         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
5706         complex modes in memory.
5708 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
5710         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
5712 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
5714         PR target/45250
5715         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
5716         (cfa_base_offset): New variable.
5717         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
5718         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
5719         is NULL.
5720         (vt_init_cfa_base): Initialize cfa_base_offset.
5722 2010-11-01  Alan Modra  <amodra@gmail.com>
5724         PR target/46030
5725         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
5726         and savres_strategy.
5727         (stack_info): New file scope var.
5728         (rs6000_init_machine_status): Init stack_info.
5729         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
5730         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
5731         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
5732         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
5733         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
5734         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
5735         (rs6000_savres_strategy): Rewrite.
5736         (rs6000_stack_info): Use "stack_info" in place of local "info".
5737         Return cached stack info when reload_completed unless ENABLE_CHECKING
5738         in which case confirm newly calculated stack info matches old info.
5739         Delay calculation of lr_save_p, set it for out of line gp save/restore
5740         as well as fp.  Call rs6000_savres_strategy from here..
5741         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
5742         (rs6000_output_function_prologue): Use info->savres_strategy to
5743         determine whether fp save/restore externs need to be emitted.
5745 2010-10-31  Jason Merrill  <jason@redhat.com>
5747         * tree.h (EXPR_LOC_OR_HERE): New macro.
5748         * builtins.c (c_strlen): Use it.
5749         * c-decl.c (build_enumerator): Likewise.
5750         * gimplify.c (internal_get_tmp_var): Likewise.
5751         (shortcut_cond_expr): Likewise.
5752         (gimplify_one_sizepos): Likewise.
5754 2010-10-31  Richard Henderson  <rth@redhat.com>
5756         * config/i386/cygming.h (TARGET_SEH): New.
5757         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
5758         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
5759         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
5760         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
5761         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
5762         (ASM_DECLARE_FUNCTION_SIZE): New.
5763         * config/i386/i386-protos.h: Update.
5764         * config/i386/i386.c (ix86_option_override_internal): Enable
5765         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
5766         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
5767         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
5768         (ix86_compute_frame_layout): For SEH, disable
5769         use_fast_prologue_epilogue, move frame pointer to the end of
5770         the frame.  Initialize hfp_save_offset.
5771         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
5772         at end of prologue for SEH.
5773         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
5774         emit blockage at beginning of epilogue.
5775         (ix86_expand_binary_operator): After reload, emit LEA if needed.
5776         (ix86_output_call_insn): New.
5777         * config/i386/i386.h (TARGET_SEH): New.
5778         (struct machine_function): Add member seh.
5779         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
5780         * config/i386/winnt.c (struct seh_frame_state): New.
5781         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
5782         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
5783         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
5784         i386_pe_start_function, i386_pe_end_function): New.
5786         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
5787         as CFA_STORE in rules 12 and 13.
5789 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
5791         PR tree-optimization/46142
5792         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
5793         accommodate third function argument.
5795 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5797         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
5799 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5801         * fold-const.c (build_zero_vector): Use build_vector_from_val.
5802         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
5803         (get_initial_def_for_reduction): Likewise.
5804         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5805         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
5806         * tree.c (build_one_cst): Likewise.
5807         (build_vector_from_val): Use types_compatible_p for assert.
5809 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5811         * emit-rtl.c (mark_used_flags): New function.
5812         (set_used_flags, reset_used_flags): Call it.
5814 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
5816         PR middle-end/44569
5817         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
5818         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
5820 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5822         PR target/46195
5823         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
5824         (ix86_compat_aligned_value_p): This.
5825         (ix86_old_function_arg_boundary): Renamed to ...
5826         (ix86_compat_function_arg_boundary): This.  Updated.
5827         (ix86_contains_aligned_value_p): New.
5828         (ix86_function_arg_boundary): Align long double parameters on
5829         stack to 4byte in 32bit.
5831 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
5833         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5834         * c-parser.c (c_parser_objc_at_property_declaration): Removed
5835         parsing of RID_COPIES and RID_IVAR.  Updated call to
5836         objc_add_property_declaration.
5837         * c-typecheck.c (build_component_ref): Call
5838         objc_maybe_build_component_ref instead of objc_build_setter_call.
5839         Use objc_is_property_ref to improve Objective-C checks.
5840         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
5841         of objc_build_getter_call.
5843 2010-10-29  Paul Koning  <ni1d@arrl.net>
5845         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
5846         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
5847         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
5848         (REG_OK_STRICT): Move description.
5850 2010-10-29  Paul Koning  <ni1d@arrl.net>
5852         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
5854 2010-10-29  Paul Koning  <ni1d@arrl.net>
5856         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
5858 2010-10-29  Paul Koning  <ni1d@arrl.net>
5860         PR/41822
5861         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
5863 2010-10-29  Richard Henderson  <rth@redhat.com>
5865         PR rtl-opt/46226
5866         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
5867         for asm goto.
5869 2010-10-29  Paul Koning  <ni1d@arrl.net>
5871         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
5872         register to register move.
5874 2010-10-29  Paul Koning  <ni1d@arrl.net>
5876         * config/pdp11/pdp11.c (print_operand_address): Correct handling
5877         of integer constant addresses, delete vax-only logic.
5879 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
5881         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
5882         a conditional expression.
5884 2010-10-29  Paul Koning  <ni1d@arrl.net>
5886         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
5887         instruction encoding.
5889 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
5890             Andrew Pinski  <pinskia@gmail.com>
5892         * tree.h (build_vector_from_val): Declare.
5893         * tree.c (build_vector_from_val): New function.
5894         * c-typeck.c (build_binary_op): Handle vector shifting.
5895         * doc/extend.texi: Description of the vector shifting operation.
5897 2010-10-29  Paul Koning  <pkoning@equallogic.com>
5899         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
5900         pdp11_secondary_memory_needed): Declare.
5901         * config/pdp11/predicates.md (float_operand): New predicate.
5902         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
5903         (cbranchdf4, movdf): Change predicate.
5904         (movsf): Handle FPU register case.
5905         (truncdfsf2, extendsfdf2): Add FPU register case.
5906         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
5907         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
5908         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5909         (pdp11_register_move_cost): Update cost matrix.
5910         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
5911         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
5912         pdp11_secondary_memory_needed): New function.
5913         (pdp11_return_in_memory): Add other float types.
5914         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
5915         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
5916         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
5917         REGISTER_MOVE_COST): Delete.
5918         (BASE_RETURN_VALUE_REG): Add other float types.
5920 2010-10-29  Nick Clifton  <nickc@redhat.com>
5922         * doc/invoke.texi: Document -mam34 and -mtune options.
5923         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
5924         (mn10300_tune_cpu): New variable.
5925         (mn10300_handle_option): Handle -mam34 and -mtune options.
5926         (mn10300_option_override): Convert tune string into tune cpu variable.
5927         (mn10300_legitimate_constant_p): Delete unused local variable.
5928         (is_load_insn): New function.
5929         (is_store_insn): New function.
5930         (mn10300_adjust_schedule_cost): New function.
5931         (TARGET_SCHED_ADJUST_COST): Define.
5932         * config/mn10300/mn10300.opt (mam34): New option.
5933         (mtune): New option.
5934         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
5935         (enum processor_type): Add AM34.
5936         (TARGET_AM34): Define.
5937         * config/mn10300/mn10300.md (attr cpu): Add am34.
5938         Add pipeline description.
5939         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
5940         Remove unneeded alternatives.  Add timing attribute.
5941         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
5942         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
5943         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
5944         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
5945         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
5946         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
5947         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
5948         float_conditional_branch, jump, indirect_jump, tablejump,
5949         call_internal, call_value_internal, zero_extendqisi2_am33,
5950         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
5951         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
5952         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
5953         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
5954         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
5955         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
5956         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
5957         return_internal_regs, store_movm, return, call_next_insn):
5958         Add timing attribute.
5959         (am33_subsi3): Add missing clobber of CC_REG.
5960         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
5961         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
5962         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
5963         extendqisi2): Fix predicates.
5964         (call_internal, call_internal_value): Separate alternatives.
5965         * config/mn10300/t-mn10300: Add AM34 multilib.
5967 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
5969         * config/sh/sh.c (sh_promote_function_mode): Use
5970         default_promote_function_mode if !sh_promote_prototypes.
5972 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
5974         * recog.c (split_all_insns): Remove dead code.
5976 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5978         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5980 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5982         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
5983         (FUNCTION_ARG_ADVANCE): Delete.
5984         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
5985         functions.
5986         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
5987         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5988         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5990 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5992         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
5993         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5994         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
5995         Take a const_tree and a bool.
5996         (mcore_function_arg_advance): New function.
5997         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5999 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6001         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
6002         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6003         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
6004         Take a const_tree and a bool.
6005         (mcore_function_arg_advance): New function.
6006         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6008 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6010         * config/h8300/h8300-protos.h (function_arg): Delete.
6011         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6012         * config/h8300/h8300.c (function_arg): Rename to...
6013         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
6014         a bool.
6015         (h8300_function_arg_advance): New function.
6016         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6018 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6020         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
6021         to...
6022         * config/arc/arc.c (arc_function_arg): ...here and...
6023         (arc_function_arg_advance): ...here.  New functions.
6024         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6026 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6028         * config/crx/crx-protos.h (crx_function_arg): Delete.
6029         (crx_function_arg_advance): Delete.
6030         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6031         * config/crx/crx.c (crx_function_arg): Make static.  Take a
6032         const_tree and a bool.
6033         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
6034         (enough_regs_for_param): Take a const_tree.
6035         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6037 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6039         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
6040         (m68hc11_function_arg_advance): Delete.
6041         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
6042         (FUNCTION_ARG_ADVANCE): Delete.
6043         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
6044         Take a const_tree and a bool.
6045         (m68hc11_function_arg_advance): Likewise.
6046         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6048 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6050         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
6051         (xstormy16_function_arg_advance): Delete.
6052         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
6053         (FUNCTION_ARG_ADVANCE): Delete.
6054         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
6055         Take a const_tree and a bool.
6056         (xstormy16_function_arg_advance): Likewise.  Return void, updating
6057         the CUM parameter instead.
6058         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6060 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6062         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
6063         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6064         (MOXIE_FUNCTION_ARG_SIZE): Move to...
6065         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
6066         (moxie_function_arg): Make static.  Take a const_tree and a bool.
6067         (moxie_function_arg_advance): New function.
6068         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6070 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6072         * config/mn10300/mn10300-protos.h (function_arg): Delete.
6073         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
6074         (FUNCTION_ARG_ADVANCE): Delete.
6075         * config/mn10300/mn10300.c (function_arg): Rename to...
6076         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
6077         and a bool.
6078         (mn10300_function_arg_advance): New function.
6079         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6081 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6083         * config/iq2000/iq2000-protos.h (function_arg): Delete.
6084         (function_arg_advance): Delete.
6085         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6086         * config/iq2000/iq2000.c (function_arg): Rename to...
6087         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
6088         a bool.
6089         (function_arg_advance): Rename to...
6090         (iq2000_function_arg_advance): ...this.  Make static.  Take a
6091         const_tree and a bool.
6092         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
6093         iq2000_function_arg.
6094         (iq2000_pass_by_reference): Call iq2000_function_arg).
6095         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6097 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6099         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
6100         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6101         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
6102         const_tree.
6103         (fr30_function_arg): New function.
6104         (fr30_function_arg_advance): New function.
6105         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
6107 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
6109         * config/frv/frv-protos.h (frv_function_arg): Delete.
6110         (frv_function_arg_advance): Delete.
6111         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
6112         * config/frv/frv.c (frv_function_arg): Rename to...
6113         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
6114         (frv_function_arg, frv_function_incoming_arg): New functions.
6115         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
6116         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6117         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6119 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
6121         PR target/46153
6122         * config/i386/sse.md (sse_movhlps_exp): Use destination
6123         returned from ix86_fixup_binary_operands to expand insn.
6124         (sse_movlhps_exp): Ditto.
6125         (sse_loadhps_exp): Ditto.
6126         (sse_loadlps_exp): Ditto.
6127         (sse2_loadhpd_exp): Ditto.
6128         (sse2_loadlpd_exp): Ditto.
6130 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
6132         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
6133         constants in thumb2.
6135 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
6137         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
6138         arithmetics in masking operations.
6139         (contains_muldiv): Likewise.
6140         (try_combine): Likewise.
6141         (find_split_point): Likewise.
6142         (combine_simplify_rtx): Likewise.
6143         (simplify_if_then_else): Likewise.
6144         (simplify_set): Likewise.
6145         (expand_compound_operation): Likewise.
6146         (expand_field_assignment): Likewise.
6147         (make_extraction): Likewise.
6148         (extract_left_shift): Likewise.
6149         (make_compound_operation): Likewise.
6150         (force_to_mode): Likewise.
6151         (make_field_assignment): Likewise.
6152         (reg_nonzero_bits_for_combine): Likewise.
6153         (simplify_shift_const_1): Likewise.
6154         (simplify_comparison): Likewise.
6156 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
6158         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
6159         (ia64_function_arg_advance): Delete.
6160         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
6161         (FUNCTION_ARG_ADVANCE): Delete.
6162         * config/ia64/ia64.c (ia64_function_arg): Rename to...
6163         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
6164         bool arguments.
6165         (ia64_function_arg, ia64_function_incoming_arg): New functions.
6166         (ia64_function_arg_advance): Make static.  Take a const_tree and
6167         a bool.
6168         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
6169         (TARGET_FUNCTION_ARG_ADVANCE): Define.
6171 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
6173         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
6174         (TARGET_GET_RAW_ARG_MODE): New.
6175         * doc/tm.texi: Regenerate.
6176         * target.def (get_raw_result_mode): New.
6177         (get_raw_arg_mode): New.
6178         * targhooks.c (default_get_reg_raw_mode): New.
6179         * targhooks.h (default_get_reg_raw_mode): New.
6180         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
6181         (apply_result_size): Ditto.
6182         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
6183         (TARGET_GET_RAW_RESULT_MODE): Define.
6184         (TARGET_GET_RAW_ARG_MODE): Ditto.
6186 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6188         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
6189         for newer Solaris 10 release.
6190         (sparc_fallback_frame_state): Likewise.
6192 2010-10-27  Jason Merrill  <jason@redhat.com>
6194         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
6195         variables sooner.
6197 2010-10-27  Jie Zhang  <jie@codesourcery.com>
6198             Maxim Kuvyrkov  <maxim@codesourcery.com>
6200         * haifa-sched.c (ISSUE_POINTS): Remove.
6201         (max_issue): Don't issue more than issue_rate instructions.
6203 2010-10-27  Ian Lance Taylor  <iant@google.com>
6205         PR target/46197
6206         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
6207         (split_stack_return): Replace UNSPEC_STACK_CHECK with
6208         UNSPECV_SPLIT_STACK_RETURN.
6210 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
6212         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
6214         * config/i386/i386.c (block_info): New.
6215         (BLOCK_INFO): Likewise.
6216         (call_avx256_state): Likewise.
6217         (check_avx256_stores): Likewise.
6218         (move_or_delete_vzeroupper_2): Likewise.
6219         (move_or_delete_vzeroupper_1): Likewise.
6220         (move_or_delete_vzeroupper): Likewise.
6221         (use_avx256_p): Likewise.
6222         (function_pass_avx256_p): Likewise.
6223         (flag_opts): Add -mvzeroupper.
6224         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
6225         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
6226         is disabled.
6227         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
6228         generate vzeroupper.
6229         (init_cumulative_args): Add an int to indicate caller.  Set
6230         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
6231         based on return type.
6232         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
6233         caller_pass_avx256_p based on argument type.
6234         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
6235         is used, but not returned by caller.
6236         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
6237         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
6238         is used.
6239         (ix86_minimum_alignment): Likewise.
6240         (ix86_expand_special_args_builtin): Set target to
6241         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
6242         (ix86_reorg): Run the vzeroupper optimization if needed.
6244         * config/i386/i386.h (ix86_args): Add caller.
6245         (INIT_CUMULATIVE_ARGS): Updated.
6246         (machine_function): Add use_vzeroupper_p, use_avx256_p,
6247         caller_pass_avx256_p, caller_return_avx256_p,
6248         callee_pass_avx256_p and callee_return_avx256_p.
6250         * config/i386/i386.opt (-mvzeroupper): New.
6252         * config/i386/predicates.md (vzeroupper_operation): Removed.
6254         * config/i386/sse.md (avx_vzeroupper): Removed.
6255         (*avx_vzeroupper): Removed.
6256         (avx_vzeroupper): New.
6258         * doc/invoke.texi: Document -mvzeroupper.
6260 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6262         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
6263         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
6264         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
6266 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
6267             Olivier Hainque  <hainque@adacore.com>
6269         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
6270         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
6271         fs->signal_frame instead.
6273 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6275         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
6276         parsing of RID_COPIES and RID_IVAR.
6278 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6280         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
6281         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
6282         Do not use objc_set_property_attr, but use local variables
6283         instead.  Detect repeated usage of setter, getter and ivar
6284         attributes.  Improved error processing when a setter name does not
6285         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
6286         that the token is a keyword.  Updated call to
6287         objc_add_property_declaration.
6289 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6291         * c-parser.c (c_parser_objc_at_property): Renamed to
6292         c_parser_objc_at_property_declaration.  Updated calls to
6293         objc_add_property_variable, now objc_add_property_declaration.
6294         Code rewritten to be much more robust in recovering from syntax
6295         errors.  Added comments.
6296         (c_parser_objc_property_attrlist): Removed.
6297         (c_parser_external_declaration): Updated calls to
6298         c_parser_objc_at_property, now
6299         c_parser_objc_at_property_declaration.
6300         (c_parser_objc_methodprotolist): Same change.
6302 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6304         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
6306 2010-10-26  Jan Hubicka  <jh@suse.cz>
6308         * ipa.c (process_references): Enqueue all referenced nodes;
6309         mark as reachable only non-external nodes.
6310         (cgraph_remove_unreachable_nodes): All referenced nodes should
6311         be enqueued; remove bogues node->needed check.
6313 2010-10-26  Jan Hubicka  <jh@suse.cz>
6315         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
6316         to represent OMP.
6318 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6320         * config/i386/i386.md (split_stack_return): Replace
6321         unspec_volatile with unspec.
6323 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
6325         * doc/install.texi: Fix typo in --with-sysroot description.
6327 2010-10-26  Jan Hubicka  <jh@suse.cz>
6329         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6330         Use info provided by linker plugin.
6332 2010-10-26  Jason Merrill  <jason@redhat.com>
6334         * varasm.c (constructor_static_from_elts_p): Don't require a
6335         CONSTRUCTOR to have elements to be suitable for static
6336         initialization.  Allow ARRAY_TYPE as well.
6338 2010-10-26  Jan Hubicka  <jh@suse.cz>
6340         PR middle-end/45736
6341         * cgraph.c (cgraph_set_readonly_flag): Rename to...
6342         (cgraph_set_const_flags) ... this one; get also looping argument;
6343         clear constructor/destructor flags.
6344         (cgraph_set_pure_flag): Likewise.
6345         (cgraph_set_looping_const_or_pure_flag): Remove.
6346         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
6347         to optimize away static ctors/dtors; it does not work on inline clones;
6348         external functions can always be rmeoved.
6349         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
6350         inline clones; in LTO external functions always can go.
6351         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
6352         (cgraph_mark_address_taken_node): Assert that we are not taking
6353         address of inline clone.
6354         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
6355         external functions.
6356         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
6357         address taken.
6358         (ipcp_initialize_node_lattices): Only local functions can be
6359         handled without cloning.
6360         * cgraph.h (cgraph_set_readonly_flag,
6361         cgraph_set_looping_const_or_pure_flag): Remove.
6362         (cgraph_set_const_flag): Declare.
6363         (cgraph_set_pure_flag): Update.
6364         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
6365         flags setting code.
6366         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
6367         look at inline clones; fix handling of external definitions.
6368         (cgraph_postorder): Do not look at inline clones in the first pass.
6369         (function_and_variable_visibility): Drop constructors/destructor
6370         flags at pure and const functions.
6371         * tree-profile.c (tree_profiling): Update.
6372         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
6373         address taken; external functions do not account to whole program size.
6374         (cgraph_decide_inlining): Likewise; do not try to inline
6375         functions already inlined.
6377 2010-10-26  Jie Zhang  <jie@codesourcery.com>
6379         * doc/invoke.texi: Improve documentation of
6380         -fstrict-volatile-bitfields.
6382 2010-10-26  Ira Rosen  <irar@il.ibm.com>
6384         PR tree-optimization/46167
6385         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
6386         is basic block for the statement.
6388 2010-10-26  Paul Koning  <ni1d@arrl.net>
6390         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
6391         current definition of struct_real_format.
6393 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6395         PR target/44948
6396         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
6397         (ix86_function_arg_boundary): Always align parameters on stack
6398         in 64bit and align parameters with alignment >= 16byte on stack
6399         in 32bit.  Warn alignment change.
6401 2010-10-26  Ian Lance Taylor  <iant@google.com>
6403         PR middle-end/45687
6404         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
6405         offset.
6407 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
6409         Implement opaque-enum-specifiesr for C++0x
6410         * tree.h (ENUM_IS_OPAQUE): New.
6411         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
6413 2010-10-26  Jie Zhang  <jie@codesourcery.com>
6415         * stor-layout.c (layout_decl): Use the field's type to
6416         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
6417         * config/arm/arm.c (arm_override_options): Default to
6418         -fstrict-volatile-bitfields.
6420 2010-10-25  Paul Koning  <ni1d@arrl.net>
6422         * config/pdp11/pdp11.md: Add define_constants for register
6423         numbers, branch offset limits.
6424         * config/pdp11/pdp11.c: Use named constants instead of numbers.
6425         * config/pdp11.pdp11.h: Ditto.
6427 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
6429         * configure.ac: Use $cpu_type instead of $target to define the nop.
6430         * configure: Regenerate.
6432 2010-10-25  Jie Zhang  <jie@codesourcery.com>
6434         * combine.c (try_combine): If insns need to be kept around, check that
6435         they can be copied in the merged instruction.
6437 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
6439         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
6440         has been modified.
6441         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
6442         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
6443         it has been modified.
6445 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
6447         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
6449 2010-10-24  Paul Koning  <ni1d@arrl.net>
6451         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
6452         * config/pdp11/pdp11.c (output_jump): Ditto.
6454 2010-10-24  Ian Lance Taylor  <iant@google.com>
6456         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
6458 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
6460         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
6461         least one insn with a locus corresponding to an edge's goto_locus,
6462         disregard non-fallthru edges to the exit block and merge the blocks
6463         created for the same goto_locus.
6465 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
6467         * gcc.c (n_switches_alloc_debug_check): New.
6468         (set_option_handlers): New.
6469         (process_command): Use set_option_handlers.
6470         (do_self_spec): Pass spec-generated options through option handlers.
6471         (main): Also save and restore n_switches_alloc when swapping
6472         switch arrays.
6474 2010-10-23  Richard Henderson  <rth@redhat.com>
6476         PR target/46144
6477         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
6478         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
6479         Honor matching operands when splitting to XOR.
6481 2010-10-23  Ian Lance Taylor  <iant@google.com>
6483         * tree-vrp.c (extract_range_from_binary_expr): If
6484         flag_non_call_exceptions don't eliminate division by zero.
6485         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6487 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
6489         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
6490         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
6491         __ORDER_PDP_ENDIAN__.
6492         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6493         (struct DWstruct): Define based on __BYTE_ORDER__.
6494         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6495         (struct INTstruct): Define based on __BYTE_ORDER__.
6496         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6497         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
6498         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
6499         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6500         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6501         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6502         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6503         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6504         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6505         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6506         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6507         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6508         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6509         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6510         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6511         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6512         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6513         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6514         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
6515         * doc/tm.texi: Regenerate.
6516         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
6517         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
6519 2010-10-23  Jie Zhang  <jie@codesourcery.com>
6521         PR rtl-optimization/37360
6522         * config/mips/mips.c (cached_can_issue_more): New local variable.
6523         (mips_sched_reorder_1): New.
6524         (mips_sched_reorder): Use mips_sched_reorder_1.
6525         (mips_sched_reorder2): New.
6526         (mips_variable_issue): Set cached_can_issue_more.
6527         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
6528         instead of mips_sched_reorder.
6530         Revert:
6531         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
6532         PR rtl-optimization/37360
6533         * haifa-sched.c (max_issue): Do not assert that we never issue more
6534         insns than issue_rate.  Add comment.
6536 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
6538         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
6539         location info of the expression.
6541 2010-10-22  DJ Delorie  <dj@redhat.com>
6543         * doc/extend.texi (Named Address Spaces): Document the M32C named
6544         address space.
6546         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
6547         __far address space.
6548         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
6549         "__far" address space for R8C and M16C processor variants.
6550         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
6551         (far_addr_space_p): New.
6552         (encode_pattern_1): Add sign and zero extend support.
6553         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
6554         (m32c_extra_constraint_p2): Add SF constraint.
6555         (m32c_legitimate_address_p): Support __far addresses.
6556         (m32c_addr_space_pointer_mode): New.
6557         (m32c_addr_space_address_mode): New.
6558         (m32c_addr_space_legitimate_address_p): New.
6559         (m32c_addr_space_legitimize_address): New.
6560         (m32c_addr_space_subset_p): New.
6561         (m32c_addr_space_convert): New.
6562         (conversions): Add __far operand patterns.
6563         (m32c_prepare_move): Force constants into registers for __far moves.
6564         (m32c_split_move): __far moves are always split.
6565         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
6566         * config/m32c/mov.md (mov<mode>_far_op1): New.
6567         (mov<mode>_far_op2): New.
6568         (movqi_op): Add __far (SF) support.
6569         (movhi_op): Likewise.
6570         (movsi_splittable): Split A1A0 also.
6572 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
6573             Andrew Pinski  <pinskia@gmail.com>
6575         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
6576         * doc/extend.texi: New paragraph
6578 2010-10-22  Paul Koning  <ni1d@arrl.net>
6580         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
6582 2010-10-22  DJ Delorie  <dj@redhat.com>
6584         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
6586 2010-10-22  Paul Koning  <ni1d@arrl.net>
6588         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
6590 2010-10-22  Richard Henderson  <rth@redhat.com>
6592         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
6593         cases for __builtin_fma and __builtin_fmaf.
6595 2010-10-22  Richard Henderson  <rth@redhat.com>
6597         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
6598         NEG+USE for vectors as well.
6599         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
6600         and splitter.
6602 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
6604         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
6605         SWITCH_CURTAILS_COMPILATION): Remove.
6606         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
6607         * doc/tm.texi: Regenerate.
6608         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
6610 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
6612         * config/i386/bdver1.md: New file.
6613         * config/i386/i386.md (include "bdver1.md"): Invoke the
6614         pipeline description for bdver1.
6615         (x86_sahf_1): Add "bdver1_decode" attribute.
6616         (*cmpfp_i_mixed): Likewise.
6617         (*cmpfp_i_sse): Likewise.
6618         (*cmpfp_i_i387): Likewise.
6619         (*cmpfp_iu_mixed): Likewise.
6620         (*cmpfp_iu_sse): Likewise.
6621         (*cmpfp_iu_387): Likewise.
6622         (*swap<mode>,*swap<mode>_1): Likewise.
6623         (fixuns_trunc<mode>hi2): Likewise.
6624         (fix_trunc<mode>si_sse): Likewise.
6625         (x86_fnstcw_1): Likewise.
6626         (x86_fldcw_1): Likewise.
6627         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
6628         (*floatsi<mode>2_vector_mixed): Likewise.
6629         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
6630         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
6631         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
6632         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
6633         (*floatsi<mode>2_vector_sse): Likewise.
6634         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
6635         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
6636         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
6637         (*mul<mode>3_1): Likewise.
6638         (*mulsi3_1_zext): Likewise.
6639         (*mulhi3_1): Likewise.
6640         (*mulqi3_1): Likewise.
6641         (*<u>mul<mode><dwi>3_1): Likewise.
6642         (*<u>mulqihi3_1): Likewise.
6643         (*<s>muldi3_highpart_1): Likewise.
6644         (*<s>mulsi3_highpart_1): Likewise.
6645         (*<s>mulsi3_highpart_zext): Likewise.
6646         (x86_64_shld): Likewise.
6647         (x86_shld): Likewise.
6648         (x86_64_shrd): Likewise.
6649         (x86_shrd): Likewise.
6650         (sqrtxf2): Likewise.
6651         (sqrt_extend<mode>xf2_i387): Likewise.
6652         (*sqrt<mode>2_sse): Likewise.
6653         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
6654         (sse_cvtsi2ssq): Likewise.
6655         (sse_cvtss2si): Likewise.
6656         (sse_cvtss2si_2): Likewise.
6657         (sse_cvtss2siq): Likewise.
6658         (sse_cvtss2siq_2): Likewise.
6659         (sse_cvttss2si): Likewise.
6660         (sse_cvttss2siq): Likewise.
6661         (sse2_cvtpi2pd): Likewise.
6662         (sse2_cvttpd2pi): Likewise.
6663         (sse2_cvtsi2sd): Likewise.
6664         (sse2_cvtsi2sdq): Likewise.
6665         (sse2_cvtsd2si): Likewise.
6666         (sse2_cvtsd2si_2): Likewise.
6667         (sse2_cvtsd2siq): Likewise.
6668         (sse2_cvtsd2siq_2): Likewise.
6669         (sse2_cvttsd2si): Likewise.
6670         (sse2_cvttsd2siq): Likewise.
6671         (*sse2_cvtpd2dq): Likewise.
6672         (*sse2_cvttpd2dq): Likewise.
6673         (sse2_cvtsd2ss): Likewise.
6674         (sse2_cvtss2sd): Likewise.
6675         (*sse2_cvtpd2ps): Likewise.
6676         (sse2_cvtps2pd): Likewise.
6678 2010-10-22  Richard Guenther  <rguenther@suse.de>
6680         PR middle-end/46137
6681         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
6682         remove the virtual operands if they are not needed.
6684 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
6686         * config/i386/i386.c (processor_costs bdver1_cost): Update
6687         insn costs and architectural parameters for bdver1.
6689 2010-10-22  Richard Guenther  <rguenther@suse.de>
6691         * gimple.h (gimple_register_canonical_type): Declare.
6692         * gimple.c (gimple_canonical_types): New global hashtable.
6693         (struct gimple_type_leader_entry_s): New type.
6694         (gimple_type_leader): New global cache.
6695         (gimple_lookup_type_leader): New function.
6696         (gtc_visit): Query the proper cache.
6697         (gimple_types_compatible_p): Likewise.
6698         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
6699         (gimple_canonical_type_eq): New function.
6700         (gimple_register_canonical_type): Likewise.
6701         (print_gimple_types_stats): Adjust for gimple_canonical_types.
6702         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
6703         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
6704         gimple_types_compatible_p for LTO.
6706 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
6708         PR target/46098
6709         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
6710         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
6711         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
6712         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
6713         (<sse>_movu<ssemodesuffix>): New expander.
6714         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
6715         (avx_movdqu<avxmodesuffix>): New expander.
6716         (*sse2_movdqu): Rename from sse2_movdqu.
6717         (sse2_movdqu): New expander.
6719 2010-10-22  Richard Guenther  <rguenther@suse.de>
6721         PR tree-optimization/45720
6722         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
6723         Handle negative step.
6724         (vect_enhance_data_refs_alignment): Likewise.
6725         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
6726         (vect_create_cond_for_align_checks): Likewise.
6727         (vect_create_cond_for_alias_checks): Likewise.
6729 2010-10-22  Ira Rosen  <irar@il.ibm.com>
6731         PR tree-optimization/46126
6732         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
6733         vectorizable_shift in case of basic block vectorization.
6735 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
6737         * target.h (enum opt_levels, struct default_options): New.
6738         * target.def (handle_ofast): Remove hook.
6739         (target_option.optimization): Change to
6740         target_option.optimization_table.
6741         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
6742         TARGET_OPTION_OPTIMIZATION_TABLE.
6743         (CAN_DEBUG_WITHOUT_FP): Remove.
6744         * doc/tm.texi: Regenerate.
6745         * opts.c (maybe_default_option, maybe_default_options,
6746         default_options_table): New.
6747         (default_options_optimization): Take extra parameters.  Don't
6748         assert that global_options and global_options_set are in use.  Use
6749         maybe_default_options.
6750         (decode_options): Pass extra parameters to
6751         default_options_optimization.
6752         * common.opt (falign-loops): Use value 0 with Var.
6753         (frerun-cse-after-loop, ftree-ter): Remove Init.
6754         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
6755         TARGET_OPTION_OPTIMIZATION): Remove.
6756         * targhooks.c (empty_optimization_table): New.
6757         * targhooks.h (empty_optimization_table): Declare.
6758         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
6759         * config/alpha/alpha.c (alpha_option_optimization_table,
6760         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6761         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
6762         * config/arm/arm.c (arm_option_optimization: Change to
6763         arm_option_optimization_table.
6764         (TARGET_OPTION_OPTIMIZATION): Change to
6765         TARGET_OPTION_OPTIMIZATION_TABLE.
6766         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
6767         * config/avr/avr.c (avr_option_optimization_table,
6768         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6769         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
6770         * config/cris/cris.c (cris_option_optimization): Change to
6771         cris_option_optimization_table.
6772         (TARGET_OPTION_OPTIMIZATION): Change to
6773         TARGET_OPTION_OPTIMIZATION_TABLE.
6774         * config/crx/crx.c (crx_option_optimization): Change to
6775         crx_option_optimization_table.
6776         (TARGET_OPTION_OPTIMIZATION): Change to
6777         TARGET_OPTION_OPTIMIZATION_TABLE.
6778         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
6779         * config/fr30/fr30.c (fr30_option_optimization_table,
6780         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6781         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
6782         * config/frv/frv.c (frv_option_optimization_table,
6783         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6784         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
6785         * config/h8300/h8300.c (h8300_option_optimization): Change to
6786         h8300_option_optimization_table.
6787         (TARGET_OPTION_OPTIMIZATION): Change to
6788         TARGET_OPTION_OPTIMIZATION_TABLE.
6789         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
6790         * config/i386/i386.c (ix86_option_optimization): Change to
6791         ix86_option_optimization_table.
6792         (TARGET_OPTION_OPTIMIZATION): Change to
6793         TARGET_OPTION_OPTIMIZATION_TABLE.
6794         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
6795         as initializer.
6796         * config/ia64/ia64.c (ia64_option_optimization): Change to
6797         ia64_option_optimization_table.
6798         (TARGET_OPTION_OPTIMIZATION): Change to
6799         TARGET_OPTION_OPTIMIZATION_TABLE.
6800         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
6801         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
6802         initializer.
6803         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
6804         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6805         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
6806         * config/lm32/lm32.c (lm32_option_optimization_table,
6807         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6808         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
6809         * config/m32r/m32r.c (m32r_option_optimization): Change to
6810         m32r_option_optimization_table.
6811         (TARGET_OPTION_OPTIMIZATION): Change to
6812         TARGET_OPTION_OPTIMIZATION_TABLE.
6813         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
6814         CAN_DEBUG_WITHOUT_FP): Remove.
6815         * config/mcore/mcore.c (mcore_option_optimization): Change to
6816         mcore_option_optimization_table.
6817         (TARGET_OPTION_OPTIMIZATION): Change to
6818         TARGET_OPTION_OPTIMIZATION_TABLE.
6819         * config/mep/mep.c (mep_option_optimization): Change to
6820         mep_option_optimization_table.
6821         (TARGET_OPTION_OPTIMIZATION): Change to
6822         TARGET_OPTION_OPTIMIZATION_TABLE.
6823         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
6824         * config/microblaze/microblaze.c
6825         (microblaze_option_optimization_table,
6826         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6827         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
6828         * config/mips/mips.c (mips_option_optimization_table,
6829         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6830         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
6831         * config/mmix/mmix.c (mmix_option_optimization): Change to
6832         mmix_option_optimization_table.
6833         (TARGET_OPTION_OPTIMIZATION): Change to
6834         TARGET_OPTION_OPTIMIZATION_TABLE.
6835         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
6836         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
6837         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6838         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
6839         * config/pa/pa.c (pa_option_optimization_table,
6840         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6841         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
6842         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
6843         pdp11_option_optimization_table.
6844         (TARGET_OPTION_OPTIMIZATION): Change to
6845         TARGET_OPTION_OPTIMIZATION_TABLE.
6846         * config/picochip/picochip.c (picochip_option_optimization_table,
6847         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6848         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
6849         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
6850         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6851         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
6852         * config/rx/rx.c (rx_option_optimization_table,
6853         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6854         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
6855         * config/s390/s390.c (s390_option_optimization): Change to
6856         s390_option_optimization_table.
6857         (s390_option_override): Update comment.
6858         (TARGET_OPTION_OPTIMIZATION): Change to
6859         TARGET_OPTION_OPTIMIZATION_TABLE.
6860         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
6861         * config/score/score.c (score_option_optimization_table,
6862         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6863         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
6864         * config/sh/sh.c (sh_option_optimization): Change to
6865         sh_option_optimization_table.
6866         (TARGET_OPTION_OPTIMIZATION): Change to
6867         TARGET_OPTION_OPTIMIZATION_TABLE.
6868         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
6869         (sh_option_override, expand_block_move, multcosts, find_barrier,
6870         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
6871         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
6872         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
6873         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
6874         instead of TARGET_SMALLCODE.
6875         * config/sh/sh.opt (mspace): Make into an alias for -Os.
6876         * config/sparc/sparc.c (sparc_option_optimization_table,
6877         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6878         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
6879         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
6880         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6881         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
6882         * config/v850/v850.c (v850_option_optimization): Change to
6883         v850_option_optimization_table.
6884         (TARGET_OPTION_OPTIMIZATION): Change to
6885         TARGET_OPTION_OPTIMIZATION_TABLE.
6886         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
6887         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
6888         xtensa_option_optimization_table.
6889         (TARGET_OPTION_OPTIMIZATION): Change to
6890         TARGET_OPTION_OPTIMIZATION_TABLE.
6891         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
6893 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
6895         Based on the CFString implementation in FSF apple/trunk branch.
6897         * target.def (objc_construct_string): New Hook.
6898         * doc/tm.texi (objc_construct_string): Document.
6899         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
6900         * config/t-darwin: Amend build rules for darwin.o.
6901         * config/darwin.opt: Add cfstrings flags.
6902         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
6903         (darwin_objc_construct_string): New.
6904         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
6905         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
6906         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
6907         (darwin_fold_builtin): Likewise.
6908         (darwin_build_constant_cfstring): Likewise.
6909         (darwin_objc_construct_string): Likewise.
6910         (darwin_cfstring_p): Likewise.
6911         (darwin_enter_string_into_cfstring_table): Likewise.
6912         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
6913         * config/darwin.c (darwin_running_cxx): New var.
6914         (machopic_select_section): Return cfstring_constant_object_section.
6915         (darwin_override_options): Set darwin_running_cxx.
6916         (add_builtin_field_decl): New.
6917         (darwin_init_cfstring_builtins): New.
6918         (darwin_build_constant_cfstring): New.
6919         (darwin_fold_builtin): New.
6920         (cfstring_hash): New.
6921         (cfstring_eq): New.
6922         (darwin_enter_string_into_cfstring_table): New.
6923         * config/darwin-sections.def (cfstring_constant_object_section): New.
6924         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
6925         (TARGET_OBJC_CONSTRUCT_STRING): Define.
6927 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6929         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
6930         TYPE_STUB_DECL instead of TREE_CHAIN.
6931         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
6932         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
6933         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
6934         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
6935         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
6936         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
6937         Likewise.
6938         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
6940 2010-10-22  Jie Zhang  <jie@codesourcery.com>
6942         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
6943         (copy_blkmode_from_reg): Likewise.
6944         (read_complex_part): Likewise.
6945         (expand_expr_real_1): Calculate packedp and pass it to
6946         extract_bit_field.
6947         * expr.h (extract_bit_field): Update declaration.
6948         * calls.c (store_unaligned_arguments_into_pseudos): Update call
6949         to extract_bit_field.
6950         * expmed.c (extract_fixed_bit_field): Update calls to
6951         extract_fixed_bit_field.
6952         (store_split_bit_field): Likewise.
6953         (extract_bit_field_1): Add new argument packedp.
6954         (extract_bit_field): Add new argument packedp.
6955         (extract_fixed_bit_field): Add new argument packedp and let
6956         packed attribute override volatile.
6957         * stmt.c (expand_return): Update call to extract_bit_field.
6959 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6961         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
6963 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6965         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
6966         of gcc_checking_assert.
6967         * sel-sched.c (code_motion_process_successors): Likewise.
6969 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6971         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
6972         when stopping because of a different locus on edge or insn.
6973         (try_optimize_cfg): Add comment.
6974         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
6975         block is a forwarder block, propagate locus on the edge.
6976         (cfg_layout_merge_blocks): Likewise.
6978 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
6980         PR target/45946
6981         * config/i386/i386.md (*pushti2): New insn pattern.
6982         (pushti2 splitter): New insn splitter.
6983         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
6984         DWI mode iterator.
6986 2010-10-21  Paul Koning  <ni1d@arrl.net>
6988         * config/pdp11/pdp11-protos.md (arith_operand,
6989         const_immediate_operand, expand_shift_operand,
6990         immediate15_operand): Delete
6991         * config/pdp11/pdp11.c: Ditto.
6992         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
6993         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
6994         EXTRA_CONSTRAINT): Delete.
6995         * config/pdp11/pdp11.md (various): Use standard constraints
6996         instead of removed ones.
6997         * config/pdp11/constraints.md: New file.
6998         * config/pdp11/predicates.md: New file.
7000 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
7002         PR c/45834
7003         * alias.c (true_dependence_1): Remove obsolete check for QImode.
7004         (may_alias_p): Ditto.
7006 2010-10-21  Martin Jambor  <mjambor@suse.cz>
7008         PR tree-optimization/45875
7009         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
7011 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7013         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
7014         variables.
7015         (create_new_def_for): Likewise.
7017 2010-10-21  Nick Clifton  <nickc@redhat.com>
7019         * config/mn10300/mn10300.c: Fold code to 80-character width.
7020         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
7021         MEM, CONST_INT and CONST_DOUBLE.
7022         (targetm): Move initialization to end of file.
7023         (print_operand): Rename to mn10300_print_operand.
7024         (print_operand_address): Rename to mn10300_print_operand_address.
7025         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
7026         (expand_prologue): Rename to mn10300_expand_prologue.
7027         (expand_epilogue): Rename to mn10300_expand_epilogue.
7028         (initial_offset): Rename to mn10300_initial_offset.
7029         (function_arg): Rename to mn10300_function_arg.
7030         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
7031         (symbolic_operand): Rename to mn10300_symbolic_operand.
7032         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
7033         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
7034         * config/mn10300/mn10300-protos.h: Update prototypes.
7035         * config/mn10300/mn10300.h: Fold code to 80-character width.
7036         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
7037         MEM, CONST_INT and CONST_DOUBLE.
7038         (CPP_SPEC): Move to...
7039         (TARGET_CPU_CPP_BUILTINS): ... here.
7040         * config/mn10300/mn10300.md: Fold code to 80-character width.
7041         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
7042         MEM, CONST_INT and CONST_DOUBLE.
7044 2010-10-21  Ira Rosen  <irar@il.ibm.com>
7046         PR tree-optimization/46049
7047         PR tree-optimization/46052
7048         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
7049         (vect_get_slp_defs): Add arguments.
7050         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
7051         operands to vect_get_slp_defs.
7052         (vectorizable_reduction): Fix comment, pass scalar operands to
7053         vect_get_slp_defs.
7054         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
7055         type to determine number of units in the created vector.
7056         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
7057         (vectorizable_conversion): Fix comment.
7058         (vectorizable_shift): New function.
7059         (vectorizable_operation): Move code that handles shifts to
7060         vectorizable_shift.
7061         (vectorizable_type_demotion): Fix comment, pass scalar operands to
7062         vect_get_slp_defs.
7063         (vectorizable_type_promotion, vectorizable_store): Likewise.
7064         (vectorizable_condition): Fix comment.
7065         (vect_analyze_stmt): Call vectorizable_shift.
7066         (vect_transform_stmt): Likewise.
7067         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
7068         Use it as the operand to create vectors for, except reduction
7069         initial definition and store.  Use operands type.
7070         (vect_get_slp_defs): Add new arguments.  Pass them to
7071          vect_get_constant_vectors.
7073 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7075         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
7076         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
7077         * cfghooks.c (fixup_reorder_chain): Likewise.
7078         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
7079         * cgraph.c (cgraph_add_thunk): Likewise.
7080         (cgraph_create_edge_1): Likewise.
7081         (cgraph_create_virtual_clone): Likewise.
7082         * ddg.c (add_cross_iteration_register_deps): Likewise.
7083         * dwarf2out.c (modified_type_die): Likewise.
7084         * emit-rtl.c (set_mem_alias_set): Likewise.
7085         * ggc-zone.c (zone_allocate_marks): Likewise.
7086         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
7087         * gimple.c (iterative_hash_gimple_type): Likewise.
7088         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
7089         (create_single_exit_edge): Likewise.
7090         * haifa-sched.c (choose_ready): Likewise.
7091         * lto-streamer-in.c (input_gimple_stmt): Likewise.
7092         * passes.c (execute_todo): Likewise.
7093         * sched-ebb.c (begin_schedule_ready): Likewise.
7094         * sel-sched.c (code_motion_process_successors): Likewise.
7095         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
7096         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
7097         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
7098         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
7099         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
7100         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
7101         (ssa_conflicts_add): Likewise.
7102         * tree-ssa-copy.c (replace_exp): Likewise.
7103         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
7104         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
7105         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
7106         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
7107         (compute_antic): Likewise.
7108         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
7109         (add_dependence): Likewise.
7110         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
7111         * tree-vrp.c (supports_overflow_infinity): Likewise.
7112         (make_overflow_infinity, negative_overflow_infinity): Likewise.
7113         (avoid_overflow_infinity, register_new_assert_for): Likewise.
7114         (process_assert_insertions_for): Likewise.
7115         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
7116         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
7117         (intersect_loc_chains, variable_merge_over_cur): Likewise.
7119 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
7121         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
7122         * reload1.c (has_nonexceptional_receiver): Likewise.
7123         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
7124         (create_new_def_for): Likewise.
7125         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
7126         (merge_phi_nodes): Likewise.
7127         (has_abnormal_incoming_edge_p): Delete.
7129 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
7131         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
7133 2010-10-21  Richard Guenther  <rguenther@suse.de>
7134             Michael Matz  <matz@suse.de>
7136         PR tree-optimization/45764
7137         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7138         Adjust initial misalignment for negative DR_STEP.
7139         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
7140         do not have the same alignment over the whole iteration domain.
7142 2010-10-21  Richard Guenther  <rguenther@suse.de>
7144         PR tree-optimization/46111
7145         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
7147 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7149         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
7151 2010-10-21  Tristan Gingold  <gingold@adacore.com>
7153         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
7154         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
7156 2010-10-21  Tristan Gingold  <gingold@adacore.com>
7158         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
7159         signal_frame.
7160         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
7162 2010-10-21  Tristan Gingold  <gingold@adacore.com>
7164         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
7165         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
7167 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
7169         * basic-block.h (find_fallthru_edge): Define.
7170         * cfgcleanup.c (merge_blocks_move): Use it.
7171         (try_crossjump_bb): Likewise.
7172         * cfglayout.c (fixup_reorder_chains): Likewise.
7173         (fixup_fallthru_exit_predecessor): Likewise.
7174         * cfgrtl.c (rtl_split_edge): Likewise.
7175         (rtl_verify_flow_info): Likewise.
7176         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7177         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
7178         * ifcvt.c (block_fallthru): Likewise.
7179         * reload1.c (fixup_abnormal_edges): Likewise.
7180         * sched-ebb.c (being_schedule_ready): Likewise.
7181         (schedule_ebb): Likwise.
7182         * sched-rgn.c (find_single_block_region): Likewise.
7183         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
7184         * tree-complex.c (expand_complex_move): Likewise.
7185         * sched-int.h (find_fallthru_edge): Rename to...
7186         (find_fallthru_edge_from): ...this.
7187         * haifa-sched.c (find_fallthru_edge): Rename to...
7188         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
7189         (init_before_recovery): Call find_fallthru_edge_from.
7190         * sel-sched-ir.c (merge_fences): Likewise.
7191         * sel-sched.c (in_fallthru_bb_p): Likewise.
7192         (move_cond_jump): Likewise.
7194 2010-10-20  Paul Koning  <ni1d@arrl.net>
7196         * config/pdp11/pdp11.md (various): Fix conditions on a number of
7197         insn to check for target 11/40 or higher.
7199 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7201         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
7202         bool instead of a tree.
7203         (c_parser_objc_method_decl): Added bool argument.  Updated call to
7204         objc_build_method_signature.
7205         (c_parser_objc_method_definition): Do not call
7206         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
7207         c_parser_objc_method_decl and objc_start_method_definition.
7208         (c_parser_objc_methodproto): Do not call objc_set_method_type.
7209         Updated calls to c_parser_objc_method_type,
7210         c_parser_objc_method_decl and objc_add_method_declaration.
7212 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
7214         PR tree-optimization/45919
7215         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
7216         array members.
7218         PR tree-optimization/46066
7219         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
7220         instead of gsi_last_bb.
7222 2010-10-20  DJ Delorie  <dj@redhat.com>
7224         * config/m32c/m32c.c (m32c_option_override): Always disable
7225         function-cse in 16-bit mode.  Indirect calls are always worse than
7226         direct calls as there is no 16-bit indirect call opcode.
7227         (m32c_override_options_after_change): New, likewise.
7229 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
7231         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
7232         emitting the conditional move in the inner mode of the SUBREG.
7234 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
7236         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
7237         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
7238         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7239         (ia64_preferred_reload_class): Make static.  Change rclass argument
7240         and result types from enum reg_class to reg_class_t.
7242 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
7244         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
7245         call for single operand expression.
7247 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
7249         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
7250         if there is a call statement to pure or const function in the block.
7252 2010-10-20  Paul Koning  <pkoning@equallogic.com>
7254         Fix several build errors for pdp11 target.
7255         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
7256         (cbranchdf4): Conditional on TARGET_FPU.
7257         (movdf): Ditto; correct alternatives check.
7258         (movmemhi): Fix predicate and constraint.
7259         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
7261 2010-10-20  Richard Guenther  <rguenther@suse.de>
7263         PR lto/45667
7264         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
7265         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
7266         (verify_gimple_assign_single): Disable ADDR_EXPR type check
7267         when in LTO.
7269 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
7271         PR fortran/42169
7272         * ira-emit.c (store_can_be_removed_p): Return false instead of
7273         gcc_unreachable.
7275 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
7277         * fold-const.c (fold_binary_loc): New transformation.
7279 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
7281         PR target/46085
7282         * config/i386/sse.md (reduc_splus_v8sf): Updated.
7283         (reduc_splus_v4df): Likewise.
7285 2010-10-20  Richard Guenther  <rguenther@suse.de>
7287         PR tree-optimization/45860
7288         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
7289         conditional store replacement for non-register type stores.
7291 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
7293         * stor-layout.c (skip_simple_constant_arithmetic): New function.
7294         (self_referential_size): Use it instead of skip_simple_arithmetic.
7296 2010-10-20  Olivier Hainque  <hainque@adacore.com>
7298         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
7299         If the current function calls eh_return, claim live all registers
7300         that we need to check for liveness otherwise.
7302 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7304         * c-decl.c (c_write_global_declarations): Call
7305         objc_write_global_declarations when compiling Objective-C.
7306         * c-lang.c (finish_file): Removed.
7308 2010-10-19  DJ Delorie  <dj@redhat.com>
7310         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
7311         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
7312         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
7313         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
7314         * doc/tm.texi: Regenerate.
7315         * targhooks.h (default_label_align_after_barrier_max_skip,
7316         default_loop_align_max_skip, default_label_align_max_skip,
7317         default_jump_align_max_skip): Declare.
7318         * target.def (label_align_after_barrier_max_skip): New.
7319         (loop_align_max_skip): New.
7320         (label_align_max_skip): New.
7321         (jump_align_max_skip): New.
7322         * system.h (poison): Add those macros to the list.
7323         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
7324         (LOOP_ALIGN_MAX_SKIP): Remove.
7325         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
7326         (JUMP_ALIGN_MAX_SKIP): Remove.
7327         (default_label_align_after_barrier_max_skip): New.
7328         (default_loop_align_max_skip): New.
7329         (default_label_align_max_skip): New.
7330         (default_jump_align_max_skip): New.
7331         (compute_alignments): Use the new hooks.
7332         (shorten_branches): Likewise.
7334 2010-10-19  Richard Henderson  <rth@redhat.com>
7336         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
7337         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
7338         (fma4i_fmadd_<mode>): New.
7339         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
7340         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
7341         standard fma patterns.
7342         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
7343         enable for FMA.
7344         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
7345         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
7346         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
7348 2010-10-19  Paul Koning  <pkoning@equallogic.com>
7350         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
7351         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
7353 2010-10-19  Richard Henderson  <rth@redhat.com>
7355         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
7356         (fmadf4, *fmsdf4, *nfmadf4): New.
7357         (fmaxf4, *fmsxf4, *nfmaxf4): New.
7359 2010-10-19  Michael Eager  <eager@eagercon.com>
7361         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
7362         Use sjlj unwind info for exceptions.
7364 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
7366         PR fortran/43414
7367         * dwarf2out.c (add_calling_convention_attribute): Flag main
7368         Fortran subroutine with DW_AT_main_subprogram.
7370 2010-10-19  Nick Clifton  <nickc@redhat.com>
7372         * config/rx/rx.c (rx_function_value): Small integer types are
7373         promoted to SImode.
7374         (rx_promote_function_mode): New function.
7375         (TARGET_PROMOTE_FUNCTION_MODE): Define.
7377 2010-10-19  Nick Clifton  <nickc@redhat.com>
7379         * config/mep/mep.c (mep_print_operand): Use
7380         targetm.strip_name_encoding.
7381         (mep_output_aligned_common): Likewise.
7383 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
7385         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
7387 2010-10-18  Richard Henderson  <rth@redhat.com>
7389         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
7390         (fma (neg a) (neg b) c) and (fma a (neg b) c).
7392 2010-10-18  Richard Henderson  <rth@redhat.com>
7394         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
7395         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
7396         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
7397         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
7398         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
7399         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
7400         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
7401         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
7402         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
7403         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
7404         (bdesc_multi_arg): Remove the corresponding builtins.
7405         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
7406         (UNSPEC_FMA4_FMSUBADD): Remove.
7407         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
7408         * config/i386/sse.md (FMA4MODEF4): Remove.
7409         (FMAMODE): Add.
7410         (fma<mode>4): New expander.
7411         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
7412         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
7413         (*fma4i_fmsub_<mode>): Similarly.
7414         (*fma4i_fnmadd_<mode>): Similarly.
7415         (*fma4i_fnmsub_<mode>): Similarly.
7416         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
7417         with the first operand.
7418         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
7419         of explicit arithmetic.  Macroize with AVXMODEF2P.
7420         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
7421         (xop_frcz<mode>2): Macroize with FMAMODE.
7422         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
7423         the first operand.
7424         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
7425         extra negations.
7426         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
7427         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
7428         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
7429         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
7430         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
7431         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
7432         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
7433         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
7435 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
7437         PR rtl-optimization/45966
7438         * combine.c (try_combine): If added_sets_2, deal with the case
7439         where i0 feeds i1 and i1 feeds i2.
7441 2010-10-18  Jan Hubicka  <jh@suse.cz>
7443         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
7444         preserve flags before trying to guess on visibility.
7445         (varpool_externally_visible_p): New function.
7446         (function_and_variable_visibility): Use it.
7448 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7450         Implemented parsing @synthesize and @dynamic for Objective-C.
7451         * c-parser.c (c_parser_external_declaration): Recognize
7452         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
7453         (c_parser_objc_at_synthesize_declaration): New.
7454         (c_parser_objc_at_dynamic_declaration): New.
7456 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7458         * c-parser.c (c_parser_objc_class_declaration): After finding an
7459         error, parse the whole declaration then reset parser->error.
7461 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7463         PR target/46041
7464         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
7465         * builtins.c (mode_has_fma): Ditto.
7467 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
7469         PR target/36898
7470         PR middle-end/43760
7471         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
7473 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
7475         * config/i386/i386.c (ix86_option_override_internal): Define and
7476         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
7477         default.
7478         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7479         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
7481 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7483         Merge from 'apple/trunk' branch on FSF servers.
7484         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
7485         following Objective-C change:
7487         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
7489         Radar 4301047
7490         * c-parse.in (objc_quals): Build objc qualifier list same way
7491         as gcc-3.3
7493 2010-10-18  Jan Hubicka  <jh@suse.cz>
7495         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
7496         function_and_variable_visibility): Revert accidental commit.
7498 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
7500         Merge from 'apple/trunk' branch on FSF servers.
7501         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
7502         the following Objective-C change:
7504         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
7506         Radar 4204796
7507         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
7508         'volatilized' type used in a typeof operator.
7510 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
7512         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
7513         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
7514         rewrite modelled on gimple_purge_dead_eh_edges.
7515         (gimple_purge_all_dead_abnormal_call_edges): New function.
7516         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
7517         directly instead of through gimple_purge_dead_abnormal_call_edges.
7518         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
7519         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
7520         removed AB side-effects from one of its statements.
7521         (init_pre): Initialize need_ab_cleanup.
7522         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
7523         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
7525 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
7527         PR c/46015
7528         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
7529         on computed goto argument.
7531 2010-10-18  Richard Guenther  <rguenther@suse.de>
7533         PR tree-optimization/45967
7534         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
7535         (could_have_pointers): Likewise.
7536         (handle_rhs_call, handle_const_call, handle_pure_call,
7537         find_func_aliases, intra_create_variable_infos): Remove calls to them.
7538         (struct fieldoff): Add must_have_pointers field.
7539         (type_must_have_pointers): New function.
7540         (field_must_have_pointers): Likewise.
7541         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
7542         Adjust field merging.
7543         (create_function_info_for): May-have-pointers of varinfo is
7544         almost always true.
7545         (create_variable_info_for_1): Likewise.
7547 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
7549         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
7550         of operands to vec_concat.
7552 2010-10-18  Richard Guenther  <rguenther@suse.de>
7554         PR lto/44950
7555         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
7556         also clear references to entries of it.
7558 2010-10-18  Andi Kleen  <ak@linux.intel.com>
7560         PR other/43448
7561         * gccbug.in: Remove.
7562         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
7563         (doc, distclean, install-common): Remove reference to gccbug.
7564         * configure: Regenerate.
7565         * configure.ac (all_outputs): Remove gccbug.
7566         * doc/configfiles.texi: Remove references to gccbug.
7567         * doc/sourcebuild.texi: Dito.
7569 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
7571         PR middle-end/46019
7572         * fold-const.c (fold_binary_loc): If integer_pow2p has
7573         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
7575 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
7576             Jeremie Salvucci  <jeremie.salvucci@free.fr>
7578         * gengtype.c (verbosity_level): Add variable.
7579         (set_gc_used): Count variables for verbosity.
7580         (close_output_files): Backing up files, counting written ones
7581         verbosily.
7582         (write_types): Count emitted functions for verbosity. Added
7583         debug messages.
7584         (write_enum_defn): Count structures for verbosity. Added debug
7585         messages.
7586         (gengtype_long_options): Add "verbose" & "backupdir".
7587         (print_usage): Ditto.
7588         (main): Verbose display of parsed files.
7590         * gengtype.h (verbosity_level): Add declaration.
7592 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
7594         * gengtype.c (parse_program_options): Add allocation of
7595         plugin_files, and correct test on nb_plugin_files.
7597 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7599         Merge from 'apple/trunk' branch on FSF servers.
7601         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
7603         Radar 4133425
7604         * c-decl.c (undeclared_variable): Issue diagnostic on
7605         private 'ivar' access.
7607 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
7609         PR target/46051
7610         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
7611         generated sequence to match *avx_vperm2f128<mode>_nozero.
7612         (vec_interleave_lowv4df): Ditto.
7613         (vec_interleave_highv8sf): Ditto.
7614         (vec_interleave_lowv8sf): Ditto.
7616 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
7618         * libgcov.c (create_file_directory): Enable it for win32 case.
7619         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
7620         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
7621         (GCOV_PREFIX_SKIP): Likewise.
7623 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7625         * doc/objc.texi (GNU Objective-C runtime API): New section.
7626         (Modern GNU Objective-C runtime API): New section.
7627         (Traditional GNU Objective-C runtime API): New section.
7628         (Executing code before main): Mention that this section is
7629         specific to the GNU Objective-C runtime.
7630         (Garbage Collection): Same.
7632 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
7634         * c-parser.c (c_parser_for_statement): Move initialization of
7635         cond and incr before if.
7637 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
7639         * target.def (preferred_output_reload_class): New hook.
7640         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
7641         * doc/tm.texi: Regenerate.
7642         * targhooks.c (default_preferred_output_reload_class): New function.
7643         * targhooks.h (default_preferred_output_reload_class): Declare.
7644         * reload.c (find_dummy_reload): Change rclass argument type from
7645         enum reg_class to reg_class_t. Change this_alternative array type
7646         from enum reg_class to reg_class_t.
7647         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
7648         (push_reload): Change preferred_class variable type to reg_class_t.
7649         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
7650         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
7651         argument type from enum reg_class to reg_class_t. Use
7652         HARD_REGISTER_NUM_P predicate.
7653         * recog.h (reg_fits_class_p): Update prototype.
7655         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7656         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
7657         Remove.
7658         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
7659         static. Change regclass argument and result types from enum reg_class
7660         to reg_class_t.
7661         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7663 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
7665         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
7666         visibility enum, and handle @package.
7668 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
7670         * doc/objc.texi (What you can and what you cannot do in +load):
7671         Document that sending messages to constant string objects in +load
7672         is not guaranteed to work.
7674 2010-10-16  Jan Hubicka  <jh@suse.cz>
7676         PR middle-end/44206
7677         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
7678         existence of refrences before removing the function.
7680 2010-10-16  Jan Hubicka  <jh@suse.cz>
7682         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
7683         only_called_at_startup and only_called_at_exit.
7684         (cgraph_propagate_frequency): Compute only_called_at_startup and
7685         only_called_at_exit.
7686         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
7687         only_called_at_exit.
7688         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
7689         flags.
7690         * predict.c (compute_function_frequency): Initialize the new flags.
7692 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
7694         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
7695         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
7696         on the bounds of its domain.
7697         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
7699 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
7701         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
7702         * config/avr/avr-protos.h (preferred_reload_class): Remove.
7703         * config/avr/avr.c (preferred_reload_class): Remove.
7704         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
7705         * config/pa/pa.c (emit_move_sequence): Update comment
7706         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
7707         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
7708         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
7709         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
7710         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
7711         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
7712         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
7713         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
7714         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
7715         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
7716         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
7717         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
7718         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
7720 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
7722         * opts.c (set_fast_math_flags,
7723         set_unsafe_math_optimizations_flags): Make static.
7724         * toplev.h (set_fast_math_flags,
7725         set_unsafe_math_optimizations_flags): Remove prototypes.
7727 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
7729         * config/arm/arm.c (arm_option_optimization): Set
7730         flag_section_anchors to 1 not 2.
7731         * config/i386/i386.c (ix86_option_override_internal): Check
7732         global_options_set.x_flag_zee and
7733         global_options_set.x_flag_omit_frame_pointer.
7734         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
7735         flag_zee to 2.
7736         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
7737         global_options_set.x_flag_omit_frame_pointer.
7738         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
7739         opts->x_flag_section_anchors to 1 not 2.
7740         * config/sh/sh.c (sh_option_optimization): Don't set
7741         flag_schedule_insns to 2.
7742         (sh_option_override): Check
7743         global_options_set.x_flag_schedule_insns.
7744         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
7746 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
7748         * configure.ac: Make sure inhibit_libc remains false for mingw targets
7749         as cross.
7750         * configure: Regenerated.
7752 2010-10-15  Xinliang David Li  <davidxl@google.com>
7754         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
7755         function.
7756         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
7757         into a recursive function.
7759 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
7761         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
7762         (*movdfcc_1): ditto.
7764 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7766         * target.def (target_option.init_struct): New hook.
7767         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
7768         * doc/tm.texi: Regenerate.
7769         * hooks.c (hook_void_gcc_optionsp): New.
7770         * hooks.h (hook_void_gcc_optionsp): Declare.
7771         * langhooks-def.h (lhd_init_options_struct): Remove.
7772         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
7773         * langhooks.c (lhd_init_options_struct): Remove.
7774         * opts.c (init_options_struct): Also call
7775         targetm.target_option.init_struct.
7776         * config/i386/i386.c (ix86_option_init_struct,
7777         TARGET_OPTION_INIT_STRUCT): New.
7778         (ix86_option_optimization): Move some settings to
7779         ix86_option_init_struct.
7780         * config/pdp11/pdp11.c (pdp11_option_init_struct,
7781         TARGET_OPTION_INIT_STRUCT): New.
7782         (pdp11_option_optimization): Move some settings to
7783         pdp11_option_init_struct.
7784         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
7785         rs6000_option_init_struct.  Use options structure pointer.
7786         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
7787         * config/s390/s390.c (s390_option_init_struct,
7788         TARGET_OPTION_INIT_STRUCT): New.
7789         (s390_option_optimization): Don't set
7790         flag_asynchronous_unwind_tables here.
7791         * config/sh/sh.c (sh_option_init_struct,
7792         TARGET_OPTION_INIT_STRUCT): New.
7793         (sh_option_optimization): Don't set flag_finite_math_only here.
7794         * config/spu/spu.c (spu_option_optimization): Replace by
7795         spu_option_optimization.  Use options structure pointer.
7796         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
7798 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7800         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
7802         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
7803         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
7804         (Standard names): Document fma.
7806         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
7807         __FP_FAST_FMAF, __FP_FAST_FMAL.
7809         * builitns.c (expand_builtin_mathfn_ternary): New function for
7810         expanding ternary math functions, like fma.
7811         (expand_builtin): Call it for the fma builtins.
7813         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
7814         ops at present.
7816         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
7817         vectorizable functions to support vectorizing fma.
7819         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7820         Handle fma builtins.
7822         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
7823         (UNSPEC_VSX_MSUB): Ditto.
7824         (UNSPEC_VSX_NMADD): Ditto.
7825         (UNSPEC_VSX_NMSUB): Ditto.
7826         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
7827         of UNSPEC. Renumber combiner patterns.
7828         (vsx_fmsub<mode>4*): Ditto.
7829         (vsx_fnmadd<mode>4*): Ditto.
7830         (vsx_fnmsub<mode>4*): Ditto.
7832         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
7833         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
7834         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
7835         (altivec_vmaddfp_1): Ditto.
7836         (altivec_vmaddfp_2): Ditto.
7837         (atlivec_mulv4sf3): Ditto.
7838         (altivec_vnmsubfp): Ditto.
7839         (altivec_vnmsubfp_1): Ditto.
7840         (altivec_vnmsubfp_2): Ditto.
7841         (altivec_vnmsubfp_3): Delete.
7843         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
7844         (fmasf4_fpr): Ditto.
7845         (fmssf4_fpr): Ditto.
7846         (fnmasf4_fpr): Ditto.
7847         (fnmssf4_fpr): Ditto.
7848         (fmadf4): Ditto.
7849         (fmadf4_fpr): Ditto.
7850         (fmsdf4_fpr): Ditto.
7851         (fnmadf4_fpr): Ditto.
7852         (fnmsdf4_fpr): Ditto.
7854         * optabs.h (OTI_fma): Add fma optab.
7855         (fma_optab): Ditto.
7857         * genopinit.c (optabs): Set fma optab.
7859         * rtl.def (FMA): Add FMA rtl.
7861         * tree.h (mode_has_fma): New function to return if MODE supports a
7862         fast multiply and add instruction.
7863         * builtins.c (mode_has_fma): Ditto.
7865 2010-10-15  Jan Hubicka  <jh@suse.cz>
7867         * lto-streamer-out.c (write_symbol): Use pointer set of seen
7868         objects instead of bitmap.
7869         (produce_symtab): Likewise; output defined symbols first.
7871 2010-10-15  Jie Zhang  <jie@codesourcery.com>
7873         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
7874         Option Summary and Index.
7876 2010-10-15  Richard Guenther  <rguenther@suse.de>
7878         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
7879         for automatic variables again.
7881 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7883         * doc/extend.texi (Variable Length): Don't refer to VLAs not
7884         conforming to C99.
7886 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7888         * config/rx/rx.c (rx_option_optimization): Change to
7889         rx_override_options_after_change.  Don't change
7890         flag_lto_compression_level.  Don't check for changes to whether
7891         FPU instructions can be used.  Check and set only
7892         flag_finite_math_only, not other fast-math flags.
7893         (rx_option_override): Call rx_override_options_after_change.
7894         (TARGET_OPTION_OPTIMIZATION): Remove.
7895         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7897 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7899         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
7900         disable section anchors for lang_hooks.name[4] != 'O'.
7902 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7904         * config/frv/frv.c (frv_option_optimization,
7905         TARGET_OPTION_OPTIMIZATION): Remove.
7906         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
7908 2010-10-15  Michael Matz  <matz@suse.de>
7910         * cgraphunit.c (clone_of_p): Define unconditionally.
7912 2010-10-15  Richard Guenther  <rguenther@suse.de>
7914         PR lto/45957
7915         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
7917 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
7919         * ifcvt.c (find_active_insn_before): New function.
7920         (find_active_insn_after): New function.
7921         (cond_exec_process_if_block): Use new functions to replace
7922         prev_active_insn() and next_active_insn().
7924 2010-10-14  Yao Qi  <yao@codesourcery.com>
7926         PR target/45447
7927         * config/arm/arm.c (arm_build_builtin_va_list): Assign
7928         va_list_name to TYPE_STUB_DECL (va_list_type).
7930 2010-10-14  Jan Hubicka  <jh@suse.cz>
7932         PR middle-end/45621
7933         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
7934         redirected to clone, be happy.
7935         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
7936         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
7937         former_clone_of unconditionally.
7939 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7941         Merge from FSF apple 'trunk' branch.
7942         2006 Fariborz Jahanian  <fjahanian@apple.com>
7944         Radars 4436866, 4505126, 4506903, 4517826
7945         * c-parser.c (c_parser, objc_property_attr_context) New flag.
7946         (c_lex_one_token): Handle property attributes.
7947         (c_parser_external_declaration): Handle @property.
7948         (c_parser_declaration_or_fndef): Warn on invalid attributes before
7949         @alias, @class, @end and @property objc keywords.
7950         (c_parser_objc_methodprotolist): Handle @property.
7951         (c_parser_objc_property_attrlist): New.
7952         (c_parser_objc_at_property): New.
7953         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
7954         (build_modify_expr): Likewise.
7956 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
7958         PR tree-optimization/46008
7959         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
7961 2010-10-14  Richard Guenther  <rguenther@suse.de>
7963         PR tree-optimization/44913
7964         * tree-data-ref.c (disjoint_objects_p): Remove.
7965         (dr_may_alias_p): Simplify.  Only hand the base object to
7966         the alias-oracle.
7967         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7968         some more trees, bail out instead of asserting.
7969         (ptr_derefs_may_alias_p): Likewise.  Export.
7970         (refs_may_alias_p_1): Handle STRING_CSTs.
7971         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
7973 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
7975         PR c/45969
7976         * c-typeck.c (build_binary_op): Don't try to compute a semantic
7977         type with excess precision for boolean operations.
7979 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
7980             Basile Starynkevitch  <basile@starynkevitch.net>
7982         * gengtype.c:  Include getopt.h and version.h.
7984         (lang_bitmap, struct outf, outf_p)
7985         (get_output_file_with_visibility, oprintf): Definitions moved to
7986         gengtype.h
7987         (output_files, header_file, srcdir, srcdir_len, this_file)
7988         (do_dump): No more static variables.
7989         (do_debug): New.
7990         (dbgprint_count_type_at): Added new function.
7991         (gengtype_long_options): New.
7992         (print_usage, print_version, parse_program_options): New.
7993         (main): Call parse_program_options, and removed old option
7994         handling code.  Added some debug output.
7996         * gengtype.h:  Updated copyright year.
7997         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
7998         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
7999         Moved from gengtype.c to here.
8000         (do_debug, read_state_filename, write_state_filename): New variables.
8001         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
8003         * Makefile.in:
8004         (REVISION): Always defined.
8005         (version.o): Removed ifdef REVISION_c.
8006         (s-gtype): Pass arguments to build/gengtype program.
8007         (build/version.o): Added building rule.
8008         (build/gengtype$(build_exeext)): Added build/version.o.
8010 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
8012         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
8013         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
8014         __strong macros.
8016 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
8018         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
8019         may_trap_or_fault_p instead of may_trap_p predicate.
8020         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
8021         (substitute_placeholder_in_expr): Likewise.
8022         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
8023         flag on MEM_REF nodes.
8024         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
8025         flags on INDIRECT_REF nodes.
8027 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
8029         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
8030         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
8031         (arm*-*-eabi*) <tm_file>: Likewise.
8032         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
8033         (frv-*-*linux*) <tm_file>: Likewise.
8034         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
8035         and associated helper macros.
8036         * config/frv/frv-abi.h: Delete.
8038 2010-10-14  Richard Guenther  <rguenther@suse.de>
8040         PR lto/44561
8041         * tree.def (NULLPTR_TYPE): New tree code.
8042         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
8043         * dwarf2out.c (is_base_type): Likewise.
8044         (gen_type_die_with_usage): Likewise.
8045         * sdbout.c (plain_type_1): Likewise.
8046         * tree.c (build_int_cst_wide): Likewise.
8047         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
8049 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
8051         * params.c (params_finished): New.
8052         (add_params): Assert !params_finished.
8053         (finish_params): New.
8054         (set_param_value_internal): Take params and params_set
8055         parameters.  Assert params_finished.
8056         (set_param_value, maybe_set_param_value): Take params and
8057         params_set parameters.  Update calls to set_param_value_internal.
8058         (set_default_param_value): Assert !params_finished.  Don't use
8059         set_param_value_internal.
8060         (default_param_value, init_param_values): New.
8061         * params.h (struct param_info): Change value to default_value.
8062         Remove set.
8063         (set_param_value, maybe_set_param_value): Add params and
8064         params_set parameters.
8065         (PARAM_VALUE): Get parameters from global_options.
8066         (PARAM_SET_P): Remove.
8067         (finish_params, default_param_value, init_param_values): New.
8068         * common.opt (param_values): New Variable.
8069         * config/arm/arm.c (arm_option_override): Pass extra arguments to
8070         maybe_set_param_value.
8071         * config/i386/i386.c (ix86_option_override_internal): Pass extra
8072         arguments to maybe_set_param_value.
8073         * config/picochip/picochip.c (picochip_option_override): Pass
8074         extra arguments to maybe_set_param_value.
8075         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
8076         extra arguments to maybe_set_param_value.
8077         * config/s390/s390.c (s390_option_override): Use
8078         maybe_set_param_value instead of set_param_value.  Pass extra
8079         arguments to maybe_set_param_value.
8080         * config/sparc/sparc.c (sparc_option_override): Pass extra
8081         arguments to maybe_set_param_value.
8082         * config/spu/spu.c (spu_option_override): Pass extra arguments to
8083         maybe_set_param_value.
8084         * opts.c (handle_param): Take opts and opts_set parameters.
8085         Update call to set_param_value.
8086         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
8087         initial_loop_invariant_max_bbs_in_loop): Remove.
8088         (init_options_once): Don't set them.
8089         (init_options_struct): Initialize parameters structures.
8090         (default_options_optimization): Use default_param_value when
8091         restoring defaults.  Update calls to maybe_set_param_value.
8092         (finish_options): Update calls to maybe_set_param_value.
8093         (common_handle_option): Update calls to handle_param and
8094         set_param_value.
8095         * toplev.c (DEFPARAM): Update definition for changes to param_info.
8096         (general_init): Call finish_params.
8098 2010-10-14  Nick Clifton  <nickc@redhat.com>
8100         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
8101         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
8102         (FIRST_PSEUDO_REGISTER): Increase by one.
8103         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
8104         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
8105         (MODES_TIEABLE): Call mn10300_modes_tieable.
8106         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
8107         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
8108         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
8109         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
8110         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
8111         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
8112         (mn10300_cc_status_mdep): Delete.
8113         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
8114         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
8115         the combine-stack-adjust pass.
8116         (print_operand): Use the mode of the comparison operation to
8117         select the comparison suffix.
8118         (notice_update_cc): Delete.
8119         (mn10300_secondary_reload_class): Remove test for stack pointer
8120         based arithmetic.
8121         (output_tst): Rename to mn10300_output_cmp.
8122         (impossible_plus_operand): Move into predicates.md.
8123         (mn10300_legitimize_address): Make static.
8124         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
8125         constant pic operands.
8126         (mn10300_legitimate_constant_p): New function.
8127         (mn10300_case_values_threshold): Make static.
8128         (mn10300_hard_regno_mode_ok): New function.
8129         (mn10300_modes_tieable): New function.
8130         (mn10300_select_cc_mode): New function.
8131         * config/mn10300/predicates.md (impossible_plus_operand): Define.
8132         * config/mn10300/mn10300-protos.h: Tidy.
8133         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
8134         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
8135         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
8136         with clobbers or sets of CC_REG.
8137         (CC_REG): Define.
8138         (mov*): Remove use of CLR instruction.
8139         (cbranch_si4_<code>): New pattern/split.
8140         (integer_conditional_branch): New pattern.
8141         (cbranch_sf4_<code>): New pattern/split.
8142         (float_conditional_branch): New pattern.
8143         (casesi): Use addsi3 pattern instead of movsi pattern to add and
8144         move a value at the same time.
8145         (cc0 peepholes): Remove.
8147 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
8149         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
8150         on RTX_FRAME_RELATED_P insns and the insn to which
8151         NOTE_INSN_EPILOGUE_BEG is attached.
8152         * sched-vis.c (print_value): Allow NULL value.
8154 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
8156         PR rtl-optimization/45570
8157         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
8158         assert that we are pipelining outer loops.  Allow returning
8159         zero predecessors.
8161 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
8163         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
8164         (tidy_control_flow): Tidy vertical space.
8165         (sel_remove_bb): New variable idx.  Use it to remember the basic
8166         block index before deleting the block.
8167         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
8168         (sel_merge_blocks): ... here.
8169         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
8171 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
8173         * cse.c (is_dead_reg): Change into inline function that is not
8174         called through for_each_rtx.
8175         (set_live_p): Adjust caller.
8176         (insn_live_p): Don't reset DEBUG_INSNs here.
8177         (struct dead_debug_insn_data): New data.
8178         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
8179         (delete_trivially_dead_insns): If there is just one setter for the
8180         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
8181         and add DEBUG_INSN for it right before the removed setter and
8182         use the DEBUG_EXPR instead of the dead pseudo.
8184 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
8186         * et-forest.c (et_nca): Return NULL immediately when
8187         the dominance forest has disjoint components.
8189 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
8191         * ira.c (setup_class_hard_regs): Fix typo in indexing
8192         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
8194 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
8196         * graph.c (inbb): New variable.
8197         (start_bb): Set inbb to 1 if output is inside of a building block.
8198         (end_bb): Check if output is inside of a building block.
8200 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
8202         PR rtl-optimization/45912
8203         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
8204         regno of registers instead of their index to compute the alignment.
8206 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
8208         * config/i386/i386.c (ix86_build_const_vector): Check vector
8209         mode instead of scalar mode.
8210         (ix86_build_signbit_mask): Likewise.
8211         (ix86_expand_fp_absneg_operator): Updated.
8212         (ix86_expand_copysign): Likewise.
8213         (ix86_expand_int_vcond): Likewise.
8214         (ix86_emit_swdivsf): Likewise.
8215         (ix86_sse_copysign_to_positive): Likewise.
8216         (ix86_expand_sse_fabs): Likewise.
8217         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
8218         * config/i386/sse.md (copysign<mode>3): Likewise.
8219         (sse2_cvtudq2ps): Likewise.
8220         (vec_unpacku_float_hi_v4si): Likewise.
8221         (vec_unpacku_float_lo_v4si): Likewise.
8223         * config/i386/i386.c (ix86_builtins): Add
8224         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
8225         (bdesc_args): Likewise.
8226         (ix86_builtin_vectorized_function): Support
8227         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
8228         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
8229         and IX86_BUILTIN_CVTPS2DQ256.
8230         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
8232         * config/i386/sse.md (STORENT_MODE): New.
8233         (VEC_FLOAT_MODE): Likewise.
8234         (VEC_EXTRACT_MODE): Likewise.
8235         (*avx_cvtdq2pd256_2): Likewise.
8236         (vec_pack_trunc_v4df): Likewise.
8237         (vec_interleave_highv8sf): Likewise.
8238         (vec_interleave_lowv8sf): Likewise.
8239         (storent<mode>): Macroized.
8240         (<code><mode>2: absneg): Likewise.
8241         (copysign<mode>3): Likewise.
8242         (vec_extract<mode>): Likewise.
8244         PR target/44180
8245         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
8246         for V8SFmode.
8248 2010-10-13  Richard Guenther  <rguenther@suse.de>
8249             H.J. Lu  <hongjiu.lu@intel.com>
8251         * config/i386/sse.md (reduc_splus_v8sf): Add.
8252         (reduc_splus_v4df): Likewise.
8253         (vec_unpacks_hi_v8sf): Likewise.
8254         (vec_unpacks_lo_v8sf): Likewise.
8255         (*avx_cvtps2pd256_2): Likewise.
8256         (vec_unpacks_float_hi_v8si): Likewise.
8257         (vec_unpacks_float_lo_v8si): Likewise.
8258         (vec_interleave_highv4df): Likewise.
8259         (vec_interleave_lowv4df): Likewise.
8261 2010-10-13  Richard Guenther  <rguenther@suse.de>
8263         PR objc/45878
8264         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
8265         alone if there are no virtual methods.
8267 2010-10-13  Richard Henderson  <rth@redhat.com>
8269         * expr.c (build_personality_function): Take parameter LANG instead
8270         of parameter NAME.  Build the name based on the lang prefix and the
8271         unwind method in use.
8272         * tree.c (lhd_gcc_personality): Update call to
8273         build_personality_function.
8275 2010-10-13  Richard Guenther  <rguenther@suse.de>
8277         PR objc/45878
8278         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
8280 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
8282         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
8283         Canonicalize input operands of ASM_OPERANDS insns.
8285 2010-10-13  Richard Guenther  <rguenther@suse.de>
8287         PR tree-optimization/45788
8288         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
8289         EH update until fixup-cfg.
8291 2010-10-13  Julian Brown  <julian@codesourcery.com>
8293         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
8294         from CORE_REGS and GENERAL_REGS classes.
8295         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
8296         final constraint for register preferencing.
8298 2010-10-13  Richard Guenther  <rguenther@suse.de>
8300         PR tree-optimization/45970
8301         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
8302         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
8303         (stmt_kills_ref_p): Likewise.
8304         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
8306 2010-10-13  Richard Guenther  <rguenther@suse.de>
8308         PR tree-optimization/45982
8309         * tree-ssa-structalias.c (make_constraints_to): New function.
8310         (make_constraint_to): Implement in terms of make_constraints_to.
8311         (find_func_aliases): Properly make return values of pure/const
8312         functions escape if they assign to sth that is not a pointer.
8314 2010-10-13  Richard Guenther  <rguenther@suse.de>
8316         PR middle-end/45874
8317         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
8318         Fixup the CFG when EH was fixed up.
8320 2010-10-13  Ira Rosen  <irar@il.ibm.com>
8322         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
8323         Use operand's type for POINTER_PLUS_EXPR.
8325 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
8327         * c-parser.c (c_parser_for_statement): Initialize incr.
8329 2010-10-12  Xinliang David Li  <davidxl@google.com>
8331         PR tree-optimization/45972
8332         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
8333         with too many arguments.
8335 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
8337         PR fortran/45636
8338         * tree-ssa-forwprop.c: Include expr.h.
8339         (constant_pointer_difference, simplify_builtin_call): New functions.
8340         (tree_ssa_forward_propagate_single_use_vars): Call
8341         simplify_builtin_call on builtin calls.
8343 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
8345         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
8346         (*adddi3_extend_sp32): Likewise.
8347         (*subdi3_insn_sp32): Likewise.
8348         (*subdi3_extend_sp32): Likewise.
8349         (*negdi2_sp32): Use negative test for consistency.
8351 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
8353         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
8354         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8355         * config/fixed-bit.h: Likewise.
8356         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8357         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
8358         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
8359         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
8360         (DF_SIZE): Likewise.
8361         * doc/tm.texi: Regenerate.
8363 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
8365         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
8366         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
8367         (*isel_reversed_unsigned_<mode>): New.
8368         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
8369         as valid comparisons and adjust operands and output appropriately.
8370         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
8372 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
8374         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
8375         DATA_ALIGNMENT and add COND parameter. Update comments above.
8376         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
8377         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
8379 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
8381         PR bootstrap/45958
8382         * exec-tool.in: Support '-plugin' as the second option to the linker.
8384 2010-10-12  Richard Henderson  <rth@redhat.com>
8386         PR middle-end/45962
8387         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
8388         (expand_stack_vars): Assert large base allocated when used.
8390 2010-10-12  Richard Guenther  <rguenther@suse.de>
8392         * tree-ssa-structalias.c (get_constraint_for_1): Constants
8393         only point to nonlocal, not anything.
8395 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
8397         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
8398         unwind info for exceptions.
8400 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8402         PR testsuite/45851
8403         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
8404         Document optional target selector.
8406 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
8408         * flag-types.h: New.
8409         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
8410         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
8411         options.h.
8412         (OPTIONS_H): Define.
8413         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
8414         of options.h.
8415         * configure.ac (tm_include_list): Include options.h not flags.h.
8416         * configure: Regenerate.
8417         * flags.h: Include flag-types.h.  Include options.h at top of file
8418         again.
8419         (enum debug_info_type, enum debug_info_level, enum
8420         debug_info_usage, enum symbol_visibility, struct visibility_flags,
8421         enum ira_algorithm, enum ira_region, enum excess_precision, enum
8422         graph_dump_types, enum stack_check_type,
8423         enum warn_strict_overflow_code): Move to flag-types.h
8424         * opth-gen.awk: Include flag-types.h in options.h.
8426 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
8428         * expr.c (store_expr): Share code for STRING_CST and
8429         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
8430         check if target is a MEM.
8432         * rtl.h: Include hashtab.h.
8433         (iterative_hash_rtx): New prototype.
8434         * rtl.c (iterative_hash_rtx): New function.
8435         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
8436         (output_loc_list): Return immediately if emitted is set, set it.
8437         (hash_loc_operands, hash_locs, hash_loc_list,
8438         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
8439         optimize_location_lists_1, optimize_location_lists): New function.
8440         (dwarf2out_finish): Call optimize_location_lists.
8441         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
8443 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8445         PR testsuite/45974
8446         Revert:
8447         * Makefile.in ($(lang_checks_parallel))
8448         ($(lang_checks_parallelized)): Use single quotes for
8449         $(RUNTESTFLAGS), to allow passing quoted content.
8451 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8453         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
8454         actual_oldval.  Use __builtin_expect.
8455         (SUBWORD_VAL_CAS): Likewise.
8457 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
8459         * recog.c (nonmemory_operand): Call immediate_operand for
8460         CONSTANT_P operands.
8462 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
8464         * config/i386/i386.md (movmem<mode>): Macroize expander from
8465         movmem{si,di} using SWI48 mode iterator.
8466         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
8467         *strmovsi_rex_1 using P mode iterator.
8468         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
8469         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
8470         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
8471         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
8472         (setmem<mode>): Macroize expander from setmem{si,di} using
8473         SWI48 mode iterator.
8474         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
8475         *strsetsi_rex_1 using P mode iterator.
8476         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
8477         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
8478         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
8479         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
8480         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
8481         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
8482         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
8483         mode iterator.
8484         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
8485         *strlenqi_rex_1 using P mode iterator.
8487 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
8489         PR bootstrap/45445
8490         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
8491         static functions.
8492         (mark_ref_live, mark_ref_dead): Use them.
8493         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
8494         Save the original reg, and use the new functions.
8495         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
8496         changed.
8497         (check_and_make_def_conflict): Save the original reg.
8499 2010-10-11  Martin Jambor  <mjambor@suse.cz>
8501         PR middle-end/45699
8502         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
8503         thunks.
8505 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8507         * Makefile.in ($(lang_checks_parallel))
8508         ($(lang_checks_parallelized)): Use single quotes for
8509         $(RUNTESTFLAGS), to allow passing quoted content.
8511         PR bootstrap/35855
8512         * opt-functions.awk (BEGIN): New section.
8513         (lower, upper, digit, alnum): New variables.
8514         (static_var, opt_sanitized_name): Use alnum instead of character
8515         classes, for non-C locale.
8516         * optc-gen.awk: Likewise.
8517         * opth-gen.awk: Likewise.
8519 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
8521         * target.def (preferred_reload_class): New hook.
8522         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
8523         * doc/tm.texi: Regenerate.
8524         * targhooks.c (default_preferred_reload_class): New function.
8525         * targhooks.h (default_preferred_reload_class): Declare.
8526         * reload.c (find_dummy_reload): Change preferred_class variable type
8527         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
8528         target hook.
8529         (find_reloads): Change goal_alternative array type from int to
8530         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
8531         (push_reload, find_reloads_address_part): Use
8532         TARGET_PREFERRED_RELOAD_CLASS target hook.
8533         * reload1.c (emit_input_reload_insns): Ditto.
8534         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
8535         hook. Change rclass argument and secondary_class variable types from
8536         'enum reg_class' to reg_class_t.
8538         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
8539         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
8540         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
8541         Change regclass argument and result types from enum reg_class to
8542         reg_class_t.
8543         (TARGET_PREFERRED_RELOAD_CLASS): Define.
8545 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
8547         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
8548         in masking operations.
8549         (simplify_const_unary_operation): Likewise.
8550         (simplify_binary_operation_1): Likewise.
8551         (simplify_const_binary_operation): Likewise.
8552         (simplify_const_relational_operation): Likewise.
8553         (simplify_ternary_operation): Likewise.
8554         (simplify_immed_subreg): Likewise.
8556 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8558         PR middle-end/45862
8559         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
8560         (TARGET_SUPPORTS_WEAK): New.
8561         * doc/tm.texi: Regenerate.
8562         * defaults.h (SUPPORTS_WEAK): Update comment.
8563         (TARGET_SUPPORTS_WEAK): New.
8564         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
8565         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
8566         SUPPORTS_WEAK.
8567         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
8568         make_decl_one_only): Likewise.
8569         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
8570         TARGET_SUPPORTS_WEAK.
8571         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
8572         instead of SUPPORTS_WEAK.
8574 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8576         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
8578 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
8580         * vec.h (VEC_qsort): Define.
8581         * dbxout.c (output_used_types): Use it.
8582         * df-scan.c (df_sort_and_compress_refs): Likewise.
8583         (df_sort_and_compress_mws): Likewise.
8584         * genautomata.c (uniq_sort_alt_states): Likewise.
8585         (evaluate_equiv_classes): Likewise.
8586         (output_trans_table): Likewise.
8587         (output_state): Likewise.
8588         * gimplify.c (compare_case_labels): Likewise.
8589         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
8590         * ipa.c (build_cdtor_fns): Likewise.
8591         * lto.c (lto_wpa_write_files): Likewise.
8592         * sel-sched.c (fill_vec_av_set): Likewise.
8593         * tree-predcom.c (determine_roots_comp): Likewise.
8594         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
8595         (splice_param_accesses): Likewise.
8596         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
8597         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
8598         (reassociate_bb): Likewise.
8599         * tree-ssa-sccvn.c (sort_scc): Likewise.
8600         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
8602 2010-10-11  Ian Lance Taylor  <iant@google.com>
8604         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
8605         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
8606         TREE_THIS_NOTRAP when appropriate.
8607         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
8608         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
8609         newly created MEM_REF.
8611 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
8613         Nathan Froyds patch to hooks FUNCTION_ARG etc.
8614         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
8615         (picochip_incoming_function_arg): Delete.
8616         (picochip_arg_advance): Delete.
8617         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
8618         (FUNCTION_INCOMING_ARG): Delete.
8619         (FUNCTION_ARG_ADVANCE): Delete.
8620         * config/picochip/picochip.c (picochip_function_arg): Take a
8621         const_tree and a bool.
8622         (picochip_incoming_function_arg): Likewise.
8623         (picochip_arg_advance): Likewise.
8624         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
8625         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8627 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8629         PR middle-end/45955
8630         * ipa.c (build_cdtor): Delete endless loop.
8632 2010-10-07  Andi Kleen  <ak@linux.intel.com>
8634         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
8635         checksum-options.
8636         (checksum-options): Add.
8637         (cc1-dummy): Remove.
8638         (cc1-checksum): Change to run checksum over object files
8639         and options only.
8640         * dummy-checksum.c: Remove.
8641         * genchecksum.c: Update copyright.
8642         (usage): Allow multiple arguments.
8643         (BLOCKSIZE): Add.
8644         (dosum): Change for incremental checksum. Remove C output.
8645         (main): Iterate over all argument files. Add C output.
8647 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
8649         * params.c (set_param_value_internal): New.
8650         (set_param_value): Use set_param_value_internal.
8651         (maybe_set_param_value, set_default_param_value): New.
8652         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
8653         (maybe_set_param_value, set_default_param_value): Declare.
8654         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
8655         * config/i386/i386.c (ix86_option_override_internal): Use
8656         maybe_set_param_value.
8657         * config/ia64/ia64.c (ia64_option_default_params,
8658         TARGET_OPTION_DEFAULT_PARAMS): New.
8659         (ia64_option_optimization): Move some code to
8660         ia64_option_default_params.
8661         * config/picochip/picochip.c (picochip_option_override): Use
8662         maybe_set_param_value.
8663         * config/rs6000/rs6000.c (rs6000_option_default_params,
8664         TARGET_OPTION_DEFAULT_PARAMS): New.
8665         (rs6000_option_override_internal): Use maybe_set_param_value.
8666         (rs6000_option_optimization): Move some code to
8667         rs6000_option_default_params.
8668         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
8669         * config/sh/sh.c (sh_option_default_params,
8670         TARGET_OPTION_DEFAULT_PARAMS): New.
8671         (sh_option_optimization): Move some code to sh_option_default_params.
8672         * config/sparc/sparc.c (sparc_option_override): Use
8673         maybe_set_param_value.
8674         * config/spu/spu.c (spu_option_default_params,
8675         TARGET_OPTION_DEFAULT_PARAMS): New.
8676         (spu_option_optimization): Move some code to spu_option_default_params.
8677         (spu_option_override): Use maybe_set_param_value.
8678         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
8679         * doc/tm.texi: Regenerate.
8680         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
8681         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
8682         compiler_params.
8683         (default_options_optimization): Use maybe_set_param_value.
8684         (finish_options): Use maybe_set_param_value.
8685         * target.def (target_option.default_params): New hook.
8686         * toplev.c (general_init): Call targetm.target_option.default_params.
8688 2010-10-11  Ira Rosen  <irar@il.ibm.com>
8690         PR tree-optimization/45902
8691         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
8692         vector type for constants, unless it's a pointer.
8694 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8696         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
8698 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
8700         PR target/45870
8701         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
8702         (ix86_delegitimize_address): Use it.
8704 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
8706         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
8708 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
8710         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
8711         to cum struct in the call to function_arg_advance.
8712         (alpha_function_arg_advance): Mark named as unused.
8714 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
8716         * config/mips/mips.c (mips_handle_option): Make "value" with
8717         ATTRIBUTE_UNUSED.
8719 2010-10-09  Richard Henderson  <rth@redhat.com>
8721         PR rtl-opt/33721
8722         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
8723         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
8724         required_align, tidy the code a bit.  Emit split_stack code in the
8725         right place.  Mark the return value with the alignment properly.
8726         * expr.h (allocate_dynamic_stack_space): Update decl.
8727         * builtins.c (expand_builtin_apply): Update call to
8728         allocate_dynamic_stack_space.
8729         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
8730         * calls.c (initialize_argument_information): Update call to
8731         allocate_dynamic_stack_space.
8732         (expand_call): Likewise.
8734         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
8735         Don't update_stack_alignment here.
8736         (alloc_stack_frame_space): Make ALIGN unsigned.
8737         (stack_var_cmp): Sort by alignment too.
8738         (partition_stack_vars): Don't merge large and small alignment vars.
8739         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
8740         Take care when BASE is not virtual_stack_vars_rtx.
8741         (expand_stack_vars): Allocate dynamic stack space for large
8742         alignment variables.
8743         (expand_one_stack_var): Update all to expand_one_stack_var_at.
8744         (defer_stack_allocation): True for large alignment vars.
8745         (update_stack_alignment): Merge into ...
8746         (expand_one_var): ... here.
8747         (gimple_expand_cfg): Place code from expand_stack_vars.
8749 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8751         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8752         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
8753         (pdp11_function_arg_advance): New function.
8754         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8756 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8758         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
8759         * libgcc2.c: Likewise.
8761 2010-10-09  Richard Guenther  <rguenther@suse.de>
8763         PR lto/45956
8764         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
8765         Properly check if a decl is an automatic var.
8767 2010-10-09  Richard Guenther  <rguenther@suse.de>
8769         PR lto/45947
8770         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
8772 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8774         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
8775         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8776         * config/mmix/mmix.c (mmix_function_arg): Rename to...
8777         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
8778         bool arguments.
8779         (mmix_function_arg): New function.
8780         (mmix_function_incoming_arg): New function.
8781         (mmix_function_arg_advance): New function.
8782         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
8783         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8785 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8787         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8788         * config/vax/vax.c (vax_function_arg): New function.
8789         (vax_function_arg_advance): New function.
8790         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8792 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8794         * config/pa/pa-protos.h (function_arg): Delete.
8795         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8796         * config/pa/pa.c (function_arg): Rename to...
8797         (pa_function_arg): ...this.  Make static.  Take a const_tree and
8798         a bool.
8799         (pa_function_arg_advance): New function.
8800         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8802 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8804         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8805         * config/m68k/m68k.c (m68k_function_arg): New function.
8806         (m68k_function_arg_advance): New function.
8807         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8809 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8811         * config/avr/avr-protos.h (function_arg): Delete.
8812         (function_arg_advance): Delete.
8813         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8814         * config/avr/avr.c (function_arg): Rename to...
8815         (avr_function_arg): ...this.  Make static.  Take a const_tree and
8816         a bool.
8817         (function_arg_advance): Rename to...
8818         (avr_function_arg_advance): ...this.  Make static.  Take a
8819         const_tree and a bool.
8820         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8822 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8824         * config/alpha/alpha-protos.h (function_arg): Delete.
8825         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8826         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
8827         * config/alpha/alpha.c (function_arg): Rename to...
8828         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
8829         a bool.  Delete TARGET_ABI_UNICOSMK code.
8830         (alpha_function_arg_advance): New function.
8831         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8833 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8835         * config/mep/mep-protos.h (mep_function_arg): Delete.
8836         (mep_function_arg_advance): Delete.
8837         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8838         * config/mep/mep.c (mep_function_arg): Make static.  Take a
8839         const_tree and a bool.
8840         (mep_function_arg_advance): Likewise.
8841         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8843 2010-10-09  Richard Guenther  <rguenther@suse.de>
8845         PR tree-optimization/45945
8846         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
8848 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
8850         PR tree-optimization/45612
8851         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
8852         Test LABEL_DECLs as well.  Fix formatting issues.
8853         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
8854         whose label is present in NON_SSA_VARS.
8855         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
8856         as well.  Fix formatting issues.
8857         (visit_bb): Fix typos and formatting issue.
8859 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8861         PR tree-optimization/45950
8862         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
8863         before initializing vno->op.
8865 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
8867         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
8868         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
8870 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
8872         PR target/45913
8873         * config/i386/i386.c (ix86_binary_operator_ok): Support
8874         "andhi/andsi/anddi" as a zero-extending move.
8876 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8878         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
8879         into a temporary array.
8881 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
8883         PR tree-optimization/45903
8884         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
8885         of {A,L}SHIFTRT of MEM.
8887 2010-10-08  Richard Guenther  <rguenther@suse.de>
8889         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8890         Re-construct BLOCK_VARS.
8891         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
8892         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8893         * tree.c (free_lang_data_in_block): Remove.
8894         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
8895         Do not touch the BLOCK tree.
8896         * expr.c (expand_expr_real_1): Allow externals.
8898 2010-10-08  Richard Guenther  <rguenther@suse.de>
8900         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
8901         Do not output BLOCK_SUBBLOCKS.
8902         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
8903         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
8904         Re-construct BLOCK_SUBBLOCKS of parent block.
8905         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
8906         for BINFO_BASE_ACCESSES.
8908 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
8910         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
8911         (TREE_H): Include $(FLAGS_H) instead of options.h.
8912         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
8913         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
8914         * common.opt (flag_complex_method, flag_evaluation_order,
8915         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
8916         Variable declarations.
8917         * configure.ac (tm_include_list): Include flags.h instead of options.h.
8918         * configure: Regenerate.
8919         * flags.h: Condition out contents for target libraries.  Include
8920         options.h at end of file.
8921         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
8922         flag_evaluation_order, flag_warn_unused_result): Remove.
8923         * gcc.c (main): Intialize global_options with global_options_init.
8924         * langhooks-def.h (lhd_init_options_struct): Declare.
8925         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
8926         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
8927         * langhooks.c (lhd_init_options_struct): New.
8928         * langhooks.h (struct lang_hooks): Add init_options_struct.
8929         Update comment on init_options.
8930         * optc-gen.awk: Generate initializer for global_options_init, not
8931         global_options.
8932         * opth-gen.awk: Condition out structure declarations for target
8933         libraries.  Declare global_options_init.
8934         * opts-common.c: Include flags.h instead of options.h.
8935         * opts.c (flag_warn_unused_result): Remove.
8936         (read_cmdline_options): Take gcc_options parameters.  Pass them to
8937         read_cmdline_option.
8938         (initial_lang_mask, initial_min_crossjump_insns,
8939         initial_max_fields_for_field_sensitive,
8940         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
8941         (init_options_once): New.  Split out of decode_options.
8942         (init_options_struct): New.  Split out of decode_options.
8943         (decode_cmdline_options_to_array_default_mask): New.
8944         (default_options_optimization): New.  Split out of decode_options.
8945         (decode_options): Move most code to other functions.  Update call
8946         to read_cmdline_options.
8947         (finish_options): New.  Split out of decode_options.
8948         * opts.h (decode_options): Add gcc_options parameters.
8949         (init_options_once, init_options_struct,
8950         decode_cmdline_options_to_array_default_mask): New.
8951         * toplev.c (flag_complex_method, flag_ira_algorithm,
8952         flag_ira_region, flag_evaluation_order): Remove.
8953         (general_init): Use global_options_init for initial flag values
8954         for global_dc.
8955         (toplev_main): Call init_options_once, init_options_struct,
8956         lang_hooks.init_options_struct,
8957         decode_cmdline_options_to_array_default_mask and
8958         lang_hooks.init_option before decode_options.  Update arguments to
8959         decode_options.
8960         * tree.h: Include flags.h instead of options.h.
8962 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8964         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8966 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8968         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
8969         Delete.
8970         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
8971         (FUNCTION_INCOMING_ARG): Delete.
8972         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
8973         (function_arg_slotno): Likewise.  Take bool arguments.
8974         (sparc_arg_partial_bytes): Update call to it.
8975         (function_arg): Rename to...
8976         (sparc_function_arg_1): ...this.  Take bool arguments.
8977         (sparc_function_arg, sparc_function_incoming_arg): New functions.
8978         (function_arg_advance): Rename to...
8979         (sparc_function_arg_advance): ...this.  Take bool argument.
8980         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
8981         (TARGET_FUNCTION_INCOMING_ARG): Define.
8983 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8985         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
8986         Delete.
8987         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8988         * config/bfin/bfin.c (function_arg_advance): Rename to...
8989         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
8990         and bool arguments.
8991         (function_arg): Rename to...
8992         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
8993         arguments.
8994         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8996 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8998         * config/score/score-protos.h (score_function_arg): Delete.
8999         (score_function_arg_advance): Delete.
9000         * config/score/score3.h (score3_function_arg_advance): Take a
9001         const_tree and a bool.
9002         (score3_function_arg): Likewise.
9003         * config/score/score7.h (score7_function_arg_advance): Likewise.
9004         (score7_function_arg): Likewise.
9005         * config/score/score3.c (score3_classify_arg): Likewise.
9006         (score3_function_arg_advance, score3_function_arg): Likewise.
9007         * config/score/score7.c (score7_classify_arg): Likewise.
9008         (score7_function_arg_advance, score7_function_arg): Likewise.
9009         * config/score/score.c (score_function_arg_advance): Likewise.
9010         (score_function_arg): Likewise.  De-const-ify `cum' argument.
9011         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9013 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9015         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
9016         (s390_function_arg): Delete.
9017         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9018         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
9019         (s390_function_arg_integer): Likewise.
9020         (s390_function_arg_advance): Make static.  Take a const_tree and
9021         a bool.
9022         (s390_function_arg): Likewise.
9023         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9025 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9027         * config/spu/spu-protos.h (spu_function_arg): Delete.
9028         * config/spu/spu.h (FUNCTION_ARG): Delete.
9029         (FUNCTION_ARG_ADVANCE): Move code to ...
9030         * config/spu/spu.c (spu_function_arg_advance): New function.
9031         (spu_function_arg): Make static.  Take a const_tree and a bool.
9032         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
9033         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9035 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9037         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9039 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9041         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
9042         (init_vn_nary_op_from_op): New function.
9043         (init_vn_nary_op_from_stmt): New function.
9044         (vn_nary_op_lookup_1): New function.
9045         (sizeof_vn_nary_op): New function.
9046         (alloc_vn_nary_op_noinit): New function.
9047         (alloc_vn_nary_op): New function.
9048         (vn_nary_op_insert_into): New function.
9049         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
9050         (vn_nary_op_lookup): Likewise.
9051         (vn_nary_op_lookup_stmt): Likewise.
9052         (vn_nary_op_insert_pieces): Likewise.
9053         (vn_nary_op_insert): Likewise.
9054         (vn_nary_op_insert_stmt): Likewise.
9055         (copy_nary): Likewise.
9056         (set_value_id_for_result): New function.
9057         (set_hashtable_value_ids): Call it.
9059 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9061         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9062         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
9064 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
9066         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
9067         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9069 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
9071         PR debug/45656
9072         * cse.c (cse_extended_basic_block): Preserve cc0 info across
9073         debug isnsn.  Skip them when searching for cc0 setter.
9074         (set_live_p): Skip debug insns when searching for cc0 user.
9076 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
9078         PR debug/45673
9079         PR debug/45604
9080         PR debug/45419
9081         PR debug/45408
9082         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
9083         type of MEM_REFs to INTEGER_CSTs.
9085 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
9087         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
9088         m68hc11_print_operand_address.
9090 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
9092         * builtins.c (rewrite_call_expr): Move code to...
9093         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
9094         (rewrite_call_expr_array): New function.
9095         (fold_builtin_sprintf_chk_1): New function.
9096         (fold_builtin_sprintf_chk): Call it.
9097         (gimple_fold_builtin_sprintf_chk): Likewise.
9098         (fold_builtin_snprintf_chk_1): New function.
9099         (fold_builtin_snprintf_chk): Call it.
9100         (gimple_fold_builtin_snprintf_chk): Likewise.
9101         (gimple_rewrite_call_expr): Delete.
9103 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
9105         * config.host: Update copyright year.
9107 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
9109         * config.host (host_lto_plugin_soname): New shell variable.
9110         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
9111         * config.in: Regenerate.
9112         * configure: Regenerate.
9113         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
9114         LTO plugin shared library.
9116 2010-10-07  Richard Henderson  <rth@redhat.com>
9118         * target.h (enum unwind_info_type): Move ...
9119         * coretypes.h: ... here.
9121 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
9123         * doc/objc.texi (Fast enumeration protocol): Mention that
9124         'unsigned int' can also be used instead of 'unsigned long' in
9125         countByEnumeratingWithState:objects:count:.
9127 2010-10-07  Martin Jambor  <mjambor@suse.cz>
9129         * tree-sra.c (struct access): New field grp_assignment_write.
9130         (dump_access): Dump grp_assignment_write.
9131         (build_accesses_from_assign): Set grp_assignment_write.
9132         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
9133         (mark_read_status): Renamed to mark_rw_status, individual values
9134         renamed too.
9135         (analyze_access_subtree): Changed type of mark_write to
9136         mark_read_status.  Fixed propagating of mark_read and
9137         mark_write.  Changed benefit estimate.  Updated comment.
9139 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
9141         PR Tree-Vect/45847
9142         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
9143         check for vectype_out returned by get_vectype_for_scalar_type().
9145 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
9147         PR target/45805
9148         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
9149         constraint, add register specifier in instruction template.
9150         (neon_vec_pack_trunc_<mode>): Likewise.
9151         (neon_vec_<US>mult_<mode>): Add register specifier to
9152         instruction template.
9154 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
9156         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
9157         cygwin2.o.
9158         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
9159         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
9160         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
9161         (cygwin2.o): Likewise.
9162         * config/i386/cygwin1.c: Delete file.
9163         * config/i386/cygwin2.c: Likewise.
9164         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
9165         make all {%!mno-cygwin} ones unconditional.
9166         (STARTFILE_SPEC): Likewise.
9167         (REAL_LIBGCC_SPEC): Likewise.
9168         (LIB_SPEC): Likewise.
9169         (CXX_WRAP_SPEC): Likewise.
9170         (LINK_SPEC): Likewise.
9171         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
9172         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
9173         (cygwin_gplusplus_include_dir): Delete now-unused array.
9174         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
9175         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
9176         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
9177         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
9178         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
9179         (cygwin_local_include_dir): Delete now-unused array.
9180         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
9181         (cygwin_cross_include_dir): Delete now-unused array.
9182         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
9183         (cygwin_tool_include_dir): Delete now-unused array.
9184         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
9185         (cygwin_standard_include_dir): Delete now-unused array.
9186         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
9187         (GEN_CVT_ARRAY): Delete now-unused macro definition.
9188         (cvt_to_mingw): Delete now-unused array.
9189         (mingw_scan): Remove prototype of deleted function.
9190         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
9191         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
9192         * doc/invoke.texi (-mcygwin): Don't document removed option.
9193         (-mno-cygwin): Likewise.
9195 2010-10-07  Richard Guenther  <rguenther@suse.de>
9197         * machmode.h (mode_for_vector): Declare.
9198         * stor-layout.c (mode_for_vector): New function, split out from ...
9199         (layout_type): ... here.
9200         * tree-vectorizer.h (current_vector_size): Declare.
9201         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
9202         mask vector type is available.
9203         (get_vectype_for_scalar_type): Rename to ...
9204         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
9205         size argument.
9206         (get_vectype_for_scalar_type): New wrapper around
9207         get_vectype_for_scalar_type_and_size using current_vector_size.
9208         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
9209         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
9210         of vect_analyze_loop here.
9211         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
9212         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
9213         to autodetect.
9214         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
9215         V8SF to V8SI conversion builtin.
9217 2010-10-07  Richard Guenther  <rguenther@suse.de>
9219         * target.def (autovectorize_vector_sizes): New target hook.
9220         * targhooks.c (default_autovectorize_vector_sizes): New function.
9221         * targhooks.h (default_autovectorize_vector_sizes): Declare.
9222         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
9223         Document.
9224         * doc/tm.texi: Update.
9225         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
9226         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9228 2010-10-07  Richard Guenther  <rguenther@suse.de>
9230         * target.def (units_per_simd_word): Rename to ...
9231         (preferred_simd_mode): ... this.  Return mode instead of size.
9232         * targhooks.c (default_units_per_simd_word): Rename to ...
9233         (default_preferred_simd_mode): ... this.  Return word_mode.
9234         * targhooks.h (default_preferred_simd_mode): Declare.
9235         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
9236         (arm_preferred_simd_mode): ... this.  Re-implement.
9237         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
9238         (ix86_preferred_simd_mode): ... this.  Re-implement.
9239         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
9240         (sparc_preferred_simd_mode): ... this.  Re-implement.
9241         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
9242         (mips_preferred_simd_mode): ... this.  Re-implement.
9243         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
9244         (rs6000_preferred_simd_mode): ... this.  Re-implement.
9245         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
9246         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
9247         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
9248         * doc/tm.texi: Update.
9250 2010-10-07  Richard Guenther  <rguenther@suse.de>
9252         PR middle-end/45869
9253         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
9254         of pointers.
9256 2010-10-07  Alan Modra  <amodra@gmail.com>
9258         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
9259         rather than sign extension by hand.
9261 2010-10-07  Jan Hubicka  <jh@suse.cz>
9263         PR middle-end/45926
9264         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
9266 2010-10-07  Richard Guenther  <rguenther@suse.de>
9268         PR bootstrap/45914
9269         * configure.ac: Fix typo.
9270         * configure: Regenerated.
9272 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9274         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
9275         define_builtin_std where it's unnecessary.
9276         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
9278 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
9280         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
9281         * doc/tm.texi.in: Regenerate.
9282         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
9283         * targhooks.c (default_class_likely_spilled_p): Don't use the
9284         CLASS_LIKELY_SPILLED_P macro.
9286         * config/arm/arm.md: Update comment.
9288 2010-10-06  Jan Hubicka  <jh@suse.cz>
9290         * ipa.c (cgraph_remove_unreachable_nodes): External references can
9291         always be removed.
9292         (cgraph_externally_visible_p): We can not bring local comdats that
9293         are known to linker; fix handling of internal visibility.
9294         (function_and_variable_visibility): Likewise.
9296 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
9298         PR rtl-optimization/45394
9299         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
9300         (struct rtx_subst_pair): Remove AFTER field.
9301         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
9302         (propagate_for_debug): Remove MOVE parameter and adjust.
9303         (try_combine): In the special case where I2 is a PARALLEL, combine only
9304         destinations of SETs and set I2SRC to the I2 source.
9305         Adjust calls to propagate_for_debug throughout.
9306         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
9307         insns.
9309 2010-10-06  Olivier Hainque  <hainque@adacore.com>
9311         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
9312         switch on insn codes as sequence of ifs.
9314 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
9316         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
9317         be UI_NONE for picochip.
9318         (picochip_option_override): Do not disable exception flags.
9319         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
9320         Declare.
9322 2010-10-06  Richard Guenther  <rguenther@suse.de>
9324         * Makefile.in (regmove.o): Depend on $(TARGET_H).
9326 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
9328         Implemented fast enumeration for Objective-C.
9329         * c-parser.c (objc_could_be_foreach_context): New.
9330         (c_lex_one_token): Recognize RID_IN keyword in a potential
9331         Objective-C foreach context.
9332         (c_parser_declaration_or_fndef): Added parameter.  Accept
9333         Objective-C RID_IN keyword as terminating a declaration; in that
9334         case, return the declaration in the new parameter.
9335         (c_parser_extenral_declaration): Updated calls to
9336         c_parser_declaration_or_fndef.
9337         (c_parser_declaration_or_fndef): Same change.
9338         (c_parser_compound_statement_nostart): Same change.
9339         (c_parser_label): Same change.
9340         (c_parser_objc_methodprotolist): Same change.
9341         (c_parser_omp_for_loop): Same change.
9342         (c_parser_for_statement): Detect and parse Objective-C foreach
9343         statements.
9344         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
9345         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
9346         fast enumeration parsing code to turn off the c99 error but still
9347         perform checks on the loop declarations.
9348         * c-tree.h (check_for_loop_decls): Updated declaration.
9349         * doc/objc.texi: Document fast enumeration.
9351 2010-10-06  Nick Clifton  <nickc@redhat.com>
9353         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
9354         (MDR_REGNUM): Define.
9355         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
9356         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
9357         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
9358         (REGISTER_NAMES): Add MDR.
9359         (DWARF2_DEBUGGING_INFO): Define to 1.
9360         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
9361         (F): New function.  Sets RTX_FRAME_RELATED_P.
9362         (mn10300_gen_multiple_store): Use F.
9363         (expand_prologue): Use F.  Use gen_movsf() to push floating
9364         point registers.
9365         (expand_epilogue): Use gen_movsf() to pop floating point registers.
9366         (mn10300_option_override): Disable combine stack adjust pass.
9368 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
9370         PR target/45901
9371         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
9372         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
9374 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
9376         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
9377         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
9378         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
9379         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
9380         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
9381         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
9382         BUILT_IN_TOUPPER): Mark as leaf.
9384         PR middle-end/45838
9385         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
9386         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
9387         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
9388         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
9389         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
9390         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
9391         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
9393 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
9395         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
9396         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9397         (m68hc11_class_likely_spilled_p): New function.
9399 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
9401         * c-parser.c (c_parser_objc_method_definition): Updated comment.
9403 2010-10-05  Jan Hubicka  <jh@suse.cz>
9405         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
9406         Document.
9407         * opts.c (decode_options): Handle lto partitions.
9408         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
9409         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
9411 2010-10-05  Jan Hubicka  <jh@suse.cz>
9413         * cgraphunit.c (assemble_function): Output thunks and aliases before
9414         the function itself.
9416 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
9418         * config/picochip/picochip.c (picochip_option_override): Disable
9419         exception flags for picochip.
9421 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
9423         * opts-common.c (handle_option, handle_generated_option,
9424         read_cmdline_option, set_option): Add diagnostic_context
9425         parameter.  Update calls among these functions.
9426         (set_option): Don't use global_dc.
9427         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
9428         (decode_options): Pass global_dc to enable_warning_as_error.
9429         (common_handle_option): Pass global_dc to enable_warning_as_error.
9430         (enable_warning_as_error): Add diagnostic_context parameter.
9431         Document parameters.  Don't use global_dc.  Pass
9432         diagnostic_context parameter to handle_generated_option.
9433         * opts.h (set_option, handle_option, handle_generated_option,
9434         read_cmdline_option, enable_warning_as_error): Add
9435         diagnostic_context parameter.
9436         * Makefile.in (lto-opts.o): Update dependencies.
9437         * coretypes.h (struct diagnostic_context, diagnostic_context):
9438         Declare here.
9439         * diagnostic.h (diagnostic_context): Don't declare typedef here.
9440         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
9441         * langhooks-def.h (struct diagnostic_context): Don't declare here.
9442         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
9443         using diagnostic_context typedef.
9444         * langhooks.c (lhd_initialize_diagnostics): Declare using
9445         diagnostic_context typedef.
9446         * langhooks.h (struct diagnostic_context): Don't declare here.
9447         (initialize_diagnostics, print_error_function): Declare using
9448         diagnostic_context typedef.
9449         * lto-opts.c: Include diagnostic.h.
9450         (lto_reissue_options): Pass global_dc to set_option.  Pass
9451         DK_UNSPECIFIED not 0.
9452         * plugin.c (plugins_internal_error_function): Declare using
9453         diagnostic_context typedef.
9454         * plugin.h (struct diagnostic_context): Don't declare here.
9455         (plugins_internal_error_function): Declare using
9456         diagnostic_context typedef.
9458 2010-10-05  Olivier Hainque  <hainque@adacore.com>
9459             Nicolas Roche  <roche@adacore.com>
9461         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
9462         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
9464 2010-10-05  Ira Rosen  <irar@il.ibm.com>
9466         PR tree-optimization/45752
9467         * tree-vect-slp.c (vect_get_mask_element): Remove static
9468         variables, make them function arguments.
9469         (vect_transform_slp_perm_load): Pass new arguments to
9470         vect_get_mask_element.
9472 2010-10-05  Richard Guenther  <rguenther@suse.de>
9474         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
9475         (gimple_mod_pow2): Likewise.
9476         (gimple_mod_subtract): Likewise.
9477         (gimple_ic): Likewise.
9478         (gimple_stringop_fixed_value): Likewise.
9479         * tree-profile.c (tree_init_edge_profiler): Mark profile
9480         functions nothrow and leaf.
9481         (add_abnormal_goto_call_edges): Remove.
9482         (tree_gen_edge_profiler): Work on SSA form.
9483         (tree_gen_ic_profiler): Likewise.  Simplify.
9484         (do_tree_profiling): Update SSA form.
9485         (pass_tree_profile): Remove.
9486         (do_tree_profiling): Likewise.
9487         (gate_tree_profile_ipa): New function.
9488         (pass_ipa_tree_profile): New.
9489         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
9490         state of instrumented functions.
9491         * passes.c (init_optimization_passes): Remove early non-SSA
9492         inlining.  Move profiling after early optimizations.
9493         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
9494         (pass_ipa_early_inline): Likewise.
9495         * tree-pass.h (pass_ipa_early_inline): Remove.
9496         (pass_tree_profile): Likewise.
9497         (pass_ipa_tree_profile): Declare.
9499 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9500             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
9502         * config/s390/s390.c (z196_cost): New.
9503         (s390_handle_arch_option): Add -march=z196.
9504         (s390_option_override): Use the new cost function and use the z10
9505         defaults also for z196.
9506         (legitimate_reload_constant_p): Adjust comment.
9507         (legitimate_reload_fp_constant_p): New function.
9508         (s390_preferred_reload_class): Distingiush between FP and Int constants.
9509         (preferred_la_operand_p): Avoid la with index on z196.
9510         (s390_adjust_priority): Trigger also for z196.
9511         (s390_issue_rate): Issue rate for z196 is 3.
9512         (s390_z10_fix_long_loop_prediction): Rename to ...
9513         (s390_fix_long_loop_prediction): ... this.
9514         (s390_reorg): Apply the z10 adjustments also for z196.
9515         (s390_loop_unroll_adjust): Do this also for z196.
9516         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
9517         (enum processor_flags): Add PF_Z196.
9518         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
9519         (TARGET_CPU_Z196, TARGET_Z196): New macros.
9520         * config.gcc: Enable z196 for --with-arch.
9521         * config/s390/2817.md: New file.
9522         * config/s390/2084.md: New type for multiply and add.
9523         * config/s390/2097.md: Likewise.
9524         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
9525         (UNSPECV_ATOMIC_OP): New constants.
9526         (fmadddf, fmaddsf): New values for type attribute.
9527         (z196prop): New insn attribute.
9528         (cpu, cpu_facility): Add z196.
9529         (ATOMIC_Z196): New code iterator.
9530         (noxa): New code attribute.
9531         (gk): New mode attribute.
9532         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
9533         Support load zero for fp constants.
9534         (fixuns_truncdddi2, fixuns_trunctddi2)
9535         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
9536         for z196.
9537         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
9538         (popcounthi2, popcountqi2): New expander.
9539         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
9540         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
9541         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
9542         insn definition.
9543         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
9544         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
9545         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
9546         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
9547         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
9548         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
9549         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
9550         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
9551         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
9552         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
9553         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
9554         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
9555         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
9556         Support new z196 instructions.
9558 2010-10-05  Richard Guenther  <rguenther@suse.de>
9560         PR middle-end/45877
9561         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
9562         case where gimplification optimizes away the stmt.
9564 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
9566         PR debug/45849
9567         * var-tracking.c (strip_pointer_flags): New function.
9568         (emit_note_insn_var_location): If rtx_equal_p check failed,
9569         retry on locations simplified with simplify_replace_fn_rtx
9570         and strip_pointer_flags as its callback.
9572 2010-10-04  Jan Hubicka  <jh@suse.cz>
9574         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
9575         (can_refer_decl_in_current_unit_p): ... this one; reverse return
9576         value; handle comdats too.
9577         (canonicalize_constructor_val): Use it; handle function_decls
9578         correctly.
9579         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9580         * gimple.c (get_base_address): Accept all kinds of decls.
9582 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9584         * flags.h (g_switch_value, g_switch_set): Remove.
9585         * opts.c (g_switch_value, g_switch_set): Remove.
9586         * config/g.opt (G): Add Var(g_switch_value).
9587         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
9588         (alpha_option_override): Check global_options_set.x_g_switch_value
9589         instead of g_switch_set.
9590         (alpha_in_small_data_p): Remove cast in comparison with
9591         g_switch_value.
9592         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
9593         g_switch_value to unsigned HOST_WIDE_INT.
9594         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
9595         with g_switch_value.
9596         (frv_handle_option): Don't handle -G here.
9597         (frv_option_override): Check global_options_set.x_g_switch_value
9598         instead of g_switch_set.  Don't modify g_switch_set.
9599         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
9600         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
9601         g_switch_value to unsigned HOST_WIDE_INT.
9602         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
9603         (ia64_option_override): Check global_options_set.x_g_switch_value
9604         instead of g_switch_set.
9605         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
9606         Remove.
9607         (lm32_in_small_data_p): Remove cast in comparison with
9608         g_switch_value.
9609         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
9610         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
9611         HOST_WIDE_INT.
9612         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
9613         (m32r_init): Check global_options_set.x_g_switch_value instead of
9614         g_switch_set.
9615         (m32r_in_small_data_p): Remove cast in comparison with
9616         g_switch_value.
9617         (m32r_file_start): Format g_switch_value with %d.
9618         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
9619         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
9620         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
9621         handle -G here.
9622         (microblaze_option_override): Check
9623         global_options_set.x_g_switch_value instead of g_switch_set.
9624         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
9625         (mips_option_override): Check global_options_set.x_g_switch_value
9626         instead of g_switch_set.
9627         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
9628         (rs6000_file_start): Format g_switch_value with %d.
9629         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
9630         comparisons with g_switch_value.
9631         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
9632         global_options_set.x_g_switch_value instead of g_switch_set.
9633         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
9634         global_options_set.x_g_switch_value instead of g_switch_set.
9635         * config/score/score.c (score_handle_option): Don't handle -G here.
9636         * config/score/score3.c (score3_option_override): Check
9637         global_options_set.x_g_switch_value instead of g_switch_set.
9638         * config/score/score7.c (score7_option_override): Check
9639         global_options_set.x_g_switch_value instead of g_switch_set.
9641 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
9643         * common.opt (fira-coalesce): Remove.
9645         * doc/invoke.texi (flag_ira_coalesce): Remove.
9647         * ira-color.c (allocno_coalesced_p): Move before
9648         copy_freq_compare_func.
9649         processed_coalesced_allocno_bitmap): Ditto.
9650         (update_conflict_hard_regno_costs): Don't use
9651         ALLOCNO_FIRST_COALESCED_ALLOCNO.
9652         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
9653         (assign_hard_reg): Assume no coalesced allocnos.
9654         (get_coalesced_allocnos_attributes): Remove.
9655         (bucket_allocno_compare_func): Assume no coalesced allocnos.
9656         (push_allocno_to_stack): Ditto.
9657         (remove_allocno_from_bucket_and_push): Use
9658         ira_print_expanded_allocno instead of print_coalesced_allocno.
9659         (push_allocnos_to_stack): Assume uncoalesced allocnos.
9660         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
9661         all_conflicting_hard_regs.
9662         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
9663         (setup_allocno_left_conflicts_size): Ditto.
9664         (put_allocno_into_bucket): Ditto.
9665         (copy_freq_compare_func): Remove.
9666         (copy_freq_compare_func, merge_allocnos): Move before
9667         coalesced_pseudo_reg_freq_compare.
9668         coalesced_allocno_conflict_p): Ditto.
9669         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
9670         parameter.  Assume it true.
9671         (color_allocnos): Assume uncoalesced allocnos.  Use
9672         ira_print_expanded_allocno instead of print_coalesced_allocno.
9673         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
9674         parameter.
9676         * ira.c: Remove comment about coalescing.
9678 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9680         * config/mips/mips.h (target_flags_explicit): Declare for
9681         GENERATOR_FILE.
9683 2010-10-04  Andi Kleen  <ak@linux.intel.com>
9685         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
9686         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
9688 2010-10-04  Matthias Klose  <doko@ubuntu.com>
9690         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
9691         multilib osdirname if it exists.
9692         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
9694 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
9696         PR middle-end/45876
9697         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
9698         arg0's type or its unsigned counterpart as utype.  Convert
9699         arg1 to utype unconditionally.
9701 2010-10-04  Julian Brown  <julian@codesourcery.com>
9703         * expr.c (expand_assignment): Add assertion to prevent emitting
9704         null rtx for movmisalign pattern.
9705         (expand_expr_real_1): Likewise.
9706         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
9707         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
9708         (arm_vector_alignment_reachable): New.
9709         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
9710         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
9711         (arm_print_operand): Include alignment qualifier in %A.
9712         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
9713         (movmisalign<mode>): New expander.
9714         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
9715         insn patterns.
9717 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
9719         * optc-gen.awk: Define global_options_set.  Don't define
9720         target_flags_explicit.
9721         * opth-gen.awk: Declare global_options_set.  Define
9722         target_flags_explicit as macro.
9723         * opts-common.c (handle_option): Take opts_set and generated_p
9724         parameters.
9725         (handle_generated_option, read_cmdline_option, set_option): Take
9726         opts_set parameter.
9727         (set_option): Use opts_set instead of hardcoding target_flags and
9728         target_flags_explicit.
9729         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
9730         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
9731         flag_value_profile_transformations_set, flag_peel_loops_set,
9732         flag_branch_probabilities_set, flag_inline_functions_set,
9733         flag_ipa_cp_set, flag_ipa_cp_clone_set,
9734         flag_predictive_commoning_set, flag_unswitch_loops_set,
9735         flag_gcse_after_reload_set): Remove.
9736         (common_handle_option, lang_handle_option, target_handle_option):
9737         Take opts_set parameter.  Assert that it is &global_options_set.
9738         (common_handle_option): Don't set _set variables.  Check opts_set
9739         instead of such variables.
9740         (enable_warning_as_error): Pass &global_options_set to
9741         handle_generated_option.
9742         * opts.h (cl_option_handler_func.handler, set_option,
9743         handle_option, handle_generated_option, read_cmdline_option): Add
9744         opts_set parameters.
9745         (handle_option): Add generated_p parameter.
9746         * config/i386/i386.c (ix86_function_specific_save,
9747         ix86_function_specific_restore): Updat for renaming of
9748         target_flags_explicit field.
9749         * config/i386/i386.opt (target_flags_explicit): Rename to
9750         ix86_target_flags_explicit.
9751         * config/ia64/ia64.c (ia64_override_options_after_change): Check
9752         global_options_set.x_flag_selective_scheduling and
9753         global_options_set.x_flag_selective_scheduling2, not
9754         sel_sched_switch_set.
9755         * flags.h (sel_sched_switch_set,
9756         flag_speculative_prefetching_set): Remove.
9757         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
9758         that it is &global_options_set.
9759         (process_command): Pass &global_options_set to read_cmdline_option.
9760         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
9761         set_option.
9762         * toplev.c (target_flags_explicit): Remove.
9764 2010-10-04  Jan Hubicka  <jh@suse.cz>
9766         PR middle-end/45871
9767         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
9768         use get_ref_base_and_offset to handle references.
9769         (fold_const_aggregate_ref): Update.
9771 2010-10-04  Martin Jambor  <mjambor@suse.cz>
9773         PR tree-optimization/45572
9774         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
9775         ipa_check_create_node_params.
9776         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
9778 2010-10-04  Yao Qi  <yao@codesourcery.com>
9780         * doc/passes.texi: Clean up.
9782 2010-10-03  Ian Lance Taylor  <iant@google.com>
9784         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
9785         referring to a field using a typedef name.
9786         (find_anonymous_field_with_type): New static function.
9787         (convert_to_anonymous_field): New static function.
9788         (convert_for_assignment): If -fplan9-extensions, permit converting
9789         pointer to struct to pointer to anonymous field.
9790         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
9791         (is_duplicate_field): New static function.
9792         (detect_field_duplicates_hash): If -fplan9-extensions, check for
9793         typedef names duplicating field names.
9794         (detect_field_duplicates): Likewise.
9795         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
9796         (C Dialect Options): Document -fplan9-extensions.
9797         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
9799 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9801         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
9802         revision 164914.
9803         (vect_create_data_ref_ptr): Likewise.
9804         * tree-vect-stmts.c (vectorizable_store): Likewise.
9805         (perm_mask_for_reverse): Likewise.
9806         (reverse_vec_elements): Likewise.
9807         (vectorizable_load): Likewise.
9809 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9811         * cppbuiltin.c: New file.
9812         * cppbuiltin.h: New file.
9813         * Makefile.in: Take into account cppbuiltin.{h,c}.
9815 2010-10-03  Andi Kleen  <ak@linux.intel.com>
9817         * lto-cgraph.c (input_cgraph): Check for missing sections.
9819 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
9821         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
9822         to nonimmediate_operand.  Force operand 2 to register when allowed.
9823         (*<shiftrt_insn><mode>3_mask): Ditto.
9824         (*<rotate_insn><mode>3_mask): Ditto.
9826 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9828         PR tree-optimization/45720
9829         PR tree-optimization/45764
9830         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
9831         Don't accept backwards consecutive accesses.
9832         (vect_create_data_ref_ptr): Disallow negative steps.
9834         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
9835         (perm_mask_for_reverse): Removed.
9836         (reverse_vec_elements): Likewise.
9837         (vectorizable_load): Don't handle negative steps.
9839 2010-10-02  Jan Hubicka  <jh@suse.cz>
9841         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
9842         call destination is known.
9844 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9846         PR target/45820
9847         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
9848         earlier.
9850 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9852         * doc/install.texi (Configuration): Document build_configargs,
9853         host_configargs, target_configargs.
9855 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
9857         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
9858         (*<shiftrt_insn><mode>3_mask): Ditto.
9859         (*<rotate_insn><mode>3_mask): Ditto.
9861 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
9863         PR tree-optimization/44716
9864         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
9865         (HOT_TEXT_SECTION_NAME): Define.
9867 2010-10-01  Nick Clifton  <nickc@redhat.com>
9869         * common.opt: Add -fcombine-stack-adjustments.
9870         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
9871         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
9872         flag_combine_stack_adjustments.
9873         * doc/invoke.texi: Document the new option.
9875 2010-10-01  Richard Guenther  <rguenther@suse.de>
9877         PR tree-optimization/45854
9878         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
9880 2010-10-01  Anthony Green  <green@moxielogic.com>
9882         * config.gcc: Fix moxie-*-rtems* configuration.
9884 2010-10-01  Richard Guenther  <rguenther@suse.de>
9886         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
9887         (gen_decl_die): Likewise.
9889 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9891         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
9892         to the function code for SPU MD builtins.
9893         (spu_expand_builtin): Update.
9894         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
9896 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9898         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
9899         sjlj_except_unwind_info.
9901 2010-10-01  Tristan Gingold  <gingold@adacore.com>
9903         * configure.ac: Define the nop insn for avr*-*-*
9904         * configure: Regenerate.
9906 2010-10-01  Alan Modra  <amodra@gmail.com>
9908         PR target/45807
9909         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
9910         extend toc_restore_insn.
9912 2010-09-30  Richard Guenther  <rguenther@suse.de>
9914         PR tree-optimization/43959
9915         * function.c (gimplify_parameters): Use create_tmp_reg instead of
9916         create_tmp_var.
9918 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
9920         * config/sh/sh.c (sh_expand_prologue): Set
9921         current_function_static_stack_size.
9923 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9925         * configure.ac: Check for Solaris 8 ld with .hidden support.
9926         * configure: Regenerate.
9928 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9930         PR middle-end/45758
9931         * graphite.c (graphite_initialize): Call scev_reset.
9933 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9935         * sese.h (scev_analyzable_p): Return false for real or floating
9936         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
9938 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9940         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
9941         and ps.
9942         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
9943         domain.
9944         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
9945         Do not allocate ub_expr, it is passed in initialized.
9947 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9949         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
9950         (build_cloog_prog): Dump CLooG input file when
9951         flag_graphite_dump_cloog is set.  This is disabled on trunk.
9952         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
9954 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9956         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
9957         verify_dominators for CDI_POST_DOMINATORS.
9958         * sese.h: Remove comment about CDI_POST_DOMINATORS.
9959         (recompute_all_dominators): Remove call to free_dominance_info
9960         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
9961         for CDI_POST_DOMINATORS.
9963 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9965         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
9966         over pbb_dim_iter_domain.
9968 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9970         * graphite-flattening.c: Fix comments.
9972 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9974         * Makefile.in (OBJS-common): Add graphite-flattening.o.
9975         (graphite-flattening.o): New rule.
9976         * common.opt (floop-flatten): New flag.
9977         * doc/invoke.texi (-floop-flatten): Documented.
9978         * graphite-flattening.c: New.
9979         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
9980         * graphite-poly.h (flatten_all_loops): Declared.
9981         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
9982         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
9983         is set, also set flag_graphite.
9985 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9987         * graphite-poly.c (cloog_checksum): New.
9988         * graphite-poly.h (cloog_checksum): Declared.
9990 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9992         * graphite-poly.c (pbb_number_of_iterations): Removed.
9993         (pbb_number_of_iterations_at_time): Correctly compute the number
9994         of iterations in the transformed loop.
9995         * graphite-poly.h (pbb_number_of_iterations): Removed.
9997 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9999         * graphite-poly.h (lst_update_scattering_seq): Removed.
10000         (lst_update_scattering): Correctly handle outermost loop dewey
10001         renumbering.
10003 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10005         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
10006         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
10007         * graphite-poly.h (lst_niter_for_loop): New.
10009 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10011         * graphite-poly.c (apply_poly_transforms): Do not abort when the
10012         transform read from disk is not legal.  Call fatal_error instead.
10014 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10016         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
10017         (print_scop_header): Removed.  Inlined in the only call place...
10018         (print_scop): ... here.
10020 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10022         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
10024 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10026         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
10028 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10030         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
10031         (dot_deps_stmt): Same.
10032         * graphite-poly.c (dot_lst): Same.
10034 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10036         * graphite-blocking.c (scop_do_strip_mine): Do not call
10037         graphite_legal_transform.
10038         (scop_do_block): Same.
10040 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
10042         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
10043         description.
10045 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10047         * tree-scalar-evolution.c (instantiate_array_ref): New.
10048         (instantiate_scev_r): Also handle ARRAY_REFs.
10050 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10052         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10053         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
10054         RESULT_DECL, and FIELD_DECL.  Return false for an
10055         SSA_NAME_IS_DEFAULT_DEF.
10056         (compute_scalar_evolution_in_loop): Do not further analyze the
10057         scalar evolution when no_evolution_in_loop_p returns true.
10059 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10061         * tree-chrec.h (evolution_function_is_affine_p): Do not check
10062         whether CHREC_LEFT is invariant.  A function is affine when
10063         CHREC_RIGHT is invariant.
10065 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10067         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
10068         is_gimple_reg.
10069         (rewrite_degenerate_phi): Same.
10070         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
10072 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
10074         * graphite-scop-detection.c (graphite_can_represent_scev,
10075         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
10076         graphite_can_represent_loop): Remove outermost_loop.
10078 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10080         PR middle-end/45229
10081         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
10082         handle GIMPLE_CALLs with no LHS.
10084 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10086         * graphite-poly.c (init_graphite_out_file): New.
10087         (init_graphite_in_file): New.
10088         (apply_poly_transforms): Updated to enable reading and writing of
10089         multiple scop files.
10091 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
10093         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
10094         redundant checks.
10096 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10098         * graphite-clast-to-gimple.c (precision_for_value): Adjust
10099         computation of precision by 1.
10101 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10103         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
10104         (openscop_read_polyhedron_matrix): New.
10105         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
10106         (openscop_read_N_int): Same.
10107         * graphite-poly.c (openscop_read_N_int): New.
10108         (openscop_read_one_int): New.
10109         (openscop_read_N_string): New.
10110         (openscop_read_one_string): New.
10111         (openscop_read_powerset_matrix): New.
10112         (graphite_read_transforms): Remove.
10113         (graphite_read_scatt): New.
10114         (graphite_read_scop_file): New.
10115         (apply_poly_transforms): Updated to call graphite_read_scop_file.
10117 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10119         * graphite-poly.c: Change include order.
10121 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10123         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
10124         (cloog_matrix_nrows): New.
10126 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10128         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
10129         from matrix lines.
10130         * graphite-poly.c (openscop_print_scattering_function_1): Same.
10131         (print_scattering_function_1): Same.
10132         (openscop_print_pbb_domain): Same.
10133         (openscop_print_scop_context): Same.
10134         (print_scop_context): Same.
10136 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
10138         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
10139         (openscop_print_pdr_polyhedron): Print pph.
10141 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10143         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
10144         priority signed types.
10146 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10148         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
10149         the call to lang_hooks.types.type_for_size.  Call
10150         build_nonstandard_integer_type.
10152 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
10154         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
10155         (openscop_print_polyhedron_matrix): New.
10156         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
10157         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
10158         (openscop_print_pdr_powerset): New.
10159         (openscop_print_powerset_matrix): New.
10160         (openscop_print_scattering_function_1): New.
10161         (print_scattering_function): Add support for scattering names and
10162         OpenScop format.
10163         (graphite_write_transforms): Remove.
10164         (print_pdr_access_layout): Updated to support OpenScop format.
10165         (print_pdr): Same.
10166         (openscop_print_pbb_domain): New.
10167         (print_pbb_body): Added a parameter to allow indicating that pbb_body
10168         is not provided.
10169         (print_pbb): Updated to call the new print_pbb_body.
10170         (openscop_print_scop_context): New.
10171         (print_scop_header): New.
10172         (print_scop): Updated to call print_scop_header.
10173         * graphite-poly.h: Document OpenScop format.
10175 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
10177         * config/cris/m32c.c (cris_memory_move_cost): New.
10178         (cris_register_move_cost): Make static. Change arguments type from
10179         enum reg_class to reg_class_t.
10180         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10181         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10182         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
10184 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
10186         PR target/45843
10187         * config/i386/i386.c (ix86_gimplify_va_arg): Use
10188         INTVAL (XEXP (slot, 1)) as prev_size.
10190 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
10192         PR target/45837
10193         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
10194         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
10195         defined.
10196         * config/rs6000/option-defaults.h (toplevel): Change #if
10197         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
10198         global option changes.
10200 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
10202         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
10204         PR tree-optimization/31261
10205         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
10206         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
10208 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10210         PR bootstrap/45796
10211         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
10212         special-casing for generators and turn into ...
10213         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
10214         rule, for better error messages in case of toplevel dependency errors.
10215         (genprog): Add hooks, rename to ...
10216         (genprogerr): ... this, and let genprog also contain check,
10217         checksum, condmd.
10218         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
10219         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
10220         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
10222 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
10223             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10225         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
10226         for GMP, MPFR and MPC.
10228 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10230         * config/sparc/sparc.opt (mimpure-text): Move ...
10231         * config/sol2.opt: ... here.  Correct description.
10232         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
10233         * doc/invoke.texi (Option Summary, SPARC Options): Move
10234         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
10235         (Option Summary, Solaris 2 Options): ... here.
10236         (Submodel Options, Solaris 2 Options): New menu entry.
10237         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
10238         (Solaris 2 Options): ... here.
10240 2010-09-30  Michael Eager  <eager@eagercon.com>
10242         * extend.texi (interrupt_handler): Add MicroBlaze to list.
10243         (save_volatiles): Describe option for MicroBlaze.
10244         * invoke.texi: Add MicroBlaze Options.
10245         * contrib.texi: Add acknowledgment.
10246         * md.texi: Add MicroBlaze d and z constraints.
10247         * install.texi: Add microblaze-*-elf.
10248         * configure.ac: Add microblaze-*-* to target list.
10249         * configure: Regenerate.
10250         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
10251         * config/microblaze/microblaze-protos.h: New.
10252         * config/microblaze/crti.s: New.
10253         * config/microblaze/predicates.md: New.
10254         * config/microblaze/linux.h: New.
10255         * config/microblaze/microblaze.md: New.
10256         * config/microblaze/constraints.md: New.
10257         * config/microblaze/crtn.s: New.
10258         * config/microblaze/microblaze.opt: New.
10259         * config/microblaze/microblaze-c.c: New.
10260         * config/microblaze/t-microblaze: New.
10261         * config/microblaze/microblaze.c: New.
10262         * config/microblaze/microblaze.h: New.
10264 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
10266         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
10267         parse @optional/@required and set the flags as appropriate.
10269 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
10271         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
10273 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
10275         * opt-functions.awk (static_var): Update comment.
10276         (var_ref): Return offsetof expression or -1, not variable address.
10277         * optc-gen.awk: Generate structure field initializers instead of
10278         static variables.  Expect -1 for missing variables instead of null
10279         pointer.  Add gcc_options parameters to generated functions.
10280         * opth-gen.awk: Generate structure fields for static variables.
10281         Add gcc_options parameters to generated functions.
10282         * common.opt (optimize, optimize_size): Add variables.
10283         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
10284         &global_options to cl_target_option_restore.
10285         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
10286         &global_options to cl_optimization_restore, cl_target_option_save
10287         and cl_target_option_restore.
10288         (ix86_set_current_function): Pass &global_options to
10289         cl_target_option_restore.
10290         * config/pdp11/pdp11.h (optimize): Remove.
10291         * config/rs6000/rs6000.h (optimize): Remove.
10292         * config/sh/sh.h (optimize): Remove.
10293         * config/xtensa/xtensa.h (optimize): Remove.
10294         * coretypes.h (struct gcc_options): Declare.
10295         * diagnostic.c (diagnostic_initialize): Initialize
10296         context->option_state.
10297         (diagnostic_report_diagnostic): Pass option_state to
10298         option_enabled hook.
10299         * diagnostic.h (diagnostic_context.option_enabled): Add void *
10300         parameter.
10301         (diagnostic_context.option_state): New field.
10302         * final.c (final_start_function, final, final_scan_insn): Rename
10303         optimize parameter to optimize_p.
10304         * flags.h (optimize, optimize_size): Remove.
10305         * function.c (invoke_set_current_function_hook): Pass
10306         &global_options to cl_optimization_restore.
10307         * gcc.c (driver_handle_option): Take gcc_options parameter.
10308         Assert that it is &global_options.
10309         (process_command): Pass &global_options to read_cmdline_option.
10310         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
10311         option_enabled.
10312         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
10313         &global_options to set_option.
10314         * opts-common.c (handle_option, handle_generated_option,
10315         read_cmdline_option, set_option): Take explicit gcc_options
10316         parameters.  Use option_flag_var.
10317         (option_flag_var): New.
10318         * opts.c (common_handle_option, lang_handle_option,
10319         target_handle_option): Take gcc_options parameter.  Assert that it
10320         is &global_options.
10321         (read_cmdline_options): Pass &global_options to read_cmdline_option.
10322         (print_filtered_help): Use option_flag_var.  Pass &global_options
10323         to option_enabled.
10324         (common_handle_option): Use option_flag_var.
10325         (option_enabled): Take opts parameter.  Use option_flag_var.
10326         (get_option_state): Take gcc_options parameter.  Use
10327         option_flag_var.  Pass gcc_options parameter to option_enabled.
10328         (enable_warning_as_error): Pass &global_options to
10329         handle_generated_option.
10330         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
10331         (cl_option_handler_func.handler): Take gcc_options parameter.
10332         (option_enabled, get_option_state, set_option, handle_option,
10333         handle_generated_option, read_cmdline_option): Take gcc_options
10334         parameters.
10335         * toplev.c (optimize, optimize_size): Remove.
10336         (print_switch_values): Pass &global_options to option_enabled.
10337         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
10338         to get_option_state.
10339         (general_init): Initialize global_dc->option_state.
10340         * tree.c (build_optimization_node): Pass &global_options to
10341         cl_optimization_save.
10342         (build_target_option_node): Pass &global_options to
10343         cl_target_option_save.
10345 2010-09-30  Martin Jambor  <mjambor@suse.cz>
10347         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
10348         zero sized bit-fields.
10350 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
10352         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
10353         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
10354         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
10355         (c_parser_objc_class_declaration): Same change.
10356         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
10357         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
10358         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
10359         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
10360         and RID_AT_PUBLIC instead of RID_PUBLIC.
10361         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
10362         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
10364 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
10366         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
10367         Add links to current providers of packages for Solaris and IRIX.
10369 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10371         Merge from 'apple/trunk' branch on FSF servers.
10372         * c-parser.c: Applied change originally in c-parse.in.
10374         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
10376         Radar 4281748
10377         * c-decl.c (start_decl): Check for redeclaration of class name.
10378         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
10380 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
10382         * config/ia64/ia64.c (ia64_builtin_decl): New.
10383         (TARGET_BUILTIN_DECL): Define.
10384         (ia64_builtins): New.
10385         (ia64_init_builtins): Save decls in ia64_builtins.
10387 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
10389         PR target/40457
10390         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
10391         (move2add_use_add3_insn): Likewise.
10392         (reload_cse_move2add): Likewise.
10393         * rtlanal.c (get_full_rtx_cost): New function.
10394         * rtl.h (struct full_rtx_costs): New.
10395         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
10396         costs_add_n_insns): New inline functions.
10397         (get_full_rtx_cost): Declare.
10399         PR c/45054
10400         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
10401         invariants.  Check for reg_equiv_invariant.
10402         (reload): Assert that spilled_pseudos is empty when returning.
10404 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
10406         * config/i386/mingw32.h (TARGET_64BIT): replaced by
10407         TARGET_64BIT_DEFAULT in #if check.
10409 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
10411         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
10413 2010-09-29  Mike Stump  <mikestump@comcast.net>
10415         * config/darwin.h (flag_mkernel): Remove.
10416         (flag_apple_kext): Likewise.
10418 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
10419             Jack Howarth  <howarth@bromo.med.uc.edu>
10421         * config/darwin.opt (undefined): Add.
10423 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10425         PR testsuite/45664
10426         * configure.ac: Add --enable-indirect-function option.
10427         * config.gcc: Add default_gnu_indirect_function.
10428         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
10429         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
10430         * varasm.c (do_assemble_alias): Adjust for macro name change.
10431         * configure: Rebuilt.
10432         * doc/install.texi: Document --enable-indirect-function.
10434 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
10436         * doc/options.texi (Variable, Var, Init): Update documentation
10437         without reference to VarExists.
10438         (VarExists): Remove.
10439         * common.opt, config/i386/i386.opt, config/linux.opt,
10440         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
10441         Don't use VarExists.
10443 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
10445         * optc-gen.awk: Generate global_options initializer instead of
10446         individual variables.  Add x_ prefix to names of structure members.
10447         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
10448         names of structure members.
10449         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10450         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
10451         * doc/tm.texi: Regenerate.
10452         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10453         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
10454         * c-parser.c (disable_extension_diagnostics,
10455         restore_extension_diagnostics): Update names of cpp_options members.
10456         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10457         * common.opt (fcompare-debug-second): Don't use Var.
10458         * config/alpha/alpha.h (target_flags): Remove.
10459         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10460         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
10461         * config/bfin/bfin.h (target_flags): Remove.
10462         * config/cris/cris.h (target_flags): Remove.
10463         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
10464         cl_target_option members.
10465         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
10466         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
10467         ix86_can_inline_p): Update names of cl_target_option members.
10468         * config/i386/i386.h (ix86_isa_flags): Remove.
10469         * config/lm32/lm32.h (target_flags): Remove.
10470         * config/mcore/mcore.h (mcore_stack_increment): Remove.
10471         * config/mcore/mcore.md (addsi3): Remove extern declaration of
10472         flag_omit_frame_pointer.
10473         * config/mep/mep.h (target_flags): Remove.
10474         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10475         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
10476         * config/mmix/mmix.h (target_flags): Remove.
10477         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
10478         flag_expensive_optimizations): Remove.
10479         * config/s390/s390.h (flag_pic): Remove.
10480         * config/score/score-conv.h (target_flags): Remove.
10481         * config/sh/sh.h (sh_fixed_range_str): Remove.
10482         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
10483         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
10484         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10485         * diagnostic.c (diagnostic_initialize): Update names of
10486         diagnostic_context members.
10487         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
10488         warn_system_headers.
10489         (diagnostic_report_warnings_p): Update for new names.
10490         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
10491         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
10492         HARD_FRAME_POINTER_IS_ARG_POINTER.
10493         * flags.h (flag_compare_debug): Declare.
10494         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10495         * opts.c (flag_compare_debug): Define.
10496         (common_handle_option): Update names of diagnostic_context
10497         members.  Handle -fcompare-debug-second.
10498         (fast_math_flags_struct_set_p): Update names of cl_optimization
10499         members.
10500         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10501         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10502         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10503         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10504         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
10505         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
10506         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
10507         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
10508         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
10510 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
10512         * config/picochip/picochip.c (picochip_output_internal_label):
10513         This function can now be called for debug CFI labels, which can come
10514         in the middle of a vliw instruction.  Postpone until end of vliw.
10516 2010-09-29  Richard Guenther  <rguenther@suse.de>
10518         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
10519         (DECL_FILE_SCOPE_P): Use it.
10520         (TYPE_FILE_SCOPE_P): New macro.
10522 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10524         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
10525         a CPP_NAME which is a reserved word, clearly separate cases for
10526         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
10528 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
10530         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
10531         token->value with the canonical spelling.  Do exactly like C and
10532         C++ and leave it as it is.
10534 2010-09-28  Richard Henderson  <rth@redhat.com>
10536         * config/alpha/alpha.c (alpha_builtins): New.
10537         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
10538         (alpha_builtin_function): New.
10539         (alpha_add_builtins, alpha_init_builtins): Use it.
10541 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
10543         * doc/standards.texi (Standards): Expanded the section on
10544         Objective-C and Objective-C++.
10546 2010-09-28  DJ Delorie  <dj@redhat.com>
10548         PR target/45800
10549         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
10550         volatile MEMs.
10552 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
10554         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
10555         attributes on methods.
10556          (c_parser_objc_method_definition): Handle attributes.
10557         (c_parser_objc_methodproto): Likewise.
10558         (c_parser_objc_maybe_method_attributes): New.
10559         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
10560         missing definition, similar to that in ObjC++.
10562 2010-09-28  Richard Henderson  <rth@redhat.com>
10564         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
10565         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
10566         (CONFIG_SJLJ_EXCEPTIONS): Remove.
10567         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
10568         (STACK_CHECK_PROTECT): Likewise.
10569         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
10570         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
10571         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
10572         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
10573         (dwarf2out_assembly_start): Likewise.
10574         * except.c (init_eh): Use targetm.except_unwind_info.
10575         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
10576         (output_one_function_exception_table): Likewise.
10577         * final.c: Unconditionally include dwarf2out.h.
10578         (final_start_function): Unconditionally call dwarf2out routines.
10579         (final_end_function, final_scan_insn): Likewise.
10580         * function.c (expand_function_end): Use targetm.except_unwind_info.
10581         * opts.c (decode_options): Use targetm.except_unwind_info.
10582         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
10583         * target.def (debug_unwind_info, except_unwind_info): New.
10584         * target.h (enum unwind_info_type): New.
10585         * targhooks.c (default_debug_unwind_info): New.
10586         (default_except_unwind_info): New.
10587         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
10588         * targhooks.h: Declare them.
10589         * tree-tailcall.c: Include "target.h"
10590         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
10591         * Makefile.in (tree-tailcall.o): Update.
10592         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
10593         (lhd_gcc_personality): Likewise.
10595         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
10596         (TARGET_EXCEPT_UNWIND_INFO): New.
10597         (DWARF2_UNWIND_INFO): Update.
10598         (TARGET_DEBUG_UNWIND_INFO): New.
10599         * doc/tm.texi: Rebuild.
10601         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
10602         targetm.except_unwind_info.
10604         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
10605         (arm_except_unwind_info): New.
10606         (arm_compute_func_type): Use it.
10607         (arm_expand_prologue, thumb_pushpop): Likewise.
10608         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
10609         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
10610         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
10611         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
10612         (DWARF2_UNWIND_INFO): Remove.
10613         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
10614         (ARM_EABI_UNWIND_TABLES): Remove.
10616         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
10617         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
10618         (ia64_except_unwind_info): New.
10619         (ia64_output_function_prologue): Use it.
10620         (ia64_add_bundle_selector_before): Likewise.
10621         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
10622         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
10623         (TARGET_UNWIND_INFO): Remove.
10625         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
10627 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
10629         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
10630         (c_parser_objc_protocol_definition): Likewise.
10631         (c_parser_external_declaration): Provide dummy attribute arguments.
10632         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
10633         (c_parser_objc_class_definition): Handle attributes.
10634         (c_parser_objc_protocol_definition): Likewise.
10636 2010-09-28  Tobias Burnus  <burnus@net-b.de>
10638         PR fortran/40569
10639         PR fortran/40568
10640         * toplev.h (save_decoded_options, save_decoded_options_count):
10641         New global variables.
10642         * toplev.c (save_decoded_options, save_decoded_options_count):
10643         Export variables.
10645 2010-09-28  Ian Lance Taylor  <iant@google.com>
10647         * config/i386/i386.c (ix86_supports_split_stack): Test
10648         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
10650 2010-09-28  Ian Lance Taylor  <iant@google.com>
10652         PR target/45815
10653         * opts.c (decode_options): Don't test whether the target supports
10654         split stack if flag_split_stack == 0.
10656 2010-09-28  Jan Hubicka  <jh@suse.cz>
10658         * builtin-attrs.def (ATTR_LEAF): New attribute.
10659         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
10660         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
10661         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
10662         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
10663         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
10664         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
10665         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
10666         * sync-builtins.def: Annotate all builtins by leaf.
10667         * omp-builtins.def: Annotate all builtins by leaf.
10668         * builtins.def: Annotate relevant builtins with leaf attribute.
10669         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
10670         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
10671         leaf.
10673 2010-09-28  Jan Hubicka  <jh@suse.cz>
10675         * tree-ssa-ccp.c (fold_ctor_reference): New function.
10676         (fold_const_aggregate_ref): Use it.
10677         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
10678         into external static.
10680 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10682         PR target/44452
10683         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
10684         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
10685         (ix86_solaris_return_in_memory): Remove.
10686         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
10687         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
10688         (TARGET_SUBTARGET_DEFAULT): Redefine.
10689         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
10690         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
10691         (TARGET_SUBTARGET_DEFAULT): Redefine.
10692         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
10693         -mvect8-ret-in-mem.
10694         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
10696 2010-09-29  Alan Modra  <amodra@gmail.com>
10698         PR target/45807
10699         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
10700         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
10701         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
10702         Delete.
10703         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
10704         (rs6000_emit_prologue): Don't just create frame save info for r2,
10705         actually save r2.
10707 2010-09-28  Richard Henderson  <rth@redhat.com>
10709         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
10710         when 8 bytes are requested.
10712 2010-09-28  Tristan Gingold  <gingold@adacore.com>
10714         * config/avr/avr.c (expand_prologue): Set
10715         current_function_static_stack_size.
10717 2010-09-28  Tristan Gingold  <gingold@adacore.com>
10719         * config/alpha/alpha.md: Change the initial condition of the
10720         probing loop.
10722 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
10724         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
10725         Split from *avx_<maxmin:code><mode>3.
10726         (*avx_<smaxmin:code><mode>3): Ditto.
10727         * config/i386/i386.md (maxmin): Remove code iterator.
10729 2010-09-27  Ian Lance Taylor  <iant@google.com>
10731         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
10732         requires assembler support for CFI directives.
10734 2010-09-27  Richard Henderson  <rth@redhat.com>
10736         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
10738 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
10740         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
10741         that AFTER is not in the range FROM..TO, inclusive.
10743 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
10744             Bernd Schmidt  <bernds@codesourcery.com>
10746         PR rtl-optimization/45792
10747         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
10748         If not all insns are to be merged, for each edge, stash the
10749         next candidate after the to-be-merged insns before doing the
10750         merge, and use them for the retry at the new insertion point.
10751         Handle CC0 targets when retrying.
10753 2010-09-27  Ian Lance Taylor  <iant@google.com>
10755         * common.opt (fsplit-stack): New option.
10756         * opts.c (decode_options): Set flag_split_stack to final value.
10757         * target.def (supports_split_stack): New hook.
10758         * gcc.c (STACK_SPLIT_SPEC): Define.
10759         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
10760         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
10761         (Code Gen Options): Document -fsplit-stack.
10762         * doc/extend.texi (Function Attributes): Mention no_split_stack.
10763         (Function Attributes): Document no_split_stack.
10764         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
10765         TARGET_SUPPORTS_SPLIT_STACK.
10766         * doc/tm.texi: Rebuild.
10767         * function.c (thread_prologue_and_epilogue_insns): If
10768         flag_split_stack, add split stack prologue.
10769         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
10770         * varasm.c (saw_no_split_stack): New static variable.
10771         (assemble_start_function): Set saw_no_split_stack if the function
10772         has the no_split_stack attribute.
10773         (file_end_indicate_split_stack): New function.
10774         * output.h (file_end_indicate_split_stack): Declare.
10775         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
10776         and function.
10777         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
10778         routines.
10779         * config/i386/i386.c (ix86_option_override_internal): Don't set
10780         expand_builtin_va_start to NULL if -fsplit-stack.
10781         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
10782         -fsplit-stack.
10783         (ix86_va_start): If -fsplit-stack, get overflow pointer from
10784         scratch register set by prologue.
10785         (ix86_code_end): If -fsplit-stack, call
10786         file_end_indicate_split_stack.
10787         (ix86_supports_split_stack): New static function.
10788         (SPLIT_STACK_AVAILABLE): Define.
10789         (split_stack_prologue_scratch_regno): New static function.
10790         (split_stack_fn): New static variable.
10791         (ix86_expand_split_stack_prologue): New function.
10792         (ix86_live_on_entry): New static function.
10793         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
10794         (output_pic_addr_const): Likewise.
10795         (i386_asm_output_addr_const_extra): Likewise.
10796         (ix86_expand_call): Change return type to rtx.  Return the new
10797         call instruction.
10798         (TARGET_SUPPORTS_SPLIT_STACK): Define.
10799         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
10800         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
10801         (split_stack_prologue, split_stack_return): New insns.
10802         (split_stack_space_check): New insn.
10803         * config/i386/i386.h (struct machine_function): Add
10804         split_stack_varargs_pointer field.
10805         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
10806         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
10807         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
10808         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
10809         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
10810         Declare.
10811         (ix86_expand_call): Update declaration.
10813 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
10815         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
10816         code.  Added byref, which was missing in the list of codes.
10817         Explain that enumeration values are encoded as the integer type
10818         that the compiler uses to store them.  Explain and make examples
10819         of how 'const' interacts with pointers, and the complication of
10820         the encoding of 'const char *'.
10821         (Legacy type encoding): New subsection, explaining that GCC emits
10822         incorrect type encodings for the NeXT runtime for compatibility
10823         reasons.
10824         (@@encode): New subsection, explaining @encode and particularly
10825         that protocol qualifiers are not recognized inside an @encode()
10826         expression.
10827         (Method signatures): New subsection, explaining how method
10828         signatures are encoded.
10830 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
10832         Merge from 'apple/trunk' branch on FSF servers.  Removed small
10833         change in build_conditional_expr that had been added when fixing
10834         PR objc/27377 and which did the same check in a less complete way.
10836         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
10838         Radar 4229905
10839         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
10840         looking for objective-c common pointer types.
10842         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
10844         Radar 4154928
10845         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
10846         use their ObjC common type.
10848 2010-09-27  Richard Guenther  <rguenther@suse.de>
10850         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
10852 2010-09-27  Jie Zhang  <jie@codesourcery.com>
10854         * print-tree.c (print_node): Print in-constant-pool.
10856 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
10858         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
10859         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
10860         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
10861         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
10863 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
10865         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
10866         from pro_epilogue_adjust_stack_<mode>_{1,2}.
10867         (pro_epilogue_adjust_stack_<mode>_add): Rename from
10868         pro_epilogue_adjust_stack_<mode>_3.
10869         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
10870         renamed pro_epilogue_adjust_stack_{si,di}_add.
10871         (ix86_expand_prologue): Use indirect functions.  Update for renamed
10872         pro_epilogue_adjust_stack_{si,di}_sub.
10874 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
10876         * config/i386/i386.md (movmsk_df): New insn.
10877         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
10878         sequence for TARGET_SSE_MATH.
10880 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
10882         * config/mips/mips.c (mips_builtin_decls): Declare.
10883         (mips_init_builtins): Store function declarations in
10884         mips_builtin_decls.
10885         (mips_builtin_decl): New function.
10886         (TARGET_BUILTIN_DECL): Define.
10888 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
10889             Richard Henderson  <rth@redhat.com>
10891         * config/i386/cygwin.asm: Include auto-host.h.
10892         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
10893         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
10894         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
10895         alignment code from the 64-bit path.  Use gas local labels.
10896         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
10897         from _di_2.  Remove the useless constant integer argument.
10898         (pro_epilogue_adjust_stack_<mode>_3): New.
10899         (allocate_stack_worker_probe_<mode>): Macroize from
10900         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
10901         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
10902         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
10903         (__chkstk_ms): New function.
10904         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
10905         * config/i386/t-interix: Likewise.
10906         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
10907         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
10908         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
10909         * configure, config.in: Rebuild.
10911 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
10913         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
10914         statements because of the return slot optimization.
10916 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
10918         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
10919         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
10920         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10921         (class_likely_spilled_p): Rename to...
10922         (avr_class_likely_spilled_p): ...this. Make static. Change argument
10923         type to reg_class_t.
10925 2010-09-24  Jan Hubicka  <jh@suse.cz>
10927         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
10928         (lto_symtab_resolve_symbols): Set it.
10929         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
10930         store resolution field in cgraph/varpool.
10931         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
10932         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
10933         (cgraph_dump_node): Drop used_from_object_file.
10934         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
10935         (cgraph_function_body_availability): Use decl_replaceable_p.
10936         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
10937         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
10938         cgraph_used_from_object_file_p.
10939         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
10940         cgraph_used_from_object_file_p.
10941         (resolution_used_from_other_file_p): New functoin.
10942         (cgraph_used_from_object_file_p): New predicate.
10943         * cgraph.h: Include plugin-api.h
10944         (struct cgraph_local_info): Remove used_from_object_file.
10945         (struct cgraph_node): Add resolution field.
10946         (struct varpool_node): Likewise; remove used_from_object_file;
10947         reove const_value_known.
10948         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
10949         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
10950         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10951         varpool_used_from_object_file_p): Declare.
10952         (varpool_get_node, varpool_extra_name_alias): Update prototype.
10953         * tree.h (DECL_REPLACEABLE_P): Remove.
10954         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
10955         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
10956         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
10957         input_overwrite_node, input_node, input_varpool_node): Stream
10958         resolution.
10959         * expr.c (expand_expr_real_1): Use const_value_known_p
10960         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
10961         const_value_known.
10962         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
10963         (function_and_variable_visibility): Set resolution for local vars
10964         and functions; use varpool_used_from_object_file_p.
10965         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
10966         static functions.
10967         (default_binds_local_p_1): Use resolutoin info.
10968         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
10969         * varpool.c (varpool_get_node): Constify.
10970         (const_value_known_p): Do not use vnode->const_value_known;
10971         use decl_replaceable_p.
10972         (varpool_finalize_decl): Do not set const_value_known.
10973         (cgraph_variable_initializer_availability): Use decl_replaceable_p
10974         (varpool_extra_name_alias): Return new node.
10975         (varpool_used_from_object_file_p): New function.
10977 2010-09-24  Richard Henderson  <rth@redhat.com>
10979         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
10980         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
10981         (do_spill): Use REG_CFA_OFFSET.
10982         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
10983         as appropriate.
10984         (ia64_expand_epilogue): Likewise.
10985         (process_set): Split into ...
10986         (process_cfa_adjust_cfa): this,
10987         (process_cfa_register): this,
10988         (process_cfa_offset): and this new function.
10989         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
10990         instead of REG_FRAME_RELATED_EXPR.
10992 2010-09-24  Olivier Hainque  <hainque@adacore.com>
10994         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
10996 2010-09-24  Jan Hubicka  <jh@suse.cz>
10998         * doc/extend.texi: (attribute leaf): Document.
10999         * tree.c (local_define_builtin): Handle ECF_LEAF.
11000         (build_common_builtin_nodes): Set ECF_LEAF where needed.
11001         * tree.h (ECF_LEAF): New.
11002         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
11003         overwrittable and unavailable functions.
11004         (ipa_init): Put all_module_statics into optimization_summary_obstack.
11005         (copy_global_bitmap): Do not copy all_module_statics.
11006         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
11007         (propagate): Handle overwritable and unavailable leaf functions;
11008         initialize global info for overwritable and unavailable leaf functions;
11009         do not free all module statics.
11010         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
11011         local statics.
11012         * calls.c (flags_from_decl_or_type): Handle leaf.
11013         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
11014         abnormal gotos.
11016 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
11018         * gengtype.c: Reindented.
11019         * gengtype.h: Reindented.
11020         * gengtype-parse.c: Reindented.
11022 2010-09-24  Jan Hubicka  <jh@suse.cz>
11024         PR tree-optimization/45738
11025         PR tree-optimization/45741
11026         * expr.c (string_constant): Allow CONST_DECL too;
11027         check that DECL_INITIAL is set.
11028         * varpool.c (const_value_known_p): Only look into VAR_DECL
11029         and CONST_DECL.
11031 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
11033         * common.opt (undef): New.
11035 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
11037         PR middle-end/45234
11038         * rtl.h (enum global_rtl_index): Add
11039         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
11040         (LAST_VIRTUAL_POINTER_REGISTER): Define.
11041         (virtual_preferred_stack_boundary_rtx,
11042         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
11043         (LAST_VIRTUAL_REGISTER): Increase by one.
11044         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
11045         instead of LAST_VIRTUAL_REGISTER.
11046         * function.c (instantiate_new_reg): Handle
11047         virtual_preferred_stack_boundary_rtx.
11048         * emit-rtl.c (init_virtual_regs): Handle
11049         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
11050         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
11051         * explow.c (round_push): If crtl->preferred_stack_boundary
11052         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
11053         virtual_preferred_stack_boundary_rtx alignment instead of
11054         crtl->preferred_stack_boundary alignment.
11055         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
11056         macros.  Never decrease crtl->preferred_stack_boundary,
11057         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
11058         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
11059         stack_pointer_delta in dynamic allocation, even when size
11060         is constant.
11061         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
11062         macro.
11063         * print-rtl.c (print_rtx): Handle
11064         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
11065         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
11066         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
11067         * config/frv/frv.c (frv_emit_movsi): Likewise.
11068         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
11069         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
11070         Likewise.
11072         Revert:
11073         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11075         PR middle-end/45234
11076         * calls.c (expand_call): Make sure that all variable sized
11077         adjustments are multiple of preferred stack boundary after
11078         stack alignment.
11080 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
11081             Dominique Dhumieres  <dominiq@lps.ens.fr>
11083         PR bootstrap/45751
11084         * config/darwin-driver.c (darwin_default_min_version):
11085         Adjust size passed to memcpy in two places.
11087 2010-09-24  Richard Guenther  <rguenther@suse.de>
11089         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
11090         Make sure to not call set_type_context with error_mark_node.
11091         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
11093 2010-09-24  Richard Guenther  <rguenther@suse.de>
11095         * Makefile.in (OBJS-onestep): Remove.
11096         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
11097         (libbackend.a): Remove onestep support.
11098         (libbackend.o): Remove.
11099         * configure.ac (--enable-intermodule): Remove.
11100         * configure: Regenerate.
11102 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
11104         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
11105         reaching the end of a block if it occurs at a DEBUG_INSN.
11107 2010-09-09  Tristan Gingold  <gingold@adacore.com>
11109         PR target/44242
11110         * config/vms/vms-crt0-64.c: Removed.
11111         * config/vms/vms-crt0.c: Removed.
11112         * config/vms/vms-psxcrt0-64.c: Removed.
11113         * config/vms/vms-psxcrt0.c: Removed.
11114         * config/vms/vms-ucrt0.c: New file.
11115         * config/vms/t-vms64: Removed.
11116         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
11117         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
11118         * config.gcc (alpha-dec-vms): Use t-vms.
11120 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
11122         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
11123         underfull hbox in DVI output.
11124         (-fobjc-class-cxx-cdtors): Same change.
11125         (-fobjc-exceptions): Tidied up documentation.  Explain what the
11126         option does, but moved the (lenghty) description of the exception
11127         syntax into objc.texi.
11128         (-fobjc-gc): Explain that the option is not useful with the GNU
11129         runtime.
11130         (-fzero-link): Explain that the GNU runtime always works in
11131         "zero-link" mode.
11132         * doc/objc.texi: All sections: simplified @node declarations
11133         removing specification of next, previous, up node.
11134         (Objective-C): Updated introduction.
11135         (Garbage Collection): Updated.  The bohem-gc library is now
11136         included in gcc itself.  Mention that this section only applies to
11137         the GNU Objective-C runtime.
11138         (compatibility_alias): Small tidy up.
11139         (Exceptions): New section mostly containing text previously in the
11140         description of the -fobjc-exception command-line option.
11141         (Synchronization): Same.
11143 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
11145         * config/i386/i386.md (ix86_code_end): Move the initialization of
11146         xops array near the consumer.  Use AX_REG and SP_REG instead of
11147         numerical constants.
11149 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
11151         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
11152         method [methodname]' for an Objective-C method instead of the less
11153         satisfactory 'too many arguments to function' (with no method name).
11155 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
11157         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
11158         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
11159         (execute_update_addresses_taken): Remove parameter.  Execute the
11160         optimization unconditionally.
11161         * passes.c (execute_function_todo): Call execute_update_addresses_taken
11162         unconditionally if TODO_rebuild_alias is set, else only when optimizing
11163         if TODO_update_address_taken is set.
11165 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
11167         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11168         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
11169         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11170         (arm_output_addr_const_extra): Make static.
11172 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
11174         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
11175         define as unspec_volatile.
11176         ("nops"): Define as unspec_volatile. Use fputs to write to
11177         asm_out_file directly.  Output NOPs on separate lines using while loop.
11178         * config/i386/i386.c (ix86_code_end): Use fputs to write to
11179         asm_out_file directly.  Output NOPs on separate lines using while loop.
11181 2010-09-23  Richard Guenther  <rguenther@suse.de>
11183         PR tree-optimization/45565
11184         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
11185         Make sure to adjust the fndecl before replacing the stmt.
11187 2010-09-23  Richard Guenther  <rguenther@suse.de>
11189         PR middle-end/45750
11190         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
11191         gimplifying MEM_REF.
11193 2010-09-23  Alan Modra  <amodra@gmail.com>
11195         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
11196         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
11198 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
11200         PR rtl-optimization/44374
11201         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
11202         * df-core.c (df_set_bb_dirty): Set it.
11203         * ifcvt.c (find_memory): Remove function.
11204         (dead_or_predicable): Use can_move_insns_across.
11205         * df.h (can_move_insns_across): Declare function.
11206         * cfgcleanup.c (block_was_dirty): New static variable.
11207         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
11208         than df_get_bb_dirty.
11209         (try_head_merge_bb): New static function.
11210         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
11211         is set.
11212         * df-problems.c: Include "target.h"
11213         (df_simulate_find_uses): New static function.
11214         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
11215         (find_memory, find_memory_store): New static functions.
11216         (can_move_insns_across): New function.
11217         * Makefile.in (df-problems.o): Update dependencies.
11219 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
11221         PR java/44095
11222         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
11223         is specified and the suffix of the file isn't ".c".
11224         * config/sparc/linux64.h (ASM_SPEC): Likewise.
11226 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11228         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
11229         * doc/cppopts.texi: Fix markup of index entry.
11230         * doc/extend.texi (Constructing Calls): Fix markup of
11231         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
11232         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
11233         (Vague Linkage, C++ Attributes): Fix markup of index entries and
11234         keywords.
11235         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
11236         avoid long lines.
11237         (C Dialect Options, C++ Dialect Options, Warning Options)
11238         (Debugging Options, Spec Files, Darwin Options)
11239         (i386 and x86-64 Options, MIPS Options)
11240         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
11241         index entries, avoid abbreviations, allow URLs to wrap, avoid
11242         long lines, avoid overlong pages from long @itemx lists.
11243         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
11244         * doc/standards.texi (Standards): Likewise.
11245         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
11247 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
11249         * opts-common.c (prune_options): Make static.  Work with decoded
11250         options.
11251         (decode_cmdline_options_to_array): Call prune_options.  Don't
11252         resize option array here.
11253         * opts.h (prune_options): Remove prototype.
11254         * gcc.c (process_command): Take decoded options; don't call
11255         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
11256         (main): Call decode_cmdline_options_to_array here instead of
11257         prune_options.  Update call to process_command.
11258         * config/darwin-driver.c: Include opts.h.
11259         (darwin_default_min_version): Work with decoded options.  Don't
11260         handle -b or -V here.
11261         * config/darwin.h (darwin_default_min_version): Update prototype.
11262         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
11263         darwin_default_min_version.
11264         * config/i386/cygwin.h (mingw_scan): Update prototype.
11265         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
11266         * config/i386/cygwin1.c: Include opts.h.
11267         (mingw_scan): Work with decoded options.
11268         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
11269         * config/t-darwin (darwin-driver.o): Update dependencies.
11271 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
11273         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
11274         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
11275         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
11276         -force-link, -force-link=, -language, -language=,
11277         -library-directory, -library-directory=, -no-canonical-prefixes,
11278         -no-standard-libraries, -no-warnings, -optimize, -output,
11279         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
11280         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
11281         -print-file-name=, -print-libgcc-file-name,
11282         -print-multi-directory, -print-multi-lib,
11283         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
11284         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
11285         -profile, -save-temps, -shared, -specs, -specs=, -static,
11286         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
11287         symbolic): New.
11288         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
11289         * gcc.c (A Short Introduction to Adding a Command-Line Option):
11290         Remove comment.
11291         (cc1_options): Correct specs for passing down --help,
11292         --target-help and --help=*.  Add spec for passing down --version.
11293         (struct option_map, option_map, target_option_translations,
11294         translate_options): Remove.
11295         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
11296         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
11297         OPT_fhelp_ and OPT_ftarget_help.
11298         (process_command): Don't call translate_options.  Call
11299         decode_cmdline_options_to_array before checking for
11300         -no-canonical-prefixes using decoded options.
11301         * opts-common.c (tm.h): Update comment on #include.
11302         (find_opt): Allow abbreviations of long options.
11303         (struct option_map, option_map): New.
11304         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
11305         and -mno handling.
11306         (target_option_translations): New.
11307         (decode_cmdline_options_to_array): Handle
11308         TARGET_OPTION_TRANSLATE_TABLE in driver.
11309         * opts.c (common_handle_option): Don't handle OPT_fhelp,
11310         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
11312 2010-09-22  Richard Guenther  <rguenther@suse.de>
11314         * tree-inline.c (optimize_inline_calls): Schedule cleanups
11315         only if we inlined something.  Block compaction and conditional
11316         folding are done by cfg cleanup.  Schedule update-address-taken.
11317         (tree_function_versioning): Remove redundant call to number_blocks.
11318         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
11319         folding is done by cfg cleanup.
11320         * passes.c (init_optimization_passes): Remove update-address-taken
11321         pass after IPA inlining.
11323 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
11325         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
11326         to update conditions. Fix reg_mode[] check.
11328 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
11330         * config/picochip/picochip.md (movhicc): Use expand to check whether
11331         movhicc is available and split it after reload.
11333 2010-09-22  Richard Guenther  <rguenther@suse.de>
11335         * tree-ssanames.c (release_dead_ssa_names): Do not remove
11336         callee edges here.
11337         * passes.c (init_optimization_passes): Remove early CFG cleanup.
11338         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
11339         (pass_cleanup_cfg): Likewise.
11340         (execute_fixup_cfg): Cleanup.
11341         * tree-pass.h (pass_cleanup_cfg): Remove.
11343 2010-09-22  Martin Jambor  <mjambor@suse.cz>
11345         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
11346         builtins if it is true.
11347         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
11348         parameter.
11350 2010-09-22  Martin Jambor  <mjambor@suse.cz>
11352         * tree-sra.c (struct access): New field grp_no_warning.
11353         (create_access_replacement): Set TREE_NO_WARNING according to
11354          grp_no_warning.
11355         (create_artificial_child_access): Use build_ref_for_model and set
11356         grp_no_warning if build_user_friendly_ref_for_offset fails.
11357         (propagate_subaccesses_across_link): Likewise.
11359 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
11361         PR target/35664
11362         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
11363         ('f'): Likewise.
11365 2010-09-22  Tristan Gingold  <gingold@adacore.com>
11367         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
11369 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
11371         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
11372         * config/i386/i386.c (decide_alg): Update for rename.
11374 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
11376         PR rtl-optimization/45739
11377         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
11378         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
11380 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
11382         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
11383         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
11384         Remove.
11385         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
11386         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11388 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11390         PR objc/23710
11391         * c-parser.c (c_parser_objc_method_definition): Check the return
11392         value of objc_start_method_definition and if false is returned,
11393         parse the method definition but emit no code.
11395 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11397         PR objc/25965
11398         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
11399         call objc_get_interface_ivars ().
11401 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
11403         PR target/45694
11404         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
11405         static chain-register is used for 64-bit.
11407 2010-09-21  Richard Guenther  <rguenther@suse.de>
11409         * dwarf2out.c (is_cu_die): New function.
11410         (add_pubtype): Use it.
11411         (gen_subprogram_die): Likewise.
11412         (gen_struct_or_union_type_die): Likewise.
11413         (dwarf2out_finish): Likewise.
11414         (comp_unit_die): Rename to ...
11415         (single_comp_unit_die): ... this.
11416         (comp_unit_die): New function lazily constructing and
11417         returning single_comp_unit_die.
11418         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
11419         base_type_die, subrange_type_die, modified_type_die,
11420         lower_bound_default, add_bound_info, add_prototyped_attribute,
11421         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
11422         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
11423         force_decl_die, gen_namespace_die, dwarf2out_decl,
11424         dwarf2out_start_source_file, dwarf2out_end_source_file,
11425         prune_unused_types, dwarf2out_finish): Use it.
11426         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
11427         the global list of translation-unit decls.
11428         (dwarf2out_init): Do not create single_comp_unit_die here.
11429         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
11431 2010-09-21  Richard Guenther  <rguenther@suse.de>
11433         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
11434         for bool for C++.
11436 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
11438         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
11439         (qhs_extenddi_cstr): Likewise.
11440         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
11441         them for the source operand.
11443 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
11445         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
11446         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
11447         (ix86_split_ashr): Ditto.
11448         (ix86_split_lshr): Ditto.
11450 2010-09-21  Richard Guenther  <rguenther@suse.de>
11452         PR tree-optimization/45580
11453         * tree-ssa-propagate.c (substitute_and_fold): Always replace
11454         regular uses.
11455         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
11456         virtuals fold the call into a regular indirect one.
11458 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
11460         PR rtl-optimization/42775
11461         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
11462         scheduling is enabled.
11464 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
11466         PR rtl-optimization/45728
11467         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
11468         gen_lowpart_common first and if that fails, force_reg first
11469         before calling gen_lowpart.
11471         PR middle-end/45678
11472         * cfgexpand.c (expand_one_stack_var_at): Use
11473         crtl->max_used_stack_slot_alignment as max_align, instead
11474         of maximum of that and PREFERRED_STACK_BOUNDARY.
11475         Don't call update_stack_alignment.
11477 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
11479         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
11480         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
11481         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
11482         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
11483         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
11484         (build_nonstandard_integer_type): Likewise.
11485         (build_range_type_1): New function, built from...
11486         (build_range_type): ...this.  Call build_range_type_1.
11487         (build_nonshared_range_type): New function.
11488         (build_array_type_1): New function, built from...
11489         (build_array_type: ...this.  Call build_array_type_1.
11490         (build_nonshared_array_type): New function.
11491         * tree.h (build_nonshared_range_type): Declare.
11492         (build_nonshared_array_type): Likewise.
11494 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
11496         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
11497         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11498         (arm_class_likely_spilled_p): New function.
11500 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
11502         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
11503         indirect functions.
11504         (ix86_split_ashl): Ditto.
11505         (ix86_split_ashr): Ditto.
11506         (ix86_split_lshr): Ditto.
11507         (ix86_adjust_counter): Ditto.
11509 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
11511         * c-family/c-common.h (constant_string_class): Documented with
11512         comment identical to the one already in c-common.c.
11514 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
11516         * dwarf2out.c (any_cfis_emitted): New static variable.
11517         (add_fde_cfi): Set it.
11518         (dwarf2out_frame_debug): Clear it before processing,
11519         if it is set afterwards, flush any queued reg saves.
11521         PR debug/45124
11522         * dwarf2out.c (add_accessibility_attribute): Assume
11523         DW_ACCESS_private as the default for dwarf_version > 2
11524         and DW_TAG_class_type parent.
11525         (gen_inheritance_die): Assume DW_ACCESS_public as the default
11526         for dwarf_version > 2 and parent other than DW_TAG_class_type.
11528 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
11530         PR target/45726
11531         * arm.md (arm_movt): Only enable on machines with MOVT.
11533 2010-09-20  Jie Zhang  <jie@codesourcery.com>
11535         * config/arm/arm.c (arm_address_offset_is_imm): New.
11536         (arm_early_store_addr_dep): New.
11537         (arm_early_load_addr_dep): New.
11538         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
11539         (arm_early_load_addr_dep): Declare.
11540         (arm_address_offset_is_imm): Declare.
11541         * config/arm/cortex-m4.md: New file.
11542         * config/arm/cortex-m4-fpu.md: New file.
11543         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
11544         (attr generic_sched): Exclude cortexm4.
11545         (attr generic_vfp): Exclude cortexm4.
11547 2010-09-20  Richard Guenther  <rguenther@suse.de>
11549         PR middle-end/45704
11550         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
11552 2010-09-20  Jan Hubicka  <jh@suse.cz>
11554         PR tree-optimize/45605
11555         * cgraph.h (const_value_known_p): Declare.
11556         (varpool_decide_const_value_known): Remove.
11557         * tree-ssa-ccp.c (get_base_constructor): Use it.
11558         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
11559         * expr.c (string_constant): Likewise.
11560         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
11561         * ipa.c (ipa_discover_readonly_nonaddressable_var,
11562         function_and_variable_visibility): Likewise.
11563         * gimplify.c (gimplify_call_expr): Likewise.
11564         * gimple-fold.c (get_symbol_constant_value): Likewise.
11565         * varpool.c (varpool_decide_const_value_known): Replace by...
11566         (const_value_known_p): ... this one; handle other kinds of DECLs
11567         too and work for automatic vars.
11568         (varpool_finalize_decl): Use const_value_known_p.
11570 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
11572         PR target/45726
11573         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
11575 2010-09-20  Richard Guenther  <rguenther@suse.de>
11577         PR tree-optimization/45705
11578         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
11580 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
11582         PR rtl-optimization/45695
11583         * combine.c (try_combine): When splitting a two set pattern,
11584         make sure the pattern which will be put into i2 doesn't use REGs
11585         or MEMs set by insns in between i2 and i3.
11587 2010-09-19  Jan Hubicka  <jh@suse.cz>
11589         PR lto/44246
11590         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
11591         processing same node twice.
11593 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
11595         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
11596         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11597         (bfin_class_likely_spilled_p): New function
11599 2010-09-19  Ira Rosen  <irar@il.ibm.com>
11601         PR tree-optimization/45714
11602         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
11603         created in vectorizable_call instead of the original statement in
11604         def stmt updates.
11606 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
11608         * config/i386/i386-protos.h (split_double_mode): New prototype.
11609         (split_di, split_ti): Remove prototypes.
11610         * config/i386/i386.c (split_double_mode): New function.
11611         (split_di, split_ti): Remove.
11612         (ix86_expand_branch): Use split_double_mode.
11613         (ix86_split_to_parts): Ditto.
11614         (ix86_split_ashl): Ditto.
11615         (ix86_split_ashr): Ditto.
11616         (ix86_split_lshr): Ditto.
11617         (ix86_force_to_memory): Ditto.
11618         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
11620 2010-09-18  Jan Hubicka  <jh@suse.cz>
11622         PR tree-optimization/45453
11623         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
11624         virtual functions are reachable.
11625         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
11626         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
11627         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
11628         when modifying function.
11630 2010-09-18  Jan Hubicka  <jh@suse.cz>
11632         PR tree-optimization/45605
11633         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
11634         * gimple-fold.c (static_object_in_other_unit_p): New function.
11635         (canonicalize_constructor_val): Use it.
11636         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
11637         returning NULL.
11638         (gimple_fold_obj_type_ref_known_binfo): Use
11639         static_object_in_other_unit_p.
11641 2010-09-18  Richard Guenther  <rguenther@suse.de>
11643         PR tree-optimization/45709
11644         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
11645         insertions until after all PHI nodes of the block are processed.
11647 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
11649         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
11651 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
11653         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
11655 2010-09-18  Richard Guenther  <rguenther@suse.de>
11657         PR tree-optimization/45709
11658         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
11660 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
11662         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
11663         (dot_deps_stmt): Same.
11664         * graphite-poly.c (dot_lst): Same.
11665         * graphite-scop-detection.c (dot_all_scops): Same.
11666         (dot_scop): Same.
11668 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
11670         Revert:
11671         2009-12-16  Ben Elliston  <bje@au.ibm.com>
11673         * tree-data-ref.c (dot_rdg_1): Added back.
11674         (dot_rdg): Same.  Added "#if 0" around system call.
11676 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11677             Richard Henderson  <rth@redhat.com>
11679         * config/i386/i386.c (initial_ix86_tune_features): Add
11680         X86_TUNE_PAD_SHORT_FUNCTION.
11681         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
11682         (ix86_count_insn): New.
11683         (ix86_pad_short_function): Likewise.
11684         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
11686         * config/i386/i386.h (ix86_tune_indices): Add
11687         X86_TUNE_PAD_SHORT_FUNCTION.
11688         (TARGET_PAD_SHORT_FUNCTION): New.
11690         * config/i386/i386.md (UNSPEC_NOPS): New.
11691         (nops): Likewise.
11693 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11695         PR middle-end/45234
11696         * calls.c (expand_call): Make sure that all variable sized
11697         adjustments are multiple of preferred stack boundary after
11698         stack alignment.
11700 2010-09-17  DJ Delorie  <dj@redhat.com>
11702         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
11703         passed an invalid value, print an error instead of ICEing.
11704         (valid_psw_flag): New.
11705         (rx_expand_builtin): Call it for setpsw/clrpsw.
11706         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
11708         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
11709         (bitclr_in_memory): Likewise.
11710         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
11712 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
11714         PR middle-end/45678
11715         * cfgexpand.c (update_stack_alignment): New.
11716         (get_decl_align_unit): Use it.
11717         (expand_one_stack_var_at): Call update_stack_alignment.
11719 2010-09-17  Richard Guenther  <rguenther@suse.de>
11721         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
11722         Properly copy the read string.
11724 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
11726         * doc/options.texi (Variable): Document.
11727         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
11728         generate target_flags declarations explicitly.  Don't define
11729         VarExists variables for the driver.
11730         * common.opt (target_flags): New Variable record.
11731         (flag_dump_unnumbered, flag_dump_unnumbered_links,
11732         flag_var_tracking, flag_var_tracking_assignments,
11733         flag_var_tracking_assignments_toggle): Don't mark variables with
11734         VarExists.
11735         * config/i386/i386.c (ix86_isa_flags): Don't define here.
11736         * config/i386/i386.opt (ix86_isa_flags): Define here.
11737         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
11738         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
11739         VarExists.
11740         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
11741         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
11742         Only define for generator programs.
11743         * rtlanal.c (target_flags): Remove.
11744         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
11745         flag_var_tracking_assignments_toggle): Remove.
11747 2010-09-17  Michael Matz  <matz@suse.de>
11749         PR tree-optimization/43432
11750         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11751         Accept backwards consecutive accesses.
11752         (vect_create_data_ref_ptr): If step is negative generate
11753         decreasing IVs.
11754         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
11755         (perm_mask_for_reverse, reverse_vec_elements): New functions.
11756         (vectorizable_load): Handle loads with negative steps when easily
11757         possible.
11759 2010-09-03  Jan Hubicka  <jh@suse.cz>
11761         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
11763 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
11765         * config/v850/v850.c (v850_function_value_regno_p): Make static.
11766         Adjust comments. Declare.
11767         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11768         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
11770 2010-09-17  Richard Guenther  <rguenther@suse.de>
11772         * common.opt (combine): Remove.
11773         * gcc.c (default_compilers): Remove specs testing combine.
11774         The C compilers no longer can combine.
11775         (option_map): Remove -combine.
11776         (display_help): Remove -combine.
11777         (driver_handle_option): Remove OPT_combine handling.
11778         (compile_input_file_p): Remove.
11779         (do_spec): Remove code concerning combine.
11780         (main): Likewise.
11781         * doc/invoke.texi: Remove traces of -combine.
11782         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
11784 2010-09-17  Richard Guenther  <rguenther@suse.de>
11786         PR middle-end/45678
11787         * builtins.c (fold_builtin_memory_op): Always properly adjust
11788         alignment of memory accesses.
11790 2010-09-16  Jan Hubicka  <jh@suse.cz>
11792         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
11793         processing clone.
11795 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
11797         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
11799         * config/i386/i386.c (predict_jump): Add prototype.
11800         (flag_opts): Add -m8bit-idiv.
11801         (ix86_split_idivmod): New.
11803         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
11804         Add 2 splitters for SI/DI mode divide.
11805         (divmod<mode>4_1): New pattern.
11806         (udivmod<mode>4_1): Likewise.
11807         (testdi_ccno_1): Likewise.
11809         * config/i386/i386.opt (m8bit-idiv): New.
11811         * doc/invoke.texi: Document -m8bit-idiv.
11813 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
11815         PR bootstrap/45680
11816         * config/i386/i386.c (min_insn_size): Moved out of the
11817         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
11819 2010-09-16  Jan Hubicka  <jh@suse.cz>
11821         * lto-cgraph.c (lto_output_node): Fix handling of clones.
11822         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
11823         unreachable clones with reachable clones.
11824         * tree-inline.c (copy_bb): Fix sanity checking when producing
11825         unreachable clone.
11827 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
11829         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
11830         (TARGET_MEMORY_MOVE_COST): Define.
11831         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
11833 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
11835         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
11836         maybe_tidy_empty_bb.
11838         Revert:
11839         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
11840         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
11842 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
11844         * target.def (target_option.optimization): New hook.
11845         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
11846         TARGET_OPTION_OPTIMIZATION hook.
11847         * doc/tm.texi: Regenerate.
11848         * hooks.c (hook_void_int_int): New.
11849         * hooks.h (hook_void_int_int): Declare.
11850         * opts.c: Don't include tm_p.h.
11851         (decode_options): Use targetm.target_option.optimization instead
11852         of OPTIMIZATION_OPTIONS.
11853         * system.h (OPTIMIZATION_OPTIONS): Poison.
11854         * config/arm/arm-protos.h (arm_optimization_options): Remove.
11855         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
11856         (arm_optimization_options): Rename to arm_option_optimization.
11857         Make static.
11858         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
11859         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
11860         (cris_option_optimization): New.
11861         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
11862         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
11863         (crx_option_optimization): New.
11864         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
11865         * config/frv/frv-protos.h (frv_optimization_options): Remove.
11866         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
11867         (frv_optimization_options): Rename to frv_option_optimization.
11868         Make static.
11869         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
11870         * config/h8300/h8300.c (h8300_option_optimization): New.
11871         (TARGET_OPTION_OPTIMIZATION): Define.
11872         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
11873         * config/i386/i386-protos.h (optimization_options): Remove.
11874         * config/i386/i386.c (optimization_options): Rename to
11875         ix86_option_optimization.  Make static.
11876         (TARGET_OPTION_OPTIMIZATION): Define.
11877         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
11878         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
11879         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
11880         (ia64_optimization_options): Rename to ia64_option_optimization.
11881         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
11882         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
11883         commented-out definition.
11884         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
11885         instead of OPTIMIZATION_OPTIONS.
11886         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
11887         (m32r_option_optimization): New.
11888         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
11889         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
11890         Remove.
11891         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
11892         (mcore_option_optimization): New.
11893         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
11894         * config/mep/mep-protos.h (mep_optimization_options): Remove.
11895         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
11896         (mep_optimization_options): Rename to mep_option_optimization.
11897         Make static.  Take unused level and size parameters.
11898         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
11899         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
11900         (mmix_option_optimization): New.
11901         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
11902         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
11903         (pdp11_option_optimization): New.
11904         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
11905         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
11906         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
11907         (optimization_options): Rename to rs6000_option_optimization.
11908         Make static.
11909         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
11910         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
11911         * config/rx/rx.c (rx_set_optimization_options): Rename to
11912         rx_option_optimization.  Make static.  Take unused level and size
11913         parameters.
11914         (TARGET_OPTION_OPTIMIZATION): Define.
11915         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
11916         * config/s390/s390-protos.h (optimization_options): Remove.
11917         * config/s390/s390.c (optimization_options): Rename to
11918         s390_option_optimization.  Make static.  Don't mark size parameter
11919         unused.
11920         (TARGET_OPTION_OPTIMIZATION): Define.
11921         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
11922         * config/sh/sh-protos.h (sh_optimization_options): Remove.
11923         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
11924         (sh_optimization_options): Rename to sh_option_optimization.  Make
11925         static.  Don't mark parameters unused.
11926         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
11927         * config/spu/spu-protos.h (spu_optimization_options): Remove.
11928         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
11929         (spu_optimization_options): Rename to spu_option_optimization.
11930         Make static.
11931         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
11932         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
11933         (v850_option_optimization): New.
11934         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
11935         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
11936         (xtensa_option_optimization): New.
11937         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
11939 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
11941         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
11942         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
11943         * doc/tm.texi: Regenerate.
11944         * system.h (OVERRIDE_OPTIONS): Poison.
11945         * target.def (override): Default to hook_void_void.
11946         * targhooks.c (default_target_option_override): Remove.
11947         * genmodes.c, machmode.def: Update comments mentioning
11948         OVERRIDE_OPTIONS.
11949         * config/alpha/alpha-modes.def: Update comment mentioning
11950         alpha_override_options.
11951         * config/alpha/alpha-protos.h (override_options): Remove.
11952         * config/alpha/alpha.c (override_options): Rename to
11953         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
11954         (TARGET_OPTION_OVERRIDE): Define.
11955         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
11956         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
11957         of OVERRIDE_OPTIONS.
11958         * config/arc/arc-protos.h (arc_init): Remove.
11959         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
11960         (arc_init): Rename to arc_option_override.  Make static.
11961         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
11962         (OVERRIDE_OPTIONS): Remove.
11963         * config/arm/arm-protos.h (arm_override_options): Remove.
11964         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
11965         (arm_override_options): Rename to arm_option_override.  Make
11966         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
11967         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
11968         * config/arm/arm.md: Update comment referring to arm_override_options.
11969         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
11970         instead of OVERRIDE_OPTIONS.
11971         * config/avr/avr-protos.h (avr_override_options): Remove.
11972         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
11973         (avr_override_options): Rename to avr_option_override.  Make static.
11974         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
11975         * config/bfin/bfin-protos.h (override_options): Remove (twice).
11976         * config/bfin/bfin.c (override_options): Rename to
11977         bfin_option_override.  Make static.
11978         (TARGET_OPTION_OVERRIDE): Define.
11979         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
11980         * config/cris/cris-protos.h (cris_override_options): Remove.
11981         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
11982         (cris_override_options): Rename to cris_option_override.  Make static.
11983         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
11984         * config/frv/frv-protos.h (frv_override_options): Remove.
11985         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
11986         (frv_override_options): Rename to frv_option_override.  Make static.
11987         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
11988         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
11989         * config/h8300/h8300.c (h8300_init_once): Rename to
11990         h8300_option_override.  Make static.
11991         (TARGET_OPTION_OVERRIDE): Define.
11992         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
11993         * config/i386/i386-protos.h (override_options): Remove.
11994         * config/i386/i386.c (override_options): Rename to
11995         ix86_option_override_internal.  Make static.  Comments referring
11996         to this function and callers changed.
11997         (ix86_option_override): New.
11998         (TARGET_OPTION_OVERRIDE): Define.
11999         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
12000         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
12001         * config/ia64/ia64.c (ia64_file_start): Update comment referring
12002         to ia64_override_options.
12003         * config/iq2000/iq2000-protos.h (override_options): Remove.
12004         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
12005         (override_options): Rename to iq2000_option_override.  Make static.
12006         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
12007         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
12008         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
12009         (lm32_override_options): Rename to lm32_option_override.  Make static.
12010         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
12011         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
12012         (m32r_option_override): New.
12013         (m32r_init): Update comment.
12014         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
12015         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
12016         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
12017         (m68hc11_override_options): Rename to m68hc11_option_override.
12018         Make static.  Return void.
12019         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
12020         * config/m68k/m68k-protos.h (override_options): Remove.
12021         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
12022         (override_options): Rename to m68k_option_override.  Make static.
12023         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
12024         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
12025         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
12026         (mcore_override_options): Rename to mcore_option_override.  Make
12027         static.
12028         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
12029         * config/mep/mep-protos.h (mep_override_options): Remove.
12030         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
12031         (mep_override_options): Rename to mep_option_override.  Make static.
12032         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
12033         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
12034         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
12035         (mmix_override_options): Rename to mmix_option_override.  Make static.
12036         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
12037         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
12038         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
12039         (mn10300_override_options): Rename to mn10300_option_override.
12040         Make static.
12041         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
12042         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
12043         * config/moxie/moxie.c (moxie_override_options): Rename to
12044         moxie_option_override.  Make static.
12045         (TARGET_OPTION_OVERRIDE): Define.
12046         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
12047         * config/picochip/picochip-protos.h (picochip_override_options):
12048         Remove.  Update comment referring to picochip_override_options.
12049         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
12050         (picochip_override_options): Rename to picochip_option_override.
12051         Make static.  Update comment and definition of
12052         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
12053         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
12054         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12055         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12056         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12057         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12058         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12059         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
12060         instead of OVERRIDE_OPTIONS.
12061         * config/rs6000/rs6000-modes.def: Update comment referring to
12062         rs6000_override_options.
12063         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
12064         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
12065         (rs6000_override_options): Rename to
12066         rs6000_option_override_internal.  Make static.  Commented
12067         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
12068         (rs6000_option_override): New.
12069         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
12070         instead of OVERRIDE_OPTIONS.
12071         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
12072         * config/s390/s390-protos.h (override_options): Remove.
12073         * config/s390/s390.c (override_options): Rename to
12074         s390_option_override.  Make static.
12075         (TARGET_OPTION_OVERRIDE): Define.
12076         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
12077         * config/score/score-protos.h (score_override_options): Remove.
12078         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
12079         (score_override_options): Rename to score_option_override.  Make
12080         static.
12081         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
12082         Update comment referring to override_options.
12083         * config/score/score3.c (score3_override_options): Rename to
12084         score3_option_override.
12085         * config/score/score3.h (score3_override_options): Rename to
12086         score3_option_override.
12087         * config/score/score7.c (score7_override_options): Rename to
12088         score7_option_override.
12089         * config/score/score7.h (score7_override_options): Rename to
12090         score7_option_override.
12091         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
12092         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
12093         (sparc_override_options): Rename to sparc_option_override.  Make
12094         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
12095         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
12096         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
12097         instead of OVERRIDE_OPTIONS.
12098         * config/spu/spu-protos.h (spu_override_options): Remove.
12099         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
12100         (spu_override_options): Rename to spu_option_override.  Make
12101         static.
12102         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
12103         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
12104         OVERRIDE_OPTIONS.
12105         * config/vax/vax-protos.h (override_options): Remove.
12106         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
12107         (override_options): Rename to vax_option_override.  Make static.
12108         Call SUBTARGET_OVERRIDE_OPTIONS.
12109         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
12110         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
12111         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
12112         * config/xtensa/xtensa-protos.h (override_options): Remove.
12113         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
12114         (override_options): Rename to xtensa_option_override.  Make static.
12115         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
12117 2010-09-16  Richard Guenther  <rguenther@suse.de>
12119         PR tree-optimization/45623
12120         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
12121         (get_constraint_for_component_ref): If computing a constraint
12122         for the rhs handle type punning through unions.
12123         (get_constraint_for_address_of): Adjust.
12124         (get_constraint_for_1): Likewise.
12125         (get_constraint_for): Likewise.
12126         (get_constraint_for_rhs): New function.
12127         (do_structure_copy): Adjust.
12128         (make_constraint_to): Likewise.
12129         (handle_const_call): Likewise.
12130         (find_func_aliases): Likewise.
12131         (process_ipa_clobber): Likewise.
12132         (create_variable_info_for): Likewise.
12134 2010-09-16  Ira Rosen  <irar@il.ibm.com>
12136         * tree-vectorizer.c: Fix documentation.
12137         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
12138         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
12139         is_pattern_stmt_p, is_loop_header_bb_p,
12140         stmt_vinfo_set_inside_of_loop_cost,
12141         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
12142         known_alignment_for_access_p): Likewise.
12143         * tree-vect-loop.c: Fix documentation.
12144         (vect_get_cost): Start function name from new line.
12145         * tree-vect-data-refs.c: Fix documentation.
12146         * tree-vect_stmts.c: Likewise.
12147         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
12148         (vectorizable_store): Free vec_oprnds if allocated.
12149         (vectorizable_condition): Initialize several variables to avoid
12150         warnings.
12151         * tree-vect-slp.c: Fix documentation.
12153 2010-09-16  Richard Guenther  <rguenther@suse.de>
12155         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
12156         is TS_TRANSLATION_UNIT_DECL.
12157         (initialize_tree_contains_struct): Adjust.
12158         (all_translation_units): New global vector.
12159         (build_translation_unit_decl): New function.
12160         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
12161         (struct tree_translation_unit_decl): New.
12162         (all_translation_units): Declare.
12163         (union tree_node): Add translation_unit_decl member.
12164         (build_translation_unit_decl): Declare.
12165         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
12166         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
12167         New function.
12168         (pack_value_fields): Call it.
12169         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
12170         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
12171         (lto_output_tree_pointers): Call it.
12172         * lto-streamer-in.c (lto_input_tree_ref): Handle references
12173         to TRANSLATION_UNIT_DECL.
12174         (unpack_ts_translation_unit_decl_value_fields): New function.
12175         (unpack_value_fields): Call it.
12176         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
12177         (lto_input_tree_pointers): Call it.
12178         * lto-streamer.c (check_handled_ts_structures): Adjust.
12179         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
12180         * c-decl.c (all_translation_units): Remove.
12181         (pop_scope): Use build_translation_unit_decl.
12182         (collect_all_refs): Adjust.
12183         (for_each_global_decl): Likewise.
12184         (c_write_global_declarations): Likewise.
12186 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
12188         PR bootstrap/45686
12189         * fold-const.c (fold_checksum_tree): Change slot from const void **
12190         to void **, use CONST_CAST_TREE to store into *slot.
12192 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
12194         * config/i386/i386.md: Remove unneeded empty conditions and
12195         preparation statements from expanders.
12196         * config/i386/mmx.md: Ditto.
12197         * config/i386/sse.md: Ditto.
12199 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
12201         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
12203 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12205         PR rtl-optimization/45593
12206         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
12207         insns that were in delay slots as stand-alone insns.
12209 2010-09-15  Ian Lance Taylor  <iant@google.com>
12211         * incpath.c (remove_duplicates): If name is not a directory, issue
12212         a warning rather than an error.
12214 2010-09-15  Martin Jambor  <mjambor@suse.cz>
12216         PR middle-end/45644
12217         * tree-sra.c (create_access): Check for bit-fields directly.
12219 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
12221         PR tree-optimization/45633
12222         * tree-cfg.c (verify_gimple_assign_binary): Allow
12223         MINUS_EXPR with lhs and rhs1 pointer vector and
12224         rhs2 sizetype vector.
12225         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
12226         or vector pointer use TER to optimize pointer subtraction.
12228 2010-09-15  Jie Zhang  <jie@codesourcery.com>
12230         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
12231         fcmpd to fcmps.
12233 2010-09-15  Ian Lance Taylor  <iant@google.com>
12235         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
12237 2010-09-15  Ian Lance Taylor  <iant@google.com>
12239         * function.c (get_arg_pointer_save_area): Set
12240         arg_pointer_save_area_init to true.
12242 2010-09-15  Martin Jambor  <mjambor@suse.cz>
12244         * tree-sra.c (generate_subtree_copies): Updated comment.
12245         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
12246         obtained from the statement iterator instead.
12247         (load_assign_lhs_subreplacements): Removed parameters lhs and
12248         right_offset, which is obtained from top_racc instead.  Parameter lacc
12249         is now expected to be the root of the processed tree rather than root's
12250         first child.  Updated all callers.
12252 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
12254         * config/pdp11/pdp11.c (register_move_cost): Rename to
12255         pdp11_register_move_cost.
12256         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
12257         pdp11_register_move_cost.
12258         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
12259         pdp11_register_move_cost instead of register_move_cost.
12261 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
12263         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
12264         pattern for vmovn. Expansion in case of non
12265         -mvectorize-with-neon-quad.
12266         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
12267         non- -mvectorize-with-neon-quad case.
12268         (move_lo_quad_<mode>): New expansion to vmov into low part.
12269         (move_hi_quad_<mode>): New expansion to vmov into high part.
12270         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
12271         (move_lo_quad_v4sf): Likewise.
12272         (move_lo_quad_v8hi): Likewise.
12273         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
12274         low part.
12275         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
12276         high part.
12277         * config/arm/iterators.md (ANY128): New mode iterator.
12278         (V_narrow_pack): New mode attribute.
12279         (V_HALF): Add attribute.
12280         (V_DOUBLE): Add attribute.
12281         (V_mode_nunits): Add attribute.
12283 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
12285         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
12286         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
12288 2010-09-15  Olivier Hainque  <hainque@adacore.com>
12289             Jose Ruiz  <ruiz@adacore.com>
12291         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
12292         * config/alpha/osf5-unwind.h: New file.
12294 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12296         PR bootstrap/45672
12297         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
12298         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12299         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12301 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12303         * c-lang.h (struct lang_type): Add variable_size GTY option.
12305 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12307         PR bootstrap/45672
12308         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12310 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12312         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
12313         result isn't used in memory address.
12315 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12317         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
12318         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
12319         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
12320         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
12321         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
12322         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
12324         * target.def: Add units_per_simd_word to vectorize.
12326         * targhooks.c (default_units_per_simd_word): New.
12327         * targhooks.h (default_units_per_simd_word): Likewise.
12328         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
12329         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12330         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
12331         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12332         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
12333         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12334         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
12335         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
12337         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
12338         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
12340         * tree-vect-stmts.c: Don't include "tm_p.h".
12341         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
12342         with targetm.vectorize.units_per_simd_word.
12344         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
12346         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
12348         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
12349         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
12351         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
12352         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
12354         * doc/tm.texi: Regenerated.
12356 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12358         * tree-vect-stmts.c: Include "tm_p.h".
12360         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
12361         out of RTX_CODE.
12363 2010-09-14  Martin Jambor  <mjambor@suse.cz>
12365         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
12366         location of generated statement.  Changed all callers.
12367         (build_ref_for_model): New parameter loc which used to set location of
12368         all generated expressions.  Changed all callers.
12369         (generate_subtree_copies): Likewise.
12370         (init_subtree_with_zero): Likewise.
12371         (sra_modify_expr): Set locations of all generated statements and
12372         expressions to the location the original statement.
12373         (handle_unscalarized_data_in_subtree): Likewise.
12374         (load_assign_lhs_subreplacements): Likewise.
12375         (sra_modify_constructor_assign): Likewise.
12376         (sra_modify_assign): Likewise.
12378 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
12380         PR target/45277
12381         PR target/45363
12382         PR target/45407
12383         * doc/install.texi (sparc*-*-*): New section.
12384         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
12386 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
12388         PR middle-end/45567
12389         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
12390         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
12391         (expand_builtin): Adjust caller.
12392         (expand_builtin_unop): Only use subtarget if it has the right mode.
12394 2010-09-14  Tristan Gingold  <gingold@adacore.com>
12396         * configure.ac (plugins): Fix typos.
12397         * configure: Regenerate.
12399 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
12401         PR debug/45660
12402         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
12403         gen_type_die for function/method return type.
12405 2010-09-14  Ira Rosen  <irar@il.ibm.com>
12407         PR tree-optimization/45470
12408         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
12409         can throw an exception.
12410         * tree-vect-stmts.c (vectorizable_call): Likewise.
12412 2010-09-14  DJ Delorie  <dj@redhat.com>
12414         PR target/44749
12415         * config/mep/mep-protos.h (mep_save_register_info,
12416         mep_reinit_regs, mep_init_regs): Declare.
12418         * config/mep/mep.c: Move all target definitions to the end of the
12419         file to avoid the need for duplicate declarations.
12420         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
12421         (mep_reorg_erepeat): Remove unused variables.
12422         (mep_expand_builtin): Likewise.
12424         * config/mep/mep-pragma.c: Don't include rtl.h.
12425         (INVALID_REGNUM): New.
12426         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
12427         functions.
12428         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
12429         Avoid enum/integer math.
12431 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
12433         PR target/44749
12434         * config/mep/t-mep (GTM_H): Add insn-constants.h.
12435         * config/mep/mep.c (mep_conditional_register_usage): Take no
12436         parameters.
12437         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
12438         prototype.
12439         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
12440         call to mep_conditional_register_usage.
12442 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
12444         PR debug/43937
12445         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
12446         the DECL as well.
12448 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
12450         PR rtl-optimization/45617
12451         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
12452         even if low N bits of X aren't known to be zero.
12454 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
12456         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
12458         * config/i386/i386.c (initial_ix86_tune_features): Add
12459         X86_TUNE_VECTORIZE_DOUBLE.
12460         (ix86_units_per_simd_word): New.
12462         * config/i386/i386.h (ix86_tune_indices): Add
12463         X86_TUNE_VECTORIZE_DOUBLE.
12464         (TARGET_VECTORIZE_DOUBLE): New.
12465         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
12467 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
12469         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
12470         (new_temp_expr_table): Allocate call_cnt vector.
12471         (free_temp_expr_table): Free it.
12472         (process_replaceable): Add call_cnt parm and set in vector.
12473         (find_replaceable_in_bb): Skip replacement if def/use span a call.
12474         (debug_ter): Dump call_cnt value, remove stderr uses.
12476 2010-09-13  Jan Hubicka  <jh@suse.cz>
12478         * tree.c (build_zero_cst): New.
12479         * tree.h (build_zero_cst): Declare.
12480         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
12481         (get_base_constructor): Break out from ...
12482         (fold_const_aggregate_ref): Here; handle empty constructors.
12484 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12486         * config/arm/arm.md: (define_attr "conds"): Update comment.
12487         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
12488         conds attribute to clob.
12489         (arm_sync_compare_and_swapsi): Likewise.
12490         (arm_sync_compare_and_swap<mode>): Likewise.
12491         (arm_sync_lock_test_and_setsi): Likewise.
12492         (arm_sync_lock_test_and_set<mode>): Likewise.
12493         (arm_sync_new_<sync_optab>si): Likewise.
12494         (arm_sync_new_nandsi): Likewise.
12495         (arm_sync_new_<sync_optab><mode>): Likewise.
12496         (arm_sync_new_nand<mode>): Likewise.
12497         (arm_sync_old_<sync_optab>si): Likewise.
12498         (arm_sync_old_nandsi): Likewise.
12499         (arm_sync_old_<sync_optab><mode>): Likewise.
12500         (arm_sync_old_nand<mode>): Likewise.
12502 2010-09-13  Olivier Hainque  <hainque@adacore.com>
12504         * fwprop.c (forward_propagate_and_simplify): Only attach a
12505         REG_EQUAL note to an insn if the destination is a register.
12506         * gcse.c (try_replace_reg): Likewise.
12508 2010-09-13  Richard Guenther  <rguenther@suse.de>
12510         PR tree-optimization/45611
12511         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
12512         (copy_ref_info): Likewise.
12514 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
12516         PR debug/45604
12517         PR debug/45419
12518         PR debug/45408
12519         * tree-pretty-print.c (dump_generic_node): Disregard top-level
12520         types of MEM_REF pointer types to the same type.
12522 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
12524         PR rtl-optimization/41087
12525         * ifcvt.c (noce_get_condition): Don't allow conditions with
12526         side-effects.
12528 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
12530         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12531         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
12532         * config/frv/frv.c (frv_register_move_cost): Make static. Change
12533         arguments type to reg_class_t. Add mode argument.
12534         (frv_memory_move_cost): New.
12535         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
12537 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
12539         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
12540         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
12542 2010-09-10  Jan Hubicka  <jh@suse.cz>
12544         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
12546 2010-09-10  Richard Guenther  <rguenther@suse.de>
12548         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
12549         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
12550         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
12551         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
12552         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
12554 2010-09-10  Richard Guenther  <rguenther@suse.de>
12556         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
12557         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
12558         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
12559         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
12561 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
12563         PR middle-end/45634
12564         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
12565         of string folding is of integral type.
12567 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
12569         * doc/invoke.texi (-x): Fix typo.
12571 2010-09-10  Richard Guenther  <rguenther@suse.de>
12573         PR debug/44115
12574         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
12575         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12576         Output DECL_DEBUG_EXPR.
12577         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12578         Input DECL_DEBUG_EXPR.
12580 2010-09-10  Richard Guenther  <rguenther@suse.de>
12582         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
12583         (build_index_type): Implement in terms of build_range_type.
12584         (build_range_type): Do not allow NULL_TREE type, improve
12585         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
12586         if we didn't hash.
12587         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
12588         create a distinct copy of the type.
12590 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
12592         * configure: Regenerated.
12593         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
12595 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12597         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
12598         * config/arm/cortex-a9-neon.md: New and partially generated.
12599         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
12601 2010-09-10  Richard Guenther  <rguenther@suse.de>
12603         * tree.h (build_index_2_type): Remove.
12604         * tree.c (build_index_2_type): Remove.
12606 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
12608         PR bootstrap/45630
12609         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
12610         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
12611         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
12613 2010-09-10  Martin Jambor  <mjambor@suse.cz>
12615         PR tree-optimization/44972
12616         * tree-sra.c: Include toplev.h.
12617         (build_ref_for_offset): Entirely reimplemented.
12618         (build_ref_for_model): New function.
12619         (build_user_friendly_ref_for_offset): New function.
12620         (analyze_access_subtree): Removed build_ref_for_offset check.
12621         (propagate_subaccesses_across_link): Likewise.
12622         (create_artificial_child_access): Use
12623         build_user_friendly_ref_for_offset.
12624         (propagate_subaccesses_across_link): Likewise.
12625         (ref_expr_for_all_replacements_p): Removed.
12626         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
12627         (sra_modify_expr): Use build_ref_for_model.
12628         (load_assign_lhs_subreplacements): Likewise.
12629         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
12630         checks for return values of build_ref_for_offset.
12631         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
12632         build_ref_for_offset.
12633         * ipa-prop.h: Include gimple.h
12634         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
12635         (ipa_analyze_indirect_call_uses): Update comment.
12636         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
12637         (IPA_PROP_H): Likewise.
12639 2010-09-10  Martin Jambor  <mjambor@suse.cz>
12641         PR tree-optimization/44972
12642         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
12643         calling build_ref_for_offset.
12645 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12647         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
12648         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
12649         * config/arm/arm-tune.md: Regenerate.
12650         * doc/invoke.texi (ARM Options): Document it.
12652 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
12654         * config/i386/i386.c: Include sched-int.h.
12655         (TARGET_SCHED_DISPATCH): Defined.
12656         (TARGET_SCHED_DISPATCH_DO): Defined.
12657         (DISPATCH_WINDOW_SIZE): Defined.
12658         (MAX_DISPATCH_WINDOWS): Defined.
12659         (MAX_INSN): Defined.
12660         (MAX_IMM): Defined.
12661         (MAX_IMM_SIZE): Defined.
12662         (MAX_IMM_32): Defined.
12663         (MAX_IMM_64): Defined.
12664         (MAX_LOAD): Defined.
12665         (MAX_STORE): Defined.
12666         (BIG): Defined.
12667         (dispatch_group): New.
12668         (num_allowable_groups): New.
12669         (group_name): New.
12670         (sched_insn_info_s): New.
12671         (dispatch_windows_s): New.
12672         (imm_info_s): New.
12673         (dispatch_window_list): New.
12674         (dispatch_window_list1): New.
12675         (get_mem_group): New.
12676         (is_cmp): New.
12677         (dispatch_violation): New.
12678         (is_branch): New.
12679         (is_prefetch): New.
12680         (init_window): New.
12681         (allocate_window): New.
12682         (init_dispatch_sched): New.
12683         (is_end_basic_block): New.
12684         (process_end_window): New.
12685         (allocate_next_window): New.
12686         (find_constant_1): New.
12687         (find_constant): New.
12688         (get_num_immediates): New.
12689         (has_immediate): New.
12690         (get_insn_path): New.
12691         (get_insn_group): New.
12692         (count_num_restricted): New.
12693         (fits_dispatch_window): New.
12694         (add_insn_window): New.
12695         (add_to_dispatch_window): New.
12696         (debug_dispatch_window_file): New.
12697         (debug_dispatch_window): New.
12698         (debug_insn_dispatch_info_file): New.
12699         (debug_ready_dispatch): New.
12700         (do_dispatch): New.
12701         (has_dispatch): New.
12702         * config/i386/i386.h (debug_ready_dispatch): Declared.
12703         (debug_dispatch_window): Declared.
12704         * config/i386/i386.opt (mdispatch-scheduler): New flag.
12705         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
12706         (TARGET_SCHED_DISPATCH_DO): New.
12707         * doc/tm.texi: Regererated.
12708         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
12709         ready_remove_first_dispatch
12710         (schedule_block): Call targetm.sched.dispatch and
12711         targetm.sched.dispatch_do.
12712         (sched_init): Call targetm.sched.dispatch and
12713         targetm.sched.dispatch_do.
12714         (ready_remove_first_dispatch): New.
12715         (number_in_ready): New.
12716         (get_ready_element): New.
12717         * hooks.c (hook_bool_rtx_int_false): New.
12718         (hook_void_rtx_int): New.
12719         * hooks.h (hook_bool_rtx_int_false): Declared.
12720         (hook_void_rtx_int): Declared.
12721         * sched-int.h (IS_DISPATCH_ON): Defined.
12722         (IS_CMP): Defined.
12723         (DISPATCH_VIOLATION): Defined.
12724         (FITS_DISPATCH_WINDOW): Defined.
12725         (DISPATCH_INIT): Defined.
12726         (ADD_TO_DISPATCH_WINDOW): Defined.
12727         (get_ready_element): Declared.
12728         (number_in_ready): Declared.
12729         * target.def (dispatch): Defined.
12730         (dispatch_do): Defined.
12732 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12734         PR middle-end/45312
12735         * reload1.c (merge_assigned_reloads): Remove.
12736         (reload_as_needed): Don't call it.
12738 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
12740         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
12741         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12742         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12744 2010-09-09  Matthias Klose  <doko@ubuntu.com>
12746         PR bootstrap/43847
12747         * configure.ac (--enable-plugin): Enhance for cross builds.
12748         * configure: Regenerate.
12750 2010-09-09  Jan Hubicka  <jh@suse.cz>
12752         PR tree-optimization/45598
12753         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
12754         string folding is of integral type.
12756 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12758         * configure.ac (gnu_indirect_function): New test.
12759         * configure: Rebuilt.
12760         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
12761         * defaults.h (IFUNC_ASM_TYPE): Provide default.
12763         * doc/extend.texi (Function Attributes): Document ifunc.
12764         * varasm.c (do_assemble_alias): Deal with ifuncs too.
12766 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
12768         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
12769         epilogue instruction move.
12771 2010-09-09  Jan Hubicka  <jh@suse.cz>
12773         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
12774         command line to allow more partitions than input files.
12776 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12778         PR middle-end/44554
12779         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
12781 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12783         PR middle-end/40386
12784         * ira.c (pseudo_for_reload_consideration_p): Don't use
12785         flag_ira_share_spill_slots.
12787 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12789         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
12790         point zero operands that fit into a single GPR.
12791         (s390_preferred_reload_class): Ensure we only return general-purpose
12792         register classes.
12793         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
12794         floating-point zero operands into GPRs.
12795         ("*mov<mode>_64"): Likewise.
12796         ("mov<mode>"): Likewise using lhi.
12798 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12800         * config/s390/s390.c (s390_symref_operand_p): Return false for
12801         literal pool references.
12802         (s390_check_qrst_address): Update caller.
12804 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
12806         * config/i386/predicates.md (ext_register_operand): Check that
12807         SUBREG_REG is really a register before looking for REGNO.
12808         (reg_not_xmm0_operand): Handle SUBREGs correctly.
12809         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
12811 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
12813         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
12814         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
12815         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
12816         * print-rtl.c (print_rtx): Likewise.
12817         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12818         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
12819         for ADDR_EXPR with non-addressable object.
12820         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
12821         (struct dw_val_struct): Add v.val_decl_ref.
12822         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
12823         Handle DW_OP_GNU_implicit_pointer.
12824         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
12825         (get_ref_die_offset_label): New function.
12826         (implicit_ptr_descriptor): New function.
12827         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
12828         (loc_descriptor): Likewise.
12829         (gen_variable_die): Put even definitions into decl_die_table.
12830         (resolve_addr_in_expr): Resolve still unresolved
12831         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
12832         return false.
12833         (dwarf2out_finish): Call output_location_lists after outputting
12834         .debug_info and .debug_abbrev instead of before.
12836 2010-09-09  Roland McGrath  <roland@redhat.com>
12838         * dwarf2out.c (DWARF_REF_SIZE): Define.
12839         (size_of_loc_descr): Use it for DW_OP_call_ref.
12841 2010-09-09  Alan Modra  <amodra@gmail.com>
12843         * doc/invoke.text: Reinstate mcmodel=medium.
12844         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12845         CMODEL_MEDIUM as default.
12846         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
12847         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
12848         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
12849         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
12851 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12853         PR target/45250
12854         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
12855         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
12856         (builtin_longjmp): Likewise.
12857         (allocate_stack): Use hard_frame_pointer_rtx instead of
12858         frame_pointer_rtx.
12859         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
12860         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
12861         (pa_can_eliminate): Likewise.
12862         (TARGET_INTERNAL_ARG_POINTER): Define.
12863         (TARGET_CAN_ELIMINATE): Define.
12864         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
12865         pointer.
12866         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
12867         (pa_internal_arg_pointer, pa_can_eliminate,
12868         pa_initial_elimination_offset): New.
12869         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
12870         (HARD_FRAME_POINTER_REGNUM): Set to register three.
12871         (INITIAL_FRAME_POINTER_OFFSET): Delete.
12872         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
12873         Define.
12874         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
12875         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
12876         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
12877         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
12878         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
12879         new soft frame pointer.
12880         * config/pa/pa64-regs.h: Likewise.
12882 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
12884         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
12885         numerical constant.
12886         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
12888 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
12890         PR debug/45531
12891         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
12893 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
12895         PR debug/45419
12896         PR debug/45408
12897         * tree-pretty-print.c (dump_generic_node): Disregard top-level
12898         qualifiers in otherwise equal MEM_REF pointer types.
12899         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
12900         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
12902 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12904         PR target/44392
12905         * config/arm/arm.md (bswapsi2): Handle condition correctly
12906         for armv6 and optimize_size.
12908 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12910         PR other/18555
12911         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
12913 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
12915         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
12916         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
12917         ix86_expand_strlen, legitimate_pic_address_disp_p,
12918         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
12919         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
12920         ix86_check_movabs, ix86_secondary_memory_needed): Change function
12921         prototype to bool.
12922         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
12923         return_in_memory_ms_64, ix86_check_movabs,
12924         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
12925         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
12926         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
12927         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
12928         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
12929         ix86_secondary_memory_needed): Change to bool.  Return
12930         "true" and "false" values.
12931         * config/i386/i386.md: Return "true" and "false" values.
12933 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12935         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12936         run_expensive_tests.
12938 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12940         * toplev.c (output_stack_usage): Use lbasename instead of basename.
12942 2010-09-08  Martin Jambor  <mjambor@suse.cz>
12944         PR other/45443
12945         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
12946         at -O3.
12948 2010-09-08  Richard Guenther  <rguenther@suse.de>
12950         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
12951         (visit): Adjust.
12952         (iterative_hash_gimple_type): Likewise.
12953         (gimple_type_hash): Likewise.
12954         (gimple_register_type): Likewise.
12955         (print_gimple_types_stats): Likewise.
12956         (free_gimple_type_tables): Likewise.
12958 2010-09-08  Michael Matz  <matz@suse.de>
12960         PR tree-optimization/43430
12961         * tree-vect-stmts.c (vectorizable_condition): Support multiple
12962         copies for conditional statements if it's not part of a reduction.
12964 2010-09-08  Michael Matz  <matz@suse.de>
12966         PR tree-optimization/33244
12967         * tree-ssa-sink.c (statement_sink_location): Don't sink into
12968         empty loop latches.
12970 2010-09-08  Richard Guenther  <rguenther@suse.de>
12972         PR tree-optimization/45578
12973         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
12974         Be more careful when transfering alignment information to
12975         the new induction variable.
12976         (copy_ref_info): Likewise.
12978 2010-09-08  Richard Guenther  <rguenther@suse.de>
12980         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
12981         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
12983 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
12985         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
12986         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
12988 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
12990         PR doc/45587
12991         * doc/md.texi: Fixed modes on several standard pattern names.
12993 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
12995         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
12996         (ashl<mode>3): ...this.
12997         (loongson_psra<V_suffix>): Rename to...
12998         (ashr<mode>3): ...this.
12999         (loongson_psrl<V_suffix>): Rename to...
13000         (lshr<mode>3): ...this.
13001         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
13002         (CODE_FOR_loongson_psllw): Define.
13003         (CODE_FOR_loongson_psrlh): Define.
13004         (CODE_FOR_loongson_psrlw): Define.
13005         (CODE_FOR_loongson_psrah): Define.
13006         (CODE_FOR_loongson_psraw): Define.
13008 2010-09-07  Richard Henderson  <rth@redhat.com>
13010         * tree-vect-data-refs.c: Include tm_p.h.
13011         * Makefile.in (tree-vect-data-refs.o): Update deps.
13012         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
13013         Move delarations outside #ifdef RTX_CODE.
13015 2010-09-07  Richard Henderson  <rth@redhat.com>
13017         * final.c (rest_of_handle_final): Unconditionally do
13018         output_function_exception_table before assemble_end_function.
13020 2010-09-07  Jan Hubicka  <jh@suse.cz>
13022         * tree-inline.c (tree_inlinable_function_p): Do not test
13023         DECL_REPLACEABLE_P.
13024         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
13025         update_callee_keys, cgraph_decide_inlining): Test function availability.
13026         * cif-code.def (OVERWRITABLE): New code.
13028 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
13029             Jack Howarth  <howarth@bromo.med.uc.edu>
13031         PR target/36502
13032         PR target/42313
13033         PR target/44651
13034         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
13035         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
13036         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
13037         MAX macro.
13039 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13041         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
13042         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
13044 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13046         * config.gcc: Don't append t-android for Android targets.
13048         * config/t-android: Removed.
13050 2010-09-07  Richard Henderson  <rth@redhat.com>
13052         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
13053         * doc/tm.texi.in: Add doc marker.
13054         * doc/tm.texi: Rebuild.
13055         * except.c (switch_to_exception_section): Always build.
13056         (output_one_function_exception_table): Move section switch,
13057         personality output, and label output ...
13058         (output_function_exception_table): ... here.  Use the new
13059         personality hook.
13061         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
13062         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
13063         TARGET_ASM_INIT_SECTIONS): New.
13064         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
13065         make static.
13066         (TARGET_ASM_UNWIND_EMIT): Update to match.
13067         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
13069         * config/arm/arm.c (arm_asm_emit_except_personality): New.
13070         (arm_asm_init_sections): New.
13071         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
13073 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13075         * config/arm/arm.md: Remove unused variable.
13077 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
13079         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13080         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
13081         (m32r_memory_move_cost): New function.
13083 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13085         * config.gcc: Append t-android for Android targets.
13087         * config/t-android: New.
13089 2010-09-07  Richard Henderson  <rth@redhat.com>
13091         * target.def (unwind_emit_before_insn): New hook.
13092         * doc/tm.texi.in: Add @hook marker for it.
13093         * doc/tm.texi: Rebuild.
13094         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
13096 2010-09-07  Martin Jambor  <mjambor@suse.cz>
13098         PR fortran/43665
13099         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
13100         are any type attributes.
13102 2010-09-07  Jan Hubicka  <jh@suse.cz>
13104         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
13105         array_ref_low_bound in string access folding.
13107 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
13109         PR target/45206
13110         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
13111         eh_return fixup sequence.
13113 2010-09-07  Jan Hubicka  <jh@suse.cz>
13115         * gimple-fold.c (maybe_fold_reference): Verify that operand is
13116         gimple_min_invariant.
13118 2010-09-07  Richard Guenther  <rguenther@suse.de>
13120         PR middle-end/45569
13121         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
13122         nor CONSTRUCTOR can trap.
13123         * tree-complex.c (update_complex_assignment): Update EH info.
13125 2010-09-07  Richard Guenther  <rguenther@suse.de>
13127         PR middle-end/45569
13128         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
13129         * passes.c (execute_function_todo): Do not verify anything if
13130         we saw errors.
13132 2010-09-07  Richard Guenther  <rguenther@suse.de>
13134         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
13136 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
13138         PR target/43137
13139         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
13140         New define_mode_attrs.
13141         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
13142         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
13143         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
13144         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
13145         Remove pool_range attribute.
13146         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
13147         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
13148         pool_range and neg_pool_range attributes.
13149         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
13150         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
13151         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
13153 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13155         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
13156         check glibc.
13158 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
13160         PR target/22152
13161         * config/i386/mmx.md (*mov<mode>_internal_rex64,
13162         *mov<mode>_internal_avx, *mov<mode>_internal,
13163         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
13164         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
13166 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
13168         * c-typeck.c (do_warn_double_promotion): Remove.
13169         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
13170         Objective-C++ too.
13172 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
13174         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
13175         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
13176         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
13177         argument type to reg_class_t. Change result type to bool.
13178         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13180 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
13182         PR libobjc/19850
13183         * gthr-posix.h (__gthread_objc_thread_detach): Use
13184         _objc_thread_attribs when detaching a thread.
13185         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
13187 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13189         PR target/45524
13190         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
13191         * configure: Regenerated.
13193 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13195         * combine.c (try_combine): Set subst_low_luid to i0.
13197 2010-09-06  Richard Guenther  <rguenther@suse.de>
13199         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
13200         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
13201         (build_aligned_type): Declare.
13202         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
13203         (check_aligned_type): New function.
13204         (build_aligned_type): Likewise.
13205         * expr.c (expand_assignment): Handle misaligned stores via
13206         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
13207         (expand_expr_real_1): Likewise.
13208         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
13209         * tree-vect-stmts.c (vectorizable_store): Do not build
13210         MISALIGNED_INDIRECT_REF but initialize alignment information.
13211         (vectorizable_load): Likewise.
13212         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
13213         handling.
13214         * cfgexpand.c (expand_debug_expr): Likewise.
13215         * dwarf2out.c (loc_list_from_tree): Likewise.
13216         * fold-const.c (maybe_lvalue_p): Likewise.
13217         (operand_equal_p): Likewise.
13218         (build_fold_addr_expr_with_type_loc): Likewise.
13219         * gimplify.c (gimplify_addr_expr): Likewise.
13220         (gimplify_expr): Likewise.
13221         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
13222         (verify_gimple_assign_single): Likewise.
13223         * tree-dump.c (dequeue_and_dump): Likewise.
13224         (tree_could_trap_p): Likewise.
13225         * tree-predcom.c (ref_at_iteration): Likewise.
13226         * tree-pretty-print.c (dump_generic_node): Likewise.
13227         (op_code_prio): Likewise.
13228         (op_symbol_code): Likewise.
13229         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
13230         * tree-ssa-loop-im.c (for_each_index): Likewise.
13231         (gen_lsm_tmp_name): Likewise.
13232         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
13233         (find_interesting_uses_address): Likewise.
13234         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
13235         * tree-ssa-operands.c (get_expr_operands): Likewise.
13236         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13237         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13238         (ao_ref_init_from_vn_reference): Likewise.
13239         * tree.c (staticp): Likewise.
13240         (build1_stat): Likewise.
13241         (reference_alias_ptr_type): Likewise.
13242         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13243         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
13244         MISALIGNED_INDIRECT_REF handling.
13246 2010-09-06  Richard Guenther  <rguenther@suse.de>
13248         PR tree-optimization/45534
13249         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
13250         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
13251         on the target.
13252         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
13253         valid on the target.
13255 2010-09-06  Andreas Schwab  <schwab@redhat.com>
13257         * configure.ac: Quote argument of AC_MSG_WARN.
13258         * configure: Regenerate.
13260 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
13262         * sel-sched.c (move_cond_jump): Correct arguments to
13263         maybe_tidy_empty_bb.
13264         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
13266 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
13268         PR rtl-optimization/44919
13269         * sel-sched.c (move_cond_jump): Remove assert, check that
13270         the several blocks case can only happen with mutually exclusive
13271         insns instead.  Rewrite the movement code to support moving through
13272         several basic blocks.
13274 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
13276         * config/i386/i386.md (iptrsize): New mode attribute.
13277         (tp_seg): Ditto.
13278         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
13279         mode iterator.
13280         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
13281         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
13282         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
13283         (stack_tls_protect_set_<mode>): Ditto from
13284         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
13285         of thread base pointer load.
13286         (stack_tls_protect_test_<mode>): Ditto from
13287         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
13288         of thread base pointer load.
13289         (stack_protect_set): Rewrite using indirect functions.
13290         (stack_protect_test): Ditto.
13291         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
13292         (ix86_print_operand): Handle '@'.
13294 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
13296         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
13297         MINUS_EXPR.
13299 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
13301         * doc/invoke.texi: Document -Wdouble-promotion.
13302         * c-typeck.c (convert_arguments): Check for implicit conversions
13303         from float to double.
13304         (do_warn_double_promotion): New function.
13305         (build_conditional_expr): Use it.
13306         (build_binary_op): Likewise.
13308 2010-09-05  Richard Guenther  <rguenther@suse.de>
13310         PR tree-optimization/45535
13311         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
13312         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
13313         dereferencing it.
13314         (indirect_refs_may_alias_p): Likewise.
13316 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
13318         * config/sh/sh.c (sh_option_override): Make static.
13319         Adjust comments.  Declare.
13320         (sh_function_value_regno_p): Likewise.
13321         (sh_register_move_cost): Modify the arguments, make static.
13322         Adjust comments.  Declare.
13323         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
13324         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13325         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
13326         REGISTER_MOVE_COST): Delete.
13327         * config/sh/sh-protos.h (sh_override_options): Delete.
13328         (sh_register_move_cost): Delete.
13329         (sh_function_value_regno_p): Delete.
13331 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
13333         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
13334         m32r_function_value_regno_p): New functions.
13335         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13336         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
13337         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
13338         FUNCTION_VALUE_REGNO_P): Remove.
13340 2010-09-04  Jan Hubicka  <jh@suse.cz>
13342         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
13343         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
13344         fold_read_from_constant_string.
13346         * gimple.h (canonicalize_constructor_val): Declare.
13347         * gimple-fold.c (canonicalize_constructor_val): New function.
13348         (get_symbol_constant_value):Use it.
13349         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
13351 2010-09-04  Jan Hubicka  <jh@suse.cz>
13353         * tree-switch-conversion.c (build_one_array): Set constructor to be
13354         static.
13355         * varpool.c (varpool_finalize_decl): Compute const_value_known.
13357 2010-09-04  Richard Guenther  <rguenther@suse.de>
13359         PR bootstrap/45519
13360         * tree-flow.h (force_gimple_operand_1): Declare.
13361         (force_gimple_operand_gsi_1): Likewise.
13362         * gimplify.c (force_gimple_operand_1): New worker taking a
13363         gimple predicate for ...
13364         (force_gimple_operand): ... which now wraps it.
13365         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
13366         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
13367         last change.
13368         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
13369         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
13370         (create_mem_ref): Likewise.
13372 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
13374         * config/i386/predicates.md (sse_reg_operand): New predicate.
13375         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
13376         predicate for operand 1.
13377         (XFmode push splitter): Use fp_register_operand predicate
13378         for operand 1.
13379         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
13380         (SF-DF float_extend push splitter): Add reload_completed insn
13381         predicate.
13382         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
13383         MODEF mode macro.  Add reload_completed insn predicate.
13385 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
13387         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
13388         (struct df_extract_ref): Remove.
13389         (union df_ref_d): Remove extract_ref member.
13390         (df_ref_create): Remove last three arguments.
13391         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
13392         * df-scan.c (df_ref_record): Remove last three arguments, do not
13393         pass them to df_ref_create_structure.
13394         (df_uses_record): Remove first and last three arguments.  Replace
13395         first argument with DF_REF_REGULAR, adjust calls to remove the
13396         width, offset and mode.  Always call recursively on the second
13397         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
13398         (df_ref_create_structure): Remove first argument.
13399         (struct df_scan_problem_data): Remove ref_extract_pool.
13400         (df_scan_free_internal): Do not free it.
13401         (df_scan_alloc): Do not allocate it.
13402         (df_ref_create): Remove last three arguments, do not pass them to
13403         df_ref_create_structure.
13404         (df_free_ref): Remove DF_REF_EXTRACT case.
13405         (df_notes_rescan): Adjust call to df_uses_record.
13406         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
13407         Remove DF_REF_EXTRACT case.
13408         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
13409         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
13410         and SUBREG definitions.
13411         (df_get_conditional_uses): Remove references to width/offset/mode,
13412         adjust call to df_ref_create_structure.
13413         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
13414         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
13415         calls to df_uses_record and df_ref_record.
13416         * fwprop.c (update_df): Remove references to width/offset/mode,
13417         adjust call to df_ref_create.
13419 2010-09-03  Jan Hubicka  <jh@suse.cz>
13421         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
13422         (build_cdtor_fns): Update use of build_cdtor.
13424 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
13426         * doc/options.texi (SeparateAlias): Document.
13427         * opt-functions.awk (switch_flags): Handle SeparateAlias.
13428         * opth-gen.awk: Generate enumeration names for options marked
13429         SeparateAlias, but not for those marked Ignore.
13430         * opts-common.c (generate_canonical_option): Don't output separate
13431         argument for options marked CL_SEPARATE_ALIAS.
13432         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
13433         * opts.h (CL_SEPARATE_ALIAS): New.
13434         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
13435         CL_COMMON): Adjust definitions.
13436         * config/i386/darwin.opt, config/mips/sde.opt: New.
13437         * common.opt (fdump-final-insns): New.
13438         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
13439         i386/darwin.opt.
13440         (mips*-sde-elf*): Add mips/sde.opt.
13441         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
13442         -mno-data-in-code and -mcode-xonly here.
13443         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
13444         * gcc.c (option_map): Add "j" to --dump entry.
13445         (translate_options): Don't translate -d to -foutput-class-dir= here.
13447 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
13449         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
13450         DR_IS_WRITE.
13451         (compute_all_dependences): Same.
13452         (create_rdg_edge_for_ddr): Same.
13453         * tree-data-ref.h (DR_IS_WRITE): New.
13454         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
13455         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
13456         (write_memrefs_written_at_least_once): Same.
13457         * tree-predcom.c (suitable_component_p): Same.
13458         (determine_roots_comp): Same.
13459         (execute_load_motion): Same.
13460         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
13461         (vect_enhance_data_refs_alignment): Same.
13462         (vect_analyze_group_access): Same.
13464 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
13466         PR testsuite/42843
13467         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
13468         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
13470 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
13472         * dwarf2out.c (file scope): Remove #if0'd code.
13473         (gen_subprogram_die): Same.
13475 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
13477         PR middle-end/45484
13478         * dwarf2out.c (flush_queued_reg_saves): Rename to...
13479         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
13480         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
13481         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
13482         * config/i386/i386.c (output_set_got): Call it.
13484 2010-09-03  Michael Matz  <matz@suse.de>
13486         PR middle-end/45415
13487         * tree-sra.c (sra_modify_assign): If we modify the statement,
13488         say so.
13490         * tree-ssa.c (verify_ssa): Check number of operands and links
13491         per statement to agree.
13493 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
13494             Iain Sandoe  <iains@gcc.gnu.org>
13496         PR target/45476
13497         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
13498         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
13499         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
13501 2010-09-03  Richard Guenther  <rguenther@suse.de>
13503         * lto-streamer-out.c (output_function): Output function
13504         start and end loci.
13505         * lto-streamer-in.c (input_function): Input function start
13506         and end loci.
13508 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13510         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
13511         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
13512         * configure: Regenerate.
13513         * aclocal.m4: Regenerate.
13515 2010-09-03  Jan Hubicka  <jh@suse.cz>
13517         PR lto/44812
13518         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
13519         on functions/variables in other partition.
13521 2010-09-03  Jan Hubicka  <jh@suse.cz>
13523         * cgraph.h (struct varpool_node): Add const_value_known.
13524         (varpool_decide_const_value_known): Declare.
13525         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
13526         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
13527         (input_varpool_node): Restore const_value_known.
13528         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
13529         initializer folding.
13530         * ipa.c (ipa_discover_readonly_nonaddressable_var,
13531         function_and_variable_visibility): Compute const_value_known.
13532         * gimple-fold.c (get_symbol_constant_value): Use varpool for
13533         initializer folding.
13534         * varpool.c (varpool_decide_const_value_known): New function.
13536 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
13538         * config/i386/i386.md: Remove empty preparation statements
13539         from splitters.
13541 2010-09-03  Jan Hubicka  <jh@suse.cz>
13543         * passes.c (rest_of_decl_compilation): Do not add local vars into
13544         varpool.
13545         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
13546         static or extern vars are in varpool.
13547         (varpool_finalize_decl): Sanity check that only static vars are
13548         finalized.
13550 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
13552         PR debug/45500
13553         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
13554         not just generic vectors with BLKmode.
13556 2010-09-03  Richard Guenther  <rguenther@suse.de>
13558         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
13559         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
13560         * tree.h (TMR_SYMBOL): Remove.
13561         (TMR_BASE, TMR_OFFSET): Adjust.
13562         (TMR_INDEX2): New.
13563         * alias.c (ao_ref_from_mem): Use TMR_BASE.
13564         * builtins.c (get_object_alignment): Merge TMR_BASE and
13565         TMR_SYMBOL handling.
13566         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
13567         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
13568         handling.  Also allow TARGET_MEM_REF as base address.
13569         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
13570         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
13571         base.  Gimplify TMR_INDEX2.
13572         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
13573         * tree-dfa.c (get_ref_base_and_extent): Likewise.
13574         (get_addr_base_and_unit_offset): Likewise.
13575         * tree-eh.c (tree_could_trap_p): Likewise.
13576         * tree-pretty-print.c (dump_generic_node): Likewise.
13577         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
13578         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
13579         base to index2.
13580         (get_address_description): Reconstruct addres description
13581         from merged TMR_BASE and TMR_INDEX2.
13582         (maybe_fold_tmr): Fold propagated addresses.
13583         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
13584         MEM_REF and TARGET_MEM_REF paths.
13585         (indirect_refs_may_alias_p): Likewise.
13586         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
13587         instead of TMR_SYMBOL.
13588         * tree-ssa-operands.c (get_tmr_operands): Simplify.
13589         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
13590         according to changes ...
13591         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
13592         Split TARGET_MEM_REF into two fields plus the base.
13593         * tree.c (mem_ref_offset): Simplify.
13594         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
13595         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
13596         Strip NOPs when folding MEM_REF addresses.
13597         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
13598         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
13599         (fold_gimple_assign): ... not here.
13601 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
13603         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
13604         * config/mips/mips.c (mips_shift_truncation_mask): New function.
13605         (TARGET_SHIFT_TRUNCATION_MASK): Define.
13607 2010-09-02  Richard Henderson  <rth@redhat.com>
13609         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
13610         instead of readelf in the test.
13611         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
13612         in the .debug_frame section for coff targets.
13613         * configure: Rebuild.
13615 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
13617         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
13618         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
13619         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13620         (m32c_class_likely_spilled_p): Make static. Change argument type to
13621         reg_class_t. Change result type to bool.
13623 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13625         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
13626         to convert (double)(long) into a single FRIZ instruction or not
13627         when -ffast-math is used.
13629         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
13630         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
13631         or FRIZ instruction if -ffast-math.
13632         * config/rs6000/rs6000.md (friz): Ditto.
13634         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
13636 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13638         * opth-gen.awk (quote, comma): Remove unused variables.
13640 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
13642         * arm.c (arm_override_options): Correct fall-back code to use
13643         SUBTARGET_CPU_DEFAULT.
13645 2010-09-02  Julian Brown  <julian@codesourcery.com>
13647         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
13648         unspecs.
13649         (vcond<mode>, vcondu<mode>): New expanders.
13650         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
13651         comparisons with zero.
13652         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
13653         * config/arm/constraints.md (Dz): New constraint.
13655 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
13657         * target.def (class_likely_spilled_p): New hook.
13658         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
13659         * doc/tm.texi: Regenerate.
13660         * targhooks.c (default_class_likely_spilled_p): New function.
13661         * targhooks.h (default_class_likely_spilled_p): Declare.
13662         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
13663         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
13664         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
13665         Use fixed_reg_set instead of fixed_regs.
13666         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
13667         * calls.c (avoid_likely_spilled_reg): Ditto.
13668         * ira-conflicts.c (ira_build_conflicts): Ditto.
13669         * ira.c (update_equiv_regs): Ditto.
13670         * mode-switching.c (create_pre_exit): Ditto.
13671         * regmove.c (find_matches): Ditto.
13672         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
13673         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
13674         (small_register_class_p): New inline function.
13675         (push_secondary_reload, find_reusable_reload, find_reloads): Use
13676         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
13678         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
13679         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
13680         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
13682 2010-09-02  Richard Guenther  <rguenther@suse.de>
13684         PR tree-optimization/44937
13685         PR tree-optimization/45412
13686         * ipa-split.c (split_function): Properly remove PHI nodes.
13688 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13690         * opts.h (struct cl_option): Add warn_message field.
13691         (struct cl_decoded_option): Add warn_message field.
13692         * doc/options.texi (Ignore, Warn): Document.
13693         * opt-functions.awk (needs_state_p): Don't consider aliases or
13694         ignored options to need state saved.
13695         * optc-gen.awk: Handle Warn and Ignore.
13696         * opth-gen.awk: Output OPT_SPECIAL_ignore.
13697         * opts-common.c (decode_cmdline_option): Set warn_message field.
13698         Handle ignored options.
13699         (decode_cmdline_options_to_array, generate_option,
13700         generate_option_input_file): Set warn_message field.
13701         (read_cmdline_option): Generate warnings from warn_message field.
13702         Handle ignored options.
13703         * common.opt (Wunreachable-code, fargument-alias,
13704         fargument-noalias, fargument-noalias-global,
13705         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
13706         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
13707         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
13708         ftree-salias): Mark Ignore.
13709         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
13710         -mintel-syntax and -mno-intel-syntax here.
13711         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
13712         using Warn.
13713         * opts.c (common_handle_option): Don't handle options marked as
13714         ignored.
13715         (enable_warning_as_error): Handle ignored options.
13717 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
13719         PR driver/44076
13720         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
13721         alias_target fields.
13722         * opt-functions.awk (opt_sanitized_name): Don't handle
13723         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
13724         * optc-gen.awk: Generate alias fields.
13725         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
13726         Don't generate such constants for aliases.
13727         * opts-common.c (generate_canonical_option): New.
13728         (decode_cmdline_option): Handle aliases.  Use
13729         generate_canonical_option for known options instead of copying the
13730         input option text.
13731         * doc/options.texi (Alias): Document.
13732         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
13733         fstack-check, specs): Mark as aliases.
13734         * gcc.c (driver_handle_option): Canonicalize -L options to joined
13735         arguments.
13736         (driver_handle_option): Don't handle OPT_specs.
13737         * opts.c (common_handle_option): Don't handle options marked as
13738         aliases.
13739         (enable_warning_as_error): Handle aliases.
13740         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
13741         OPT_Wlarger_than_eq.
13742         * tree-optimize.c (tree_rest_of_compilation): Use
13743         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
13745 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
13747         * config/i386/i386.md (nonmemory_operand): New mode attribute.
13748         (push memory peephole2): Macroize peepholes using SWI mode iterator.
13749         (move immediate to memory peephole2): Macroize peepholes using
13750         SWI124 mode iterator.
13751         (non-pairable NOT peephole2): Macroize peepholes using SWI124
13752         mode iterator.
13753         (simple lea add peephole2): Macroize peepholes using SWI48
13754         mode iterator.
13755         (simple lea mult peephole2): Ditto.
13756         (imul by 3,5,9 to lea peephole2): Ditto.
13757         (mov $-1, reg peephole2): Macroize peepholes using SWI248
13758         mode iterator.
13759         (imul $32bit_imm,mem,reg peephole2): Ditto.
13760         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
13762 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
13764         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
13766 2010-09-02  Olivier Hainque  <hainque@adacore.com>
13768         PR middle-end/44763
13769         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
13770         (allocno_priority_compare_func): Use it instead of a straight
13771         difference computation over priorities.
13773 2010-09-02  Andi Kleen  <ak@linux.intel.com>
13775         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
13777 2010-09-02  Ira Rosen  <irar@il.ibm.com>
13779         * tree-vectorizer.h (get_later_stmt): New function.
13780         (vect_analyze_data_ref_dependences): Add argument.
13781         * tree-vect-loop.c (vect_analyze_loop): Update call to
13782         vect_analyze_data_ref_dependences.
13783         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
13784         New function.
13785         (vect_analyze_data_ref_dependence): Add argument for basic block
13786         dependencies. Check dependencies in basic block vectorization.
13787         (vect_analyze_data_ref_dependences): Add argument and update call to
13788         vect_analyze_data_ref_dependences.
13789         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
13790         (vect_bb_vectorizable_with_dependencies): New.
13791         (vect_slp_analyze_bb): Check dependencies in basic block.
13792         (vect_schedule_slp_instance): Insert stores before the last store in
13793         SLP instance.
13795 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
13797         PR target/45476
13798         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
13799         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
13801 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
13803         PR middle-end/45458
13804         * bb-reorder.c (add_labels_and_missing_jumps): Treat
13805         bbs ending with throwing insns like blocks ending with a call.
13806         (fix_up_fall_thru_edges): Likewise.
13808 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
13810         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
13811         (m32c_function_arg_advance): Delete.
13812         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13813         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
13814         comments.  Take a const_tree and a bool.  Declare.
13815         (m32c_function_arg_advance): Likewise.
13816         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13818 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13820         PR target/45476
13821         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
13822         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
13823         * config/i386/mingw32.h: ... here.
13825 2010-09-01  Andi Kleen  <ak@linux.intel.com>
13827         PR lto/45475
13828         * lto-streamer-in.c (lto_input_ts_target_option): Add.
13829         (lto_input_tree_pointers): Call lto_input_ts_target_option.
13830         * lto-streamer-out (lto_output_ts_target_option): Add.
13831         (lto_output_tree_pointers): Call lto_output_ts_target_option.
13833 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
13835         PR/target 45452
13836         * config/i386/cygwin.h: Change order of specified import libraries.
13837         * config/i386/mingw32.h: Likewise.
13838         * config/i386/t-cygwin: Likewise.
13839         * config/i386/t-mingw32: Likewise.
13840         * config/i386/t-mingw-w32: Likewise.
13841         * config/i386/t-mingw-w64: Likewise.
13843 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13845         * config/arm/neon-schedgen.ml (core): New type.
13846         (allCores): List of supported cores.
13847         (availability_table): Add supported cores.
13848         (collate_bypasses): Accept core as a parameter.
13849         (worst_case_latencies_and_bypasses): Accept core as a parameter.
13850         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
13851         and coreStr to get tune attribute and prefix for functional units.
13852         (emit_bypasses): Accept core name and use it.
13853         (calculate_per_core_availability_table): New.
13854         (filter_core): New.
13855         (calculate_core_availability_table): New.
13856         (main): Use calculate_core_availablity_table.
13857         * config/arm/cortex-a8-neon.md: Update copyright year.
13858         Regenerated from ml file and merged in.
13859         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
13860         cortex_a8_neon_mrc.
13862 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
13864         * Makefile.in (tree-switch-conversion.o): Update dependencies.
13866 2010-09-01  Richard Guenther  <rguenther@suse.de>
13868         * alias.c (ao_ref_from_mem): Adjust.
13869         * builtins.c (get_object_alignment): Likewise.
13870         * cfgexpand.c (expand_debug_expr): Likewise.
13871         * gimple.c (get_base_address): Likewise.
13872         * tree-dfa.c (get_ref_base_and_extent): Likewise.
13873         (get_addr_base_and_unit_offset): Likewise.  Fix for
13874         both TMR_SYMBOL and TMR_BASE being set.
13875         * tree-eh.c (tree_could_trap_p): Likewise.
13876         * gimplify.c (gimplify_expr): Do not attempt to gimplify
13877         TMR_SYMBOL.  Always gimplify TMR_BASE.
13878         * tree-cfg.c (verify_types_in_gimple_reference): Verify
13879         TMR_BASE if there is a TMR_SYMBOL.
13880         * tree-pretty-print.c (dump_generic_node): Adjust.
13881         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
13882         (tree_mem_ref_addr): Likewise.
13883         (create_mem_ref_raw): Likewise.
13884         (move_fixed_address_to_symbol): Likewise.
13885         (create_mem_ref): Likewise.
13886         (dump_mem_address): Likewise.
13887         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
13888         Fix for both TMR_SYMBOL and TMR_BASE being set.
13889         (indirect_refs_may_alias_p): Likewise.
13890         * tree-ssa-operands.c (get_tmr_operands): Adjust.
13891         * tree.def (TARGET_MEM_REF): Adjust documentation.
13893 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13895         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
13896         Rename from X86_TUNE_ADD_ESP_4.
13897         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
13898         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
13899         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
13900         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
13901         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
13902         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
13903         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
13904         * config/i386/i386.c (initial_ix86_tune_features)
13905         <X86_TUNE_SINGLE_POP>: Invert members.
13906         <X86_TUNE_DOUBLE_POP>: Ditto.
13907         <X86_TUNE_SINGLE_PUSH>: Ditto.
13908         <X86_TUNE_DOUBLE_PUSH>: Ditto.
13909         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
13910         No longer exported.
13911         (push peephole2 patterns): Macroize peepholes using P mode iterator.
13912         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
13913         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
13914         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
13916 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
13918         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
13919         a volatile LHS if the constructor has only one element.
13921 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
13923         PR bootstrap/45321
13924         * tree.c (stdarg_p): Make fntype parameter const.
13925         * tree.h (stdarg_p): Likewise.
13926         (function_args_iterator): Remove unused fntype field.
13927         (function_args_iter_init): Do not initialize fntype
13928         field.  Make fntype parameter const.
13930 2010-09-01  Richard Guenther  <rguenther@suse.de>
13932         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
13933         estimate.
13934         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
13935         (execute_vrp): Compute number of iteration estimates.
13936         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
13937         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
13938         * tree-data-ref.c (estimated_loop_iterations): Adjust.
13939         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
13940         Infer loop bounds from undefined behavior based on a new parameter.
13941         (estimate_numbers_of_iterations): Likewise.
13942         (scev_probably_wraps_p): Adjust.
13943         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
13945 2010-09-01  Nick Clifton  <nickc@redhat.com>
13947         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
13948         where appropriate.
13949         (xstormy16_legitimate_address_p): Use true and false instead of 1
13950         and 0.
13951         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
13952         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
13953         magic constant 2.
13954         (xstormy16_expand_call): Fix comment at start of function.
13956 2010-09-01  Nick Clifton  <nickc@redhat.com>
13958         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
13959         when pushing accumulator register.
13960         (rx_get_stack_layout): Always save call clobbered registers inside
13961         interrupt handlers.
13962         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
13964 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13966         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
13967         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
13969         * libgcc-std.ver (GCC_4.6.0): Define version.
13971 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
13973         * tree-nested.c (convert_all_function_calls): Iterate until after the
13974         sum of static chains in the nest doesn't change.
13976 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
13978         * config/m32c/m32c.c (classes_intersect): Remove.
13979         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
13980         reg_classes_intersect_p instead of classes_intersect.
13981         (class_can_hold_mode): Change arguments type from enum reg_class to
13982         reg_class_t.  Use reg_class_contents instead of class_contents.
13983         (m32c_register_move_cost): Make static. Change arguments type from
13984         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
13985         classes_intersect. Use reg_class_contents instead of class_contents.
13986         (m32c_memory_move_cost): Make static. Change arguments type from
13987         enum reg_class to reg_class_t.
13988         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13989         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13990         * config/m32c/m32c-protos.h (m32c_register_move_cost,
13991         m32c_memory_move_cost): Remove.
13993 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13995         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
13996         (arm_function_arg): Delete.
13997         (arm_needs_doubleword_align): Take a const_tree.
13998         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13999         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
14000         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
14001         (arm_function_arg): Make static.  Take a const_tree and a bool.
14002         (arm_function_arg_advance): Likewise.
14003         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14005 2010-08-31  Andi Kleen  <ak@linux.intel.com>
14007         * common.opt (fwhopr=): Update for -fwhopr=jobserver
14008         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
14009         * lto-wrapper.c (run_gcc): Add jobserver mode.
14010         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
14011         argument.
14013 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
14015         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
14016         (popsi1): Ditto.
14017         (*popdi1_epilogue): Ditto.
14018         (*popsi1_epilogue): Ditto.
14019         (popsi, popdi peephole2 patterns): Update peepholes for changed
14020         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
14022         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
14023         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
14025         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
14026         (override_options): Do not initialize removed ix86_gen_pop1.
14027         (gen_pop): New static function.
14028         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
14029         (release_scratch_register_on_entry): Ditto.
14030         (ix86_restore_reg_using_pop): Ditto.
14031         (ix86_expand_epilogue): Ditto.
14033 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
14035         PR middle-end/45461
14036         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
14038 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14040         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
14041         semicolons.
14043 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14045         * doc/extend.texi: Fix documentation of the return value of
14046         __builtin_choose_expr.
14048 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14050         * config/v850/v850-protos.h (function_arg): Delete.
14051         * config/v850/v850.h (FUNCTION_ARG): Delete.
14052         (FUNCTION_ARG_ADVANCE): Move code to...
14053         * config/v850/v850.c (v850_function_arg_advance): ...here.
14054         (v850_function_arg): Make static.  Take a const_tree and a bool.
14055         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14057 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14059         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
14060         these...
14061         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
14062         ...and these...
14063         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
14064         ..to here..
14065         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
14066         ...and here.
14067         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14069 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
14071         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
14072         Delete.
14073         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14074         * config/rx/rx.c (rx_function_arg_size): Make static.
14075         (rx_function_arg): Likewise.
14076         (rx_function_arg_advance): New function.
14077         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14079 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
14081         * config/arm/arm.c (arm_override_options): Remove superfluous test.
14082         Fix indentation.
14084 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
14086         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
14087         (dwarf2out_decl) <CONST_DECL>: Likewise.
14089 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
14091         Stack usage support
14092         * common.opt (-fstack-usage): New option.
14093         * doc/invoke.texi (Debugging options): Document it.
14094         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
14095         allocate_dynamic_stack_space.
14096         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
14097         and propagate it to allocate_dynamic_stack_space.
14098         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
14099         * calls.c (initialize_argument_information): Pass TRUE as 4th
14100         argument to allocate_dynamic_stack_space.
14101         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
14102         to 1 when pushing a variable-sized argument onto the stack.  Pass
14103         TRUE as 4th argument to allocate_dynamic_stack_space.
14104         Update current_function_pushed_stack_size.
14105         (emit_library_call_value_1): Likewise.
14106         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
14107         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
14108         attempt to find an upper bound.  Remove redundant code for the
14109         SETJMP_VIA_SAVE_AREA case.
14110         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
14111         * function.h (struct stack_usage): New structure.
14112         (current_function_static_stack_size): New macro.
14113         (current_function_dynamic_stack_size): Likewise.
14114         (current_function_pushed_stack_size): Likewise.
14115         (current_function_dynamic_alloc_count): Likewise.
14116         (current_function_has_unbounded_dynamic_stack_size): Likewise.
14117         (current_function_allocates_dynamic_stack_space): Likewise.
14118         (struct function): Add new field 'su'.
14119         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
14120         add the value of the dynamic offset to the dynamic stack usage.
14121         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
14122         for variable-sized objects.
14123         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
14124         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
14125         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
14126         BUILT_IN_ALLOCA for variable-sized objects.
14127         * output.h (output_stack_usage): Declare.
14128         * toplev.c (stack_usage_file): New file pointer.
14129         (output_stack_usage): New function.
14130         (open_auxiliary_file): Likewise.
14131         (lang_dependent_init): Open file if flag_stack_usage is set.
14132         (finalize): Close file if stack_usage_file is not null.
14133         * tree.h (ALLOCA_FOR_VAR_P): New macro.
14134         * config/alpha/alpha.c (compute_frame_size): New function.
14135         (alpha_expand_prologue): Use it.
14136         (alpha_start_function): Likewise.
14137         (alpha_expand_epilogue): Likewise.  Set stack usage info.
14138         * config/i386/i386.c (ix86_expand_prologue): Likewise.
14139         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
14140         * config/mips/mips.c (mips_expand_prologue): Likewise.
14141         * config/pa/pa.c (hppa_expand_prologue): Likewise.
14142         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
14143         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
14145 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
14147         PR tree-optimization/45427
14148         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
14149         Handle the case that the exit is never taken correctly.
14150         (number_of_iterations_ne): Pass exit_must_be_taken to
14151         number_of_iterations_ne_max.
14153 2010-08-30  Catherine Moore  <clm@codesourcery.com>
14155         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
14156         Infer -mdspr2 for the the 74K.
14158 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
14160         PR debug/45419
14161         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
14163         PR middle-end/45423
14164         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
14165         and TRUTH_{AND,OR,XOR}_EXPR.
14166         * c-parser.c (c_parser_omp_atomic): Handle boolean
14167         {PRE,POST}_{INC,DEC}REMENT.
14169 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
14171         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
14172         (function_arg): Delete.
14173         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14174         (FUNCTION_INCOMING_ARG): Delete.
14175         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
14176         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
14177         and a bool.
14178         (function_arg): Rename to...
14179         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
14180         a bool.
14181         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
14182         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14183         (TARGET_FUNCTION_INCOMING_ARG): Define.
14185 2010-08-30  Richard Guenther  <rguenther@suse.de>
14187         PR tree-optimization/21602
14188         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
14189         using points-to information.
14191 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
14193         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
14195 2010-08-30  Richard Guenther  <rguenther@suse.de>
14197         PR tree-optimization/45449
14198         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
14199         variables.
14201 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
14203         * opts.h (CL_ERR_NEGATIVE): Define.
14204         * opts.c (unknown_option_callback): Don't postpone warnings for
14205         options marked with CL_ERR_NEGATIVE.
14206         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
14207         for negative versions of CL_REJECT_NEGATIVE options.
14209 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
14211         * config/i386/i386.md (zero_extendsidi2_1): Rename from
14212         zero_extendsidi2_32.
14213         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
14214         using SWI12 mode iterator.
14215         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
14216         to define_insn_and_split pattern.
14217         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
14218         using SWI24 mode iterator.
14219         (*zero_extendqi<mode>2_and): Macroize insn from
14220         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
14221         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
14222         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
14223         SWI24 mode iterator.
14224         (*zero_extendqi<mode>2_movzbl): Ditto from
14225         *zero_extendqi{hi,si}2_movzbl.
14226         (extendsidi2_1): Rename from extendsidi2_32.
14227         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
14228         SWI12 mode iterator.
14230 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
14232         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
14233         general purpose registers.
14234         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
14235         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
14236         with general purpose registers and memory operands.  Add associated
14237         CCImode post-reload splitter.
14238         * config/ia64/div.md: Change BImode to CCImode throughout.
14240 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
14242         * config/ia64/ia64.md (cstorebi4): Fix thinko.
14244 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
14246         * config/picochip/picochip.c (reorder_var_tracking_notes): This
14247         function was dropping debug insns which caused PR45299.
14249 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
14251         * config/i386/sse.md (extsuffix): New code attribute.
14252         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
14253         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
14254         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
14255         and sse4_1_zero_extendv4qiv4si2.
14256         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
14257         and sse4_1_zero_extendv2qiv2di2.
14258         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
14259         and sse4_1_zero_extendv4hiv4si2.
14260         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
14261         and sse4_1_zero_extendv2hiv2di2.
14262         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
14263         and sse4_1_zero_extendv2siv2di2
14265         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
14266         using any_extend code iterator.
14267         (*avx_<s>mulv8hi3_highpart): Macroize insn from
14268         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
14269         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
14271         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
14272         gen_sse4_1_sign_extend* functions.
14273         (struct builtin_description bdesc_args): Ditto.
14275 2010-08-27  Xinliang David Li  <davidxl@google.com>
14277         PR/45422
14278         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
14279         (iv_ca_set_no_cp): Update used inv expr count.
14280         (iv_ca_set_cp): Ditto.
14281         (iv_ca_new): Initialize new member.
14282         (iv_ca_free): Free memory.
14284 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
14286         * config/sh/sh-protos.h (sh_function_arg): Delete.
14287         (sh_function_arg_advance): Delete.
14288         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14289         (PASS_IN_REG_P): Eliminate cast.
14290         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
14291         const_tree and a bool.
14292         (sh_function_arg): Likewise.
14293         (sh_output_mi_thunk): Call sh_function_arg_advance) and
14294         sh_function_arg.
14295         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14297 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
14298             Kaz Kojima  <kkojima@gcc.gnu.org>
14300         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
14301         when possible.
14302         (sh_expand_epilogue): Likewise.
14303         * config/sh/sh.md (movml_push_banked): New insn.
14304         (movml_pop_banked): Likewise.
14306 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
14308         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
14309         gen_regexp_oneof, gen_regexp_sequence): Use the string found
14310         in vector element 0 rather than the original string when there's
14311         only one element.
14312         (gen_regexp): Remove extra semicolon.
14314         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
14315         thumb2_movsf_vfp): Set attribute "insn".
14316         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
14317         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
14318         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
14319         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
14320         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
14321         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
14322         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
14323         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
14324         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
14325         if_not_arith, if_arith_not, cond_move_not): Likewise.
14327 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14329         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
14330         New declaration.
14331         (rs6000_allocate_stack_temp): Ditto.
14332         (rs6000_expand_convert_si_to_sfdf): Ditto.
14334         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
14335         line.  Update the options set if power6 or power7 server/embedded
14336         type options are used.  If we give a warning for no vsx under
14337         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
14338         (rs6000_allocate_stack_temp): New function to allocate a stack
14339         tempoary and adjust the address so it meets either REG+OFFSET or
14340         REG+REG addressing requirements.
14341         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
14342         that they can be used with the LFIWAX/LFIWZX instrucitons.
14343         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
14344         converting signed/unsigned SImode to either SFmode/DFmode.
14346         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
14347         whether certain instructions can be generated.
14348         (TARGET_FCTIDZ): Ditto.
14349         (TARGET_STFIWX): Ditto.
14350         (TARGET_LFIWAX): Ditto.
14351         (TARGET_LFIWZX): Ditto.
14352         (TARGET_FCFIDS): Ditto.
14353         (TARGET_FCFIDU): Ditto.
14354         (TARGET_FCFIDUS): Ditto.
14355         (TARGET_FCTIDUZ): Ditto.
14356         (TARGET_FCTIWUZ): Ditto.
14358         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
14359         (UNSPEC_FCTID): Ditto.
14360         (UNSPEC_LFIWAX): Ditto.
14361         (UNSPEC_LFIWZX): Ditto.
14362         (UNSPEC_FCTIWUZ): Ditto.
14363         (rreg): Use correct constraints.
14364         (SI_CONVERT_FP): New mode attribute for floating point conversion
14365         tests.
14366         (E500_CONVERT): Ditto.
14367         (lfiwax): New insns for converting from integer to floating point
14368         utilizing newer instructions.  Attempt to optimize conversions
14369         that come from memory so that we don't load the value into a GPR,
14370         spill it to the stack and reload it into a FPR.
14371         (floatsi<mode>2_lfiwax): Ditto.
14372         (floatsi<mode>2_lfiwax_mem): Ditto.
14373         (floatsi<mode>2_lfiwax_mem2): Ditto.
14374         (lfiwzx): Ditto.
14375         (floatunssi<mode>2_lfiwzx): Ditto.
14376         (floatunssi<mode>2_lfiwzx_mem): Ditto.
14377         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
14378         (floatdidf2_mem): Ditto.
14379         (floatunsdidf2_fcfidu): Ditto.
14380         (floatunsdidf2_mem): Ditto.
14381         (floatunsdisf2): Ditto.
14382         (floatunsdisf2_fcfidus): Ditto.
14383         (floatunsdisf2_mem): Ditto.
14384         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
14385         Use FCFID on 32-bit hosts that support it.
14386         (floatsidf2_internal): Ditto.
14387         (floatunssisf2): Ditto.
14388         (floatunssidf2): Ditto.
14389         (floatunssidf2_internal): Ditto.
14390         (floatsisf2): Ditto.
14391         (floatdidf2): Ditto.
14392         (floatdidf2_fpr): Ditto.
14393         (floatunsdidf2): Ditto.
14394         (floatdisf2): Ditto.
14395         (floatdisf2_fcfids): Ditto.
14396         (floatdisf2_internal1): Ditto.
14397         (fixuns_truncsfsi2): Delete, merge into common pattern for both
14398         SF/DF.  Add power7 support.
14399         (fix_truncsfsi2): Ditto.
14400         (fixuns_truncdfsi2): Ditto.
14401         (fixuns_truncdfdi2): Ditto.
14402         (fix_truncdfsi2): Ditto.
14403         (fix_truncdfsi2_internal): Ditto.
14404         (fix_truncdfsi2_internal_gfxopt): Ditto.
14405         (fix_truncdfsi2_mfpgpr): Ditto.
14406         (fctiwz): Ditto.
14407         (btruncdf2): Ditto.
14408         (btruncdf2_fpr): Ditto.
14409         (btructsf2): Ditto.
14410         (ceildf2): Ditto.
14411         (ceildf2_fpr): Ditto.
14412         (ceilsf2): Ditto.
14413         (floordf2): Ditto.
14414         (floordf2_fpr): Ditto.
14415         (floorsf2): Ditto.
14416         (rounddf2): Ditto.
14417         (rounddf2_fpr): Ditto.
14418         (roundsf2): Ditto.
14419         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
14420         (fix_trunc<mode>di2): Ditto.
14421         (fixuns_trunc<mode>si2): Ditto.
14422         (fixuns_trunc<mode>di2): Ditto.
14423         (fctiwz_<mode>): Ditto.
14424         (btrunc<mode>2): Ditto.
14425         (btrunc<mode>2_fpr): Ditto.
14426         (ceil<mode>2): Ditto.
14427         (ceil<mode>2_fpr): Ditto.
14428         (floor<mode>2): Ditto.
14429         (float<mode>2_fpr): Ditto.
14430         (round<mode>2): Ditto.
14431         (round<mode>2_fpr): Ditto.
14432         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
14433         (fixuns_trunc<mode>si2_stfiwx): Ditto.
14434         (fix_truncdfsi2_internal): Ditto.
14435         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
14436         converted value on stack, loaded into GPR, and then stored into
14437         the final destination.
14438         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
14439         FCTIDZ.
14440         (lrint<mode>di2): New insn, provide the lrint builtin functions.
14441         (ftruncdf2): Delete, unused.
14442         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
14444         * config/rs6000/vsx.md (toplevel): Update copyright year.
14445         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
14446         (VSr3): Ditto.
14448 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
14449             Jeremie Salvucci  <jeremie.salvucci@free.fr>
14451         * gengtype.c (output_type_enum): Test the right union member.
14453 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
14455         PR target/41484
14456         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
14457         operands for operand 1.
14458         (sse4_1_extendv4qiv4si2): Ditto.
14459         (sse4_1_extendv2qiv2di2): Ditto.
14460         (sse4_1_extendv4hiv4si2): Ditto.
14461         (sse4_1_extendv2hiv2di2): Ditto.
14462         (sse4_1_extendv2siv2di2): Ditto.
14463         (sse4_1_zero_extendv8qiv8hi2): Ditto.
14464         (sse4_1_zero_extendv4qiv4si2): Ditto.
14465         (sse4_1_zero_extendv2qiv2di2): Ditto.
14466         (sse4_1_zero_extendv4hiv4si2): Ditto.
14467         (sse4_1_zero_extendv2hiv2di2): Ditto.
14468         (sse4_1_zero_extendv2siv2di2): Ditto.
14469         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
14470         (*sse4_1_extendv4qiv4si2): Ditto.
14471         (*sse4_1_extendv2qiv2di2): Ditto.
14472         (*sse4_1_extendv4hiv4si2): Ditto.
14473         (*sse4_1_extendv2hiv2di2): Ditto.
14474         (*sse4_1_extendv2siv2di2): Ditto.
14475         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
14476         (*sse4_1_zero_extendv4qiv4si2): Ditto.
14477         (*sse4_1_zero_extendv2qiv2di2): Ditto.
14478         (*sse4_1_zero_extendv4hiv4si2): Ditto.
14479         (*sse4_1_zero_extendv2hiv2di2): Ditto.
14480         (*sse4_1_zero_extendv2siv2di2): Ditto.
14482 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
14484         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
14485         (mips_function_arg): Delete.
14486         (mips_function_arg_boundary): Take a const_tree.
14487         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
14488         (mips_arg_info): Likewise.
14489         (mips_setup_incoming_varargs): Call mips_function_arg_advance
14490         instead of FUNCTION_ARG_ADVANCE.
14491         (mips_function_arg_advance): Adjust prototype.  Make static.
14492         (mips_function_arg): Likewise.
14493         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14494         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
14496 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
14498         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
14499         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
14500         (function_arg): Delete.
14501         (function_arg_boundary): Take a const_tree.
14502         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
14503         (rs6000_spe_function_arg): Likewise.
14504         (rs6000_parm_start): Likewise.
14505         (rs6000_arg_size): Likewise.
14506         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
14507         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
14508         (rs6000_mixed_function_arg): Likewise.
14509         (function_arg): Rename to...
14510         (rs6000_function_arg): ...this.
14511         (function_arg_advance): Rename to...
14512         (rs6000_function_arg_advance_1): ...this
14513         (rs6000_function_arg_advance): New function.  Call it.
14514         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
14515         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
14516         (rs6000_function_value): Likewise.
14517         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
14519 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14521         * config/arm/arm.md (enabled): Test the value of arch_enabled
14522         rather than just using it.
14524 2010-08-27  Olivier Hainque  <hainque@adacore.com>
14525             Eric Botcazou  <ebotcazou@adacore.com>
14527         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
14528         cover all the possible offsets from this base.
14529         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
14531 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
14533         PR tree-optimization/44485
14534         * calls.c (flags_from_decl_or_type): For const or pure
14535         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
14536         together with ECF_CONST resp. ECF_PURE.
14537         * builtins.c (expand_builtin): Use flags_from_decl_or_type
14538         instead of querying flags directly.
14539         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
14540         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
14542 2010-08-26  Richard Guenther  <rguenther@suse.de>
14544         PR tree-optimization/45255
14545         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
14546         and externals are also invariant.
14548 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
14550         PR rtl-optimization/44858
14551         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
14552         newi2pat, make sure they don't affect newpat.
14554         PR rtl-optimization/45400
14555         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
14556         SUBREG_REG if both modes are of MODE_INT class.
14558 2010-08-25  Julian Brown  <julian@codesourcery.com>
14560         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
14561         * config/arm/arm.md (generic_sched): No for Cortex-A5.
14562         (generic_vfp): Likewise.
14563         (cortex-a5.md): Include.
14564         * config/arm/cortex-a5.md: New.
14566 2010-08-25  Richard Guenther  <rguenther@suse.de>
14568         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
14569         * gimple.c (gimple_get_alias_set): Remove special handling
14570         for pointers.
14572 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
14574         PR middle-end/45355
14575         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
14576         dead_or_set_p when computing i0_feeds_i2_n.
14578         * combine.c (find_split_point): Undo canonicalization of multiply-add
14579         to (minus x (mult)) when it seems likely that this will increase the
14580         chances of a split.
14582 2010-08-25  Richard Guenther  <rguenther@suse.de>
14584         PR lto/44562
14585         * lto-streamer.c (lto_record_common_node): Do not mess with
14586         TYPE_CANONICAL when not in lto.
14587         * gimple.c (gimple_register_type): Likewise.
14589 2010-08-25  Richard Guenther  <rguenther@suse.de>
14591         PR tree-optimization/45316
14592         * tree-ssa-pre.c (eliminate): Properly clean EH info.
14594 2010-08-25  Richard Guenther  <rguenther@suse.de>
14596         PR tree-optimization/45393
14597         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
14598         and clean EH info.  Avoid SSA update.
14599         (execute_cse_sincos): Cleanup the CFG if it has changed.
14601 2010-08-25  Richard Guenther  <rguenther@suse.de>
14603         PR middle-end/45379
14604         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
14605         TARGET_MEM_REF in alignment computation.
14607 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
14609         PR tree-optimization/45059
14610         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
14611         type conversions from newop{1,2}.  Assert t is a comparison and
14612         newop{1,2} after the stripping are gimple vals.
14614 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
14616         * config/arm/iterators.md (VU, SE, V_widen_l): New.
14617         (V_unpack, US): New.
14618         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
14619         (vec_unpack<US>_lo_<mode>): Likewise.
14620         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
14621         (neon_vec_unpack<US>_lo_<mode>): Likewise.
14622         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
14623         (vec_widen_<US>mult_hi_<mode>): Likewise.
14624         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
14625         (neon_vec_<US>mult_hi_<mode>"): Likewise.
14626         (neon_unpack<US>_<mode>): Widening move intermediate step for
14627         vectorizing without -mvectorize-with-neon-quad.
14628         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
14629         for vectorizing without -mvectorize-with-neon-quad.
14630         * config/arm/predicates.md (vect_par_constant_high): Check for
14631         high-half lanes of a vector.
14632         (vect_par_constant_low): Check for low-half lanes of a vector.
14634 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
14636         * tree-if-conv.c (struct ifc_dr): New.
14637         (IFC_DR): New.
14638         (DR_WRITTEN_AT_LEAST_ONCE): New.
14639         (DR_RW_UNCONDITIONALLY): New.
14640         (memref_read_or_written_unconditionally): Use the cached values
14641         when possible.
14642         (write_memref_written_at_least_once): Same.
14643         (if_convertible_loop_p): Initialize and free DR->aux fields.
14645 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
14647         * gimple.c (gimple_could_trap_p_1): Not static anymore.
14648         Pass an extra bool parameter include_mem.
14649         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
14650         (gimple_assign_rhs_could_trap_p): Same.
14651         * gimple.h (gimple_could_trap_p_1): Declared.
14652         * tree-data-ref.h (same_data_refs_base_objects): New.
14653         (same_data_refs): New.
14654         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
14655         (write_memrefs_written_at_least_once): New.
14656         (ifcvt_memrefs_wont_trap): New.
14657         (operations_could_trap): New.
14658         (ifcvt_could_trap_p): New.
14659         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
14660         Gets a vector of data refs.
14661         (if_convertible_stmt_p): Same.
14662         (if_convertible_loop_p_1): New.
14663         (if_convertible_loop_p): Call if_convertible_loop_p_1.
14665 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
14667         * common.opt (ftree-loop-if-convert-stores): New flag.
14668         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
14669         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
14670         the created statement before GSI.
14671         (if_convertible_phi_p): Allow virtual phi nodes when
14672         flag_loop_if_convert_stores is set.
14673         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
14674         Do not handle types that do not match is_gimple_reg_type.
14675         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
14676         when flag_loop_if_convert_stores is set, as LHS can contain
14677         memory refs.
14678         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
14679         to if_convertible_gimple_assign_stmt_p.
14680         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
14681         (replace_phi_with_cond_gimple_assign_stmt): Renamed
14682         predicate_scalar_phi.  Do not handle virtual phi nodes.
14683         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
14684         Call predicate_scalar_phi.
14685         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
14686         just after the labels for flag_loop_if_convert_stores, otherwise
14687         insert the predicate in the end of the BB.
14688         (predicate_mem_writes): New.
14689         (combine_blocks): Call predicate_all_scalar_phis.  When
14690         flag_loop_if_convert_stores is set, call predicate_mem_writes.
14691         (tree_if_conversion): Call mark_sym_for_renaming when
14692         flag_loop_if_convert_stores is set.
14693         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
14694         flag_loop_if_convert_stores is set.
14696 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
14698         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
14699         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
14700         (pa_function_value): Make static.
14701         (override_options): Rename to...
14702         (pa_option_override): ...this. Make static.
14703         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
14704         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
14705         TARGET_OPTION_OVERRIDE): Define.
14706         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
14707         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
14708         Remove.
14709         * config/pa/pa-protos.h (override_options): Remove.
14711 2010-08-24  Richard Guenther  <rguenther@suse.de>
14713         PR middle-end/45379
14714         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
14715         if addr->index is NULL or zero.
14716         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
14717         TARGET_MEM_REF more properly.
14718         (indirect_ref_may_alias_decl_p): Likewise.
14719         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
14720         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
14722 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
14724         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
14725         (m32c_override_options): Rename to...
14726         (m32c_option_override): ...this. Make static.
14727         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
14728         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
14729         Remove.
14730         * config/m32c/m32c-protos.h (m32c_override_options,
14731         m32c_function_value_regno_p): Remove.
14733 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
14735         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
14736         Fix a typo in a previous commit.
14738 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
14740         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
14741         Pre-initialize innerloop_iters to one.
14743 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
14745         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
14746         existing static function global.
14748         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
14749         is changed to global.
14751         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
14752         may_be_nonaddressable_p on base, and don't collect this reference
14753         if the address of the base could not be taken.
14755 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14757         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
14758         enable the compiler to autovectorize mathmetical functions for
14759         power7 using the Mathematical Acceleration Subsystem library.
14761         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
14762         handle which vector math library we have.
14763         (rs6000_override_options): Add -mveclibabi=mass support.
14764         (rs6000_builtin_vectorized_libmass): New function to handle auto
14765         vectorizing math functions that are in the MASS library.
14766         (rs6000_builtin_vectorized_function): Call it.
14768         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14769         -mveclibabi=mass.
14771 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14773         PR boehm-gc/34544
14774         * gthr-posix.h (__gthread_active_init): Delete.
14775         (__gthread_active_p): Do activity check here.
14776         Don't include errno.h on hppa-hpux.  Update comment.
14777         * gthr-posix95.h (__gthread_active_init): Delete.
14778         (__gthread_active_p): Do activity check here.
14779         Don't include errno.h on hppa-hpux.  Update comment.
14780         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
14781         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
14782         add -lpthread when -mt or -pthread is specified.
14783         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
14784         (LINK_GCC_C_SEQUENCE_SPEC): Define.
14785         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
14786         (stublib.c, pthread_default_stacksize_np-stub.o,
14787         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
14788         $(T)libgcc_stub.a): Add methods.
14789         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
14790         (stublib.c, pthread_default_stacksize_np-stub.o,
14791         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
14792         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14793         pthread_mutex_unlock): New stubs.
14795 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
14797         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
14798         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
14799         options.
14800         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
14801         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
14802         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
14803         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
14804         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
14805         "-l".
14806         * cppspec.c: Include opts.h.
14807         (lang_specific_driver): Use cl_decoded_option structures.
14808         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
14809         * doc/tm.texi: Regenerate.
14810         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
14811         (driver_handle_option): Allow driver options needing no special
14812         processing.
14813         (process_command): Decode options before call to
14814         lang_specific_driver.  Pass decoded options to
14815         lang_specific_driver.
14816         * gcc.h (lang_specific_driver): Update prototype.
14817         * gccspec.c: Include opts.h.
14818         (lang_specific_driver): Use cl_decoded_option structures.
14819         * opts-common.c (option_ok_for_language, generate_option,
14820         generate_option_input_file): New.
14821         (decode_cmdline_option): Use option_ok_for_language.
14822         (decode_cmdline_options_to_array): Use generate_option_input_file.
14823         (handle_generated_option): Use generate_option.
14824         * opts.h (generate_option, generate_option_input_file): Declare.
14826 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
14828         * config/mips/mips.c (mips_override_options): Rename to...
14829         (mips_option_override): ...this. Make static.
14830         (TARGET_OPTION_OVERRIDE): Define.
14831         (mips_in_small_data_p): Update comment.
14832         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
14833         (FIXED_REGISTERS): Update comment.
14834         * config/mips/mips-protos.h (mips_override_options): Remove.
14836 2010-08-21  Olivier Hainque  <hainque@adacore.com>
14838         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
14840 2010-08-21  Olivier Hainque  <hainque@adacore.com>
14842         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
14843         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
14845 2010-08-20  Jan Hubicka  <jh@suse.cz>
14847         * tree-pass.h (pass_ipa_cdtor_merge): New function.
14848         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
14849         heap allocated.
14850         (record_cdtor_fn): Move to ipa.c; do not test for
14851         have_ctors_dtors.
14852         (build_cdtor): Move to ipa.c; add code avoiding construction
14853         when target have ctors/dtors and there is only one ctor/dtor at given
14854         priority.
14855         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
14856         sort; reverse order of constructors.
14857         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
14858         (cgraph_finalize_function): Do not call record_cdtor_fn.
14859         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
14860         (cgraph_build_static_cdtor): Move to ipa.c.
14861         * ipa.c: Include target.h and tree-iterator.h.
14862         (cgraph_build_static_cdtor, static_ctors, static_dtors,
14863         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
14864         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
14865         pass_ipa_cdtor_merge): New.
14866         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
14867         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
14868         bounds access.
14870 2010-08-20  Jan Hubicka  <jh@suse.cz>
14872         PR c++/45307
14873         PR c++/17736
14874         * cgraph.h (cgraph_only_called_directly_p,
14875         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
14876         static cdtors.
14877         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
14878         are not needed.
14879         (cgraph_finalize_function): Static cdtors are reachable.
14880         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
14882 2010-08-20  Jan Hubicka  <jh@suse.cz>
14884         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
14885         flag_wpa.
14886         * lto-streamer-out.c (lto_output): Likewise.
14887         * passes.c (ipa_write_optimization_summaries): Initialize statement
14888         uids.
14890 2010-08-20  Olivier Hainque  <hainque@adacore.com>
14892         * tree.h (alias_diag_flags): New enum.
14893         (alias_pair): Add an 'emitted_diags' field.
14894         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
14895         (assemble_alias): Initialize emitted_diags of new pairs.
14897 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
14899         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14900         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14901         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14902         (STACK_CHECK_PROTECT): Define.
14903         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
14904         (output_probe_stack_range): Likewise.
14905         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
14906         builtin stack checking is enabled.
14907         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
14908         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14909         (probe_stack_range): New insn.
14911 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
14913         PR target/45336
14914         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
14915         short first.
14917         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
14918         char first.
14920 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14922         PR target/45336
14923         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
14924         to cover zero extension into 64-bit register.
14925         (*sse2_pextrw): Likewise.
14926         (*sse4_1_pextrd_zext): New insn.
14928 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
14930         revert r163410, partially revert r163267.
14931         * config/rs6000/darwin.h (LIB_SPEC): Remove.
14932         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
14933         Darwin versions.
14935 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14937         PR middle-end/44974
14938         * builtins.c (expand_builtin): Don't optimize away
14939         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
14941 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
14943         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
14944         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
14945         alternative 1 of operand 2.
14947 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14948             Paolo Bonzini  <bonzini@gnu.org>
14950         * simplify-rtx.c (simplify_unary_operation_1): Optimize
14951         (sign_extend (zero_extend (...)) and
14952         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
14954 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14956         PR rtl-optimization/45353
14957         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
14958         after bb_note is a BARRIER.
14960 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
14962         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
14963         linking libgcc.a.
14965 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14966             Michael Matz  <matz@suse.de>
14968         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
14970 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14972         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
14973         (ggc_mark_roots): ...here.
14975 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14977         * vec.h (FOR_EACH_VEC_ELT): Define.
14978         * c-decl.c: Use it.
14979         * cfgloop.c: Likewise.
14980         * cfgloopmanip.c: Likewise.
14981         * cgraph.c: Likewise.
14982         * cgraphunit.c: Likewise.
14983         * combine.c: Likewise.
14984         * config/bfin/bfin.c: Likewise.
14985         * config/mips/mips.c: Likewise.
14986         * config/rs6000/rs6000.c: Likewise.
14987         * dbxout.c: Likewise.
14988         * df-scan.c: Likewise.
14989         * dominance.c: Likewise.
14990         * dse.c: Likewise.
14991         * dwarf2out.c: Likewise.
14992         * except.c: Likewise.
14993         * expr.c: Likewise.
14994         * function.c: Likewise.
14995         * gcse.c: Likewise.
14996         * genattr.c: Likewise.
14997         * ggc-common.c: Likewise.
14998         * gimplify.c: Likewise.
14999         * graphite-blocking.c: Likewise.
15000         * graphite-clast-to-gimple.c: Likewise.
15001         * graphite-dependences.c: Likewise.
15002         * graphite-interchange.c: Likewise.
15003         * graphite-poly.c: Likewise.
15004         * graphite-scop-detection.c: Likewise.
15005         * graphite-sese-to-poly.c: Likewise.
15006         * graphite.c: Likewise.
15007         * haifa-sched.c: Likewise.
15008         * ifcvt.c: Likewise.
15009         * implicit-zee.c: Likewise.
15010         * ipa-prop.c: Likewise.
15011         * ipa-struct-reorg.c: Likewise.
15012         * ipa.c: Likewise.
15013         * ira-build.c: Likewise.
15014         * ira-color.c: Likewise.
15015         * ira-emit.c: Likewise.
15016         * lambda-code.c: Likewise.
15017         * loop-invariant.c: Likewise.
15018         * loop-unroll.c: Likewise.
15019         * lower-subreg.c: Likewise.
15020         * lto-cgraph.c: Likewise.
15021         * lto-opts.c: Likewise.
15022         * lto-streamer-in.c: Likewise.
15023         * lto-streamer-out.c: Likewise.
15024         * lto-streamer.c: Likewise.
15025         * lto-symtab.c: Likewise.
15026         * matrix-reorg.c: Likewise.
15027         * opts.c: Likewise.
15028         * predict.c: Likewise.
15029         * print-tree.c: Likewise.
15030         * sdbout.c: Likewise.
15031         * sel-sched-dump.c: Likewise.
15032         * sel-sched-ir.c: Likewise.
15033         * sel-sched.c: Likewise.
15034         * sese.c: Likewise.
15035         * stor-layout.c: Likewise.
15036         * tree-cfg.c: Likewise.
15037         * tree-cfgcleanup.c: Likewise.
15038         * tree-chrec.c: Likewise.
15039         * tree-data-ref.c: Likewise.
15040         * tree-emutls.c: Likewise.
15041         * tree-inline.c: Likewise.
15042         * tree-into-ssa.c: Likewise.
15043         * tree-loop-distribution.c: Likewise.
15044         * tree-loop-linear.c: Likewise.
15045         * tree-mudflap.c: Likewise.
15046         * tree-outof-ssa.c: Likewise.
15047         * tree-parloops.c: Likewise.
15048         * tree-predcom.c: Likewise.
15049         * tree-pretty-print.c: Likewise.
15050         * tree-scalar-evolution.c: Likewise.
15051         * tree-ssa-live.c: Likewise.
15052         * tree-ssa-loop-im.c: Likewise.
15053         * tree-ssa-loop-ivcanon.c: Likewise.
15054         * tree-ssa-loop-ivopts.c: Likewise.
15055         * tree-ssa-loop-manip.c: Likewise.
15056         * tree-ssa-loop-niter.c: Likewise.
15057         * tree-ssa-loop-prefetch.c: Likewise.
15058         * tree-ssa-phiprop.c: Likewise.
15059         * tree-ssa-pre.c: Likewise.
15060         * tree-ssa-reassoc.c: Likewise.
15061         * tree-ssa-sccvn.c: Likewise.
15062         * tree-ssa-structalias.c: Likewise.
15063         * tree-ssa.c: Likewise.
15064         * tree-vect-data-refs.c: Likewise.
15065         * tree-vect-loop-manip.c: Likewise.
15066         * tree-vect-loop.c: Likewise.
15067         * tree-vect-patterns.c: Likewise.
15068         * tree-vect-slp.c: Likewise.
15069         * tree-vect-stmts.c: Likewise.
15070         * tree-vrp.c: Likewise.
15071         * tree.c: Likewise.
15072         * value-prof.c: Likewise.
15073         * var-tracking.c: Likewise.
15074         * varasm.c: Likewise.
15075         * vmsdbgout.c: Likewise.
15077 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
15078             Richard Guenther  <richard.guenther@gmail.com>
15080         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
15081         copy the src value and return a copy.
15082         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
15083         (C++ Volatiles): Adjust to describe C++ semantics only.
15085 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
15087         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
15088         be zero or nonzero.
15089         * doc/tm.texi: Regenerate.
15090         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
15091         * df-scan.c (df_get_exit_block_use_set), reginfo.c
15092         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
15093         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
15094         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
15095         to 1.
15097 2010-08-20  Olivier Hainque  <hainque@adacore.com>
15099         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
15100         an extra nop past a sibling call at the very end.
15102 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
15104         PR bootstrap/45350
15105         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
15106         a comment.
15108 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
15110         * target.def (function_arg, function_incoming_arg): Remove const
15111         qualifier on CUMULATIVE_ARGS parameter.
15112         * targhooks.h (default_function_arg, default_function_incoming_arg):
15113         Likewise.
15114         * targhooks.c (default_function_arg, default_function_incoming_arg):
15115         Likewise.
15116         * config/i386/i386.c (ix86_function_arg): Likewise.
15118 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
15120         PR target/45336
15121         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
15122         SIGN_EXTENDs or ZERO_EXTENDs.
15124 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
15126         PR target/42172
15127         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
15128         Take its cost into account if nonnull.
15129         (insn_a_feeds_b): New static function.
15130         (combine_instructions): Look for four-insn combinations.
15131         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
15132         them into account when computing all_adjacent and looking for other
15133         uses.
15134         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
15135         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
15136         (try_combine): New arg I0.  Handle four-insn combinations.
15137         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
15138         like ELIM_I1.
15140 2010-08-19  Jason Merrill  <jason@redhat.com>
15142         PR c++/45307
15143         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
15144         if ctor is empty.
15145         (gimplify_modify_expr_rhs): Adjust.
15147 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
15149         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
15150         bitmap_bit_p.
15151         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
15152         * dominance.c (iterate_fix_dominators): Likewise.
15153         * dse.c (set_usage_bits): Likewise.
15154         (set_position_unneeded, record_store): Likewise.
15155         * gimple-fold.c (get_maxval_strlen): Likewise.
15156         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
15157         * ipa-inline.c (update_caller_keys): Likewise.
15158         * ipa-split.c (verify_non_ssa_vars): Likewise.
15159         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
15160         (close_type_exposed_parameter, close_type_full_escape): Likewise.
15161         (close_addressof_down): Likewise.
15162         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
15163         (setup_allocno_left_conflicts_size): Likewise.
15164         (ira_reassign_conflict_allocnos): Likewise.
15165         (ira_reassign_pseudos): Likewise.
15166         * ira-emit.c (change_loop): Likewise.
15167         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
15168         * lto-streamer-out.c (write_symbol): Likewise.
15169         * predict.c (expr_expected_value_1): Likewise.
15170         * regstat.c (regstat_bb_compute_ri): Likewise.
15171         * sel-sched.c (create_block_for_bookkeeping): Likewise.
15172         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
15173         * stmt.c (expand_case): Likewise.
15174         * tree-eh.c (emit_eh_dispatch): Likewise.
15175         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
15176         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
15177         Likewise.
15178         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
15179         (rdg_build_components): Likewise.
15180         * tree-object-size.c (collect_object_sizes_for): Likewise.
15181         * tree-sra.c (convert_callers): Likewise.
15182         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
15183         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
15184         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
15186 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
15188         * config/i386/i386.md (*lea_1): Use P mode iterator.
15189         (lea add splitter): Also handle DImode operands.
15190         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
15191         predicate.  Do not use ix86_lea_for_add_ok.
15192         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
15193         (lea ashift splitter): Also handle DImode operands.
15194         (DImode lea ashift splitter): Remove splitter.
15196 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
15198         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
15199         ix86_binary_operator_ok.
15201 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
15203         PR rtl-optimization/44691
15204         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
15205         is not a register.
15207 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
15209         PR target/45070
15210         * config/arm/arm.c (arm_output_epilogue): Ensure that return
15211          value of size 1-3 is handled correctly.
15213 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
15215         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
15216         type for the conditional has wide enough range.
15218 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
15220         PR target/45327
15221         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
15222         ix86_binary_operator_ok.
15224 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
15226         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
15227         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
15228         code to output insn mnemonic.  Fix comment.
15229         (*addsi_1_zext): Add r-r-0 alternative 1.
15230         <TYPE_LEA>: Split insn to lea.
15231         <default>: Handle alternative 1.
15232         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
15233         multi-level if_then_else RTX to set "type" attribute.
15234         <default>: Handle alternative 2.
15235         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
15236         Use cond RTX instead of multi-level if_then_else RTX to set
15237         "type" attribute.
15238         <default>: Handle alternatives 2 and 4.
15239         (lea splitters): Update calls to ix86_lea_for_add_ok.
15241         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
15242         argument.
15243         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
15245 2010-08-18  Richard Guenther  <rguenther@suse.de>
15247         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
15248         use operand helpers.
15250 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
15252         PR middle-end/45292
15253         * optabs.c (expand_bool_compare_and_swap): Expand pending
15254         pops before trying the optab.
15256 2010-08-18  Yao Qi  <yao@codesourcery.com>
15258         PR target/45094
15259         * config/arm/arm.c (output_move_double): Fix typo generating
15260         instructions ('ldr'->'str').
15262 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
15264         PR rtl-optimization/42575
15265         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
15266         live ranges.
15268 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15270         * config/arm/arm-protos.h (arm_expand_sync): New.
15271         (arm_output_memory_barrier, arm_output_sync_insn): New.
15272         (arm_sync_loop_insns): New.
15273         * config/arm/arm.c (FL_ARCH7): New.
15274         (FL_FOR_ARCH7): Include FL_ARCH7.
15275         (arm_arch7): New.
15276         (arm_print_operand): Support %C markup.
15277         (arm_legitimize_sync_memory): New.
15278         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
15279         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
15280         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
15281         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
15282         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
15283         (arm_process_output_sync_insn, arm_output_sync_insn): New.
15284         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
15285         * config/arm/arm.h (struct arm_sync_generator): New.
15286         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
15287         (TARGET_HAVE_MEMORY_BARRIER): New.
15288         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
15289         * config/arm/arm.md: Include sync.md.
15290         (UNSPEC_MEMORY_BARRIER): New.
15291         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
15292         (VUNSPEC_SYNC_OP):New.
15293         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
15294         (sync_result, sync_memory, sync_required_value): New attributes.
15295         (sync_new_value, sync_t1, sync_t2): Likewise.
15296         (sync_release_barrier, sync_op): Likewise.
15297         (length): Add logic to length attribute defintion to call
15298         arm_sync_loop_insns when appropriate.
15299         * config/arm/sync.md: New file.
15301 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
15303         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
15304         ENABLE_TREE_CHECKING.
15305         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
15306         and GCC >= 4.3.
15308 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
15310         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
15311         or optimizing for size, always avoid lea if possible.
15313         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
15315 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
15317         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
15318         Dunmmy function with NULL return unless the target is
15319         OSX >= 10.6 (Darwin10).
15321 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
15323         * gcc.c (spec_function): Add remove-outfile.
15324         (remove_outfile_spec_function): New function.
15325         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
15326         * invoke.texi (replace-outfile): Document.
15328 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
15330         PR target/45296
15331         * reginfo.c (globalize_reg): Reject stack registers.
15333 2010-08-17  Richard Guenther  <rguenther@suse.de>
15335         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
15336         list of conditional equivalences.
15337         (free_all_edge_infos): Adjust.
15338         (record_equivalences_from_incoming_edge): Likewise.
15339         (record_cond): Likewise.
15340         (build_and_record_new_cond): Likewise.
15341         (record_conditions): Likewise.
15342         (dom_opt_leave_block): Likewise.
15344 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
15346         * doc/invoke.texi (ms-extension): Add documentation.
15348 2010-08-17  Richard Guenther  <rguenther@suse.de>
15350         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
15352 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
15354         PR c/40563
15355         * c-decl.c (diagnose_uninitialized_cst_member): New function.
15356         (finish_decl): Use it to issue a -Wc++-compat warning about
15357         uninitialized const field in struct or union.
15359         (finish_struct): Use strip_array_types.
15361 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
15363         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
15364         functions.
15365         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
15366         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
15367         call block_nreverse here.
15368         (blocks_nreverse): Rename decl temporary to block.
15370 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
15372         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
15373         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
15374         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
15375         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
15376         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
15377         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
15378         thumb2_iorsi3): Delete.
15379         (orsi_notsi_si): No longer a named pattern.
15380         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
15381         * config/arm/predicates.md (shift_amount_operand): New.
15382         (mult_operator): New.
15383         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
15384         attr enabled): New.
15385         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
15386         arch matches t2.
15387         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
15388         (not_shiftsi_compare0): Likewise, renamed from
15389         arm_notsi_shiftsi_compare0.
15390         (not_shiftsi_compare0_scratch): Likweise, renamed from
15391         arm_notsi_shiftsi_compare0_scratch.
15392         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
15393         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
15394         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
15395         so that the register alternative is disabled when the shift_operator
15396         is MULT.  Use "M" as the constraint for constants.
15397         (arith_shiftsi splitter): Enable for TARGET_32BIT.
15398         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
15399         constraint for constants.
15400         (arith_shiftsi_compare0_scratch): Likewise.
15401         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
15402         Handle Thumb2 alternative.
15404 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
15406         * doc/options.texi (NoDriverArg): Document.
15407         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
15408         -MDX and -MMDX.
15409         * opt-functions.awk (switch_flags): Handle NoDriverArg.
15410         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
15411         marking for CL_NO_DRIVER_ARG options when in the driver.
15412         * opts.h (CL_NO_DRIVER_ARG): Define.
15413         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
15414         CL_COMMON): Update values.
15416 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
15418         * common.opt: Add driver options.
15419         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
15420         * doc/options.texi (Driver, RejectDriver): Document.
15421         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
15422         print_prog_name, print_multi_directory, print_sysroot,
15423         print_multi_os_directory, print_multi_lib,
15424         print_sysroot_headers_suffix, report_times, combine_flag,
15425         use_pipes, wrapper_string): Remove.
15426         (save_switch, driver_unknown_option_callback,
15427         driver_wrong_lang_callback, driver_post_handling_callback,
15428         driver_handle_option): New.
15429         (spec_lang, last_language_n_infiles): Make file-scope static
15430         instead of local to process_command.
15431         (process_command): Use decode_cmdline_options_to_array and
15432         read_cmdline_option for option processing.  Compute have_c in
15433         prescan of decoded options.
15434         * opt-functions.awk (switch_flags): Handle Driver and
15435         RejectDriver.
15436         (var_type, var_type_struct): Handle Separate options as generating
15437         const char * variables.
15438         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
15439         CL_TARGET to be passed by caller if required.
15440         (decode_cmdline_options_to_array): Update comment.
15441         * opts.c (complain_wrong_lang): Handle options only valid for the
15442         driver.
15443         (decode_options): Update call to decode_cmdline_options_to_array.
15444         (print_filtered_help): Ignore driver-only options.
15445         (print_specific_help): Ignore CL_DRIVER.
15446         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
15447         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
15448         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
15449         Update values.
15451 2010-08-16  Richard Guenther  <rguenther@suse.de>
15453         * tree-cfg.c (verify_types_in_gimple_reference): Verify
15454         TARGET_MEM_REF a bit.
15455         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
15456         (create_mem_ref_raw): Always create TMR_OFFSET, store the
15457         alias pointer type via it.
15458         (copy_mem_ref_info): Adjust.
15459         (maybe_fold_tmr): Likewise.
15460         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
15461         (reference_alias_ptr_type): Likewise.
15462         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
15463         adjust documentation of TMR_OFFSET operand.
15464         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
15465         use the alias pointer type.
15466         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
15467         initialize mem attrs but the TMR itself.
15468         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
15469         similar to MEM_REF.
15470         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
15471         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
15472         (unshare_and_remove_ssa_names): Likewise.
15473         (copy_ref_info): Adjust.
15474         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
15475         TARGET_MEM_REF case.
15476         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
15477         at TMR_ORIGINAL.
15478         * tree.h (TMR_ORIGINAL): Remove.
15479         * gimple.c (get_base_address): For TARGET_MEM_REF with a
15480         symbol return that.
15481         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
15482         with a symbol.
15483         (get_addr_base_and_unit_offset): Likewise.
15484         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
15485         TARGET_MEM_REFs.
15486         (indirect_ref_may_alias_decl_p): Likewise.
15487         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
15489 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
15491         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
15492         with GCC version 4.6, the default setting (when not optimizing
15493         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
15494         been changed to -fomit-frame-pointer.
15496 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
15498         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
15499         Darwin10.  Do not link libgcc.a for Darwin >= 9.
15501 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
15503         * doc/invoke.texi (Warning Options): Fix terminology and markup
15504         in the description of how unknown warning options are handled.
15506 2010-08-15  Ira Rosen  <irar@il.ibm.com>
15508         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
15509         in basic blocks.
15510         (vect_supportable_dr_alignment): Check alignment for basic blocks.
15511         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
15512         data references.
15513         (vect_bb_vectorization_profitable_p): New function.
15514         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
15515         check if it's worthwhile to vectorize the basic block.
15517 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
15519         * reload.h (register_move_cost, memory_move_secondary_cost,
15520         secondary_reload_class): Adjust prototype.
15521         * rtl.h (reg_class_subset_p): Adjust prototype.
15522         * reload.c (secondary_reload_class): Change arguments type from
15523         enum reg_class to reg_class_t. Change result type to reg_class_t.
15524         * reginfo.c (register_move_cost, reg_class_subset_p): Change
15525         arguments type from enum reg_class to reg_class_t.
15526         (memory_move_secondary_cost): Change arguments type from
15527         enum reg_class to reg_class_t. Change type of saved_flags to
15528         reg_class_t.
15530         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15531         Remove macros.
15532         (mips_cost): Remove.
15533         (struct mips_rtx_cost_data): Moved to mips.c.
15534         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
15535         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
15536         (mips_cost): Make static.
15537         (mips_canonicalize_move_class): Change argument type to reg_class_t.
15538         Change result type to reg_class_t.
15539         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
15540         type from enum reg_class to reg_class_t.
15541         (mips_register_move_cost): Make static. Change arguments
15542         type from enum reg_class to reg_class_t.
15543         (mips_memory_move_cost): New function.
15544         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15546 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
15548         PR rtl-optimization/43358
15549         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
15550         of a single hard register, using simplify_subreg_regno to decide
15551         what that register should be.
15553 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
15555         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
15556         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
15557         (loongson_pmull<V_suffix>): Rename to...
15558         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
15560 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
15562         * configure.ac: Enable -fomit-frame-pointer on darwin
15563         which support dwarf2.
15564         * config/i386/i386.c (override_options): Same.
15566 2010-08-13  Jie Zhang  <jie@codesourcery.com>
15568         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
15570 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
15572         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
15573         -MMD.
15575 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
15577         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
15578         up dot_prod pattern searching if a stmt is outside the loop.
15580 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
15581             Uros Bizjak  <ubizjak@gmail.com>
15583         * config.gcc: Handle --enable-frame-pointer.
15585         * configure.ac: Add --enable-frame-pointer.
15586         * configure: Regenerated.
15588         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
15589         (override_options): If not configured with --enable-frame-pointer,
15590         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
15591         optimizing for size), -fasynchronous-unwind-tables and
15592         -maccumulate-outgoing-args by default.
15594 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
15596         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
15598         PR middle-end/45262
15599         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
15600         -a overflows.  Normalize the range.
15602 2010-08-12  Richard Guenther  <rguenther@suse.de>
15604         PR tree-optimization/45232
15605         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
15606         for types with undefined overflow.
15607         (reassociate_bb): Allow re-associating of bit and min/max
15608         operations for types with undefined overflow.
15609         * tree-ssa-forwprop.c (associate_plusminus): New function.
15610         (tree_ssa_forward_propagate_single_use_vars): Call it.
15612 2010-08-12  Richard Guenther  <rguenther@suse.de>
15614         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
15615         * tree-ssa-alias.c (get_ptr_info): Move ...
15616         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
15617         align and misalign fields conservatively.
15618         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
15619         derive alignment information.
15620         (evaluate_stmt): Derive alignment information from memory
15621         allocation functions.
15622         * tree.h (get_pointer_alignment): Make unsigned.
15623         * builtins.c (get_object_alignment): Use alignment information we
15624         have computed for pointers.
15625         (get_pointer_alignment): Likewise.  Make conservative, return
15626         and unsigned value.
15627         (expand_builtin_strlen): Adjust.
15628         (expand_builtin_memcmp): Likewise.
15629         (expand_builtin_strcmp): Likewise.
15630         (expand_builtin_strncmp): Likewise.
15631         (get_builtin_sync_mem): Use at least mode alignment.
15632         (fold_builtin_memset): Adjust.
15633         (fold_builtin_memory_op): Likewise.
15634         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
15635         information also dump pointer alignment knowledge.
15636         (dump_gimple_stmt): Likewise.
15638 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
15640         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
15641         (EMPTY_FIELD_BOUNDARY): Remove.
15642         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
15644 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
15646         PR debug/45259
15647         * caller-save.c (save_call_clobbered_regs): Only swap notes with
15648         DEBUG_INSNs if n_regs_saved.
15650 2010-08-12  Wei Guozhi  <carrot@google.com>
15652         PR target/44999
15653         * config/arm/arm.md (andsi3): Change to zero extension if possible.
15654         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
15656 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
15658         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
15660         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
15662 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15664         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
15665         the case removed in the previous patch, when the only phi argument
15666         is defined in the same loop as the phi node itself.  Handle it
15667         separately from the invariant case by both propagating it outside
15668         the region and replacing the phi node with an assign.
15670 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15672         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
15673         constant phi nodes with one argument are is_gimple_min_invariant
15674         and SSA_NAME_IS_DEFAULT_DEF.
15676 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15678         * graphite-cloog-util.c (oppose_constraint):
15679         Extend loop counter's value range (CLOOG_ORG).
15680         (cloog_matrix_to_ppl_constraint): Same.
15681         (new_Constraint_System_from_Cloog_matrix): Same.
15682         * graphite-cloog-compat.h (matrix_num_type): New.
15684 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15686         * graphite.c (graphite_initialize): Do not initialize
15687         CLooG and initialize the Parma Polyhedra Library
15688         manually when using CLOOG_ORG.
15689         (graphite_finalize): Do not finalize CLooG and finalize
15690         the Parma Polyhedra Library manually when using CLOOG_ORG.
15691         * graphite-cloog-compat.h (cloog_initialize): Hide function
15692         when using CLOOG_ORG.
15693         (cloog_finalize): Same.
15695 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15697         * graphite-clast-to-gimple.c (free_scattering): Change
15698         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
15699         (CLOOG_ORG).
15700         (build_cloog_prog): Same.
15701         * graphite-cloog-compat.h (cloog_domain): Removed.
15702         (cloog_scattering): New.
15703         (cloog_set_domain): Removed.
15704         (cloog_set_scattering): New.
15705         (cloog_next_domain): Removed.
15706         (cloog_next_scattering): New.
15707         (cloog_set_next_domain): Removed.
15708         (cloog_set_next_scattering): New.
15709         (CloogScatteringList): New.
15710         (CloogScattering): New.
15711         (cloog_scattering_free): New.
15712         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
15713         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
15714         New.
15716 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15718         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
15719         CloogState.
15720         (set_cloog_options): Same.
15721         (print_clast_stmt): Same.
15722         (scop_to_clast): Same.
15723         (print_generated_program): Same.
15724         (gloog): Same.
15725         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
15726         (scop_to_clast): Extend with CloogState.
15727         * graphite-cloog-util.c: Include graphite-cloog-compat.h
15728         (new_Cloog_Domain_from_ppl_Polyhedron):
15729         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
15730         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
15731         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15732         * graphite-cloog-util.h (build_cloog_prog): Same.
15733         * graphite-cloog-copat.h (build_cloog_prog): New.
15734         (CloogState): New.
15735         (cloog_state_malloc): New.
15736         (cloog_state_free): New.
15737         (cloog_loop_malloc): New.
15738         (cloog_options_malloc): New.
15739         (cloog_statement_alloc): New.
15740         (cloog_domain_from_cloog_matrix): New.
15741         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
15742         (new_Cloog_Domain_from_ppl_Polyhedron): New.
15744 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15746         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
15747         type of NAME now depends on used CLooG version.
15748         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
15749         (gcc_type_for_clast_expr): Same.
15750         (print_clast_stmt): Replace pprint with clast_pprint.
15751         * graphite-cloog-compat.h: Provide compatibility macros for
15752         CLooG Legacy.
15753         (clast_name_p): New.
15754         (clast_expr_term): New.
15755         (clast_expr_red): New.
15756         (clast_expr_bin): New.
15757         (clast_pprint): New.
15759 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15761         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
15762         compatible to newer CLooG releases (CLOOG_ORG).
15763         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
15764         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
15765         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
15766         (build_cloog_prog) : New.
15767         (cloog_program_extract_scalars): New.
15768         (cloog_program_scatter): New.
15770 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15772         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
15773         conditionally (CLOOG_ORG).
15774         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
15775         (cloog_statement_usr): New.
15776         (cloog_domain): Same.
15777         (cloog_set_domain): Same.
15778         (cloog_next_domain): Same.
15779         (cloog_set_next_domain): Same.
15780         (cloog_program_nb_scattdims): Same.
15781         (cloog_program_set_nb_scattdims): Same.
15782         (cloog_program_names): Same.
15783         (cloog_program_set_names): Same.
15784         (cloog_program_set_context): Same.
15785         (cloog_program_set_loop): Same.
15786         (cloog_program_blocklist): Same.
15787         (cloog_program_set_blocklist): Same.
15788         (cloog_program_scaldims): Same.
15789         (cloog_program_set_scaldims): Same.
15790         (cloog_names_nb_parameters): Same.
15791         (cloog_names_set_nb_parameters): Same.
15792         (cloog_names_parameters): Same.
15793         (cloog_names_set_parameters): Same.
15794         (cloog_names_set_nb_iterators): Same.
15795         (cloog_names_set_iterators): Same.
15796         (cloog_names_set_nb_scattering): Same.
15797         (cloog_names_set_scattering): Same.
15798         (cloog_statement_set_usr): Same.
15799         (cloog_loop_set_next): Same.
15800         (cloog_loop_set_domain): Same.
15801         (cloog_loop_set_block): Same.
15802         (cloog_block_list_next): Same.
15803         (cloog_block_list_set_next):
15804         (cloog_block_list_set_block): Same.
15806 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15808         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
15809         a bool.
15810         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
15811         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
15812         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
15813         when something has been changed.
15814         (rewrite_commutative_reductions_out_of_ssa): Same.
15816 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15818         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
15819         handle the case when def is in the sese region.
15820         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
15821         for invariant expressions.
15822         (rewrite_cross_bb_phi_deps): Removed.
15823         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
15824         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
15825         rewrite_cross_bb_phi_deps.
15827 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15829         * graphite-sese-to-poly.c
15830         (rewrite_commutative_reductions_out_of_ssa_loop): Call
15831         scev_analyzable_p only on is_gimple_reg
15833 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15835         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
15836         (rewrite_close_phi_out_of_ssa): Propagate constant values or
15837         parametric expressions outside the scop region.
15838         (rewrite_cross_bb_scalar_deps): Same.
15839         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
15841 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15843         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
15844         SSA_NAME_DEF_STMT only on SSA_NAMEs.
15846 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15848         * tree-scalar-evolution.c (instantiate_scev_name): Do not
15849         instantiate default definitions.
15851 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
15852             Sebastian Pop  <sebastian.pop@amd.com>
15854         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
15855         (loop_exits_from_bb_p): New.
15856         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
15857         (loop_exits_from_bb_p): Declared.
15858         * graphite-scop-detection.c (scopdet_basic_block_info): Call
15859         loop_exits_to_bb_p.
15861 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15863         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
15864         extra parameter for the region.  Call scev_analyzable_p.
15865         (rewrite_reductions_out_of_ssa): Update call to
15866         rewrite_close_phi_out_of_ssa.
15867         (rewrite_cross_bb_phi_deps): Same.
15868         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
15869         parameter for the region.  Call scev_analyzable_p.
15870         (rewrite_commutative_reductions_out_of_ssa): Update call to
15871         rewrite_commutative_reductions_out_of_ssa_loop.
15873 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15875         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
15877 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15879         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
15880         SSA scalar phi nodes that can be scev_analyzable_p.
15882 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15884         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
15885         handle SSA_NAME_IS_DEFAULT_DEF.
15887 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15889         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
15891 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15893         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
15894         case non close-phi nodes with one argument.
15896 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15898         * sese.h (scev_analyzable_p): Scevs could be expressions without
15899         chrecs and still be scev_analyzable_p.
15901 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15903         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15905 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15907         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
15908         * cfgloop.h (struct loop): Remove single_iv field.
15909         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
15910         (scop_canonicalize_loops): Removed.
15911         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
15912         over all the loop phi nodes in loop->header.
15913         (build_poly_scop): Remove use of scop_canonicalize_loops.
15915 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15917         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
15918         handle GIMPLE_CALL.
15920 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15922         * tree-chrec.c (chrec_apply): Should only apply to the specified
15923         variable.  Also handle multivariate chains of recurrences that
15924         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
15926 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15928         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
15929         (debug_clast_name_indexes_1): Removed.
15930         (debug_clast_name_indexes): Removed.
15931         (pbb_to_depth_to_oldiv): Removed.
15932         (build_iv_mapping): Replace the use of rename_map with iv_map.
15933         (translate_clast_user): Remove uses of rename_map.  Allocate and
15934         free iv_map.
15935         (translate_clast_for_loop): Remove uses of rename_map.
15936         (translate_clast_for): Same.
15937         (translate_clast_guard): Same.
15938         (translate_clast): Same.
15939         (gloog): Same.
15940         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
15941         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
15942         * sese.c (set_rename): Now static.
15943         (rename_variables_in_stmt): Removed.
15944         (rename_uses): New.
15945         (is_parameter): Removed.
15946         (is_iv): Removed.
15947         (expand_scalar_variables_call): Removed.
15948         (expand_scalar_variables_ssa_name): Removed.
15949         (expand_scalar_variables_expr): Removed.
15950         (expand_scalar_variables_stmt): Removed.
15951         (expand_scalar_variables): Removed.
15952         (rename_variables): Removed.
15953         (remove_condition): Removed.
15954         (get_true_edge_from_guard_bb): Removed.
15955         (get_false_edge_from_guard_bb): Removed.
15956         (struct igp): Removed.
15957         (default_before_guard): Removed.
15958         (convert_for_phi_arg): Removed.
15959         (add_guard_exit_phis): Removed.
15960         (insert_guard_phis): Removed.
15961         (graphite_copy_stmts_from_block): Now also uses iv_map and a
15962         region.  Do not copy conditions.  Do not copy induction variables.
15963         Call rename_uses.
15964         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
15965         the translated statement.  Use the iv_map for the induction
15966         variable renaming.
15967         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
15968         (set_rename): Removed declaration.
15969         (scev_analyzable_p): ...here.
15970         * tree-chrec.c (chrec_apply_map): New.
15971         * tree-chrec.h (chrec_apply_map): Declared.
15973 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15975         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
15976         insert_loop_close_phis.
15977         * sese.c (name_defined_in_loop_p): Removed.
15978         (expr_defined_in_loop_p): Removed.
15979         (alive_after_loop): Removed.
15980         (close_phi_not_yet_inserted_p): Removed.
15981         (struct alep): Removed.
15982         (add_loop_exit_phis): Removed.
15983         (insert_loop_close_phis): Removed.
15985 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15987         * graphite-cloog-util.c
15988         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
15989         * graphite-poly.c
15990         (psct_scattering_dim_for_loop_depth): Same.
15992 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15994         * graphite-cloog-util.h: Added cloog.h.
15995         * graphite-blocking.c: Removed cloog.h.
15996         * graphite-dependences.c: Same.
15997         * graphite-interchange.c: Same.
15998         * graphite-poly.c: Same.
15999         * graphite-ppl.c: Same.
16000         * graphite-scop-detection.c: Same.
16001         * graphite-sese-to-poly.c:
16002         Removed cloog.h.
16003         Removed graphite-clast-to-gimple.h.
16004         (check_poly_representation): Removed (unused).
16005         * graphite-sese-to-poly.h
16006         (check_poly_representation): Removed (unused).
16008 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16010         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
16011         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
16012         (graphite-cloog-util.o): New.
16013         (graphite-ppl.o): Added graphite-cloog-util.h.
16014         * graphite-clast-to-gimple.c:
16015         Added graphite-cloog-util.h to include statements.
16016         * graphite-cloog-util.c: New.
16017         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
16018         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16019         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16020         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16021         (insert_constraint_into_matrix): Same.
16022         (ppl_Constrain_System_number_of_constraints): Same.
16023         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
16024         (oppose_constraint): Same.
16025         (cloog_matrix_to_ppl_constraint): Same.
16026         (new_Constraint_System_from_Cloog_Matrix): Same.
16027         * graphite-cloog-util.h: New.
16028         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
16029         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16030         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16031         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16032         (insert_constraint_into_matrix): Same.
16033         * graphite-ppl.c:
16034         Added graphite-cloog-util.h to include statements.
16035         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
16036         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16037         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16038         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16039         (insert_constraint_into_matrix): Same.
16040         (ppl_Constrain_System_number_of_constraints): Same.
16041         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
16042         (oppose_constraint): Same.
16043         (cloog_matrix_to_ppl_constraint): Same.
16044         (new_Constraint_System_from_Cloog_Matrix): Same.
16045         * graphite-ppl.h:
16046         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
16047         graphite-cloog-util.h.
16048         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
16049         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
16050         (new_C_Polyhedron_from_Cloog_Matrix): Same.
16051         (insert_constraint_into_matrix): Same.
16053 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
16055         * graphite-clast-to-gimple.c
16056         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
16057         (precision_for_interval): Same.
16058         (gcc_type_for_interval): Same.
16059         (compute_type_for_level): Same.
16060         * graphite-interchange.c
16061         (lst_interchange_profitable_p): Same.
16062         * graphite-poly.c
16063         (psct_scattering_dim_for_loop_depth): Same.
16064         * graphite-ppl.c
16065         (ppl_max_for_le_pointset): Same.
16066         (ppl_min_for_le_pointset): Same.
16068 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16070         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
16071         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
16073 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16075         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
16076         rewrite_close_phi_out_of_ssa.
16078 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16080         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
16082 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16084         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
16085         rename_map.
16086         * sese.c (debug_rename_map): Same.
16087         (get_rename): Same.
16088         (set_rename): Same.
16089         (rename_variables_in_stmt): Same.
16090         (expand_scalar_variables_call): Same.
16091         (expand_scalar_variables_ssa_name): Same.
16092         (expand_scalar_variables_expr): Same.
16093         (expand_scalar_variables_stmt): Same.
16094         (expand_scalar_variables): Same.
16095         (rename_variables): Same.
16096         (graphite_copy_stmts_from_block): Same.
16097         (copy_bb_and_scalar_dependences): Same.
16099 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16101         * graphite-clast-to-gimple.c (copy_renames): Removed.
16102         (translate_clast_for): Do not call copy_renames.
16103         (translate_clast_guard): Same.
16105 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16107         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
16108         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
16109         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
16110         before rewrite_cross_bb_scalar_deps.
16112 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16114         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
16115         Early return in when flag_associative_math is not set.
16117 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16119         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
16120         of SSA copies on edges except for loop->latch.
16122 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16124         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
16125         Split out of rewrite_reductions_out_of_ssa.
16126         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
16127         Declared.
16128         * graphite.c (graphite_transform_loops): Call it.
16130 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16132         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
16134 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
16136         * dbgcnt.def (graphite_scop): New counter.
16137         * graphite.c: Include dbgcnt.h.
16138         (graphite_transform_loops): Use new counter to limit transformations.
16139         * Makefile.in (graphite.o): Depend on DBGCNT_H.
16141 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16143         * passes.c (init_optimization_passes): Add pass_graphite.
16144         Schedule a pass_copy_prop before pass_graphite_transforms.
16145         * timevar.def (TV_GRAPHITE): Declared.
16146         * tree-pass.h (pass_graphite): Declared.
16147         * tree-ssa-loop.c (pass_graphite): New.
16149 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16151         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
16152         Remove calls to rename_nb_iterations and rename_sese_parameters.
16153         * graphite-clast-to-gimple.h (gloog): Update declaration.
16154         * graphite.c (graphite_transform_loops): Update call to gloog.
16155         * sese.c (rename_variables_in_expr): Removed.
16156         (rename_nb_iterations): Removed.
16157         (rename_sese_parameters): Removed.
16158         * sese.h (rename_nb_iterations): Removed.
16159         (rename_sese_parameters): Removed.
16161 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16163         * graphite-clast-to-gimple.c (gloog): Remove call to
16164         sese_adjust_liveout_phis.
16165         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
16166         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
16167         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
16168         rewrite_phi_out_of_ssa.
16169         * sese.c (get_vdef_before_sese): Removed.
16170         (sese_adjust_vphi): Removed.
16171         (sese_adjust_liveout_phis): Removed.
16172         * sese.h (sese_adjust_liveout_phis): Removed.
16174 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16176         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
16177         argument for the place after which to insert the out of SSA copy.
16178         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
16179         (rewrite_phi_out_of_ssa): Same.
16180         (rewrite_cross_bb_scalar_deps): Same.
16181         (insert_copyout): Removed.
16182         (insert_copyin): Removed.
16183         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
16184         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
16185         insert_copyin.
16187 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16189         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
16190         (rewrite_reductions_out_of_ssa): Same.
16191         (rewrite_commutative_reductions_out_of_ssa): Same.
16192         (build_poly_scop): Do not call these functions.
16193         * graphite-sese-to-poly.h (build_poly_scop): Declared.
16194         (rewrite_reductions_out_of_ssa): Declared.
16195         (rewrite_commutative_reductions_out_of_ssa): Declared.
16196         * graphite.c (graphite_transform_loops): Call on every scop
16197         rewrite_commutative_reductions_out_of_ssa before calling
16198         rewrite_reductions_out_of_ssa and build_scop_bbs.
16200 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16202         * graphite-dependences.c (dot_deps): Make system call to dotty run
16203         in background.
16204         (dot_deps_stmt): Same.
16205         * graphite-poly.c (dot_lst): Same.
16207 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
16209         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
16210         phi_arg_in_outermost_loop.
16211         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
16212         (remove_invariant_phi): Same.
16214 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
16216         * target.def (output_addr_const_extra): New hook.
16217         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
16218         * doc/tm.texi: Regenerate.
16219         * targhooks.c (default_asm_output_addr_const_extra): New function.
16220         * targhooks.h (default_asm_output_addr_const_extra): Declare.
16221         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
16222         target hook.
16224         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16225         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
16226         * config/i386/i386.h (output_addr_const_extra): Rename to...
16227         (i386_asm_output_addr_const_extra): ...this. Make static.
16228         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16230 2010-08-11  Richard Henderson  <rth@redhat.com>
16232         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
16234 2010-08-11  Nick Clifton  <nickc@redhat.com>
16236         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
16237         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
16238         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
16239         stormy16-lib2-cmpsi.c.
16241         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
16242         -O2.
16244 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
16246         * opts.h (struct cl_option_handler_func): Make handler take
16247         cl_decoded_option structure as parameter, not individual elements.
16248         (struct cl_option_handlers): Make callbacks take cl_decoded_option
16249         structure as parameter, not individual elements.
16250         (handle_option): Take cl_decoded_option structure as parameter,
16251         not individual elements.
16252         (handle_generated_option): Declare.
16253         * opts-common.c (handle_option): Take cl_decoded_option structure
16254         as parameter, not individual elements.  Update calls to callback
16255         and handler functions.
16256         (handle_generated_option): New.
16257         (read_cmdline_option): Update calls to callback functions and
16258         handle_option.
16259         * opts.c (common_handle_option, complain_wrong_lang,
16260         unknown_option_callback, post_handling_callback,
16261         lang_handle_option, target_handle_option): Take cl_decoded_option
16262         structure as parameter, not individual elements.
16263         (lang_handle_option, target_handle_option, common_handle_option):
16264         Assert option has at most one argument.
16265         (enable_warning_as_error): Call handle_generated_option instead of
16266         handle_option.  Do not pass -Werror argument as argument of
16267         generated option.
16269 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16271         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
16272         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
16273         (SUBWORD_BOOL_CAS): Likewise.
16274         (SUBWORD_SYNC_OP): Likewise.
16275         (SUBWORD_TEST_AND_SET): Likewise.
16276         (FETCH_AND_OP_WORD): Parenthesise INF_OP
16277         (SUBWORD_SYNC_OP): Likewise.
16278         (OP_AND_FETCH_WORD): Likewise.
16280 2010-08-10  Xinliang David Li  <davidxl@google.com>
16282         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
16283         compute max/min offset in address.
16285 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
16287         * ira-live.c: Include sbitmap.h.
16288         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
16289         Compress live ranges even more.
16291 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16293         * coverage.c (ctr_labels): Delete.
16295 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
16297         PR bootstrap/45177
16298         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
16299         test here from arm_gen_load_multiple_1.
16300         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
16301         multiple_operation_profitable_p.
16303 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16305         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
16306         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
16308 2010-08-10  Richard Henderson  <rth@redhat.com>
16310         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
16311         after saving registers.  Assert that SSE registers are only saved
16312         with a sufficiently aligned frame.
16313         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
16314         remove stack_realign_fp handling.
16315         (ix86_expand_prologue): Save int registers before stack_realign_fp,
16316         and do not mark the stack alignment as frame related.
16317         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
16319         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
16320         saves when re-aligning the stack.
16322 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16324         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
16325         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
16326         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
16328 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
16330         * dwarf2out.c (struct die_struct): Move die_tag to the end.
16332 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
16334         * config/arm/iterators.md: New file.
16335         * config/arm/arm.md: Include iterators.md.
16336         (QHSI): Move to new file.
16337         (LTUGEU, cnb, optab, ior_xor): Likewise.
16338         * config/arm/iwmmxt.md (VMMX): Move to new file.
16339         (VSHFT, MMX_char): Likewise.
16340         * config/arm/neon.md (VD): Move to new file.
16341         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
16342         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
16343         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
16344         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
16345         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
16346         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
16347         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
16348         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
16349         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
16350         (Is_d_reg, V_mode_nunits): Likewise.
16351         * config/arm/vec-common.md (VALL): Move to new file.
16352         (VALLW, VINT, VINTW): Likewise.
16354 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
16356         PR middle-end/45182
16357         * combine.c (make_compound_operation): Don't try to convert
16358         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
16360 2010-08-10  Richard Guenther  <rguenther@suse.de>
16362         * tree.h (get_object_alignment): Adjust prototype.
16363         * builtins.c (get_object_alignment): Return unsigned int,
16364         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
16365         and TARGET_MEM_REF properly.
16366         (get_pointer_alignment): Adjust.
16367         * emit-rtl.c (get_mem_align_offset): Adjust comment.
16368         (set_mem_attributes_minus_bitpos): Adjust.
16369         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
16371 2010-08-10  Richard Guenther  <rguenther@suse.de>
16373         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
16374         (copy_prop_visit_assignment): Simplify.
16375         (copy_prop_visit_stmt): Also visit assignments from
16376         constants.
16377         (copy_prop_visit_phi_node): Use operand_equal_p.
16379 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16381         * ipa-split.c (find_split_points): Free stack.
16383 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16385         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
16386         * tree.c (tree_node_kind): Delete corresponding entries.
16388 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
16390         * alias.c (may_alias_p): Remove unused ret.
16392 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
16394         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
16395         alias_sets_conflict_p.
16396         (walk_mems_1): Moved from alias.c.
16397         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
16398         in alias.c.
16399         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
16400         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
16401         * alias.c (walk_mems_2): Moved to ddg.c.
16402         (walk_mems_1): Ditto.
16403         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
16404         to ddg.c.
16405         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
16406         disambiguation.
16407         *(may_alias_p): New function to check whether two memory expression
16408         may alias or not. Currently used in buidling inter-iteration memory
16409         dependence.
16410         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
16411         (insn_alias_sets_conflict_p): Removed
16412         *rtl.h (may_alias_p): New function prototype.
16414 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16416         * tree.c (nreverse): Assert that we don't have a BLOCK.
16418 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
16420         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
16421         * config/arm/arm.c (arm_get_pcs_model): Likewise.
16422         * config/avr/avr.c (init_cumulative_args): Likewise.
16423         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16424         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
16425         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
16426         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
16427         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
16428         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16429         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
16430         * dwarf2out.c (gen_subprogram_die): Likewise.
16431         * function.c (allocate_struct_function): Likewise.
16432         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
16433         (deserves_ellipsis): Delete.
16435 2010-08-09  Richard Guenther  <rguenther@suse.de>
16437         * tree-ssa-copy.c (cached_last_copy_of): Remove.
16438         (valueize_val): New function.
16439         (get_last_copy_of): Remove.
16440         (set_copy_of_val): Simplify.
16441         (dump_copy_of): Likewise.
16442         (copy_prop_visit_cond_stmt): Use valueize_val.
16443         (copy_prop_visit_phi_node): Properly handle unvisited names.
16444         Drop code managing copy-of chains.
16445         (init_copy_prop): Adjust.
16446         (fini_copy_prop): Likewise.
16447         (execute_copy_prop): Remove obsolete comment.
16449 2010-08-09  Richard Guenther  <rguenther@suse.de>
16451         PR middle-end/44632
16452         * function.c (gimplify_parameters): Do not clear addressable
16453         bit of the original parameter.
16455 2010-08-09  Richard Guenther  <rguenther@suse.de>
16457         PR middle-end/45212
16458         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
16459         alignment from MEM_REF offset only if we took it from the
16460         base object.
16462 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
16464         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
16466 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
16468         * c-tree.h (build_arg_info): Declare.
16469         * c-decl.c (build_arg_info): Define.
16470         (get_parm_info): Call it.  Delete initialization code.
16471         * c-parser.c (c_parser_parms_declarator): Likewise.
16472         (c_parser_parms_list_declaractor): Likewise.
16474 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
16476         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
16477         (struct c_arg_info): Change type of tags field.
16478         * c-decl.c (grokdeclarator): Update for changed type of tags field.
16479         (get_parm_info): Likewise.
16480         (store_parm_decls_newstyle): Likewise.
16482 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
16484         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
16485         (branch_island_list): Delete.
16486         (branch_islands): Declare.
16487         (add_compiler_branch_island): Adjust for branch_islands instead of
16488         branch_island_list.
16489         (macho_branch_islands): Likewise.
16490         (no_previous_def): Likewise.
16491         (get_prev_label): Likewise.
16493 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16495         PR boehm-gc/34544
16496         * gthr-posix.h (__gthread_start): Delete.
16497         (__gthread_active_init): Use pthread_default_stacksize_np instead of
16498         pthread_create to determine if hpux pthreads are active.
16499         * gthr-posix95.h (__gthread_start): Delete.
16500         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
16502 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
16504         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
16505         _WIN64 not expanded.
16507 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
16508             H.J. Lu  <hongjiu.lu@intel.com>
16510         PR target/45213
16511         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
16512         to output 32bit SFmode immediate as 8 byte sign extended value.
16514 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16516         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
16517         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
16518         (SUBWORD_BOOL_CAS): Likewise.
16519         (SUBWORD_SYNC_OP): Likewise.
16520         (SUBWORD_TEST_AND_SET): Likewise.
16521         (FETCH_AND_OP_WORD): Parenthesise INF_OP
16522         (SUBWORD_SYNC_OP): Likewise.
16523         (OP_AND_FETCH_WORD): Likewise.
16525 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16527         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
16528         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
16529         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
16530         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
16531         generic part.
16532         (cortex_a9_sched_adjust_cost): New function.
16533         (xscale_sched_adjust_cost): New function.
16534         * config/arm/arm-protos.h (struct tune_params): New field
16535         sched_adjust_cost.
16536         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
16538 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
16540         PR target/44942
16541         * config/sparc/sparc.c (function_arg_advance): Always take into account
16542         the padding, if any.
16544 2010-08-06  Richard Guenther  <rguenther@suse.de>
16546         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
16547         (dump_lattice_value): Dump it.
16548         (get_default_value): Adjust.
16549         (get_constant_value): Likewise.
16550         (set_value_varying): Likewise.
16551         (set_lattice_value): Make sure to not go up the lattice
16552         with bitwise constant values.
16553         (get_value_for_expr): Handle ADDR_EXPRs.
16554         (value_to_double_int): New function.
16555         (get_value_from_alignment): Likewise.
16556         (do_dbg_cnt): Adjust.
16557         (ccp_lattice_meet): Handle partially constant values.
16558         (bit_value_unop_1): New function.
16559         (bit_value_binop_1): Likewise.
16560         (bit_value_unop): Likewise.
16561         (bit_value_binop): Likewise.
16562         (evaluate_stmt): Track partially constant values if
16563         flag_tree_bit_ccp is set.
16564         (ccp_fold_stmt): Dump if we folded a predicate.
16565         (ccp_visit_stmt): Adjust.
16566         * common.opt (ftree-bit-ccp): New flag.
16567         * doc/invoke.texi (ftree-bit-ccp): Document.
16568         * opts.c (decode_options): Enable bit-CCP at -O1.
16570 2010-08-06  Alan Modra  <amodra@gmail.com>
16572         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
16573         and -mrelocatable-lib description.
16575 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
16577         From Martin Thuresson  <martint@google.com>
16578         * postreload.c (reload_cse_simplify_operands): Use
16579         SET_REGNO_RAW instead of SET_REGNO.
16580         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
16581         SET_REGNO.
16582         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
16583         instead of SET_REGNO.
16584         * rtl.h (SET_REGNO_RAW): New macro.
16586 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
16588         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
16589         computations.  Fix formatting issues.
16590         (num_sign_bit_copies1): Likewise.
16591         (canonicalize_condition): Likewise.
16593 2010-08-05  Richard Henderson  <rth@redhat.com>
16595         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
16596         (floor_log2): Use clz_hwi.
16597         (exact_log2): Use ctz_hwi.
16598         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
16599         * builtins.c (fold_builtin_bitop): Use them.
16600         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
16601         * combine.c (get_pos_from_mask): Use ctz_hwi.
16602         * double-int.c (double_int_ctz): Likewise.
16603         * explow.c (force_reg): Likewise.
16604         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
16606 2010-08-05  Richard Henderson  <rth@redhat.com>
16608         PR target/45189
16609         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
16610         the alignment constant is properly sign-extended.
16612 2010-08-05  Richard Guenther  <rguenther@suse.de>
16614         * expr.c (store_expr): Use emit_block_move only if both
16615         source and target are MEMs.  Use store_bit_field if only
16616         the target is a MEM.
16618 2010-08-05  Richard Henderson  <rth@redhat.com>
16620         PR debug/45188
16621         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
16622         (INCOMING_RETURN_ADDR_RTX): Likewise.
16623         (dwarf2out_do_frame): Remove conditional compilation.
16624         (dwarf2out_frame_init): Likewise.
16626 2010-08-05  Nicolas Setton  <setton@adacore.com>
16628         * gcov.c (flag_display_progress): New static variable.
16629         (main): Display progress info on standard output if requested.
16630         (options): Add -d/--display-progress.
16631         (print_usage): Print them.
16632         (process_args): Handle them.
16633         * doc/gcov.texi: Document them.
16635 2010-08-05  Martin Jambor  <mjambor@suse.cz>
16637         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
16638         (ipcp_insert_stage): Redirect only edges not flagged with
16639         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
16640         discovered constants.
16642 2010-08-05  Martin Jambor  <mjambor@suse.cz>
16644         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
16645         (struct ipa_param_descriptor): New fields types and
16646         cannot_devirtualize.
16647         (ipa_param_cannot_devirtualize_p): New function.
16648         (ipa_param_types_vec_empty): Likewise.
16649         (ipa_make_edge_direct_to_target): Declare.
16650         * ipa-cp.c: Fixed first stage driver name in initial comment,
16651         described devirtualization there too.
16652         (ipcp_analyze_node): Call ipa_analyze_params_uses.
16653         (ipcp_print_all_lattices): Print devirtualization info.
16654         (ipa_set_param_cannot_devirtualize): New function.
16655         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
16656         lattice to BOTTOM.
16657         (ipcp_init_stage): Merged into...
16658         (ipcp_generate_summary): ...its caller.
16659         (ipcp_change_tops_to_bottom): Also process type lists.
16660         (ipcp_add_param_type): New function.
16661         (ipcp_copy_types): Likewise.
16662         (ipcp_propagate_types): Likewise.
16663         (ipcp_propagate_stage): Also propagate types.
16664         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
16665         Also return true if propagated types require it.
16666         (ipcp_update_callgraph): Dump redirection info.
16667         (ipcp_process_devirtualization_opportunities): New function.
16668         (ipcp_const_param_count): Include known type information.
16669         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
16670         on new node.  Fixed formatting.
16671         * ipa-prop.c (make_edge_direct_to_target): Renamed to
16672         ipa_make_edge_direct_to_target and changed all callers.  Made
16673         externally visible.
16674         (ipa_node_duplication_hook): Duplicate types vector.
16675         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
16676         redirect outgoing calls for which we can't get a decl from the
16677         statement.  Check that we can get a decl from the call statement.
16678         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
16679         ipa_analyze_params_uses only when ipa-cp is disabled.
16680         * tree-inline.c (get_indirect_callee_fndecl): Removed.
16681         (expand_call_inline): Do not call get_indirect_callee_fndecl.
16682         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
16683         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
16685 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
16687         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
16688         temporary. Emit move from temporary to accum, so REG_EQUAL note will
16689         be attached to this insn in correct mode.
16691 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
16693         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
16694         using REGNO of base_reg directly.
16696 2010-08-05  Jie Zhang  <jie@codesourcery.com>
16698         PR tree-optimization/45144
16699         * tree-sra.c (type_consists_of_records_p): Return false
16700         if the record contains bit-field.
16702 2010-08-04  Richard Henderson  <rth@redhat.com>
16704         * config/i386/i386.c (struct ix86_frame): Remove padding and
16705         to_allocate members.
16706         (ix86_compute_frame_layout): Don't store them.
16707         (ix86_can_use_return_insn_p): Use a more direct and more obviously
16708         correct condition for the position of the stack pointer.
16709         (ix86_expand_prologue): Compute remaining stack allocation based
16710         on the ultimate stack pointer offset.
16711         (ix86_expand_epilogue): Use more obvious expressions testing for
16712         the stack pointer already pointing to the saved registers.
16714         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
16715         duplication deconstructing the frame pointer.  Simplify
16716         deallocation of the local stack frame.
16718         * reg-notes.def (CFA_EXPRESSION): New.
16719         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
16720         (dwarf2out_frame_debug_cfa_expression): New.
16721         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
16723         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
16724         * config/i386/i386.c (ix86_expand_prologue): Set it.
16725         (ix86_expand_epilogue): Clear it.
16726         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
16727         context, add REG_CFA_EXPRESSION notes.
16729         * config/i386/i386.h (struct machine_frame_state): Rename from
16730         machine_cfa_state.  Add members tracking SP and FP regardless
16731         of the current CFA register.
16732         (ix86_cfa_state): Remove.
16733         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
16734         and sse_reg_save_offset members.
16735         (ix86_compute_frame_layout): Set them.
16736         (gen_push): Increment sp_offset too.
16737         (choose_baseaddr_len, choose_baseaddr): New.
16738         (ix86_emit_save_reg_using_mov): New.
16739         (ix86_emit_save_regs_using_mov): Use it.
16740         (ix86_emit_save_sse_regs_using_mov): Likewise.
16741         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
16742         compare vs the saved red_zone_offset.
16743         (pro_epilogue_adjust_stack): Adjust sp_offset.
16744         (ix86_adjust_stack_and_probe): Likewise.
16745         (ix86_expand_prologue): Set up, use, and validate the new
16746         frame_state_info members.  Use gen_frame_mem.
16747         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
16748         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
16749         new frame_state_info members.
16750         (ix86_emit_leave): Likewise.
16751         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
16752         out-of-range stack pointer offsets here.
16753         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16754         (ix86_expand_epilogue): Use and validate the new frame_state_info
16755         members.  Break up and simplify the logic selecting the
16756         restore_regs_via_mov code path.  Ensure that there will be no
16757         out-of-range stack pointer offsets.
16759         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
16761         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
16762         argument name to reflect the expected tree; fix indentation.
16763         (ix86_asm_output_function_label): Output the entire 32-bit
16764         ms_hook here as bytes ...
16765         (ix86_expand_prologue): ... not here as insns.  Attach the
16766         unwind info for the ms_hook to a blockage insn.
16767         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
16768         (ix86_ms_bitfield_layout_p): Fix indentation.
16769         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
16771         * config/i386/i386.c (ix86_using_red_zone): New.
16772         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
16773         ix86_expand_prologue, ix86_force_to_memory): Use it.
16775         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
16776         saving the int registers.
16778         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
16779         and DWARF2_UNWIND_INFO conditional compilation.
16781 2010-08-04  Richard Henderson  <rth@redhat.com>
16783         PR debug/45171
16784         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
16785         an is_naming_typedef_decl.
16787 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
16789         PR rtl-optimization/45162
16790         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
16791         * dce.c (word_dce_process_block): Likewise.
16793 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
16795         PR target/44583
16796         * config/ia64/constraints.md (Z): New.
16797         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
16798         (xfreg_or_signed_fp01_operand): New.
16799         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
16800         with fr_reg_or_signed_fp01_operand and constraint G with Z.
16801         (subsf3): Ditto.
16802         (*maddsf4): Ditto.
16803         (*msubsf4): Ditto.
16804         (adddf3): Ditto.
16805         (adddf3_trunc): Ditto.
16806         (subdf3): Ditto.
16807         (*subdf3_trunc): Ditto.
16808         (*madddf4): Ditto.
16809         (*madddf4_trunc): Ditto.
16810         (*msubdf4): Ditto.
16811         (*msubdf4_trunc): Ditto.
16812         (addxf3): Replace xfreg_or_fp01_operand with
16813         xfreg_or_signed_fp01_operand and constraint G with Z.
16814         (*addxf3_truncsf): Ditto.
16815         (*addxf3_truncdf): Ditto.
16816         (subxf3): Ditto.
16817         (*subxf3_truncsf): Ditto.
16818         (*subxf3_truncdf): Ditto.
16819         (*maddxf4): Ditto.
16820         (*maddxf4_truncsf): Ditto.
16821         (*maddxf4_truncdf): Ditto.
16822         (*msubxf4): Ditto.
16823         (*msubxf4_truncsf): Ditto.
16824         (*msubxf4_truncdf): Ditto.
16826 2010-08-04  Richard Guenther  <rguenther@suse.de>
16828         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
16829         if either alias-set is zero.
16831 2010-08-04  Richard Guenther  <rguenther@suse.de>
16833         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
16834         * tree-ssa-ccp.c: ... here.
16835         * tree-ssa-copy.c: ... and here.
16836         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
16837         value_range_t): Move ...
16838         * tree-vrp.c: ... here.
16839         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
16840         (substitute_and_fold): Adjust prototype.
16841         * tree-ssa-propagate.c (replace_uses_in): Adjust.
16842         (replace_phi_args_in): Likewise.
16843         (substitute_and_fold): Take callback to query lattice instead
16844         of pointer to lattice.  Replace SSA name defs with lattice
16845         values first.
16846         * tree-ssa-ccp.c (ccp_finalize): Adjust.
16847         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
16848         (get_value): New function.
16849         (fini_copy_prop): Adjust.
16850         * tree-vrp.c (vrp_finalize): Adjust.
16852 2010-08-04  Richard Guenther  <rguenther@suse.de>
16854         PR middle-end/45176
16855         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
16856         points-to set for original MEM_REF.
16858 2010-08-04  Richard Guenther  <rguenther@suse.de>
16860         * tree-ssa-ccp.c (get_constant_value): New function.
16861         (get_rhs_assign_op_for_ccp): Remove.
16862         (valueize_op): New function.
16863         (ccp_fold): Use get_constant_value and valueize_op.
16864         (fold_const_aggregate_ref): Likewise.
16865         (ccp_fold_stmt): Likewise.
16866         (visit_assignment): Simplify.
16868 2010-08-04  Richard Guenther  <rguenther@suse.de>
16870         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
16871         * double-int.h (double_int_ctz): Declare.
16872         * double-int.c (double_int_ctz): New function.
16874 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
16876         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
16877         Define.
16878         picochip_expand_movmemhi : Expand movmem pattern.
16879         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
16880         Declare.
16881         * config/picochip/picochip.md (movmemhi) : New pattern.
16883 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
16885         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
16887 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
16889         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
16890         NEG as operand of a MULT by merging it with the other operand.
16891         * combine.c (make_compound_operation): Use trunc_int_for_mode when
16892         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
16893         MULT.
16894         * config/arm/constraints.md (M): Examine only 32 bits of a
16895         HOST_WIDE_INT.
16896         * config/arm/predicates.md (power_of_two_operand): Likewise.
16898 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16900         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
16901         non-NOTE insns.
16903 2010-08-03  Jan Hubicka  <jh@suse.cz>
16905         * ipa-split.c (struct split_point): Add split_part_set_retval.
16906         (find_retval): Forward declare.
16907         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
16908         (consider_split): Compute current->split_part_set_retval.
16909         (visit_bb): Do not look into return value.
16910         (split_function): Handle !split_part_set_retval
16912 2010-08-03  Martin Jambor  <mjambor@suse.cz>
16914         * tree-sra.c (completely_scalarize_record): New parameter REF, create
16915         its own access->expr intead of using build_ref_for_offset.
16917 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
16919         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
16920         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
16921         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
16922         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
16923         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
16924         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
16925         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
16926         DEFAULT_SWITCH_TAKES_ARG.
16927         * config/rx/rx.opt (-patch=): Remove option.
16928         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
16929         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
16930         * doc/invoke.texi (RX Options): Remove -patch=.
16931         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
16932         (option_map): Remove --profile-blocks, --quiet and --silent.
16934 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
16936         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
16937         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
16938         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
16939         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
16940         Update calls to ix86_expand_compare and ix86_expand_branch.
16941         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
16942         ix86_expand_compare.
16943         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
16944         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
16945         Make static.
16946         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
16947         and ix86_compare_op1.  Update calls to ix86_expand_compare.
16948         (ix86_expand_int_movcc): Ditto.
16949         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
16950         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
16951         (ix86_expand_setcc): Ditto.
16952         (ix86_expand_compare): Remove prototype.
16953         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
16954         ix86_compare_op0 and ix86_compare_op1.  Update calls
16955         to ix86_expand_branch to directly pass operands[1] and operands[2].
16956         (cbranchxf4): Ditto.
16957         (cbranch<MODEF:mode>4): Ditto.
16958         (cbranchcc4): Ditto.
16959         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
16960         Update calls to ix86_expand_setcc to directly pass operands[2] and
16961         operands[3].
16962         (cstorexf4): Ditto.
16963         (cstore<MODEF:mode>4): Ditto.
16964         (cstorecc4): Ditto.
16966 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
16968         PR target/45063
16969         * caller-save.c (save_call_clobbered_regs): Remove regs from
16970         hard_regs_saved when they are set.
16972 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
16974         PR target/41089
16975         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16976         as volatile.
16978 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
16980         * common.opt (ftree-loop-distribute-patterns): New.
16981         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
16982         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
16983         at -O3.
16984         * tree-data-ref.c (stores_zero_from_loop): New.
16985         * tree-data-ref.h (stores_zero_from_loop): Declared.
16986         * tree-loop-distribution.c (tree_loop_distribution): Call
16987         stores_zero_from_loop.
16988         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
16990 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
16992         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
16993         into account.
16995         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
16996         * config/arm/arm.c (thumb1_code): New variable.
16997         (arm_override_options): Set it.
16998         (thumb1_final_prescan_insn): Keep track of condition code status.
16999         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
17000         jumps that depend on them.
17001         * config/arm/arm.h (thumb1_code): Declare variable.
17002         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
17003         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
17004         thumb1_cc_mode.
17005         (CC_STATUS_INIT): New macro.
17006         * config/arm/constraints.md (Pd): New constraint.
17007         * config/arm/predicates.md (noov_comparison_operator): New predicate.
17008         * config/arm/arm.md (is_thumb1): New define_attr.
17009         (conds): Set default to "clob" when generating Thumb1 code.
17010         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
17011         code are set.  Use two-operand assembly syntax.
17012         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
17013         pattern.
17014         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
17015         codes are set.  Use two-operand assembly syntax.
17016         (zero_extendhisi splitter): Remove constraints.
17017         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
17018         thumb1_movsf_insn): Set conds attribute as appropriate.
17019         (cbranchsi4_insn): Use condition code status from struct
17020         machine_function to determine whether the comparison can be eliminated.
17021         Discourage the alternative using high registers.
17022         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
17023         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
17024         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
17025         subsi3_cbranch): Delete.
17026         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
17027         one subtract and one cbranch insn.
17029         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
17030         thumb2_movdf_soft_insn): Delete patterns.
17031         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
17032         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
17033         (pool_range, neg_pool_range): Use them to define defaults.
17034         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
17035         and allow for TARGET_32BIT.
17037         PR target/40457
17038         * config/arm/arm.h (arm_regs_in_sequence): Declare.
17039         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
17040         load_multiple_sequence, store_multiple_sequence): Delete
17041         declarations.
17042         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
17043         declarations.
17044         * config/arm/ldmstm.md: New file.
17045         * config/arm/arm.c (arm_regs_in_sequence): New array.
17046         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
17047         CHECK_REGS.  All callers changed.
17048         If SAVED_ORDER is nonnull, copy the computed order into it.
17049         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
17050         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
17051         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
17052         If SAVED_ORDER is nonnull, copy the computed order into it.
17053         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
17054         like REGS.  Handle Thumb mode.
17055         (arm_gen_load_multiple_1): New function, broken out of
17056         arm_gen_load_multiple.
17057         (arm_gen_store_multiple_1): New function, broken out of
17058         arm_gen_store_multiple.
17059         (arm_gen_multiple_op): New function, with code from
17060         arm_gen_load_multiple and arm_gen_store_multiple moved here.
17061         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
17062         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
17063         changed.
17064         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
17065         * config/arm/predicates.md (commutative_binary_operator): New.
17066         (load_multiple_operation, store_multiple_operation): Handle more
17067         variants of these patterns with different starting offsets.  Handle
17068         Thumb-1.
17069         * config/arm/arm.md: Include "ldmstm.md".
17070         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
17071         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
17072         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
17073         peepholes): Delete.
17074         * config/arm/ldmstm.md: New file.
17075         * config/arm/arm-ldmstm.ml: New file.
17077         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
17078         if statement which adds extra costs to frame-related expressions.
17080 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17082         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
17084 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
17086         PR target/45142
17087         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
17088         alternative 2.
17089         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
17090         split V4SI operands.
17092 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
17094         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17095         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
17096         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
17097         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
17099 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
17101         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
17102         LOCAL_INCLUDE_DIR.
17104 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
17106         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
17107         used in the call to optab_for_tree_code.  Fix the second
17108         is_widening_mult_p call.  Check that both unwidened operands
17109         have the same sign.
17111 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
17113         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
17115 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
17117         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17119 2010-07-30  DJ Delorie  <dj@redhat.com>
17121         * config/rx/predicates.md (rx_constshift_operand): New.
17122         * config/rx/rx.md (zs_cond): New.
17123         (cbranchsi4): Remove mode.
17124         (*cbranchsi4_<code>): Likewise.
17125         (*tstbranchsi4_<code>): New.
17126         (*tstbranchsi4r_<code>): New.
17127         (*tstbranchsi4m_eq): New.
17128         (*tstbranchsi4m_ne): New.
17129         (cbranchsf4): Remove mode.
17130         (*cbranchsf4_<code>): Likewise.
17132 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
17134         * rtlanal.c (simplify_subreg_regno): Don't treat
17135         HARD_FRAME_POINTER_REGNUM specially.
17137 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
17139         * common.opt (-G): Don't define option here.
17140         * config/g.opt: New.
17141         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
17142         rs6000/powerpc and score targets.
17143         * opts.c (common_handle_option): Don't handle -G here.
17144         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
17145         * config/frv/frv.c (frv_handle_option): Handle -G.
17146         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
17147         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
17148         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
17149         * config/mips/mips.c (mips_handle_option): Handle -G.
17150         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
17151         * config/score/score.c (score_handle_option): Handle -G.
17153 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
17155         * config/mmix/mmix.c: Include basic-block.h.
17157 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
17159         PR debug/45055
17160         PR rtl-optimization/45137
17161         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
17162         prototypes.
17163         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
17164         New functions.
17165         * combine.c (next_nonnote_nondebug_insn): Removed.
17166         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
17167         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
17168         * sched-deps.c (sched_analyze_insn): Likewise.
17169         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
17170         * rtlanal.c (canonicalize_condition): Likewise.
17171         * postreload.c (reload_combine_recognize_pattern): Likewise.
17172         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
17174 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
17176         * config/i386/i386.md (int_cond): Remove code iterator.
17177         (fp_cond): Ditto.
17178         (cbranch<mode>4): Use ordered_comparison_operator predicate
17179         for operator0.
17180         (cstore<mode>4): Ditto for operator1.
17181         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
17182         (add<mode>cc): ditto.
17184 2010-07-30  Richard Guenther  <rguenther@suse.de>
17186         PR middle-end/45141
17187         * expr.c (expand_expr_real_1): Check for not handled base address.
17189 2010-07-30  Richard Guenther  <rguenther@suse.de>
17191         * ipa-prop.c (ipa_modify_formal_parameters): Use
17192         build_distinct_type_copy.
17194 2010-07-30  Anthony Green  <green@moxielogic.com>
17196         * config/moxie/rtems.h: New file.
17197         * config.gcc: Add moxie-rtems support.
17199 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
17201         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
17202         df flags as in run_fast_df_dce.
17204 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
17206         Revert:
17207         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17209         * rtl.def (NOTE): Swap operands 4 and 5.
17210         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
17211         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
17212         Adjust accordingly.
17213         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
17215 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
17217         PR debug/45110
17218         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
17219         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
17220         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
17221         formal parameters.
17222         (gen_decl_die): Change return type to dw_die_ref, return what
17223         gen_formal_parameter_die returned.
17225 2010-07-29  Martin Jambor  <mjambor@suse.cz>
17227         * dbgcnt.def (eipa_sra): New counter.
17228         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
17230 2010-07-29  Xinliang David Li  <davidxl@google.com>
17232         PR bootstrap/45119
17233         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
17234         in revision 162652.
17236 2010-07-29  Richard Guenther  <rguenther@suse.de>
17238         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
17239         (TV_TREE_STORE_CCP): Likewise.
17240         (TV_TREE_REDPHI): Likewise.
17242 2010-07-29  Richard Guenther  <rguenther@suse.de>
17244         * double-int.h (double_int_and_not): New function.
17245         * combine.c (try_combine): Use it.
17246         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
17248 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
17250         PR rtl-optimization/42575
17251         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
17252         Argument AU removed.  All callers changed.  Ignore artificial refs.
17253         Use return value of df_word_lr_simulate_defs to decide whether an insn
17254         is necessary.
17255         (fast_dce): Rename arg to WORD_LEVEL.
17256         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
17257         static.
17258         (pass_fast_rtl_byte_dce): Delete.
17259         * dce.h (run_word_dce): Declare.
17260         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
17261         All callers changed.  Simplify code to only deal with two-word regs.
17262         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
17263         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
17264         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
17265         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
17266         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
17267         (df_word_lr_mark_ref): Declare.
17268         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
17269         df_word_lr_simulate_uses): Declare or rename from byte variants.
17270         (df_byte_lr_simulate_artificial_refs_at_top,
17271         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17272         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
17273         declarations.
17274         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
17275         (enum df_mm): Delete.
17276         * df-byte-scan.c: Delete file.
17277         * df-problems.c (df_word_lr_problem_data): Renamed from
17278         df_byte_lr_problem_data, all members deleted except for
17279         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
17280         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
17281         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
17282         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
17283         df_byte_lr_confluence_0): Delete functions.
17284         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
17285         callers changed.
17286         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
17287         Don't initialize members that were deleted, don't try to discover data
17288         about registers.  Ignore hard regs.
17289         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
17290         (df_word_lr_mark_ref): New function.
17291         (df_word_lr_bb_local_compute): Renamed from
17292         df_byte_bb_lr_local_compute; all callers changed.  Use
17293         df_word_lr_mark_ref.  Assert that artificial refs don't include
17294         pseudos.  Ignore hard registers.
17295         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
17296         Assert that exit block uses don't contain pseudos.
17297         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
17298         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
17299         callers changed.  Ignore hard regs.
17300         (df_word_lr_transfer_function): Renamed from
17301         df_byte_lr_transfer_function; all callers changed.
17302         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
17303         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
17304         changed.
17305         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
17306         callers changed.
17307         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
17308         confluence operator 0 set to NULL.
17309         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
17310         callers changed.
17311         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
17312         Return bool, true if bitmap changed or insn otherwise necessary.
17313         All callers changed.  Simplify using df_word_lr_mark_ref.
17314         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
17315         all callers changed.  Simplify using df_word_lr_mark_ref.
17316         * lower-subreg.c: Include "dce.h"
17317         (decompose_multiword_subregs): Call run_word_dce if df available.
17318         * Makefile.in (lower-subreg.o): Adjust dependencies.
17319         (df-byte-scan.o): Delete.
17320         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
17322 2010-07-29  Richard Guenther  <rguenther@suse.de>
17324         * tree.c (build_vector): Assert that the vector constant
17325         has enough elements.
17326         (build_vector_from_ctor): Pad with trailing zeros.
17328 2010-07-29  Richard Guenther  <rguenther@suse.de>
17330         PR tree-optimization/45120
17331         * tree-ssa-structalias.c (get_constraint_for_component_ref):
17332         Handle offset in DEREFs properly.
17333         (get_constraint_for_1): Handle MEM_REF offset properly.
17335 2010-07-29  Richard Guenther  <rguenther@suse.de>
17337         PR middle-end/45034
17338         * convert.c (convert_to_integer): Always use an unsigned
17339         type for narrowed negate and bitwise not.
17341 2010-07-29  Ira Rosen  <irar@il.ibm.com>
17343         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
17344         to outer loop when creating reduction epilogue for double reduction,
17345         and switch back to the inner loop when updating the phi nodes.
17346         Update uses of outer loop exit phi nodes in double reduction (instead
17347         of uses of reduction).
17349 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
17351         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
17352         popcount on power7 and parity on power6 systems.
17353         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
17354         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
17355         instructions.
17357         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
17358         (UNSPEC_PARITY): Ditto.
17359         (SFDF): New iterator for SF/DF.
17360         (rreg2): New mode attribute for floating register constraint.
17361         (TARGET_FLOAT): New mode attribute for whether single/double float
17362         is supported.
17363         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
17364         pattern.
17365         (parity<mode>2_cmpb): New insn for parity on power6 and newer
17366         machines.
17367         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
17368         pattern.  Add support for fcpsgn instruction added in power6.
17369         (copysignsf3): Delete.
17370         (copysigndf3): Delete.
17371         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
17372         instead of if_then_else in RTL to avoid problems with -0.
17374         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
17375         of if_then_else to mirror scalar code.
17376         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
17377         rs6000.md.
17379         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
17380         instead of if_then_else.
17382 2010-07-28  Xinliang David Li  <davidxl@google.com>
17384         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
17385         (dump_cand): Dump var_before/after.
17386         (htab_inv_expr_eq): New function.
17387         (htab_inv_expr_hash): New function.
17388         (tree_ssa_iv_optimize_init): Support pseudo invariants.
17389         (add_candidate_1): consider base type precision.
17390         (set_use_iv_cost): New parameter.
17391         (adjust_setup_cost): Use profile information.
17392         (get_address_cost): Do not hard code width in computing address
17393         offset limits.
17394         (compare_aff_trees): New function.
17395         (get_loop_invariant_expr_id): New function.
17396         (get_computation_cost_at): New parameter and use profile information.
17397         (get_computation_cost): New parameter.
17398         (determine_use_iv_cost_generic): Pass new parameter.
17399         (determine_use_iv_cost_address): Ditto.
17400         (determine_use_iv_cost_condition): Ditto.
17401         (autoinc_possible_for_pair): Ditto.
17402         (determine_use_iv_costs): More dumps.
17403         (iv_ca_get_num_inv_exprs): New function.
17404         (iv_ca_recount_cost): Consider loop invariants in register pressure
17405         cost.
17406         (iv_ca_add_use): New parameter.
17407         (iv_ca_dump): Better dumping.
17408         (iv_ca_extend): New parameter.
17409         (try_add_cand_for): Attempt to get better partial solution.
17410         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
17411         (create_new-ivs): More dumps.
17412         (rewrite_use_compare): Ditto.
17413         (free_loop_data): More cleanup.
17414         (treee_ssa_iv_optimize_finalize): Ditto.
17416 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
17418         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
17419         * config/i386/i386.c (ix86_profile_before_prologue): New.
17420         (override_options): Add special handling for -mfentry.
17421         (ix86_function_regparm): Likewise.
17422         (ix86_function_sseregparm): Likewise.
17423         (ix86_frame_pointer_required): Likewise.
17424         (ix86_expand_prologue): Check for ms_hook_prologue.
17425         (x86_function_profiler): Adjust mcount output.
17426         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
17427         * config/i386/i386.opt (mfentry): New.
17428         * doc/invoke.texi (mfentry): Add documentation.
17429         * doc/tm.texi: Regenerated..
17430         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
17431         * final.c (final_start_function): Replace macro
17432         PROFILE_BEFORE_PROLOGUE by target hook.
17433         * function.c (thread_prologue_and_epilogue_insns): Likewise.
17434         * target.def (profile_before_prologue): New hook.
17435         * targhooks.c (default_profile_before_prologue): New.
17436         * targhooks.h (default_profile_before_prologue): New.
17438 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
17440         PR debug/45105
17441         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
17443         PR debug/45103
17444         * dwarf2out.c (dwarf2out_var_location): Always consider
17445         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
17447 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17449         PR rtl-optimization/45107
17450         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
17452 2010-07-28  Richard Guenther  <rguenther@suse.de>
17454         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
17455         (set_lattice_value): Do not query an old default value.
17456         (get_value_for_expr): New function.  Properly canonicalize
17457         float values.
17458         (ccp_visit_phi_node): Use it.
17460 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
17462         * config/arm/arm.c (arm_pcs_default): Remove static.
17463         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
17464         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
17465         (arm_pcs_default): Declare.
17467 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
17469         * config/rs6000/rs6000.c (rs6000_override_options):
17470         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
17471         ... to darwin_rs6000_override_options.
17472         (rs6000_return_in_memory): Update preceding comment for darwin
17473         64 bit ABI.  Use TARGET_MACHO inline.
17474         (rs6000_darwin64_struct_check_p): New.
17475         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
17476         (function_arg): Likewise.
17477         (rs6000_arg_partial_bytes): Likewise.
17478         (rs6000_function_value): Likewise.
17480 2010-07-28  Andi Kleen  <ak@linux.intel.com>
17482         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
17484 2010-07-28  Richard Guenther  <rguenther@suse.de>
17486         PR middle-end/44903
17487         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
17488         targets try harder to not generate unaligned accesses.
17490 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17492         PR rtl-optimization/45101
17493         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
17494         for gcse-las.
17496 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17498         PR tree-optimization/44885
17499         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
17500         with non-aliased component.
17502 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
17504         * config/darwin-driver.c (SWITCH_TAKES_ARG,
17505         WORD_SWITCH_TAKES_ARG): Remove.
17506         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
17507         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
17508         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
17509         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
17510         definitions from gcc.c.
17511         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
17512         defaults.h.
17513         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
17514         Move to defaults.h.
17515         * opts-common.c: Include tm.h.
17516         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
17517         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
17518         Handle more than one argument.  Set canonical_option_num_elements.
17519         (decode_cmdline_options_to_array): Set
17520         canonical_option_num_elements and trailing elements of
17521         canonical_option.
17522         * opts.h (struct cl_decoded_option): Allow four elements in
17523         canonical_option.  Add field canonical_option_num_elements.
17524         * Makefile.in (opts-common.o): Update dependencies.
17526 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17528         PR middle-end/44790
17529         PR middle-end/44993
17530         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
17531         sure the base has address_mode before adding the offset.
17533 2010-07-27  Xinliang David Li  <davidxl@google.com>
17535         * tree-flow.h (create_mem_ref): Add one new parameter.
17536         * tree-ssa-address.c (create_mem_ref): New parameter.
17537         (addr_to_parts): Ditto.
17538         (move_variant_to_index): New function.
17539         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
17541 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17543         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
17544         4 and 5.
17545         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
17546         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
17547         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
17548         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
17549         CODE_LABELs and NOTEs.
17550         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
17551         * combine.c (try_combine): Likewise.
17552         * ira.c (setup_prohibited_mode_move_regs): Likewise.
17553         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
17555 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17557         * coretypes.h (struct cl_option_handlers): Declare.
17558         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
17559         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
17560         * langhooks-def.h (lhd_handle_option): Declare.
17561         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
17562         * langhooks.c (lhd_handle_option): New.
17563         * langhooks.h (struct lang_hooks): Update prototype and return
17564         value type of handle_option hook.
17565         * optc-gen.awk: Generate target_flags_explicit definition for the
17566         driver.
17567         * opts-common.c: Include diagnostic.h.
17568         (handle_option): Move from opts.c.  Update prototype and return
17569         value type.  Use handlers structure.
17570         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
17571         handlers structure.
17572         (set_option): Move from opts.c.
17573         * opts.c (common_handle_option): Update prototype and return value
17574         type.  Update calls to handle_option and enable_warning_as_error.
17575         (unknown_option_callback, post_handling_callback,
17576         lang_handle_option, target_handle_option): New.
17577         (handle_option, read_cmdline_option): Move to opts-common.c.
17578         (read_cmdline_options): Update prototype.  Update call to
17579         read_cmdline_option.
17580         (decode_options): Initialize and use handlers structure.
17581         (set_option): Move to opts-common.c.
17582         (enable_warning_as_error): Update prototype.  Update call to
17583         handle_option.
17584         * opts.h (struct cl_option_handler_func, struct
17585         cl_option_handlers): New.
17586         (handle_option, enable_warning_as_error): Update prototypes.
17587         (read_cmdline_option): Declare.
17588         * Makefile.in (opts-common.o): Update dependencies.
17590 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17592         * config/arm/arm.c (params.h): Include.
17593         (arm_override_options): Tune gcse-unrestricted-cost.
17594         * config/arm/t-arm (arm.o): Define dependencies.
17596 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17598         PR target/42495
17599         PR middle-end/42574
17600         * basic-block.h (get_dominated_to_depth): Declare.
17601         * dominance.c (get_dominated_to_depth): New function, use
17602         get_all_dominated_blocks as a base.
17603         (get_all_dominated_blocks): Use get_dominated_to_depth.
17605         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
17606         (hoist_exprs): Remove.
17607         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
17608         (compute_code_hoist_vbeinout): Add debug print outs.
17609         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
17611         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
17612         quadratic behavior.
17613         * params.h (MAX_HOIST_DEPTH): New macro.
17614         * doc/invoke.texi (max-hoist-depth): Document.
17616 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17618         PR rtl-optimization/40956
17619         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
17620         constants.
17622 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17624         PR target/42495
17625         PR middle-end/42574
17626         * config/arm/arm.c (legitimize_pic_address): Use
17627         gen_calculate_pic_address pattern to emit calculation of PIC address.
17628         (will_be_in_index_register): New function.
17629         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
17630         (thumb1_legitimate_address_p): Use it provided !strict_p.
17631         * config/arm/arm.md (calculate_pic_address): New expand and split.
17633 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17635         PR target/42495
17636         PR middle-end/42574
17637         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
17638         * config/arm/arm.md (define_split "J", define_split "K"): Make
17639         IRA/reload friendly.
17641 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17643         * gcse.c (insert_insn_end_basic_block): Update signature, remove
17644         unused checks.
17645         (pre_edge_insert, hoist_code): Update.
17647 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17649         PR target/42495
17650         PR middle-end/42574
17651         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
17653 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17655         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
17657 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17659         PR rtl-optimization/40956
17660         PR target/42495
17661         PR middle-end/42574
17662         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
17663         for hoisting.
17664         (hoist_code): Count occurences in current block too.
17666 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17668         * gcse.c (struct expr:max_distance): New field.
17669         (doing_code_hoisting_p): New static variable.
17670         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
17671         simple expressions, don't change behavior for PRE.  Set max_distance.
17672         (insert_expr_in_table): Set new max_distance field.
17673         (hash_scan_set): Update.
17674         (hoist_expr_reaches_here_p): Stop search after max_distance
17675         instructions.
17676         (find_occr_in_bb): New static function.  Use it in ...
17677         (hoist_code): Calculate sizes of basic block before any changes are
17678         done.  Pass max_distance to hoist_expr_reaches_here_p.
17679         (one_code_hoisting_pass): Set doing_code_hoisting_p.
17681         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
17682         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
17683         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
17684         macros.
17685         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
17686         Document.
17688 2010-07-27  Jeff Law  <law@redhat.com>
17689             Maxim Kuvyrkov  <maxim@codesourcery.com>
17691         * gcse.c (compute_transpout, transpout): Remove, move logic
17692         to prune_expressions.
17693         (compute_pre_data): Move pruning of trapping expressions ...
17694         (prune_expressions): ... here.  New static function.
17695         (compute_code_hoist_data): Use it.
17696         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
17698 2010-07-27  Xinliang David Li  <davidxl@google.com>
17700         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
17701         (rewrite_use_address): Adjust iv update position when needed.
17703 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
17705         * dbgcnt.def (hoist_insn): New debug counter.
17706         * gcse.c (hoist_code): Use it.
17708 2010-07-27  Xinliang David Li  <davidxl@google.com>
17710         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
17711         (niter_for_single_dom_exit): Passes additional parameter.
17712         (iv_period): Fix comments.
17713         (may_eliminate_iv): Handles multiple exit loops properly.
17714         (free_tree_niter_desc): New function.
17715         (free_loop_data): Frees up loop iteration descriptors.
17717 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17719         PR target/44542
17720         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
17721         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
17722         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
17723         (expand_one_var): Don't consider DECL_ALIGN for variables for
17724         which expand_one_stack_var_at has been already called.
17726         PR testsuite/44701
17727         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
17728         constraints on IA-64.
17730 2010-07-27  Jie Zhang  <jie@codesourcery.com>
17732         PR target/44290
17733         Revert:
17734         2010-07-23  Jie Zhang  <jie@codesourcery.com>
17736         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
17737         false if ! tree_versionable_function_p.
17739 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17741         * dwarf2out.c (add_data_member_location_attribute): Use
17742         add_AT_unsigned instead of add_AT_int if offset is non-negative.
17744 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17746         * postreload.c (try_replace_in_use): New static function.
17747         (reload_combine_recognize_const_pattern): Use it here.  Allow
17748         substituting into a final add insn, and substituting into a memory
17749         reference in an insn that sets the reg.
17751 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17753         * common.opt (o): Add MissingArgError.
17754         * doc/options.texi (MissingArgError): Document.
17755         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
17756         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
17757         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
17758         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
17759         * langhooks.h (struct lang_hooks): Remove missing_argument.
17760         * optc-gen.awk: Handle MissingArgError and output new structure
17761         field initializers.
17762         * opts.c (read_cmdline_option): Use missing_argument_error field
17763         instead of missing_argument langhook.
17764         * opts.h (struct cl_option): Add missing_argument_error field.
17765         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
17767 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
17769         PR target/29090
17770         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
17771         Darwin64 ABI, for zero-sized objects.
17773 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
17775         PR target/35491
17776         PR target/29090
17778         Merge from Apple local 4.2.1.
17779         2005-05-11  Stan Shebs  <shebs@apple.com>
17780         Fix 64-bit varargs for Darwin (Radar 4028089).
17781         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
17782         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
17783         Add argument, add case for 8-byte register half-filled with a float.
17784         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
17785         single-precision floats specially.
17787 2010-07-27  Ira Rosen  <irar@il.ibm.com>
17789         PR tree-optimization/44152
17790         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
17791         complex numbers for further check.
17792         (vect_supported_load_permutation_p): Check nodes with
17793         complex numbers.
17795 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17797         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
17798         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
17799         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
17800         (LANG_HOOKS_INITIALIZER): Add new hooks.
17801         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
17802         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
17803         and complain_wrong_lang_p.  Update init_options prototype.
17804         * c-objc-common.c (c_initialize_diagnostics): First call
17805         c_common_initialize_diagnostics.
17806         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
17807         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
17808         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
17809         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
17810         (hook_uint_void_0): New.
17811         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
17812         (hook_uint_void_0): New.
17813         * opts-common.c (decode_cmdline_option,
17814         decode_cmdline_options_to_array): Also fill in canonical_option field.
17815         * opts.c (complain_wrong_lang): Use langhook to determine whether
17816         to complain instead of special-casing LTO.
17817         (decode_options): Separate lang_mask determination with
17818         option_lang_mask hook from call of init_options hook.
17819         * opts.h (struct cl_decoded_option): Add canonical_option.
17821 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17823         PR tree-optimization/45083
17824         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
17826 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17828         * postreload.c (reload_combine_recognize_const_pattern): Move test
17829         for limiting the insn movement to the right scope.
17831         PR rtl-optimization/45051
17832         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
17833         than reg_mentioned_p.
17835 2010-07-26  Richard Henderson  <rth@redhat.com>
17837         PR target/44132
17838         * tree-emutls.c: New file.
17839         * Makefile.in (OBJS-common): Add it.
17840         * tree-pass.h (pass_ipa_lower_emutls): Declare.
17841         * passes.c (init_optimization_passes): Add it.
17843         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
17844         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
17845         * expr.c (emutls_var_address): Delete.
17846         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
17847         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
17848         (emutls_finish): Delete.
17849         * toplev.c (compile_file): Don't call it.
17850         * tree.h (emutls_decl): Delete.
17851         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
17852         (emutls_finish, emutls_finalize_control_var): Delete.
17853         (emutls_object_type): Move to tree-emutls.c.
17854         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
17855         default_emutls_var_fields, get_emutls_object_type,
17856         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
17857         default_emutls_var_init): Likewise.
17858         (get_variable_section): Don't special case emutls.
17859         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
17860         default_elf_select_section, default_unique_section,
17861         default_encode_section_info): Likewise.
17862         * varpool.c (decide_is_variable_needed): Likewise.
17863         * gimple-iterator.c (update_call_edge_frequencies): New
17864         (gsi_insert_on_edge_immediate): Use it.
17865         (gsi_insert_seq_on_edge_immediate): Likewise.
17866         (gsi_commit_one_edge_insert): Likewise.
17868         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
17869         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
17870         (x86_64_elf_unique_section): Likewise.
17872 2010-07-26  Jan Hubicka  <jh@suse.cz>
17874         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
17875         GTY((skip)).
17877 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
17879         * target.def (output_source_filename): New hook.
17880         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
17881         * doc/tm.texi: Regenerate.
17882         * toplev.c (output_file_directive) Remove function.
17883         * toplev.h (output_file_directive) Remove.
17884         * output.h (default_asm_output_source_filename,
17885         output_file_directive): Declare.
17886         * varasm.h (default_asm_output_source_filename,
17887         output_file_directive): New functions.
17889         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17890         * config/mips/mips-protos.h (mips_output_filename): Remove.
17891         * config/mips/mips.c (mips_output_filename): Make Static.
17892         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
17894 2010-07-26  Richard Guenther  <rguenther@suse.de>
17896         PR tree-optimization/43784
17897         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
17898         if the destination is used by the call.
17900 2010-07-26  Richard Guenther  <rguenther@suse.de>
17902         PR middle-end/45073
17903         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
17904         SSA updating on being in SSA form.
17906 2010-07-26  Richard Guenther  <rguenther@suse.de>
17908         PR middle-end/45056
17909         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
17911 2010-07-26  Richard Guenther  <rguenther@suse.de>
17913         PR tree-optimization/45071
17914         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
17915         adjust op->opcode.
17917 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
17919         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
17920         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
17921         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
17922         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
17923         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
17924         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
17925         save_r31, return_r31, save_interrupt, return_interrupt,
17926         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
17927         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
17928         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
17929         new ABI requirements.
17930         (save_r6_r9, L_callt_save_r6_r9): Remove.
17931         * config/v850/predicates.md (even_reg_operand, disp23_operand,
17932         const_float_1_operand const_float_0_operand): New Predicates.
17933         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
17934         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
17935         * config/v850/t-v850: Update multilibs for new target variants.
17936         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
17937         * config/v850/t-v850e: Likewise.
17938         * config/v850/v850.c (v850_issue_rate): New.
17939         (v850_strict_argument_naming): New.
17940         (function_arg): Modify to generate a different ABI.
17941         (print_operand): Update case 'z' to support float modes.
17942         (output_move_single): Modify to generate appropriate and better
17943         assembly.
17944         (v850_float_z_comparison_operator, v850_select_cc_mode,
17945         v850_float_nz_comparison_operator,  v850_gen_float_compare,
17946         v850_gen_compare): New functions to support comparison of float values.
17947         (ep_memory_offset): Add support for V850E2 targets.
17948         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
17949         (INTERRUPT_REGPARM_NUM): Remove.
17950         (compute_register_save_size): Add extra case to save/restore long call.
17951         (use_prolog_function): New function to support prologue.
17952         (expand_prologue): Add support for V850E2 targets and modified
17953         as per the current ABI requirements.
17954         (expand_epilogue): Likewise.
17955         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
17956         (construct_save_jarl): Likewise.
17957         (construct_dispose_instruction): Update as per the current ABI
17958         requirements.
17959         (construct_prepare_instruction): Likewise.
17960         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
17961         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
17962         (CPP_SPEC): Updated to support v850e2 targets.
17963         (STRICT_ALIGNMENT): Modified.
17964         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
17965         (FIXED_REGISTERS): Likewise.
17966         (CALL_USED_REGISTERS): Likewise.
17967         (CONDITIONAL_REGISTER_USAGE): Updated.
17968         (HARD_REGNO_MODE_OK): Updated.
17969         (reg_class): Updated to add even registers.
17970         (REG_CLASS_NAMES): Likewise.
17971         (REG_CLASS_CONTENTS): Likewise.
17972         (REGNO_REG_CLASS): Updated for CC registers.
17973         (REG_CLASS_FROM_LETTER): Added support for even registers.
17974         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
17975         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
17976         ARG_POINTER_REGNUM): Updated.
17977         (FUNCTION_ARG_ADVANCE): Define.
17978         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
17979         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
17980         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
17981         (GO_IF_LEGITIMATE_ADDRESS): Updated.
17982         (SELECT_CC_MODE): Define.
17983         (REGISTER_NAMES): Updated to add psw and fcc registers.
17984         (ADDITIONAL_REGISTER_NAMES): Updated.
17985         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
17986         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
17987         * config/v850/v850.md (define_constants): Define new constants.
17988         (type): Update store,bit1,macc,div,fpu and single attributes.
17989         (cpu): New attribute.
17990         (cc): Add set_z attribute.
17991         (unsign23byte_load, sign23byte_load, unsign23hword_load,
17992         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
17993         23word_store): New instructions for 23-bit displacement load and store.
17994         (movqi_internal, movhi_internal): Update the attributes.
17995         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
17996         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
17997         the attributes.
17998         (v850_tst1): Modified using CC_REGNUM.
17999         (tstsi): Remove.
18000         (cmpsi): Modified as define_expand from define_insn.
18001         (cmpsi_insn, cmpsf, cmpdf): New instructions.
18002         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
18003         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
18004         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
18005         one_cmplsi2): Clobber the CC_REGNUM register.
18006         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
18007         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
18008         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
18009         (setf_insn, set_z_insn, set_nz_insn): New instructions for
18010         v850e2v3 target.
18011         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
18012         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
18013         targets.
18014         (sasf_1, sasf_2): Remove.
18015         (sasf): New instruction.
18016         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
18017         targets. CC_REGNUM register is clobbered and attributes are
18018         updated.
18019         (branch_z_normal, branch_z_invert, branch_nz_normal,
18020         branch_nz_invert): New branch related instructions.
18021         (jump): Updated the attributes.
18022         (switch): Update to support new targets. CC_REGNUM register is
18023         clobbered and attributes are updated.
18024         (call_internal_short, call_internal_long, call_value_internal_short,
18025         call_value_internal_long): Updated the attributes.
18026         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
18027         clobbered and attributes are updated.
18028         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
18029         Update to support new targets. CC_REGNUM register is clobbered.
18030         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
18031         instructions.
18032         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
18033         are updated.
18034         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
18035         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
18036         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
18037         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
18038         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
18039         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
18040         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
18041         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
18042         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
18043         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
18044         point instructions defined for V850e2v3 target.
18045         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
18046         Add support for V850E2 targets and CC_REGNUM register is clobbered.
18047         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
18048         support for new targets.
18049         * config/v850/v850-modes.def: New file.
18050         * config/v850/v850.opt(mstrict-align): Remove.
18051         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
18052         mv850e2v3): New command line options for V850.
18053         * config.gcc: Update the newly added files.
18054         * doc/invoke.texi: Update the newly added command line options for
18055         V850 target.
18057 2010-07-26  Richard Guenther  <rguenther@suse.de>
18059         PR tree-optimization/45052
18060         * ipa-pure-const.c (check_stmt): Check volatileness.
18062 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
18064         PR target/44707
18065         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
18066         * config/sparc/sparc.c: Include reload.h.
18067         (legitimize_tls_address): Rename into...
18068         (sparc_legitimize_tls_address): ...this.
18069         (legitimize_pic_address): Rename into...
18070         (sparc_legitimize_pic_address): ...this.
18071         (sparc_expand_move): Adjust to above renaming.
18072         (sparc_tls_referenced_p): Likewise.
18073         (sparc_legitimize_tls_address): Likewise.
18074         (sparc_legitimize_pic_address): Likewise.
18075         (sparc_legitimize_address): Likewise.
18076         (sparc_output_mi_thunk): Likewise.
18077         (sparc_legitimize_reload_address): New global function.  Recognize
18078         (lo_sum (high ...) ...) patterns generated by earlier passes.
18079         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
18081 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
18083         PR target/44484
18084         * config/sparc/predicates.md (memory_reg_operand): Delete.
18085         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
18086         (*sync_compare_and_swap): Encode the address form in the pattern.
18087         (*sync_compare_and_swapdi_v8plus): Likewise.
18089 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
18091         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
18092         Streamline paragraph on compatibility with the system compiler.
18094 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
18096         PR middle-end/45035
18097         * alias.c (true_dependence_1): Fix thinko in merge of old
18098         true_dependence and canon_true_dependence.
18100 2010-07-23  Jan Hubicka  <jh@suse.cz>
18102         * lto-streamer-out.c (write_symbol): Fix visibilities of external
18103         references.
18105 2010-07-23  Le-Chun Wu  <lcwu@google.com>
18107         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
18108         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
18109         and an unnecessary assignment.
18110         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
18111         self-assign warning.
18112         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
18113         unnecessary self-init.
18115 2010-07-23  Richard Guenther  <rguenther@suse.de>
18117         PR lto/43071
18118         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
18119         for -flto and -fwhopr.
18121 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
18123         PR target/41943
18124         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
18125         (stmp-int-hdrs): Prefix/postfix headers by include_next.
18126         * config.gcc (user_headers_inc_next_pre): New.
18127         (user_headers_inc_next_post): Likewise.
18128         (*-w64-mingw*): Use for float.h post-fixing, and for
18129         stddef.h/stdarg.h pre-fixing by include_next.
18130         * configure.ac (user_headers_inc_next_post): New.
18131         (user_headers_inc_next_pre): New.
18132         * configure: Regenerated.
18134 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18136         * configure.ac: Don't disable TLS on Solaris 8/9 by default
18137         Set tga_func for Solaris 2/x86 resp. SPARC.
18138         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
18139         (LIB_THREAD_LDFLAGS_SPEC): Define.
18140         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
18141         * configure: Regenerate.
18142         * config.in: Regenerate.
18143         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
18144         -pthread, -threads, LIB_TLS_SPEC with -pthread.
18145         * doc/install.texi (Specific, *-*-solaris2*): Document use of
18146         alternate thread libraries on Solaris 8.
18147         Document TLS patch requirements.
18148         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
18149         Document tls.
18151         PR target/18788
18152         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
18153         -shared.
18155 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
18157         * tree.h (struct tree_base): Add nameless_flag bitfield.
18158         (TYPE_NAMELESS, DECL_NAMELESS): Define.
18159         * omp-low.c (create_omp_child_function, scan_omp_parallel,
18160         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
18161         DECL_ARTIFICIAL where needed.
18162         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
18163         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
18164         has DECL_NAMELESS set.
18166 2010-07-23  Martin Jambor  <mjambor@suse.cz>
18168         PR tree-optimization/44915
18169         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
18170         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
18171         (analyze_function): Likewise.
18173 2010-07-23  Martin Jambor  <mjambor@suse.cz>
18175         PR tree-optimization/44914
18176         * tree-sra.c (sra_modify_function_body): Return true if CFG was
18177         changed, add purging dead eh edges.
18178         (ipa_sra_modify_function_body): Return true if CFG was changed,
18179         simplify purging dead eh edges.
18180         (modify_function): Return true if CFG was changed.
18181         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
18182         was changed.
18183         (ipa_early_sra): Likewise.
18185 2010-07-23  Jie Zhang  <jie@codesourcery.com>
18187         PR target/44290
18188         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
18189         if "naked".
18190         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
18191         false if ! tree_versionable_function_p.
18193 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
18195         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
18196         * ipa-pure-const.c (special_builtlin_state): Remove
18197         BUILT_IN_ARGS_INFO case.
18198         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
18199         * builtins.c (expand_builtin): Likewise.
18200         (expand_builtin_args_info): Remove.
18201         * doc/tm.texi (__builtin_args_info): Remove.
18202         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
18203         * doc/tm.text.in: Likewise.
18205 2010-07-23  Richard Guenther  <rguenther@suse.de>
18207         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
18208         (lto_symtab_merge_decls_2): Likewise.
18209         * tree-ssa.c (useless_type_conversion_p): Likewise.
18210         * lto-streamer-in.c (input_gimple_stmt): Likewise.
18211         * gimple.c (gtc_visited2, gtc_ob2): Remove.
18212         (struct type_pair_d): Make same_p an array indexed by mode.
18213         Update comment.
18214         (lookup_type_pair): Update initialization.
18215         (struct sccs): Adjust same_p type.
18216         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
18217         Adjust.
18218         (print_gimple_types_stats): Likewise.
18219         * gimple.h (enum gtc_mode): New.
18220         (gimple_types_compatible_p): Adjust prototype.
18222 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
18224         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
18225         again after processing insn.
18227 2010-07-23  Jie Zhang  <jie@codesourcery.com>
18229         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
18230         proper words when !tree_versionable_function_p.
18232 2010-07-23  Richard Guenther  <rguenther@suse.de>
18234         PR tree-optimization/45037
18235         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
18237 2010-07-23  Jie Zhang  <jie@codesourcery.com>
18239         * doc/extend.texi: Remove IP2K from the description of naked attribute.
18240         Add MCORE instead.
18242 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18244         PR lto/44992
18245         * lto-opts.c (lto_write_options): Add NULL file_data argument to
18246         lto_get_section_name.
18247         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
18248         * lto-streamer-out.c (produce_asm): Likewise.
18249         (copy_function): Likewise.
18250         (produce_symtab): Likewise.
18251         (produce_asm_for_decls): Likewise.
18252         * lto-streamer.c (lto_get_section_name): Add file_data argument.
18253         Rewrite to add random postfix to LTO sections.
18254         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
18255         (lto_get_section_name): Add file_data argument to prototype.
18257 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18259         * lto-section-in.c (lto_section_name): Synchronize names
18260         with lto_get_section_name.
18262 2010-07-10  Andi Kleen  <ak@linux.intel.com>
18264         * lto-opts.c (lto_read_file_options): Check for missing section.
18266 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18268         * ira.c (check_allocation): Correctly handle the case where an allocno
18269         with two objects was allocated to a single reg.
18271 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
18273         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
18274         (is_widening_mult_p): Likewise.
18275         (convert_to_widen): Use them.
18276         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
18277         well as integer ones.
18279 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
18281         * alias.c (true_dependence_1): New function, merged version of
18282         true_dependence and canon_true_dependence.
18283         (true_dependence): Simplify.
18284         (canon_true_dependence): Simplify.
18286 2010-07-22  Richard Henderson  <rth@redhat.com>
18288         PR target/45027
18289         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
18290         of V4SFmode for the SSE saves; increase stack alignment if needed.
18291         (ix86_gimplify_va_arg): Don't increase stack alignment here.
18293 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
18295         PR bootstrap/45028
18296         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
18297         call cprop_find_used_regs again via note_uses.
18299 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
18301         * alias.c (get_alias_set): Fix formatting issues.
18303 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
18305         PR middle-end/44878
18306         * stmt.c (expand_value_return):  Call promote_function_mode with
18307         a for_return argument of 2 when returning by reference.
18309 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
18311         PR debug/45024
18312         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
18313         unit DIE if we can find the scope DIE.
18315 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18317         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
18318         changed.  Initialize OBJECT_SUBWORD.
18319         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
18320         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
18321         all callers changed.
18322         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
18323         (finish_allocno): Likewise.
18324         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
18325         (remove_low_level_allocnos): Likewise.
18326         (update_bad_spill_attribute): Likewise.
18327         (setup_min_max_allocno_live_range_point): Likewise.
18328         (sort_conflict_id_map): Likewise.
18329         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
18330         (ior_hard_reg_conflicts): New function.
18331         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
18332         (compress_conflict_vecs): Iterate over objects, not allocnos.
18333         (ira_add_live_range_to_object): New function.
18334         (object_range_compare_func): Renamed from allocno_range_compare_func.
18335         All callers changed.
18336         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
18337         subobjects, widen the min/max range of the lowest-order object to
18338         potentially include all other such low-order objects.
18339         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
18340         (check_allocation): Likewise.  Use more fine-grained tests for register
18341         conflicts.
18342         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
18343         allocno subobjects.
18344         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
18345         choices about which bits to set in each set.  Don't use
18346         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
18347         using the multiple sets we computed.
18348         (push_allocno_to_stack): Iterate over allocno subobjects.
18349         (all_conflicting_hard_regs_coalesced): New static function.
18350         (setup_allocno_available_regs_num): Use it.
18351         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
18352         subobjects.
18353         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
18354         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18355         by ALLOCNO_NUM_OBJECTS.
18356         (calculate_spill_cost): Likewise.
18357         (color_pass): Express if statement in a more normal way.
18358         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
18359         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
18360         (setup_slot_coalesced_allocno_live_ranges): Likewise.
18361         (allocno_reload_assign): Likewise.
18362         (ira_reassign_pseudos): Likewise.
18363         (fast_allocation): Likewise.
18364         * ira-conflicts.c (build_conflict_bit_table): Likewise.
18365         (print_allocno_conflicts): Likewise.
18366         (ira_build_conflicts): Likewise.
18367         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
18368         callers changed.  Test subword 0 of each allocno for conflicts.
18369         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
18370         callers changed.  Iterate over allocno subobjects.
18371         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
18372         * ira-int.h (struct ira_allocno): New member: num_objects.
18373         Rename object to objects and change it into an array.
18374         (ALLOCNO_OBJECT): Add new argument N.
18375         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
18376         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
18377         (ior_hard_reg_conflicts): Declare.
18378         (ira_add_live_range_to_object): Declare.
18379         (ira_allocno_object_iterator): New.
18380         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
18381         (FOR_EACH_ALLOCNO_OBJECT): New macro.
18382         * ira-lives.c (objects_live): Renamed from allocnos_live; all
18383         uses changed.
18384         (allocnos_processed): New sparseset.
18385         (make_object_born): Renamed from make_allocno_born; take an
18386         ira_object_t argument.  All callers changed.
18387         (make_object_dead): Renamed from make_allocno_dead; take an
18388         ira_object_t argument.  All callers changed.
18389         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
18390         All callers changed.
18391         (mark_pseudo_regno_live): Iterate over allocno subobjects.
18392         (mark_pseudo_regno_dead): Likewise.
18393         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
18394         functions.
18395         (mark_ref_live): Detect subword accesses and call
18396         mark_pseudo_regno_subword_live as appropriate.
18397         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
18398         (process_bb_nodes_live): Deal with object-related updates first; set
18399         and test bits in allocnos_processed to avoid computing allocno
18400         statistics more than once.
18401         (create_start_finish_chains): Iterate over objects, not allocnos.
18402         (print_object_live_ranges): New function.
18403         (print_allocno_live_ranges): Use it.
18404         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
18405         and objects_live.
18407 2010-07-22  Richard Guenther  <rguenther@suse.de>
18409         PR lto/42451
18410         * gimple.c (gtc_next_dfs_num): New global.
18411         (struct sccs): Make value a union, add integer same_p member.
18412         (gtc_visit): New function.
18413         (gimple_types_compatible_p_1): New function, split out from ...
18414         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
18415         (iterative_hash_gimple_type): Adjust for sccs change.
18417 2010-07-22  Martin Jambor  <mjambor@suse.cz>
18419         PR tree-optimization/44891
18420         * tree-sra.c: Include gimple-pretty-print.h.
18421         (replace_uses_with_default_def_ssa_name): Renamed to
18422         get_repl_default_def_ssa_name, return the new SSA name instead of
18423         replacing the old one.
18424         (sra_modify_assign): Dump a message when removing a load, if the LHS
18425         is an SSA_NAME, do not do any propagation, just set the RHS to a
18426         default definition SSA NAME, type convert if necessary.
18427         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
18429 2010-07-22  Richard Guenther  <rguenther@suse.de>
18431         PR tree-optimization/45017
18432         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
18433         TYPE_PRECISION of integral types in addition to size.
18435 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
18437         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
18438         when no C library is specified.
18440 2010-07-22  Martin Jambor  <mjambor@suse.cz>
18442         * ipa-prop.h (struct ipa_node_params): Updated comment.
18443         (struct ipa_edge_args): Likewise.
18444         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
18446 2010-07-22  Martin Jambor  <mjambor@suse.cz>
18448         * cgraphunit.c (verify_edge_count_and_frequency): New function.
18449         (verify_cgraph_node): Verify frequencies of indirect edges.
18450         * tree-inline.c (tree_function_versioning): Update frequencies of
18451         indirect edges.
18453 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18455         PR target/43698
18456         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
18457         Set *arm_rev to be predicable.
18459 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
18461         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
18462         (LINK_COMMAND_SPEC_A): New.
18463         (DSYMUTIL): New.
18464         (DSYMUTIL_SPEC): New.
18465         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
18466         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
18468 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
18470         * calls.c (load_register_parameters): Move check for zero
18471         sized items so that only the call to
18472         mem_overlaps_already_clobbered_arg_p () is protected.
18474 2010-07-22  Jan Hubicka  <jh@suse.cz>
18476         * ipa-pure-const.c (varying_state): Break out from ...
18477         (get_function_state): ... here; always return varying_state
18478         when state would be NULL otherwise.
18479         (remove_node_data): Do not free varying state.
18481 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
18483         PR bootstrap/44970
18484         PR middle-end/45009
18485         * postreload.c: Include "target.h".
18486         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
18487         into account.
18488         (fixup_debug_insns): Don't copy the rtx.
18489         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
18490         Don't copy when replacing.  Call fixup_debug_insns in the case where
18491         we merged one add with another.
18492         (reload_combine_recognize_pattern): Fail if there aren't any uses.
18493         Try harder to determine whether we're picking a valid index register.
18494         Don't set store_ruid for an insn we're going to scan in the
18495         next iteration.
18496         (reload_combine): Remove unused code.
18497         (reload_combine_note_use): When updating use information for
18498         an old insn, ignore a use that occurs after store_ruid.
18499         * Makefile.in (postreload.o): Update dependencies.
18501         * function.c (record_hard_reg_sets): Restrict the previous change
18502         to cases where the incoming nominal mode is the same as the
18503         incoming promoted mode and everything happens in MODE_INT.
18505 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
18507         PR debug/45015
18508         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
18509         ASM_OPERANDS_OUTPUT_IDX.
18510         (adjust_insn): For inline asm with multiple sets ensure first
18511         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
18512         the insn.
18514 2010-07-21  Richard Henderson  <rth@redhat.com>
18516         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
18517         comparison for avoiding xmm register saves.  Emit the xmm register
18518         saves explicitly.
18519         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
18520         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
18521         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
18522         Remove patterns and the associated splitters.
18524 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
18526         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
18527         and imagine parts of a complex, so that they can have the same
18528         base and fall into the same group.
18530 2010-07-21  Richard Guenther  <rguenther@suse.de>
18532         PR lto/45018
18533         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
18534         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
18535         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
18537 2010-07-21  Martin Jambor  <mjambor@suse.cz>
18539         PR tree-optimization/44900
18540         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
18541         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
18543 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
18545         PR middle-end/44738
18546         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
18548 2010-07-21  Richard Guenther  <rguenther@suse.de>
18550         PR middle-end/45013
18551         * tree-ssa.c (useless_type_conversion_p): Dispatch to
18552         gimple_types_compatible_p only when in lto.
18553         * gimple.c (gimple_types_compatible_p): Use canonical types
18554         to speed up comparison.
18556 2010-07-21  Richard Guenther  <rguenther@suse.de>
18558         * tree-flow.h (referenced_var): Move define ...
18559         * tree-flow-inline.h (referenced_var): ... here as an inline
18560         function.  Assert here ...
18561         * tree-dfa.c (referenced_var_lookup): ... instead of here.
18562         * tree-ssa.c (maybe_optimize_var): Check if the variable
18563         is in referenced vars.
18564         (execute_update_addresses_taken): Remove old broken check.
18565         * gimple-pretty-print.c (pp_points_to_solution): Use
18566         referenced_var_lookup.
18567         * tree-into-ssa.c (dump_decl_set): Likewise.
18569 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
18571         PR debug/45003
18572         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
18573         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
18574         ZERO_EXTEND here.
18576 2010-07-20  Richard Henderson  <rth@redhat.com>
18578         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
18580 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
18582         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
18583         computing the sum of the stack pointer and a large constant.
18584         * config/arm/constraints.md (M): Remove superfluous parentheses.
18585         (Pc): New constraint.
18587 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
18589         PR debug/45006
18590         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
18591         operand's type if exp is tcc_unary class tree.
18593 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
18595         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
18596         Reverse sense of if_then_else condition.
18598 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
18600         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
18601         * config/rs6000/rs6000.c (rs6000_override_options): Set
18602         rs6000_block_move_inline_limit appropriately.
18603         (expand_block_move): Use rs6000_block_move_inline_limit.
18604         * doc/invoke.texi (mblock-move-inline-limit): Document.
18606 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
18608         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
18609         FROM and TO.  All callers changed.  Don't look for tracked uses,
18610         just scan the RTL for DEBUG_INSNs and substitute.
18611         (reload_combine_recognize_pattern): Call fixup_debug_insns.
18612         (reload_combine): Ignore DEBUG_INSNs.
18614 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
18616         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
18617         depth to 8 from 5.
18619         PR debug/45003
18620         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
18621         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
18622         instead of the result's type.
18624 2010-07-20  Richard Guenther  <rguenther@suse.de>
18626         PR tree-optimization/44977
18627         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
18628         SSA form.
18630 2010-07-20  Richard Guenther  <rguenther@suse.de>
18632         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
18633         (lto_symtab_merge_decls_2): Likewise.
18634         * gimple.h (gimple_types_compatible_p): Declare.
18635         * gimple.c (gimple_queue_type_fixup): Remove.
18636         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
18637         (gimple_compatible_complete_and_incomplete_type_p): New function.
18638         (gimple_types_compatible_p): Adjust.
18639         (gimple_register_type): Remove type fixup code.
18640         (print_gimple_types_stats): Adjust.
18641         (free_gimple_type_tables): Likewise.
18642         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
18643         * tree-ssa.c (useless_type_conversion_p): Likewise.
18645 2010-07-20  Richard Guenther  <rguenther@suse.de>
18647         PR middle-end/44971
18648         PR middle-end/44988
18649         * tree-ssa.c (maybe_optimize_var): New function split out from ...
18650         (execute_update_addresses_taken): ... here.
18651         (non_rewritable_mem_ref_base): Likewise.
18652         (execute_update_addresses_taken): Do not iterate over all referenced
18653         vars but just all local decls and parms.
18654         Properly check call and asm arguments and rewrite call arguments.
18656 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
18658         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
18659         to top level.
18660         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
18661         definitions ...
18662         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
18663         New macro.
18664         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
18666 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
18668         * gengtype.c (start_root_entry): New function, split out from
18669         write_root.  Check whether V is null and raise an error if so.
18670         (write_field_root): Check for V being null.  Don't raise an error here;
18671         set V to null instead.
18672         (write_root): Update comment above function.  Use start_root_entry.
18674 2010-07-19  Xinliang David Li  <davidxl@google.com>
18676         PR testsuite/44932
18677         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
18678         def edges.
18679         (find_uninit_use): Add dump.
18680         (is_use_properly_guarded): Ditto.
18681         (warn_uninitialized_phi): Ditto.
18682         (execute_late_warn_uninitialized): Ditto.
18684 2010-07-19  Richard Guenther  <rguenther@suse.de>
18686         PR middle-end/44941
18687         * expr.c (emit_block_move_hints): Move zero size check first.
18688         Move asserts to more useful places.
18689         * calls.c (load_register_parameters): Check for zero size.
18691 2010-07-19  Richard Henderson  <rth@redhat.com>
18693         * tree-optimize.c (execute_all_early_local_passes): New.  Change
18694         cgraph_state here ...
18695         (execute_early_local_optimizations): ... not here.  Remove.
18696         (pass_early_local_passes, pass_all_early_optimizations): Update.
18698 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
18700         * postreload.c (reload_combine_closest_single_use): Ignore the
18701         number of uses for DEBUG_INSNs.
18702         (fixup_debug_insns): New static function.
18703         (reload_combine_recognize_const_pattern): Use it.  Don't let the
18704         main loop be affected by DEBUG_INSNs.
18705         Really disallow moving adds past a jump insn.
18706         (reload_combine_recognize_pattern): Don't update use_ruid here.
18707         (reload_combine_note_use): Do it here.
18708         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
18710 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
18712         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
18713         of a loop.
18714         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
18716 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
18718         * config/i386/darwin.h: Define darwin_emit_branch_islands.
18719         (TARGET_MACHO_BRANCH_ISLANDS): New.
18720         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
18721         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
18722         default value.
18723         * config/i386/i386.c (output_pic_addr_const): Do not emit
18724         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
18725         (x86_output_mi_thunk): Adjust symbol creation.
18726         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
18727         Remove out of date comment.
18728         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
18729         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
18730         (DARWIN_GENERATE_ISLANDS): Ditto.
18731         (output_call):  Do not emit branch islands unless
18732         darwin_emit_branch_islands is set.
18733         * config/darwin.c: Declare darwin_emit_branch_islands.
18734         (machopic_indirect_data_reference): Do not emit unless
18735         darwin_emit_branch_islands is set.
18736         (darwin_override_options): Set darwin_emit_branch_islands
18737         where it is needed.
18738         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
18740 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18742         * doc/sourcebuild.texi (Effective-Target Keywords): Document
18743         sse_runtime, sse2_runtime.
18745 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
18747         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
18748         low half of a single-register SCmode return value before ORing
18749         it with the high half.
18750         * config/mips/mips16.S (MERGE_GPRf): Likewise.
18752 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18754         PR target/44805
18755         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
18756         on all targets.
18758 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
18760         PR target/42235
18761         * postreload.c (reload_cse_move2add): Return bool, true if anything.
18762         changed.  All callers changed.
18763         (move2add_use_add2_insn): Likewise.
18764         (move2add_use_add3_insn): Likewise.
18765         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
18766         reload_combine.
18767         (RELOAD_COMBINE_MAX_USES): Bump to 16.
18768         (last_jump_ruid): New static variable.
18769         (struct reg_use): New members CONTAINING_MEM and RUID.
18770         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
18771         (reload_combine_split_one_ruid, reload_combine_split_ruids,
18772         reload_combine_purge_insn_uses, reload_combine_closest_single_use
18773         reload_combine_purge_reg_uses_after_ruid,
18774         reload_combine_recognize_const_pattern): New static functions.
18775         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
18776         is true for our reg and that we have available index regs.
18777         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
18778         callers changed.  Use them to initialize fields in struct reg_use.
18779         (reload_combine): Initialize last_jump_ruid.  Be careful when to
18780         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
18781         Call reload_combine_recognize_const_pattern.
18782         (reload_combine_note_store): Update REAL_STORE_RUID field.
18784 2010-07-16  Jason Merrill  <jason@redhat.com>
18786         * Makefile.in (opts-common.o): Depend on options.h.
18788 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
18790         * tree.c (build_common_builtin_nodes): Use build_function_type_list
18791         instead of build_function_type.
18792         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
18793         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
18795 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
18797         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
18798         do all the work.
18799         (rs6000_emit_int_cmove): Use function pointers for insn generation.
18800         Don't force values into registers unnecessarily.
18801         (output_isel): Assert that we're not given conditions we can't handle.
18802         Delete corresponding code.
18803         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
18804         scc_comparison_operator constraint.  Permit 0 for the consequent
18805         operand.  Permit any GPR for the alternative operand.
18806         (isel_unsigned_<mode>): Likewise.
18808 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
18810         PR target/44942
18811         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
18812         argument to const_tree.
18813         * config/i386/i386.c (function_arg_advance): If padding needs to be
18814         inserted before argument, increment cum->words by number of padding
18815         words as well.
18816         (contains_aligned_value_p): Change argument to const_tree.
18817         (ix86_function_arg_boundary): Change second argument to const_tree.
18819 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
18821         PR target/42235
18822         * function.c (record_hard_reg_sets): New static function.
18823         (assign_parm_setup_reg): If an optab for extending exists and the
18824         generated code clobbbers no hard regs, emit the insn directly and
18825         create a REG_EQUIV note.
18827 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18829         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
18830         TREE_CHAIN.
18831         * c-typeck.c (push_init_level): Likewise.
18832         (process_init_element): Likewise.
18834 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
18836         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
18837         (integer_three_node): Add.
18838         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
18839         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
18840         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
18841         of call build_int_cst.
18842         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
18843         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
18844         (find_interesting_uses_address): Ditto.
18845         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
18846         * tree-eh.c (lower_eh_constructs_2): Ditto.
18847         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
18848         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
18849         * expmed.c (expand_divmod): Ditto.
18850         * tree-mudflap.c (mx_register_decls): Ditto.
18851         * varasm.c (array_size_for_constructor): Ditto.
18852         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
18853         * c-parser.c (c_parser_postfix_expression): Ditto.
18855 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18857         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
18858         New static variables.
18859         (reload_combine_recognize_pattern): New static function, broken out
18860         of reload_combine.
18861         (reload_combine): Use it.  Only initialize first_index_reg and
18862         last_index_reg once.
18864 2010-07-15  Richard Henderson  <rth@redhat.com>
18866         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
18867         when done.
18869 2010-07-15  Jan Hubicka  <jh@suse.cz>
18871         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
18872         comdats for broken gold.
18873         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
18875 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18877         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
18879 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18881         * tree.h (DECL_CHAIN): Define.
18882         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
18883         * c-decl.c: Likewise.
18884         * c-parser.c: Likewise.
18885         * c-typeck.c: Likewise.
18886         * cfgexpand.c: Likewise.
18887         * cgraph.c: Likewise.
18888         * cgraphunit.c: Likewise.
18889         * combine.c: Likewise.
18890         * config/alpha/alpha.c: Likewise.
18891         * config/arm/arm.c: Likewise.
18892         * config/frv/frv.c: Likewise.
18893         * config/i386/i386.c: Likewise.
18894         * config/i386/winnt-cxx.c: Likewise.
18895         * config/ia64/ia64.c: Likewise.
18896         * config/iq2000/iq2000.c: Likewise.
18897         * config/mep/mep.c: Likewise.
18898         * config/mips/mips.c: Likewise.
18899         * config/pa/som.h: Likewise.
18900         * config/rs6000/rs6000.c: Likewise.
18901         * config/s390/s390.c: Likewise.
18902         * config/sh/sh.c: Likewise.
18903         * config/sh/symbian-cxx.c: Likewise.
18904         * config/sparc/sparc.c: Likewise.
18905         * config/spu/spu.c: Likewise.
18906         * config/stormy16/stormy16.c: Likewise.
18907         * config/vxworks.c: Likewise.
18908         * config/xtensa/xtensa.c: Likewise.
18909         * coverage.c: Likewise.
18910         * dbxout.c: Likewise.
18911         * dwarf2out.c: Likewise.
18912         * emit-rtl.c: Likewise.
18913         * expr.c: Likewise.
18914         * function.c: Likewise.
18915         * gimple-low.c: Likewise.
18916         * gimple-pretty-print.c: Likewise.
18917         * gimplify.c: Likewise.
18918         * integrate.c: Likewise.
18919         * ipa-inline.c: Likewise.
18920         * ipa-prop.c: Likewise.
18921         * ipa-split.c: Likewise.
18922         * ipa-struct-reorg.c: Likewise.
18923         * ipa-type-escape.c: Likewise.
18924         * langhooks.c: Likewise.
18925         * lto-cgraph.c: Likewise.
18926         * omp-low.c: Likewise.
18927         * stor-layout.c: Likewise.
18928         * tree-cfg.c: Likewise.
18929         * tree-complex.c: Likewise.
18930         * tree-dfa.c: Likewise.
18931         * tree-dump.c: Likewise.
18932         * tree-inline.c: Likewise.
18933         * tree-mudflap.c: Likewise.
18934         * tree-nested.c: Likewise.
18935         * tree-object-size.c: Likewise.
18936         * tree-pretty-print.c: Likewise.
18937         * tree-sra.c: Likewise.
18938         * tree-ssa-live.c: Likewise.
18939         * tree-ssa-loop-niter.c: Likewise.
18940         * tree-ssa-math-opts.c: Likewise.
18941         * tree-ssa-reassoc.c: Likewise.
18942         * tree-ssa-sccvn.c: Likewise.
18943         * tree-ssa-structalias.c: Likewise.
18944         * tree-tailcall.c: Likewise.
18945         * tree-vrp.c: Likewise.
18946         * tree.c: Likewise.
18947         * var-tracking.c: Likewise.
18948         * varasm.c: Likewise.
18950 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18952         PR target/44877
18953         * config/spu/spu.c (spu_expand_builtin_1): Allow references
18954         (as well as pointers) as argument to mask_for_load builtins.
18956 2010-07-15  Richard Guenther  <rguenther@suse.de>
18958         PR tree-optimization/44946
18959         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
18960         with accessing only padding properly.
18962 2010-07-15  Jan Hubicka  <jh@suse.cz>
18964         * ipa.c (function_and_variable_visibility): Variables marked as used
18965         should not be localized.
18967 2010-07-15  Jan Hubicka  <jh@suse.cz>
18969         * cgraph.c: Include lto-streamer.h
18970         (change_decl_assembler_name): Work when assembler name hash is at place.
18971         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
18972         be sure to rename it to avoid name clash.
18973         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
18974         Localize hidden symbols only when locally defined.
18976 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
18978         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
18980 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
18981             Kevin F. Quinn  <kevquinn@gentoo.org>
18983         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
18984         * common.opt: Add -Wtrampolines.
18985         * doc/invoke.texi: Add -Wtrampolines.
18987 2010-07-15  Jie Zhang  <jie@codesourcery.com>
18989         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
18990         cortex_a8_issue_ls.
18992 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
18994         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
18995         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
18997 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18999         * config/spu/spu.c (reg_names): Remove prototype.
19000         (call_used_regs): Likewise.
19002 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
19004         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
19005         "unused" with attribute "used".
19006         (__JCR_END__): Likewise.
19007         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
19008         "used" attribute.
19009         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
19011 2010-07-14  Richard Guenther  <rguenther@suse.de>
19013         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
19014         (maybe_fixup_decls): Likewise.
19015         (input_gimple_stmt): Do not fixup anything.
19016         * lto-streamer-out.c (output_gimple_stmt): Make sure all
19017         non-automatic variable uses are wrapped inside a MEM_REF.
19019 2010-07-14  Richard Henderson  <rth@redhat.com>
19021         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
19022         for functions.
19023         * varasm.c (assemble_variable): Remove early exit for functions;
19024         assert that we're given a variable.
19026 2010-07-14  Jie Zhang  <jie@codesourcery.com>
19028         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
19029         cortex_a8_default when neon_type is not none.
19031 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
19033         * lower-subreg.c (subreg_context): New static bitmap.
19034         (decompose_multiword_subregs): Allocate and free it.
19035         (find_decomposable_subregs): Set a bit in it for a register that
19036         occurs in a subreg that changes mode but not size.
19037         (can_decompose_p): Test it instead of non_decomposable_context.
19039 2010-07-14  Richard Guenther  <rguenther@suse.de>
19041         PR tree-optimization/44824
19042         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
19043         is_gimple_mem_ref_addr.
19044         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
19045         non-decl_address_invariant_p addresses.
19047 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
19049         * reload.c (find_reloads): Revert code to penalize small register
19050         classes that was brought in with the IRA merge.
19052 2010-07-14  Richard Guenther  <rguenther@suse.de>
19054         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
19055         as base of ARRAY_REFs.
19057 2010-07-14  Richard Guenther  <rguenther@suse.de>
19059         PR middle-end/44930
19060         * tree-pretty-print.c (do_niy): Do not print a newline.
19062 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
19064         * ira-int.h (struct ira_object): New.
19065         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
19066         (struct ira_allocno): Remove members min, max,
19067         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
19068         conflict_allocnos_num and conflict_vec_p.  Add new member object.
19069         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
19070         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
19071         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
19072         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
19073         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
19074         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
19075         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
19076         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
19077         an ira_object_t rather than ira_allocno_t.  All uses changed.
19078         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
19079         contains a vector of ira_object_t; all uses changed.
19080         (ira_objects_num): Declare variable.
19081         (ira_create_allocno_object): Declare function.
19082         (ira_conflict_vector_profitable_p): Adjust prototype.
19083         (ira_allocate_conflict_vec): Renamed from
19084         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
19085         (ira_allocate_object_conflicts): Renamed from
19086         ira_allocate_allocno_conflicts; first arg now ira_object_t.
19087         (struct ira_object_iterator): New.
19088         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
19089         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
19090         to conflict_vec_p.  All uses changed.
19091         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
19092         Changed to take into account that conflicts are now tracked for
19093         objects.
19094         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
19095         Args changed to accept ira_object_t.  All uses changed.
19096         (allocnos_conflict_p): New static function.
19097         (collected_conflict_objects): Renamed from collected_allocno_objects;
19098         now a vector of ira_object_t.  All uses changed.
19099         (build_conflict_bit_table): Changed to take into account that
19100         conflicts are now tracked for objects.
19101         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
19102         (print_allocno_conflicts, ira_build_conflicts): Likewise.
19103         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
19104         setup_allocno_left_conflicts_size, allocno_reload_assign,
19105         fast_allocation): Likewise.
19106         * ira-lives.c (make_hard_regno_born, make_allocno_born)
19107         process_single_reg_class_operands, process_bb_node_lives): Likewise.
19108         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
19109         Likewise.
19110         * ira-build.c (ira_objects_num): New variable.
19111         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
19112         contains a vector of ira_object_t; all uses changed.
19113         (ira_object_id_map_vec): Corresponding change.
19114         (object_pool): New static variable.
19115         (initiate_allocnos): Initialize it.
19116         (finish_allocnos): Free it.
19117         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
19118         New functions.
19119         (ira_create_allocno): Don't set members that were removed.
19120         (ira_set_allocno_cover_class): Don't change conflict hard regs.
19121         (merge_hard_reg_conflicts): Changed to take into account that
19122         conflicts are now tracked for objects.
19123         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
19124         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
19125         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
19126         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
19127         setup_min_max_conflict_allocno_ids, ):  Likewise.
19128         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
19129         to ira_object_t; all callers changed.
19130         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
19131         to ira_object_t, all callers changed.
19132         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
19133         to ira_object_t, all callers changed.
19134         (conflict_check, curr_conflict_check_tick): Renamed from
19135         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
19136         changed.
19137         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
19138         arg changed to ira_object_t, all callers changed.
19139         (create_cap_allocno): Call ira_create_allocno_object.
19140         (finish_allocno): Free the corresponding object.
19141         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
19142         callers changed.  Adjusted for dealing with objects.
19143         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
19144         dealing with objects.
19145         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
19147         * ira-int.h (struct live_range): Rename allocno member to object
19148         and change type to ira_object_t.
19149         (struct ira_object): New member live_ranges.
19150         (struct ira_allocno): Remove member live_ranges.
19151         (ALLOCNO_LIVE_RANGES): Remove.
19152         (OBJECT_LIVE_RANGES): New macro.
19153         (ira_create_live_range, ira_copy_live_range_list,
19154         ira_merge_live_range_list, ira_live_ranges_intersect_p,
19155         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
19156         * ira-build.c (ira_create_object): Initialize live ranges here.
19157         (ira_create_allocno): Not here.
19158         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
19159         changed to ira_object_t, all callers changed.
19160         (copy_live_range): Rename from copy_allocno_live_range, all callers
19161         changed.
19162         (ira_copy_live_range_list): Rename from
19163         ira_copy_allocno_live_range_list, all callers changed.
19164         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
19165         all callers changed.
19166         (ira_live_ranges_intersect_p): Rename from
19167         ira_allocno_live_ranges_intersect_p, all callers changed.
19168         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
19169         callers changed.
19170         (ira_finish_live_range_list): Rename from
19171         ira_finish_allocno_live_range_list, all callers changed.
19172         (change_object_in_range_list): Rename from change_allocno_in_range_list,
19173         last arg changed to ira_object_t, all callers changed.
19174         (finish_allocno): Changed to expect live ranges in the allocno's object.
19175         (move_allocno_live_ranges, copy_allocno_live_ranges,
19176         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
19177         ira_flattening, ira_build): Likewise.
19178         * ira-color.c (allocnos_have_intersected_live_ranges_p,
19179         slot_coalesced_allocno_live_ranges_intersect,
19180         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
19181         * ira-conflicts.c (build_conflict_bit_table): Likewise.
19182         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
19183         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
19184         make_allocno_dead, create_start_finish_chains,
19185         remove_some_program_points_and_update_live_ranges,
19186         ira_debug_live_range_list): Likewise.
19188         * ira-int.h (ira_object_conflict_iterator): Rename from
19189         ira_allocno_conflict_iterator.
19190         (ira_object_conflict_iter_init): Rename from
19191         ira_allocno_conflict_iter_init, second arg changed to
19192         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
19193         FOR_EACH_ALLOCNO_CONFLICT.
19194         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
19195         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
19196         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
19197         * ira-conflicts.c (print_allocno_conflicts): Likewise.
19199 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
19201         PR other/44874
19202         * tree-dump.c (dump_options): Add enumerate_locals entry.
19203         Add TDF_NOID exclusion to all entry.
19204         * tree-dump.h (dump_enumerated_decls): Declare.
19205         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
19206         Don't display type uid.
19207         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
19208         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
19209         * tree-ssa-live.c: Include gimple.h.
19210         (numbered_tree_d): New struct.
19211         (numbered_tree): New typedef.
19212         (DEF_VEC_O (numbered_tree): New.
19213         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
19214         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
19215         (dump_enumerated_decls): Likewise.
19216         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
19217         debug info and flag_dump_final_insns, call dump_enumerated_decls.
19218         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
19219         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
19221 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
19223         * expmed.h (MAX_BITS_PER_WORD): Move to...
19224         * defaults.h (MAX_BITS_PER_WORD): ...here.
19226 2010-07-13  DJ Delorie  <dj@redhat.com>
19228         * config/h8300/h8300.c (h8300_init_once): Default to
19229         -fstrict_volatile_bitfields.
19231         * config/sh/sh.c (sh_override_options): Default to
19232         -fstrict_volatile_bitfields.
19234         * config/rx/rx.c (rx_option_override): New.
19236         * config/m32c/m32c.c (m32c_override_options): Default to
19237         -fstrict_volatile_bitfields.
19239 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
19241         * tree.h (build_function_call_expr): Delete.
19242         (build_call_expr_loc_array): New function.
19243         (build_call_expr_loc_vec): New function.
19244         * tree-flow.h (struct omp_region): Change type of ws_args field
19245         to a VEC.
19246         * builtins.c (build_function_call_expr): Delete.
19247         (build_call_expr_loc_array): New function.
19248         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
19249         (build_call_expr): Likewise.
19250         (build_call_expr_loc_vec): New function.
19251         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
19252         build_function_call_expr.
19253         * expr.c (emutls_var_address): Likewise.
19254         * varasm.c (emutls_common_1): Likewise.
19255         * omp-low.c (expand_omp_atomic_mutex): Likewise.
19256         (expand_omp_taskreg): Adjust for new type of region->ws_args.
19257         (get_ws_args_for): Return a VEC instead of a tree.
19258         (expand_parallel_call): Call build_call_expr_loc_vec instead of
19259         build_function_call_expr.
19260         * stor-layout.c (self_referential_size): Likewise.
19262 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
19264         PR testsuite/44701
19265         * recog.c (constrain_operands): Allow side-effects in memory
19266         operands if either < or > constraint is used, rather than if
19267         both < and > is used.
19269 2010-07-13  Richard Guenther  <rguenther@suse.de>
19271         PR middle-end/44911
19272         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
19273         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
19274         without name.
19276 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
19278         PR target/44761
19279         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
19280         to variable emited.
19281         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
19282         * config/sh/sh.md (symGOT_load): Likewise.
19283         (symDTPOFF2reg): Likewise.
19284         (symTPOFF2reg): Likewise.
19286 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19288         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
19289         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
19291 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19293         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
19294         explanation.
19295         Find ucontext_t * on Solaris 11.
19296         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
19297         Handle new Solaris 11 __sighndlr patterns.
19299 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
19301         PR debug/44901
19302         * vec.h (VEC_block_remove): Fix comment.
19303         * tree-ssa-live.c (remove_unused_locals): Don't use
19304         VEC_unordered_remove on local_decls, instead replace a single
19305         vector element in each iteration if at least one element had
19306         to be removed and VEC_truncate at the end.
19307         * omp-low.c (expand_omp_taskreg): Likewise.
19309 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19311         * c-decl.c (finish_function): Fix typo in comment.
19313 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
19315         PR bootstrap/44921
19316         * postreload.c (move2add_use_add3_insn): Silence gcc warning
19317         on min_regno.
19319 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
19321         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
19322         (simplify_stmt_using_ranges): Use it.
19324 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19326         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
19327         member.  Do not mark as GTY(()).
19328         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
19329         (spu_builtin_decls): New static variable.
19330         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
19331         (spu_init_builtins): Likewise.
19332         (spu_builtin_mul_widen_even): Likewise.
19333         (spu_builtin_mul_widen_odd): Likewise.
19334         (spu_builtin_mask_for_load): Likewise.
19335         (spu_builtin_vec_perm): Likewise.
19336         * config/spu/spu-c.c: Include "target.h".
19337         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
19338         of using spu_builtins[].fndecl.
19340 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19342         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
19343         imply -minterlink-mips16.
19345 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19347         * config/mips/mips.h (mips16_globals): Declare.
19348         (SWITCHABLE_TARGET): Define.
19349         * config/mips/mips.c: Include target-globals.h.
19350         (mips16_globals): New variable.
19351         (mips_set_mips16_mode): Use save_target_globals and
19352         restore_target_globals instead of target_reinit.
19354 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19356         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
19357         to say that the function can be called more than once.
19358         * target-globals.c (save_target_globals): Call init_reg_sets.
19360 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19362         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
19363         * bb-reorder.h: New file.
19364         * bb-reorder.c (default_target_bb_reorder): New variable.
19365         (this_target_bb_reorder): New conditional variable.
19366         (uncond_jump_length): Redefine as a macro.
19367         * target-globals.h (this_target_bb_reorder): Declare.
19368         (target_globals): Add a bb_reorder field.
19369         (restore_target_globals): Copy the bb_reorder field to
19370         this_target_bb-reorder.
19371         * target-globals.c: Include bb-reorder.h.
19372         (default_target_globals): Initialize the bb_reorder field.
19373         (save_target_globals): Likewise.
19375 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19377         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
19378         * gcse.h: New file.
19379         * gcse.c: Include gcse.h.
19380         (default_target_gcse): New variable.
19381         (this_target_gcse): New conditional variable.
19382         (can_copy): Redefine as a macro.
19383         (can_copy_init_p): New macro.
19384         (can_copy_p): Remove can_copy_init_p.
19385         * target-globals.h (this_target_gcse): Declare.
19386         (target_globals): Add a gcse field.
19387         (restore_target_globals): Copy the gcse field to this_target_gcse.
19388         * target-globals.c: Include gcse.h.
19389         (default_target_globals): Initialize the gcse field.
19390         (save_target_globals): Likewise.
19392 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19394         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
19395         and x_ira_prohibited_mode_move_regs_initialized_p.
19396         (ira_prohibited_mode_move_regs): Redefine as a macro.
19397         * ira.c (ira_prohibited_mode_move_regs): Delete.
19398         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
19400 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19402         * reload.h (target_reload): Add x_cached_reg_save_code and
19403         x_cached_reg_restore_code.
19404         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
19405         Redefine as macros.
19407 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19409         * Makefile.in (target-globals.o): Depend on builtins.h.
19410         * builtins.h: New file.
19411         * builtins.c: Include builtins.h.
19412         (default_target_builtins): New variable.
19413         (this_target_builtins): New conditional variable.
19414         (apply_args_mode, apply_result_mode): Redefine as macros.
19415         * target-globals.h (this_target_builtins): Declare.
19416         (target_globals): Add a builtins field.
19417         (restore_target_globals): Copy the builtins field to
19418         this_target_builtins.
19419         * target-globals.c: Include builtins.h.
19420         (default_target_globals): Initialize the builtins field.
19421         (save_target_globals): Likewise.
19423 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19425         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
19426         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
19427         from expmed.c.
19428         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
19429         (alg_hash, alg_hash_used_p): New macros.
19430         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
19431         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
19432         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
19434 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19436         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
19437         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
19438         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
19439         (this_op_costs, costs_classes): Redefine as macros.
19440         (record_reg_classes): Don't take op_costs as a parameter.
19441         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
19442         (scan_one_insn): Update call to record_operand_costs.
19444 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19446         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
19447         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
19448         (target_ira_int): New structure.
19449         (default_target_ira_int): Declare.
19450         (this_target_ira_int): Declare as a variable or define as a macro.
19451         (ira_reg_mode_hard_regset, ira_register_move_cost)
19452         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
19453         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
19454         (prohibited_class_mode_regs, ira_important_classes_num)
19455         (ira_important_classes, ira_reg_class_intersect)
19456         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
19457         (ira_reg_class_union): Redefine as macros.
19458         * ira.h (target_ira): New structure.
19459         (default_target_ira): Declare.
19460         (this_target_ira): Declare as a variable or define as a macro.
19461         (ira_available_class_regs, ira_hard_regno_cover_class)
19462         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
19463         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
19464         (ira_class_hard_regs_num): Redefine as macros.
19465         * ira.c (default_target_ira, default_target_ira_int): New variables.
19466         (this_target_ira, this_target_ira_int): New conditional variables.
19467         (ira_reg_mode_hard_regset, ira_memory_move_cost)
19468         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
19469         (ira_class_subset_p): Delete.
19470         (no_unit_alloc_regs): Redefine as a macro.
19471         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
19472         (ira_class_hard_regs_num, ira_class_hard_reg_index)
19473         (ira_available_class_regs): Delete.
19474         (alloc_reg_class_subclasses): Redefine as a macro.
19475         (ira_reg_class_cover_size, ira_reg_class_cover)
19476         (ira_important_classes_num, ira_important_classes)
19477         (ira_important_class_nums, ira_class_translate): Delete.
19478         (cover_class_order): Document the variable's lifetime.
19479         (reorder_important_classes): Don't set ira_important_class_nums.
19480         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
19481         (ira_reg_class_super_classes, ira_reg_class_union)
19482         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
19483         Delete.
19484         (setup_reg_class_nregs): Don't set ira_max_regs.
19485         (prohibited_class_mode_regs): Delete.
19486         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
19487         (target_globals): Add ira and ira_int fields.
19488         (restore_target_globals): Copy the ira field to this_target_ira
19489         and the ira_int field to this_target_ira_int.
19490         * target-globals.c: Include ira-int.h.
19491         (default_target_globals): Initialize the ira and ira_int fields.
19492         (save_target_globals): Likewise.
19494 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19496         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
19497         * cfgloop.h (target_cfgloop): New structure.
19498         (default_target_cfgloop): Declare.
19499         (this_target_cfgloop): Declare as a variable or define as a macro.
19500         (target_avail_regs, target_clobbered_regs, target_res_regs)
19501         (target_reg_cost, target_spill_cost): Redefine as macros.
19502         * cfgloopanal.c (default_target_cfgloop): New variable.
19503         (this_target_cfgloop): New conditional variable.
19504         (target_avail_regs, target_clobbered_regs, target_res_regs)
19505         (target_reg_cost, target_spill_cost): Delete.
19506         * target-globals.h (this_target_cfgloop): Declare.
19507         (target_globals): Add a cfgloop field.
19508         (restore_target_globals): Copy the cfgloop field to
19509         this_target_cfgloop.
19510         * target-globals.c: Include cfgloop.h.
19511         (default_target_globals): Initialize the cfgloop field.
19512         (save_target_globals): Likewise.
19514 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19516         * regs.h (target_regs): Add x_direct_load, x_direct_store and
19517         x_float_extend_from_mem.
19518         (direct_load, direct_store, float_extend_from_mem): New macros.
19519         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
19521 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19523         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
19524         (target-globals.o): Depend on $(LIBFUNCS_H).
19525         * libfuncs.h: Include hashtab.h.
19526         (libfunc_entry): Moved from optabs.c.
19527         (target_libfuncs): New structure.
19528         (default_target_libfuncs): Declare.
19529         (this_target_libfuncs): Declare as a variable or define as a macro.
19530         (libfunc_table): Redefine as a macro.
19531         * optabs.c (default_target_libfuncs): New variable.
19532         (this_target_libfuncs): New conditional variable.
19533         (libfunc_table): Delete.
19534         (libfunc_entry): Moved to optabs.h.
19535         (libfunc_hash): Redefine as a macro.
19536         (hash_libfunc, eq_libfunc): Fix comments.
19537         (init_optabs): Use libfunc_hash to detect cases where the function
19538         has already been called.  Clear the hash table instead of
19539         recreating it.
19540         * target-globals.h (this_target_libfuncs): Declare.
19541         (target_globals): Add a libfuncs field.
19542         (restore_target_globals): Copy the libfuncs field to
19543         this_target_libfuncs.
19544         * target-globals.c: Include libfuncs.h.
19545         (default_target_globals): Initialize the libfuncs field.
19546         (save_target_globals): Likewise.
19548 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19550         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
19551         in all dependency lists.
19553 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19555         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
19556         * optabs.h (target_optabs): New structure.
19557         (default_target_optabs): Declare.
19558         (this_target_optabs): Declare as a variable or define as a macro.
19559         (optab_table, convert_optab_table, direct_optab_table): Redefine
19560         as macros.
19561         * optabs.c (default_target_optabs): New variable.
19562         (this_target_optabs): New conditional variable.
19563         (optab_table, convert_optab_table, direct_optab_table): Delete.
19564         * target-globals.h (this_target_optabs): Declare.
19565         (target_globals): Add a optabs field.
19566         (restore_target_globals): Copy the optabs field to
19567         this_target_optabs.
19568         * target-globals.c: Include expr.h and optabs.h.
19569         (default_target_globals): Initialize the optabs field.
19570         (save_target_globals): Likewise.
19572 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19574         * flags.h (target_flagstate): Add x_flag_excess_precision.
19575         (flag_excess_precision): Redefine as a macro.
19576         * toplev.c (flag_excess_precision): Delete.
19578 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19580         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
19581         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
19582         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
19583         (no_caller_save_reg_set): Redefine as a macro.
19584         * reload.h (target_reload): Add x_caller_save_initialized_p and
19585         x_regno_save_mode.
19586         (caller_save_initialized_p): Redefine as a macro.
19587         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
19588         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
19589         (regno_save_mode): Redefine as a macro.
19591 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19593         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
19594         * expmed.h: New file.
19595         * expmed.c (default_target_costs): New variable.
19596         (this_target_costs): New conditional variable.
19597         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
19598         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
19599         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
19600         * target-globals.h (this_target_expmed): Declare.
19601         (target_globals): Add a expmed field.
19602         (restore_target_globals): Copy the expmed field to
19603         this_target_expmed.
19604         * target-globals.c: Include expmed.h.
19605         (default_target_globals): Initialize the expmed field.
19606         (save_target_globals): Likewise.
19608 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19610         * Makefile.in (target-globals.o): Depend on reload.h.
19611         * reload.h (target_reload): New structure.
19612         (default_target_reload): Declare.
19613         (this_target_reload): Declare as a variable or define as a macro.
19614         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
19615         * reload1.c (default_target_reload): New variable
19616         (this_target_reload): New conditional variable.
19617         (indirect_symref_ok, double_reg_address_ok): Delete.
19618         (spill_indirect_levels): Redefine as a macro.
19619         * target-globals.h (this_target_reload): Declare.
19620         (target_globals): Add a reload field.
19621         (restore_target_globals): Copy the reload field to
19622         this_target_reload.
19623         * target-globals.c: Include hard-reg-set.h.
19624         (default_target_globals): Initialize the reload field.
19625         (save_target_globals): Likewise.
19627 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19629         * rtl.h (target_rtl): Add x_static_reg_base_value.
19630         * alias.c (static_reg_base_value): Redefine as a macro.
19632 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19634         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
19635         (GTFILES): Remove reginfo.c.
19636         * rtl.h (target_rtl): Add x_top_of_stack.
19637         (top_of_stack): New macro.
19638         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
19639         (top_of_stack): Delete.
19641 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19643         * regs.h (target_regs): Add x_hard_regs_of_mode,
19644         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
19645         x_may_move_out_cost and x_last_mode_for_init_move_cost.
19646         (have_regs_of_mode, contains_reg_of_mode, move_cost)
19647         (may_move_in_cost, may_move_out_cost): Redefine as macros.
19648         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
19649         (may_move_in_cost, may_move_out_cost): Delete.
19650         (last_mode_for_init_move_cost): Redefine as a macro.
19652 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19654         * hard-reg-set.h (target_hard_regs): New structure.
19655         (default_target_hard_regs): Declare.
19656         (this_target_hard_regs): Declare as a variable or define as a macro.
19657         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
19658         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
19659         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
19660         (reg_class_size, reg_class_subclasses, reg_class_subunion)
19661         (reg_class_superunion, reg_names): Redefine as macros.
19662         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
19663         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
19664         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
19665         (reg_class_contents, reg_class_size, reg_class_subclasses)
19666         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
19667         (default_target_hard_regs): New variable
19668         (this_target_hard_regs, initial_call_really_used_regs)
19669         (initial_reg_alloc_order): New conditional variables.
19670         (initial_reg_names): New variable.
19671         (init_reg_sets): Assert that initial_call_really_used_regs,
19672         initial_reg_alloc_order and initial_reg_names
19673         are all the same size as their variable counterparts.  Use them to
19674         initialize those counterparts.
19675         * target-globals.h (this_target_hard_regs): Declare.
19676         (target_globals): Add a hard_regs field.
19677         (restore_target_globals): Copy the hard_regs field to
19678         this_target_hard_regs.
19679         * target-globals.c: Include hard-reg-set.h.
19680         (default_target_globals): Initialize the hard_regs field.
19681         (save_target_globals): Likewise.
19683 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19685         * Makefile.in (target-globals.o): Depend on $(RTL_H).
19686         * rtl.h (target_rtl): New structure.
19687         (default_target_rtl): Declare.
19688         (this_target_rtl): Declare as a variable or define as a macro.
19689         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
19690         Redefine as macros.
19691         * emit-rtl.c (default_target_rtl): New variable.
19692         (this_target_rtl): New conditional variable.
19693         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
19694         (return_address_pointer_rtx): Delete.
19695         (initial_regno_reg_rtx): New macro.
19696         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
19697         (init_emit_regs): Likewise.
19698         * target-globals.h (this_target_rtl): Declare.
19699         (target_globals): Add a rtl field.
19700         (restore_target_globals): Copy the rtl field to this_target_rtl.
19701         * target-globals.c: Include rtl.h.
19702         (default_target_globals): Initialize the rtl field.
19703         (save_target_globals): Likewise.
19705 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19707         * Makefile.in (target-globals.o): Depend on $(REGS_H).
19708         * regs.h (target_reg_modes): New structure.
19709         (default_target_reg_modes): Declare.
19710         (this_target_reg_modes): Declare as a variable or define as a macro.
19711         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
19712         * reginfo.c (default_target_reg_modes): New variable.
19713         (this_target_reg_modes): New conditional variable.
19714         (hard_regno_nregs, reg_raw_mode): Delete.
19715         * target-globals.h (this_target_regs): Declare.
19716         (target_globals): Add a regs field.
19717         (restore_target_globals): Copy the regs field to this_target_regs.
19718         * target-globals.c: Include regs.h.
19719         (default_target_globals): Initialize the regs field.
19720         (save_target_globals): Likewise.
19722 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
19724         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
19725         * doc/tm.texi: Regenerate.
19726         * Makefile.in (OBJS-common): Add target-globals.o.
19727         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
19728         and target-globals.h.
19729         (target-globals.o): New rule.
19730         (GTFILES): Include $(srcdir)/target-globals.h.
19731         * defaults.h (SWITCHABLE_TARGET): Define.
19732         * gengtype.c (open_base_files): Add target-globals.h to the
19733         list of includes.
19734         * target-globals.h: New file.
19735         * target-globals.c: Likewise.
19737         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
19738         * flags.h (target_flag_state): New structure.
19739         (default_target_flag_state): Declare.
19740         (this_target_flag_state): Declare as a variable or define as a macro.
19741         (align_loops_log): Redefine as a macro.
19742         (align_loops_max_skip, align_jumps_log): Likewise.
19743         (align_jumps_max_skip, align_labels_log): Likewise.
19744         (align_labels_max_skip, align_functions_log): Likewise.
19745         * toplev.c (default_target_flag_state): New variable.
19746         (this_target_flag_state): New conditional variable.
19747         (align_loops_log): Delete.
19748         (align_loops_max_skip, align_jumps_log): Likewise.
19749         (align_jumps_max_skip, align_labels_log): Likewise.
19750         (align_labels_max_skip, align_functions_log): Likewise.
19751         * target-globals.h (this_target_flag_state): Declare.
19752         (target_globals): Add a flag_state field.
19753         (restore_target_globals): Copy the flag_state field to
19754         this_target_flag_state.
19755         * target-globals.c: Include flags.h.
19756         (default_target_globals): Initialize the flag_state field.
19757         (save_target_globals): Likewise.
19759 2010-07-12  Jie Zhang  <jie@codesourcery.com>
19761         * postreload.c (reg_symbol_ref[]): New.
19762         (move2add_use_add2_insn): New.
19763         (move2add_use_add3_insn): New.
19764         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
19765         (move2add_note_store): Likewise.
19767 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
19769         PR rtl-optimization/44752
19770         * genautomata.c (main): Don't emit an empty file even if there
19771         is no automaton.
19773 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19775         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
19776         ix86_solaris_return_in_memory.
19777         * config/i386-protos.h: Reflect this.
19778         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
19779         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
19780         Move ...
19781         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
19783 2010-07-12  Jie Zhang  <jie@codesourcery.com>
19785         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
19786         align the stack when it's going to be saved.
19788 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19790         PR pch/14940
19791         * config/host-solaris.c (mmap_fixed): New function.
19792         (sol_gt_pch_get_address): Use it.
19793         (sol_gt_pch_use_address): Likewise.
19795 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19797         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19798         pentiumpro on Solaris 8 and 9/x86.
19799         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
19800         Document SSE/SSE2 support.
19801         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
19803 2010-07-12  Andi Kleen  <ak@linux.intel.com>
19805         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
19806         instead of gcc_assert to print better error message for multiple
19807         prevailing defs.
19809 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
19811         * config/i386/i386.c (ix86_asm_output_function_label): Change format
19812         string placeholder from 0x%x to %#x.
19813         (ix86_code_end): Use putc to output '\n'.
19814         (ix86_print_operand) <case ';'>: Use putc to output ';'.
19816 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
19818         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
19819         in directive -export.
19821 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
19823         * reginfo.h (reg_classes_intersect_p): Change arguments type to
19824         reg_class_t.
19825         * rtl.h (reg_classes_intersect_p): Adjust prototype.
19827         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19828         Remove macros.
19829         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
19830         rs6000_memory_move_cost): Remove
19831         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
19832         TARGET_MEMORY_MOVE_COST): Define.
19833         (rs6000_register_move_cost): Make static. Change arguments type from
19834         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
19835         (rs6000_memory_move_cost): Make static. Change arguments type from
19836         'enum reg_class' to reg_class_t.
19838 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
19840         PR middle-end/42505
19841         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
19842         lookup code into....
19843         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
19844         new functions.
19845         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
19846         * cfgloopanal.c (target_clobbered_regs): Define.
19847         (init_set_costs): Initialize target_clobbered_regs.
19848         (estimate_reg_pressure_cost): Add call_p argument.  When true,
19849         adjust the number of available registers to exclude the
19850         call-clobbered registers.
19851         * cfgloop.h (target_clobbered_regs): Declare.
19852         (estimate_reg_pressure_cost): Adjust declaration.
19853         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
19854         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
19855         (determine_set_costs): Dump target_clobbered_regs.
19856         (loop_body_includes_call): New function.
19857         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
19858         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
19859         call_p flag through.
19860         (best_gain_for_invariant): Likewise.
19861         (find_invariants_to_move): Likewise.
19862         (move_single_loop_invariants): Likewise, using already-computed
19863         has_call field.
19865 2010-07-10  Richard Guenther  <rguenther@suse.de>
19866             Joern Rennecke  <joern.rennecke@embecosm.com>
19868         PR debug/44832
19869         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
19870         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
19871         unless they have DECL_IGNORED_P set.
19873 2010-07-10  Richard Guenther  <rguenther@suse.de>
19875         PR lto/44889
19876         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
19877         helper function.
19878         (gimple_types_compatible_p): Similar to pointed-to
19879         types allow and merge a mix of complete and incomplete aggregate.
19880         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
19881         (iterative_hash_gimple_type): Adjust for that.
19883 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
19885         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
19887 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
19889         PR objc/44140
19890         * config/darwin.c (output_objc_section_asm_op): Save and restore
19891         section when outputting ObjC section list.
19893 2010-07-09  Jan Hubicka  <jh@suse.cz>
19895         * lto-streamer-out.c (produce_symtab): Do not write alias
19896         cgraph/varpool nodes.
19898 2010-07-09  Jan Hubicka  <jh@suse.cz>
19900         * tree-inline.c (declare_return_variable): Fix ICE while
19901         inlining DECL_BY_VALUE function not in SSA form
19903 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
19905         PR tree-optimization/44576
19906         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
19907         New.  Pull out from is_loop_prefetching_profitable to implement
19908         the trip count to ahead ratio heuristic.
19909         (mem_ref_count_reasonable_p): New.  Pull out from
19910         is_loop_prefetching_profitable to implement the instruction to
19911         memory reference ratio heuristic.  Also consider not reasonable if
19912         the memory reference count is above a threshold (to avoid
19913         explosive compilation time.
19914         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
19915         is_loop_prefetching_profitable to implement the instruction to
19916         prefetch ratio heuristic.
19917         (is_loop_prefetching_profitable): Removed.
19918         (loop_prefetch_arrays): Distribute the cost analysis across the
19919         function to allow early exit of the prefetch analysis.
19920         is_loop_prefetching_profitable is splitted into three functions,
19921         with each one called as early as possible.
19922         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
19923         number of memory references in a loop is considered too many.
19925 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
19927         * reload.c (find_reloads): Don't clear badop if we have a winreg
19928         alternative, but not win, and the class only has fixed regs.
19929         * hard-reg-set.h (class_only_fixed_regs): Declare.
19930         * reginfo.c (class_only_fixed_regs): New array.
19931         (init_reg_sets_1): Initialize it.
19932         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
19933         discourage alternatives using the stack pointer.
19935         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
19937         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
19939         * config/arm/arm.md (cbranchqi4): Fix array size.
19940         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
19941         calculating length.
19943 2010-07-09  Richard Guenther  <rguenther@suse.de>
19945         * gimple.c (struct type_fixup_s): New struct and VEC type.
19946         (gimple_register_type_fixups): New static global.
19947         (gimple_queue_type_fixup): New function.
19948         (gimple_types_compatible_p): Queue type fixups instead of
19949         applying them here.
19950         (gimple_register_type): Apply queued fixups for the
19951         canonical type.  Empty the type fixup queue.
19953 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19955         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
19956         * configure: Regenerate.
19957         * config.in: Ditto.
19959 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
19960             Denys Vlasenko  <dvlasenk@redhat.com>
19961             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19963         PR tree-optimization/28632
19964         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
19965         (extract_range_from_binary_expr): Further optimize
19966         BIT_AND_EXPR and BIT_IOR_EXPR.
19968 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
19970         * tree-if-conv.c (fold_or_predicates): New.
19971         (add_to_predicate_list): Call it.
19973 2010-07-09  Richard Guenther  <rguenther@suse.de>
19975         PR middle-end/44890
19976         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
19977         if base is a pointer.
19978         * tree-cfg.c (verify_expr): Update MEM_REF checking.
19980 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
19982         PR target/44877
19983         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
19984         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
19985         builtin mask for load/store builtins.
19987 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19989         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
19990         for "lock addl".
19991         * configure: Regenerate.
19992         * config/i386/i386.c (ix86_print_operand) <case ';'>:
19993         Remove TARGET_MACHO.
19995 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
19997         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
19998         default ISA flags.
19999         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
20001 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
20003         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
20005 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
20007         * config/picochip/picochip.md (commsTestPort): Emit more
20008         efficient sequence for tstport instruction.
20010 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
20012         * config/i386/i386.c (ix86_veclib_handler): Make static.
20014 2010-07-09  Richard Guenther  <rguenther@suse.de>
20016         PR tree-optimization/44852
20017         * tree-ssa-alias.c: Include toplev.h for exact_log2.
20018         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
20019         in MEM_REF.
20020         (indirect_refs_may_alias_p): Likewise.
20021         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
20023 2010-07-09  Richard Guenther  <rguenther@suse.de>
20025         PR tree-optimization/44882
20026         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
20027         sets do conflict.
20028         (vectorizable_load): Likewise.
20030 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
20032         PR target/40657
20033         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
20034         All callers changed.
20035         Handle the case when we're called for the epilogue.
20036         (thumb_unexpanded_epilogue): Use it.
20037         (thumb1_expand_epilogue): Likewise.
20039 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
20041         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
20042         both ranges are range_int_cst_p with non-negative minimum,
20043         try harder to derive smaller range.
20045 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20047         * genrecog.c: Include diagnostic-core.h before toplev.h.
20048         * genoutput.c: Likewise.
20049         * genextract.c: Likewise.
20050         * genautomata.c: Likewise.
20051         * genemit.c: Likewise.
20052         * genpeep.c: Likewise.
20053         * genattrtab.c: Likewise.
20054         * genconditions.c: Likewise.
20055         * genpreds.c: Likewise.
20057 2010-07-08  Andi Kleen  <ak@linux.intel.com>
20059         * lto-section-in.c (lto_section_name): Add missing comma.
20061 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
20063         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
20064         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
20065         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
20066         (ia64_override_options): Rename to...
20067         (ia64_option_override): ... this one. Make static.
20069 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20071         PR middle-end/44843
20072         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
20073         pointed-to type of the offset in a MEM_REF to compute the alignment.
20075 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
20077         * final.c (final_scan_insn): Replace
20078         TARGET_UNWIND_INFO macro check by unwind_emit
20079         hook NULL check.
20080         * targhooks.c (default_unwind_emit): Removed.
20081         * targhooks.h (default_unwind_emit): Likewise.
20082         * target.def (unwind_emit): Set default value to NULL.
20084         * config/i386/i386-protos.h (ix86_asm_output_function_label):
20085         New prototype.
20086         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
20087         for NULL fntype argument and allow 64-bit targets.
20088         (ix86_asm_output_function_label): New function.
20089         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
20090         (ix86_handle_fndecl_attribute): Likewise.
20091         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
20092         * doc/doc/tm.texi: Regenerated.
20093         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
20094         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
20095         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
20096         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
20097         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
20098         * config/elfos.h: Likewise.
20099         * config/i386/cygming.h: Likewise.
20100         * config/netbsd-aout.h: Likewise.
20101         * config/openbsd.h: Likewise.
20102         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
20103         by ix86_asm_output_function_label function call.
20104         * varasm.c (assemble_start_function): Use
20105         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
20107 2010-07-08  Jan Hubicka  <jh@suse.cz>
20109         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
20110         New function.
20111         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
20112         Declare.
20113         * ipa-cp.c (ipcp_estimate_growth): Use it.
20114         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
20115         Likewise.
20117 2010-07-08  Jan Hubicka  <jh@suse.cz>
20119         * tree-inline.c (declare_return_variable): Allocate annotation for new
20120         temporary.
20122 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
20124         PR tree-optimization/44710
20125         * tree-if-conv.c (parse_predicate): New.
20126         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
20127         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
20129 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
20131         * common.opt (ftree-loop-if-convert): New flag.
20132         * doc/invoke.texi (ftree-loop-if-convert): Documented.
20133         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
20134         when flag_tree_loop_if_convert is set.
20136 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
20138         * config/i386/i386.c: Use short syntax for function calls
20139         through function pointers.
20140         * config/i386/i386.md: Ditto.
20142 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20144         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
20146 2010-07-08  Richard Guenther  <rguenther@suse.de>
20148         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
20149         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
20151 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
20153         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
20154         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
20155         (loc_list_from_tree): Likewise.
20156         (output_loc_operands): Handle outputting DW_OP_const[48]u
20157         with loc->dtprel set.
20158         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
20160 2010-07-08  Jan Hubicka  <jh@suse.cz>
20162         * ipa.c: Include pointer-set.h
20163         (cgraph_externally_visible_p): New attribute ALIASED;
20164         when in LTO, hidden symbols are local unless they are aliased.
20165         (function_and_variable_visibility): Compute aliased nodes;
20166         handle LTO and hidden symbol on functions and vars.
20167         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
20168         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
20170 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20172         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
20173         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20174         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20175         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20176         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20177         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
20178         (ix86_gen_probe_stack_range): Likewise.
20179         (override_options): Set them.
20180         (ix86_target_stack_probe): New function.
20181         (ix86_compute_frame_layout): Force use of push instructions to
20182         save registers if stack checking with probes is enabled.
20183         (get_scratch_register_on_entry): New function.
20184         (release_scratch_register_on_entry): Likewise.
20185         (ix86_adjust_stack_and_probe): Likewise.
20186         (output_adjust_stack_and_probe): Likewise.
20187         (ix86_emit_probe_stack_range): Likewise.
20188         (output_probe_stack_range): Likewise.
20189         (ix86_expand_prologue): Emit stack checking code if static built-in
20190         stack checking is enabled.
20191         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
20192         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
20193         (output_adjust_stack_and_probe): Likewise.
20194         (output_probe_stack_range): Likewise.
20195         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
20196         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
20197         TARGET_STACK_PROBE.
20198         (allocate_stack_worker_64): Likewise.
20199         (allocate_stack): Likewise.
20200         (adjust_stack_and_probe): New insn.
20201         (probe_stack_range): Likewise.
20203 2010-07-08  Richard Guenther  <rguenther@suse.de>
20205         PR tree-optimization/44831
20206         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
20207         a MEM_REF preserving TBAA info of the original dereference.
20208         Dereference the original pointer if the address is not invariant.
20209         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
20210         at least one invariant address that we are going to dereference.
20212 2010-07-08  Richard Guenther  <rguenther@suse.de>
20214         PR tree-optimization/44861
20215         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
20216         information when building MEM_REFs.
20217         (vectorizable_load): Likewise.
20218         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
20220 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20222         * config/sol2-c.c: Do not include diagnostic-core.h.
20224 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20226         PR bootstrap/44768
20227         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
20228         with respect to current_function_decl. Pass decl of the function.
20229         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
20230         * ipa-inline.c (compute_inline_parameters): Pass decl to
20231         estimated_stack_frame_size.
20233 2010-07-08  Richard Guenther  <rguenther@suse.de>
20235         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
20236         New function.
20237         (valueize_refs): Call it.
20239 2010-07-08  Richard Guenther  <rguenther@suse.de>
20241         PR rtl-optimization/44838
20242         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
20243         SSA form do not use pointer equivalence.
20245 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
20247         * dwarf2out.c (AT_linkage_name): Delete.
20248         (add_linkage_attr): New function.
20249         (add_linkage_name): Call it to emit the linkage attribute.
20250         (dwarf2out_finish): Likewise.
20251         (move_linkage_attr): Explicitly accept both attribute variants.
20253 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20255         * toplev.h: Do not include diagnostic-core.h.
20256         Include diagnostic-core.h in every file that includes toplev.h.
20257         * c-tree.h: Do not include toplev.h.
20258         * pretty-print.h: Update comment.
20259         * Makefile.in: Update dependencies.
20260         * alias.c: Include diagnostic-core.h in every file that includes
20261         toplev.h.
20262         * attribs.c: Likewise.
20263         * auto-inc-dec.c: Likewise.
20264         * bb-reorder.c: Likewise.
20265         * bt-load.c: Likewise.
20266         * caller-save.c: Likewise.
20267         * calls.c: Likewise.
20268         * cfg.c: Likewise.
20269         * cfganal.c: Likewise.
20270         * cfgbuild.c: Likewise.
20271         * cfgcleanup.c: Likewise.
20272         * cfghooks.c: Likewise.
20273         * cfgloop.c: Likewise.
20274         * combine.c: Likewise.
20275         * config/alpha/alpha.c: Likewise.
20276         * config/arc/arc.c: Likewise.
20277         * config/arm/arm.c: Likewise.
20278         * config/arm/pe.c: Likewise.
20279         * config/avr/avr.c: Likewise.
20280         * config/bfin/bfin.c: Likewise.
20281         * config/cris/cris.c: Likewise.
20282         * config/crx/crx.c: Likewise.
20283         * config/darwin-c.c: Likewise.
20284         * config/darwin.c: Likewise.
20285         * config/fr30/fr30.c: Likewise.
20286         * config/frv/frv.c: Likewise.
20287         * config/h8300/h8300.c: Likewise.
20288         * config/host-darwin.c: Likewise.
20289         * config/i386/i386.c: Likewise.
20290         * config/i386/netware.c: Likewise.
20291         * config/i386/nwld.c: Likewise.
20292         * config/i386/winnt-cxx.c: Likewise.
20293         * config/i386/winnt-stubs.c: Likewise.
20294         * config/i386/winnt.c: Likewise.
20295         * config/ia64/ia64-c.c: Likewise.
20296         * config/ia64/ia64.c: Likewise.
20297         * config/iq2000/iq2000.c: Likewise.
20298         * config/lm32/lm32.c: Likewise.
20299         * config/m32c/m32c-pragma.c: Likewise.
20300         * config/m32c/m32c.c: Likewise.
20301         * config/m32r/m32r.c: Likewise.
20302         * config/m68hc11/m68hc11.c: Likewise.
20303         * config/m68k/m68k.c: Likewise.
20304         * config/mcore/mcore.c: Likewise.
20305         * config/mep/mep-pragma.c: Likewise.
20306         * config/mep/mep.c: Likewise.
20307         * config/mmix/mmix.c: Likewise.
20308         * config/mn10300/mn10300.c: Likewise.
20309         * config/moxie/moxie.c: Likewise.
20310         * config/pa/pa.c: Likewise.
20311         * config/pdp11/pdp11.c: Likewise.
20312         * config/picochip/picochip.c: Likewise.
20313         * config/rs6000/rs6000-c.c: Likewise.
20314         * config/rs6000/rs6000.c: Likewise.
20315         * config/rx/rx.c: Likewise.
20316         * config/s390/s390.c: Likewise.
20317         * config/score/score.c: Likewise.
20318         * config/score/score3.c: Likewise.
20319         * config/score/score7.c: Likewise.
20320         * config/sh/sh.c: Likewise.
20321         * config/sh/symbian-base.c: Likewise.
20322         * config/sh/symbian-c.c: Likewise.
20323         * config/sh/symbian-cxx.c: Likewise.
20324         * config/sol2-c.c: Likewise.
20325         * config/sol2.c: Likewise.
20326         * config/sparc/sparc.c: Likewise.
20327         * config/spu/spu.c: Likewise.
20328         * config/stormy16/stormy16.c: Likewise.
20329         * config/v850/v850-c.c: Likewise.
20330         * config/v850/v850.c: Likewise.
20331         * config/vax/vax.c: Likewise.
20332         * config/vxworks.c: Likewise.
20333         * config/xtensa/xtensa.c: Likewise.
20334         * convert.c: Likewise.
20335         * cse.c: Likewise.
20336         * cselib.c: Likewise.
20337         * dbgcnt.c: Likewise.
20338         * dbxout.c: Likewise.
20339         * ddg.c: Likewise.
20340         * dominance.c: Likewise.
20341         * emit-rtl.c: Likewise.
20342         * explow.c: Likewise.
20343         * expmed.c: Likewise.
20344         * fixed-value.c: Likewise.
20345         * fold-const.c: Likewise.
20346         * fwprop.c: Likewise.
20347         * gcse.c: Likewise.
20348         * ggc-common.c: Likewise.
20349         * ggc-page.c: Likewise.
20350         * ggc-zone.c: Likewise.
20351         * gimple-low.c: Likewise.
20352         * gimplify.c: Likewise.
20353         * graph.c: Likewise.
20354         * haifa-sched.c: Likewise.
20355         * ifcvt.c: Likewise.
20356         * implicit-zee.c: Likewise.
20357         * integrate.c: Likewise.
20358         * ira-build.c: Likewise.
20359         * ira-color.c: Likewise.
20360         * ira-conflicts.c: Likewise.
20361         * ira-costs.c: Likewise.
20362         * ira-lives.c: Likewise.
20363         * ira.c: Likewise.
20364         * lists.c: Likewise.
20365         * loop-doloop.c: Likewise.
20366         * loop-iv.c: Likewise.
20367         * lto-opts.c: Likewise.
20368         * lto-symtab.c: Likewise.
20369         * main.c: Likewise.
20370         * modulo-sched.c: Likewise.
20371         * optabs.c: Likewise.
20372         * params.c: Likewise.
20373         * plugin.c: Likewise.
20374         * postreload-gcse.c: Likewise.
20375         * postreload.c: Likewise.
20376         * predict.c: Likewise.
20377         * profile.c: Likewise.
20378         * real.c: Likewise.
20379         * regcprop.c: Likewise.
20380         * reginfo.c: Likewise.
20381         * regmove.c: Likewise.
20382         * reorg.c: Likewise.
20383         * resource.c: Likewise.
20384         * rtl.c: Likewise.
20385         * rtlanal.c: Likewise.
20386         * sched-deps.c: Likewise.
20387         * sched-ebb.c: Likewise.
20388         * sched-rgn.c: Likewise.
20389         * sdbout.c: Likewise.
20390         * sel-sched-dump.c: Likewise.
20391         * sel-sched-ir.c: Likewise.
20392         * simplify-rtx.c: Likewise.
20393         * stmt.c: Likewise.
20394         * stor-layout.c: Likewise.
20395         * store-motion.c: Likewise.
20396         * targhooks.c: Likewise.
20397         * tree-cfg.c: Likewise.
20398         * tree-cfgcleanup.c: Likewise.
20399         * tree-dump.c: Likewise.
20400         * tree-eh.c: Likewise.
20401         * tree-inline.c: Likewise.
20402         * tree-nomudflap.c: Likewise.
20403         * tree-object-size.c: Likewise.
20404         * tree-optimize.c: Likewise.
20405         * tree-outof-ssa.c: Likewise.
20406         * tree-phinodes.c: Likewise.
20407         * tree-profile.c: Likewise.
20408         * tree-ssa-ccp.c: Likewise.
20409         * tree-ssa-coalesce.c: Likewise.
20410         * tree-ssa-live.c: Likewise.
20411         * tree-ssa-loop-niter.c: Likewise.
20412         * tree-ssa-loop-prefetch.c: Likewise.
20413         * tree-ssa-loop.c: Likewise.
20414         * tree-ssa-structalias.c: Likewise.
20415         * tree-ssa-uninit.c: Likewise.
20416         * tree-ssa.c: Likewise.
20417         * tree-vect-data-refs.c: Likewise.
20418         * tree-vect-loop-manip.c: Likewise.
20419         * tree-vect-loop.c: Likewise.
20420         * tree-vect-patterns.c: Likewise.
20421         * tree-vect-stmts.c: Likewise.
20422         * tree-vrp.c: Likewise.
20423         * varasm.c: Likewise.
20424         * vec.c: Likewise.
20425         * web.c: Likewise.
20426         * xcoffout.c: Likewise.
20428 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
20430         * gengtype.c (write_field_root): New function.
20431         (write_root): Use it.
20433 2010-07-07  Wei Guozhi  <carrot@google.com>
20435         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
20436         of lowest bits to lshift/compare): Add a missing line.
20438 2010-07-07  Wei Guozhi  <carrot@google.com>
20440         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
20441         of lowest bits to lshift/compare): New.
20443 2010-07-07  Tom Tromey  <tromey@redhat.com>
20445         * doc/tm.texi: Update.
20446         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
20447         Add @hook.
20448         * target.def (want_debug_pub_sections): New hook.
20449         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
20450         * dwarf2out.c (add_pubname_string): Check
20451         targetm.want_debug_pub_sections.
20452         (add_pubname): Likewise.
20453         (add_pubtype): Likewise.
20455 2010-07-07  Jie Zhang  <jie@codesourcery.com>
20457         * genautomata.c (output_automata_list_min_issue_delay_code):
20458         Correctly decompress min_issue_delay.
20460 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
20462         PR rtl-optimization/44404
20463         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
20464         possible, use reg_overlap_mentioned_p instead.
20466 2010-07-07  Duncan Sands  <baldrick@free.fr>
20468         PR middle-end/41355
20469         * tree.c (build_function_type_skip_args): Copy the original type using
20470         build_distinct_type_copy rather than copy_node.
20472 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
20474         PR target/44850
20475         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
20476         revision 161876.
20477         (ix86_expand_prologue): Likewise.
20478         (ix86_handle_fndecl_attribute): Likewise.
20479         (ix86_asm_declare_function_name): Likewise.
20480         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20481         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
20482         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
20483         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
20484         * doc/extend.texi: Likewise.
20486 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
20488         PR target/44844
20489         * config/i386/i386.md (rdrand<mode>): Changed to expand to
20490         retry if the carry flag isn't valid.
20491         (rdrand<mode>_1): New.
20493 2010-07-07  Richard Guenther  <rguenther@suse.de>
20495         PR middle-end/44790
20496         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
20497         for expanding the constant offset for MEM_REFs.
20499 2010-07-07  Richard Guenther  <rguenther@suse.de>
20501         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
20502         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
20503         * gimple.h (is_gimple_operand): Remove.
20504         * gimple.c (is_gimple_operand): Likewise.
20505         (walk_gimple_op): Fix wi->val_only setting for calls.
20506         * tree-cfg.c (verify_gimple_call): Fix argument validation.
20507         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
20508         invalid gimple calls.
20510 2010-07-06  Jan Hubicka  <jh@suse.cz>
20512         * lto-cgraph.c (output_cgraph): Add missing declaration.
20514 2010-07-06  Jan Hubicka  <jh@suse.cz>
20516         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
20517         partition.
20519 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
20521         * doc/gimple.texi (GIMPLE_DEBUG): Document.
20522         * doc/rtl.texi (Debug Information): New node.
20523         (NOTE_INSN_VAR_LOCATION): Document.
20524         (debug_insn): Likewise.
20525         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
20527 2010-07-07  Jan Hubicka  <jh@suse.cz>
20529         With parts by Richard Guenther.
20531         PR middle-end/44813
20532         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
20533         for functions passed by reference.
20534         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
20535         in memory when passed by reference.
20536         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
20537         beggining.
20538         * ipa-split.c (split_function): Cleanup way return value is passed;
20539         handle SSA DECL_BY_REFERENCE retvals.
20540         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
20541         DECL_BY_REFERENCE is set.
20542         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
20543         find_what_p_points_to): Handle RESULT_DECL.
20544         * tree-inline.c (declare_return_variable): Get new entry_block argument;
20545         when passing by reference ensure that RESULT_DECL is gimple_val.
20546         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
20547         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
20549 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
20551         PR rtl-optimization/44787
20552         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
20553         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
20555 2010-07-06  Jan Hubicka  <jh@suse.cz>
20557         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
20558         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
20559         with body can prevail.
20560         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
20561         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
20562         * cgraph.c (cgraph_get_node_or_alias): New function.
20563         * cgraph.h (cgraph_get_node_or_alias): Declare.
20565 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
20567         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
20568         support.
20569         (ix86_expand_prologue): Likewise.
20570         (ix86_handle_fndecl_attribute): Likewise.
20571         (ix86_asm_declare_function_name): New function for
20572         ASM_DECLARE_FUNCTION_NAME.
20573         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
20574         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
20575         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
20576         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
20577         * doc/extend.texi: Adjust documentation about ms_hook_prologue
20578         attribute.
20580 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
20582         * config/i386/i386.md (immediate_operand): New mode attribute.
20584         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
20585         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
20586         using P mode iterator.
20587         (pro_epilogue_adjust_stack_di_2): Rename from
20588         pro_epilogue_adjust_stack_rex64_2.
20590         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
20592 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
20594         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
20595         through gen_mov_insv_1 function pointer.
20596         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
20597         gen_truncxf<mode>2 through gen_truncxf function pointer.
20598         (remainder<mode>3): Ditto.
20599         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
20600         (allocate_stack): Call gen_allocate_stack_worker_64 or
20601         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
20602         function pointer.
20603         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
20604         function pointer.
20606 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
20608         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
20609         operand constraint instead of <r><i>m.
20611 2010-07-06  Richard Guenther  <rguenther@suse.de>
20613         PR middle-end/44828
20614         * convert.c (convert_to_integer): Watch out for overflowing
20615         MULT_EXPR as well.
20617 2010-07-05  Jan Hubicka  <jh@suse.cz>
20619         * lto-streamer.c (write_symbol_vec): Rename to ...
20620         (write_symbol) ... this one; write only symbol given and when
20621         present in cache. Sanity check that what is defined is present
20622         in cgraph/varpool with body/finalized decl.
20623         (write_symbols_of_kind): Remove.
20624         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
20625         pairs to produce symtab.
20626         (produce_asm_for_decls): Update call of produce_symtab; don't do so
20627         when doing WPA streaming.
20629 2010-07-05  Jan Hubicka  <jh@suse.cz>
20631         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
20632         function is still available to fold into.
20634 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20636         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
20637         * function.h (struct_function): Change type of local_decls field
20638         to a VEC.
20639         (add_local_decl): New function.
20640         (FOR_EACH_LOCAL_DECL): New macro.
20641         * cfgexpand.c (init_vars_expansion): Adjust for new type of
20642         cfun->local_decls.
20643         (estimated_stack_frame_size): Likewise.
20644         (expand_used_vars): Likewise.
20645         * cgraphbuild.c (build_cgraph_edges): Likewise.
20646         * function.c (instantiate_decls_1): Likewise.
20647         * ipa-struct-reorg.c (build_data_structure): Likewise.
20648         * ipa-type-escape.c (analyze_function): Likewise.
20649         * lto-streamer-in.c (input_function): Likewise.
20650         * lto-streamer-out.c (output_function): Likewise.
20651         * tree-ssa-live.c (remove_unused_locals): Likewise.
20652         * tree.c (free_lang_data_in_decl): Likewise.
20653         (find_decls_types_in_node): Likewise.
20654         * omp-low.c (remove_exit_barrier): Likewise.
20655         (expand_omp_taskreg): Likewise.
20656         (list2chain): Rename to...
20657         (vec2chain): ...this.  Adjust.
20658         * cgraphunit.c (assemble_thunk): Call add_local_decl.
20659         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
20660         * gimple-low.c (record_vars_into): Likewise.
20661         * tree-inline.c (remap_decls): Likewise.
20662         (declare_return_variable): Likewise.
20663         (declare_inline_vars): Likewise.
20664         (copy_forbidden): Adjust for new type of cfun->local_decls.
20665         (add_local_variables): New function.
20666         (expand_call_inline): Call it.
20667         (tree_function_versioning): Likewise.
20669 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
20671         AVX Programming Reference (June, 2010)
20672         * config/i386/cpuid.h (bit_F16C): New.
20673         (bit_RDRND): Likewise.
20674         (bit_FSGSBASE): Likewise.
20676         * config/i386/i386-builtin-types.def: Add
20677         "DEF_FUNCTION_TYPE (UINT16)", function types for
20678         float16 <-> float conversions and
20679         "DEF_FUNCTION_TYPE (VOID, UINT64)".
20681         * config/i386/i386-c.c (ix86_target_macros_internal): Support
20682         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
20683         OPTION_MASK_ISA_F16C.
20685         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
20686         (OPTION_MASK_ISA_RDRND_SET): Likewise.
20687         (OPTION_MASK_ISA_F16C_SET): Likewise.
20688         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
20689         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
20690         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
20691         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
20692         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
20693         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
20694         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
20695         (override_options): Handle them.
20696         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
20697         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
20698         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
20699         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
20700         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
20701         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
20702         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
20703         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
20704         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
20705         (bdesc_args): Likewise.
20706         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
20707         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
20708         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
20709         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
20710         Handle non-memory store.
20712         * config/i386/i386.h (TARGET_FSGSBASE): New.
20713         (TARGET_RDRND): Likewise.
20714         (TARGET_F12C): Likewise.
20716         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
20717         (UNSPEC_VCVTPS2PH): Likewise.
20718         (UNSPECV_RDFSBASE): Likewise.
20719         (UNSPECV_RDGSBASE): Likewise.
20720         (UNSPECV_WRFSBASE): Likewise.
20721         (UNSPECV_WRGSBASE): Likewise.
20722         (UNSPECV_RDRAND): Likewise.
20723         (rdfsbase<mode>): Likewise.
20724         (rdgsbase<mode>): Likewise.
20725         (wrfsbase<mode>): Likewise.
20726         (wrgsbase<mode>): Likewise.
20727         (rdrand<mode>): Likewise.
20729         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
20731         * config/i386/immintrin.h (_rdrand_u16): New.
20732         (_rdrand_u32): Likewise.
20733         (_readfsbase_u32): Likewise.
20734         (_readfsbase_u64): Likewise.
20735         (_readgsbase_u32): Likewise.
20736         (_readgsbase_u64): Likewise.
20737         (_writefsbase_u32): Likewise.
20738         (_writefsbase_u64): Likewise.
20739         (_writegsbase_u32): Likewise.
20740         (_writegsbase_u64): Likewise.
20741         (_rdrand_u64): Likewise.
20742         (_cvtsh_ss): Likewise.
20743         (_mm_cvtph_ps): Likewise.
20744         (_mm256_cvtph_ps): Likewise.
20745         (_cvtss_sh): Likewise.
20746         (_mm_cvtps_ph): Likewise.
20747         (_mm256_cvtps_ph): Likewise.
20749         * config/i386/sse.md (vcvtph2ps): New.
20750         (*vcvtph2ps_load): Likewise.
20751         (vcvtph2ps256): Likewise.
20752         (vcvtps2ph): Likewise.
20753         (*vcvtps2ph): Likewise.
20754         (*vcvtps2ph_store): Likewise.
20755         (vcvtps2ph256): Likewise.
20757         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
20759         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
20761 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
20763         PR bootstrap/44512
20764         * genenums.c (main): Output include of insn-constants.h
20765         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
20767 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
20769         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
20770         (override_options): Initialize it.
20771         (ix86_expand_prologue): Use it.
20773 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
20775         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
20777 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
20779         * double-int.h (fit_double_type): Remove declaration.
20780         * double-int.c (fit_double_type): Remove function.
20781         * tree.h (int_fits_type_p): Adjust prototype.
20782         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
20783         instead of fit_double_type.
20784         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
20785         instead of fit_double_type and build_int_cst_wide.
20786         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
20787         instead of fit_double_type and build_int_cst_wide.
20788         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
20789         of fit_double_type.
20791 2010-07-05  Jan Hubicka  <jh@suse.cz>
20793         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
20794         in_other_partition.
20795         * lto-cgraph.c (referenced_from_other_partition_p,
20796         reachable_from_other_partition_p): Use in_other_partition flags.
20797         (output_node, output_varpool_node): COMDAT nodes always have private
20798         copies and thus are never used from other partition.
20800 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
20802         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
20803         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
20804         * config/ia64/ia64.c Include reload.h.
20805         (ia64_memory_move_cost): New function.
20806         (TARGET_MEMORY_MOVE_COST): Define.
20807         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
20808         memory_move_cost.
20810 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
20812         PR middle-end/42505
20813         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
20814         comments about cost model.
20815         (try_add_cand_for):  Add second strategy for choosing initial set
20816         based on original IVs, controlled by ORIGINALP argument.
20817         (get_initial_solution): Add ORIGINALP argument.
20818         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
20819         (find_optimal_iv_set): Try two different strategies for choosing
20820         the IV set, and return the one with lower cost.
20822 2010-07-05  Richard Guenther  <rguenther@suse.de>
20824         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
20826 2010-07-05  Richard Guenther  <rguenther@suse.de>
20828         * tree.c (reference_alias_ptr_type): New function.
20829         * tree.h (reference_alias_ptr_type): Declare.
20830         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
20831         allow non-TARGET_MEM_REF new refs.
20832         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
20833         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
20834         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
20835         (create_mem_ref): Get alias pointer type.  Adjust calls to
20836         create_mem_ref_raw.
20837         (maybe_fold_tmr): Likewise.
20838         * tree-flow.h (create_mem_ref): Adjust prototype.
20840 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
20842         PR c++/44808
20843         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
20844         *from_p is VAR_DECL.
20846 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20848         * tree.h (build_call_list): Remove.
20849         * tree.c (build_call_list): Remove.
20851 2010-07-05  Richard Guenther  <rguenther@suse.de>
20853         * double-int.h (double_int_sub): Declare.
20854         * double-int.c (double_int_sub): New function.
20855         * dwarf2out.c (field_byte_offset): Use it.
20856         * fixed-value.c (do_fixed_add): Likewise.
20857         (do_fixed_multiply): Likewise.
20858         (do_fixed_divide): Likewise.
20859         * tree-predcom.c (add_ref_to_chain): Likewise.
20860         (determine_roots_comp): Likewise.
20861         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
20863 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20865         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
20866         implementations.
20868 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
20870         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
20871         * arm-modes.def (CC_NOTB): Don't define.
20872         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
20873         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
20874         (LTUGEU): New code_iterator.
20875         (cnb, optab): New corresponding code_attrs.
20876         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
20877         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
20878         using LTUGEU.
20879         (addsi3_carryin_shift_<optab>): Likewise.
20880         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
20881         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
20882         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
20883         (subsi3_compare): Renamed from subsi3_compare0_c.
20884         Change CC_NOTB to CC.
20885         (arm_subsi3_insn): Allow constants for operand 0.
20886         (compare_scc peephole for eq case): New.
20887         (compare_scc splitters): Change CC_NOTB to CC.
20889 2010-07-05  Richard Guenther  <rguenther@suse.de>
20891         * tree-ssa-loop-im.c (for_each_index): Do not handle
20892         ALIGN_INDIRECT_REF.
20893         (gen_lsm_tmp_name): Likewise.
20894         * tree-dump.c (dequeue_and_dump): Likewise.
20895         * tree-pretty-print.c (dump_generic_node): Likewise.
20896         (op_code_prio): Likewise.
20897         (op_symbol_code): Likewise.
20898         * tree.c (staticp): Likewise.
20899         (build1_stat): Likewise.
20900         * tree.h (INDIRECT_REF_P): Likewise.
20901         * fold-const.c (maybe_lvalue_p): Likewise.
20902         (operand_equal_p): Likewise.
20903         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
20904         (ao_ref_init_from_vn_reference): Likewise.
20905         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
20906         (find_interesting_uses_address): Likewise.
20907         * dwarf2out.c (loc_list_from_tree): Likewise.
20908         * gimplify.c (gimplify_expr): Likewise.
20909         * tree-eh.c (tree_could_trap_p): Likewise.
20910         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
20911         * cfgexpand.c (expand_debug_expr): Likewise.
20912         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
20913         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
20914         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
20915         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
20916         * tree-ssa-operands.c (get_expr_operands): Likewise.
20917         * expr.c (safe_from_p): Likewise.
20918         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
20919         * tree-vect-data-refs.c (vect_setup_realignment): Build
20920         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
20921         * tree-vect-stmts.c (vectorizable_load): Likewise.
20922         * tree.def (ALIGN_INDIRECT_REF): Remove.
20924 2010-07-05  Richard Guenther  <rguenther@suse.de>
20926         PR tree-optimization/44784
20927         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
20928         for inserted stmts.
20929         (find_or_generate_expression): Fix SCCVN insertion check.
20931 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
20933         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
20934         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
20935         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
20936         directives.
20938 2010-07-05  Ira Rosen  <irar@il.ibm.com>
20940         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
20941         statements that are not vectorized.
20942         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
20943         in INSIDE_COST.
20945 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
20947         PR bootstrap/44820
20948         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
20950 2010-07-05  Richard Guenther  <rguenther@suse.de>
20952         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
20953         RESULT_DECLs properly.
20955 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
20957         PR rtl-optimization/44695
20958         * config/i386/i386.md (extract_code): Removed.
20959         (<u>divmodqi4): Likewise.
20960         (divmodqi4): New.
20961         (udivmodqi4): Likewise.
20962         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
20963         (udivmodhiqi3): Likewise.
20965 2010-07-04  Jan Hubicka  <jh@suse.cz>
20967         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
20969 2010-07-04  Jan Hubicka  <jh@suse.cz>
20971         * cgraphunit.c (init_cgraph): Only initialize dump file if it
20972         is not already initialized.
20974 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20976         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
20977         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
20978         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
20979         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
20980         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
20981         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
20982         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
20983         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
20984         (sync_new_nand_optab): Redefine as macros.
20985         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
20986         Delete.
20987         (direct_optab_index): New enum.
20988         (direct_optab_d): New structure.
20989         (direct_optab): New typedef.
20990         (direct_optab_table): Declare.
20991         (direct_optab_handler, set_direct_optab_handler): New functions.
20992         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
20993         (sync_lock_release_optab): New macros.
20994         * optabs.c (direct_optab_table): New variable.
20995         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
20996         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
20997         cmpstr_optab and cmpstrn_optab.
20998         (emit_conditional_move): Likewise for movcc_optab.
20999         (can_conditionally_move_p): Likewise for movcc_gen_code.
21000         (init_insn_codes): Clear direct_optab_table.
21001         (init_optabs): Don't initialize the new "direct optabs" here.
21002         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
21003         vcond_gen_code.
21004         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
21005         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
21006         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
21007         (expand_sync_operation): Likewise other sync_*_optabs.
21008         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
21009         to sync_compare_and_swap_optab.
21010         (expand_sync_lock_test_and_set): Use direct_optab_handler for
21011         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
21012         to the names of both.
21013         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
21014         cmpstr_optab and cmpstrn_optab.
21015         (expand_builtin_lock_release): Likewise sync_lock_release.
21016         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
21017         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
21018         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
21019         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
21020         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
21021         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
21022         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
21023         (sync_lock_test_and_set, sync_lock_release): Delete.
21024         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
21025         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
21026         * genopinit.c (optabs): Use set_direct_optab_handler for the new
21027         macro optabs.
21028         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
21029         the "optab" local variable.  Use direct_optab_handler for optab and
21030         sync_compare_and_swap_optab.
21031         * reload1.c (reload_in_optab, reload_out_optab): Delete.
21032         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
21033         reload_in_optab and reload_out_optab.
21034         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
21035         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
21036         * config/pa/pa.c (pa_secondary_reload): Likewise.
21037         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
21038         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
21039         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
21040         (VMSupportsCS8_builtin): Likewise.
21042 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
21044         * optabs.h (optab_handlers): Change type of insn_code to int.
21045         (optab_handler, set_optab_handler, convert_optab_handler)
21046         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
21047         CODE_FOR_nothing".
21048         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
21049         (init_insn_codes): Zero both the above arrays.
21050         (init_optabs): Never call init_insn_codes first time around.
21052 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
21054         * optabs.h (optab_handler, convert_optab_handler): Turn into
21055         inline functions that return an insn code.
21056         (set_optab_handler, set_convert_optab_handler): New functions.
21057         * builtins.c: Replace optab_handler(X)->insn_code with
21058         optab_handler or set_optab_handler thoughout.  Likewise
21059         convert_optab_handler(X)->insn_code with convert_optab_handler
21060         and set_convert_optab_handler.
21061         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
21062         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
21063         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
21064         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
21065         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
21066         config/spu/spu.c: Likewise.
21068 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
21070         PR target/44531
21071         * config.gcc (sh*-*-*): Use regular expressions instead of
21072         the 'i' modifier for sed substitutions.
21074 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
21076         * gimple.c (gimple_body): Comments added.
21078 2010-07-04  Richard Guenther  <rguenther@suse.de>
21080         PR middle-end/44809
21081         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
21082         of an INDIRECT_REF.
21084 2010-07-04  Richard Guenther  <rguenther@suse.de>
21086         PR tree-optimization/44479
21087         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
21088         extra SSA name copy statements which preserves points-to
21089         information.
21090         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21091         Copy points-to information for all pointers.  Properly handle
21092         MEM_REFs.
21093         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
21094         copy statements.
21095         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
21096         dependency.
21098 2010-07-04  Richard Guenther  <rguenther@suse.de>
21100         PR middle-end/44785
21101         * tree-inline.c (initialize_inlined_parameters): Do not
21102         re-use pointer-map slot over remap_type call.
21104 2010-07-04  Richard Guenther  <rguenther@suse.de>
21106         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
21108 2010-07-04  Richard Guenther  <rguenther@suse.de>
21110         PR tree-optimization/44656
21111         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
21112         again after value-replacing in the defintions lhs.
21114 2010-07-04  Ira Rosen  <irar@il.ibm.com>
21115             Revital Eres  <eres@il.ibm.com>
21117         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
21118         Document new arguments.
21119         * doc/tm.texi: Regenerate.
21120         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
21121         Handle unaligned store.
21122         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
21123         * target.def (builtin_vectorization_cost): Add new arguments.
21124         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
21125         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
21126         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
21127         (vect_vfa_segment_size): Fix indentation.
21128         * tree-vectorizer.h (struct _vect_peel_info): New.
21129         (struct _vect_peel_extended_info): New.
21130         (struct _loop_vec_info): Add new field for peeling hash table and a
21131         macro for its access.
21132         (VECT_MAX_COST): Define.
21133         (vect_get_load_cost): Declare.
21134         (vect_get_store_cost, vect_get_known_peeling_cost,
21135         vect_get_single_scalar_iteraion_cost): Likewise.
21136         (vect_supportable_dr_alignment): Add new argument.
21137         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
21138         field.
21139         (destroy_loop_vec_info): Free peeling hash table.
21140         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
21141         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
21142         vect_analyze_slp. Fix indentation.
21143         (vect_get_single_scalar_iteraion_cost): New function.
21144         (vect_get_known_peeling_cost): Likewise.
21145         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
21146         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
21147         statement. Move outside cost calculation inside unknown peeling case.
21148         Call vect_get_known_peeling_cost for known amount of peeling.
21149         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
21150         reference to the print message of forced alignment.
21151         (vect_verify_datarefs_alignment): Update call to
21152         vect_supportable_dr_alignment.
21153         (vect_get_data_access_cost): New function.
21154         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
21155         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
21156         vect_peeling_hash_choose_best_peeling): Likewise.
21157         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
21158         to store all the accesses in the loop and find best possible access to
21159         align using peeling for known alignment case. For unknown alignment
21160         check if stores are preferred or if peeling is worthy.
21161         (vect_find_same_alignment_drs): Analyze pairs of loads too.
21162         (vect_supportable_dr_alignment): Add new argument and check aligned
21163         accesses according to it.
21164         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
21165         (cost_for_stmt): Call vect_get_stmt_cost.
21166         (vect_model_simple_cost): Likewise.
21167         (vect_model_store_cost): Call vect_get_stmt_cost. Call
21168         vect_get_store_cost to calculate the cost of the statement.
21169         (vect_get_store_cost): New function.
21170         (vect_model_load_cost): Call vect_get_stmt_cost. Call
21171         vect_get_load_cost to calculate the cost of the statement.
21172         (vect_get_load_cost): New function.
21173         (vectorizable_store): Update call to vect_supportable_dr_alignment.
21174         (vectorizable_load): Likewise.
21175         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
21176         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
21177         arguments. Handle unaligned store.
21178         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
21179         (rs6000_builtin_support_vector_misalignment): Return true for word and
21180         double word alignments for VSX.
21181         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
21182         vect_supportable_dr_alignment and builtin_vectorization_cost.
21184 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21186         PR target/44597
21187         * config/pa/predicates.md (prefetch_cc_operand): Remove.
21188         (prefetch_nocc_operand): Likewise.
21189         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
21190         (prefetch_20): New insn.
21191         (prefetch_cc): Remove.
21192         (prefetch_nocc): Likewise.
21194 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21196         * expr.c (vector_mode_valid_p): Move to c-common.c.
21197         * expr.h (vector_mode_valid_p): Do not declare here.
21198         * system.h: Poison GCC_EXPR_H in front-ends.
21199         * Makefile.in: Update dependencies.
21201 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21203         PR target/44705
21204         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
21206 2010-07-03  Jan Hubicka  <jh@suse.cz>
21208         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
21209         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
21210         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
21211         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
21212         Likewise.
21214         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
21215         Update timevars.V
21216         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
21217         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
21218         TV_IPA_LTO_DECL_OUT): New.
21219         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
21221 2010-07-03  Jan Hubicka  <jh@suse.cz>
21223         * ipa-inline.c (update_edge_key): Break out from ...
21224         update_callers_keys): ... here;
21225         (update_callee_keys): Update only the edges from caller to callee.
21226         (update_all_calle_keys): Do what update_calle_keys did.
21227         (decide_inlining_of_small_functions): Avoid recomputing of all
21228         callees when badness increase.
21230 2010-07-03  Jie Zhang  <jie@codesourcery.com>
21232         * config/arm/arm.c (arm_attr_length_move_neon): New.
21233         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
21234         * config/arm/neon.md (define_mode_attr V_slen): Remove.
21235         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
21236         to compute length attribute.
21238 2010-07-03  Jie Zhang  <jie@codesourcery.com>
21240         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
21241         as predicate for operand 1 and remove its constraint.
21242         * config/arm/predicates.md (vfp_register_operand): New.
21243         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
21244         (*push_fp_multi): Likewise.
21246 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
21248         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
21250 2010-07-03  Jan Hubicka  <jh@suse.cz>
21252         * config/i386/i386.c (override_options): Revert accidental commit.
21254 2010-07-02  Le-Chun Wu  <lcwu@google.com>
21256         PR c++/44128
21257         * doc/invoke.texi: Update documentation of -Wshadow.
21259 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
21260             Julian Brown  <julian@codesourcery.com>
21261             Sandra Loosemore  <sandra@codesourcery.com>
21263         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
21264         comparisons.  Adjust to take both operands.
21265         (arm_select_cc_mode): Handle DImode comparisons.
21266         (arm_gen_compare_reg): Generate a scratch register for DImode
21267         comparisons which require one.  Use xor for Thumb equality checks.
21268         (arm_const_double_by_immediates): New.
21269         (arm_print_operand): Allow 'Q' and 'R' for constants.
21270         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
21271         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
21272         arm_canonicalize_comparison.
21273         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
21274         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
21275         prototype.
21276         (arm_const_double_by_immediates): Declare.
21277         * config/arm/constraints.md (Di): New constraint.
21278         * config/arm/predicates.md (arm_immediate_di_operand)
21279         (arm_di_operand, cmpdi_operand): New.
21280         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
21281         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
21282         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
21283         (cstoredi4): Handle non-Cirrus also.
21285 2010-07-02  Julian Brown  <julian@codesourcery.com>
21286             Sandra Loosemore  <sandra@codesourcery.com>
21288         PR target/43703
21289         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
21290         (smax<mode>3): Disable for NEON float modes when
21291         flag_unsafe_math_optimizations is false.
21292         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
21293         (*mul<mode>3_neon)
21294         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
21295         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
21296         for NEON float modes when flag_unsafe_math_optimizations is false.
21297         (quad_halves_<code>v4sf): Only enable if
21298         flag_unsafe_math_optimizations is true.
21299         * doc/invoke.texi (ARM Options): Add note about floating point
21300         vectorization requiring -funsafe-math-optimizations.
21302 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21303             Julian Brown  <julian@codesourcery.com>
21305         * config/arm/neon.md (UNSPEC_VABA): Delete.
21306         (UNSPEC_VABAL): Delete.
21307         (UNSPEC_VABS): Delete.
21308         (UNSPEC_VMUL_N): Delete.
21309         (adddi3_neon): New.
21310         (subdi3_neon): New.
21311         (mul<mode>3add<mode>_neon): Make the pattern named.
21312         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
21313         (neon_vadd<mode>): Replace with define_expand, and move the remaining
21314         unspec parts...
21315         (neon_vadd<mode>_unspec): ...to this.
21316         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
21317         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
21318         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
21319         (neon_vaba<mode>): Rewrite in terms of vabd.
21320         (neon_vabal<mode>): Rewrite in terms of vabdl.
21321         (neon_vabs<mode>): Rewrite without unspec.
21322         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
21323         (*arm_subdi3): Likewise.
21324         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
21325         No_op attribute to disable assembly output checks.
21326         * config/arm/arm_neon.h: Regenerated.
21327         * doc/arm-neon-intrinsics.texi: Regenerated.
21329 2010-07-02  Jan Hubicka  <jh@suse.cz>
21331         * ipa-split.c (split_function): For aggregate values, set the return
21332         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
21333         *<retval> = fncall.part ().
21334         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
21336 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21338         * config/arm/neon.md (UNSPEC_VAND): Delete.
21339         (UNSPEC_VBIC): Delete.
21340         (UNSPEC_VCLZ): Delete.
21341         (UNSPEC_VCNT): Delete.
21342         (UNSPEC_VEOR): Delete.
21343         (UNSPEC_VORN): Delete.
21344         (UNSPEC_VORR): Delete.
21345         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
21346         core registers too.
21347         (anddi3_neon): Likewise.
21348         (orndi3_neon): Likewise.
21349         (bicdi3_neon): Likewise.
21350         (xordi3_neon): Likewise.
21351         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
21352         rid of unspec and handle unused operand.
21353         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
21354         * config/arm/predicates.md (imm_for_neon_logic_operand):
21355         Require TARGET_NEON.
21356         (imm_for_neon_inv_logic_operand): Likewise.
21357         * config/arm/arm.md (define_split for logical_binary_operator):
21358         Disable for NEON registers.
21359         (anddi3): Add new define_expand, and rename the insn.  Disable
21360         this insn for NEON, where anddi3_neon now applies.
21361         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
21362         (iordi3): As for anddi3.
21363         (xordi3): Likewise.
21364         * config/arm/neon.ml (Vand): Split DImode variants and mark them
21365         as No_op to disable testing for exact instruction match.
21366         (Vorr): Likewise.
21367         (Veor): Likewise.
21368         (Vbic): Likewise.
21369         (Vorn): Likewise.
21370         * config/arm/arm_neon.h: Regenerated.
21371         * doc/arm-neon-intrinsics.texi: Regenerated.
21373 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
21375         * expr.h (emit_stack_probe): Declare.
21376         * explow.c (emit_stack_probe): Make global.
21377         (anti_adjust_stack_and_probe): Fix comments.
21378         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
21379         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21380         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
21381         * config/sparc/sparc.c: Include except.h.
21382         (sparc_emit_probe_stack_range): New function.
21383         (output_probe_stack_range): Likewise.
21384         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
21385         built-in stack checking is enabled.
21386         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
21387         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
21388         (probe_stack_range): New insn.
21390 2010-07-02  Richard Guenther  <rguenther@suse.de>
21392         PR target/43958
21393         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
21394         for argument alignment.
21396 2010-07-02  Jan Hubicka  <jh@suse.cz>
21398         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
21399         walk backwards from entry_bb to check only those basic block of header
21400         that might lead to execution of split part.
21401         (consider_split) ... here.
21402         (find_return_bb): Allow assignment in return BB.
21403         (find_retval): New.
21404         (split_function): Fix name of cloned function; take care of updating
21405         return value in return_bb containing move.
21407 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
21409         PR target/44771
21410         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
21411         used variable insn.
21413 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
21415         * implicit-zee.c (combine_reaching_defs): Fix long lines.
21416         (is_set_with_extension_DI): Delete.
21417         (struct zero_extend_info): New structure.
21418         (add_removable_zero_extend): New function.
21419         (find_removable_zero_extends): Use note_stores to find SETs.
21420         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
21422 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
21424         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
21425         is_miss_rate_acceptable. Pull total_positions computation
21426         out of the loops.  Early return if miss_positions exceeds
21427         the acceptable threshold.
21428         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
21429         is_miss_rate_acceptable after renaming of compute_miss_rate.
21431 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
21433         PR middle-end/44576
21434         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
21435         of 1000) for miss rate if the address diference is greater than or
21436         equal to the cache line size (the two reference will never hit the
21437         same cache line).
21439 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
21441         PR target/42835
21442         * config/arm/arm-modes.def (CC_NOTB): New mode.
21443         * config/arm/arm.c (get_arm_condition_code): Handle it.
21444         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
21445         * config/arm/arm.md (subsi3_compare0_c): New pattern.
21446         (compare_scc): Now a define_and_split.  Add a number of extra
21447         splitters before it.
21449         PR target/42172
21450         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
21451         and ZERO_EXTEND.
21452         (arm_rtx_costs_1): Likewise.
21453         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
21454         * config/arm/arm.md (is_arch6): New attribute.
21455         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
21456         extendqisi2): Tighten the code somewhat, avoiding invalid
21457         RTL to occur in the expander patterns.
21458         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
21459         (thumb1_zero_extendhisi2_v6): Delete.
21460         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
21461         (thumb1_extendhisi2_v6): Delete.
21462         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
21463         (thumb1_extendqisi2_v6): Delete.
21464         (zero_extendhisi2 for register input splitter): New.
21465         (zero_extendqisi2 for register input splitter): New.
21466         (thumb1_extendhisi2 for register input splitter): New.
21467         (extendhisi2 for register input splitter): New.
21468         (extendqisi2 for register input splitter): New.
21469         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
21470         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
21471         and add support for a register alternative requiring a split.
21472         (thumb1_zero_extendqisi2): Likewise.
21473         (arm_zero_extendqisi2): Likewise.
21474         (arm_extendhisi2): Likewise.
21475         (arm_extendqisi2): Likewise.
21477 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21479         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
21480         instead of an unspec.
21481         (neon_expand_vector_init): Likewise.
21482         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
21483         (UNSPEC_VDUP_LANE): Delete.
21484         (UNSPEC VDUP_N): Delete.
21485         (UNSPEC_VGET_HIGH): Delete.
21486         (UNSPEC_VGET_LANE): Delete.
21487         (UNSPEC_VGET_LOW): Delete.
21488         (UNSPEC_VMVN): Delete.
21489         (UNSPEC_VSET_LANE): Delete.
21490         (V_double_vector_mode): New.
21491         (vec_set<mode>_internal): Make code emitted match that for the
21492         corresponding intrinsics.
21493         (vec_setv2di_internal): Likewise.
21494         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
21495         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
21496         (neon_vset_lane<mode>): Combine double and quad patterns and
21497         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
21498         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
21499         (neon_vdup_n<mode>): Rewrite RTL without unspec.
21500         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
21501         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
21502         with neon_vdup_lanev2di, adjusting the pattern from the latter
21503         to be predicable for consistency.
21504         (neon_vdup_lane<mode>_internal): New.
21505         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
21506         to avoid using an unspec.
21507         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
21508         (neon_vdup_lanev2di): Turn into a define_expand.
21509         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
21510         (neon_vget_high<mode>): Replace with....
21511         (neon_vget_highv16qi): New pattern using canonical RTL.
21512         (neon_vget_highv8hi): Likewise.
21513         (neon_vget_highv4si): Likewise.
21514         (neon_vget_highv4sf): Likewise.
21515         (neon_vget_highv2di): Likewise.
21516         (neon_vget_low<mode>): Replace with....
21517         (neon_vget_lowv16qi): New pattern using canonical RTL.
21518         (neon_vget_lowv8hi): Likewise.
21519         (neon_vget_lowv4si): Likewise.
21520         (neon_vget_lowv4sf): Likewise.
21521         (neon_vget_lowv2di): Likewise.
21523         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
21524         test for this emitting vmov.
21525         (Vset_lane): Likewise.
21526         (Vdup_n): Likewise.
21527         (Vmov_n): Likewise.
21529         * doc/arm-neon-intrinsics.texi: Regenerated.
21531 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
21533         * config/arm/neon.md (vec_extractv2di): Correct error in register
21534         numbering to reconcile with neon_vget_lanev2di.
21536 2010-07-02  Richard Guenther  <rguenther@suse.de>
21538         * tree-ssa-structalias.c (pt_solution_set_var): New function.
21539         * tree-ssa-alias.h (pt_solution_set_var): Declare.
21540         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
21541         points-to information.
21543 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
21545         * config/s390/s390.c (override_options): Adopt prefetching
21546         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
21548 2010-07-02  Jan Hubicka  <jh@suse.cz>
21550         * df-problems.c (df_kill_notes): Do not collect dead  notes.
21551         (df_set_note): Just call add_reg_note.
21552         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
21553         df_create_unused_note): Do not deal with lists of old notes.
21554         (df_note_bb_compute): Likewise.
21556 2010-07-02  Richard Guenther  <rguenther@suse.de>
21558         * tree-ssa-structalias.c (find_func_aliases): Handle
21559         pointer alignment via BIT_AND_EXPR.
21560         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
21562 2010-07-02  Richard Guenther  <rguenther@suse.de>
21564         * tree-data-ref.c (initialize_data_dependence_relation): Handle
21565         mismatching number of dimensions properly.
21567 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21569         PR target/44707
21570         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
21571         (lo_sum (high ...) ...) patterns generated by earlier passes.
21573 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21575         * doc/install.texi (Prerequisites): Document Perl requirement on
21576         Solaris 2.
21577         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
21579 2010-07-02  Richard Guenther  <rguenther@suse.de>
21581         PR middle-end/44777
21582         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
21584 2010-07-02  Jan Hubicka  <jh@suse.cz>
21586         PR middle-end/44706
21587         * predict.c (predict_paths_for_bb): Handle case when control dependence
21588         BB has only abnormal edges.
21590 2010-07-02  Richard Guenther  <rguenther@suse.de>
21592         PR tree-optimization/44748
21593         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
21594         the embedded conversion in MEM_REFs.
21596 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
21598         * reload.c: Include toplev.h.
21599         * recog.c:  Likewise.
21600         * Makefile.in: Adjust dependencies.
21602 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
21604         PR debug/44694
21605         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
21606         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
21608 2010-07-01  Richard Guenther  <rguenther@suse.de>
21610         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
21611         types for offsets.
21613 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
21615         PR target/44732
21616         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
21617         Fix argument types.
21619 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
21621         PR target/44727
21622         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
21623         Make sure operand 0 dies.
21625 2010-07-01  Richard Guenther  <rguenther@suse.de>
21627         PR middle-end/42834
21628         PR middle-end/44468
21629         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
21630         * doc/generic.texi (References to storage): Document MEM_REF.
21631         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
21632         (print_call_name): Likewise.
21633         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
21634         (build_simple_mem_ref_loc): New function.
21635         (mem_ref_offset): Likewise.
21636         * tree.h (build_simple_mem_ref_loc): Declare.
21637         (build_simple_mem_ref): Define.
21638         (mem_ref_offset): Declare.
21639         * fold-const.c: Include tree-flow.h.
21640         (operand_equal_p): Handle MEM_REF.
21641         (build_fold_addr_expr_with_type_loc): Likewise.
21642         (fold_comparison): Likewise.
21643         (fold_unary_loc): Fold
21644         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
21645         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
21646         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
21647         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
21648         (ptr_deref_may_alias_ref_p_1): Likewise.
21649         (ao_ref_base_alias_set): Properly differentiate base object for
21650         offset and TBAA.
21651         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
21652         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
21653         (indirect_refs_may_alias_p): Likewise.
21654         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
21655         chasing code.
21656         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
21657         (call_may_clobber_ref_p_1): Likewise.
21658         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
21659         * expr.c (expand_assignment): Handle MEM_REF.
21660         (store_expr): Handle MEM_REFs from STRING_CSTs.
21661         (store_field): If expanding a MEM_REF of a non-addressable
21662         decl use bitfield operations.
21663         (get_inner_reference): Handle MEM_REF.
21664         (expand_expr_addr_expr_1): Likewise.
21665         (expand_expr_real_1): Likewise.
21666         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
21667         * alias.c (ao_ref_from_mem): Handle MEM_REF.
21668         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
21669         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
21670         (dr_analyze_indices): Likewise.
21671         (dr_analyze_alias): Likewise.
21672         (object_address_invariant_in_loop_p): Likewise.
21673         * gimplify.c (mark_addressable): Handle MEM_REF.
21674         (gimplify_cond_expr): Build MEM_REFs.
21675         (gimplify_modify_expr_to_memcpy): Likewise.
21676         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
21677         (gimple_fold_indirect_ref): Adjust.
21678         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
21679         * tree.def (MEM_REF): New tree code.
21680         * tree-dfa.c: Include toplev.h.
21681         (get_ref_base_and_extent): Handle MEM_REF.
21682         (get_addr_base_and_unit_offset): New function.
21683         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
21684         * gimple-fold.c (may_propagate_address_into_dereference): Handle
21685         MEM_REF.
21686         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
21687         accesses if the array has just one dimension.  Remove always true
21688         parameter.  Do not require type compatibility here.
21689         (maybe_fold_offset_to_component_ref): Remove.
21690         (maybe_fold_stmt_indirect): Remove.
21691         (maybe_fold_reference): Remove INDIRECT_REF handling.
21692         Fold back to non-MEM_REF.
21693         (maybe_fold_offset_to_address): Simplify.  Deal with type
21694         mismatches here.
21695         (maybe_fold_reference): Likewise.
21696         (maybe_fold_stmt_addition): Likewise.  Also handle
21697         &ARRAY + I in addition to &ARRAY[0] + I.
21698         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
21699         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
21700         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
21701         * tree-ssa.c (useless_type_conversion_p): Make most pointer
21702         conversions useless.
21703         (warn_uninitialized_var): Handle MEM_REF.
21704         (maybe_rewrite_mem_ref_base): New function.
21705         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
21706         to SSA form.
21707         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
21708         INDIRECT_REF handling.
21709         (copy_tree_body_r): Handle MEM_REF.
21710         * gimple.c (is_gimple_addressable): Adjust.
21711         (is_gimple_address): Likewise.
21712         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
21713         invariant base are invariant.
21714         (is_gimple_min_lval): Adjust.
21715         (is_gimple_mem_ref_addr): New function.
21716         (get_base_address): Handle MEM_REF.
21717         (count_ptr_derefs): Likewise.
21718         (get_base_loadstore): Likewise.
21719         * gimple.h (is_gimple_mem_ref_addr): Declare.
21720         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
21721         * tree-cfg.c (verify_address): New function, split out from ...
21722         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
21723         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
21724         INDIRECT_REFs.
21725         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
21726         INDIRECT_REF.  Allow conversions.
21727         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
21728         a register does not change its size.
21729         (verify_types_in_gimple_reference): Verify MEM_REF.
21730         (verify_gimple_assign_single): Disallow INDIRECT_REF.
21731         Handle MEM_REF.
21732         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
21733         New.
21734         (mark_address_taken): Handle MEM_REF.
21735         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
21736         (get_asm_expr_operands): Pass opf_not_non_addressable.
21737         (get_expr_operands): Handle opf_[not_]non_addressable.
21738         Handle MEM_REF.  Remove INDIRECT_REF handling.
21739         * tree-vrp.c (check_array_ref): Handle MEM_REF.
21740         (search_for_addr_array): Likewise.
21741         (check_array_bounds): Likewise.
21742         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
21743         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
21744         (ref_always_accessed_p): Likewise.
21745         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
21746         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
21747         Handle MEM_REF.
21748         * cgraphbuild.c (mark_load): Properly check for NULL result
21749         from get_base_address.
21750         (mark_store): Likewise.
21751         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
21752         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
21753         handling for MEM_REF.
21754         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
21755         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
21756         * builtins.c (stabilize_va_list_loc): Use the function ABI
21757         valist type if we couldn't canonicalize the argument type.
21758         Always dereference with the canonical va-list type.
21759         (maybe_emit_free_warning): Handle MEM_REF.
21760         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
21761         memmove to memcpy.
21762         * builtins.c (fold_builtin_memory_op): Use ref-all types
21763         for all memcpy foldings.
21764         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
21765         (build_outer_var_ref): Likewise.
21766         (scan_omp_1_op): Likewise.
21767         (lower_rec_input_clauses): Likewise.
21768         (lower_lastprivate_clauses): Likewise.
21769         (lower_reduction_clauses): Likewise.
21770         (lower_copyprivate_clauses): Likewise.
21771         (expand_omp_atomic_pipeline): Likewise.
21772         (expand_omp_atomic_mutex): Likewise.
21773         (create_task_copyfn): Likewise.
21774         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
21775         Remove old union trick.  Initialize constant offsets.
21776         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
21777         INDIRECT_REF.  Init base_alias_set properly.
21778         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
21779         (vn_reference_fold_indirect): Adjust for MEM_REFs.
21780         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
21781         for ARRAY_REFs.
21782         (may_insert): Remove.
21783         (visit_reference_op_load): Do not test may_insert.
21784         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
21785         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
21786         a field to store the constant offset this op applies.
21787         (run_scc_vn): Adjust prototype.
21788         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
21789         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
21790         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
21791         bother about volatile qualifiers on pointers.
21792         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
21793         * tree-ssa-loop-ivopts.c
21794         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
21795         (strip_offset_1): Likewise.
21796         (find_interesting_uses_address): Replace INDIRECT_REF handling with
21797         MEM_REF handling.
21798         (get_computation_cost_at): Likewise.
21799         * ipa-pure-const.c (check_op): Handle MEM_REF.
21800         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
21801         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
21802         and constants.
21803         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
21804         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
21805         (eliminate_local_variables_1): Likewise.
21806         (create_call_for_reduction_1): Likewise.
21807         (create_loads_for_reductions): Likewise.
21808         (create_loads_and_stores_for_name): Likewise.
21809         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
21810         (ssa_accessed_in_tree): Handle MEM_REF.
21811         (ssa_accessed_in_assign_rhs): Likewise.
21812         (update_type_size): Likewise.
21813         (analyze_accesses_for_call_stmt): Likewise.
21814         (analyze_accesses_for_assign_stmt): Likewise.
21815         (transform_access_sites): Likewise.
21816         (transform_allocation_sites): Likewise.
21817         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
21818         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
21819         not handle INDIRECT_REF.
21820         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
21821         (cond_store_replacement): Likewise.
21822         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
21823         MEM_REF, no not handle INDIRECT_REFs.
21824         (insert_into_preds_of_block): Properly initialize avail.
21825         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
21826         for ARRAY_REFs.  Properly handle reference lookups that
21827         require a bit re-interpretation.
21828         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
21829         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
21830         (build_ref_for_offset_1): Remove.
21831         (build_ref_for_offset): Build MEM_REFs.
21832         (gate_intra_sra): Disable for now.
21833         (sra_ipa_modify_expr): Handle MEM_REF.
21834         (ipa_early_sra_gate): Disable for now.
21835         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
21836         MEM_REF handling.
21837         (disqualify_base_of_expr): Likewise.
21838         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
21839         MEM_REF handling.
21840         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
21841         Use mem_ref_offset.  Remove bogus folding.
21842         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
21843         (make_fancy_name_1): Add support for MEM_REF.
21844         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
21845         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
21846         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
21847         (compute_complex_ancestor_jump_func): Likewise.
21848         (ipa_analyze_virtual_call_uses): Likewise.
21849         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
21850         INDIRECT_REF folding with more generalized MEM_REF folding.
21851         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
21852         (forward_propagate_addr_into_variable_array_index): Also handle
21853         &ARRAY + I in addition to &ARRAY[0] + I.
21854         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
21855         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
21856         creates assignments with overlap.
21857         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
21858         (get_frame_field): Likewise.
21859         (get_nonlocal_debug_decl): Likewise.
21860         (convert_nonlocal_reference_op): Likewise.
21861         (struct nesting_info): Add mem_refs pointer-set.
21862         (create_nesting_tree): Allocate it.
21863         (convert_local_reference_op): Insert to be folded mem-refs.
21864         (fold_mem_refs): New function.
21865         (finalize_nesting_tree_1): Perform defered folding of mem-refs
21866         (free_nesting_tree): Free the pointer-set.
21867         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
21868         (vectorizable_load): Likewise.
21869         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
21870         (propagate_with_phi): Likewise.
21871         * tree-object-size.c (addr_object_size): Handle MEM_REFs
21872         instead of INDIRECT_REFs.
21873         (compute_object_offset): Handle MEM_REF.
21874         (plus_stmt_object_size): Handle MEM_REF.
21875         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
21876         for &MEM_REF.
21877         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
21878         (symbol_marked_for_renaming): Likewise.
21879         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
21880         (fold-const.o): Add $(TREE_FLOW_H).
21881         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
21882         (find_func_clobbers): Likewise.
21883         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
21884         (decompose_access): Likewise.
21885         (replace_field_acc): Likewise.
21886         (replace_field_access_stmt): Likewise.
21887         (insert_new_var_in_stmt): Likewise.
21888         (get_stmt_accesses): Likewise.
21889         (reorg_structs_drive): Disable.
21890         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
21891         (ix86_canonical_va_list_type): Likewise.
21893 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
21895         PR other/44566
21896         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
21897         * target.def (struct gcc_target): Replace enum reg_class with
21898         reg_class_t in hook argument / return types.
21899         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
21900         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
21901         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
21902         * targhooks.h (default_branch_target_register_class): Likewise.
21903         (default_ira_cover_classes, default_secondary_reload): Likewise.
21904         (default_memory_move_cost, default_register_move_cost): Likewise.
21905         * targhooks.c (default_branch_target_register_class): Likewise.
21906         (default_ira_cover_classes, default_secondary_reload): Likewise.
21907         (default_memory_move_cost, default_register_move_cost): Likewise.
21908         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
21909         * bt-load.c (branch_target_load_optimize): Likewise.
21910         * ira.c (setup_cover_and_important_classes): Likewise.
21911         * ira-costs.c (copy_cost): Likewise.
21912         * reload1.c (emit_input_reload_insns): Likewise.
21913         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
21914         * config/frv/frv.c (frv_secondary_reload): Likewise.
21915         * config/s390/s390.c (s390_secondary_reload): Likewise.
21916         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
21917         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
21918         (ix86_register_move_cost): Likewise.
21919         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
21920         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
21921         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
21922         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
21923         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
21924         (rs6000_ira_cover_classes): Likewise.
21925         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
21926         * config/picochip/picochip-protos.h (picochip_secondary_reload):
21927         Likewise.
21928         * config/pa/pa.c (pa_secondary_reload): Likewise.
21929         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
21930         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
21931         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
21932         * doc/tm.texi: Regenerate.
21934 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
21936         PR bootstrrap/44726
21937         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
21938         use.
21939         (build_alias_set_optimal_p): Likewise.
21940         (build_base_obj_set_for_drs): Likewise.
21942 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
21944         * target.def: Remove comment about licensing problems of function
21945         declarations.
21947         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
21948         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
21949         * doc/tm.texi: Regenerate.
21951         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
21952         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
21954         * target.def (enum_va_list_p): Use DEFHOOK.
21955         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
21956         Rename ptype to ptree.
21957         * doc/tm.texi: Regenerate.
21959         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
21960         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
21961         * doc/tm.texi: Regenerate.
21963         * target.def (memory_move_cost): Use DEFHOOK.
21964         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
21965         Rename regclass AKA class to rclass.
21966         * doc/tm.texi: Regenerate.
21968         * target.def (pragma_parse): Use DEFHOOK.
21969         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
21970         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
21971         * doc/tm.texi: Regenerate.
21973         * target.def (pass_by_reference): Use DEFHOOK.
21974         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
21975         * doc/tm.texi: Regenerate.
21977         * target.def (resolve_overloaded_builtin): Rename params to arglist.
21978         Use DEFHOOK.
21979         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
21980         * doc/tm.texi: Regenerate.
21982         * target.def (return_pops_args): Use DEFHOOK.
21983         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
21984         Rename stack-size to size.
21985         * doc/tm.texi: Regenerate.
21987         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
21988         last-sched_cycle to last_clock, cur_cycle to clock.
21989         * doc/tm.texi.in: Use @hook.
21990         * doc/tm.texi: Regenerate.
21992         * target.def (print_operand, print_operand_address): Update comment.
21993         (print_operand_punct_valid_p): Likewise.
21995 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21997         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
21998         to rtl.h.
21999         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
22000         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
22001         * rtl-error.h: New.
22002         * regrename.c: Do not include toplev.h. Include rtl-error.h.
22003         * rtl-error.c: Likewise.
22004         * reload.c: Likewise.
22005         * recog.c:  Likewise.
22006         * sel-sched.c: Likewise.
22007         * function.c: Likewise.
22008         * reg-stack.c: Likewise.
22009         * cfgrtl.c: Likewise.
22010         * reload1.c: Likewise.
22011         * final.c: Include rtl-error.
22012         * Makefile.in: Adjust dependencies.
22014 2010-06-30  Jan Hubicka  <jh@suse.cz>
22016         PR middle-end/PR44706
22017         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
22018         to return the value.
22020 2010-06-30  Michael Matz  <matz@suse.de>
22022         PR bootstrap/44699
22023         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
22024         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
22025         a gimple reg, attach the original VDEF to the last store in the
22026         sequence.
22028 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
22030         PR other/44034
22031         * config/darwin.c (darwin_override_options): Use renamed
22032         targetm.asm_out.emit_unwind_label.
22034 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
22036         PR tree-optimization/39799
22037         * tree-inline.c (remap_ssa_name): Initialize variable only if
22038         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
22040 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
22042         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
22044 2010-06-30  Richard Guenther  <rguenther@suse.de>
22046         PR target/44722
22047         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
22048         against oscillation with reverse peephole2.
22050 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
22052         PR target/44721
22053         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22054         Fix last commit.
22056 2010-06-30  Nick Clifton  <nickc@redhat.com>
22058         * config/rx/rx-modes.def: New file.
22059         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
22060         (CC_REGNUM): Define.
22061         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
22062         register.
22063         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
22064         (SELECT_CC_MODE): Define.
22065         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
22066         (reg:CC CC_REG) instead of (cc0).
22067         (attr "cc"): Delete.
22068         (cbranchsi4): Do not split compare and branch here. Instead move
22069         it to...
22070         (cbranchsi4_<code>): ... here.  New patterns.
22071         (cmpsi): Call rx-compare_redundant to find out if it is necessary
22072         to emit the compare instruction.
22073         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
22074         cc_status flags.
22075         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
22076         FIRST_PSEUDO_REGNUM.
22077         (rx_expand_prologue, rx_expand_epilogue): Likewise.
22078         (rx_notice_update_cc): Delete.
22079         (rx_cc_modes_compatible): New function.
22080         (flags_needed_for_conditional): New function.
22081         (flags_from_mode): New function.
22082         (rx_compare_redundant): New function - scans backwards through
22083         insn list to find out if condition flags are already set correctly.
22084         (TARGET_CC_MODES_COMPATIBLE): Define.
22085         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
22087         * config/rx/rx.h (BRANCH_COST): Define.
22088         (REGISTER_MOVE_COST): Define.
22089         * config/rx/predicates (rx_source_operand): Allow all constant types.
22090         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
22091         (tstsi4): New pattern.
22092         * config/rx/rx.c (rx_memory_move_cost): Define.
22093         (TARGET_MEMORY_MOVE_COST): Define.
22095 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22097         * tree.h (block_may_fallthru): Declare here.
22098         * tree-flow.h (block_may_fallthru): Do not declare here.
22099         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
22100         bitmap.h
22101         * Makefile.in (c-typeck.o): Update dependencies.
22103 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
22105         PR debug/44694
22106         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
22107         * cselib.c (cfa_base_preserved_regno): New static variable.
22108         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
22109         of REGNO (cfa_base_preserved_val->locs->loc).
22110         (cselib_preserve_cfa_base_value): Add regno argument, set
22111         cfa_base_preserved_regno to it.
22112         (cselib_invalidate_regno): Allow removal of registers other than
22113         cfa_base_preserved_regno from cfa_base_preserved_val.
22114         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
22115         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
22116         of MEM addresses, if not on LHS.
22117         (reverse_op): Don't add reverse ops for cfa_base_rtx.
22118         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
22120 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
22122         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
22123         static variables.
22124         (peep2_buf_position): New static function.
22125         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
22126         peephole2_optimize): Use it.
22127         (peep2_attempt, peep2_update_life): New static functions, broken out
22128         of peephole2_optimize.
22129         (peep2_fill_buffer): New static function.
22130         (peephole2_optimize): Change the main loop to try to fill the buffer
22131         with the maximum number of insns before matching them against
22132         peepholes.  Use a forward scan.  Remove special case for targets with
22133         conditional execution.
22134         * genrecog.c (change_state): Delete dead code.
22135         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
22136         Rewrite so as not to expect the second insn to have had a peephole
22137         applied yet.
22139 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22141         * genhooks.c (emit_findices): Cast field precision to int.
22142         (emit_documentation): Likewise.
22144 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
22146         PR tree-optimization/43801
22147         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
22148         if old_decl was DECL_ONE_ONLY.
22150         PR debug/44668
22151         * dwarf2out.c (add_accessibility_attribute): New function.
22152         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
22153         instead of adding DW_AT_accessibility manually.
22154         (gen_enumeration_type_die, gen_struct_or_union_type_die,
22155         gen_typedef_die): Use it.
22157 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22159         * vmsdbgout.c (full_name): Just output the file name if not native.
22161 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22163         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
22164         (funcnam_table): New static table.
22165         (funcnum_table): New static table.
22166         (write_rtnbeg): Write value saved in funcnum_table.
22167         (write_rtnend): Write value saved in funcnum_table.
22168         (vmsdbgout_begin_function): Save current function info in
22169         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
22170         (vmsdbgout_finish): Iterate over funcnum_table.
22172 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22174         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
22175         (vmsdbgout_type_decl): Declare
22176         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
22177         (FUNC_EPILOGUE_LABEL): New macro
22178         (vmsdbgout_begin_epilogue): New function.
22179         (vmsdbgout_type_decl): New function.
22181 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22183         * vmsdbg.h: Update copyright.
22185 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
22187         * vmsdbg.h (DST_K_TBG): New DST constant.
22188         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
22189         (write_modbeg): Cast module_language to avoid warning.
22190         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
22192 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
22194         PR other/44034
22195         * target.def, doc/tm.texi.in, genhooks.c: New files.
22196         * target.h: Instead of defining individual hook members,
22197         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
22198         include target.def.
22199         * target-def.h: Instead of defining individual hook initializers,
22200         include target-hooks-def.h.
22201         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
22202         targetm.live_on_entry -> targetm.extra_live_on_entry
22203         targetm.sched.md_finish ->targetm.sched.finish
22204         targetm.sched.md_init -> targetm.sched.init
22205         targetm.sched.md_init_global -> targetm.sched.init_global
22206         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
22207         targetm.asm_out.except_table_label ->
22208           targetm.asm_out.emit_except_table_label
22209         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
22210         targetm.target_help -> targetm.help
22211         targetm.vectorize.builtin_support_vector_misalignment ->
22212           targetm.vectorize.support_vector_misalignment
22213         targetm.file_start_app_off -> targetm.asm_file_start_app_off
22214         targetm.file_start_file_directive ->
22215          targetm.asm_file_start_file_directive
22216         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
22217         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
22218         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
22219         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
22220           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
22221         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
22222           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
22223         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
22224         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
22225         * Makefile.in (TARGET_H): Depend on target.def.
22226         (TARGET_DEF_H): Depend on target-hooks-def.h.
22227         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
22228         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
22229         * doc/tm.texi: Regenerate.
22231         * Makefile.in (s-tm-texi): Remove stray tab / rule.
22233         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
22234         (targetm.sched.init): Likewise.
22236 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22238         PR bootstrap/44713
22239         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
22240         (function_arg_advance_32): Const-ify TYPE parameter.
22241         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
22242         (ix86_function_arg_advance): Change type of NAMED to bool.
22243         (function_arg_32): Const-ify CUM and TYPE parameters.
22244         (function_arg_64): Likewise.  Change type of NAMED to bool.
22245         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
22246         to bool.
22247         (ix86_function_arg): Change type of NAMED to bool.
22248         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
22249         last argument as a bool.
22251 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
22253         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
22254         (OVERRIDE_OPTIONS): Add note of obsolescence.
22255         Replace references with references to TARGET_OPTION_OVERRIDE.
22256         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
22257          the macro).
22258         * targhooks.c (default_target_option_override): New function.
22259         * targhooks.h (default_target_option_override): Declare.
22260         * target.h (struct gcc_target): Add override member to
22261         target_option member.
22262         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
22263         targetm.target_option.override call.
22264         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
22265         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
22267 2010-06-29  Jan Hubicka  <jh@suse.cz>
22269         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
22271 2010-06-29  Jan Hubicka  <jh@suse.cz>
22273         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
22274         unreachable.
22275         (rebuild_frequencies): New function.
22276         * predict.h (rebuild_frequencies): Declare.
22277         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
22278         entry block and edge reaching new_entry.
22279         (tree_function_versioning): When doing partial cloning, rebuild
22280         frequencies when done.
22281         * passes.c (execute_function_todo): Use rebild_frequencies.
22283 2010-06-29  Richard Guenther  <rguenther@suse.de>
22285         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
22286         * tree-flow.h (enum noalias_state): Remove.
22287         (struct var_ann_d): Remove noalias_state member.
22289 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
22291         PR target/43902
22292         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
22293         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
22294         (maddhidi4): Likewise.
22296         Revert parts of the change for PR25130.
22297         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
22298         MEM_ALIAS_SET.
22300 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22302         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
22303         targetm.calls.function_incoming_arg, and
22304         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
22305         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
22306         * target.h (struct gcc_target): Add function_arg_advance,
22307         function_arg, and function_incoming_arg fields.
22308         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
22309         (TARGET_FUNCTION_INCOMING_ARG): Define.
22310         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
22311         and TARGET_FUNCTION_INCOMING_ARG.
22312         * targhooks.h (default_function_arg_advance): Declare.
22313         (default_function_arg, default_function_incoming_arg): Declare.
22314         * targhooks.c (default_function_arg_advance): New function.
22315         (default_function_arg, default_function_incoming_arg): New function.
22316         * config/i386/i386.c (function_arg_advance): Rename to...
22317         (ix86_function_arg_advance): ...this.  Make static.
22318         (function_arg): Rename to...
22319         (ix86_function_arg): ...this.  Make static.
22320         (TARGET_FUNCTION_ARG_ADVANCE): Define.
22321         (TARGET_FUNCTION_ARG): Define.
22322         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
22323         (FUNCTION_ARG): Delete.
22324         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
22325         (function_arg): Delete prototype.
22327 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
22329         * reginfo.c (init_reg_sets_1): Adjust comments.
22330         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
22331         * calls.c (prepare_call_address): Likewise.
22332         (emit_call_1): Use targetm.calls.return_pops_args.
22333         (expand_call): Likewise.
22334         * function.c (assign_parms): Likewise.
22335         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
22336         * target.h (struct gcc_target) [struct calls]: Add
22337         return_pops_args field.
22338         * targhooks.h (default_return_pops_args): Declare.
22339         * targhooks.c (default_return_pops_args): Define.
22340         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
22341         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
22342         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
22343         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
22344         documentation.
22345         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
22346         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
22347         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
22348         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
22349         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
22350         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
22351         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
22352         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
22353         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
22354         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
22355         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
22356         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
22357         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
22358         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
22359         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
22360         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
22361         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
22362         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
22363         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
22364         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
22365         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
22366         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
22367         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
22368         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
22369         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
22370         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
22371         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
22372         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
22373         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
22374         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
22375         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
22376         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
22377         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
22378         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
22379         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
22380         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
22381         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
22382         * config/i386/i386.c (ix86_return_pops_args): Make static.
22383         Constify arguments.
22384         (TARGET_RETURN_POPS_ARGS): Define.
22385         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
22386         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
22387         (TARGET_RETURN_POPS_ARGS): Define.
22388         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
22389         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
22390         (TARGET_RETURN_POPS_ARGS): Define.
22392 2010-06-29  Richard Guenther  <rguenther@suse.de>
22394         PR middle-end/44667
22395         * tree-inline.c (initialize_inlined_parameters): Make sure
22396         to remap the inlined parameter variable substitutions types.
22398 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
22400         PR rtl-optimization/44659
22401         * combine.c (make_compound_operation) <SUBREG>: Do not return the
22402         result of force_to_mode if it partially re-expanded the compound.
22404 2010-06-28  Jan Hubicka  <jh@suse.cz>
22406         PR middle-end/44671
22407         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
22408         RESULT_DECL.
22410 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
22412         * double-int.h (force_fit_type_double): Remove declaration.
22413         * double-int.c (force_fit_type_double): Move to tree.c.
22414         * tree.h (force_fit_type_double): Declare.
22415         * tree.h (force_fit_type_double): Moved from double-int.c. Use
22416         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
22417         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
22418         * convert.c (convert_to_pointer): Adjust call to
22419         force_fit_type_double.
22420         * tree-vrp.c (extract_range_from_assert,
22421         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
22422         * fold-const.c: Update comment.
22423         (int_const_binop, fold_convert_const_int_from_int,
22424         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
22425         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
22426         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
22427         round_up_loc): Adjust call to force_fit_type_double.
22429 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22431         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
22433 2010-06-28  Martin Jambor  <mjambor@suse.cz>
22435         * tree-sra.c (convert_callers): New parameter, change fndecls of
22436         recursive calls.
22437         (modify_function): Pass the old decl to convert_callers.
22439 2010-06-28  Martin Jambor  <mjambor@suse.cz>
22441         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
22442         ipa_check_create_node_params and ipa_initialize_node_params with
22443         checking asserts they are not necessary.
22445 2010-06-28  Jan Hubicka  <jh@suse.cz>
22447         PR tree-optimization/44687
22448         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
22450 2010-06-28  Martin Jambor  <mjambor@suse.cz>
22452         PR c++/44535
22453         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
22454         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
22455         instead of BINFO_BASE_BINFO.
22457 2010-06-28  Michael Matz  <matz@suse.de>
22459         PR middle-end/44592
22460         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
22461         proper VDEF chain for intermediate stores in the sequence.
22463 2010-06-28  Jan Hubicka  <jh@suse.cz>
22465         PR tree-optimization/44357
22466         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
22467         uninlinable functions.
22469 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
22471         * config.gcc (powerpc*-*-*): Handle titan.
22472         * config/rs6000/rs6000.c (titan_cost): New costs.
22473         (rs6000_override_options): Add "titan" to processor_target_table.
22474         Add Titan to branch alignment logic.
22475         Correctly set rs6000_cost for titan.
22476         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
22477         * config/rs6000/titan.md: New file.
22478         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
22480 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
22482         * tree-browser.c (TB_history_stack): Convert to a VEC.
22483         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
22484         (TB_history_prev): Likewise.
22486 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
22488         * vec.h (vec_heap_free): Add parentheses around free.
22490 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
22492         * system.h: Poison GCC_EXCEPT_H for front-end files.
22494         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
22495         langhook.
22496         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
22497         Define to NULL by default.
22498         * except.h: Define GCC_EXCEPT_H.
22499         (doing_eh): Remove prototype.
22500         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
22501         (lang_protect_cleanup_actions): Remove.
22502         * except.c (lang_protect_cleanup_actions): Remove.
22503         (doing_eh): Remove.
22504         (gen_eh_region): Don't check doing_eh here.
22505         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
22506         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
22507         instead of lang_protect_cleanup_actions.
22508         * omp-low.c (maybe_catch_exception): Likewise.
22509         * Makefile.in: Update dependencies.
22511 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
22513         * cgraph.h (struct varpool_node): new used_from_object_file flag.
22514         (struct cgraph_local_info): new used_from_object_file flag.
22515         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
22516         (cgraph_clone_node): initialize used_from_object_file.
22517         (cgraph_create_virtual_clone): initialize used_from_object_file.
22518         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
22519         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
22520         when compiling with -fwhole-program.
22521         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
22522         internal resolver.
22523         * ipa.c (function_and_variable_visibility): Set externally_visible
22524         flag of varpool_node if used_from_object_file flag is set.
22525         (cgraph_externally_visible_p): check used_from_object_file flag.
22526         * doc/invoke.texi (-fwhole-program option): Change description of
22527         externally_visible attribute accordingly.
22528         * doc/extend.texi (externally_visible): Ditto.
22530 2010-06-27  Jan Hubicka  <jh@suse.cz>
22532         * params.def (max-inline-insns-auto): Default to 40.
22533         * doc/invoke.texi (max-inline-insns-auto): Document the change.
22535 2010-06-27  Jan Hubicka  <jh@suse.cz>
22537         PR middle-end/44671
22538         PR middle-end/44686
22539         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
22540         signature change.
22541         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
22542         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
22544 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
22546         * target.h (struct gcc_target): Add register_move_cost field.
22547         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
22548         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
22549         * targhooks.c (default_register_move_cost): New function.
22550         * targhooks.h (default_register_move_cost): Declare function.
22551         * defaults.h (REGISTER_MOVE_COST): Delete.
22552         * ira-int.h (ira_register_move_cost): Update comment.
22553         * ira.c (ira_register_move_cost): Update comment.
22554         * reload.h (register_move_cost): Declare.
22555         * reginfo.c (register_move_cost): New function.
22556         (move_cost): Update comment.
22557         (init_move_cost, memory_move_secondary_cost): Replace
22558         REGISTER_MOVE_COST with register_move_cost.
22559         * postreload.c (reload_cse_simplify_set): (Ditto.).
22560         * reload.c (find_valid_class, find_reloads): (Ditto.).
22561         * reload1.c (choose_reload_regs): (Ditto.).
22562         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
22563         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
22564         * doc/md.texi (can_create_pseudo_p): Update documentation.
22566         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
22567         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
22568         * config/i386/i386.h (ix86_memory_move_cost): Make static.
22569         (TARGET_MEMORY_MOVE_COST): Define.
22571         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
22572         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
22573         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
22574         (TARGET_MEMORY_MOVE_COST): Define.
22576 2010-06-27  Richard Guenther  <rguenther@suse.de>
22578         PR tree-optimization/44683
22579         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
22580         false edge from the inverted condition.
22582 2010-06-27  Richard Guenther  <rguenther@suse.de>
22584         PR middle-end/44684
22585         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
22586         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
22587         for register LHS.  Or non-store assignments.
22589 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
22591         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
22592         (sparc_emit_set_const64): Likewise.  Remove disabled code.
22593         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
22594         (sparc_emit_set_const64): Likewise.
22596 2010-06-26  Catherine Moore  <clm@codesourcery.com>
22598         * config/mips/mips.md (alu_type): New attribute.
22599         (type): Infer type from alu_type.
22600         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
22601         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
22602         *subsi3_extended, negsi2, negdi2, *low<mode>,
22603         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
22604         xor<mode>3, *nor<mode>3,
22605         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
22606         *zero_extendhi_truncqi):  Set alu_type instead of type.
22608 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
22610         * config/alpha/alpha.c (alpha_need_linkage): Adjust
22611         splay_tree_new_ggc call.
22612         (alpha_use_linkage): Likewise.
22614 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
22616         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
22617         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
22618         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
22619         (static_specs): Remove switches_need_spaces.
22620         (process_command, do_self_spec): Hardcode handling "-o" instead of
22621         checking switches_need_spaces.
22622         * system.h (SWITCHES_NEED_SPACES): Poison.
22624 2010-06-26  Richard Guenther  <rguenther@suse.de>
22626         PR tree-optimization/44393
22627         * tree-loop-distribution.c (generate_loops_for_partition): Fix
22628         stmt removal and VOP renaming.
22629         (generate_memset_zero): Remove redundant stmt updating.
22630         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
22631         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
22633 2010-06-26  Jan Hubicka  <jh@suse.cz>
22635         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
22636         edges comming from header are equivalent.
22637         (visit_bb): Handle PHIs correctly.
22638         * tree-inline.c (copy_phis_for_bb): Be able to copy
22639         PHI from entry edge.
22640         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
22642 2010-06-26  Richard Guenther  <rguenther@suse.de>
22644         PR middle-end/44674
22645         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
22646         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
22648 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
22650         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
22651         add_infile, alloc_switch): New.
22652         (process_command): Remove variable lang_n_infiles.  Process
22653         options in a single pass.  Use new functions for allocating
22654         infiles and switches arrays.  Properly skip operands of
22655         -Xpreprocessor and -Xassembler.
22657 2010-06-26  Jan Hubicka  <jh@suse.cz>
22659         PR middle-end/44671
22660         * cgraphunit.c (cgraph_function_versioning): Remove wrong
22661         cgraph_make_decl_local call; fix typo copying RTL data.
22663 2010-06-25  DJ Delorie  <dj@redhat.com>
22665         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
22666         (m32c_output_aligned_common): Likewise.
22667         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
22668         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
22669         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
22670         (m32c_register_pragmas): Register it.
22671         * config/m32c/m32c.c (m32c_get_pragma_address): New.
22672         (m32c_insert_attributes): Set #pragma address decls volatile.
22673         (pragma_entry_eq): New.
22674         (pragma_entry_hash): New.
22675         (m32c_note_pragma_address): New.
22676         (m32c_get_pragma_address): New.
22677         (m32c_output_aligned_common): New.
22678         * doc/extend.texi: Document the new pragma.
22680         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
22681         also.
22682         * config/m32c/predicates.md (m32c_any_operand): Check the code
22683         instead of memory_operand so as to allow matching volatile MEMs.
22684         (m32c_nonimmediate_operand): Likewise.
22685         (mra_operand): Allow volatiles.
22687 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
22689         PR debug/44610
22690         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
22691         address if the offset is unknown.
22693 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
22695         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
22696         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
22697         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
22698         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
22699         to ia64_start_function. Invoke it.
22700         * config/ia64/ia64.c (ia64_start_function): Call new function
22701         dwarf2out_vms_debug_main_pointer.
22703 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22705         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
22706         statements computing the true predicate.
22708 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22710         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
22711         to boolean_true_node.
22712         (reset_bb_predicate): New.
22713         (predicate_bbs): Call reset_bb_predicate.
22715 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22717         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
22718         (tree_if_conversion): Returns true when something has been changed.
22719         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
22720         changed something.
22722 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
22724         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
22725         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
22726         * tree-if-conv.c: Include dbgcnt.h.
22727         (tree_if_conversion): Use if_conversion_tree to count the number of
22728         if-convertible loops.
22730 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
22732         * common.opt (fprefetch-loop-arrays): Re-define
22733         -fprefetch-loop-arrays as a tri-state option with the initial
22734         value of -1.
22735         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
22736         pass only when flag_prefetch_loop_arrays > 0.
22737         * toplev.c (process_options): Note that, with tri-states,
22738         flag_prefetch_loop_arrays>0 means prefetching is enabled.
22739         * config/i386/i386.c (override_options): Enable prefetching at -O3
22740         for a set of CPUs that sw prefetching is helpful.
22741         (software_prefetching_beneficial_p): New.  Return TRUE if software
22742         prefetching is beneficial for the given CPU.
22744 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22746         PR rtl-optimization/44326
22747         * implicit-zee.c (find_removable_zero_extends): Replace
22748         INSN_P with NONDEBUG_INSN_P.
22750 2010-06-25  Martin Jambor  <mjambor@suse.cz>
22752         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
22753         (struct ipa_node_params): Removed the modification_analysis_done flag.
22754         (ipa_is_param_modified): Removed.
22755         (ipa_analyze_node): Declare.
22756         (ipa_compute_jump_functions): Remove declaration.
22757         (ipa_count_arguments): Likewise.
22758         (ipa_detect_param_modifications): Likewise.
22759         (ipa_analyze_params_uses): Likewise.
22760         * ipa-prop.c (struct param_analysis_info): New type.
22761         (visit_store_addr_for_mod_analysis): Removed.
22762         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
22763         moved down in the file.
22764         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
22765         (ipa_count_arguments): Made static.
22766         (mark_modified): New function.
22767         (is_parm_modified_before_call): New function.
22768         (compute_pass_through_member_ptrs): New parameter parms_info, call
22769         is_parm_modified_before_call instead of ipa_is_param_modified.
22770         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
22771         it to compute_pass_through_member_ptrs.
22772         (ipa_compute_jump_functions): New parameter parms_info, pass it to
22773         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
22774         on the callee if it is analyzed.  Made static.
22775         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
22776         is_parm_modified_before_call instead of ipa_is_param_modified.
22777         (ipa_analyze_call_uses): New parameter parms_info, pass it to
22778         ipa_analyze_indirect_call_uses.
22779         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
22780         ipa_analyze_call_uses.
22781         (ipa_analyze_params_uses): New parameter parms_info, pass it to
22782         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
22783         (ipa_analyze_node): New function.
22784         (ipa_print_node_params): Do not dump the modified flag.
22785         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
22786         it.  Do not stream the modified parameter flag.
22787         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
22788         it.  Do not stream the modified parameter flag.
22789         * ipa-cp.c (ipcp_analyze_node): Removed.
22790         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
22791         with only a call to ipa_analyze_node.
22792         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
22793         node with only a call to ipa_analyze_node.
22795 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22797         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
22799 2010-06-25  Jan Hubicka  <jh@suse.cz>
22801         * tree-pass.h (pass_split_functions): Declare.
22802         * opts.c (decode_options): Enable function splitting at -O2
22803         * timevar.def (TV_IPA_FNSPLIT): New macro.
22804         * ipa-split.c: New file.
22805         * common.opt (-fpartial-inlining): New flag.
22806         * Makefile.in (ipa-split.o): New object file.
22807         * passes.c (init_optimization_passes): Add ipa-split.
22808         * params.def (partial-inlining-entry-probability): New parameters.
22809         * doc/invoke.texi (-fpartial-inlining): New.
22811 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22813         PR 44665
22814         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
22815         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
22816         (gimplify_expr): Likewise.
22818 2010-06-25  Martin Jambor  <mjambor@suse.cz>
22820         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
22821         statements instead of bailing out on them.
22822         (ipa_analyze_indirect_call_uses): Do not require that loads from the
22823         parameter are in the same BB as the condition.  Update comments.
22825 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
22827         PR middle-end/43866
22828         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
22829         true or always false, return NULL_TREE.
22830         (tree_unswitch_single_loop): Optimize conditions even when reaching
22831         max-unswitch-level parameter.  If num > 0, optimize first all conditions
22832         using entry checks, then do still reachable block discovery and consider
22833         only conditions in still reachable basic blocks in the loop.
22835         PR tree-optimization/44539
22836         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
22837         the call doesn't have LHS, but has VDEF.
22839 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
22841         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
22842         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
22843         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
22844         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
22845         * system.h (MODIFY_TARGET_NAME): Poison.
22847 2010-06-25  Alan Modra  <amodra@gmail.com>
22849         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
22850         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
22851         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
22852         CMODEL_LARGE as default.
22853         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
22854         (offsettable_ok_by_alignment): Delete.
22855         (rs6000_emit_move): Remove mcmodel=medium optimization.
22857 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
22859         With large parts from Jim Wilson:
22860         PR target/43902
22861         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
22862         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
22863         * optabs.c (optab_for_tree_code): Likewise.
22864         (expand_widen_pattern_expr): Likewise.
22865         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
22866         out of execute_optimize_widening_mul.
22867         (convert_plusminus_to_widen): New function.
22868         (execute_optimize_widening_mul): Use the two new functions.
22869         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
22870         Remove code to generate widening multiply-accumulate.  Add support
22871         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
22872         * gimple-pretty-print.c (dump_ternary_rhs): New function.
22873         (dump_gimple_assign): Call it when appropriate.
22874         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
22875         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
22876         (expand_gimple_stmt_1): Likewise.
22877         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
22878         WIDEN_MULT_MINUS_EXPR.
22879         * tree-ssa-operands.c (get_expr_operands): Likewise.
22880         * tree-inline.c (estimate_operator_cost): Likewise.
22881         * gimple.c (extract_ops_from_tree_1): Renamed from
22882         extract_ops_from_tree.  Add new arg for a third operand; fill it.
22883         (gimple_build_assign_stat): Support operations with three operands.
22884         (gimple_build_assign_with_ops_stat): Likewise.
22885         (gimple_assign_set_rhs_from_tree): Likewise.
22886         (gimple_assign_set_rhs_with_ops_1): Renamed from
22887         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
22888         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
22889         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
22890         WIDEN_MULT_MINUS_EXPR.
22891         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
22892         (extract_ops_from_tree_1): Adjust declaration.
22893         (gimple_assign_set_rhs_with_ops_1): Likewise.
22894         (gimple_build_assign_with_ops): Pass NULL for last operand.
22895         (gimple_build_assign_with_ops3): New macro.
22896         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
22897         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
22898         functions.
22899         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
22900         (verify_gimple_assign): Call it.
22901         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
22902         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
22903         functions for dealing with three-operand statements.
22904         * tree.c (commutative_ternary_tree_code): New function.
22905         * tree.h (commutative_ternary_tree_code): Declare it.
22906         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
22907         ternary statements.
22908         (gimple_assign_nonzero_warnv_p): Likewise.
22909         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
22910         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
22911         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
22912         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
22913         (struct hashtable_expr): New member ternary in the union.
22914         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
22915         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
22916         (iterative_hash_hashable_expr): Likewise.
22917         (print_expr_hash_elt): Handle EXPR_TERNARY.
22918         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
22919         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
22920         statements.  Handle GIMPLE_TERNARY_RHS.
22922 2010-06-25  Jan Hubicka  <jh@suse.cz>
22924         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
22926 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
22928         PR c/44517
22929         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
22930         parameters are not good.
22931         (c_parser_parameter_declaration): Error unknown type name if the type
22932         name can't start declaration specifiers.
22934 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
22936         * gcc.c (translate_options): Don't mention +e in comment.
22937         (process_command): Don't handle +e specially.
22939 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
22941         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
22943         * ira-build.c (merge_hard_reg_conflicts): New function.
22944         (create_cap_allocno, copy_info_to_removed_store_destinations,
22945         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
22946         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
22947         (remove_unnecessary_allocnos, remove_low_level_allocnos)
22948         copy_nifo_to_removed_store_destination): Use them.
22949         * ira-lives.c (make_hard_regno_born): New function, split out of
22950         make_regno_born.
22951         (make_allocno_born): Likewise.
22952         (make_hard_regno_dead): New function, split out of make_regno_dead.
22953         (make_allocno_dead): Likewise.
22954         (inc_register_pressure): New function, split out of set_allocno_live.
22955         (dec_register_pressure): New function, split out of clear_allocno_live.
22956         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
22957         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
22958         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
22959         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
22960         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
22961         mark_pseudo_regno_live.
22962         (process_bb_node_lives): Use mark_pseudo_regno_live,
22963         make_hard_regno_born and make_allocno_dead.
22964         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
22965         set_allocno_live, clear_allocno_live): Delete functions.
22967         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
22968         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
22969         functions.
22970         (ira_flattening): Use ira_parent_allocno.
22971         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
22972         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
22974         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
22975         statement.
22977         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
22978         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
22979         minmax_set_iter_cond, minmax_set_iter_next,
22980         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
22981         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
22982         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
22983         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
22984         uses changed.
22986         * ira-int.h (struct live_range, live_range_t): Renamed from struct
22987         ira_allocno_live_range and allocno_live_range_t; all uses changed.
22988         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
22989         All uses changed.
22991 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
22993         * thumb2.md (thumb2_tlobits_cbranch): Delete.
22994         (peephole2 to convert zero_extract/compare of single bit to
22995          lshift/compare): New.
22997 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
22999         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
23000         recursive call and call to 'int_const_binop'.
23001         (build_range_check, fold_cond_expr_with_comparison, unextend,
23002         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
23003         multiple_of_p): Adjust call to const_binop.
23005 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
23007         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
23008         determine size of XFmode operand.
23009         (XFmode extended DFmode push splitter): Ditto.
23010         (XFmode extended SFmode push splitter): Ditto.
23012 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
23014         PR target/44588
23015         * config/i386/i386.md (extract_code): New.
23016         (<u>divmodqi4): Likewise.
23017         (divmodhiqi3): Likewise.
23018         (udivmodhiqi3): Likewise.
23019         (<u>divqi3): Remvoved.
23021 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
23023         PR middle-end/44492
23024         * recog.h (struct recog_data): Add is_asm field.
23025         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
23026         present in constraints of inline-asm operand and memory operand
23027         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
23028         (extract_insn): Initialize recog_data.is_asm.
23029         * doc/md.texi (Constraints): Document operand side-effect rules.
23031 2010-06-24  Andi Kleen  <ak@linux.intel.com>
23033         * c-parser.c (c_parser_conditional_expression): Call
23034         warn_for_omitted_condop.
23035         * doc/invoke.texi: Document omitted condop warning.
23037 2010-06-24  Nick Clifton<nickc@redhat.com>
23039         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
23040         insn in the sequence is a jump insn before setting its label.
23042 2010-06-24  Alan Modra  <amodra@gmail.com>
23044         * collect2.c (main): Match exactly --version and --help.
23046 2010-06-24  DJ Delorie  <dj@redhat.com>
23048         * config/m32c/m32c-pragma.c: Don't include rtl.h.
23050 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
23052         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
23053         using X87MODEF mode iterator.
23054         (pushsf splitter): Macroize splitter using P mode iterator.
23055         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
23056         mode iterator.
23058         (*movxf_internal): Rename from *movxf_integer.
23059         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
23060         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
23061         (*movdf_internal): Rename from *movdf_integer.
23062         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
23063         (*movsf_internal): Rename from *movdf_1.
23065 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
23067         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
23068         (const_gimple_seq_node): Removed typedefs.
23070         * gimple.h (gimple_seq_node_d, gimple_seq_node)
23071         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
23073 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
23075         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
23076         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
23077         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
23078         and CODE_FOR_vec_extract_lo_v4df.
23080         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
23081         Changed to define_insn_and_split.
23082         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
23083         (vec_extract_lo_v16hi): Likewise.
23084         (vec_extract_lo_v32qi): Likewise.
23085         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
23086         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
23088 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
23090         PR target/44640
23091         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
23092         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
23093         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
23094         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
23095         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
23097         PR target/44640
23098         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
23100         PR other/44644
23101         * df-core.c (struct df): Rename to df_d.
23102         * df.h (struct df): Likewise.
23103         * dse.h (struct df): Remove forward declaration.
23104         * recog.h (struct insn_data): Rename to:
23105         (struct_insn_data_d).  Adjusted all users.
23107 2010-06-23  Arnaud Charlet  <charlet@adacore.com
23109         PR ada/22220
23110         * doc/install.texi: Update requirements to build GNAT.
23112 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
23114         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
23115         enum type.
23116         (m68k_sched_attr_opx_type): Remove unreachable return.
23117         (m68k_sched_attr_opy_type): Likewise.
23118         (m68k_sched_attr_size): Likewise.
23119         (sched_get_opxy_mem_type): Likewise.
23120         (m68k_sched_attr_op_mem): Likewise.
23122 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
23124         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
23125         new statement and adjust VDEF only if necessary.  Remove superfluous
23126         call to maybe_clean_or_replace_eh_stmt.
23127         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
23128         copy the flags.
23129         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
23130         * tree-inline.c (copy_bb): ...and not there.
23132 2010-06-22  Cary Coutant  <ccoutant@google.com>
23134         * dwarf2out.c (is_nested_in_subprogram): New function.
23135         (should_move_die_to_comdat): Use it.
23136         (copy_ancestor_tree): Don't mark DIEs here.
23137         (copy_decls_walk): Start walk from root of newly-added tree;
23138         mark DIEs here instead.
23140 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23142         * config/i386/i386.md (unit): Also check sseishft1.
23144 2010-06-22  Jan Hubicka  <jh@suse.cz>
23146         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
23147         enabled.
23149 2010-06-22  Jan Hubicka  <jh@suse.cz>
23151         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
23152         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
23153         Return true if something changed.
23154         * df.h (df_confluence_function_n): Return bool.
23155         * df-core.c (df_worklist_propagate_forward,
23156         df_worklist_propagate_backward): Track changes and ages.
23157         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
23158         track ages.
23159         * dse.c (dse_confluence_n): Return always true.
23161 2010-06-22  Jan Hubicka  <jh@suse.cz>
23163         * bitmap.c (bitmap_clear_bit): Micro optimize.
23165 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
23167         * config/i386/i386.md (SWI1248x): New mode iterator.
23168         (SWI48x): Ditto.
23169         (SWI12): Ditto.
23170         (SWI24): Ditto.
23172         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
23173         SWI1248x mode iterator.
23174         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
23175         using SWI124 mode iterator.
23176         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
23177         mode iterator.
23178         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
23179         *pushdi2_prologue_rex64 using P mode iterator.
23180         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
23181         using SWI48 mode iterator.
23182         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
23183         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
23184         using SWI1248x mode iterator.
23185         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
23186         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
23187         SWI48 mode iterator.
23188         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
23189         iterator.
23190         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
23191         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
23192         SWI12 mode iterator.
23193         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
23194         SWI12 mode iterator.
23195         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
23196         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
23197         SWI24 mode iterator.
23198         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
23199         SWI48 mode iterator.
23200         (mov<mode>_insn_1): New expander.
23201         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
23202         using SWI48x mode iterator.
23204         (*movoi_internal_avx): Rename from *movoi_internal.
23205         (*movti_internal_rex64): Rename from *movti_rex64.
23206         (*movti_internal_sse): Rename from *movti_sse.
23207         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
23208         (*movdi_internal): Rename from *movdi_2.
23209         (*movsi_internal): Rename from *movsi_1.
23210         (*movhi_internal): Rename from *movhi_1.
23211         (*movqi_internal): Rename from *movqi_1.
23213         (insv): Update the call to gen_movsi_insv_1 for rename.
23214         * config/i386/i386.c (promote_duplicated_reg): Ditto.
23216 2010-06-22  Jan Hubicka  <jh@suse.cz>
23218         * passes.c (execute_function_todo): Move call of statistics_fini_pass
23219         to ...
23220         (execute_todo) ... this one.
23222 2010-06-22  Alan Modra  <amodra@gmail.com>
23224         PR target/44364
23225         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
23226         * caller-save.c (insert_restore, insert_save): Use non-validate
23227         form of adjust_address.
23229 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23231         PR target/39690
23232         * config/pa/pa.c (override_options): Disable
23233         -freorder-blocks-and-partition.
23235 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
23237         PR target/44615
23238         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
23240         * config/i386/i386.md (type): Add sseishft1
23242         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
23243         (ppro_insn_load): Likewise.
23244         (ppro_insn_store): Likewise.
23245         (ppro_insn_both): Likewise.
23247         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
23248         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
23249         for type.
23250         (*vec_extractv2di_1_avx): Likewise.
23251         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
23252         type.  Remove atom_unit.
23253         (*vec_extractv2di_1_sse2): Likewise.
23255 2010-06-21  DJ Delorie  <dj@redhat.com>
23257         * diagnostic.h (diagnostic_classification_change_t): New.
23258         (diagnostic_context): Add history and push/pop list.
23259         (diagnostic_push_diagnostics): Declare.
23260         (diagnostic_pop_diagnostics): Declare.
23261         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
23262         from pragmas in a history chain instead of the global table.
23263         (diagnostic_push_diagnostics): New.
23264         (diagnostic_pop_diagnostics): New.
23265         (diagnostic_report_diagnostic): Scan history chain to find state
23266         of diagnostics as of the diagnostic location.
23267         * opts.c (set_option): Pass UNKNOWN_LOCATION to
23268         diagnostic_classify_diagnostic.
23269         (enable_warning_as_error): Likewise.
23270         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
23271         use in the history chain.
23272         * doc/extend.texi: Document pragma GCC diagnostic changes.
23274 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
23276         * dwarf2out.c (add_linkage_name): New function.  Don't add
23277         anything to DW_TAG_member DIEs.
23278         (add_name_and_src_coords_attributes): Use it.
23279         (gen_variable_die): Call it for C++ static data members if
23280         specification is DW_TAG_member.
23282         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
23283         C++ char16_t and char32_t.
23285         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
23286         * genattrtab.c: Include vecprim.h.
23287         (cached_attrs, cached_attr_count, attrs_seen_once,
23288         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
23289         attrs_cached_after): New variables.
23290         (find_attrs_to_cache): New function.
23291         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
23292         (write_test_expr): Add attrs_cached argument, return it too,
23293         attempt to cache non-const attributes used more than once in
23294         a single case handling.
23295         (write_attr_get): Use find_attrs_to_cache, for caching candidates
23296         emit cached_* variables.  Adjust write_attr_set callers.
23297         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
23298         to find attributes that should be cached in this block.  Adjust
23299         write_test_expr callers.
23300         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
23301         callers.
23302         (make_automaton_attrs): Adjust write_test_expr caller.
23304         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
23305         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
23306         (make_automaton_attrs): If find_tune_attr returns non-NULL,
23307         write separate internal_dfa_insn_code_* and insn_default_latency_*
23308         functions for each attribute's value and emit init_sched_attrs
23309         function and function pointers.
23310         * genattr.c (const_attrs, reservations): New variables.
23311         (gen_attr): Add const attributes to const_attrs vector.
23312         (check_tune_attr, find_tune_attr): New functions.
23313         (main): Add reservations to reservations vector.  If find_tune_attr
23314         returns true, add prototype for init_sched_attrs and make
23315         internal_dfa_insn_code and insn_default_latency function pointers,
23316         otherwise define init_sched_attrs as dummy macro.
23317         * cfgexpand.c: Include insn-attr.h.
23318         (gimple_expand_cfg): Call init_sched_attrs.
23320         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
23322         PR target/44575
23323         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
23324         va_arg from a set of register save slots into a temporary,
23325         if the container is bigger than type size, do the copying
23326         using smaller mode or using memcpy.
23328         PR bootstrap/44426
23329         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
23330         prototype.
23331         (sel_print_to_dot): Remove macro.
23332         (sel_print): Likewise.  New prototype.
23333         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
23334         (sel_print): New function.
23336 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23338         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
23339         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
23341 2010-06-21  Nick Clifton  <nickc@redhat.com>
23343         * config/rx/rx.h (PTRDIFF_TYPE): Define.
23344         (SMALL_REGISTER_CLASS): Define (to zero).
23345         (PRINT_OPERAND): Delete.
23346         (PRINT_OPERAND_ADDRESS): Delete.
23347         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
23348         (rx_print_operand_address): Delete prototype.
23349         * config/rx/rx.c (rx_print_operand): Make static.
23350         Allow %H and %L to handle CONST_DOUBLEs.
23351         (rx_print_operand_address): Make static.
23352         (rx_gen_move_template): Rename local variable 'template' to
23353         out_template.
23354         (rx_function_arg): Do not pass unknown sized objects in registers.
23355         (TARGET_PRINT_OPERAND): Define.
23356         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23358 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
23360         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
23362 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
23364         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
23365         stack-alignment for simple leaf-functions.
23367 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
23369         * doc/install.texi: Document bootstrap-lto.
23371 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
23373         PR debug/44248
23374         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
23375         (input_function): Drop them here, if VTA is disabled.
23377 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
23379         PR target/44546
23380         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
23381         New predicate.
23382         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
23383         ix86_swapped_fp_comparsion_operator instead of
23384         ix86_fp_comparison_operator.
23386         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
23387         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
23388         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
23389         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
23390         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
23391         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
23393 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
23395         PR other/32998
23396         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
23397         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
23398         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
23399         (decode_cmdline_option): Update for this return value.  Set
23400         orig_option_with_args_text field.  Set arg field for unknown
23401         options.  Make static.
23402         (decode_cmdline_options_to_array): New.
23403         (prune_options): Update handling of find_opt return value.
23404         * opts.c (read_cmdline_option): Take decoded option.  Return void.
23405         (read_cmdline_options): Take decoded options.
23406         (decode_options): Add parameters for decoded options.  Use
23407         decode_cmdline_options_to_array.  Use decoded options for -O
23408         scan.  Use integral_argument for -O parameters.  Update call to
23409         read_cmdline_options.
23410         (enable_warning_as_error): Update handling of find_opt return value.
23411         * opts.h: Update comment on unknown options.
23412         (struct cl_decoded_option): Update comments on opt_index and arg.
23413         Add orig_option_with_args_text.
23414         (decode_cmdline_option): Remove.
23415         (decode_cmdline_options_to_array): Declare.
23416         (decode_options): Update prototype.
23417         * toplev.c (save_argv): Remove.
23418         (save_decoded_options, save_decoded_options_count): New.
23419         (read_integral_parameter): Remove.
23420         (print_switch_values): Use decoded options.
23421         (toplev_main): Don't set save_argv.  Update call to decode_options.
23422         * toplev.h (read_integral_parameter): Remove.
23423         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
23425 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
23427         PR target/44072
23428         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
23429         immediate.
23430         * constraints.md (Pw, Px): New constraints.
23431         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
23433 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
23435         * config/i386/sse.md (fma4modesuffixf4): Removed.
23436         (ssemodesuffixf2s): Likewise.
23437         (ssemodesuffixf4): Likewise.
23438         (ssemodesuffixf2c): Likewise.
23439         (ssescalarmodesuffix2s): Likewise.
23440         (avxmodesuffixf2c): Likewise.
23441         (ssemodesuffix): New.
23442         (ssescalarmodesuffix): Likewise.
23443         Update patterns with ssemodesuffix and ssescalarmodesuffix.
23445 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
23447         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
23449 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23451         * stor-layout.c (debug_rli): Remove unused local variables.
23453 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
23455         PR rtl-optimization/40900
23456         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
23457         original expression for later reuse.
23458         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
23459         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
23461 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
23463         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
23464         double_int_fits_in_uhwi_p): Implement as static inline.
23465         (double_int_xor): New inline function.
23466         (double_int_lrotate, double_int_rrotate, double_int_max,
23467         double_int_umax, double_int_smax, double_int_min, double_int_umin,
23468         double_int_smin): Declare.
23469         (lrotate_double, rrotate_double): Remove declaration.
23470         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
23471         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
23472         (double_int_lrotate, double_int_rrotate, double_int_max,
23473         double_int_umax, double_int_smax, double_int_min, double_int_umin,
23474         double_int_smin): New function.
23475         * fold-const.c (int_const_binop): Clean up, use double_int_*
23476         functions.
23477         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
23478         double_int_* and immed_double_int_const functions.
23480 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
23482         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
23483         * function.c (types_used_by_cur_var_decl): Likewise.
23484         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
23486 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
23488         * tree.h (record_layout_info): Change type of pending_statics field
23489         to a VEC.
23490         * stor-layout.c (start_record_layout): Store NULL into
23491         pending_statics.
23492         (debug_rli): Call debug_vec_tree instead of debug_tree.
23493         (place_field): Likewise.
23494         (finish_record_layout): Likewise.
23496 2010-06-18  Alan Modra  <amodra@gmail.com>
23498         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
23500 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23502         PR target/43740
23503         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
23504         for SET source operand from SET destination operand.
23506 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
23508         PR rtl-optimization/39871
23509         * reload1.c (init_eliminable_invariants): For flag_pic, disable
23510         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
23511         (function_invariant_p): Rule out a plus of frame or arg pointer with
23512         a SYMBOL_REF.
23513         * ira.c (find_reg_equiv_invariant_const): Likewise.
23515 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
23517         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
23518         print_operand_address and puts to output the operand for CONST.
23520 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
23522         PR debug/44572
23523         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
23524         hook.
23526 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23528         * v850-protos.h (print_operand): Delete.
23529         (print_operand_address): Delete.
23530         * v850.h (PRINT_OPERAND): Delete.
23531         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23532         (PRINT_OPERAND_ADDRESS): Delete.
23533         * v850.c (print_operand_address): Rename to...
23534         (v850_print_operand_address): ...this.  Make static. Call
23535         v850_print_operand.
23536         (print_operand): Rename to...
23537         (v850_print_operand): ...this.  Make static.  Call
23538         v850_print_operand_address.
23539         (v850_print_operand_punct_valid_p): New function.
23540         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23541         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23543 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23545         * config/sh/sh-protos.h (print_operand): Delete.
23546         (print_operand_address): Delete.
23547         * config/sh/sh.h (PRINT_OPERAND): Delete.
23548         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23549         (PRINT_OPERAND_ADDRESS): Delete.
23550         * config/sh/sh.c (sh_print_operand_address): Make static.
23551         (sh_print_operand): Make static.  Call sh_print_operand_address
23552         and sh_print_operand.
23553         (sh_print_operand_punct_valid_p): New function.
23554         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23555         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23557 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23559         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
23560         (mcore_print_operand_address): Delete.
23561         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
23562         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23563         (PRINT_OPERAND_ADDRESS): Delete.
23564         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
23565         (mcore_print_operand): Make static.
23566         (mcore_print_operand_punct_valid_p): New function.
23567         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
23568         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23570 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23572         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
23573         (print_operand_address): Delete.
23574         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
23575         (PRINT_OPERAND_ADDRESS): Delete.
23576         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
23577         static.
23578         (m68hc11_print_operand): Make static.
23579         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
23581 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23583         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
23584         (m32r_print_operand_address): Delete.
23585         * config/m32r/m32r.h (m32r_punct_chars): Delete.
23586         (PRINT_OPERAND): Delete.
23587         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23588         (PRINT_OPERAND_ADDRESS): Delete.
23589         * config/m32r/m32r.c (m32r_punct_chars): Make static.
23590         (m32r_print_operand_address): Make static.
23591         (m32r_print_operand): Make static.
23592         (m32r_print_operand_punct_valid_p): New function.
23593         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23594         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23596 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23598         * config/iq2000/iq2000-protos.h (print_operand): Delete.
23599         (print_operand_address): Delete.
23600         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
23601         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23602         (PRINT_OPERAND_ADDRESS): Delete.
23603         (iq2000_print_operand_punct): Delete.
23604         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
23605         (iq2000_print_operand_address): Make static.
23606         (iq2000_print_operand): Make static.
23607         (iq2000_print_operand_punct_valid_p): New function.
23608         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23609         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23611 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23613         * config/frv/frv-protos.h (frv_print_operand): Delete.
23614         (frv_print_operand_address): Delete.
23615         * config/frv/frv.h (PRINT_OPERAND): Delete.
23616         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23617         (PRINT_OPERAND_ADDRESS): Delete.
23618         * config/frv/frv.c (frv_print_operand_address): Make static.
23619         (frv_print_operand): Make static.
23620         (frv_print_operand_punct_valid_p): New function.
23621         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23622         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23624 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
23626         * tree.h (vec_member): Declare.
23627         * tree.c (vec_member): Define.
23629 2010-06-17  Richard Guenther  <rguenther@suse.de>
23631         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
23632         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
23634 2010-06-17  Richard Guenther  <rguenther@suse.de>
23636         * tree-inline.c (declare_return_variable): Remove bogus code.
23638 2010-06-17  Richard Guenther  <rguenther@suse.de>
23640         * gimplify.c (gimplify_bind_expr): Always promote complex
23641         and vector variables to registers if possible.
23643 2010-06-17  Richard Guenther  <rguenther@suse.de>
23645         * expr.c (get_inner_reference): Use double_int for bit_offset
23646         calculation.
23648 2010-06-16  DJ Delorie  <dj@redhat.com>
23650         * common.opt (-fstrict-volatile-bitfields): new.
23651         * doc/invoke.texi: Document it.
23652         * fold-const.c (optimize_bit_field_compare): For volatile
23653         bitfields, use the field's type to determine the mode, not the
23654         field's size.
23655         * expr.c (expand_assignment): Likewise.
23656         (get_inner_reference): Likewise.
23657         (expand_expr_real_1): Likewise.
23658         * expmed.c (store_fixed_bit_field): Likewise.
23659         (extract_bit_field_1): Likewise.
23660         (extract_fixed_bit_field): Likewise.
23662 2010-06-16  Richard Guenther  <rguenther@suse.de>
23664         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
23666 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
23668         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
23669         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
23670         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
23671         * debug.c: Likewise.
23672         * sdbout.c: Likewise.
23673         * vmsdbgout.c: Likewise.
23674         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
23675         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
23676         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
23677         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
23678         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
23679         * dwarf2out.c (dw_fde_struct): New fields
23680         dw_fde_vms_{end,begin}_prologue.
23681         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
23682         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
23683         (dwarf2out_vms_end_prologue): New function.
23684         (dwarf2out_vms_begin_epilogue): New function.
23685         (dw_val_struct): New value dw_val_class_vms_delta.
23686         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
23687         begin_epilogue for VMS.
23688         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
23689         new static functions.
23690         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
23691         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
23692         static functions.
23693         (print_die): New case dw_val_class_vms_delta.
23694         (attr_checksum): Likewise.
23695         (same_dw_val_p: Likewise.
23696         (size_of_die): Likewise.
23697         (value_format): Likewise.
23698         (output_die): Likewise.
23699         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
23700         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
23701         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
23702         dwarf2out_cfi_begin_epilogue
23703         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
23705 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
23707         * config/cris/cris-protos.h (cris_print_operand): Delete.
23708         (cris_print_operand_address): Delete.
23709         * config/cris/cris.h (PRINT_OPERAND): Delete.
23710         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23711         (PRINT_OPERAND_ADDRESS): Delete.
23712         * config/cris/cris.c (cris_print_operand_address): Make static.
23713         (cris_print_operand): Make static.
23714         (cris_print_operand_punct_valid_p): New function.
23715         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23716         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23718 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
23720         * config/arm/arm-protos.h (arm_print_operand): Delete.
23721         (arm_print_operand_address): Delete.
23722         * config/arm/arm.h (PRINT_OPERAND): Delete.
23723         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
23724         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
23725         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
23726         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
23727         (arm_print_operand): Make static.
23728         (arm_print_operand_punct_valid_p): New function.
23729         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
23730         (TARGET_PRINT_OPERAND_ADDRESS): Define.
23732 2010-06-16  Nick Clifton  <nickc@redhat.com>
23734         * config/rx/constraints.md (NEGint4): New constraint.
23735         * config/rx/rx.md (attr cc): Add set_zsc.
23736         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
23737         initialised.
23738         (cmpsf): Likewise.
23739         (call_internal): Clobber the cc0 register.
23740         (call_value_internal): Likewise.
23741         (cstoresi4): Likewise.
23742         (movsieq): Likewise.
23743         (movsine): Likewise.
23744         (addsi3): Add alternative to handle small negative constants.
23745         (sunsi3): Likewise.
23746         (addsi3): Do not set the O bit in the cc0 register.
23747         (adddi3): Likewise.
23748         (subsi3): Likewise.
23749         (subdi3): Likewise.
23750         (andsi3): Reorder alternatives to prefer shorter forms.
23751         (mulsi3): Likewise.
23752         (iorsi3): Likewise.
23753         (negsi2): Note that the cc0 flags are set.
23754         (rotlsi3): Note that only the Z and S bits are set in cc0.
23755         (lshrsi3): Likewise.
23756         (ashlsi3): Likewise.
23757         (subsf3): Use %Q for the MEM operand.
23758         (fix_truncsfsi2): Likewise.
23759         (floatsisf2): Likewise.
23760         (bitset): Remove early clobber from destination.
23761         (bitset_in_memory): Likewise.
23762         (lrintsf2): Clobber the cc0 register.
23763         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
23764         (rx_print_operand): Handle %N.
23766 2010-06-16  Jan Hubicka  <jh@suse.cz>
23768         * df-core.c (df_compact_blocks): Free problem_temps vector.
23770 2010-06-16  Martin Jambor  <mjambor@suse.cz>
23772         PR tree-optimization/43905
23773         * tree-sra.c: Include tree-inline.h.
23774         (create_abstract_origin): Removed.
23775         (modify_function): Version the call graph node instead of creating
23776         abstract origins and dealing with same_body aliases.
23777         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
23778         function is versionable.
23779         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
23781 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
23783         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
23784         (CHOOSE_DYNAMIC_LINKER): Update.
23786 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
23788         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
23789         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
23790         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
23791         *prefetch_3dnow_rex.
23793 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
23795         * target.h (struct asm_out):Add declare_constant_name field.
23796         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
23797         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
23798         * output.h (default_asm_declare_constant_name): Declare.
23799         (assemble_label): Update prototype.
23800         * varasm.c (assemble_constant_contents): Use
23801         targetm.asm_out.declare_constant_name target hook.
23802         (assemble_label): Add 'file' argument.
23803         (default_asm_declare_constant_name): New function.
23804         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
23805         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
23806         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
23808         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
23809         * config/darwin.c (darwin_asm_declare_constant_name): New function.
23810         (machopic_output_indirection): Update assemble_label argument list.
23811         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
23812         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
23814 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
23816         PR middle-end/44391
23817         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
23818         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
23820 2010-06-15  Richard Guenther  <rguenther@suse.de>
23822         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
23824 2010-06-15  Paul Brook  <paul@codesourcery.com>
23826         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
23827         hard-float ABI.
23829 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
23831         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
23832         don't get a vector type for output.
23834 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
23836         PR fortran/44536
23837         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
23838         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
23839         (LANG_HOOKS_DECLS): Add it.
23840         * gimplify.c (omp_notice_variable): Call
23841         lang_hooks.decls.omp_report_decl.
23843 2010-06-15  Martin Jambor  <mjambor@suse.cz>
23845         PR lto/44464
23846         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
23847         on the newly dead SSA name.
23849 2010-06-15  Alan Modra  <amodra@gmail.com>
23851         * doc/invoke.texi: Add mcmodel to powerpc options.
23852         * configure.ac: Add HAVE_LD_LARGE_TOC test.
23853         * configure: Regenerate.
23854         * config.in: Regenerate.
23855         * config/rs6000/linux64.opt (mcmodel): New.
23856         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
23857         (TARGET_CMODEL, SET_CMODEL): Define.
23858         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
23859         select CMODEL_MEDIUM default.
23860         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
23861         (TARGET_CMODEL): Define default.
23862         * config/rs6000/rs6000.c (cmodel): New variable.
23863         (rs6000_explicit_options): Add cmodel field.
23864         (rs6000_handle_option): Handle -mcmodel.
23865         (create_TOC_reference): Add largetoc_reg param.  Generate high,
23866         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
23867         (rs6000_delegitimize_address): Recognise new toc reference rtl
23868         and minimal-toc rtl.
23869         (rs6000_legitimize_reload_address): Handle new toc references.
23870         (print_operand_address): Handle legitimate_constant_pool_address_p
23871         match before lo_sum.
23872         (rs6000_eliminate_indexed_memrefs): Tidy.
23873         (rs6000_emit_move): Tweak threshold for inlining constants.
23874         Keep rs6000_emit_allocate_stack large stack frame offsets
23875         loaded into r0 inline.
23876         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
23877         (tocrel_base, tocrel_offset): New variables.
23878         (toc_relative_expr_p): Set them here.
23879         (print_operand_address): Skip over any offset on constant pool address.
23880         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
23881         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
23882         (offsettable_ok_by_alignment): New function.
23883         (rs6000_emit_move): Address suitably aligned local symbol_refs
23884         relative to the toc pointer for -mcmodel=medium.
23885         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
23886         strict param.  Allow lo_sum version of addressing.  Verify reg
23887         used for -mminimal-toc and -mcmodel != small.  Update all callers.
23888         * config/rs6000/constraints.md: Update for above change.
23889         * config/rs6000/predicates.md: Likewise.
23890         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
23891         code.
23892         (tls_gd): Split for -mcmodel=medium/large.
23893         (tls_gd_high, tls_gd_low): New.
23894         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
23895         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
23896         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
23897         (largetoc_high, largetoc_low): New.
23898         (cmptf_internal2): Add clobber.
23899         * config/rs6000/rs6000-protos.h: Update.
23901 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
23903         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
23904         true if no prefetch is going to be generated for a given group.
23905         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
23906         estimate the prefetch_count.
23907         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
23908         prefetch count by considering the unroll_factor and prefetch_mod
23909         for is_loop_prefetching_profitable.
23911 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
23913         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
23914         anything if the argument is not a MEM.
23916 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
23918         PR debug/43650
23919         PR debug/44181
23920         PR debug/44247
23921         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
23922         debug stmts.
23923         (canonicalize_loop_ivs): Likewise.
23925 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
23927         PR debug/43656
23928         * haifa-sched.c (setup_insn_reg_pressure_info,
23929         update_register_pressure): Reject debug insns.
23930         (ready_sort): Don't setup reg pressure for debug insns.
23931         (schedule_insn): Don't update reg pressure for debug insns.
23933 2010-06-14  Richard Guenther  <rguenther@suse.de>
23935         * lto-streamer.c (cached_bp): Remove.
23936         (bitpack_delete): Likewise.
23937         (bitpack_create): Likewise.
23938         (bp_get_next_word): Likewise.
23939         (bp_pack_value, bp_unpack_value): Move ...
23940         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
23941         Re-implement.
23942         (struct bitpack_d): Likewise.
23943         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
23944         New inline functions.
23945         * lto-streamer-out.c (lto_output_bitpack): Remove.
23946         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
23947         (pack_value_fields): Adjust.
23948         (lto_write_tree): Likewise.
23949         (output_gimple_stmt): Likewise.
23950         (output_function): Likewise.
23951         * lto-streamer-in.c (input_gimple_stmt): Adjust.
23952         (input_function): Likewise.
23953         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
23954         (lto_input_bitpack): Remove.
23955         (lto_materialize_tree): Adjust.
23956         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
23957         * lto-cgraph.c (lto_output_edge): Adjust.
23958         (lto_output_node): Likewise.
23959         (lto_output_varpool_node): Likewise.
23960         (lto_output_ref): Likewise.
23961         (input_node): Likewise.
23962         (input_varpool_node): Likewise.
23963         (input_ref): Likewise.
23964         (input_edge): Likewise.
23965         (output_node_opt_summary): Likewise.
23966         (input_node_opt_summary): Likewise.
23967         * ipa-pure-const.c (pure_const_write_summary): Likewise.
23968         (pure_const_read_summary): Likewise.
23969         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
23970         (ipa_read_indirect_edge_info): Likewise.
23971         (ipa_write_node_info): Likewise.
23972         (ipa_read_node_info): Likewise.
23974 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
23976         PR target/44534
23977         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
23978         (vec_extract_lo_v16hi): Likewise.
23979         (vec_extract_lo_v32qi): Likewise.
23981 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
23983         PR bootstrap/44426
23984         * tree.h (build_call_expr): Don't define as vararg macro, instead
23985         add a prototype.
23986         * builtins.c (build_call_nofold): Remove.
23987         (expand_builtin_int_roundingfn, expand_builtin_pow,
23988         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
23989         expand_builtin_memset_args, expand_builtin_strcmp,
23990         expand_builtin_strncmp, expand_builtin_memory_chk): Use
23991         build_call_nofold_loc instead of build_call_nofold.
23992         (build_call_expr): New function.
23994         PR tree-optimization/44508
23995         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
23996         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
23997         don't eliminate trivially dead stmts.
23998         * tree-vrp.c (vrp_finalize): Pass false as last argument
23999         to substitute_and_fold.
24000         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
24001         to substitute_and_fold.
24002         * tree-ssa-ccp.c (ccp_finalize): Likewise.
24004         PR bootstrap/44509
24005         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
24007 2010-06-14  Ira Rosen  <irar@il.ibm.com>
24009         PR tree-optimization/44507
24010         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
24011         to build initial vector for BIT_AND_EXPR.
24012         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
24014 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
24016         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
24017         adjust z10prop set_attr.
24019 2010-06-13  Jan Hubicka  <jh@suse.cz>
24021         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
24022         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
24023         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
24024         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
24025         datastructure checks into checking asserts.
24026         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
24027         * tree-ssa-sccvn.c (VN_INFO): Likewise.
24028         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
24029         df_ref_create_structure): Likewise.
24030         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
24031         pool_free): Use gcc_checking_assert.
24032         * alias.c (get_alias_set): Likewise.
24033         * var-tracking.c (variable_htab_free, shared_hash_copy,
24034         canonicalize_values_mark, variable_merge_over_cur): Likewise.
24035         * lto-streamer.c (bp_unpack_value): Likewise.
24037 2010-06-13  Richard Guenther  <rguenther@suse.de>
24039         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
24040         Do not stream but initialize TYPE_CANONICAL to NULL.
24041         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
24042         * gimple.c (gimple_types_compatible_p): Disregard
24043         TYPE_STRUCTURAL_EQUALITY_P.
24044         (gimple_register_type): Use TYPE_CANONICAL as cache.
24045         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
24046         before registering common types.
24047         * config/i386/i386.c (ix86_function_arg_boundary): Do not
24048         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
24049         * tree.h (TYPE_CANONICAL): Clarify documentation.
24051 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
24053         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
24054         LIBCALL_VALUE): Remove macros.
24055         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
24056         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24057         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24058         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
24059         (ia64_function_value): Make static. Handle receiving the function
24060         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
24062 2010-06-12  Jan Hubicka  <jh@suse.cz>
24064         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
24065         at correct place.
24067 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
24069         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
24071 2010-06-12  Jan Hubicka  <jh@suse.cz>
24073         * df-core.c (df_clear_bb_info): New function.
24074         (df_set_blocks): bb_info is always allocated.
24075         (df_get_bb_info): Use block_info_elt_size.
24076         (df_set_bb_info): Likewise.
24077         (df_compact_blocks): Update for new block_info.
24078         (grow_bb_info): New function.
24079         * df-problems.c (df_grow_bb_info): Move to df-core.c
24080         (df_rd_set_bb_info): Remove.
24081         (df_rd_free_bb_info): Do not free block pool.
24082         (df_rd_alloc): Do not create pool, use check for
24083         obstack presence instead of NULL pointer for new blocks.
24084         (df_rd_free): DO not free alloc pool; clear block_info.
24085         (problem_RD): Add size of block info structure.
24086         (df_lr_set_bb_info): Remove.
24087         (df_lr_free_bb_info): Do not free block pool.
24088         (df_lr_alloc): Do not create pool, use check for
24089         obstack presence instead of NULL pointer for new blocks.
24090         (df_lr_free): DO not free alloc pool; clear block_info.
24091         (problem_LR): Add size of block info structure.
24092         (df_live_set_bb_info): Remove.
24093         (df_live_free_bb_info): Do not free block pool.
24094         (df_live_alloc): Do not create pool, use check for
24095         obstack presence instead of NULL pointer for new blocks.
24096         (df_live_free): DO not free alloc pool; clear block_info.
24097         (problem_LIVE): Add size of block info structure.
24098         (problem_CHAIN): Add size of block info structure.
24099         (df_byte_lr_set_bb_info): Remove.
24100         (df_byte_lr_free_bb_info): Do not free block pool.
24101         (df_byte_lr_alloc): Do not create pool, use check for
24102         obstack presence instead of NULL pointer for new blocks.
24103         (df_byte_lr_free): DO not free alloc pool; clear block_info.
24104         (problem_BYTE_LR): Add size of block info structure.
24105         (problem_NOTE): Add size of block info structure.
24106         (df_byte_MD_set_bb_info): Remove.
24107         (df_byte_MD_free_bb_info): Do not free block pool.
24108         (df_byte_MD_alloc): Do not create pool, use check for
24109         obstack presence instead of NULL pointer for new blocks.
24110         (df_byte_MD_free): DO not free alloc pool; clear block_info.
24111         (problem_BD): Add size of block info structure.
24112         * df-scan.c (df_scan_free_internal): Free block pool.
24113         (df_scan_set_bb_info): Remove.
24114         (df_scan_free_bb_info): Check for artificial_defs instead
24115         of bb_info being non-NULL.
24116         (df_scan_alloc): DO not create df_scan_block pool.
24117         (problem_SCAN): Set size of block info.
24118         (df_bb_refs_record): Do not allocate bb_info.
24119         * df.h (df_problem): Add block_info_elt_size.
24120         (struct dataflow): Change block_info to void *.
24121         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
24122         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
24123         in-line structures.
24125 2010-06-12  Jan Hubicka  <jh@suse.cz>
24127         PR tree-optimize/44485
24128         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
24129         containing use of return value of noreturn function.
24131 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
24133         * targhooks.c (default_function_value): Don't use
24134         FUNCTION_OUTGOING_VALUE.
24135         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
24136         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
24138 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
24140         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
24141         Add crtfastmath.o to extra_parts.
24142         * config/mips/crtfastmath.c: New.
24143         * config/mips/linux.h (ENDFILE_SPEC): New.
24145 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
24147         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
24148         old_type in parameter.
24149         (gcc_type_for_value): Update call to gcc_type_for_interval.
24150         (compute_type_for_level_1): Renamed compute_type_for_level.
24151         Update call to gcc_type_for_interval.
24153 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
24155         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
24156         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
24158 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
24160         * opts-common.c: Include options.h.
24161         (integral_argument): Move from opts.c.
24162         (decode_cmdline_option): New.  Based on read_cmdline_option.
24163         * opts.c (integral_argument): Move to opts-common.c.
24164         (read_cmdline_option): Move most contents to
24165         decode_cmdline_option.  Use %qs in diagnostics.
24166         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
24167         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
24168         decode_cmdline_option): New.
24170 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
24172         PR target/44481
24173         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
24174         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
24175         (partiysi2_cmp): Ditto.
24176         (*partiyhi2_cmp): Ditto.
24177         (*parityqi2_cmp): Remove.
24179 2010-06-11  Jan Hubicka  <jh@suse.cz>
24181         * bitmap.h (bmp_iter_next_bit): New.
24182         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
24184 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
24185             Eric Botcazou  <ebotcazou@adacore.com>
24187         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
24188         computed cost.
24190 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
24192         * config/i386/i386.md (unspec): New define_c_enum.
24193         (unspecv): Ditto.
24195 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
24197         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
24199 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
24201         PR middle-end/44483
24202         * tree-if-conv.c (bb_predicate_s): New struct.
24203         (bb_predicate_p): New.
24204         (bb_has_predicate): New.
24205         (bb_predicate): New.
24206         (set_bb_predicate): New.
24207         (bb_predicate_gimplified_stmts): New.
24208         (set_bb_predicate_gimplified_stmts): New.
24209         (add_bb_predicate_gimplified_stmts): New.
24210         (init_bb_predicate): New.
24211         (free_bb_predicate): New.
24212         (is_predicated): Use bb_predicate.
24213         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
24214         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
24215         before processing their successors.
24216         (clean_predicate_lists): Removed.
24217         (find_phi_replacement_condition): Use bb_predicate.
24218         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
24219         computations.
24220         (insert_gimplified_predicates): New.
24221         (combine_blocks): Call insert_gimplified_predicates.
24222         (tree_if_conversion): Call free_bb_predicate instead of
24223         clean_predicate_lists.
24225 2010-10-11  Paul Brook  <paul@codesourcery.com>
24227         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
24228         * config/arm/arm.c (all_architectures): Change v7e-m default to
24229         cortexm4.
24230         * config/arm/arm-cores.def: Add cortex-m4.
24231         * config/arm/arm-tune.md: Regenerate.
24233 2010-06-11  Jan Hubicka  <jh@suse.cz>
24235         * ipa-pure-const.c (special_builtlin_state): New function.
24236         (check_call): Use it instead of special casign BUILT_IN_RETURN.
24237         (propagate_pure_const): Use it.
24239 2010-06-11  Jan Hubicka  <jh@suse.cz>
24241         * df-problems.c (df_live_scratch): Convert to bitmap_head.
24242         (df_live_alloc): Initialize df_live_scratch when initializing
24243         problem_data.
24244         (df_live_transfer_function): Update uses of df_live_scratch.
24245         (df_live_free): Free problem_data; clear df_live_scratch before
24246         releasing the obstack.
24247         (df_md_free): Free problem data.
24249 2010-06-11  Jan Hubicka  <jh@suse.cz>
24251         * doc/invoke.texi (Wsuggest-attribute): Document.
24252         (Wmissing-noreturn): Remove.
24253         * ipa-pure-const.c (warn_function_noreturn): New function.
24254         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
24255         warn_missing_noreturn.
24256         * common.opt (Wsuggest-attribute=noreturn): New.
24257         * tree-flow.h (warn_function_noreturn): Declare.
24258         * tree-cfg.c (execute_warn_function_noreturn): Use
24259         warn_function_noreturn.
24260         (gate_warn_function_noreturn): New.
24261         (pass_warn_function_noreturn): Update.
24263 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24265         * c-typeck.c (handle_warn_cast_qual): Add loc
24266         parameter. Improve warning message.
24267         (build_c_cast): Pass location to handle_warn_cast_qual.
24269 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
24271         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
24272         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
24273         insn mnemonic.
24274         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
24276 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
24278         Fix bootstap on mips
24279         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
24280         be naming typedefs.
24282 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
24284         * system.h (helper_const_non_const_cast): New inline for
24285         gcc version <= 4.0.
24286         (CONST_CAST2): For gcc version <= 4.0 use
24287         new helper to do const/non-const casting.
24289 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24291         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
24292         * Makefile.in (OBJS-common): Include insn-enums.o.
24293         (insn-enums.o): New rule.
24294         (simple_generated_c): Add insn-enums.c.
24295         (build/genenums.o): New rule.
24296         (genprogmd): Add "enums".
24297         * genconstants.c (print_enum_type): Declare a C string array
24298         for each enum.
24299         * genenums.c: New file.
24300         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
24301         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
24302         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
24304 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24306         * doc/md.texi (define_enum_attr): Document.
24307         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
24308         * read-md.h (lookup_enum_type): Declare.
24309         * read-md.c (lookup_enum_type): New function.
24310         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
24311         * genattrtab.c (attr_desc): Add an enum_name field.
24312         (evaluate_eq_attr): Take the associated attribute as argument.
24313         Get the enum prefix from the enum_name field, if defined.
24314         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
24315         (simplify_test_exp): Pass attr to evaluate_eq_attr.
24316         (add_attr_value): New function, split out from...
24317         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
24318         (write_test_expr): Pass attr to evaluate_eq_attr.
24319         (write_attr_get): Use the enum_name as the enum tag, if defined.
24320         (write_attr_valueq): Use the enum_name as a prefix, if defined.
24321         (find_attr): Initialize enum_name.
24322         (main): Handle DEFINE_ENUM_ATTR.
24323         * gensupport.c (process_rtx): Likewise.
24324         * config/mips/mips.h (mips_tune_attr): Delete.
24325         * config/mips/mips.md (cpu): Use define_attr_enum.
24327 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24329         * doc/md.texi (define_c_enum, define_enum): Document.
24330         * read-md.h (md_constant): Add a parent_enum field.
24331         (enum_value, enum_type): New structures.
24332         (upcase_string, traverse_enum_types): Declare.
24333         * read-md.c (enum_types): New variable.
24334         (upcase_string, add_constant): New functions.
24335         (handle_constants): Don't create the hash table here.
24336         Use add_constant.
24337         (traverse_md_constants): Don't check for a null md_constants.
24338         (decimal_string, handle_enum, traverse_enum_types): New functions.
24339         (read_md_files): Initialize md_constants and md_enums.
24340         * genconstants.c (print_md_constant): Ignore info argument.
24341         Only print constants that belong to no enum.
24342         (print_enum_type): New function.
24343         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
24344         for each defined enum type.
24345         * config/mips/mips.md (processor): New define_enum.
24346         (unspec): New define_c_enum.
24347         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
24348         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
24349         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
24350         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
24351         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
24352         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
24353         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
24354         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
24355         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
24356         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
24357         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
24358         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
24359         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
24360         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
24361         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
24362         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
24363         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
24364         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
24365         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
24366         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
24367         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
24368         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
24369         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
24370         (UNSPEC_RDDSP): Move to mips-dsp.md.
24371         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
24372         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
24373         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
24374         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
24375         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
24376         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
24377         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
24378         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
24379         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
24380         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
24381         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
24382         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
24383         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
24384         Moved to mips-dspr2.md.
24385         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
24386         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
24387         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
24388         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
24389         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
24390         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
24391         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
24392         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
24393         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
24394         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
24395         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
24396         UNSPEC_LOONGSON_PSADBH)
24397         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
24398         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
24399         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
24400         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
24401         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
24402         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
24403         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
24404         (cpu): Update comment.
24405         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
24406         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
24407         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
24408         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
24409         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
24410         UNSPEC_LOONGSON_PCMPEQ)
24411         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
24412         UNSPEC_LOONGSON_PINSR_0)
24413         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
24414         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
24415         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
24416         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
24417         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
24418         UNSPEC_LOONGSON_PSADBH)
24419         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
24420         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
24421         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
24422         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
24423         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
24424         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
24425         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
24426         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
24427         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
24428         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
24429         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
24430         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
24431         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
24432         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
24433         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
24434         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
24435         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
24436         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
24437         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
24438         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
24439         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
24440         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
24441         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
24442         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
24443         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
24444         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
24445         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
24446         (UNSPEC_RDDSP): Moved from mips.md.
24447         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
24448         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
24449         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
24450         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
24451         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
24452         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
24453         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
24454         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
24455         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
24456         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
24457         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
24458         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
24459         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
24460         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
24461         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
24462         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
24463         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
24464         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
24465         (UNSPEC_SCC): Moved from mips.md.
24466         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
24467         "processor_type" to "processor".
24468         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
24469         * config/mips/mips.h (processor_type): Delete.
24470         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
24471         "processor_type" to "processor".
24473 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24475         * configure.ac (tm_include_list): Add insn-constants.h.
24476         * configure: Regenerate.
24477         * Makefile.in (GTM_H): Move insn-constants.h here from...
24478         (TM_H): ...here.
24479         * mkconfig.sh: Remove special handling for insn-constants.h.
24481 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24483         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
24484         (BUILD_MD): ...this new variable.
24485         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
24486         that include the old contents of simple_generated_h and
24487         simple_generated_c.
24488         (simple_generated_h, simple_generated_c): Include them.  Add
24489         insn-constants.h.
24490         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
24491         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
24492         Remove these dependencies from the main rule and include
24493         insn-conditions.md in the command line only if it appears
24494         in the dependency list.
24495         (insn-constants.h, s-constants): Delete.
24496         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
24497         or gensupport.h.
24498         (build/genmddeps.o): Likewise.
24499         (genprogrtl): New variable that contains everything from genprogmd
24500         except mddeps and constants.
24501         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
24502         depend on $(BUILD_MD)
24503         (genprog): New variable.  Make these programs depend on
24504         $(BUILD_ERRORS).
24505         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
24506         (main): Use read_md_files instead of init_rtx_reader_args.
24507         * genconstants.c: As for genmddeps.c.
24508         * read-md.h (read_skip_construct): Declare.
24509         * read-md.c (read_skip_construct): New function.
24510         (handle_file): Allow a null handle_directive, skipping the
24511         construct if so.
24512         (parse_include): Update the comment accordingly.
24514 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24516         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
24517         * genmddeps.c: Include read-md.h.
24518         (main): Call init_rtx_reader_args instead of init_md_reader_args.
24519         * genattr.c (main): Likewise.
24520         * genattrtab.c (main): Likewise.
24521         * genautomata.c (main): Likewise.
24522         * gencodes.c (main): Likewise.
24523         * genconditions.c (main): Likewise.
24524         * genconfig.c (main): Likewise.
24525         * genconstants.c (main): Likewise.
24526         * genemit.c (main): Likewise.
24527         * genextract.c (main): Likewise.
24528         * genflags.c (main): Likewise.
24529         * genopinit.c (main): Likewise.
24530         * genoutput.c (main): Likewise.
24531         * genpeep.c (main): Likewise.
24532         * genrecog.c (main): Likewise.
24533         * genpreds.c (main): Likewise.
24534         * gensupport.h (in_fname): Move to read-md.h.
24535         (init_md_reader_args_cb): Rename to...
24536         (init_rtx_reader_args_cb): ...this and return a bool.
24537         (init_md_reader_args): Rename to...
24538         (init_rtx_reader_args): ...this and return a bool.
24539         (include_callback): Move to read-md.h.
24540         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
24541         (file_name_list, first_dir_md_include): Move to read-md.c
24542         (first_bracket_include): Delete unused variable.
24543         (last_dir_md_include): Move to read-md.c.
24544         (process_include): Delete, moving code to read-md.c:handle_include.
24545         (process_rtx): Don't handle INCLUDE.
24546         (save_string): Delete.
24547         (rtx_handle_directive): New function.
24548         (init_md_reader_args_cb): Rename to...
24549         (init_rtx_reader_args_cb): ...this and return a boolean success value.
24550         Use read_md_args.
24551         (init_md_reader_args): Rename to...
24552         (init_rtx_reader_args): ...this and return a boolean success value.
24553         * rtl.def (INCLUDE): Delete.
24554         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
24555         argument.
24556         * read-rtl.c (read_conditions): Don't gobble ')' here.
24557         (read_mapping): Likewise.
24558         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
24559         Handle top-level non-rtx constructs here rather than in read_rtx_1.
24560         Store the whole queue in *X.  Remove call to init_md_reader.
24561         (read_rtx_1): Rename to...
24562         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
24563         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
24564         here.
24565         (read_nested_rtx): New function.  Handle (nil) here rather than
24566         in read_rtx_code.
24567         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
24568         gobble ')' here.
24569         * read-md.h (directive_handler_t): New type.
24570         (in_fname, include_callback): Moved from read-md.h.
24571         (read_constants, init_md_reader): Delete.
24572         (read_md_files): Declare.
24573         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
24574         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
24575         from gensupport.c.
24576         (read_constants): Rename to...
24577         (handle_constants): ...this.  Don't gobble ')' here.
24578         (handle_include, handle_file, handle_toplevel_file)
24579         (parse_include): New functions, mostly taken from gensupport.c.
24580         (init_md_reader): Subsume into...
24581         (read_md_files): ...this new function.
24583 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24585         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
24586         (unread_char): Decrement read_md_lineno after putting back '\n'.
24587         * read-md.c (fatal_with_file_and_line): Push back any characters
24588         that we decide not to add to the context.
24589         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
24590         fatal_expected_char in cases where '/' ends a line (for example).
24591         (read_name): Don't increment read_md_lineno here.
24592         (read_escape): Likewise.
24593         (read_quoted_string): Likewise.
24594         (read_braced_string): Likewise.
24596 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24598         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
24599         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
24600         * genconstants.c: Include read-md.h.
24601         * read-rtl.c (md_constants): Move to read-md.c.
24602         (md_name): Move to read-md.h.
24603         (initialize_iterators): Use leading_string_hash instead of def_hash
24604         and leading_string_eq_p instead of def_name_eq_p.
24605         (read_name): Move to read-md.c.
24606         (def_hash, def_name_eq_p): Delete.
24607         (read_constants, traverse_md_constants): Move to read-md.c.
24608         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
24609         * read-md.h: Include hashtab.h.
24610         (md_name): Moved from read-rtl.c.
24611         (md_constant): Moved from read-md.h.
24612         (leading_string_hash, leading_string_eq_p, read_name)
24613         (read_constants, traverse_md_constants): Declare.
24614         * read-md.c (md_constants): Moved from read-rtl.c.
24615         (leading_string_hash, leading_string_eq_p): New functions.
24616         (read_name, read_constants, traverse_md_constants): Moved from
24617         read-rtl.c.
24619 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24621         * read-rtl.c (md_name): New structure.
24622         (read_name): Take an md_name instead of a buffer pointer.
24623         Use the "string" field instead of strcpy when expanding constants.
24624         (read_constants): Remove the tmp_char argument.  Update the calls
24625         to read_name, using two local name buffers instead of the tmp_char
24626         argument.  Merge the constant-creation code.
24627         (read_conditions): Remove the tmp_char argument.  Update the calls
24628         to read_name, using a local name buffer instead of the tmp_char
24629         argument.
24630         (read_mapping): Replace tmp_char variable with a local name buffer.
24631         Update the calls to read_name.
24632         (read_rtx_1): Likewise.  Update the calls to read_constants and
24633         read_conditions.
24635 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24637         * Makefile.in (build/read-md.o): Depend on errors.h.
24638         * read-md.h (error_with_line): Declare.
24639         * read-md.c: Include errors.h.
24640         (message_with_line_1): New function, extracted from...
24641         (message_with_line): ...here.
24642         (error_with_line): New function.
24643         * genattrtab.c: If a call to message_with_line is followed by
24644         "have_error = 1;", replace both statements with a call to
24645         error_with_line.
24646         * genoutput.c: Likewise.
24647         * genpreds.c: Likewise.
24648         * genrecog.c: If a call to message_with_line is followed by
24649         "error_count++;", replace both statements with a call to
24650         error_with_line.
24651         (errorcount): Delete.
24652         (main): Don't check it.
24653         * gensupport.c: If a call to message_with_line is followed by
24654         "errors = 1;", replace both statements with a call to error_with_line.
24655         (errors): Delete.
24656         (process_define_cond_exec): Check have_error instead of errors.
24657         (init_md_reader_args_cb): Likewise.  Don't set errors.
24659 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24661         * read-md.h (read_md_file): Declare.
24662         (read_char, unread_char): New functions.
24663         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
24664         (read_quoted_string, read_string): Remove FILE * argument.
24665         * read-md.c (read_md_file): New variable.
24666         (read_md_filename, read_md_lineno): Update comments and remove
24667         unnecessary initialization.
24668         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
24669         (read_escape, read_quoted_string, read_braced_string, read_string):
24670         Remove FILE * argument.  Update calls accordingly, using read_char
24671         and unread_char instead of getc and ungetc.
24672         * rtl.h (read_rtx): Remove FILE * argument.
24673         * read-rtl.c (iterator_group): Remove FILE * argument from
24674         "find_builtin".
24675         (iterator_traverse_data): Remove "infile" field.
24676         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
24677         (add_mapping, read_name, read_constants, read_conditions)
24678         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
24679         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
24680         Remove file arguments from all calls, using read_char and unread_char
24681         instead of getc and ungetc.
24682         * gensupport.c (process_include): Preserve read_md_file around
24683         the include.  Set read_md_file to the handle of the included file.
24684         Update call to read_rtx.
24685         (init_md_reader_args_cb): Set read_md_file to the handle of the file
24686         and remove local FILE *.  Update calls to read_rtx.
24688 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24690         * read-md.h (read_rtx_lineno): Rename to...
24691         (read_md_lineno): ...this.
24692         (read_rtx_filename): Rename to...
24693         (read_md_filename): ...this.
24694         (copy_rtx_ptr_loc): Rename to...
24695         (copy_md_ptr_loc): ...this.
24696         (print_rtx_ptr_loc): Rename to...
24697         (print_md_ptr_loc): ...this.
24698         * read-md.c: Likewise.  Update references after renaming.
24699         (string_obstack): Replace RTL with MD in comment.
24700         (set_rtx_ptr_loc): Rename to...
24701         (set_md_ptr_loc): ...this.
24702         (get_rtx_ptr_loc): Rename to...
24703         (get_md_ptr_loc): ...this.
24704         * genconditions.c: Update references after renaming.
24705         * genemit.c: Likewise.
24706         * genoutput.c: Likewise.
24707         * genpreds.c: Likewise.
24708         * gensupport.c: Likewise.
24709         * read-rtl.c: Likewise.
24711 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
24713         * Makefile.in (READ_MD_H): New variable.
24714         (BUILD_RTL): Add build/read-md.o.
24715         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
24716         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
24717         (build/genattrtab.o, build/genconditions.o build/genemit.o)
24718         (build/genextract.o, build/genflags.o, build/genoutput.o)
24719         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
24720         (build/read-md.o): New rule.
24721         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
24722         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
24723         * coretypes.h: ...here.
24724         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
24725         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
24726         * genattr.c: Include read-md.h.
24727         * genattrtab.c: Likewise.
24728         * genconditions.c: Likewise.
24729         * genemit.c: Likewise.
24730         * genextract.c: Likewise.
24731         * genflags.c: Likewise.
24732         * genoutput.c: Likewise.
24733         * genpreds.c: Likewise.
24734         * genrecog.c: Likewise.
24735         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
24736         (join_c_conditions, print_c_condition, read_rtx_filename)
24737         (read_rtx_lineno): Move to read-md.h.
24738         * read-rtl.c: Include read-md.h.
24739         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
24740         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
24741         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
24742         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
24743         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
24744         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
24745         (read_braced_string, read_string): Move to read-md.c.
24746         (read_rtx): Move some initialization to init_md_reader and call
24747         init_md_reader here.
24748         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
24749         Move to read-md.h.
24750         * gensupport.c: Include read-md.h.
24751         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
24752         * read-md.h, read-md.c: New files.
24754 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
24756         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24757         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24758         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
24759         * config/moxie/moxie.c (moxie_function_value): Make static.
24760         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
24761         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24763 2010-06-10  Martin Jambor  <mjambor@suse.cz>
24765         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
24766         * dbgcnt.def (tree_sra): New counter.
24767         * tree-sra.c: Include dbgcnt.h.
24768         (gate_intra_sra): Check tree_sra debug counter.
24770 2010-06-10  Martin Jambor  <mjambor@suse.cz>
24772         PR tree-optimization/44258
24773         * tree-sra.c (build_access_subtree): Return false iff there is a
24774         partial overlap.
24775         (build_access_trees): Likewise.
24776         (analyze_all_variable_accesses): Disqualify candidates if
24777         build_access_trees returns true for them.
24779 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
24781         PR debug/41371
24782         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
24783         tail-recurse into canonical node.  Fast-forward over
24784         non-canonical VALUEs.
24786 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
24788         PR boostrap/44470
24789         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
24790         (*addsi_1_zext) <TYPE_LEA>: Likewise.
24791         (add lea splitter): Likewise.
24792         (add_zext lea splitter): Likewise.
24794 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
24796         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
24798 2010-06-10  Jan Hubicka  <jh@suse.cz>
24800         * df-problems.c (df_live_problem_data): Add live_bitmaps.
24801         (df_live_alloc): Initialize problem data and live_osbtacks.
24802         (df_live_finalize): Remove obstack, problem data; do not
24803         clear all bitmaps.
24804         (df_live_top_dump, df_live_bottom_dump): Do not dump old
24805         data when not allocated.
24806         (df_live_verify_solution_start): Do not allocate problem data.
24807         (df_live_verify_solution_end): Check if out is allocated.
24808         (struct df_md_problem_data): New structure.
24809         (df_md_alloc): Allocate problem data.
24810         (df_md_free): Free problem data; do not clear bitmaps.
24812 2010-06-10  Jan Beulich  <jbeulich@novell.com>
24814         PR bootstrap/37304
24815         * configure.ac: Replace $() with ${} when intending to expand
24816         variables rather than invoking commands.
24817         * configure: Re-generate.
24819 2010-06-10  Jan Hubicka  <jh@suse.cz>
24821         PR rtl-optimization/44460
24822         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
24823         TYPE_NEEDS_CONSTRUCTING sanity check.
24825 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
24827         * doc/include/fdl.texi: Move to GFDL version 1.3.
24829         * doc/cpp.texi: Move to GFDL version 1.3.
24830         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
24831         * doc/gccint.texi: Move to GFDL version 1.3.
24832         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
24833         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
24834         * doc/invoke.texi: Move to GFDL version 1.3.
24836 2010-06-09  Jan Hubicka  <jh@suse.cz>
24838         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
24839         Break out from ...
24840         (propagate) ... here; swap the order.
24842 2010-06-09  Jan Hubicka  <jh@suse.cz>
24844         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
24845         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
24846         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
24847         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
24849 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
24851         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
24852         Do not the gather memory reference in the outer loop if the step
24853         is not a constant.
24855 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
24857         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
24858         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
24859         8 to 4.  Minor change of the related comments.
24861 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24863         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
24864         the scev analysis when the variable is not used outside the loop
24865         in a close phi node: call compute_overall_effect_of_inner_loop.
24867 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24869         * graphite-sese-to-poly.c (single_pred_cond): Renamed
24870         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
24871         (build_sese_conditions_before): Renamed call to single_pred_cond.
24872         (build_sese_conditions_after): Same.
24874 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24876         * graphite-poly.h: Fix comments and indentation.
24877         * graphite-sese-to-poly.c: Same.
24878         (build_sese_conditions_before): Compute stmt and gbb only when needed.
24879         * tree-chrec.c: Fix comments and indentation.
24880         (tree-ssa-loop-niter.c): Same.
24882 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
24884         PR rtl-optimization/42461
24885         * dce.c (deletable_insn_p): Return true for const or pure calls again.
24886         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
24888 2010-06-09  Jan Hubicka  <jh@suse.cz>
24890         * bitmap.c (bitmap_and): Walk array forward.
24891         (bitmap_and_compl_into): Likewise.
24892         (bitmap_xor): Likewise.
24893         (bitmap_xor_into):  Likewise.
24894         (bitmap_equal_p): Likewise.
24895         (bitmap_intersect_p): Likewise.
24896         (bitmap_intersect_compl_p): Likewise.
24897         (bitmap_ior_and_into): Likewise.
24898         (bitmap_elt_copy): Likewise.
24899         (bitmap_and_compl): Likewise.
24900         (bitmap_elt_ior): Likewise.
24902 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
24904         * opts-common.c (prune_options): Ensure replacement argv array
24905         is correctly terminated by a NULL entry.
24907 2010-06-09  Jan Hubicka  <jh@suse.cz>
24909         * cgraph.h (varpool_first_static_initializer,
24910         varpool_next_static_initializer): Make checking only when
24911         checking enabled.
24912         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
24913         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
24914         gcc_assert to gcc_checking_assert.
24915         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
24916         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
24917         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
24918         op_iter_init_phiuse, op_iter_init_phidef,
24919         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
24920         gcc_checking_assert.
24921         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
24922         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
24923         partition_is_global, live_on_entry, live_on_exit,
24924         live_merge_and_clear): Likewise.
24925         * system.h (gcc_checking_assert): New macro.
24926         * gimple.h (set_bb_seq): Use gcc_checking_assert.
24928 2010-06-09  Jason Merrill  <jason@redhat.com>
24930         * Makefile.in (TAGS): Collect tags info from c-family.
24932 2010-06-09  Jan Hubicka  <jh@suse.cz>
24934         * gimple.h (gcc_gimple_checking_assert): New macro.
24935         (gimple_set_def_ops, gimple_set_use_ops,
24936         gimple_set_vuse, gimple_set_vdef,
24937         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
24938         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
24939         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
24940         gimple_asm_output_op, gimple_asm_output_op_ptr,
24941         gimple_asm_set_output_op, gimple_asm_clobber_op,
24942         gimple_asm_set_clobber_op, gimple_asm_label_op,
24943         gimple_asm_set_label_op, gimple_try_set_kind,
24944         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
24945         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
24946         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
24947         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
24948         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
24949         gimple_omp_for_set_initial, gimple_omp_for_final,
24950         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
24951         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
24952         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
24953         conditional with ENABLE_GIMPLE_CHECKING.
24954         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
24956 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
24958         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
24959         (get_computation_cost_at): Use it.
24960         (determine_use_iv_cost_condition): Likewise.
24961         (determine_iv_cost): Likewise.
24963 2010-06-09  Richard Guenther  <rguenther@suse.de>
24965         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
24966         replace constants.
24968 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
24970         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
24972 2010-06-09  Martin Jambor  <mjambor@suse.cz>
24974         PR tree-optimization/44423
24975         * tree-sra.c (dump_access): Dump also grp_assignment_read.
24976         (analyze_access_subtree): Pass negative allow_replacements to children
24977         if the current type is scalar.
24979 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24981         PR testsuite/42843
24982         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
24983         * doc/plugins.texi (Plugin license check): Update information
24984         on type of plugin_is_GPL_compatible.
24985         * Makefile.in (PLUGINCC): Define as $(COMPILER).
24986         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
24988 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
24990         * config/arm/arm.c (thumb2_reorg): New function.
24991         (arm_reorg): Call it.
24992         * config/arm/thumb2.md (define_peephole2 for flag clobbering
24993         arithmetic operations): Delete.
24995 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
24997         PR target/44067
24998         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
24999         e500v2 target.
25001 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
25003         PR plugins/44459
25004         * gcc-plugin.h: Encapsulate all declarations in extern "C".
25006 2010-06-08  Jan Hubicka  <jh@suse.cz>
25008         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
25009         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
25011 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
25013         PR tree-optimization/39874
25014         PR middle-end/28685
25015         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
25016         Declare.
25017         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
25018         same_bool_result_p): New.
25019         (and_var_with_comparison, and_var_with_comparison_1,
25020         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
25021         (or_var_with_comparison, or_var_with_comparison_1,
25022         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
25023         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
25024         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
25025         of combine_comparisons.
25026         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
25028 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
25030         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25031         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25032         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
25033         pdp11_function_value_regno_p): New functions.
25034         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25035         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25037 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
25039         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
25040         Thumb-2 in the MINUS case.
25042 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
25044         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
25046         * doc/gty.texi (GTY Options): Document typed GC allocation and
25047         variable_size GTY option.
25049         * ggc-internal.h: New.
25051         * ggc.h: Update copyright year.
25052         (digit_string): Move to stringpool.c.
25053         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
25054         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
25055         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
25056         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
25057         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
25058         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
25059         (ggc_force_collect, ggc_get_size, ggc_statistics)
25060         (ggc_print_common_statistics): Move to ggc-internal.h.
25061         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
25062         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
25063         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
25064         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
25065         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
25066         (ggc_alloc_zone_pass_stat): Remove.
25067         (ggc_internal_alloc_stat, ggc_internal_alloc)
25068         (ggc_internal_cleared_alloc_stat): New.
25069         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
25070         (ggc_internal_vec_alloc_stat)
25071         (ggc_internal_cleared_vec_alloc_stat)
25072         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
25073         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
25074         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
25075         (ggc_cleared_alloc_ptr_array_two_args): New.
25076         (htab_create_ggc, splay_tree_new_ggc): Redefine.
25077         (ggc_splay_alloc): Change the type of the first argument to
25078         enum gt_types_enum.
25079         (ggc_alloc_string): Make macro.
25080         (ggc_alloc_string_stat): New.
25081         (ggc_strdup): Redefine.
25082         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
25083         (ggc_alloc_rtvec_sized): New.
25084         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
25085         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
25086         (ggc_internal_cleared_alloc_zone_stat)
25087         (ggc_internal_zone_alloc_stat)
25088         (ggc_internal_zone_cleared_alloc_stat)
25089         (ggc_internal_zone_vec_alloc_stat)
25090         (ggc_alloc_zone_rtx_def_stat)
25091         (ggc_alloc_zone_tree_node_stat)
25092         (ggc_alloc_zone_cleared_tree_node_stat)
25093         (ggc_alloc_cleared_gimple_statement_d_stat): New.
25095         * ggc-common.c: Include ggc-internal.h.
25096         (ggc_internal_cleared_alloc_stat): Rename from
25097         ggc_alloc_cleared_stat.
25098         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
25099         (ggc_calloc): Remove.
25100         (ggc_cleared_alloc_htab_ignore_args): New.
25101         (ggc_cleared_alloc_ptr_array_two_args): New.
25102         (ggc_splay_alloc): Add obj_type parameter.
25103         (init_ggc_heuristics): Formatting fixes.
25105         * ggc-none.c: Update copyright year.
25106         (ggc_alloc_stat): Rename to ggc_alloc_stat.
25107         (ggc_alloc_cleared_stat): Rename to
25108         ggc_internal_cleared_alloc_stat.
25109         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
25111         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
25112         Remove references to ggc_alloc in comments.
25113         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
25114         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
25115         (new_ggc_zone, destroy_ggc_zone): Remove.
25116         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
25118         * ggc-zone.c: Include ggc-internal.h.  Remove references to
25119         ggc_alloc in comments.
25120         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
25121         (ggc_internal_alloc_zone_pass_stat): New.
25122         (ggc_internal_cleared_alloc_zone_stat): New.
25123         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
25124         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
25125         (new_ggc_zone, destroy_ggc_zone): Remove.
25127         * stringpool.c: Update copyright year.  Include ggc-internal.h
25128         (digit_vector): Make static.
25129         (digit_string): Moved from ggc.h.
25130         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
25131         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
25133         * Makefile.in (GGC_INTERNAL_H): New.
25134         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
25135         $(GGC_INTERNAL_H) to dependencies.
25137         * gengtype.c: Update copyright year.
25138         (walk_type): Accept variable_size GTY option.
25139         (USED_BY_TYPED_GC_P): New macro.
25140         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
25141         whitespace at the end of strings.
25142         (get_type_specifier, variable_size_p): New functions.
25143         (alloc_quantity, alloc_zone): New enums.
25144         (write_typed_alloc_def): New function.
25145         (write_typed_struct_alloc_def): Likewise.
25146         (write_typed_typed_typedef_alloc_def): Likewise.
25147         (write_typed_alloc_defns): Likewise.
25148         (output_typename, write_splay_tree_allocator_def): Likewise.
25149         (write_splay_tree_allocators): Likewise.
25150         (main): Call write_typed_alloc_defns and
25151         write_splay_tree_allocators.
25153         * lto-streamer.h (lto_file_decl_data_ptr): New.
25155         * passes.c (order): Define using cgraph_node_ptr.
25157         * strinpool.c (struct string_pool_data): Declare nested_ptr using
25158         ht_identifier_ptr.
25160         * gimple.h (union gimple_statement_d): Likewise.
25162         * rtl.h (struct rtx_def): Likewise.
25163         (struct rtvec_def): Likewise.
25165         * tree.h (union tree_node): Likewise.
25167         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
25169         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
25171         * tree-scalar-evolution.c (scev_initialize): Likewise.
25173         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
25175         * dwarf2asm.c (dw2_force_const_mem): Likewise.
25177         * omp-low.c (lower_omp_critical): Likewise.
25179         * bitmap.h (struct bitmap_head_def): Update comment to not
25180         reference ggc_alloc.
25182         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
25184         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
25186         * ipa-prop.c (duplicate_ggc_array): Rename to
25187         duplicate_ipa_jump_func_array.  Use typed GC allocation.
25188         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
25190         * gimple.c (gimple_alloc_stat): Use
25191         ggc_alloc_cleared_gimple_statement_d_stat.
25193         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
25195         * tree.c (make_node_stat): Use
25196         ggc_alloc_zone_cleared_tree_node_stat.
25197         (make_tree_vec_stat): Likewise.
25198         (build_vl_exp_stat): Likewise.
25199         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
25200         (make_tree_binfo_stat): Likewise.
25201         (tree_cons_stat): Likewise.
25203         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
25204         (shallow_copy_rtx_stat): Likewise.
25205         (make_node_stat): Likewise.
25207         * lto-symtab.c: Fix comment.
25209         * tree-cfg.c (create_bb): Update comment to not reference
25210         ggc_alloc_cleared.
25211         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
25213         * varpool.c (varpool_node): Use typed GC allocation.
25214         (varpool_extra_name_alias): Likewise.
25216         * varasm.c (emutls_decl): Likewise.
25217         (get_unnamed_section): Likewise.
25218         (get_noswitch_section): Likewise.
25219         (get_section): Likewise.
25220         (get_block_for_section): Likewise.
25221         (build_constant_desc): Likewise.
25222         (create_constant_pool): Likewise.
25223         (force_const_mem): Likewise.
25225         * tree.c (build_vl_exp_stat): Likewise.
25226         (build_real): Likewise.
25227         (build_string): Likewise.
25228         (decl_debug_expr_insert): Likewise.
25229         (decl_value_expr_insert): Likewise.
25230         (type_hash_add): Likewise.
25231         (build_omp_clause): Likewise.
25233         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
25235         * tree-ssa.c (init_tree_ssa): Likewise.
25237         * tree-ssa-structalias.c (heapvar_insert): Likewise.
25239         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25241         * tree-ssa-loop-niter.c (record_estimate): Likewise.
25243         * tree-ssa-alias.c (get_ptr_info): Likewise.
25245         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25247         * tree-phinodes.c (allocate_phi_node): Likewise.
25249         * tree-iterator.c (tsi_link_before): Likewise.
25250         (tsi_link_after): Likewise.
25252         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25254         * tree-dfa.c (create_var_ann): Likewise.
25256         * tree-cfg.c (create_bb): Likewise.
25258         * toplev.c (alloc_for_identifier_to_locale): Likewise.
25259         (general_init): Likewise.
25261         * stringpool.c (stringpool_ggc_alloc): Likewise.
25262         (gt_pch_save_stringpool): Likewise.
25264         * sese.c (if_region_set_false_region): Likewise.
25266         * passes.c (do_per_function_toporder): Likewise.
25268         * optabs.c (set_optab_libfunc): Likewise.
25269         (set_conv_libfunc): Likewise.
25271         * lto-symtab.c (lto_symtab_register_decl): Likewise.
25273         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25274         (input_eh_region): Likewise.
25275         (input_eh_lp): Likewise.
25276         (make_new_block): Likewise.
25277         (unpack_ts_real_cst_value_fields): Likewise.
25279         * lto-section-in.c (lto_new_in_decl_state): Likewise.
25281         * lto-cgraph.c (input_node_opt_summary): Likewise.
25283         * loop-init.c (loop_optimizer_init): Likewise.
25285         * lambda.h (lambda_vector_new): Likewise.
25287         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
25289         * ira.c (update_equiv_regs): Likewise.
25291         * ipa.c (cgraph_node_set_new): Likewise.
25292         (cgraph_node_set_add): Likewise.
25293         (varpool_node_set_new): Likewise.
25294         (varpool_node_set_add): Likewise.
25296         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
25297         (duplicate_ipa_jump_func_array): Likewise.
25298         (ipa_read_node_info): Likewise.
25300         * ipa-cp.c (ipcp_create_replace_map): Likewise.
25302         * integrate.c (get_hard_reg_initial_val): Likewise.
25304         * gimple.c (gimple_alloc_stat): Likewise.
25305         (gimple_build_omp_for): Likewise.
25306         (gimple_seq_alloc): Likewise.
25307         (gimple_copy): Likewise.
25309         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
25310         (gsi_insert_after_without_update): Likewise.
25312         * function.c (add_frame_space): Likewise.
25313         (insert_temp_slot_address): Likewise.
25314         (assign_stack_temp_for_type): Likewise.
25315         (allocate_struct_function): Likewise.
25316         (types_used_by_var_decl_insert): Likewise.
25318         * except.c (init_eh_for_function): Likewise.
25319         (gen_eh_region): Likewise.
25320         (gen_eh_region_catch): Likewise.
25321         (gen_eh_landing_pad): Likewise.
25322         (add_call_site): Likewise.
25324         * emit-rtl.c (get_mem_attrs): Likewise.
25325         (get_reg_attrs): Likewise.
25326         (start_sequence): Likewise.
25327         (init_emit): Likewise.
25329         * dwarf2out.c (new_cfi): Likewise.
25330         (queue_reg_save): Likewise.
25331         (dwarf2out_frame_init): Likewise.
25332         (new_loc_descr): Likewise.
25333         (find_AT_string): Likewise.
25334         (new_die): Likewise.
25335         (add_var_loc_to_decl): Likewise.
25336         (clone_die): Likewise.
25337         (clone_as_declaration): Likewise.
25338         (break_out_comdat_types): Likewise.
25339         (new_loc_list): Likewise.
25340         (loc_descriptor): Likewise.
25341         (add_loc_descr_to_each): Likewise.
25342         (add_const_value_attribute): Likewise.
25343         (tree_add_const_value_attribute): Likewise.
25344         (add_comp_dir_attribute): Likewise.
25345         (add_name_and_src_coords_attributes): Likewise.
25346         (lookup_filename): Likewise.
25347         (store_vcall_insn): Likewise.
25348         (dwarf2out_init): Likewise.
25350         * dbxout.c (dbxout_init): Likewise.
25352         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25354         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25356         * config/score/score7.c (score7_output_external): Likewise.
25358         * config/score/score3.c (score3_output_external): Likewise.
25360         * config/s390/s390.c (s390_init_machine_status): Likewise.
25362         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25363         (rs6000_init_machine_status): Likewise.
25364         (output_toc): Likewise.
25366         * config/pa/pa.c (pa_init_machine_status): Likewise.
25367         (get_deferred_plabel): Likewise.
25369         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25371         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25373         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25375         * config/mep/mep.c (mep_init_machine_status): Likewise.
25376         (mep_note_pragma_flag): Likewise.
25378         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25380         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25382         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25384         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25385         (i386_pe_maybe_record_exported_symbol): Likewise.
25387         * config/i386/i386.c (get_dllimport_decl): Likewise.
25388         (ix86_init_machine_status): Likewise.
25389         (assign_386_stack_local): Likewise.
25391         * config/frv/frv.c (frv_init_machine_status): Likewise.
25393         * config/darwin.c (machopic_indirection_name): Likewise.
25395         * config/cris/cris.c (cris_init_machine_status): Likewise.
25397         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25399         * config/avr/avr.c (avr_init_machine_status): Likewise.
25401         * config/arm/arm.c (arm_init_machine_status): Likewise.
25403         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25404         (alpha_need_linkage): Likewise.
25405         (alpha_use_linkage): Likewise.
25407         * cgraph.c (cgraph_allocate_node): Likewise.
25408         (cgraph_create_edge_1): Likewise.
25409         (cgraph_create_indirect_edge): Likewise.
25410         (cgraph_add_asm_node): Likewise.
25412         * cfgrtl.c (init_rtl_bb_info): Likewise.
25414         * cfgloop.c (alloc_loop): Likewise.
25415         (rescan_loop_exit): Likewise.
25417         * cfg.c (init_flow): Likewise.
25418         (alloc_block): Likewise.
25419         (unchecked_make_edge): Likewise.
25421         * c-parser.c (c_parse_init): Likewise.
25422         (c_parse_file): Likewise.
25424         * c-decl.c (bind): Likewise.
25425         (record_inline_static): Likewise.
25426         (push_scope): Likewise.
25427         (make_label): Likewise.
25428         (lookup_label_for_goto): Likewise.
25429         (finish_struct): Likewise.
25430         (finish_enum): Likewise.
25431         (c_push_function_context): Likewise.
25433         * bitmap.c (bitmap_element_allocate): Likewise.
25434         (bitmap_gc_alloc_stat): Likewise.
25436         * alias.c (record_alias_subset): Likewise.
25437         (init_alias_analysis): Likewise.
25439 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
25441         * fold-const.c (fold_comparison): Remove redundant parenthesis.
25442         * tree-inline.c (expand_call_inline): Pass translated return value of
25443         cgraph_inline_failed_string to diagnostic function.
25445 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
25446             Shujing Zhao  <pearly.zhao@oracle.com>
25448         PR c/37724
25449         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
25450         implicit bad conversions is initialization.
25451         (error_init): Use gmsgid instead of msgid for argument name and change
25452         the call for error.
25453         (pedwarn_init): Use gmsgid instead of msgid for argument name and
25454         change the call for pedwarn.
25455         (warning_init): Use gmsgid instead of msgid for argument name and
25456         change the call for warning.
25458 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
25460         * config/mips/mips-protos.h (mips_print_operand): Delete.
25461         (mips_print_operand_address): Delete.
25462         * config/mips/mips.h (mips_print_operand_punct): Delete.
25463         (PRINT_OPERAND): Delete.
25464         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25465         (PRINT_OPERAND_ADDRESS): Delete.
25466         * config/mips/mips.c (mips_print_operand_punct): Make static.
25467         (mips_print_operand_address): Make static.
25468         (mips_print_operand): Make static.  Call
25469         mips_print_operand_punct_valid_p.
25470         (mips_print_operand_punct_valid_p): New function.
25471         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
25472         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
25474 2010-06-07  Jan Hubicka  <jh@suse.cz>
25476         PR middle-end/44454
25477         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
25478         are allocated.
25480 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
25482         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
25483         name of RECORD.
25485 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25487         * doc/sourcebuild.texi (Effective-Target Keywords, Other
25488         attributes): Document gas.
25490 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
25492         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
25493         <TYPE_LEA>: Split instruction.
25494         <default>: Remove alternative 2 handling.
25495         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
25496         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
25497         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
25499         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
25500         (ashift_zext lea splitter): Use DImode for multiplication.
25502         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
25503         to generate addition.
25505 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
25507         * common.opt (fira-verbose): Use Var.
25508         (fpcc-struct-return): Use Init instead of VarExists.
25509         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
25510         toplev.c.
25511         * flags.h (flag_signed_char, flag_short_enums,
25512         flag_pcc_struct_return, flag_ira_verbose,
25513         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
25514         * toplev.c (flag_detailed_statistics, flag_signed_char,
25515         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
25516         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
25517         * toplev.h (flag_crossjumping, flag_if_conversion,
25518         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
25519         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
25520         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
25521         flag_cprop_registers, time_report, flag_ira_loop_pressure,
25522         flag_ira_coalesce, flag_ira_move_spills,
25523         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
25525 2010-06-07  Jan Hubicka  <jh@suse.cz>
25527         * df-core.c (df_analyze_problem): Do verification after allocation.
25529         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
25530         (df_lr_alloc): Initialize problem data; move bitmaps to
25531         lr_bitmaps obstack.
25532         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
25533         (df_lr_verify_solution_start): Do not initialize problem data;
25534         allocate bitmaps in lr_bitmaps.
25535         (df_lr_verify_solution_end): Do not free problem data.
25537 2010-06-07  Jan Hubicka  <jh@suse.cz>
25539         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
25540         if caller is noreturn.
25541         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
25542         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
25543         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
25544         * ipa-pure-const.c (check_decl): Add IPA parameter.
25545         (state_from_flags): New function.
25546         (better_state, worse_state): New functions.
25547         (check_call): When in IPA mode, do not care about callees.
25548         (check_load, check_store): Update.
25549         (check_ipa_load, check_ipa_store): New.
25550         (check_stmt): When in IPA mode, use IPA checkers.
25551         (analyze_function): Use state_from_flags.
25552         (propagate): Check indirect edges and references.
25554 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
25556         PR rtl-optimization/44404
25557         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
25558         of count_occurrences to see if it's safe to modify mem_insn.
25560 2010-06-07  Richard Guenther  <rguenther@suse.de>
25562         * gimplify.c (gimplify_cleanup_point_expr): For empty body
25563         and EH-only cleanup drop the cleanup instead of inserting it
25564         unconditionally.
25566 2010-06-07  Ira Rosen  <irar@il.ibm.com>
25568         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
25569         documentation.
25570         * targhooks.c (default_builtin_vectorization_cost): New function.
25571         * targhooks.h (default_builtin_vectorization_cost): Declare.
25572         * target.h (enum vect_cost_for_stmt): Define.
25573         (builtin_vectorization_cost): Change argument and comment.
25574         * tree-vectorizer.h: Remove cost model macros.
25575         * tree-vect-loop.c: Include target.h.
25576         (vect_get_cost): New function.
25577         (vect_estimate_min_profitable_iters): Replace cost model macros with
25578         calls to vect_get_cost.
25579         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
25580         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
25581         default implementation.
25582         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
25583         calls to target hook builtin_vectorization_cost.
25584         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
25585         Likewise.
25586         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
25587         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
25588         implementation to return costs.
25589         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
25590         * config/spu/spu.h: Remove vectorizer cost model macros.
25591         * config/i386/i386.h: Likewise.
25592         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
25593         a call to target hook builtin_vectorization_cost.
25595 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
25597         PR target/44319
25598         * config/i386/i386.c (override_options): Turn zee pass on for level 2
25599         and above and defer till target is known.
25600         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
25601         turn off otherwise.
25603 2010-05-25  Jan Hubicka  <jh@suse.cz>
25605         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
25606         (df_compact_blocks): Likewise.
25607         * df.h (struct df): Turn hardware_regs_used,
25608         regular_block_artificial_uses, eh_block_artificial_uses,
25609         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
25610         bitmap_head.
25611         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
25612         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
25613         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
25614         df_scan_blocks, df_insn_delete, df_insn_rescan,
25615         df_insn_rescan_debug_internal, df_insn_rescan_all,
25616         df_process_deferred_rescans, df_process_deferred_rescans,
25617         df_notes_rescan, df_get_call_refs, df_get_call_refs,
25618         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
25619         df_record_entry_block_defs, df_record_exit_block_uses,
25620         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
25621         df_scan_verify): Update.
25623 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
25625         PR c++/44188
25626         * c-common.c (is_typedef_decl): Move this definition ...
25627         * tree.c (is_typedef_decl): ... here.
25628         (typdef_variant_p): Move definition here from cp/tree.c.
25629         * c-common.h (is_typedef_decl): Move this declaration ...
25630         * tree.h (is_typedef_decl): ... here.
25631         (typedef_variant_p): Move declaration here from cp/cp-tree.h
25632         * dwarf2out.c (is_naming_typedef_decl): New function.
25633         (gen_tagged_type_die): Split out of ...
25634         (gen_type_die_with_usage): ... this function. When an anonymous
25635         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
25636         is emitted for the typedef.
25637         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
25638         anonymous tagged types.
25640 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25642         PR c/20000
25643         * c-decl.c (grokdeclarator): Delete warning.
25645 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
25647         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
25648         newly built CALL_EXPR.
25649         * tree-profile.c (tree_profiling): Don't profile functions produced
25650         for built-in stuff.
25652 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
25654         PR bootstrap/44427
25655         PR bootstrap/44428
25656         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
25657         endianness-independent.
25659 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
25661         * c-common.c: Move to c-family/.
25662         * c-common.def: Likewise.
25663         * c-common.h: Likewise.
25664         * c-cppbuiltin.c: Likewise.
25665         * c-dump.c: Likewise.
25666         * c-format.c: Likewise.
25667         * c-format.h : Likewise.
25668         * c-gimplify.c: Likewise.
25669         * c-lex.c: Likewise.
25670         * c-omp.c: Likewise.
25671         * c.opt: Likewise.
25672         * c-opts.c: Likewise.
25673         * c-pch.c: Likewise.
25674         * c-ppoutput.c: Likewise.
25675         * c-pragma.c: Likewise.
25676         * c-pragma.h: Likewise.
25677         * c-pretty-print.c: Likewise.
25678         * c-pretty-print.h: Likewise.
25679         * c-semantics.c: Likewise.
25680         * stub-objc.c: Likewise.
25682         * gengtype.c (get_file_langdir): Special-case files in c-family/.
25683         (get_output_file_with_visibility): Fix name for c-common.h.
25684         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
25686         * c-tree.h: Update include path for moved files.
25687         * c-lang.c: Likewise.
25688         * c-lang.h: Likewise.
25689         * c-parser.c: Likewise.
25690         * c-convert.c: Likewise.
25691         * c-decl.c: Likewise.
25692         * c-objc-common.c: Likewise.
25693         * configure.ac: Make sure c-family/ exists in the build directory.
25694         * configure: Regenerate.
25695         * Makefile.in: Update paths for moved files.  Regroup files per
25696         location and update dependencies.  Move generated_files down after
25697         ALL_GTFILES_H.
25699         * config/spu/spu-c.c: Update paths for moved files.
25700         * config/mep/mep-pragma.c: Likewise.
25701         * config/darwin-c.c: Likewise.
25702         * config/i386/msformat-c.c: Likewise.
25703         * config/i386/i386-c.c: Likewise.
25704         * config/avr/avr-c.c: Likewise.
25705         * config/sol2-c.c: Likewise.
25706         * config/ia64/ia64-c.c: Likewise.
25707         * config/rs6000/rs6000-c.c: Likewise.
25708         * config/arm/arm.c: Likewise.
25709         * config/arm/arm-c.c: Likewise.
25710         * config/h8300/h8300.c: Likewise.
25711         * config/v850/v850-c.c: Likewise.
25713         * config/t-darwin: Fix dependencies for moved files.
25714         * config/t-sol2: Fix dependencies for moved files.
25715         * config/mep/t-mep: Fix dependencies for moved files.
25716         * config/ia64/t-ia64: Fix dependencies for moved files.
25717         * config/rs6000/t-rs6000: Fix dependencies for moved files.
25718         * config/v850/t-v850: Fix dependencies for moved files.
25719         * config/v850/t-v850e: Fix dependencies for moved files.
25721         * config/m32c/m32c-pragma.c
25723         * po/exgettext: Look in c-family/ also.
25725 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
25727         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
25728         (mark_control_dependent_edges_necessary): Call it instead of marking
25729         the last statement manually.
25730         (propagate_necessity): Likewise.
25732 2010-06-05  Jan Hubicka  <jh@suse.cz>
25734         * basic-block.h (compute_dominance_frontiers): Updated.
25735         (compute_idf): Likewise.
25737         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
25738         for dominance frontiers.
25739         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
25740         (insert_updated_phi_nodes_for): Likewise.
25741         (update_ssa): Likewise.
25742         * cfganal.c (compute_dominance_frontiers_1): Likewise.
25743         (compute_dominance_frontiers): Likewise.
25744         (compute_idf): Likewise.
25745         * df-problems.c (df_md_local_compute): Likewise.
25747 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
25749         * target.h (struct gcc_target): Add memory_move_cost field.
25750         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
25751         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
25752         * targhooks.c (default_memory_move_cost): New function.
25753         * targhooks.h (default_memory_move_cost): Declare function.
25754         * reload.h (memory_move_cost): Declare.
25755         (memory_move_secondary_cost): Change type of 'in' argument to bool.
25756         * reginfo.c (memory_move_cost): New function.
25757         (memory_move_secondary_cost): Change type of 'in' argument to bool.
25758         * ira.h (ira_memory_move_cost): Update comment.
25759         * ira.c (ira_memory_move_cost): Update comment.
25760         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
25761         with memory_move_cost.
25762         * postreload.c (reload_cse_simplify_set): (Ditto.).
25763         * reload1.c (choose_reload_regs): (Ditto.).
25764         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
25765         (MEMORY_MOVE_COST):  Revise documentation.
25767         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
25768         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
25769         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
25770         type of 'in' argument to bool.
25771         (TARGET_MEMORY_MOVE_COST): Define.
25773 2010-06-05  Jan Hubicka  <jh@suse.cz>
25775         * ipa-pure-const.c (propagate): Fix typo in handling of functions
25776         that cannot return.  Be more careful when merging the results with
25777         previously known ones.
25779 2010-06-05  Matthias Klose  <doko@ubuntu.com>
25781         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
25782         function to add the -iplugindir option.
25783         (find_plugindir_spec_function): Add new declaration and function.
25784         (static_spec_func): Use it for "find-plugindir".
25786 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
25788         PR c++/44361
25789         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
25790         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
25791         statement expression.
25793 2010-06-05  Jan Hubicka  <jh@suse.cz>
25795         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
25796         (df_rd_problem_data): Convert sparse_invalidated_by_call,
25797         dense_invalidated_by_call to bitmap head.
25798         (df_rd_alloc, df_rd_bb_local_compute_process_def,
25799         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
25800         df_rd_start_dump, df_lr_verify_transfer_functions,
25801         df_live_verify_transfer_functions, df_chain_create_bb,
25802         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
25803         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
25804         df_simulate_one_insn_forwards, df_md_alloc,
25805         df_md_bb_local_compute_process_def,
25806         df_md_bb_local_compute_process_def, df_md_local_compute,
25807         df_md_transfer_function df_md_free): Update.
25809 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
25811         PR c/44322
25812         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
25813         target type for ADDR_EXPR; require no changes to qualifiers except
25814         for function types.
25815         * c-tree.h (c_build_type_variant): Remove.
25817 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
25819         * genautomata.c (get_excl_set): Do work per element, not per char.
25820         (check_presence_pattern_sets): Similar.
25821         (check_absence_pattern_sets): Similar.
25823 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
25825         * genautomata.c (curr_state_pass_num): Delete.
25826         (min_issue_delay_pass_states): Delete.
25827         (min_issue_delay): Delete.
25828         (initiate_min_issue_delay_pass_states): Delete.
25829         (output_min_issue_delay_table): Compute min_issue_delay_vect
25830         using a breadth-first search variant.
25831         (output_tables): Don't call initiate_min_issue_delay_pass_states.
25833 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
25835         PR boostrap/44421
25836         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
25837         (df_byte_lr_bb_local_compute): Likewise.
25839 2010-06-03  Jason Merrill  <jason@redhat.com>
25841         Implement noexcept operator (5.3.7)
25842         * c-common.c (c_common_reswords): Add noexcept.
25843         * c-common.h (enum rid): Add RID_NOEXCEPT.
25845 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
25847         * config/darwin-driver.c (darwin_default_min_version): Use
25848         GCC-specific formats in diagnostics.
25849         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
25850         diagnostics.
25851         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
25852         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
25853         eval_spec_function, handle_braces, process_brace_body, main,
25854         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
25855         getenv_spec_function, compare_version_strings,
25856         version_compare_spec_function): Use GCC-specific formats in
25857         diagnostics.
25859 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25861         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
25862         that operand 0 and operand 1 are equal.
25863         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
25864         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
25865         and operand 1 are equal.
25866         <default>: Ditto.  Remove ??? comment.
25867         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
25868         and operand 1 are equal.
25869         <default>: Ditto.  Remove ??? comment.
25870         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
25871         are equal.
25872         (*add<mode>_4) <default>: Ditto.
25873         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
25875 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
25877         * config/i386/i386-protos.h (ix86_print_operand): Declare.
25878         * config/i386/i386.c (ix86_print_operand): Make non-static.
25879         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
25880         * output.h (output_operand): Declare.
25881         * final.c (output_operand): Make non-static.
25883 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
25885         PR rtl-optimization/44013
25886         * sched-deps.c (add_dependence_list_and_free): Don't free lists
25887         when processing debug insns.
25889         PR debug/41371
25890         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
25891         recursing.  Check that recursion is bounded.  Rename inner var
25892         to avoid hiding incoming argument.
25894 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25896         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
25897         operands[2] == 255.
25898         (*addqi_3): Ditto.
25899         (*addqi_4): Ditto.
25900         (*addqi_5): Ditto.
25901         (*addqi_ext_1_rex64): Ditto.
25902         (*addqi_ext_1): Ditto.
25904         (*addqi_4): Check for incdec_operand in QImode.
25906         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
25907         using SWI mode iterator.
25908         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
25909         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
25910         mode iterator.
25911         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
25912         using SWI mode iterator.
25914 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25916         PR c/25880
25917         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
25918         * c-format.c (gcc_diag_flag_specs): Add hash.
25919         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
25920         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
25921         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
25922         pp_c_cv_qualifiers. Handle qualifiers spelling here.
25923         (pp_c_type_qualifier_list): Call the function above.
25924         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
25925         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
25926         (WARN_FOR_QUALIFIERS): New macro.
25927         (convert_for_assignment): Use it.
25929 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
25931         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
25933 2010-06-04  Jan Hubicka  <jh@suse.cz>
25935         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
25936         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
25937         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
25938         DF_BYTE_LR_OUT): Update for embedded bitmaps.
25939         * fwprop.c (single_def_use_enter_block): Likewise.
25940         * ddg.c (create_ddg_dep_from_intra_loop_link,
25941         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
25942         * loop-iv.c (latch_dominating_def): Likewise.
25943         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
25944         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
25945         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
25946         df_rd_transfer_function, df_rd_top_dump,
25947         df_rd_bottom_dump): Update.
25948         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
25949         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
25950         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
25951         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
25952         df_lr_verify_solution_start, df_lr_verify_solution_end,
25953         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
25954         df_live_free_bb_info, df_live_alloc, df_live_reset,
25955         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
25956         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
25957         df_live_verify_solution_start, df_live_verify_solution_end,
25958         df_live_verify_transfer_functions, df_chain_create_bb,
25959         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
25960         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
25961         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
25962         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
25963         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
25964         df_byte_lr_transfer_function, df_byte_lr_top_dump,
25965         df_byte_lr_bottom_dump, df_create_unused_note,
25966         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
25967         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
25968         df_md_transfer_function, df_md_init, df_md_confluence_0,
25969         df_md_confluence_n,
25970         df_md_top_dump, df_md_bottom_dump): Update.
25971         (struct df_lr_problem_data): Embedd bitmap headers.
25973 2010-06-04  Jan Hubicka  <jh@suse.cz>
25975         * dce.c (dce_process_block): Do not re-scan already marked
25976         instructions.
25978 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
25980         PR rtl-optimization/39871
25981         PR rtl-optimization/40615
25982         PR rtl-optimization/42500
25983         PR rtl-optimization/42502
25984         * ira.c (init_reg_equiv_memory_loc: New function.
25985         (ira): Call it twice.
25986         * reload.h (calculate_elim_costs_all_insns): Declare.
25987         * ira-costs.c: Include "reload.h".
25988         (regno_equiv_gains): New static variable.
25989         (init_costs): Allocate it.
25990         (finish_costs): Free it.
25991         (ira_costs): Call calculate_elim_costs_all_insns.
25992         (find_costs_and_classes): Take estimated elimination costs
25993         into account.
25994         (ira_adjust_equiv_reg_cost): New function.
25995         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
25996         * reload1.c (init_eliminable_invariants, free_reg_equiv,
25997         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
25998         (elim_bb): New static variable.
25999         (reload): Move code out of here into init_eliminable_invariants and
26000         free_reg_equiv.  Call them.
26001         (calculate_elim_costs_all_insns): New function.
26002         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
26003         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
26004         but call note_reg_elim_costly if we turned a valid memory address
26005         into an invalid one.
26006         * Makefile.in (ira-costs.o): Depend on reload.h.
26008 2010-06-04  Julian Brown  <julian@codesourcery.com>
26010         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
26011         for pool ranges.
26013 2010-06-04  Richard Guenther  <rguenther@suse.de>
26015         PR lto/41584
26016         * cgraph.h (struct varpool_node): Add lto_file_data field.
26017         * lto-cgraph.c (input_varpool_node): Initialize it.
26019 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
26021         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
26022         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
26023         predicate in "type" attribute calculation.
26024         (*addsi_1_zext): Ditto.
26025         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
26026         (*addsi_2_zext): Ditto.
26027         (*add<mode>_3): Ditto.
26028         (*addsi_3_zext): Ditto.
26029         (*add<mode>_5): Ditto.
26031 2010-06-03  Jan Hubicka  <jh@suse.cz>
26033         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
26034         of bitmap_bit_p.
26035         * cfganal.c (compute_dominance_frontiers_1): Likewise.
26037 2010-06-03  Jan Hubicka  <jh@suse.cz>
26039         * df-problems.c (df_create_unused_note, df_note_bb_compute):
26040         micro-optimize the checks when to add new note.
26042 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
26044         * final.c (output_asm_insn): Call
26045         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
26046         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
26047         (output_address): Call targetm.asm_out.print_operand_address.
26048         Update comments.
26049         * target.h (struct gcc_target): Add print_operand,
26050         print_operand_address, and print_operand_punct_valid_p fields.
26051         * targhooks.h (default_print_operand): Declare.
26052         (default_print_operand_address): Declare.
26053         (default_print_operand_punct_valid_p): Declare.
26054         * targhooks.c (default_print_operand): Define.
26055         (default_print_operand_address): Define.
26056         (default_print_operand_punct_valid_p): Define.
26057         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
26058         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
26059         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
26060         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
26061         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
26062         * vmsdbgout.c (addr_const_to_string): Update comment.
26063         * config/i386/i386.c (print_operand): Rename to...
26064         (ix86_print_operand): ...this.  Make static.
26065         (print_operand_address): Rename to...
26066         (ix86_print_operand_address): ...this.  Make static.  Call
26067         ix86_print_operand instead of PRINT_OPERAND.
26068         (ix86_print_operand_punct_valid_p): New function.
26069         (TARGET_PRINT_OPERAND): Define.
26070         (TARGET_PRINT_OPERAND_ADDRESS): Define.
26071         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
26072         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
26073         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
26074         (PRINT_OPERAND): Delete.
26075         (PRINT_OPERAND_ADDRESS): Delete.
26076         * config/i386/i386-protos.h (print_operand): Delete prototype.
26077         (print_operand_address): Delete prototype.
26079 2010-06-03  Richard Guenther  <rguenther@suse.de>
26081         PR tree-optimization/44403
26082         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26083         Preserve pointer qualifiers.
26084         (vect_create_data_ref_ptr): Likewise.
26086 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
26088         PR c++/44294
26089         * defaults.h (MAX_FIXED_MODE_SIZE): New.
26091         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
26093 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
26095         PR debug/44375
26096         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
26097         return false if merging the bbs would lead to goto_locus
26098         location being lost from the IL.
26100 2010-06-03  Jan Hubicka  <jh@suse.cz>
26101             Jakub Jelinek  <jakub@redhat.com>
26103         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
26104         set->regs[i] is NULL or has just one entry.
26106 2010-06-03  Jan Hubicka  <jh@suse.cz>
26108         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
26109         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
26111 2010-06-03  Paul Brook  <paul@codesourcery.com>
26113         * config/arm/arm.c (FL_TUNE): Define.
26114         (arm_default_cpu, arm_cpu_select): Remove.
26115         (all_cores): Populate core field.
26116         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
26117         (arm_find_cpu): New function.
26118         (arm_handle_option): Lookup cpu/architecture names.
26119         (arm_override_options): Cleanup mcpu/march/mtune handling.
26120         (arm_file_start): Ditto.
26122 2010-06-03  Alan Modra  <amodra@gmail.com>
26124         PR target/44169
26125         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
26126         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
26127         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
26128         (rs6000_emit_load_toc_table): Likewise.
26130 2010-06-02  Jan Hubicka  <jh@suse.cz>
26132         * passes.c (init_optimization_passes): Put ipa reference
26133         after ipa pure-const.
26135 2010-06-02  Jan Hubicka  <jh@suse.cz>
26137         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
26138         calls_read_all and calls_write_all.
26139         (get_reference_optimization_summary): Fix formatting.
26140         (is_proper_for_analysis): Check that decl is not readonly.
26141         (propagate_bits): Check CONST/PURE/noreturn flags.
26142         (ipa_init): Move all_module_statics to optimization_summary_obstack.
26143         (analyze_function): Ignore indirect edges.
26144         (copy_global_bitmap): For all module statics, do nothing.
26145         (generate_summary): Do not print calls_read_all/calls_write_all.
26146         (read_write_all_from_decl): Take node as argument; check
26147         cgraph_node_cannot_return.
26148         (propagate): Reorganize read_all/write_all computation;
26149         check indirect edges; check ecf flags; use all_module_statics
26150         in the results; do not free all_module_statics.
26151         (stream_out_bitmap): Handle all_module_statics.
26152         (ipa_reference_write_optimization_summary): Likewise; use
26153         varpool/cgraph encoders to get boundaries.
26154         (ipa_reference_read_optimization_summary): Read in all_module_statics;
26155         use it when possible.
26157 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
26159         PR target/44218
26160         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
26161         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
26163         * doc/extend.texi (powerpc builtins): Document vec_recip,
26164         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
26166         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
26167         (rs6000_emit_swrsqrt): Ditto.
26168         (rs6000_emit_swdivsf): Delete.
26169         (rs6000_emit_swdivdf): Ditto.
26170         (rs6000_emit_swrsqrtsf): Ditto.
26172         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
26173         describe the reciprocal estimate support for each type.
26174         (recip_options): Map -mrecip=<opt> into option bits.
26175         (gen_2arg_fn_t): New typedef for binary rtx gen function.
26176         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
26177         reciprocal estimate instructions.
26178         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
26179         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
26180         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
26181         cost information if -mdebug=cost or -mdebug=reg.
26182         (rs6000_override_options): Set -mrecip-precision for power6, and
26183         power7 machines.  If -mvsx or -mdfp, enable various options that
26184         came in previous instruction set ISAs, unless the option was
26185         explicitly disabled by the command line option.  Parse
26186         -mrecip=<opt> options.
26187         (rs6000_builtin_vectorized_function): Add support for vectorizing
26188         the reciprocal estimate builtins and expansions.
26189         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
26190         (bdesc_2arg): Add reciprocal estimate builtins.
26191         (bdesc_1arg): Add reciprocal square root estimate builtins.
26192         (rs6000_expand_builtin): Rewrite to use a switch statement,
26193         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
26194         (rs6000_init_builtins): Create declarations for reciprocal
26195         estimate builtins.
26196         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
26197         sized, prefer traditional floating point registers, if integer
26198         vector types, prefer altivec registers.  Don't actually look at
26199         the memory address any more.
26200         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
26201         builtins.
26202         (rs6000_load_constant_and_splat): New helper function to load up
26203         the constant for reciprocal estimate instructions.
26204         (rs6000_emit_madd): New helper function for generating
26205         multiply/add type instructions, based on the current switches.
26206         (rs6000_emit_msub): Ditto.
26207         (rs6000_emit_mnsub): Ditto.
26208         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
26209         replace a divide with a reciprocal estimate and fixup, adding
26210         support for machines with high precision and vectors.
26211         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
26212         low precision machines.
26213         (rs6000_emit_swdiv): New common function to be called to replace a
26214         division with reciprocal estimate and fixup.
26215         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
26216         for double and vector types.  Add support for high precision machines.
26218         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
26219         the reciprocal estimate instructions can be generated.
26220         (TARGET_FRE): Ditto.
26221         (TARGET_FRSQRTES): Ditto.
26222         (TARGET_FRSQRTE): Ditto.
26223         (RS6000_RECIP_*): New macros for reciprocal estimate support.
26225         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
26226         square root estimate on vectors.
26227         (re<mode>2): New insn for reciprocal division estimate on vectors.
26229         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
26230         New builtin.
26231         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
26232         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
26233         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
26234         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
26235         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
26236         (RS6000_BUILTIN_RSQRT): Ditto.
26237         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
26238         floating point builtin.
26240         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
26241         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
26242         __RECIP_PRECISION__ based on the command line switches.
26243         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
26245         * config/rs6000/rs6000.opt (-mrecip): Document add support for
26246         replacing division instructions with reciprocal estimate and fixup.
26247         (-mrecip=<opt>): New option.
26248         (-mrecip-precision): Ditto.
26250         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
26251         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
26252         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
26253         precision scalar.
26255         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
26256         (UNSPEC_VREFP): Ditto.
26257         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
26258         conterparts with regard to support of -mno-fused-madd and -ffast-math.
26259         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
26260         reciprocal estimate instructions to be generated.
26261         (altivec_vrefp): Ditto.
26263         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
26264         estimate support.
26265         (rreg): New mode attribute for reciprocal estimate support.
26266         (recip<mode>3): New insn for division using reciprocal estimate
26267         and fixup builtins.
26268         (divide define_split): New define_split to convert floating point
26269         division to use reciprocal estimate if the user used the
26270         appropriate options and the split is run when we can add new
26271         pseudo registers for the fixup.
26272         (rsqrt<mode>2): New insn for reciprocal square root support.
26273         (recipsf3): Move into recip<mode>3.
26274         (recipdf3): Ditto.
26275         (fres): Use TARGET_FRES.
26276         (rsqrtsf2): Move into rsqrt<mode>2.
26277         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
26278         (copysignsf3): Add support for VSX.
26279         (fred): Use TARGET_FRE.
26280         (fred_fpr): Ditto.
26281         (rsqrtdf_internal1): New function for frsqrte instruciton.
26283         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
26284         (vec_rsqrt): Ditto.
26286 2010-06-03  Richard Guenther  <rguenther@suse.de>
26288         PR middle-end/44291
26289         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
26290         (set_user_assembler_libfunc): Likewise.
26292 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
26294         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
26295         defaults.h.
26296         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
26297         to defaults.h
26298         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
26299         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
26300         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
26301         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
26302         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
26303         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
26304         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
26305         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
26306         * defaults.h: Updated for above mentioned changes.
26308 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
26310         * c-common.c: Remove header include of tm_p.h.
26311         * Makefile.in (c-common.o): Remove TM_P_H dependency.
26313 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
26315         * tree.h (struct tree_decl_map): New type.
26316         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
26317         (tree_decl_map_hash): New prototype.
26318         (debug_expr_for_decl, value_expr_for_decl): Change into
26319         tree_decl_map hashtab from tree_map.
26320         (init_ttree): Adjust initialization.
26321         (tree_decl_map_hash): New function.
26322         (decl_debug_expr_lookup, decl_debug_expr_insert,
26323         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
26325 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26327         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
26328         linker emulations.
26329         * configure: Regenerate.
26330         * config.in: Regenerate.
26332         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
26333         (X86_64_EMULATION): Define.
26334         (TARGET_LD_EMULATION): Use them.
26336         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
26337         (SPARC64_EMULATION): Define.
26338         (LINK_ARCH_SPEC): Use them.
26340 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
26342         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
26343         smallest_mode_for_size for computing the precision types of new
26344         graphite IVs.  Do not call lang_hooks.types.type_for_size.
26346 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
26348         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
26349         information.
26350         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
26352 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
26354         PR middle-end/44363
26355         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
26356         return false instead.
26358 2010-06-02  Jan Hubicka  <jh@suse.cz>
26360         PR middle-end/44295
26361         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
26362         create new cgraph node to check callee.
26364 2010-06-02  Richard Guenther  <rguenther@suse.de>
26366         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
26368 2010-06-02  Richard Guenther  <rguenther@suse.de>
26370         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
26371         (lto_wrapper_cleanup): ... this.  Do not exit.
26372         (fatal): Adjust.  Exit here.
26373         (fatal_perror): Likewise.
26374         (fatal_signal): New function.
26375         (main): Set up signal handlers to cleanup temporary files.
26376         * Makefile.in (lto-wrapper.o): Adjust dependencies.
26378 2010-06-02  Richard Guenther  <rguenther@suse.de>
26380         PR tree-optimization/44377
26381         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
26383 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26385         * config/s390/2097.md (z10_fhex): Remove insn reservation.
26386         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
26387         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
26388         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
26389         instruction.
26390         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
26392 2010-06-02  Jan Hubicka  <jh@suse.cz>
26394         * bitmap.c (bitmap_descriptor): Add search_iter.
26395         (bitmap_find_bit): Increment it.
26396         (print_statistics): Print it.
26398 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
26400         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
26401         instead of gimple_build_call_vec.  Delete unnecessary local variable.
26403 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
26405         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
26406         change from yesterday.
26408 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
26410         * c-ada-spec.c: Clean up redundant includes.
26412 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
26414         * gimplify.c: Do not include except.h and optabs.h.
26415         (gimplify_body): Do not initialize RTL profiling.
26416         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
26417         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
26418         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
26419         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
26420         langhooks.h.
26422         * tree-pretty-print.h: Include pretty-print.h.
26423         * gimple-pretty-print.h: Include pretty-print.h.
26425         * tree-pretty-print.c: Do not include diagnostic.h.
26426         * tree-vrp.c: Likewise.
26427         * tree-tailcall.c: Likewise
26428         * tree-scalar-evolution.c: Likewise
26429         * tree-ssa-dse.c: Likewise
26430         * tree-chrec.c: Likewise
26431         * tree-ssa-sccvn.c: Likewise
26432         * tree-ssa-copyrename.c: Likewise
26433         * tree-nomudflap.c: Likewise
26434         * tree-call-cdce.c: Likewise
26435         * tree-stdarg.c: Likewise
26436         * tree-ssa-math-opts.c: Likewise
26437         * tree-nrv.c: Likewise
26438         * tree-ssa-sink.c: Likewise
26439         * tree-browser.c: Likewise
26440         * tree-ssa-loop-ivcanon.c: Likewise
26441         * tree-ssa-loop.c: Likewise
26442         * tree-parloops.c: Likewise
26443         * tree-ssa-address.c: Likewise
26444         * tree-ssa-ifcombine.c: Likewise
26445         * tree-if-conv.c: Likewise
26446         * tree-data-ref.c: Likewise
26447         * tree-affine.c: Likewise
26448         * tree-ssa-phiopt.c: Likewise
26449         * tree-ssa-coalesce.c: Likewise
26450         * tree-ssa-pre.c: Likewise
26451         * tree-ssa-live.c: Likewise
26452         * tree-predcom.c: Likewise
26453         * tree-ssa-forwprop.c: Likewise
26454         * tree-ssa-dce.c: Likewise
26455         * tree-ssa-ter.c: Likewise
26456         * tree-ssa-loop-prefetch.c: Likewise
26457         * tree-optimize.c: Likewise
26458         * tree-ssa-phiprop.c: Likewise
26459         * tree-object-size.c: Likewise
26460         * tree-outof-ssa.c: Likewise
26461         * tree-ssa-structalias.c: Likewise
26462         * tree-switch-conversion.c: Likewise
26463         * tree-ssa-reassoc.c: Likewise
26464         * tree-ssa-operands.c: Likewise
26465         * tree-vectorizer.c: Likewise
26466         * tree-vect-data-refs.c: Likewise
26467         * tree-vect-generic.c: Likewise
26468         * tree-vect-stmts.c: Likewise
26469         * tree-vect-patterns.c: Likewise
26470         * tree-vect-slp.c: Likewise
26471         * tree-vect-loop.c: Likewise
26472         * tree-ssa-loop-ivopts.c: Likewise
26473         * tree-ssa-loop-im.c: Likewise
26474         * tree-ssa-loop-niter.c: Likewise
26475         * tree-ssa-loop-unswitch.c: Likewise
26476         * tree-ssa-loop-manip.c: Likewise
26477         * tree-ssa-loop-ch.c: Likewise
26478         * tree-dump.c: Likewise
26479         * tree-complex.c: Likewise
26481         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
26482         * tree-ssa-uninit.c: Likewise
26483         * tree-ssa-threadupdate.c: Likewise
26484         * tree-ssa-uncprop.c: Likewise
26485         * tree-ssa-ccp.c: Likewise
26486         * tree-ssa-dom.c: Likewise
26487         * tree-ssa-propagate.c: Likewise
26488         * tree-ssa-alias.c: Likewise
26489         * tree-dfa.c: Likewise
26490         * tree-cfgcleanup.c: Likewise
26491         * tree-sra.c: Likewise
26492         * tree-ssa-copy.c: Likewise
26493         * tree-ssa.c: Likewise
26494         * tree-profile.c: Likewise
26495         * tree-cfg.c: Likewise
26496         * tree-ssa-threadedge.c: Likewise
26497         * tree-vect-loop-manip.c: Likewise
26499         * tree-inline.c: Do not include diagnostic.h and expr.h.
26500         Include rtl.h.
26501         (copy_decl_for_dup_finish): Do not use NULL_RTX.
26503         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
26504         * tree-loop-distribution.c: Likewise.
26506 2010-06-01  Jan Hubicka  <jh@suse.cz>
26508         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
26510 2010-06-01  Jan Hubicka  <jh@suse.cz>
26512         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
26513         remove return value.
26514         (split_bbs_on_noreturn_calls) .... here.
26515         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
26516         * tree-flow.h (fixup_noreturn_call): New.
26518 2010-06-01  Jan Hubicka  <jh@suse.cz>
26520         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
26522 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
26524         * tree.h (build_nt_call_list): Delete.
26525         * tree.c (build_nt_call_list): Delete.
26527 2010-06-01  Jan Hubicka  <jh@suse.cz>
26529         * fwprop.c: Make emit-rtl.h include last.
26530         * rtlanal.c: Include emit-rtl.h.
26531         * genautomata.c: Output emit-rtl include into insn-automata.c
26532         * df-scan.c: Include emit-rtl.h.
26533         * haifa-sched.c: Indlude emit-rtl.h.
26534         * mode-switching.c: Indlude emit-rtl.h.
26535         * graph.c: Indlude emit-rtl.h.
26536         * sel-sched.c: Include emit-rtl.h.
26537         * sel-sched-ir.c: Include emit-rtl.h.
26538         * ira-build.c: Include emit-rtl.h.
26539         * emit-rtl.c (first_insn, last_insn): Remove defines.
26540         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
26541         Move to emit-rtl.h.
26542         (set_new_first_and_last_insn, get_last_insn_anywhere,
26543         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
26544         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
26545         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
26546         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
26547         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
26548         Use accessor functions.
26549         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
26550          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
26551         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
26552         mem_expr_equal_p): Move here from rtl.h.
26553         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
26554         Move here from emit-rtl.c; make inline.
26555         * cfglayout.h: Include emit-rtl.h.
26556         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
26557          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
26558         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
26559         mem_expr_equal_p, get_insns, set_first-insn,
26560         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
26561         * reg-stack.c: Include emit-rtl.h.
26562         * dce.c: Likewise.
26564 2010-06-01  Jan Hubicka  <jh@suse.cz>
26566         * cgraph.h (tree_function_versioning): Update prototype.
26567         (cgraph_function_versioning): Update prototype.
26568         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
26569         bitmap.
26570         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
26571         (cgraph_materialize_clone, save_inline_function_body): Update use of
26572         tree_function_versioning.
26573         * tree-inline.c (copy_bb): Look for previous copied block to link
26574         after; fix debug output.
26575         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
26576         (copy_body): Likewise.
26577         (expand_call_inline): Update use of copy_body.
26578         (tree_function_versioning): Update use of copy body; accept
26579         blocks_to_copy and new_entry.
26581 2010-06-01  Jan Hubicka  <jh@suse.cz>
26583         * gegenrtl.c: Remove unnecesary prototypes.
26584         (gendecl): Remove.
26585         (gendef): Produce static inline.
26586         (gencode): Remove.
26587         (main): Do not decode parameters; generate header only.
26588         * Makefile.in (genrtl.c): Remove.
26590 2010-06-01  Jan Hubicka  <jh@suse.cz>
26592         * tree-switch-conversion.c (build_one_array): Make it readonly.
26594 2010-06-01  Richard Guenther  <rguenther@suse.de>
26596         * optabs.c (init_optabs): Guard all accesses to reinit.
26597         * ipa-pure-const.c (propagate): Fix another typo.
26598         * opts.c (common_handle_option): Split assignment to bool.
26599         * c-opts.c (c_common_handle_option): Likewise.
26601 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
26602             Matthew Gingell  <gingell@adacore.com>
26604         * doc/invoke.texi: Mention -fdump-ada-spec.
26605         * tree-dump.c (dump_files): Add ada-spec.
26606         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
26607         * tree-pass.h (tree_dump_index): Add TDI_ada.
26608         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
26609         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
26610         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
26611         * c-decl.c: Include c-ada-spec.h.
26612         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
26613         functions.
26614         (c_write_global_declarations): Add handling of -fdump-ada-spec.
26615         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
26616         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
26617         * c-ada-spec.h, c-ada-spec.c: New files.
26619 2010-06-01  Richard Guenther  <rguenther@suse.de>
26621         PR lto/43853
26622         * ipa-pure-const.c (get_function_state): Hand back varying state
26623         if we do not have one.
26624         (has_function_state): New function.
26625         (duplicate_node_data): Adjust.
26626         (remove_node_data): Likewise.
26627         (pure_const_write_summary): Likewise.
26628         (propagate): Likewise.  Fix typo.
26630 2010-06-01  Jan Hubicka  <jh@suse.cz>
26632         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
26633         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
26634         (execute_all_ipa_transforms): Do not play with the states.
26636 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
26638         * config/arm/t-linux-androideabi: New.
26639         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
26641 2010-06-01  Jan Hubicka  <jh@suse.cz>
26643         * tree-inline.c (estimate_num_insns): For stdarg functions look
26644         into call statement to count cost of argument passing.
26646 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
26648         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
26649         argument for fprintf.
26650         (ix86_output_addr_diff_elt): Likewise.
26651         (x86_function_profiler): Likewise.
26652         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
26653         (LPREFIX): Likewise.
26654         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
26656 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
26658         PR target/44338
26659         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
26660         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
26661         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
26662         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
26663         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
26664         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
26665         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
26666         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
26667         TARGET_FUSED_MADD.
26669 2010-05-31  Jan Hubicka  <jh@suse.cz>
26671         * tree.h (tree_range_check_failed): Declare noreturn.
26673 2010-05-31  Jan Hubicka  <jh@suse.cz>
26675         * gimple.c (gimple_call_builtin_p): New function.
26676         * gimple.h (gimple_call_builtin_p): Declare.
26677         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
26678         to exit.
26679         (execute_warn_function_return): BUILT_IN_RETURN is return.
26680         (split_critical_edges): Return edges are not critical.
26681         (is_ctrl_altering_stmt): Builtin_in_return is altering.
26682         (gimple_verify_flow_info): Handle built_in_return.
26683         (execute_warn_function_return): Handle built_in_return.
26684         * ipa-pure-const.c (check_call): Ignore builtin_return.
26686 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
26688         PR middle-end/44337
26689         * expr.c (expand_assignment): Don't store anything for out-of-bounds
26690         array accesses with non-MEM.
26692         PR tree-optimization/44182
26693         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
26694         newly needs to end a bb is followed by debug stmts, instead return
26695         true from the function at the end.
26696         (maybe_move_debug_stmts_to_successors): New function.
26697         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
26699 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
26701         PR target/44161
26702         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
26704 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
26706         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
26707         for nested functions in non-optimized compilation.
26709 2010-05-31  Richard Guenther  <rguenther@suse.de>
26711         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
26713 2010-05-30  Jan Hubicka  <jh@suse.cz>
26715         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
26717 2010-05-30  Richard Guenther  <rguenther@suse.de>
26719         PR lto/42975
26720         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
26721         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
26722         no longer needed.
26724 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
26726         * config/darwin.c (output_objc_section_asm_op): Add comment.
26727         (name_needs_quotes): Add '_' to list of valid comment chars.
26728         (machopic_output_function_base_name): Remove unneeded quotes.
26729         (darwin_encode_section_info): Adjust asm whitespace.
26730         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
26731         (ASM_OUTPUT_LOCAL): Ditto.
26732         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
26733         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
26734         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
26736 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
26738         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
26739         RS6000_OUTPUT_BASENAME unconditionally.
26740         (rs6000_output_function_epilogue): Likewise.
26742 2010-05-30  Jan Hubicka  <jh@suse.cz>
26744         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
26745         nodes.
26747 2010-05-30  Richard Guenther  <rguenther@suse.de>
26749         * tree-cfg.c (verify_gimple_assign_single): Implement
26750         verification for COND_EXPR rhs.
26752 2010-05-30  Jan Hubicka  <jh@suse.cz>
26754         * cgraph.h (cgraph_dump_file): Declare.
26755         * cgraphunit.c (cgraph_dump_file): Export.
26756         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
26758 2010-05-30  Jan Hubicka  <jh@suse.cz>
26760         * dwarf2out.c (reference_to_unused,
26761         premark_types_used_by_global_vars_helper): Avoid creation of new
26762         varpool nodes.
26764 2010-05-30  Jan Hubicka  <jh@suse.cz>
26766         * cgraph.h (cgraph_node_cannot_return,
26767         cgraph_edge_cannot_lead_to_return): New functions.
26768         * cgraph.c (cgraph_node_cannot_return,
26769         cgraph_edge_cannot_lead_to_return): Use them.
26770         * ipa-pure-const.c (pure_const_names): New static var.
26771         (check_call): Handle calls not leading to return.
26772         (pure_const_read_summary): Dump info read.
26773         (propagate): Dump info about propagation process; ignore side effects
26774         of functions not leading to exit; fix handling of pure functions.
26776 2010-05-30  Jan Hubicka  <jh@suse.cz>
26778         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
26779         for tail call epilogues.
26781 2010-05-30  Jan Hubicka  <jh@suse.cz>
26783         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
26784         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
26785         dump files.
26787 2010-05-29  Jan Hubicka  <jh@suse.cz>
26789         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
26790         node; remove references in node we no longer keep in cgrpah but need
26791         body of.
26793 2010-05-29  Jan Hubicka  <jh@suse.cz>
26795         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
26797 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26799         PR target/44165
26800         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
26802 2010-05-29  Jan Hubicka  <jh@suse.cz>
26804         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
26805         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
26806         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
26807         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
26808         debug_names_replaced_by, debug_update_ssa): Likewise.
26809         * sbitmap.c (debug_sbitmap): Likewise.
26810         * genrecog.c (debug_decision, debug_decision_list): Likewise.
26811         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
26812         debug_tree_chain): Likewise.
26813         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
26814         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
26815         * optabs.c (debug_optab_libfuncs): Likewise.
26816         (verify_loop_closed_ssa): Likewise.
26817         * value-prof.c (verify_histograms): Likewise.
26818         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
26819         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
26820         * cfghooks.c (verify_flow_info): Likewise.
26821         * fold-const.c (debug_fold_checksum): Likewise.
26822         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
26823         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
26824         Likewise.
26825         * omega.c (debug_omega_problem): Likewise.
26826         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
26827         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
26828         * dominance.c (verify_dominators, debug_dominance_info,
26829         debug_dominance_tree): Likewise.
26830         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
26831         * df_regno_debug, df_ref_debug,
26832         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
26833         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
26834         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
26835         * sel-sched.c (debug_state): Likewise.
26836         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
26837         Likewise.
26838         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
26839         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
26840         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
26841         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
26842         Likewise.
26843         * c-pretty-print.c (debug_c_tree): Likewise.
26844         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
26845         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
26846         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
26847         * ebitmap.c (debug_ebitmap): Likewise.
26848         * function.c (debug_find_var_in_block_tree): Likewise.
26849         * print-rtl.c (debug_rtx): Likewise.
26850         (debug_rtx_count): Likewise.
26851         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
26852         * stor-layout.c (debug_rli): Likewise.
26853         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
26854         * tree-data-ref.c (debug_data_references,
26855         debug_data_dependence_relations, debug_data_reference,
26856         debug_data_dependence_relation, debug_rdg_vertex,
26857         debug_rdg_component, debug_rdg): Likewise.
26858         * tree-affine.c (debug_aff): Likewise.
26859         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
26860         Likewise.
26861         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
26862         * emit-rtl.c (verify_rtl_sharing): Likewise.
26863         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
26864         debug_value_expressions): Likewise.
26865         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
26866         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
26867         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
26868         * cfglayout.c (verify_insn_chain): Likewise.
26869         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
26870         debug_clast_stmt, debug_generated_program): Likewise.
26871         * ggc-page.c (debug_print_page_list): Likewise.
26872         * tree-ssa-ter.c (debug_ter): Likewise.
26873         * graphite-dependences.c (debug_pddr): Likewise.
26874         * sched-deps.c (debug_ds): Likewise.
26875         * tree-ssa.c (verify_ssa): Likewise.
26876         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
26877         debug_scattering_functions, debug_iteration_domains, debug_pdr,
26878         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
26879         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
26880         * tree-inline.c (debug_find_tree): Likewise.
26881         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
26882         debug_ppl_powerset_matrix): Likewise.
26883         * var-tracking.c (debug_dv): Likewise.
26884         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
26885         * cfgloop.c (verify_loop_structure): Likewise.
26886         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
26887         * c-common.c (verify_sequence_points): Likewise.
26888         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
26889         debug_candidates, debug_rgn_dependencies): Likewise.
26890         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
26891         * debug_constraint_graph, debug_solution_for_var,
26892         debug_sa_points_to_info): Likewise.
26893         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
26894         Likewie.
26895         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
26896         debug_loops, debug_loop, debug_loop_num): Likewise.
26897         * passes.c (debug_pass): Likewise.
26898         (dump_properties): Likewise; add cfglayout property.
26899         (debug_properties): Likewise.
26900         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
26901         * varpool.c (debug_varpool): Likewise.
26902         * regcprop.c (debug_value_data): Likewise.
26903         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
26904         debug_immediate_uses_for): Likewise.
26906 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
26908         PR bootstrap/44315
26909         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
26910         Filter out insn-flags.h.
26912 2010-05-29  Jan Hubicka  <jh@suse.cz>
26914         * cgraph.h (struct varpool_node_set_def,
26915         struct cgraph_node_set_def): Remove unused AUX pointer.
26916         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
26917         VEC_empty macro.
26919 2010-05-29  Jan Hubicka  <jh@suse.cz>
26921         PR middle-end/44324
26922         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
26924 2010-05-29  Richard Guenther  <rguenther@suse.de>
26926         * lto-streamer.c (cached_bp): New global variable.
26927         (bitpack_create): Return the cached bitpack, if available.
26928         (bitpack_delete): Clear and cache the bitpack, if appropriate.
26929         (bp_pack_value): Remove redundant asserts.
26931 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
26933         PR middle-end/44306
26934         * tree-if-conv.c (is_true_predicate): New.
26935         (is_predicated): Use is_true_predicate.
26936         (add_to_predicate_list): Same.  Do not use unshare_expr.
26937         (add_to_dst_predicate_list): Same.
26939 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
26941         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
26942         field on edges.
26943         (predicate_bbs): Same.
26944         (clean_predicate_lists): Same.
26945         (find_phi_replacement_condition): Do not AND the predicate from
26946         edge->aux.
26948 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
26950         PR bootstrap/44315
26951         * Makefile.in (build/gencondmd.o): Add a missing `\'.
26953 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26955         PR target/44261
26956         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
26957         (negdf2): Adjust expander pattern and use negdf2_slow.
26958         (negsf2): Likewise.
26960 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
26962         * basic-block.h (struct control_flow_graph): Move last_label_uid field
26963         up.
26964         * df.h (struct df_base_ref): Move regno field up.
26965         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
26966         * expr.h (struct separate_ops): Move location field up.
26967         * optabs.h (struct optab_d): Move libcall_basename field down.
26968         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
26969         * config/i386/i386.h (struct machine_function): Convert call_abi field
26970         into a bitfield.  Move cfa field to the end of the structure.
26972 2010-05-29  Jan Hubicka  <jh@suse.cz>
26974         * varpool.c (varpool_get_node): Fix lookup.
26976 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26978         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
26979         RTL specific prototypes with #ifdef RTX_CODE.
26980         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
26981         * config/spu/t-spu-elf: Fix dependencies.
26983         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
26985 2010-05-29  Mike Stump  <mikestump@comcast.net>
26987         PR bootstrap/44315
26988         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
26989         TM_H when building to avoid dependency loops.
26991 2010-05-29  Jan Hubicka  <jh@suse.cz>
26993         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
26994         refs and body; not the whole node for masters of materialized clones.
26996 2010-05-29  Mike Stump  <mikestump@comcast.net>
26998         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
27000 2010-05-29  Jan Hubicka  <jh@suse.cz>
27002         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
27003         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
27004         use of clone_function_name.
27005         * cgraph.h (cgraph_create_virtual_clone,
27006         cgraph_function_versioning): update prototypes.
27007         (clone_function_name): Declare.
27008         * ipa-cp.c (ipcp_insert_stage): Update call of
27009         cgraph_create_virtual_clone.
27010         * omp-low.c (create_omp_child_function_name): Use
27011         cgraph_create_virtual_clone.
27012         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
27013         (cgraph_function_versioning): Take SUFFIX argument; produce new name
27014         and make decl local.
27016 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27018         * vec.h: Include statistics.h
27019         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
27020         with VEC_H.
27022 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27024         * c-lex.c: Do not include c-tree.h.
27025         * c-pretty-print.c: Likewise.
27026         * c-opts.c: Likewise.
27027         * c-gimplify.c: Likewise.
27028         * c-common.c: Likewise.
27029         * c-dump.c: Likewise.  Include c-common.h.
27031 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27033         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
27034         before including diagnostic-core.h.
27035         (c_cpp_error): New prototype moved from c-tree.h.
27036         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
27037         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
27038         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
27039         (c_cpp_error): Prototype moved to c-common.h.
27040         * Makefile.in: Update dependency for C_COMMON_H.
27042 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
27044         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
27045         * c-common.c (c_register_addr_space): Remove here.
27046         * c-decl.c (c_register_addr_space): Re-add here.
27048 2010-05-28  Mike Stump  <mikestump@comcast.net>
27050         * config/darwin-c.c: Remove c-tree.h include.
27052 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27054         * gcc.c: Include diagnostic.h.
27055         (error_count): Remove.  All users changed to use errorcount.
27056         (programname): Remove.  All users changed to use progname.
27057         (fancy_abort, internal_error, fatal_error, error, warning, inform,
27058         fnotice): Remove.
27059         (execute): Don't include "Internal error" and bug reporting
27060         information in argument of internal_error call.
27061         (process_command): Don't increment error_count after calling
27062         perror_with_name.
27063         (input_filename): Rename to gcc_input_filename.  All users
27064         changed.
27065         (main): Call diagnostic_initialize.  Register delete_temp_files
27066         with atexit.  Use seen_error to test for errors.
27067         * gcc.h: Include diagnostic-core.h.
27068         (fatal_error, error, warning): Remove.
27069         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
27070         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
27071         (gcc.o): Update dependencies.
27073 2010-05-28  Jeff Law  <law@redhat.com>
27075         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
27076         functions.
27077         * ira.h (ira_bad_reload_regno): Declare
27078         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
27080         * ira-color.c (update_curr_costs): Free updated hard reg costs.
27081         (ira_reassign_conflict_allocnos): Remove bogus asserts.
27082         (allocno_reload_assign): Likewise.
27084 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
27086         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
27087         build1_stat.
27089 2010-05-28  Richard Guenther  <rguenther@suse.de>
27091         PR lto/44312
27092         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
27093         Stream fixed-point constants mode.
27094         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
27095         and TYPE_PRECISION.
27096         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
27097         Stream fixed-point constants mode.
27098         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
27099         and TYPE_PRECISION.
27101 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
27103         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
27104         only place it was called from.
27105         (number_of_latch_executions): Do not return chrec_dont_know when the
27106         may_be_zero is a runtime condition: instead, return a COND_EXPR
27107         including the may_be_zero condition.
27108         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
27109         of nb_iterations.
27110         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
27111         COND_EXPRs.
27113 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
27115         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
27116         generate COND_EXPRs for degenerate_phi_result.
27118 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
27120         PR middle-end/44293
27121         * tree-if-conv.c (if_convertible_loop_p): Check the
27122         if-convertibility of phi nodes in non predicated BBs.
27124 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27126         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
27128 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27130         PR driver/15303
27131         * gcc.c (inform, warning, inform): New functions.
27132         (fatal_ice): Rename to internal_error; change cmsgid parameter to
27133         gmsgid.  All callers changed.
27134         (notice): Rename to fnotice; add parameter fp.  All callers changed.
27135         (fatal_error): Rename to fatal_signal.  All users changed.
27136         (fatal): Rename to fatal_error; change cmsgid parameter to
27137         gmsgid.  All callers changed.
27138         (process_command): Use warning instead of error for warnings.
27139         (end_going_arg): Don't use _() around argument of error.
27140         (do_spec_1): Use inform for message from %n specs.  Use warning
27141         instead of error for warnings.
27142         (main): Use inform for comparison messages.  Use warning for
27143         message about unused linker input.
27144         (error): Increment error_count.  Print "error: ".
27145         * gcc.h (fatal): Change to fatal_error.
27146         (warning): Declare.
27147         * config/darwin-driver.c (darwin_default_min_version): Use warning
27148         instead of fprintf for warnings.
27149         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
27151 2010-05-28  Julian Brown  <julian@codesourcery.com>
27153         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
27154         (*thumb2_addsi3_compare0_scratch): New.
27155         * config/arm/constraints.md (Pv): New.
27156         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
27157         for ARM mode only.
27158         (*addsi3_compare0_scratch): Likewise.
27160 2010-05-28  Jan Hubicka  <jh@suse.cz>
27162         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
27163         check.
27164         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
27165         only on local statics.
27167 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
27169         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
27171 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
27173         PR bootstrap/44314
27174         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
27175         (OPTION_GLIBC): Define.
27177 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
27179         PR debug/41048
27180         * dwarf2out.c (double_int_type_size_in_bits): New function.
27181         (round_up_to_align): Change first argument and return value to
27182         double_int.
27183         (field_byte_offset): Work internally on double_ints.
27185         PR target/43636
27186         * builtins.c (expand_movstr): Use a temporary pseudo instead
27187         of target even when target is not NULL and not const0_rtx, but
27188         fails movstr predicate.
27189         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
27191 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
27193         * final.c (rest_of_clean_state): Use %m in errors instead of
27194         strerror (errno).
27195         * gengtype.c (read_input_list, close_output_files): Use xstrerror
27196         instead of strerror.
27197         * toplev.c (process_options): Use %m in errors instead of strerror
27198         (errno).
27199         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
27200         (errno).
27202 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
27204         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
27205         (ix86_canonical_va_list_type): Make static.  Add declaration.
27206         (ix86_enum_va_list): Make static.  Reindent.
27207         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
27208         (ix86_canonical_va_list_type): Ditto.
27209         (ix86_enum_va_list): Ditto.
27211 2010-05-28  Richard Guenther  <rguenther@suse.de>
27213         * lto-wrapper.c (run_gcc): With -save-temps generate a
27214         user-visible ltrans filename.  Fixup ltrans unit numbering.
27216 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
27218         * c-common.c (c_common_nodes_and_builtins): Replace use
27219         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
27220         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
27221         to ix86_enum_va_list.
27222         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
27223         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
27224         (TARGET_ENUM_VA_LIST_P): Add hook description.
27225         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
27226         * target.h (gcc_target): Add enum_va_list hook.
27228         PR bootstrap/44299
27229         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
27230         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
27231         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
27233 2010-05-28  Alan Modra  <amodra@gmail.com>
27235         PR target/44266
27236         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
27237         emit_library_call machinery to set up __tls_get_addr calls.
27239 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27241         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
27243 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
27245         Revert fix for PR c++/44188
27246         * c-common.c (is_typedef_decl): Revert the moving of  this
27247         definition ...
27248         * tree.c (is_typedef_decl): ... here.
27249         (typdef_variant_p): Revert the moving of this  definition
27250         here from cp/tree.c.
27251         * c-common.h (is_typedef_decl): Revert the moving of this
27252         declaration ...
27253         * tree.h (is_typedef_decl): ... here.
27254         (typedef_variant_p): Revert the moving of this  declaration here
27255         from cp/cp-tree.h
27256         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
27257         (gen_tagged_type_die): Revert the splitting out of ...
27258         (gen_type_die_with_usage): ... this function. Revert the anonymous
27259         tagged type handling.
27260         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
27261         typedefs naming anonymous tagged types.
27263 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
27265         * config/rs6000/rs6000-modes.def (PSImode): Delete.
27267 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
27269         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
27270         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
27271         throughout.
27272         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
27273         "xer" to "ca".
27274         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
27275         XER_REGS to CA_REGS throughout.
27276         * config/rs6000/rs6000.h: Same.
27277         (ADDITIONAL_REGISTER_NAMES): Add "xer".
27278         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
27279         that mode_iterator "P" is the size for arithmetic carries as well.
27280         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
27282 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
27284         PR bootstrap/44255
27285         * combine.c (struct rtx_subst_pair): Define unconditionally.
27286         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
27287         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
27288         Call make_compound_operation on pair->to.
27289         (propagate_for_debug): Don't call make_compound_operation here.
27290         Always use simplify_replace_fn_rtx.
27292 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
27294         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
27295         * config/xtensa/xtensa.c (override_options): Check
27296           TARGET_FORCE_NO_PIC and set flag_pic.
27297         * config/xtensa/xtensa.opt: Document -mforce-no-pic
27299 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
27301         PR bootstrap/44299
27302         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
27303         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
27305 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
27307         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
27308         toplev.h.
27309         * diagnostic.c: Don't include toplev.h.
27310         (progname): Define.  Moved from toplev.c.
27311         (seen_error): New function.
27312         * diagnostic.h: Include diagnostic-core.h.
27313         (diagnostic_t, emit_diagnostic): Don't declare here.
27314         * toplev.c (progname): Move to toplev.c.
27315         (emit_debug_global_declarations, compile_file, finalize,
27316         do_compile, toplev_main): Use seen_error.
27317         * toplev.h: Include diagnostic-core.h.
27318         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
27319         internal_error, warning, warning_at, error, error_n, error_at,
27320         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
27321         verbatim, fnotice, progname): Move to diagnostic-core.h.
27322         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
27323         (expand_builtin_expect): Use seen_error.
27324         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
27325         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
27326         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
27327         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
27328         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
27329         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
27330         errorcount for errors.
27331         * c-opts.c (c_common_finish): Use seen_error.
27332         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
27333         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
27334         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
27335         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
27336         (get_coverage_counts): Use seen_error.
27337         * dwarf2out.c (dwarf2out_finish): Use seen_error.
27338         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
27339         gimplify_body): Use seen_error.
27340         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
27341         * ipa-pure-const.c (gate_pure_const): Use seen_error.
27342         * ipa-reference.c (gate_reference): Use seen_error.
27343         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
27344         * lambda-code.c: Include diagnostic-core.h instead of
27345         diagnostic.h.
27346         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
27347         * lto-compress.c: Include diagnostic-core.h instead of
27348         diagnostic.h.
27349         * lto-section-in.c: Include diagnostic-core.h instead of
27350         diagnostic.h.
27351         * lto-streamer-out.c: Include diagnostic-core.h instead of
27352         diagnostic.h.
27353         * lto-streamer.c: Include diagnostic-core.h instead of
27354         diagnostic.h.
27355         (gate_lto_out): Use seen_error.
27356         * matrix-reorg.c: Include diagnostic-core.h instead of
27357         diagnostic.h.
27358         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
27359         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
27360         (gate_expand_omp, lower_omp_1): Use seen_error.
27361         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
27362         (rest_of_decl_compilation, rest_of_type_compilation,
27363         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
27364         * tree-cfg.c (label_to_block_fn): Use seen_error.
27365         * tree-inline.c (optimize_inline_calls): Use seen_error.
27366         * tree-mudflap.c (mudflap_finish_file): Use
27367         seen_error.
27368         * tree-optimize.c (gate_all_optimizations,
27369         gate_all_early_local_passes, gate_all_early_optimizations): Use
27370         seen_error.
27371         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
27372         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
27373         (varpool_remove_unreferenced_decls,
27374         varpool_assemble_pending_decls): Use seen_error.
27375         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
27376         (TOPLEV_H, DIAGNOSTIC_H): Update.
27377         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
27378         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
27379         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
27380         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
27381         coverage.o, lambda-code.o): Update dependencies.
27383 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
27385         PR c++/44188
27386         * c-common.c (is_typedef_decl): Move this definition ...
27387         * tree.c (is_typedef_decl): ... here.
27388         (typdef_variant_p): Move definition here from cp/tree.c.
27389         * c-common.h (is_typedef_decl): Move this declaration ...
27390         * tree.h (is_typedef_decl): ... here.
27391         (typedef_variant_p): Move declaration here from cp/cp-tree.h
27392         * dwarf2out.c (is_naming_typedef_decl): New function.
27393         (gen_tagged_type_die): Split out of ...
27394         (gen_type_die_with_usage): ... this function. When an anonymous
27395         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
27396         is emitted for the typedef.
27397         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
27398         anonymous tagged types.
27400 2010-05-27  Jason Merrill  <jason@redhat.com>
27402         * print-tree.c (debug_vec_tree): New fn.
27403         (print_vec_tree): New fn.
27404         * tree.h: Declare them.
27405         * gdbinit.in (pvt): New command.
27407         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
27409         * gdbinit.in (pdd): New command.
27411 2010-05-27  Jan Hubicka  <jh@suse.cz>
27413         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
27414         (update_caller_keys): Return early if there are no callers;
27415         only update fibheap when decresing the key.
27416         (update_callee_keys): Avoid recursion.
27417         (decide_inlining_of_small_functions): When badness does not match;
27418         re-insert into fibheap.
27420 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
27422         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
27423         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
27424         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
27425         (ALL_HOST_OBJS): Now a union of the above two.
27426         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
27427         all files in ALL_HOST_FRONTEND_OBJS.
27428         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
27430         * c-common.c: Pretend to be a backend file by undefining
27431         IN_GCC_FRONTEND (still need rtl.h here).
27433 2010-05-27  Jan Hubicka  <jh@suse.cz>
27435         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
27436         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
27438 2010-05-27  Jan Hubicka  <jh@suse.cz>
27440         * sched-ebb.c: Rename struct deps to struct deps_desc.
27441         * ddg.c: Likewise.
27442         * sel-sched-ir.c: Likewise.
27443         * sched-deps.c: Likewise.
27444         * sched-int.h: Likewise.
27445         * sched-rgn.c: Likewise.
27447 2010-05-27  Jon Beniston  <jon@beniston.com>
27449         PR 43726
27450         * config/lm32/lm32.h: Remove definition of
27451         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
27453 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
27455         PR lto/44230
27456         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
27458 2010-05-27  Richard Guenther  <rguenther@suse.de>
27460         PR tree-optimization/44284
27461         * tree-vect-stmts.c (vectorizable_assignment): Handle
27462         sign-changing conversions as simple copy.
27464 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
27466         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
27467         Bionic C library.
27468         (__gthread_active_p): Check for pthread_create if compiling against
27469         Bionic C library.
27471 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
27473         Support compilation for Android platform.  Reimplement -mandroid.
27475         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
27476         (*android*): Set ANDROID_DEFAULT.
27477         (arm*-*-linux*): Include linux-android.h.
27478         (arm*-*-eabi*): Don't include previous -mandroid implementation.
27479         * config/arm/eabi.h: Remove, move Android-specific parts ...
27480         * config/linux-android.h: ... here.  New file.
27481         * config/arm/eabi.opt: Rename to ...
27482         * config/linux-android.opt: ... this.
27483         (mandroid): Allow -mno-android option.  Initialize based on
27484         ANDROID_DEFAULT.
27485         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
27486         Move logic to corresponding LINUX_TARGET_* macros.
27487         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
27488         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
27489         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
27490         Android definitions.
27491         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
27492         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
27493         Document.
27495 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
27497         Add support for Bionic C library
27499         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
27500         macro.
27501         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
27502         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
27504         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
27505         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
27506         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
27507         to support multiple C libraries.  Handle Bionic.
27508         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
27509         (BIONIC_DYNAMIC_LINKER64): Define.
27510         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
27511         Update.
27512         (TARGET_HAS_SINCOS): Enable for Bionic.
27514         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
27515         the last option specified on command line take effect.
27516         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
27517         (mbionic): New.
27518         (mglibc, muclibc): Update.
27520         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
27521         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
27522         DEFAULT_LIBC.
27524         * doc/invoke.texi (-mglibc, -muclibc): Update.
27525         (-mbionic): Document.
27527 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27529         * c-common.h (c_register_addr_space): Add prototype.
27530         (ADDR_SPACE_KEYWORD): Remove.
27531         * c-common.c (c_register_addr_space): New function.
27532         (c_addr_space_name): Reimplement.
27533         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
27535         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
27536         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
27538         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
27539         Remove TARGET_ADDR_SPACE_KEYWORDS.
27541 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
27543         * input.c: New file.
27544         * input.h (main_input_filename): Move declaration to toplev.h.
27545         * toplev.c (input_location, line_table): Move to input.c
27546         * toplev.h (main_input_filename): Move declaration from input.h.
27547         * tree.c (expand_location): Move to input.c.
27548         * Makefile.in (OBJS-common): Add input.o.
27549         (input.o): Add dependencies.
27551 2010-05-27  Richard Guenther  <rguenther@suse.de>
27553         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
27554         for non-existant files.
27555         (fork_execute): Mark args_name file as deleted.
27557 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
27559         PR bootstrp/44287
27560         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
27561         (narrow_signed_type): Likewise.
27563 2010-05-26  Jan Hubicka  <jh@suse.cz>
27565         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
27566         edge only when checking is enabled; check using former_clone_of;
27567         check inline clones too.
27568         (cgraph_materialize_clone): Record former_clone_of pointer.
27569         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
27570         combining redirections; dump args_to_skip bitmap
27571         (cgraph_materialize_all_clones): Do no redirection here.
27572         * ipa-inline.c (inline_transform): Do redirection here.
27573         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
27574         cheking only).
27576 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27578         * config/avr/avr-c.c: Do not include regs.h.
27579         Include cpplib.h for cpp_define and tree.h for c-common.h.
27580         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
27581         * config/avr/t-avr: Fix dependencies for avr-c.o.
27583 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27585         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
27586         string instead of SYMBOL_REF rtx.
27587         * rtl.h (set_stack_check_libfunc): Move prototype from here...
27588         * libfuncs.h: ...to here.  Adjust for explow.c change.
27590 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
27592         * pretty-print.c: Don't include ggc.h.
27593         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
27594         (identifier_to_locale): Use them for allocation.
27595         * pretty-print.h (identifier_to_locale_alloc,
27596         identifier_to_locale_free): Declare.
27597         * toplev.c (alloc_for_identifier_to_locale): New.
27598         (general_init): Set identifier_to_locale_alloc and
27599         identifier_to_locale_free.
27600         * Makefile.in (pretty-print.o): Update dependencies.
27602 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
27604         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
27605         pointer types if they have different alignment or mode.
27607 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
27609         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
27610         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27611         * config/sparc/sparc-protos.h (function_value): Remove declaration.
27612         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
27613         sparc_function_value_regno_p): New functions.
27614         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27615         TARGET_FUNCTION_VALUE_REGNO_P): Define.
27616         (function_value): Rename to...
27617         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
27618         argument to 'outgoing'.
27619         (function_arg_record_value, function_arg_union_value,
27620         function_arg_vector_value): Update comment.
27622 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
27624         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
27625         (fde_needed_for_eh_p): New predicate.
27626         (output_call_frame_info): Use it throughout to decide whether FDEs
27627         are needed for EH purpose.
27628         (dwarf2out_begin_prologue): Reorder assignments.
27630 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27632         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
27633         special case loop->header.
27634         (is_predicated): New.
27635         (if_convertible_loop_p): Call it.
27637 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27639         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
27640         iterator in parameter.  Do not generate code during the analysis.
27641         (tree_if_convert_cond_stmt): Removed.
27642         (tree_if_convert_stmt): Removed.
27643         (predicate_bbs): New.
27644         (if_convertible_loop_p): Call predicate_bbs.
27645         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
27646         now contains all the analysis part.
27648 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27650         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
27651         statements in the analysis part.
27652         (tree_if_convert_stmt): Update comment.
27653         (remove_conditions_and_labels): New.
27654         (combine_blocks): Call remove_conditions_and_labels.
27655         (tree_if_conversion): Update comment.
27657 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27659         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
27660         than 2 predecessors or more than 2 successors.
27662 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27664         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
27665         of loops in which the data dependence analysis fails.
27667 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27669         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
27670         CDI_POST_DOMINATORS.
27671         (tree_if_conversion): Same.
27673 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27675         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
27677 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
27679         * tree-if-conv.c: Update copyright years.  Fix comments.
27680         Fix indentation.
27682 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
27684         * builtin-types.def (BT_INT128): New primitive type.
27685         (BT_UINT128): Likewise.
27686         * c-common.c (c_common_r): Add __int128 keyword.
27687         (c_common_type_for_size): Handle __int128.
27688         (c_common_type_for_mode): Likewise.
27689         (c_common_signed_or_unsigned_type): Likewise.
27690         (c_common_nodes_and_builtins): Add builtin type
27691         if target supports 128-bit integer scalar.
27692         * c-common.h (enum rid): Add RID_INT128.
27693         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
27694         if target supports 128-bit integer scalar.
27695         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
27696         (finish_declspecs): Likewise.
27697         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
27698         (c_token_starts_declspecs): Likewise.
27699         (c_parser_declspecs): Likewise.
27700         (c_parser_attributes): Likewise.
27701         (c_parser_objc_selector): Likewise.
27702         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
27703         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
27704         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
27705         * tree.c (make_or_reuse_type): Likewise.
27706         (make_unsigned_type): Likewise.
27707         (build_common_tree_nodes_2): Likewise.
27708         * tree.h (enum integer_type_kind): Add itk_int128 and
27709         itk_unsigned_int128.
27710         (int128_integer_type_node): New define.
27711         (int128_unsigned_type_node): New define.
27712         * doc/extend.texi: Add documentation about __int128 type.
27714 2010-05-26  Richard Guenther  <rguenther@suse.de>
27716         * tree-ssa-sccvn.c (copy_nary): Adjust.
27717         (copy_phis): Rename to ...
27718         (copy_phi): ... this.  Adjust.
27719         (copy_references): Rename to ...
27720         (copy_reference): ... this.  Adjust.
27721         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
27722         result into the valid table.
27724 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27726         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
27727         insn-config.h, insn-codes.h, recog.h, and optabs.h.
27729 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27731         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
27733 2010-05-26  Richard Guenther  <rguenther@suse.de>
27735         * opts.c (common_handle_option): Handle OPT_Ofast.
27737 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
27739         * diagnostic.c: Don't include opts.h.
27740         (permissive_error_option): Define.
27741         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
27742         for classify_diagnostic.  Don't use memset for
27743         classify_diagnostic.  Initialize new and recently added fields.
27744         (diagnostic_classify_diagnostic): Use context->n_opts instead of
27745         N_OPTS.
27746         (diagnostic_report_diagnostic): Pass context parameter to
27747         diagnostic_report_warnings_p.  Use option_enabled and option_name
27748         hooks from context.
27749         (emit_diagnostic): Use permissive_error_option.
27750         (permerror): Likewise.
27751         * diagnostic.h: Don't include options.h.
27752         (struct diagnostic_context): Add n_opts, opt_permissive,
27753         inhibit_warnings, warn_system_headers, option_enabled and
27754         option_name fields.  Change classify_diagnostic to a pointer.
27755         * opts-diagnostic.h: New file.
27756         * opts.c: Include opts-diagnostic.h.
27757         (common_handle_option): Set global_dc fields for -Wfatal-errors,
27758         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
27759         (option_name): New function.
27760         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
27761         (c_common_handle_option): Set global_dc->permissive for
27762         -fpermissive.
27763         * c-common.c (c_cpp_error): Save and restore
27764         global_dc->warn_system_headers, not variable warn_system_headers.
27765         * toplev.c: Include opts-diagnostic.h.
27766         (general_init): Update call to diagnostic_initialize.  Set
27767         global_dc->show_column, global_dc->option_enabled and
27768         global_dc->option_name.
27769         (process_options): Don't set global_dc fields here.
27770         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
27771         (diagnostic.o, opts.o, toplev.o): Update dependencies.
27773 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27775         * config/picochip/picochip.md (movsi): Split a movsi from a
27776         const after reload.
27778 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27780         * ggc-zone.c: Update copyright year.
27781         (poison_region): Mark memory for Valgrind as undefined before
27782         memset () call and inaccessible afterwards.
27783         (ggc_pch_total_size): Change type of i to int.
27785 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27787         * ggc-common.c (ggc_free_overhead): Allow empty slot.
27789 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27791         * ggc-common.c: Update copyright year.
27792         (ggc_rlimit_bound): Remove prototype.  Compile only if
27793         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
27794         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
27795         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
27796         (ggc_min_heapsize_heuristic): Likewise.
27798 2010-05-26  Richard Guenther  <rguenther@suse.de>
27800         PR rtl-optimization/44164
27801         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
27802         no-common access-path disambiguation.
27803         (indirect_ref_may_alias_decl_p): Adjust.
27804         (indirect_refs_may_alias_p): Likewise.
27805         (refs_may_alias_p_1): Likewise.
27807 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27809         * c-typeck.c: Do not include expr.h.
27811 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27813         * rtl.h (decl_default_tls_model): Move prototype from here...
27814         * output.h: ...to here.
27815         * c-decl.c: Do not include rtl.h.
27816         * c-pragma.c: Likewise.
27817         * c-parser.c: Likewise.
27818         * c-gimplify.c: Likewise.  And also not hard-reg-set.
27819         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
27820         FIXME note for it.  Add a FIXME note for expr.h.
27821         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
27822         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
27823         defined.
27825 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
27827         PR target/44199
27828         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
27829         or total_size is larger than red zone size for non-V4 ABI, emit a
27830         stack_tie resp. frame_tie insn before stack pointer restore.
27831         * config/rs6000/rs6000.md (frame_tie): New insn.
27833 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
27835         * function.h (struct function): Add can_throw_non_call_exceptions bit.
27836         * lto-streamer-in.c (input_function): Stream it in.
27837         * lto-streamer-out.c (output_function): Stream it out.
27838         * function.c (allocate_struct_function): Set it.
27839         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
27840         for flag_non_call_exceptions.
27841         * cfgbuild.c (control_flow_insn_p): Likewise.
27842         (make_edges): Likewise.
27843         * cfgexpand.c (expand_stack_alignment): Likewise.
27844         * combine.c (distribute_notes): Likewise.
27845         * cse.c (cse_extended_basic_block): Likewise.
27846         * except.c (insn_could_throw_p): Likewise.
27847         * gcse.c (simple_mem): Likewise.
27848         * ipa-pure-const.c (check_call): Likewise.
27849         (check_stmt ): Likewise.
27850         * lower-subreg.c (lower-subreg.c): Likewise.
27851         * optabs.c (emit_libcall_block): Likewise.
27852         (prepare_cmp_insn): Likewise.
27853         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
27854         * postreload.c (rest_of_handle_postreload): Likewise.
27855         * reload1.c (reload_as_needed): Likewise.
27856         (emit_input_reload_insns): Likewise.
27857         (emit_output_reload_insns): Likewise.
27858         (fixup_abnormal_edges): Likewise.
27859         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
27860         * store-motion.c (find_moveable_store): Likewise.
27861         * tree-eh.c (stmt_could_throw_p): Likewise.
27862         (tree_could_throw_p): Likewise.
27863         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27864         * config/arm/arm.c (arm_expand_prologue): Likewise.
27865         (thumb1_expand_prologue): Likewise.
27866         * config/rx/rx.md (cbranchsf4): Likewise.
27867         (cmpsf): Likewise.
27868         * config/s390/s390.c (s390_emit_prologue): Likewise.
27869         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
27870         (inline_forbidden_into_p): New predicate.
27871         (expand_call_inline): Use it to forbid inlining.
27872         (tree_can_inline_p): Likewise.
27874 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27876         * config/i386/i386-c.c: Do not include rtl.h.
27877         * config/i386/t-i386: Update dependencies.
27879 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27881         * attribs.c: Do not include rtl.h.
27882         * Makefile.in: Update dependencies.
27884 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
27886         * double-int.h (double_int_and): New.
27887         * combine.c (try_combine): Clean up, use double_int_* and
27888         immed_double_int_const functions.
27890 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27892         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
27893         stderr to /dev/null instead of grep -q.
27894         * configure: Regenerate.
27896 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27898         * Makefile.in (EXCEPT_H): Fix typo.
27900 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
27902         * ira-build.c (update_conflict_hard_reg_costs): New.
27903         (ira_build): Call update_conflict_hard_reg_costs.
27905 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
27907         PR debug/41371
27908         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
27909         ENABLE_CHECKING.
27910         (intersect_loc_chains): Walk the s2var's loc_chain together
27911         with s1node chain as long as the locations are equal, don't
27912         call find_loc_in_1pdv in that case.
27914         PR debug/42801
27915         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
27916         (copy_bind_expr): ... instead of here.
27917         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
27918         if the block hasn't been remapped.
27919         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
27920         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
27922 2010-05-25  Richard Guenther  <rguenther@suse.de>
27924         PR middle-end/44069
27925         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
27926         out-of-bounds array accesses.
27928 2010-05-25  Richard Guenther  <rguenther@suse.de>
27930         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
27931         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
27932         (run_gcc): Re-organize to make cleanup easier.
27934 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27936         * config/s390/s390.c (optimization_options): Fix and move the
27937         flag_prefetch_loop_arrays override ...
27938         (override_options): ... here.
27940 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
27942         * diagnostic.c: Don't include plugin.h.
27943         (diagnostic_report_diagnostic): Don't handle plugins specially
27944         here.  Pass context to internal_error callback.
27945         * diagnostic.h (struct diagnostic_context): Add context parameter
27946         to internal_error callback.
27947         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
27948         * plugin.h (struct diagnostic_context): Declare.
27949         (warn_if_plugins, plugins_internal_error_function): Declare.
27950         * toplev.c (general_init): Set global_dc->internal_error.
27951         * Makefile.in (diagnostic.o): Update dependencies.
27953 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
27955         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
27956         * config/rs6000/t-darwin64: New.
27957         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
27958         build crt2.
27960 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
27962         PR 44203
27963         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
27964         match the original (and intended) behaviour before r159557.  This
27965         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
27966         in two ways.
27968 2010-05-25  Richard Guenther  <rguenther@suse.de>
27970         * doc/invoke.texi: Document -Ofast.
27971         * target.h (struct gcc_target): Add handle_ofast.
27972         * target-def.h (TARGET_HANDLE_OFAST): Add.
27973         (TARGET_INITIALIZER): Adjust.
27974         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
27975         * common.opt (Ofast): Add.
27977 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
27979         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
27980         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
27982 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
27984         PR target/43610
27985         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
27986         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
27987         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
27988         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
27990 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
27992         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
27993         DW_OP_minus with negated offset instead of DW_OP_plus.
27994         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
27996 2010-05-25  Wei Guozhi  <carrot@google.com>
27998         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
27999         tst instruction and a new alternative.
28000         * config/arm/constraints.md (Pu): New constraint.
28002 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
28004         * function.c (assign_stack_local_1): Initialize variable
28005         to avoid warning when bootstrapping at -O3.
28007 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
28009         * configure.ac (all_lang_makefiles): Remove everything related to it.
28010         * configure: Regenerate.
28011         * Makefile.in: Fix reference to ada Make-lang.in.
28012         Remove support for LANG_MAKEFILES.
28014 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
28015             Sandra Loosemore  <sandra@codesourcery.com>
28017         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
28018         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
28019         description.  Add arm_neon_fp16_ok.
28020         (Add Options): Add arm_neon and arm_neon_fp16.
28022 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
28024         * diagnostic.c: Don't include flags.h.
28025         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
28026         context parameters.  Check flags in the context passed as a parameter.
28027         (diagnostic_build_prefix): Add context parameter.  Check
28028         show_column flag in context.
28029         (diagnostic_action_after_output): Check fatal_errors flag in context.
28030         (diagnostic_report_current_module): Check show_column flag in context.
28031         (default_diagnostic_starter): Update call to
28032         diagnostic_build_prefix.
28033         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
28034         (emit_diagnostic): Pass context to permissive_error_kind.
28035         (permerror): Pass context to permissive_error_kind.
28036         * diagnostic.h (struct diagnostic_context): Add show_column,
28037         pedantic_errors, permissive and fatal_errors fields.
28038         (diagnostic_build_prefix): Update prototype.
28039         * langhooks.c
28040         * toplev.c (process_options): Set flags in global_dc from
28041         flag_show_column, flag_pedantic_errors, flag_permissive,
28042         flag_fatal_errors.
28043         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
28044         to diagnostic_build_prefix.
28045         * Makefile.in (diagnostic.o): Update dependencies.
28047 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
28049         * config/i386/ia32intrin.h (__crc32q): Define only if
28050         __SSE4_2__ is defined.
28052 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
28054         PR target/44132
28055         PR middle-end/43602
28056         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
28057         DECL_VISIBILITY_SPECIFIED.
28058         (emutls_decl): Set DECL_PRESERVE_P and copy
28059         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
28060         (emutls_finalize_control_var): New callback.
28061         (emutls_finish): Finalize emutls control variables.
28062         * toplev.c (compile_file): Move the call to emutls_finish ()
28063         before varpool_assemble_pending_decls ().
28065 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
28067         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
28068         added to the preprocessor condition.
28070 2010-05-24  Paul Brook  <paul@codesourcery.com>
28072         * gengtype-lex.l: Add HARD_REG_SET.
28073         * expr.c (expand_expr_real_1): Record writes to hard registers.
28074         * function.c (rtl_data): Add asm_clobbers.
28075         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
28076         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
28077         Use crtl->asm_clobbers.
28079 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28081         * doc/makefile.texi (Makefile): Mention stages 'profile'
28082         and 'feedback' for profiledbootstrap.
28084 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
28086         PR target/44245
28087         * config/i386/i386.c (def_builtin): Properly check
28088         OPTION_MASK_ISA_64BIT.
28090 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
28092         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
28093         typedefs with different but compatible types.  Allow duplicate
28094         typedefs with the same type except for pedantic non-C1X, but give
28095         warning for variably modified types.
28096         * c-typeck.c (tagged_types_tu_compatible_p,
28097         function_types_compatible_p, type_lists_compatible_p,
28098         comptypes_internal): Add parameter different_types_p; set
28099         *different_types_p for different but compatible types.  All
28100         callers changed.
28101         (comptypes_check_different_types): New.
28102         * c-tree.h (comptypes_check_different_types): Declare.
28104 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
28106         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
28107         * jump.c: Include basic-block.h.
28108         * profile.c: Likewise.
28109         * tree-profile.c: Likewise.
28110         * coverage.c: Likewise.
28111         * basic-block.h (optimize_function_for_size_p): Move to function.h.
28112         (optimize_function_for_speed_p): Likewise.
28113         * function.h (optimize_function_for_size_p,
28114         optimize_function_for_speed_p): Moved here from basic-block.h.
28115         * Makefile.in: Update dependencies.
28117 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28119         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
28120         before calling make; allow override through $MAKE.
28121         * doc/invoke.texi (Optimize Options): Document override.
28123 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
28125         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
28126         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28127         (rs6000_mode_dependent_address_ptr): Make static.
28128         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28129         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
28130         Remove.
28132 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
28134         PR target/43869
28135         * config/i386/i386.c: Make sure that the correct regparm is passed.
28137 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
28139         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
28140         * sbitmap.c: ...to here to internalize sbitmap element access.
28141         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
28142         Explain why basic-block.h is included.
28143         * function.h: Include tm.h for CUMULATIVE_ARGS.
28144         * Makefile.in: Update dependencies.
28146 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
28148         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
28149         New core types.
28150         * sbitmap.h (struct sbitmap_def): Do not typedef here.
28151         * sbitmap.c: Include sbitmap.h.
28152         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
28153         hard-reg-set.h.  Split everything related to regsets out from here...
28154         * regset.h: ...to here.  New file.
28155         * df.h: Include regset.h and sbitmap.h.
28156         * tree-flow.h: Likewise.
28157         * cfgloop.h: Likewise.
28158         * except.h: Do not include sbitmap.h.  Include hashtab.h.
28159         * cgraph.h: Include vec.h and function.h.
28160         * reload.h (struct insn_chain): Change types of live_throughout
28161         and dead_or_set from regset_head to bitmap_head.
28162         (compute_use_by_pseudos): Be defined also if regset.h is not included.
28163         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
28164         spilled_regs from regset_head to bitmap_head to avoid dependency
28165         in regset.h.
28166         * sel-sched-ir.h: Include regset.h.
28167         * reload.c: Include df.h before reload.h.
28168         * caller-save.c: Likewise.
28169         * reload1.c: Likewise.
28170         * ira.c: Likewise.
28171         (mark_elimination): Update type of r to bitmap, consistent with
28172         DF_LR_IN.
28173         * dominance.c: Include bitmap.h.
28174         * modulo-sched.c: Include df.h.
28175         * cfganal.c: Include bitmap.h and sbitmap.h.
28176         * cfgbuild.c: Include sbitmap.h.
28177         * lcm.c: Include sbitmap.h.
28178         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
28179         * domwalk.c: Include sbitmap.h, exclude ggc.h.
28180         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
28181         * cselib.c: Include bitmap.h.
28182         * tree-optimize.c: Include regset.h.
28183         * stmt.c: Include bitmap.h.
28184         * Makefile.in: Update dependencies.
28186 2010-05-22  Jan Hubicka  <jh@suse.cz>
28188         * cgraph.h (struct varpool_node): Add same_comdat_group.
28189         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
28190         pointer.
28191         (output_varpool): Update call of lto_output_varpool_node.
28192         (input_varpool): Read same_comdat_group pointer.
28193         (input_varpool_1): Fixup same_comdat_group pointer.
28194         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
28195         group is needed, all are.
28196         * varpool.c (varpool_remove_node): Remove node from same comdat group
28197         linklist too.
28198         (varpool_analyze_pending_decls): Walk same comdat groups.
28200 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
28202         * rtl.h (union rtunion_def): Remove rt_bit member.
28203         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
28204         * print-rtl (print_rtx): Do not print the member.
28205         * gengtype.c (adjust_field_rtx_def): Do not handle it.
28206         * gengenrtl.c (type_from_format): Likewise.
28207         (accessor_from_format): Likewise.
28209 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
28211         * dbgcnt.c: Include toplev.h instead of errors.h.
28212         * ira-emit.c: Don't include errors.h.
28213         * ira.c: Include toplev.h instead of errors.h.
28214         * lto-compress.c: Include toplev.h instead of errors.h.
28215         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
28216         ira.o, dbgcnt.o): Update dependencies.
28218 2010-05-22  Richard Guenther  <rguenther@suse.de>
28220         * gimple.c (gimple_types_compatible_p): Check type qualifications
28221         before merging pointer to complete and pointer to incomplete type.
28222         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
28223         we use our own resolution algorithm.  The gold linker plugin
28224         doesn't do the job we want it to do here.
28226 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
28228         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
28229         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
28230         (sparc_mode_dependent_address_p): New function.
28232 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
28234         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
28236         * timevar.c: Do not include any core headers.
28237         (timevar_print): De-i18n-ize.
28238         (print_time): Likewise.
28239         * timevar.h (timevar_push, timevar_pop): Make inline functions.
28241 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
28243         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
28244         langhooks-def.h.
28245         (diagnostic_initialize): Initialize x_data not last_function.
28246         (diagnostic_report_current_function): Move to tree-diagnostic.c.
28247         (default_diagnostic_starter): Call
28248         diagnostic_report_current_module not
28249         diagnostic_report_current_function.
28250         (diagnostic_report_diagnostic): Initialize x_data not
28251         abstract_origin.
28252         (verbatim): Likewise.
28253         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
28254         x_data.
28255         (struct diagnostic_context): Change last_function to x_data.
28256         (diagnostic_auxiliary_data): Replace with
28257         diagnostic_context_auxiliary_data and
28258         diagnostic_info_auxiliary_data.
28259         (diagnostic_last_function_changed, diagnostic_set_last_function,
28260         diagnostic_report_current_function): Move to tree-diagnostic.h.
28261         (print_declaration, dump_generic_node, print_generic_stmt,
28262         print_generic_stmt_indented, print_generic_expr,
28263         print_generic_decl, debug_c_tree, dump_omp_clauses,
28264         print_call_name, debug_generic_expr, debug_generic_stmt,
28265         debug_tree_chain, default_tree_printer): Move to
28266         tree-pretty-print.h.
28267         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
28268         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
28269         gimple-pretty-print.h.
28270         * pretty-print.c: Don't include tree.h
28271         (pp_base_format): Don't handle %K here.
28272         (pp_base_tree_identifier): Move to tree-pretty-print.c.
28273         * pretty-print.h (text_info): Change abstract_origin to x_data.
28274         (pp_tree_identifier, pp_unsupported_tree,
28275         pp_base_tree_identifier): Move to tree-pretty-print.h.
28276         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
28277         tree-pretty-print.h: New files.
28278         * tree-pretty-print.c: Include tree-pretty-print.h.
28279         (percent_K_format): New.  Moved from pretty-print.c.
28280         (pp_base_tree_identifier): Move from pretty-print.c.
28281         * c-objc-common.c: Include tree-pretty-print.h.
28282         (c_tree_printer): Handle %K here.
28283         * langhooks.c: Include tree-diagnostic.h.
28284         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
28285         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
28286         (default_tree_printer): Handle %K using percent_K_format.
28287         (general_init): Use default_tree_diagnostic_starter.
28288         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
28289         (free_lang_data): Use default_tree_diagnostic_starter.
28290         * c-pretty-print.c: Include tree-pretty-print.h.
28291         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28292         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28293         * dwarf2out.c: Include tree-pretty-print.h.
28294         * except.c: Include tree-pretty-print.h.
28295         * gimple-pretty-print.c: Include tree-pretty-print.h and
28296         gimple-pretty-print.h.
28297         * gimplify.c: Include tree-pretty-print.h.
28298         * graphite-poly.c: Include tree-pretty-print.h and
28299         gimple-pretty-print.h.
28300         * ipa-cp.c: Include tree-pretty-print.h.
28301         * ipa-inline.c: Include gimple-pretty-print.h.
28302         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28303         * ipa-pure-const.c: Include gimple-pretty-print.h.
28304         * ipa-struct-reorg.c: Include tree-pretty-print.h and
28305         gimple-pretty-print.h.
28306         * ipa-type-escape.c: Include tree-pretty-print.h.
28307         * print-rtl.c: Include tree-pretty-print.h.
28308         * print-tree.c: Include gimple-pretty-print.h.
28309         * sese.c: Include tree-pretty-print.h.
28310         * tree-affine.c: Include tree-pretty-print.h.
28311         * tree-browser.c: Include tree-pretty-print.h.
28312         * tree-call-cdce.c: Include gimple-pretty-print.h.
28313         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
28314         * tree-chrec.c: Include tree-pretty-print.h.
28315         * tree-data-ref.c: Include tree-pretty-print.h and
28316         gimple-pretty-print.h.
28317         * tree-dfa.c: Include tree-pretty-print.h.
28318         * tree-if-conv.c: Include tree-pretty-print.h and
28319         gimple-pretty-print.h.
28320         * tree-inline.c: Include tree-pretty-print.h.
28321         * tree-into-ssa.c: Include tree-pretty-print.h and
28322         gimple-pretty-print.h.
28323         * tree-nrv.c: Include tree-pretty-print.h.
28324         * tree-object-size.c: Include tree-pretty-print.h and
28325         gimple-pretty-print.h.
28326         * tree-outof-ssa.c: Include tree-pretty-print.h and
28327         gimple-pretty-print.h.
28328         * tree-parloops.c: Include tree-pretty-print.h and
28329         gimple-pretty-print.h.
28330         * tree-predcom.c: Include tree-pretty-print.h and
28331         gimple-pretty-print.h.
28332         * tree-scalar-evolution.c: Include tree-pretty-print.h and
28333         gimple-pretty-print.h.
28334         * tree-sra.c: Include tree-pretty-print.h.
28335         * tree-ssa-address.c: Include tree-pretty-print.h.
28336         * tree-ssa-alias.c: Include tree-pretty-print.h.
28337         * tree-ssa-ccp.c: Include tree-pretty-print.h and
28338         gimple-pretty-print.h.
28339         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
28340         * tree-ssa-copy.c: Include tree-pretty-print.h and
28341         gimple-pretty-print.h.
28342         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
28343         * tree-ssa-dce.c: Include tree-pretty-print.h and
28344         gimple-pretty-print.h.
28345         * tree-ssa-dom.c: Include tree-pretty-print.h and
28346         gimple-pretty-print.h.
28347         * tree-ssa-dse.c: Include gimple-pretty-print.h.
28348         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
28349         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
28350         * tree-ssa-live.c: Include tree-pretty-print.h and
28351         gimple-pretty-print.h.
28352         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
28353         gimple-pretty-print.h.
28354         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
28355         gimple-pretty-print.h.
28356         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
28357         gimple-pretty-print.h.
28358         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
28359         gimple-pretty-print.h.
28360         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
28361         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
28362         * tree-ssa-operands.c: Include tree-pretty-print.h and
28363         gimple-pretty-print.h.
28364         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
28365         gimple-pretty-print.h.
28366         * tree-ssa-pre.c: Include tree-pretty-print.h and
28367         gimple-pretty-print.h.
28368         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
28369         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
28370         gimple-pretty-print.h.
28371         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
28372         gimple-pretty-print.h.
28373         * tree-ssa-sink.c: Include gimple-pretty-print.h.
28374         * tree-ssa-ter.c: Include tree-pretty-print.h and
28375         gimple-pretty-print.h.
28376         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
28377         * tree-ssa.c: Include tree-pretty-print.h and
28378         gimple-pretty-print.h.
28379         * tree-stdarg.c: Include gimple-pretty-print.h.
28380         * tree-switch-conversion.c: Include gimple-pretty-print.h.
28381         * tree-tailcall.c: Include tree-pretty-print.h and
28382         gimple-pretty-print.h.
28383         * tree-vect-data-refs.c: Include tree-pretty-print.h and
28384         gimple-pretty-print.h.
28385         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
28386         gimple-pretty-print.h.
28387         * tree-vect-loop.c: Include tree-pretty-print.h and
28388         gimple-pretty-print.h.
28389         * tree-vect-patterns.c: Include gimple-pretty-print.h.
28390         * tree-vect-slp.c: Include tree-pretty-print.h and
28391         gimple-pretty-print.h.
28392         * tree-vect-stmts.c: Include tree-pretty-print.h and
28393         gimple-pretty-print.h.
28394         * tree-vectorizer.c: Include tree-pretty-print.h.
28395         * tree-vrp.c: Include tree-pretty-print.h and
28396         gimple-pretty-print.h.
28397         * value-prof.c: Include tree-pretty-print.h and
28398         gimple-pretty-print.h.
28399         * var-tracking.c: Include tree-pretty-print.h.
28400         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
28401         (tree-diagnostic.o): New dependencies.
28402         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
28403         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
28404         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
28405         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
28406         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
28407         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
28408         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
28409         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
28410         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
28411         tree-ssa-address.o, tree-ssa-loop-niter.o,
28412         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
28413         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
28414         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
28415         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
28416         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
28417         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
28418         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
28419         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
28420         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
28421         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
28422         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
28423         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
28424         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
28425         tree-switch-conversion.o, var-tracking.o, value-prof.o,
28426         cfgexpand.o, pretty-print.o): Update dependencies.
28428 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
28430         * tree-ssa-structalias.c: Remove tm_p.h from include.
28432 2010-05-21  Jeff Law  <law@redhat.com>
28434         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
28436 2010-05-21  Jason Merrill  <jason@redhat.com>
28438         * tree-eh.c (cleanup_is_dead_in): New.
28439         (lower_try_finally): Don't generate a dead cleanup region.
28440         (lower_cleanup): Likewise.
28442 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
28444         PR debug/44223
28445         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
28446         unchain each use from the cyclic next_regno_use chain first.
28448 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
28450         * real: Do not include gmp.h, mpfr.h, and mpc.h.
28451         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
28452         (real_value_negate, real_value_abs): New prototypes.
28453         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
28454         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
28455         new include file for interface between MPFR and REAL_VALUE_TYPE.
28456         * real.c: Include realmpfr.h.
28457         (real_arithmetic2): Remove legacy function.
28458         (real_value_negate): New.
28459         (real_value_abs): New.
28460         (mfpr_from_real, real_from_mpfr): Move from here...
28461         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
28462         * builtins.c: Include realmpfr.h.
28463         * fold-const.c: Include realmpfr.h.
28464         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
28465         (fold_negate_const): Likewise.
28466         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
28467         * toplev.c: Include realmpfr.h.
28468         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
28469         and real_value_negate.
28470         * fixed-value.c (check_real_for_fixed_mode): Likewise.
28471         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
28472         (vfp3_const_double_index): Likewise.
28473         (arm_print_operand): Likewise.
28474         * Makefile.in: Update dependencies.
28476 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28478         * config/s390/s390.c (override_options): Increase the default
28479         of max-completely-peel-times.
28481 2010-05-21  Julian Brown  <julian@codesourcery.com>
28482             Mark Mitchell  <mark@codesourcery.com>
28484         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
28485         sibling calls for Thumb-1.
28486         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
28487         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
28488         Thumb-2.
28489         (*call_insn, *call_value_insn): Don't use for Thumb-2.
28490         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
28491         for Thumb-2.
28492         (return): New expander.
28493         (*arm_return): New name for ARM return insn.
28494         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
28496 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
28498         * config.gcc (sparc64-*-rtems*): New target.
28500 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
28502         * tree.c (build_function_decl_skip_args): Fix grammar.
28503         (build_function_type_list_1): Fix typos, adjust formatting.
28505 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
28507         * tree.h: Include real.h and fixed-value.h as basic datatypes.
28508         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
28509         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
28510         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
28511         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
28512         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
28513         tree-pretty-print.c, tree-loop-distribution.c,
28514         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
28515         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
28516         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
28517         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
28518         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
28519         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
28520         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
28521         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
28522         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
28523         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
28524         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
28525         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
28526         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
28527         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
28528         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
28529         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
28530         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
28531         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
28532         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
28533         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
28534         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
28535         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
28536         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
28537         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
28538         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
28539         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
28540         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
28541         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
28542         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
28543         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
28544         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
28545         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
28546         config/score/score7.c, config/score/score.c, config/arm/arm.c,
28547         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
28548         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
28549         config/bfin/bfin.c: Clean up redundant includes.
28550         * Makefile.in: Update accordingly.
28552 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
28554         PR middle-end/44204
28555         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
28556         statement has no arguments.
28558 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
28560         PR/44139
28561         * varasm.c (emutls_decl): Merge attributes to new decl.
28563 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
28565         PR middle-end/44101
28566         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
28567         around the uniquized constructor if its type requires a conversion.
28569 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
28571         PR debug/44205
28572         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
28573         at -O0 goto_locus of any of the incoming edges differs from
28574         goto_locus of outgoing edge, or gimple_location of any of the
28575         labels differs.
28577 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
28579         * ira.c (ira_non_ordered_class_hard_regs): Define.
28580         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
28581         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
28582         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
28583         cost of unaligned hard regs when allocating multi-reg pseudos.
28585 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
28587         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
28588         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
28589         for TARGET_NO_FLOAT.
28590         * config/mips/mips.c (mips_file_start): Expand conditional expression
28591         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
28592         (mips_override_options): Move -mno-float override -msoft-float and
28593         -mhard-float.
28594         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
28595         Condition(TARGET_SUPPORTS_NO_FLOAT).
28596         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
28597         __mips_no_float here.
28598         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
28599         (TARGET_SUPPORTS_NO_FLOAT): Define.
28600         * config/mips/sdemtk.opt: Delete.
28602 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
28604         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
28606 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
28608         PR target/43733
28609         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
28610         * configure: Regenerate.
28611         * config.in: Regenerate.
28612         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
28613         instead of sahf only for 64bit targets.
28615 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
28617         PR debug/44178
28618         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
28619         setup_ref_regs for DEBUG_INSNs.
28621 2010-05-20  Jan Hubicka  <jh@suse.cz>
28623         PR middle-end/44197
28624         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
28626 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
28628         PR bootstrap/43870
28629         * df-scan.c (df_ref_compare): Stabilize sort.
28631 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
28633         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
28634         argument.  Don't use DW_OP_piece if offset is non-zero,
28635         put offset into second DW_OP_bit_piece argument.
28636         (dw_sra_loc_expr): Adjust callers.  For memory expressions
28637         compute offset.
28639 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
28641         PR target/44202
28642         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
28643         settings for 16-bit-constant "addo" alternative.
28645 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
28647         * config/mips/mips-dsp.md (add<DSPV:mode>3,
28648         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
28650         PR target/43764
28651         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
28652         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
28653         Use it.
28655 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
28657         * diagnostic.c (FLOAT, FFS): Don't undefine.
28658         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
28659         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
28660         include ordering.
28662 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
28664         * combine.c (propagate_for_debug): Call make_compound_operation
28665         on the source value.
28666         (try_combine): When implementing a split chosen by find_split_point,
28667         either copy i2src or set it to null.  Assert that i2src is not null
28668         before substituting into CALL_INSN_FUNCTION_USAGE.
28670 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
28672         * double-int.h (double_int_ior): New function.
28673         * tree.h (build_int_cst_wide_type): Remove.
28674         * tree.c (build_int_cst_wide_type): Remove.
28675         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
28676         of build_int_cst_wide_type.
28677         * stor-layout.c (set_sizetype): (Ditto.).
28678         * dojump.c (do_jump): Use build_int_cstu instead of
28679         build_int_cst_wide_type.
28681 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
28683         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
28684         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
28685         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
28686         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
28687         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
28688         propagate the 'data' argument to copy_tree_r.
28689         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
28690         Propagate 'data' argument to walk_tree.
28691         (copy_if_shared): New function.
28692         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
28693         (unmark_visited): New function.
28694         (unshare_body): Call copy_if_shared instead of doing it manually.
28695         (unvisit_body): Call unmark_visited instead of doing it manually.
28697 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
28699         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
28700         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
28701         * hooks.c: Likewise.
28702         * target-def.h (TARGET_FOLD_BUILTIN): Define to
28703         hook_tree_tree_int_treep_bool_null.
28704         * target.h (struct gcc_target): Update signature of fold_builtin
28705         field.
28706         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
28707         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
28708         instead of the call expression.
28709         (fold_builtin_call_array): Pass n and argarray directly.
28710         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
28711         consing a list.
28712         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
28713         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
28714         `i' and use it in place of `arity'.
28715         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
28716         Dereference `args' directly.
28717         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
28719 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28721         * doc/sourcebuild.texi (Effective-Target Keywords): Document
28722         3dnow, sse3, sse2.
28723         (Directives): Document optional dg-require-effective-target
28724         selector.
28726 2010-05-19  Richard Guenther  <rguenther@suse.de>
28728         PR lto/44196
28729         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
28731 2010-05-19  Richard Guenther  <rguenther@suse.de>
28733         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
28734         * common.opt (fwhopr=): New.
28735         * opts.c (common_handle_option): Handle OPT_fwhopr.
28736         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
28737         * collect2.c (main): Match -fwhopr*.
28738         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
28739         Execute ltrans stage in parallel when jobs is bigger than 1.
28741 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28743         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
28744         pentiumpro on Solaris 8/x86 with Sun as.
28745         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
28746         hidden alias bug.
28747         (gcc_cv_as_ix86_quad): Check for .quad directive.
28748         * configure: Regenerate.
28749         * config.in: Regenerate.
28750         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
28752 2010-05-19  Martin Jambor  <mjambor@suse.cz>
28754         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
28755         also for indirect edges.  Actual printing moved...
28756         (ipa_print_node_jump_functions_for_edge): ...here.
28757         (ipa_compute_jump_functions): Renamed to
28758         ipa_compute_jump_functions_for_edge and made static.
28759         (ipa_compute_jump_functions): New function.
28760         (make_edge_direct_to_target): Check if the number of arguments on
28761         the newly direct edge is the same as the number of parametrs of
28762         the callee.
28763         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
28764         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
28765         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
28766         analysis functions unconditionally, call the new
28767         ipa_analyze_params_uses on the node instead of every edge.
28769 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
28771         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
28772         to tree.
28773         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
28774         also checks for a constant int vs.  non-constant but
28775         loop-invariant steps.
28776         (find_or_create_group): Change the sort algorithm to only consider
28777         steps that are constant ints.
28778         (idx_analyze_ref): Adopt code to handle a tree instead of a
28779         HOST_WIDE_INT for step.
28780         (gather_memory_references_ref): Handle tree instead of int and be
28781         prepared to see a NULL_TREE.
28782         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
28783         prefetches if the step cannot be calculated at compile time.
28784         (issue_prefetch_ref): Issue prefetches for non-constant but
28785         loop-invariant steps.
28787 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28789         Revert:
28790         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28792         * tree.h (build_call_list): Remove.
28793         * tree.c (build_call_list): Remove.
28795 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28797         * tree.h (build_call_list): Remove.
28798         * tree.c (build_call_list): Remove.
28800 2010-05-18  Jan Hubicka  <jh@suse.cz>
28802         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
28804 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
28806         PR rtl-optimization/43332
28807         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
28809 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
28811         * tree.h (build_int_cstu): Implement as static inline.
28812         * tree.c (build_int_cstu): Remove function.
28813         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
28814         sign extended.
28816 2010-05-18  Richard Guenther  <rguenther@suse.de>
28818         PR lto/44143
28819         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
28820         (debug): Initialize from -save-temps.
28821         (collect_execute): Print command-line when verbose.
28822         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
28823         for ltrans invocation.  Produce -dumpbase flag again.
28824         (process_args): Remove.
28825         (main): Simplify.
28826         * collect2.c (maybe_run_lto_and_relink): Only pass object
28827         files to lto-wrapper.
28828         * gcc.c (LINK_COMMAND_SPEC): Likewise.
28830 2010-05-18  Jan Hubicka  <jh@suse.cz>
28832         * opts.c (decode_options): Do not disable whopr at ipa_cp.
28833         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
28835 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
28837         PR lto/44184
28838         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
28839         in a GIMPLE_ASM.
28840         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
28841         in a GIMPLE_ASM.
28843 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
28845         PR debug/41371
28846         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
28847         rtx_equal_p inline.
28849 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
28851         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
28852         lto-macho as lto_binary_reader.
28854         * darwin.c (darwin_asm_named_section): Do not add assembler comment
28855         after .section directive; just print it before the directive instead.
28857 2010-05-17  Jan Hubicka  <jh@suse.cz>
28859         * cgraph.c (cgraph_create_virtual_clone): Only check
28860         versionable_function_p when not in wpa and checking is enabled.
28861         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
28862         there are no more functions to materialize.
28864 2010-05-17  Jan Hubicka  <jh@suse.cz>
28866         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
28867         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
28868         New functions.
28869         (output_cgraph): Call output_cgraph_opt_summary.
28870         (input_cgrpah): Call input_cgraph_opt_summary.
28871         (output_cgraph_opt_summary_p, output_node_opt_summary,
28872         input_node_opt_summary, input_cgraph_opt_section): New functions.
28873         * lto-section-in.c (lto_section_name): Add cgraphopt.
28874         * tree-inline.c (tree_function_versioning): Handle parm_num.
28875         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
28876         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
28878 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
28880         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
28881         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
28882         the insn to prefetch ratio heuristic to loops with known trip count.
28884 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
28886         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
28887         (schedule_prefetches): Do not generate a prefetch if the unroll factor
28888         is far from what is required by the prefetch.
28890 2010-05-17  Jan Hubicka  <jh@suse.cz>
28892         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
28893         (ipcp_estimate_growth): Likewise.
28894         (ipcp_const_param_count): Likewise.
28895         (ipcp_insert_stage): Likewise.
28896         * ipa-prop.c (visit_load_for_mod_analysis): New function.
28897         (visit_store_addr_for_mod_analysis): Set used flag.
28898         (ipa_detect_param_modifications): Set used flag for SSE params;
28899         update use of walk_stmt_load_store_addr_ops.
28900         (ipa_print_node_params): Print used flag.
28901         (ipa_write_node_info): Stream used flag.
28902         (ipa_read_node_info): Likewise.
28903         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
28904         (ipa_is_param_used): New function.
28905         (lto_ipa_fixup_call_notes): Remove unused declaration.
28907 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28909         PR target/44074
28910         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
28911         * configure: Regenerate.
28912         * config.in: Regenerate.
28913         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
28914         !HAVE_AS_IX86_REP_LOCK_PREFIX.
28915         Don't emit whitespace.
28916         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
28917         (*rep_movsi): Likewise.
28918         (*rep_movsi_rex64): Likewise.
28919         (*rep_movqi): Likewise.
28920         (*rep_movqi_rex64): Likewise.
28921         (*rep_stosdi_rex64): Likewise.
28922         (*rep_stossi): Likewise.
28923         (*rep_stossi_rex64): Likewise.
28924         (*rep_stosqi): Likewise.
28925         (*rep_stosqi_rex64): Likewise.
28926         (*cmpstrnqi_nz_1): Use {%;} after repz.
28927         (*cmpstrnqi_nz_rex_1): Likewise.
28928         (*cmpstrnqi_1): Likewise.
28929         (*cmpstrnqi_rex_1): Likewise.
28930         (*strlenqi_1): Use {%;} after repnz.
28931         (*strlenqi_rex_1): Likewise.
28932         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
28933         (*sync_compare_and_swap<mode>): Likewise.
28934         (sync_double_compare_and_swap<mode>): Likewise.
28935         (*sync_double_compare_and_swapdi_pic): Likewise.
28936         (sync_old_add<mode>): Likewise.
28937         (sync_add<mode>): Likewise.
28938         (sync_sub<mode>): Likewise.
28939         (sync_<code><mode>): Likewise.
28941 2010-05-17  Martin Jambor  <mjambor@suse.cz>
28943         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
28944         otr_token and polymorphic.
28945         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
28946         (cgraph_clone_edge): Copy the above fields.
28947         * tree.c (get_binfo_at_offset): New function.
28948         * tree.h (get_binfo_at_offset): Declare.
28949         * ipa-prop.h (enum jump_func_type): Added known_type jump function
28950         type, reordered items, updated comments.
28951         (union jump_func_value): Added base_type field, reordered fields.
28952         (enum ipa_lattice_type): Moved down in the file.
28953         (struct ipa_param_descriptor): New field polymorphic.
28954         (ipa_is_param_polymorphic): New function.
28955         * ipa-prop.c: Include gimple.h and gimple-fold.h.
28956         (ipa_print_node_jump_functions): Print known type jump functions.
28957         (compute_complex_pass_through): Renamed to...
28958         (compute_complex_assign_jump_func): this.
28959         (compute_complex_ancestor_jump_func): New function.
28960         (compute_known_type_jump_func): Likewise.
28961         (compute_scalar_jump_functions): Create known type and complex ancestor
28962         jump functions.
28963         (ipa_note_param_call): New parameter polymorphic, set the corresponding
28964         flag in the call note accordingly.
28965         (ipa_analyze_call_uses): Renamed to...
28966         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
28967         variable var only in the block where it is used.
28968         (ipa_analyze_virtual_call_uses): New function.
28969         (ipa_analyze_call_uses): Likewise.
28970         (combine_known_type_and_ancestor_jfs): Likewise.
28971         (update_jump_functions_after_inlining): Implemented handling of a
28972         number of new jump function types combination.
28973         (print_edge_addition_message): Removed.
28974         (make_edge_direct_to_target): New function.
28975         (try_make_edge_direct_simple_call): Likewise.
28976         (try_make_edge_direct_virtual_call): Likewise.
28977         (update_call_notes_after_inlining): Renamed to...
28978         (update_indirect_edges_after_inlining): this.  Moved edge creation for
28979         indirect calls to try_make_edge_direct_simple_call, also calls
28980         try_make_edge_direct_virtual_call for virtual calls.
28981         (ipa_print_node_params): Changed the header message.
28982         (ipa_write_jump_function): Stream also known type jump functions.
28983         (ipa_read_jump_function): Likewise.
28984         (ipa_write_indirect_edge_info): Stream new fields in
28985         cgraph_indirect_call_info.
28986         (ipa_read_indirect_edge_info): Likewise.
28987         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
28988         GIMPLE_FOLD_H.
28990 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28992         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
28994 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
28996         * tree.h (CALL_EXPR_ARGS): Delete.
28997         (call_expr_arglist): Delete.
28998         * tree.c (call_expr_arglist): Delete.
28999         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
29000         targetm.fold_builtin.
29001         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
29002         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
29003         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
29004         arglist parameter.  Use CALL_EXPR_ARG.
29005         (picochip_expand_builtin_3op): Likewise.
29006         (picochip_expand_builtin_2opvoid): Likewise.
29007         (picochip_expand_array_get): Likewise.
29008         (picochip_expand_array_put): Likewise.
29009         (picochip_expand_array_testport): Likewise.
29010         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
29011         rather than arglist.
29012         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
29013         CALL_EXPR_ARGS.
29014         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
29015         than TREE_VALUE and TREE_CHAIN.
29016         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
29017         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
29018         the arglist.
29020 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
29022         PR bootstrap/42347
29023         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
29024         to have no fallthru edge.
29026         PR middle-end/44102
29027         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
29028         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
29029         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
29030         add BARRIER after previous bb if needed.
29032 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
29034         * tree.c (build_function_type_list_1): Remove bogus assert condition.
29036 2010-05-17  Alan Modra  <amodra@gmail.com>
29038         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
29039         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
29040         with copy_reg rtx param.
29041         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
29042         Correct cases where code for ABI_V4 did not initialise the reg
29043         used to access frame.  Also leave frame_reg_rtx as sp for large
29044         frames that save no regs.
29046 2010-05-17  Martin Jambor  <mjambor@suse.cz>
29048         PR middle-end/44133
29049         * tree-sra.c (create_access_replacement): New parameter rename, mark
29050         the replaement for renaming only when it is true.
29051         (get_access_replacement): Pass true in the rename parameter of
29052         create_access_replacement.
29053         (get_unrenamed_access_replacement): New function.
29054         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
29055         replacement declaration from it.
29057 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
29059         * function.c (try_fit_stack_local, add_frame_space): New static
29060         functions.
29061         (assign_stack_local_1): Use them.  Look for opportunities to use
29062         space previously wasted on alignment.
29063         * function.h (struct frame_space): New.
29064         (struct rtl_data): Add FRAME_SPACE_LIST member.
29065         * reload1.c (something_was_spilled): New static variable.
29066         (alter_reg): Set it.
29067         (reload): Test it in addition to testing if the frame size changed.
29069 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
29071         * config/s390/s390.c: Define sane prefetch settings and activate
29072         flag_prefetch_loop_arrays on -O3.
29073         * config/s390/s390.h: Declare that read can use write prefetch.
29075 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
29077         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
29078         build.
29080 2010-05-16  Jan Hubicka  <jh@suse.cz>
29082         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
29083         function body; do not check stdarg field of struct function.
29085 2010-05-16  Jan Hubicka  <jh@suse.cz>
29087         * cgraph.c (dump_cgraph_node): Dump versionable flag.
29088         * cgraph.h (cgraph_local_info): Add versionable flag.
29089         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
29090         (ipcp_versionable_function_p): Use it.
29091         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29092         versionable flag.
29094 2010-05-16  Jan Hubicka  <jh@suse.cz>
29096         * cgraph.c (cgraph_clone_node): Take decl argument and insert
29097         clone into hash when it is different from orig.
29098         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
29099         * cgraph.h (cgraph_clone_node): Update prototype.
29100         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
29101         (lto_cgraph_encoder_delete): Delete body map.
29102         (lto_cgraph_encoder_size): Move to header.
29103         (lto_cgraph_encoder_encode_body_p,
29104         lto_set_cgraph_encoder_encode_body): New.
29105         (lto_output_node): Do not take written_decls argument; output clone_of
29106         pointer.
29107         (add_node_to): Add include_body_argument; call
29108         lto_set_cgraph_encoder_encode_body on master of the clone.
29109         (add_references): Update use of add_node_to.
29110         (compute_ltrans_boundary): Likewise.
29111         (output_cgraph): Do not create written_decls bitmap.
29112         (input_node): Take nodes argument; stream in clone_of correctly.
29113         (input_cgraph_1): Update use of input_node.
29114         * lto-streamer-out.c (lto_output): Use encoder info to decide
29115         what bodies to output.
29116         * ipa-inline.c (cgraph_clone_inlined_nodes,
29117         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
29118         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
29119         (lto_cgraph_encoder_size): Define here.
29120         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
29121         Declare.
29123 2010-05-16  Richard Guenther  <rguenther@suse.de>
29125         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
29126         -fipa-type-escape.
29127         * ipa-type-escape.c (gate_type_escape_vars): Run when
29128         -fipa-struct-reorg runs.
29129         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
29130         * common.opt (fipa-type-escape): Remove.
29132 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
29134         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
29135         (decode_options): Likewise.
29136         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
29138 2010-05-16  Jan Hubicka  <jh@suse.cz>
29140         * ipa.c (function_and_variable_visibility): Also bring local all
29141         aliases.
29143 2010-05-16  Richard Guenther  <rguenther@suse.de>
29145         * alias.c (nonoverlapping_memrefs_p): Remove use of
29146         IPA type-escape information.
29148 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
29150         * c-common.c (c_common_reswords): Add _Static_assert for C.
29151         * c-parser.c (c_token_starts_declaration,
29152         c_parser_next_token_starts_declaration,
29153         c_parser_static_assert_declaration_no_semi,
29154         c_parser_static_assert_declaration): New.
29155         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
29156         Handle static assertions if static_assert_ok.
29157         (c_parser_external_declaration, c_parser_declaration_or_fndef,
29158         c_parser_compound_statement_nostart, c_parser_label,
29159         c_parser_for_statement, c_parser_objc_methodprotolist,
29160         c_parser_omp_for_loop): All callers of
29161         c_parser_declaration_or_fndef changed.
29162         (c_parser_struct_declaration): Handle static assertions.
29163         (c_parser_compound_statement_nostart): Use
29164         c_parser_next_token_starts_declaration and
29165         c_token_starts_declaration to detect start of declarations.
29166         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
29167         Likewise.
29169 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
29171         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
29172         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
29173         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
29174         TARGET_FUNCTION_VALUE_REGNO_P): Define.
29175         (mmix_function_outgoing_value): Rename to...
29176         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
29177         (mmix_function_value_regno_p): Make static.
29178         (mmix_libcall_value): New function.
29179         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
29180         mmix_function_value_regno_p): Remove declaration.
29182 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
29184         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
29185         BUILT_IN_ALLOCA if stack checking is enabled.
29187 2010-05-16  Richard Guenther  <rguenther@suse.de>
29189         * var-tracking.c (vars_copy_1): Inline ...
29190         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
29191         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
29192         (variable_merge_over_cur): Adjust.  Merge asserts.
29193         (variable_merge_over_src): Likewise.
29194         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
29195         (variable_post_merge_new_vals): Merge asserts.
29196         (variable_post_merge_perm_vals): Likewise.
29197         (find_mem_expr_in_1pdv): Likewise.
29198         (dataflow_set_different_value): Remove.
29199         (onepart_variable_different_p): Merge asserts.
29200         (variable_different_p): Likewise.
29201         (dataflow_set_different_1): Inline ...
29202         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
29203         (emit_notes_for_differences_1): Merge asserts.
29205 2010-05-16  Richard Guenther  <rguenther@suse.de>
29207         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
29208         * optabs.c (libfunc_decl_hash): Likewise.
29209         * varasm.c (emutls_decl): Likewise.
29211 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
29213         * c-decl.c: Don't include gimple.h.
29214         (merge_decls): Do not copy gimple_body.
29216 2010-05-15  Jason Merrill  <jason@redhat.com>
29218         * c.opt: Add -fnothrow-opt.
29220 2010-05-15  Jan Hubicka  <jh@suse.cz>
29222         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
29223         analyzed.
29224         * passes.c (ipa_write_summaries): Write all analyzed nodes.
29226 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
29228         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
29229         * Makefile.in: Add it.
29230         Fix all other Makefile dependencies for changes below.
29231         * tree.h: Include it instead of defining VEC primitives here.
29232         * gimple.h: Likewise.
29233         * rtl.h: Likewise.
29234         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
29235         * except.h: Include vecir.h, break dependence on tree.h.
29237         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
29238         Move from here...
29239         * tree-iterator.c: ...to here.
29240         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
29242         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
29243         tm_p.h.
29244         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
29245         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
29246         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
29247         tree-mudflap.h, and target.h.
29248         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
29249         predict.h, tree-inline.h, gimple.h, and langhooks.h.
29250         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
29251         Add FIXME for why gimple.h is still included (should be unnecessary
29252         since GCC 4.5 gimplification unit-at-a-time).
29253         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
29254         * c-pragma.c: Add FIXME for why function.h needs to be included just
29255         for cfun, at front-end level.
29256         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
29257         Do not include ggc.h, but include vecprim.h for VEC(char).
29258         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
29259         Explain why target.h is included.
29260         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
29261         Explain why gimple.h is included.
29262         * c-ppoutput.c: Do not include tm.h.
29263         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
29264         * c-parses.c: Explain why rtl.h is included, and that this (and only
29265         this) is also why tm.h must be included.
29266         Do not include except.h.
29267         * c-lang.c: Do not include ggc.h.
29269 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
29271         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
29273 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
29275         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
29276         unions by default if those structs and unions have no tags.  Do
29277         not condition anonymous struct and unions handling on flag_iso.
29278         Allow anonymous structs and unions for C1X.
29279         (finish_struct): Do not diagnose lack of named fields when
29280         anonymous structs and unions present for C1X.  Accept flexible
29281         array members in structure with anonymous structs or unions but no
29282         directly named fields.
29283         * doc/extend.texi (Unnamed Fields): Update.
29285 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
29287         * gimple.h (compare_field_offset): Rename into...
29288         (gimple_compare_field_offset): ...this.
29289         * gimple.c (compare_field_offset): Rename into...
29290         (gimple_compare_field_offset): ...this.  Compare the full access if
29291         the offset is self-referential.
29292         (gimple_types_compatible_p): Adjust for above renaming.
29293         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
29294         DECL_NONADDRESSABLE_P flag of fields before merging them.
29296 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
29298         * tree.h (ctor_to_list): Delete.
29299         * tree.c (ctor_to_list): Delete.
29301 2010-05-15  Jan Hubicka  <jh@suse.cz>
29303         * ipa-reference.c: Include toplev.h
29304         (is_proper_for_analysis): Only add to all_module_statics
29305         if it is allocated.
29306         (write_node_summary_p, stream_out_bitmap,
29307         ipa_reference_write_optimization_summary,
29308         ipa_reference_read_optimization_summary): New.
29309         (struct ipa_opt_pass_d pass_ipa_reference): Add
29310         optimization summary streaming.
29311         * lto-cgraph.c (referenced_from_this_partition_p,
29312         reachable_from_this_partition_p): New functions.
29313         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
29314         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
29315         * opts.c (decode_options): Enable ipa_reference.
29316         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
29317         * lto-streamer.h (referenced_from_this_partition_p,
29318         reachable_from_this_partition_p): Declare.
29320 2010-05-15  Richard Guenther  <rguenther@suse.de>
29322         PR tree-optimization/44038
29323         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
29324         taking the address of a V_C_E of a constant.
29326 2010-05-14  Jan Hubicka  <jh@suse.cz>
29328         * tree.h (memory_identifier_string): Remove.
29329         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
29330         (ipa_reference_global_vars_info_d): Remove statics_not_read and
29331         statics_not_written.
29332         (ipa_reference_optimization_summary_d): New structure.
29333         (ipa_reference_optimization_summary_t): New type and vector.
29334         (ipa_reference_vars_info_d): Embedd structures instead of using
29335         pointers.
29336         (reference_vars_to_consider): Remove out of GGC space.
29337         (module_statics_escape): Remove.
29338         (global_info_obstack): Rename to ...
29339         (optimization_summary_obstack): ... this one.
29340         (initialization_status_t): Remove.
29341         (memory_identifier_string): Remove.
29342         (get_reference_vars_info): Fix indenting.
29343         (set_reference_vars_info): Likewise.
29344         (get_reference_optimization_summary): New.
29345         (set_reference_optimization_summary): New.
29346         (get_global_reference_vars_info): Remove.
29347         (ipa_reference_get_read_global): Remove.
29348         (ipa_reference_get_written_global): Remove.
29349         (ipa_reference_get_not_read_global): Update.
29350         (ipa_reference_get_not_written_global): Update.
29351         (is_proper_for_analysis): Outlaw addressable.
29352         (propagate_bits): Update for new datastructures.
29353         (analyze_variable): Remove.
29354         (init_function_info): Update for new datastructures.
29355         (clean_function_local_data): Remove.
29356         (clean_function): Remove.
29357         (copy_global_bitmap): Use optimizations_summary_obstack.
29358         (duplicate_node_data): Duplicate optimization summary only.
29359         (remove_node_data): Remove optimization summary only.
29360         (generate_summary): Do not analyze variables; do not compute
29361         module_statics_escape; do not prune solutions by it.
29362         (read_write_all_from_decl): Fix typos in comments.
29363         (propagate): Doscover readonly and nonaddressable first;
29364         update for new datastructures; share global bitmaps.
29365         * ipa-reference.h (ipa_reference_get_read_global,
29366         ipa_reference_get_written_global): Remove.
29367         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
29368         * Makefile.in: Remove ipa-refereference from GT files.
29370 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
29372         PR debug/44112
29373         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
29374         for all SYMBOL_REF_DECLs.
29376 2010-05-14  Jan Hubicka  <jh@suse.cz>
29378         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
29379         (varpool_all_refs_explicit_p): New inline function.
29380         * ipa-reference.c: Update comment.
29381         (module_statics_written): Remove.
29382         (get_static_decl): Remove.
29383         (ipa_init): Do not initialize module_statics_written.
29384         (analyze_function): Likewise.
29385         (generate_summary): Likewise; do not compute module_statics_readonly
29386         and do not update variable flags.
29387         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
29388         * ipa.c: Inlucde flags.h
29389         (cgraph_local_node_p): New.
29390         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
29391         promote functions to local.
29392         (ipa_discover_readonly_nonaddressable_vars): New function.
29393         (function_and_variable_visibility): Use cgraph_local_node_p.
29394         * varpool.c (varpool_finalize_decl): Set force_output for
29395         DECL_PRESERVE_P vars.
29397 2010-05-14  Jan Hubicka  <jh@suse.cz>
29399         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
29401 2010-05-14  Richard Guenther  <rguenther@suse.de>
29403         PR tree-optimization/44119
29404         * tree-ssa-pre.c (eliminate): Properly mark replacement of
29405         a PHI node necessary.
29407 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
29409         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
29411 2010-05-14  Jason Merrill  <jason@redhat.com>
29413         PR c++/44127
29414         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
29415         (gimple_call_set_nothrow): New.
29416         * gimple.c (gimple_build_call_from_tree): Call it.
29417         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
29419         PR c++/44127
29420         * gimplify.c (gimplify_seq_add_stmt): No longer static.
29421         * gimple.h: Declare it.
29422         * gimple.c (gimple_build_eh_filter): No ops.
29424 2010-05-14  Jan Hubicka  <jh@suse.cz>
29426         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
29427         nodes already in queue.
29428         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
29429         re-enqueueing node.
29431 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
29433         PR debug/44136
29434         * cfgexpand.c (expand_debug_expr): If non-memory op0
29435         has BLKmode, return NULL.
29437 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
29439         * config.gcc: Add support for --with-cpu option for bdver1.
29440         * config/i386/i386.h (TARGET_BDVER1): New macro.
29441         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
29442         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
29443         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
29444         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
29445         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
29446         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
29447         (processor_type): Add PROCESSOR_BDVER1.
29448         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
29449         processor_type in config/i386/i386.h.
29450         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
29451         movaps <reg, reg> instead of movapd <reg, reg> when replacing
29452         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
29453         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
29454         to emit packed xor instead of packed double/packed integer
29455         xor for SSE and AVX when moving a zero value.
29456         * config/i386/sse.md: Add check for
29457         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
29458         movapd/movdqa for SSE and AVX.
29459         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
29460         single logical operations i.e and, or and xor instead of packed double
29461         logical operations for SSE and AVX.
29462         * config/i386/i386-c.c (ix86_target_macros_internal):
29463         Add PROCESSOR_BDVER1.
29464         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
29465         (has_fma4, has_xop): New.
29466         * config/i386/i386.c (bdver1_cost): New variable.
29467         (m_BDVER1): New macro.
29468         (m_AMD_MULTIPLE): Add m_BDVER1.
29469         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
29470         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
29471         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
29472         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
29473         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
29474         x86_tune_sse_partial_reg_dependency,
29475         x86_tune_sse_unaligned_load_optimal,
29476         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
29477         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
29478         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
29479         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
29480         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
29481         Enable/disable for bdver1.
29482         (processor_target_table): Add bdver1_cost.
29483         (cpu_names): Add bdver1.
29484         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
29485          processor_alias_table.
29486         (ix86_expand_vector_move_misalign): Change.
29487         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
29488         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
29489         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
29490         of movupd/movdqu for SSE and AVX.
29491         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
29492         (ix86_tune_adjust_cost): Add code for bdver1.
29493         (standard_sse_constant_opcode): Add check for
29494         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
29495         of packed double xor for SSE and AVX.
29497 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
29499         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
29500         result to unsigned.
29502 2010-05-14  Tristan Gingold  <gingold@adacore.com>
29504         * toplev.c (default_debug_hooks): Remove this variable.
29505         (process_options): Remove assignments to default_debug_hooks.
29507 2010-05-14  Martin Jambor  <mjambor@suse.cz>
29509         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
29510         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
29511         * langhooks.h (struct lang_hooks_for_decls): Removed field
29512         fold_obj_type_ref.
29513         * tree.c (free_lang_data): Remove assignment to
29514         lang_hooks.fold_obj_type_ref.
29515         * tree.def (OBJ_TYPE_REF): Update comment.
29517 2010-05-14  Richard Guenther  <rguenther@suse.de>
29519         PR tree-optimization/44124
29520         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
29522 2010-05-14  Alan Modra  <amodra@gmail.com>
29524         PR target/44075
29525         * config/rs6000/rs6000.c (struct machine_function): Reorder
29526         fields for better packing.  Add lr_save_state.
29527         (rs6000_ra_ever_killed): Return lr_save_state if set.
29528         (rs6000_emit_eh_reg_restore): Set lr_save_state.
29530 2010-05-13  Jan Hubicka  <jh@suse.cz>
29532         * varpool.c (decide_is_variable_needed): Drop code checking
29533         TREE_SYMBOL_REFERENCED.
29535 2010-05-13  Jan Hubicka  <jh@suse.cz>
29537         * final.c (output_addr_const): Do not call mark_decl_referenced.
29538         * cgraphunit.c (process_function_and_variable_attributes): Use
29539         mark_needed_node dirrectly.
29540         (assemble_thunk): Do not call mark_decl_referenced.
29542 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
29544         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
29546 2010-05-13  Jeff Law  <law@redhat.com>
29548         * ira-conflicts.c (print_allocno_conflicts): New function broken out
29549         from...
29550         (print_conflicts): Call print_allocno_conflicts.
29552 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
29554         PR debug/44104
29555         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
29556         if it is NULL.
29558 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
29560         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
29561         t-mingw-w64 or t-mingw-w32 for multilib configuration.
29562         * config/i386/t-mingw-w32: New.
29563         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
29565 2010-05-13  Martin Jambor  <mjambor@suse.cz>
29567         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
29568         gimple-fold.c).
29569         * gimple-fold.c (get_base_binfo_for_type): New function.
29570         (gimple_get_relevant_ref_binfo): Likewise.
29571         (gimple_fold_obj_type_ref_known_binfo): Likewise.
29572         (gimple_fold_obj_type_ref): Likewise.
29573         (fold_gimple_call): Simplify condition for folding virtual calls
29574         and call gimple_fold_obj_type_ref.
29575         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
29576         (gimple_fold_obj_type_ref_known_binfo): Likewise.
29578 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
29580         * config/rs6000/rs6000-protos.h
29581         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
29582         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
29583         (rs6000_debug_mode_dependent_address)
29584         (rs6000_mode_dependent_address_ptr): Likewise.
29586 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
29588         PR debug/43983
29589         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
29590         by SRA.
29591         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
29592         * tree-sra.c (create_access_replacement): Call unshare_expr before
29593         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
29594         * dwarf2out.c: Include tree-flow.h.
29595         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
29596         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
29597         Handle DW_OP_bit_piece.
29598         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
29599         construct_piece_list, adjust_piece_list): New functions.
29600         (add_var_loc_to_decl): Handle SRA optimized variables.
29601         Adjust for var_loc_note to loc field renaming.
29602         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
29603         in VAR_LOCATION note.
29604         (new_loc_descr_op_bit_piece): New function.
29605         (dw_sra_loc_expr): New function.
29606         (dw_loc_list): Use it.  Don't handle the last range after the
29607         loop, handle it inside of the loop.  Adjust for var_loc_note
29608         to loc field renaming.
29609         (add_location_or_const_value_attribute): Only special case
29610         single entry loc lists if loc is NOTE_P.  Adjust for
29611         var_loc_note to loc field renaming.
29612         (dwarf2out_var_location): Don't set newloc->var_loc_note
29613         and newloc->next here.
29615 2010-05-12  Jan Hubicka  <jh@suse.cz>
29617         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
29618         flag.
29619         * cgraph.h (cgraph_only_called_directly_p,
29620         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
29621         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
29622         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
29623         (assemble
29624         * ipa.c (cgraph_remove_unreachable_nodes): Use
29625         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
29626         flags.
29627         * tree-inline.c (copy_bb): Check address_taken flag.
29628         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
29629         externally_visible flag.
29631 2010-05-12  Jason Merrill  <jason@redhat.com>
29633         PR bootstrap/44048
29634         PR target/44099
29635         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
29636         * sdbout.c (plain_type_1): Likewise.
29637         * dwarf2out.c (is_base_type): Likewise.
29638         (gen_type_die_with_usage): Likewise.  Generate
29639         DW_TAG_unspecified_type for any LANG_TYPE.
29641 2010-05-12  Jan Hubicka  <jh@suse.cz>
29643         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
29644         indrect edges too.
29645         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
29646         (cgraph_clone_edge): Update.
29647         (cgraph_node_remove_callees): Remove indirect calls too.
29648         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
29649         (cgraph_create_indirect_edge): Update prototype.
29650         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
29651         is_proper_for_analysis.
29652         (add_new_function, visited_nodes, function_insertion_hook_holder,
29653         get_local_reference_vars_info, mark_address_taken, mark_address,
29654         mark_load, mark_store, check_asm_memory_clobber, check_call,
29655         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
29656         (ipa_init): Do not initialize visited_nodes;
29657         function_insertion_hook_holder.
29658         (analyze_variable): Rewrite.
29659         (analyze_function): Rewrite.
29660         (copy_local_bitmap): Remove.
29661         (duplicate_node_dat): Do not duplicate local info.
29662         (generate_summary): Simplify to only walk cgraph.
29663         (write_node_summary_p, ipa_reference_write_summary,
29664         ipa_reference_read_summary): Remove.
29665         (propagate): Do not remove function insertion;
29666         generate summary.
29667         (pass_ipa_reference): NULLify summary handling fields.
29668         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
29669         (input_edge): Input ecf_flags.
29670         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
29671         (update_indirect_edges_after_inlining): Ignore edges with unknown
29672         param.
29674 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
29676         * implicit-zee.c: New file.
29677         * tree-pass.h (pass_implicit_zee): Declare.
29678         * passes.c (init_optimization_passes): Add zee pass.
29679         * common.opt (fzee): New flag.
29680         * timevar.def (TV_ZEE): Define.
29681         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
29682         and beyond.
29683         * Makefile.in (implicit-zee.o): Add new build file.
29685 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
29686             Nathan Froyd  <froydnj@codesourcery.com>
29688         * c-common.c (sync_resolve_params): Remove write-only variable.
29690 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
29692         * target.h (struct gcc_target): Add mode_dependent_address_p field.
29693         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
29694         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
29695         * targhooks.c (default_mode_dependent_address_p): New function.
29696         * targhooks.h (default_mode_dependent_address_p): Declare function.
29697         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
29698         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
29699         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
29700         target hook. Change return type to bool.
29701         * recog.h (mode_dependent_address_p): Change return type to bool.
29703 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
29704             Nathan Froyd  <froydnj@codesourcery.com>
29706         * tree-mudflap.c (build_function_type_0, build_function_type_1,
29707         build_function_type_2, build_function_type_3): Remove.
29708         (mudflap_init): Use build_function_type_list.
29710 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
29711             Nathan Froyd  <froydnj@codesourcery.com>
29713         * coverage.c (build_fn_info_value): Call build_constructor instead of
29714         build_constructor_from_list.
29715         (build_ctr_info_value): Likewise.
29716         (build_gcov_info): Likewise.
29718 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
29720         * tree.c (build_constructor): Compute TREE_CONSTANT for the
29721         resultant constructor.
29722         (build_constructor_single): Don't set TREE_CONSTANT.
29723         (build_constructor_from_list): Don't compute TREE_CONSTANT.
29725 2010-05-12  Jan Hubicka  <jh@suse.cz>
29727         * cgraph.h (struct varpool_node): Add aux.
29728         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
29729         * varpool.c (varpool_remove_node): Do not remove initializer.
29730         (varpool_reset_queue): Export.
29731         (varpool_finalize_decl): Volatile vars are forced to be output.
29732         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
29733         replaced decl.
29734         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
29735         process_references, varpool_can_remove_if_no_refs): New functions.
29736         (cgraph_remove_unreachable_nodes): Handle variables too.
29738 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
29740         PR target/44088
29741         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
29743 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
29745         PR middle-end/44085
29746         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
29747         change value of ORT_TASK.
29748         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
29749         (omp_notice_threadprivate_variable): New function.
29750         (omp_notice_variable): Call it for threadprivate variables.
29751         If enclosing ctx is a task, print enclosing task rather than
29752         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
29753         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
29754         if task has untied clause.
29756         PR debug/42278
29757         * dwarf2out.c (base_type_die): Don't add name attribute here.
29758         (modified_type_die): Instead of sizetype use
29759         its underlying original type.  If a DW_TAG_base_type doesn't
29760         have name added, add __unknown__.
29761         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
29762         always call force_type_die instead.
29764 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
29766         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
29767         for __stack_chk_guard.
29769 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
29771         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
29772         don't call start_source_file debug hook here...
29773         (finish_options): ... but here, after outputting predefined and
29774         command line defines and undefs.
29776         PR middle-end/44071
29777         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
29778         no fallthru edge.
29779         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
29780         optimizing away empty bb with no successors, move over its
29781         footer chain to fallthru predecessor.
29782         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
29783         (rtl_split_edge): For asm goto call patch_jump_insn even if
29784         splitting fallthru edge.
29786         PR c++/44059
29787         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
29788         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
29789         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
29790         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
29791         on DW.ref.* decls.
29793         PR c++/44062
29794         * c-parser.c (c_parser_expression): Mark LHS of a comma
29795         expression as read if it is a decl, handled component or
29796         COMPOUND_EXPR with that on the RHS.
29797         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
29798         if it is a decl or handled component.
29800 2010-05-11  Jan Hubicka  <jh@suse.cz>
29802         * lto-symtab.c (lto_symtab_free): New function.
29803         * lto-streamer.h (lto_symtab_free): Declare.
29805 2010-05-11  Jan Hubicka  <jh@suse.cz>
29807         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
29808         that if function is needed it is reachable.
29809         (lto_output_node): See if it the function is reachable or referenced.
29810         (output_cgraph): Update call of lto_output_node.
29811         * lto-streamer.h (reachable_from_other_partition_p): Declare.
29813 2010-05-11  Jan Hubicka  <jh@suse.cz>
29815         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
29816         Mark as used.
29818 2010-05-11  Jan Hubicka  <jh@suse.cz>
29820         PR tree-optimize/44063
29821         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
29822         queue.
29823         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
29824         limits.
29825         (estimate_function_body_sizes): Compute sizes even when disregarding.
29827 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
29829         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
29831 2010-05-11  Jan Hubicka  <jh@suse.cz>
29833         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
29834         into every boundary.
29836 2010-05-11  Jan Hubicka  <jh@suse.cz>
29838         * matrix-reorg.c (matrix_reorg): Rebuild edges.
29840 2010-05-11  Jan Hubicka  <jh@suse.cz>
29842         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
29843         lto_streamer_cache_delete): Put nodes into heap.
29844         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
29845         heap.
29847 2010-05-11  Jan Hubicka  <jh@suse.cz>
29849         * cgraphbuild.c (cgraph_rebuild_references): New.
29850         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
29851         out extern inlines.
29852         * cgraph.h (cgraph_rebuild_references): Declare.
29853         * tree-inline.c (tree_function_versioning): Use it.
29854         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
29856 2010-05-11  Jan Hubicka  <jh@suse.cz>
29858         * cgraph.c: Include ipa-utils.h
29859         (cgraph_create_virtual_clone): Update references.
29860         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
29862 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
29864         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
29865         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
29866         cache size.
29868 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
29870         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
29872 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
29874         * gcc.c (execute): For -### don't quote arguments that
29875         contain just alphanumerics and _/-. characters.
29876         * doc/invoke.texi: Document that change for -###.
29878         PR debug/44023
29879         * df-problems.c (struct dead_debug): Add to_rescan field.
29880         (dead_debug_init): Clear to_rescan field.
29881         (dead_debug_finish): Rescan all debug insns in to_rescan
29882         bitmap and free the bitmap.
29883         (dead_debug_insert_before): Instead of rescanning debug insns
29884         immediately queue their rescanning until dead_debug_finish.
29885         (df_note_bb_compute): After dead_debug_add do continue instead
29886         of break.
29888 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
29890         PR debug/44028
29891         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
29892         clear also INSN_REG_USE_LIST.
29894 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29896         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
29898 2010-05-10  Jan Hubicka  <jh@suse.cz>
29900         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
29901         commited change.
29903 2010-05-10  Jan Hubicka  <jh@suse.cz>
29905         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
29906         Allocate encoders.
29907         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
29908         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
29909         (lto_streamer_cache_create): Init alloc pool.
29910         (lto_streamer_cache_delete): Free alloc pool.
29911         * lto-streamer.h: Include alloc pool.
29912         (lto_streamer_cache_d): Use alloc pool.
29913         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
29915 2010-05-10  Jan Hubicka  <jh@suse.cz>
29917         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
29918         * cgraphbuild.c: Include except.h
29919         (record_type_list, record_eh_tables): New function.
29920         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
29922 2010-05-10  Jan Hubicka  <jh@suse.cz>
29924         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
29925         __frame_dummy_init_array_entry, force_to_data): Attribute as used
29926         rather than unused.
29928 2010-05-10  Michael Matz  <matz@suse.de>
29930         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
29931         (can_reassociate_p): Use FLOAT_TYPE_P.
29932         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
29933         (vect_force_simple_reduction): ... this.
29934         * tree-parloops.c (gather_scalar_reductions): Use
29935         vect_force_simple_reduction.
29936         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
29937         vect_is_simple_reduction, add modify argument, if true rewrite
29938         "a-b" into "a+(-b)".
29939         (vect_is_simple_reduction, vect_force_simple_reduction): New
29940         functions.
29941         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
29943 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
29944             Vladimir Makarov  <vmakarov@redhat.com>
29946         PR rtl-optimization/44012
29947         * ira-build.c (remove_unnecessary_allocnos): Nullify
29948         regno_allocno_map of the removed allocno.
29950 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29952         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
29953         to /dev/null.
29954         * configure: Regenerate.
29956 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29958         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
29959         unused.
29960         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
29961         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
29962         support in Sun ld.
29963         * configure: Regenerate.
29965 2010-05-10  Richard Guenther  <rguenther@suse.de>
29967         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
29968         marked if the entry identifier is marked.
29970 2010-05-10  Richard Guenther  <rguenther@suse.de>
29972         * c-common.c (struct c_common_attributes): Add fnspec attribute.
29973         (handle_fnspec_attribute): New function.
29974         * gimple.h (gimple_call_return_flags): Declare.
29975         (gimple_call_arg_flags): Likewise.
29976         * gimple.c (gimple_call_arg_flags): New function.
29977         (gimple_call_return_flags): Likewise.
29978         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
29979         New argument flags.
29980         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
29981         return value flags.
29982         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
29983         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
29984         main work to ...
29985         (make_heapvar_for): ... this new function.
29986         (handle_rhs_call): Handle fnspec attribute argument specifiers.
29987         (handle_lhs_call): Likewise.
29988         (find_func_aliases): Adjust.
29990 2010-05-10  Richard Guenther  <rguenther@suse.de>
29992         PR tree-optimization/44050
29993         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
29995 2010-05-10  Wei Guozhi  <carrot@google.com>
29997         PR target/42879
29998         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
30000 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
30002         PR c/10676
30003         * c-typeck.c (lookup_field): Take a type directly.  Update
30004         recursive calls.
30005         (build_component_ref): Update call to lookup_field.
30006         (set_init_label): Use lookup_field to find initialized field.
30007         Handle returned list of fields like a sequence of designators.
30009 2010-05-09  Richard Guenther  <rguenther@suse.de>
30011         PR middle-end/44024
30012         * fold-const.c (tree_single_nonzero_warnv_p): Properly
30013         handle &FUNCTION_DECL.
30015 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
30017         PR c/4784
30018         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
30019         structures and unions recursively.
30020         (detect_field_duplicates): Move duplicate detection with a hash to
30021         detect_field_duplicates_hash.  Always use a hash if anonymous
30022         structures or unions are present.
30023         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
30024         give errors.
30026 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
30028         PR target/44046
30029         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
30030         detect Atom, Core 2 and Core i7.
30032 2010-05-09  Richard Guenther  <rguenther@suse.de>
30034         * gcc.c (store_arg): Handle temporary file deletion for
30035         joined arguments.
30037 2010-05-09  Richard Guenther  <rguenther@suse.de>
30039         PR middle-end/44043
30040         * ipa-inline.c (estimate_function_body_sizes): Return after
30041         disregarding inline limits.
30043 2010-05-09  Richard Guenther  <rguenther@suse.de>
30045         * gcc.c (store_arg): Revert last change.
30047 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
30049         PR middle-end/28685
30050         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
30051         (optimize_ops_list): Call it.
30053 2010-05-08  Richard Guenther  <rguenther@suse.de>
30055         PR tree-optimization/44030
30056         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
30057         NECESSARY flag if we propagate from a inserted expression.
30059 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
30061         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
30062         domain types as equal if they are both PLACEHOLDER_EXPRs.
30064 2010-05-08  Richard Guenther  <rguenther@suse.de>
30066         * lto-wrapper.c (run_gcc): Remove linker output from
30067         command line for LTRANS invocation.
30069 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
30071         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
30072         lto-macho as lto_binary_reader.
30073         * target.h (struct gcc_target): New hooks lto_start and lto_end.
30074         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
30075         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
30076         in lto_start and lto_end calls.
30077         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
30078         magic numbers.
30079         (scan_prog_file): Update is_elf_or_coff call.
30080         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
30082         * collect2.c (main): Fix enum comparison.
30084         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
30085         Add prototypes.
30086         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
30087         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
30088         and TARGET_ASM_LTO_END.
30089         * darwin.c: Include obstack.h and lto-streamer.h.
30090         (lto_section_names_offset, lto_section_names_obstack,
30091         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
30092         global variables.
30093         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
30094         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
30095         to a temporary file.
30096         (darwin_asm_lto_end): New function.  Restore asm_out_file.
30097         (darwin_asm_named_section): For LTO sections, replace the name with
30098         the offset of the section name in a string table, and build this
30099         table.
30100         (darwin_file_start): Initialize global vars for LTO support.
30101         (darwin_file_end): If output to asm_out_file was redirected, append it
30102         to the proper asm_out_file here.  Add the section names section.
30104 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
30106         * c-pragma.c (pending_weak_d, pending_weak): New.
30107         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
30108         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
30109         handle_pragma_weak): Update the uses of pending_weaks.
30111 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30113         PR documentation/44016
30114         * doc/standards.texi (Standards): Link to unversioned
30115         cxx0x_status.html page.
30117 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
30119         PR target/43708
30120         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
30121         in addition to TREE_USED, to avoid "set but unused" warnings.
30123 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
30125         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
30126         (is_loop_prefetching_profitable): Do not insert prefetches
30127         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
30128         times the prefetch ahead distance.
30130 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
30132         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
30133         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
30134         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
30135         the unroll_factor.
30137 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
30139         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
30140         a diagnostic info when the insn-to-mem ratio is too small.
30142 2010-05-07  Richard Guenther  <rguenther@suse.de>
30144         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
30145         the linker plugin.
30146         (store_arg): Queue temp_filename for deletion instead of
30147         the whole argument.
30149 2010-05-07  Richard Guenther  <rguenther@suse.de>
30151         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
30152         (run_gcc): Handle LTRANS phase invocation.
30153         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
30155 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
30157         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
30158         this is also meaningful on PARM_DECLs and RESULT_DECLs.
30160 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30162         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
30164 2010-05-07  Richard Guenther  <rguenther@suse.de>
30166         PR tree-optimization/44020
30167         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
30168         code when PRE is not yet initialized.
30170 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30172         * config/mips/dbxmdebug.h: Remove.
30173         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
30175 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
30177         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
30178         with null pointer and also warn about ordered comparison of zero with
30179         pointer if -Wextra.
30181 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
30183         * graphite-blocking.c
30184         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
30185         * graphite-clast-to-gimple.c
30186         (clast_to_gcc_expression): Same.
30187         (precision_for_value): Same.
30188         (precision_for_interval): Same.
30189         (gcc_type_for_interval): Same.
30190         (graphite_create_new_guard): Same.
30191         (compute_bounds_for_level): Same.
30192         (graphite_create_new_loop_guard): Same.
30193         * graphite-interchange.c
30194         (build_linearized_memory_access): Same.
30195         (pdr_stride_in_loop): Same.
30196         (memory_strides_in_loop_1): Same.
30197         (memory_strides_in_loop): Same.
30198         (extend_scattering): Same.
30199         (psct_scattering_dim_for_loop_depth): Same.
30200         (pbb_number_of_iterations): Same.
30201         * graphite-poly.h
30202         (debug_iteration_domains): Same.
30203         * graphite-ppl.c
30204         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
30205         (ppl_set_inhomogeneous_gmp): Same.
30206         (ppl_strip_loop): Same.
30207         (ppl_lexico_compare_linear_expressions): Same.
30208         (ppl_read_polyhedron_matrix): Same.
30209         (ppl_max_for_le_pointset): Same.
30210         * graphite-ppl.h
30211         (ppl_read_polyhedron_matrix): Same.
30212         (tree_int_to_gmp): Same.
30213         (gmp_cst_to_tree): Same.
30214         (ppl_set_inhomogeneous): Same.
30215         (ppl_set_inhomogeneous_tree): Same.
30216         (ppl_set_coef): Same.
30217         (ppl_set_coef_tree): Same.
30218         * graphite-sese-to-poly.c
30219         (build_pbb_scattering_polyhedrons): Same.
30220         (build_scop_scattering): Same.
30221         (scan_tree_for_params_right_scev): Same.
30222         (scan_tree_for_params): Same.
30223         (find_params_in_bb): Same.
30224         (find_scop_parameters): Same.
30225         (add_upper_bounds_from_estimated_nit): Same.
30226         (build_loop_iteration_domains): Same.
30227         (add_condition_to_domain): Same.
30228         (pdr_add_memory_accesses): Same.
30230 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
30232         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
30233         CLooG's value_* macros to their respective mpz_* counterparts.
30234         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
30235         (graphite_create_new_loop_guard): Same.
30236         * graphite-interchange.c (build_linearized_memory_access): Same.
30237         (pdr_stride_in_loop): Same.
30238         (memory_strides_in_loop_1): Same.
30239         (1st_interchange_profitable_p): Same.
30240         * graphite-poly.c (extend_scattering): Same.
30241         (psct_scattering_dim_for_loop_depth): Same.
30242         (pbb_number_of_iterations): Same.
30243         (pbb_number_of_iterations_at_time): Same.
30244         * graphite-poly.h (new_1st_loop): Same.
30245         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
30246         (oppose_constraint): Same.
30247         (insert_constraint_into_matrix): Same.
30248         (ppl_set_inhomogeneous_gmp): Same.
30249         (ppl_set_coef_gmp): Same.
30250         (ppl_strip_loop): Same.
30251         (ppl_lexico_compare_linear_expressions): Same.
30252         (ppl_max_for_le_pointset): Same.
30253         (ppl_min_for_le_pointset): Same.
30254         (ppl_build_realtion): Same.
30255         * graphite-ppl.h (gmp_cst_to_tree): Same.
30256         (ppl_set_inhomogeneous): Same.
30257         (ppl_set_inhomogeneous_tree): Same.
30258         (ppl_set_coef): Same.
30259         (ppl_set_coef_tree): Same.
30260         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
30261         (build_scop_scattering): Same.
30262         (add_value_to_dim): Same.
30263         (scan_tree_for_params_right_scev): Same.
30264         (scan_tree_for_params_int): Same.
30265         (scan_tree_for_params): Same.
30266         (find_params_in_bb): Same.
30267         (find_scop_parameters): Same.
30268         (add_upper_bounds_from_estimated_nit): Same.
30269         (build_loop_iteration_domains): Same.
30270         (create_linear_expr_from_tree): Same.
30271         (add_condition_to_domain): Same.
30272         (pdr_add_memory_accesses): Same.
30274 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
30275             Jason Merrill  <jason@redhat.com>
30277         * c-common.c (c_common_reswords): Add nullptr.
30278         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
30279         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
30280         (gen_type_die_with_usage): Likewise.
30281         * dbxout.c (dbxout_type): Likewise.
30282         * sdbout.c (plain_type_1): Likewise.
30284 2010-05-06  Jason Merrill  <jason@redhat.com>
30286         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
30287         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
30288         ret appropriately.
30289         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
30291         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
30292         stripping WITH_SIZE_EXPR.
30293         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
30294         change.
30296 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30298         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
30299         list of obsolete configurations.
30300         Disabled check for obsolete configurations.
30301         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
30302         Removed support for previous versions.
30303         * config/mips/iris.h: Removed.
30304         * config/mips/iris5.h: Removed.
30305         * config/mips/iris6.h: Merged old iris.h contents.
30306         (TARGET_IRIX): Removed.
30307         (DRIVER_SELF_SPECS): Removed mabi=32.
30308         (IDENT_ASM_OP): Removed undef.
30309         (STARTFILE_SPEC): Removed mabi=32.
30310         (ENDFILE_SPEC): Likewise.
30311         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
30312         (MACHINE_TYPE): Update for IRIX 6.5.
30313         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
30314         TARGET_IRIX by TARGET_IRIX6.
30315         (mips_file_start): Likewise.
30316         (mips_output_external): Remove IRIX 5/6 O32 support.
30317         (mips_output_function_prologue): Likewise.
30318         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
30319         TARGET_IRIX6.
30320         (TARGET_CPU_CPP_BUILTINS): Likewise.
30321         (TARGET_IRIX): Removed.
30322         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
30323         (MULTILIB_DIRNAMES): Removed 32.
30324         (MULTILIB_OSDIRNAMES): Removed ../lib.
30325         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
30326         (Specific, mips-sgi-irix5): Document removal.
30327         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
30328         Remove references to older IRIX 6 releases and the O32 ABI.
30330 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
30332         PR bootstrap/43994
30333         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
30334         instead of DF_REF_REAL_REG.
30336 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
30338         PR target/43888
30339         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
30340         handling to still return true for x64 targets.
30342 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
30344         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
30346 2010-05-06  Jan Hubicka  <jh@suse.cz>
30348         PR tree-optimization/43791
30349         * ipa-inline.c (update_caller_keys): Remove bogus
30350         disregard_inline_limits check.
30352 2010-05-06  Michael Matz  <matz@suse.de>
30354         PR tree-optimization/43984
30355         * tree-ssa-pre.c (inserted_phi_names): Remove.
30356         (inserted_exprs): Change to bitmap.
30357         (create_expression_by_pieces): Set bits, don't append to vector.
30358         (insert_into_preds_of_block): Don't handle inserted_phi_names.
30359         (eliminate): Don't look at inserted_phi_names, remove deleted
30360         insns from inserted_exprs.
30361         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
30362         (init_pre, fini_pre): Allocate and free bitmaps.
30363         (execute_pre): Insert insns on edges before elimination.
30365 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
30367         * tree.c (initializer_zerop): Handle STRING_CST.
30369 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30371         PR 40989
30372         * doc/invoke.texi (Wimplicit): Document as C only.
30373         * opts.c (common_handle_option): Add argument kind.
30374         (handle_option): Rename as read_cmdline_option. Factor out code to...
30375         (handle_option): ... here. New.
30376         (handle_options): Rename as read_cmdline_options.
30377         (decode_options): Update call.
30378         (set_option): Use option index instead of option pointer. Classify
30379         diagnostics correctly.
30380         (enable_warning_as_error): Call handle_option.
30381         * opts.h (set_option): Update declaration.
30382         (handle_option): Declare.
30383         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
30384         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
30385         * c-opts.c (set_Wimplicit): Delete.
30386         (c_family_lang_mask): New static constant.
30387         (c_common_handle_option): Add argument kind. Use handle_option
30388         instead of set_Wimplicit.
30389         (c_common_post_options): warn_implicit and warn_implicit_int
30390         are disabled by default.
30391         * c-common.c (warn_implicit): Do not define here.
30392         * c-common.h (warn_implicit): Do not declare here.
30393         (c_common_handle_option): Update declaration.
30394         * lto-opts.c (lto_reissue_options): Update call to set_option.
30396 2010-05-06  Richard Guenther  <rguenther@suse.de>
30398         PR tree-optimization/43571
30399         * domwalk.c (walk_dominator_tree): Walk the dominator
30400         sons in more optimal order.
30402 2010-05-06  Richard Guenther  <rguenther@suse.de>
30404         PR tree-optimization/43934
30405         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
30406         (stmt_cost): Likewise.
30407         (extract_true_false_args_from_phi): New helper.
30408         (determine_max_movement): For PHI nodes verify we can hoist them
30409         and compute their cost.
30410         (determine_invariantness_stmt): Handle PHI nodes.
30411         (move_computations_stmt): Likewise.  Hoist PHI nodes in
30412         if-converted form using COND_EXPRs.
30413         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
30414         (tree_ssa_lim): Likewise.
30415         * tree-flow.h (tree_ssa_lim): Adjust prototype.
30416         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
30418 2010-05-06  Richard Guenther  <rguenther@suse.de>
30420         PR tree-optimization/43987
30421         * tree-ssa-structalias.c (could_have_pointers): For possibly
30422         address-taken variables force pointers to be recorded.
30423         (create_variable_info_for_1): Likewise.
30424         (push_fields_onto_fieldstack): Pass in wheter all fields
30425         must have pointers.
30426         (find_func_aliases): Query types instead of vars whether
30427         they contain pointers where appropriate.
30429 2010-05-06  Jan Hubicka  <jh@suse.cz>
30431         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
30432         (record_reference, mark_address, mark_load, mark_store): Record
30433         references.
30434         (record_references_in_initializer): Update call of record_references.
30435         (rebuild_cgraph_edges): Remove all references before rebuiding.
30436         * cgraph.c (cgraph_create_node): Clear ref list.
30437         (cgraph_remove_node): Remove references.
30438         (dump_cgraph_node): Dump references.
30439         (cgraph_clone_node): Clone references.
30440         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
30441         (struct cgraph_node, varpool_node): Add ref_lst.
30442         * ipa-ref.c: New file.
30443         * ipa-ref.h: New file.
30444         * ipa-ref-inline.h: New file.
30445         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
30446         (referenced_from_other_partition_p): New function.
30447         (lto_output_varpool_node): Take set arugment; call
30448         referenced_from_other_partition.
30449         (lto_output_ref): New.
30450         (add_references): New.
30451         (output_refs): New.
30452         (output_cgraph): Compute boundary based on references; output refs.
30453         (output_varpool): Accept cgraph_node_set argument.
30454         (input_ref): New.
30455         (input_refs): New.
30456         (input_cgraph): Call input_refs.
30457         * lto-section-in.c (lto_section_name): Add refs.
30458         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
30459         (ipa-ref.o): New file.
30460         * varpool.c (varpool_node): Clear ipa ref list.
30461         (varpool_remove_node): Remove references.
30462         (dump_varpool_node): Dump references.
30463         (varpool_assemble_decl): Only compile finalized ones.
30464         (varpool_extra_name_alias): Initialize ref list.
30465         * lto-streamer.c (lto-get_section_name): Add .refs section.
30466         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
30467         (referenced_from_other_partition_p): Declared.
30469 2010-05-06  Ira Rosen  <irar@il.ibm.com>
30471         PR tree-optimization/43901
30472         * tree-vect-stmts.c (vectorizable_call): Assert that vector
30473         type is not NULL if it's transformation phase, and return
30474         FALSE if it's analysis.
30475         (vectorizable_conversion, vectorizable_operation,
30476         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
30478 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
30480         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
30481         Delete.
30482         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
30483         New define.
30484         * config/mips/mips-protos.h
30485         (mips_small_register_classes_for_mode_p): Delete prototype.
30487 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
30489         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
30490         * config/arm/arm.c (multiple_operation_profitable_p,
30491         compute_offset_order): New static functions.
30492         (load_multiple_sequence, store_multiple_sequence): Use them.
30493         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
30494         memory offsets, not register numbers.
30495         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
30497 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
30499         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
30500         (get_pending_sizes, put_pending_size, put_pending_sizes):
30501         Update the uses of pending_sizes.
30502         * c-decl.c (store_parm_decls): Likewise.
30503         * c-tree.h (struct c_arg_info): Likewise.
30504         * tree.h: Update the prototype for get_pending_sizes and
30505         put_pending_sizes.
30507 2010-05-05  Jason Merrill  <jason@redhat.com>
30509         PR debug/43370
30510         * c-common.c (handle_aligned_attribute): Respect
30511         ATTR_FLAG_TYPE_IN_PLACE.
30513         PR testsuite/43758
30514         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
30515         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
30516         (TARGET_INITIALIZER): Use it.
30517         * c-common.c (attribute_takes_identifier_p): Call it.
30518         * c-common.h: Update prototype.
30519         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
30520         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
30522 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
30524         PR debug/43950
30525         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
30526         DW_ID_down_case for Fortran compilation units.
30528 2010-05-05  Jan Hubicka  <jh@suse.cz>
30530         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
30531         handle aliases.
30533 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
30535         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
30536         a variable-sized RESULT_DECL.
30538 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
30540         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
30542 2010-05-05  Jason Merrill  <jason@redhat.com>
30544         PR c++/43787
30545         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
30546         returns GS_OK.
30547         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
30549 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
30550             Jakub Jelinek  <jakub@redhat.com>
30552         PR debug/43478
30553         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
30554         (dead_debug_init, dead_debug_finish): New functions.
30555         (dead_debug_add, dead_debug_insert_before): Likewise.
30556         (df_note_bb_compute): Initialize a dead_debug object, add dead
30557         debug uses to it, insert debug bind insns before death insns,
30558         reset debug insns that refer to pending uses at the end.
30559         * rtl.h (make_debug_expr_from_rtl): New prototype.
30560         * varasm.c (make_debug_expr_from_rtl): New function.
30562 2010-05-05  Jan Hubicka  <jh@suse.cz>
30564         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
30565         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
30566         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
30567         lto_varpool_encoder_deref, lto_varpool_encoder_size,
30568         lto_varpool_encoder_encode_initializer_p,
30569         lto_set_varpool_encoder_encode_initializer): New functions.
30570         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
30571         call output_varpool.
30572         (input_varpool_node): Do not always set analyzed.
30573         (input_cgraph_1): Return vector of cgraph nodes.
30574         (input_varpool_1): Return vector of varpools.
30575         (input_cgraph): Free the vectors.
30576         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
30577         output only initializers needed.
30578         (lto_output): Only call output_cgraph.
30579         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
30580         * lto-section-out.c (lto_new_out_decl_state): Initialize
30581         state->varpool_node_encoder.
30582         * lto-streamer.h (lto_varpool_encoder_d): New.
30583         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
30584         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
30585         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
30586         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
30587         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
30588         Declare.
30589         (output_varpool, input_varpool): Remove declarations.
30591 2010-05-05  Jan Hubicka  <jh@suse.cz>
30593         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
30594         with body can prevail.
30596 2010-05-05  Jan Hubicka  <jh@suse.cz>
30598         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
30599         size.
30601 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
30603         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
30605         * gengtype.h (erro_at_line): Constify pos argument.
30607         * gengtype.c: Include hashtab.h.
30608         (enum gc_used): Document GC_MAYBE_POINTED_TO.
30609         (error_at_line): Constify pos argument.
30610         (do_typedef): Initialize p->opt field.
30611         (get_file_gtfilename): Fix comment typo.
30612         (struct walk_type_data): Constify line field.
30613         (get_output_file_for_structure): New function.
30614         (write_local_func_for_structure): Constify orig_s argument.
30615         Use get_output_file_for_structure.
30616         (write_func_for_structure): Use get_output_file_for_structure.
30617         (INDENT): New define.
30618         (dump_pair, dump_type, dump_type_list, dump_typekind)
30619         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
30620         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
30621         functions.
30622         (seen_types): New variable.
30623         (main): New variable do_dump.  Process "-d" command line option.
30624         Call dump_everything if dump requested.
30626 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
30628         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
30629         in a temporary instead of invoking the macro multiple times.
30630         (track_expr_p): Likewise.
30632 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
30634         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
30635         per new semantics.
30636         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
30637         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
30638         conditions for printing notes.
30639         * common.opt (-Wcoverage-mismatch): Allow negative, default to
30640         true, update documentation.
30641         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
30643 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
30645         PR c/43981
30646         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
30647         on dimen.
30649 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
30651         PR target/43799
30652         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
30653         (*sse_prologue_save_insn1): Likewise.
30654         (SSE prologue save splitter): Likewise.
30656 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
30658         * tree.c (free_lang_data_in_one_sizepos): New inline function.
30659         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
30660         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
30661         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
30662         all decls.  Call it on DECL_FIELD_OFFSET of fields.
30663         (find_decls_types_r): Follow DECL_VALUE_EXPR.
30664         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
30666 2010-05-04  Martin Jambor  <mjambor@suse.cz>
30668         * tree-sra.c (build_access_from_expr_1): The first parameter type
30669         changed to simple tree.
30670         (build_access_from_expr): Likewise, gsi parameter was eliminated.
30671         (scan_assign_result): Renamed to assignment_mod_result, enum elements
30672         renamed as well.
30673         (build_accesses_from_assign): Removed all parameters except for a
30674         simple gimple statement.  Now returns a simple bool.
30675         (scan_function): All non-analysis parts moved to separate functions
30676         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
30677         parameters and updated both callers.
30678         (sra_modify_expr): Removed parameter data.
30679         (sra_modify_function_body): New function.
30680         (perform_intra_sra): Call sra_modify_function_body to modify the
30681         function body.
30682         (replace_removed_params_ssa_names): Parameter data changed into
30683         adjustments vector.
30684         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
30685         changed the parameter dont_convert to convert with the opposite
30686         meaning.
30687         (sra_ipa_modify_assign): Parameter data changed into adjustments
30688         vector, return value changed to bool.
30689         (ipa_sra_modify_function_body): New function.
30690         (sra_ipa_reset_debug_stmts): Updated a comment.
30691         (modify_function): Use ipa_sra_modify_function_body to modify function
30692         body.
30694 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
30696         PR middle-end/43671
30697         * alias.c (true_dependence): Handle the same VALUE in x and mem.
30698         (canon_true_dependence): Likewise.
30699         (write_dependence_p): Likewise.
30701 2010-05-04  Jan Hubicka  <jh@suse.cz>
30703         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
30704         * cgraphbuild.c: Include ipa-utils.h
30705         (record_reference_ctx): New struct.
30706         (record_reference): Simplify to work on initializers; not statements.
30707         (mark_address, mark_load, mark_store): New.
30708         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
30709         walk PHI nodes too.
30710         (record_references_in_initializer): Update use of record_reference.
30711         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
30712         walk PHI nodes too.
30714 2010-05-04  Jan Hubicka  <jh@suse.cz>
30716         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
30717         node will be removed anyway.
30718         (lto_varpool_replace_node): Allow also unanalyzed nodes;
30719         relink aliases of node into prevailing node.
30720         * varpool.c (varpool_remove_node): Remove aliases properly;
30721         when removing node, remove all its aliases too; remove DECL_INITIAL
30722         of removed node; ggc_free the varpool node.
30724 2010-05-04  Richard Guenther  <rguenther@suse.de>
30726         PR tree-optimization/43879
30727         * tree-ssa-structalias.c (alias_get_name): Use
30728         DECL_ASSEMBLER_NAME if available.
30729         (create_function_info_for): Return the varinfo node.
30730         (ipa_pta_execute): Associate same-body aliases and extra names
30731         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
30733 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
30735         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
30737 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
30739         PR bootstrap/43964
30740         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
30741         only if HONOR_REG_ALLOC_ORDER is not defined.
30743 2010-05-04  Richard Guenther  <rguenther@suse.de>
30745         PR tree-optimization/43949
30746         * tree-vrp.c (extract_range_from_binary_expr): Only handle
30747         TRUNC_MOD_EXPR.
30749 2010-04-26  Jason Merrill  <jason@redhat.com>
30751         * c.opt (-fstrict-enums): New.
30752         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
30754 2010-05-03  David Ung  <davidu@mips.com>
30755             James E. Wilson  <wilson@codesourcery.com>
30757         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
30758         emit the trap instruction before the divide for TUNE_74K.
30760 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
30762         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
30763         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
30764         based on the above, for new target hook.
30766         * hooks.c (hook_bool_mode_true): New generic hook.
30767         * hooks.h (hook_bool_mode_true): Add prototype.
30769         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
30770         target hook.
30771         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
30772         target hook, set to hook_bool_mode_false.
30773         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
30774         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
30775         with targetm.small_register_classes_for_mode_p.
30776         (find_reusable_reload): Likewise.
30777         (combine_reloads): Likewise.
30778         * reload1.c (reload_as_needed): Likewise.
30779         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
30780         * ifcvt.c (noce_process_if_block, check_cond_move_block,
30781         dead_or_predicable): Likewise.
30782         * regmove.c (optimize_reg_copy_1): Likewise.
30783         * calls.c (prepare_call_address): Likewise.
30784         (precompute_register_parameters): Likewise.
30786         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
30787         hook definition.
30788         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
30789         implementation of the hook that considers all register classes
30790         small except for SH64.
30791         (sh_override_options): Use the new hook.
30792         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
30793         Add prototype.
30795         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
30796         hook definition.
30797         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
30798         implementation of the hook that considers all register classes
30799         small for THUMB1.
30800         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
30801         Add prototype.
30803         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
30804         hook definition.
30805         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
30806         implementation of the hook that considers all register classes
30807         small for MIPS16.
30808         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
30809         Add prototype.
30811         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
30812         hook definition.
30813         * config/m32c/m32c.h: Likewise.
30814         * config/pdp11/pdp11.h: Likewise.
30815         * config/avr/avr.h: Likewise.
30816         * config/xtensa/xtensa.h: Likewise.
30817         * config/m68hc11/m68hc11.h: Likewise.
30818         * config/mn10300/mn10300.h: Likewise.
30819         * config/mcore/mcore.h: Likewise.
30820         * config/h8300/h8300.h: Likewise.
30821         * config/bfin/bfin.h: Likewise.
30823         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
30824         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
30826 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
30828         * double-int.h (tree_to_double_int): Remove macro.
30829         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
30830         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
30831         (tree_to_double_int): New function.
30832         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
30833         Move ...
30834         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
30836 2010-05-03  Richard Guenther  <rguenther@suse.de>
30838         PR tree-optimization/43971
30839         * tree-ssa-structalias.c (get_constraint_for_1): Fix
30840         constraints in the !flag_delete_null_pointer_checks case.
30842 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
30844         PR debug/43972
30845         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
30846         result mode matches original rtl mode.
30848 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
30850         PR target/43888
30851         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
30853 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30855         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
30856         when processing flag options.
30858 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30860         * gcov-iov.c (main): Change format string placeholder
30861         from %#08x to 0x%08x.
30862         * genchecksum.c (dosum): Change format string placeholder
30863         from %#02x to 0x%02x.
30865 2010-05-02  Richard Guenther  <rguenther@suse.de>
30867         PR tree-optimization/43879
30868         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
30870 2010-05-02  Bruno Haible  <bruno@clisp.org>
30872         * doc/extend.texi (Function Attributes): Fix a typo.
30874 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30876         Revert:
30877         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
30878         placeholder from 0x%x to %#x.
30879         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
30880         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
30881         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
30882         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
30883         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
30884         * config/i386/i386.c (ix86_target_string): Ditto.
30885         * config/i386/i386.c (output_pic_addr_const): Ditto.
30886         (print_operand): Ditto.
30888 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30890         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
30891         placeholder from 0x%x to %#x.
30892         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
30893         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
30894         (ASM_OUTPUT_DEBUG_DATA): Ditto.
30895         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
30896         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
30897         * optc-gen.awk: Ditto.
30898         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
30899         (HOST_WIDE_INT_PRINT_HEX): Ditto.
30900         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
30901         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
30903 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
30905         * target.h (struct calls): Add function_value_regno_p field.
30906         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
30907         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
30908         * targhooks.c (default_function_value_regno_p): New function.
30909         * targhooks.h (default_function_value_regno_p): Declare function.
30910         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
30911         * builtins.c. (apply_result_size): (Ditto.).
30912         * combine.c. (likely_spilled_retval_p): (Ditto.).
30913         * mode-switching.c. Include 'target.h'.
30914         (create_pre_exit): Use function_value_regno_p hook.
30915         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
30916         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
30917         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
30919         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
30920         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
30921         (ix86_function_value_regno_p): Declare as static, change argument
30922         type to const unsigned int.
30923         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
30925 2010-05-01  Richard Guenther  <rguenther@suse.de>
30927         PR tree-optimization/43949
30928         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
30929         types.
30930         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
30932 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
30934         * rtl.h (CONST_DOUBLE_P): Define.
30935         (rtx_to_double_int): Declare.
30936         * emit-rtl.c (rtx_to_double_int): New function.
30937         * dwarf2out.c (insert_double): New function.
30938         (loc_descriptor, add_const_value_attribute): Clean up, use
30939         rtx_to_double_int and insert_double functions.
30941 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
30943         * doc/extend.texi (Inline): Add missing return keyword to examples.
30944         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
30945         "command-line".
30947 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
30949         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
30950         the variable part of the offset as well.  Use highest_pow2_factor for
30951         all alignment checks.
30953 2010-04-30  Richard Guenther  <rguenther@suse.de>
30955         PR tree-optimization/43879
30956         * tree-ssa-structalias.c (type_could_have_pointers): Functions
30957         can have pointers.
30959 2010-04-30  Jan Hubicka  <jh@suse.cz>
30961         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
30962         varpool.
30963         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
30965 2010-04-30  Jan Hubicka  <jh@suse.cz>
30967         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
30968         New.
30969         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
30970         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
30971         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
30972         cgraph_node_set_needs_ltrans_p): Remove.
30974 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
30976         * sdbout.c: Include vec.h, do not include varray.h.
30977         (deferred_global_decls, sdbout_global_decl,
30978         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
30979         * toplev.c: Do not include varray.h.
30980         (dump_memory_report): Do not dump VARRAY statistics.
30981         * gengtype.c (open_base_file): Ignore varray.h.
30982         * Makefile.in: Update for abovementioned changes.
30983         Remove all traces of varray.c and varray.h.
30984         * varray.c: Remove file.
30985         * varray.h: Remove file.
30987 2010-04-30  Jan Hubicka  <jh@suse.cz>
30989         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
30990         references.
30992 2010-04-30  Jan Hubicka  <jh@suse.cz>
30994         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
30995         needed.
30997 2010-04-30  Richard Guenther  <rguenther@suse.de>
30999         * tree-ssa-structalias.c (get_constraint_for_1): Generate
31000         constraints for CONSTRUCTOR.
31002 2010-04-30  Richard Guenther  <rguenther@suse.de>
31004         PR lto/43946
31005         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
31006         first after all lowering passes.
31008 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
31010         * toplev.c: Include varray.h for statistics dumping.
31011         * tree.h: Do not declare varray_head_tag.
31012         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
31013         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
31014         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
31015         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
31016         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
31017         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
31018         c-common.c, c-common.h, reg-stack.c, basic-block.h,
31019         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
31020         include varray.h.
31021         * Makefile.in: Update for abovementioned changes.
31023 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
31025         PR debug/43942
31026         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
31028 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
31030         * config/picochip/picochip.c (picochip_legitimize_address): Define.
31031         Use this function to do machine-specific conversion.
31032         (picochip_legitimize_reload_address): Likewise.
31033         (picochip_legitimate_address_p): Check valid base register only if
31034         strict.
31035         (picochip_check_conditional_copy): Check for modw only if opnd is
31036         register.
31037         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
31038         to call the function in c.
31039         * config/picochip/picochip-protos.h
31040         (picochip_legitimize_reload_address): Define.
31041         * config/picochip/picochip.md (supported_compare1): Define.
31043 2010-04-30  Jan Hubicka  <jh@suse.cz>
31045         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
31046         (cgraph_global_info): Remove inlined.
31047         (LTO_cgraph_tag_names): Remove.
31048         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
31049         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
31050         simplify cgraph tags and document.
31051         (lto_output_node): Use only LTO_cgraph_unavail_node and
31052         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
31053         for_functions_valid, global info, process and output flags.
31054         (input_overwrite_node): Initialize estimated stack size and
31055         estimated growth.  Do not read flags we no longer store.
31056         (input_node): Likewise do not read info no longer stored.
31057         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
31058         flag.
31060 2010-04-30  Richard Guenther  <rguenther@suse.de>
31062         PR tree-optimization/43879
31063         * tree-ssa-structalias.c (get_constraint_for_1): Properly
31064         handle non-zero initializers.
31066 2010-04-30  Richard Guenther  <rguenther@suse.de>
31068         * builtins.c (fold_builtin_1): Delete free (0).
31070 2010-04-29  Jan Hubicka  <jh@suse.cz>
31072         * gengtype.c (open_base_files): Add lto-streamer.h
31073         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
31074         (pass_ipa_cp): GGC collect.
31075         * toplev. (compile_file): Do not output symbols.
31076         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
31077         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
31078         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
31079         * lto-section-in.c: Include ggc.h
31080         (lto_new_in_decl_state): Alloc in GGC.
31081         (lto_delete_in_decl_state): Likewise.
31082         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
31083         Collect.
31085 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
31087         PR target/42895
31088         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
31089         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
31090         (HONOR_REG_ALLOC_ORDER): Describe new macro.
31091         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
31092         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
31093         account only if HONOR_REG_ALLOC_ORDER is not defined.
31094         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
31095         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
31097 2010-04-29  Jon Grant  <04@jguk.org>
31099         * collect2.c (vflag): Change type from int to bool.
31100         (debug): Likewise.
31101         (helpflag): New global bool.
31102         (main): Set vflag and debug with boolean, not integer truth values.
31103         Accept new "--help" option and output usage text if found.
31104         * collect2.h (vflag): Update prototype.
31105         (debug): Likewise.
31107 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
31109         PR bootstrap/43936
31110         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
31112 2010-04-29  Richard Guenther  <rguenther@suse.de>
31114         PR bootstrap/43935
31115         * plugin.h (invoke_plugin_callbacks): Annotate arguments
31116         with ATTRIBUTE_UNUSED.
31118 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
31120         PR target/43921
31121         * config/i386/i386.c (get_some_local_dynamic_name): Replace
31122         INSN_P with NONDEBUG_INSN_P.
31123         (distance_non_agu_define): Likewise.
31124         (distance_agu_use): Likewise.
31126 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
31128         From Dominique d'Humieres  <dominiq@lps.ens.fr>
31129         PR bootstrap/43858
31130         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
31131         test_set.
31133 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
31135         * plugin.h (invoke_plugin_callbacks): New inline function.
31136         * plugin.c (flag_plugin_added): New global flag.
31137         (add_new_plugin): Initialize above flag.
31138         (invoke_plugin_callbacks): Rename to ...
31139         (invoke_plugin_callbacks_full): ... this.
31141 2010-04-28  Jan Hubicka  <jh@suse.cz>
31143         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
31144         (lto_varpool_replace_node): New.
31145         (lto_symtab_resolve_symbols): Resolve varpool nodes.
31146         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
31147         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
31148         * cgraph.h (varpool_node_ptr): New type.
31149         (varpool_node_ptr): New vector.
31150         (varpool_node_set_def): New structure.
31151         (varpool_node_set): New type.
31152         (varpool_node_set): New vector.
31153         (varpool_node_set_element_def): New structure.
31154         (varpool_node_set_element, const_varpool_node_set_element): New types.
31155         (varpool_node_set_iterator): New type.
31156         (varpool_node): Add prev pointers, add used_from_other_partition,
31157         in_other_partition.
31158         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
31159         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
31160         varpool_get_node, varpool_remove_node): Declare.
31161         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
31162         varpool_node_set_size): New inlines.
31163         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
31164         * tree-pass.h (varpool_node_set_def): Forward declare.
31165         (ipa_opt_pass_d): Summary writting takes vnode sets too.
31166         (ipa_write_optimization_summaries): Update prototype.
31167         * ipa-cp.c (ipcp_write_summary): Update.
31168         * ipa-reference.c (ipa_reference_write_summary): Update.
31169         * lto-cgraph.c (lto_output_varpool_node): New static function.
31170         (output_varpool): New function.
31171         (input_varpool_node): New static function.
31172         (input_varpool_1): New function.
31173         (input_cgraph): Input varpool.
31174         * ipa-pure-const.c (pure_const_write_summary): Update.
31175         * lto-streamer-out.c (lto_output): Update, output varpool too.
31176         (write_global_stream): Kill WPA hack.
31177         (produce_asm_for_decls): Update.
31178         (output_alias_pair_p): Handle variables.
31179         (output_unreferenced_globals): Output only needed partition of varpool.
31180         * ipa-inline.c (inline_write_summary): Update.
31181         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
31182         cgraph.
31183         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
31184         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
31185         varpool_node_set_new, varpool_node_set_add,
31186         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
31187         debug_varpool_node_set): New functions.
31188         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
31189         (execute_one_pass): Process new decls too.
31190         (ipa_write_summaries_2): Pass around vsets.
31191         (ipa_write_summaries_1): Likewise.
31192         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
31193         to add.
31194         (ipa_write_optimization_summaries_1): Pass around vsets.
31195         (ipa_write_optimization_summaries): Likewise.
31196         * varpool.c (varpool_get_node): New.
31197         (varpool_node): Update doubly linked lists.
31198         (varpool_remove_node): New.
31199         (dump_varpool_node): More dumping.
31200         (varpool_enqueue_needed_node): Update doubly linked lists.
31201         (decide_is_variable_needed): Kill ltrans hack.
31202         (varpool_finalize_decl): Kill lto hack.
31203         (varpool_assemble_decl): Skip decls in other partitions.
31204         (varpool_assemble_pending_decls): Update doubly linkes lists.
31205         (varpool_empty_needed_queue): Likewise.
31206         (varpool_extra_name_alias): Likewise.
31207         * lto-streamer.c (lto_get_section_name): Add vars section.
31208         * lto-streamer.h (lto_section_type): Update.
31209         (output_varpool, input_varpool): Declare.
31211 2010-04-28  Mike Stump  <mikestump@comcast.net>
31213         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
31215 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31217         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
31218         record or union type with RECORD_OR_UNION_TYPE_P predicate.
31219         (lto_input_ts_type_tree_pointers): Likewise.
31220         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
31221         (lto_output_ts_type_tree_pointers): Likewise.
31223 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31225         Uniquization of constants at the Tree level
31226         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
31227         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
31228         bit to the end.
31229         (tree_output_constant_def): Declare.
31230         * gimplify.c (gimplify_init_constructor): When using block copy, first
31231         uniquize the constant constructor on the RHS.
31232         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
31233         DECL_IN_CONSTANT_POOL flag.
31234         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
31235         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
31236         constant pool.
31237         (assemble_variable): Deal with symbols belonging to the tree constant
31238         pool.
31239         (get_constant_section): Add ALIGN parameter and simplify.
31240         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
31241         (assemble_constant_contents): Use the expression of the VAR_DECL.
31242         (output_constant_def_contents): Use the alignment of the VAR_DECL.
31243         (tree_output_constant_def): New global function.
31244         (mark_constant): Use the expression of the VAR_DECL.
31245         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
31246         its expression.
31247         (output_object_block): Likewise and assemble the expression.
31249 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
31251         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
31252         hash_tree, eq_tree): New tree hash table.
31253         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
31254         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
31255         lto_orig_address_remove): Reimplement.
31257 2010-04-28  Xinliang David Li  <davidxl@google.com>
31259         PR c/42643
31260         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
31261         (compute_uninit_opnds_pos): New function.
31262         (is_non_loop_exit_postdominating): New function.
31263         (compute_control_dep_chain): New function.
31264         (find_pdom): New function.
31265         (convert_control_dep_chain_into_preds): New function.
31266         (find_predicates): New function.
31267         (find_control_equiv_block): New function.
31268         (collect_phi_def_edges): New function.
31269         (find_def_preds): New function.
31270         (find_dom): New function.
31271         (dump_predicates): New function.
31272         (get_cmp_code): New function.
31273         (is_value_included_in): New function.
31274         (find_matching_predicate_in_rest_chains): New function.
31275         (use_pred_not_overlap_with_undef_path_pred): New function.
31276         (is_use_properly_guarded): New function.
31277         (normalize_cond_1): New function.
31278         (is_and_or_or): New function.
31279         (normalize_cond): New function.
31280         (is_gcond_subset_of): New function.
31281         (is_subset_of_any): New function.
31282         (is_or_set_subset_of): New function.
31283         (is_and_set_subset_of): New function.
31284         (is_norm_cond_subset_of): New function.
31285         (is_pred_expr_subset_of): New function.
31286         (is_pred_chain_subset_of): New function.
31287         (is_included_in): New function.
31288         (is_superset_of): New function.
31289         (find_uninit_use): New function.
31290         (warn_uninitialized_phi): New function.
31291         (compute_possibly_undefined_names): New function.
31292         (ssa_undefined_value_p): New function.
31293         (execute_late_warn_uninitialized): New function.
31294         * tree-ssa.c (ssa_undefined_value_p): Removed.
31295         (warn_uninit): Changed to extern.
31296         (warn_uninitialized_phi): Removed.
31297         (warn_uninitialized_vars): Changed to extern.
31298         (execute_late_warn_uninitialized): Removed
31299         * tree-flow.h: Add new prototypes.
31300         * timevar.def: Add new time variable.
31301         * Makefile.in: Add new build file.
31303 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
31305         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
31306         type if available.
31308 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31310         PR target/22224
31311         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
31313 2010-04-28  Martin Jambor  <mjambor@suse.cz>
31315         * cgraph.h (struct cgraph_node): New field indirect_calls.
31316         (struct cgraph_indirect_call_info): New type.
31317         (struct cgraph_edge): Removed field indirect_call. New fields
31318         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
31319         (cgraph_create_indirect_edge): Declare.
31320         (cgraph_make_edge_direct): Likewise.
31321         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
31322         * ipa-prop.h (struct ipa_param_call_note): Removed.
31323         (struct ipa_node_params): Removed field param_calls.
31324         (ipa_create_all_structures_for_iinln): Declare.
31325         * cgraph.c: Described indirect edges and uids in initial comment.
31326         (cgraph_add_edge_to_call_site_hash): New function.
31327         (cgraph_edge): Search also among the indirect edges, use
31328         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
31329         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
31330         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
31331         site hash.
31332         (initialize_inline_failed): Assign a reason to indirect edges.
31333         (cgraph_create_edge_1): New function.
31334         (cgraph_create_edge): Moved some functionality to
31335         cgraph_create_edge_1.
31336         (cgraph_create_indirect_edge): New function.
31337         (cgraph_edge_remove_callee): Add an assert checking for
31338         non-indirectness.
31339         (cgraph_edge_remove_caller): Special-case indirect edges.
31340         (cgraph_remove_edge): Likewise.
31341         (cgraph_set_edge_callee): New function.
31342         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
31343         (cgraph_make_edge_direct): New function.
31344         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
31345         the declaration of the call statement matches.
31346         (cgraph_node_remove_callees): Special-case indirect edges.
31347         (cgraph_clone_edge): Likewise.
31348         (cgraph_clone_node): Clone also the indirect edges.
31349         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
31350         indirect_call, dump count of indirect_calls edges.
31351         * ipa-prop.c (iinlining_processed_edges): New variable.
31352         (ipa_note_param_call): Create indirect edges instead of
31353         creating notes.  New parameter node.
31354         (ipa_analyze_call_uses): New parameter node, pass it on to
31355         ipa_note_param_call.
31356         (ipa_analyze_stmt_uses): Likewise.
31357         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
31358         (print_edge_addition_message): Work on edges rather than on notes.
31359         (update_call_notes_after_inlining): Likewise, renamed to
31360         update_indirect_edges_after_inlining.
31361         (ipa_create_all_structures_for_iinln): New function.
31362         (ipa_free_node_params_substructures): Do not free notes.
31363         (ipa_edge_duplication_hook): Propagate bits within
31364         iinlining_processed_edges bitmap.
31365         (ipa_node_duplication_hook): Do not duplicate notes.
31366         (free_all_ipa_structures_after_ipa_cp): Renamed to
31367         ipa_free_all_structures_after_ipa_cp.
31368         (free_all_ipa_structures_after_iinln): Renamed to
31369         ipa_free_all_structures_after_iinln.
31370         (ipa_write_param_call_note): Removed.
31371         (ipa_read_param_call_note): Removed.
31372         (ipa_write_indirect_edge_info): New function.
31373         (ipa_read_indirect_edge_info): Likewise.
31374         (ipa_write_node_info): Do not stream notes, do stream information
31375         in indirect edges.
31376         (ipa_read_node_info): Likewise.
31377         (lto_ipa_fixup_call_notes): Removed.
31378         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
31379         * ipa-inline.c (pass_ipa_inline): Likewise.
31380         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
31381         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
31382         * tree-inline.c (copy_bb): Removed an unnecessary double check for
31383         is_gimple_call.
31384         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
31385         edges.
31386         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
31387         (output_cgraph): Stream also indirect edges.
31388         (lto_output_edge): Added capability to stream indirect edges.
31389         (input_edge): Likewise.
31390         (input_cgraph_1): Likewise.
31391         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
31392         of indirect edges.
31394 2010-04-28  Richard Guenther  <rguenther@suse.de>
31396         PR tree-optimization/43879
31397         PR tree-optimization/43909
31398         * tree-ssa-structalias.c (struct variable_info): Add
31399         only_restrict_pointers flag.
31400         (new_var_info): Initialize it.  Increment stats.total_vars here.
31401         (create_function_info_for): Do not increment stats.total_vars here.
31402         (get_function_part_constraint): Fix build with C++.
31403         (insert_into_field_list): Remove.
31404         (push_fields_onto_fieldstack): Properly merge fields.
31405         (create_variable_info_for): Split and simplify.
31406         (create_variable_info_for_1): New piece.
31407         (intra_create_variable_infos): Properly make restrict constraints
31408         from parameters.
31410 2010-04-28  Richard Guenther  <rguenther@suse.de>
31412         PR c++/43880
31413         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
31415 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31416             Jan Hubicka  <hubicka@ucw.cz>
31418         * doc/invoke.texi (-Wsuggest-attribute=const,
31419         -Wsuggest-attribute=pure): Document.
31420         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
31421         (function_always_visible_to_compiler_p,
31422         suggest_attribute, warn_function_pure, warn_function_const):
31423         New functions.
31424         (check_call): Improve debug info.
31425         (analyze_function): Do not check availability.
31426         (add_new_function): Check availability.
31427         (propagate): Output warnings.
31428         (skip_function_for_local_pure_const): New function.
31429         (local_pure_const): Use it; output warnings.
31430         * common.opt (Wsuggest-attribute=const,
31431         Wsuggest-attribute=pure): New.
31433 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
31435         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
31436         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
31437         or DW_CFA_def_cfa_offset{,_sf}.
31439 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31441         * tree.h: Fix truncated long macros.
31443 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
31445         * collect2.c (TARGET_64BIT): Redefine to target's default.
31446         * tlink.c: Likewise.
31447         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
31448         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
31449         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
31450         for underscoring __USER_LABEL_PREFIX__.
31451         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
31452         (SUB_LINK_ENTRY32): New.
31453         (SUB_LINK_ENTRY64): New.
31454         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
31455         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
31456         (SUB_LINK_ENTRY64): New.
31457         (SUB_LINK_ENTRY): New.
31458         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
31459         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
31460         x64 target is choosen.
31461         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
31462         * configure: Regenerated.
31463         * configure.ac (leading-mingw64-underscores): Option added.
31465 2010-04-27  Jan Hubicka  <jh@suse.cz>
31467         * doc/invoke.texi (-fipa-profile): Document.
31468         * opts.c (decode_options): Enable ipa-profile at -O1.
31469         * timevar.def (TV_IPA_PROFILE): Define.
31470         * common.opt (fipa-profile): Add.
31471         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
31472         flag for clones.
31473         (cgraph_propagate_frequency): Handle only local ones.
31474         * tree-pass.h (pass_ipa_profile): Declare.
31475         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
31476         (pass_ipa_profile): Use TV_IPA_PROFILE.
31477         * ipa.c (ipa_profile): New function.
31478         (gate_ipa_profile): Likewise.
31479         (pass_ipa_profile): New global variable.
31480         * passes.c (pass_ipa_profile): New.
31482 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
31484         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
31486 2010-04-27  Martin Jambor  <mjambor@suse.cz>
31488         PR middle-end/43812
31489         * ipa.c (dissolve_same_comdat_group_list): New function.
31490         (function_and_variable_visibility): Call
31491         dissolve_same_comdat_group_list when comdat group contains external or
31492         newly local nodes.
31493         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
31494         lists are circular and that they contain only DECL_ONE_ONLY nodes.
31496 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
31498         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
31499         (const_hash_1) <VECTOR_CST>: New case.
31500         (compare_constant) <VECTOR_CST>: Likewise.
31501         <ADDR_EXPR>: Deal with LABEL_REFs.
31502         (copy_constant) <VECTOR_CST>: New case.
31504 2010-04-27  Jan Hubicka  <jh@suse.cz>
31506         * cgraph.c (cgraph_propagate_frequency): New function.
31507         * cgraph.h (cgraph_propagate_frequency): Declare.
31508         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
31509         cgraph_propagate_frequency.
31511 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
31513         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
31515 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
31517         PR target/40657
31518         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
31519         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
31520         here to determine which regs to push and how much stack to reserve.
31522 2010-04-27  Jie Zhang  <jie@codesourcery.com>
31524         * doc/gimple.texi (gimple_statement_with_ops): Remove
31525         addresses_taken field.
31526         (gimple_statement_with_memory_ops): Likewise.
31528 2010-04-27  Jan Hubicka  <jh@suse.cz>
31530         * tree-inline.c (eni_inlining_weights): Remove.
31531         (estimate_num_insns): Special case more builtins.
31533 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
31535         PR c/32207
31536         * c-typeck.c (build_binary_op): Move forward check for comparison
31537         pointer with null pointer constant and adjust the diagnostic message.
31539 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
31541         PR lto/42776
31542         * configure.ac (gcc_cv_as_section_has_align): Set if installed
31543         binutils supports extended .section directive needed by LTO, or
31544         warn if older binutils found.
31545         (LTO_BINARY_READER): New AC_SUBST'd variable.
31546         (LTO_USE_LIBELF): Likewise.
31547         * config.gcc (lto_binary_reader): New target-specific configure
31548         variable.
31549         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
31550         (LTO_USE_LIBELF): Likewise.
31551         * configure: Regenerate.
31553         * collect2.c (is_elf): Rename from this ...
31554         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
31555          object files in addition to ELF-formatted ones.
31556         (scan_prog_file): Caller updated.  Also allow for LTO info marker
31557         symbol to be prefixed or not by an extra underscore.
31559         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
31560         * config/i386/winnt.c: Also #include lto-streamer.h
31561         (i386_pe_asm_named_section): Specify 1-byte section alignment for
31562         LTO named sections.
31563         (i386_pe_asm_output_aligned_decl_common): Add comment.
31564         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
31566 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
31568         PR target/43889
31569         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
31570         Add missing earlyclobber for second alternative.
31572 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
31574         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
31575         bits for artificial defs at the top of the block.
31576         * fwprop.c (single_def_use_enter_block): Don't call it.
31578 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
31580         PR 43715
31581         * configure.ac: Use "$gcc_cv_nm -g" on darwin
31582         instead of "$gcc_cv_objdump -T".
31583         Use "-undefined dynamic_lookup" on darwin.
31584         * configure: Regenerate.
31586 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
31588         PR c/43893
31589         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
31591 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
31593         * c-parser.c (struct c_token): Move location field up.
31594         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
31595         (struct c_declspecs): Convert typespec_word, storage_class, and
31596         default_int_p into bitfields.
31597         (struct c_declarator): Move loc field up.
31599 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
31601         * cfgloop.h (struct loop): Move can_be_parallel field up.
31602         * ipa-prop.h (struct ip_node_params): Move bitfields up.
31603         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
31604         down.
31605         (struct iv_cand): Convert pos field into a bitfield.
31606         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
31607         field up.
31608         (struct _stmt_vec_info): Shuffle fields for better packing.
31610 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
31612         * varasm.c (IN_NAMED_SECTION): Remove guard.
31613         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
31614         (IN_NAMED_SECTION_P): ...this.
31615         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
31616         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
31618 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
31620         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
31621         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
31622         of shadowing it.  Fix comments.
31624 2010-04-26  Jan Hubicka  <jh@suse.cz>
31626         * cgraph.c (cgraph_create_node): Set node frequency to normal.
31627         (cgraph_clone_node): Copy function frequency.
31628         * cgraph.h (node_frequency): New enum
31629         (struct cgraph_node): Add.
31630         * final.c (rest_of_clean_state): Update.
31631         * lto-cgraph.c (lto_output_node): Output node frequency.
31632         (input_overwrite_node): Input node frequency.
31633         * tre-ssa-loop-ivopts (computation_cost): Update.
31634         * lto-streamer-out.c (output_function): Do not output function
31635         frequency.
31636         * predict.c (maybe_hot_frequency_p): Update and handle functions
31637         executed once.
31638         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
31639         attribute lookup.
31640         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
31641         (compute_function_frequency): Set noreturn functions to be executed
31642         once.
31643         (choose_function_section): Update.
31644         * lto-streamer-in.c (input_function): Do not input function frequency.
31645         * function.c (allocate_struct_function): Do not initialize function
31646         frequency.
31647         * function.h (function_frequency): Remove.
31648         (struct function): Remove function frequency.
31649         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
31650         (try_update): Update.
31651         * tree-inline.c (initialize_cfun): Do not update function frequency.
31652         * passes.c (pass_init_dump_file): Update.
31653         * i386.c (ix86_compute_frame_layout): Update.
31654         (ix86_pad_returns): Update.
31656 2010-04-26  Jie Zhang  <jie@codesourcery.com>
31658         PR tree-optimization/43833
31659         * tree-vrp.c (range_int_cst_p): New.
31660         (range_int_cst_singleton_p): New.
31661         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
31662         when both operands are constants.  Use range_int_cst_p in
31663         BIT_IOR_EXPR case.
31665 2010-04-26  Jan Hubicka  <jh@suse.cz>
31667         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
31669 2010-04-26  Richard Guenther  <rguenther@suse.de>
31671         PR lto/43080
31672         * gimple.c (gimple_decl_printable_name): Deal gracefully
31673         with a NULL DECL_NAME.
31675 2010-04-26  Richard Guenther  <rguenther@suse.de>
31677         PR lto/42425
31678         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
31679         if emitting debug information and it is either a function
31680         or a namespace decl.
31682 2010-04-26  Ira Rosen  <irar@il.ibm.com>
31684         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
31685         determine if the statement is vectorizable, and a macro to access it.
31686         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31687         Skip statements that can't be vectorized. If the analysis fails,
31688         mark the statement as unvectorizable if vectorizing basic block.
31689         (vect_compute_data_refs_alignment): Likewise.
31690         (vect_verify_datarefs_alignment): Skip statements marked as
31691         unvectorizable. Add print.
31692         (vect_analyze_group_access): Skip statements that can't be
31693         vectorized. If the analysis fails, mark the statement as
31694         unvectorizable if vectorizing basic block.
31695         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
31696         * tree-vect-stmts.c (vectorizable_store): Fix the number of
31697         generated stmts for SLP.
31698         (new_stmt_vec_info): Initialize the new field.
31699         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
31700         statements marked as unvectorizable.
31702 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
31704         * c-common.c (flag_isoc1x): New.
31705         (flag_isoc99): Update comment.
31706         * c-common.h (flag_isoc1x): New.
31707         (flag_isoc99): Update comment.
31708         * c-cppbuiltin.c (builtin_define_float_constants): Also define
31709         __<type>_DECIMAL_DIG__.
31710         * c-opts.c (set_std_c1x): New.
31711         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
31712         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
31713         * c.opt (-std=c1x, -std=gnu1x): New options.
31714         * doc/cpp.texi: Mention -std=c1x.
31715         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
31716         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
31717         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
31718         * doc/standards.texi: Mention C1X.
31719         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
31720         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
31721         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
31722         Define for C1X.
31724 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
31726         * config/i386/gmon-sol2.c (_mcleanup): Change format string
31727         placeholder from 0x%x to %#x.
31728         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
31729         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
31730         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
31731         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
31732         * config/i386/i386.c (ix86_target_string): Ditto.
31733         (output_pic_addr_const): Ditto.
31734         (print_operand): Ditto.
31736 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
31738         * combine.c (find_split_point): Add third argument.  Use it
31739         to find nested multiply-accumulate instructions.  Adjust calls.
31740         (try_combine): Adjust call to find_split_point.
31742 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
31744         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
31746 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
31748         PR tree-optimization/41442
31749         * fold-const.c (merge_truthop_with_opposite_arm): New function.
31750         (fold_binary_loc): Call it.
31752 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31754         * toplev.c (general_init): Set default for fdiagnostics-show-option.
31755         * opts.c (common_handle_option): Allow disabling it.
31756         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
31758 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
31760         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
31761         between modes if both types are integral.
31763 2010-04-23  Richard Guenther  <rguenther@suse.de>
31765         PR tree-optimization/43572
31766         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
31768 2010-04-23  Richard Guenther  <rguenther@suse.de>
31770         PR lto/43455
31771         * tree-inline.c (tree_can_inline_p): Also check compatibility
31772         of return types.
31774 2010-04-23  Martin Jambor  <mjambor@suse.cz>
31776         PR tree-optimization/43846
31777         * tree-sra.c (struct access): New flag grp_assignment_read.
31778         (build_accesses_from_assign): Set grp_assignment_read.
31779         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
31780         (enum mark_read_status): New type.
31781         (analyze_access_subtree): Propagate grp_assignment_read, create
31782         accesses also if both direct_read and root->grp_assignment_read.
31784 2010-04-23  Martin Jambor  <mjambor@suse.cz>
31786         PR middle-end/43835
31787         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
31788         function does not have type attributes.
31790 2010-04-23  Richard Guenther  <rguenther@suse.de>
31792         PR lto/42653
31793         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
31794         of FUNCTION_DECLs.
31796 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31798         * sese.h (create_if_region_on_edge): Remove.
31800         * sese.c (create_if_region_on_edge): Make static.
31802         * tree-inline.c: Do not include ggc.h.
31804         * expr.c: Do not include ggc.h.
31806         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
31807         dependencies.
31809 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
31811         PR target/43744
31812         * config/sh/sh.c (find_barrier): Don't emit a constant pool
31813         in the middle of insns for casesi_worker_2.
31815 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
31817         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
31819 2010-04-22  Ira Rosen  <irar@il.ibm.com>
31821         PR tree-optimization/43842
31822         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
31823         loop unrolling in update of exit phis. Fix comment.
31824         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
31825         least two reduction statements in the loop before starting SLP
31826         analysis.
31828 2010-04-22  Nick Clifton  <nickc@redhat.com>
31830         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
31832 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
31834         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
31835         to simplify a + ~a.
31837 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31839         * tree-parloops.c (loop_parallel_p): New argument
31840         parloop_obstack.  Pass it down.
31841         (parallelize_loops): New variable parloop_obstack.  Initialize it,
31842         pass it down, free it.
31844         * tree-loop-linear.c (linear_transform_loops): Pass down
31845         lambda_obstack.
31847         * tree-data-ref.h (lambda_compute_access_matrices): New argument
31848         of type struct obstack *.
31850         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
31851         scratch_obstack.  Initialize it, pass down, free it.
31853         * lambda.h (lambda_loop_new): Remove.
31854         (lambda_matrix_new, lambda_matrix_inverse)
31855         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
31856         argument of type struct obstack *.
31858         * lambda-trans.c (lambda_trans_matrix_new): New argument
31859         lambda_obstack.  Pass it down, use obstack allocation for ret.
31860         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
31861         it down.
31863         * lambda-mat.c (lambda_matrix_get_column)
31864         (lambda_matrix_project_to_null): Remove.
31865         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
31866         allocation for mat.
31867         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
31868         lambda_obstack.
31870         * lambda-code.c (lambda_loop_new): New function.
31871         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
31872         (lambda_compute_auxillary_space, lambda_compute_target_space)
31873         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
31874         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
31875         (build_access_matrix): New argument lambda_obstack.  Use obstack
31876         allocation for am.
31877         (lambda_compute_step_signs, lambda_compute_access_matrices): New
31878         argument lambda_obstack.  Pass it down.
31880 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31882         * optabs.h (expand_widening_mult): Declare.
31884 2010-04-22  Richard Guenther  <rguenther@suse.de>
31886         PR tree-optimization/43845
31887         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
31888         lookup the CALL_EXPR function and arguments.
31890 2010-04-22  Nick Clifton  <nickc@redhat.com>
31892         * config/stormy16/stormy16.c
31893         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
31894         * config/stormy16/stormy16.h: Tidy up formatting.
31895         (DONT_USE_BUILTIN_SETJMP): Remove definition.
31896         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
31897         (ineqbranchsi): Delete pattern.
31898         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
31899         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
31900         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
31901         stormy16-lib2-ucmpsi2.c.
31903 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31905         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
31906         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
31907         extra set merge_set_noclobber, and use it to relax the final test
31908         slightly.
31909         * df.h (df_simulate_find_noclobber_defs): Declare.
31910         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
31911         conditional defs.
31912         (df_simulate_find_noclobber_defs): New function.
31914 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
31916         * config/i386/i386.md: Use {} around multi-line preparation statements.
31918 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31920         * c-tree.h (push_init_level, pop_init_level, set_init_index)
31921         (process_init_element): New argument of type struct obstack *.
31923         * c-typeck.c (push_init_level, pop_init_level, set_designator)
31924         (set_init_index, set_init_label, set_nonincremental_init)
31925         (set_nonincremental_init_from_string, find_init_member)
31926         (output_init_element, output_pending_init_elements)
31927         (process_init_element): New argument braced_init_obstack.  Pass it
31928         down.
31929         (push_range_stack, add_pending_init): New argument
31930         braced_init_obstack.  Use obstack allocation.
31932         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
31933         braced_init_obstack.  Pass it down.
31934         (c_parser_braced_init): New variables ret, braced_init_obstack.
31935         Initialize obstack, pass it down and finally free it.
31937 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31939         PR middle-end/29274
31940         * tree-pass.h (pass_optimize_widening_mul): Declare.
31941         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
31942         gate_optimize_widening_mul): New static functions.
31943         (pass_optimize_widening_mul): New.
31944         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
31945         <case MULT_EXPR>: Remove support for widening multiplies.
31946         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
31947         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
31948         simplify_gen_unary rather than directly building extensions.
31949         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
31950         WIDEN_MULT_EXPR.
31951         * expmed.c (expand_widening_mult): New function.
31952         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
31954 2010-04-21  Jan Hubicka  <jh@suse.cz>
31956         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
31957         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
31958         * lto-wpa-fixup.c: Remove.
31959         * Makefile.in (lto-wpa-fixup.o): Remove.
31960         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
31961         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
31962         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
31964 2010-04-21  Jan Hubicka  <jh@suse.cz>
31966         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
31967         add write_optimization_summary, read_optimization_summary.
31968         (ipa_write_summaries_of_cgraph_node_set): Remove.
31969         (ipa_write_optimization_summaries): Declare.
31970         (ipa_read_optimization_summaries): Declare.
31971         * ipa-cp.c (pass_ipa_cp): Update.
31972         * ipa-reference.c (pass_ipa_reference): Update.
31973         * ipa-pure-const.c (pass_ipa_pure_const): Update.
31974         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
31975         Update.
31976         * ipa-inline.c (pass_ipa_inline): Update.
31977         * ipa.c (pass_ipa_whole_program): Update.
31978         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
31979         * passes.c (ipa_write_summaries_1): Do not test wpa.
31980         (ipa_write_optimization_summaries_1): New.
31981         (ipa_write_optimization_summaries): New.
31982         (ipa_read_summaries): Do not test ltrans.
31983         (ipa_read_optimization_summaries_1): New.
31984         (ipa_read_optimization_summaries): New.
31986 2010-04-21  Jan Hubicka  <jh@suse.cz>
31988         * lto-cgraph.c (lto_output_node): Do not output comdat groups
31989         for boundary nodes.
31990         (output_cgraph): Do not arrange comdat groups for boundary nodes.
31992 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31994         PR debug/40040
31995         * dwarf2out.c (add_name_and_src_coords_attributes): Add
31996         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
31998 2010-04-21  Jan Hubicka  <jh@suse.cz>
32000         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
32002 2010-04-21  Jan Hubicka  <jh@suse.cz>
32004         * varpool.c (decide_is_variable_needed): Variable is always needed
32005         during ltrans.
32007 2010-04-21  Jan Hubicka  <jh@suse.cz>
32009         * opts.c (decode_options): Enable pure-const pass for whopr.
32011 2010-04-21  Jan Hubicka  <jh@suse.cz>
32013         * cgraph.c (dump_cgraph_node): Dump also assembler name.
32014         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
32015         at WPA dumping.
32016         (cgraph_decide_inlining): Do not expect callee to be removed in all
32017         cases.
32019 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
32021         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
32023 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
32025         * config/i386/i386.md (x86_shrd): Add athlon_decode and
32026         amdfam10_decode attributes.
32028 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
32030         PR middle-end/43570
32031         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
32032         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
32033         (lower_copyprivate_clauses): Use private var in outer
32034         context instead of original var.  Make sure the types
32035         are correct for VLAs.
32037 2010-04-21  Richard Guenther  <rguenther@suse.de>
32039         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
32040         to non-pointer objects.
32042 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
32044         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
32045         last chain entry if it starts with the still current label.
32046         (add_location_or_const_value_attribute): Check that
32047         loc_list->first->next is NULL instead of comparing ->first with ->last.
32048         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
32049         to add_var_loc_to_decl.
32051         * dwarf2out.c (output_call_frame_info): For dw_cie_version
32052         >= 4 add also address size and segment size fields into CIE header.
32054         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
32055         long as address size is the same as sizeof (void *) and
32056         segment size is 0.
32057         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
32058         address size or segment size is unexpected, return DW_EH_PE_omit.
32059         (classify_object_over_fdes): If get_cie_encoding returned
32060         DW_EH_PE_omit, return -1.
32061         (init_object): If classify_object_over_fdes returned -1,
32062         pretend there were no FDEs at all.
32064 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
32066         * config/i386/i386.md (bswap<mode>2): Macroize expander from
32067         bswap{si,di}2 using SWI48 mode iterator.
32068         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
32069         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
32070         set modrm attribute of bswap insn to 0 and remove length attribute.
32071         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
32072         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
32073         set mode attribute to <MODE> and remove length attribute.
32075 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
32077         PR rtl-optimization/43520
32078         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
32079         zero available registers.
32081 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32083         * builtins.c (fold_builtin_cproj): Fold more cases.
32085 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32087         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
32088         (fold_builtin_1): Fold builtin cproj.
32089         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
32090         Use ATTR_CONST_NOTHROW_LIST.
32092 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
32094         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
32095         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
32096         ffsi2_no_cmove for !TARGET_CMOVE.
32097         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
32098         (ffssi2): Remove expander.
32099         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
32100         mode iterator.
32101         (ctz<mode>2): Ditto from ctz{si,di}2.
32102         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
32103         mode iterator.
32104         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
32105         mode iterator.
32107 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
32109         * dwarf2out.c (AT_linkage_name): Define.
32110         (clone_as_declaration): Handle DW_AT_linkage_name.
32111         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
32112         of DW_AT_MIPS_linkage_name.
32113         (move_linkage_attr): Likewise.
32114         (dwarf2out_finish): Likewise.
32116 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
32118         PR middle-end/41952
32119         * fold-const.c (fold_comparison): New folding rule.
32121 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
32123         * double-int.h (double_int_setbit): Declare.
32124         * double-int.c (double_int_setbit): New function.
32125         * rtl.h (immed_double_int_const): Declare.
32126         * emit-rtl.c (immed_double_int_const): New function.
32127         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
32128         and immed_double_int_const functions.
32129         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
32130         expand_copysign_bit): (Ditto.).
32131         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
32132         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
32133         * dojump.c (prefer_and_bit_test): (Ditto.).
32134         * expr.c (convert_modes, reduce_to_bit_field_precision,
32135         const_vector_from_tree): (Ditto.).
32136         * expmed.c (mask_rtx, lshift_value): (Ditto.).
32138 2010-04-20  Jan Hubicka  <jh@suse.cz>
32140         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
32141         (dump_cgraph_node): Dump new flags.
32142         * cgraph.h (struct cgraph_node): Add flags
32143         reachable_from_other_partition and in_other_partition.
32144         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
32145         other partition can not be removed.
32146         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
32147         the other partition must be output; silence sanity checking on
32148         leaking functions bodies from other paritition.
32149         * lto-cgraph.c (reachable_from_other_partition_p): New function.
32150         (lto_output_node): Output new flags; do not sanity check that inline
32151         clones are output; drop lto_forced_extern_inline_p code; do not mock
32152         visibility flags at partition boundaries.
32153         (add_node_to): New function.
32154         (output_cgraph): Use it to sort functions so masters appear before
32155         clones.
32156         (input_overwrite_node): Input new flags.
32157         * passes.c (ipa_write_summaries): Do not call
32158         lto_new_extern_inline_states.
32159         * lto-section-out.c (forced_extern_inline,
32160         lto_new_extern_inline_states lto_delete_extern_inline_states,
32161         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
32162         * lto-streamer.h (lto_new_extern_inline_states,
32163         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
32164         lto_forced_extern_inline_p): Kill.
32166 2010-04-20  Richard Guenther  <rguenther@suse.de>
32168         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
32169         from vars that can have pointers.
32170         (process_constraint): Dump useless constraints.
32172 2010-04-20  Richard Guenther  <rguenther@suse.de>
32174         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
32175         (dump_sa_points_to_info): Remove asserts.
32176         (init_base_vars): nothing_id isn't an escape point nor does it
32177         have pointers.
32179 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
32181         * tree.h (TYPE_REF_IS_RVALUE): Define.
32182         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
32183         should_move_die_to_comdat, prune_unused_types_walk): Handle
32184         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
32185         (modified_type_die, gen_reference_type_die): Emit
32186         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
32187         if TYPE_REF_IS_RVALUE and -gdwarf-4.
32189 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32191         PR target/43635
32192         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
32193         calls for -fpic -m31 if they have been sibcall optimized.
32195 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
32197         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
32198         ar.lc fixed and call-used.
32200         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
32202 2010-04-19  Jan Hubicka  <jh@suse.cz>
32204         * opts.c (decode_options): Disable whpr incompatible passes.
32205         * lto/lto.c (lto_1_to_1_map): Skip clones.
32206         (read_cgraph_and_symbols): Do not mark everything as needed.
32207         (do_whole_program_analysis): Do map only after optimizing;
32208         set proper cgraph_state; use passmanager.
32210 2010-04-19  DJ Delorie  <dj@redhat.com>
32212         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
32213         POINTER_PLUS_EXPR and fix them.
32215 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
32217         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
32218         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
32219         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
32220         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
32221         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
32222         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
32223         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
32224         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
32225         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
32226         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
32227         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
32229 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
32231         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
32232         (check_cond_move_block): Likewise.
32233         (cond_move_process_if_block): Likewise.
32234         (noce_find_if_block): Improve formatting.
32235         (find_if_header): Pass 0 to memset and tweak conditions.
32236         (cond_exec_find_if_block): Fix long lines and tweak conditions.
32238 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
32240         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
32241         for -gdwarf-4.
32243         PR middle-end/43337
32244         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
32245         with non-local decl doesn't need chain.
32247 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
32249         * ira-color.c (allocno_reload_assign): Avoid accumulating
32250         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
32252 2010-04-19  Martin Jambor  <mjambor@suse.cz>
32254         * gimple.h (create_tmp_reg): Declare.
32255         * gimplify.c (create_tmp_reg): New function.
32256         (gimplify_return_expr): Use create_tmp_reg.
32257         (gimplify_omp_atomic): Likewise.
32258         (gimple_regimplify_operands): Likewise.
32259         * tree-dfa.c (make_rename_temp): Likewise.
32260         * tree-predcom.c (predcom_tmp_var): Likewise.
32261         (reassociate_to_the_same_stmt): Likewise.
32262         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
32263         (get_replaced_param_substitute): Likewise.
32264         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
32265         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
32266         * tree-ssa-pre.c (get_representative_for): Likewise.
32267         (create_expression_by_pieces): Likewise.
32268         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
32269         (create_tailcall_accumulator): Likewise.
32271 2010-04-19  Martin Jambor  <mjambor@suse.cz>
32273         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
32274         new_stmt.
32275         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
32277 2010-04-19  Richard Guenther  <rguenther@suse.de>
32279         PR tree-optimization/43796
32280         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
32281         from SCEV in the lattice.
32282         (vrp_visit_phi_node): Dump change.
32284 2010-04-19  Richard Guenther  <rguenther@suse.de>
32286         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
32287         * configure: Re-generated.
32289 2010-04-19  Richard Guenther  <rguenther@suse.de>
32291         PR tree-optimization/43783
32292         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
32293         constant ARRAY_REF operands two and three if possible.
32295 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
32297         PR target/43766
32298         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
32300 2010-04-19  Jie Zhang  <jie@codesourcery.com>
32302         PR target/43662
32303         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
32305 2010-04-19  Ira Rosen  <irar@il.ibm.com>
32307         PR tree-optimization/37027
32308         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
32309         and macro to access it.
32310         (vectorizable_reduction): Add argument.
32311         (vect_get_slp_defs): Likewise.
32312         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
32313         statements for possible use in SLP.
32314         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
32315         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
32316         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
32317         add new argument.
32318         (vectorizable_reduction): Likewise.
32319         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
32320         vect_get_slp_defs.
32321         (vectorizable_type_demotion, vectorizable_type_promotion,
32322         vectorizable_store): Likewise.
32323         (vect_analyze_stmt): Update call to vectorizable_reduction.
32324         (vect_transform_stmt): Likewise.
32325         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
32326         (vect_build_slp_tree): Fix indentation. Check that there are no loads
32327         from different interleaving chains in same node.
32328         (vect_slp_rearrange_stmts): New function.
32329         (vect_supported_load_permutation_p): Allow load permutations for
32330         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
32331         inside SLP nodes if necessary.
32332         (vect_analyze_slp_instance): Handle reductions.
32333         (vect_analyze_slp): Try to build SLP instances originating from groups
32334         of reductions.
32335         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
32336         (vect_get_constant_vectors): Create initial vectors for reductions
32337         according to reduction code. Add new argument.
32338         (vect_get_slp_defs): Add new argument, pass it to
32339         vect_get_constant_vectors.
32340         (vect_schedule_slp_instance): Remove SLP tree root statements.
32342 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
32344         * tree.h (ENUM_IS_SCOPED): Define.
32345         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
32346         for ENUM_IS_SCOPED enums.
32348 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
32350         * fold-const.c (fold_comparison): Use ssizetype.
32351         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
32352         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
32353         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
32354         * tree-object-size.c (compute_object_sizes): Use size_type_node.
32356         * tree.h (initialize_sizetypes): Remove parameter.
32357         (build_common_tree_nodes): Remove second parameter.
32358         * stor-layout.c (initialize_sizetypes): Remove parameter.
32359         Always create an unsigned type.
32360         (set_sizetype): Assert that the passed type is unsigned and simplify.
32361         * tree.c (build_common_tree_nodes): Remove second parameter.
32362         Adjust call to initialize_sizetypes.
32363         * c-decl.c (c_init_decl_processing): Remove second argument in call to
32364         build_common_tree_nodes.
32366 2010-04-18  Matthias Klose  <doko@ubuntu.com>
32368         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
32370 2010-04-18  Ira Rosen  <irar@il.ibm.com>
32372         PR tree-optimization/43771
32373         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
32374         load permutation doesn't have gaps.
32376 2010-04-18  Jan Hubicka  <jh@suse.cz>
32378         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
32379         (sse_prologue_save_insn expander): Use new pattern.
32380         (sse_prologue_save_insn1): New pattern and splitter.
32381         (sse_prologue_save_insn): Update to deal also with 64bit aligned
32382         blocks.
32383         * i386.c (setup_incoming_varargs_64): Do not compute jump
32384         destination here.
32385         (ix86_gimplify_va_arg): Update alignment needed.
32386         (ix86_local_alignment): Do not align all local arrays to 128bit.
32388 2010-04-17  Jan Hubicka  <jh@suse.cz>
32390         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
32392 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
32394         * arm.md (negdi2): Remove redundant code to force values into a
32395         register.
32397 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
32399         * arm/bpabi.S: Add EABI alignment attributes to objects.
32400         * arm/bpabi-v6m.S: Likewise.
32401         * arm/crti.asm: Likewise.
32402         * arm/crtn.asm: Likewise.
32403         * arm/lib1funcs.asm: Likewise.
32404         * arm/libunwind.S: Likewise.
32406 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
32408         * arm-protos.h (tune_params): New structure.
32409         * arm.c (current_tune): New variable.
32410         (arm_constant_limit): Delete.
32411         (struct processors): Add pointer to the tune parameters.
32412         (arm_slowmul_tune): New tuning option.
32413         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
32414         (all_cores): Adjust to pick up the tuning model.
32415         (arm_constant_limit): New function.
32416         (arm_override_options): Select the appropriate tuning model.  Delete
32417         initialization of arm_const_limit.
32418         (arm_split_constant): Use the new constant-limit model.
32419         (arm_rtx_costs): Pick up the current tuning model.
32420         * arm.md (is_strongarm, is_xscale): Delete.
32421         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
32422         for Xscale variant architectures.
32423         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
32425 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32427         * config/arm/arm.c (arm_gen_constant): Remove unused variable
32428         can_shift.
32429         (arm_rtx_costs_1): Remove unused variable extra_cost.
32430         (arm_unwind_emit_set): Use variable offset.
32431         (thumb1_output_casesi): Remove unused variable flags.
32433 2010-04-16  Jeff Law  <law@redhat.com>
32435         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
32436         needing assignment rather than doing a two-phase assignment.  Remove
32437         unused variable 'm'.
32439 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
32441         PR bootstrap/43767
32442         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
32444 2010-04-16  Doug Kwan  <dougkwan@google.com>
32446         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
32447         (next_operand_entry_id): New static variable.
32448         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
32449         (add_to_ops_vec): Assigned unique ID to operand entry.
32450         (struct oecount_s): New field ID.
32451         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
32452         (undistribute_ops_list): Assign unique IDs to oecounts.
32453         (init_reassoc): reset next_operand_entry_id.
32455 2010-04-16  Doug Kwan  <dougkwan@google.com>
32457         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
32458         missing left parenthesis.
32460 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
32462         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
32463         *btdi_rex64 using SWI48 mode iterator.
32464         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
32465         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
32466         *jcc_btdi_mask_rex64.
32468 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
32470         * double-int.h (tree_to_double_int): Convert to macro.
32471         * double-int.c (tree_to_double_int): Remove.
32473 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
32475         PR debug/43762
32476         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
32477         with want_address 2 and in case a single element list might be
32478         possible, call it again with want_address 0.
32480 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
32482         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
32483         case 'W' print operands for HI mode.
32484         * config/h8300/h8300.h (Y0, Y2) : New constraints.
32485         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
32486         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
32487         * config/h8300/predicate.md (bit_register_indirect_operand): New.
32489         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
32491         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
32492         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
32493         #xx:3 and #xx:4 mode.
32495         * config/h8300/h8300.md (inverted load with HImode dest): Add
32496         support for H8300SX.
32498         * config/h8300/predicate.md (bit_operand): Allow immediate values that
32499         satisfy 'U' constraint.
32501 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32503         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
32504         * configure: Regenerate.
32505         * config.in: Regenerate.
32506         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
32507         works.
32509 2010-04-16  Richard Guenther  <rguenther@suse.de>
32511         * tree.h (struct tree_decl_minimal): Move pt_uid ...
32512         (struct tree_decl_common): ... here.
32513         (DECL_PT_UID): Adjust.
32514         (SET_DECL_PT_UID): Likewise.
32515         (DECL_PT_UID_SET_P): Likewise.
32517 2010-04-16  Richard Guenther  <rguenther@suse.de>
32519         PR tree-optimization/43572
32520         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
32521         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
32522         * tree-flow.h (is_call_clobbered): Remove.
32523         * tree-flow-inline.h (is_call_clobbered): Likewise.
32524         * tree-dfa.c (dump_variable): Do not dump call clobber state.
32525         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
32526         (execute_return_slot_opt): Adjust.
32527         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
32528         check for call clobbered vars here.
32529         (find_tail_calls): Move tailcall verification to the
32530         proper place.
32532 2010-04-16  Diego Novillo  <dnovillo@google.com>
32534         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
32536 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
32538         PR target/40603
32539         * config/arm/arm.md (cbranchqi4): New pattern.
32540         * config/arm/predicates.md (const0_operand,
32541         cbranchqi4_comparison_operator): New predicates.
32543 2010-04-16  Richard Guenther  <rguenther@suse.de>
32545         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
32546         (dump_gimple_stmt): Likewise.
32548 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
32550         * recog.h (struct recog_data): New field is_operator.
32551         (struct insn_operand_data): New field is_operator.
32552         * recog.c (extract_insn): Set recog_data.is_operator.
32553         * genoutput.c (output_operand_data): Emit code to set the
32554         is_operator field.
32555         * reload.c (find_reloads): Use it rather than testing for an
32556         empty constraint string.
32558         PR target/41514
32559         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
32560         If the previous insn is a cbranchsi4_insn with the same arguments,
32561         omit the compare instruction.
32563         * config/arm/arm.md (addsi3_cbranch): If destination is a high
32564         register, inputs must be low registers and we need a low register
32565         scratch.  Handle alternative 2 like alternative 3.
32567 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
32569         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
32570         don't call get_addr on both.  If one expression is a VALUE and
32571         the other a REG, check VALUE's locs if the REG isn't among them.
32573 2010-04-16  Christian Bruel  <christian.bruel@st.com>
32575         * config/sh/sh.h (sh_frame_pointer_required): New function.
32576         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
32577         (flag_omit_frame_pointer) Set.
32578         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
32579         (rounded_frame_size): Adjust size with outgoing_args_size.
32580         (sh_set_return_address): Must return from stack pointer.
32581         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
32582         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
32583         (ACCUMULATE_OUTGOING_ARGS): Define.
32584         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
32585         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
32587 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
32589         PR target/43471
32590         * config/sh/sh.c (sh_legitimize_reload_address): Use
32591         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
32592         Remove a unneeded check for offset_base.
32594 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
32596         * configure: Regenerated.
32598 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32600         * config/s390/s390.c (s390_call_save_register_used): Switch back
32601         to HARD_REGNO_NREGS.
32603 2010-04-15  Richard Guenther  <rguenther@suse.de>
32605         * alias.c (alias_set_subset_of): Handle alias-set zero
32606         child properly.
32608 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
32609             Julian Brown  <julian@codesourcery.com>
32611         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
32612         alternatives according to use of high and low regs.
32613         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
32614         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
32615         optimizing for size on Thumb-2.
32617 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
32619         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
32621 2010-04-15  Richard Guenther  <rguenther@suse.de>
32623         * tree-ssa-structalias.c (struct variable_info): Add
32624         is_fn_info flag.
32625         (new_var_info): Initialize it.
32626         (dump_constraints): Support printing last added constraints.
32627         (debug_constraints): Adjust.
32628         (dump_constraint_graph): Likewise.
32629         (make_heapvar_for): Check for NULL cfun.
32630         (get_function_part_constraint): New function.
32631         (get_fi_for_callee): Likewise.
32632         (find_func_aliases): Properly implement IPA PTA constraints.
32633         (process_ipa_clobber): New function.
32634         (find_func_clobbers): Likewise.
32635         (insert_into_field_list_sorted): Remove.
32636         (create_function_info_for): Properly allocate vars for IPA mode.
32637         Do not use insert_into_field_list_sorted.
32638         (create_variable_info_for): Properly generate constraints for
32639         global vars in IPA mode.
32640         (dump_solution_for_var): Always dump the solution.
32641         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
32642         (find_what_var_points_to): Adjust.
32643         (pt_solution_set): Change.
32644         (pt_solution_ior_into): New function.
32645         (pt_solution_empty_p): Export.
32646         (pt_solution_includes_global): Adjust.
32647         (pt_solution_includes_1): Likewise.
32648         (pt_solutions_intersect_1): Likewise.
32649         (dump_sa_points_to_info): Check some invariants.
32650         (solve_constraints): Move constraint dumping ...
32651         (compute_points_to_sets): ... here.
32652         (ipa_pta_execute): ... and here.
32653         (compute_may_aliases): Do not re-compute points-to info
32654         locally if IPA info is available.
32655         (ipa_escaped_pt): New global var.
32656         (ipa_pta_execute): Properly implement IPA PTA.
32657         * tree-into-ssa.c (dump_decl_set): Support dumping
32658         decls not in referenced-vars.
32659         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
32660         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
32661         (dump_points_to_solution): Likewise.
32662         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
32663         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
32664         (remap_gimple_stmt): Reset call clobber/use information if necessary.
32665         (copy_decl_to_var): Copy DECL_PT_UID.
32666         (copy_result_decl_to_var): Likewise.
32667         * tree.c (make_node_stat): Initialize DECL_PT_UID.
32668         (copy_node_stat): Copy it.
32669         * tree.h (DECL_PT_UID): New macro.
32670         (SET_DECL_PT_UID): Likewise.
32671         (DECL_PT_UID_SET_P): Likewise.
32672         (struct tree_decl_minimal): Add pt_uid member.
32673         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
32674         (pt_solution_empty_p): Declare.
32675         (pt_solution_set): Adjust.
32676         (ipa_escaped_pt): Declare.
32677         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
32678         * gimple-pretty-print.c (pp_points_to_solution): New function.
32679         (dump_gimple_call): Dump call clobber/use information.
32680         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
32681         * tree-pass.h (TDF_ALIAS): New dump option.
32682         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
32683         * doc/invoke.texi (-fipa-pta): Update documentation.
32685 2010-04-15  Richard Guenther  <rguenther@suse.de>
32687         * Makefile.in (OBJS-common): Add gimple-fold.o.
32688         (gimple-fold.o): New rule.
32689         * tree.h (maybe_fold_offset_to_reference,
32690         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
32691         prototypes ...
32692         * gimple.h: ... here.
32693         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
32694         may_propagate_address_into_dereference): Move prototypes ...
32695         * gimple.h: ... here.
32696         * tree-ssa-ccp.c (get_symbol_constant_value,
32697         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
32698         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
32699         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
32700         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
32701         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
32702         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
32703         gimplify_and_update_call_from_tree): Move ...
32704         * gimple-fold.c: ... here.  New file.
32705         (ccp_fold_builtin): Rename to ...
32706         (gimple_fold_builtin): ... this.
32707         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
32709 2010-04-15  Richard Guenther  <rguenther@suse.de>
32711         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
32712         fit_double_type, force_fit_type_double, add_double_with_sign,
32713         neg_double, mul_double_with_sign, lshift_double, rshift_double,
32714         lrotate_double, rrotate_double, div_and_round_double): Move ...
32715         * double-int.c: ... here.
32716         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
32717         add_double, neg_double, mul_double_with_sign, mul_double,
32718         lshift_double, rshift_double, lrotate_double, rrotate_double,
32719         div_and_round_double): Move prototypes ...
32720         * double-int.h: ... here.
32722 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
32724         PR target/43742
32725         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
32726         matching constraints to ensure inputs match the output.
32728 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
32730         PR target/43742
32731         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
32732         in an input-only operand.
32734 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
32736         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
32737         (double_int_not, double_int_lshift, double_int_rshift): Declare.
32738         (double_int_negative_p): Convert to static inline function.
32739         * double-int.c (double_int_lshift, double_int_lshift): New functions.
32740         (double_int_negative_p): Remove.
32741         * tree.h (lshift_double, rshift_double):
32742         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
32743         * fold-const.c (fold_convert_const_int_from_real,
32744         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
32745         (lshift_double): Change type of arith argument to bool.
32746         (rshift_double): Change type of arith argument to bool. Correct
32747         comment.
32748         * expmed.c (mask_rtx, lshift_value): (Ditto.).
32750 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
32752         PR target/21803
32753         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
32754         at the start and end of the then/else blocks, and omit them from the
32755         conversion.
32756         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
32757         argument; all callers changed.  Pass zero to old_insns_match_p instead.
32758         (flow_find_head_matching_sequence): New function.
32759         (old_insns_match_p): Check REG_EH_REGION notes for calls.
32760         * basic-block.h (flow_find_cross_jump,
32761         flow_find_head_matching_sequence): Declare functions.
32763 2010-04-14  Jason Merrill  <jason@redhat.com>
32765         PR c++/36625
32766         * c-common.c (attribute_takes_identifier_p): New fn.
32767         * c-common.h: Declare it.
32769 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32771         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
32772         splitter condition.
32773         (*udivmod<mode>4): Ditto.
32775 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32777         * config/i386/i386.md (maxmin_int): Rename code attribute from
32778         maxminiprefix and update all users.
32779         (maxmin_float): Ditto from maxminfprefix.
32780         (logic): Ditto from logicprefix.
32781         (absneg_mnemonic): Ditto from absnegprefix.
32782         * config/i386/mmx.md: Update all users of maxminiprefix,
32783         maxminfprefix and logicprefix for rename.
32784         * config/i386/sse.md: Ditto.
32785         * config/i386/sync.md (sync_<code><mode>): Update for
32786         logicprefix rename.
32788 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32790         PR 42966
32791         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
32792         warnings converted to errors.
32794 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32796         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
32797         used insn_type variable.
32798         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
32799         to avoid set-but-not-used warning.
32801 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32803         * df-core.c (df_ref_debug): Change format string placeholder
32804         from 0x%x to %#x.
32805         * dwarf2asm.c (dw2_asm_output_data_raw,
32806         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
32807         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
32808         * dwarf2out.c (output_cfi, output_cfi_directive,
32809         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
32810         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
32811         Ditto.
32812         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
32813         * print-rtl.c (print_rtx): Ditto.
32815 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
32817         PR middle-end/42694
32818         * builtins.c (expand_builtin_pow_root): New function to expand pow
32819         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
32820         series of sqrt and cbrt calls under -ffast-math.
32821         (expand_builtin_pow): Call it.
32823 2010-04-14  Michael Matz  <matz@suse.de>
32825         PR tree-optimization/42963
32826         * tree-cfg.c (touched_switch_bbs): New static variable.
32827         (group_case_labels_stmt): New function broken out from ...
32828         (group_case_labels): ... here, use the above.
32829         (start_recording_case_labels): Allocate touched_switch_bbs.
32830         (end_recording_case_labels): Deallocate it, call
32831         group_case_labels_stmt.
32832         (gimple_redirect_edge_and_branch): Remember index of affected BB.
32834 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32836         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
32837         from insn template.
32839 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32841         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
32843 2010-04-13  Jan Hubicka  <jh@suse.cz>
32845         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
32846         of optimized out static functions.
32847         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
32848         cost computation.  Also sanity check for overflows.
32849         (update_caller_keys): Update cgraph_edge_badness call; properly
32850         update fibheap and sanity check that it is up to date.
32851         (add_new_edges_to_heap): Update cgraph_edge_badness.
32852         (cgraph_decide_inlining_of_small_function): Likewise;
32853         add sanity checking that badness in heap is up to date;
32854         improve dumping of reason; Update badness of calls to the
32855         offline copy of function currently inlined; dump badness
32856         of functions not inlined because of unit growth limits.
32858 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
32860         PR middle-end/32628
32861         * c-common.c (pointer_int_sum): Disregard overflow that occured only
32862         because of sign-extension change when converting to sizetype here...
32863         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
32865         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
32866         the folding to constants.  Remove redundant final conversion.
32867         (fold_binary) <associate>: Do not associate if the re-association of
32868         constants alone overflows.
32869         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
32870         to the end of the list.
32871         (multiple_of_p) <COND_EXPR>: New case.
32873 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32875         * opt-functions.awk (opt_sanitized_name): New.
32876         (opt_enum): New.
32877         * optc-gen.awk: Use it
32878         * opth-gen.awk: Use it.
32880 2010-04-13  Martin Jambor  <mjambor@suse.cz>
32882         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
32883         (sra_modify_assign): Delete stmts loading dead data even if racc has no
32884         children.  Call replace_uses_with_default_def_ssa_name to handle
32885         SSA_NAES on lhs.
32887 2010-04-13  Michael Matz  <matz@suse.de>
32889         PR middle-end/43730
32890         * builtins.c (expand_builtin_interclass_mathfn): Also create
32891         a register if the predicate doesn't match.
32893 2010-04-13  Diego Novillo  <dnovillo@google.com>
32895         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
32896         * c-pch.c: Include timevar.h.
32897         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
32898         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
32899         * ggc-common.c: Include timevar.h.
32900         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
32901         * timevar.def (TV_PCH_SAVE): Define.
32902         (TV_PCH_CPP_SAVE): Define.
32903         (TV_PCH_PTR_REALLOC): Define.
32904         (TV_PCH_PTR_SORT): Define.
32905         (TV_PCH_RESTORE): Define.
32906         (TV_PCH_CPP_RESTORE): Define.
32908 2010-04-13  Michael Matz  <matz@suse.de>
32910         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
32911         into MINUS_EXPRs.
32912         (can_reassociate_p): New function.
32913         (break_up_subtract_bb, reassociate_bb): Use it.
32915 2010-04-13  Richard Guenther  <rguenther@suse.de>
32917         PR bootstrap/43737
32918         * builtins.c (c_readstr): Fix assert.
32920 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
32922         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
32923         when generating cltd insn.
32925         (*ashl<mode>3_1): Remove special handling for register operand 2.
32926         (*ashlsi3_1_zext): Ditto.
32927         (*ashlhi3_1): Ditto.
32928         (*ashlhi3_1_lea): Ditto.
32929         (*ashlqi3_1): Ditto.
32930         (*ashlqi3_1_lea): Ditto.
32931         (*<shiftrt_insn><mode>3_1): Ditto.
32932         (*<shiftrt_insn>si3_1_zext): Ditto.
32933         (*<shiftrt_insn>qi3_1_slp): Ditto.
32934         (*<rotate_insn><mode>3_1): Ditto.
32935         (*<rotate_insn>si3_1_zext): Ditto.
32936         (*<rotate_insn>qi3_1_slp): Ditto.
32938 2010-04-13  Richard Guenther  <rguenther@suse.de>
32940         * tree-ssa-structalias.c (callused_id): Remove.
32941         (call_stmt_vars): New.
32942         (get_call_vi): Likewise.
32943         (lookup_call_use_vi): Likewise.
32944         (lookup_call_clobber_vi): Likewise.
32945         (get_call_use_vi): Likewise.
32946         (get_call_clobber_vi): Likewise.
32947         (make_transitive_closure_constraints): Likewise.
32948         (handle_const_call): Adjust to do per-call call-used handling.
32949         (handle_pure_call): Likewise.
32950         (find_what_var_points_to): Remove general callused handling.
32951         (init_base_vars): Likewise.
32952         (init_alias_vars): Initialize call_stmt_vars.
32953         (compute_points_to_sets): Process call-used and call-clobbered
32954         vars for call statements.
32955         (delete_points_to_sets): Free call_stmt_vars.
32957 2010-04-13  Richard Guenther  <rguenther@suse.de>
32959         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32960         Only add RW dependence for dependence distance zero.
32961         Adjust maximal vectorization factor according to dependences.
32962         Move alignment handling ...
32963         (vect_find_same_alignment_drs): ... here.  New function.
32964         (vect_analyze_data_ref_dependences): Adjust.
32965         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
32966         (vect_analyze_data_refs): Adjust minimal vectorization factor
32967         according to data references.
32968         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
32969         dependences before determining the vectorization factor.
32970         Analyze alignment after determining the vectorization factor.
32971         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
32972         dependences before alignment.
32973         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
32974         Adjust prototype.
32975         (vect_analyze_data_refs): Likewise.
32976         (MAX_VECTORIZATION_FACTOR): New define.
32978 2010-04-13  Duncan Sands  <baldrick@free.fr>
32980         * except.h (lang_eh_type_covers): Remove.
32981         * except.c (lang_eh_type_covers): Likewise.
32983 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32984             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32986         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
32987         * config/s390/s390.c: Replace UNTIS_PER_WORD with
32988         UNITS_PER_LONG where it is ABI relevant.
32989         (s390_return_addr_rtx): Likewise.
32990         (s390_back_chain_rtx): Likewise.
32991         (s390_frame_area): Likewise.
32992         (s390_frame_info): Likewise.
32993         (s390_initial_elimination_offset): Likewise.
32994         (save_gprs): Likewise.
32995         (s390_emit_prologue): Likewise.
32996         (s390_emit_epilogue): Likewise.
32997         (s390_function_arg_advance): Likewise.
32998         (s390_function_arg): Likewise.
32999         (s390_va_start): Likewise.
33000         (s390_gimplify_va_arg): Likewise.
33001         (s390_function_profiler): Likewise.
33002         (s390_optimize_prologue): Likewise.
33003         (s390_rtx_costs): Likewise.
33004         (s390_secondary_reload): Likewise.
33005         (s390_promote_function_mode): Likewise.
33006         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
33007         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
33008         registers available.
33009         (s390_unwind_word_mode): New function.
33010         (s390_function_value): Split 64 bit values into register pair if
33011         used as return value.
33012         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
33013         function call parameters.  Handle parallels.
33014         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
33015         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
33016         (DWARF_CIE_DATA_ALIGNMENT): New macro.
33017         (s390_expand_setmem): Remove unused variable src_addr.
33018         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
33019         deal with 64 bit registers.
33020         * config/s390/s390.h: Define __zarch__ predefined macro.
33021         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
33022         (UNITS_PER_LONG): New macro.
33023         * libjava/include/s390-signal.h: Define extended ucontext
33024         structure containing the upper halfs of the 64 bit registers.
33026 2010-04-13  Simon Baldwin  <simonb@google.com>
33028         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
33030 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
33032         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
33033         rvalue on the RHS if the LHS is of a non-renamable type.
33034         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
33036 2010-04-13  Matthias Klose  <doko@ubuntu.com>
33038         * gcc.c (cc1_options): Handle -iplugindir before processing
33039         the cc1 spec. Only add -iplugindir once.
33040         (cpp_unique_options): Add -iplugindir option if -fplugin* options
33041         found.
33042         * common.opt (iplugindir): Remove `Separate' property, initialize.
33043         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
33044         option.
33045         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
33046         (distclean): Remove plugin dir.
33047         * doc/invoke.texi: Document -iplugindir.
33049 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
33051         * doc/plugins.texi (Loading Plugins): Document short
33052         -fplugin=foo option.
33053         (Plugin API): Mention default_plugin_dir_name function.
33055         * gcc.c (find_file_spec_function): Add new declaration.
33056         (static_spec_func): Use it for "find-file".
33057         (find_file_spec_function): Add new function.
33058         (cc1_options): Add -iplugindir option if -fplugin* options found.
33060         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
33062         * plugin.c (add_new_plugin): Updated comment, and handle short
33063         plugin name.
33064         (default_plugin_dir_name): Added new function.
33066         * common.opt (iplugindir): New option to set the plugin directory.
33068 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
33070         * config/i386/i386.md (any_rotate): New code iterator.
33071         (rotate_insn): New code attribute.
33072         (rotate): Ditto.
33073         (SWIM124): New mode iterator.
33074         (<rotate_insn>ti3): New expander.
33075         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
33076         any_rotate code iterator.
33077         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
33078         using any_rotate code iterator and SWIM124 mode iterator.
33079         (ix86_rotlti3): New insn_and_split pattern.
33080         (ix86_rotrti3): Ditto.
33081         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
33082         ix86_rotl{di,ti}3 patterns.
33083         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
33084         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
33085         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
33086         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
33087         code iterator and SWI mode iterator.
33088         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
33089         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
33090         code iterator.
33091         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
33092         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
33093         (bswap rotatert splitter): Add splitter.
33094         (bswap splitter): Macroize splitter using any_rotate code iterator.
33095         Add insn predicate to split only for TARGET_USE_XCHGB or when
33096         optimizing function for size.
33098 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
33100         * config/pa/pa.c (emit_move_sequence): Remove use of
33101         deleted variable flag_argument_noalias.
33103 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33105         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
33106         configurations.
33107         Add to unsupported targets list.
33108         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
33109         sparc*-sun-solaris2.[567]* from target lists.
33110         * configure: Regenerate.
33111         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
33112         removal.
33113         Remove Solaris 7 patch references.
33114         (Specific, sparc-sun-solaris2.7): Removed.
33115         (sparc-sun-solaris2*): Update Solaris 7 example.
33116         (sparc64-*-solaris2*): Likewise.
33118 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33120         * config.build (alpha*-dec-osf4*): Remove.
33121         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
33122         of obsolete configurations.
33123         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
33124         support.
33125         * config/alpha/t-osf4: Renamed to ...
33126         * config/alpha/t-osf5: ... this.
33127         * config/alpha/osf.h: Renamed to ...
33128         * config/alpha/osf5.h: ... this.
33129         Merged old osf5.h contents.
33130         Update comments.
33131         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
33132         (EXTRA_SPECS): Removed.
33133         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
33134         reflect removal of Tru64 UNIX V4.0/V5.0 support.
33135         Document that.
33137 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33139         * doc/contrib.texi (Contributors, Rainer Orth): Update.
33141 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
33143         PR/43702
33144         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
33145         __thiscall convention.
33147 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
33149         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
33150         orig_base.
33151         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
33153 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
33155         * function.c (assign_parms_initialize_all): Add unused attribute
33156         to fntype.
33158 2010-04-12  Richard Guenther  <rguenther@suse.de>
33160         * gsstruct.def (GSS_CALL): New.
33161         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
33162         * gimple.h: Include tree-ssa-alias.h.
33163         (struct gimple_statement_call): New.
33164         (union gimple_statement_struct_d): Add gimple_call member.
33165         (gimple_call_reset_alias_info): Declare.
33166         (gimple_call_use_set): New function.
33167         (gimple_call_clobber_set): Likewise.
33168         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
33169         * gimple.c (gimple_call_reset_alias_info): New function.
33170         (gimple_build_call_1): Call it.
33171         * lto-streamer-in.c (input_gimple_stmt): Likewise.
33172         * tree-inline.c (remap_gimple_stmt): Likewise.
33173         (expand_call_inline): Remove callused handling.
33174         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
33175         * tree-dfa.c (dump_variable): Likewise.
33176         * tree-parloops.c (parallelize_loops): Likewise.
33177         * tree-ssa.c (init_tree_ssa): Likewise.
33178         (delete_tree_ssa): Likewise.
33179         * tree-flow-inline.h (is_call_used): Remove.
33180         * tree-flow.h (struct gimple_df): Remove callused member.
33181         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
33182         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
33183         (ref_maybe_used_by_call_p_1): Simplify.
33184         (call_may_clobber_ref_p_1): Likewise.
33185         * tree-ssa-structalias.c (compute_points_to_sets): Set
33186         the call stmt used and clobbered sets.
33187         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
33188         (find_tail_calls): Verify the tail call.
33190 2010-04-12  Richard Guenther  <rguenther@suse.de>
33192         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
33193         single-iteration always-inline inlining.
33194         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
33195         (cgraph_decide_inlining): Do not handle always-inline specially.
33196         (try_inline): Remove always-inline cycle detection special case.
33197         Do not recurse on always-inlines.
33198         (cgraph_early_inlining): Do not iterate if not optimizing.
33199         (cgraph_gate_early_inlining): remove.
33200         (pass_early_inline): Run unconditionally.
33201         (gate_cgraph_decide_inlining): New function.
33202         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
33203         not inlining or optimizing.
33204         (cgraph_decide_inlining_of_small_functions): Also consider
33205         always-inline functions.
33206         (cgraph_default_inline_p): Return true for nodes which should
33207         disregard inline limits.
33208         (estimate_function_body_sizes): Assume zero size and time for
33209         nodes which are marked as disregarding inline limits.
33210         (cgraph_decide_recursive_inlining): Do not perform recursive
33211         inlining on always-inline nodes.
33213 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
33215         PR bootstrap/43699
33216         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
33217         for exprs satisfying handled_component_p.
33219 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
33221         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
33222         non-constant aggregate elements.
33224         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
33225         is a real initialization.
33227 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
33229         PR c/36774
33230         * c-decl.c (start_function): Move forward check for nested function.
33232 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
33234         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
33235         * config/sh/sh.c: Include reload.h.
33236         (sh_legitimize_reload_address): New.
33237         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
33238         sh_legitimize_reload_address.
33240 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
33242         * config/sh/sh.md (*movqi_pop): New insn pattern.
33243         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
33245 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33247         * config/i386/i386.md (any_shiftrt): New code iterator.
33248         (shiftrt_insn): New code attribute.
33249         (shiftrt): Ditto.
33250         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
33251         using any_shiftrt code iterator.
33252         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
33253         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
33254         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
33255         pattern from corresponding peephole2 patterns.
33256         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
33257         using any_shiftrt code iterator.
33258         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
33259         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
33260         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
33261         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
33262         *{ashr,lshr}<mode>3_cmp_zext.
33263         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
33265 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33267         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
33268         scratch register.
33269         (*lshr<mode>3_cconly): Ditto.
33271 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
33273         * config/i386/i386.md (lshr<mode>3): Macroize expander from
33274         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33275         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33276         pattern from *lshr{di,ti}3_1 and corresponding splitters using
33277         DWI mode iterator.
33278         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33279         from corresponding peephole2 patterns.
33280         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
33281         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
33282         and *lshrdi3_1_rex64 using SWI mode iterator.
33283         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
33284         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
33285         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
33286         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
33287         and *lshrdi3_cmp_rex64 using SWI mode iterator.
33288         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
33289         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
33290         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
33291         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
33292         SWI mode iterator.
33294 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
33296         * config/i386/i386.md (ashr<mode>3): Macroize expander from
33297         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
33298         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33299         pattern from *ashr{di,ti}3_1 and corresponding splitters using
33300         DWI mode iterator.
33301         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
33302         from corresponding peephole2 patterns.
33303         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
33304         (ashrsi3_cvt): Rename from ashrsi3_31.
33305         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
33306         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
33307         and x86_64_shift_adj_3 using SWI48 mode iterator.
33308         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
33309         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
33310         and *ashrdi3_1_rex64 using SWI mode iterator.
33311         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
33312         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
33313         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
33314         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
33315         and *ashrdi3_cmp_rex64 using SWI mode iterator.
33316         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
33317         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
33318         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
33319         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
33320         SWI mode iterator.
33321         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
33322         * config/i386/i386.c (ix86_split_ashr): Update for renamed
33323         x86_shift<mode>_adj_3 expanders.
33325 2010-04-10  Wei Guozhi  <carrot@google.com>
33327         PR target/42601
33328         * config/arm/arm.c (arm_pic_static_addr): New function.
33329         (legitimize_pic_address): Call arm_pic_static_addr when it detects
33330         a static symbol.
33331         (arm_output_addr_const_extra): Output expression for new pattern.
33332         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
33334 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
33336         * ira-costs.c (record_reg_classes): Ignore alternatives that are
33337         not enabled.
33339         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
33340         * web.c: Include "insn-config.h" and "recog.h".
33341         (union_match_dups): New function.
33342         (web_main): Call it.
33343         (union_defs): Don't try to recognize match_dups.
33345         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
33346         if doing so would replace the entire pattern.
33348 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
33350         PR target/43707
33351         PR target/43709
33352         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
33353         and splitter pattern.  Change splitter operand 1 predicate to
33354         nonmemory_operand.
33356 2010-04-09  Martin Jambor  <mjambor@suse.cz>
33358         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
33359         lattices are addresses of CONST_DECLs with the same initial value.
33360         (ipcp_print_all_lattices): Print values of CONST_DECLs.
33361         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
33363 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
33364             Bernd Schmidt  <bernds@codesourcery.com>
33366         * loop-invariant.c (replace_uses): New static function.
33367         (move_invariant_reg): Use it to ensure we can replace the uses.
33369 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
33371         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
33372         function template.
33373         (picochip_override_options): Enable section anchors only above -O1.
33374         (picochip_reorg): Fixed a couple of build warnings.
33376 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33378         * configure.ac (plugin -rdynamic test): Log result.
33379         * configure: Regenerate.
33380         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
33381         (RDYNAMIC_SPEC): Define.
33382         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
33384 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33386         * configure.ac: Determine Sun ld version numbers.
33387         (comdat_group): Restrict GNU ld version checks to gld.
33388         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
33389         (enable_comdat): Support --enable-comdat.
33390         * configure: Regenerate.
33391         * doc/install.texi (Configuration): Document --enable-comdat.
33393 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33395         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
33396         * config/sol2-gld.h: ... here.
33397         * config.gcc (sparc*-*-solaris2*): Reflect this.
33398         (i[34567]86-*-solaris2*): Use it.
33400 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
33402         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
33403         setup_clocks_p.
33404         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
33406 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33408         PR 42965
33409         * diagnostic.c (diagnostic_initialize): Initialize
33410         some_warnings_are_errors.
33411         (diagnostic_finish): New.
33412         (diagnostic_action_after_output): Call it before exiting.
33413         (diagnostic_report_diagnostic): Do not print message here. Set
33414         some_warnings_are_errors.
33415         * diagnostic.h (diagnostic_context): Delete
33416         issue_warnings_are_errors_message. Add some_warnings_are_errors.
33417         (diagnostic_finish): Declare.
33418         * toplev.c (toplev_main): Call it before exit.
33420 2010-04-09  Jason Merrill  <jason@redhat.com>
33422         PR c++/42623
33423         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
33424         for incomplete type.
33426         PR c++/41788
33427         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
33428         based on a warning flag.
33430 2010-04-09  Richard Guenther  <rguenther@suse.de>
33432         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
33434 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
33436         PR bootstrap/43684
33437         * varasm.c (default_assemble_visibility): Wrap vars that are
33438         set, but unused, by targets without GAS.
33439         * config/rs6000/rs6000.c (paired_emit_vector_compare):
33440         Remove set, but unused, vars.
33441         (rs6000_legitimize_tls_address): Likewise.
33442         (altivec_expand_dst_builtin): Likewise.
33443         * config/darwin.c (machopic_classify_symbol): Likewise.
33444         (machopic_indirection_name): Likewise.
33446 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
33448         * config/i386/i386.md (DWI): New mode iterator.
33449         (S): New mode attribute.
33450         (shift_operand): Ditto.
33451         (shift_immediate_operand): Ditto.
33452         (ashl_input_operand): Ditto.
33453         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
33454         using SDWIM mode iterator.
33455         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
33456         pattern from *ashl{di,ti}3_1 and corresponding splitters using
33457         DWI mode iterator.
33458         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
33459         from corresponding peephole2 patterns.
33460         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
33461         and x86_64_shift_adj_1 using SWI48 mode iterator.
33462         (x86_shift<mode>_adj_2): Ditto.
33463         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
33464         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
33465         using SWI48 mode iterator.
33466         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
33467         *ashldi3_cmp_rex64 using SWI mode iterator.
33468         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
33469         *ashldi3_cconly_rex64 using SWI mode iterator.
33470         * config/i386/i386.c (ix86_split_ashl): Update for renamed
33471         x86_shift<mode>_adj_{1,2}.
33472         (ix86_split_ashr): Ditto.
33473         (ix86_split_lshr): Ditto.
33475 2010-04-09  Richard Guenther  <rguenther@suse.de>
33477         * target.h (builtin_conversion): Pass in input and output types.
33478         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
33479         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
33480         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
33481         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
33483         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
33484         Handle AVX modes.
33485         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
33487 2010-04-09  Richard Guenther  <rguenther@suse.de>
33489         PR target/43152
33490         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
33492 2010-04-09  Richard Guenther  <rguenther@suse.de>
33494         * tree-vectorizer.h (struct _stmt_vec_info): Document
33495         that vectype is the type of the LHS.
33496         (supportable_widening_operation, supportable_narrowing_operation):
33497         Get both input and output vector types as arguments.
33498         (vect_is_simple_use_1): Declare.
33499         (get_same_sized_vectype): Likewise.
33500         * tree-vect-loop.c (vect_determine_vectorization_factor):
33501         Set STMT_VINFO_VECTYPE to the vector type of the def.
33502         (vectorizable_reduction): Adjust.
33503         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
33504         Adjust.  Specify the output vector type.
33505         (vect_pattern_recog_1): Adjust.
33506         * tree-vect-stmts.c (get_same_sized_vectype): New function.
33507         (vectorizable_call): Adjust.
33508         (vectorizable_conversion): Likewise.
33509         (vectorizable_operation): Likewise.
33510         (vectorizable_type_demotion): Likewise.
33511         (vectorizable_type_promotion): Likewise.
33512         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
33513         the def.
33514         (vect_is_simple_use_1): New function.
33515         (supportable_widening_operation): Get both input and output
33516         vector types.
33517         (supportable_narrowing_operation): Likewise.
33518         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
33520 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
33522         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
33523         __thiscall and _thiscall as predefined macros.
33524         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
33525         thiscall attribute handling.
33526         (ix86_comp_type_attributes): Likewise.
33527         (ix86_function_regparm): Likewise.
33528         (ix86_return_pops_args): Likewise.
33529         (init_cumulative_args): Likewise.
33530         (find_drap_reg): Likewise.
33531         (ix86_static_chain): Likewise.
33532         (x86_this_parameter): Likewise.
33533         (x86_output_mi_thunk): Likewise.
33534         (ix86_attribute_table): Add description for thiscall attribute.
33535         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
33536         * doc/extend.texi: Add documentation for thiscall.
33538 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33540         PR c++/28584
33541         * c.opt (Wint-to-pointer-cast): Available in C++.
33542         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
33544 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
33546         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
33547         * calls.c (expand_call): Pass the function type to aggregate_value_p.
33548         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
33549         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
33550         function type instead.  Reorder and simplify checks.
33552         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
33554 2010-04-08  Jing Yu  <jingyu@google.com>
33555             Zdenek Dvorak  <ook@ucw.cz>
33557         PR tree-optimization/42720
33558         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
33559         loop unswitch conditions here from ...
33560         (tree_unswitch_single_loop): ... here.
33562 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
33564         * tree-if-conv.c: Fix comments and simplify logic.
33566 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
33568         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
33569         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
33570         (main_tree_if_conversion): Update call to tree_if_conversion.
33572 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33574         PR 42485
33575         * doc/invoke.texi (-b,-V): Delete.
33576         * doc/tm.texi: Do not mention -b.
33577         * gcc.c (display_help): Delete -b and -V.
33578         (process_command): Delete -b and -V.
33579         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
33581 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
33582             Wolfgang Gellerich  <gellerich@de.ibm.com>
33584         Implement target hook for loop unrolling
33585         * target.h (loop_unroll_adjust): Add a new target hook function.
33586         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
33587         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
33588         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
33589         (s390_loop_unroll_adjust): Implement the new target hook for s390.
33590         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
33591         target hook.
33592         (decide_unroll_stupid): Likewise.
33594 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33596         PR target/43643
33597         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
33599 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33601         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
33602         (Specific, *-*-solaris2*): Likewise.
33603         Don't prefer Sun as over GNU as.
33605 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
33607         * config/s390/s390.c (override_options): Adjust the z10 defaults
33608         for max-unroll-times, max-completely-peeled-insns
33609         and max-completely-peel-times.
33611 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33613         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
33614         instructions for z10.
33615         (s390_expand_setmem): Likewise.
33616         (s390_expand_cmpmem): Likewise.
33618 2010-04-08  Richard Guenther  <rguenther@suse.de>
33620         PR tree-optimization/43679
33621         * tree-ssa-pre.c (eliminate): Only propagate copies.
33623 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
33625         PR bootstrap/43681
33626         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
33627         set but not used variable warning.
33629 2010-04-08  Wei Guozhi  <carrot@google.com>
33631         PR target/41653
33632         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
33633         (arm_size_rtx_costs): Call the new function when optimized for size.
33635 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
33637         PR debug/43670
33638         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
33639         op0 is not a MEM, just return NULL instead of assertion
33640         failure.
33641         (discover_nonconstant_array_refs): Don't walk debug stmts.
33643 2010-04-08  Doug Kwan  <dougkwan@google.com>
33645         * configure.ac: Recognize gold and do not use its version number
33646         to test ld features.
33647         * configure: Regenerate.
33649 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
33651         PR middle-end/40815
33652         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
33653         (negate_value): Move code to push elements to broken_up_substracts ...
33654         (eliminate_plus_minus_pair): ... here.  Push operands that have no
33655         negative pair to plus_negates.
33656         (repropagate_negates, init_reassoc, fini_reassoc): Update.
33658 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33660         * doc/install.texi (Configuration): Move description of
33661         --enable-lto, --with-libelf*, --enable-gold from Java section to
33662         general section.
33664         * doc/generic.texi (Working with declarations)
33665         (Function Properties, C and C++ Trees): Fix typos.
33666         * doc/sourcebuild.texi (Top Level): Likewise.
33668 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
33670         PR c/18624
33671         * tree.h (DECL_READ_P): Define.
33672         (struct tree_decl_common): Add decl_read_flag.
33673         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
33674         a set but not used warning.
33675         (merge_decls): Merge DECL_READ_P flag.
33676         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
33677         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
33678         * c-common.c (handle_used_attribute, handle_unused_attribute):
33679         Likewise.
33680         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
33681         New prototypes.
33682         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
33683         New functions.
33684         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
33685         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
33686         c_parser_binary_expression, c_parser_cast_expression,
33687         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
33688         Call default_function_array_read_conversion instead of
33689         default_function_array_conversion where needed.
33690         (c_parser_unary_expression, c_parser_conditional_expression,
33691         c_parser_postfix_expression_after_primary, c_parser_initelt):
33692         Likewise.  Call mark_exp_read where needed.
33693         (c_parser_statement_after_labels, c_parser_asm_operands,
33694         c_parser_typeof_specifier, c_parser_sizeof_expression,
33695         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
33696         where needed.
33697         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
33698         New.
33699         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
33700         (warn_unused_but_set_parameter): Default to warn_unused
33701         && extra_warnings.
33702         * doc/invoke.texi: Document -Wunused-but-set-variable and
33703         -Wunused-but-set-parameter.
33705         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
33706         used count variable.
33707         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
33708         when operandN variables aren't used in the body of the expander
33709         or splitter.
33710         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
33711         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
33712         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
33713         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
33714         FOR_EACH_IMM_USE_ON_STMT): Likewise.
33715         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
33716         * tree.c (PROCESS_ARG): Likewise.
33718 2010-04-07  Simon Baldwin  <simonb@google.com>
33720         * diagnostic.h (diagnostic_override_option_index): New macro to
33721         set a diagnostic's option_index.
33722         * c-tree.h (c_cpp_error): Add warning reason argument.
33723         * opts.c (_warning_as_error_callback): New.
33724         (register_warning_as_error_callback): Store callback for
33725         warnings enabled via enable_warning_as_error.
33726         (enable_warning_as_error): Call callback, minor code tidy.
33727         * opts.h (register_warning_as_error_callback): Declare.
33728         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
33729         response to -Werror=.
33730         (c_common_init_options): Register warning_as_error_callback in opts.c.
33731         * common.opt: Add -Wno-cpp option.
33732         * c-common.c (struct reason_option_codes_t): Map cpp warning
33733         reason codes to gcc option indexes.
33734         * (c_option_controlling_cpp_error): New function, lookup the gcc
33735         option index for a cpp warning reason code.
33736         * (c_cpp_error): Add warning reason argument, call
33737         c_option_controlling_cpp_error for diagnostic_override_option_index.
33738         * doc/invoke.texi: Document -Wno-cpp.
33740 2010-04-07  Richard Guenther  <rguenther@suse.de>
33742         * ipa-reference.c (mark_load): Use get_base_address.
33743         (mark_store): Likewise.
33745         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
33746         inserting GIMPLE_NOPs into the IL.
33747         * tree-ssa-structalias.c (get_constraint_for_component_ref):
33748         Explicitly strip handled components and indirect references.
33750         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
33751         folding address expressions.
33752         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
33753         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
33754         operand_equal_p to compare decls.
33755         (ptr_deref_may_alias_decl_p): Likewise.
33756         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
33757         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
33758         Handle reversed comparison ops.
33759         * tree-sra.c (asm_visit_addr): Use get_base_address.
33760         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
33761         * ipa-reference.c (mark_address): Use get_base_address.
33763 2010-04-07  Richard Guenther  <rguenther@suse.de>
33765         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
33766         Propagate constants everywhere.
33768 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
33770         PR debug/43516
33771         * tree.c (MAX_INT_CACHED_PREC): Define.
33772         (nonstandard_integer_type_cache): New array.
33773         (build_nonstandard_integer_type): Cache results for precision
33774         <= MAX_INT_CACHED_PREC.
33776 2010-04-07  Richard Guenther  <rguenther@suse.de>
33778         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
33779         -fargument-noalias-global, -fargument-noalias-anything): Remove.
33780         * common.opt: Likewise.
33781         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
33782         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
33783         (nonoverlapping_memrefs_p): Likewise.
33784         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
33785         * opts.c (common_handle_option): Handle OPT_fargument_alias,
33786         OPT_fargument_noalias, OPT_fargument_noalias_anything and
33787         OPT_fargument_noalias_global for backward compatibility.
33789 2010-04-07  Richard Guenther  <rguenther@suse.de>
33791         PR tree-optimization/43270
33792         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
33793         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
33794         * tree-ssa-pre.c (phi_translate_1): Adjust.
33795         (fully_constant_expression): Split out vn_reference handling to ...
33796         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
33797         Fold reads from constant strings.
33798         (vn_reference_lookup): Handle fully constant references.
33799         (vn_reference_lookup_pieces): Likewise.
33800         * Makefile.in (expmed.o-warn): Add -Wno-error.
33802 2010-04-07  Martin Jambor  <mjambor@suse.cz>
33804         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
33806 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
33808         PR driver/41594
33809         * gcc.c: Add -static-libstdc++ to list of recognized options.
33811 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33813         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
33815 2010-04-07  Richard Guenther  <rguenther@suse.de>
33817         PR middle-end/42617
33818         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
33819         bases build simple mem attributes to retain points-to information.
33821 2010-04-07  Richard Guenther  <rguenther@suse.de>
33823         PR middle-end/42617
33824         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
33825         preserve points-to related information.
33827 2010-04-07  Richard Guenther  <rguenther@suse.de>
33829         PR middle-end/42617
33830         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
33831         discard plain indirect references.
33832         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
33833         * tree.c (tree_nop_conversion): Likewise.
33835 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
33837         PR debug/43628
33838         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
33840 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
33842         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
33843         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
33845 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33847         * tree-if-conv.c: Fix indentation and comments.
33849 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33851         * tree-if-conv.c: Sort static functions in topological order.
33853 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33855         * tree-if-conv.c: Fix indentation and comments.
33857 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33859         PR middle-end/43519
33860         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
33861         lang_hooks.types.type_for_size instead of
33862         build_nonstandard_integer_type.
33863         When converting an unsigned type to signed, double its precision.
33864         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
33865         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
33866         (graphite_create_new_loop_guard): When ub + 1 wraps around,
33867         use lb <= ub.
33869 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33871         PR middle-end/43519
33872         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
33873         POINTER_PLUS_EXPR for pointer types.
33875 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33877         PR middle-end/43519
33878         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
33879         * graphite-clast-to-gimple.c: Include langhooks.h.
33880         (max_signed_precision_type): New.
33881         (max_precision_type): Takes two types as arguments.
33882         (precision_for_value): New.
33883         (precision_for_interval): New.
33884         (gcc_type_for_interval): New.
33885         (gcc_type_for_value): New.
33886         (gcc_type_for_clast_term): New.
33887         (gcc_type_for_clast_red): New.
33888         (gcc_type_for_clast_bin): New.
33889         (gcc_type_for_clast_expr): Split up into several functions.
33890         (gcc_type_for_clast_eq): Rewritten.
33891         (compute_bounds_for_level): New.
33892         (compute_type_for_level_1): New.
33893         (compute_type_for_level): New.
33894         (gcc_type_for_cloog_iv): Removed.
33895         (gcc_type_for_iv_of_clast_loop): Rewritten.
33896         (graphite_create_new_loop): Compute the lower and upper bound types
33897         with gcc_type_for_clast_expr.
33898         (graphite_create_new_loop_guard): Same.
33899         (find_cloog_iv_in_expr): Removed.
33900         (compute_cloog_iv_types_1): Removed.
33901         (compute_cloog_iv_types): Removed.
33902         (gloog): Do not call compute_cloog_iv_types.
33903         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
33904         GBB_CLOOG_IV_TYPES.
33905         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
33906         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
33907         (GBB_CLOOG_IV_TYPES): Removed.
33909 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33911         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
33912         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
33913         (detect_commutative_reduction): Same.
33915 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33917         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
33918         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
33919         argument.
33920         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
33921         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
33922         (rewrite_commutative_reductions_out_of_ssa): Same.
33923         * passes.c (execute_function_todo): Call verify_ssa for every pass
33924         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
33925         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
33926         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
33927         with an extra argument.
33928         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
33929         verify_ssa only when the extra argument is true.
33930         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
33931         with an extra argument.
33932         (tree_transform_and_unroll_loop): Same.
33934 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33936         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
33937         for all the passes of the LNO having LOOP_CLOSED_SSA.
33938         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
33939         * tree-loop-distribution.c (pass_loop_distribution): Same.
33940         * tree-pass.h (TODO_verify_loops): Removed.
33941         * tree-ssa-loop.c (pass_tree_loop_init): Same.
33942         (pass_lim): Same.
33943         (pass_tree_unswitch): Same.
33944         (pass_predcom): Same.
33945         (pass_vectorize): Same.
33946         (pass_linear_transform): Same.
33947         (pass_graphite_transforms): Same.
33948         (pass_iv_canon): Same.
33949         (pass_complete_unroll): Same.
33950         (pass_complete_unrolli): Same.
33951         (pass_parallelize_loops): Same.
33952         (pass_loop_prefetch): Same.
33953         (pass_iv_optimize): Same.
33955 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
33957         PR middle-end/32824
33958         * passes.c (init_optimization_passes): Move pass_lim before
33959         pass_copy_prop and pass_dce_loop.
33961 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
33963         PR target/43667
33964         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
33965         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
33966         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
33967         MULTI_* defines for 4 argument vpermil2p* builtins.
33969 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
33971         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
33972         * config/i386/i386.c (x86_maybe_negate_const_int): New.
33973         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
33974         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
33975         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
33976         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
33977         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
33978         Use x86_maybe_negate_const_int to output insn mnemonic.
33979         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
33980         check from instruction predicate.  Update comments.
33981         * config/i386/sync.md (sync_add<mode>): Use
33982         x86_maybe_negate_const_int to output insn mnemonic.
33984 2010-04-06  Jan Hubicka  <jh@suse.cz>
33986         PR tree-optimization/42906
33987         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
33988         IGNORE_SELF argument.  Set visited_control_parents for fully
33989         processed BBs.
33990         (find_obviously_necessary_stmts): Update call of
33991         mark_control_dependent_edges_necessary.
33992         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
33994 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
33996         * config/i386/i386.md: Remove comment about 'e' and 'E'
33997         operand modifier.
33999 2010-04-06  Richard Guenther  <rguenther@suse.de>
34001         PR tree-optimization/43627
34002         * tree-vrp.c (extract_range_from_unary_expr): Widenings
34003         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
34004         not varying.
34006 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
34008         * BASE-VER: Change to 4.6.0.
34010         PR target/43638
34011         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
34012         handling.
34014 2010-04-06  Richard Guenther  <rguenther@suse.de>
34016         PR middle-end/43661
34017         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
34019 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34021         * doc/invoke.texi (Optimize Options): Document that LTO
34022         won't remove object access purely due to incompatible
34023         declarations.
34025 2010-04-04  Matthias Klose  <doko@ubuntu.com>
34027         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
34028         Initialize variable.
34030 2010-04-03  Richard Guenther  <rguenther@suse.de>
34032         PR middle-end/42509
34033         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
34034         require a non-NULL MEM_OFFSET.
34036 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
34038         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
34039         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
34040         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
34041         config/alpha/predicates.md, config/arm/arm.md,
34042         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
34043         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
34044         config/darwin9.h, config/darwin.c, config/darwin.h,
34045         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
34046         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
34047         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
34048         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
34049         config/mips/mips.md, config/mn10300/mn10300.c,
34050         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
34051         config/rs6000/aix.h, config/rs6000/dfp.md,
34052         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
34053         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
34054         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
34055         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
34056         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
34057         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
34058         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
34059         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
34060         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
34061         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
34062         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
34063         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
34064         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
34065         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
34066         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
34067         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
34068         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
34069         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
34070         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
34071         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
34072         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
34073         opt-functions.awk, opth-gen.awk, params.def, passes.c,
34074         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
34075         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
34076         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
34077         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
34078         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
34079         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
34080         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
34081         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
34082         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
34083         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
34084         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
34085         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
34086         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
34087         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
34089 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34091         PR other/43620
34092         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
34093         * aclocal.m4: Regenerate.
34095 2010-04-02  Richard Guenther  <rguenther@suse.de>
34097         PR tree-optimization/43629
34098         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
34099         if we have seen a constant value.
34101 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
34103         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
34105 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
34107         PR target/43469
34108         * arm.c (legitimize_tls_address): Adjust call to
34109         gen_tls_load_dot_plus_four.
34110         (arm_note_pic_base): New function.
34111         (arm_cannot_copy_insn_p): Use it.
34112         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
34113         constraint.
34115 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34117         PR bootstrap/43531
34119         Revert:
34120         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34122         * Makefile.in ($(out_object_file)): Depend on
34123         gt-$(basename $(notdir $(out_file))).h.
34125 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
34127         * config.gcc (lm32-*-rtems*): Add t-lm32.
34129 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
34131         * config.gcc: Add lm32-*-rtems*.
34132         * config/lm32/rtems.h: New file.
34134 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
34136         PR target/42609
34137         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
34139 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
34141         * dwarf2out.c (output_compilation_unit_header): For
34142         -gdwarf-4 use version 4 instead of version 3.
34143         (output_line_info): For version 4 and above emit additional
34144         maximum ops per insn header field.
34145         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
34147         * dwarf2out.c (is_c_family, is_java): Remove.
34148         (lower_bound_default): New function.
34149         (add_bound_info, gen_descr_array_type_die): Use it.
34151 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
34153         PR debug/43325
34154         * dwarf2out.c (gen_variable_die): Allow debug info for variable
34155         re-declaration when it happens in a function.
34157 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
34159         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
34160         (cgraph_remove_function_insertion_hook): Same.
34161         (cgraph_call_function_insertion_hooks): Same.
34163 2010-04-01  Richard Guenther  <rguenther@suse.de>
34165         PR middle-end/43614
34166         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
34167         and TREE_THIS_VOLATILE.
34168         (copy_ref_info): Likewise.
34169         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
34170         * tree.c (build6_stat): Ignore side-effects of all but arg5
34171         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
34172         TARGET_MEM_REF.
34174 2010-04-01  Richard Guenther  <rguenther@suse.de>
34176         PR tree-optimization/43607
34177         * ipa-type-escape.c (check_call): Do not access non-existing
34178         arguments.
34180 2010-04-01  Richard Guenther  <rguenther@suse.de>
34182         PR middle-end/43602
34183         Revert
34184         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
34185                     Jack Howarth  <howarth@bromo.med.uc.edu>
34187         * tree-profile.c (tree_init_ic_make_global_vars): Make static
34188         variables TLS.
34190 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34192         * doc/install.texi (Prerequisites): Document libelf usability on
34193         IRIX 5/6 and Solaris 2.
34194         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
34195         Update GNU as, GNU ld requirements.
34196         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
34197         Document Sun Studio compiler download.
34198         Update and simplify as, ld recommendations.
34199         (Specific, *-*-solaris2.7): Note obsoletion, removal.
34201 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34203         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
34204         with_tune_32 to pentium4.
34206 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
34208         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
34210 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34212         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
34213         obsoletion, removal.
34214         Update IDO URL.
34215         Document GNU as requirement.
34216         Update configure requirements.
34217         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
34218         Recomment IRIX 6.5.18+.
34219         Document IDF/IDL requirement.
34220         Document GNU as requirement.
34221         Document GNU ld bootstrap failure.
34222         Remove freeware.sgi.com reference.
34224 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34226         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
34227         UNIX V4.0, V5.0 obsoletion, removal.
34228         Remove --with-gc=simple reference.
34229         Update VM requirements during bootstrap.
34230         Remove -oldas bootstrap description.
34231         Update binutils reference.
34232         Remove comparison failure note.
34234 2010-03-31  Richard Guenther  <rguenther@suse.de>
34235             Zdenek Dvorak  <ook@ucw.cz>
34236             Sebastian Pop  <sebastian.pop@amd.com>
34238         PR middle-end/43464
34239         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
34240         with multiple arguments.
34241         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
34243 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34245         * graphite-dependences.c (print_pddr): Call print_pdr with an
34246         extra argument.
34247         * graphite-poly.c (debug_pdr): Add an extra argument for the
34248         verbosity level.
34249         (print_pdr): Same.
34250         (print_pbb_domain): Same.
34251         (print_pbb): Same.
34252         (print_scop_context): Same.
34253         (print_scop): Same.
34254         (print_cloog): Same.
34255         (debug_pbb_domain): Same.
34256         (debug_pbb): Same.
34257         (print_pdrs): Same.
34258         (debug_pdrs): Same.
34259         (debug_scop_context): Same.
34260         (debug_scop): Same.
34261         (debug_cloog): Same.
34262         (print_scop_params): Same.
34263         (debug_scop_params): Same.
34264         (print_iteration_domain): Same.
34265         (print_iteration_domains): Same.
34266         (debug_iteration_domain): Same.
34267         (debug_iteration_domains): Same.
34268         (print_scattering_function): Same.
34269         (print_scattering_functions): Same.
34270         (debug_scattering_function): Same.
34271         (debug_scattering_functions): Same.
34272         * graphite-poly.h (debug_pdr): Update declaration.
34273         (print_pdr): Same.
34274         (print_pbb_domain): Same.
34275         (print_pbb): Same.
34276         (print_scop_context): Same.
34277         (print_scop): Same.
34278         (print_cloog): Same.
34279         (debug_pbb_domain): Same.
34280         (debug_pbb): Same.
34281         (print_pdrs): Same.
34282         (debug_pdrs): Same.
34283         (debug_scop_context): Same.
34284         (debug_scop): Same.
34285         (debug_cloog): Same.
34286         (print_scop_params): Same.
34287         (debug_scop_params): Same.
34288         (print_iteration_domain): Same.
34289         (print_iteration_domains): Same.
34290         (debug_iteration_domain): Same.
34291         (debug_iteration_domains): Same.
34292         (print_scattering_function): Same.
34293         (print_scattering_functions): Same.
34294         (debug_scattering_function): Same.
34295         (debug_scattering_functions): Same.
34297 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34299         * graphite-poly.c (print_scattering_function_1): New.
34300         (print_scattering_function): Call it.
34301         (print_scop_params): Remove spaces at the end of lines.
34302         (print_cloog): New.
34303         (debug_cloog): New.
34304         * graphite-poly.h (print_cloog): Declared.
34305         (debug_cloog): Declared.
34307 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34309         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
34310         in loop->header.
34311         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
34312         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
34313         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
34314         to switch between adding the IV bump in loop->latch or in loop->header.
34316 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
34318         * graphite-poly.c (print_scattering_function): Pretty print following
34319         the scoplib format.
34320         (print_pdr): Same.
34321         (print_pbb_domain): Same.
34322         (dump_gbb_cases): Same.
34323         (dump_gbb_conditions): Same.
34324         (print_pdrs): Same.
34325         (print_pbb): Same.
34326         (print_scop_params): Same.
34327         (print_scop_context): Same.
34328         (print_scop): Same.
34329         (print_pbb_body): New.
34330         (lst_indent_to): New.
34331         (print_lst): Start new lines with a #.
34332         * graphite-poly.h (pbb_bb): New.
34333         (pbb_index): Use pbb_bb.
34334         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
34335         disjuncts.
34336         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
34338 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
34340         * dwarf2out.c (size_of_die): For -gdwarf-4 use
34341         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
34342         and 0 instead of 1 for dw_val_class_flag.
34343         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
34344         dw_val_class_range_list, dw_val_class_loc_list,
34345         dw_val_class_lineptr and dw_val_class_macptr, use
34346         DW_FORM_flag_present for dw_val_class_flag and
34347         DW_FORM_exprloc for dw_val_class_loc.
34348         (output_die): For -gdwarf-4 print dw_val_class_loc
34349         size as uleb128 instead of 1 or 2 bytes and don't print
34350         anything for dw_val_class_flag.
34352         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
34353         instead of cselib_lookup following by tweaking locs->setting_insn.
34355         PR bootstrap/43596
34356         * cselib.c (cselib_process_insn): Clear cselib_current_insn
34357         even before returning from label, setjmp call or volatile asm
34358         handling.
34360 2010-03-31  Richard Guenther  <rguenther@suse.de>
34362         PR middle-end/43600
34363         * cgraphunit.c (cgraph_output_in_order): Do not allocate
34364         temporary data on stack.
34366 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34368         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
34369         (PUSHSECTION_ASM_OP): Remove.
34370         (POPSECTION_ASM_OP): Remove.
34371         (PUSHSECTION_FORMAT): Remove.
34372         * config/sol2.h (PUSHSECTION_FORMAT): Define.
34373         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
34374         * config/sol2.c (solaris_output_init_fini): Use it.
34376 2010-03-31  Jie Zhang  <jie@codesourcery.com>
34378         PR 43574
34379         * opt-functions.awk (var_type_struct): Use signed char type
34380         for simple variables.
34382 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34384         * config/sol2.c: Include output.h.
34385         (solaris_assemble_visibility): New function.
34386         * config/t-sol2 (sol2.o): Add output.h dependency.
34387         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
34388         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
34389         Redefine.
34391 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
34393         PR target/43580
34394         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
34395         V2SImode or XFmode on PRE_DEC.
34397         PR debug/43557
34398         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
34399         BLKmode.
34401 2010-03-31  Jie Zhang  <jie@codesourcery.com>
34403         PR 43562
34404         * reload.h (caller_save_initialized_p): Declare.
34405         * toplev.c (backend_init_target): Don't call
34406         init_caller_save but set caller_save_initialized_p to false.
34407         * caller-save.c (caller_save_initialized_p): Define.
34408         (init_caller_save): Check caller_save_initialized_p.
34409         * ira.c (ira): Call init_caller_save if flag_caller_saves.
34411 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34413         PR target/39048
34414         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
34415         and soft-fp/t-softfp to tmake_file.
34416         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
34417         (LIBGCC2_TF_CEXT): Define.
34418         (TF_SIZE): Define.
34420 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
34422         PR debug/42977
34423         * cselib.c (n_useless_values): Document handling of debug locs.
34424         (n_useless_debug_values, n_debug_values): New variables.
34425         (new_elt_loc_list): Don't add to debug values, keep count.
34426         (promote_debug_loc): New.
34427         (cselib_reset_table): Zero new variables.
34428         (entry_and_rtx_equal_p): Promote debug locs.
34429         (discard_useless_locs): Increment n_useless_debug_values for
34430         debug values.
34431         (remove_useless_values): Adjust n_useless_values and n_debug_values
34432         with n_useless_debug_values.
34433         (add_mem_for_addr): Promote debug locs.
34434         (cselib_lookup_mem): Likewise.
34435         (cselib_lookup_addr): Renamed to...
34436         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
34437         (cselib_log_lookup): ... this.  Turn into...
34438         (cselib_lookup_addr): ... new wrapper.
34439         (cselib_lookup_from_insn): New.
34440         (cselib_invalidate_regno): Increment n_useless_debug_values for
34441         debug values.
34442         (cselib_invalidate_mem): Likewise.
34443         (cselib_process_insn): Take n_deleted and n_debug_values into
34444         account to guard remove_useless_value call.
34445         (cselib_finish): Zero n_useless_debug_values.
34446         * cselib.h (cselib_lookup_from_insn): Declare.
34447         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
34448         (sched_analyze_2): Likewise.
34450 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
34452         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
34453         functions.
34454         (adjust_mems): Replace narrowing SUBREG of expression containing
34455         just PLUS, MINUS, MULT and ASHIFT of registers and constants
34456         with operations in the narrower mode.
34458         PR debug/43593
34459         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
34460         regs_invalidated_by_call instead all call_used_reg_set registers.
34462 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
34464         PR middle-end/43430
34465         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
34466         pointer comparisons with types_compatible_p.
34467         * tree-vect-stmts.c (vectorizable_call): Same.
34468         (vectorizable_condition): Same.
34470 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34472         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
34473         stack check if the mask would be zero.
34475 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
34476             Jack Howarth  <howarth@bromo.med.uc.edu>
34478         * tree-profile.c (tree_init_ic_make_global_vars): Make static
34479         variables TLS.
34481 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
34483         PR other/25232
34484         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
34485         and __unordtf2.
34486         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
34487         Include ___unordxf2 and ___unordtf2.
34488         * config/i386/libgcc-glibc.ver: Do not define inheritance from
34489         GCC_4.4.0 here.
34491 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
34493         * config/lm32/t-lm32: New file.
34494         * config.gcc: Use the above file when targetting lm32.
34496 2010-03-28  Duncan Sands  <baldrick@free.fr>
34498         * Makefile.in (PLUGIN_HEADERS): Add except.h.
34500 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
34502         PR middle-end/43431
34503         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
34504         Improve vectorization cost model diagnostic.
34506 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
34508         PR middle-end/43436
34509         * tree-vect-data-refs.c (vect_analyze_data_refs): When
34510         compute_data_dependences_for_loop returns false, early exit
34511         and output an extra diagnostic for the failed data reference
34512         analysis.
34514 2010-03-29  Richard Guenther  <rguenther@suse.de>
34516         PR tree-optimization/43560
34517         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
34518         (can_sm_ref_p): Treat stores to readonly locations as trapping.
34520 2010-03-29  Jie Zhang  <jie@codesourcery.com>
34522         PR 43564
34523         * toplev.c (process_options): Set optimization_default_node
34524         and optimization_current_node.
34525         * opts.c (decode_options): Don't set optimization_default_node
34526         and optimization_current_node.
34528 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
34530         * config/rtems.h: Abandon -qrtems_debug.
34532 2010-03-28  Jan Hubicka  <jh@suse.cz>
34534         PR tree-optimization/43505
34535         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
34536         map should not be copied.
34538 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34540         PR middle-end/41674
34541         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
34542         cdtors, set DECL_PRESERVE_P.
34543         * ipa.c (cgraph_externally_visible_p): Return true if declaration
34544         should be preseved.
34546 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
34548         PR tree-optimization/43528
34549         * stor-layout.c (place_field): Check that constant fits into
34550         unsigned HWI when skipping calculation of MS bitfield layout.
34552 2010-03-27  Jan Hubicka  <jh@suse.cz>
34554         PR middle-end/43391
34555         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
34556         notice_global_symbol work.
34558 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
34560         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
34561         instead of dwarf2out_decl.
34562         (struct var_loc_node): Remove section_label field.
34563         (dwarf2out_function_decl): New function.
34564         (dwarf2out_var_location): Don't set section_label field.
34565         (dwarf2out_begin_function): Don't empty decl_loc_table here.
34567 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
34569         PR tree-optimization/43544
34570         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
34571         First argument for builtin vectorized function hook is now a
34572         tree to be able to distinguish between machine specific and
34573         standard builtins.
34574         * targhooks.c (default_builtin_vectorized_function): Ditto.
34575         * targhooks.h (default_builtin_vectorized_function): Ditto.
34576         * target.h (struct gcc_target): Ditto.
34577         * tree-vect-stmts.c (vectorizable_function): Ditto.
34578         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
34579         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
34580         Ditto.
34582 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
34584         PR c/43381
34585         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
34586         nested binding iff it is a FUNCTION_DECL.
34587         (store_parm_decls_newstyle): Pass nested=true to bind for
34588         FUNCTION_DECLs amongst parameters.
34590 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
34592         * var-tracking.c (vt_expand_loc_callback): Don't run
34593         cselib_expand_value_rtx_cb in dummy mode if
34594         cselib_dummy_expand_value_rtx_cb returned false.
34596         * var-tracking.c (emit_note_insn_var_location): For one part
34597         notes with offset 0, don't add EXPR_LIST around the location.
34598         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
34599         add_location_or_const_value_attribute): Adjust for that change.
34601         PR debug/43540
34602         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
34603         into first operand and location into second.
34604         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
34605         dw_cfi_oprnd_loc for DW_CFA_expression.
34606         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
34607         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
34608         assume first argument is regnum and second argument is location.
34610 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
34612         PR target/42113
34613         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
34614         of scratch register to DImode.  Split to DImode comparison operator.
34615         Use SImode subreg of scratch register in the multiplication.
34616         (*cmp_sadd_sidi): Ditto.
34617         (*cmp_ssub_si): Ditto.
34618         (*cmp_ssub_sidi): Ditto.
34620 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
34622         PR target/43524
34623         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
34624         Remove invalid assert and wrong comment.
34626 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
34628         PR debug/43516
34629         * flags.h (final_insns_dump_p): New extern.
34630         * final.c (final_insns_dump_p): New variable.
34631         (rest_of_clean_state): Set it before -fdump-final-insns=
34632         dumping, clear afterwards.
34633         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
34634         MEM_ALIAS_SET on MEMs.
34636 2010-03-26  David S. Miller  <davem@davemloft.net>
34638         * configure.ac: Fix sparc GOTDATA_OP bug check.
34639         * configure: Rebuild.
34641 2010-03-26  Alan Modra  <amodra@gmail.com>
34643         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
34645 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34647         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
34648         TLS_SECTION_ASM_FLAG.
34650 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
34652         PR bootstrap/43511
34653         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
34654         Clear first_function_block_is_cold.
34656         PR c/43385
34657         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
34658         argument if the argument is truth_value_p.
34660 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
34662         * config/rs6000/constraints.md: Update copyright year for my changes.
34664         PR target/43484
34665         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
34666         used in reg+reg addressing, swap registers.
34668 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
34670         PR debug/43293
34671         * target.h (struct gcc_target): Add code_end hook.
34672         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
34673         if not yet defined.
34674         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
34675         * toplev.c (compile_file): Call targetm.asm_out.code_end
34676         hook before unwind info/debug info output.
34677         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
34678         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
34679         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
34680         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
34681         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
34682         * config/i386/i386.c (ix86_file_end): Renamed to...
34683         (ix86_code_end): ... this.  Make static.  Don't call
34684         file_end_indicate_exec_stack.  Emit unwind info using
34685         final_start_function/final_end_function.
34686         (darwin_x86_file_end): Remove.
34687         (TARGET_ASM_CODE_END): Define.
34688         * config/i386/i386.h (TARGET_ASM_FILE_END,
34689         NEED_INDICATE_EXEC_STACK): Don't define.
34690         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
34691         (TARGET_ASM_FILE_END): Define to darwin_file_end.
34692         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
34693         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
34695         PR target/43498
34696         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
34697         at the beginning and final_end_function at the end.
34698         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
34700 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34702         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
34703         and Sun as TLS syntax.
34704         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
34705         * configure: Regenerate.
34706         * config.in: Regenerate.
34707         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
34708         (default_elf_asm_named_section): Use it.
34709         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
34710         (i386_output_dwarf_dtprel): Likewise.
34711         (output_addr_const_extra): Likewise.
34712         (output_pic_addr_const): Lowercase @GOTTPOFF.
34713         (output_addr_const_extra): Likewise.
34714         (output_pic_addr_const): Lowercase @GOTNTPOFF.
34715         (output_addr_const_extra): Likewise.
34716         (output_pic_addr_const): Lowercase @INDNTPOFF.
34717         (output_addr_const_extra): Likewise.
34718         (output_pic_addr_const): Lowercase @NTPOFF.
34719         (output_addr_const_extra): Likewise.
34720         (output_pic_addr_const): Lowercase @TPOFF.
34721         (output_addr_const_extra): Likewise.
34722         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
34723         (*tls_global_dynamic_64): Likewise.
34724         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
34725         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
34727         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
34728         (ASM_OUTPUT_TLS_COMMON): Use it.
34729         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
34731         PR target/38118
34732         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
34733         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
34734         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
34735         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
34736         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
34737         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
34739 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34741         * config/i386/i386.c (override_options): Don't accept
34742         -mtls-dialect=sun any longer.
34743         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
34744         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
34745         (*tls_local_dynamic_base_32_sun): Likewise.
34746         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
34748 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
34750         PR debug/43508
34751         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
34752         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
34754         PR debug/43479
34755         * ira.c (adjust_cleared_regs): New function.
34756         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
34758         PR debug/19192
34759         PR debug/43479
34760         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
34761         from gimple_block.
34762         * expr.c (expand_expr_real): Restore previous
34763         curr_insn_source_location and curr_insn_block after
34764         expand_expr_real_1 call.
34765         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
34766         instead of expand_expr_real_1.
34768 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
34770         PR rtl-optimization/43413
34771         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
34772         hard regs too.
34774 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
34776         PR target/43348
34777         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
34778         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
34780 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34782         * config/i386/i386.c (ix86_target_string): Add -mfma.
34783         Fix a typo in comment.
34785 2010-03-22  Mike Stump  <mikestump@comcast.net>
34787         PR target/23071
34788         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
34789         Don't overly align based upon packed packed fields.
34791 2010-03-22  Jason Merrill  <jason@redhat.com>
34793         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
34794         Use () rather than [], and move before the element type.
34796 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34798         * doc/configfiles.texi (Configuration Files): Removed
34799         fixinc/Makefile*, intl/Makefile.*.
34800         * doc/makefile.texi: Fixed markup. Abstract from version
34801         control system used.
34802         (Makefile): Removed obsolete java/parse.y example.
34803         * doc/sourcebuild.texi: Likewise.
34804         (Top Level): Added config, gnattools, libdecnumber, libgcc,
34805         libgomp, libssp.  Removed fastjar.
34806         (Miscellaneous Docs): Clarify location.
34807         Added COPYING3, COPYING3.LIB.
34808         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
34810 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34812         PR target/38085
34813         * config/i386/i386.c (x86_function_profiler)
34814         [!NO_PROFILE_COUNTERS]: Fix typo.
34815         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
34816         instead of callq.
34818 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
34819             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34821         * doc/sourcebuild.texi (Test Directives): Split into six
34822         subsections, with most of the current text in new subsections
34823         Directives, Selectors, and Final Actions.
34824         (Directives): Split list of test directives into multiple
34825         subsubsections.
34826         (Selectors): Describe use and syntax of selectors.
34827         (Effective-Target Keywords): Describe all existing keywords.
34828         (Add Options): Describe features for dg-add-options.
34829         (Require Support): Describe variants of dg-require-support.
34830         (Final Actions): Describe commands to use in dg-final.
34832 2010-03-22  Michael Matz  <matz@suse.de>
34834         PR middle-end/43475
34835         * recog.c (validate_replace_rtx_group): Replace also in
34836         REG_EQUAL and REG_EQUIV notes.
34838 2010-03-22  Richard Guenther  <rguenther@suse.de>
34840         PR tree-optimization/43390
34841         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
34842         sure vector extracts are type correct.
34844 2010-03-22  Richard Guenther  <rguenther@suse.de>
34846         PR middle-end/40106
34847         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
34848         x * sqrt (x) even when optimizing for size if the target
34849         has native support for sqrt.
34851 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
34853         * varasm.c (make_decl_rtl_for_debug): Also clear
34854         flag_mudflap for the duration of make_decl_rtl call.
34856         PR debug/43443
34857         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
34858         locs from preserved VALUEs.
34860 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34862         PR middle-end/42718
34863         * pa.md (movmemsi): Set align to one if zero.
34864         (movmemdi): Likewise.
34866 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
34868         PR target/42321
34869         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
34870         with their corresponding prologue pushes.
34872 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
34874         PR target/43156
34875         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
34876         at the begining or end.
34877         (spu_expand_epilogue): Likewise.
34879 2010-03-20  Richard Guenther  <rguenther@suse.de>
34881         PR rtl-optimization/43438
34882         * combine.c (make_extraction): Properly zero-/sign-extend an
34883         extraction of the low part of a CONST_INT.  Also handle
34884         CONST_DOUBLE.
34886 2010-03-19  Mike Stump  <mikestump@comcast.net>
34888         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
34889         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
34890         (override_options): Use SUBTARGET32_DEFAULT_CPU.
34892 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
34894         PR c/43211
34895         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
34896         an error.
34898 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
34900         PR rtl-optimization/42258
34901         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
34902         use that may match DEF.
34904         PR target/40697
34905         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
34906         the cost of loading the constant rather than assuming
34907         COSTS_N_INSNS (1).
34908         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
34909         outer code is AND, do the same tests as the andsi3 expander and
34910         return COSTS_N_INSNS (1) if and is cheap.
34912         * optabs.c (avoid_expensive_constant): Fix formatting.
34914 2010-03-19  Michael Matz  <matz@suse.de>
34916         PR c++/43116
34917         * attribs.c (decl_attributes): When rebuilding a function pointer
34918         type use the same qualifiers as the original pointer type.
34920 2010-03-19  Martin Jambor  <mjambor@suse.cz>
34922         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
34923         and is_gimple_ip_invariant_address.
34925 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34927         Revert
34928         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34930         * config/arm/arm.c (arm_override_options): Turn off
34931         flag_dwarf2_cfi_asm for AAPCS variants.
34933 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34935         PR target/43399
34936         * config/arm/arm.c (emit_multi_reg_push): Update comments.
34937         Use PRE_MODIFY instead of PRE_DEC.
34938         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
34939         (vfp_emit_fstmd): Likewise.
34941 2010-03-19  Michael Matz  <matz@suse.de>
34943         PR target/43305
34944         * builtins.c (expand_builtin_interclass_mathfn,
34945         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
34946         if that fails.
34948 2010-03-19  Richard Guenther  <rguenther@suse.de>
34950         PR tree-optimization/43415
34951         * tree-ssa-pre.c (phi_translate): Split out worker to ...
34952         (phi_translate_1): ... this.
34953         (phi_translate): Move all caching here.  Cache all NARY
34954         and REFERENCE translations.
34956 2010-03-19  David S. Miller  <davem@davemloft.net>
34958         With help from Eric Botcazou.
34959         * config/sparc/sparc.c: Include dwarf2out.h.
34960         (emit_pic_helper): Delete.
34961         (pic_helper_symbol_name): Delete.
34962         (pic_helper_emitted_p): Delete.
34963         (pic_helper_needed): New.
34964         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
34965         (get_pc_thunk_name): New.
34966         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
34967         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
34968         Set pic_helper_needed to true.  Don't call emit_pic_helper.
34969         (sparc_expand_prologue): Update load_pic_register call.
34970         (sparc_output_mi_thunk): Likewise.
34971         (sparc_file_end): Emit a hidden comdat symbol for the PIC
34972         thunk if possible.  Output CFI information as needed.
34974 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
34975             Jack Howarth  <howarth@bromo.med.uc.edu>
34977         PR target/36399
34978         * config/i386/i386.h: Fix ABI on darwin x86-32.
34980 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
34982         * tree.h: Declare make_decl_rtl_for_debug.
34983         * varasm.c (make_decl_rtl_for_debug): New.
34984         * dwarf2out.c (rtl_for_decl_location): Call it.
34985         * cfgexpand.c (expand_debug_expr): Call it.
34987 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
34989         PR bootstrap/43399
34990         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
34991         mem_mode.
34993         PR bootstrap/43403
34994         * var-tracking.c (vt_init_cfa_base): Do nothing if
34995         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
34997 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
34999         PR debug/42873
35000         * var-tracking.c (canonicalize_vars_star): New.
35001         (dataflow_post_merge_adjust): Use it.
35003 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
35005         PR debug/43058
35006         * var-tracking.c (non_suitable_const): New function.
35007         (add_uses): For DEBUG_INSNs with constants, don't record any
35008         value, instead just the constant value itself.
35009         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
35010         is not VAR_LOC_UNKNOWN_P, set var to the constant.
35011         (emit_notes_in_bb): Likewise.
35012         (emit_note_insn_var_location): For onepart variables if
35013         cur_loc is a VOIDmode constant, use DECL_MODE.
35015 2010-03-18  Martin Jambor  <mjambor@suse.cz>
35017         PR middle-end/42450
35018         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
35019         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
35020         all non-clones.  Moved call redirection...
35021         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
35022         (cgraph_materialize_all_clones): Dispose of all
35023         combined_args_to_skip bitmaps.
35024         (verify_cgraph_node): Do not check for edges pointing to wrong
35025         nodes in inline clones.
35026         * tree-inline.c (copy_bb): Call
35027         cgraph_redirect_edge_call_stmt_to_callee.
35028         * ipa.c (cgraph_remove_unreachable_nodes): Call
35029         cgraph_node_remove_callees even when there are used clones.
35031 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
35033         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
35035 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
35037         PR target/43383
35038         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
35039         for 32bit.
35041 2010-03-18  Michael Matz  <matz@suse.de>
35043         PR middle-end/43419
35044         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
35045         into sqrt(x) if we need to preserve signed zeros.
35047 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
35048             Eric Botcazou  <ebotcazou@adacore.com>
35050         PR rtl-optimization/43360
35051         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
35052         note if we don't know its invariant status.
35054 2010-03-18  Michael Matz  <matz@suse.de>
35056         PR tree-optimization/43402
35057         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
35058         PHI chains of ssa names registered for update.
35060 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
35062         PR target/42427
35063         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
35064         non-offsettable and pre_modify update addressing.
35065         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
35066         and "2" alternatives "#".
35067         (*movdd_softfloat32): Make all alternatives "#";
35068         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
35069         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
35070         (*movdf_softfloat32): Make all alternatives "#";
35071         (movdi): Use the new DIFD mode iterator to create a common splitter
35072         for movdi, movdf and movdd patterns.
35074 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
35076         * common.opt (dumpdir): Remove redundant tab.
35078 2010-03-17  Martin Jambor  <mjambor@suse.cz>
35080         PR tree-optimization/43347
35081         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
35082         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
35084 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
35086         PR rtl-optimization/42216
35087         * regrename.c (create_new_chain): New function, broken out from...
35088         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
35089         appending a use to an empty chain.
35090         (build_def_use): Remove previous changes that convert OP_INOUT to
35091         OP_OUT operands; instead detect the case where an OP_INOUT operand
35092         uses a previously untracked register and create an empty chain for it.
35094 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35096         * doc/extend.texi (Function Attributes): Rewrite unfinished
35097         sentence in ms_abi documentation.
35099 2010-03-17  Alan Modra  <amodra@gmail.com>
35101         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
35102         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
35103         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
35104         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
35106 2010-03-16  Richard Henderson  <rth@redhat.com>
35108         PR middle-end/43365
35109         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
35110         (lower_try_finally): Save and restore eh_seq around the expansion
35111         of the try-finally.
35113 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
35115         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
35116         statements before splitting block.
35118 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35120         * doc/sourcebuild.texi (Testsuites): Fix markup.
35121         Use pathnames relative to gcc/testsuite.
35122         (Test Directives): Move description of how timeout is determined.
35123         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
35124         (C Tests): Correct gcc.misc-tests directory.
35125         Framework tests now live in gcc.test-framework.
35127 2010-03-16  Richard Guenther  <rguenther@suse.de>
35129         PR middle-end/43379
35130         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
35131         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
35133 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
35134             Alexandre Oliva  <aoliva@redhat.com>
35136         PR tree-optimization/42917
35137         * lambda-code.c (remove_iv): Skip debug statements.
35138         (lambda_loopnest_to_gcc_loopnest): Likewise.
35139         (not_interesting_stmt): Debug statements are not interesting.
35141 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
35143         PR debug/43051
35144         PR debug/43092
35145         * cselib.c (cselib_preserve_constants,
35146         cfa_base_preserved_val): New static variables.
35147         (preserve_only_constants): New function.
35148         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
35149         clear its REG_VALUES.  If cselib_preserve_constants, don't
35150         empty the whole hash table, but preserve there VALUEs with constants,
35151         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
35152         (cselib_preserve_cfa_base_value): New function.
35153         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
35154         (cselib_init): Change argument to int bitfield.  Set
35155         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
35156         is in it.
35157         (cselib_finish): Clear cselib_preserve_constants and
35158         cfa_base_preserved_val.
35159         * cselib.h (enum cselib_record_what): New enum.
35160         (cselib_init): Change argument to int.
35161         (cselib_preserve_cfa_base_value): New prototype.
35162         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
35163         * dse.c (dse_step1): Likewise.
35164         * cfgcleanup.c (thread_jump): Likewise.
35165         * sched-deps.c (sched_analyze): Likewise.
35166         * gcse.c (local_cprop_pass): Likewise.
35167         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
35168         If FN is non-NULL, call the callback always and whenever it returns
35169         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
35170         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
35171         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
35172         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
35173         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
35174         * var-tracking.c: Include recog.h.
35175         (bb_stack_adjust_offset): Remove.
35176         (vt_stack_adjustments): Don't call it, instead just gather the
35177         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
35178         (adjust_stack_reference): Remove.
35179         (compute_cfa_pointer): New function.
35180         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
35181         (struct adjust_mem_data): New type.
35182         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
35183         functions.
35184         (get_address_mode): New function.
35185         (replace_expr_with_values): Use it.
35186         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
35187         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
35188         (adjust_sets): Remove.
35189         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
35190         Use get_address_mode.
35191         (get_adjusted_src): Remove.
35192         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
35193         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
35194         (add_with_sets): Don't call adjust_sets.
35195         (fp_setter, vt_init_cfa_base): New functions.
35196         (vt_initialize): Change return type to bool.  Move most of pool etc.
35197         initialization to the beginning of the function from end.  Pass
35198         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
35199         If !frame_pointer_needed, call vt_stack_adjustment before mos
35200         vector is filled, call vt_init_cfa_base if argp/framep has been
35201         eliminated to sp.  If frame_pointer_needed and argp/framep has
35202         been eliminated to hard frame pointer, set
35203         hard_frame_pointer_adjustment and call vt_init_cfa_base after
35204         encountering fp setter in the prologue.  For MO_ADJUST, call
35205         log_op_type before pusing the op into mos vector, not afterwards.
35206         Call adjust_insn before cselib_process_insn/add_with_sets,
35207         call cancel_changes (0) afterwards.
35208         (variable_tracking_main_1): Adjust for vt_initialize calling
35209         vt_stack_adjustments and returning whether it succeeded or not.
35211 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
35213         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
35214         debug statements.
35216 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
35218         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
35219         has been set.
35220         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
35221         drap_reg has not been set.
35223 2010-03-15  Michael Matz  <matz@suse.de>
35225         PR middle-end/43300
35226         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
35227         use it to expand block copies.
35228         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
35229         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
35230         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
35232 2010-03-15  Richard Guenther  <rguenther@suse.de>
35234         PR tree-optimization/43367
35235         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
35236         elimination check.
35238 2010-03-15  Richard Guenther  <rguenther@suse.de>
35240         PR tree-optimization/43317
35241         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
35243 2010-03-15  Martin Jambor  <mjambor@suse.cz>
35245         PR tree-optimization/43141
35246         * tree-sra.c (create_abstract_origin): New function.
35247         (modify_function): Call create_abstract_origin.
35249 2010-03-15  Chris Demetriou  <cgd@google.com>
35251         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
35252         wasn't copied.
35254 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35256         PR middle-end/43354
35257         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
35258         call insert_out_of_ssa_copy for default definitions.
35260 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35262         * graphite-clast-to-gimple.c (my_long_long): Defined.
35263         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
35264         * graphite-sese-to-poly.c (my_long_long): Defined.
35265         (scop_ivs_can_be_represented): Use it.
35267 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35269         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
35270         graphite-max-bbs-per-function, and loop-block-tile-size.
35271         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
35272         with "maximum".
35273         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
35275 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35277         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
35278         forward declaration.
35279         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
35280         (add_upper_bounds_from_estimated_nit): New.
35281         (build_loop_iteration_domains): Use it.
35283 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35285         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
35287 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35289         PR middle-end/43306
35290         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
35291         should be an INTEGER_CST.  Also handle CASE_CONVERT.
35293 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35295         * graphite.c (graphite_initialize): To bound the number of bbs per
35296         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
35297         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
35298         * doc/invoke.texi: Document it.
35300 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35302         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
35303         * graphite-sese-to-poly.h (build_poly_scop): Same.
35305 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
35307         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
35308         the number of parameters in the scop.  Use as an upper bound
35309         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
35310         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
35311         * doc/invoke.texi: Document it.
35313 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
35315         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
35316         * doc/c-tree.texi: Remove.
35317         * doc/generic.texi: Merge c-tree.texi here.
35318         * doc/gccint.texi (Trees): Remove menu entry.
35319         (c-tree.texi): Remove @include.
35320         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
35321         * doc/languages.texi (Reading RTL): Ditto.
35323 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
35325         PR target/42869
35326         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
35328 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
35330         PR middle-end/42431
35331         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
35332         code added to work around reload clobbering CONST insns.
35334 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
35336         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
35337         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
35338         (cselib_preserve_only_values): Remove retain argument, don't
35339         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
35340         * cselib.h (cselib_preserve_only_values): Remove retain argument.
35341         * var-tracking.c (micro_operation): Move insn field before union.
35342         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
35343         (struct variable_tracking_info_def): Remove n_mos field, change
35344         mos into a vector of micro_operations.
35345         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
35346         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
35347         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
35348         changing into a vector.
35349         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
35350         come before all other uops generated by add_stores.
35351         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
35352         argument removal.
35353         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
35354         a vector.  Run just one pass over the bbs instead of separate counting
35355         and computation phase.
35356         (vt_finalize): Free VTI (bb)->mos vector instead of array.
35358         PR debug/43329
35359         * tree-inline.c (remap_decls): Put old_var rather than origin_var
35360         into *nonlocalized_list vector.
35361         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
35362         even if origin is non-NULL.
35363         (gen_variable_die): Likewise.
35364         (process_scope_var): Don't change origin.
35365         (gen_decl_die): Likewise.
35366         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
35367         before adding new edges instead of after it, fix moving over
35368         debug stmts.
35370 2010-03-11  David S. Miller  <davem@davemloft.net>
35372         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
35373         of four.
35374         * configure: Rebuild.
35376 2010-03-11  Martin Jambor  <mjambor@suse.cz>
35378         PR tree-optimization/43257
35379         * tree.c (assign_assembler_name_if_neeeded): New function.
35380         (free_lang_data_in_cgraph): Assembler name assignment moved to the
35381         above new function.
35382         * tree.h (assign_assembler_name_if_neeeded): Declare.
35383         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
35384         the function if needed.
35386 2010-03-11  Chris Demetriou  <cgd@google.com>
35388         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
35389         include/stdint-gcc.h, and include/stdint.h world-readable.
35391 2010-03-11  Richard Guenther  <rguenther@suse.de>
35393         PR tree-optimization/43255
35394         * tree-vrp.c (process_assert_insertions_for): Do not insert
35395         asserts for trivial conditions.
35397 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35399         PR tree-optimization/43280
35400         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
35401         generation.  Move calculation of size out of the if branch.
35402         (find_bswap): Modify compare number generation.
35404 2010-03-11  Richard Guenther  <rguenther@suse.de>
35406         PR lto/43200
35407         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
35408         (input_gimple_stmt): Fixup handled component types during
35409         operand read.  Also fix up decls in ADDR_EXPRs.
35411 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
35413         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
35414         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
35416 2010-03-10  Jan Hubicka  <jh@suse.cz>
35418         PR c/43288
35419         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
35420         * varasm.c (get_variable_section): Don't do that here...
35421         (make_decl_rtl): ... and here.
35422         (do_assemble_alias): Produce decl RTL.
35423         (assemble_alias): Likewise.
35425 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
35427         PR debug/43290
35428         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
35429         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
35430         of fde->vdrap_reg.
35431         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
35432         (based_loc_descr): Only express drap or vdrap regno based expressions
35433         using DW_OP_fbreg when not optimizing.
35434         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
35435         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
35436         REG_CFA_SET_VDRAP note.
35438 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
35440         PR tree-optimization/43236
35441         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
35442         error in calculation of base address in reverse iteration case.
35443         (generate_builtin): Take number of latch executions if the statement
35444         is in the latch.
35446 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
35448         PR middle-end/42859
35449         * tree-eh.c: Include pointer-set.h.
35450         (lower_eh_dispatch): Filter out duplicate case labels and
35451         remove the unneeded edge when the label is unused.  Return
35452         true when some edges are removed.
35453         (execute_lower_eh_dispatch): When any lowering resulted in
35454         removing an edge, also delete unreachable blocks.
35456 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
35458         PR bootstrap/43287
35459         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
35460         UNSPEC_MACHOPIC_OFFSET.
35462 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
35464         PR target/43294
35465         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
35466         (m68k_delegitimize_address): New function.
35468 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
35470         PR debug/43299
35471         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
35473         PR debug/43299
35474         * var-tracking.c (adjust_sets): New function.
35475         (count_with_sets, add_with_sets): Use it.
35476         (get_adjusted_src): New inline function.
35477         (add_stores): Use it.
35479         PR debug/43304
35480         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
35481         call cselib_dummy_expand_value_rtx_cb instead of
35482         cselib_expand_value_rtx_cb.
35484         PR debug/43293
35485         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
35486         * config/i386/i386.c: Include debug.h and dwarf2out.h.
35487         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
35488         and .cfi_endproc around the pic thunks.
35489         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
35490         all queued unwind info register saves are saved before the call.
35491         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
35492         considered as sp-=4 for unwind info and the pop as sp+=4 which
35493         also clobbers dest, but doesn't actually restore it.
35495         PR debug/43290
35496         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
35497         RTX_FRAME_RELATED_P.
35499 2010-03-09  Jie Zhang  <jie@codesourcery.com>
35501         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
35502         whitespaces in output template.
35504 2010-03-09  Jie Zhang  <jie@codesourcery.com>
35506         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
35507         out array boundary.
35509 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
35511         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
35512         builtins.exp in a separate job.
35514 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35516         * graphite-sese-to-poly.c (add_param_constraints): Use
35517         lower_bound_in_type and upper_bound_in_type.
35519 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35521         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
35522         instead of unsigned_type_node.
35524 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35525             Reza Yazdani  <reza.yazdani@amd.com>
35527         PR middle-end/43065
35528         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
35529         on pointer type parameters.
35531 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
35533         PR middle-end/42644
35534         PR middle-end/42130
35535         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
35536         handle conversions from pointer to integers.
35537         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
35538         induction variable, to be able to work with code generated by CLooG.
35539         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
35540         (build_poly_scop): Bail out if we cannot codegen a loop.
35542 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
35544         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
35545         code generation with gloog_error.
35547 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35549         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
35550         Call fold_convert on all the returned values.
35551         (expand_scalar_variables_expr): Pass to
35552         expand_scalar_variables_ssa_name the type of the resulting expression.
35554 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35556         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
35557         ppl_min_for_le_pointset.
35558         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
35559         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
35561 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35563         * graphite-dependences.c (map_into_dep_poly): Removed.
35564         (dependence_polyhedron_1): Use combine_context_id_scat.
35566 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35568         * graphite-poly.h (struct poly_scattering): Add layout documentation.
35569         (struct poly_bb): Same.
35570         (combine_context_id_scat): New.
35572 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35574         PR middle-end/42326
35575         * sese.c (name_defined_in_loop_p): Return false for default
35576         definitions.
35578 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35580         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
35581         and clean up the logic.
35583 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
35585         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
35586         early return.
35588 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
35590         * var-tracking.c (remove_cselib_value_chains): Define only for
35591         ENABLE_CHECKING.
35592         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
35593         delete_slot_part, emit_notes_for_differences_1): Don't call
35594         remove_cselib_value_chains here.
35595         (set_slot_part, emit_notes_for_differences_2): Don't call
35596         add_cselib_value_chains here.
35597         (preserved_values): New vector.
35598         (preserve_value): New function.
35599         (add_uses, add_stores, vt_add_function_parameters): Use it
35600         instead of cselib_preserve_value.
35601         (changed_values_stack): New vector.
35602         (check_changed_vars_0): New function.
35603         (check_changed_vars_1, check_changed_vars_2): Use it.
35604         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
35605         changed_values_stack VALUEs.
35606         (vt_emit_notes): For all preserved_values call
35607         add_cselib_value_chains.  If ENABLE_CHECKING call
35608         remove_cselib_value_chains before verifying value_chains is empty.
35609         Initialize and free changed_values_stack.
35610         (vt_initialize): Initialize preserved_values.
35611         (vt_finalize): Free preserved_values.
35613 2010-03-08  Richard Guenther  <rguenther@suse.de>
35615         PR tree-optimization/43269
35616         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
35617         region detection.
35619 2010-03-08  Martin Jambor  <mjambor@suse.cz>
35621         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
35622         (ipa_is_param_called): Removed.
35623         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
35624         (ipa_print_node_params): Do not print the called flag.
35625         (ipa_write_node_info): Do not stream the called flag.
35626         (ipa_read_node_info): Likewise.
35628 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
35630         PR debug/43176
35631         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
35632         * cselib.c (struct expand_value_data): Add dummy field.
35633         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
35634         dummy to false.
35635         (cselib_dummy_expand_value_rtx_cb): New function.
35636         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
35637         any rtl.
35638         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
35639         * var-tracking.c: Include pointer-set.h.
35640         (variable): Change n_var_parts to char from int.  Add
35641         cur_loc_changed and in_changed_variables fields.
35642         (variable_canonicalize): Remove.
35643         (shared_var_p): New inline function.
35644         (unshare_variable): Maintain cur_loc_changed and
35645         in_changed_variables fields.  If var was in changed_variables,
35646         replace it there with new_var.  Just copy cur_loc instead of
35647         resetting it to something else.
35648         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
35649         (dataflow_set_union): Don't call variable_canonicalize.
35650         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
35651         of their DEBUG_EXPR_TREE_DECLs.
35652         (canonicalize_loc_order_check): Verify that cur_loc is NULL
35653         and in_changed_variables and cur_loc_changed is false.
35654         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
35655         and cur_loc_changed.  Don't update cur_loc here.
35656         (variable_merge_over_src): Don't call variable_canonicalize.
35657         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
35658         removing loc that is equal to cur_loc, clear cur_loc,
35659         set cur_loc_changed and ensure variable_was_changed is called.
35660         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
35661         compare pointers in cur_loc check, if it is equal to loc,
35662         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
35663         (variable_different_p): Remove compare_current_location argument,
35664         don't compare cur_loc.
35665         (dataflow_set_different_1): Adjust variable_different_p caller.
35666         (variable_was_changed): If dv had some var in changed_variables
35667         already, reset in_changed_variables flag for it and propagate
35668         cur_loc_changed over to the new variable.  On empty var
35669         always set cur_loc_changed.  Set in_changed_variables on whatever
35670         var is added to changed_variables.
35671         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
35672         Use shared_var_p.  When removing loc that is equal to cur_loc,
35673         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
35674         end, don't set it to something else, just call variable_was_changed.
35675         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
35676         loc being removed, clear cur_loc and set cur_loc_changed.
35677         Set cur_loc_changed if all locations have been removed.
35678         (struct expand_loc_callback_data): New type.
35679         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
35680         allocated.  Always create SUBREGs if simplify_subreg failed.
35681         Prefer to use cur_loc, when that fails and still in
35682         changed_variables (and seen first time) recompute it.  Set
35683         cur_loc_changed of variables which had to change cur_loc and
35684         compute elcd->cur_loc_changed if any of the subexpressions used
35685         had to change cur_loc.
35686         (vt_expand_loc): Adjust to pass arguments in
35687         expand_loc_callback_data structure.
35688         (vt_expand_loc_dummy): New function.
35689         (emitted_notes): New variable.
35690         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
35691         that weren't used for any other decl in current
35692         emit_notes_for_changes call call vt_expand_loc_dummy to update
35693         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
35694         first loc_chain location if NULL before.  Always use just
35695         cur_loc instead of first loc_chain location.  When cur_loc_changed
35696         is false, when not --enable-checking=rtl just don't emit any note.
35697         When rtl checking, compute the note and assert it is the same
35698         as previous note.  Clear cur_loc_changed and in_changed_variables
35699         at the end before removing from changed_variables.
35700         (check_changed_vars_3): New function.
35701         (emit_notes_for_changes): Traverse changed_vars to call
35702         check_changed_vars_3 on each changed var.
35703         (emit_notes_for_differences_1): Clear cur_loc_changed and
35704         in_changed_variables.  Recompute cur_loc of new_var.
35705         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
35706         (vt_emit_notes): Initialize and destroy emitted_notes.
35708 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
35710         PR rtl-optimization/42220
35711         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
35712         Use verify_reg_tracked to determine if we should use OP_OUT rather
35713         than OP_INOUT.
35714         (build_def_use): If we see an in-out operand for a register that we
35715         know nothing about, treat is an output if possible, fail the block if
35716         not.
35718 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
35720         PR debug/42897
35721         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
35722         permanently.
35724 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
35726         PR debug/42897
35727         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
35728         uses of relevant DEFs that are dead outside the loop too.
35730 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
35732         * var-tracking.c (dataflow_set_merge): Swap src and src2.
35733         Reverted:
35734         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
35735         PR debug/41371
35736         * var-tracking.c (values_to_unmark): New variable.
35737         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
35738         values_to_unmark vector.  Moved body to...
35739         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
35740         instead queue it into values_to_unmark vector.
35741         (vt_find_locations): Free values_to_unmark vector.
35743 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
35745         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
35746         (site.exp): Export them when plugins are enabled.
35748 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
35750         PR middle-end/42326
35751         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
35752         that contain scevs.
35753         (chrec_fold_multiply): Same.
35755 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
35757         PR c/43248
35758         * c-decl.c (build_compound_literal): Return early if init is
35759         an error_mark_node.
35761 2010-03-04  Martin Jambor  <mjambor@suse.cz>
35763         PR tree-optimization/43164
35764         PR tree-optimization/43191
35765         * tree-sra.c (type_consists_of_records_p): Reject records with
35766         zero-size bit-fields at the end.
35768 2010-03-04  Mike Stump  <mikestump@comcast.net>
35770         * Makefile.in (TAGS): Remove *.y.
35772 2010-03-04  Richard Guenther  <rguenther@suse.de>
35774         PR tree-optimization/40761
35775         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
35776         in reverse order.
35777         (my_rev_post_order_compute): New function.
35778         (init_pre): Call it.
35780 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
35782         PR middle-end/43209
35783         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
35784         decrease the cost of an IV candidate when the cost is infinite.
35786 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35788         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
35789         Use '3DNow!' for the extension of that name, ensure normal space
35790         after the string.
35791         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
35793 2010-03-03  Jeff Law  <law@redhat.com>
35795         * PR middle-end/32693
35796         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
35797         than gen_rtx_SUBREG.
35798         (extract_bit_field_1): Likewise.
35800 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
35802         * doc/sourcebuild.texi (Test directives): Document that arguments
35803         include-opts and exclude-opts are now optional for dg-skip-if,
35804         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
35806 2010-03-03  Jason Merrill  <jason@redhat.com>
35808         PR c++/12909
35809         * cgraph.h (varpool_node): Add extra_name field.
35810         * varpool.c (varpool_extra_name_alias): New.
35811         (varpool_assemble_decl): Emit extra name aliases.
35812         (varpool_mark_needed_node): Look past an extra name alias.
35813         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
35814         * lto-streamer-in.c (lto_input_tree): Read it.
35815         * lto-streamer-out.c (output_unreferenced_globals): Write it.
35817 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35819         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
35820         (sparc*-*-solaris2*): ...this.
35822 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
35824         PR debug/43229
35825         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
35826         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
35827         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
35828         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
35830         PR debug/43237
35831         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
35832         fallthrough to default handling, just with want_address 0 instead of 2.
35833         For single element lists, add_AT_loc directly, otherwise create an
35834         artificial variable DIE and stick location list to it.
35836         PR debug/43177
35837         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
35838         (VAL_EXPR_HAS_REVERSE): Define.
35839         (reverse_op): New function.
35840         (add_stores): For reversible operations add an extra MO_VAL_USE.
35842 2010-03-02  Jason Merrill  <jason@redhat.com>
35844         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
35846 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
35848         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
35849         (sparc64-*-linux*): Likewise.
35850         (sparc64-*-solaris2*): Include assembler files before linker ones.
35851         (sparc-*-solaris2*): Simplify and reorder to match previous case.
35852         * config/sparc/gas.h: Delete.
35853         * config/sparc/sol2-64.h: Add copyright notice.
35854         * config/sparc/sol2-gas-bi.h: Likewise.
35855         * config/sparc/sol2-gld.h: Likewise.
35856         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
35857         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
35858         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
35859         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
35860         (sparc_elf_asm_named_section): Rename into...
35861         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
35863 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
35865         * config/alpha/alpha.c (override_options): Fix -mtune error message.
35867 2010-03-02  Jeff Law  <law@redhat.com>
35869         PR middle-end/42431
35870         * reload1.c (rtx_p, substitute_stack): Declare.
35871         (substitute): Record addresses of changed rtxs.
35872         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
35873         Restore the original rtx when complete.
35874         (reload): Free subsitute_stack when complete.
35876 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
35878         * doc/gccint.texi (menu): Add Testsuites as a chapter.
35879         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
35880         new chapter.
35881         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
35882         LTO Testing, gcov Testing, profopt Testing, compat Testing,
35883         Torture Tests): Change from subsection to section.
35885 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
35886             Steven Bosscher  <steven@gcc.gnu.org>
35888         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
35889         instead of bb.
35891 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
35893         PR middle-end/42640
35894         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
35895         the assignment from the new induction variable to the assignment
35896         of the value from the original loop PHI function.
35898 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
35899             Daniel Jacobowitz  <dan@codesourcery.com>
35901         * doc/sourcebuild.texi (Test directives): Clarify options to
35902         dg-skip-if.
35904 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35906         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
35907         Disable cfi directives unless GCC and gas agree on using read-only
35908         .eh_frame sections for 64-bit.
35909         * configure: Regenerate.
35911 2010-03-01  Richard Guenther  <rguenther@suse.de>
35913         PR tree-optimization/43220
35914         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
35915         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
35917 2010-03-01  Richard Guenther  <rguenther@suse.de>
35918             Martin Jambor  <mjambor@suse.cz>
35920         PR middle-end/41250
35921         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
35922         gimplified parameters.
35924 2010-03-01  Christian Bruel  <christian.bruel@st.com>
35926         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
35928 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
35930         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
35932 2010-03-01  Richard Guenther  <rguenther@suse.de>
35934         PR middle-end/43213
35935         * expr.c (expand_assignment): Use the alias-oracle to tell
35936         if the rhs aliases the result decl.
35938 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35940         PR pch/14940
35941         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
35942         to sol_gt_pch_get_address.
35943         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
35944         64-bit, SPARC and x86.
35945         (sol_gt_pch_get_address): New function.
35947 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
35949         * toplev.h (inform_n, error_n): Declare.
35950         * diagnostic.c (inform_n, error_n): New function.
35952 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
35954         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
35955         has no rtl yet when processing local_decls, queue it and recheck
35956         if deferred stack allocation hasn't assigned it rtl.
35958 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
35960         * config/sh/sh.c (unspec_bbr_uid): New.
35961         (gen_block_redirect): Use it instead of INSN_UID.
35962         (gen_far_branch): Likewise.
35964 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
35966         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
35967         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
35969 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35971         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
35972         (Warning Options): -Wno-conversion-null is valid for
35973         Objective-C++ as well.
35974         * doc/tm.texi (Named Address Spaces): Likewise.
35975         * doc/plugins.texi (Plugins): Replace TABs with spaces.
35976         * doc/tree-ssa.texi (Tree SSA): Likewise.
35978 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35980         PR bootstrap/43202
35981         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
35982         by default.  Don't set the default arch for
35983         i[34567]86-*-darwin*|x86_64-*-darwin*.
35985 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35987         PR bootstrap/43202
35988         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
35989         default.  Set the default 32bit/64bit archs with $with_arch
35990         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
35992 2010-02-27  Richard Guenther  <rguenther@suse.de>
35994         PR tree-optimization/43186
35995         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
35996         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
35997         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
35998         unroller iterations.
36000 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
36002         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
36003         required and i[34567]86-*-* targets don't support 64bit ISA.
36005 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
36007         PR ada/43096
36008         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
36009         the same alias set.
36011 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
36013         * config.gcc: Set the default arch at least to Prescott for
36014         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
36015         if SSE math is enabled.
36017 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36019         * diagnostic.c (diagnostic_initialize): Update.
36020         (diagnostic_report_diagnostic): Test inhibit_notes_p for
36021         informative notes.
36022         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
36023         (diagnostic_inhibit_notes): New.
36024         * toplev.c (process_options): inhibit notes with -fcompare-debug.
36026 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36028         PR c/20631
36029         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
36030         * doc/standards.texi: Likewise.
36031         * doc/extend.texi: Likewise.
36032         * doc/trouble.texi: Likewise.
36033         * doc/cppopts.texi: Likewise.
36034         * doc/install.texi: Likewise.
36035         * c.opt (std=c90,std=gnu90): New options.
36036         * c-opts.c (c_common_handle_option): Handle them.
36038 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36040         PR c/24577
36041         * c-decl.c (undeclared_variable): Use an informative note.
36043 2010-02-26  Richard Guenther  <rguenther@suse.de>
36045         PR tree-optimization/43186
36046         * gimple.h (gimple_fold): Remove.
36047         * gimple.c (gimple_fold): Remove.  Inline into single user ...
36048         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
36049         Try harder for conditions.
36051 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
36053         PR debug/43190
36054         * function.c (used_types_insert): Don't skip through named pointer
36055         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
36056         and it is different from the main variant's type.
36058 2010-02-26  Nick Clifton  <nickc@redhat.com>
36060         * config/rx/rx.md (sminsi3): Remove bogus alternative.
36062 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
36064         * config.gcc: Support --with-fpmath=sse for x86.
36066         * config/i386/ssemath.h: New.
36068         * doc/install.texi (--with-fpmath=sse): Documented.
36070 2010-02-26  Richard Guenther  <rguenther@suse.de>
36072         PR tree-optimization/43188
36073         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
36074         vector types of over-aligned element type.
36076 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
36078         PR target/43175
36079         * config/i386/i386.c (expand_vec_perm_blend): Use correct
36080         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
36082 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
36084         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
36086 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
36088         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
36089         * var-tracking.c: Include diagnostic.h.
36090         (debug_dv): New function.
36091         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
36093         PR debug/43160
36094         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
36095         (add_value_chain, add_value_chains, remove_value_chain,
36096         remove_value_chains): Handle DEBUG_EXPRs.
36097         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
36099         PR debug/43161
36100         * regcprop.c (struct queued_debug_insn_change): New type.
36101         (struct value_data_entry): Add debug_insn_changes field.
36102         (struct value_data): Add n_debug_insn_changes field.
36103         (debug_insn_changes_pool): New variable.
36104         (free_debug_insn_changes, apply_debug_insn_changes,
36105         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
36106         (kill_value_one_regno): Call free_debug_insn_changes if needed.
36107         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
36108         fields.
36109         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
36110         changes for them.
36111         (copyprop_hardreg_forward_1): Don't call apply_change_group for
36112         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
36113         changes, call cprop_find_used_regs via note_stores.
36114         (copyprop_hardreg_forward): When copying vd from predecessor
36115         which has any queued DEBUG_INSN changes, make sure the pointers are
36116         cleared.  At the end call df_analyze and then if there are any
36117         DEBUG_INSN changes queued at the end of some basic block for still
36118         live registers, apply them.
36119         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
36121 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
36123         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
36124         (arm*-*-*): Ditto.
36126 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
36128         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
36129         targets.  Set the default with_cpu/with_arch from arch/cpu.
36130         Allow x86-64 and native for with_cpu/with_arch.
36132 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
36134         * ebitmap.c: Change calls to verify_popcount with calls to
36135         sbitmap_verify_popcount.
36136         (ebitmap_clear_bit): Fixed map->cacheindex test and
36137         map>cache update when bit clearing results in an empty
36138         element.
36140 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
36142         PR target/43154
36143         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
36144         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
36145         and support both V2DF and V2DI modes.
36146         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
36147         support both V2DF and V2DI modes.
36148         (general): Delete trailing whitespace from a few patterns.
36150         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
36151         V2DF/V2DI interleave high/low builtins.
36153         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
36154         new VSX builtins.
36156         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
36157         interleave high/low functions.
36159 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
36161         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
36162         #pragma extern_prefix.
36164 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
36166         PR debug/43166
36167         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
36168         BLKmode, assert op0 is a MEM and just adjust its mode.
36170         PR debug/43165
36171         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
36172         if bitpos isn't multiple of mode's bitsize.
36174 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36176         * c.opt (-ftemplate-depth=): New.
36177         (-ftemplate-depth-): Deprecate.
36178         * optc-gen.awk: Handle -ftemplate-depth=.
36179         * opth-gen.awk: Likewise.
36180         * c-opts.c (c_common_handle_option): Likewise.
36181         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
36183 2010-02-24  Jason Merrill  <jason@redhat.com>
36185         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
36187 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36189         * cfg.c (alloc_aux_for_block): Remove inline.
36190         (alloc_aux_for_edge): Likewise.
36192 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36194         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
36196 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36198         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
36199         * config/i386/sol2-gas.h: New file.
36200         * config.gcc (i[34567]86-*-solaris2*): Use it.
36202 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36204         PR c/43128
36205         * c-typeck.c (ep_convert_and_check): New.
36206         (build_conditional_expr): Use it.
36207         (build_binary_op): Likewise.
36209 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
36211         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
36213         PR debug/43150
36214         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
36215         bounds even for -O+.
36216         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
36217         expr needs to have DECL_NAME set.
36219 2010-02-24  Nick Clifton  <nickc@redhat.com>
36221         * config/mep/mep.c: Include gimple.h.
36222         (mep_function_uses_sp): Delete unused function.
36223         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
36224         parameters.  Use unsigned integers to count args.  Return a
36225         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
36227 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
36229         PR target/43107
36230         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
36231         greater or equal to nelt instead of 2 * nelt.
36232         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
36233         with nelt - 1.
36235 2010-02-23  Jason Merrill  <jason@redhat.com>
36237         PR debug/42800
36238         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
36239         in cfun->local_decls even if they have register types.
36241         PR c++/42837
36242         * stor-layout.c (place_field): Don't warn about unnecessary
36243         DECL_PACKED if the type is packed.
36245 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
36247         PR target/43139
36248         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
36249         GOTOFF relocs, even when the base reg isn't pic pointer.
36251 2010-02-23  Michael Matz  <matz@suse.de>
36253         PR debug/43077
36254         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
36255         (expand_gimple_basic_block): Generate and use debug temps if there
36256         are debug uses left after the last real use of TERed ssa names.
36257         Unlink debug immediate uses when they are expanded.
36259 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36261         PR 43123
36262         * config/i386/i386.c (override_options): Reorganise to provide
36263         better error messages.
36265 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36267         PR middle-end/43083
36268         * graphite-scop-detection.c (create_single_exit_edge): Move
36269         the call to find_single_exit_edge to....
36270         (create_sese_edges): ...here.  Don't handle multiple edges
36271         exiting the function.
36272         (build_graphite_scops): Don't handle multiple edges
36273         exiting the function.
36275 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36277         PR middle-end/43097
36278         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
36279         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
36281 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
36283         PR middle-end/43026
36284         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
36286 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36288         PR c++/43126
36289         * c-typeck.c (convert_arguments): Print declaration location.
36290         * c-common.c (validate_nargs): Rename as
36291         builtin_function_validate_nargs.
36292         (check_builtin_function_arguments): Update.
36294 2010-02-22  Richard Guenther  <rguenther@suse.de>
36296         PR lto/43045
36297         * tree-inline.c (declare_return_variable): Use the type of
36298         the call stmt lhs if available.
36300 2010-02-22  Duncan Sands  <baldrick@free.fr>
36302         * passes.c (register_pass): Always consider all pass lists when
36303         ref_pass_instance_number is zero.
36305 2010-02-22  Richard Guenther  <rguenther@suse.de>
36307         PR tree-optimization/42749
36308         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
36309         parameter.  Do arithmetic in the original type.
36310         (update_accumulator_with_ops): Likewise.
36311         (adjust_accumulator_values): Adjust.
36313 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36315         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
36316         (QI to BLKmode splitter): New splitter.
36318 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
36320         * config/i386/i386.c (initial_ix86_tune_features): Turn on
36321         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
36323 2010-02-22  Richard Guenther  <rguenther@suse.de>
36325         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
36327 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
36329         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
36330         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
36331         ($(T)crti.o, $(T)crtn.o): Remove rules.
36333 2010-02-21  Tobias Burnus  <burnus@net-b.de>
36335         PR fortran/35259
36336         * doc/invoke.texi (-fassociative-math): Document that this
36337         option is automatically enabled for Fortran.
36339 2010-02-20  David S. Miller  <davem@davemloft.net>
36341         * configure.ac: Test if linker and assembler properly support
36342         GOTDATA_OP relocations.
36343         * configure: Rebuild.
36344         * config.in: Likewise.
36345         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
36346         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
36347         (movsi_high_pic): Likewise.
36348         (movdi_lo_sum_pic): Likewise.
36349         (movdi_high_pic): Likewise.
36350         (movsi_pic_gotdata_op): New pattern.
36351         (movdi_pic_gotdata_op): Likewise.
36352         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
36353         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
36355 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
36357         PR target/43067
36358         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
36359         attribute to ssemul.
36360         (xop_mulv2div2di3_high): Ditto.
36362 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36364         PR c++/35669
36365         * c.opt (Wconversion-null): New option.
36366         * doc/invoke.texi (Wconversion-null): Document.
36368 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36370         * common.opt (Wlarger-than-): Add Undocumented.
36372 2010-02-19  Mike Stump  <mikestump@comcast.net>
36374         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
36376 2010-02-19  Jason Merrill  <jason@redhat.com>
36378         PR target/40332
36379         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
36380         * configure: Likewise.
36382 2010-02-20  Alan Modra  <amodra@gmail.com>
36384         PR middle-end/42344
36385         * cgraph.h (cgraph_make_decl_local): Declare.
36386         * cgraph.c (cgraph_make_decl_local): New function.
36387         (cgraph_make_node_local): Use it.
36388         * cgraphunit.c (cgraph_function_versioning): Likewise.
36389         * ipa.c (function_and_variable_visibility): Likewise.
36391 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36393         PR bootstrap/43121
36394         * except.c (sjlj_emit_function_enter): Don't call
36395         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
36396         directly.
36397         * rtl.h (add_reg_br_prob_note): Remove prototype.
36399 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
36401         PR 41779
36402         * c-common.c (conversion_warning): Remove widening conversions
36403         before checking the conversion of integers to reals.
36405 2010-02-19  Mike Stump  <mikestump@comcast.net>
36407         PR middle-end/43125
36408         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
36410         PR objc/43061
36411         * cgraphunit.c (process_function_and_variable_attributes): Check
36412         DECL_PRESERVE_P instead of looking up attribute "used".
36413         * ipa-pure-const.c (check_decl): Likewise.
36414         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
36415         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
36416         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
36417         instead of attribute "used".
36418         * config/sol2-c.c (solaris_pragma_init): Likewise.
36419         (solaris_pragma_fini): Likewise.
36421 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36423         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
36424         Use XCNEW instead of xcalloc.
36425         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
36426         XNEW instead of xmalloc.
36427         (get_fields): Use XNEWVEC instead of xmalloc.
36429         PR debug/43084
36430         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
36431         populate vars array.
36432         (create_new_general_access): For debug stmts just reset value.
36433         (get_stmt_accesses): For accesses within debug stmts just record them
36434         using add_access_to_acc_sites instead of preventing the peeling or
36435         counting them as accesses.
36437         PR middle-end/42233
36438         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
36440 2010-02-19  Richard Guenther  <rguenther@suse.de>
36442         PR tree-optimization/42916
36443         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
36444         instructions.
36446 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
36448         * configure.ac: Replace all uses of changequote in macro arguments
36449         with proper quoting.
36451 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36453         PR middle-end/42233
36454         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
36456 2010-02-19  Richard Guenther  <rguenther@suse.de>
36458         PR tree-optimization/42944
36459         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
36460         test for aliasing with errno.
36462 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
36464         PR middle-end/42233
36465         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
36466         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
36467         * dojump.c: Include output.h.
36468         (inv): New inline function.
36469         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
36470         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
36471         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
36472         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
36473         argument, pass it down to other calls.
36474         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
36475         add REG_BR_PROB note to the conditional jump.
36476         * cfgexpand.c (add_reg_br_prob_note): Removed.
36477         (expand_gimple_cond): Don't call it, add the probability
36478         as last argument to jumpif_1/jumpifnot_1.
36479         * Makefile.in (dojump.o): Depend on output.h.
36480         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
36481         callers.
36482         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
36483         * stmt.c (do_jump_if_equal): Likewise.
36484         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
36485         * loop-unswitch.c (compare_and_jump_seq): Likewise.
36486         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
36487         Likewise.
36488         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
36489         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
36490         jumpifnot_1 callers.
36491         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
36492         callers.
36493         (store_expr): Adjust jumpifnot caller.
36494         (store_constructor): Adjust jumpif caller.
36496         PR middle-end/42233
36497         * gimplify.c (gimple_boolify): For __builtin_expect call
36498         gimple_boolify also on its first argument.
36500 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
36502         * configure.ac (gnu-unique-object): Wrap regexps using [] in
36503         changequote block.
36504         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
36505         * configure: Regenerated.
36507 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
36509         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
36510         lang_hooks.types_compatible_p instead of comptypes.
36512 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
36514         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
36515         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
36516         if __prefer_thumb__ is defined.
36518 2010-02-18  Martin Jambor  <mjambor@suse.cz>
36520         PR tree-optimization/43066
36521         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
36522         array with zero-sized element type.
36524 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
36526         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
36527         rtx, allocate struct var_loc_node here and return it to the
36528         caller, and only if it is actually needed.
36529         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
36530         move it earlier and return immediately if it returns NULL.
36532 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
36534         * config/sparc/gas.h: New file.  Restore
36535         TARGET_ASM_NAMED_SECTION to its ELF default.
36536         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
36537         check !HAVE_GNU_AS.
36538         * config/sparc/sparc.c (sparc_elf_asm_named_section):
36539         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
36540         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
36541         after sparc/sysv4.h.
36543 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
36545         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
36547 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
36549         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
36550         patterns from predicated pattern.
36552 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
36554         PR target/43103
36555         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
36556         for insn mnemonic suffix.
36558 2010-02-17  Richard Guenther  <rguenther@suse.de>
36560         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
36561         to loop PHI nodes.
36563 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
36565         PR debug/42918
36566         * caller-save.c (save_call_clobbered_regs): If BB ends with
36567         a DEBUG_INSN, move any notes in between last real insn and the last
36568         DEBUG_INSN after the last DEBUG_INSN.
36570 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
36572         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
36573         Fix return type.  Fix argument type.  Explain meaning of return value.
36575 2010-02-16  Richard Guenther  <rguenther@suse.de>
36577         PR tree-optimization/41043
36578         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
36579         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
36580         statements ...
36581         (vrp_visit_phi_node): ... but only for loop PHI nodes.
36583 2010-02-16  Ira Rosen  <irar@il.ibm.com>
36585         PR tree-optimization/43074
36586         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
36587         * tree-vect-loop.c (vect_analyze_loop_operations): Add
36588         vectorizable cycles in hybrid SLP check.
36589         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
36591 2010-02-16  Richard Guenther  <rguenther@suse.de>
36593         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
36594         (true_dependence): If memrefs_conflict_p computes must-alias
36595         trust it.  Move TBAA check after offset-based disambiguation.
36596         (canon_true_dependence): Likewise.
36598 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
36600         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
36601         * doc/invoke.texi: Document it.
36602         * var-tracking.c: Include toplev.h and params.h.
36603         (vt_find_locations): Return bool indicating success.  Compute
36604         hash sizes unconditionally.  Check new parameter, report.
36605         (variable_tracking_main_1): Check vt_find_locations results and
36606         retry.  Renamed from...
36607         (variable_tracking_main): ... this.  New wrapper to preserve
36608         flag_var_tracking_assignments.
36609         * Makefile.in (var-tracking.o): Adjust dependencies.
36611 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
36612             Jakub Jelinek  <jakub@redhat.com>
36614         PR target/42854
36615         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
36616         if weak_import attribute is present.
36617         * config/darwin.c (machopic_select_section): Likewise.
36619 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
36621         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
36622         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
36623         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
36624         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
36626         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
36627         types.
36629         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
36630         Fix argument types.
36632         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
36633         Rewrite text to refer to the names.
36635 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
36637         * config/i386/i386-builtin-types.def
36638         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
36639         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
36640         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
36641         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
36642         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
36643         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
36644         IX86_BUILTIN_VPERMIL2PS256.
36645         (MULTI_ARG_4_DF2_DI_I): Defined.
36646         (MULTI_ARG_4_DF2_DI_I1): Defined.
36647         (MULTI_ARG_4_SF2_SI_I): Defined.
36648         (MULTI_ARG_4_SF2_SI_I1): Defined.
36649         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
36650         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
36651         __builtin_ia32_vpermil2ps256.
36652         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
36653         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
36654         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
36655         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
36656         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
36657         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
36658         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
36659         CODE_FOR_xop_vpermil2v8sf3.
36660         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
36661         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
36662         * config/i386/xopintrin.h (_mm_permute2_pd): New.
36663         (_mm256_permute2_pd): New.
36664         (_mm_permute2_ps): New.
36665         (_mm256_permute2_ps): New.
36667 2010-02-15  Nick Clifton  <nickc@redhat.com>
36669         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
36670         boolean parameters.  Use emit_jump_insn when emitting a pop
36671         instruction containing a return insn.
36672         (push): Use 'true' rather than '1' as second parameter to F.
36673         (h8300_expand_prologue): Likewise.
36674         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
36675         (h8300_expand_epilogue): Likewise.
36677 2010-02-15  Richard Guenther  <rguenther@suse.de>
36679         PR middle-end/43068
36680         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
36681         if that is zero.
36683 2010-02-15  Nick Clifton  <nickc@redhat.com>
36685         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
36686         delta.
36688 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
36690         * intl.c (fake_ngettext): New function.
36691         * intl.h (fake_ngettext): Declare.
36692         (ngettext): Define macro.
36693         * collect2.c (notice_translated): New function.
36694         (main): Use notice_translated and ngettext.
36695         * collect2.h (notice_translated): Declare.
36697 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
36699         * reorg.c (delete_computation): Comment fixes.
36700         * caller-save.c (setup_save_areas): Idem.
36701         * sel-sched-dump.c (dump_lv_set): Idem.
36702         * rtl.def: Idem.
36704 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36706         * config/s390/s390.c (s390_sched_init): New function.
36707         (TARGET_SCHED_INIT): Target hook defined.
36709 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
36710             Jack Howarth  <howarth@bromo.med.uc.edu>
36711             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
36713         PR target/42982
36714         Partial revert of unintended change in fix for PR41605.
36715         * config/darwin.h: Fix typo.
36716         * config/darwin9.h: Same.
36718 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
36720         * c-pch.c (pch_init): Clear v.
36722 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36724         PR middle-end/42930
36725         * graphite-scop-detection.c (graphite_can_represent_scev): Call
36726         graphite_can_represent_init for MULT_EXPR.
36728 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36730         PR middle-end/42914
36731         PR middle-end/42530
36732         * graphite-sese-to-poly.c (remove_phi): New.
36733         (translate_scalar_reduction_to_array): Call remove_phi.
36735 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36737         PR middle-end/42771
36738         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
36739         * graphite-clast-to-gimple.h (gloog): Update declaration.
36740         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
36741         * graphite-poly.h (struct poly_bb): Add missing comments.
36742         (struct scop): Add poly_scop_p field.
36743         (POLY_SCOP_P): New.
36744         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
36745         * graphite.c (graphite_transform_loops): Build the polyhedral
36746         representation for each scop before code generation.
36747         * sese.c (rename_variables_in_operand): Removed.
36748         (rename_variables_in_expr): Return the renamed expression.
36749         (rename_sese_parameters): New.
36750         * sese.h (rename_sese_parameters): Declared.
36752 2010-02-11  Richard Guenther  <rguenther@suse.de>
36754         PR tree-optimization/42998
36755         * tree-ssa-pre.c (create_expression_by_pieces): Treat
36756         POINTER_PLUS_EXPR properly.
36758 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36759             Changpeng Fang  <changpeng.fang@amd.com>
36761         PR middle-end/40886
36762         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
36763         the cost of an IV candidate when the IV is used in a test against zero.
36765         * gcc.dg/tree-ssa/ivopts-3.c: New.
36767 2010-02-11  Richard Guenther  <rguenther@suse.de>
36769         PR lto/41664
36770         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
36771         pointer-vs-decl case by swapping refs.  Handle some cases
36772         of pointer-vs-decl disambiguations more conservatively.
36773         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
36774         to false after expanding.
36776 2010-02-11  Richard Guenther  <rguenther@suse.de>
36778         PR driver/43021
36779         * gcc.c (process_command): Handle LTO file@offset case more
36780         appropriately.
36782 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
36784         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
36785         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
36786         of DEBUG_INSNs.
36787         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
36789         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
36790         if MEM's mode size isn't DWARF2_ADDR_SIZE.
36791         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
36792         Optimize eq/ne comparisons when both arguments are known to be
36793         zero-extended.
36794         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
36795         Don't mask operands unnecessarily if they are known to be already
36796         zero-extended.
36798 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
36800         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
36801         instead of loop.
36803 2010-02-10  Richard Guenther  <rguenther@suse.de>
36805         PR tree-optimization/43017
36806         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
36807         for wrapping signed arithmetic.
36809 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
36811         PR debug/43010
36812         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
36813         if no debug info should be emitted for it.
36815 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
36817         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
36818         note when flag_exceptions is set.
36820 2010-02-10  Duncan Sands  <baldrick@free.fr>
36822         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
36824 2010-02-10  Richard Guenther  <rguenther@suse.de>
36826         PR c/43007
36827         * tree.c (get_unwidened): Handle constants.
36828         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
36830 2010-02-10  Martin Jambor  <mjambor@suse.cz>
36832         PR lto/42985
36833         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
36834         check for variable argument counts independently.
36836 2010-02-10  Christian Bruel  <christian.bruel@st.com>
36838         PR target/42841
36839         * config/sh/sh.c (find_barrier): Increase length for non delayed
36840         conditional branches.
36842 2010-02-10  Christian Bruel  <christian.bruel@st.com>
36844         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
36846 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
36848         * builtins.c (set_builtin_user_assembler_name): Also handle
36849         ffs if int is smaller than word.
36851 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
36853         PR middle-end/42973
36854         * ira-conflicts.c (get_dup): Remove.
36855         (process_reg_shuffles): Add new parameter.  Use it as an
36856         additional guard for copy generation.
36857         (add_insn_allocno_copies): Rewrite.
36859 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
36861         * common.opt (fsched2-use-traces): Preserved for backward
36862         compatibility.
36863         * doc/invoke.texi: Remove the documentation about option
36864         -fsched2-use-traces.
36865         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
36866         flag_sched2_use_traces.
36867         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
36868         the backward compatibility flag section.
36870 2010-02-09  Richard Guenther  <rguenther@suse.de>
36872         PR tree-optimization/43008
36873         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
36874         make HEAP variables initialized from global memory if they
36875         are not known builtin functions.
36876         (find_func_aliases): Adjust.
36878 2010-02-09  Richard Guenther  <rguenther@suse.de>
36880         PR tree-optimization/43000
36881         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
36882         arithmetic manually.
36884 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
36886         PR tree-optimization/42931
36887         * tree-loop-linear.c (try_interchange_loops): Don't call
36888         double_int_mul if estimated_loop_iterations failed.
36890 2010-02-08  Martin Jambor  <mjambor@suse.cz>
36892         PR middle-end/42898
36893         * tree-sra.c (build_accesses_from_assign): Do not mark in
36894         should_scalarize_away_bitmap if stmt has volatile ops.
36895         (sra_modify_assign): Do not process assigns piecemeal if if stmt
36896         has volatile ops.
36898 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
36900         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
36902 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
36904         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
36905         before the pattern.
36907 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
36909         PR middle-end/42946
36910         * df-core.c (df_finish_pass): Change type of saved_flags to int.
36912 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
36914         PR middle-end/42988
36915         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
36916         to unknown_dependence.
36917         (graphite_legal_transform_dr): Handle the unknown_dependence.
36918         (graphite_carried_dependence_level_k): Same.
36920 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
36922         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
36924 2010-02-07  Richard Guenther  <rguenther@suse.de>
36926         PR middle-end/42991
36927         * expr.c (get_inner_reference): Always initialize *pbitsize.
36929 2010-02-07  Richard Guenther  <rguenther@suse.de>
36931         PR middle-end/42956
36932         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
36933         new ARRAY_REFs on variable size element or minimal index arrays.
36934         Complete.
36935         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
36936         gimple_fold_indirect_ref.
36938 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
36940         PR target/42957
36941         * arm.c (arm_override_options): Just return if the user has specified
36942         an invalid fpu name.
36944 2010-02-03  Jason Merrill  <jason@redhat.com>
36946         PR c++/42870
36947         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
36948         i386_pe_maybe_record_exported_symbol.
36950 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
36952         PR target/42924
36953         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
36954         (pa_delegitimize_address): New function.
36956 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
36958         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
36959         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
36961 2010-02-05  Richard Guenther  <rguenther@suse.de>
36963         PR lto/42762
36964         * lto-streamer-in.c (get_resolution): Deal with references
36965         to undefined functions.
36967 2010-02-05  Richard Guenther  <rguenther@suse.de>
36969         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
36970         (fold_const_aggregate_ref): Likewise.
36971         (ccp_fold_stmt): Substitute loads.
36972         (maybe_fold_reference): Verify types before substituting.
36973         Unshare properly.
36974         (fold_gimple_assign): Unshare properly.
36975         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
36977 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
36979         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
36980         for rs6000_gen_cell_microcode.
36982 2010-02-04  Richard Guenther  <rguenther@suse.de>
36984         PR rtl-optimization/42952
36985         * dse.c (const_or_frame_p): Remove MEM handling.
36987 2010-02-04  Nick Clifton  <nickc@redhat.com>
36989         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
36990         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36991         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
36992         (mn10300_asm_output_mi_thunk): New function.
36993         (mn10300_can_output_mu_thunk): New function.
36994         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
36995         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
36996         (FUNCTION_ARG): Delete incorrect comment.
36998 2010-02-03  Jason Merrill  <jason@redhat.com>
37000         PR c++/40138
37001         * fold-const.c (operand_equal_p): Handle erroneous types.
37003 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
37005         * config/h8300/h8300.md (can_delay): Fix attibute condition.
37007 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
37009         PR rtl-optimization/42941
37010         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
37011         of xmalloc.
37013 2010-02-03  Jason Merrill  <jason@redhat.com>
37015         PR c++/35652
37016         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
37018 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
37020         PR debug/42896
37021         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
37022         (cselib_reset_table): Renamed from...
37023         (cselib_reset_table_with_next_value): ... this.
37024         (cselib_get_next_uid): Renamed from...
37025         (cselib_get_next_unknown_value): ... this.
37026         * cselib.c (next_uid): Renamed from...
37027         (next_unknown_value): ... this.
37028         (cselib_clear_table): Adjust.
37029         (cselib_reset_table): Adjust.  Renamed from...
37030         (cselib_reset_table_with_next_value): ... this.
37031         (cselib_get_next_uid): Adjust.  Renamed from...
37032         (cselib_get_next_unknown_value): ... this.
37033         (get_value_hash): Use hash.
37034         (cselib_hash_rtx): Likewise.
37035         (new_cselib_val): Adjust.  Set and dump uid.
37036         (cselib_lookup_mem): Pass next_uid as hash.
37037         (cselib_subst_to_values): Likewise.
37038         (cselib_log_lookup): Dump uid.
37039         (cselib_lookup): Pass next_uid as hash.  Adjust.
37040         (cselib_process_insn): Adjust.
37041         (cselib_init): Initialize next_uid.
37042         (cselib_finish): Adjust.
37043         (dump_cselib_table): Likewise.
37044         * dse.c (canon_address): Dump value uid.
37045         * print-rtl.c (print_rtx): Print value uid.
37046         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
37047         (dvuid): New type.
37048         (dv_uid): New function, sort of renamed from...
37049         (dv_htab_hash): ... this, reimplemented in terms of it and...
37050         (dv_uid2hash): ... this.  New.
37051         (variable_htab_eq): Drop excess assertions.
37052         (tie_break_pointers): Removed.
37053         (canon_value_cmp): Compare uids.
37054         (variable_post_merge_New_vals): Print uids.
37055         (vt_add_function_parameters): Adjust.
37056         (vt_initialize): Reset table.  Adjust.
37058 2010-02-03  Richard Guenther  <rguenther@suse.de>
37060         PR tree-optimization/42944
37061         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
37062         (call_may_clobber_ref_p_1): Likewise.  Properly handle
37063         malloc and calloc clobbering errno.
37065 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
37067         * doc/invoke.texi: Fix name of sched1 dump.
37069         * opts.c (decode_options): Set flag_tree_switch_conversion
37070         only conditionally on optimize >= 2.
37072         * gcse.c: Assorted comment fixes in pass description.
37074 2010-02-03  Anthony Green  <green@moxielogic.com>
37076         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
37077         nop padding in order to maintain alignment of storage location of
37078         target function address.
37079         (moxie_trampoline_init): Store target function address at newly
37080         aligned location.
37081         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
37082         to 32.
37083         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
37085 2010-02-03  Richard Guenther  <rguenther@suse.de>
37087         PR middle-end/42927
37088         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
37090 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37092         * config.gcc: Reenable check for obsolete targets.
37093         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
37094         mips-sgi-irix6.[0-4]*.
37096 2010-02-02  Nick Clifton  <nickc@redhat.com>
37098         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
37099         constant size of 4 as being the same as 0.
37100         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
37101         can take values in the range 0..4.
37103 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
37105         PR java/41991
37106         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
37107         as _darwin10_Unwind_FindEnclosingFunction().
37108         * libgcc-libsystem.ver: New.
37110 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
37112         PR target/41399
37113         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
37114         implicitly set registers.
37116 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
37118         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
37119         (arm_override_options): Allow automatic selection of the thread
37120         pointer register if thumb2.
37121         (legitimize_pic_address): Improve code sequences for Thumb2.
37122         (arm_call_tls_get_addr): Likewise.
37123         (legitimize_tls_address): Likewise.
37124         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
37125         (pic_load_addr_32bit): ... this.  New named pattern.
37126         * thumb2.md (pic_load_addr_thumb2): Delete.
37127         (pic_load_dot_plus_four): Delete.
37128         (tls_load_dot_plus_four): New named pattern.
37130 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37132         PR libgomp/29986
37133         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
37134         Document fix for TLS bug.
37136 2010-01-31  Richard Guenther  <rguenther@suse.de>
37138         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
37139         conservatively correct.
37141 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37143         PR target/42850
37144         Revert:
37145         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
37147         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
37149 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
37151         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
37153 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
37155         * config.gcc: Adjust order of makefile fragments for mingw targets.
37157 2010-01-31  Richard Guenther  <rguenther@suse.de>
37159         PR middle-end/42898
37160         * gimplify.c (gimplify_init_constructor): For volatile LHS
37161         initialize a temporary.
37163 2010-01-31  Matthias Klose  <doko@ubuntu.com>
37165         * configure.ac: Fix __stack_chk_fail check for cross builds configured
37166         --with-headers
37167         * configure: Regenerate.
37169 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
37171         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
37172         the same alias set and their sizes different constantness.
37173         (aliasing_component_refs_p): Revert 2009-10-24 change.
37175 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37177         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
37178         unused.
37180 2010-01-29  Richard Guenther  <rguenther@suse.de>
37182         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
37183         Assert we successfully updated the call.
37185 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
37187         PR rtl-optimization/42889
37188         * df.h (df_set_bb_dirty_nonlr): New prototype.
37189         * df-core.c (df_set_bb_dirty_nonlr): New function.
37190         * df-scan.c (df_insn_rescan): Call it instead of
37191         df_set_bb_dirty for DEBUG_INSNs.
37193 2010-01-29  Richard Guenther  <rguenther@suse.de>
37195         PR middle-end/37448
37196         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
37197         quadratic behavior in most cases.
37199 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
37201         PR target/42891
37202         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
37203         in the call to gen_x86_movsicc_0_m1.
37205 2010-01-28  Richard Guenther  <rguenther@suse.de>
37207         PR tree-optimization/42871
37208         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
37210 2010-01-28  Richard Guenther  <rguenther@suse.de>
37212         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
37213         into call arguments.
37215 2010-01-28  Richard Guenther  <rguenther@suse.de>
37217         PR middle-end/42883
37218         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
37219         the forwarder if the destination is an EH landing pad.
37221 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
37223         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
37224         block list passed to gimple_duplicate_sese_tail.
37225         (parallelize_loops): Avoid parallelization when the function
37226         has_nonlocal_label.
37227         Avoid parallelization when the preheader is IRREDUCIBLE.
37228         Try to optimize when estimated_loop_iterations_int is unresolved.
37229         Add the loop's location to the dump file.
37230         * tree-cfg.c (add_phi_args_after_redirect): Remove.
37231         (gimple_duplicate_sese_tail): Remove the check for the latch.
37232         Redirect nexits to the exit block.
37233         Remove handling of the incoming edges to the latch.
37234         Redirect the backedge from the copied latch to the exit bb.
37236 2010-01-28  Michael Matz  <matz@suse.de>
37238         PR target/42881
37239         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
37240         Wrap force_reg into a sequence, emit it before user.
37242 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
37244         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
37245         (arm_rev): New.
37246         (arm_legacy_rev): Likewise.
37247         (thumb_legacy_rev): Likewise.
37249 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
37251         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
37252         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
37253         on MEM's address failed, try avoid_constant_pool_reference and
37254         recurse if it returned something different.
37255         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
37256         address, try avoid_constant_pool_reference and recurse if it
37257         returned something different.
37258         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
37259         address and avoid_constant_pool_reference returned something
37260         different, don't set have_address.
37262 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
37264         PR debug/42861
37265         * var-tracking.c (val_store): Add modified argument, obey it.
37266         Adjust callers.
37267         (count_uses): Move down logging of main.
37268         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
37269         don't need resolution.
37270         (emit_notes_in_bb): Likewise.
37272 2010-01-27  Richard Guenther  <rguenther@suse.de>
37274         PR middle-end/42878
37275         * tree-inline.c (remap_decl): Delay remapping of SSA name
37276         default definitions until we need them.
37278 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
37280         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
37281         (rs6000_delegitimize_address): New function.
37283         * config/s390/s390.c (s390_delegitimize_address): Call
37284         delegitimize_mem_from_attrs.
37286         PR middle-end/42874
37287         * tree-inline.c (cannot_copy_type_1): Removed.
37288         (copy_forbidden): Don't forbid copying of functions containing
37289         records/unions with variable length fields.
37291 2010-01-27  Christian Bruel  <christian.bruel@st.com>
37293         Revert:
37294         PR target/42841
37295         * config/sh/sh.c (find_barrier): Increase length for non delayed
37296         conditional branches.
37298 2010-01-27  Matthias Klose  <doko@ubuntu.com>
37300         * configure.ac (gnu-unique-object): Fix ldd version check.
37301         * configure: Regenerate.
37303 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37305         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
37306         HAVE_GNU_AS value.
37307         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
37308         Test for HAVE_GNU_AS value.
37310 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37312         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
37313         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
37314         INT64_TYPE): Define.
37315         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
37316         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
37317         INT_LEAST64_TYPE): Define.
37318         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
37319         UINT_LEAST64_TYPE): Define.
37320         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
37321         INT_FAST64_TYPE): Define.
37322         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
37323         UINT_FAST64_TYPE): Define.
37324         (INTMAX_TYPE, UINTMAX_TYPE): Define.
37325         (INTPTR_TYPE, UINTPTR_TYPE): Define.
37326         (SIG_ATOMIC_TYPE): Define.
37328 2010-01-26  Richard Guenther  <rguenther@suse.de>
37330         * df-scan.c (df_scan_set_bb_info): Remove assert.
37331         (df_insn_rescan_debug_internal): Merge asserts.
37332         (df_install_ref): Likewise.
37333         (df_mark_reg): Use bitmap_set_range.
37334         (df_hard_reg_used_p): Remove assert.
37335         (df_hard_reg_used_count): Likewise.
37337 2010-01-26  Richard Guenther  <rguenther@suse.de>
37339         PR rtl-optimization/42685
37340         * web.c (web_main): Ignore DEBUG_INSNs.
37342 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
37344         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
37346         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
37347         Fix types of fndecl and arglist parameters.
37349 2010-01-26  Richard Guenther  <rguenther@suse.de>
37351         PR middle-end/42806
37352         * tree-eh.c (unsplit_eh): Skip debug insns.
37354 2010-01-26  Richard Guenther  <rguenther@suse.de>
37356         PR tree-optimization/42250
37357         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
37359 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
37361         PR fortran/42866
37362         * omp-low.c (expand_omp_sections): Only use single_pred if
37363         l2_bb is single_pred_p.
37365 2010-01-25  Christian Bruel  <christian.bruel@st.com>
37367         PR target/42841
37368         * config/sh/sh.c (find_barrier): Increase length for non delayed
37369         conditional branches.
37370         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
37372 2010-01-24  David S. Miller  <davem@davemloft.net>
37374         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
37375         define if not using GAS.
37376         * config/sparc/sparc.c (sparc_elf_asm_named_section):
37377         Likewise.  Delete SECTION_MERGE code, which is only applicable
37378         when using GAS.
37380 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
37382         PR c++/42748
37383         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
37384         mangling of va_list in system headers.
37386 2010-01-23  Toon Moene  <toon@moene.org>
37388         * tree-predcom.c (combine_chains): Return NULL, not false.
37390 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
37392         * tree-loop-distribution.c (distribute_loop): Fix declaration and
37393         initialization of variable res to agree with return type.
37395 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
37397         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
37398         * tree-sra.c: Add include of expr.h.
37400 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
37402         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
37403         insert the debug stmt on the single non-EH edge from the stmt.
37405 2010-01-22  Richard Henderson  <rth@redhat.com>
37407         PR tree-opt/42833
37408         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
37409         the RHS until after generate_subtree_copies has insertted its
37410         code before the current statement.
37412 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
37414         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
37416         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
37418 2010-01-21  Martin Jambor  <mjambor@suse.cz>
37420         PR tree-optimization/42585
37421         * tree-sra.c (struct access): New field grp_total_scalarization.
37422         (dump_access): Dump the new field.
37423         (should_scalarize_away_bitmap): New variable.
37424         (cannot_scalarize_away_bitmap): Likewise.
37425         (sra_initialize): Allocate new bitmaps.
37426         (sra_deinitialize): Free new bitmaps.
37427         (create_access_1): New function.
37428         (create_access): Parts moved to create_access_1.
37429         (type_consists_of_records_p): New function.
37430         (completely_scalarize_record): Likewise.
37431         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
37432         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
37433         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
37434         access.
37435         (analyze_all_variable_accesses): Completely scalarize small eligible
37436         records.
37438 2010-01-21  Martin Jambor  <mjambor@suse.cz>
37440         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
37442 2010-01-21  Andrew Haley  <aph@redhat.com>
37444         * gcc.c (process_command): Move lang_specific_driver before
37445         setting cc_libexec_prefix.
37447 2010-01-21  Richard Guenther  <rguenther@suse.de>
37449         PR middle-end/19988
37450         * fold-const.c (negate_expr_p): Pretend only negative
37451         real constants are easily negatable.
37453 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
37454             Jason Merrill  <jason@redhat.com>
37456         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
37457         (TYPE_TRANSPARENT_AGGR): this, for union and record.
37458         * calls.c (initialize argument_information): Handle it.
37459         * c-common.c (handle_transparent_union_attribute): Use new name.
37460         * c-decl.c (finish_struct): Ditto.
37461         * c-typeck.c (type_lists_compatible_p): Ditto.
37462         (convert_for_assignment): Use new name and also handle record.
37463         * function.c (aggregate_value_p): Handle it.
37464         (pass_by_reference): Ditto.
37465         (assign_parm_data_types): Ditto.
37466         * print-tree.c (print_node): Ditto.
37467         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
37468         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
37469         * tree.c (first_field): New fn.
37471 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
37473         PR target/42818
37474         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
37475         even when linking statically, for now.
37477 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
37479         PR debug/42715
37480         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
37481         without a cselib val.
37482         (count_uses): Accept MO_VAL_SET with no val on stores.
37483         (add_stores): Likewise.
37485 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37487         * var-tracking.c (check_value_val): Add a compile time assertion.
37488         (dv_is_decl_p): Simplify.
37489         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
37490         gcc_assert if ENABLE_CHECKING.
37492 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
37494         PR debug/42782
37495         * var-tracking.c: Include tree-flow.h.
37496         (mem_dies_at_call): New.
37497         (dataflow_set_preserve_mem_locs): Use it.
37498         (dataflow_set_remove_mem_locs): Likewise.
37499         (dump_var): Renamed from dump_variable.  Adjust all callers.
37500         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
37501         * Makefile.in (var-tracking.o): Adjust deps.
37503 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
37505         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
37507 2010-01-20  Richard Guenther  <rguenther@suse.de>
37509         PR tree-optimization/42717
37510         * tree-ssa-dce.c (get_live_post_dom): Remove.
37511         (forward_edge_to_pdom): Take an arbitrary edge to copy
37512         degenerate PHI args from.
37513         (remove_dead_stmt): Use the first post-dominator even if it
37514         does not contain live statements as redirection destination.
37516 2010-01-20  Richard Guenther  <rguenther@suse.de>
37518         * tree-inline.c (estimate_num_insns): Handle EH builtins.
37520 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37522         * sel-sched.c (create_speculation_check): Remove set but not used
37523         variable twin.
37524         (try_transformation_cache): Remove set but not used variable ds.
37525         (calculate_privileged_insns): Remove set but not used variables
37526         cur_insn and min_spec_insn.
37527         (find_best_expr): Remove set but not used variable avail_n.
37528         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
37529         variable e.
37530         * cgraphunit.c (assemble_thunk): Remove set but not used variable
37531         false_label.
37532         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
37533         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
37534         new_scop_exit_edge.
37536 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
37538         PR bootstrap/42786
37539         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
37540         cpu types.  Add support for *-sse3 cpu types.
37541         (x86_64-*-*): Ditto.
37543 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37545         PR middle-end/42803
37546         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
37547         argument, call initializer_constant_valid_p_1 instead of
37548         initializer_constant_valid_p, pass CACHE to it, return NULL
37549         immediately if first call returns NULL.
37550         (initializer_constant_valid_p_1): New function.
37551         (initializer_constant_valid_p): Use it.
37553 2010-01-20  Thomas Quinot  <quinot@adacore.com>
37555         * tree.def (PLACEHOLDER_EXPR): Fix comment.
37557 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
37559         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
37560         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
37561         (loc_list_from_tree): Don't handle unsigned division.  Handle
37562         signed modulo using DW_OP_{over,over,div,mul,minus}.
37563         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
37564         modulo instead of signed.
37566 2010-01-20  DJ Delorie  <dj@redhat.com>
37568         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
37569         (Fpa): Pass it
37570         (h8300_emit_stack_adjustment): Propogate it.
37571         (push): Pass it.
37572         (h8300_expand_prologue): Likewise.
37573         (h8300_expand_epilogue): Likewise.
37575 2010-01-19  Michael Matz  <matz@suse.de>
37577         PR tree-optimization/41783
37578         * tree-data-ref.c (toplevel): Include flags.h.
37579         (dump_data_dependence_relation):  Also dump the inputs if the
37580         result will be unknown.
37581         (split_constant_offset_1): Look through some conversions.
37582         * tree-predcom.c (determine_roots_comp): Restart a new chain if
37583         the offset from last element is too large.
37584         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
37585         (reassociate_to_the_same_stmt): Handle vector registers.
37586         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
37587         (e.g. conversions).
37588         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
37589         wide_prolog_niters argument, emit widening instructions.
37590         (vect_do_peeling_for_alignment): Adjust caller, use widened
37591         variant of the iteration cound.
37592         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
37594 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
37596         PR target/38697
37597         * config/arm/neon-testgen.m (emit_automatics): New parameter
37598         features. Adjust for Fixed_return_reg feature.
37599         (test_intrinsic): Call emit_automatics with new feature.
37600         * config/arm/neon.ml: Update copyright years.
37601         (features): New Fixed_return_reg feature.
37602         (ops): Update feature for Vget_low.
37604 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
37606         PR tree-optimization/42719
37607         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
37608         stmt uses.
37610         PR debug/42728
37611         * fwprop.c (all_uses_available_at): Return false if def_set dest
37612         is a REG that is used in def_insn.
37614 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
37616         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
37618         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
37619         Add argument names.
37621         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
37623         * target.h (struct gcc_target) <secondary_reload>: Change type
37624         of last argument to secondary_reload_info *.
37626 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
37628         PR target/42774
37629         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
37630         memory references with unaligned offsets.  Remove CQImode handling.
37631         (unaligned_memory_operand): Return 1 for memory references with
37632         unaligned offsets.  Remove CQImode handling.
37634 2010-01-18  Richard Guenther  <rguenther@suse.de>
37636         PR middle-end/39954
37637         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
37638         builtin calls.
37640 2010-01-18  Richard Guenther  <rguenther@suse.de>
37642         PR tree-optimization/42781
37643         * tree-ssa-structalias.c (find_what_var_points_to): Skip
37644         restrict processing only if the original variable was artificial.
37646 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
37648         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
37649         find number of popped argument bytes.
37651         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
37652         Fix the text that describes the return value for invalid insns.
37654         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
37656         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
37657         Clarify what 'cost of the -dependence' is.  Fix quoting.
37659         * toplev.c (default_get_pch_validity): Rename argument to "sz".
37660         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
37662 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
37664         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
37665         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
37667 2010-01-17  Richard Guenther  <rguenther@suse.de>
37669         PR middle-end/42248
37670         * function.c (split_complex_args): Take a VEC to modify.
37671         (assign_parms_augmented_arg_list): Build a VEC instead of
37672         a chain of PARM_DECLs.
37673         (assign_parms_unsplit_complex): Take a VEC of arguments.
37674         Do not fixup unmodified parms.
37675         (assign_parms): Deal with the VEC.
37676         (gimplify_parameters): Likewise.
37678 2010-01-17  Richard Guenther  <rguenther@suse.de>
37680         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
37681         node existence check.
37682         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
37683         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
37684         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
37685         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
37686         (gimple_execute_on_growing_pred): Likewise.
37688 2010-01-17  Richard Guenther  <rguenther@suse.de>
37690         PR tree-optimization/42773
37691         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
37692         (compute_antic_aux): Likewise.
37693         (compute_partial_antic_aux): Likewise.
37695 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
37697         PR debug/42767
37698         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
37699         and US_TRUNCATE.
37701 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
37703         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
37704         appearance.
37706         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
37707         Fix markup for strict argument.
37709         (TARGET_SCHED_REORDER2): Fix argument types.
37711         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
37712         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
37714         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
37715         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
37717         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
37718         Add argument name.
37720         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
37721         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
37722         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
37723         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
37724         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
37726         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
37728         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
37730         (TARGET_ASM_RELOC_RW_MASK): Add return type.
37731         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
37733         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
37735         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
37736         Use prototype.
37738         (TARGET_ASM_NAMED_SECTION): Fix argument list.
37740         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
37741         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
37743         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
37745         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
37747         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
37748         referring to it.  Fix language.
37750         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
37752         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
37754         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
37756         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
37758         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
37759         '@var{stream}.  Remove stray 'and'.
37761         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
37763         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
37765         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
37767         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
37768         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
37770         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
37771         Fix description of return value.
37772         Rename argument "sz" to "len."
37774         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
37775         Clarify meaning of 'true' return value.
37777         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
37779         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
37780         rep_mode versus mode_rep.
37782         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
37784         (TARGET_BUILTIN_DECL): Fix name.
37786         (TARGET_COMMUTATIVE_P): Fix type of first argument.
37788         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
37790         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
37792         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
37794         (TARGET_RELAXED_ORDERING): Use @deftypevr.
37796         (TARGET_GET_DRAP_RTX): Note that this is a hook.
37797         Clarify language.
37799         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
37800         Rename argument tm_fn to md_fn.
37802         (TARGET_OPTION_PRINT): Fix argument list.
37804 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
37806         PR target/42664
37807         * config/i386/i386.c (ix86_fixup_binary_operands):
37808         Revert FMA4 fixup of operands.
37810 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37812         PR other/42525
37813         * Makefile.in (write_entries_to_file, install-plugin):
37814         Use \012 instead of \n with tr.
37816 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
37818         * configure.ac (HAVE_AS_REF): New C macro.
37819         * configure: Regenerate.
37820         * config.in: Likewise.
37821         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
37822         if HAVE_AS_REF.
37823         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
37824         if HAVE_AS_REF.
37826 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
37828         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
37830         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
37832         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
37834         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
37836         (TARGET_IN_SMALL_DATA_P): Fix argument type.
37838         (TARGET_BINDS_LOCAL_P): Fix argument type.
37840         (TARGET_ASM_FILE_END): Use prototype.
37842         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
37844         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
37846         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
37848         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
37850         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
37851         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
37853         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
37854         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
37856         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
37857         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
37858         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
37859         (TARGET_ADDR_SPACE_CONVERT): Likewise.
37861         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
37863         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
37865         (TARGET_INIT_BUILTINS): Use prototype.
37867         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
37868         Put 'const char *' in braces.  Fix parameter types.
37869         (TARGET_INVALID_CONVERSION): Fix parameter types.
37870         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
37871         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
37873         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
37874         Fix argument type.
37876         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
37878         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
37880 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
37882         * doc/tm.texi (TARGET_HELP): Fix return type.
37884         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
37885         in braces.  Fix argument types.
37887         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
37889         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
37891         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
37893         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
37894         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
37896         (TARGET_MANGLE_TYPE): Fix argument types.
37898         (TARGET_IRA_COVER_CLASSES): Use prototype.
37900         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
37902         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
37904         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
37906         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
37908         (TARGET_CALLEE_COPIES): Fix argument types.
37910         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
37912         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
37914         (TARGET_FUNCTION_VALUE): Fix argument types.
37916         (TARGET_RETURN_IN_MSB): Fix argument type.
37918         (TARGET_RETURN_IN_MEMORY): Fix argument types.
37920         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
37922         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
37924         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
37925         agree with return type.
37927         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
37929 2010-01-15  Jing Yu  <jingyu@google.com>
37931         PR rtl-optimization/42691
37932         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
37933         a pseudo to a constant and are merged, and adjust comments.
37935 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
37937         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
37939 2010-01-15  Richard Guenther  <rguenther@suse.de>
37941         PR middle-end/42739
37942         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
37943         labels of computed or non-local gotos to the destination.
37944         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
37945         landing pad label is the first label.
37947 2010-01-15  Richard Guenther  <rguenther@suse.de>
37949         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
37951 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
37953         PR target/42747
37954         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
37955         to allow generation of the xssqrtdp instruction on power7.
37956         (sqrtdf2_fpr): Ditto.
37958 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37960         PR middle-end/42674
37961         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
37962         functions with noreturn attribute.
37964         PR c++/42608
37965         * varasm.c (declare_weak): Add weak attribute to decl if it
37966         doesn't have one already.
37967         (assemble_external): Only add decls to weak_decls if they also
37968         have weak attribute.
37970 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
37972         * var-tracking.c (var_reg_delete): Don't delete the association
37973         between REGs and values or one-part variables if the register
37974         isn't clobbered.
37976 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37978         PR debug/42657
37979         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
37980         because its first operand is a non-localized variable.
37982 2010-01-14  Martin Jambor  <mjambor@suse.cz>
37984         PR tree-optimization/42706
37985         * tree-sra.c (encountered_recursive_call): New variable.
37986         (encountered_unchangable_recursive_call): Likewise.
37987         (sra_initialize): Initialize both new variables.
37988         (callsite_has_enough_arguments_p): New function.
37989         (scan_function): Call decl and flags check only for IPA-SRA, check
37990         whether there is a recursive call and whether it has enough arguments.
37991         (all_callers_have_enough_arguments_p): New function.
37992         (convert_callers): Look for recursive calls only when
37993         encountered_recursive_call is set.
37994         (ipa_early_sra): Bail out either if
37995         !all_callers_have_enough_arguments_p or
37996         encountered_unchangable_recursive_call.
37998 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38000         * sel-sched.c: Add 2010 to copyright years.
38001         * sel-sched-ir.c: Likewise.
38002         * sel-sched-ir.h: Likewise.
38004 2010-01-14  Martin Jambor  <mjambor@suse.cz>
38006         PR tree-optimization/42714
38007         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
38008         constructors specially.
38010 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38012         * config/i386/drivers-i386.c (detect_caches_intel):
38013         Add l2sizekb parameter and fill in.
38014         (host_detect_local_cpu): Add l2sizekb, fill in.
38015         Add Atom small cache heuristic.
38017 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38019         * config/i386/drivers-i386.c (detect_caches_cpuid4):
38020         Add level3 parameter and fill in.
38021         (detect_caches_intel): Handle level3 cache.
38023 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38025         * config/i386/drivers-i386.c (host_detect_local_cpu):
38026         Fix core duo detection.
38028 2010-01-14  Andi Kleen  <ak@linux.intel.com>
38030         * config/i386/drivers-i386.c (host_detect_local_cpu):
38031         Fix Atom detection.
38033 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38035         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
38036         (rs6000_variable_issue_1): this.  Use...
38037         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
38039 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38041         * sel-sched-ir.c (sel_restore_other_notes): Rename to
38042         sel_restore_notes.  Update all callers.  Call reemit_notes
38043         for all insns.
38045 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38047         PR rtl-optimization/42246
38048         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
38049         loops.
38051 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38053         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
38054         all successors is the same as number of successors in current region.
38056 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38058         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
38059         to rename is not separable.  Otherwise check that its LHS is not NULL.
38061 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38063         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
38065 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38067         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
38068         available registers when failed to discover LHS register class.
38069         Fix indentation.  Update comment.
38071 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38072             Alexander Monakov  <amonakov@ispras.ru>
38074         PR rtl-optimization/42389
38075         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
38076         to can_issue_more.
38077         (advance_state_on_fence): Likewise.
38078         (sel_target_adjust_priority): Print debug output only when
38079         sched_verbose >= 4, not 2.
38080         (get_expr_cost): Do not issue all unique insns on the next cycle.
38081         (fill_insns): Initialize can_issue_more from the value saved
38082         with the fence.
38083         * sel-sched-ir.c (flist_add): New parameter issue_more.
38084         Init FENCE_ISSUE_MORE with it.
38085         (merge_fences): Likewise.
38086         (init_fences): Update call to flist_add.
38087         (add_to_fences, add_clean_fence_to_fences)
38088         (add_dirty_fence_to_fences): Likewise.
38089         (move_fence_to_fences): Update call to merge_fences.
38090         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
38091         sched groups.
38092         * sel-sched-ir.h (struct _fence): New field issue_more.
38093         (FENCE_ISSUE_MORE): New accessor macro.
38095 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38097         PR rtl-optimization/42388
38098         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
38099         that have no predecessors nor successors.  Do not call move_bb_info
38100         for empty blocks outside of current region.
38102 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38104         PR rtl-optimization/42294
38105         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
38106         * sel-sched.c (move_exprs_to_boundary): Transitively add all
38107         originators' originators.
38109 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
38111         PR rtl-optimization/39453
38112         PR rtl-optimization/42246
38113         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
38114         for pipelining_p.
38115         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
38117 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38118             Alexander Monakov  <amonakov@ispras.ru>
38120         PR middle-end/42245
38121         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
38122         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
38123         argument.  Update all callers.
38124         (tidy_control_flow): ... and here.  Recompute topological order
38125         of basic blocks in region if necessary.
38126         (sel_redirect_edge_and_branch): Change return type.  Return true
38127         if topological order might have been invalidated.
38128         (purge_empty_blocks): Export and move from...
38129         * sel-sched.c (purge_empty_blocks): ... here.
38130         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
38131         (maybe_tidy_empty_bb): Delete prototype.
38132         (purge_empty_blocks): Declare.
38134 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
38136         PR rtl-optimization/42249
38137         * sel-sched.c (try_replace_dest_reg): When chosen register
38138         and original register is the same, do not bail out early, but
38139         still check all original insns for validity of replacing destination
38140         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
38141         in this case.
38143 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
38145         PR c/42721
38146         Port from no-undefined-overflow branch:
38147         2009-03-09  Richard Guenther  <rguenther@suse.de>
38149         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
38151 2010-01-14  Richard Guenther  <rguenther@suse.de>
38153         PR lto/42665
38154         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
38156 2010-01-14  Ira Rosen  <irar@il.ibm.com>
38158         PR tree-optimization/42709
38159         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
38160         as scalar type in creation of constant vector operand.
38162 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38164         PR testsuite/42414
38165         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
38166         (check-parallel-%): Match `testsuite' directory component only
38167         at the end.
38169 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
38171         PR translation/39521
38172         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
38173         strings with _().
38175 2010-01-13  Richard Guenther  <rguenther@suse.de>
38177         PR tree-optimization/42730
38178         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
38179         offset zero.
38181 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
38183         PR target/pr42542
38184         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
38185         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
38186         them signed.
38188 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
38190         * config/bfin/libgcc-bfin.ver: Regenerate based on current
38191         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
38192         ___umulsi3_highpart.
38194         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
38195         rather than schedule_insns if the pass is enabled.
38197 2010-01-13  Martin Jambor  <mjambor@suse.cz>
38199         PR tree-optimization/42704
38200         * tree-sra.c (sra_modify_assign): Do not delete assignments to
38201         SSA_NAMEs.
38203 2010-01-13  Martin Jambor  <mjambor@suse.cz>
38205         PR tree-optimization/42703
38206         * tree-sra.c (analyze_access_subtree): Check that we can build a
38207         reference to the original data within the aggregate.
38209 2010-01-13  Richard Guenther  <rguenther@suse.de>
38211         PR tree-optimization/42705
38212         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
38214 2010-01-13  Richard Guenther  <rguenther@suse.de>
38216         PR middle-end/42716
38217         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
38219 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
38221         PR debug/41371
38222         * var-tracking.c (values_to_unmark): New variable.
38223         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
38224         values_to_unmark vector.  Moved body to...
38225         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
38226         instead queue it into values_to_unmark vector.
38227         (vt_find_locations): Free values_to_unmark vector.
38229 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
38231         * config/s390/s390.c (override_options): Set
38232         default of max-pending-list-length to 256
38234 2010-01-13  Richard Guenther  <rguenther@suse.de>
38236         PR lto/42678
38237         * tree-pass.h (PROP_gimple_lcx): New.
38238         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
38239         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
38240         before the final cleanup_eh.
38241         (dump_properties): Dump PROP_gimple_lcx.
38242         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
38243         (tree_lower_complex_O0): Remove.
38244         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
38245         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
38246         tree_lower_complex, schedule TODO_update_ssa.
38247         * lto-streamer-out.c (output_function): Stream the functions
38248         properties.
38249         * lto-streamer-in.c (input_function): Likewise.
38250         (lto_read_body): Do not override them here.
38252 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
38254         PR c/42708
38255         * c-typeck.c (build_c_cast): Fold value cast to union type before
38256         wrapping it in a CONSTRUCTOR.
38258 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
38260         PR rtl-optimization/42699
38261         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
38262         involved.
38264 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38266         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38267         SUBTARGET_WARN_UNUSED_SPEC): Move ...
38268         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
38269         SUBTARGET_WARN_UNUSED_SPEC): ... here
38270         * config/mips/iris5.h (LIBGCC_SPEC): Define.
38272 2010-01-12  Julian Brown  <julian@codesourcery.com>
38274         * config/arm/neon-schedgen.ml (Utils): Don't try to
38275         open missing module.
38276         (find_with_result): New.
38278 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
38280         PR debug/42662
38281         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
38282         sharing when canonicalizing ({lt,ge}u (plus a b) b).
38284         PR tree-optimization/42645
38285         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
38286         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
38287         decl_map, set processing_debug_stmt to -1 and return name without
38288         any remapping.
38290 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
38292         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
38293         binutils version, and reword target configuration description.
38295 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
38297         * config/avr/avr.h (LINKER_NAME): Remove.
38299 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
38301         PR target/42416
38302         * config/rs6000/rs6000.c (rs6000_override_options): On targets
38303         that support VSX, warn for -mno-altivec if vsx is not disabled,
38304         and disable vsx.
38306 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
38307             Shujing Zhao  <pearly.zhao@oracle.com>
38309         PR translation/42469
38310         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
38311         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
38312         character between option name and help text.
38313         * c.opt (imultilib): Likewise.
38315 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
38317         * lto-streamer-out.c (output_unreferenced_globals): Output static
38318         variables.
38320 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
38322         PR rtl-optimization/42621
38323         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
38324         optimizing for size.
38325         (duplicate_computed_gotos): Remove now-redundant check.
38327 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
38329         PR target/37454
38330         * configure.ac: Save and restore LDFLAGS and LIBS
38331         * configure: Regenerate.
38333 2010-01-10  Richard Guenther  <rguenther@suse.de>
38335         PR middle-end/42667
38336         * builtins.c (fold_builtin_strlen): Add type argument and
38337         convert the resulting length to it.
38338         (fold_builtin_1): Adjust.
38340 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
38342         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
38343         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
38344         1 insn.
38345         (num_insns_constant_wide): Adjust for that change.
38347 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38349         PR debug/42631
38350         * web.c (union_defs): Add used argument, to combine uses of
38351         uninitialized regs.
38352         (entry_register): Adjust type and tests of used argument.
38353         (web_main): Widen used for new use.  Pass it to union_defs.
38354         * df.h (union_defs): Adjust prototype.
38356 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38358         PR debug/42630
38359         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
38360         uses in new incoming argument.  Free body.
38361         (reset_debug_uses_in_loop): New.
38362         (analyze_insn_to_expand_var): Call the latter if the former found
38363         anything.  Fix whitespace.  Reject invalid dest overlaps before
38364         going through all insns in the loop.
38366 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38368         PR debug/42629
38369         * haifa-sched.c (dying_use_p): Debug insns don't count.
38371 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38373         PR middle-end/42363
38374         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
38375         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
38376         (verify_gimple_call): Reject LHS in noreturn calls.
38378 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38380         PR debug/42604
38381         PR debug/42395
38382         * tree-vect-loop-manip.c (adjust_info): New type.
38383         (adjust_vec): New pointer to vector.
38384         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
38385         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
38386         (slpeel_update_phis_for_duplicate_loop): Use them.
38387         (slpeel_update_phi_nodes_for_guard1): Likewise.
38388         (slpeel_update_phi_nodes_for_guard2): Likewise.
38389         (slpeel_tree_peel_loop_to_edge): Likewise.
38390         (vect_update_ivs_after_vectorizer): Likewise.
38392 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38394         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
38395         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
38397 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
38399         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
38400         bogus uninitialized warning.
38402 2010-01-09  Richard Guenther  <rguenther@suse.de>
38404         PR middle-end/42512
38405         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
38406         the evolution is compatible with the initial condition.
38408 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
38410         * gcc.c (process_command): Update copyright notice dates.
38411         * gcov.c (print_version): Likewise.
38412         * gcov-dump.c (print_version): Likewise.
38413         * mips-tfile.c (main): Likewise.
38414         * mips-tdump.c (main): Likewise.
38416 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
38418         PR target/41885
38419         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
38420         (rotlhi3): Delete.
38421         (rotlhi3_8): Delete.
38422         (rotlsi3): Delete.
38423         (rotlsi3_8): Delete.
38424         (rotlsi3_16): Delete.
38425         (rotlsi3_24): Delete.
38426         (rotl<mode>3): New.
38427         (*rotw<mode>3): New.
38428         (*rotb<mode>3): New.
38429         * config/avr/avr.c (avr_rotate_bytes): New function.
38430         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
38432 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
38434         PR target/37454
38435         * configure.ac: Modify -rdynamic check.
38436         * configure: Regenerate.
38438 2010-01-08  DJ Delorie  <dj@redhat.com>
38440         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
38441         register popping order.
38443 2010-01-08  Richard Guenther  <rguenther@suse.de>
38445         PR lto/42528
38446         * c.opt (fsigned-char): Also let LTO handle this option.
38447         (funsigned-char): Likewise.
38449 2010-01-07  Richard Guenther  <rguenther@suse.de>
38451         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
38452         (gimple_op): Likewise.
38453         (gimple_op_ptr): Likewise.
38454         (gimple_assign_set_lhs): Remove gcc_assert.
38455         (gimple_assign_set_rhs1): Likewise.
38456         (gimple_assign_set_rhs2): Likewise.
38457         (gimple_call_set_lhs): Likewise.
38458         (gimple_call_set_fn): Likewise.
38459         (gimple_call_set_fndecl): Likewise.
38460         (gimple_call_fndecl): Likewise.
38461         (gimple_call_return_type): Likewise.
38462         (gimple_call_set_chain): Likewise.
38463         (gimple_call_num_args): Likewise.
38464         (gimple_call_set_arg): Likewise.
38465         (gimple_cond_set_code): Likewise.
38466         (gimple_cond_set_lhs): Likewise.
38467         (gimple_cond_set_rhs): Likewise.
38468         (gimple_cond_set_true_label): Likewise.
38469         (gimple_cond_set_false_label): Likewise.
38470         (gimple_label_set_label): Likewise.
38471         (gimple_goto_set_dest): Likewise.
38472         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
38473         (gimple_debug_bind_get_value): Likewise.
38474         (gimple_debug_bind_get_value_ptr): Likewise.
38475         (gimple_debug_bind_set_var): Likewise.
38476         (gimple_debug_bind_set_value): Likewise.
38477         (gimple_debug_bind_reset_value): Likewise.
38478         (gimple_debug_bind_has_value_p): Likewise.
38479         (gimple_return_retval_ptr): Remove gcc_assert.
38480         (gimple_return_retval): Likewise.
38481         (gimple_return_set_retval): Likewise.
38482         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
38483         (safe_referenced_var_iterator): Remove.
38484         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
38485         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
38486         (fill_referenced_var_vec): Remove.
38487         (first_readonly_imm_use): Remove redundant gcc_assert.
38488         (phi_arg_index_from_use): Combine gcc_asserts.
38489         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
38490         (first_imm_use_stmt): Remove redundant gcc_assert.
38491         * tree-cfg.c (verify_gimple_call): Verify function and chain
38492         operands.  Verify arguments.
38493         (verify_types_in_gimple_stmt): Verify condition code and labels.
38495 2010-01-07  Richard Guenther  <rguenther@suse.de>
38497         PR tree-optimization/42641
38498         * sese.c (rename_map_elt_info): Use the SSA name version, do
38499         not hash pointers.
38501 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
38503         PR tree-optimization/42625
38504         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
38505         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
38507 2010-01-07  Duncan Sands  <baldrick@free.fr>
38509         * Makefile.in (PLUGIN_HEADERS): Add version.h.
38511 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
38513         PR target/42511
38514         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
38515         note itself is not function_invariant_p.
38517 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
38519         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
38520         Do not add the DF_NOTE problem.
38521         * store-motion.c (execute_rtl_store_motion): Likewise.
38523 2010-01-07  Martin Jambor  <mjambor@suse.cz>
38525         PR tree-optimization/42157
38526         * tree-sra.c (compare_access_positions): Stabilize sort if both
38527         accesses have integer types, return zero immediately if they are the
38528         same.
38530 2010-01-06  Richard Henderson  <rth@redhat.com>
38532         PR middle-end/41883
38533         * haifa-sched.c (add_to_note_list): Merge into ...
38534         (concat_note_lists): ... here, and ...
38535         (unlink_other_notes, rm_other_notes): Merge into...
38536         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
38537         NOTE_INSN_EPILOGUE_BEG.
38539 2010-01-06  Richard Guenther  <rguenther@suse.de>
38541         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
38542         not inline regular functions into always-inline functions.
38544 2010-01-06  Nick Clifton  <nickc@redhat.com>
38546         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
38547         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
38548         used together.
38549         (OVERRIDE_OPTIONS): Delete.
38550         (OPTIMIZATION_OPTIONS): Define.
38551         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
38552         * config/rx/rx.c (rx_handle_option): Issue an error message if
38553         -mcpu=rx200 and -fpu are used together.
38554         (rx_set_optimization_options): New function.  Issue an error
38555         message if an optimization attribute attempts to reset the FPU/
38556         math optimization pairing.
38557         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
38558         * config/rx/rx.opt: Set the default to 32-bit doubles.
38559         * config/rx/t-rx: Add multilibs for -nofpu option.
38560         * doc/invoke.texi: Update documentation of RX options.
38562 2010-01-06  Richard Guenther  <rguenther@suse.de>
38564         * tree-ssa-pre.c (name_to_id): New global.
38565         (alloc_expression_id): Simplify SSA name handling.
38566         (lookup_expression_id): Likewise.
38567         (init_pre): Zero name_to_id.
38568         (fini_pre): Free it.
38570 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
38572         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
38574 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
38576         PR target/42542
38577         * config/i386/sse.md (smaxv2di3): New.
38578         (umaxv2di3): Likewise.
38579         (sminv2di3): Likewise.
38580         (uminv2di3): Likewise.
38582 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
38584         PR target/42564
38585         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
38586         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
38587         (legitimize_tls_address): Likewise.
38588         (sparc_tls_referenced_p): Likewise.
38589         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
38590         and adjust calls to legitimize_pic_address.
38591         (legitimate_constant_p) Use sparc_tls_referenced_p.
38592         (legitimate_pic_operand_p): Likewise.
38593         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
38594         (sparc_tls_symbol_ref_1): Delete.
38595         (sparc_tls_referenced_p): Make static, recognize specific patterns.
38596         (legitimize_tls_address): Make static, handle CONST patterns.
38597         (legitimize_pic_address): Make static, remove unused parameter and
38598         adjust recursive calls.
38599         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
38600         and adjust call to legitimize_pic_address.
38601         (sparc_output_mi_thunk): Likewise.
38603 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
38604             H.J. Lu  <hongjiu.lu@intel.com>
38606         PR target/42542
38607         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
38608         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
38609         operands to make them signed.
38611         Revert:
38612         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38614         PR target/42542
38615         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
38616         GTU to GT for V4SI and V2DI.
38618         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
38619         (umin<mode>3): Removed.
38620         (uminv8hi3): New.
38621         (uminv4si3): Likewise.
38623 2010-01-05  Martin Jambor  <mjambor@suse.cz>
38625         PR tree-optimization/42462
38626         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
38627         current_function_decl to helper functions and macros.
38629 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
38631         PR bootstrap/41771
38632         * flags.h: Don't include real.h.
38633         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
38634         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
38635         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
38636         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
38637         * dominance.c: Update copyright.
38638         * gimple.c (walk_gimple_op): Remove inline.
38639         * tree-ssa-reassoc.c: Include real.h.
38640         * Makefile.in (FLAGS_H): Remove $(REAL_H).
38641         (tree-ssa-reassoc.o): Depend on $(REAL_H).
38643 2010-01-05  Nick Clifton  <nickc@redhat.com>
38645         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
38646         register to push into the stack frame when the accumulator has to
38647         be saved during interrupts.
38649 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
38651         * doc/invoke.texi: Remove the documentation about option
38652         -Wunreachable-code.
38653         * common.opt (Wunreachable-code):  Preserved for backward
38654         compatibility.
38655         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
38656         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
38657         the backward compatibility flag section.
38659 2010-01-05  Richard Guenther  <rguenther@suse.de>
38661         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
38663 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
38665         PR other/42611
38666         * cfgexpand.c (expand_one_var): Diagnose too large variables.
38668         PR tree-optimization/42508
38669         * tree-sra.c (convert_callers): Check for recursive call
38670         by comparing cgraph nodes instead of decls.
38671         (modify_function): Call ipa_modify_formal_parameters also
38672         on all same_body aliases.
38674         * cgraphunit.c (cgraph_materialize_all_clones): Compare
38675         cgraph nodes when checking for same_body aliases.
38677 2010-01-05  Richard Guenther  <rguenther@suse.de>
38679         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
38680         allocation and lookup.
38681         (get_or_alloc_expr_for_constant): Likewise.
38682         (phi_translate): Sink allocation.
38684 2010-01-04  Richard Guenther  <rguenther@suse.de>
38686         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
38687         a new entry only if needed.
38688         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
38689         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
38690         hashtable lookup.
38691         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
38692         the result array.
38693         (phi_translate): Handle CONSTANTs early.
38695 2010-01-04  Martin Jambor  <mjambor@suse.cz>
38697         PR tree-optimization/42398
38698         * tree-sra.c (struct access): Removed flag grp_different_types.
38699         (dump_access): Do not dump the removed flag.
38700         (sort_and_splice_var_accesses): Do not set the removed flag.
38701         (sra_modify_expr): Check for type compatibility directly.
38703 2010-01-04  Martin Jambor  <mjambor@suse.cz>
38705         PR tree-optimization/42366
38706         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
38707         edges with variable number of parameters.
38708         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
38709         flag instead of asserting it.
38710         (ipa_read_node_info): Read uses_analysis_done flag.
38712 2010-01-04  Richard Guenther  <rguenther@suse.de>
38714         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
38715         iterative_hash_* as intended.
38716         (vn_reference_compute_hash): Likewise.  Simplify hashing
38717         SSA names.
38718         (vn_reference_lookup_2): Likewise.
38719         (vn_nary_op_compute_hash): Likewise.
38720         (vn_phi_compute_hash): Likewise.
38721         (expressions_equal_p): Remove strange code.
38722         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
38723         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
38724         (bitmap_insert_into_set_1): Take value-id as parameter.
38725         (add_to_value): Pass it.
38726         (bitmap_insert_into_set): Likewise.
38727         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
38729 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
38731         PR driver/42442
38732         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
38733         (do_self_spec): For switches with SWITCH_IGNORE set set also
38734         SWITCH_IGNORE_PERMANENTLY.
38735         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
38736         of SWITCH_IGNORE.
38738 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
38740         * lto-streamer-out.c (output_unreferenced_globals): Output the full
38741         tree of an unreferenced global var.
38743 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38745         PR target/42542
38746         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
38747         GTU to GT for V4SI and V2DI.
38749         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
38750         (umin<mode>3): Removed.
38751         (uminv8hi3): New.
38752         (uminv4si3): Likewise.
38754 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38756         PR lto/42581
38757         * collect2.c (main): Turn on trace in collect2 if -v is passed
38758         to gcc with LTO.
38760 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
38762         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
38763         description of expression operand.
38765 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
38767         * configure.ac: Add install-html to target_list for Make-hooks.
38768         * configure: Regenerate.
38769         * fortran/Make-lang.in (F95_HTMLFILES): New.
38770         (fortran.html): Use it.
38771         (fortran.install-html): New.
38772         * Makefile.in (install-html): Add lang.install-html.
38773         * java/Make-lang.in (JAVA_HTMLFILES): New.
38774         (java.html): Use it.
38775         (java.install-html): New.
38776         * objc/Make-lang.in (objc.install-html): New.
38777         * objcp/Make-lang.in (obj-c++.install-html): New.
38778         * cp/Make-lang.in (c++.install-html): New.
38779         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
38780         * lto/Make-lang.in (lto.install-html): New.
38782 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
38784         PR lto/42520
38785         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
38787 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
38789         PR rtl-optimization/41862
38790         * store-motion.c (store_killed_in_insn, compute_store_table,
38791         remove_reachable_equiv_notes, replace_store_insn,
38792         build_store_vectors): Ignore all DEBUG_INSNs.
38794 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
38796         PR lto/41564
38797         * common.opt: Add dumpdir.
38799         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
38800         isn't specified.
38801         (option_map): Add --dumpdir.
38803         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
38805         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
38807         * opts.c (decode_options): Try dump_dir_name first if
38808         dump_base_name isn't an absolute path.
38809         (common_handle_option): Handle OPT_dumpdir.
38811         * toplev.c (dump_dir_name): New.
38812         (print_switch_values): Also ignore -dumpdir.
38814         * toplev.h (dump_dir_name): New.
38816 2010-01-03  Richard Guenther  <rguenther@suse.de>
38818         PR tree-optimization/42589
38819         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
38820         double-word expansion of bswap32.
38822 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
38824         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
38825         with BLOCK_FOR_INSN.
38826         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
38827         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
38828         noce_process_if_block): Likewise.
38829         * gcse.c (compute_local_properties, insert_expr_in_table,
38830         insert_set_in_table, canon_list_insert, find_avail_set,
38831         pre_insert_copy_insn): Likewise.
38833         * basic-block.h (BLOCK_NUM): Move from here...
38834         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
38836 2010-01-03  Richard Guenther  <rguenther@suse.de>
38838         PR tree-optimization/42438
38839         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
38840         contains_may_not_return_call flag.
38841         (BB_MAY_NOTRETURN): New.
38842         (valid_in_sets): Trapping nary operations are not valid
38843         in blocks that may not return.
38844         (insert_into_preds_of_block): Remove check for trapping expressions.
38845         (compute_avail): Compute also BB_MAY_NOTRETURN.
38847 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
38849         * doc/invoke.texi: Add 2010 to copyright years.
38851 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
38853         * config/sparc/sparc.c: Fix formatting nits.
38855 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
38856             Alexander Monakov  <amonakov@ispras.ru>
38858         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
38860 2010-01-02  Richard Guenther  <rguenther@suse.de>
38862         PR middle-end/42577
38863         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
38864         (simplify_switch_using_ranges): Mark to be removed edges
38865         as non-executable.
38867 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
38869         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
38871         * collect2.c (scan_libraries): Add missing argument in call to
38872         scan_prog_file.
38874 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
38876         PR target/42448
38877         * config/alpha/predicates.md (aligned_memory_operand): Return false
38878         for CQImode.
38879         (unaligned_memory_operand): Return true for CQImode.
38880         * config/alpha/alpha.c (get_aligned_mem): Assert that location
38881         doesn not cross aligned SImode word boundary.
38883 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
38885         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
38886         Remove.
38887         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
38888         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
38890 2010-01-02  Richard Guenther  <rguenther@suse.de>
38892         PR lto/41597
38893         * toplev.c (compile_file): Emit LTO marker properly.  Change
38894         it to __gnu_lto_v1.
38895         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
38897 2010-01-01  Richard Guenther  <rguenther@suse.de>
38899         PR debug/42455
38900         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
38902 2010-01-01  Richard Guenther  <rguenther@suse.de>
38904         PR c/42570
38905         * c-decl.c (grokdeclarator): For zero-size arrays force
38906         structural equality checks as layout_type does.
38908 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
38910         * builtins.c: Update copyright to 2010.
38912 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
38914         PR lto/42531
38915         * lto-streamer-out.c (produce_asm): Revert the last change.
38916         (copy_function): Likewise.
38918         * lto-streamer.c (lto_get_section_name): Skip any leading
38919         asterisk in name.
38921 2010-01-01  Richard Guenther  <rguenther@suse.de>
38923         PR middle-end/42559
38924         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
38925         for LABEL_DECLs.
38928 Copyright (C) 2010 Free Software Foundation, Inc.
38930 Copying and distribution of this file, with or without modification,
38931 are permitted in any medium without royalty provided the copyright
38932 notice and this notice are preserved.