OSDN Git Service

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