OSDN Git Service

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