OSDN Git Service

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