OSDN Git Service

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