OSDN Git Service

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