OSDN Git Service

* config/mcore/mcore.c Don't include assert.h.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-12-07  Joseph Myers  <joseph@codesourcery.com>
2
3         * config/mcore/mcore.c Don't include assert.h.
4         (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
5         * config/spu/spu.c: Don't include assert.h.
6         (spu_sms_res_mii): Use gcc_assert.
7
8 2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
9
10         PR tree-optimization/42327
11         * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
12         instead of using integer_minus_one_node.
13
14 2010-12-07  Nathan Froyd  <froydnj@codesourcery.com>
15
16         PR c++/45330
17         * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
18         * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
19
20 2010-12-07  Richard Guenther  <rguenther@suse.de>
21
22         PR tree-optimization/46832
23         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
24         that the call has a lhs.
25
26 2010-12-07  Yao Qi  <yao@codesourcery.com>
27
28         * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
29         * regrename.c (struct du_head): Add new element length.
30         (sort_du_head, get_element, merge, merge_sort_comparison):
31         New functions of merge sort implementation to du_head list.
32         (regrename_optimize): Sort du_head linked list by length.
33         Iterate registers in a preferred-register-first order.
34         Move some code to ...
35         (check_new_reg_p): here.  New function.
36         (create_new_chain):  Initialize length.
37         (scan_rtx_reg): Increase length for non-debug insns.
38         * target.def: New hook preferred_rename_class.
39         * targhook.c (default_preferred_rename_class): New.
40         * targhook.h: Declare it.
41         * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
42         * doc/tm.texi: Regenerate.
43
44 2010-12-07  Jakub Jelinek  <jakub@redhat.com>
45
46         PR debug/46799
47         * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
48         instead of BUILTINS_LOCATION.
49         (create_loop_fn): Add LOC argument, pass it to build_decl instead of
50         BUILTINS_LOCATION.
51         (create_parallel_loop): Add LOC argument, use it for OMP clauses
52         and GIMPLE_*OMP* statements.
53         (gen_parallel_loop): Determine locus for the parallel loop, pass it
54         to create_loop_fn and create_parallel_loop.
55         * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
56         set_curr_insn_source_location (UNKNOWN_LOCATION).
57
58 2010-12-07  Joern Rennecke  <amylaar@spamcop.net>
59             Richard Guenther  <rguenther@suse.de>
60
61         PR target/46737
62         * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
63         (bfin_reorder_loops): Change type of index to intptr_t.
64
65 2010-12-07  Richard Guenther  <rguenther@suse.de>
66
67         PR tree-optimization/46726
68         * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
69
70 2010-12-07  Richard Guenther  <rguenther@suse.de>
71
72         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
73         virtual operands.
74
75 2010-12-07  Nicola Pero  <nicola.pero@meta-innovation.com>
76
77         * c-parser.c (c_parser_typeof_specifier): Removed special
78         treatment of objc_volatilized attribute for Objective-C.
79
80 2010-12-06  Vladimir Makarov  <vmakarov@redhat.com>
81
82         * ira.c (update_equiv_regs): Prohibit move insns if
83         pressure-sensitive scheduling was done.
84
85 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
86
87         * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
88         of c_process_expr_stmt() for the iterating and collection
89         expressions of an Objective-C fast enumeration loop.
90
91 2010-12-06  Jakub Jelinek  <jakub@redhat.com>
92
93         PR debug/45997
94         * dwarf2out.c (modified_type_die): If both is_const_type and
95         is_volatile_type is set, start with DW_TAG_const_type or
96         DW_TAG_volatile_type depending on where we get qualified type
97         in the recursive call.
98
99         PR target/43897
100         * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
101         as a store into that register.
102
103         PR tree-optimization/46528
104         PR debug/46338
105         * profile.c (branch_prob): Make sure last is never set to a debug
106         stmt.
107
108         PR debug/46771
109         * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
110         on DEBUG_INSNs.
111
112         PR rtl-optimization/46777
113         * cfglayout.c (duplicate_insn_chain): Avoid duplicating
114         also barrier after tablejump.
115
116 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
117             Richard Henderson  <rth@redhat.com>
118
119         PR target/46740
120         * config/vax/vax.c (vax_output_int_move): Fold #if into if.
121
122 2010-12-06  Eric Botcazou  <ebotcazou@adacore.com>
123
124         * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
125         * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
126
127 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
128
129         PR target/46735
130         * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
131         (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
132         (int12_operand, int_2word_operand, uint16_operand): Likewise.
133         (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
134         (uint5_operand, uint4_operand): Likewise.
135         * config/frv/frv.h (IN_RANGE_P): Delete.
136         (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
137         (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
138         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
139         (CONST_OK_FOR_P): Likewise.
140         * config/frv/frv.md (*movqicc_internal2_int): Likewise.
141         (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
142         (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
143         (*movsicc_internal2_float, casesi): Likewise.
144         * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
145         (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
146         (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
147         (frv_split_cond_move, frv_rtx_costs): Likewise.
148
149         PR target/46739
150         * config/mmix/mmix.c (mmix_intval): Split shift count.
151
152 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
153
154         * config/i386/i386.c (m_COREI7): New.
155         (initial_ix86_tune_features): Turn on
156         X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
157         X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
158
159 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
160
161         * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
162
163         * config/i386/driver-i386.c (host_detect_local_cpu): Support
164         Sandy Bridge.
165
166         * config/i386/i386.c (override_options): Handle "corei7-avx".
167
168         * doc/invoke.texi: Document corei7-avx.
169
170 2010-12-06  Richard Guenther  <rguenther@suse.de>
171
172         PR tree-optimization/46806
173         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
174         coalesce different types.
175
176 2010-12-06  Richard Guenther  <rguenther@suse.de>
177
178         PR tree-optimization/46785
179         * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
180         call statements as operand definition.
181
182 2010-12-06  Mingjie Xing  <mingjie.xing@gmail.com>
183
184         * doc/tm.texi.in: Fix typo.
185         * doc/tm.texi: Regenerate.
186
187 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
188
189         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
190         last change.
191
192 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
193
194         * c-family/c-common.h: Removed the declarations of all the objc_
195         callbacks, and moved them into c-objc.h.  Removed
196         objc_ivar_visibility_kind and moved it into c-objc.h.
197         * c-family/c-objc.h: New file.
198         * c-family/c-common.c: Include c-objc.h.
199         * c-family/c-format.c: Same change.
200         * c-family/stub-objc.c: Same change.
201         * c-decl.c: Include c-family/c-objc.h.
202         * c-parser.c: Same change.
203         * c-typeck.c: Same change.
204         * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
205         * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
206         (c-parser.o): same change.
207         (c-typeck.o): Same change.
208         (c-family/c-format.o): Same change.
209         (c-family/stub-objc.o): Same change.
210         (c-family/c-common.o): Same change.
211         (PLUGIN_HEADERS): Added c-family/c-objc.h.
212
213 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
214
215         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]:  Ignore
216         --with-dwarf2 option.
217
218 2010-12-03  Jan Hubicka  <jh@suse.cz>
219
220         * lto-streamer-in.c (input_cfg): Fix pasto.
221
222 2010-12-03  Jan Hubicka  <jh@suse.cz>
223
224         * ipa.c (cgraph_externally_visible_p): Do not localize builtins
225         and functions with user asm defined names.
226         (varpool_externally_visible_p): Do not localize vars with user
227         asm defined names.
228
229 2010-12-03  Jan Hubicka  <jh@suse.cz>
230
231         * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
232         to prevent mangling with lto frontend.
233
234 2010-12-03  Jan Hubicka  <jh@suse.cz>
235
236         * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
237         * lto-cgraph.c (merge_profile_summaries): Fix thinko.
238
239 2010-12-03  Jan Hubicka  <jh@suse.cz>
240
241         PR tree-optimization/46760
242         * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
243         * cgraph.h (struct cgraph_node): Add count_materialization_scale.
244         * lto-cgraph.c (lto_output_edge): Fix assert.
245         (lto_output_node): Output count_materialization_scale.
246         (output_profile_summary): Output only runs and sum_max.
247         (input_node): Input count_materialization_scale.
248         (input_profile_summary): Read data into file specific gcov summary.
249         (merge_profile_summaries): New function.
250         (input_cgraph): Update call of input_profile_summary;
251         call merge_profile_summaries.
252         * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
253         rescale counts at read in.
254         (intput_bb): Likewise.
255         (input_function): Update call of input_bb.
256         (lto_read_body): Update call of input_cfg.
257         * lto-streamer.h: Inlclude gcov-io.h
258         (lto_file_decl_data): Add gcov_ctr_summary.
259
260 2010-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
261
262         * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
263         (Cond Exec Macros): ... to this.
264         * doc/tm.texi: Regenerate.
265
266 2010-12-03  Jason Merrill  <jason@redhat.com>
267
268         PR debug/46123
269         * dwarf2out.c (gen_tagged_type_die): Don't put local types in
270         a declaration DIE.
271
272 2010-12-03  Nathan Froyd  <froydnj@codesourcery.com>
273
274         * config/arm/arm.c (arm_legitimate_index_p): Split
275         VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases.  Permit
276         slightly larger constants in the latter case.
277         (thumb2_legitimate_index_p): Likewise.
278
279 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
280
281         * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
282         * gcc.c (cc1_options): Add %{Qy:}.
283
284 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
285
286         * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
287         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
288         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
289
290 2010-12-03  Alexander Monakov  <amonakov@ispras.ru>
291
292         PR rtl-optimization/45354
293         * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
294         (bb_has_removable_jump_to_p): This.  Update all callers. Make static.
295         Allow BBs ending with a conditional jump.  Forbid EDGE_CROSSING jumps.
296         * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
297
298 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
299
300         * basic-block.h (struct edge_prediction): Remove forward
301         declaration.
302         * tree-flow.h (struct edge_prediction): Move from here...
303         * predict.c (struct edge_prediction): ...to here.
304         * cselib.h (struct elt_list): Move from here...
305         * cselib.c (struct elt_list): ...to here.
306
307 2010-12-02  Ian Lance Taylor  <iant@google.com>
308
309         * gcc.c (default_compilers): Add entry for ".go".
310         * common.opt: Add -static-libgo as a driver option.
311         * doc/install.texi (Configuration): Mention libgo as an option for
312         --enable-shared.  Mention go as an option for --enable-languages.
313         * doc/invoke.texi (Overall Options): Mention .go as a file name
314         suffix.  Mention go as a -x option.
315         * doc/frontends.texi (G++ and GCC): Mention Go as a supported
316         language.
317         * doc/sourcebuild.texi (Top Level): Mention libgo.
318         * doc/standards.texi (Standards): Add section on Go language.
319         Move references for other languages into their own section.
320         * doc/contrib.texi (Contributors): Mention that I contributed the
321         Go frontend.
322
323 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
324
325         * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
326         (const_call_expr_arg_iterator_d): Likewise.
327         (expanded_location): Likewise.
328         * c-tree.h (struct c_arg_tag_d): Likewise.
329         * dwarf2out.c (struct cfa_loc): Likewise.
330         (struct skeleton_chain_struct): Likewise.
331         * except.c (struct ttypes_filter): Likewise.
332         * cselib.h (struct cselib_val_struct): Likewise.
333         (elt_loc_list): Likewise.
334         (elt_list): Likewise.
335         * varasm.c (struct addr_const): Likewise.
336         * tree-flow.h (struct edge_prediction): Likewise.
337         (struct int_tree_map): Likewise.
338         (struct _edge_var_map): Likewise.
339
340 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
341
342         PR target/46768
343         * config/i386/i386.c (initial_ix86_tune_features): Turn on
344         X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
345
346 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
347
348         * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
349
350 2010-12-02  Ian Lance Taylor  <iant@google.com>
351
352         * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX.  Check for C++
353         header files unordered_map, tr1/unordered_map, and ext/hash_map.
354         * configure, config.in: Rebuild.
355
356 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
357
358         PR target/46685
359         * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
360         (sparc_expand_move): Call it to decide whether to emit the special
361         mov{si,di}_pic_label_ref patterns.
362         (sparc_legitimize_pic_address): Call it to decide whether to emit
363         the regular PIC sequence for labels.  Fix long line.
364         (sparc_file_end): Set is_thunk for the PIC helper.
365
366 2010-12-02  Eric Botcazou  <ebotcazou@adacore.com>
367
368         * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
369         for a non-shared type.
370
371 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
372
373         PR middle-end/45297
374         * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
375         with MEM_REFs as POINTER_PLUS_EXPR.
376
377 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
378
379         * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
380         config/sparc/linux.h, config/sparc/linux64.h: Remove comments
381         mentioning /lib/elf.
382
383 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
384
385         * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
386         * config/frv/frv.h (LINK_SPEC): Remove %{b}.
387         * config/i386/netware.h (LINK_SPEC): Remove %{b}.
388         * config/i386/nto.h (LINK_SPEC): Remove %{b}.
389         * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
390         * config/sol2.h (LINK_SPEC): Remove %{b}.
391         * config/svr4.h (LINK_SPEC): Remove %{b}.
392
393 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
394
395         * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
396         * config/i386/linux.h (LINK_SPEC): Cut long comment.
397         * config/i386/netware.h (LINK_SPEC): Remove %{V}.
398         * config/m32r/linux.h (LINK_SPEC): Cut long comment.
399         * config/m68k/linux.h (LINK_SPEC): Cut long comment.
400         * config/sparc/linux.h (LINK_SPEC): Cut long comment.
401         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
402         * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
403         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
404         * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
405         %{v:%{!V:-V}}.
406
407 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
408
409         * gcc.c (trad_capable_cpp, default_compilers): Don't handle
410         -ftraditional.
411
412 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
413
414         * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
415         * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
416         * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
417         * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
418         * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
419         * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
420         * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
421         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
422         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
423         * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
424         * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
425         * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
426         * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
427         * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
428         * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
429         * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
430         * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
431         * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
432
433 2010-12-02  Paul Koning  <ni1d@arrl.net>
434
435         * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
436         opcodes if CC_NO_OVERFLOW is set.
437         (notice_update_cc_on_set): Correct setting of CC0 as a side
438         effect; set CC_NO_OVERFLOW for cases where C flag is not
439         meaningful.
440
441 2010-12-02  Ian Lance Taylor  <iant@google.com>
442
443         * doc/install.texi (Configuration): Update default for
444         --with-boot-ldflags.
445
446 2010-12-02  Nathan Froyd  <froydnj@codesourcery.com>
447
448         PR c/45062
449         * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
450         !funcdef_flag.
451
452 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
453
454         PR tree-optimization/45199
455         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
456         (stores_zero_from_loop): Call
457         mem_write_stride_of_same_size_as_unit_type_p.
458         * tree-data-ref.h (stride_of_unit_type_p): New.
459         * tree-loop-distribution.c (generate_memset_zero): Simplified.
460         Call stride_of_unit_type_p.
461         (build_rdg_partition_for_component): Do not call
462         rdg_flag_similar_memory_accesses when
463         flag_tree_loop_distribute_patterns is set.
464
465 2010-12-02  Richard Guenther  <rguenther@suse.de>
466
467         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
468         sign-changing conversions for induction detection.
469
470 2010-12-02  Richard Guenther  <rguenther@suse.de>
471
472         PR tree-optimization/46723
473         * tree-vect-loop.c (get_initial_def_for_induction): Strip
474         conversions from the induction evolution and apply it to
475         the result instead.
476         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
477         assigns for induction defs.
478
479 2010-12-02  Richard Guenther  <rguenther@suse.de>
480
481         * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
482         the case we need to split the edge and not the block.
483
484 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
485
486         DFA model for Core 2 and Core i7 scheduling.
487
488         * config/i386/core2.md: New DFA model for Core 2 and Core i7.
489         * config/i386/i386.c (ix86_option_override_internal): Update entries
490         for Core 2 and Core i7.
491         (ix86_issue_rate): Set issue rate to 3 [be realistic].
492         * config/i386/i386.md: Include "core2.md".
493         (define_attr cpu): Add "corei7".
494
495 2010-12-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
496
497         Define tuning for Core 2 and Core i7.
498
499         * config/i386/i386-c.c (ix86_target_macros_internal): Update.
500         * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
501         (m_CORE2): Replace with m_CORE2_{32,64}.
502         (m_CORE2I7{,_32,_64}): New macros.
503         (m_GENERIC32, m_GENERIC64): Update.
504         (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
505         (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
506         set m_CORE2I7_64 iff m_GENERIC64.
507         (processor_target_table): Use generic costs for Core 2 and Core i7.
508         (ix86_option_override_internal): Update entries for Core 2 and Core i7.
509         (ix86_issue_rate): Remove entry for Core 2.
510         (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
511         * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
512         (TARGET_CORE2): Update.
513         (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
514         (PROCESSOR_CORE2): Remove.
515
516 2010-12-02  Richard Guenther  <rguenther@suse.de>
517
518         * lto-streamer.h (LTO_major_version): Bump to 2.
519
520 2010-12-02  Richard Guenther  <rguenther@suse.de>
521
522         PR lto/44871
523         * gimple.c (canonical_type_hash_cache): New hashtable.
524         (gimple_type_hash): Make a wrapper around ...
525         (gimple_type_hash_1): ... this.  Take gtc_mode argument.
526         (gimple_canonical_type_hash): Likewise.
527         (gtc_visit): Take a gtc_mode argument.
528         (gimple_types_compatible_p_1): Likewise. Do not compare struct
529         tag names or field names when computing canonical types.
530         (gimple_types_compatible_p): Adjust.
531         (visit): Take a gtc_mode argument.
532         (iterative_hash_gimple_type): Likewise.  Do not hash struct tag
533         names or field names when computing hashes of canonical types.
534         (gimple_register_canonical_type): Use gimple_canonical_type_hash
535         for the hash.
536         (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
537         (free_gimple_type_tables): Free canonical_type_hash_cache.
538
539 2010-12-02  Richard Guenther  <rguenther@suse.de>
540             Ira Rosen  <irar@il.ibm.com>
541
542         PR tree-optimization/46663
543         * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
544         FUNCTION_DECL exists and that it's a builtin.
545
546 2010-12-02  Jie Zhang  <jie@codesourcery.com>
547
548         PR middle-end/46674
549         * varasm.c (compute_visible_aliases): Handle user set
550         assembler name.
551
552 2010-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
553
554         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
555         thinko regarding setting -mno-<xxx> debug switches.
556         (rs6000_rtx_costs): Add FMA.  Delete old rtl based FMA costs.
557
558 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
559
560         * intl.c: Don't include tm.h.
561         * Makefile.in (intl.o): Don't depend on $(TM_H).
562
563 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
564
565         * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
566         unused warning.
567         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
568
569 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
570
571         * graphite-sese-to-poly.c (analyze_drs): Removed.
572         (build_scop_drs): Do not call analyze_drs.
573         (analyze_drs_in_stmts): New.
574         (insert_stmts): New.
575         (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
576         (insert_out_of_ssa_copy_on_edge): Same.
577         (rewrite_close_phi_out_of_ssa): Call insert_stmts.
578         (rewrite_phi_out_of_ssa): Same.
579         (rewrite_cross_bb_scalar_dependence): Same.
580         (split_reduction_stmt): Move data references in the new basic blocks.
581         (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
582
583 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
584
585         * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
586
587 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
588
589         PR middle-end/45297
590         * graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
591         the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
592         * graphite-poly.h (new_poly_bb): Update declaration.
593         (gbb_from_bb): Moved here...
594         (pbb_from_bb): New.
595         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
596         Removed.
597         (graphite_stmt_p): Removed.
598         (try_generate_gimple_bb): Returns a gimple_bb_p.  Do not pass in
599         sbitmap reductions.  Always build a gimple_bb_p.  Do not call
600         new_poly_bb.
601         (build_scop_bbs_1): Do not pass in sbitmap reductions.
602         (build_scop_bbs): Same.
603         (gbb_from_bb): ... from here.
604         (add_conditions_to_constraints): Moved up.
605         (analyze_drs): New.
606         (build_scop_drs): Call analyze_drs.  Remove all the PBBs that do
607         not contain data references.
608         (new_pbb_from_pbb): New.
609         (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
610         block is split.
611         (rewrite_close_phi_out_of_ssa): Update call to
612         insert_out_of_ssa_copy_on_edge.
613         (rewrite_reductions_out_of_ssa): Now static.
614         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
615         (split_pbb): New.
616         (split_reduction_stmt): Call split_pbb.
617         (translate_scalar_reduction_to_array): Pass in the scop, do not
618         pass in the sbitmap reductions.
619         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
620         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
621         (rewrite_commutative_reductions_out_of_ssa): Same.
622         (build_poly_scop): Call build_scop_bbs,
623         rewrite_commutative_reductions_out_of_ssa,
624         rewrite_reductions_out_of_ssa, and
625         rewrite_cross_bb_scalar_deps_out_of_ssa.  Move build_scop_drs
626         before scop_to_lst.
627         * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
628         Removed declaration.
629         (rewrite_reductions_out_of_ssa): Same.
630         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
631         (build_scop_bbs): Same.
632         * graphite.c (graphite_transform_loops): Do not initialize reductions.
633         Do not call build_scop_bbs,
634         rewrite_commutative_reductions_out_of_ssa,
635         rewrite_reductions_out_of_ssa, and
636         rewrite_cross_bb_scalar_deps_out_of_ssa.
637         * sese.h (struct gimple_bb): Add field pbb.
638         (GBB_PBB): New.
639
640 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
641
642         * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
643         New.
644         (rewrite_cross_bb_scalar_deps): Pass in the scop.  Call
645         handle_scalar_deps_crossing_scop_limits.
646         (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
647         after the scop.  Update call to rewrite_cross_bb_scalar_deps.
648
649 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
650
651         * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
652         when replacing a constant in an ADDR_EXPR.
653
654 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
655
656         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
657         for the stride.
658         (lst_do_strip_mine): Same.
659         (scop_do_strip_mine): Same.
660         * graphite-poly.c (apply_poly_transforms): Update call to
661         scop_do_strip_mine.
662         * graphite-poly.h (scop_do_strip_mine): Update declaration.
663
664 2010-12-01  Jan Hubicka  <jh@suse.cz>
665
666         * tree.c (build_common_builtin_nodes): Do not initialize
667         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
668         * builtins.c (expand_builtin_profile_func): Remove.
669         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
670         BUILT_IN_PROFILE_FUNC_EXIT.
671         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
672         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
673         * gimplify.c (gimplify_function_tree): Reorganize code calling
674         profiling functions.
675
676 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
677
678         * opts.c: Expand comment on tm.h include.
679
680 2010-12-01  Yao Qi  <yao@codesourcery.com>
681
682         * config/arm/predicates.md ("vfp_register_operand"): Return true for
683         VFP_D0_D7_REGS classes.
684
685 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
686
687         * common.opt (flag_stack_check): New Variable entry.
688         (fcompare-debug-second): Use Var.
689         * flags.h (flag_compare_debug, flag_stack_check): Remove.
690         * opts.c (flag_compare_debug): Remove.
691         (common_handle_option): Don't handle OPT_fcompare_debug_second.
692         Set opts->x_flag_stack_check for OPT_fstack_check_.
693         * toplev.c (flag_stack_check): Remove.
694
695 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
696
697         * common.opt (main_input_filename, main_input_basename,
698         main_input_baselength): New Variable entries.  From toplev.c.
699         * final.c (output_quoted_string): Move from toplev.c.
700         * output.h (output_quoted_string): Move from toplev.h.
701         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
702         access main_input_filename, main_input_baselength and
703         main_input_basename.
704         * targhooks.c: Include intl.h and opts.h.
705         (option_affects_pch_p, default_get_pch_validity): Move from
706         toplev.c.
707         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
708         Move from toplev.h.
709         * toplev.c (main_input_filename, main_input_basename,
710         main_input_baselength): Move to common.opt.
711         (output_quoted_string): Move to final.c.
712         (warn_deprecated_use): Move to tree.c.
713         (option_affects_pch_p, default_get_pch_validity,
714         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
715         * toplev.h (skip_leading_substring): Move to tree-dump.c.
716         (warn_deprecated_use): Move to tree.h.
717         (output_quoted_string): Move to output.h.
718         (main_input_filename, main_input_basename, main_input_baselength):
719         Move to common.opt.
720         (default_get_pch_validity, default_pch_valid_p): Move to
721         targhooks.c.
722         * tree-dump.c (skip_leading_substring): Move from toplev.h.
723         * tree.c (warn_deprecated_use): Move from toplev.c.
724         * tree.h (warn_deprecated_use): Move from toplev.h.
725         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
726         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
727         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
728         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
729         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
730         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
731         config/mcore/mcore.c, config/mep/mep.c,
732         config/microblaze/microblaze.c, config/mips/mips.c,
733         config/mmix/mmix.c, config/mn10300/mn10300.c,
734         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
735         config/picochip/picochip.c, config/s390/s390.c,
736         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
737         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
738         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
739         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
740         varasm.c, xcoffout.c: Don't include toplev.h.
741         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
742         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
743         varasm.o, xcoffout.o): Update dependencies.
744         * config/arm/t-arm (arm.o): Update dependencies.
745         * config/spu/t-spu-elf (spu.o): Update dependencies.
746
747 2010-12-01  Richard Guenther  <rguenther@suse.de>
748
749         PR tree-optimization/46730
750         * value-prof.c (gimple_ic): Always generate a separate merge BB.
751
752 2010-11-30  Ian Lance Taylor  <iant@google.com>
753
754         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
755         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
756         * config/i386/linux64.h (ASM_SPEC): Likewise.
757         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
758         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
759         * config/i386/vxworks.h (ASM_SPEC): Likewise.
760         * config/i386/x86-64.h (ASM_SPEC): Likewise.
761         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
762         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
763
764 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
765
766         * c-decl.c (finish_function): Call objc_finish_function in
767         Objective-C.
768         * c-typeck.c (convert_for_assignment): Do not call
769         objc_type_quals_match().
770
771 2010-11-30  Richard Guenther  <rguenther@suse.de>
772
773         PR tree-optimization/46722
774         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
775         operands as arguments.
776         (execute_optimize_widening_mul): Also handle power of two as
777         multiplication.
778
779 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
780
781         PR middle-end/46709
782         * cgraphunit.c (process_function_and_variable_attributes): Fix
783         cut'n'pasteo.
784
785 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
786
787         * hwint.c:  New.  Extracted from toplev.c.
788         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
789         Move from toplev.h.
790         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
791         Move to hwint.c.
792         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
793         Move to hwint.h.
794         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
795         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
796         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
797         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
798         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
799         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
800         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
801         tree-vrp.c: Don't include toplev.h.
802         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
803         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
804         toplev.h in generated output.
805         * Makefile.in (OBJS-common): Add hwint.o.
806         Dependencies for above files changed to remove toplev.h.
807         (hwint.o): New.
808         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
809         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
810         toplev.h.
811         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
812         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
813
814 2010-11-30  Richard Guenther  <rguenther@suse.de>
815
816         PR tree-optimization/46717
817         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
818         call.  Manually create EH edges for the direct call and update
819         target PHI nodes.
820
821 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
822
823         * diagnostic-core.h: Include bversion.h.
824         * toplev.h: Don't include input.h or bversion.h.
825         (parse_optimize_options): Don't declare here.
826         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
827         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
828         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
829         config/host-darwin.c, config/i386/host-cygwin.c,
830         config/i386/host-mingw32.c, config/i386/msformat-c.c,
831         config/i386/netware.c, config/i386/nwld.c,
832         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
833         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
834         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
835         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
836         config/score/score3.c, config/score/score7.c,
837         config/sh/symbian-base.c, config/sh/symbian-c.c,
838         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
839         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
840         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
841         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
842         graphite-blocking.c, graphite-clast-to-gimple.c,
843         graphite-dependences.c, graphite-flattening.c,
844         graphite-interchange.c, graphite-poly.c,
845         graphite-scop-detection.c, graphite.c, haifa-sched.c,
846         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
847         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
848         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
849         lto-opts.c, lto-section-in.c, lto-section-out.c,
850         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
851         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
852         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
853         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
854         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
855         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
856         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
857         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
858         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
859         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
860         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
861         include toplev.h.
862         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
863         toplev.h.  Dependencies for above files and c-family files changed
864         to remove $(TOPLEV_H) or toplev.h.
865         (C_TREE_H): Don't include $(TOPLEV_H).
866         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
867         bversion.h.
868         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
869         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
870         config/t-darwin, config/t-sol2,
871         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
872         Dependencies for above files changed to remove $(TOPLEV_H) or
873         toplev.h.
874
875 2010-11-30  Richard Guenther  <rguenther@suse.de>
876
877         PR lto/44986
878         * gcc.c (main): Use the first input with a compiler as infile
879         for link spec processing.
880
881 2010-11-30  Richard Guenther  <rguenther@suse.de>
882
883         PR lto/45949
884         * cgraphunit.c (ipa_passes): Stop after errors from
885         small IPA passes.
886
887 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
888
889         * gcc-plugin.h: Include coretypes.h.
890         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
891
892 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
893
894         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
895         * ggc-none.c (ggc_internal_alloc_zone_stat)
896         (ggc_internal_cleared_alloc_zone_stat): New.
897
898 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
899
900         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
901         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
902         (rs6000_emit_prologue): Don't set PIC register if
903         TARGET_SINGLE_PIC_BASE.
904         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
905         * doc/invoke.texi (msingle-pic-base): Document.
906
907 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
908
909         PR driver/46712
910         * exec-tool.in (id): New.
911         Check and export LT_RCU_$id instead of LT_RCU.
912
913 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
914
915         PR tree-optimization/46675
916         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
917         in offset calculation.
918
919 2010-11-29  Jan Hubicka  <jh@suse.cz>
920
921         * collect2.c (main): Do not imply verbose output with
922         LTO and linker plugin.
923
924 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
925
926         * dwarf2out.c (print_die): Print the address of the current DIE or
927         of any DIE referenced by the current one.
928
929 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
930
931         PR debug/46101
932         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
933         function.
934         (scope_die_for, gen_type_die_for_member): Replace uses of
935         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
936
937 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
938
939         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
940         (darwin_asm_declare_object_name): Correct spelling.
941         (darwin_output_aligned_bss): Likewise.
942
943 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
944             Mike Stump  <mrs@gcc.gnu.org>
945
946         PR target/26427
947         PR target/33120
948         PR testsuite/35710
949         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
950         (ASM_OUTPUT_LOCAL): Likewise.
951         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
952         (darwin_output_aligned_bss): Likewise.
953         (darwin_asm_output_aligned_decl_local): Likewise.
954         (darwin_asm_output_aligned_decl_common): Likewise.
955         (darwin_use_anchors_for_symbol_p): Likewise.
956         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
957         (TARGET_ASM_OUTPUT_ANCHOR): Define.
958         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
959         (DARWIN_SECTION_ANCHORS): Set to 1.
960         * config/darwin.c (emit_aligned_common): New var.
961         (darwin_init_sections): Check that the Darwin private zero-size section
962         marker is in range.
963         (darwin_text_section): Check for zero-sized objects.
964         (darwin_mergeable_string_section): Likewise.
965         (darwin_mergeable_constant_section): Likewise.
966         (machopic_select_section): Adjust to check for zero-sized objects.
967         Assert that OBJC meta data are non-zero sized.
968         (darwin_asm_declare_object_name): New.
969         (darwin_asm_declare_constant_name): Adjust for zero-sized
970         object sections.
971         (BYTES_ZFILL): Define.
972         (darwin_emit_weak_or_comdat): New.
973         (darwin_emit_local_bss): New.
974         (darwin_emit_common): New.
975         (darwin_output_aligned_bss): New.
976         (darwin_asm_output_aligned_decl_common): New.
977         (darwin_asm_output_aligned_decl_local): New.
978         (darwin_file_end): Disable subsections_via_symbols when section
979         anchoring is active.
980         (darwin_asm_output_anchor): Re-enable.
981         (darwin_use_anchors_for_symbol_p): New.
982         (darwin_override_options): Check for versions that can emit
983         aligned common.  Update usage of flags to current.
984         * config/darwin-sections.def: Update comments and flags for
985         non-anchor sections.  zobj_const_section, zobj_data_section,
986         zobj_bss_section, zobj_const_data_section: New.
987         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
988         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
989         (L2_MAX_OFILE_ALIGNMENT): Define.
990         (ASM_OUTPUT_ALIGNED_BSS): Define.
991         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
992         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
993         (SECTION_NO_ANCHOR): Define.
994         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
995         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
996
997 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
998
999         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
1000         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
1001         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
1002         Conditionally define.
1003         (GET_ENVIRONMENT): Poison.
1004         * configure.ac: Don't test for mincore.
1005         * configure: Regenerate.
1006         * config.in: Regenerate.
1007         * collect2-aix.c: Don't include <sys/mman.h>.
1008         * collect2.c: Don't include <signal.h>.
1009         (SIGCHLD): Don't define.
1010         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
1011         * config/alpha/alpha.c: Include "splay-tree.h" instead of
1012         <splay-tree.h>.
1013         * config/arm/arm.c (arm_target_help): Use getenv instead of
1014         GET_ENVIRONMENT.
1015         * config/avr/driver-avr.c: Don't include <stdlib.h>.
1016         * config/frv/frv.c: Don't include <ctype.h>.
1017         * config/host-darwin.c: Don't include <sys/mman.h>.
1018         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
1019         (MAP_FAILED): Don't define.
1020         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
1021         * config/host-solaris.c: Don't include <sys/mman.h>.
1022         * config/i386/cygming.h: Don't include <stdio.h>.
1023         * config/i386/driver-i386.c: Don't include <stdlib.h>.
1024         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
1025         * config/iq2000/iq2000.c: Don't include <signal.h>.
1026         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
1027         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
1028         * config/mep/mep-pragma.c: Don't include <stdio.h>.
1029         * config/microblaze/microblaze.c: Don't include <signal.h>.
1030         * config/mips/mips.c: Don't include <signal.h>.
1031         * config/rs6000/host-darwin.c: Don't include <signal.h>.
1032         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
1033         * defaults.h (GET_ENVIRONMENT): Don't define.
1034         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
1035         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
1036         (SIGCHLD, MAP_FAILED, kill): Don't define.
1037         (process_command): Use getenv instead of GET_ENVIRONMENT.
1038         * genhooks.c: Don't include <string.h>.
1039         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
1040         <sys/types.h>.
1041         (MAP_FAILED): Don't define.
1042         * ggc-page.c Don't include <sys/mman.h>.
1043         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1044         * ggc-zone.c: Don't include <sys/mman.h>.
1045         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1046         * graph.c: Include "config.h" instead of <config.h>.
1047         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
1048         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
1049         (SIGCHLD, kill): Don't define.
1050         * mips-tfile.c: Don't include <signal.h>.
1051         * opts.c: Don't include <signal.h> or <sys/resource.h>.
1052         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
1053         * passes.c: Don't include <signal.h>, <sys/resource.h> or
1054         <sys/times.h>.
1055         * sparseset.h: Don't include <assert.h>.
1056         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1057         * tlink.c: Don't include "libiberty.h".
1058         * toplev.c: Don't include <signal.h> or <sys/times.h>.
1059         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1060         * tree-switch-conversion.c: Don't include <signal.h>.
1061         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1062
1063 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1064
1065         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1066         c_parser_objc_try_catch_finally_statement for consistency with the
1067         C++ parser.  Parse @catch(...) and pass NULL_TREE to
1068         objc_begin_catch_clause() in that case.  Improved error recovery.
1069         Reorganized code to be almost identical to
1070         cp_parser_objc_try_catch_finally_statement.
1071
1072 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
1073
1074         PR tree-optimization/46621
1075         * gimple.h: Don't include tm.h or hard-reg-set.h .
1076         * Makefile.in (GIMPLE_H): Remove $(TM_H).
1077
1078         PR bootstrap/44756
1079         * cppbuiltin.c: Include target.h .
1080         (define_builtin_macros_for_type_sizes):
1081         Use targetm.float_words_big_endian.
1082
1083 2010-11-27  Jan Hubicka  <jh@suse.cz>
1084
1085         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1086         and output cold_text_section_label.
1087         (dwarf2out_init): Don't do that there.
1088         (dwarf2out_finish): Handle cold section end label only if cold
1089         section was used.
1090
1091 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1092
1093         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1094         VLA variables.
1095
1096 2010-11-27  Richard Guenther  <rguenther@suse.de>
1097
1098         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1099         (gimple_assign_ssa_name_copy_p): Likewise.
1100         (gimple_assign_unary_nop_p): Use is_gimple_assign.
1101         (is_gimple_cast): Remove.
1102         (gimple_assign_single_p): Move ...
1103         * gimple.h (gimple_assign_single_p): ... here.
1104         (is_gimple_cast): Remove.
1105         (gimple_assign_rhs_code): Simplify.
1106         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1107         instead of is_gimple_cast.
1108         * ipa-type-escape.c (look_for_casts): Likewise.
1109
1110 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
1111
1112         * doc/options.texi (Enum, EnumValue): Document new record types.
1113         (Enum): Document new option flag.
1114         * opt-functions.awk
1115         * optc-gen.awk: Handle enumerated option arguments.
1116         * opth-gen.awk: Handle enumerated option arguments.
1117         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1118         enum_value_to_arg): New.
1119         (decode_cmdline_option): Handle enumerated arguments.
1120         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1121         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1122         * opts.c (print_filtered_help, print_specific_help): Take
1123         lang_mask arguments.
1124         (print_filtered_help): Handle printing values of enumerated
1125         options.  Print possible arguments for enumerated options.
1126         (print_specific_help): Update call to print_filtered_help.
1127         (common_handle_option): Update calls to print_specific_help.  Use
1128         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
1129         handle OPT_ffp_contract_, OPT_fexcess_precision_,
1130         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1131         OPT_fira_region_ here.
1132         * opts.h (enum cl_var_type): Add CLVC_ENUM.
1133         (struct cl_option): Add var_enum.
1134         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1135         struct cl_enum, cl_enums, cl_enums_count): New.
1136         (CL_ERR_ENUM_ARG): Define.
1137         (CL_ERR_NEGATIVE): Update value.
1138         (enum_value_to_arg): Declare.
1139         * common.opt (flag_ira_algorithm, flag_ira_region,
1140         flag_fp_contract_mode, flag_excess_precision_cmdline,
1141         default_visibility, flag_tls_default): Remove Variable entries.
1142         (help_enum_printed): New Variable.
1143         (fdiagnostics-show-location=): Use Enum.  Add associated
1144         SourceInclude, Enum and EnumValue entries.
1145         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1146         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
1147         associated Enum and EnumValue entries.
1148
1149 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
1150
1151         PR target/46623
1152         * config/microblaze/microblaze.c (microblaze_block_move_straight):
1153         Use XALLOCAVEC.
1154         (microblaze_option_override): Don't use C++ style comments.
1155         (save_restore_insns): Remove unused variable base_offset.
1156         (microblaze_expand_prologue): Remove unused variable insn.
1157         (microblaze_secondary_reload): Adjust type to match target.h .
1158         (microblaze_elf_in_small_data_p): Move declarations to start of block.
1159         (microblaze_expand_move): Likewise.
1160         * config/microblaze/microblaze.h (LARGE_INT):
1161         Avoid signed / unsigned comparisons.
1162         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1163         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1164         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
1165
1166 2010-11-26  Michael Matz  <matz@suse.de>
1167
1168         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1169
1170         * passes.c (init_optimization_passes): Remove superfluous
1171         copy-prop pass.
1172
1173 2010-11-26  Richard Guenther  <rguenther@suse.de>
1174
1175         PR lto/46648
1176         * gimple.c (gtc_visit): Do not return true for members of an
1177         SCC still being processed but the current lattice value of
1178         the member.  Treat SCC members comparison state as lattice,
1179         starting at equal, eventually dropping to unequal.
1180         (gimple_types_compatible_p_1): Likewise.
1181
1182 2010-11-26  Richard Guenther  <rguenther@suse.de>
1183
1184         PR middle-end/46559
1185         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1186         for location list processing.
1187
1188 2010-11-26  Richard Guenther  <rguenther@suse.de>
1189
1190         PR lto/46560
1191         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1192         flags manually.
1193
1194 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1195
1196         * config/s390/s390.c (print_operand_address): Replace assert with
1197         error message.
1198         (print_operand): Replace assertions, gcc_unreachable and
1199         fatal_insn with error messages.
1200
1201 2010-11-26  Richard Guenther  <rguenther@suse.de>
1202
1203         PR tree-optimization/46665
1204         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1205
1206 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
1207
1208         * config/arm/arm.c (arm_option_override): enable loop array
1209         prefetching at -O3 for suitable targets, and configure params.
1210         * config/arm/arm-protos.h (struct tune_params): Add fields for
1211         configuring loop array prefetching.
1212
1213 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
1214
1215         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1216
1217 2010-11-26  Richard Guenther  <rguenther@suse.de>
1218
1219         PR tree-optimization/46664
1220         * tree-affine.c (aff_combination_to_tree): Add rest last.
1221
1222 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1223
1224         PR target/33637
1225         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1226         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1227         * configure: Regenerated.
1228         * exec-tool.in: Not quoting command, may have extra arguments.
1229
1230 2010-11-26  Richard Guenther  <rguenther@suse.de>
1231
1232         PR tree-optimization/46528
1233         PR debug/46338
1234         * profile.c (branch_prob): Do not split blocks based on locations
1235         from debug statements.
1236
1237 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
1238
1239         PR middle-end/46647
1240         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1241         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
1242
1243         PR bootstrap/45700
1244         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1245         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1246         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1247         build6_loc): Define.
1248         * fold-const.c (protected_set_expr_location_unshare): New inline.
1249         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1250         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1251         pedantic_omit_one_operand_loc, omit_two_operands_loc,
1252         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1253         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1254         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1255         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1256         instead of buildN followed by SET_EXPR_LOCATION or
1257         protected_set_expr_location.
1258         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1259         Use buildN_stat_loc instead of buildN_stat followed by
1260         SET_EXPR_LOCATION.
1261
1262 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
1263
1264         * Makefile.in (s-tm-texi): Remove spurous tab.
1265
1266 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1267
1268         PR debug/46258
1269         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1270         debug stmts.
1271
1272 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1273
1274         * toplev.c (finalize): Add no_backend parameter.  Don't finish
1275         passes when preprocessing only.  Adjust...
1276         (do_compile): ... caller.
1277
1278 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1279
1280         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1281         flag_unsafe_math_optimizations.
1282         (negsf2): Likewise.
1283         Move fnegabs related patterns together.  Only use fmpynfadd instruction
1284         to negate a multiply if !flag_signed_zeros is true.
1285
1286 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
1287
1288         * gengtype-state.c (read_state_structures): Initialize "previous".
1289
1290 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
1291             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1292
1293         * gengtype-state.c: Add new file.
1294
1295         * gengtype.c (type count): New variable.
1296         (new_structure, find_param_structure, create_pointer)
1297         (create_array): Use it to set state_number in types.
1298         (dump_everything): Improve comment.
1299         (main): Call read_state and write_state. Print type_count.
1300
1301         * gengtype.h (type_lineloc): New function.
1302         (read_state, write_state): New declarations.
1303
1304         * Makefile.in (GENGTYPE_FLAGS): New variable.
1305         (s-gtype): Run gengtype twice and generate gtype.state.
1306         (build/gengtype-state.o): New rule.
1307         (build/gengtype$(build_exeext)): Link gengtype-state.o.
1308         (mostlyclean): Update comment.  Remove gtype.state.
1309
1310 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
1311
1312         PR middle-end/46637
1313         * combine.c (try_combine): When substing i2dest for i2src, pass
1314         1 as last argument even if
1315         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1316
1317 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
1318
1319         PR middle-end/46647
1320         * builtins.c (target_char_cast): Check INTEGER_CST instead of
1321         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
1322
1323 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
1324
1325         * target.def (supports_split_stack, except_unwind_info): Take
1326         gcc_options parameters.
1327         * targhooks.c (default_except_unwind_info,
1328         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1329         gcc_options parameters.
1330         * targhooks.h (default_except_unwind_info,
1331         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
1332         prototypes.
1333         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
1334         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
1335         Document that hooks must not be modified.
1336         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
1337         * doc/tm.texi: Regenerate.
1338         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
1339         &global_options to targetm.except_unwind_info.
1340         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1341         dwarf2out_begin_prologue, dwarf2out_frame_init,
1342         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
1343         &global_options to targetm.except_unwind_info.
1344         * except.c (init_eh, finish_eh_generation,
1345         gate_convert_to_eh_region_ranges,
1346         output_one_function_exception_table): Pass &global_options to
1347         targetm.except_unwind_info.
1348         * expr.c (build_personality_function): Pass &global_options to
1349         targetm.except_unwind_info.
1350         * function.c (expand_function_end): Pass &global_options to
1351         targetm.except_unwind_info.
1352         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
1353         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
1354         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
1355         and targetm.supports_split_stack.  Remove assertions about opts
1356         and opts_set.
1357         (common_handle_option): Remove assertions about opts, opts_set and dc.
1358         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
1359         &global_options to targetm.except_unwind_info.
1360         * tree.c (build_common_builtin_nodes: Pass &global_options to
1361         targetm.except_unwind_info.
1362         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
1363         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
1364         thumb1_expand_prologue, thumb1_output_function_prologue,
1365         arm_unwind_emit, arm_output_fn_unwind): Update calls to
1366         arm_except_unwind_info.
1367         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
1368         parameter.
1369         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
1370         parameter.
1371         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
1372         ia64_reorg, ia64_asm_unwind_emit): Update calls to
1373         ia64_except_unwind_info.
1374         * config/pa/pa.c (pa_option_override): Pass &global_options to
1375         targetm.except_unwind_info.
1376         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1377         Remove prototype.
1378
1379 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
1380
1381         * cgraphunit.c (process_function_and_variable_attributes):
1382         Mark dllexport-ed function/variables as needed.
1383         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
1384         as externally visible.
1385
1386 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
1387
1388         PR rtl-optimization/46585
1389         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
1390         (vinsn_init): Skip computation of dependencies for local NOPs.
1391         (vinsn_delete): Don't try to free regsets for local NOPs.
1392         (setup_nop_and_exit_insns): Change definition of nop_pattern.
1393
1394 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
1395
1396         PR rtl-optimization/46602
1397         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
1398         (tidy_control_flow): Here.
1399
1400 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
1401             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1402
1403         PR bootstrap/45888
1404         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
1405         Fix target.def pathname in timestamp comparison.
1406
1407 2010-11-24  Richard Henderson  <rth@redhat.com>
1408
1409         * config/ia64/predicates.md (pmpyshr_operand): New.
1410         * config/ia64/ia64.c (ia64_expand_unpack): New.
1411         (ia64_expand_widen_mul_v4hi): New.
1412         (ia64_expand_widen_sum): Update for pattern renames.
1413         (ia64_expand_dot_prod_v8qi): Likewise.
1414         * config/ia64/ia64-protos.h: Update.
1415         * config/ia64/vect.md (vecwider): New mode attribute.
1416         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
1417         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
1418         (pmpyshr2, pmpyshr2_u): New.
1419         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
1420         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
1421         (mulv2si3): New.
1422         (vec_pack_ssat_v4hi): Rename from pack2_sss.
1423         (vec_pack_usat_v4hi): Rename from *pack2_uss.
1424         (vec_pack_ssat_v2si): Rename from pack4_sss.
1425         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
1426         vec_select operation.
1427         (vec_interleave_highv8qi): Similarly.
1428         (mux1_alt): Rename from *mux1_alt.
1429         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
1430         (vec_interleave_lowv4hi): Rename from unpack2_l.
1431         (vec_interleave_highv4hi): Rename from unpack2_h.
1432         (mix2_r): Rename from *mix2_r.
1433         (mix2_l): Similarly.
1434         (vec_extract_evenodd_helper): New.
1435         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
1436         (vec_interleave_lowv2si): Rename from *unpack4_l.
1437         (vec_interleave_highv2si): Rename from *unpack4_h.
1438         (vec_extract_evenv2si, vec_extract_oddv2si): New.
1439         (vec_interleave_lowv2sf): Rename from fmix_r.
1440         (vec_interleave_highv2sf): Rename from *fmix_l.
1441         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
1442         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
1443         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
1444         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
1445
1446 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
1447
1448         * targhooks.c (default_except_unwind_info): Remove
1449         MUST_USE_SJLJ_EXCEPTIONS case.
1450         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1451         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1452         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1453         * doc/tm.texi: Regenerate.
1454         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
1455
1456 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
1457
1458         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1459         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
1460         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
1461         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
1462         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
1463
1464 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1465
1466         PR target/46519
1467         * config/i386/i386.c (ix86_expand_call): Don't check
1468         TREE_THIS_VOLATILE.
1469
1470 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1471
1472         PR target/46519
1473         * config/i386/i386.c (upper_128bits_state): New.
1474         (block_info_def): Remove upper_128bits_set and done.  Add state,
1475         referenced, count, processed and rescanned.
1476         (check_avx256_stores): Updated.
1477         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
1478         Call note_stores only if needed.  Set referenced and count.
1479         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
1480         (rescan_move_or_delete_vzeroupper): New.
1481         (move_or_delete_vzeroupper):  Process and rescan all all basic
1482         blocks instead of predecessor blocks of all exit points.
1483         (ix86_option_override_internal): Enable vzeroupper optimization
1484         only for -fexpensive-optimizations and not optimizing for size.
1485         (use_avx256_p): Removed.
1486         (init_cumulative_args): Don't set use_avx256_p.
1487         (ix86_function_arg): Likewise.
1488         (ix86_expand_move): Likewise.
1489         (ix86_expand_vector_move_misalign): Likewise.
1490         (ix86_local_alignment): Likewise.
1491         (ix86_minimum_alignment): Likewise.
1492         (ix86_expand_epilogue): Don't check use_avx256_p when generating
1493         vzeroupper.
1494         (ix86_expand_call): Likewise.
1495
1496         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
1497         and use_avx256_p.  Add rescan_vzeroupper_p.
1498
1499 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1500
1501         * toplev.c: Include <signal.h>.
1502
1503 2010-11-24  Richard Guenther  <rguenther@suse.de>
1504
1505         PR lto/43218
1506         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
1507         conflicting function signatures as non-inlineable.
1508
1509 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1510
1511         PR rtl-optimization/46614
1512         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
1513          (deps_analyze_insn): Mark JUMP_INSNs in
1514         last_pending_memory_flush that weren't added through
1515         flush_pending_lists with NON_FLUSH_JUMP_KIND.
1516         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
1517         on INSN_LIST instead of JUMP_P check on its operand.
1518         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
1519
1520 2010-11-24  Richard Guenther  <rguenther@suse.de>
1521
1522         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
1523
1524 2010-11-24  Richard Guenther  <rguenther@suse.de>
1525
1526         PR lto/46606
1527         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
1528         a FIELD_DECL that is type correct issue a warning and fixup
1529         with a VIEW_CONVERT_EXPR.
1530
1531 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1532
1533         * doc/invoke.texi (Options for Debugging Your Program or GCC):
1534         Explain static numbering of dump files.
1535
1536 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1537
1538         * common.opt (user_vect_verbosity_level): New Variable entry.
1539         (ftree-vectorizer-verbose=): Mark as UInteger.
1540         * flag-types.h (enum vect_verbosity_levels): Move from enum
1541         verbosity_levels in tree-vectorizer.h.
1542         * opts.c: Don't include tree.h.
1543         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
1544         gcc_options parameter; take integer option argument.
1545         (common_handle_option): Update call to vect_set_verbosity_level.
1546         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
1547         (vect_set_verbosity_level): Move to opts.c.
1548         (vect_verbosity_level, vect_print_dump_info): Update for change of
1549         enum name.
1550         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
1551         (vect_print_dump_info): Update for change of enum name.
1552         * tree.h (vect_set_verbosity_level): Remove.
1553         * Makefile.in (opts.o): Update dependencies.
1554
1555 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1556
1557         PR middle-end/46629
1558         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
1559         instead of insn with any_condjump_p.
1560
1561 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
1562
1563         * config/mips/loongson.md: Change the description comment of the file
1564         and update the copyright years.
1565         (define_insn "<u>div<mode>3): Add loongson3a support.
1566         (define_insn "<u>mod<mode>3"): Likewise.
1567         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
1568         mul<mode>3_mul3_loongson.
1569         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
1570         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
1571
1572 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1573
1574         * common.opt (initial_max_fld_align, flag_debug_asm,
1575         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
1576         flag_print_asm_name, graph_dump_format, help_printed,
1577         help_columns, flag_opts_finished): New Variable entries.
1578         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
1579         frandom-seed=): Mark deferred.
1580         (fsched-verbose=): Use UInteger and Var.
1581         * flags.h (set_struct_debug_option, flag_print_asm_name,
1582         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
1583         graph_dump_format): Don't declare here.
1584         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
1585         * opts-global.c: Include dbgcnt.h and debug.h.
1586         (decode_options): Pass location to finish_options.
1587         (handle_common_deferred_options): Check flag_dump_all_passed.
1588         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
1589         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
1590         OPT_fstack_limit.
1591         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
1592         (set_struct_debug_option): Add location_t parameter.  Update
1593         recursive call.  Use error_at.
1594         (default_options_optimization): Use error_at.
1595         (finish_options): Add location_t parameter.  Use
1596         opts->x_flag_opts_finished instead of first_time_p.  Use
1597         opts->x_optimize instead of optimize.  Use error_at.  Pass
1598         location to inform.
1599         (print_filtered_help): Use opts->x_help_printed to track what
1600         options have been printed.
1601         (print_specific_help): Use opts->x_help_columns to track number of
1602         columns.
1603         (common_handle_option): Pass locations and gcc_options pointers to
1604         more functions.  Use warning_at instead of fnotice and warning.
1605         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
1606         OPT_fdebug_prefix_map_.  Use error_at.  Set
1607         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
1608         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
1609         OPT_fsched_verbose_.
1610         (handle_param): Add location_r parameter.  Use error_at.
1611         (set_debug_level): Add location_r parameter.  Use error_at and
1612         warning_at.
1613         (setup_core_dumping): Add diagnostic_context parameter.
1614         (decode_d_option): Add gcc_options, location_t and
1615         diagnostic_context parameters and use them instead of global
1616         state.  Use warning_at.
1617         (enable_warning_as_error): Use error_at.
1618         * opts.h (finish_options): Update prototype.
1619         (set_struct_debug_option): Declare here.
1620         * rtl.h (fix_sched_param): Remove.
1621         * stor-layout.c (initial_max_fld_align): Remove.
1622         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
1623         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
1624         (process_options): Set maximum_field_alignment.
1625         * tree.h (initial_max_fld_align) Don't declare here.
1626         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1627
1628 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1629
1630         * flag-types.h (struct visibility_flags): Don't declare here.
1631         * flags.h (strip_off_ending, fast_math_flags_set_p,
1632         fast_math_flags_struct_set_p): Declare here.
1633         (visibility_options): Don't declare here.
1634         * opts-common.c (option_enabled, get_option_state): Move from
1635         opts.c.
1636         * opts-global.c: Include diagnostic.h instead of
1637         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
1638         and toplev.h.
1639         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1640         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1641         print_ignored_options, unknown_option_callback,
1642         post_handling_callback, lang_handle_option, add_input_filename,
1643         read_cmdline_options, initial_lang_mask, init_options_once,
1644         decode_cmdline_options_to_array_default_mask,
1645         set_default_handlers, decode_options): Move from opts.c.
1646         (print_ignored_options): Use warning_at instead of saving and
1647         restoring input_location.
1648         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
1649         instead of expr.h.  Don't include langhooks.h, except.h or
1650         lto-streamer.h.  Add more comments on includes.
1651         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
1652         toplev.c.
1653         (visibility_options): Move to c-family/c-common.c.
1654         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1655         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1656         print_ignored_options, unknown_option_callback,
1657         post_handling_callback, lang_handle_option, add_input_filename,
1658         read_cmdline_options, initial_lang_mask, init_options_once,
1659         decode_cmdline_options_to_array_default_mask,
1660         set_default_handlers, decode_options): Move to opts-global.c.
1661         (target_handle_option, default_options_optimization,
1662         finish_options, common_handle_option): Remove static.
1663         (option_enabled, get_option_state): Move to opts-common.c.
1664         * opts.h (common_handle_option, target_handle_option,
1665         finish_options, default_options_optimization): Declare.
1666         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
1667         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
1668         opts.c.
1669         * toplev.h (strip_off_ending, decode_d_option,
1670         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
1671         declare here.
1672         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1673
1674 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
1675
1676         PR driver/42690
1677         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
1678         options, replace by call of pass-through-libs spec function to process
1679         link_gcc_c_sequence spec.
1680         (lto_libgcc_spec): Delete variable.
1681         (static_specs[]): Remove related entry.
1682         (static_spec_functions[]): Add new entry for pass-through-libs.
1683         (main): Don't generate deleted lto_libgcc_spec.
1684         (pass_through_libs_spec_func): New function to implement the new
1685         pass-through-libs spec function.
1686         * doc/invoke.texi (pass-through-libs): Document new spec function.
1687
1688 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1689
1690         * doc/options.texi (Warning, Optimization): Document.
1691
1692 2010-11-23  Jan Hubicka  <jh@suse.cz>
1693
1694         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
1695         (tree_decl_with_vis): Add implicit_section_name_p.
1696         * targhooks.h (default_function_section): Declare.
1697         * target.def (function_section): New hook.
1698         * defaults.h (HOT_TEXT_SECTION_NAME,
1699         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1700         * predict.c (choose_function_section): Remove.
1701         (estimate_bb_frequencies): Do not use choose_function_section.
1702         * coretypes.h (enum node_frequency): Move here from cgraph.h
1703         * cgraph.h (enum node_frequency): Remove.
1704         * varasm.c (initialize_cold_section_name, unlikely_text_section,
1705         unlikely_text_section_p): Remove.
1706         (named_subsection_entry): New structure.
1707         (get_text_section): New function.
1708         (default_function_section): New function.
1709         (function_section_1): Break out from ...; handle profile info.
1710         (function_section): ... here.
1711         (unlikely_text_section): Remove.
1712         (unlikely_text_section_p): Use function_section_1.
1713         (assemble_start_function): Do not initialize cold section.
1714         (default_section_type_flags): Do not special case cold subsection.
1715         (switch_to_section): Likewise.
1716         * output.h (get_text_section): Define.
1717         * config/i386/winnt.c: Do not special case cold section.
1718         * config/darwin-protos.h (darwin_function_section): Declare.
1719         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
1720         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1721         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
1722         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1723         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
1724         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
1725         * config/darwin.c (machopic_select_section): Use
1726         darwin_function_section.
1727         (darwin_function_section): New function.
1728         * config/darwin.h (HOT_TEXT_SECTION_NAME,
1729         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1730         (TARGET_ASM_FUNCTION_SECTION): Define.
1731         * system.h (HOT_TEXT_SECTION_NAME,
1732         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
1733
1734 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1735
1736         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
1737         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
1738
1739 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
1740
1741         PR middle-end/46499
1742         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
1743         following unconditional jumps.
1744
1745 2010-11-23  Richard Guenther  <rguenther@suse.de>
1746
1747         * doc/md.texi (386 constraints): Clarify A constraint documentation.
1748
1749 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1750             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1751
1752         * gengtype.c (enum typekind, struct options)
1753         (struct nested_ptr_data, struct pair, NUM_PARAM)
1754         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
1755         Move to gengtype.h.
1756         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
1757         Remove static, add zero state_number.
1758         (typedefs, structures, param_structs, variables): Remove static.
1759         (create_option): Remove.
1760         (create_string_option, create_type_option, create_nested_option):
1761         New functions.
1762         (create_nested_ptr_option): Use create_nested_option.
1763         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
1764         new create*option functions.
1765         (process_gc_options): Adjust for discriminated option.
1766         (output_mangled_typename): Handle TYPE_NONE.
1767         (walk_type): Test option kinds.
1768         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
1769         (write_func_for_structure, write_type, write_local, write_root)
1770         (write_roots, note_def_vec, dump_options): Adjust for
1771         discriminated option.
1772
1773         * gengtype.h (typedefs, structures, param_structs, variables
1774         enum typekind): Move from gengtype.c
1775         (enum option_kind): New discriminating enumeration.
1776         (struct options): Becomes discriminated.
1777         (struct nested_ptr_data): Nove from gengtype.c
1778         (create_string_option, create_type_option, create_nested_option)
1779         (create_nested_ptr_option): New functions
1780         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
1781         (UNION_OR_STRUCT_P): Move from gengtype.c
1782
1783         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
1784         discriminated options.
1785
1786 2010-11-23  Richard Guenther  <rguenther@suse.de>
1787
1788         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
1789         twice.  Avoid re-allocating the ops vector all the time.
1790
1791 2010-11-23  Richard Guenther  <rguenther@suse.de>
1792
1793         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
1794         is_gimple_min_invariant, group tree code checks to allow
1795         combining them.
1796         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
1797         of is_gimple_reg.
1798
1799 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1800
1801         * config.gcc (sparc*-*-*): Reorder.
1802
1803 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1804
1805         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
1806         Remove ENABLE_CHECKING around DBGPRINTF.
1807
1808 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
1809
1810         * common.opt (exit_after_options, write_symbols, debug_info_level,
1811         use_gnu_debug_info_extensions): New Variable entries.
1812         (fprofile-dir=): Use Var.
1813         * flag-types.h (enum debug_info_level): Rename to enum
1814         debug_info_levels.
1815         * flags.h (write_symbols, debug_info_level,
1816         use_gnu_debug_info_extensions): Remove declarations.
1817         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
1818         (set_struct_debug_option): Make static variables const.
1819         (use_gnu_debug_info_extensions): Remove.
1820         (set_debug_level, print_filtered_help, print_specific_help,
1821         fast_math_flags_set_p): Take gcc_options parameters and use them
1822         in place of global variables.
1823         (print_filtered_help): Make new_help non-static.
1824         (print_specific_help): Update call to print_filtered_help.
1825         (common_handle_option): Update calls to print_specific_help.  Use
1826         gcc_options structure for more settings.  Make --help table
1827         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
1828         set_debug_level.
1829         * toplev.c (profile_data_prefix): Remove.
1830         * toplev.h (profile_data_prefix, exit_after_options): Remove
1831         declarations.
1832         (fast_math_flags_set_p): Update prototype.
1833         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1834         Update call to fast_math_flags_set_p.
1835
1836 2010-11-22  Richard Henderson  <rth@redhat.com>
1837
1838         PR target/46434
1839         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
1840         return the address register extracted.
1841         (crx_decompose_address): Update the extracted address register.
1842
1843 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
1844
1845         PR driver/43335
1846         * gcc.c (main): Don't crash when lto-wrapper program is not found.
1847
1848 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
1849
1850         PR target/46608
1851         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
1852         * config/picochip/picochip-protos.h: Don't include "target.h" .
1853         (picochip_secondary_reload): Don't declare.
1854
1855         PR target/46613
1856         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
1857         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
1858         static.
1859
1860 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1861
1862         PR bootstrap/46609
1863         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
1864         (source_dot_c_frul): Likewise.
1865
1866 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
1867
1868         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
1869
1870 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
1871
1872         PR bootstrap/44970
1873         * Makefile.in (fwprop.o) Add sparseset.h.
1874         * fwprop.c: Include sparseset.h
1875         (struct find_occurrence_data, find_occurrence_callback,
1876         find_occurrence): Remove.
1877         (active_defs, active_defs_check, register_active_defs,
1878         update_df_init, update_uses): New.
1879         (update_df): Rewrite.
1880         (try_fwprop_subst, forward_propagate_asm): Add calls to
1881         update_df_init and update_df.
1882         (fwprop_init): Allocate active_defs and active_defs_check.
1883         (fwprop_done): Free them.
1884         (fwprop, fwprop_addr): Adjust comments.
1885         * df.h (df_uses_create): Declare.
1886         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
1887         (df_ref_create): Return result of df_ref_create_structure directly.
1888         (df_ref_create_structure): Call df_install_ref_incremental when
1889         no collection_rec is passed.
1890         (df_ref_record): Do not create multiword hard reg info when no
1891         collection_rec is passed.
1892         (df_uses_create): New.
1893
1894 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1895
1896         PR middle-end/43057
1897         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
1898         setting location.
1899
1900 2010-11-22  Richard Guenther  <rguenther@suse.de>
1901
1902         * gimple-fold.c (maybe_fold_reference): When canonicalizing
1903         MEM_REFs, preserve volatileness.
1904         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
1905         addresses.
1906
1907 2010-11-22  Richard Guenther  <rguenther@suse.de>
1908
1909         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
1910
1911 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
1912
1913         PR rtl-optimization/45652
1914         * alias.c (get_reg_base_value): New.
1915         * rtl.h (get_reg_base_value): Add prototype.
1916         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
1917         non-null REG_BASE_VALUE for renaming.
1918
1919 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1920             Basile Starynkevitch  <basile@starynkevitch.net>
1921
1922         * gengtype.c: Include xregex.h and obstack.h
1923         Added comments about role of get_output_file_with_visibility and
1924         our regexpr machinery.
1925         (frul_actionrout_t, struct file_rule_st): New.
1926         (hader_dot_h_frul, source_dot_c_frul): New functions.
1927         (NULL_REGEX,  NULL_FRULACT): New.
1928         (files_rules): New.
1929         (matching_file_name_substitute): New function.
1930         (get_output_file_with_visibility): Updated comments and rewritten
1931         to use the new files_rules machinery.
1932
1933         * Makefile.in (XREGEX_H): Added variable.
1934         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
1935
1936 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1937
1938         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
1939
1940 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1941
1942         * target.def (conditional_register_usage): Define.
1943         * reginfo.c (init_reg_sets_1): Call
1944         targetm.conditional_register_usage.
1945         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
1946         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
1947         for making it a hook.
1948         * doc/tm.texi: Regenerate.
1949         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1950         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
1951         New function.
1952         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1953         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1954         * config/arc/arc.c (arc_conditional_register_usage): ...here.
1955         New function.
1956         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1957         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1958         * config/arm/arm.c (arm_conditional_register_usage): ...here.
1959         New function.
1960         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1961         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
1962         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
1963         * config/bfin/bfin.c (conditional_register_usage): Move code into...
1964         (bfin_conditional_register_usage): ...here.  New function.
1965         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1966         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
1967         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
1968         * config/cris/cris.c (cris_conditional_register_usage): Make static.
1969         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1970         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
1971         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
1972         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
1973         * config/frv/frv.c (frv_conditional_register_usage): Make static.
1974         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1975         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1976         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
1977         New function.
1978         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1979         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
1980         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
1981         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
1982         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1983         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
1984         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
1985         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
1986         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1987         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1988         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
1989         New function.
1990         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1991         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
1992         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
1993         Delete.
1994         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
1995         static.
1996         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1997         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
1998         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
1999         * config/mep/mep.c (mep_conditional_register_usage): Make static.
2000         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2001         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
2002         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
2003         * config/mips/mips.c (mips_conditional_register_usage): Make static.
2004         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2005         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
2006         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
2007         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
2008         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2009         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2010         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
2011         ...here.  New function.
2012         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2013         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2014         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
2015         * config/pa/pa.c (pa_conditional_register_usage): ...here.
2016         New function.
2017         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2018         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2019         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
2020         New function.
2021         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2022         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
2023         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
2024         Delete.
2025         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
2026         static.
2027         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2028         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
2029         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
2030         * config/rx/rx.c (rx_conditional_register_usage): Make static.
2031         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2032         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
2033         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
2034         * config/s390/s390.c (s390_conditional_register_usage): Make static.
2035         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2036         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2037         * config/score/score.c (score_conditional_register_usage): ...here.
2038         New function.
2039         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2040         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2041         * config/sh/sh.c (sh_conditional_register_usage): ...here.
2042         New function.
2043         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2044         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2045         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
2046         New function.
2047         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2048         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
2049         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
2050         * config/spu/spu.c (spu_conditional_register_usage): Make static.
2051         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2052         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2053         * config/v850/v850.c (v850_conditional_register_usage): ...here.
2054         New function.
2055         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2056
2057 2010-11-21  Jan Hubicka  <jh@suse.cz>
2058             Dominique d'Humieres <dominiq@lps.ens.ft>
2059
2060         PR target/46510
2061         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2062         finalize external decls.
2063
2064 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
2065
2066         * system.h (strerror): Poison.
2067
2068 2010-11-21  Richard Henderson  <rth@redhat.com>
2069
2070         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2071         for infq/huge_valq.
2072
2073 2010-11-21  Richard Henderson  <rth@redhat.com>
2074
2075         PR rtl-optimization/46571
2076         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2077         (compute_hash_table_work): Use NONDEBUG_INSN_P.
2078
2079 2010-11-21  Paul Koning  <ni1d@arrl.net>
2080
2081         * config/mips/pdp11.md (negsi2): Fix wrong code.
2082
2083 2010-11-21  Paul Koning  <ni1d@arrl.net>
2084
2085         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2086         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2087
2088 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2089
2090         * config/mips/mips.c (machine_function): Rename load_label_length to
2091         load_label_num_insns.
2092         (mips_load_label_length): Rename to...
2093         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
2094         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
2095
2096 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
2097
2098         PR target/46533
2099         * config/alpha/predicates.md (direct_call_operand): Return false
2100         for !TARGET_SMALL_TEXT targets.
2101
2102 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
2103
2104         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2105         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2106         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2107         * doc/tm.texi: Regenerate.
2108         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2109         HANDLE_PRAGMA_WEAK): Poison.
2110         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2111         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2112         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2113         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2114         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2115         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2116         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2117         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2118         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2119         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2120         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2121         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2122         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2123         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2124         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2125         (HANDLE_PRAGMA_WEAK): Don't undefine.
2126         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2127         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2128         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2129         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2130         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2131         (HANDLE_PRAGMA_WEAK): Don't undefine.
2132         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2133         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2134         (HANDLE_PRAGMA_PACK): Don't undefine.
2135         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2136         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2137         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2138         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2139         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2140         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2141         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2142         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2143         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2144         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2145         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2146         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2147         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2148         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2149         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2150         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2151         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2152
2153 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2154
2155         PR target/31100
2156         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2157         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2158         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2159
2160 2010-11-20  Jan Hubicka  <jh@suse.cz>
2161
2162         * cgraph.c (ld_plugin_symbol_resolution_names): New.
2163         (dump_cgraph_node): Dump resolution.
2164         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2165         (cgraph_comdat_can_be_unshared_p): Dclare.
2166         * lto-streamer-out.c (produce_symtab): Use
2167         cgraph_comdat_can_be_unshared_p.
2168         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2169         (cgraph_comdat_can_be_unshared_p): New function based on logic
2170         in cgraph_externally_visible_p.
2171         (cgraph_externally_visible_p): Use it.
2172         (varpool_externally_visible_p): Virtual tables can be unshared.
2173         * varpool.c (dump_varpool_node): Dump resolution.
2174
2175 2010-11-20  Jan Hubicka  <jh@suse.cz>
2176
2177         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2178
2179 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2180
2181         PR other/46202
2182         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2183         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2184         shell quoting.
2185         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2186         (install-strip): New target.
2187         (STRIPPROG): New variable, exported if STRIP is set.
2188         * doc/install.texi (Final install): Minor markup and code style
2189         fixes.  Document install-strip target.
2190
2191 2010-11-20  Paul Koning  <ni1d@arrl.net>
2192
2193         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2194         pdp11_regno_reg_class): New functions.
2195         * config/pdp11/pdp11.md (define_constants): Add register numbers.
2196         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2197         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2198         functions.
2199         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2200         frame pointer and argument pointer pseudo-registers.
2201         (ARG_POINTER_REGNUM): Define.
2202         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2203         argument pointer.
2204         (FIRST_PARM_OFFSET): Update for argument pointer.
2205         (INITIAL_FRAME_POINTER_OFFSET): Delete.
2206         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2207         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2208         frame pointer and argument pointer.
2209
2210 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
2211
2212         PR debug/46561
2213         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2214         when looking for immediate uses.
2215
2216         PR tree-optimization/45830
2217         * stmt.c (expand_switch_using_bit_tests_p): New function.
2218         (expand_case): Use it.
2219         * tree.h (expand_switch_using_bit_tests_p): New prototype.
2220         * tree-switch-conversion.c (struct switch_conv_info): Add
2221         bit_test_uniq, bit_test_count and bit_test_bb fields.
2222         (check_range): Fix a comment.
2223         (check_process_case): Compute bit_test_uniq and bit_test_count.
2224         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2225         allocation.
2226         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2227         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2228         (array_value_type): New function.
2229         (build_one_array): Use it, if it returned different type,
2230         fold_convert all constructor fields and convert back to the
2231         wider type in the generated code.
2232         (process_switch): Initialize bit_test_uniq, bit_test_count and
2233         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
2234         returned true.
2235
2236 2010-11-19  Michael Matz  <matz@suse.de>
2237
2238         PR tree-optimization/46077
2239         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2240
2241 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
2242
2243         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2244         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2245         function.
2246         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2247
2248 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2249
2250         * mode-switching.c (optimize_mode_switching): Use
2251         FOR_BB_INSNS instead of open-coded loop.
2252         * cfgrtl.c (redirect_branch_edge): Ditto.
2253
2254 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
2255
2256         PR target/46436
2257         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2258         to accomodate 32 bit HOST_WIDE_INT.
2259         (m68hc11_emit_logical): Remove unused variable insn.
2260         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2261         this_insn_uses_iy before use.
2262
2263         PR target/46434
2264         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2265
2266 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2267
2268         PR c/46547
2269         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2270         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2271
2272 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2273
2274         * doc/extend.texi (Function attributes): Document PowerPC target
2275         attributes that are supported.
2276         (Pragmas): Document that PowerPC now supports target pragmas.
2277
2278         * doc/options.texi (TargetVariable): Document TargetVariable,
2279         HeaderInclude, and SourceInclude.
2280
2281         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2282         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2283         -ffp-contract=off.
2284
2285         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2286         SourceInclude directives.  Fix a cut+paste error with target save
2287         enum variables.  Sort enums in the structures after ints and
2288         before shorts.
2289         * opth-gen.awk: Ditto.
2290
2291         * configure.ac: Add support for HeaderInclude and SourceInclude option
2292         directives to add the appropriate files to the dependency lists.
2293         * configure: Regenerate.
2294         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2295         (OPTIONS_C_EXTRA): New variable for SourceInclude.
2296         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2297         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2298         (gcc-options.o): Ditto.
2299         * opt-include.awk: New awk script to handle HeaderInclude and
2300         TargetInclude.
2301
2302         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2303         gets saved in the target options.
2304         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2305         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2306         (-mprototype): Ditto.
2307         (-mbit-word): ditto.
2308         (-mregnames): Ditto.
2309         (-msecure-plt): Ditto.
2310         (-mbss-plt): Ditto.
2311         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2312         (-mpowerpc-gfxopt): Ditto.
2313         (-mmfcrf): Ditto.
2314         (-mpopcntb): Ditto.
2315         (-mfprnd): Ditto.
2316         (-mcmpb): Ditto.
2317         (-mmmfpgpr): Ditto.
2318         (-maltivec): Ditto.
2319         (-mhard-dfp): Ditto.
2320         (-mmulhw): Ditto.
2321         (-mdlmzb): Ditto.
2322         (-mmultiple): Ditto.
2323         (-mstring): Ditto.
2324         (-mpopcntd): Ditto.
2325         (-mfriz): Ditto.
2326         (-mvsx): Ditto.
2327         (-mno-update): Ditto.
2328         (-mavoid-indexed-addresses): Ditto.
2329         (-mtls-markers): Ditto.
2330         (-msched-epilog): Ditto.
2331         (-msched-prolog): Ditto.
2332         (-maix-struct-return): Ditto.
2333         (-msvr4-struct-return): Ditto.
2334         (-mxl-compat): Ditto.
2335         (-mrecip-precision): Ditto.
2336         (-mfp-in-toc): Ditto.
2337         (-msum-in-toc): Ditto.
2338         (-mvrsave): Ditto.
2339         (-mblock-move-inline-limit=): Ditto.
2340         (-misel): Ditto.
2341         (-mpaired): Ditto.
2342         (-mlongcall): Ditto.
2343         (-mgen-cell-microcode): Ditto.
2344         (-mwarn-cell-microcode): Ditto.
2345         (-mwarn-altivec-long): Ditto.
2346         (-mprioritize-restricted-insns=): Ditto.
2347         (-msingle-float): Ditto.
2348         (-mdouble-float): Ditto.
2349         (-msimple-fpu): Ditto.
2350         (-mxilinx-fpu): Ditto.
2351         * config/rs6000/aix64.opt (-mpe): Ditto.
2352
2353         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
2354         (rs6000_cpu): Move variable to be a target variable.  Rename
2355         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
2356         -mdebug=<xxx> variables into a single int.
2357         (rs6000_always_hint): Ditto.
2358         (rs6000_sched_groups): Ditto.
2359         (rs6000_align_branch_targets): Ditto.
2360         (rs6000_sched_costly_dep): Ditto.
2361         (rs6000_sched_insert_nops): Ditto.
2362         (rs6000_long_double_type_size): Ditto.
2363         (rs6000_ieeequad): Ditto.
2364         (rs6000_altivec_abi): Ditto.
2365         (rs6000_spe): Ditto.
2366         (rs6000_spe_abi): Ditto.
2367         (rs6000_float_gprs): Ditto.
2368         (rs6000_darwin64_abi): Ditto.
2369         (can_override_loop_align): Ditto.
2370         (rs6000_sdata): Ditto.
2371         (rs6000_tls_size): Ditto.
2372         (rs6000_current_abi): Ditto.
2373         (rs6000_traceback): Ditto.
2374         (rs6000_alignment_flags): Ditto.
2375         (rs6000_current_cmodel): Ditto.
2376         (rs6000_recip_control): Ditto.
2377         (rs6000_cpu_index): Ditto.
2378         (rs6000_tune_index): Ditto.
2379         (rs6000_debug): Ditto.
2380         (rs6000_target_flags_explict): Ditto.
2381
2382         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
2383         declaration.
2384
2385         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
2386         cmodel.  Change all uses.
2387
2388         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
2389         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
2390         Rename cmodel to rs6000_current_cmodel.
2391         (rs6000_sched_groups): Ditto.
2392         (rs6000_align_branch_targets): Ditto.
2393         (rs6000_sched_costly_dep): Ditto.
2394         (rs6000_sched_insert_nops): Ditto.
2395         (rs6000_long_double_type_size): Ditto.
2396         (rs6000_ieeequad): Ditto.
2397         (rs6000_altivec_abi): Ditto.
2398         (rs6000_spe): Ditto.
2399         (rs6000_spe_abi): Ditto.
2400         (rs6000_float_gprs): Ditto.
2401         (rs6000_darwin64_abi): Ditto.
2402         (can_override_loop_align): Ditto.
2403         (rs6000_sdata): Ditto.
2404         (rs6000_tls_size): Ditto.
2405         (rs6000_current_abi): Ditto.
2406         (rs6000_traceback): Ditto.
2407         (rs6000_alignment_flags): Ditto.
2408         (rs6000_current_cmodel): Ditto.
2409         (rs6000_recip_control): Ditto.
2410         (rs6000_cpu_index): Ditto.
2411         (rs6000_tune_index): Ditto.
2412         (rs6000_debug): Ditto.
2413         (rs6000_target_flags_explict): Ditto.
2414         (rs6000_sched_insert_nops_str): Make static.
2415         (rs6000_sched_costly_dep_str): Ditto.
2416         (rs6000_recip_name): Ditto.
2417         (rs6000_abi_name): Ditto.
2418         (rs6000_sdata_name): Ditto.
2419         (enum rs6000_traceback_name): Move to rs6000-opts.h.
2420         (rs6000_parse_tls_size_option): Delete.
2421         (rs6000_valid_attribute_p): New function for target attributes and
2422         pragmas.
2423         (rs6000_function_specific_save): Ditto.
2424         (rs6000_function_specific_restore): Ditto.
2425         (rs6000_function_specific_print): Ditto.
2426         (rs6000_can_inline_p): Ditto.
2427         (rs6000_set_current_function): Ditto.
2428         (rs6000_inner_target_options): Ditto.
2429         (rs6000_debug_target_options): Ditto.
2430         (rs6000_pragma_target_parse): Ditto.
2431         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
2432         attributes and pragmas.
2433         (TARGET_OPTION_SAVE): Ditto.
2434         (TARGET_OPTION_RESTORE): Ditto.
2435         (TARGET_OPTION_PRINT): Ditto.
2436         (TARGET_CAN_INLINE_P): Ditto.
2437         (TARGET_SET_CURRENT_FUNCTION): Ditto.
2438         (POWER_MASKS): Move to file level scope from the
2439         rs6000_option_override_internal function.
2440         (POWERPC_MASKS): Ditto.
2441         (ISA_*_MASKS): Ditto.
2442         (struct rs6000_ptt): Ditto.
2443         (processor_target_table): Ditto.
2444         (rs6000_cpu_name_lookup): Map cpu name to an index in
2445         processor_target_table.
2446         (rs6000_debug_reg_global): Print more information on processor
2447         options for -mdebug=reg.
2448         (rs6000_init_hard_regno_mode_ok): Add support for target
2449         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
2450         Allow -mdebug=val1,val2.  Rename cmodel variable.
2451         (rs6000_option_override_internal): Ditto.
2452         (rs6000_option_override): Ditto.
2453         (rs6000_handle_option): Ditto.
2454         (rs6000_conditional_register_usage): Add debug trace message.
2455         (struct rs6000_opt_mask): New for target attribute/pragma support.
2456         (rs6000_opt_masks): Ditto.
2457         (struct rs6000_opt_var): Ditto.
2458         (rs6000_opt_vars): Ditto.
2459         (rs6000_previous_function): Ditto.
2460
2461         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
2462         wasn't already included.
2463         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
2464         (enum processor_type): Ditto.
2465         (rs6000_cpu): Ditto.
2466         (enum fpu_type_t): Ditto.
2467         (fpu_type): Ditto.
2468         (enum rs6000_dependence_cost): Ditto.
2469         (enum rs6000_nop_insertion): Ditto.
2470         (enum group_termination): Ditto.
2471         (rs6000_long_double_type_size): Ditto.
2472         (rs6000_ieeequad): Ditto.
2473         (rs6000_altivec_abi): Ditto.
2474         (rs6000_spe_abi): Ditto.
2475         (rs6000_spe): Ditto.
2476         (rs6000_float_gprs): Ditto.
2477         (rs6000_alignment_flags): Ditto.
2478         (rs6000_sched_insert_nops): Ditto.
2479         (enum rs6000_vector): Ditto.
2480         (enum rs6000_abi): Ditto.
2481         (rs6000_current_opt): Ditto.
2482         (rs6000_debug_*): Delete.
2483         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
2484         (TARGET_DEBUG*): Ditto.
2485
2486         * config/rs6000/rs6000-opts.h: New header file to define the enums
2487         that are used in target variables that are now defined in rs6000.opt.
2488
2489         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
2490         rs6000-opts.h.
2491         (rs6000_sdata): Ditto.
2492         (rs6000_abi_name): Delete.
2493         (rs6000_sdata_name): Ditto.
2494         (rs6000_tls_size_string): Ditto.
2495
2496 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2497
2498         * common.opt (debug_struct_ordinary, debug_struct_generic): New
2499         Variable entries.
2500         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
2501         should_emit_struct_debug): Move from opts.c.
2502         * flag-types.h (enum debug_struct_file): Move from opts.c.
2503         * flags.h (should_emit_struct_debug): Remove.
2504         (base_of_path): Declare.
2505         (set_struct_debug_option): Add gcc_options parameter.
2506         * optc-gen.awk, opth-gen.awk: Handle array variables.
2507         * opts.c (enum debug_struct_file, debug_struct_ordinary,
2508         debug_struct_generic): Remove.
2509         (set_struct_debug_option): Add gcc_options parameter.
2510         (base_of_path): Remove static.
2511         (main_input_basename, main_input_baselength, matches_main_base,
2512         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
2513         Remove.
2514         * toplev.c (main_input_basename, main_input_baselength): Define
2515         here.
2516         * toplev.h (main_input_basename, main_input_baselength): Declare
2517         here.
2518
2519 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2520
2521         * common.opt (flag_instrument_functions_exclude_functions,
2522         flag_instrument_functions_exclude_files): New Variable definitions.
2523         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
2524         * gimplify.c (char_p): Declare type and vectors.
2525         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
2526         * opts.c (flag_instrument_functions_exclude_functions,
2527         flag_instrument_functions_exclude_files): Remove.
2528         (add_comma_separated_to_vector): Take void **.
2529         (flag_instrument_functions_exclude_p): Move to gimplify.c.
2530         (common_handle_option): Use options structure for
2531         -finstrument-functions-exclude- options.
2532
2533 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2534
2535         * doc/options.texi (Var): Document effects of Defer.
2536         (Defer): Document.
2537         * opt-functions.awk (var_type, var_set): Handle deferred options.
2538         * opts-common.c (set_option): Handle CLVC_DEFER.
2539         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
2540         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
2541         fstack-limit-symbol=): Mark as deferred.
2542         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
2543         plugin.h.
2544         (print_filtered_help): Don't report state of CLVC_DEFER options.
2545         (common_handle_option): Move code for OPT_fcall_used_,
2546         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
2547         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
2548         OPT_fstack_limit_symbol_ to opts-global.c.
2549         (option_enabled, get_option_state): Handle CLVC_DEFER.
2550         * opts.h: Include vec.h.
2551         (enum cl_var_type): Add CLVC_DEFER.
2552         (cl_deferred_option): Define type and vectors.
2553         (handle_common_deferred_options): Declare.
2554         * opts-global.c: New.
2555         * toplev.c (toplev_main): Call handle_common_deferred_options
2556         * Makefile.in (OPTS_H): Include $(VEC_H).
2557         (OBJS-common): Include opts-global.o.
2558         (opts.o): Update dependencies.
2559         (opts-global.o): Add dependencies.
2560
2561 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2562
2563         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
2564         to objc_declare_protocols.
2565
2566 2010-11-19  Richard Guenther  <rguenther@suse.de>
2567
2568         PR lto/45789
2569         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
2570         IDENTIFIERs do not stream TREE_TYPE.
2571         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
2572
2573 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
2574
2575         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
2576
2577 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
2578
2579         PR target/45870
2580         * dwarf2out.c (const_ok_for_output_1): Don't complain about
2581         non-delegitimized TLS UNSPECs.
2582
2583 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
2584             Ian Lance Taylor  <iant@google.com>
2585
2586         * config/darwin-c.c (darwin_additional_format_types): Export.
2587
2588 2010-11-18  Paul Koning  <ni1d@arrl.net>
2589
2590         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
2591         pointer.
2592
2593 2010-11-18  Paul Koning  <ni1d@arrl.net>
2594
2595         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
2596         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
2597         * config/pdp11/pdp11.opt (-mabshi): Delete.
2598
2599 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
2600
2601         * resource.h (struct resources): Fix typo in the comment.
2602
2603 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2604
2605         PR target/46546
2606         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
2607
2608 2010-11-18  Richard Henderson  <rth@redhat.com>
2609
2610         PR middle-end/46515
2611         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
2612         maybe_copy_epilogue_insn; handle prologue insns as well.
2613         * rtl.h, cfglayout.c: Update for rename.
2614         * recog.c (peep2_attempt): Copy prologue/epilogue data for
2615         RTX_FRAME_RELATED_P insns.
2616
2617 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
2618
2619         PR middle-end/46534
2620         * builtins.c (fold_builtin_printf): Don't copy and modify string
2621         before build_string_literal, instead modify what
2622         build_string_literal returned.
2623
2624 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
2625
2626         PR c/33193
2627         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
2628         REALPART_EXPR and IMAGPART_EXPR.
2629
2630 2010-11-18  Richard Guenther  <rguenther@suse.de>
2631
2632         PR tree-optimization/46172
2633         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
2634         function.
2635         (slpeel_tree_peel_loop_to_edge): Call it.
2636
2637 2010-11-18  Jeff Law  <law@redhat.com>
2638
2639         PR middle-end-optimization/46297
2640         * postreload.c (reload_combine_note_store): Deal with embedded
2641         side effects in MEM expressions.
2642
2643 2010-11-18  Richard Guenther  <rguenther@suse.de>
2644
2645         PR lto/45089
2646         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
2647         when checking is not enabled.
2648
2649 2010-11-18  Richard Guenther  <rguenther@suse.de>
2650
2651         PR lto/46525
2652         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
2653         type leaders.
2654         (gimple_register_canonical_type): Also cache the canoncial type
2655         for non type leaders.
2656
2657 2010-11-18  Richard Guenther  <rguenther@suse.de>
2658
2659         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
2660
2661 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
2662
2663         PR middle-end/46518
2664         * sel-sched-ir.c (init_expr): Use the correct type for
2665         target_available.
2666         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
2667
2668 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
2669
2670         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
2671         as well as -mrelocatable at the same time.
2672
2673 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
2674
2675         PR target/46422
2676         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
2677         Call the clz builtin.
2678
2679 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
2680             Steve Ellcey  <sje@cup.hp.com>
2681
2682         PR middle-end/31490
2683         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
2684         if section attribute used.
2685
2686 2010-11-17  Jan Hubicka  <jh@suse.cz>
2687
2688         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
2689         expand errno setting variant when optimizing for size.
2690
2691 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2692
2693         * postreload.c (reload_combine): Call control_flow_insn_p only once.
2694         Reverse backward loop.  Fix formatting issues.
2695
2696 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
2697
2698         * c-parser.c (c_token_is_qualifier,
2699         c_parser_next_token_is_qualifier): New.
2700         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
2701         Improve error message on specs->tagdef_seen_p.
2702         (c_parser_struct_or_union_specifier): Improve error recovery.
2703         (c_parser_declspecs): Move exit condition on C_ID_ID early.
2704         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
2705         using c_parser_next_token_is_qualifier; extend it to cover
2706         a ctsk_tagdef typespec and !typespec_ok in general.
2707
2708 2010-11-17  Richard Guenther  <rguenther@suse.de>
2709
2710         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
2711         (gimple_mod_pow2_value_transform): Likewise.
2712         (gimple_mod_subtract_transform): Likewise.
2713
2714 2010-11-17  Richard Guenther  <rguenther@suse.de>
2715
2716         PR lto/46504
2717         * gimple.c (gimple_register_canonical_type): Make sure to only
2718         make type leaders canonical types.
2719
2720 2010-11-17  Michael Matz  <matz@suse.de>
2721
2722         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
2723         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
2724         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
2725         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
2726         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
2727         (pass_build_ssa): ... but here.
2728         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
2729         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
2730         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
2731         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
2732         * predict.c (rebuild_frequencies): Ditto.
2733         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
2734         * emit-rtl.c (verify_rtl_sharing): Ditto.
2735         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
2736         * tree-ssa-live.c (remove_unused_locals): Ditto.
2737         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
2738         * tree-ssa.c (pass_early_warn_uninitialized,
2739         execute_update_addresses_taken, pass_update_address_taken): Ditto.
2740         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
2741         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
2742         * passes.c (pass_postreload, execute_todo): Ditto.
2743         * tree-ssanames.c (pass_release_ssa_names): Ditto.
2744
2745 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2746
2747         * doc/invoke.texi (-dy): Remove.
2748         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
2749         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
2750         * langhooks.c (lhd_do_nothing_i): Remove.
2751         * langhooks.h (lang_hooks.parse_file): Take no arguments.
2752         * toplev.c (set_yydebug): Remove.
2753         (compile_file): Update call to lang_hooks.parse_file.
2754         (decode_d_option): Don't handle -dy.
2755
2756 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2757
2758         PR rtl-optimization/46440
2759         * combine.c (update_cfg_for_uncondjump): When changing
2760         an indirect jump into unconditional jump, remove BARRIERs
2761         from bb's footer.
2762
2763 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2764
2765         * opts.c (target_handle_option): Do not assert that loc ==
2766         UNKNOWN_LOCATION.
2767
2768 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2769             Richard Guenther  <rguenther@suse.de>
2770
2771         PR middle-end/45838
2772         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2773         call_may_clobber_ref_p_1): Return true for __sync_* and some
2774         OpenMP builtins that act as threading barriers.
2775
2776 2010-11-17  Richard Guenther  <rguenther@suse.de>
2777
2778         PR tree-optimization/46498
2779         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
2780
2781 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2782
2783         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
2784         (xtensa_function_arg_boundary): ...this.
2785         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
2786         thinko in declaration.
2787         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
2788         number of parameters to picochip_function_arg_boundary.
2789         (picochip_arg_advance): Likewise.
2790
2791 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2792
2793         PR target/46512
2794         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
2795         under check for type.
2796
2797 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2798
2799         * ifcvt.c (dead_or_predicable): Fix typo.
2800
2801 2010-11-16  Richard Henderson  <rth@redhat.com>
2802
2803         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
2804         * config/s390/s390.opt (mfused-madd): Remove.
2805         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
2806         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2807         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
2808         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
2809
2810 2010-11-16  Richard Henderson  <rth@redhat.com>
2811
2812         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
2813         * config/rs6000/rs6000.opt (mfused-madd): Remove.
2814         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
2815         (*altivec_vmaddfp_1): Remove.
2816         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
2817         (altivec_mulv4sf3): Expand to FMA directly.
2818         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
2819         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
2820         * config/rs6000/paired.md (paired_madds0): Use FMA.
2821         (paired_madds1): Likewise.
2822         (*paired_madd): Rename from paired_madd; use FMA.
2823         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
2824         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
2825         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
2826         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
2827         (rs6000_emit_madd): Use fma_optab.
2828         (rs6000_emit_msub): Use fms_optab.
2829         (rs6000_emit_nmsub): Expand the FMA pattern directly.
2830         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
2831         (*fmasf4_fpr): Rename from fmasf4_fpr.
2832         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
2833         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
2834         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
2835         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
2836         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
2837         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
2838         (*fmadf4_fpr): Rename from fmadf4_fpr.
2839         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
2840         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
2841         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
2842         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
2843         (fmasf4, fmadf4): Macroize into...
2844         (fma<FMA_F>4): ... here.
2845         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
2846         (nfma<FMA_F>4, nfms<FMA_F>4): New.
2847         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
2848         TARGET_FUSED_MADD.
2849         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
2850         (*vsx_fmadd<mode>4_1): Remove.
2851         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
2852         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
2853         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
2854         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
2855         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
2856         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
2857         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
2858
2859 2010-11-16  Richard Henderson  <rth@redhat.com>
2860
2861         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
2862         (fmasf4, fnmadf4, fnmasf4): Likewise.
2863         (unnamed plus+mult insns and splitters): Delete.
2864
2865 2010-11-16  Richard Henderson  <rth@redhat.com>
2866
2867         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
2868         (fnma<VSF>4): Rename from fnms_<VSF>.
2869         (fms<VSF>4): Rename from fms_<VSF>.
2870         (fma<VDF>4): Rename from fma_<VDF>.
2871         (fms<VDF>4): Rename from fms_<VDF>.
2872         (nfma<VDF>4): Rename from fnma_<VDF>.
2873         (nfms<VDF>4): Rename from fnms_<VDF>.
2874         (fnma<VDF>4, fnms<VDF>4): New expanders.
2875         (floatunsdisf2): Update for the renames.
2876         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
2877         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
2878
2879 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2880
2881         PR rtl-optimization/46490
2882         * combine.c (expand_compound_operation): Fix thinko.
2883
2884 2010-11-16  Richard Henderson  <rth@redhat.com>
2885
2886         PR target/46470
2887         * recog.c (peep2_attempt): Convert frame-related info when possible.
2888         (peep2_fill_buffer): Allow frame-related insns into the buffer.
2889         (peephole2_optimize): Allow peep2_attempt to fail.
2890
2891 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2892
2893         PR rtl-optimization/46315
2894         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
2895         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
2896         extracted from...
2897         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
2898         (remove_reg_equal_equiv_notes_for_defs): ...this.
2899         (delete_unmarked_insns): Adjust to above renaming.
2900         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
2901         referring to registers set in the insns being moved, if any.
2902
2903         * df-core.c (df_ref_dump): New function extracted from...
2904         (df_refs_chain_dump): ...here.  Call it.
2905         (df_regs_chain_dump): Likewise.
2906         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
2907         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
2908
2909 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
2910
2911         PR rtl-optimization/46395
2912         * postreload.c (reload_combine): Invalidate register use
2913         information on all control flow insns.
2914
2915         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
2916         LABEL_REF in UNSPEC operand.
2917
2918 2010-11-16  Jan Hubicka  <jh@suse.cz>
2919
2920         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
2921         when !flag_toplevel_reorder do not remove unless variable is
2922         COMDAT or ARTIFICIAL.
2923         * ipa.c (varpool_can_remove_if_no_refs): ... here.
2924         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
2925         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
2926         * varpool.c (decide_is_variable_needed): Do not handle visibility
2927         issues.
2928         (varpool_finalize_decl): Likewise.
2929         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
2930         update outdated comment on DECL_RTL_SET_P check.
2931
2932 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2933
2934         * config/sol2.h (NM_FLAGS): Define.
2935         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
2936         * doc/tm.texi: Update.
2937
2938 2010-11-16  Nick Clifton  <nickc@redhat.com>
2939
2940         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
2941         (msubsf4): Rename to fmssf4, and use fma.
2942         (nmaddsf4): Rename to fnmasf4 and use fma.
2943         (nmsubsf4): Rename to fnmssf4 and use fma.
2944
2945 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
2946
2947         PR target/44762
2948         * config/score/score3.c (score3_return_in_memory): Constify arguments.
2949         (score3_in_small_data_p, score3_function_value): Likewise.
2950         (score3_trampoline_init): Use LCT_NORMAL.
2951         (score3_print_operand): Initialize code as UNKNOWN.
2952         * config/score/predicates.md (score_load_multiple_operation):
2953         Remove unused variable.
2954         (score_store_multiple_operation): Likewise.
2955         * config/score/score7.c (score7_return_in_memory): Constify arguments.
2956         (score7_in_small_data_p, score7_function_value): Likewise.
2957         (score7_trampoline_init): Use LCT_NORMAL.
2958         (score7_print_operand): Initialize code as UNKNOWN.
2959         * config/score/score3.h (score3_return_in_memory): Update prototype.
2960         (score3_in_small_data_p, score3_function_value): Likewise.
2961         * config/score/score-protos.h (score_function_value): Likewise.
2962         * config/score/score7.h (score7_return_in_memory): Update prototype.
2963         (score7_in_small_data_p, score7_function_value): Likewise.
2964         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
2965         (score_return_in_memory, score_pass_by_reference): Constify arguments.
2966         (score_output_mi_thunk, score_function_prologue): Don't return a value.
2967         (score_function_epilogue, score_in_small_data_p): Likewise.
2968         (score_option_override, score_asm_trampoline_template): Likewise.
2969         (score_trampoline_init, score_print_operand): Likewise.
2970         (score_print_operand_address, score_prologue): Likewise.
2971         (score_epilogue, score_call, score_call_value): Likewise.
2972         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
2973         (score_function_arg_advance): Likewise. Make static.
2974         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
2975         (score_function_arg, score_legitimate_address_p): Make static.
2976         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
2977         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
2978         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
2979         Allow (W) == HOST_BITS_PER_WIDE_INT.
2980
2981         PR java/46386
2982         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
2983         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
2984
2985 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2986
2987         * config/arc/arc.c: Delete pasto.
2988         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
2989
2990 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
2991
2992         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
2993         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2994         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
2995         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2996         (mn10300_preferred_reload_class,
2997         mn10300_preferred_output_reload_class): New functions.
2998
2999 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3000
3001         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
3002         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
3003         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
3004         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
3005
3006 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3007
3008         * builtins.c (std_gimplify_va_arg_expr): Use
3009         targetm.calls.function_arg_boundary.
3010         * function.c (assign_parms, locate_and_pad_parm): Likewise.
3011         * calls.c (struct arg_data): Update comment.
3012         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
3013         * target.def (function_arg_boundary): Define.
3014         * targhooks.h (default_function_arg_boundary): Declare.
3015         * targhooks.c (default_function_arg_boundary): Define.
3016         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
3017         TARGET_FUNCTION_ARG_BOUNDARY.
3018         (FUNCTION_ARG_BOUNDARY): Delete.
3019         (TARGET_FUNCTION_ARG_BOUNDARY): New.
3020         * doc/tm.texi: Regenerate.
3021         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
3022         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
3023         * config/arc/arc.c (arc_function_arg_boundary): Define.
3024         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3025         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
3026         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
3027         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
3028         (arm_function_arg_boundary): Define.
3029         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3030         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
3031         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
3032         * config/frv/frv.c (frv_function_arg_boundary): Make static.
3033         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3034         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
3035         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
3036         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
3037         (ix86_compat_function_arg_boundary): Take and return unsigned int.
3038         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3039         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
3040         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
3041         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
3042         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3043         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
3044         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
3045         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3046         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
3047         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
3048         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
3049         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3050         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
3051         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
3052         * config/mips/mips.c (mips_function_arg_boundary): Make static.
3053         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3054         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
3055         * config/pa/pa.c (pa_function_arg_boundary): Define.
3056         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3057         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
3058         * config/picochip/picochip-protos.h
3059         (picochip_get_function_arg_boundary): Delete.
3060         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
3061         Rename to...
3062         (picochip_function_arg_boundary): ...this.  Make static.
3063         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
3064         (picochip_arg_advance): Adjust.
3065         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3066         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
3067         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
3068         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
3069         (rs6000_function_arg_boundary): ...this.  Make static.
3070         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
3071         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3072         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
3073         * config/rx/rx.c (rx_function_arg_boundary): Define.
3074         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3075         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
3076         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
3077         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3078         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
3079         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
3080         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
3081         (xtensa_function_arg_boundary): ...this.  Make static.
3082         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
3083
3084 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3085
3086         * expr.c (alignment_for_piecewise_move): New function.
3087         (widest_int_mode_for_size): New function.
3088         (move_by_pieces, move_by_pieces_ninsns): Call them.
3089         (can_store_by_pieces, store_by_pieces_1): Likewise.
3090
3091 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3092
3093         * gcc.c (char_p): Define.  Define a VEC of it.
3094         (n_linker_options, n_assembler_options, n_preprocessor_options):
3095         Delete.
3096         (linker_options, assembler_options, preprocessor_options): Convert
3097         to a VEC.
3098         (add_preprocessor_option): Adjust.
3099         (add_assembler_option): Adjust.
3100         (add_linker_option): Adjust.
3101         (do_specs_vec): New function.
3102         (do_spec_1): Call it.  Adjust for new types.
3103
3104 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3105
3106         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
3107         (sreal.o, statistics.o, stringpool.o): Likewise.
3108
3109 2010-11-16  Richard Guenther  <rguenther@suse.de>
3110
3111         PR tree-optimization/44545
3112         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
3113         statements are not reassociatable.
3114         (reassociate_bb): Likewise.
3115
3116 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3117
3118         * bitmap.c: Delete unnecessary includes.
3119         * ebitmap.c: Likewise.
3120         * et-forest.c: Likewise.
3121         * sreal.c: Likewise.
3122         * statistics.c: Likewise.
3123         * stringpool.c: Likewise.
3124         * double-int.c: Add comment for inclusion of tm.h.
3125
3126 2010-11-16  Richard Guenther  <rguenther@suse.de>
3127
3128         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
3129         (visit_nary_op): ... this.
3130         (visit_binary_op): Remove.
3131         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
3132
3133 2010-11-16  Richard Guenther  <rguenther@suse.de>
3134
3135         PR middle-end/45172
3136         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
3137
3138 2010-11-16  Nick Clifton  <nickc@redhat.com>
3139
3140         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
3141         record is packed.
3142
3143 2010-11-15  Richard Henderson  <rth@redhat.com>
3144
3145         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
3146         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
3147         DOT_PROD_EXPR.
3148
3149 2010-11-15  Richard Henderson  <rth@redhat.com>
3150
3151         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
3152         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
3153         fma rtx_code.
3154
3155 2010-11-15  Richard Henderson  <rth@redhat.com>
3156
3157         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
3158         and *mulsubsf4 respectively.  Use fma rtx_code.
3159
3160 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
3161
3162         * gcc.c: Include "vec.h".
3163         (argbuf): Make into a VEC.
3164         (argbuf_length, argbuf_index): Remove.
3165         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
3166         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
3167         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
3168         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
3169         (gcc.o): Depend on $(VEC_H).
3170
3171 2010-11-15  Richard Henderson  <rth@redhat.com>
3172
3173         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
3174         via FMA if unsafe math.
3175         (insert_var_expansion_initialization): Handle FMA.
3176         (combine_var_copies_in_loop_exit): Likewise.
3177
3178 2010-11-15  Richard Henderson  <rth@redhat.com>
3179
3180         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
3181         * config/ia64/ia64.opt: Remove mfused-madd.
3182         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
3183         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
3184         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
3185         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
3186         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
3187         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
3188         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
3189         (fmav2sf4): Rename from fpma; use FMA code.
3190         (fmsv2sf4): Rename from fpms; use FMA code.
3191         (fnmav2sf4): Rename from *fpnma; use FMA code.
3192         * config/ia64/ia64.md (MODE_SDF): New iterator.
3193         (suffix): New mode attribute.
3194         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
3195         (fmssf4): Rename from *fmssf4.
3196         (fnmasf4): Rename from *nfmasf4.
3197         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
3198         (*nmadddf4, *nmadddf4_truncsf): Remove.
3199         (fmsdf4): Rename from *fmsdf4.
3200         (fnmadf4): Rename from *nfmadf4.
3201         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
3202         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
3203         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
3204         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
3205         (fmsxf4): Rename from *fmsxf4.
3206         (fnmaxf4): Rename from *nfmaxf4.
3207         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
3208         (*fnmaxf_trunc_<MODE_SDF>): New.
3209
3210 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
3211
3212         PR tree-optimization/46461
3213         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
3214         a gimple val.
3215
3216 2010-11-15  Ian Lance Taylor  <iant@google.com>
3217
3218         * godump.c: New file.
3219         * common.opt (fdump-go-spec=): New option.
3220         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
3221         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
3222         (TYPE_SYMTAB_IS_DIE): Define.
3223         (struct tree_type): Change GTY for symtab field to use
3224         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
3225         to pick the union field.
3226         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
3227         (dump_go_spec_init): Declare.
3228         * toplev.c (process_options): Handle flag_dump_go_spec.
3229         * debug.c: Include "tree.h".
3230         (do_nothing_debug_hooks): Set tree_type_symtab_field.
3231         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
3232         * dbxout.c (dbx_debug_hooks): Likewise.
3233         (xcoff_debug_hooks): Likewise.
3234         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3235         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
3236         SDB_DEBUGGING_INFO is not defined.
3237         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
3238         (Overall Options): Document -fdump-go-spec.
3239         * Makefile.in (OBJS-common): Add godump.o.
3240         (debug.o): Add dependency on $(TREE_H).
3241         (godump.o): New target.
3242         (GTFILES): Add $(srcdir)/godump.c.
3243
3244 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
3245
3246         PR debug/46095
3247         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
3248         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
3249         style < 0, add REG_FRAME_RELATED_EXPR.
3250
3251         PR debug/46387
3252         * rtl.h (vt_equate_reg_base_value): New prototype.
3253         * alias.c (vt_equate_reg_base_value): New function.
3254         * var-tracking.c (vt_init_cfa_base): Use it.
3255
3256 2010-11-15  Jan Hubicka  <jh@suse.cz>
3257             Diego Novillo  <dnovillo@google.com>
3258
3259         PR lto/41528
3260         * doc/lto.texi: Add.
3261         * doc/gccint.texi: Add reference to lto.texi.
3262         * doc/invoke.texi: Update user documentation for LTO.
3263         Move internal flags to lto.texi
3264
3265 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
3266
3267         * c-typeck.c (build_unary_op): Use
3268         objc_build_incr_expr_for_property_ref to build the pre/post
3269         increment/decrement of an Objective-C property ref, and skip the
3270         lvalue_or_else check in that case.
3271
3272 2010-11-15  Martin Jambor  <mjambor@suse.cz>
3273
3274         PR tree-optimization/46349
3275         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
3276         (contains_vce_or_bfcref_p): Likewise.
3277         (sra_modify_assign): Use them.
3278
3279 2010-11-15  Richard Guenther  <rguenther@suse.de>
3280
3281         PR tree-optimization/46467
3282         * tree-ssa-structalias.c (do_structure_copy): Properly treat
3283         variables without subvars.
3284
3285 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
3286
3287         * config/picochip/picochip.c (file header): Picochip name change.
3288         * config/picochip/picochip.md (file header): Likewise.
3289         * config/picochip/predicates.md (file header): Likewise.
3290         * config/picochip/dfa_space.md (file header): Likewise.
3291         * config/picochip/dfa_speed.md (file header): Likewise.
3292         * config/picochip/picochip.h(file header): Likewise.
3293         * config/picochip/constraints.md (file header): Likewise.
3294         * config/picochip/picochip-protos.h (file header): Likewise.
3295         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
3296         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
3297         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
3298         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
3299         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
3300         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
3301         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
3302         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
3303         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
3304         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
3305         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
3306         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
3307         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
3308         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
3309
3310 2010-11-15  Richard Guenther  <rguenther@suse.de>
3311
3312         PR bootstrap/46474
3313         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
3314
3315 2010-11-15  Nick Clifton  <nickc@redhat.com>
3316
3317         * config/stormy16/stormy16.c (direct_return): Do not generate a
3318         direct return for interrupt handlers.
3319
3320 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
3321
3322         * Makefile.in (tm.texi): Replace with rule for:
3323         ($(srcdir)/doc/tm.texi).
3324         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
3325         $(srcdir)/doc/tm.texi .
3326         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
3327         tm.texi .
3328
3329         PR target/46427
3330         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
3331
3332         PR bootstrap/45444
3333         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
3334         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
3335
3336         PR target/46432
3337         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3338
3339 2010-11-15  Richard Guenther  <rguenther@suse.de>
3340
3341         PR lto/44150
3342         * lto-opts.c (lto_write_options): Write -fexceptions even if
3343         not set by the user.
3344
3345 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
3346
3347         PR c/46462
3348         * c-decl.c (declspecs_add_type): Make variables with error types
3349         integers.
3350         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
3351         do not start a declaration before an Objective-C foreach.
3352         (c_parser_declaration_or_fndef): Improve recovery after unknown
3353         type name.
3354         (c_parser_for_statement): Hoist entrance of "foreach context"
3355         before ifs, add corresponding reset where it was missing.  Do
3356         not set objc_could_be_foreach_context for C.
3357
3358 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
3359
3360         PR tree-optimization/45722
3361         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
3362         this is a reference to a component.
3363         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
3364         (ipa_note_param_call): Adjust comment.
3365
3366 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
3367
3368         * config/mips/mips.c (machine_function): Remove
3369         initialized_mips16_gp_pseudo_p.
3370         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
3371         detect whether a pseudo has already been created.  Unconditionally
3372         create a new one if not.
3373         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
3374         expanding to rtl.  Create a new pseudo otherwise, if allowed.
3375
3376 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
3377
3378         PR target/43440
3379         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
3380         * tm.texi: Regenerated.
3381         * output.h (decode_reg_name_and_count): Declare.
3382         * varasm.c (decode_reg_name_and_count): New function.
3383         (decode_reg_name): Reimplement using decode_reg_name_and_count.
3384         * reginfo.c (fix_register): Use decode_reg_name_and_count and
3385         iterate over all regs used.
3386         * stmt.c (expand_asm_operands): Likewise.
3387         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
3388         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
3389         multiple machine registers.
3390
3391 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3392
3393         * stor-layout.c (place_union_field): Do not put location information
3394         on offset expressions.
3395         (place_field): Likewise.
3396         (finalize_record_size): Likewise on size expressions.
3397         (finalize_type_size): Likewise.
3398         (layout_type): Likewise.
3399