OSDN Git Service

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