cgraphunit.c (process_function_and_variable_attributes): Fix cut'n'pasteo.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
2
3         * cgraphunit.c (process_function_and_variable_attributes): Fix
4         cut'n'pasteo.
5
6 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
7
8         * hwint.c:  New.  Extracted from toplev.c.
9         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
10         Move from toplev.h.
11         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
12         Move to hwint.c.
13         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
14         Move to hwint.h.
15         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
16         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
17         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
18         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
19         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
20         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
21         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
22         tree-vrp.c: Don't include toplev.h.
23         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
24         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
25         toplev.h in generated output.
26         * Makefile.in (OBJS-common): Add hwint.o.
27         Dependencies for above files changed to remove toplev.h.
28         (hwint.o): New.
29         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
30         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
31         toplev.h.
32         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
33         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
34
35 2010-11-30  Richard Guenther  <rguenther@suse.de>
36
37         PR tree-optimization/46717
38         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
39         call.  Manually create EH edges for the direct call and update
40         target PHI nodes.
41
42 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
43
44         * diagnostic-core.h: Include bversion.h.
45         * toplev.h: Don't include input.h or bversion.h.
46         (parse_optimize_options): Don't declare here.
47         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
48         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
49         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
50         config/host-darwin.c, config/i386/host-cygwin.c,
51         config/i386/host-mingw32.c, config/i386/msformat-c.c,
52         config/i386/netware.c, config/i386/nwld.c,
53         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
54         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
55         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
56         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
57         config/score/score3.c, config/score/score7.c,
58         config/sh/symbian-base.c, config/sh/symbian-c.c,
59         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
60         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
61         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
62         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
63         graphite-blocking.c, graphite-clast-to-gimple.c,
64         graphite-dependences.c, graphite-flattening.c,
65         graphite-interchange.c, graphite-poly.c,
66         graphite-scop-detection.c, graphite.c, haifa-sched.c,
67         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
68         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
69         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
70         lto-opts.c, lto-section-in.c, lto-section-out.c,
71         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
72         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
73         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
74         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
75         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
76         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
77         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
78         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
79         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
80         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
81         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
82         include toplev.h.
83         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
84         toplev.h.  Dependencies for above files and c-family files changed
85         to remove $(TOPLEV_H) or toplev.h.
86         (C_TREE_H): Don't include $(TOPLEV_H).
87         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
88         bversion.h.
89         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
90         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
91         config/t-darwin, config/t-sol2,
92         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
93         Dependencies for above files changed to remove $(TOPLEV_H) or
94         toplev.h.
95
96 2010-11-30  Richard Guenther  <rguenther@suse.de>
97
98         PR lto/44986
99         * gcc.c (main): Use the first input with a compiler as infile
100         for link spec processing.
101
102 2010-11-30  Richard Guenther  <rguenther@suse.de>
103
104         PR lto/45949
105         * cgraphunit.c (ipa_passes): Stop after errors from
106         small IPA passes.
107
108 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
109
110         * gcc-plugin.h: Include coretypes.h.
111         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
112
113 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
114
115         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
116         * ggc-none.c (ggc_internal_alloc_zone_stat)
117         (ggc_internal_cleared_alloc_zone_stat): New.
118
119 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
120
121         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
122         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
123         (rs6000_emit_prologue): Don't set PIC register if
124         TARGET_SINGLE_PIC_BASE.
125         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
126         * doc/invoke.texi (msingle-pic-base): Document.
127
128 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
129
130         PR driver/46712
131         * exec-tool.in (id): New.
132         Check and export LT_RCU_$id instead of LT_RCU.
133
134 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
135
136         PR tree-optimization/46675
137         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
138         in offset calculation.
139
140 2010-11-29  Jan Hubicka  <jh@suse.cz>
141
142         * collect2.c (main): Do not imply verbose output with
143         LTO and linker plugin.
144
145 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
146
147         * dwarf2out.c (print_die): Print the address of the current DIE or
148         of any DIE referenced by the current one.
149
150 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
151
152         PR debug/46101
153         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
154         function.
155         (scope_die_for, gen_type_die_for_member): Replace uses of
156         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
157
158 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
159
160         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
161         (darwin_asm_declare_object_name): Correct spelling.
162         (darwin_output_aligned_bss): Likewise.
163
164 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
165             Mike Stump  <mrs@gcc.gnu.org>
166
167         PR target/26427
168         PR target/33120
169         PR testsuite/35710
170         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
171         (ASM_OUTPUT_LOCAL): Likewise.
172         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
173         (darwin_output_aligned_bss): Likewise.
174         (darwin_asm_output_aligned_decl_local): Likewise.
175         (darwin_asm_output_aligned_decl_common): Likewise.
176         (darwin_use_anchors_for_symbol_p): Likewise.
177         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
178         (TARGET_ASM_OUTPUT_ANCHOR): Define.
179         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
180         (DARWIN_SECTION_ANCHORS): Set to 1.
181         * config/darwin.c (emit_aligned_common): New var.
182         (darwin_init_sections): Check that the Darwin private zero-size section
183         marker is in range.
184         (darwin_text_section): Check for zero-sized objects.
185         (darwin_mergeable_string_section): Likewise.
186         (darwin_mergeable_constant_section): Likewise.
187         (machopic_select_section): Adjust to check for zero-sized objects.
188         Assert that OBJC meta data are non-zero sized.
189         (darwin_asm_declare_object_name): New.
190         (darwin_asm_declare_constant_name): Adjust for zero-sized
191         object sections.
192         (BYTES_ZFILL): Define.
193         (darwin_emit_weak_or_comdat): New.
194         (darwin_emit_local_bss): New.
195         (darwin_emit_common): New.
196         (darwin_output_aligned_bss): New.
197         (darwin_asm_output_aligned_decl_common): New.
198         (darwin_asm_output_aligned_decl_local): New.
199         (darwin_file_end): Disable subsections_via_symbols when section
200         anchoring is active.
201         (darwin_asm_output_anchor): Re-enable.
202         (darwin_use_anchors_for_symbol_p): New.
203         (darwin_override_options): Check for versions that can emit
204         aligned common.  Update usage of flags to current.
205         * config/darwin-sections.def: Update comments and flags for
206         non-anchor sections.  zobj_const_section, zobj_data_section,
207         zobj_bss_section, zobj_const_data_section: New.
208         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
209         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
210         (L2_MAX_OFILE_ALIGNMENT): Define.
211         (ASM_OUTPUT_ALIGNED_BSS): Define.
212         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
213         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
214         (SECTION_NO_ANCHOR): Define.
215         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
216         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
217
218 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
219
220         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
221         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
222         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
223         Conditionally define.
224         (GET_ENVIRONMENT): Poison.
225         * configure.ac: Don't test for mincore.
226         * configure: Regenerate.
227         * config.in: Regenerate.
228         * collect2-aix.c: Don't include <sys/mman.h>.
229         * collect2.c: Don't include <signal.h>.
230         (SIGCHLD): Don't define.
231         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
232         * config/alpha/alpha.c: Include "splay-tree.h" instead of
233         <splay-tree.h>.
234         * config/arm/arm.c (arm_target_help): Use getenv instead of
235         GET_ENVIRONMENT.
236         * config/avr/driver-avr.c: Don't include <stdlib.h>.
237         * config/frv/frv.c: Don't include <ctype.h>.
238         * config/host-darwin.c: Don't include <sys/mman.h>.
239         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
240         (MAP_FAILED): Don't define.
241         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
242         * config/host-solaris.c: Don't include <sys/mman.h>.
243         * config/i386/cygming.h: Don't include <stdio.h>.
244         * config/i386/driver-i386.c: Don't include <stdlib.h>.
245         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
246         * config/iq2000/iq2000.c: Don't include <signal.h>.
247         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
248         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
249         * config/mep/mep-pragma.c: Don't include <stdio.h>.
250         * config/microblaze/microblaze.c: Don't include <signal.h>.
251         * config/mips/mips.c: Don't include <signal.h>.
252         * config/rs6000/host-darwin.c: Don't include <signal.h>.
253         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
254         * defaults.h (GET_ENVIRONMENT): Don't define.
255         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
256         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
257         (SIGCHLD, MAP_FAILED, kill): Don't define.
258         (process_command): Use getenv instead of GET_ENVIRONMENT.
259         * genhooks.c: Don't include <string.h>.
260         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
261         <sys/types.h>.
262         (MAP_FAILED): Don't define.
263         * ggc-page.c Don't include <sys/mman.h>.
264         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
265         * ggc-zone.c: Don't include <sys/mman.h>.
266         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
267         * graph.c: Include "config.h" instead of <config.h>.
268         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
269         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
270         (SIGCHLD, kill): Don't define.
271         * mips-tfile.c: Don't include <signal.h>.
272         * opts.c: Don't include <signal.h> or <sys/resource.h>.
273         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
274         * passes.c: Don't include <signal.h>, <sys/resource.h> or
275         <sys/times.h>.
276         * sparseset.h: Don't include <assert.h>.
277         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
278         * tlink.c: Don't include "libiberty.h".
279         * toplev.c: Don't include <signal.h> or <sys/times.h>.
280         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
281         * tree-switch-conversion.c: Don't include <signal.h>.
282         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
283
284 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
285
286         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
287         c_parser_objc_try_catch_finally_statement for consistency with the
288         C++ parser.  Parse @catch(...) and pass NULL_TREE to
289         objc_begin_catch_clause() in that case.  Improved error recovery.
290         Reorganized code to be almost identical to
291         cp_parser_objc_try_catch_finally_statement.
292
293 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
294
295         PR tree-optimization/46621
296         * gimple.h: Don't include tm.h or hard-reg-set.h .
297         * Makefile.in (GIMPLE_H): Remove $(TM_H).
298
299         PR bootstrap/44756
300         * cppbuiltin.c: Include target.h .
301         (define_builtin_macros_for_type_sizes):
302         Use targetm.float_words_big_endian.
303
304 2010-11-27  Jan Hubicka  <jh@suse.cz>
305
306         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
307         and output cold_text_section_label.
308         (dwarf2out_init): Don't do that there.
309         (dwarf2out_finish): Handle cold section end label only if cold
310         section was used.
311
312 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
313
314         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
315         VLA variables.
316
317 2010-11-27  Richard Guenther  <rguenther@suse.de>
318
319         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
320         (gimple_assign_ssa_name_copy_p): Likewise.
321         (gimple_assign_unary_nop_p): Use is_gimple_assign.
322         (is_gimple_cast): Remove.
323         (gimple_assign_single_p): Move ...
324         * gimple.h (gimple_assign_single_p): ... here.
325         (is_gimple_cast): Remove.
326         (gimple_assign_rhs_code): Simplify.
327         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
328         instead of is_gimple_cast.
329         * ipa-type-escape.c (look_for_casts): Likewise.
330
331 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
332
333         * doc/options.texi (Enum, EnumValue): Document new record types.
334         (Enum): Document new option flag.
335         * opt-functions.awk
336         * optc-gen.awk: Handle enumerated option arguments.
337         * opth-gen.awk: Handle enumerated option arguments.
338         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
339         enum_value_to_arg): New.
340         (decode_cmdline_option): Handle enumerated arguments.
341         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
342         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
343         * opts.c (print_filtered_help, print_specific_help): Take
344         lang_mask arguments.
345         (print_filtered_help): Handle printing values of enumerated
346         options.  Print possible arguments for enumerated options.
347         (print_specific_help): Update call to print_filtered_help.
348         (common_handle_option): Update calls to print_specific_help.  Use
349         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
350         handle OPT_ffp_contract_, OPT_fexcess_precision_,
351         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
352         OPT_fira_region_ here.
353         * opts.h (enum cl_var_type): Add CLVC_ENUM.
354         (struct cl_option): Add var_enum.
355         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
356         struct cl_enum, cl_enums, cl_enums_count): New.
357         (CL_ERR_ENUM_ARG): Define.
358         (CL_ERR_NEGATIVE): Update value.
359         (enum_value_to_arg): Declare.
360         * common.opt (flag_ira_algorithm, flag_ira_region,
361         flag_fp_contract_mode, flag_excess_precision_cmdline,
362         default_visibility, flag_tls_default): Remove Variable entries.
363         (help_enum_printed): New Variable.
364         (fdiagnostics-show-location=): Use Enum.  Add associated
365         SourceInclude, Enum and EnumValue entries.
366         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
367         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
368         associated Enum and EnumValue entries.
369
370 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
371
372         PR target/46623
373         * config/microblaze/microblaze.c (microblaze_block_move_straight):
374         Use XALLOCAVEC.
375         (microblaze_option_override): Don't use C++ style comments.
376         (save_restore_insns): Remove unused variable base_offset.
377         (microblaze_expand_prologue): Remove unused variable insn.
378         (microblaze_secondary_reload): Adjust type to match target.h .
379         (microblaze_elf_in_small_data_p): Move declarations to start of block.
380         (microblaze_expand_move): Likewise.
381         * config/microblaze/microblaze.h (LARGE_INT):
382         Avoid signed / unsigned comparisons.
383         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
384         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
385         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
386
387 2010-11-26  Michael Matz  <matz@suse.de>
388
389         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
390
391         * passes.c (init_optimization_passes): Remove superfluous
392         copy-prop pass.
393
394 2010-11-26  Richard Guenther  <rguenther@suse.de>
395
396         PR lto/46648
397         * gimple.c (gtc_visit): Do not return true for members of an
398         SCC still being processed but the current lattice value of
399         the member.  Treat SCC members comparison state as lattice,
400         starting at equal, eventually dropping to unequal.
401         (gimple_types_compatible_p_1): Likewise.
402
403 2010-11-26  Richard Guenther  <rguenther@suse.de>
404
405         PR middle-end/46559
406         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
407         for location list processing.
408
409 2010-11-26  Richard Guenther  <rguenther@suse.de>
410
411         PR lto/46560
412         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
413         flags manually.
414
415 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
416
417         * config/s390/s390.c (print_operand_address): Replace assert with
418         error message.
419         (print_operand): Replace assertions, gcc_unreachable and
420         fatal_insn with error messages.
421
422 2010-11-26  Richard Guenther  <rguenther@suse.de>
423
424         PR tree-optimization/46665
425         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
426
427 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
428
429         * config/arm/arm.c (arm_option_override): enable loop array
430         prefetching at -O3 for suitable targets, and configure params.
431         * config/arm/arm-protos.h (struct tune_params): Add fields for
432         configuring loop array prefetching.
433
434 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
435
436         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
437
438 2010-11-26  Richard Guenther  <rguenther@suse.de>
439
440         PR tree-optimization/46664
441         * tree-affine.c (aff_combination_to_tree): Add rest last.
442
443 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
444
445         PR target/33637
446         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
447         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
448         * configure: Regenerated.
449         * exec-tool.in: Not quoting command, may have extra arguments.
450
451 2010-11-26  Richard Guenther  <rguenther@suse.de>
452
453         PR tree-optimization/46528
454         PR debug/46338
455         * profile.c (branch_prob): Do not split blocks based on locations
456         from debug statements.
457
458 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
459
460         PR middle-end/46647
461         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
462         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
463
464         PR bootstrap/45700
465         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
466         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
467         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
468         build6_loc): Define.
469         * fold-const.c (protected_set_expr_location_unshare): New inline.
470         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
471         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
472         pedantic_omit_one_operand_loc, omit_two_operands_loc,
473         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
474         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
475         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
476         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
477         instead of buildN followed by SET_EXPR_LOCATION or
478         protected_set_expr_location.
479         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
480         Use buildN_stat_loc instead of buildN_stat followed by
481         SET_EXPR_LOCATION.
482
483 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
484
485         * Makefile.in (s-tm-texi): Remove spurous tab.
486
487 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
488
489         PR debug/46258
490         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
491         debug stmts.
492
493 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
494
495         * toplev.c (finalize): Add no_backend parameter.  Don't finish
496         passes when preprocessing only.  Adjust...
497         (do_compile): ... caller.
498
499 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
500
501         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
502         flag_unsafe_math_optimizations.
503         (negsf2): Likewise.
504         Move fnegabs related patterns together.  Only use fmpynfadd instruction
505         to negate a multiply if !flag_signed_zeros is true.
506
507 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
508
509         * gengtype-state.c (read_state_structures): Initialize "previous".
510
511 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
512             Jeremie Salvucci  <jeremie.salvucci@free.fr>
513
514         * gengtype-state.c: Add new file.
515
516         * gengtype.c (type count): New variable.
517         (new_structure, find_param_structure, create_pointer)
518         (create_array): Use it to set state_number in types.
519         (dump_everything): Improve comment.
520         (main): Call read_state and write_state. Print type_count.
521
522         * gengtype.h (type_lineloc): New function.
523         (read_state, write_state): New declarations.
524
525         * Makefile.in (GENGTYPE_FLAGS): New variable.
526         (s-gtype): Run gengtype twice and generate gtype.state.
527         (build/gengtype-state.o): New rule.
528         (build/gengtype$(build_exeext)): Link gengtype-state.o.
529         (mostlyclean): Update comment.  Remove gtype.state.
530
531 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
532
533         PR middle-end/46637
534         * combine.c (try_combine): When substing i2dest for i2src, pass
535         1 as last argument even if
536         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
537
538 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
539
540         PR middle-end/46647
541         * builtins.c (target_char_cast): Check INTEGER_CST instead of
542         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
543
544 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
545
546         * target.def (supports_split_stack, except_unwind_info): Take
547         gcc_options parameters.
548         * targhooks.c (default_except_unwind_info,
549         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
550         gcc_options parameters.
551         * targhooks.h (default_except_unwind_info,
552         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
553         prototypes.
554         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
555         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
556         Document that hooks must not be modified.
557         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
558         * doc/tm.texi: Regenerate.
559         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
560         &global_options to targetm.except_unwind_info.
561         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
562         dwarf2out_begin_prologue, dwarf2out_frame_init,
563         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
564         &global_options to targetm.except_unwind_info.
565         * except.c (init_eh, finish_eh_generation,
566         gate_convert_to_eh_region_ranges,
567         output_one_function_exception_table): Pass &global_options to
568         targetm.except_unwind_info.
569         * expr.c (build_personality_function): Pass &global_options to
570         targetm.except_unwind_info.
571         * function.c (expand_function_end): Pass &global_options to
572         targetm.except_unwind_info.
573         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
574         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
575         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
576         and targetm.supports_split_stack.  Remove assertions about opts
577         and opts_set.
578         (common_handle_option): Remove assertions about opts, opts_set and dc.
579         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
580         &global_options to targetm.except_unwind_info.
581         * tree.c (build_common_builtin_nodes: Pass &global_options to
582         targetm.except_unwind_info.
583         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
584         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
585         thumb1_expand_prologue, thumb1_output_function_prologue,
586         arm_unwind_emit, arm_output_fn_unwind): Update calls to
587         arm_except_unwind_info.
588         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
589         parameter.
590         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
591         parameter.
592         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
593         ia64_reorg, ia64_asm_unwind_emit): Update calls to
594         ia64_except_unwind_info.
595         * config/pa/pa.c (pa_option_override): Pass &global_options to
596         targetm.except_unwind_info.
597         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
598         Remove prototype.
599
600 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
601
602         * cgraphunit.c (process_function_and_variable_attributes):
603         Mark dllexport-ed function/variables as needed.
604         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
605         as externally visible.
606
607 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
608
609         PR rtl-optimization/46585
610         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
611         (vinsn_init): Skip computation of dependencies for local NOPs.
612         (vinsn_delete): Don't try to free regsets for local NOPs.
613         (setup_nop_and_exit_insns): Change definition of nop_pattern.
614
615 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
616
617         PR rtl-optimization/46602
618         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
619         (tidy_control_flow): Here.
620
621 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
622             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
623
624         PR bootstrap/45888
625         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
626         Fix target.def pathname in timestamp comparison.
627
628 2010-11-24  Richard Henderson  <rth@redhat.com>
629
630         * config/ia64/predicates.md (pmpyshr_operand): New.
631         * config/ia64/ia64.c (ia64_expand_unpack): New.
632         (ia64_expand_widen_mul_v4hi): New.
633         (ia64_expand_widen_sum): Update for pattern renames.
634         (ia64_expand_dot_prod_v8qi): Likewise.
635         * config/ia64/ia64-protos.h: Update.
636         * config/ia64/vect.md (vecwider): New mode attribute.
637         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
638         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
639         (pmpyshr2, pmpyshr2_u): New.
640         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
641         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
642         (mulv2si3): New.
643         (vec_pack_ssat_v4hi): Rename from pack2_sss.
644         (vec_pack_usat_v4hi): Rename from *pack2_uss.
645         (vec_pack_ssat_v2si): Rename from pack4_sss.
646         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
647         vec_select operation.
648         (vec_interleave_highv8qi): Similarly.
649         (mux1_alt): Rename from *mux1_alt.
650         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
651         (vec_interleave_lowv4hi): Rename from unpack2_l.
652         (vec_interleave_highv4hi): Rename from unpack2_h.
653         (mix2_r): Rename from *mix2_r.
654         (mix2_l): Similarly.
655         (vec_extract_evenodd_helper): New.
656         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
657         (vec_interleave_lowv2si): Rename from *unpack4_l.
658         (vec_interleave_highv2si): Rename from *unpack4_h.
659         (vec_extract_evenv2si, vec_extract_oddv2si): New.
660         (vec_interleave_lowv2sf): Rename from fmix_r.
661         (vec_interleave_highv2sf): Rename from *fmix_l.
662         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
663         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
664         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
665         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
666
667 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
668
669         * targhooks.c (default_except_unwind_info): Remove
670         MUST_USE_SJLJ_EXCEPTIONS case.
671         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
672         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
673         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
674         * doc/tm.texi: Regenerate.
675         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
676
677 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
678
679         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
680         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
681         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
682         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
683         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
684
685 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
686
687         PR target/46519
688         * config/i386/i386.c (ix86_expand_call): Don't check
689         TREE_THIS_VOLATILE.
690
691 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
692
693         PR target/46519
694         * config/i386/i386.c (upper_128bits_state): New.
695         (block_info_def): Remove upper_128bits_set and done.  Add state,
696         referenced, count, processed and rescanned.
697         (check_avx256_stores): Updated.
698         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
699         Call note_stores only if needed.  Set referenced and count.
700         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
701         (rescan_move_or_delete_vzeroupper): New.
702         (move_or_delete_vzeroupper):  Process and rescan all all basic
703         blocks instead of predecessor blocks of all exit points.
704         (ix86_option_override_internal): Enable vzeroupper optimization
705         only for -fexpensive-optimizations and not optimizing for size.
706         (use_avx256_p): Removed.
707         (init_cumulative_args): Don't set use_avx256_p.
708         (ix86_function_arg): Likewise.
709         (ix86_expand_move): Likewise.
710         (ix86_expand_vector_move_misalign): Likewise.
711         (ix86_local_alignment): Likewise.
712         (ix86_minimum_alignment): Likewise.
713         (ix86_expand_epilogue): Don't check use_avx256_p when generating
714         vzeroupper.
715         (ix86_expand_call): Likewise.
716
717         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
718         and use_avx256_p.  Add rescan_vzeroupper_p.
719
720 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
721
722         * toplev.c: Include <signal.h>.
723
724 2010-11-24  Richard Guenther  <rguenther@suse.de>
725
726         PR lto/43218
727         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
728         conflicting function signatures as non-inlineable.
729
730 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
731
732         PR rtl-optimization/46614
733         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
734          (deps_analyze_insn): Mark JUMP_INSNs in
735         last_pending_memory_flush that weren't added through
736         flush_pending_lists with NON_FLUSH_JUMP_KIND.
737         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
738         on INSN_LIST instead of JUMP_P check on its operand.
739         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
740
741 2010-11-24  Richard Guenther  <rguenther@suse.de>
742
743         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
744
745 2010-11-24  Richard Guenther  <rguenther@suse.de>
746
747         PR lto/46606
748         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
749         a FIELD_DECL that is type correct issue a warning and fixup
750         with a VIEW_CONVERT_EXPR.
751
752 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
753
754         * doc/invoke.texi (Options for Debugging Your Program or GCC):
755         Explain static numbering of dump files.
756
757 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
758
759         * common.opt (user_vect_verbosity_level): New Variable entry.
760         (ftree-vectorizer-verbose=): Mark as UInteger.
761         * flag-types.h (enum vect_verbosity_levels): Move from enum
762         verbosity_levels in tree-vectorizer.h.
763         * opts.c: Don't include tree.h.
764         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
765         gcc_options parameter; take integer option argument.
766         (common_handle_option): Update call to vect_set_verbosity_level.
767         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
768         (vect_set_verbosity_level): Move to opts.c.
769         (vect_verbosity_level, vect_print_dump_info): Update for change of
770         enum name.
771         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
772         (vect_print_dump_info): Update for change of enum name.
773         * tree.h (vect_set_verbosity_level): Remove.
774         * Makefile.in (opts.o): Update dependencies.
775
776 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
777
778         PR middle-end/46629
779         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
780         instead of insn with any_condjump_p.
781
782 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
783
784         * config/mips/loongson.md: Change the description comment of the file
785         and update the copyright years.
786         (define_insn "<u>div<mode>3): Add loongson3a support.
787         (define_insn "<u>mod<mode>3"): Likewise.
788         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
789         mul<mode>3_mul3_loongson.
790         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
791         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
792
793 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
794
795         * common.opt (initial_max_fld_align, flag_debug_asm,
796         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
797         flag_print_asm_name, graph_dump_format, help_printed,
798         help_columns, flag_opts_finished): New Variable entries.
799         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
800         frandom-seed=): Mark deferred.
801         (fsched-verbose=): Use UInteger and Var.
802         * flags.h (set_struct_debug_option, flag_print_asm_name,
803         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
804         graph_dump_format): Don't declare here.
805         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
806         * opts-global.c: Include dbgcnt.h and debug.h.
807         (decode_options): Pass location to finish_options.
808         (handle_common_deferred_options): Check flag_dump_all_passed.
809         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
810         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
811         OPT_fstack_limit.
812         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
813         (set_struct_debug_option): Add location_t parameter.  Update
814         recursive call.  Use error_at.
815         (default_options_optimization): Use error_at.
816         (finish_options): Add location_t parameter.  Use
817         opts->x_flag_opts_finished instead of first_time_p.  Use
818         opts->x_optimize instead of optimize.  Use error_at.  Pass
819         location to inform.
820         (print_filtered_help): Use opts->x_help_printed to track what
821         options have been printed.
822         (print_specific_help): Use opts->x_help_columns to track number of
823         columns.
824         (common_handle_option): Pass locations and gcc_options pointers to
825         more functions.  Use warning_at instead of fnotice and warning.
826         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
827         OPT_fdebug_prefix_map_.  Use error_at.  Set
828         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
829         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
830         OPT_fsched_verbose_.
831         (handle_param): Add location_r parameter.  Use error_at.
832         (set_debug_level): Add location_r parameter.  Use error_at and
833         warning_at.
834         (setup_core_dumping): Add diagnostic_context parameter.
835         (decode_d_option): Add gcc_options, location_t and
836         diagnostic_context parameters and use them instead of global
837         state.  Use warning_at.
838         (enable_warning_as_error): Use error_at.
839         * opts.h (finish_options): Update prototype.
840         (set_struct_debug_option): Declare here.
841         * rtl.h (fix_sched_param): Remove.
842         * stor-layout.c (initial_max_fld_align): Remove.
843         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
844         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
845         (process_options): Set maximum_field_alignment.
846         * tree.h (initial_max_fld_align) Don't declare here.
847         * Makefile.in (opts.o, opts-global.o): Update dependencies.
848
849 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
850
851         * flag-types.h (struct visibility_flags): Don't declare here.
852         * flags.h (strip_off_ending, fast_math_flags_set_p,
853         fast_math_flags_struct_set_p): Declare here.
854         (visibility_options): Don't declare here.
855         * opts-common.c (option_enabled, get_option_state): Move from
856         opts.c.
857         * opts-global.c: Include diagnostic.h instead of
858         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
859         and toplev.h.
860         (const_char_p, ignored_options, in_fnames, num_in_fnames,
861         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
862         print_ignored_options, unknown_option_callback,
863         post_handling_callback, lang_handle_option, add_input_filename,
864         read_cmdline_options, initial_lang_mask, init_options_once,
865         decode_cmdline_options_to_array_default_mask,
866         set_default_handlers, decode_options): Move from opts.c.
867         (print_ignored_options): Use warning_at instead of saving and
868         restoring input_location.
869         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
870         instead of expr.h.  Don't include langhooks.h, except.h or
871         lto-streamer.h.  Add more comments on includes.
872         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
873         toplev.c.
874         (visibility_options): Move to c-family/c-common.c.
875         (const_char_p, ignored_options, in_fnames, num_in_fnames,
876         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
877         print_ignored_options, unknown_option_callback,
878         post_handling_callback, lang_handle_option, add_input_filename,
879         read_cmdline_options, initial_lang_mask, init_options_once,
880         decode_cmdline_options_to_array_default_mask,
881         set_default_handlers, decode_options): Move to opts-global.c.
882         (target_handle_option, default_options_optimization,
883         finish_options, common_handle_option): Remove static.
884         (option_enabled, get_option_state): Move to opts-common.c.
885         * opts.h (common_handle_option, target_handle_option,
886         finish_options, default_options_optimization): Declare.
887         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
888         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
889         opts.c.
890         * toplev.h (strip_off_ending, decode_d_option,
891         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
892         declare here.
893         * Makefile.in (opts.o, opts-global.o): Update dependencies.
894
895 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
896
897         PR driver/42690
898         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
899         options, replace by call of pass-through-libs spec function to process
900         link_gcc_c_sequence spec.
901         (lto_libgcc_spec): Delete variable.
902         (static_specs[]): Remove related entry.
903         (static_spec_functions[]): Add new entry for pass-through-libs.
904         (main): Don't generate deleted lto_libgcc_spec.
905         (pass_through_libs_spec_func): New function to implement the new
906         pass-through-libs spec function.
907         * doc/invoke.texi (pass-through-libs): Document new spec function.
908
909 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
910
911         * doc/options.texi (Warning, Optimization): Document.
912
913 2010-11-23  Jan Hubicka  <jh@suse.cz>
914
915         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
916         (tree_decl_with_vis): Add implicit_section_name_p.
917         * targhooks.h (default_function_section): Declare.
918         * target.def (function_section): New hook.
919         * defaults.h (HOT_TEXT_SECTION_NAME,
920         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
921         * predict.c (choose_function_section): Remove.
922         (estimate_bb_frequencies): Do not use choose_function_section.
923         * coretypes.h (enum node_frequency): Move here from cgraph.h
924         * cgraph.h (enum node_frequency): Remove.
925         * varasm.c (initialize_cold_section_name, unlikely_text_section,
926         unlikely_text_section_p): Remove.
927         (named_subsection_entry): New structure.
928         (get_text_section): New function.
929         (default_function_section): New function.
930         (function_section_1): Break out from ...; handle profile info.
931         (function_section): ... here.
932         (unlikely_text_section): Remove.
933         (unlikely_text_section_p): Use function_section_1.
934         (assemble_start_function): Do not initialize cold section.
935         (default_section_type_flags): Do not special case cold subsection.
936         (switch_to_section): Likewise.
937         * output.h (get_text_section): Define.
938         * config/i386/winnt.c: Do not special case cold section.
939         * config/darwin-protos.h (darwin_function_section): Declare.
940         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
941         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
942         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
943         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
944         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
945         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
946         * config/darwin.c (machopic_select_section): Use
947         darwin_function_section.
948         (darwin_function_section): New function.
949         * config/darwin.h (HOT_TEXT_SECTION_NAME,
950         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
951         (TARGET_ASM_FUNCTION_SECTION): Define.
952         * system.h (HOT_TEXT_SECTION_NAME,
953         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
954
955 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
956
957         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
958         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
959
960 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
961
962         PR middle-end/46499
963         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
964         following unconditional jumps.
965
966 2010-11-23  Richard Guenther  <rguenther@suse.de>
967
968         * doc/md.texi (386 constraints): Clarify A constraint documentation.
969
970 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
971             Jeremie Salvucci  <jeremie.salvucci@free.fr>
972
973         * gengtype.c (enum typekind, struct options)
974         (struct nested_ptr_data, struct pair, NUM_PARAM)
975         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
976         Move to gengtype.h.
977         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
978         Remove static, add zero state_number.
979         (typedefs, structures, param_structs, variables): Remove static.
980         (create_option): Remove.
981         (create_string_option, create_type_option, create_nested_option):
982         New functions.
983         (create_nested_ptr_option): Use create_nested_option.
984         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
985         new create*option functions.
986         (process_gc_options): Adjust for discriminated option.
987         (output_mangled_typename): Handle TYPE_NONE.
988         (walk_type): Test option kinds.
989         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
990         (write_func_for_structure, write_type, write_local, write_root)
991         (write_roots, note_def_vec, dump_options): Adjust for
992         discriminated option.
993
994         * gengtype.h (typedefs, structures, param_structs, variables
995         enum typekind): Move from gengtype.c
996         (enum option_kind): New discriminating enumeration.
997         (struct options): Becomes discriminated.
998         (struct nested_ptr_data): Nove from gengtype.c
999         (create_string_option, create_type_option, create_nested_option)
1000         (create_nested_ptr_option): New functions
1001         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
1002         (UNION_OR_STRUCT_P): Move from gengtype.c
1003
1004         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
1005         discriminated options.
1006
1007 2010-11-23  Richard Guenther  <rguenther@suse.de>
1008
1009         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
1010         twice.  Avoid re-allocating the ops vector all the time.
1011
1012 2010-11-23  Richard Guenther  <rguenther@suse.de>
1013
1014         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
1015         is_gimple_min_invariant, group tree code checks to allow
1016         combining them.
1017         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
1018         of is_gimple_reg.
1019
1020 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1021
1022         * config.gcc (sparc*-*-*): Reorder.
1023
1024 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1025
1026         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
1027         Remove ENABLE_CHECKING around DBGPRINTF.
1028
1029 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
1030
1031         * common.opt (exit_after_options, write_symbols, debug_info_level,
1032         use_gnu_debug_info_extensions): New Variable entries.
1033         (fprofile-dir=): Use Var.
1034         * flag-types.h (enum debug_info_level): Rename to enum
1035         debug_info_levels.
1036         * flags.h (write_symbols, debug_info_level,
1037         use_gnu_debug_info_extensions): Remove declarations.
1038         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
1039         (set_struct_debug_option): Make static variables const.
1040         (use_gnu_debug_info_extensions): Remove.
1041         (set_debug_level, print_filtered_help, print_specific_help,
1042         fast_math_flags_set_p): Take gcc_options parameters and use them
1043         in place of global variables.
1044         (print_filtered_help): Make new_help non-static.
1045         (print_specific_help): Update call to print_filtered_help.
1046         (common_handle_option): Update calls to print_specific_help.  Use
1047         gcc_options structure for more settings.  Make --help table
1048         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
1049         set_debug_level.
1050         * toplev.c (profile_data_prefix): Remove.
1051         * toplev.h (profile_data_prefix, exit_after_options): Remove
1052         declarations.
1053         (fast_math_flags_set_p): Update prototype.
1054         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1055         Update call to fast_math_flags_set_p.
1056
1057 2010-11-22  Richard Henderson  <rth@redhat.com>
1058
1059         PR target/46434
1060         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
1061         return the address register extracted.
1062         (crx_decompose_address): Update the extracted address register.
1063
1064 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
1065
1066         PR driver/43335
1067         * gcc.c (main): Don't crash when lto-wrapper program is not found.
1068
1069 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
1070
1071         PR target/46608
1072         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
1073         * config/picochip/picochip-protos.h: Don't include "target.h" .
1074         (picochip_secondary_reload): Don't declare.
1075
1076         PR target/46613
1077         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
1078         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
1079         static.
1080
1081 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1082
1083         PR bootstrap/46609
1084         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
1085         (source_dot_c_frul): Likewise.
1086
1087 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
1088
1089         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
1090
1091 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
1092
1093         PR bootstrap/44970
1094         * Makefile.in (fwprop.o) Add sparseset.h.
1095         * fwprop.c: Include sparseset.h
1096         (struct find_occurrence_data, find_occurrence_callback,
1097         find_occurrence): Remove.
1098         (active_defs, active_defs_check, register_active_defs,
1099         update_df_init, update_uses): New.
1100         (update_df): Rewrite.
1101         (try_fwprop_subst, forward_propagate_asm): Add calls to
1102         update_df_init and update_df.
1103         (fwprop_init): Allocate active_defs and active_defs_check.
1104         (fwprop_done): Free them.
1105         (fwprop, fwprop_addr): Adjust comments.
1106         * df.h (df_uses_create): Declare.
1107         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
1108         (df_ref_create): Return result of df_ref_create_structure directly.
1109         (df_ref_create_structure): Call df_install_ref_incremental when
1110         no collection_rec is passed.
1111         (df_ref_record): Do not create multiword hard reg info when no
1112         collection_rec is passed.
1113         (df_uses_create): New.
1114
1115 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1116
1117         PR middle-end/43057
1118         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
1119         setting location.
1120
1121 2010-11-22  Richard Guenther  <rguenther@suse.de>
1122
1123         * gimple-fold.c (maybe_fold_reference): When canonicalizing
1124         MEM_REFs, preserve volatileness.
1125         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
1126         addresses.
1127
1128 2010-11-22  Richard Guenther  <rguenther@suse.de>
1129
1130         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
1131
1132 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
1133
1134         PR rtl-optimization/45652
1135         * alias.c (get_reg_base_value): New.
1136         * rtl.h (get_reg_base_value): Add prototype.
1137         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
1138         non-null REG_BASE_VALUE for renaming.
1139
1140 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1141             Basile Starynkevitch  <basile@starynkevitch.net>
1142
1143         * gengtype.c: Include xregex.h and obstack.h
1144         Added comments about role of get_output_file_with_visibility and
1145         our regexpr machinery.
1146         (frul_actionrout_t, struct file_rule_st): New.
1147         (hader_dot_h_frul, source_dot_c_frul): New functions.
1148         (NULL_REGEX,  NULL_FRULACT): New.
1149         (files_rules): New.
1150         (matching_file_name_substitute): New function.
1151         (get_output_file_with_visibility): Updated comments and rewritten
1152         to use the new files_rules machinery.
1153
1154         * Makefile.in (XREGEX_H): Added variable.
1155         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
1156
1157 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1158
1159         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
1160
1161 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1162
1163         * target.def (conditional_register_usage): Define.
1164         * reginfo.c (init_reg_sets_1): Call
1165         targetm.conditional_register_usage.
1166         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
1167         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
1168         for making it a hook.
1169         * doc/tm.texi: Regenerate.
1170         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1171         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
1172         New function.
1173         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1174         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1175         * config/arc/arc.c (arc_conditional_register_usage): ...here.
1176         New function.
1177         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1178         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1179         * config/arm/arm.c (arm_conditional_register_usage): ...here.
1180         New function.
1181         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1182         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
1183         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
1184         * config/bfin/bfin.c (conditional_register_usage): Move code into...
1185         (bfin_conditional_register_usage): ...here.  New function.
1186         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1187         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
1188         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
1189         * config/cris/cris.c (cris_conditional_register_usage): Make static.
1190         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1191         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
1192         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
1193         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
1194         * config/frv/frv.c (frv_conditional_register_usage): Make static.
1195         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1196         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1197         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
1198         New function.
1199         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1200         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
1201         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
1202         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
1203         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1204         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
1205         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
1206         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
1207         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1208         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1209         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
1210         New function.
1211         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1212         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
1213         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
1214         Delete.
1215         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
1216         static.
1217         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1218         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
1219         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
1220         * config/mep/mep.c (mep_conditional_register_usage): Make static.
1221         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1222         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
1223         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
1224         * config/mips/mips.c (mips_conditional_register_usage): Make static.
1225         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1226         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
1227         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
1228         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
1229         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1230         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1231         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
1232         ...here.  New function.
1233         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1234         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1235         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
1236         * config/pa/pa.c (pa_conditional_register_usage): ...here.
1237         New function.
1238         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1239         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1240         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
1241         New function.
1242         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1243         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
1244         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
1245         Delete.
1246         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
1247         static.
1248         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1249         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
1250         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
1251         * config/rx/rx.c (rx_conditional_register_usage): Make static.
1252         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1253         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
1254         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
1255         * config/s390/s390.c (s390_conditional_register_usage): Make static.
1256         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1257         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1258         * config/score/score.c (score_conditional_register_usage): ...here.
1259         New function.
1260         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1261         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1262         * config/sh/sh.c (sh_conditional_register_usage): ...here.
1263         New function.
1264         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1265         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1266         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
1267         New function.
1268         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1269         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
1270         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
1271         * config/spu/spu.c (spu_conditional_register_usage): Make static.
1272         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1273         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1274         * config/v850/v850.c (v850_conditional_register_usage): ...here.
1275         New function.
1276         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1277
1278 2010-11-21  Jan Hubicka  <jh@suse.cz>
1279             Dominique d'Humieres <dominiq@lps.ens.ft>
1280
1281         PR target/46510
1282         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
1283         finalize external decls.
1284
1285 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
1286
1287         * system.h (strerror): Poison.
1288
1289 2010-11-21  Richard Henderson  <rth@redhat.com>
1290
1291         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
1292         for infq/huge_valq.
1293
1294 2010-11-21  Richard Henderson  <rth@redhat.com>
1295
1296         PR rtl-optimization/46571
1297         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
1298         (compute_hash_table_work): Use NONDEBUG_INSN_P.
1299
1300 2010-11-21  Paul Koning  <ni1d@arrl.net>
1301
1302         * config/mips/pdp11.md (negsi2): Fix wrong code.
1303
1304 2010-11-21  Paul Koning  <ni1d@arrl.net>
1305
1306         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
1307         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1308
1309 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1310
1311         * config/mips/mips.c (machine_function): Rename load_label_length to
1312         load_label_num_insns.
1313         (mips_load_label_length): Rename to...
1314         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
1315         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
1316
1317 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1318
1319         PR target/46533
1320         * config/alpha/predicates.md (direct_call_operand): Return false
1321         for !TARGET_SMALL_TEXT targets.
1322
1323 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
1324
1325         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
1326         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
1327         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
1328         * doc/tm.texi: Regenerate.
1329         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
1330         HANDLE_PRAGMA_WEAK): Poison.
1331         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
1332         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1333         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
1334         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
1335         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1336         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1337         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1338         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
1339         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1340         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
1341         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1342         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
1343         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1344         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1345         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
1346         (HANDLE_PRAGMA_WEAK): Don't undefine.
1347         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1348         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
1349         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1350         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
1351         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
1352         (HANDLE_PRAGMA_WEAK): Don't undefine.
1353         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1354         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
1355         (HANDLE_PRAGMA_PACK): Don't undefine.
1356         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
1357         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1358         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1359         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1360         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
1361         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1362         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1363         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1364         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
1365         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1366         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
1367         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1368         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1369         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
1370         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1371         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
1372         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1373
1374 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1375
1376         PR target/31100
1377         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
1378         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
1379         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
1380
1381 2010-11-20  Jan Hubicka  <jh@suse.cz>
1382
1383         * cgraph.c (ld_plugin_symbol_resolution_names): New.
1384         (dump_cgraph_node): Dump resolution.
1385         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
1386         (cgraph_comdat_can_be_unshared_p): Dclare.
1387         * lto-streamer-out.c (produce_symtab): Use
1388         cgraph_comdat_can_be_unshared_p.
1389         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
1390         (cgraph_comdat_can_be_unshared_p): New function based on logic
1391         in cgraph_externally_visible_p.
1392         (cgraph_externally_visible_p): Use it.
1393         (varpool_externally_visible_p): Virtual tables can be unshared.
1394         * varpool.c (dump_varpool_node): Dump resolution.
1395
1396 2010-11-20  Jan Hubicka  <jh@suse.cz>
1397
1398         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
1399
1400 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1401
1402         PR other/46202
1403         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
1404         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
1405         shell quoting.
1406         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
1407         (install-strip): New target.
1408         (STRIPPROG): New variable, exported if STRIP is set.
1409         * doc/install.texi (Final install): Minor markup and code style
1410         fixes.  Document install-strip target.
1411
1412 2010-11-20  Paul Koning  <ni1d@arrl.net>
1413
1414         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
1415         pdp11_regno_reg_class): New functions.
1416         * config/pdp11/pdp11.md (define_constants): Add register numbers.
1417         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
1418         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
1419         functions.
1420         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
1421         frame pointer and argument pointer pseudo-registers.
1422         (ARG_POINTER_REGNUM): Define.
1423         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
1424         argument pointer.
1425         (FIRST_PARM_OFFSET): Update for argument pointer.
1426         (INITIAL_FRAME_POINTER_OFFSET): Delete.
1427         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
1428         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
1429         frame pointer and argument pointer.
1430
1431 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
1432
1433         PR debug/46561
1434         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
1435         when looking for immediate uses.
1436
1437         PR tree-optimization/45830
1438         * stmt.c (expand_switch_using_bit_tests_p): New function.
1439         (expand_case): Use it.
1440         * tree.h (expand_switch_using_bit_tests_p): New prototype.
1441         * tree-switch-conversion.c (struct switch_conv_info): Add
1442         bit_test_uniq, bit_test_count and bit_test_bb fields.
1443         (check_range): Fix a comment.
1444         (check_process_case): Compute bit_test_uniq and bit_test_count.
1445         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
1446         allocation.
1447         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
1448         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
1449         (array_value_type): New function.
1450         (build_one_array): Use it, if it returned different type,
1451         fold_convert all constructor fields and convert back to the
1452         wider type in the generated code.
1453         (process_switch): Initialize bit_test_uniq, bit_test_count and
1454         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
1455         returned true.
1456
1457 2010-11-19  Michael Matz  <matz@suse.de>
1458
1459         PR tree-optimization/46077
1460         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
1461
1462 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
1463
1464         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1465         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
1466         function.
1467         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1468
1469 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
1470
1471         * mode-switching.c (optimize_mode_switching): Use
1472         FOR_BB_INSNS instead of open-coded loop.
1473         * cfgrtl.c (redirect_branch_edge): Ditto.
1474
1475 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
1476
1477         PR target/46436
1478         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
1479         to accomodate 32 bit HOST_WIDE_INT.
1480         (m68hc11_emit_logical): Remove unused variable insn.
1481         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
1482         this_insn_uses_iy before use.
1483
1484         PR target/46434
1485         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
1486
1487 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1488
1489         PR c/46547
1490         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
1491         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
1492
1493 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1494
1495         * doc/extend.texi (Function attributes): Document PowerPC target
1496         attributes that are supported.
1497         (Pragmas): Document that PowerPC now supports target pragmas.
1498
1499         * doc/options.texi (TargetVariable): Document TargetVariable,
1500         HeaderInclude, and SourceInclude.
1501
1502         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
1503         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
1504         -ffp-contract=off.
1505
1506         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
1507         SourceInclude directives.  Fix a cut+paste error with target save
1508         enum variables.  Sort enums in the structures after ints and
1509         before shorts.
1510         * opth-gen.awk: Ditto.
1511
1512         * configure.ac: Add support for HeaderInclude and SourceInclude option
1513         directives to add the appropriate files to the dependency lists.
1514         * configure: Regenerate.
1515         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
1516         (OPTIONS_C_EXTRA): New variable for SourceInclude.
1517         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
1518         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
1519         (gcc-options.o): Ditto.
1520         * opt-include.awk: New awk script to handle HeaderInclude and
1521         TargetInclude.
1522
1523         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
1524         gets saved in the target options.
1525         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
1526         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
1527         (-mprototype): Ditto.
1528         (-mbit-word): ditto.
1529         (-mregnames): Ditto.
1530         (-msecure-plt): Ditto.
1531         (-mbss-plt): Ditto.
1532         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
1533         (-mpowerpc-gfxopt): Ditto.
1534         (-mmfcrf): Ditto.
1535         (-mpopcntb): Ditto.
1536         (-mfprnd): Ditto.
1537         (-mcmpb): Ditto.
1538         (-mmmfpgpr): Ditto.
1539         (-maltivec): Ditto.
1540         (-mhard-dfp): Ditto.
1541         (-mmulhw): Ditto.
1542         (-mdlmzb): Ditto.
1543         (-mmultiple): Ditto.
1544         (-mstring): Ditto.
1545         (-mpopcntd): Ditto.
1546         (-mfriz): Ditto.
1547         (-mvsx): Ditto.
1548         (-mno-update): Ditto.
1549         (-mavoid-indexed-addresses): Ditto.
1550         (-mtls-markers): Ditto.
1551         (-msched-epilog): Ditto.
1552         (-msched-prolog): Ditto.
1553         (-maix-struct-return): Ditto.
1554         (-msvr4-struct-return): Ditto.
1555         (-mxl-compat): Ditto.
1556         (-mrecip-precision): Ditto.
1557         (-mfp-in-toc): Ditto.
1558         (-msum-in-toc): Ditto.
1559         (-mvrsave): Ditto.
1560         (-mblock-move-inline-limit=): Ditto.
1561         (-misel): Ditto.
1562         (-mpaired): Ditto.
1563         (-mlongcall): Ditto.
1564         (-mgen-cell-microcode): Ditto.
1565         (-mwarn-cell-microcode): Ditto.
1566         (-mwarn-altivec-long): Ditto.
1567         (-mprioritize-restricted-insns=): Ditto.
1568         (-msingle-float): Ditto.
1569         (-mdouble-float): Ditto.
1570         (-msimple-fpu): Ditto.
1571         (-mxilinx-fpu): Ditto.
1572         * config/rs6000/aix64.opt (-mpe): Ditto.
1573
1574         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
1575         (rs6000_cpu): Move variable to be a target variable.  Rename
1576         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
1577         -mdebug=<xxx> variables into a single int.
1578         (rs6000_always_hint): Ditto.
1579         (rs6000_sched_groups): Ditto.
1580         (rs6000_align_branch_targets): Ditto.
1581         (rs6000_sched_costly_dep): Ditto.
1582         (rs6000_sched_insert_nops): Ditto.
1583         (rs6000_long_double_type_size): Ditto.
1584         (rs6000_ieeequad): Ditto.
1585         (rs6000_altivec_abi): Ditto.
1586         (rs6000_spe): Ditto.
1587         (rs6000_spe_abi): Ditto.
1588         (rs6000_float_gprs): Ditto.
1589         (rs6000_darwin64_abi): Ditto.
1590         (can_override_loop_align): Ditto.
1591         (rs6000_sdata): Ditto.
1592         (rs6000_tls_size): Ditto.
1593         (rs6000_current_abi): Ditto.
1594         (rs6000_traceback): Ditto.
1595         (rs6000_alignment_flags): Ditto.
1596         (rs6000_current_cmodel): Ditto.
1597         (rs6000_recip_control): Ditto.
1598         (rs6000_cpu_index): Ditto.
1599         (rs6000_tune_index): Ditto.
1600         (rs6000_debug): Ditto.
1601         (rs6000_target_flags_explict): Ditto.
1602
1603         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
1604         declaration.
1605
1606         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
1607         cmodel.  Change all uses.
1608
1609         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
1610         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
1611         Rename cmodel to rs6000_current_cmodel.
1612         (rs6000_sched_groups): Ditto.
1613         (rs6000_align_branch_targets): Ditto.
1614         (rs6000_sched_costly_dep): Ditto.
1615         (rs6000_sched_insert_nops): Ditto.
1616         (rs6000_long_double_type_size): Ditto.
1617         (rs6000_ieeequad): Ditto.
1618         (rs6000_altivec_abi): Ditto.
1619         (rs6000_spe): Ditto.
1620         (rs6000_spe_abi): Ditto.
1621         (rs6000_float_gprs): Ditto.
1622         (rs6000_darwin64_abi): Ditto.
1623         (can_override_loop_align): Ditto.
1624         (rs6000_sdata): Ditto.
1625         (rs6000_tls_size): Ditto.
1626         (rs6000_current_abi): Ditto.
1627         (rs6000_traceback): Ditto.
1628         (rs6000_alignment_flags): Ditto.
1629         (rs6000_current_cmodel): Ditto.
1630         (rs6000_recip_control): Ditto.
1631         (rs6000_cpu_index): Ditto.
1632         (rs6000_tune_index): Ditto.
1633         (rs6000_debug): Ditto.
1634         (rs6000_target_flags_explict): Ditto.
1635         (rs6000_sched_insert_nops_str): Make static.
1636         (rs6000_sched_costly_dep_str): Ditto.
1637         (rs6000_recip_name): Ditto.
1638         (rs6000_abi_name): Ditto.
1639         (rs6000_sdata_name): Ditto.
1640         (enum rs6000_traceback_name): Move to rs6000-opts.h.
1641         (rs6000_parse_tls_size_option): Delete.
1642         (rs6000_valid_attribute_p): New function for target attributes and
1643         pragmas.
1644         (rs6000_function_specific_save): Ditto.
1645         (rs6000_function_specific_restore): Ditto.
1646         (rs6000_function_specific_print): Ditto.
1647         (rs6000_can_inline_p): Ditto.
1648         (rs6000_set_current_function): Ditto.
1649         (rs6000_inner_target_options): Ditto.
1650         (rs6000_debug_target_options): Ditto.
1651         (rs6000_pragma_target_parse): Ditto.
1652         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
1653         attributes and pragmas.
1654         (TARGET_OPTION_SAVE): Ditto.
1655         (TARGET_OPTION_RESTORE): Ditto.
1656         (TARGET_OPTION_PRINT): Ditto.
1657         (TARGET_CAN_INLINE_P): Ditto.
1658         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1659         (POWER_MASKS): Move to file level scope from the
1660         rs6000_option_override_internal function.
1661         (POWERPC_MASKS): Ditto.
1662         (ISA_*_MASKS): Ditto.
1663         (struct rs6000_ptt): Ditto.
1664         (processor_target_table): Ditto.
1665         (rs6000_cpu_name_lookup): Map cpu name to an index in
1666         processor_target_table.
1667         (rs6000_debug_reg_global): Print more information on processor
1668         options for -mdebug=reg.
1669         (rs6000_init_hard_regno_mode_ok): Add support for target
1670         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
1671         Allow -mdebug=val1,val2.  Rename cmodel variable.
1672         (rs6000_option_override_internal): Ditto.
1673         (rs6000_option_override): Ditto.
1674         (rs6000_handle_option): Ditto.
1675         (rs6000_conditional_register_usage): Add debug trace message.
1676         (struct rs6000_opt_mask): New for target attribute/pragma support.
1677         (rs6000_opt_masks): Ditto.
1678         (struct rs6000_opt_var): Ditto.
1679         (rs6000_opt_vars): Ditto.
1680         (rs6000_previous_function): Ditto.
1681
1682         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
1683         wasn't already included.
1684         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
1685         (enum processor_type): Ditto.
1686         (rs6000_cpu): Ditto.
1687         (enum fpu_type_t): Ditto.
1688         (fpu_type): Ditto.
1689         (enum rs6000_dependence_cost): Ditto.
1690         (enum rs6000_nop_insertion): Ditto.
1691         (enum group_termination): Ditto.
1692         (rs6000_long_double_type_size): Ditto.
1693         (rs6000_ieeequad): Ditto.
1694         (rs6000_altivec_abi): Ditto.
1695         (rs6000_spe_abi): Ditto.
1696         (rs6000_spe): Ditto.
1697         (rs6000_float_gprs): Ditto.
1698         (rs6000_alignment_flags): Ditto.
1699         (rs6000_sched_insert_nops): Ditto.
1700         (enum rs6000_vector): Ditto.
1701         (enum rs6000_abi): Ditto.
1702         (rs6000_current_opt): Ditto.
1703         (rs6000_debug_*): Delete.
1704         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
1705         (TARGET_DEBUG*): Ditto.
1706
1707         * config/rs6000/rs6000-opts.h: New header file to define the enums
1708         that are used in target variables that are now defined in rs6000.opt.
1709
1710         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
1711         rs6000-opts.h.
1712         (rs6000_sdata): Ditto.
1713         (rs6000_abi_name): Delete.
1714         (rs6000_sdata_name): Ditto.
1715         (rs6000_tls_size_string): Ditto.
1716
1717 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1718
1719         * common.opt (debug_struct_ordinary, debug_struct_generic): New
1720         Variable entries.
1721         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
1722         should_emit_struct_debug): Move from opts.c.
1723         * flag-types.h (enum debug_struct_file): Move from opts.c.
1724         * flags.h (should_emit_struct_debug): Remove.
1725         (base_of_path): Declare.
1726         (set_struct_debug_option): Add gcc_options parameter.
1727         * optc-gen.awk, opth-gen.awk: Handle array variables.
1728         * opts.c (enum debug_struct_file, debug_struct_ordinary,
1729         debug_struct_generic): Remove.
1730         (set_struct_debug_option): Add gcc_options parameter.
1731         (base_of_path): Remove static.
1732         (main_input_basename, main_input_baselength, matches_main_base,
1733         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
1734         Remove.
1735         * toplev.c (main_input_basename, main_input_baselength): Define
1736         here.
1737         * toplev.h (main_input_basename, main_input_baselength): Declare
1738         here.
1739
1740 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1741
1742         * common.opt (flag_instrument_functions_exclude_functions,
1743         flag_instrument_functions_exclude_files): New Variable definitions.
1744         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
1745         * gimplify.c (char_p): Declare type and vectors.
1746         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
1747         * opts.c (flag_instrument_functions_exclude_functions,
1748         flag_instrument_functions_exclude_files): Remove.
1749         (add_comma_separated_to_vector): Take void **.
1750         (flag_instrument_functions_exclude_p): Move to gimplify.c.
1751         (common_handle_option): Use options structure for
1752         -finstrument-functions-exclude- options.
1753
1754 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1755
1756         * doc/options.texi (Var): Document effects of Defer.
1757         (Defer): Document.
1758         * opt-functions.awk (var_type, var_set): Handle deferred options.
1759         * opts-common.c (set_option): Handle CLVC_DEFER.
1760         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
1761         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
1762         fstack-limit-symbol=): Mark as deferred.
1763         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
1764         plugin.h.
1765         (print_filtered_help): Don't report state of CLVC_DEFER options.
1766         (common_handle_option): Move code for OPT_fcall_used_,
1767         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
1768         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
1769         OPT_fstack_limit_symbol_ to opts-global.c.
1770         (option_enabled, get_option_state): Handle CLVC_DEFER.
1771         * opts.h: Include vec.h.
1772         (enum cl_var_type): Add CLVC_DEFER.
1773         (cl_deferred_option): Define type and vectors.
1774         (handle_common_deferred_options): Declare.
1775         * opts-global.c: New.
1776         * toplev.c (toplev_main): Call handle_common_deferred_options
1777         * Makefile.in (OPTS_H): Include $(VEC_H).
1778         (OBJS-common): Include opts-global.o.
1779         (opts.o): Update dependencies.
1780         (opts-global.o): Add dependencies.
1781
1782 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
1783
1784         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
1785         to objc_declare_protocols.
1786
1787 2010-11-19  Richard Guenther  <rguenther@suse.de>
1788
1789         PR lto/45789
1790         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
1791         IDENTIFIERs do not stream TREE_TYPE.
1792         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
1793
1794 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
1795
1796         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
1797
1798 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
1799
1800         PR target/45870
1801         * dwarf2out.c (const_ok_for_output_1): Don't complain about
1802         non-delegitimized TLS UNSPECs.
1803
1804 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
1805             Ian Lance Taylor  <iant@google.com>
1806
1807         * config/darwin-c.c (darwin_additional_format_types): Export.
1808
1809 2010-11-18  Paul Koning  <ni1d@arrl.net>
1810
1811         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
1812         pointer.
1813
1814 2010-11-18  Paul Koning  <ni1d@arrl.net>
1815
1816         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
1817         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
1818         * config/pdp11/pdp11.opt (-mabshi): Delete.
1819
1820 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
1821
1822         * resource.h (struct resources): Fix typo in the comment.
1823
1824 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
1825
1826         PR target/46546
1827         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
1828
1829 2010-11-18  Richard Henderson  <rth@redhat.com>
1830
1831         PR middle-end/46515
1832         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
1833         maybe_copy_epilogue_insn; handle prologue insns as well.
1834         * rtl.h, cfglayout.c: Update for rename.
1835         * recog.c (peep2_attempt): Copy prologue/epilogue data for
1836         RTX_FRAME_RELATED_P insns.
1837
1838 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
1839
1840         PR middle-end/46534
1841         * builtins.c (fold_builtin_printf): Don't copy and modify string
1842         before build_string_literal, instead modify what
1843         build_string_literal returned.
1844
1845 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
1846
1847         PR c/33193
1848         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
1849         REALPART_EXPR and IMAGPART_EXPR.
1850
1851 2010-11-18  Richard Guenther  <rguenther@suse.de>
1852
1853         PR tree-optimization/46172
1854         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
1855         function.
1856         (slpeel_tree_peel_loop_to_edge): Call it.
1857
1858 2010-11-18  Jeff Law  <law@redhat.com>
1859
1860         PR middle-end-optimization/46297
1861         * postreload.c (reload_combine_note_store): Deal with embedded
1862         side effects in MEM expressions.
1863
1864 2010-11-18  Richard Guenther  <rguenther@suse.de>
1865
1866         PR lto/45089
1867         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
1868         when checking is not enabled.
1869
1870 2010-11-18  Richard Guenther  <rguenther@suse.de>
1871
1872         PR lto/46525
1873         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
1874         type leaders.
1875         (gimple_register_canonical_type): Also cache the canoncial type
1876         for non type leaders.
1877
1878 2010-11-18  Richard Guenther  <rguenther@suse.de>
1879
1880         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
1881
1882 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
1883
1884         PR middle-end/46518
1885         * sel-sched-ir.c (init_expr): Use the correct type for
1886         target_available.
1887         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
1888
1889 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
1890
1891         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
1892         as well as -mrelocatable at the same time.
1893
1894 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
1895
1896         PR target/46422
1897         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
1898         Call the clz builtin.
1899
1900 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
1901             Steve Ellcey  <sje@cup.hp.com>
1902
1903         PR middle-end/31490
1904         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
1905         if section attribute used.
1906
1907 2010-11-17  Jan Hubicka  <jh@suse.cz>
1908
1909         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
1910         expand errno setting variant when optimizing for size.
1911
1912 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
1913
1914         * postreload.c (reload_combine): Call control_flow_insn_p only once.
1915         Reverse backward loop.  Fix formatting issues.
1916
1917 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
1918
1919         * c-parser.c (c_token_is_qualifier,
1920         c_parser_next_token_is_qualifier): New.
1921         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
1922         Improve error message on specs->tagdef_seen_p.
1923         (c_parser_struct_or_union_specifier): Improve error recovery.
1924         (c_parser_declspecs): Move exit condition on C_ID_ID early.
1925         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
1926         using c_parser_next_token_is_qualifier; extend it to cover
1927         a ctsk_tagdef typespec and !typespec_ok in general.
1928
1929 2010-11-17  Richard Guenther  <rguenther@suse.de>
1930
1931         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
1932         (gimple_mod_pow2_value_transform): Likewise.
1933         (gimple_mod_subtract_transform): Likewise.
1934
1935 2010-11-17  Richard Guenther  <rguenther@suse.de>
1936
1937         PR lto/46504
1938         * gimple.c (gimple_register_canonical_type): Make sure to only
1939         make type leaders canonical types.
1940
1941 2010-11-17  Michael Matz  <matz@suse.de>
1942
1943         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
1944         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
1945         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
1946         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
1947         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
1948         (pass_build_ssa): ... but here.
1949         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
1950         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
1951         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
1952         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
1953         * predict.c (rebuild_frequencies): Ditto.
1954         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
1955         * emit-rtl.c (verify_rtl_sharing): Ditto.
1956         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
1957         * tree-ssa-live.c (remove_unused_locals): Ditto.
1958         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
1959         * tree-ssa.c (pass_early_warn_uninitialized,
1960         execute_update_addresses_taken, pass_update_address_taken): Ditto.
1961         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
1962         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
1963         * passes.c (pass_postreload, execute_todo): Ditto.
1964         * tree-ssanames.c (pass_release_ssa_names): Ditto.
1965
1966 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
1967
1968         * doc/invoke.texi (-dy): Remove.
1969         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
1970         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
1971         * langhooks.c (lhd_do_nothing_i): Remove.
1972         * langhooks.h (lang_hooks.parse_file): Take no arguments.
1973         * toplev.c (set_yydebug): Remove.
1974         (compile_file): Update call to lang_hooks.parse_file.
1975         (decode_d_option): Don't handle -dy.
1976
1977 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
1978
1979         PR rtl-optimization/46440
1980         * combine.c (update_cfg_for_uncondjump): When changing
1981         an indirect jump into unconditional jump, remove BARRIERs
1982         from bb's footer.
1983
1984 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
1985
1986         * opts.c (target_handle_option): Do not assert that loc ==
1987         UNKNOWN_LOCATION.
1988
1989 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
1990             Richard Guenther  <rguenther@suse.de>
1991
1992         PR middle-end/45838
1993         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1994         call_may_clobber_ref_p_1): Return true for __sync_* and some
1995         OpenMP builtins that act as threading barriers.
1996
1997 2010-11-17  Richard Guenther  <rguenther@suse.de>
1998
1999         PR tree-optimization/46498
2000         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
2001
2002 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2003
2004         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
2005         (xtensa_function_arg_boundary): ...this.
2006         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
2007         thinko in declaration.
2008         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
2009         number of parameters to picochip_function_arg_boundary.
2010         (picochip_arg_advance): Likewise.
2011
2012 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2013
2014         PR target/46512
2015         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
2016         under check for type.
2017
2018 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2019
2020         * ifcvt.c (dead_or_predicable): Fix typo.
2021
2022 2010-11-16  Richard Henderson  <rth@redhat.com>
2023
2024         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
2025         * config/s390/s390.opt (mfused-madd): Remove.
2026         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
2027         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2028         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
2029         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
2030
2031 2010-11-16  Richard Henderson  <rth@redhat.com>
2032
2033         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
2034         * config/rs6000/rs6000.opt (mfused-madd): Remove.
2035         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
2036         (*altivec_vmaddfp_1): Remove.
2037         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
2038         (altivec_mulv4sf3): Expand to FMA directly.
2039         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
2040         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
2041         * config/rs6000/paired.md (paired_madds0): Use FMA.
2042         (paired_madds1): Likewise.
2043         (*paired_madd): Rename from paired_madd; use FMA.
2044         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
2045         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
2046         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
2047         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
2048         (rs6000_emit_madd): Use fma_optab.
2049         (rs6000_emit_msub): Use fms_optab.
2050         (rs6000_emit_nmsub): Expand the FMA pattern directly.
2051         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
2052         (*fmasf4_fpr): Rename from fmasf4_fpr.
2053         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
2054         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
2055         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
2056         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
2057         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
2058         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
2059         (*fmadf4_fpr): Rename from fmadf4_fpr.
2060         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
2061         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
2062         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
2063         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
2064         (fmasf4, fmadf4): Macroize into...
2065         (fma<FMA_F>4): ... here.
2066         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
2067         (nfma<FMA_F>4, nfms<FMA_F>4): New.
2068         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
2069         TARGET_FUSED_MADD.
2070         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
2071         (*vsx_fmadd<mode>4_1): Remove.
2072         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
2073         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
2074         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
2075         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
2076         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
2077         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
2078         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
2079
2080 2010-11-16  Richard Henderson  <rth@redhat.com>
2081
2082         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
2083         (fmasf4, fnmadf4, fnmasf4): Likewise.
2084         (unnamed plus+mult insns and splitters): Delete.
2085
2086 2010-11-16  Richard Henderson  <rth@redhat.com>
2087
2088         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
2089         (fnma<VSF>4): Rename from fnms_<VSF>.
2090         (fms<VSF>4): Rename from fms_<VSF>.
2091         (fma<VDF>4): Rename from fma_<VDF>.
2092         (fms<VDF>4): Rename from fms_<VDF>.
2093         (nfma<VDF>4): Rename from fnma_<VDF>.
2094         (nfms<VDF>4): Rename from fnms_<VDF>.
2095         (fnma<VDF>4, fnms<VDF>4): New expanders.
2096         (floatunsdisf2): Update for the renames.
2097         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
2098         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
2099
2100 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2101
2102         PR rtl-optimization/46490
2103         * combine.c (expand_compound_operation): Fix thinko.
2104
2105 2010-11-16  Richard Henderson  <rth@redhat.com>
2106
2107         PR target/46470
2108         * recog.c (peep2_attempt): Convert frame-related info when possible.
2109         (peep2_fill_buffer): Allow frame-related insns into the buffer.
2110         (peephole2_optimize): Allow peep2_attempt to fail.
2111
2112 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2113
2114         PR rtl-optimization/46315
2115         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
2116         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
2117         extracted from...
2118         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
2119         (remove_reg_equal_equiv_notes_for_defs): ...this.
2120         (delete_unmarked_insns): Adjust to above renaming.
2121         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
2122         referring to registers set in the insns being moved, if any.
2123
2124         * df-core.c (df_ref_dump): New function extracted from...
2125         (df_refs_chain_dump): ...here.  Call it.
2126         (df_regs_chain_dump): Likewise.
2127         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
2128         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
2129
2130 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
2131
2132         PR rtl-optimization/46395
2133         * postreload.c (reload_combine): Invalidate register use
2134         information on all control flow insns.
2135
2136         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
2137         LABEL_REF in UNSPEC operand.
2138
2139 2010-11-16  Jan Hubicka  <jh@suse.cz>
2140
2141         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
2142         when !flag_toplevel_reorder do not remove unless variable is
2143         COMDAT or ARTIFICIAL.
2144         * ipa.c (varpool_can_remove_if_no_refs): ... here.
2145         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
2146         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
2147         * varpool.c (decide_is_variable_needed): Do not handle visibility
2148         issues.
2149         (varpool_finalize_decl): Likewise.
2150         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
2151         update outdated comment on DECL_RTL_SET_P check.
2152
2153 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2154
2155         * config/sol2.h (NM_FLAGS): Define.
2156         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
2157         * doc/tm.texi: Update.
2158
2159 2010-11-16  Nick Clifton  <nickc@redhat.com>
2160
2161         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
2162         (msubsf4): Rename to fmssf4, and use fma.
2163         (nmaddsf4): Rename to fnmasf4 and use fma.
2164         (nmsubsf4): Rename to fnmssf4 and use fma.
2165
2166 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
2167
2168         PR target/44762
2169         * config/score/score3.c (score3_return_in_memory): Constify arguments.
2170         (score3_in_small_data_p, score3_function_value): Likewise.
2171         (score3_trampoline_init): Use LCT_NORMAL.
2172         (score3_print_operand): Initialize code as UNKNOWN.
2173         * config/score/predicates.md (score_load_multiple_operation):
2174         Remove unused variable.
2175         (score_store_multiple_operation): Likewise.
2176         * config/score/score7.c (score7_return_in_memory): Constify arguments.
2177         (score7_in_small_data_p, score7_function_value): Likewise.
2178         (score7_trampoline_init): Use LCT_NORMAL.
2179         (score7_print_operand): Initialize code as UNKNOWN.
2180         * config/score/score3.h (score3_return_in_memory): Update prototype.
2181         (score3_in_small_data_p, score3_function_value): Likewise.
2182         * config/score/score-protos.h (score_function_value): Likewise.
2183         * config/score/score7.h (score7_return_in_memory): Update prototype.
2184         (score7_in_small_data_p, score7_function_value): Likewise.
2185         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
2186         (score_return_in_memory, score_pass_by_reference): Constify arguments.
2187         (score_output_mi_thunk, score_function_prologue): Don't return a value.
2188         (score_function_epilogue, score_in_small_data_p): Likewise.
2189         (score_option_override, score_asm_trampoline_template): Likewise.
2190         (score_trampoline_init, score_print_operand): Likewise.
2191         (score_print_operand_address, score_prologue): Likewise.
2192         (score_epilogue, score_call, score_call_value): Likewise.
2193         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
2194         (score_function_arg_advance): Likewise. Make static.
2195         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
2196         (score_function_arg, score_legitimate_address_p): Make static.
2197         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
2198         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
2199         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
2200         Allow (W) == HOST_BITS_PER_WIDE_INT.
2201
2202         PR java/46386
2203         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
2204         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
2205
2206 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2207
2208         * config/arc/arc.c: Delete pasto.
2209         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
2210
2211 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
2212
2213         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
2214         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2215         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
2216         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2217         (mn10300_preferred_reload_class,
2218         mn10300_preferred_output_reload_class): New functions.
2219
2220 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2221
2222         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
2223         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
2224         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
2225         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
2226
2227 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2228
2229         * builtins.c (std_gimplify_va_arg_expr): Use
2230         targetm.calls.function_arg_boundary.
2231         * function.c (assign_parms, locate_and_pad_parm): Likewise.
2232         * calls.c (struct arg_data): Update comment.
2233         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
2234         * target.def (function_arg_boundary): Define.
2235         * targhooks.h (default_function_arg_boundary): Declare.
2236         * targhooks.c (default_function_arg_boundary): Define.
2237         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
2238         TARGET_FUNCTION_ARG_BOUNDARY.
2239         (FUNCTION_ARG_BOUNDARY): Delete.
2240         (TARGET_FUNCTION_ARG_BOUNDARY): New.
2241         * doc/tm.texi: Regenerate.
2242         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
2243         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
2244         * config/arc/arc.c (arc_function_arg_boundary): Define.
2245         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2246         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
2247         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
2248         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
2249         (arm_function_arg_boundary): Define.
2250         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2251         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
2252         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
2253         * config/frv/frv.c (frv_function_arg_boundary): Make static.
2254         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2255         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
2256         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
2257         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
2258         (ix86_compat_function_arg_boundary): Take and return unsigned int.
2259         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2260         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
2261         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
2262         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
2263         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2264         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
2265         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
2266         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2267         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
2268         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
2269         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
2270         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2271         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
2272         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
2273         * config/mips/mips.c (mips_function_arg_boundary): Make static.
2274         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2275         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
2276         * config/pa/pa.c (pa_function_arg_boundary): Define.
2277         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2278         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
2279         * config/picochip/picochip-protos.h
2280         (picochip_get_function_arg_boundary): Delete.
2281         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
2282         Rename to...
2283         (picochip_function_arg_boundary): ...this.  Make static.
2284         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
2285         (picochip_arg_advance): Adjust.
2286         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2287         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
2288         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
2289         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
2290         (rs6000_function_arg_boundary): ...this.  Make static.
2291         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
2292         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2293         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
2294         * config/rx/rx.c (rx_function_arg_boundary): Define.
2295         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2296         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
2297         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
2298         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2299         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
2300         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
2301         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
2302         (xtensa_function_arg_boundary): ...this.  Make static.
2303         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2304
2305 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2306
2307         * expr.c (alignment_for_piecewise_move): New function.
2308         (widest_int_mode_for_size): New function.
2309         (move_by_pieces, move_by_pieces_ninsns): Call them.
2310         (can_store_by_pieces, store_by_pieces_1): Likewise.
2311
2312 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2313
2314         * gcc.c (char_p): Define.  Define a VEC of it.
2315         (n_linker_options, n_assembler_options, n_preprocessor_options):
2316         Delete.
2317         (linker_options, assembler_options, preprocessor_options): Convert
2318         to a VEC.
2319         (add_preprocessor_option): Adjust.
2320         (add_assembler_option): Adjust.
2321         (add_linker_option): Adjust.
2322         (do_specs_vec): New function.
2323         (do_spec_1): Call it.  Adjust for new types.
2324
2325 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2326
2327         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
2328         (sreal.o, statistics.o, stringpool.o): Likewise.
2329
2330 2010-11-16  Richard Guenther  <rguenther@suse.de>
2331
2332         PR tree-optimization/44545
2333         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
2334         statements are not reassociatable.
2335         (reassociate_bb): Likewise.
2336
2337 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2338
2339         * bitmap.c: Delete unnecessary includes.
2340         * ebitmap.c: Likewise.
2341         * et-forest.c: Likewise.
2342         * sreal.c: Likewise.
2343         * statistics.c: Likewise.
2344         * stringpool.c: Likewise.
2345         * double-int.c: Add comment for inclusion of tm.h.
2346
2347 2010-11-16  Richard Guenther  <rguenther@suse.de>
2348
2349         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
2350         (visit_nary_op): ... this.
2351         (visit_binary_op): Remove.
2352         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
2353
2354 2010-11-16  Richard Guenther  <rguenther@suse.de>
2355
2356         PR middle-end/45172
2357         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
2358
2359 2010-11-16  Nick Clifton  <nickc@redhat.com>
2360
2361         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
2362         record is packed.
2363
2364 2010-11-15  Richard Henderson  <rth@redhat.com>
2365
2366         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
2367         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
2368         DOT_PROD_EXPR.
2369
2370 2010-11-15  Richard Henderson  <rth@redhat.com>
2371
2372         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
2373         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
2374         fma rtx_code.
2375
2376 2010-11-15  Richard Henderson  <rth@redhat.com>
2377
2378         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
2379         and *mulsubsf4 respectively.  Use fma rtx_code.
2380
2381 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
2382
2383         * gcc.c: Include "vec.h".
2384         (argbuf): Make into a VEC.
2385         (argbuf_length, argbuf_index): Remove.
2386         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
2387         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
2388         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
2389         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
2390         (gcc.o): Depend on $(VEC_H).
2391
2392 2010-11-15  Richard Henderson  <rth@redhat.com>
2393
2394         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
2395         via FMA if unsafe math.
2396         (insert_var_expansion_initialization): Handle FMA.
2397         (combine_var_copies_in_loop_exit): Likewise.
2398
2399 2010-11-15  Richard Henderson  <rth@redhat.com>
2400
2401         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
2402         * config/ia64/ia64.opt: Remove mfused-madd.
2403         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
2404         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
2405         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
2406         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
2407         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
2408         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
2409         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
2410         (fmav2sf4): Rename from fpma; use FMA code.
2411         (fmsv2sf4): Rename from fpms; use FMA code.
2412         (fnmav2sf4): Rename from *fpnma; use FMA code.
2413         * config/ia64/ia64.md (MODE_SDF): New iterator.
2414         (suffix): New mode attribute.
2415         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
2416         (fmssf4): Rename from *fmssf4.
2417         (fnmasf4): Rename from *nfmasf4.
2418         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
2419         (*nmadddf4, *nmadddf4_truncsf): Remove.
2420         (fmsdf4): Rename from *fmsdf4.
2421         (fnmadf4): Rename from *nfmadf4.
2422         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
2423         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
2424         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
2425         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
2426         (fmsxf4): Rename from *fmsxf4.
2427         (fnmaxf4): Rename from *nfmaxf4.
2428         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
2429         (*fnmaxf_trunc_<MODE_SDF>): New.
2430
2431 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
2432
2433         PR tree-optimization/46461
2434         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
2435         a gimple val.
2436
2437 2010-11-15  Ian Lance Taylor  <iant@google.com>
2438
2439         * godump.c: New file.
2440         * common.opt (fdump-go-spec=): New option.
2441         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
2442         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
2443         (TYPE_SYMTAB_IS_DIE): Define.
2444         (struct tree_type): Change GTY for symtab field to use
2445         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
2446         to pick the union field.
2447         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
2448         (dump_go_spec_init): Declare.
2449         * toplev.c (process_options): Handle flag_dump_go_spec.
2450         * debug.c: Include "tree.h".
2451         (do_nothing_debug_hooks): Set tree_type_symtab_field.
2452         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2453         * dbxout.c (dbx_debug_hooks): Likewise.
2454         (xcoff_debug_hooks): Likewise.
2455         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2456         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
2457         SDB_DEBUGGING_INFO is not defined.
2458         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
2459         (Overall Options): Document -fdump-go-spec.
2460         * Makefile.in (OBJS-common): Add godump.o.
2461         (debug.o): Add dependency on $(TREE_H).
2462         (godump.o): New target.
2463         (GTFILES): Add $(srcdir)/godump.c.
2464
2465 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
2466
2467         PR debug/46095
2468         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
2469         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
2470         style < 0, add REG_FRAME_RELATED_EXPR.
2471
2472         PR debug/46387
2473         * rtl.h (vt_equate_reg_base_value): New prototype.
2474         * alias.c (vt_equate_reg_base_value): New function.
2475         * var-tracking.c (vt_init_cfa_base): Use it.
2476
2477 2010-11-15  Jan Hubicka  <jh@suse.cz>
2478             Diego Novillo  <dnovillo@google.com>
2479
2480         PR lto/41528
2481         * doc/lto.texi: Add.
2482         * doc/gccint.texi: Add reference to lto.texi.
2483         * doc/invoke.texi: Update user documentation for LTO.
2484         Move internal flags to lto.texi
2485
2486 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
2487
2488         * c-typeck.c (build_unary_op): Use
2489         objc_build_incr_expr_for_property_ref to build the pre/post
2490         increment/decrement of an Objective-C property ref, and skip the
2491         lvalue_or_else check in that case.
2492
2493 2010-11-15  Martin Jambor  <mjambor@suse.cz>
2494
2495         PR tree-optimization/46349
2496         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
2497         (contains_vce_or_bfcref_p): Likewise.
2498         (sra_modify_assign): Use them.
2499
2500 2010-11-15  Richard Guenther  <rguenther@suse.de>
2501
2502         PR tree-optimization/46467
2503         * tree-ssa-structalias.c (do_structure_copy): Properly treat
2504         variables without subvars.
2505
2506 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
2507
2508         * config/picochip/picochip.c (file header): Picochip name change.
2509         * config/picochip/picochip.md (file header): Likewise.
2510         * config/picochip/predicates.md (file header): Likewise.
2511         * config/picochip/dfa_space.md (file header): Likewise.
2512         * config/picochip/dfa_speed.md (file header): Likewise.
2513         * config/picochip/picochip.h(file header): Likewise.
2514         * config/picochip/constraints.md (file header): Likewise.
2515         * config/picochip/picochip-protos.h (file header): Likewise.
2516         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
2517         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
2518         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
2519         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
2520         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
2521         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
2522         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
2523         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
2524         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
2525         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
2526         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
2527         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
2528         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
2529         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
2530
2531 2010-11-15  Richard Guenther  <rguenther@suse.de>
2532
2533         PR bootstrap/46474
2534         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
2535
2536 2010-11-15  Nick Clifton  <nickc@redhat.com>
2537
2538         * config/stormy16/stormy16.c (direct_return): Do not generate a
2539         direct return for interrupt handlers.
2540
2541 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
2542
2543         * Makefile.in (tm.texi): Replace with rule for:
2544         ($(srcdir)/doc/tm.texi).
2545         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
2546         $(srcdir)/doc/tm.texi .
2547         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
2548         tm.texi .
2549
2550         PR target/46427
2551         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
2552
2553         PR bootstrap/45444
2554         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
2555         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
2556
2557         PR target/46432
2558         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
2559
2560 2010-11-15  Richard Guenther  <rguenther@suse.de>
2561
2562         PR lto/44150
2563         * lto-opts.c (lto_write_options): Write -fexceptions even if
2564         not set by the user.
2565
2566 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2567
2568         PR c/46462
2569         * c-decl.c (declspecs_add_type): Make variables with error types
2570         integers.
2571         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
2572         do not start a declaration before an Objective-C foreach.
2573         (c_parser_declaration_or_fndef): Improve recovery after unknown
2574         type name.
2575         (c_parser_for_statement): Hoist entrance of "foreach context"
2576         before ifs, add corresponding reset where it was missing.  Do
2577         not set objc_could_be_foreach_context for C.
2578
2579 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
2580
2581         PR tree-optimization/45722
2582         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
2583         this is a reference to a component.
2584         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
2585         (ipa_note_param_call): Adjust comment.
2586
2587 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
2588
2589         * config/mips/mips.c (machine_function): Remove
2590         initialized_mips16_gp_pseudo_p.
2591         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
2592         detect whether a pseudo has already been created.  Unconditionally
2593         create a new one if not.
2594         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
2595         expanding to rtl.  Create a new pseudo otherwise, if allowed.
2596
2597 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
2598
2599         PR target/43440
2600         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
2601         * tm.texi: Regenerated.
2602         * output.h (decode_reg_name_and_count): Declare.
2603         * varasm.c (decode_reg_name_and_count): New function.
2604         (decode_reg_name): Reimplement using decode_reg_name_and_count.
2605         * reginfo.c (fix_register): Use decode_reg_name_and_count and
2606         iterate over all regs used.
2607         * stmt.c (expand_asm_operands): Likewise.
2608         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
2609         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
2610         multiple machine registers.
2611
2612 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2613
2614         * stor-layout.c (place_union_field): Do not put location information
2615         on offset expressions.
2616         (place_field): Likewise.
2617         (finalize_record_size): Likewise on size expressions.
2618         (finalize_type_size): Likewise.
2619         (layout_type): Likewise.
2620
2621 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
2622
2623         PR debug/42889
2624         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
2625         * df-core.c (df_set_bb_dirty_nonrl): Remove.
2626         * df.h (df_set_bb_dirty_nonlr): Likewise.
2627
2628 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
2629
2630         * config/mips/mips.md (call_internal): Pass curr_insn to
2631         mips_split_call.
2632         (call_internal_direct): Ditto.
2633         (call_value_internal): Ditto.
2634         (call_value_internal_direct): Ditto.
2635         (call_value_multiple_internal): Ditto.
2636         * config/mips/mips.c (mips_split_call): Do not copy
2637         CALL_INSN_FUNCTION_USAGE here.
2638
2639 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
2640
2641         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
2642         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
2643         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
2644         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
2645         (TUNE_LOONGSON_3A): Define.
2646         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
2647         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
2648         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
2649         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
2650         (mips_rtx_cost_data): Add Loongson-3A.
2651
2652 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
2653
2654         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
2655         switches.
2656
2657 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
2658
2659         * dwarf2out.c (macinfo_entry): New struct.
2660         (output_comp_unit): Emit the section start label here and flag that we
2661         will emit an info section.
2662         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
2663         emitting directly.
2664         (dwarf2out_end_source_file): Likewise.
2665         (dwarf2out_define): Likewise.
2666         (dwarf2out_undef): Likewise.
2667         (output_macinfo): New.
2668         (dwarf2out_init): Do not emit debug section switches here, allocate a
2669         vec for macinfo, when required.
2670         (dwarf2out_finish): First switch to debug_abbrev_section here.
2671         debug_line_section,  debug_macinfo_section, Likewise.
2672         Check that the pubtypes table has at least one unpruned entry before
2673         trying to emit it.
2674
2675 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2676
2677         PR c/20385
2678         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
2679         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
2680         token lookahead.
2681         (c_parser_compound_statement_nostart, c_parser_label,
2682         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
2683         (c_parser_declaration_or_fndef): Detect the case now matched by
2684         c_parser_next_tokens_start_declaration, give error and correct it.
2685
2686 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2687
2688         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
2689         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
2690         with typespec_kind.
2691         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
2692         (shadow_tag_warned, check_compound_literal_type): Adjust
2693         uses of tag_defined_p.
2694         (declspecs_add_type): Set typespec_kind.
2695         * c-parser.c (c_parser_declaration_or_fndef,
2696         c_parser_declspecs, c_parser_struct_declaration,
2697         c_parser_parameter_declaration, c_parser_type_name,
2698         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
2699         of type_seen_p.
2700         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
2701         tag_defined_p, pass ctsk_firstref through.
2702
2703 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2704
2705         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
2706         (struct format_wanted_type): Replace field "name" with "kind", add
2707         "format_start" and "format_length".
2708         (check_format_info_main): Fill in new fields.  Fill in
2709         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
2710         after the final NUL outside the while loop.  Do not include
2711         width and precision modifiers in the format_start/format_length
2712         of the main format.
2713         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
2714         arguments.  Compute WANTED_TYPE first so that format_type_warning
2715         can be called for missing arguments.  Adjust calls to
2716         format_type_warning.
2717         (format_type_warning): Fetch as much information as possible
2718         from format_wanted_type.  Adjust printing now that every
2719         warning has a "descr", as well as for missing argument warnings
2720         and to include % sign for format specifiers.
2721
2722 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
2723
2724         PR rtl-optimization/46204
2725         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
2726         Update all callers.  Do not recompute topological order.  Adjust
2727         fallthrough edges following a degenerate conditional jump.
2728
2729 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
2730
2731         * opts-common.c (control_warning_option): New.
2732         * opts.c (set_default_handlers): New.
2733         (decode_options): Use set_default_handlers and
2734         control_warning_option.
2735         (common_handle_option): Update call to enable_warning_as_error.
2736         (enable_warning_as_error): Take gcc_options parameters.  Use
2737         control_warning_option.
2738         * opts.h (set_default_handlers, control_warning_option): Declare.
2739
2740 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
2741
2742         * Makefile.in (OPTS_H): Define.
2743         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
2744         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
2745         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
2746         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
2747         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
2748         * gcc.c (driver_handle_option): Take location_t parameter.
2749         (process_command, do_self_spec): Update calls to
2750         read_cmdline_option.
2751         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
2752         * langhooks.c (lhd_handle_option): Take location_t parameter.
2753         * langhooks.h (handle_option): Take location_t parameter.
2754         * lto-opts.c (lto_reissue_options): Update call to set_option.
2755         * opts-common.c (handle_option): Make static.  Take location_t
2756         parameter and pass it to other functions.
2757         (handle_generated_option): Take location_t parameter and pass it
2758         to other functions.
2759         (read_cmdline_option): Take location_t parameter and pass it to
2760         other functions.  Use warning_at and error_at.
2761         (set_option): Take location_t parameter and pass it to other
2762         functions.
2763         * opts.c (common_handle_option): Take location_t parameter and
2764         pass it to other functions.
2765         (enable_warning_as_error): Make static.  Take location_t parameter
2766         and pass it to other functions.
2767         (lang_handle_option): Take location_t parameter and pass it to
2768         other functions.
2769         (target_handle_option): Take location_t parameter.
2770         (read_cmdline_options, maybe_default_option,
2771         maybe_default_options, default_options_optimization,
2772         decode_options): Take location_t parameter and pass it to other
2773         functions.
2774         * opts.h: Include input.h.
2775         (struct cl_option_handler_func, decode_options, set_option,
2776         handle_generated_option, read_cmdline_option): Take location_t
2777         parameters.
2778         (handle_option, enable_warning_as_error): Remove.
2779         * toplev.c (toplev_main): Update call to decode_options.
2780
2781 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
2782
2783         * graphite-cloog-util.c (oppose_constraint,
2784         cloog_matrix_to_ppl_constraint,
2785         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
2786         CLooG isl uses unsigned integers.  This triggered a warning.
2787
2788 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
2789
2790         PR target/46438
2791         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
2792         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
2793         (xtensa_function_arg_1): De-constify cum.
2794         (xtensa_expand_prologue): Use add_reg_note.
2795
2796         PR target/46435
2797         * config/cris/cris.c (saved_regs_mentioned): Delete.
2798         (cris_reload_address_legitimized): Cast itype to enum reload_type.
2799         Remove unused variable op0p.
2800         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
2801         (cris_emit_movem_store): Use add_reg_note.
2802
2803         PR bootstrap/46456
2804         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
2805
2806 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2807
2808         * function.c (expand_function_end): Set the locator of the prologue on
2809         the stack checking insns.
2810
2811 2010-11-12  Richard Henderson  <rth@redhat.com>
2812
2813         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
2814         * config/xtensa/xtensa.opt (mfused-madd): Remove.
2815         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
2816         MASK_FUSED_MADD.
2817         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
2818         (fnmasf4): Rename from mulsubsf3; use fma.
2819
2820 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
2821             Richard Henderson  <rth@redhat.com>
2822
2823         PR target/46428
2824         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
2825         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
2826         comparison.
2827
2828 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
2829
2830         * opts-common.c (decode_cmdline_option): Initialize separate_args.
2831
2832 2010-11-12  Jan Hubicka  <jh@suse.cz>
2833
2834         * doc/invoke.texi (early-inlining-insns): Update default.
2835         * params.def (early-inlining-insns): Default to 10.
2836
2837 2010-11-12  Olivier Hainque  <hainque@adacore.com>
2838
2839         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
2840
2841 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2842
2843         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
2844         (SUPPORTS_INIT_PRIORITY): Define.
2845
2846 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
2847
2848         PR target/46430
2849         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
2850         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
2851         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2852         (avr_device_to_devicelib): Likewise.
2853         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
2854         into block.
2855         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
2856         (zero_extendhidi2, zero_extendsidi2): Likewise.
2857         * config/avr/avr.c (avr_num_arg_regs): Constify type.
2858         (avr_return_addr_rtx): De-constify tem.
2859         (avr_rotate_bytes): Move declarations to start of block.
2860         Don't use variable length array.  Put nested if/else into block.
2861
2862         PR rtl-optimization/46433
2863         * var-tracking.c: Include tm_p.h .
2864
2865         PR bootstrap/44756
2866         PR build/44767
2867         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
2868         should be unsigned.
2869         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
2870         * doc/tm.texi: Regenerate.
2871
2872         PR target/46412
2873         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
2874         * config/bfin/bfin.c: Include sel-sched.h .
2875         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
2876         (expand_interrupt_handler_prologue): Remove unused variable insn.
2877         (bfin_load_pic_reg): Likewise.
2878         (bfin_rtx_costs): Make code / outer_code variables of type
2879         enum rtx_code, copied from re-named parameters.
2880         (bfin_local_alignment): Change align argument and return type
2881         to unsigned.
2882         (bfin_adjust_cost): Remove unused variable insn_type.
2883         Declare variables at start of block.
2884         (struct loop_info): Rename to...
2885         (struct loop_info_d).
2886         (workaround_rts_anomaly): Change type of icode to int.
2887         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
2888         with int-typed variable.
2889         (note_np_check_stores): Likewise.
2890         (trapping_loads_p): Remove unused variable pat.
2891         (bfin_expand_binop_builtin): Use expand_normal.
2892         (bfin_expand_unop_builtin): Likewise.
2893         (bfin_expand_builtin): Likewise.  Set tmode before use.
2894
2895         PR middle-end/44769
2896         * final.c (split_double): Don't use BITS_PER_WORD directly in
2897         shift count.
2898
2899         PR target/46431
2900         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
2901         assignment.
2902
2903         PR target/46450
2904         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
2905         Use add_reg_note.
2906         (xstormy16_function_arg): Dereference cum.
2907         (xstormy16_expand_builtin): Use expand_normal.
2908         Change type of omode to enum machine_mode.
2909         (combine_bnp): Rename and to and_insn.
2910
2911         PR target/46437
2912         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
2913         localreg.
2914
2915 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2916
2917         PR debug/46375
2918         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
2919
2920 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
2921
2922         PR lto/46376
2923         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
2924
2925 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
2926
2927         PR c/44782
2928         * common.opt (fmax-errors=): New option.
2929         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
2930         * diagnostic.h (struct diagnostic_context): Add max_errors field.
2931         * diagnostic.c (diagnostic_initialize): Initialize it.
2932         (diagnostic_action_after_output): Exit if more than max_errors
2933         have been output.
2934         * doc/invoke.texi (Warning Options): Add -fmax-errors.
2935         (-fmax-errors): Document.
2936
2937 2010-11-11  Richard Henderson  <rth@redhat.com>
2938
2939         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
2940
2941 2010-11-11  Richard Henderson  <rth@redhat.com>
2942
2943         * config/fused-madd.opt: New file.
2944         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
2945         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
2946         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2947         * config/i386/i386.opt (mfused-madd): Remove.
2948         * config/i386/sse.md (split_fma): Remove.
2949         (split_fms, split_fnma, split_fnms): Remove.
2950
2951 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
2952
2953         PR target/46088
2954         * config/i386/i386.md (*ashl<mode>3_cconly,
2955         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
2956         change nonimmediate_operand predicate to register_operand.
2957
2958 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
2959
2960         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
2961
2962 2010-11-11  Jan Hubicka  <jh@suse.cz>
2963
2964         * opts.c (finish_options): Do not error on -flto-partition alone.
2965
2966         * doc/invoke.texi (-fwhopr): Merge into -flto section.
2967         (-flto-partition): Document none.
2968         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
2969         * lto-wrapper.c: Update comment.
2970         (run_gcc): Update LTO option parsing.
2971         * opts.c (finish_options): add support -flto-partition=none
2972         (common_handle_option): Remove fwhopr.
2973         * common.opt: Turn fwhopr into flto.
2974         * collect2.c (main): Update option handling.
2975         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
2976         * ipa-split.c (execute_split_functions): Remove flag_whopr.
2977         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
2978         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
2979         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
2980
2981 2010-11-11  Jan Hubicka  <jh@suse.cz>
2982
2983         PR tree-optimize/40436
2984         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
2985         (eliminated_by_inlining_prob): ... this one; return 50% probability
2986         for SRA.
2987         (estimate_function_body_sizes): Update use of
2988         eliminated_by_inlining_prob; estimate static function size
2989         for 2 instructions.
2990
2991 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
2992
2993         PR target/44749
2994         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
2995         declare.  Change type of argument four to type int.
2996         (mep_secondary_input_reload_class): Returns enum reg_class.
2997         (mep_secondary_output_reload_class): Likewise.
2998         (mep_function_value): Change types of arguments to cont_tree.
2999         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
3000         argument four to type int.
3001         (mep_secondary_input_reload_class): Returns enum reg_class.
3002         (mep_secondary_output_reload_class): Likewise.
3003         (mep_function_value): Change types of arguments to cont_tree.
3004         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
3005         mep_regno_reg_class to enum reg_class.
3006
3007 2010-11-11  Richard Henderson  <rth@redhat.com>
3008
3009         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
3010         that the target has the exact fma operation that we matched.
3011
3012 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3013
3014         * reginfo.c (fix_register): Avoid inserting English word in
3015         diagnostic sentence.  Use %qs for quoting and %'.
3016
3017 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
3018
3019         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3020         Intel processor family 6, model 0x2c.
3021
3022 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3023
3024         * opts.c (warning_as_error_callback,
3025         register_warning_as_error_callback): Remove.
3026         (enable_warning_as_error): Don't use warning_as_error_callback.
3027         * opts.h (register_warning_as_error_callback): Remove.
3028
3029 2010-11-11  Richard Henderson  <rth@redhat.com>
3030
3031         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
3032         in between the MULT and the PLUS/MINUS.
3033
3034 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3035
3036         PR middle-end/46388
3037         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
3038         BLKmode mode for it.
3039         (expand_expr_real_1): Similarly for op0.
3040
3041 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3042
3043         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
3044         Document optional target selector.
3045
3046 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
3047
3048         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
3049         assembling high and low parts of size if not using 32-bit HWINT; else
3050         use DECL_SIZE_UNITS, not DECL_SIZE.
3051
3052 2010-11-11  Martin Jambor  <mjambor@suse.cz>
3053
3054         PR tree-optimization/46383
3055         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
3056         offsets.
3057         (compute_complex_ancestor_jump_func): Likewise.
3058         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
3059
3060 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3061
3062         PR debug/46150
3063         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
3064         true if expr1->hash != expr2->hash.
3065
3066 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3067
3068         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
3069         diagnostics with lowercase letters.
3070         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
3071         lowercase letters.
3072         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
3073         diagnostic.
3074         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3075         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
3076         lowercase letters.
3077         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3078         Remove trailing ' ' from diagnostic.
3079         * config/avr/avr.c (print_operand_address): Start diagnostic with
3080         a lowercase letter and remove trailing '.'.
3081         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
3082         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
3083         with lowercase letters.  Use %' in diagnostics.  Remove trailing
3084         '.' from diagnostics.
3085         (bfin_handle_longcall_attribute): Use %' in diagnostic.
3086         * config/cris/cris.c (cris_split_movdx,
3087         cris_expand_pic_call_address): Start diagnostics with lowercase
3088         letters.
3089         (cris_asm_output_label_ref): Use %' in diagnostic.
3090         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
3091         letter.
3092         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
3093         lowercase letter.
3094         * config/darwin-c.c (version_as_macro): Start diagnostic with a
3095         lowercase letter.
3096         * config/darwin-driver.c (darwin_default_min_version): Use %' in
3097         diagnostic.
3098         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
3099         diagnostic.
3100         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3101         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
3102         diagnostics.
3103         * config/i386/i386.c (ix86_option_override_internal): Write
3104         diagnostic as a single sentence without trailing '.'.  Use %' in
3105         diagnostics.
3106         (ix86_function_sseregparm, classify_argument): Start diagnostics
3107         with lowercase letters.
3108         (ix86_expand_prologue): Use %' in diagnostic.
3109         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
3110         diagnostic.
3111         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
3112         lowercase letter.
3113         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
3114         diagnostic.
3115         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3116         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
3117         '`' in help text.
3118         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
3119         lowercase letter.
3120         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
3121         lowercase letters.
3122         * config/microblaze/microblaze.c (microblaze_handle_option):
3123         Remove trailing '.' from diagnostic.
3124         (print_operand): Start diagnostic with a lowercase letter.
3125         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
3126         lowercase letters.  Avoid '`' in diagnostics.
3127         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
3128         lowercase letters.  Avoid '`' in diagnostics.
3129         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
3130         lowercase letters.  Avoid '`' in diagnostics.
3131         * config/picochip/picochip.c (picochip_option_override,
3132         picochip_emit_save_register, picochip_function_arg,
3133         picochip_output_label, picochip_output_internal_label,
3134         picochip_asm_output_opcode, picochip_output_cbranch,
3135         picochip_output_compare, picochip_output_branch,
3136         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
3137         diagnostics. Start diagnostics with lowercase letters.  Use %' in
3138         diagnostics.
3139         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
3140         "SPE" capitalization.  Start diagnostic with a lowercase letter.
3141         (rs6000_handle_option): Start diagnostics with lowercase letters.
3142         (def_builtin): Remove trailing '.' from diagnostic.
3143         (rs6000_savres_routine_name): Start diagnostic with a lowercase
3144         letter.
3145         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
3146         diagnostic.
3147         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
3148         lowercase letter.
3149         * config/s390/s390.c (s390_option_override) Start diagnostics with
3150         lowercase letters.  Use %' in diagnostic.
3151         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
3152         lowercase letters.
3153         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
3154         diagnostic.
3155         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
3156         diagnostic.
3157         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
3158         diagnostic.
3159         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3160         * config/spu/spu.c (spu_option_override): Start diagnostics with
3161         lowercase letters.  Use %qs for quoting in diagnostics.
3162         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
3163         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
3164         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
3165         from diagnostic.
3166         * convert.c (convert_to_integer, convert_to_vector): Use %' in
3167         diagnostics.
3168         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
3169         letter and use "cannot" spelling.
3170         * expmed.c (extract_fixed_bit_field): Start diagnostic with
3171         lowercase letter and format as a single sentence without '.'.
3172         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
3173         Use %' in diagnostics.
3174         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
3175         Use %' in diagnostics.
3176         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
3177         Use %' in diagnostics.
3178         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
3179         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
3180         with lowercase letters and remove tailing '.' and '\n'.
3181         * lto-cgraph.c (input_profile_summary): Start diagnostic with
3182         lowercase letter and remove trailing '.'.
3183         (input_cgraph): Start diagnostics with lowercase letters and
3184         remove trailing '\n'.
3185         * opts.c (finish_options, common_handle_option): Start diagnostics
3186         with lowercase letters and remove trailing '.'.  Fix typo in
3187         diagnostic.
3188         * passes.c (position_pass): Start diagnostic with lowercase letter.
3189         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
3190         register_callback, try_init_one_plugin): Start diagnostics with
3191         lowercase letters.
3192         * reload1.c (spill_failure): Use %' in diagnostic.
3193         (gen_reload): Start diagnostic with a lowercase letter.
3194         * stor-layout.c (place_field): Start diagnostic with a lowercase
3195         letter.
3196         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
3197         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
3198         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
3199         Start diagnostics with lowercase letters, remove trailing '.' and
3200         use %' in diagnostics.
3201         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
3202         (verify_ssa): Don't split diagnostic across two error calls.
3203         Spell out "number" and use %' in diagnostic.
3204         * value-prof.c (visit_hist, check_counter): Start diagnostics with
3205         lowercase letters.
3206
3207 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
3208
3209         PR middle-end/46419
3210         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
3211         (_mm_cvtpu16_ps): Ditto.
3212
3213 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3214
3215         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
3216         warn_larger_than, larger_than_size, warn_frame_larger_than,
3217         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
3218         default_visibility, flag_tls_default): New Variable declarations.
3219         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
3220         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
3221         (v): Declare as Common and document here.
3222         * flags.h (default_visibility, flag_generate_lto,
3223         warn_larger_than, larger_than_size, warn_frame_larger_than,
3224         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
3225         flag_shlib, flag_excess_precision_cmdline): Remove.
3226         (set_Wstrict_aliasing): Update prototype.
3227         * gcc.c (verbose_flag): Remove.
3228         (driver_handle_option): Add diagnostic_context parameter.  Don't
3229         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
3230         incrementing it.
3231         * opts-common.c (handle_option): Pass dc to handler.
3232         * opts.c (warn_larger_than, larger_than_size,
3233         warn_frame_larger_than, frame_larger_than_size,
3234         default_visibility): Remove.
3235         (common_handle_option): Add diagnostic_context parameter.
3236         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
3237         gcc_options parameters.
3238         (lang_handle_option, target_handle_option, read_cmdline_options,
3239         decode_options): Add diagnostic_context parameters.
3240         (finish_options): Access option state through opts pointer where
3241         possible.
3242         (common_handle_option): Access option state through opts pointer
3243         where possible.  Do not set local static variable verbose.  Do not
3244         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
3245         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
3246         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
3247         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
3248         OPT_fwhopr_.  Do not explicitly set .opt file variables for
3249         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
3250         (set_Wstrict_aliasing): Add gcc_options parameter.
3251         * opts.h (struct cl_option_handler_func): Add diagnostic_context
3252         parameter to handler.
3253         (decode_options): Add diagnostic_context parameter.
3254         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
3255         asm_file_name, flag_generate_lto, flag_gen_aux_info,
3256         aux_info_file_name, flag_shlib, flag_tls_default,
3257         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
3258         (toplev_main): Pass global_dc to decode_options.
3259         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
3260         aux_info_file_name, asm_file_name): Remove.
3261         * tree.h (flag_tls_default): Remove.
3262
3263 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3264
3265         PR target/45986
3266         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
3267         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
3268
3269 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
3270
3271         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
3272         (x86_64-*-*): Likewise.
3273         * config/i386/cpuid.h: Define TBM bit.
3274         * config/i386/driver-i386.c (host_detect_local_cpu): Define
3275         and set has_tbm.
3276         * config/i386/i386-c.c (ix86_target_macros_internal): Check
3277         isa_flag for TBM.
3278         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
3279         (OPTION_MASK_ISA_TBM_UNSET): New.
3280         (ix86_handle_option): Handle -mtbm.
3281         (isa_opts): Add -mtbm.
3282         (enum pta_flags): Add PTA_TBM.
3283         (ix86_option_override_internal): Add TBM support.
3284         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
3285         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
3286         (IX86_BUILTIN_BEXTRI64): Likewise.
3287         (bdesc_args): Add TBM intrinsics.
3288         (ix86_expand_builtin): Add TBM specific case.
3289         * config/i386/i386.h (TARGET_TBM): New for TBM.
3290         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
3291         (tbm_bextri_<mode>): Likewise.
3292         (*tbm_blcfill_<mode>): Likewise.
3293         (*tbm_blci_<mode>): Likewise.
3294         (*tbm_blcic_<mode>): Likewise.
3295         (*tbm_blcmsk_<mode>): Likewise.
3296         (*tbm_blcs_<mode>): Likewise.
3297         (*tbm_blsfill_<mode>): Likewise.
3298         (*tbm_blsic_<mode>): Likewise.
3299         (*tbm_t1mskc_<mode>): Likewise.
3300         (*tbm_tzmsk_<mode>): Likewise.
3301         * config/i386/i386.opt: Add -mtbm.
3302         * config/i386/tbmintrin.h (__bextri_u32): New.
3303         (__blcfill_u32): Likewise.
3304         (__blci_u32): Likewise.
3305         (__blcic_u32): Likewise.
3306         (__blcmsk_u32): Likewise.
3307         (__blcs_u32): Likewise.
3308         (__blsfill_u32): Likewise.
3309         (__blsic_u32): Likewise.
3310         (__t1mskc_u32): Likewise.
3311         (__tzmsk_u32): Likewise.
3312         (__bextri_u64): Likewise.
3313         (__blcfill_u64): Likewise.
3314         (__blci_u64): Likewise.
3315         (__blcic_u64): Likewise.
3316         (__blcmsk_u64): Likewise.
3317         (__blcs_u64): Likewise.
3318         (__blsfill_u64): Likewise.
3319         (__blsic_u64): Likewise.
3320         (__t1mskc_u64): Likewise.
3321         (__tzmsk_u64): Likewise.
3322         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
3323         * doc/invoke.texi: Document -mtbm.
3324         * doc/extend.texi: Document TBM built-in functions.
3325
3326 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
3327
3328         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
3329         (x86_64-*-*): Likewise.
3330         * config/i386/cpuid.h: Define BMI bit.
3331         * config/i386/driver-i386.c (host_detect_local_cpu): Define
3332         and set has_bmi.
3333         * config/i386/i386-c.c (ix86_target_macros_internal): Check
3334         isa_flag for BMI.
3335         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
3336         (OPTION_MASK_ISA_BMI_UNSET): New.
3337         (ix86_handle_option): Handle -mbmi.
3338         (isa_opts): Add -mbmi.
3339         (enum pta_flags): Add PTA_BMI.
3340         (ix86_option_override_internal): Add BMI support.
3341         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
3342         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
3343         (IX86_BUILTIN_BEXTR64): Likewise.
3344         (IX86_BUILTIN_CTZS): Likewise.
3345         (bdesc_args): Add BMI intrinsics.
3346         (ix86_expand_args_builtin): Add BMI specific cases.
3347         * config/i386/i386.h (TARGET_BMI): New for BMI.
3348         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
3349         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
3350         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
3351         (UNSPEC_TZCNT): Likewise.
3352         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
3353         (bmi_andn_<mode>): New for BMI.
3354         (bmi_bextr_<mode>): Likewise.
3355         (bmi_blsi_<mode>): Likewise.
3356         (bmi_blsmsk_<mode>): Likewise.
3357         (bmi_blsr_<mode>): Likewise.
3358         * config/i386/i386.opt: Add -mbmi.
3359         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
3360         * config/i386/bmiintrin.h (__lzcnt_u16): New.
3361         (__tzcnt_u16): Likewise.
3362         (__andn_u32): Likewise.
3363         (__bextr_u32): Likewise.
3364         (__blsi_u32): Likewise.
3365         (__blsmsk_u32): Likewise.
3366         (__blsr_u32): Likewise.
3367         (__lzcnt_u32): Likewise.
3368         (__tzcnt_u32): Likewise.
3369         (__andn_u64): Likewise.
3370         (__bextr_u64): Likewise.
3371         (__blsi_u64): Likewise.
3372         (__blsmsk_u64): Likewise.
3373         (__blsr_u64): Likewise.
3374         (__lzcnt_u64): Likewise.
3375         (__tzcnt_u64): Likewise.
3376         * doc/invoke.texi: Document -mbmi and -mno-bmi.
3377         * doc/extend.texi: Document BMI built-in functions.
3378
3379 2010-11-10  Jan Hubicka  <jh@suse.cz>
3380
3381         PR tree-optimize/46228
3382         * doc/invoke.texi (comdat-sharing-probability): Document.
3383         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
3384         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
3385
3386 2010-11-10  Jan Hubicka  <jh@suse.cz>
3387
3388         PR tree-optimize/46228
3389         * cgraph.c (cgraph_propagate_frequency): Fix typo.
3390
3391 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
3392
3393         PR tree-optimization/46414
3394         * tree-inline.c (estimate_move_cost): Check preferred vector
3395         mode for vector type.
3396
3397 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3398
3399         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
3400
3401 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
3402
3403         PR tree-optimization/45971
3404         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
3405         for phi nodes analyzable by scev.
3406
3407 2010-11-10  Richard Guenther  <rguenther@suse.de>
3408
3409         PR tree-optimization/44964
3410         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
3411
3412 2010-11-10  Martin Jambor  <mjambor@suse.cz>
3413
3414         PR tree-optimization/46351
3415         PR tree-optimization/46377
3416         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
3417         aggregate bit-fields.
3418
3419 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3420
3421         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3422         * doc/tm.texi: Regenerate.
3423         * opts-common.c (tm.h): Don't include.
3424         (target_option_translations): Remove.
3425         (decode_cmdline_options_to_array): Don't handle translating options.
3426         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
3427         * config/darwin-driver.c: Don't condition includes on
3428         CROSS_DIRECTORY_STRUCTURE.
3429         (darwin_default_min_version): Make static.
3430         (darwin_driver_init): New.  Call darwin_default_min_version if not
3431         CROSS_DIRECTORY_STRUCTURE.
3432         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3433         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
3434         (ASM_SPEC): Add %{static}.
3435         (darwin_default_min_version): Don't declare.
3436         (darwin_driver_init): Declare.
3437         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
3438         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
3439         * config/darwin.opt (all_load, allowable_client,
3440         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
3441         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
3442         exported_symbols_list, filelist, findirect-virtual-calls,
3443         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
3444         framework, fterminated-vtables, gfull, gused, image_base, init,
3445         install_name, multi_module, multiply_defined,
3446         multiply_defined_unused, no_dead_strip_inits_and_terms,
3447         seg_addr_table, seg_addr_table_filename, segaddr,
3448         segs_read_only_addr, segs_read_write_addr, single_module,
3449         umbrella, unexported_symbols_list, weak_reference_mismatches,
3450         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
3451         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
3452         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
3453         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
3454         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
3455         (ASM_SPEC): Add %{static}.
3456         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
3457         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3458         (DRIVER_SELF_SPECS): Handle options formerly in
3459         TARGET_OPTION_TRANSLATE_TABLE.
3460         * config/mep/mep.opt (mfar): New.
3461         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3462         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
3463         TARGET_OPTION_TRANSLATE_TABLE.
3464         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
3465         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
3466         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
3467         ffix-and-continue, findirect-data): New.
3468         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
3469         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
3470         (mnofpu): Define mask and use Report here.
3471
3472 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3473
3474         * config/s390/s390.c (s390_emit_prologue): Report the stack
3475         size if -fstack-usage is used.
3476
3477 2010-11-10  Richard Guenther  <rguenther@suse.de>
3478
3479         PR tree-optimization/46398
3480         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
3481
3482 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
3483
3484         PR target/44760
3485         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
3486         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
3487         GP_REG_OR_PSEUDO_STRICT_P.
3488         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
3489         unexpected alternative.
3490         (*movsf_internal): Likewise.
3491         (indirect_jump): Replace call to non-existant function with call to
3492         internal_error.
3493         (tablejump): Likewise.
3494         * config/iq2000/iq2000.c: Include df.h .
3495         (iq2000_function_arg_advance): Use CONST_CAST2.
3496         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
3497         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
3498         a non-zero function address.
3499         (iq2000_initial_elimination_offset): Add gcc_unreachable for
3500         unexpected value of FROM.
3501         (symbolic_expression_p): Delete.
3502         (iq2000_function_value): Constify func.
3503         (expand_one_builtin): Use expand_normal.
3504         (iq2000_print_operand): Don't print VALUE if calculating it failed.
3505
3506         PR rtl-optimization/44764
3507         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
3508
3509         PR target/46407
3510         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
3511         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
3512         with ATTRIBUTE_UNUSED.
3513         (valid_psw_flag): Constify parameter which.
3514         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
3515
3516         PR target/46415
3517         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
3518         (mmix_dbx_register_number): Likewise.
3519         * config/mmix/mmix.c: Include df.h .
3520         (mmix_local_alignment): Change argument basic_align and return type
3521         to unsigned.
3522         (mmix_dbx_register_number): Change argument and return type to
3523         unsigned.
3524         (mmix_expand_prologue): Use add_reg_note.
3525
3526         PR target/46417
3527         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
3528         (spu_split_store): Use aform.
3529         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
3530
3531 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3532
3533         PR/46268
3534         * doc/gty.texi (GTY Options): Clarify that variable_size produces
3535         allocators taking size in bytes, compare with length option.  Add
3536         size calculation example.
3537         (Invoking the garbage collector): Ensure that sentences are
3538         followed by two spaces.  Describe that pointer fields must be
3539         initialized at ggc_collect call.
3540         (Troubleshooting): New section.
3541
3542 2010-11-09  Jan Hubicka  <jh@suse.cz>
3543
3544         PR tree-optimization/40436
3545         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
3546         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
3547         normal instructions; be sure bultin is not implemented in this file;
3548         compute non-zero return cost.
3549         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
3550         * tree-inline.h (eni_weights_d): Add return cost.
3551
3552 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
3553
3554         * c-parser.c (c_parser_struct_declaration): Handle declaration
3555         specifiers followed by CPP_CLOSE_BRACE.
3556
3557 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3558
3559         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
3560         split occurs before reload, and we allocate memory at the time of
3561         the split, not during expansion.  Add attributes.
3562         (floatsi<mode>2_lfiwax_mem): Ditto.
3563         (floatunssi<mode>2_lfiwzx): Ditto.
3564         (floatunssi<mode>2_lfiwzx_mem): Ditto.
3565         (floatsidf2): Ditto.
3566         (floatunssisf2): Ditto.
3567         (floatunssidf2): Ditto.
3568         (fix_trunc<mode>si2): Ditto.
3569         (fix_trunc<mode>si2_stfiwx): Ditto.
3570         (fix_trunc<mode>si2_internal): Ditto.
3571         (fix_trunc<mode>si2): Ditto.
3572         (fix_trunc<mode>di2): Ditto.
3573         (fixuns_trunc<mode>si2_stfiwx): Ditto.
3574         (floatsisf2): Ditto.
3575         (floatdidf2_mem): Ditto.
3576         (floatunsdidf2_mem): Ditto.
3577         (floatunsdidf2): Ditto.
3578         (floatdisf2_internal1): Ditto.
3579         (floatdisf2_mem): Ditto.
3580         (floatunsdisf2_mem): Ditto.
3581         (floatsi<mode>2_lfiwax_mem2): Delete.
3582         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
3583         (fix_trunc<mode>si2_mem): Ditto.
3584         (fixuns_trunc<mode>si2_mem): Ditto.
3585         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
3586         type operations to reduce copying the values to multiple memory slots.
3587         (roundu32<mode>2_fprs): Ditto.
3588
3589         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
3590         PRE_INC, PRE_DEC, PRE_MODIFY.
3591         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
3592
3593         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
3594         Delete prototype.
3595
3596 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
3597
3598         PR target/43808
3599         * cfgexpand.c (partition_stack_vars): Call
3600         update_alias_info_with_stack_vars unconditionally.
3601         (update_alias_info_with_stack_vars): Allow unused
3602         unreferenced vars when not optimizing.
3603
3604 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
3605
3606         PR tree-optimization/46036
3607         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
3608         add_to_dst_predicate_list.
3609
3610 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
3611
3612         PR debug/46171
3613         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
3614         earlier.
3615         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
3616         argument, call dead_debug_reset when adding REG_UNUSED note.
3617         (dead_debug_reset): New function.
3618         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
3619         df_create_unused_note callers.
3620
3621 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
3622
3623         * config/fr30/fr30.c: Include "df.h".
3624
3625 2010-11-09  Richard Guenther  <rguenther@suse.de>
3626
3627         PR tree-optimization/46355
3628         * tree-loop-distribution.c (tree_loop_distribution): Do not
3629         distribute loops without a single exit.
3630
3631 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3632
3633         PR rtl-optimization/46237
3634         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
3635         saved hard regs if they might get partially clobbered.
3636
3637 2010-11-09  Paul Koning  <ni1d@arrl.net>
3638
3639         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
3640
3641 2010-11-09  Richard Guenther  <rguenther@suse.de>
3642
3643         PR tree-optimization/46177
3644         * tree-loop-distribution.c (prop_phis): Remove.
3645         (generate_builtin): Re-use the old loop exit edge to avoid
3646         needing to update PHI nodes.
3647
3648 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
3649
3650         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
3651         type of args_size to unsigned HOST_WIDE_INT.
3652
3653         PR target/44755
3654         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
3655         * config/t-pnt16-warn: New file.
3656         * config/picochip/picochip.c (picochip_emit_stack_allocate):
3657         Use add_reg_note.
3658         (picochip_emit_save_register): Likewise.
3659         (picochip_emit_restore_register): Remove variable insn.
3660         (picochip_legitimize_address): Don't use C++ style comments.
3661         (picochip_legitimize_reload_address): Likewise.
3662         (reorder_var_tracking_notes): Remove variable vliw_start.
3663         (picochip_reorg): Cast first arguemnt to emit_note_after to
3664         enum insn_note.
3665         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
3666         (picochip_expand_builtin_3op): Likewise.
3667         (picochip_expand_builtin_2opvoid): Likewise.
3668         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
3669         (picochip_expand_array_testport): Likewise.
3670         (picochip_init_builtins): Remove unused variables.
3671         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
3672         to unsigned long, and output it as such.
3673         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
3674         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
3675         (schedType): Cast result of picochip_schedule_type to
3676         enum attr_schedType.
3677
3678         PR target/44759
3679         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
3680         conditional to type of S.
3681         (mn10300_function_arg): Remove unused variable align.
3682         (mn10300_arg_partial_bytes): Likewise.
3683         * config/mn10300/mn10300.md (attribute cpu): Cast value to
3684         enum attr_cpu.
3685
3686 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
3687
3688         PR bootstrap/46392
3689         * gengtype-parse.c (type): Call get_input_file_name to get file name.
3690
3691 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3692
3693         * tree.h (contains_placeholder_p): Fix comment.
3694         (type_contains_placeholder_p): Adjust comment.
3695         * tree.c (contains_placeholder_p): Fix comment.
3696         (type_contains_placeholder_1): Do not recurse on pointed-to types and
3697         adjust comment.
3698         (type_contains_placeholder_p): Add comment.
3699
3700 2010-11-09  Paul Koning  <ni1d@arrl.net>
3701
3702         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
3703         output of byte values.
3704
3705 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
3706
3707         PR middle-end/46360
3708         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
3709         not in SSA mode.
3710
3711 2010-11-09  Richard Guenther  <rguenther@suse.de>
3712
3713         PR middle-end/46221
3714         * varasm.c (compute_visible_aliases): New function.
3715         (remove_unreachable_alias_pairs): Aliases make a target available
3716         even though we reclaimed the cgraph node.
3717         (finish_aliases_1): Likewise.
3718         * Makefile.in (varasm.o): Add pointer-set.h dependency.
3719
3720 2010-11-09  Nick Clifton  <nickc@redhat.com>
3721
3722         * config/mn10300/mn10300-modes.def: New file.
3723
3724 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
3725             Jeremie Salvucci  <jeremie.salvucci@free.fr>
3726
3727         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
3728         (plugin_files, get_file_basename, get_file_realbasename)
3729         (get_file_langdir, error_at_line, gt_files, this_file)
3730         (system_h_file, read_input_list, create_field_all)
3731         (get_file_srcdir_relative_path, get_file_basename)
3732         (get_file_langdir, get_file_gtfilename)
3733         (get_output_file_with_visibility, get_output_file_name)
3734         (struct flist, put_mangled_filename, walk_type)
3735         (put_mangled_filename, finish_root_table, write_roots): Use
3736         input_file-s.
3737         (lang_dir_names, num_lang_dirs): Remove static.
3738         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
3739         (main): Use input_file-s.
3740
3741         * gengtype.h: (struct input_file_st, input_file): New type.
3742         (struct fileloc): Use it.
3743         (gt_files, num_gt_files, this_file, system_h_file)
3744         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
3745         (get_input_file_name): New function.
3746         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
3747         use input_file.
3748         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
3749         (get_output_file_name): Ditto.
3750
3751         * gengtype-lex.l (yybegin): Use input_file.
3752
3753         * gengtype-parse.c (parse_error): Use input_file.
3754
3755 2010-11-08  Xinliang David Li  <davidxl@google.com>
3756
3757         PR tree-optimization/46316
3758         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
3759         * double-int.h (double_int_mul_with_sign): New function.
3760         * double-int.c (double_int_mul_with_sign): New function.
3761
3762 2010-11-08  Paul Koning  <ni1d@arrl.net>
3763
3764         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
3765
3766 2010-11-08  Paul Koning  <ni1d@arrl.net>
3767
3768         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
3769
3770 2010-11-08  Paul Koning  <ni1d@arrl.net>
3771
3772         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
3773         to 8 bits.
3774
3775 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
3776
3777         PR target/46378
3778         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3779         turn on ISA 2.04 rounding instructions for power5.
3780
3781         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
3782         not ISA 2.02.
3783
3784         PR target/45585
3785         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
3786         in FPR registers.
3787         (movdi_low_st): Ditto.
3788
3789 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
3790             Richard Henderson  <rth@redhat.com>
3791
3792         PR target/44758
3793         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
3794         (attribute acc_group): Cast value to enum attr_acc_group.
3795         (*movdi_nodouble+6): Use gen_int_mode.
3796         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
3797         if RTX_CODE is defined or not.
3798         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
3799         struct frv_io.
3800         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
3801         (frv_frame_access, frv_expand_prologue): Remove unused variables.
3802         (frv_expand_block_clear): Likewise.
3803         (frv_trampoline_init): Use LCT_NORMAL.
3804         (struct frv_packet_group): New struct, broken out of type of
3805         frv_packet.
3806         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
3807         use cast in loop counter increment.
3808         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
3809         assigning to io->type.
3810         (bdesc_set): Use rtx_code UNKNOWN in initializer.
3811         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
3812         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
3813         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
3814         (frv_read_argument): Use expand_normal.
3815
3816         PR target/44757
3817         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
3818         lm32_legitimate_constant_p.
3819         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
3820         * config/lm32/lm32.c (gen_int_relational): Make new block for
3821         LE / LT / LEU / LTU case.  Declare variables at start of block.
3822         (lm32_block_move_inline): Use XALLOCAVEC.
3823
3824 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3825
3826         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
3827
3828 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
3829
3830         * gengtype (get_output_file_for_structure): Ensure type is union
3831         or struct.
3832         (write_splay_tree_allocator_def): Use
3833         get_output_file_with_visibility.
3834
3835 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3836
3837         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
3838         to defined values in case of an error.
3839         (s390_option_override): Skip further processing if the -march
3840         parameter wasn't recognized.
3841
3842 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
3843
3844         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
3845         assert that REG is a hard register number before using it as an index.
3846
3847         PR bootstrap/46358
3848         * config/i386/i386.c (ix86_expand_split_stack_prologue):
3849         Avoid warnings when HOST_WIDE_INT is 32 bit.
3850
3851 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
3852
3853         PR target/46208
3854         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
3855         (sparc_promote_prototypes): Likewise.
3856         (sparc_promote_function_mode): Promote in 32-bit mode as well.
3857         (sparc_return_in_memory): Remove superfluous parentheses.
3858         (sparc_struct_value_rtx): Fix long lines.
3859         (sparc_function_value_1): Promote in 32-bit mode as well.
3860
3861 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
3862
3863         PR rtl-optimization/45352
3864         * sel-sched.c (find_best_expr): Do not set pneed_stall when
3865         the variable_issue hook is not implemented.
3866         (fill_insns): Remove dead variable stall_iterations.
3867         (init_seqno_1): Force EBB start for resetting sched cycles on any
3868         successor blocks of the rescheduled region.
3869         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
3870         (reset_sched_cycles_in_current_ebb): Add debug printing.
3871         New variable issued_insns.  Advance state when we have issued
3872         issue_rate insns.
3873
3874 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
3875
3876         * gengtype (main): Get here's position using POS_HERE macro for
3877         do*typedef calls.
3878
3879 2010-11-07  Ian Lance Taylor  <iant@google.com>
3880
3881         PR target/46089
3882         * config/i386/i386.c (split_stack_fn_large): New static variable.
3883         (ix86_expand_split_stack_prologue): Handle large model.
3884
3885 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
3886
3887         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
3888         all possible addressing modes.
3889
3890 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
3891
3892         PR tree-optimization/46346
3893         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
3894
3895 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
3896
3897         * config/mips/mips.c: Revert previous patch.
3898         * config/mips/mips.md: Likewise.
3899
3900 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
3901
3902         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
3903         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
3904         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
3905         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
3906         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
3907         to use FMA.
3908         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
3909         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
3910         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
3911         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
3912
3913 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
3914
3915         PR c/43384
3916         * c-decl.c (lookup_label): Labels can only be referenced in a
3917         function's scope.
3918         (store_parm_decls_oldstyle): Skip erroneous parameters.
3919
3920 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
3921
3922         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3923         LIBCALL_VALUE): Remove macros.
3924         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3925         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3926         (fr30_function_value_regno_p, fr30_function_value,
3927         fr30_libcall_value): New functions.
3928
3929 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
3930
3931         PR middle-end/46314
3932         * target.def (generate_internal_label): New asm_out hook.
3933         * output.h (default_generate_internal_label): Declare.
3934         * varasm.c (default_generate_internal_label): Define.
3935
3936 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
3937
3938         PR target/44981
3939         * doc/extend.tex (format): Document NSString extension.
3940         (format_arg): Likewise.
3941         (Darwin Format Checks): New section.
3942         * doc/tm.texi: Document string object hooks (generated).
3943         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
3944         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
3945         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
3946         * target.def (objc_construct_string_object): Rename, amend
3947         documentation.
3948         (string_object_ref_type_p): New hook.
3949         (check_string_object_format_arg): New hook.
3950         * c-parser.c (c_parser_attributes): Allow objective-c class names as
3951         attribute identifiers.
3952         * config/darwin-c.c (darwin_cfstring_ref_p): New.
3953         (darwin_check_cfstring_format_arg): New.
3954         (darwin_additional_format_types): New.
3955         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
3956         (darwin_check_cfstring_format_arg): New.
3957         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
3958         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
3959         (TARGET_N_FORMAT_TYPES): New.
3960         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
3961
3962 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
3963             Pascal Obry  <obry@adacore.com>
3964
3965         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
3966         in 64-bit mode and 17 otherwise.
3967
3968 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3969
3970         PR debug/45939
3971         * var-tracking.c (emit_note_insn_var_location): Make sure that
3972         call related var location notes come before the normal ones.
3973
3974 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
3975
3976         PR target/46326
3977         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
3978         in the last change.
3979
3980 2010-11-05  Ian Lance Taylor  <iant@google.com>
3981
3982         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
3983
3984 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
3985
3986         PR c/44772
3987         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
3988         pointer_set_contains if DECL_NAME is NULL.
3989
3990 2010-11-05  Ian Lance Taylor  <iant@google.com>
3991
3992         PR target/46084
3993         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
3994         request enough additional space for alignment, and force alignment.
3995
3996 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
3997
3998         * config/i386/i386.c (legitimate_pic_address_disp_p):
3999         Handle UNSPEC_PCREL.
4000         (ix86_legitimate_address_p): Likewise.
4001         (legitimize_pic_address): Likewise.
4002         (output_pic_addr_const): Likewise.
4003         (ix86_delegitimize_address): Likewise.
4004         (ix86_find_base_term): Likewise.
4005         (memory_address_length): Likewise.
4006         (x86_output_mi_thunk): Handle special case x64
4007         for non local binding.
4008         * config/i386/i386.md (UNSPEC_PCREL): New.
4009         * config/i386/winnt.c (i386_pe_binds_local_p):
4010         Allow weak symbol for x64 windows with non-local binding.
4011
4012 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4013
4014         PR target/45670
4015         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
4016         instead of EXPAND_NORMAL for base expansion.
4017
4018 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
4019
4020         * config.gcc: Support --with-fpmath=avx for x86.
4021         * config/i386/avxmath.h: New.
4022         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
4023
4024 2010-11-05  Ian Lance Taylor  <iant@google.com>
4025
4026         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
4027         * gengtype.c (walk_type): Don't recognize descbits option.
4028
4029 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
4030
4031         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
4032         WORD_SWITCH_TAKES_ARG): Remove.
4033         * doc/options.texi (Args): Document.
4034         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
4035         * doc/tm.texi: Regenerate.
4036         * opt-functions.awk (switch_flags): Handle Args.
4037         * opts-common.c: Update comment on tm.h include.
4038         (decode_cmdline_option): Handle options with multiple arguments.
4039         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
4040         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
4041         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
4042         CL_COMMON): Update values.
4043         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
4044         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
4045         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
4046         sectobjectsymbols, sectorder, segcreate, segprot): New.
4047
4048 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
4049             Uros Bizjak  <ubizjak@gmail.com>
4050
4051         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
4052         256bit AVX register is used.
4053         (ix86_expand_vector_move_misalign): Likewise.
4054         (ix86_expand_vector_move): Replace use_avx256_p with
4055         VALID_AVX256_REG_MODE.
4056
4057 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
4058
4059          PR target/44750
4060         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
4061         change.  Set $@-warn.o to -Wno-error.
4062
4063         PR bootstrap/44756
4064         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
4065         comparing it to a signed value.
4066
4067         PR middle-end/44766
4068         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
4069         PR bootstrap/44770
4070         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
4071         to i.
4072
4073         PR target/44754
4074         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
4075         (m32c_function_arg).  Add comma between arguments two and three.
4076         (m32c_promote_prototypes): Remove declaration.
4077         (current_function_special_page_vector): Likewise.
4078         (m32c_regno_reg_class): Change return type to enum reg_class.
4079         (m32c_pushm_popm): Use add_reg_note.
4080         (m32c_push_rounding): Change return type to unsigned int.
4081         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
4082         enum reload_type.
4083         (m32c_insert_attributes): Constify variable name.
4084         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
4085         (m32c_prepare_shift): Remove variable lref.
4086         (m32c_expand_movcc): Remove variable cmp.
4087         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
4088         (m32c_compare_redundant): Remove variable op2.
4089         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
4090         (m32c_pragma_memregs): Assign the number to target_memregs.
4091         (m32c_pragma_address): Remove variable var_str.
4092         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
4093         enum reg_class.
4094         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
4095         * config/m32c/bitops.md (andsi3): Add default case to switch.
4096         (iorsi3, xorsi3): Likewise.
4097         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
4098         * config/m32c/jump.md (call, call_value): Likewise.
4099         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
4100         (m32c_regno_reg_class): Likewise.
4101         (current_function_special_page_vector): Declare.
4102
4103 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
4104
4105         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
4106
4107         PR tree-optimization/46099
4108         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
4109         if it is NULL and uid wasn't found in the hash table.  Just fold the
4110         result if it is NULL otherwise.  Insert other potentially needed
4111         stmts right before current stmt instead of on the entry edge.
4112         (struct elv_data): Add gsi and reset fields.
4113         (eliminate_local_variables_1): Adjust caller.  If take_address_of
4114         failed for debug stmt, set dta->reset and return.
4115         (eliminate_local_variables_stmt): Change STMT argument for GSI,
4116         pass GSI through to the callback, handle resetting of debug stmts.
4117         (eliminate_local_variables): Adjust caller.  Process debug stmts
4118         in second phase.
4119
4120         PR middle-end/43690
4121         * gimplify.c (gimplify_asm_expr): If a "m" input is a
4122         {pre,post}{in,de}crement, fail.
4123
4124         PR debug/46307
4125         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
4126         * tree-pretty-print.c (dump_generic_node): Likewise.
4127         (op_code_prio): Likewise.
4128         * cfgexpand.c (expand_debug_expr): Likewise.
4129
4130 2010-11-04  Paul Koning  <ni1d@arrl.net>
4131
4132         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
4133         constraints.
4134
4135 2010-11-04  Chao-ying Fu  <fu@mips.com>
4136
4137         * configure.ac: Test assembler support for DSP Rev1 mult.
4138         * configure: Regenerate.
4139         * config.in: Regenerate.
4140         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
4141         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
4142         (CODE_FOR_mips_multu): New define.
4143         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
4144         dspr2_32 to dsp_32.
4145         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
4146         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
4147         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
4148         New define_expand patterns.
4149         * config/mips/constraints.md (ka): Update the constraint to test
4150         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
4151         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
4152         mips_multu): Delete.
4153         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
4154         Change target constraint to "ka".
4155         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
4156         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
4157         Emit the accumulator destination when ISA_HAS_DSP_MULT.
4158         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
4159         Emit the accumulator destination when ISA_HAS_DSP_MULT.
4160         (<u>maddsidi4): Likewise.
4161         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
4162         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
4163
4164 2010-11-04  Paul Koning  <ni1d@arrl.net>
4165
4166         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
4167
4168 2010-11-04  Paul Koning  <ni1d@arrl.net>
4169
4170         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
4171
4172 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
4173
4174         Fixed using the Objective-C 2.0 dot-syntax with class names.
4175         * c-parser.c (c_parser_next_token_starts_declspecs): In
4176         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
4177         (c_parser_next_token_starts_declaration): Same.
4178         (c_parser_postfix_expression): Parse the Objective-C 2.0
4179         dot-syntax with a class name.
4180
4181 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
4182
4183         * final.c (compute_alignments): Compute/free loop info all the time.
4184         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
4185         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
4186         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
4187         * config/rs6000/rs6000.c (cfgloop.h): Include.
4188         (can_override_loop_align): New.
4189         (rs6000_option_override_internal): Set it.
4190         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
4191         (rs6000_loop_align): New function.
4192         (rs6000_loop_align_max_skip): Likewise.
4193
4194 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4195
4196         PR driver/45703
4197         * collect2.c (main): Print --help output to stdout.  Do not
4198         exit right away, so ld --help is appended.  Add empty lines
4199         to separate output suitably.
4200
4201 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
4202
4203         PR tree-optimization/46233
4204         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
4205         after calling analyze_function, not before.
4206
4207         PR target/46234
4208         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
4209         instead of build_va_arg_indirect_ref.
4210         * config/spu/spu.c (spu_va_start): Likewise.
4211         * config/s390/s390.c (s390_va_start): Likewise.
4212
4213 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
4214
4215         PR middle-end/46292
4216         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
4217         if the innermode is not vector mode, determine the mode of a subreg
4218         by using mode_for_size of inner_size.
4219
4220 2010-11-04  Richard Guenther  <rguenther@suse.de>
4221
4222         PR rtl-optimization/46183
4223         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
4224         (execute_rtl_pre): Likewise.
4225         (execute_rtl_hoist): Likewise.
4226
4227 2010-11-04  Richard Guenther  <rguenther@suse.de>
4228
4229         PR tree-optimization/46068
4230         * ipa-split.c (consider_split): Remove gcc_unreachable.
4231
4232 2010-11-04  Richard Guenther  <rguenther@suse.de>
4233
4234         * tree-nested.c (build_addr): Use build_fold_addr_expr.
4235
4236 2010-11-04  Richard Guenther  <rguenther@suse.de>
4237
4238         PR tree-optimization/45991
4239         * gimplify.c (force_gimple_operand_1): Use the provded test
4240         function in the initial test.
4241
4242 2010-11-04  Jeff Law  <law@redhat.com>
4243
4244         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
4245         of readonly memory equivalances for const/pure calls.
4246
4247 2010-11-04  Richard Guenther  <rguenther@suse.de>
4248
4249         PR tree-optimization/45733
4250         * tree-vect-stmts.c (reverse_vec_elements): Honor the
4251         permute builtins function return type.
4252
4253 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
4254
4255         PR middle-end/44765
4256         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
4257         as an index, check it is not INVALID_REGNUM.
4258
4259         PR bootstrap/44756
4260         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
4261         unsignedp.
4262         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
4263
4264         PR bootstrap/44756
4265         * function.c (thread_prologue_and_epilogue_insns): Add
4266         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
4267
4268         PR bootstrap/44756
4269         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
4270
4271         PR target/44750
4272         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
4273         (pdp11_preferred_reload_class): Rename class to rclass.
4274         (pdp11_preferred_output_reload_class): Likewise.
4275         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
4276         ALL_COMPILERFLAGS .
4277         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
4278
4279         PR bootstrap/44756
4280         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
4281         iteration variables to enum machine_mode.
4282
4283         PR target/44751
4284         * config/h8300/h8300.c: Include df.h.
4285         (push, pop): Use add_reg_note.
4286         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
4287         (compute_a_shift_cc): Likewise.
4288         (expand_a_shift): Argument code has type enum rtx_code.
4289         (struct shift_insn): Member cc_valid has type enum attr_cc.
4290         (struct shift_info) <cc_inline, cc_special>: Likewise.
4291         enum attr_cc.
4292         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
4293         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
4294
4295 2010-11-04  Ira Rosen  <irar@il.ibm.com>
4296
4297         PR tree-optimization/46213
4298         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
4299         MINUS_EXPR only if the first operand is reduction operand.
4300
4301 2010-11-04  Richard Guenther  <rguenther@suse.de>
4302             Richard Henderson  <rth@redhat.com>
4303
4304         * tree.def (FMA_EXPR): New tree code.
4305         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
4306         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
4307         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
4308         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
4309         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
4310         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
4311         (execute_optimize_widening_mul): Call it.  Reorganize to allow
4312         dead stmt removal.  Move TODO flags ...
4313         (pass_optimize_widening_mul): ... here.
4314         * flag-types.h (enum fp_contract_mode): New enum.
4315         * common.opt (flag_fp_contract_mode): New variable.
4316         (-ffp-contract): New option.
4317         * opts.c (common_handle_option): Handle it.
4318         * doc/invoke.texi (-ffp-contract): Document.
4319         * tree.h (fold_fma): Declare.
4320         * builtins.c (fold_fma): New function.
4321         (fold_builtin_fma): Likewise.
4322         (fold_builtin_3): Call it for fma.
4323         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
4324         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
4325         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
4326         New expanders.
4327         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
4328         named patterns.
4329         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
4330         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
4331         (fms_optab, fnma_optab, fnms_optab): New defines.
4332         * gimplify.c (gimplify_expr): Handle binary truth expressions
4333         explicitly.  Handle FMA_EXPR.
4334         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
4335         operations.
4336
4337 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
4338             Richard Guenther  <rguenther@suse.de>
4339
4340         * passes.c (init_optimization_passes): Move veclower after SSA.
4341         * tree-vect-generic.c (uniform_vector_p): New function.
4342         (expand_vector_operations_1): Handle conversion.
4343         (pass_lower_vector): Update SSA form.
4344
4345 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
4346
4347         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
4348         plugin capabilities.
4349         * configure: Regenerate.
4350
4351 2010-11-03  Xinliang David Li  <davidxl@google.com>
4352
4353         PR target/46200
4354         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
4355         Adjust cbase if the use stmt is after iv update.
4356
4357 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4358
4359         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
4360
4361 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4362
4363         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
4364         comment.  Pass true to the last argument of output_stack_adjust.
4365
4366 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4367
4368         PR target/46295
4369         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
4370         if 256bit AVX register is used.
4371
4372 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
4373
4374         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
4375         xsmindp/xsmaxdp on VSX for single precision min/max.
4376         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
4377         (vsx_sminsf3): Ditto.
4378
4379 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4380
4381         * combine.c (try_combine): Fix formatting issues, improve comments and
4382         fix a pasto.
4383
4384 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4385
4386         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
4387         of the result before building binary expressions.
4388
4389 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4390
4391         PR rtl-optimization/45865
4392         * Makefile.in (df-problems.o): Revert revision 164552.
4393         * basic-block.h (enum bb_flags): Likewise.
4394         * cfgcleanup.c (block_was_dirty): Likewise.
4395         (try_forward_edges): Likewise.
4396         (try_crossjump_bb): Likewise.
4397         (try_head_merge_bb): Likewise.
4398         (try_optimize_cfg): Likewise.
4399         (cleanup_cfg): Likewise.
4400         * df-core.c (df_set_bb_dirty): Likewise.
4401         * df-problems.c: Likewise.
4402         (df_simulate_find_uses): Likewise.
4403         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
4404         (find_memory, find_memory_store): Likewise.
4405         (can_move_insns_across): Likewise.
4406         * df.h (can_move_insns_across): Likewise.
4407         * ifcvt.c (find_memory): Likewise.
4408         (dead_or_predicable): Likewise.
4409
4410 2010-11-03  Richard Guenther  <rguenther@suse.de>
4411
4412         PR middle-end/46288
4413         * predict.c (strip_predict_hints): Simply DCE builtin expect if
4414         the result is unused.
4415
4416 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
4417
4418         PR tree-optimization/46009
4419         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
4420         cond_if_else_store_replacement if bb1 and bb2 have the same
4421         single successor.
4422         (cond_store_replacement): Use gimple_assign_single_p, don't
4423         check if rhs is SSA_NAME or invariant.  Call release_defs for
4424         assign.
4425         (cond_if_else_store_replacement): New function.
4426
4427 2010-11-03  Richard Guenther  <rguenther@suse.de>
4428
4429         * opts.c (finish_options): Properly check for all WHOPR
4430         flags before complaining about -flto-partition.
4431
4432 2010-11-04  Alan Modra  <amodra@gmail.com>
4433
4434         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
4435         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
4436         TARGET_SECURE_PLT.
4437         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
4438         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
4439         on input, "r" on output.
4440
4441 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
4442
4443         Implemented -fobjc-std=objc1 flag.
4444         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
4445         option.
4446         * doc/standards.texi (Standards): Updated the section on
4447         Objective-C; mention support for Objective-C 2.0 features and the
4448         new -fstd-objc=objc1 flag to disable them.
4449
4450 2010-11-03  Richard Guenther  <rguenther@suse.de>
4451
4452         PR middle-end/46241
4453         * dwarf2out.c (scope_die_for): Properly detect global scope.
4454
4455 2010-11-03  Richard Guenther  <rguenther@suse.de>
4456
4457         PR tree-optimization/46190
4458         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4459         Properly compute peel iterations.
4460
4461 2010-11-03  Richard Guenther  <rguenther@suse.de>
4462
4463         PR tree-optimization/46286
4464         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
4465         re-allocated vector data.
4466
4467 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
4468
4469         PR target/46285
4470         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
4471         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
4472         is completed.
4473
4474 2010-11-03  Richard Guenther  <rguenther@suse.de>
4475
4476         PR tree-optimization/46217
4477         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
4478         flag matches.
4479         (execute_update_addresses_taken): Likewise.
4480
4481 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
4482
4483         PR bootstrap/44335
4484         * targhooks.c (targhook_words_big_endian): New function.
4485         (targhook_float_words_big_endian): Likewise.
4486         * targhooks.h (targhook_words_big_endian): Declare.
4487         (targhook_float_words_big_endian): Likewise.
4488         * target.def (words_big_endian, float_words_big_endian): New hooks.
4489
4490 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
4491
4492         PR tree-optimization/46165
4493         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
4494         a normal call into noreturn call.
4495
4496 2010-11-03  Richard Guenther  <rguenther@suse.de>
4497
4498         PR middle-end/46251
4499         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
4500         not INDIRECT_REFs.
4501
4502 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
4503
4504         PR tree-optimization/46107
4505         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
4506         if cfg_hook_duplicate_loop_to_header_edge failed.
4507
4508 2010-11-03  Ian Lance Taylor  <iant@google.com>
4509
4510         PR lto/46273
4511         * config.gcc: Don't set lto_binary_reader.
4512         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
4513         (Configuration): Mention --disable-lto.  Remove --with-libelf
4514         paragraph.
4515
4516 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
4517
4518         PR debug/46252
4519         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
4520         prev_real_insn.
4521         * gcse.c (insert_insn_end_basic_block): Likewise.
4522
4523         PR rtl-optimization/46034
4524         PR rtl-optimization/46212
4525         PR rtl-optimization/46248
4526         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
4527         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
4528         before i0dest -> i0src substitution and pass 1 instead of 0 as last
4529         argument to subst on i2pat.
4530
4531 2010-11-02  Ian Lance Taylor  <iant@google.com>
4532
4533         * configure.ac: Use AC_SYS_LARGEFILE.
4534         * configure: Rebuild.
4535         * config.in: Rebuild.
4536
4537 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
4538
4539         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
4540         fold_convert.
4541         * c-typeck.c (build_function_call_vec): Likewise.
4542         * cfgexpand.c (expand_debug_expr): Likewise.
4543         * cgraphunit.c (assemble_thunk): Likewise.
4544         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
4545         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
4546         (fold_binary_loc, fold_ternary_loc): Likewise.
4547         * gimple-fold.c (get_symbol_constant_value): Likewise.
4548         * gimple-low.c (lower_builtin_setjmp): Likewise.
4549         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
4550         * gimplify.c (gimplify_init_constructor): Likewise.
4551         * lambda.h (build_linear_expr): Likewise.
4552         * omp-low.c (omp_reduction_init): Likewise.
4553         * tree-inline.c (remap_ssa_name): Likewise.
4554         * tree-object-size.c (compute_object_sizes): Likewise.
4555         * tree-sra.c (init_subtree_with_zero): Likewise.
4556         (sra_ipa_modify_assign): Likewise.
4557         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
4558         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
4559         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
4560         (undistribute_ops_list): Likewise.
4561         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
4562         * tree-vect-stmts.c (vectorizable_call): Likewise.
4563         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
4564         (build_zero_cst): Handle more cases directly.  Update comment.
4565
4566 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
4567
4568         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
4569         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
4570
4571         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
4572         and call ix86_split_call_vzeroupper instead of
4573         ix86_split_call_pop_vzeroupper.
4574         (*call_pop_1_vzeroupper): Likewise.
4575         (*sibcall_pop_1_vzeroupper): Likewise.
4576         (*call_value_pop_0_vzeroupper): Likewise.
4577         (*call_value_pop_1_vzeroupper): Likewise.
4578         (*sibcall_value_pop_1_vzeroupper): Likewise.
4579
4580 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
4581
4582         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
4583
4584 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
4585
4586         * basic-block.h (insert_insn_end_bb_new): Delete.
4587         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
4588
4589 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
4590             H.J. Lu  <hongjiu.lu@intel.com>
4591
4592         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
4593         (ix86_split_call_pop_vzeroupper): Likewise.
4594
4595         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
4596         (ix86_expand_call): Conditionally decorate calls with
4597         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
4598         (ix86_split_call_vzeroupper): New.
4599         (ix86_split_call_pop_vzeroupper): Likewise.
4600
4601         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
4602         (*call_pop_0_vzeroupper): New insn_and_split pattern.
4603         (*call_pop_1_vzeroupper): Likewise.
4604         (*sibcall_pop_1_vzeroupper): Likewise.
4605         (*call_0_vzeroupper): Likewise.
4606         (*call_1_vzeroupper): Likewise.
4607         (*sibcall_1_vzeroupper): Likewise.
4608         (*call_1_rex64_vzeroupper): Likewise.
4609         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
4610         (*call_1_rex64_large_vzeroupper): Likewise.
4611         (*sibcall_1_rex64_vzeroupper): Likewise.
4612         (*call_value_pop_0_vzeroupper): Likewise.
4613         (*call_value_pop_1_vzeroupper): Likewise.
4614         (*sibcall_value_pop_1_vzeroupper): Likewise.
4615         (*call_value_0_vzeroupper): Likewise.
4616         (*call_value_0_rex64_vzeroupper): Likewise.
4617         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
4618         (*call_value_1_vzeroupper): Likewise.
4619         (*sibcall_value_1_vzeroupper): Likewise.
4620         (*call_value_1_rex64_vzeroupper): Likewise.
4621         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
4622         (*call_value_1_rex64_large_vzeroupper): Likewise.
4623         (*sibcall_value_1_rex64_vzeroupper): Likewise.
4624
4625 2010-11-02  Ian Lance Taylor  <iant@google.com>
4626
4627         PR lto/46273
4628         * config.gcc: Revert last patch: set lto_binary_reader.
4629
4630 2010-11-02  Richard Guenther  <rguenther@suse.de>
4631
4632         PR tree-optimization/46149
4633         * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
4634         non-indirect MEM_REF variants.
4635
4636 2010-11-02  Richard Guenther  <rguenther@suse.de>
4637
4638         PR tree-optimization/46216
4639         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
4640         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
4641
4642 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4643
4644         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
4645         (*-*-osf*): Likewise.
4646         * configure: Regenerate.
4647
4648 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
4649
4650         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
4651         for Intel Core 2 and Core i7.
4652
4653 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
4654
4655         Model decoder of Core 2/i7 for multipass scheduling.
4656
4657         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
4658         New type to hold target-specific data for multipass scheduling.
4659         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
4660         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
4661         Core 2/i7.
4662         (core2i7_secondary_decoder_max_insn_size,)
4663         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
4664         New static variables.
4665         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
4666         ([_]ix86_first_cycle_multipass_data): New static variable.
4667         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
4668         Implement targetm.sched hooks.
4669         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
4670         of ...
4671         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
4672         Implement new targetm.sched hooks.
4673         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
4674         targetm.sched hook to install multipass scheduling hooks on demand.
4675
4676         * doc/tm.texi.in: Document new targetm.sched hooks.
4677         * doc/tm.texi: Regenerate.
4678
4679         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
4680         (first_cycle_multipass_data_t): New typedef.
4681         (struct choice_entry: target_data): New field.
4682         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
4683         to allow target model restrictions not represented in DFA.
4684         (choose_ready, schedule_block): Update.
4685         (sched_extend_ready_list, sched_finish_ready_list): Call new target
4686         hooks to initialize target-specific data for multipass scheduling.
4687         * sched-int.h (max_issue): Update declaration.
4688         * sel-sched.c (choose_best_insn): Update.
4689         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
4690         (first_cycle_multipass_{init, fini}): Define and document new
4691         targetm.sched hooks.
4692
4693 2010-11-02  Richard Guenther  <rguenther@suse.de>
4694
4695         PR tree-optimization/46184
4696         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
4697         input vector type from the reduction operand as well.
4698
4699 2010-11-02  Richard Guenther  <rguenther@suse.de>
4700
4701         PR tree-optimization/46177
4702         * tree-loop-distribution.c (prop_phis): Use
4703         mark_virtual_phi_result_for_renaming.
4704
4705 2010-11-02  Martin Jambor  <mjambor@suse.cz>
4706
4707         PR middle-end/46120
4708         * tree.c (get_binfo_at_offset): Bail out on artificial
4709         fields.  Identify primary bases according to their offsets.
4710
4711 2010-11-02  Martin Jambor  <mjambor@suse.cz>
4712
4713         PR tree-optimization/45875
4714         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
4715         (gimple_get_relevant_ref_binfo): Detect primary bases according to
4716         their field offset.
4717
4718 2010-11-02  Ian Lance Taylor  <iant@google.com>
4719
4720         * doc/install.texi (Configuration): Note in two places that Java
4721         is not enabled by default.
4722
4723 2010-11-02  Ian Lance Taylor  <iant@google.com>
4724
4725         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
4726         (Configuration): Mention --disable-lto.  Remove --with-libelf
4727         paragraph.
4728
4729 2010-11-02  Ian Lance Taylor  <iant@google.com>
4730
4731         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
4732         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
4733         LIBELFINC.  Remove HAVE_libelf.
4734         * config.gcc: Don't set lto_binary_reader.
4735         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
4736         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
4737         (LIBS): Remove $(LIBELFLIBS).
4738         (INCLUDES): Remove $(LIBELFINC).
4739         * configure: Rebuild.
4740         * config.in: Rebuild.
4741
4742 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
4743
4744         * config/microblaze/microblaze-protos.h (function_arg): Delete.
4745         (function_arg_advance): Delete.
4746         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
4747         (FUNCTION_ARG): Delete.
4748         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
4749         (microblaze_function_arg_advance): ...this.  Make static.  Take a
4750         const_tree and a bool.
4751         (function-arg): Rename to...
4752         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
4753         and a bool.
4754         (microblaze_expand_prologue): Call targetm.calls.function_arg and
4755         targetm.calls.function_arg_advance.
4756         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4757
4758 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
4759
4760         Merge from FSF "apple/trunk" branch.
4761
4762         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
4763         * config/darwin.opt: .. to here.
4764         (matt-stubs): New option.
4765         * config/i386/darwin.opt: Delete.
4766         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
4767         (MACHO_DYNAMIC_NO_PIC_P): New.
4768         (MACHOPIC_INDIRECT): New.
4769         (MACHOPIC_PURE): New.
4770         * config/i386/darwin.h (DARWIN_X86) Define to 1.
4771         (MACHOPIC_ATT_STUB): New.
4772         (CC1_SPEC): Do not remove mdynamic-no-pic.
4773         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
4774         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
4775         (FUNCTION_PROFILER): Correct over-length line.
4776         (SUBTARGET_OVERRIDE_OPTIONS): New.
4777         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
4778         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
4779         (legitimate_constant_p): Handle mdynamic-no-pic.
4780         (ix86_legitimate_address_p): Likewise.
4781         (ix86_legitimize_address): Likewise.
4782         (ix86_expand_move): Likewise.
4783         (machopic_output_stub): Update for ATT-style stubs and
4784         mdynamic-no-pic.
4785         * config/darwin-protos.h (machopic_symbol_defined_p): New.
4786         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
4787         TARGET_DYNAMIC_NO_PIC: Remove.
4788         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
4789         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
4790         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
4791         Remove handling of mdynamic-no-pic.
4792         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
4793         Define if required.
4794         (machopic_symbol_defined_p): Do not try to use current_function_decl
4795         when generating _get_pc thunks within stubs.
4796         (machopic_indirect_data_reference): Rework for direct conditionals
4797         rather than #ifdefs, add x86 mdynamic-no-pic
4798         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
4799         defined value.
4800         (darwin_override_options): Handle mdynamic-no-pic here.
4801         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
4802         (machopic_lazy_symbol_ptr3_section): New.
4803         (machopic_picsymbol_stub2_section): New.
4804         (machopic_picsymbol_stub3_section): New.
4805         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
4806         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
4807         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
4808         Moved common definition from x86 and rs6000.
4809         (MACHO_DYNAMIC_NO_PIC_P): Override value.
4810         (MACHOPIC_INDIRECT): Likewise.
4811         (MACHOPIC_PURE): Likewise.
4812         * config.gcc (x86-darwin-*): Remove darwin.opt.
4813
4814 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
4815
4816         PR debug/46255
4817         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
4818         instead of gsi_last_bb.
4819
4820 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
4821             Maxim Kuvyrkov  <maxim@codesourcery.com>
4822
4823         * config/i386/i386.c (cpu_names): Add "corei7".
4824         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
4825
4826 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
4827             Maxim Kuvyrkov  <maxim@codesourcery.com>
4828
4829         Tune alignment for Intel Core i7
4830
4831         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
4832         (enum processor_type): Update comment.  Add entries for Core i7.
4833         * config/i386-c.c (ix86_target_macros_internal): Update.
4834         * config/i386.c (m_COREI7{_32,_64}): New macros.
4835         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
4836         (processor_target_table): Tune alignment for Core i7.
4837         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
4838
4839         * doc/invoke.texi: Document "corei7" option value.
4840
4841 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
4842             Maxim Kuvyrkov  <maxim@codesourcery.com>
4843             H.J. Lu  <hjl.tools@gmail.com>
4844
4845         Basic support for Intel Core i7
4846
4847         * i386.c (ix86_option_override_internal): Add entry for corei7, use
4848         generic tuning.  Use generic32 when compiling for 32-bit ABI.
4849
4850 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
4851
4852         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
4853         sections and call darwin_asm_dwarf_section() to handle them.
4854         (darwin_asm_dwarf_section): New.
4855         (darwin_file_start): Remove code emitting dwarf section symbols.
4856
4857 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
4858
4859         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
4860         explicitly disable stack protection when building libgcc.
4861         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
4862
4863 2010-11-01  Jason Merrill  <jason@redhat.com>
4864
4865         * fold-const.c (fold_indirect_ref_1): Handle folding
4866         POINTER_PLUS_EXPR to ARRAY_REF.
4867
4868 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
4869
4870         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
4871         (sh_delegitimize_address): New function.
4872
4873 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
4874
4875         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
4876         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
4877         (CC1_SPEC): Don't handle -target.
4878         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
4879         options.
4880         * config/darwin.opt (Zallowable_client, Zbundle_loader,
4881         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
4882         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
4883         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
4884         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
4885         Zweak_reference_mismatches, client_name, compatibility_version,
4886         current_version, dylinker_install_name, pagezero_size,
4887         read_only_relocs, seg1addr, segs_read_only_addr,
4888         segs_read_write_addr, sub_library, sub_umbrella): New.
4889         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
4890         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
4891         * config/freebsd.opt: New.
4892         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
4893         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
4894         * config/rpath.opt: New.
4895         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
4896         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
4897         Use rpath.opt.
4898
4899 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
4900
4901         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
4902         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
4903         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
4904         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
4905         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
4906         Document that options in .opt files do not need to be included.
4907         * doc/tm.texi: Regenerate.
4908         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
4909         * opts-common.c: Update comment on tm.h include.
4910         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
4911         * system.h (SWITCH_TAKES_ARG): Poison.
4912         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
4913         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
4914         in darwin.opt.
4915         (LINK_COMMAND_SPEC_A): Don't include %{x}.
4916         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4917         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
4918         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
4919         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4920         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
4921         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
4922         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
4923         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
4924         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4925         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
4926         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
4927         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
4928         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
4929         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
4930         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
4931         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
4932         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
4933         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
4934         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
4935         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
4936         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
4937         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
4938         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4939
4940 2010-11-01  Paul Koning  <ni1d@arrl.net>
4941
4942         * config/pdp11/pdp11.md: Use iterators.
4943         (addqi3, subqi3, iorsi3, xorsi3): Delete.
4944
4945 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
4946
4947         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
4948         GCC_INSN_FLAGS_H.
4949         * libgcov.c (__gcov_indirect_call_profiler): Set
4950         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
4951         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
4952
4953 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
4954
4955         PR tree-optimization/46259
4956
4957         Revert:
4958         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
4959         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
4960         build_vector_from_val.
4961
4962 2010-11-01  DJ Delorie  <dj@redhat.com>
4963
4964         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
4965         as well as an assertion.
4966
4967 2010-11-01  Paul Koning  <ni1d@arrl.net>
4968
4969         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
4970         complex modes in memory.
4971
4972 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
4973
4974         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
4975
4976 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
4977
4978         PR target/45250
4979         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
4980         (cfa_base_offset): New variable.
4981         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
4982         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
4983         is NULL.
4984         (vt_init_cfa_base): Initialize cfa_base_offset.
4985
4986 2010-11-01  Alan Modra  <amodra@gmail.com>
4987
4988         PR target/46030
4989         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
4990         and savres_strategy.
4991         (stack_info): New file scope var.
4992         (rs6000_init_machine_status): Init stack_info.
4993         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
4994         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
4995         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
4996         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
4997         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
4998         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
4999         (rs6000_savres_strategy): Rewrite.
5000         (rs6000_stack_info): Use "stack_info" in place of local "info".
5001         Return cached stack info when reload_completed unless ENABLE_CHECKING
5002         in which case confirm newly calculated stack info matches old info.
5003         Delay calculation of lr_save_p, set it for out of line gp save/restore
5004         as well as fp.  Call rs6000_savres_strategy from here..
5005         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
5006         (rs6000_output_function_prologue): Use info->savres_strategy to
5007         determine whether fp save/restore externs need to be emitted.
5008
5009 2010-10-31  Jason Merrill  <jason@redhat.com>
5010
5011         * tree.h (EXPR_LOC_OR_HERE): New macro.
5012         * builtins.c (c_strlen): Use it.
5013         * c-decl.c (build_enumerator): Likewise.
5014         * gimplify.c (internal_get_tmp_var): Likewise.
5015         (shortcut_cond_expr): Likewise.
5016         (gimplify_one_sizepos): Likewise.
5017
5018 2010-10-31  Richard Henderson  <rth@redhat.com>
5019
5020         * config/i386/cygming.h (TARGET_SEH): New.
5021         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
5022         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
5023         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
5024         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
5025         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
5026         (ASM_DECLARE_FUNCTION_SIZE): New.
5027         * config/i386/i386-protos.h: Update.
5028         * config/i386/i386.c (ix86_option_override_internal): Enable
5029         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
5030         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
5031         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
5032         (ix86_compute_frame_layout): For SEH, disable
5033         use_fast_prologue_epilogue, move frame pointer to the end of
5034         the frame.  Initialize hfp_save_offset.
5035         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
5036         at end of prologue for SEH.
5037         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
5038         emit blockage at beginning of epilogue.
5039         (ix86_expand_binary_operator): After reload, emit LEA if needed.
5040         (ix86_output_call_insn): New.
5041         * config/i386/i386.h (TARGET_SEH): New.
5042         (struct machine_function): Add member seh.
5043         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
5044         * config/i386/winnt.c (struct seh_frame_state): New.
5045         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
5046         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
5047         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
5048         i386_pe_start_function, i386_pe_end_function): New.
5049
5050         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
5051         as CFA_STORE in rules 12 and 13.
5052
5053 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
5054
5055         PR tree-optimization/46142
5056         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
5057         accommodate third function argument.
5058
5059 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5060
5061         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
5062
5063 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5064
5065         * fold-const.c (build_zero_vector): Use build_vector_from_val.
5066         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
5067         (get_initial_def_for_reduction): Likewise.
5068         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5069         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
5070         * tree.c (build_one_cst): Likewise.
5071         (build_vector_from_val): Use types_compatible_p for assert.
5072
5073 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
5074
5075         * emit-rtl.c (mark_used_flags): New function.
5076         (set_used_flags, reset_used_flags): Call it.
5077
5078 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
5079
5080         PR middle-end/44569
5081         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
5082         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
5083
5084 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5085
5086         PR target/46195
5087         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
5088         (ix86_compat_aligned_value_p): This.
5089         (ix86_old_function_arg_boundary): Renamed to ...
5090         (ix86_compat_function_arg_boundary): This.  Updated.
5091         (ix86_contains_aligned_value_p): New.
5092         (ix86_function_arg_boundary): Align long double parameters on
5093         stack to 4byte in 32bit.
5094
5095 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
5096
5097         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5098         * c-parser.c (c_parser_objc_at_property_declaration): Removed
5099         parsing of RID_COPIES and RID_IVAR.  Updated call to
5100         objc_add_property_declaration.
5101         * c-typecheck.c (build_component_ref): Call
5102         objc_maybe_build_component_ref instead of objc_build_setter_call.
5103         Use objc_is_property_ref to improve Objective-C checks.
5104         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
5105         of objc_build_getter_call.
5106
5107 2010-10-29  Paul Koning  <ni1d@arrl.net>
5108
5109         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
5110         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
5111         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
5112         (REG_OK_STRICT): Move description.
5113
5114 2010-10-29  Paul Koning  <ni1d@arrl.net>
5115
5116         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
5117
5118 2010-10-29  Paul Koning  <ni1d@arrl.net>
5119
5120         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
5121
5122 2010-10-29  Paul Koning  <ni1d@arrl.net>
5123
5124         PR/41822
5125         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
5126
5127 2010-10-29  Richard Henderson  <rth@redhat.com>
5128
5129         PR rtl-opt/46226
5130         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
5131         for asm goto.
5132
5133 2010-10-29  Paul Koning  <ni1d@arrl.net>
5134
5135         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
5136         register to register move.
5137
5138 2010-10-29  Paul Koning  <ni1d@arrl.net>
5139
5140         * config/pdp11/pdp11.c (print_operand_address): Correct handling
5141         of integer constant addresses, delete vax-only logic.
5142
5143 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
5144
5145         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
5146         a conditional expression.
5147
5148 2010-10-29  Paul Koning  <ni1d@arrl.net>
5149
5150         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
5151         instruction encoding.
5152
5153 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
5154             Andrew Pinski  <pinskia@gmail.com>
5155
5156         * tree.h (build_vector_from_val): Declare.
5157         * tree.c (build_vector_from_val): New function.
5158         * c-typeck.c (build_binary_op): Handle vector shifting.
5159         * doc/extend.texi: Description of the vector shifting operation.
5160
5161 2010-10-29  Paul Koning  <pkoning@equallogic.com>
5162
5163         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
5164         pdp11_secondary_memory_needed): Declare.
5165         * config/pdp11/predicates.md (float_operand): New predicate.
5166         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
5167         (cbranchdf4, movdf): Change predicate.
5168         (movsf): Handle FPU register case.
5169         (truncdfsf2, extendsfdf2): Add FPU register case.
5170         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
5171         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
5172         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5173         (pdp11_register_move_cost): Update cost matrix.
5174         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
5175         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
5176         pdp11_secondary_memory_needed): New function.
5177         (pdp11_return_in_memory): Add other float types.
5178         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
5179         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
5180         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
5181         REGISTER_MOVE_COST): Delete.
5182         (BASE_RETURN_VALUE_REG): Add other float types.
5183
5184 2010-10-29  Nick Clifton  <nickc@redhat.com>
5185
5186         * doc/invoke.texi: Document -mam34 and -mtune options.
5187         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
5188         (mn10300_tune_cpu): New variable.
5189         (mn10300_handle_option): Handle -mam34 and -mtune options.
5190         (mn10300_option_override): Convert tune string into tune cpu variable.
5191         (mn10300_legitimate_constant_p): Delete unused local variable.
5192         (is_load_insn): New function.
5193         (is_store_insn): New function.
5194         (mn10300_adjust_schedule_cost): New function.
5195         (TARGET_SCHED_ADJUST_COST): Define.
5196         * config/mn10300/mn10300.opt (mam34): New option.
5197         (mtune): New option.
5198         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
5199         (enum processor_type): Add AM34.
5200         (TARGET_AM34): Define.
5201         * config/mn10300/mn10300.md (attr cpu): Add am34.
5202         Add pipeline description.
5203         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
5204         Remove unneeded alternatives.  Add timing attribute.
5205         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
5206         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
5207         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
5208         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
5209         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
5210         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
5211         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
5212         float_conditional_branch, jump, indirect_jump, tablejump,
5213         call_internal, call_value_internal, zero_extendqisi2_am33,
5214         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
5215         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
5216         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
5217         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
5218         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
5219         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
5220         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
5221         return_internal_regs, store_movm, return, call_next_insn):
5222         Add timing attribute.
5223         (am33_subsi3): Add missing clobber of CC_REG.
5224         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
5225         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
5226         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
5227         extendqisi2): Fix predicates.
5228         (call_internal, call_internal_value): Separate alternatives.
5229         * config/mn10300/t-mn10300: Add AM34 multilib.
5230
5231 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
5232
5233         * config/sh/sh.c (sh_promote_function_mode): Use
5234         default_promote_function_mode if !sh_promote_prototypes.
5235
5236 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
5237
5238         * recog.c (split_all_insns): Remove dead code.
5239
5240 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5241
5242         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5243
5244 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5245
5246         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
5247         (FUNCTION_ARG_ADVANCE): Delete.
5248         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
5249         functions.
5250         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
5251         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5252         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5253
5254 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5255
5256         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
5257         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5258         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
5259         Take a const_tree and a bool.
5260         (mcore_function_arg_advance): New function.
5261         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5262
5263 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5264
5265         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
5266         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5267         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
5268         Take a const_tree and a bool.
5269         (mcore_function_arg_advance): New function.
5270         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5271
5272 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5273
5274         * config/h8300/h8300-protos.h (function_arg): Delete.
5275         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5276         * config/h8300/h8300.c (function_arg): Rename to...
5277         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
5278         a bool.
5279         (h8300_function_arg_advance): New function.
5280         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5281
5282 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5283
5284         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
5285         to...
5286         * config/arc/arc.c (arc_function_arg): ...here and...
5287         (arc_function_arg_advance): ...here.  New functions.
5288         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5289
5290 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5291
5292         * config/crx/crx-protos.h (crx_function_arg): Delete.
5293         (crx_function_arg_advance): Delete.
5294         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5295         * config/crx/crx.c (crx_function_arg): Make static.  Take a
5296         const_tree and a bool.
5297         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
5298         (enough_regs_for_param): Take a const_tree.
5299         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5300
5301 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5302
5303         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
5304         (m68hc11_function_arg_advance): Delete.
5305         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
5306         (FUNCTION_ARG_ADVANCE): Delete.
5307         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
5308         Take a const_tree and a bool.
5309         (m68hc11_function_arg_advance): Likewise.
5310         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5311
5312 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5313
5314         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
5315         (xstormy16_function_arg_advance): Delete.
5316         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
5317         (FUNCTION_ARG_ADVANCE): Delete.
5318         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
5319         Take a const_tree and a bool.
5320         (xstormy16_function_arg_advance): Likewise.  Return void, updating
5321         the CUM parameter instead.
5322         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5323
5324 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5325
5326         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
5327         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5328         (MOXIE_FUNCTION_ARG_SIZE): Move to...
5329         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
5330         (moxie_function_arg): Make static.  Take a const_tree and a bool.
5331         (moxie_function_arg_advance): New function.
5332         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5333
5334 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5335
5336         * config/mn10300/mn10300-protos.h (function_arg): Delete.
5337         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
5338         (FUNCTION_ARG_ADVANCE): Delete.
5339         * config/mn10300/mn10300.c (function_arg): Rename to...
5340         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
5341         and a bool.
5342         (mn10300_function_arg_advance): New function.
5343         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5344
5345 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5346
5347         * config/iq2000/iq2000-protos.h (function_arg): Delete.
5348         (function_arg_advance): Delete.
5349         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5350         * config/iq2000/iq2000.c (function_arg): Rename to...
5351         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
5352         a bool.
5353         (function_arg_advance): Rename to...
5354         (iq2000_function_arg_advance): ...this.  Make static.  Take a
5355         const_tree and a bool.
5356         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
5357         iq2000_function_arg.
5358         (iq2000_pass_by_reference): Call iq2000_function_arg).
5359         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5360
5361 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5362
5363         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
5364         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5365         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
5366         const_tree.
5367         (fr30_function_arg): New function.
5368         (fr30_function_arg_advance): New function.
5369         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5370
5371 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
5372
5373         * config/frv/frv-protos.h (frv_function_arg): Delete.
5374         (frv_function_arg_advance): Delete.
5375         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5376         * config/frv/frv.c (frv_function_arg): Rename to...
5377         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
5378         (frv_function_arg, frv_function_incoming_arg): New functions.
5379         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
5380         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5381         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5382
5383 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
5384
5385         PR target/46153
5386         * config/i386/sse.md (sse_movhlps_exp): Use destination
5387         returned from ix86_fixup_binary_operands to expand insn.
5388         (sse_movlhps_exp): Ditto.
5389         (sse_loadhps_exp): Ditto.
5390         (sse_loadlps_exp): Ditto.
5391         (sse2_loadhpd_exp): Ditto.
5392         (sse2_loadlpd_exp): Ditto.
5393
5394 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
5395
5396         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
5397         constants in thumb2.
5398
5399 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
5400
5401         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
5402         arithmetics in masking operations.
5403         (contains_muldiv): Likewise.
5404         (try_combine): Likewise.
5405         (find_split_point): Likewise.
5406         (combine_simplify_rtx): Likewise.
5407         (simplify_if_then_else): Likewise.
5408         (simplify_set): Likewise.
5409         (expand_compound_operation): Likewise.
5410         (expand_field_assignment): Likewise.
5411         (make_extraction): Likewise.
5412         (extract_left_shift): Likewise.
5413         (make_compound_operation): Likewise.
5414         (force_to_mode): Likewise.
5415         (make_field_assignment): Likewise.
5416         (reg_nonzero_bits_for_combine): Likewise.
5417         (simplify_shift_const_1): Likewise.
5418         (simplify_comparison): Likewise.
5419
5420 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
5421
5422         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
5423         (ia64_function_arg_advance): Delete.
5424         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
5425         (FUNCTION_ARG_ADVANCE): Delete.
5426         * config/ia64/ia64.c (ia64_function_arg): Rename to...
5427         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
5428         bool arguments.
5429         (ia64_function_arg, ia64_function_incoming_arg): New functions.
5430         (ia64_function_arg_advance): Make static.  Take a const_tree and
5431         a bool.
5432         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
5433         (TARGET_FUNCTION_ARG_ADVANCE): Define.
5434
5435 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
5436
5437         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
5438         (TARGET_GET_RAW_ARG_MODE): New.
5439         * doc/tm.texi: Regenerate.
5440         * target.def (get_raw_result_mode): New.
5441         (get_raw_arg_mode): New.
5442         * targhooks.c (default_get_reg_raw_mode): New.
5443         * targhooks.h (default_get_reg_raw_mode): New.
5444         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
5445         (apply_result_size): Ditto.
5446         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
5447         (TARGET_GET_RAW_RESULT_MODE): Define.
5448         (TARGET_GET_RAW_ARG_MODE): Ditto.
5449
5450 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
5451
5452         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
5453         for newer Solaris 10 release.
5454         (sparc_fallback_frame_state): Likewise.
5455
5456 2010-10-27  Jason Merrill  <jason@redhat.com>
5457
5458         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
5459         variables sooner.
5460
5461 2010-10-27  Jie Zhang  <jie@codesourcery.com>
5462             Maxim Kuvyrkov  <maxim@codesourcery.com>
5463
5464         * haifa-sched.c (ISSUE_POINTS): Remove.
5465         (max_issue): Don't issue more than issue_rate instructions.
5466
5467 2010-10-27  Ian Lance Taylor  <iant@google.com>
5468
5469         PR target/46197
5470         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
5471         (split_stack_return): Replace UNSPEC_STACK_CHECK with
5472         UNSPECV_SPLIT_STACK_RETURN.
5473
5474 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
5475
5476         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
5477
5478         * config/i386/i386.c (block_info): New.
5479         (BLOCK_INFO): Likewise.
5480         (call_avx256_state): Likewise.
5481         (check_avx256_stores): Likewise.
5482         (move_or_delete_vzeroupper_2): Likewise.
5483         (move_or_delete_vzeroupper_1): Likewise.
5484         (move_or_delete_vzeroupper): Likewise.
5485         (use_avx256_p): Likewise.
5486         (function_pass_avx256_p): Likewise.
5487         (flag_opts): Add -mvzeroupper.
5488         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
5489         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
5490         is disabled.
5491         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
5492         generate vzeroupper.
5493         (init_cumulative_args): Add an int to indicate caller.  Set
5494         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
5495         based on return type.
5496         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
5497         caller_pass_avx256_p based on argument type.
5498         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
5499         is used, but not returned by caller.
5500         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
5501         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
5502         is used.
5503         (ix86_minimum_alignment): Likewise.
5504         (ix86_expand_special_args_builtin): Set target to
5505         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
5506         (ix86_reorg): Run the vzeroupper optimization if needed.
5507
5508         * config/i386/i386.h (ix86_args): Add caller.
5509         (INIT_CUMULATIVE_ARGS): Updated.
5510         (machine_function): Add use_vzeroupper_p, use_avx256_p,
5511         caller_pass_avx256_p, caller_return_avx256_p,
5512         callee_pass_avx256_p and callee_return_avx256_p.
5513
5514         * config/i386/i386.opt (-mvzeroupper): New.
5515
5516         * config/i386/predicates.md (vzeroupper_operation): Removed.
5517
5518         * config/i386/sse.md (avx_vzeroupper): Removed.
5519         (*avx_vzeroupper): Removed.
5520         (avx_vzeroupper): New.
5521
5522         * doc/invoke.texi: Document -mvzeroupper.
5523
5524 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
5525
5526         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
5527         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
5528         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
5529
5530 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
5531             Olivier Hainque  <hainque@adacore.com>
5532
5533         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
5534         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
5535         fs->signal_frame instead.
5536
5537 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
5538
5539         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
5540         parsing of RID_COPIES and RID_IVAR.
5541
5542 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
5543
5544         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
5545         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
5546         Do not use objc_set_property_attr, but use local variables
5547         instead.  Detect repeated usage of setter, getter and ivar
5548         attributes.  Improved error processing when a setter name does not
5549         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
5550         that the token is a keyword.  Updated call to
5551         objc_add_property_declaration.
5552
5553 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
5554
5555         * c-parser.c (c_parser_objc_at_property): Renamed to
5556         c_parser_objc_at_property_declaration.  Updated calls to
5557         objc_add_property_variable, now objc_add_property_declaration.
5558         Code rewritten to be much more robust in recovering from syntax
5559         errors.  Added comments.
5560         (c_parser_objc_property_attrlist): Removed.
5561         (c_parser_external_declaration): Updated calls to
5562         c_parser_objc_at_property, now
5563         c_parser_objc_at_property_declaration.
5564         (c_parser_objc_methodprotolist): Same change.
5565
5566 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
5567
5568         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
5569
5570 2010-10-26  Jan Hubicka  <jh@suse.cz>
5571
5572         * ipa.c (process_references): Enqueue all referenced nodes;
5573         mark as reachable only non-external nodes.
5574         (cgraph_remove_unreachable_nodes): All referenced nodes should
5575         be enqueued; remove bogues node->needed check.
5576
5577 2010-10-26  Jan Hubicka  <jh@suse.cz>
5578
5579         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
5580         to represent OMP.
5581
5582 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
5583
5584         * config/i386/i386.md (split_stack_return): Replace
5585         unspec_volatile with unspec.
5586
5587 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
5588
5589         * doc/install.texi: Fix typo in --with-sysroot description.
5590
5591 2010-10-26  Jan Hubicka  <jh@suse.cz>
5592
5593         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5594         Use info provided by linker plugin.
5595
5596 2010-10-26  Jason Merrill  <jason@redhat.com>
5597
5598         * varasm.c (constructor_static_from_elts_p): Don't require a
5599         CONSTRUCTOR to have elements to be suitable for static
5600         initialization.  Allow ARRAY_TYPE as well.
5601
5602 2010-10-26  Jan Hubicka  <jh@suse.cz>
5603
5604         PR middle-end/45736
5605         * cgraph.c (cgraph_set_readonly_flag): Rename to...
5606         (cgraph_set_const_flags) ... this one; get also looping argument;
5607         clear constructor/destructor flags.
5608         (cgraph_set_pure_flag): Likewise.
5609         (cgraph_set_looping_const_or_pure_flag): Remove.
5610         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
5611         to optimize away static ctors/dtors; it does not work on inline clones;
5612         external functions can always be rmeoved.
5613         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
5614         inline clones; in LTO external functions always can go.
5615         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
5616         (cgraph_mark_address_taken_node): Assert that we are not taking
5617         address of inline clone.
5618         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
5619         external functions.
5620         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
5621         address taken.
5622         (ipcp_initialize_node_lattices): Only local functions can be
5623         handled without cloning.
5624         * cgraph.h (cgraph_set_readonly_flag,
5625         cgraph_set_looping_const_or_pure_flag): Remove.
5626         (cgraph_set_const_flag): Declare.
5627         (cgraph_set_pure_flag): Update.
5628         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
5629         flags setting code.
5630         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
5631         look at inline clones; fix handling of external definitions.
5632         (cgraph_postorder): Do not look at inline clones in the first pass.
5633         (function_and_variable_visibility): Drop constructors/destructor
5634         flags at pure and const functions.
5635         * tree-profile.c (tree_profiling): Update.
5636         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
5637         address taken; external functions do not account to whole program size.
5638         (cgraph_decide_inlining): Likewise; do not try to inline
5639         functions already inlined.
5640
5641 2010-10-26  Jie Zhang  <jie@codesourcery.com>
5642
5643         * doc/invoke.texi: Improve documentation of
5644         -fstrict-volatile-bitfields.
5645
5646 2010-10-26  Ira Rosen  <irar@il.ibm.com>
5647
5648         PR tree-optimization/46167
5649         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
5650         is basic block for the statement.
5651
5652 2010-10-26  Paul Koning  <ni1d@arrl.net>
5653
5654         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
5655         current definition of struct_real_format.
5656
5657 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
5658
5659         PR target/44948
5660         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
5661         (ix86_function_arg_boundary): Always align parameters on stack
5662         in 64bit and align parameters with alignment >= 16byte on stack
5663         in 32bit.  Warn alignment change.
5664
5665 2010-10-26  Ian Lance Taylor  <iant@google.com>
5666
5667         PR middle-end/45687
5668         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
5669         offset.
5670
5671 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
5672
5673         Implement opaque-enum-specifiesr for C++0x
5674         * tree.h (ENUM_IS_OPAQUE): New.
5675         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
5676
5677 2010-10-26  Jie Zhang  <jie@codesourcery.com>
5678
5679         * stor-layout.c (layout_decl): Use the field's type to
5680         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
5681         * config/arm/arm.c (arm_override_options): Default to
5682         -fstrict-volatile-bitfields.
5683
5684 2010-10-25  Paul Koning  <ni1d@arrl.net>
5685
5686         * config/pdp11/pdp11.md: Add define_constants for register
5687         numbers, branch offset limits.
5688         * config/pdp11/pdp11.c: Use named constants instead of numbers.
5689         * config/pdp11.pdp11.h: Ditto.
5690
5691 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
5692
5693         * configure.ac: Use $cpu_type instead of $target to define the nop.
5694         * configure: Regenerate.
5695
5696 2010-10-25  Jie Zhang  <jie@codesourcery.com>
5697
5698         * combine.c (try_combine): If insns need to be kept around, check that
5699         they can be copied in the merged instruction.
5700
5701 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
5702
5703         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
5704         has been modified.
5705         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
5706         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
5707         it has been modified.
5708
5709 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
5710
5711         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
5712
5713 2010-10-24  Paul Koning  <ni1d@arrl.net>
5714
5715         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
5716         * config/pdp11/pdp11.c (output_jump): Ditto.
5717
5718 2010-10-24  Ian Lance Taylor  <iant@google.com>
5719
5720         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
5721
5722 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
5723
5724         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
5725         least one insn with a locus corresponding to an edge's goto_locus,
5726         disregard non-fallthru edges to the exit block and merge the blocks
5727         created for the same goto_locus.
5728
5729 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
5730
5731         * gcc.c (n_switches_alloc_debug_check): New.
5732         (set_option_handlers): New.
5733         (process_command): Use set_option_handlers.
5734         (do_self_spec): Pass spec-generated options through option handlers.
5735         (main): Also save and restore n_switches_alloc when swapping
5736         switch arrays.
5737
5738 2010-10-23  Richard Henderson  <rth@redhat.com>
5739
5740         PR target/46144
5741         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
5742         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
5743         Honor matching operands when splitting to XOR.
5744
5745 2010-10-23  Ian Lance Taylor  <iant@google.com>
5746
5747         * tree-vrp.c (extract_range_from_binary_expr): If
5748         flag_non_call_exceptions don't eliminate division by zero.
5749         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5750
5751 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
5752
5753         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
5754         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
5755         __ORDER_PDP_ENDIAN__.
5756         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5757         (struct DWstruct): Define based on __BYTE_ORDER__.
5758         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5759         (struct INTstruct): Define based on __BYTE_ORDER__.
5760         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5761         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
5762         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
5763         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5764         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5765         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5766         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5767         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5768         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5769         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5770         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5771         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5772         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5773         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5774         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5775         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5776         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5777         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5778         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5779         * doc/tm.texi: Regenerate.
5780         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
5781         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
5782
5783 2010-10-23  Jie Zhang  <jie@codesourcery.com>
5784
5785         PR rtl-optimization/37360
5786         * config/mips/mips.c (cached_can_issue_more): New local variable.
5787         (mips_sched_reorder_1): New.
5788         (mips_sched_reorder): Use mips_sched_reorder_1.
5789         (mips_sched_reorder2): New.
5790         (mips_variable_issue): Set cached_can_issue_more.
5791         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
5792         instead of mips_sched_reorder.
5793
5794         Revert:
5795         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
5796         PR rtl-optimization/37360
5797         * haifa-sched.c (max_issue): Do not assert that we never issue more
5798         insns than issue_rate.  Add comment.
5799
5800 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
5801
5802         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
5803         location info of the expression.
5804
5805 2010-10-22  DJ Delorie  <dj@redhat.com>
5806
5807         * doc/extend.texi (Named Address Spaces): Document the M32C named
5808         address space.
5809
5810         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
5811         __far address space.
5812         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
5813         "__far" address space for R8C and M16C processor variants.
5814         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
5815         (far_addr_space_p): New.
5816         (encode_pattern_1): Add sign and zero extend support.
5817         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
5818         (m32c_extra_constraint_p2): Add SF constraint.
5819         (m32c_legitimate_address_p): Support __far addresses.
5820         (m32c_addr_space_pointer_mode): New.
5821         (m32c_addr_space_address_mode): New.
5822         (m32c_addr_space_legitimate_address_p): New.
5823         (m32c_addr_space_legitimize_address): New.
5824         (m32c_addr_space_subset_p): New.
5825         (m32c_addr_space_convert): New.
5826         (conversions): Add __far operand patterns.
5827         (m32c_prepare_move): Force constants into registers for __far moves.
5828         (m32c_split_move): __far moves are always split.
5829         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
5830         * config/m32c/mov.md (mov<mode>_far_op1): New.
5831         (mov<mode>_far_op2): New.
5832         (movqi_op): Add __far (SF) support.
5833         (movhi_op): Likewise.
5834         (movsi_splittable): Split A1A0 also.
5835
5836 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
5837             Andrew Pinski  <pinskia@gmail.com>
5838
5839         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
5840         * doc/extend.texi: New paragraph
5841
5842 2010-10-22  Paul Koning  <ni1d@arrl.net>
5843
5844         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
5845
5846 2010-10-22  DJ Delorie  <dj@redhat.com>
5847
5848         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
5849
5850 2010-10-22  Paul Koning  <ni1d@arrl.net>
5851
5852         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
5853
5854 2010-10-22  Richard Henderson  <rth@redhat.com>
5855
5856         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
5857         cases for __builtin_fma and __builtin_fmaf.
5858
5859 2010-10-22  Richard Henderson  <rth@redhat.com>
5860
5861         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
5862         NEG+USE for vectors as well.
5863         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
5864         and splitter.
5865
5866 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
5867
5868         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
5869         SWITCH_CURTAILS_COMPILATION): Remove.
5870         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
5871         * doc/tm.texi: Regenerate.
5872         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
5873
5874 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
5875
5876         * config/i386/bdver1.md: New file.
5877         * config/i386/i386.md (include "bdver1.md"): Invoke the
5878         pipeline description for bdver1.
5879         (x86_sahf_1): Add "bdver1_decode" attribute.
5880         (*cmpfp_i_mixed): Likewise.
5881         (*cmpfp_i_sse): Likewise.
5882         (*cmpfp_i_i387): Likewise.
5883         (*cmpfp_iu_mixed): Likewise.
5884         (*cmpfp_iu_sse): Likewise.
5885         (*cmpfp_iu_387): Likewise.
5886         (*swap<mode>,*swap<mode>_1): Likewise.
5887         (fixuns_trunc<mode>hi2): Likewise.
5888         (fix_trunc<mode>si_sse): Likewise.
5889         (x86_fnstcw_1): Likewise.
5890         (x86_fldcw_1): Likewise.
5891         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
5892         (*floatsi<mode>2_vector_mixed): Likewise.
5893         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
5894         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
5895         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
5896         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
5897         (*floatsi<mode>2_vector_sse): Likewise.
5898         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
5899         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
5900         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
5901         (*mul<mode>3_1): Likewise.
5902         (*mulsi3_1_zext): Likewise.
5903         (*mulhi3_1): Likewise.
5904         (*mulqi3_1): Likewise.
5905         (*<u>mul<mode><dwi>3_1): Likewise.
5906         (*<u>mulqihi3_1): Likewise.
5907         (*<s>muldi3_highpart_1): Likewise.
5908         (*<s>mulsi3_highpart_1): Likewise.
5909         (*<s>mulsi3_highpart_zext): Likewise.
5910         (x86_64_shld): Likewise.
5911         (x86_shld): Likewise.
5912         (x86_64_shrd): Likewise.
5913         (x86_shrd): Likewise.
5914         (sqrtxf2): Likewise.
5915         (sqrt_extend<mode>xf2_i387): Likewise.
5916         (*sqrt<mode>2_sse): Likewise.
5917         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
5918         (sse_cvtsi2ssq): Likewise.
5919         (sse_cvtss2si): Likewise.
5920         (sse_cvtss2si_2): Likewise.
5921         (sse_cvtss2siq): Likewise.
5922         (sse_cvtss2siq_2): Likewise.
5923         (sse_cvttss2si): Likewise.
5924         (sse_cvttss2siq): Likewise.
5925         (sse2_cvtpi2pd): Likewise.
5926         (sse2_cvttpd2pi): Likewise.
5927         (sse2_cvtsi2sd): Likewise.
5928         (sse2_cvtsi2sdq): Likewise.
5929         (sse2_cvtsd2si): Likewise.
5930         (sse2_cvtsd2si_2): Likewise.
5931         (sse2_cvtsd2siq): Likewise.
5932         (sse2_cvtsd2siq_2): Likewise.
5933         (sse2_cvttsd2si): Likewise.
5934         (sse2_cvttsd2siq): Likewise.
5935         (*sse2_cvtpd2dq): Likewise.
5936         (*sse2_cvttpd2dq): Likewise.
5937         (sse2_cvtsd2ss): Likewise.
5938         (sse2_cvtss2sd): Likewise.
5939         (*sse2_cvtpd2ps): Likewise.
5940         (sse2_cvtps2pd): Likewise.
5941
5942 2010-10-22  Richard Guenther  <rguenther@suse.de>
5943
5944         PR middle-end/46137
5945         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
5946         remove the virtual operands if they are not needed.
5947
5948 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
5949
5950         * config/i386/i386.c (processor_costs bdver1_cost): Update
5951         insn costs and architectural parameters for bdver1.
5952
5953 2010-10-22  Richard Guenther  <rguenther@suse.de>
5954
5955         * gimple.h (gimple_register_canonical_type): Declare.
5956         * gimple.c (gimple_canonical_types): New global hashtable.
5957         (struct gimple_type_leader_entry_s): New type.
5958         (gimple_type_leader): New global cache.
5959         (gimple_lookup_type_leader): New function.
5960         (gtc_visit): Query the proper cache.
5961         (gimple_types_compatible_p): Likewise.
5962         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
5963         (gimple_canonical_type_eq): New function.
5964         (gimple_register_canonical_type): Likewise.
5965         (print_gimple_types_stats): Adjust for gimple_canonical_types.
5966         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
5967         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
5968         gimple_types_compatible_p for LTO.
5969
5970 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
5971
5972         PR target/46098
5973         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
5974         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
5975         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
5976         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
5977         (<sse>_movu<ssemodesuffix>): New expander.
5978         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
5979         (avx_movdqu<avxmodesuffix>): New expander.
5980         (*sse2_movdqu): Rename from sse2_movdqu.
5981         (sse2_movdqu): New expander.
5982
5983 2010-10-22  Richard Guenther  <rguenther@suse.de>
5984
5985         PR tree-optimization/45720
5986         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
5987         Handle negative step.
5988         (vect_enhance_data_refs_alignment): Likewise.
5989         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
5990         (vect_create_cond_for_align_checks): Likewise.
5991         (vect_create_cond_for_alias_checks): Likewise.
5992
5993 2010-10-22  Ira Rosen  <irar@il.ibm.com>
5994
5995         PR tree-optimization/46126
5996         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
5997         vectorizable_shift in case of basic block vectorization.
5998
5999 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
6000
6001         * target.h (enum opt_levels, struct default_options): New.
6002         * target.def (handle_ofast): Remove hook.
6003         (target_option.optimization): Change to
6004         target_option.optimization_table.
6005         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
6006         TARGET_OPTION_OPTIMIZATION_TABLE.
6007         (CAN_DEBUG_WITHOUT_FP): Remove.
6008         * doc/tm.texi: Regenerate.
6009         * opts.c (maybe_default_option, maybe_default_options,
6010         default_options_table): New.
6011         (default_options_optimization): Take extra parameters.  Don't
6012         assert that global_options and global_options_set are in use.  Use
6013         maybe_default_options.
6014         (decode_options): Pass extra parameters to
6015         default_options_optimization.
6016         * common.opt (falign-loops): Use value 0 with Var.
6017         (frerun-cse-after-loop, ftree-ter): Remove Init.
6018         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
6019         TARGET_OPTION_OPTIMIZATION): Remove.
6020         * targhooks.c (empty_optimization_table): New.
6021         * targhooks.h (empty_optimization_table): Declare.
6022         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
6023         * config/alpha/alpha.c (alpha_option_optimization_table,
6024         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6025         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
6026         * config/arm/arm.c (arm_option_optimization: Change to
6027         arm_option_optimization_table.
6028         (TARGET_OPTION_OPTIMIZATION): Change to
6029         TARGET_OPTION_OPTIMIZATION_TABLE.
6030         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
6031         * config/avr/avr.c (avr_option_optimization_table,
6032         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6033         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
6034         * config/cris/cris.c (cris_option_optimization): Change to
6035         cris_option_optimization_table.
6036         (TARGET_OPTION_OPTIMIZATION): Change to
6037         TARGET_OPTION_OPTIMIZATION_TABLE.
6038         * config/crx/crx.c (crx_option_optimization): Change to
6039         crx_option_optimization_table.
6040         (TARGET_OPTION_OPTIMIZATION): Change to
6041         TARGET_OPTION_OPTIMIZATION_TABLE.
6042         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
6043         * config/fr30/fr30.c (fr30_option_optimization_table,
6044         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6045         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
6046         * config/frv/frv.c (frv_option_optimization_table,
6047         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6048         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
6049         * config/h8300/h8300.c (h8300_option_optimization): Change to
6050         h8300_option_optimization_table.
6051         (TARGET_OPTION_OPTIMIZATION): Change to
6052         TARGET_OPTION_OPTIMIZATION_TABLE.
6053         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
6054         * config/i386/i386.c (ix86_option_optimization): Change to
6055         ix86_option_optimization_table.
6056         (TARGET_OPTION_OPTIMIZATION): Change to
6057         TARGET_OPTION_OPTIMIZATION_TABLE.
6058         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
6059         as initializer.
6060         * config/ia64/ia64.c (ia64_option_optimization): Change to
6061         ia64_option_optimization_table.
6062         (TARGET_OPTION_OPTIMIZATION): Change to
6063         TARGET_OPTION_OPTIMIZATION_TABLE.
6064         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
6065         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
6066         initializer.
6067         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
6068         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6069         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
6070         * config/lm32/lm32.c (lm32_option_optimization_table,
6071         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6072         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
6073         * config/m32r/m32r.c (m32r_option_optimization): Change to
6074         m32r_option_optimization_table.
6075         (TARGET_OPTION_OPTIMIZATION): Change to
6076         TARGET_OPTION_OPTIMIZATION_TABLE.
6077         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
6078         CAN_DEBUG_WITHOUT_FP): Remove.
6079         * config/mcore/mcore.c (mcore_option_optimization): Change to
6080         mcore_option_optimization_table.
6081         (TARGET_OPTION_OPTIMIZATION): Change to
6082         TARGET_OPTION_OPTIMIZATION_TABLE.
6083         * config/mep/mep.c (mep_option_optimization): Change to
6084         mep_option_optimization_table.
6085         (TARGET_OPTION_OPTIMIZATION): Change to
6086         TARGET_OPTION_OPTIMIZATION_TABLE.
6087         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
6088         * config/microblaze/microblaze.c
6089         (microblaze_option_optimization_table,
6090         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6091         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
6092         * config/mips/mips.c (mips_option_optimization_table,
6093         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6094         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
6095         * config/mmix/mmix.c (mmix_option_optimization): Change to
6096         mmix_option_optimization_table.
6097         (TARGET_OPTION_OPTIMIZATION): Change to
6098         TARGET_OPTION_OPTIMIZATION_TABLE.
6099         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
6100         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
6101         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6102         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
6103         * config/pa/pa.c (pa_option_optimization_table,
6104         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6105         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
6106         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
6107         pdp11_option_optimization_table.
6108         (TARGET_OPTION_OPTIMIZATION): Change to
6109         TARGET_OPTION_OPTIMIZATION_TABLE.
6110         * config/picochip/picochip.c (picochip_option_optimization_table,
6111         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6112         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
6113         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
6114         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6115         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
6116         * config/rx/rx.c (rx_option_optimization_table,
6117         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6118         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
6119         * config/s390/s390.c (s390_option_optimization): Change to
6120         s390_option_optimization_table.
6121         (s390_option_override): Update comment.
6122         (TARGET_OPTION_OPTIMIZATION): Change to
6123         TARGET_OPTION_OPTIMIZATION_TABLE.
6124         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
6125         * config/score/score.c (score_option_optimization_table,
6126         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6127         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
6128         * config/sh/sh.c (sh_option_optimization): Change to
6129         sh_option_optimization_table.
6130         (TARGET_OPTION_OPTIMIZATION): Change to
6131         TARGET_OPTION_OPTIMIZATION_TABLE.
6132         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
6133         (sh_option_override, expand_block_move, multcosts, find_barrier,
6134         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
6135         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
6136         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
6137         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
6138         instead of TARGET_SMALLCODE.
6139         * config/sh/sh.opt (mspace): Make into an alias for -Os.
6140         * config/sparc/sparc.c (sparc_option_optimization_table,
6141         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6142         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
6143         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
6144         TARGET_OPTION_OPTIMIZATION_TABLE): New.
6145         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
6146         * config/v850/v850.c (v850_option_optimization): Change to
6147         v850_option_optimization_table.
6148         (TARGET_OPTION_OPTIMIZATION): Change to
6149         TARGET_OPTION_OPTIMIZATION_TABLE.
6150         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
6151         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
6152         xtensa_option_optimization_table.
6153         (TARGET_OPTION_OPTIMIZATION): Change to
6154         TARGET_OPTION_OPTIMIZATION_TABLE.
6155         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
6156
6157 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
6158
6159         Based on the CFString implementation in FSF apple/trunk branch.
6160
6161         * target.def (objc_construct_string): New Hook.
6162         * doc/tm.texi (objc_construct_string): Document.
6163         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
6164         * config/t-darwin: Amend build rules for darwin.o.
6165         * config/darwin.opt: Add cfstrings flags.
6166         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
6167         (darwin_objc_construct_string): New.
6168         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
6169         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
6170         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
6171         (darwin_fold_builtin): Likewise.
6172         (darwin_build_constant_cfstring): Likewise.
6173         (darwin_objc_construct_string): Likewise.
6174         (darwin_cfstring_p): Likewise.
6175         (darwin_enter_string_into_cfstring_table): Likewise.
6176         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
6177         * config/darwin.c (darwin_running_cxx): New var.
6178         (machopic_select_section): Return cfstring_constant_object_section.
6179         (darwin_override_options): Set darwin_running_cxx.
6180         (add_builtin_field_decl): New.
6181         (darwin_init_cfstring_builtins): New.
6182         (darwin_build_constant_cfstring): New.
6183         (darwin_fold_builtin): New.
6184         (cfstring_hash): New.
6185         (cfstring_eq): New.
6186         (darwin_enter_string_into_cfstring_table): New.
6187         * config/darwin-sections.def (cfstring_constant_object_section): New.
6188         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
6189         (TARGET_OBJC_CONSTRUCT_STRING): Define.
6190
6191 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6192
6193         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
6194         TYPE_STUB_DECL instead of TREE_CHAIN.
6195         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
6196         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
6197         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
6198         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
6199         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
6200         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
6201         Likewise.
6202         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
6203
6204 2010-10-22  Jie Zhang  <jie@codesourcery.com>
6205
6206         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
6207         (copy_blkmode_from_reg): Likewise.
6208         (read_complex_part): Likewise.
6209         (expand_expr_real_1): Calculate packedp and pass it to
6210         extract_bit_field.
6211         * expr.h (extract_bit_field): Update declaration.
6212         * calls.c (store_unaligned_arguments_into_pseudos): Update call
6213         to extract_bit_field.
6214         * expmed.c (extract_fixed_bit_field): Update calls to
6215         extract_fixed_bit_field.
6216         (store_split_bit_field): Likewise.
6217         (extract_bit_field_1): Add new argument packedp.
6218         (extract_bit_field): Add new argument packedp.
6219         (extract_fixed_bit_field): Add new argument packedp and let
6220         packed attribute override volatile.
6221         * stmt.c (expand_return): Update call to extract_bit_field.
6222
6223 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6224
6225         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
6226
6227 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6228
6229         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
6230         of gcc_checking_assert.
6231         * sel-sched.c (code_motion_process_successors): Likewise.
6232
6233 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6234
6235         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
6236         when stopping because of a different locus on edge or insn.
6237         (try_optimize_cfg): Add comment.
6238         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
6239         block is a forwarder block, propagate locus on the edge.
6240         (cfg_layout_merge_blocks): Likewise.
6241
6242 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
6243
6244         PR target/45946
6245         * config/i386/i386.md (*pushti2): New insn pattern.
6246         (pushti2 splitter): New insn splitter.
6247         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
6248         DWI mode iterator.
6249
6250 2010-10-21  Paul Koning  <ni1d@arrl.net>
6251
6252         * config/pdp11/pdp11-protos.md (arith_operand,
6253         const_immediate_operand, expand_shift_operand,
6254         immediate15_operand): Delete
6255         * config/pdp11/pdp11.c: Ditto.
6256         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
6257         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
6258         EXTRA_CONSTRAINT): Delete.
6259         * config/pdp11/pdp11.md (various): Use standard constraints
6260         instead of removed ones.
6261         * config/pdp11/constraints.md: New file.
6262         * config/pdp11/predicates.md: New file.
6263
6264 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
6265
6266         PR c/45834
6267         * alias.c (true_dependence_1): Remove obsolete check for QImode.
6268         (may_alias_p): Ditto.
6269
6270 2010-10-21  Martin Jambor  <mjambor@suse.cz>
6271
6272         PR tree-optimization/45875
6273         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
6274
6275 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6276
6277         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
6278         variables.
6279         (create_new_def_for): Likewise.
6280
6281 2010-10-21  Nick Clifton  <nickc@redhat.com>
6282
6283         * config/mn10300/mn10300.c: Fold code to 80-character width.
6284         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
6285         MEM, CONST_INT and CONST_DOUBLE.
6286         (targetm): Move initialization to end of file.
6287         (print_operand): Rename to mn10300_print_operand.
6288         (print_operand_address): Rename to mn10300_print_operand_address.
6289         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
6290         (expand_prologue): Rename to mn10300_expand_prologue.
6291         (expand_epilogue): Rename to mn10300_expand_epilogue.
6292         (initial_offset): Rename to mn10300_initial_offset.
6293         (function_arg): Rename to mn10300_function_arg.
6294         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
6295         (symbolic_operand): Rename to mn10300_symbolic_operand.
6296         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
6297         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
6298         * config/mn10300/mn10300-protos.h: Update prototypes.
6299         * config/mn10300/mn10300.h: Fold code to 80-character width.
6300         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
6301         MEM, CONST_INT and CONST_DOUBLE.
6302         (CPP_SPEC): Move to...
6303         (TARGET_CPU_CPP_BUILTINS): ... here.
6304         * config/mn10300/mn10300.md: Fold code to 80-character width.
6305         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
6306         MEM, CONST_INT and CONST_DOUBLE.
6307
6308 2010-10-21  Ira Rosen  <irar@il.ibm.com>
6309
6310         PR tree-optimization/46049
6311         PR tree-optimization/46052
6312         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
6313         (vect_get_slp_defs): Add arguments.
6314         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
6315         operands to vect_get_slp_defs.
6316         (vectorizable_reduction): Fix comment, pass scalar operands to
6317         vect_get_slp_defs.
6318         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
6319         type to determine number of units in the created vector.
6320         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
6321         (vectorizable_conversion): Fix comment.
6322         (vectorizable_shift): New function.
6323         (vectorizable_operation): Move code that handles shifts to
6324         vectorizable_shift.
6325         (vectorizable_type_demotion): Fix comment, pass scalar operands to
6326         vect_get_slp_defs.
6327         (vectorizable_type_promotion, vectorizable_store): Likewise.
6328         (vectorizable_condition): Fix comment.
6329         (vect_analyze_stmt): Call vectorizable_shift.
6330         (vect_transform_stmt): Likewise.
6331         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
6332         Use it as the operand to create vectors for, except reduction
6333         initial definition and store.  Use operands type.
6334         (vect_get_slp_defs): Add new arguments.  Pass them to
6335          vect_get_constant_vectors.
6336
6337 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6338
6339         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
6340         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
6341         * cfghooks.c (fixup_reorder_chain): Likewise.
6342         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
6343         * cgraph.c (cgraph_add_thunk): Likewise.
6344         (cgraph_create_edge_1): Likewise.
6345         (cgraph_create_virtual_clone): Likewise.
6346         * ddg.c (add_cross_iteration_register_deps): Likewise.
6347         * dwarf2out.c (modified_type_die): Likewise.
6348         * emit-rtl.c (set_mem_alias_set): Likewise.
6349         * ggc-zone.c (zone_allocate_marks): Likewise.
6350         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
6351         * gimple.c (iterative_hash_gimple_type): Likewise.
6352         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
6353         (create_single_exit_edge): Likewise.
6354         * haifa-sched.c (choose_ready): Likewise.
6355         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6356         * passes.c (execute_todo): Likewise.
6357         * sched-ebb.c (begin_schedule_ready): Likewise.
6358         * sel-sched.c (code_motion_process_successors): Likewise.
6359         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
6360         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
6361         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
6362         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
6363         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
6364         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
6365         (ssa_conflicts_add): Likewise.
6366         * tree-ssa-copy.c (replace_exp): Likewise.
6367         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
6368         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
6369         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
6370         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
6371         (compute_antic): Likewise.
6372         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
6373         (add_dependence): Likewise.
6374         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
6375         * tree-vrp.c (supports_overflow_infinity): Likewise.
6376         (make_overflow_infinity, negative_overflow_infinity): Likewise.
6377         (avoid_overflow_infinity, register_new_assert_for): Likewise.
6378         (process_assert_insertions_for): Likewise.
6379         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
6380         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
6381         (intersect_loc_chains, variable_merge_over_cur): Likewise.
6382
6383 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
6384
6385         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
6386         * reload1.c (has_nonexceptional_receiver): Likewise.
6387         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
6388         (create_new_def_for): Likewise.
6389         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
6390         (merge_phi_nodes): Likewise.
6391         (has_abnormal_incoming_edge_p): Delete.
6392
6393 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
6394
6395         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
6396
6397 2010-10-21  Richard Guenther  <rguenther@suse.de>
6398             Michael Matz  <matz@suse.de>
6399
6400         PR tree-optimization/45764
6401         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
6402         Adjust initial misalignment for negative DR_STEP.
6403         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
6404         do not have the same alignment over the whole iteration domain.
6405
6406 2010-10-21  Richard Guenther  <rguenther@suse.de>
6407
6408         PR tree-optimization/46111
6409         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
6410
6411 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6412
6413         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
6414
6415 2010-10-21  Tristan Gingold  <gingold@adacore.com>
6416
6417         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
6418         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
6419
6420 2010-10-21  Tristan Gingold  <gingold@adacore.com>
6421
6422         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
6423         signal_frame.
6424         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
6425
6426 2010-10-21  Tristan Gingold  <gingold@adacore.com>
6427
6428         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
6429         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
6430
6431 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
6432
6433         * basic-block.h (find_fallthru_edge): Define.
6434         * cfgcleanup.c (merge_blocks_move): Use it.
6435         (try_crossjump_bb): Likewise.
6436         * cfglayout.c (fixup_reorder_chains): Likewise.
6437         (fixup_fallthru_exit_predecessor): Likewise.
6438         * cfgrtl.c (rtl_split_edge): Likewise.
6439         (rtl_verify_flow_info): Likewise.
6440         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6441         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
6442         * ifcvt.c (block_fallthru): Likewise.
6443         * reload1.c (fixup_abnormal_edges): Likewise.
6444         * sched-ebb.c (being_schedule_ready): Likewise.
6445         (schedule_ebb): Likwise.
6446         * sched-rgn.c (find_single_block_region): Likewise.
6447         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
6448         * tree-complex.c (expand_complex_move): Likewise.
6449         * sched-int.h (find_fallthru_edge): Rename to...
6450         (find_fallthru_edge_from): ...this.
6451         * haifa-sched.c (find_fallthru_edge): Rename to...
6452         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
6453         (init_before_recovery): Call find_fallthru_edge_from.
6454         * sel-sched-ir.c (merge_fences): Likewise.
6455         * sel-sched.c (in_fallthru_bb_p): Likewise.
6456         (move_cond_jump): Likewise.
6457
6458 2010-10-20  Paul Koning  <ni1d@arrl.net>
6459
6460         * config/pdp11/pdp11.md (various): Fix conditions on a number of
6461         insn to check for target 11/40 or higher.
6462
6463 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
6464
6465         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
6466         bool instead of a tree.
6467         (c_parser_objc_method_decl): Added bool argument.  Updated call to
6468         objc_build_method_signature.
6469         (c_parser_objc_method_definition): Do not call
6470         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
6471         c_parser_objc_method_decl and objc_start_method_definition.
6472         (c_parser_objc_methodproto): Do not call objc_set_method_type.
6473         Updated calls to c_parser_objc_method_type,
6474         c_parser_objc_method_decl and objc_add_method_declaration.
6475
6476 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
6477
6478         PR tree-optimization/45919
6479         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
6480         array members.
6481
6482         PR tree-optimization/46066
6483         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
6484         instead of gsi_last_bb.
6485
6486 2010-10-20  DJ Delorie  <dj@redhat.com>
6487
6488         * config/m32c/m32c.c (m32c_option_override): Always disable
6489         function-cse in 16-bit mode.  Indirect calls are always worse than
6490         direct calls as there is no 16-bit indirect call opcode.
6491         (m32c_override_options_after_change): New, likewise.
6492
6493 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
6494
6495         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
6496         emitting the conditional move in the inner mode of the SUBREG.
6497
6498 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
6499
6500         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
6501         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
6502         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6503         (ia64_preferred_reload_class): Make static.  Change rclass argument
6504         and result types from enum reg_class to reg_class_t.
6505
6506 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
6507
6508         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
6509         call for single operand expression.
6510
6511 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
6512
6513         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
6514         if there is a call statement to pure or const function in the block.
6515
6516 2010-10-20  Paul Koning  <pkoning@equallogic.com>
6517
6518         Fix several build errors for pdp11 target.
6519         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
6520         (cbranchdf4): Conditional on TARGET_FPU.
6521         (movdf): Ditto; correct alternatives check.
6522         (movmemhi): Fix predicate and constraint.
6523         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
6524
6525 2010-10-20  Richard Guenther  <rguenther@suse.de>
6526
6527         PR lto/45667
6528         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
6529         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
6530         (verify_gimple_assign_single): Disable ADDR_EXPR type check
6531         when in LTO.
6532
6533 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
6534
6535         PR fortran/42169
6536         * ira-emit.c (store_can_be_removed_p): Return false instead of
6537         gcc_unreachable.
6538
6539 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
6540
6541         * fold-const.c (fold_binary_loc): New transformation.
6542
6543 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6544
6545         PR target/46085
6546         * config/i386/sse.md (reduc_splus_v8sf): Updated.
6547         (reduc_splus_v4df): Likewise.
6548
6549 2010-10-20  Richard Guenther  <rguenther@suse.de>
6550
6551         PR tree-optimization/45860
6552         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
6553         conditional store replacement for non-register type stores.
6554
6555 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
6556
6557         * stor-layout.c (skip_simple_constant_arithmetic): New function.
6558         (self_referential_size): Use it instead of skip_simple_arithmetic.
6559
6560 2010-10-20  Olivier Hainque  <hainque@adacore.com>
6561
6562         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
6563         If the current function calls eh_return, claim live all registers
6564         that we need to check for liveness otherwise.
6565
6566 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
6567
6568         * c-decl.c (c_write_global_declarations): Call
6569         objc_write_global_declarations when compiling Objective-C.
6570         * c-lang.c (finish_file): Removed.
6571
6572 2010-10-19  DJ Delorie  <dj@redhat.com>
6573
6574         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
6575         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
6576         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
6577         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
6578         * doc/tm.texi: Regenerate.
6579         * targhooks.h (default_label_align_after_barrier_max_skip,
6580         default_loop_align_max_skip, default_label_align_max_skip,
6581         default_jump_align_max_skip): Declare.
6582         * target.def (label_align_after_barrier_max_skip): New.
6583         (loop_align_max_skip): New.
6584         (label_align_max_skip): New.
6585         (jump_align_max_skip): New.
6586         * system.h (poison): Add those macros to the list.
6587         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
6588         (LOOP_ALIGN_MAX_SKIP): Remove.
6589         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
6590         (JUMP_ALIGN_MAX_SKIP): Remove.
6591         (default_label_align_after_barrier_max_skip): New.
6592         (default_loop_align_max_skip): New.
6593         (default_label_align_max_skip): New.
6594         (default_jump_align_max_skip): New.
6595         (compute_alignments): Use the new hooks.
6596         (shorten_branches): Likewise.
6597
6598 2010-10-19  Richard Henderson  <rth@redhat.com>
6599
6600         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
6601         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
6602         (fma4i_fmadd_<mode>): New.
6603         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
6604         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
6605         standard fma patterns.
6606         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
6607         enable for FMA.
6608         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
6609         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
6610         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
6611
6612 2010-10-19  Paul Koning  <pkoning@equallogic.com>
6613
6614         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
6615         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
6616
6617 2010-10-19  Richard Henderson  <rth@redhat.com>
6618
6619         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
6620         (fmadf4, *fmsdf4, *nfmadf4): New.
6621         (fmaxf4, *fmsxf4, *nfmaxf4): New.
6622
6623 2010-10-19  Michael Eager  <eager@eagercon.com>
6624
6625         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
6626         Use sjlj unwind info for exceptions.
6627
6628 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
6629
6630         PR fortran/43414
6631         * dwarf2out.c (add_calling_convention_attribute): Flag main
6632         Fortran subroutine with DW_AT_main_subprogram.
6633
6634 2010-10-19  Nick Clifton  <nickc@redhat.com>
6635
6636         * config/rx/rx.c (rx_function_value): Small integer types are
6637         promoted to SImode.
6638         (rx_promote_function_mode): New function.
6639         (TARGET_PROMOTE_FUNCTION_MODE): Define.
6640
6641 2010-10-19  Nick Clifton  <nickc@redhat.com>
6642
6643         * config/mep/mep.c (mep_print_operand): Use
6644         targetm.strip_name_encoding.
6645         (mep_output_aligned_common): Likewise.
6646
6647 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
6648
6649         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
6650
6651 2010-10-18  Richard Henderson  <rth@redhat.com>
6652
6653         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
6654         (fma (neg a) (neg b) c) and (fma a (neg b) c).
6655
6656 2010-10-18  Richard Henderson  <rth@redhat.com>
6657
6658         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
6659         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
6660         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
6661         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
6662         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
6663         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
6664         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
6665         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
6666         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
6667         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
6668         (bdesc_multi_arg): Remove the corresponding builtins.
6669         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
6670         (UNSPEC_FMA4_FMSUBADD): Remove.
6671         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
6672         * config/i386/sse.md (FMA4MODEF4): Remove.
6673         (FMAMODE): Add.
6674         (fma<mode>4): New expander.
6675         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
6676         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
6677         (*fma4i_fmsub_<mode>): Similarly.
6678         (*fma4i_fnmadd_<mode>): Similarly.
6679         (*fma4i_fnmsub_<mode>): Similarly.
6680         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
6681         with the first operand.
6682         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
6683         of explicit arithmetic.  Macroize with AVXMODEF2P.
6684         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
6685         (xop_frcz<mode>2): Macroize with FMAMODE.
6686         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
6687         the first operand.
6688         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
6689         extra negations.
6690         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
6691         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
6692         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
6693         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
6694         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
6695         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
6696         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
6697         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
6698
6699 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
6700
6701         PR rtl-optimization/45966
6702         * combine.c (try_combine): If added_sets_2, deal with the case
6703         where i0 feeds i1 and i1 feeds i2.
6704
6705 2010-10-18  Jan Hubicka  <jh@suse.cz>
6706
6707         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
6708         preserve flags before trying to guess on visibility.
6709         (varpool_externally_visible_p): New function.
6710         (function_and_variable_visibility): Use it.
6711
6712 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
6713
6714         Implemented parsing @synthesize and @dynamic for Objective-C.
6715         * c-parser.c (c_parser_external_declaration): Recognize
6716         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6717         (c_parser_objc_at_synthesize_declaration): New.
6718         (c_parser_objc_at_dynamic_declaration): New.
6719
6720 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
6721
6722         * c-parser.c (c_parser_objc_class_declaration): After finding an
6723         error, parse the whole declaration then reset parser->error.
6724
6725 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
6726
6727         PR target/46041
6728         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
6729         * builtins.c (mode_has_fma): Ditto.
6730
6731 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
6732
6733         PR target/36898
6734         PR middle-end/43760
6735         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
6736
6737 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
6738
6739         * config/i386/i386.c (ix86_option_override_internal): Define and
6740         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
6741         default.
6742         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6743         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
6744
6745 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
6746
6747         Merge from 'apple/trunk' branch on FSF servers.
6748         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
6749         following Objective-C change:
6750
6751         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
6752
6753         Radar 4301047
6754         * c-parse.in (objc_quals): Build objc qualifier list same way
6755         as gcc-3.3
6756
6757 2010-10-18  Jan Hubicka  <jh@suse.cz>
6758
6759         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
6760         function_and_variable_visibility): Revert accidental commit.
6761
6762 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
6763
6764         Merge from 'apple/trunk' branch on FSF servers.
6765         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
6766         the following Objective-C change:
6767
6768         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
6769
6770         Radar 4204796
6771         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
6772         'volatilized' type used in a typeof operator.
6773
6774 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
6775
6776         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
6777         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
6778         rewrite modelled on gimple_purge_dead_eh_edges.
6779         (gimple_purge_all_dead_abnormal_call_edges): New function.
6780         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
6781         directly instead of through gimple_purge_dead_abnormal_call_edges.
6782         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
6783         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
6784         removed AB side-effects from one of its statements.
6785         (init_pre): Initialize need_ab_cleanup.
6786         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
6787         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
6788
6789 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
6790
6791         PR c/46015
6792         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
6793         on computed goto argument.
6794
6795 2010-10-18  Richard Guenther  <rguenther@suse.de>
6796
6797         PR tree-optimization/45967
6798         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
6799         (could_have_pointers): Likewise.
6800         (handle_rhs_call, handle_const_call, handle_pure_call,
6801         find_func_aliases, intra_create_variable_infos): Remove calls to them.
6802         (struct fieldoff): Add must_have_pointers field.
6803         (type_must_have_pointers): New function.
6804         (field_must_have_pointers): Likewise.
6805         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
6806         Adjust field merging.
6807         (create_function_info_for): May-have-pointers of varinfo is
6808         almost always true.
6809         (create_variable_info_for_1): Likewise.
6810
6811 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
6812
6813         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
6814         of operands to vec_concat.
6815
6816 2010-10-18  Richard Guenther  <rguenther@suse.de>
6817
6818         PR lto/44950
6819         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
6820         also clear references to entries of it.
6821
6822 2010-10-18  Andi Kleen  <ak@linux.intel.com>
6823
6824         PR other/43448
6825         * gccbug.in: Remove.
6826         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
6827         (doc, distclean, install-common): Remove reference to gccbug.
6828         * configure: Regenerate.
6829         * configure.ac (all_outputs): Remove gccbug.
6830         * doc/configfiles.texi: Remove references to gccbug.
6831         * doc/sourcebuild.texi: Dito.
6832
6833 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
6834
6835         PR middle-end/46019
6836         * fold-const.c (fold_binary_loc): If integer_pow2p has
6837         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
6838
6839 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
6840             Jeremie Salvucci  <jeremie.salvucci@free.fr>
6841
6842         * gengtype.c (verbosity_level): Add variable.
6843         (set_gc_used): Count variables for verbosity.
6844         (close_output_files): Backing up files, counting written ones
6845         verbosily.
6846         (write_types): Count emitted functions for verbosity. Added
6847         debug messages.
6848         (write_enum_defn): Count structures for verbosity. Added debug
6849         messages.
6850         (gengtype_long_options): Add "verbose" & "backupdir".
6851         (print_usage): Ditto.
6852         (main): Verbose display of parsed files.
6853
6854         * gengtype.h (verbosity_level): Add declaration.
6855
6856 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
6857
6858         * gengtype.c (parse_program_options): Add allocation of
6859         plugin_files, and correct test on nb_plugin_files.
6860
6861 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
6862
6863         Merge from 'apple/trunk' branch on FSF servers.
6864
6865         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
6866
6867         Radar 4133425
6868         * c-decl.c (undeclared_variable): Issue diagnostic on
6869         private 'ivar' access.
6870
6871 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
6872
6873         PR target/46051
6874         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
6875         generated sequence to match *avx_vperm2f128<mode>_nozero.
6876         (vec_interleave_lowv4df): Ditto.
6877         (vec_interleave_highv8sf): Ditto.
6878         (vec_interleave_lowv8sf): Ditto.
6879
6880 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
6881
6882         * libgcov.c (create_file_directory): Enable it for win32 case.
6883         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
6884         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
6885         (GCOV_PREFIX_SKIP): Likewise.
6886
6887 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
6888
6889         * doc/objc.texi (GNU Objective-C runtime API): New section.
6890         (Modern GNU Objective-C runtime API): New section.
6891         (Traditional GNU Objective-C runtime API): New section.
6892         (Executing code before main): Mention that this section is
6893         specific to the GNU Objective-C runtime.
6894         (Garbage Collection): Same.
6895
6896 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
6897
6898         * c-parser.c (c_parser_for_statement): Move initialization of
6899         cond and incr before if.
6900
6901 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
6902
6903         * target.def (preferred_output_reload_class): New hook.
6904         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
6905         * doc/tm.texi: Regenerate.
6906         * targhooks.c (default_preferred_output_reload_class): New function.
6907         * targhooks.h (default_preferred_output_reload_class): Declare.
6908         * reload.c (find_dummy_reload): Change rclass argument type from
6909         enum reg_class to reg_class_t. Change this_alternative array type
6910         from enum reg_class to reg_class_t.
6911         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
6912         (push_reload): Change preferred_class variable type to reg_class_t.
6913         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
6914         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
6915         argument type from enum reg_class to reg_class_t. Use
6916         HARD_REGISTER_NUM_P predicate.
6917         * recog.h (reg_fits_class_p): Update prototype.
6918
6919         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6920         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
6921         Remove.
6922         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
6923         static. Change regclass argument and result types from enum reg_class
6924         to reg_class_t.
6925         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6926
6927 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
6928
6929         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
6930         visibility enum, and handle @package.
6931
6932 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
6933
6934         * doc/objc.texi (What you can and what you cannot do in +load):
6935         Document that sending messages to constant string objects in +load
6936         is not guaranteed to work.
6937
6938 2010-10-16  Jan Hubicka  <jh@suse.cz>
6939
6940         PR middle-end/44206
6941         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
6942         existence of refrences before removing the function.
6943
6944 2010-10-16  Jan Hubicka  <jh@suse.cz>
6945
6946         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
6947         only_called_at_startup and only_called_at_exit.
6948         (cgraph_propagate_frequency): Compute only_called_at_startup and
6949         only_called_at_exit.
6950         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
6951         only_called_at_exit.
6952         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
6953         flags.
6954         * predict.c (compute_function_frequency): Initialize the new flags.
6955
6956 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6957
6958         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
6959         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
6960         on the bounds of its domain.
6961         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
6962
6963 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
6964
6965         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
6966         * config/avr/avr-protos.h (preferred_reload_class): Remove.
6967         * config/avr/avr.c (preferred_reload_class): Remove.
6968         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
6969         * config/pa/pa.c (emit_move_sequence): Update comment
6970         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
6971         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
6972         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
6973         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
6974         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
6975         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
6976         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
6977         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
6978         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
6979         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
6980         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
6981         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
6982         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
6983
6984 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
6985
6986         * opts.c (set_fast_math_flags,
6987         set_unsafe_math_optimizations_flags): Make static.
6988         * toplev.h (set_fast_math_flags,
6989         set_unsafe_math_optimizations_flags): Remove prototypes.
6990
6991 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
6992
6993         * config/arm/arm.c (arm_option_optimization): Set
6994         flag_section_anchors to 1 not 2.
6995         * config/i386/i386.c (ix86_option_override_internal): Check
6996         global_options_set.x_flag_zee and
6997         global_options_set.x_flag_omit_frame_pointer.
6998         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
6999         flag_zee to 2.
7000         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
7001         global_options_set.x_flag_omit_frame_pointer.
7002         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
7003         opts->x_flag_section_anchors to 1 not 2.
7004         * config/sh/sh.c (sh_option_optimization): Don't set
7005         flag_schedule_insns to 2.
7006         (sh_option_override): Check
7007         global_options_set.x_flag_schedule_insns.
7008         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
7009
7010 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
7011
7012         * configure.ac: Make sure inhibit_libc remains false for mingw targets
7013         as cross.
7014         * configure: Regenerated.
7015
7016 2010-10-15  Xinliang David Li  <davidxl@google.com>
7017
7018         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
7019         function.
7020         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
7021         into a recursive function.
7022
7023 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
7024
7025         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
7026         (*movdfcc_1): ditto.
7027
7028 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7029
7030         * target.def (target_option.init_struct): New hook.
7031         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
7032         * doc/tm.texi: Regenerate.
7033         * hooks.c (hook_void_gcc_optionsp): New.
7034         * hooks.h (hook_void_gcc_optionsp): Declare.
7035         * langhooks-def.h (lhd_init_options_struct): Remove.
7036         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
7037         * langhooks.c (lhd_init_options_struct): Remove.
7038         * opts.c (init_options_struct): Also call
7039         targetm.target_option.init_struct.
7040         * config/i386/i386.c (ix86_option_init_struct,
7041         TARGET_OPTION_INIT_STRUCT): New.
7042         (ix86_option_optimization): Move some settings to
7043         ix86_option_init_struct.
7044         * config/pdp11/pdp11.c (pdp11_option_init_struct,
7045         TARGET_OPTION_INIT_STRUCT): New.
7046         (pdp11_option_optimization): Move some settings to
7047         pdp11_option_init_struct.
7048         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
7049         rs6000_option_init_struct.  Use options structure pointer.
7050         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
7051         * config/s390/s390.c (s390_option_init_struct,
7052         TARGET_OPTION_INIT_STRUCT): New.
7053         (s390_option_optimization): Don't set
7054         flag_asynchronous_unwind_tables here.
7055         * config/sh/sh.c (sh_option_init_struct,
7056         TARGET_OPTION_INIT_STRUCT): New.
7057         (sh_option_optimization): Don't set flag_finite_math_only here.
7058         * config/spu/spu.c (spu_option_optimization): Replace by
7059         spu_option_optimization.  Use options structure pointer.
7060         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
7061
7062 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
7063
7064         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
7065
7066         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
7067         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
7068         (Standard names): Document fma.
7069
7070         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
7071         __FP_FAST_FMAF, __FP_FAST_FMAL.
7072
7073         * builitns.c (expand_builtin_mathfn_ternary): New function for
7074         expanding ternary math functions, like fma.
7075         (expand_builtin): Call it for the fma builtins.
7076
7077         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
7078         ops at present.
7079
7080         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
7081         vectorizable functions to support vectorizing fma.
7082
7083         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
7084         Handle fma builtins.
7085
7086         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
7087         (UNSPEC_VSX_MSUB): Ditto.
7088         (UNSPEC_VSX_NMADD): Ditto.
7089         (UNSPEC_VSX_NMSUB): Ditto.
7090         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
7091         of UNSPEC. Renumber combiner patterns.
7092         (vsx_fmsub<mode>4*): Ditto.
7093         (vsx_fnmadd<mode>4*): Ditto.
7094         (vsx_fnmsub<mode>4*): Ditto.
7095
7096         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
7097         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
7098         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
7099         (altivec_vmaddfp_1): Ditto.
7100         (altivec_vmaddfp_2): Ditto.
7101         (atlivec_mulv4sf3): Ditto.
7102         (altivec_vnmsubfp): Ditto.
7103         (altivec_vnmsubfp_1): Ditto.
7104         (altivec_vnmsubfp_2): Ditto.
7105         (altivec_vnmsubfp_3): Delete.
7106
7107         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
7108         (fmasf4_fpr): Ditto.
7109         (fmssf4_fpr): Ditto.
7110         (fnmasf4_fpr): Ditto.
7111         (fnmssf4_fpr): Ditto.
7112         (fmadf4): Ditto.
7113         (fmadf4_fpr): Ditto.
7114         (fmsdf4_fpr): Ditto.
7115         (fnmadf4_fpr): Ditto.
7116         (fnmsdf4_fpr): Ditto.
7117
7118         * optabs.h (OTI_fma): Add fma optab.
7119         (fma_optab): Ditto.
7120
7121         * genopinit.c (optabs): Set fma optab.
7122
7123         * rtl.def (FMA): Add FMA rtl.
7124
7125         * tree.h (mode_has_fma): New function to return if MODE supports a
7126         fast multiply and add instruction.
7127         * builtins.c (mode_has_fma): Ditto.
7128
7129 2010-10-15  Jan Hubicka  <jh@suse.cz>
7130
7131         * lto-streamer-out.c (write_symbol): Use pointer set of seen
7132         objects instead of bitmap.
7133         (produce_symtab): Likewise; output defined symbols first.
7134
7135 2010-10-15  Jie Zhang  <jie@codesourcery.com>
7136
7137         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
7138         Option Summary and Index.
7139
7140 2010-10-15  Richard Guenther  <rguenther@suse.de>
7141
7142         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
7143         for automatic variables again.
7144
7145 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7146
7147         * doc/extend.texi (Variable Length): Don't refer to VLAs not
7148         conforming to C99.
7149
7150 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7151
7152         * config/rx/rx.c (rx_option_optimization): Change to
7153         rx_override_options_after_change.  Don't change
7154         flag_lto_compression_level.  Don't check for changes to whether
7155         FPU instructions can be used.  Check and set only
7156         flag_finite_math_only, not other fast-math flags.
7157         (rx_option_override): Call rx_override_options_after_change.
7158         (TARGET_OPTION_OPTIMIZATION): Remove.
7159         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7160
7161 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7162
7163         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
7164         disable section anchors for lang_hooks.name[4] != 'O'.
7165
7166 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
7167
7168         * config/frv/frv.c (frv_option_optimization,
7169         TARGET_OPTION_OPTIMIZATION): Remove.
7170         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
7171
7172 2010-10-15  Michael Matz  <matz@suse.de>
7173
7174         * cgraphunit.c (clone_of_p): Define unconditionally.
7175
7176 2010-10-15  Richard Guenther  <rguenther@suse.de>
7177
7178         PR lto/45957
7179         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
7180
7181 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
7182
7183         * ifcvt.c (find_active_insn_before): New function.
7184         (find_active_insn_after): New function.
7185         (cond_exec_process_if_block): Use new functions to replace
7186         prev_active_insn() and next_active_insn().
7187
7188 2010-10-14  Yao Qi  <yao@codesourcery.com>
7189
7190         PR target/45447
7191         * config/arm/arm.c (arm_build_builtin_va_list): Assign
7192         va_list_name to TYPE_STUB_DECL (va_list_type).
7193
7194 2010-10-14  Jan Hubicka  <jh@suse.cz>
7195
7196         PR middle-end/45621
7197         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
7198         redirected to clone, be happy.
7199         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
7200         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
7201         former_clone_of unconditionally.
7202
7203 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7204
7205         Merge from FSF apple 'trunk' branch.
7206         2006 Fariborz Jahanian  <fjahanian@apple.com>
7207
7208         Radars 4436866, 4505126, 4506903, 4517826
7209         * c-parser.c (c_parser, objc_property_attr_context) New flag.
7210         (c_lex_one_token): Handle property attributes.
7211         (c_parser_external_declaration): Handle @property.
7212         (c_parser_declaration_or_fndef): Warn on invalid attributes before
7213         @alias, @class, @end and @property objc keywords.
7214         (c_parser_objc_methodprotolist): Handle @property.
7215         (c_parser_objc_property_attrlist): New.
7216         (c_parser_objc_at_property): New.
7217         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
7218         (build_modify_expr): Likewise.
7219
7220 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
7221
7222         PR tree-optimization/46008
7223         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
7224
7225 2010-10-14  Richard Guenther  <rguenther@suse.de>
7226
7227         PR tree-optimization/44913
7228         * tree-data-ref.c (disjoint_objects_p): Remove.
7229         (dr_may_alias_p): Simplify.  Only hand the base object to
7230         the alias-oracle.
7231         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
7232         some more trees, bail out instead of asserting.
7233         (ptr_derefs_may_alias_p): Likewise.  Export.
7234         (refs_may_alias_p_1): Handle STRING_CSTs.
7235         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
7236
7237 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
7238
7239         PR c/45969
7240         * c-typeck.c (build_binary_op): Don't try to compute a semantic
7241         type with excess precision for boolean operations.
7242
7243 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
7244             Basile Starynkevitch  <basile@starynkevitch.net>
7245
7246         * gengtype.c:  Include getopt.h and version.h.
7247
7248         (lang_bitmap, struct outf, outf_p)
7249         (get_output_file_with_visibility, oprintf): Definitions moved to
7250         gengtype.h
7251         (output_files, header_file, srcdir, srcdir_len, this_file)
7252         (do_dump): No more static variables.
7253         (do_debug): New.
7254         (dbgprint_count_type_at): Added new function.
7255         (gengtype_long_options): New.
7256         (print_usage, print_version, parse_program_options): New.
7257         (main): Call parse_program_options, and removed old option
7258         handling code.  Added some debug output.
7259
7260         * gengtype.h:  Updated copyright year.
7261         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
7262         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
7263         Moved from gengtype.c to here.
7264         (do_debug, read_state_filename, write_state_filename): New variables.
7265         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
7266
7267         * Makefile.in:
7268         (REVISION): Always defined.
7269         (version.o): Removed ifdef REVISION_c.
7270         (s-gtype): Pass arguments to build/gengtype program.
7271         (build/version.o): Added building rule.
7272         (build/gengtype$(build_exeext)): Added build/version.o.
7273
7274 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
7275
7276         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
7277         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
7278         __strong macros.
7279
7280 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
7281
7282         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
7283         may_trap_or_fault_p instead of may_trap_p predicate.
7284         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
7285         (substitute_placeholder_in_expr): Likewise.
7286         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
7287         flag on MEM_REF nodes.
7288         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
7289         flags on INDIRECT_REF nodes.
7290
7291 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
7292
7293         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
7294         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
7295         (arm*-*-eabi*) <tm_file>: Likewise.
7296         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
7297         (frv-*-*linux*) <tm_file>: Likewise.
7298         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
7299         and associated helper macros.
7300         * config/frv/frv-abi.h: Delete.
7301
7302 2010-10-14  Richard Guenther  <rguenther@suse.de>
7303
7304         PR lto/44561
7305         * tree.def (NULLPTR_TYPE): New tree code.
7306         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
7307         * dwarf2out.c (is_base_type): Likewise.
7308         (gen_type_die_with_usage): Likewise.
7309         * sdbout.c (plain_type_1): Likewise.
7310         * tree.c (build_int_cst_wide): Likewise.
7311         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
7312
7313 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
7314
7315         * params.c (params_finished): New.
7316         (add_params): Assert !params_finished.
7317         (finish_params): New.
7318         (set_param_value_internal): Take params and params_set
7319         parameters.  Assert params_finished.
7320         (set_param_value, maybe_set_param_value): Take params and
7321         params_set parameters.  Update calls to set_param_value_internal.
7322         (set_default_param_value): Assert !params_finished.  Don't use
7323         set_param_value_internal.
7324         (default_param_value, init_param_values): New.
7325         * params.h (struct param_info): Change value to default_value.
7326         Remove set.
7327         (set_param_value, maybe_set_param_value): Add params and
7328         params_set parameters.
7329         (PARAM_VALUE): Get parameters from global_options.
7330         (PARAM_SET_P): Remove.
7331         (finish_params, default_param_value, init_param_values): New.
7332         * common.opt (param_values): New Variable.
7333         * config/arm/arm.c (arm_option_override): Pass extra arguments to
7334         maybe_set_param_value.
7335         * config/i386/i386.c (ix86_option_override_internal): Pass extra
7336         arguments to maybe_set_param_value.
7337         * config/picochip/picochip.c (picochip_option_override): Pass
7338         extra arguments to maybe_set_param_value.
7339         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
7340         extra arguments to maybe_set_param_value.
7341         * config/s390/s390.c (s390_option_override): Use
7342         maybe_set_param_value instead of set_param_value.  Pass extra
7343         arguments to maybe_set_param_value.
7344         * config/sparc/sparc.c (sparc_option_override): Pass extra
7345         arguments to maybe_set_param_value.
7346         * config/spu/spu.c (spu_option_override): Pass extra arguments to
7347         maybe_set_param_value.
7348         * opts.c (handle_param): Take opts and opts_set parameters.
7349         Update call to set_param_value.
7350         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
7351         initial_loop_invariant_max_bbs_in_loop): Remove.
7352         (init_options_once): Don't set them.
7353         (init_options_struct): Initialize parameters structures.
7354         (default_options_optimization): Use default_param_value when
7355         restoring defaults.  Update calls to maybe_set_param_value.
7356         (finish_options): Update calls to maybe_set_param_value.
7357         (common_handle_option): Update calls to handle_param and
7358         set_param_value.
7359         * toplev.c (DEFPARAM): Update definition for changes to param_info.
7360         (general_init): Call finish_params.
7361
7362 2010-10-14  Nick Clifton  <nickc@redhat.com>
7363
7364         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
7365         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
7366         (FIRST_PSEUDO_REGISTER): Increase by one.
7367         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
7368         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
7369         (MODES_TIEABLE): Call mn10300_modes_tieable.
7370         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
7371         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
7372         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
7373         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
7374         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
7375         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
7376         (mn10300_cc_status_mdep): Delete.
7377         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
7378         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
7379         the combine-stack-adjust pass.
7380         (print_operand): Use the mode of the comparison operation to
7381         select the comparison suffix.
7382         (notice_update_cc): Delete.
7383         (mn10300_secondary_reload_class): Remove test for stack pointer
7384         based arithmetic.
7385         (output_tst): Rename to mn10300_output_cmp.
7386         (impossible_plus_operand): Move into predicates.md.
7387         (mn10300_legitimize_address): Make static.
7388         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
7389         constant pic operands.
7390         (mn10300_legitimate_constant_p): New function.
7391         (mn10300_case_values_threshold): Make static.
7392         (mn10300_hard_regno_mode_ok): New function.
7393         (mn10300_modes_tieable): New function.
7394         (mn10300_select_cc_mode): New function.
7395         * config/mn10300/predicates.md (impossible_plus_operand): Define.
7396         * config/mn10300/mn10300-protos.h: Tidy.
7397         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
7398         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
7399         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
7400         with clobbers or sets of CC_REG.
7401         (CC_REG): Define.
7402         (mov*): Remove use of CLR instruction.
7403         (cbranch_si4_<code>): New pattern/split.
7404         (integer_conditional_branch): New pattern.
7405         (cbranch_sf4_<code>): New pattern/split.
7406         (float_conditional_branch): New pattern.
7407         (casesi): Use addsi3 pattern instead of movsi pattern to add and
7408         move a value at the same time.
7409         (cc0 peepholes): Remove.
7410
7411 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
7412
7413         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
7414         on RTX_FRAME_RELATED_P insns and the insn to which
7415         NOTE_INSN_EPILOGUE_BEG is attached.
7416         * sched-vis.c (print_value): Allow NULL value.
7417
7418 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
7419
7420         PR rtl-optimization/45570
7421         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
7422         assert that we are pipelining outer loops.  Allow returning
7423         zero predecessors.
7424
7425 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
7426
7427         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
7428         (tidy_control_flow): Tidy vertical space.
7429         (sel_remove_bb): New variable idx.  Use it to remember the basic
7430         block index before deleting the block.
7431         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
7432         (sel_merge_blocks): ... here.
7433         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
7434
7435 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
7436
7437         * cse.c (is_dead_reg): Change into inline function that is not
7438         called through for_each_rtx.
7439         (set_live_p): Adjust caller.
7440         (insn_live_p): Don't reset DEBUG_INSNs here.
7441         (struct dead_debug_insn_data): New data.
7442         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
7443         (delete_trivially_dead_insns): If there is just one setter for the
7444         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
7445         and add DEBUG_INSN for it right before the removed setter and
7446         use the DEBUG_EXPR instead of the dead pseudo.
7447
7448 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
7449
7450         * et-forest.c (et_nca): Return NULL immediately when
7451         the dominance forest has disjoint components.
7452
7453 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
7454
7455         * ira.c (setup_class_hard_regs): Fix typo in indexing
7456         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
7457
7458 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
7459
7460         * graph.c (inbb): New variable.
7461         (start_bb): Set inbb to 1 if output is inside of a building block.
7462         (end_bb): Check if output is inside of a building block.
7463
7464 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
7465
7466         PR rtl-optimization/45912
7467         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
7468         regno of registers instead of their index to compute the alignment.
7469
7470 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
7471
7472         * config/i386/i386.c (ix86_build_const_vector): Check vector
7473         mode instead of scalar mode.
7474         (ix86_build_signbit_mask): Likewise.
7475         (ix86_expand_fp_absneg_operator): Updated.
7476         (ix86_expand_copysign): Likewise.
7477         (ix86_expand_int_vcond): Likewise.
7478         (ix86_emit_swdivsf): Likewise.
7479         (ix86_sse_copysign_to_positive): Likewise.
7480         (ix86_expand_sse_fabs): Likewise.
7481         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
7482         * config/i386/sse.md (copysign<mode>3): Likewise.
7483         (sse2_cvtudq2ps): Likewise.
7484         (vec_unpacku_float_hi_v4si): Likewise.
7485         (vec_unpacku_float_lo_v4si): Likewise.
7486
7487         * config/i386/i386.c (ix86_builtins): Add
7488         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
7489         (bdesc_args): Likewise.
7490         (ix86_builtin_vectorized_function): Support
7491         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
7492         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
7493         and IX86_BUILTIN_CVTPS2DQ256.
7494         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
7495
7496         * config/i386/sse.md (STORENT_MODE): New.
7497         (VEC_FLOAT_MODE): Likewise.
7498         (VEC_EXTRACT_MODE): Likewise.
7499         (*avx_cvtdq2pd256_2): Likewise.
7500         (vec_pack_trunc_v4df): Likewise.
7501         (vec_interleave_highv8sf): Likewise.
7502         (vec_interleave_lowv8sf): Likewise.
7503         (storent<mode>): Macroized.
7504         (<code><mode>2: absneg): Likewise.
7505         (copysign<mode>3): Likewise.
7506         (vec_extract<mode>): Likewise.
7507
7508         PR target/44180
7509         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
7510         for V8SFmode.
7511
7512 2010-10-13  Richard Guenther  <rguenther@suse.de>
7513             H.J. Lu  <hongjiu.lu@intel.com>
7514
7515         * config/i386/sse.md (reduc_splus_v8sf): Add.
7516         (reduc_splus_v4df): Likewise.
7517         (vec_unpacks_hi_v8sf): Likewise.
7518         (vec_unpacks_lo_v8sf): Likewise.
7519         (*avx_cvtps2pd256_2): Likewise.
7520         (vec_unpacks_float_hi_v8si): Likewise.
7521         (vec_unpacks_float_lo_v8si): Likewise.
7522         (vec_interleave_highv4df): Likewise.
7523         (vec_interleave_lowv4df): Likewise.
7524
7525 2010-10-13  Richard Guenther  <rguenther@suse.de>
7526
7527         PR objc/45878
7528         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
7529         alone if there are no virtual methods.
7530
7531 2010-10-13  Richard Henderson  <rth@redhat.com>
7532
7533         * expr.c (build_personality_function): Take parameter LANG instead
7534         of parameter NAME.  Build the name based on the lang prefix and the
7535         unwind method in use.
7536         * tree.c (lhd_gcc_personality): Update call to
7537         build_personality_function.
7538
7539 2010-10-13  Richard Guenther  <rguenther@suse.de>
7540
7541         PR objc/45878
7542         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
7543
7544 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
7545
7546         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
7547         Canonicalize input operands of ASM_OPERANDS insns.
7548
7549 2010-10-13  Richard Guenther  <rguenther@suse.de>
7550
7551         PR tree-optimization/45788
7552         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
7553         EH update until fixup-cfg.
7554
7555 2010-10-13  Julian Brown  <julian@codesourcery.com>
7556
7557         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
7558         from CORE_REGS and GENERAL_REGS classes.
7559         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
7560         final constraint for register preferencing.
7561
7562 2010-10-13  Richard Guenther  <rguenther@suse.de>
7563
7564         PR tree-optimization/45970
7565         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
7566         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
7567         (stmt_kills_ref_p): Likewise.
7568         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
7569
7570 2010-10-13  Richard Guenther  <rguenther@suse.de>
7571
7572         PR tree-optimization/45982
7573         * tree-ssa-structalias.c (make_constraints_to): New function.
7574         (make_constraint_to): Implement in terms of make_constraints_to.
7575         (find_func_aliases): Properly make return values of pure/const
7576         functions escape if they assign to sth that is not a pointer.
7577
7578 2010-10-13  Richard Guenther  <rguenther@suse.de>
7579
7580         PR middle-end/45874
7581         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
7582         Fixup the CFG when EH was fixed up.
7583
7584 2010-10-13  Ira Rosen  <irar@il.ibm.com>
7585
7586         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
7587         Use operand's type for POINTER_PLUS_EXPR.
7588
7589 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
7590
7591         * c-parser.c (c_parser_for_statement): Initialize incr.
7592
7593 2010-10-12  Xinliang David Li  <davidxl@google.com>
7594
7595         PR tree-optimization/45972
7596         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
7597         with too many arguments.
7598
7599 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
7600
7601         PR fortran/45636
7602         * tree-ssa-forwprop.c: Include expr.h.
7603         (constant_pointer_difference, simplify_builtin_call): New functions.
7604         (tree_ssa_forward_propagate_single_use_vars): Call
7605         simplify_builtin_call on builtin calls.
7606
7607 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
7608
7609         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
7610         (*adddi3_extend_sp32): Likewise.
7611         (*subdi3_insn_sp32): Likewise.
7612         (*subdi3_extend_sp32): Likewise.
7613         (*negdi2_sp32): Use negative test for consistency.
7614
7615 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
7616
7617         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
7618         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
7619         * config/fixed-bit.h: Likewise.
7620         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
7621         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
7622         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
7623         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
7624         (DF_SIZE): Likewise.
7625         * doc/tm.texi: Regenerate.
7626
7627 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
7628
7629         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
7630         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
7631         (*isel_reversed_unsigned_<mode>): New.
7632         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
7633         as valid comparisons and adjust operands and output appropriately.
7634         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
7635
7636 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
7637
7638         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
7639         DATA_ALIGNMENT and add COND parameter. Update comments above.
7640         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
7641         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
7642
7643 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
7644
7645         PR bootstrap/45958
7646         * exec-tool.in: Support '-plugin' as the second option to the linker.
7647
7648 2010-10-12  Richard Henderson  <rth@redhat.com>
7649
7650         PR middle-end/45962
7651         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
7652         (expand_stack_vars): Assert large base allocated when used.
7653
7654 2010-10-12  Richard Guenther  <rguenther@suse.de>
7655
7656         * tree-ssa-structalias.c (get_constraint_for_1): Constants
7657         only point to nonlocal, not anything.
7658
7659 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
7660
7661         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
7662         unwind info for exceptions.
7663
7664 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7665
7666         PR testsuite/45851
7667         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
7668         Document optional target selector.
7669
7670 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
7671
7672         * flag-types.h: New.
7673         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
7674         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
7675         options.h.
7676         (OPTIONS_H): Define.
7677         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
7678         of options.h.
7679         * configure.ac (tm_include_list): Include options.h not flags.h.
7680         * configure: Regenerate.
7681         * flags.h: Include flag-types.h.  Include options.h at top of file
7682         again.
7683         (enum debug_info_type, enum debug_info_level, enum
7684         debug_info_usage, enum symbol_visibility, struct visibility_flags,
7685         enum ira_algorithm, enum ira_region, enum excess_precision, enum
7686         graph_dump_types, enum stack_check_type,
7687         enum warn_strict_overflow_code): Move to flag-types.h
7688         * opth-gen.awk: Include flag-types.h in options.h.
7689
7690 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
7691
7692         * expr.c (store_expr): Share code for STRING_CST and
7693         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
7694         check if target is a MEM.
7695
7696         * rtl.h: Include hashtab.h.
7697         (iterative_hash_rtx): New prototype.
7698         * rtl.c (iterative_hash_rtx): New function.
7699         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
7700         (output_loc_list): Return immediately if emitted is set, set it.
7701         (hash_loc_operands, hash_locs, hash_loc_list,
7702         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
7703         optimize_location_lists_1, optimize_location_lists): New function.
7704         (dwarf2out_finish): Call optimize_location_lists.
7705         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
7706
7707 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7708
7709         PR testsuite/45974
7710         Revert:
7711         * Makefile.in ($(lang_checks_parallel))
7712         ($(lang_checks_parallelized)): Use single quotes for
7713         $(RUNTESTFLAGS), to allow passing quoted content.
7714
7715 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7716
7717         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
7718         actual_oldval.  Use __builtin_expect.
7719         (SUBWORD_VAL_CAS): Likewise.
7720
7721 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
7722
7723         * recog.c (nonmemory_operand): Call immediate_operand for
7724         CONSTANT_P operands.
7725
7726 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
7727
7728         * config/i386/i386.md (movmem<mode>): Macroize expander from
7729         movmem{si,di} using SWI48 mode iterator.
7730         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
7731         *strmovsi_rex_1 using P mode iterator.
7732         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
7733         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
7734         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
7735         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
7736         (setmem<mode>): Macroize expander from setmem{si,di} using
7737         SWI48 mode iterator.
7738         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
7739         *strsetsi_rex_1 using P mode iterator.
7740         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
7741         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
7742         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
7743         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
7744         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
7745         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
7746         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
7747         mode iterator.
7748         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
7749         *strlenqi_rex_1 using P mode iterator.
7750
7751 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
7752
7753         PR bootstrap/45445
7754         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
7755         static functions.
7756         (mark_ref_live, mark_ref_dead): Use them.
7757         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
7758         Save the original reg, and use the new functions.
7759         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
7760         changed.
7761         (check_and_make_def_conflict): Save the original reg.
7762
7763 2010-10-11  Martin Jambor  <mjambor@suse.cz>
7764
7765         PR middle-end/45699
7766         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
7767         thunks.
7768
7769 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7770
7771         * Makefile.in ($(lang_checks_parallel))
7772         ($(lang_checks_parallelized)): Use single quotes for
7773         $(RUNTESTFLAGS), to allow passing quoted content.
7774
7775         PR bootstrap/35855
7776         * opt-functions.awk (BEGIN): New section.
7777         (lower, upper, digit, alnum): New variables.
7778         (static_var, opt_sanitized_name): Use alnum instead of character
7779         classes, for non-C locale.
7780         * optc-gen.awk: Likewise.
7781         * opth-gen.awk: Likewise.
7782
7783 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
7784
7785         * target.def (preferred_reload_class): New hook.
7786         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
7787         * doc/tm.texi: Regenerate.
7788         * targhooks.c (default_preferred_reload_class): New function.
7789         * targhooks.h (default_preferred_reload_class): Declare.
7790         * reload.c (find_dummy_reload): Change preferred_class variable type
7791         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
7792         target hook.
7793         (find_reloads): Change goal_alternative array type from int to
7794         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
7795         (push_reload, find_reloads_address_part): Use
7796         TARGET_PREFERRED_RELOAD_CLASS target hook.
7797         * reload1.c (emit_input_reload_insns): Ditto.
7798         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
7799         hook. Change rclass argument and secondary_class variable types from
7800         'enum reg_class' to reg_class_t.
7801
7802         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
7803         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
7804         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
7805         Change regclass argument and result types from enum reg_class to
7806         reg_class_t.
7807         (TARGET_PREFERRED_RELOAD_CLASS): Define.
7808
7809 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
7810
7811         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
7812         in masking operations.
7813         (simplify_const_unary_operation): Likewise.
7814         (simplify_binary_operation_1): Likewise.
7815         (simplify_const_binary_operation): Likewise.
7816         (simplify_const_relational_operation): Likewise.
7817         (simplify_ternary_operation): Likewise.
7818         (simplify_immed_subreg): Likewise.
7819
7820 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7821
7822         PR middle-end/45862
7823         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
7824         (TARGET_SUPPORTS_WEAK): New.
7825         * doc/tm.texi: Regenerate.
7826         * defaults.h (SUPPORTS_WEAK): Update comment.
7827         (TARGET_SUPPORTS_WEAK): New.
7828         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
7829         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
7830         SUPPORTS_WEAK.
7831         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
7832         make_decl_one_only): Likewise.
7833         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
7834         TARGET_SUPPORTS_WEAK.
7835         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
7836         instead of SUPPORTS_WEAK.
7837
7838 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7839
7840         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
7841
7842 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
7843
7844         * vec.h (VEC_qsort): Define.
7845         * dbxout.c (output_used_types): Use it.
7846         * df-scan.c (df_sort_and_compress_refs): Likewise.
7847         (df_sort_and_compress_mws): Likewise.
7848         * genautomata.c (uniq_sort_alt_states): Likewise.
7849         (evaluate_equiv_classes): Likewise.
7850         (output_trans_table): Likewise.
7851         (output_state): Likewise.
7852         * gimplify.c (compare_case_labels): Likewise.
7853         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
7854         * ipa.c (build_cdtor_fns): Likewise.
7855         * lto.c (lto_wpa_write_files): Likewise.
7856         * sel-sched.c (fill_vec_av_set): Likewise.
7857         * tree-predcom.c (determine_roots_comp): Likewise.
7858         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
7859         (splice_param_accesses): Likewise.
7860         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
7861         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
7862         (reassociate_bb): Likewise.
7863         * tree-ssa-sccvn.c (sort_scc): Likewise.
7864         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
7865
7866 2010-10-11  Ian Lance Taylor  <iant@google.com>
7867
7868         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
7869         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
7870         TREE_THIS_NOTRAP when appropriate.
7871         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
7872         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
7873         newly created MEM_REF.
7874
7875 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
7876
7877         Nathan Froyds patch to hooks FUNCTION_ARG etc.
7878         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
7879         (picochip_incoming_function_arg): Delete.
7880         (picochip_arg_advance): Delete.
7881         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
7882         (FUNCTION_INCOMING_ARG): Delete.
7883         (FUNCTION_ARG_ADVANCE): Delete.
7884         * config/picochip/picochip.c (picochip_function_arg): Take a
7885         const_tree and a bool.
7886         (picochip_incoming_function_arg): Likewise.
7887         (picochip_arg_advance): Likewise.
7888         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7889         (TARGET_FUNCTION_ARG_ADVANCE): Define.
7890
7891 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7892
7893         PR middle-end/45955
7894         * ipa.c (build_cdtor): Delete endless loop.
7895
7896 2010-10-07  Andi Kleen  <ak@linux.intel.com>
7897
7898         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
7899         checksum-options.
7900         (checksum-options): Add.
7901         (cc1-dummy): Remove.
7902         (cc1-checksum): Change to run checksum over object files
7903         and options only.
7904         * dummy-checksum.c: Remove.
7905         * genchecksum.c: Update copyright.
7906         (usage): Allow multiple arguments.
7907         (BLOCKSIZE): Add.
7908         (dosum): Change for incremental checksum. Remove C output.
7909         (main): Iterate over all argument files. Add C output.
7910
7911 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
7912
7913         * params.c (set_param_value_internal): New.
7914         (set_param_value): Use set_param_value_internal.
7915         (maybe_set_param_value, set_default_param_value): New.
7916         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
7917         (maybe_set_param_value, set_default_param_value): Declare.
7918         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
7919         * config/i386/i386.c (ix86_option_override_internal): Use
7920         maybe_set_param_value.
7921         * config/ia64/ia64.c (ia64_option_default_params,
7922         TARGET_OPTION_DEFAULT_PARAMS): New.
7923         (ia64_option_optimization): Move some code to
7924         ia64_option_default_params.
7925         * config/picochip/picochip.c (picochip_option_override): Use
7926         maybe_set_param_value.
7927         * config/rs6000/rs6000.c (rs6000_option_default_params,
7928         TARGET_OPTION_DEFAULT_PARAMS): New.
7929         (rs6000_option_override_internal): Use maybe_set_param_value.
7930         (rs6000_option_optimization): Move some code to
7931         rs6000_option_default_params.
7932         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
7933         * config/sh/sh.c (sh_option_default_params,
7934         TARGET_OPTION_DEFAULT_PARAMS): New.
7935         (sh_option_optimization): Move some code to sh_option_default_params.
7936         * config/sparc/sparc.c (sparc_option_override): Use
7937         maybe_set_param_value.
7938         * config/spu/spu.c (spu_option_default_params,
7939         TARGET_OPTION_DEFAULT_PARAMS): New.
7940         (spu_option_optimization): Move some code to spu_option_default_params.
7941         (spu_option_override): Use maybe_set_param_value.
7942         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
7943         * doc/tm.texi: Regenerate.
7944         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
7945         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
7946         compiler_params.
7947         (default_options_optimization): Use maybe_set_param_value.
7948         (finish_options): Use maybe_set_param_value.
7949         * target.def (target_option.default_params): New hook.
7950         * toplev.c (general_init): Call targetm.target_option.default_params.
7951
7952 2010-10-11  Ira Rosen  <irar@il.ibm.com>
7953
7954         PR tree-optimization/45902
7955         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
7956         vector type for constants, unless it's a pointer.
7957
7958 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7959
7960         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
7961
7962 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
7963
7964         PR target/45870
7965         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
7966         (ix86_delegitimize_address): Use it.
7967
7968 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
7969
7970         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
7971
7972 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
7973
7974         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
7975         to cum struct in the call to function_arg_advance.
7976         (alpha_function_arg_advance): Mark named as unused.
7977
7978 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
7979
7980         * config/mips/mips.c (mips_handle_option): Make "value" with
7981         ATTRIBUTE_UNUSED.
7982
7983 2010-10-09  Richard Henderson  <rth@redhat.com>
7984
7985         PR rtl-opt/33721
7986         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
7987         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
7988         required_align, tidy the code a bit.  Emit split_stack code in the
7989         right place.  Mark the return value with the alignment properly.
7990         * expr.h (allocate_dynamic_stack_space): Update decl.
7991         * builtins.c (expand_builtin_apply): Update call to
7992         allocate_dynamic_stack_space.
7993         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
7994         * calls.c (initialize_argument_information): Update call to
7995         allocate_dynamic_stack_space.
7996         (expand_call): Likewise.
7997
7998         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
7999         Don't update_stack_alignment here.
8000         (alloc_stack_frame_space): Make ALIGN unsigned.
8001         (stack_var_cmp): Sort by alignment too.
8002         (partition_stack_vars): Don't merge large and small alignment vars.
8003         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
8004         Take care when BASE is not virtual_stack_vars_rtx.
8005         (expand_stack_vars): Allocate dynamic stack space for large
8006         alignment variables.
8007         (expand_one_stack_var): Update all to expand_one_stack_var_at.
8008         (defer_stack_allocation): True for large alignment vars.
8009         (update_stack_alignment): Merge into ...
8010         (expand_one_var): ... here.
8011         (gimple_expand_cfg): Place code from expand_stack_vars.
8012
8013 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8014
8015         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8016         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
8017         (pdp11_function_arg_advance): New function.
8018         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8019
8020 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8021
8022         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
8023         * libgcc2.c: Likewise.
8024
8025 2010-10-09  Richard Guenther  <rguenther@suse.de>
8026
8027         PR lto/45956
8028         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
8029         Properly check if a decl is an automatic var.
8030
8031 2010-10-09  Richard Guenther  <rguenther@suse.de>
8032
8033         PR lto/45947
8034         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
8035
8036 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8037
8038         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
8039         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8040         * config/mmix/mmix.c (mmix_function_arg): Rename to...
8041         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
8042         bool arguments.
8043         (mmix_function_arg): New function.
8044         (mmix_function_incoming_arg): New function.
8045         (mmix_function_arg_advance): New function.
8046         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
8047         (TARGET_FUNCTION_ARG_ADVANCE): Define.
8048
8049 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8050
8051         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8052         * config/vax/vax.c (vax_function_arg): New function.
8053         (vax_function_arg_advance): New function.
8054         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8055
8056 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8057
8058         * config/pa/pa-protos.h (function_arg): Delete.
8059         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8060         * config/pa/pa.c (function_arg): Rename to...
8061         (pa_function_arg): ...this.  Make static.  Take a const_tree and
8062         a bool.
8063         (pa_function_arg_advance): New function.
8064         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8065
8066 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8067
8068         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8069         * config/m68k/m68k.c (m68k_function_arg): New function.
8070         (m68k_function_arg_advance): New function.
8071         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8072
8073 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8074
8075         * config/avr/avr-protos.h (function_arg): Delete.
8076         (function_arg_advance): Delete.
8077         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8078         * config/avr/avr.c (function_arg): Rename to...
8079         (avr_function_arg): ...this.  Make static.  Take a const_tree and
8080         a bool.
8081         (function_arg_advance): Rename to...
8082         (avr_function_arg_advance): ...this.  Make static.  Take a
8083         const_tree and a bool.
8084         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8085
8086 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8087
8088         * config/alpha/alpha-protos.h (function_arg): Delete.
8089         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8090         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
8091         * config/alpha/alpha.c (function_arg): Rename to...
8092         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
8093         a bool.  Delete TARGET_ABI_UNICOSMK code.
8094         (alpha_function_arg_advance): New function.
8095         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8096
8097 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8098
8099         * config/mep/mep-protos.h (mep_function_arg): Delete.
8100         (mep_function_arg_advance): Delete.
8101         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8102         * config/mep/mep.c (mep_function_arg): Make static.  Take a
8103         const_tree and a bool.
8104         (mep_function_arg_advance): Likewise.
8105         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8106
8107 2010-10-09  Richard Guenther  <rguenther@suse.de>
8108
8109         PR tree-optimization/45945
8110         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
8111
8112 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
8113
8114         PR tree-optimization/45612
8115         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
8116         Test LABEL_DECLs as well.  Fix formatting issues.
8117         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
8118         whose label is present in NON_SSA_VARS.
8119         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
8120         as well.  Fix formatting issues.
8121         (visit_bb): Fix typos and formatting issue.
8122
8123 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
8124
8125         PR tree-optimization/45950
8126         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
8127         before initializing vno->op.
8128
8129 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
8130
8131         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
8132         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
8133
8134 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
8135
8136         PR target/45913
8137         * config/i386/i386.c (ix86_binary_operator_ok): Support
8138         "andhi/andsi/anddi" as a zero-extending move.
8139
8140 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8141
8142         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
8143         into a temporary array.
8144
8145 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
8146
8147         PR tree-optimization/45903
8148         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
8149         of {A,L}SHIFTRT of MEM.
8150
8151 2010-10-08  Richard Guenther  <rguenther@suse.de>
8152
8153         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
8154         Re-construct BLOCK_VARS.
8155         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
8156         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
8157         * tree.c (free_lang_data_in_block): Remove.
8158         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
8159         Do not touch the BLOCK tree.
8160         * expr.c (expand_expr_real_1): Allow externals.
8161
8162 2010-10-08  Richard Guenther  <rguenther@suse.de>
8163
8164         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
8165         Do not output BLOCK_SUBBLOCKS.
8166         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
8167         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
8168         Re-construct BLOCK_SUBBLOCKS of parent block.
8169         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
8170         for BINFO_BASE_ACCESSES.
8171
8172 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
8173
8174         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
8175         (TREE_H): Include $(FLAGS_H) instead of options.h.
8176         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
8177         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
8178         * common.opt (flag_complex_method, flag_evaluation_order,
8179         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
8180         Variable declarations.
8181         * configure.ac (tm_include_list): Include flags.h instead of options.h.
8182         * configure: Regenerate.
8183         * flags.h: Condition out contents for target libraries.  Include
8184         options.h at end of file.
8185         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
8186         flag_evaluation_order, flag_warn_unused_result): Remove.
8187         * gcc.c (main): Intialize global_options with global_options_init.
8188         * langhooks-def.h (lhd_init_options_struct): Declare.
8189         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
8190         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
8191         * langhooks.c (lhd_init_options_struct): New.
8192         * langhooks.h (struct lang_hooks): Add init_options_struct.
8193         Update comment on init_options.
8194         * optc-gen.awk: Generate initializer for global_options_init, not
8195         global_options.
8196         * opth-gen.awk: Condition out structure declarations for target
8197         libraries.  Declare global_options_init.
8198         * opts-common.c: Include flags.h instead of options.h.
8199         * opts.c (flag_warn_unused_result): Remove.
8200         (read_cmdline_options): Take gcc_options parameters.  Pass them to
8201         read_cmdline_option.
8202         (initial_lang_mask, initial_min_crossjump_insns,
8203         initial_max_fields_for_field_sensitive,
8204         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
8205         (init_options_once): New.  Split out of decode_options.
8206         (init_options_struct): New.  Split out of decode_options.
8207         (decode_cmdline_options_to_array_default_mask): New.
8208         (default_options_optimization): New.  Split out of decode_options.
8209         (decode_options): Move most code to other functions.  Update call
8210         to read_cmdline_options.
8211         (finish_options): New.  Split out of decode_options.
8212         * opts.h (decode_options): Add gcc_options parameters.
8213         (init_options_once, init_options_struct,
8214         decode_cmdline_options_to_array_default_mask): New.
8215         * toplev.c (flag_complex_method, flag_ira_algorithm,
8216         flag_ira_region, flag_evaluation_order): Remove.
8217         (general_init): Use global_options_init for initial flag values
8218         for global_dc.
8219         (toplev_main): Call init_options_once, init_options_struct,
8220         lang_hooks.init_options_struct,
8221         decode_cmdline_options_to_array_default_mask and
8222         lang_hooks.init_option before decode_options.  Update arguments to
8223         decode_options.
8224         * tree.h: Include flags.h instead of options.h.
8225
8226 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8227
8228         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8229
8230 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8231
8232         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
8233         Delete.
8234         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
8235         (FUNCTION_INCOMING_ARG): Delete.
8236         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
8237         (function_arg_slotno): Likewise.  Take bool arguments.
8238         (sparc_arg_partial_bytes): Update call to it.
8239         (function_arg): Rename to...
8240         (sparc_function_arg_1): ...this.  Take bool arguments.
8241         (sparc_function_arg, sparc_function_incoming_arg): New functions.
8242         (function_arg_advance): Rename to...
8243         (sparc_function_arg_advance): ...this.  Take bool argument.
8244         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
8245         (TARGET_FUNCTION_INCOMING_ARG): Define.
8246
8247 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8248
8249         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
8250         Delete.
8251         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8252         * config/bfin/bfin.c (function_arg_advance): Rename to...
8253         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
8254         and bool arguments.
8255         (function_arg): Rename to...
8256         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
8257         arguments.
8258         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8259
8260 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8261
8262         * config/score/score-protos.h (score_function_arg): Delete.
8263         (score_function_arg_advance): Delete.
8264         * config/score/score3.h (score3_function_arg_advance): Take a
8265         const_tree and a bool.
8266         (score3_function_arg): Likewise.
8267         * config/score/score7.h (score7_function_arg_advance): Likewise.
8268         (score7_function_arg): Likewise.
8269         * config/score/score3.c (score3_classify_arg): Likewise.
8270         (score3_function_arg_advance, score3_function_arg): Likewise.
8271         * config/score/score7.c (score7_classify_arg): Likewise.
8272         (score7_function_arg_advance, score7_function_arg): Likewise.
8273         * config/score/score.c (score_function_arg_advance): Likewise.
8274         (score_function_arg): Likewise.  De-const-ify `cum' argument.
8275         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8276
8277 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8278
8279         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
8280         (s390_function_arg): Delete.
8281         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8282         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
8283         (s390_function_arg_integer): Likewise.
8284         (s390_function_arg_advance): Make static.  Take a const_tree and
8285         a bool.
8286         (s390_function_arg): Likewise.
8287         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8288
8289 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8290
8291         * config/spu/spu-protos.h (spu_function_arg): Delete.
8292         * config/spu/spu.h (FUNCTION_ARG): Delete.
8293         (FUNCTION_ARG_ADVANCE): Move code to ...
8294         * config/spu/spu.c (spu_function_arg_advance): New function.
8295         (spu_function_arg): Make static.  Take a const_tree and a bool.
8296         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
8297         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8298
8299 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8300
8301         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8302
8303 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8304
8305         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
8306         (init_vn_nary_op_from_op): New function.
8307         (init_vn_nary_op_from_stmt): New function.
8308         (vn_nary_op_lookup_1): New function.
8309         (sizeof_vn_nary_op): New function.
8310         (alloc_vn_nary_op_noinit): New function.
8311         (alloc_vn_nary_op): New function.
8312         (vn_nary_op_insert_into): New function.
8313         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
8314         (vn_nary_op_lookup): Likewise.
8315         (vn_nary_op_lookup_stmt): Likewise.
8316         (vn_nary_op_insert_pieces): Likewise.
8317         (vn_nary_op_insert): Likewise.
8318         (vn_nary_op_insert_stmt): Likewise.
8319         (copy_nary): Likewise.
8320         (set_value_id_for_result): New function.
8321         (set_hashtable_value_ids): Call it.
8322
8323 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8324
8325         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8326         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
8327
8328 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
8329
8330         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
8331         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8332
8333 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
8334
8335         PR debug/45656
8336         * cse.c (cse_extended_basic_block): Preserve cc0 info across
8337         debug isnsn.  Skip them when searching for cc0 setter.
8338         (set_live_p): Skip debug insns when searching for cc0 user.
8339
8340 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
8341
8342         PR debug/45673
8343         PR debug/45604
8344         PR debug/45419
8345         PR debug/45408
8346         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
8347         type of MEM_REFs to INTEGER_CSTs.
8348
8349 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
8350
8351         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
8352         m68hc11_print_operand_address.
8353
8354 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
8355
8356         * builtins.c (rewrite_call_expr): Move code to...
8357         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
8358         (rewrite_call_expr_array): New function.
8359         (fold_builtin_sprintf_chk_1): New function.
8360         (fold_builtin_sprintf_chk): Call it.
8361         (gimple_fold_builtin_sprintf_chk): Likewise.
8362         (fold_builtin_snprintf_chk_1): New function.
8363         (fold_builtin_snprintf_chk): Call it.
8364         (gimple_fold_builtin_snprintf_chk): Likewise.
8365         (gimple_rewrite_call_expr): Delete.
8366
8367 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
8368
8369         * config.host: Update copyright year.
8370
8371 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
8372
8373         * config.host (host_lto_plugin_soname): New shell variable.
8374         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
8375         * config.in: Regenerate.
8376         * configure: Regenerate.
8377         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
8378         LTO plugin shared library.
8379
8380 2010-10-07  Richard Henderson  <rth@redhat.com>
8381
8382         * target.h (enum unwind_info_type): Move ...
8383         * coretypes.h: ... here.
8384
8385 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
8386
8387         * doc/objc.texi (Fast enumeration protocol): Mention that
8388         'unsigned int' can also be used instead of 'unsigned long' in
8389         countByEnumeratingWithState:objects:count:.
8390
8391 2010-10-07  Martin Jambor  <mjambor@suse.cz>
8392
8393         * tree-sra.c (struct access): New field grp_assignment_write.
8394         (dump_access): Dump grp_assignment_write.
8395         (build_accesses_from_assign): Set grp_assignment_write.
8396         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
8397         (mark_read_status): Renamed to mark_rw_status, individual values
8398         renamed too.
8399         (analyze_access_subtree): Changed type of mark_write to
8400         mark_read_status.  Fixed propagating of mark_read and
8401         mark_write.  Changed benefit estimate.  Updated comment.
8402
8403 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
8404
8405         PR Tree-Vect/45847
8406         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
8407         check for vectype_out returned by get_vectype_for_scalar_type().
8408
8409 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
8410
8411         PR target/45805
8412         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
8413         constraint, add register specifier in instruction template.
8414         (neon_vec_pack_trunc_<mode>): Likewise.
8415         (neon_vec_<US>mult_<mode>): Add register specifier to
8416         instruction template.
8417
8418 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
8419
8420         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
8421         cygwin2.o.
8422         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
8423         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
8424         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
8425         (cygwin2.o): Likewise.
8426         * config/i386/cygwin1.c: Delete file.
8427         * config/i386/cygwin2.c: Likewise.
8428         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
8429         make all {%!mno-cygwin} ones unconditional.
8430         (STARTFILE_SPEC): Likewise.
8431         (REAL_LIBGCC_SPEC): Likewise.
8432         (LIB_SPEC): Likewise.
8433         (CXX_WRAP_SPEC): Likewise.
8434         (LINK_SPEC): Likewise.
8435         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
8436         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
8437         (cygwin_gplusplus_include_dir): Delete now-unused array.
8438         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
8439         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
8440         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
8441         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
8442         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
8443         (cygwin_local_include_dir): Delete now-unused array.
8444         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
8445         (cygwin_cross_include_dir): Delete now-unused array.
8446         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
8447         (cygwin_tool_include_dir): Delete now-unused array.
8448         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
8449         (cygwin_standard_include_dir): Delete now-unused array.
8450         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
8451         (GEN_CVT_ARRAY): Delete now-unused macro definition.
8452         (cvt_to_mingw): Delete now-unused array.
8453         (mingw_scan): Remove prototype of deleted function.
8454         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
8455         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
8456         * doc/invoke.texi (-mcygwin): Don't document removed option.
8457         (-mno-cygwin): Likewise.
8458
8459 2010-10-07  Richard Guenther  <rguenther@suse.de>
8460
8461         * machmode.h (mode_for_vector): Declare.
8462         * stor-layout.c (mode_for_vector): New function, split out from ...
8463         (layout_type): ... here.
8464         * tree-vectorizer.h (current_vector_size): Declare.
8465         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
8466         mask vector type is available.
8467         (get_vectype_for_scalar_type): Rename to ...
8468         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
8469         size argument.
8470         (get_vectype_for_scalar_type): New wrapper around
8471         get_vectype_for_scalar_type_and_size using current_vector_size.
8472         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
8473         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
8474         of vect_analyze_loop here.
8475         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
8476         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
8477         to autodetect.
8478         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
8479         V8SF to V8SI conversion builtin.
8480
8481 2010-10-07  Richard Guenther  <rguenther@suse.de>
8482
8483         * target.def (autovectorize_vector_sizes): New target hook.
8484         * targhooks.c (default_autovectorize_vector_sizes): New function.
8485         * targhooks.h (default_autovectorize_vector_sizes): Declare.
8486         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
8487         Document.
8488         * doc/tm.texi: Update.
8489         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
8490         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8491
8492 2010-10-07  Richard Guenther  <rguenther@suse.de>
8493
8494         * target.def (units_per_simd_word): Rename to ...
8495         (preferred_simd_mode): ... this.  Return mode instead of size.
8496         * targhooks.c (default_units_per_simd_word): Rename to ...
8497         (default_preferred_simd_mode): ... this.  Return word_mode.
8498         * targhooks.h (default_preferred_simd_mode): Declare.
8499         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
8500         (arm_preferred_simd_mode): ... this.  Re-implement.
8501         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
8502         (ix86_preferred_simd_mode): ... this.  Re-implement.
8503         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
8504         (sparc_preferred_simd_mode): ... this.  Re-implement.
8505         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
8506         (mips_preferred_simd_mode): ... this.  Re-implement.
8507         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
8508         (rs6000_preferred_simd_mode): ... this.  Re-implement.
8509         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
8510         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
8511         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
8512         * doc/tm.texi: Update.
8513
8514 2010-10-07  Richard Guenther  <rguenther@suse.de>
8515
8516         PR middle-end/45869
8517         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
8518         of pointers.
8519
8520 2010-10-07  Alan Modra  <amodra@gmail.com>
8521
8522         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
8523         rather than sign extension by hand.
8524
8525 2010-10-07  Jan Hubicka  <jh@suse.cz>
8526
8527         PR middle-end/45926
8528         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
8529
8530 2010-10-07  Richard Guenther  <rguenther@suse.de>
8531
8532         PR bootstrap/45914
8533         * configure.ac: Fix typo.
8534         * configure: Regenerated.
8535
8536 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8537
8538         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
8539         define_builtin_std where it's unnecessary.
8540         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
8541
8542 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
8543
8544         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
8545         * doc/tm.texi.in: Regenerate.
8546         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
8547         * targhooks.c (default_class_likely_spilled_p): Don't use the
8548         CLASS_LIKELY_SPILLED_P macro.
8549
8550         * config/arm/arm.md: Update comment.
8551
8552 2010-10-06  Jan Hubicka  <jh@suse.cz>
8553
8554         * ipa.c (cgraph_remove_unreachable_nodes): External references can
8555         always be removed.
8556         (cgraph_externally_visible_p): We can not bring local comdats that
8557         are known to linker; fix handling of internal visibility.
8558         (function_and_variable_visibility): Likewise.
8559
8560 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
8561
8562         PR rtl-optimization/45394
8563         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
8564         (struct rtx_subst_pair): Remove AFTER field.
8565         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
8566         (propagate_for_debug): Remove MOVE parameter and adjust.
8567         (try_combine): In the special case where I2 is a PARALLEL, combine only
8568         destinations of SETs and set I2SRC to the I2 source.
8569         Adjust calls to propagate_for_debug throughout.
8570         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
8571         insns.
8572
8573 2010-10-06  Olivier Hainque  <hainque@adacore.com>
8574
8575         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
8576         switch on insn codes as sequence of ifs.
8577
8578 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
8579
8580         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
8581         be UI_NONE for picochip.
8582         (picochip_option_override): Do not disable exception flags.
8583         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
8584         Declare.
8585
8586 2010-10-06  Richard Guenther  <rguenther@suse.de>
8587
8588         * Makefile.in (regmove.o): Depend on $(TARGET_H).
8589
8590 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
8591
8592         Implemented fast enumeration for Objective-C.
8593         * c-parser.c (objc_could_be_foreach_context): New.
8594         (c_lex_one_token): Recognize RID_IN keyword in a potential
8595         Objective-C foreach context.
8596         (c_parser_declaration_or_fndef): Added parameter.  Accept
8597         Objective-C RID_IN keyword as terminating a declaration; in that
8598         case, return the declaration in the new parameter.
8599         (c_parser_extenral_declaration): Updated calls to
8600         c_parser_declaration_or_fndef.
8601         (c_parser_declaration_or_fndef): Same change.
8602         (c_parser_compound_statement_nostart): Same change.
8603         (c_parser_label): Same change.
8604         (c_parser_objc_methodprotolist): Same change.
8605         (c_parser_omp_for_loop): Same change.
8606         (c_parser_for_statement): Detect and parse Objective-C foreach
8607         statements.
8608         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
8609         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
8610         fast enumeration parsing code to turn off the c99 error but still
8611         perform checks on the loop declarations.
8612         * c-tree.h (check_for_loop_decls): Updated declaration.
8613         * doc/objc.texi: Document fast enumeration.
8614
8615 2010-10-06  Nick Clifton  <nickc@redhat.com>
8616
8617         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
8618         (MDR_REGNUM): Define.
8619         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
8620         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
8621         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
8622         (REGISTER_NAMES): Add MDR.
8623         (DWARF2_DEBUGGING_INFO): Define to 1.
8624         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8625         (F): New function.  Sets RTX_FRAME_RELATED_P.
8626         (mn10300_gen_multiple_store): Use F.
8627         (expand_prologue): Use F.  Use gen_movsf() to push floating
8628         point registers.
8629         (expand_epilogue): Use gen_movsf() to pop floating point registers.
8630         (mn10300_option_override): Disable combine stack adjust pass.
8631
8632 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
8633
8634         PR target/45901
8635         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
8636         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
8637
8638 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
8639
8640         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
8641         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
8642         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
8643         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
8644         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
8645         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
8646         BUILT_IN_TOUPPER): Mark as leaf.
8647
8648         PR middle-end/45838
8649         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
8650         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
8651         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
8652         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
8653         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
8654         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
8655         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
8656
8657 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
8658
8659         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
8660         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8661         (m68hc11_class_likely_spilled_p): New function.
8662
8663 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
8664
8665         * c-parser.c (c_parser_objc_method_definition): Updated comment.
8666
8667 2010-10-05  Jan Hubicka  <jh@suse.cz>
8668
8669         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
8670         Document.
8671         * opts.c (decode_options): Handle lto partitions.
8672         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
8673         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
8674
8675 2010-10-05  Jan Hubicka  <jh@suse.cz>
8676
8677         * cgraphunit.c (assemble_function): Output thunks and aliases before
8678         the function itself.
8679
8680 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
8681
8682         * config/picochip/picochip.c (picochip_option_override): Disable
8683         exception flags for picochip.
8684
8685 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
8686
8687         * opts-common.c (handle_option, handle_generated_option,
8688         read_cmdline_option, set_option): Add diagnostic_context
8689         parameter.  Update calls among these functions.
8690         (set_option): Don't use global_dc.
8691         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
8692         (decode_options): Pass global_dc to enable_warning_as_error.
8693         (common_handle_option): Pass global_dc to enable_warning_as_error.
8694         (enable_warning_as_error): Add diagnostic_context parameter.
8695         Document parameters.  Don't use global_dc.  Pass
8696         diagnostic_context parameter to handle_generated_option.
8697         * opts.h (set_option, handle_option, handle_generated_option,
8698         read_cmdline_option, enable_warning_as_error): Add
8699         diagnostic_context parameter.
8700         * Makefile.in (lto-opts.o): Update dependencies.
8701         * coretypes.h (struct diagnostic_context, diagnostic_context):
8702         Declare here.
8703         * diagnostic.h (diagnostic_context): Don't declare typedef here.
8704         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
8705         * langhooks-def.h (struct diagnostic_context): Don't declare here.
8706         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
8707         using diagnostic_context typedef.
8708         * langhooks.c (lhd_initialize_diagnostics): Declare using
8709         diagnostic_context typedef.
8710         * langhooks.h (struct diagnostic_context): Don't declare here.
8711         (initialize_diagnostics, print_error_function): Declare using
8712         diagnostic_context typedef.
8713         * lto-opts.c: Include diagnostic.h.
8714         (lto_reissue_options): Pass global_dc to set_option.  Pass
8715         DK_UNSPECIFIED not 0.
8716         * plugin.c (plugins_internal_error_function): Declare using
8717         diagnostic_context typedef.
8718         * plugin.h (struct diagnostic_context): Don't declare here.
8719         (plugins_internal_error_function): Declare using
8720         diagnostic_context typedef.
8721
8722 2010-10-05  Olivier Hainque  <hainque@adacore.com>
8723             Nicolas Roche  <roche@adacore.com>
8724
8725         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
8726         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
8727
8728 2010-10-05  Ira Rosen  <irar@il.ibm.com>
8729
8730         PR tree-optimization/45752
8731         * tree-vect-slp.c (vect_get_mask_element): Remove static
8732         variables, make them function arguments.
8733         (vect_transform_slp_perm_load): Pass new arguments to
8734         vect_get_mask_element.
8735
8736 2010-10-05  Richard Guenther  <rguenther@suse.de>
8737
8738         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
8739         (gimple_mod_pow2): Likewise.
8740         (gimple_mod_subtract): Likewise.
8741         (gimple_ic): Likewise.
8742         (gimple_stringop_fixed_value): Likewise.
8743         * tree-profile.c (tree_init_edge_profiler): Mark profile
8744         functions nothrow and leaf.
8745         (add_abnormal_goto_call_edges): Remove.
8746         (tree_gen_edge_profiler): Work on SSA form.
8747         (tree_gen_ic_profiler): Likewise.  Simplify.
8748         (do_tree_profiling): Update SSA form.
8749         (pass_tree_profile): Remove.
8750         (do_tree_profiling): Likewise.
8751         (gate_tree_profile_ipa): New function.
8752         (pass_ipa_tree_profile): New.
8753         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
8754         state of instrumented functions.
8755         * passes.c (init_optimization_passes): Remove early non-SSA
8756         inlining.  Move profiling after early optimizations.
8757         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
8758         (pass_ipa_early_inline): Likewise.
8759         * tree-pass.h (pass_ipa_early_inline): Remove.
8760         (pass_tree_profile): Likewise.
8761         (pass_ipa_tree_profile): Declare.
8762
8763 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8764             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
8765
8766         * config/s390/s390.c (z196_cost): New.
8767         (s390_handle_arch_option): Add -march=z196.
8768         (s390_option_override): Use the new cost function and use the z10
8769         defaults also for z196.
8770         (legitimate_reload_constant_p): Adjust comment.
8771         (legitimate_reload_fp_constant_p): New function.
8772         (s390_preferred_reload_class): Distingiush between FP and Int constants.
8773         (preferred_la_operand_p): Avoid la with index on z196.
8774         (s390_adjust_priority): Trigger also for z196.
8775         (s390_issue_rate): Issue rate for z196 is 3.
8776         (s390_z10_fix_long_loop_prediction): Rename to ...
8777         (s390_fix_long_loop_prediction): ... this.
8778         (s390_reorg): Apply the z10 adjustments also for z196.
8779         (s390_loop_unroll_adjust): Do this also for z196.
8780         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
8781         (enum processor_flags): Add PF_Z196.
8782         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
8783         (TARGET_CPU_Z196, TARGET_Z196): New macros.
8784         * config.gcc: Enable z196 for --with-arch.
8785         * config/s390/2817.md: New file.
8786         * config/s390/2084.md: New type for multiply and add.
8787         * config/s390/2097.md: Likewise.
8788         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
8789         (UNSPECV_ATOMIC_OP): New constants.
8790         (fmadddf, fmaddsf): New values for type attribute.
8791         (z196prop): New insn attribute.
8792         (cpu, cpu_facility): Add z196.
8793         (ATOMIC_Z196): New code iterator.
8794         (noxa): New code attribute.
8795         (gk): New mode attribute.
8796         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
8797         Support load zero for fp constants.
8798         (fixuns_truncdddi2, fixuns_trunctddi2)
8799         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
8800         for z196.
8801         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
8802         (popcounthi2, popcountqi2): New expander.
8803         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
8804         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
8805         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
8806         insn definition.
8807         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
8808         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
8809         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
8810         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
8811         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
8812         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
8813         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
8814         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
8815         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
8816         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
8817         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
8818         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
8819         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
8820         Support new z196 instructions.
8821
8822 2010-10-05  Richard Guenther  <rguenther@suse.de>
8823
8824         PR middle-end/45877
8825         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
8826         case where gimplification optimizes away the stmt.
8827
8828 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
8829
8830         PR debug/45849
8831         * var-tracking.c (strip_pointer_flags): New function.
8832         (emit_note_insn_var_location): If rtx_equal_p check failed,
8833         retry on locations simplified with simplify_replace_fn_rtx
8834         and strip_pointer_flags as its callback.
8835
8836 2010-10-04  Jan Hubicka  <jh@suse.cz>
8837
8838         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
8839         (can_refer_decl_in_current_unit_p): ... this one; reverse return
8840         value; handle comdats too.
8841         (canonicalize_constructor_val): Use it; handle function_decls
8842         correctly.
8843         (gimple_fold_obj_type_ref_known_binfo): Likewise.
8844         * gimple.c (get_base_address): Accept all kinds of decls.
8845
8846 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
8847
8848         * flags.h (g_switch_value, g_switch_set): Remove.
8849         * opts.c (g_switch_value, g_switch_set): Remove.
8850         * config/g.opt (G): Add Var(g_switch_value).
8851         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
8852         (alpha_option_override): Check global_options_set.x_g_switch_value
8853         instead of g_switch_set.
8854         (alpha_in_small_data_p): Remove cast in comparison with
8855         g_switch_value.
8856         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
8857         g_switch_value to unsigned HOST_WIDE_INT.
8858         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
8859         with g_switch_value.
8860         (frv_handle_option): Don't handle -G here.
8861         (frv_option_override): Check global_options_set.x_g_switch_value
8862         instead of g_switch_set.  Don't modify g_switch_set.
8863         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
8864         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
8865         g_switch_value to unsigned HOST_WIDE_INT.
8866         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
8867         (ia64_option_override): Check global_options_set.x_g_switch_value
8868         instead of g_switch_set.
8869         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
8870         Remove.
8871         (lm32_in_small_data_p): Remove cast in comparison with
8872         g_switch_value.
8873         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
8874         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
8875         HOST_WIDE_INT.
8876         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
8877         (m32r_init): Check global_options_set.x_g_switch_value instead of
8878         g_switch_set.
8879         (m32r_in_small_data_p): Remove cast in comparison with
8880         g_switch_value.
8881         (m32r_file_start): Format g_switch_value with %d.
8882         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
8883         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
8884         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
8885         handle -G here.
8886         (microblaze_option_override): Check
8887         global_options_set.x_g_switch_value instead of g_switch_set.
8888         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
8889         (mips_option_override): Check global_options_set.x_g_switch_value
8890         instead of g_switch_set.
8891         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
8892         (rs6000_file_start): Format g_switch_value with %d.
8893         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
8894         comparisons with g_switch_value.
8895         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
8896         global_options_set.x_g_switch_value instead of g_switch_set.
8897         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8898         global_options_set.x_g_switch_value instead of g_switch_set.
8899         * config/score/score.c (score_handle_option): Don't handle -G here.
8900         * config/score/score3.c (score3_option_override): Check
8901         global_options_set.x_g_switch_value instead of g_switch_set.
8902         * config/score/score7.c (score7_option_override): Check
8903         global_options_set.x_g_switch_value instead of g_switch_set.
8904
8905 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8906
8907         * common.opt (fira-coalesce): Remove.
8908
8909         * doc/invoke.texi (flag_ira_coalesce): Remove.
8910
8911         * ira-color.c (allocno_coalesced_p): Move before
8912         copy_freq_compare_func.
8913         processed_coalesced_allocno_bitmap): Ditto.
8914         (update_conflict_hard_regno_costs): Don't use
8915         ALLOCNO_FIRST_COALESCED_ALLOCNO.
8916         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
8917         (assign_hard_reg): Assume no coalesced allocnos.
8918         (get_coalesced_allocnos_attributes): Remove.
8919         (bucket_allocno_compare_func): Assume no coalesced allocnos.
8920         (push_allocno_to_stack): Ditto.
8921         (remove_allocno_from_bucket_and_push): Use
8922         ira_print_expanded_allocno instead of print_coalesced_allocno.
8923         (push_allocnos_to_stack): Assume uncoalesced allocnos.
8924         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
8925         all_conflicting_hard_regs.
8926         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
8927         (setup_allocno_left_conflicts_size): Ditto.
8928         (put_allocno_into_bucket): Ditto.
8929         (copy_freq_compare_func): Remove.
8930         (copy_freq_compare_func, merge_allocnos): Move before
8931         coalesced_pseudo_reg_freq_compare.
8932         coalesced_allocno_conflict_p): Ditto.
8933         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
8934         parameter.  Assume it true.
8935         (color_allocnos): Assume uncoalesced allocnos.  Use
8936         ira_print_expanded_allocno instead of print_coalesced_allocno.
8937         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
8938         parameter.
8939
8940         * ira.c: Remove comment about coalescing.
8941
8942 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
8943
8944         * config/mips/mips.h (target_flags_explicit): Declare for
8945         GENERATOR_FILE.
8946
8947 2010-10-04  Andi Kleen  <ak@linux.intel.com>
8948
8949         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
8950         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
8951
8952 2010-10-04  Matthias Klose  <doko@ubuntu.com>
8953
8954         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
8955         multilib osdirname if it exists.
8956         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
8957
8958 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
8959
8960         PR middle-end/45876
8961         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
8962         arg0's type or its unsigned counterpart as utype.  Convert
8963         arg1 to utype unconditionally.
8964
8965 2010-10-04  Julian Brown  <julian@codesourcery.com>
8966
8967         * expr.c (expand_assignment): Add assertion to prevent emitting
8968         null rtx for movmisalign pattern.
8969         (expand_expr_real_1): Likewise.
8970         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
8971         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
8972         (arm_vector_alignment_reachable): New.
8973         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
8974         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
8975         (arm_print_operand): Include alignment qualifier in %A.
8976         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
8977         (movmisalign<mode>): New expander.
8978         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
8979         insn patterns.
8980
8981 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
8982
8983         * optc-gen.awk: Define global_options_set.  Don't define
8984         target_flags_explicit.
8985         * opth-gen.awk: Declare global_options_set.  Define
8986         target_flags_explicit as macro.
8987         * opts-common.c (handle_option): Take opts_set and generated_p
8988         parameters.
8989         (handle_generated_option, read_cmdline_option, set_option): Take
8990         opts_set parameter.
8991         (set_option): Use opts_set instead of hardcoding target_flags and
8992         target_flags_explicit.
8993         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
8994         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
8995         flag_value_profile_transformations_set, flag_peel_loops_set,
8996         flag_branch_probabilities_set, flag_inline_functions_set,
8997         flag_ipa_cp_set, flag_ipa_cp_clone_set,
8998         flag_predictive_commoning_set, flag_unswitch_loops_set,
8999         flag_gcse_after_reload_set): Remove.
9000         (common_handle_option, lang_handle_option, target_handle_option):
9001         Take opts_set parameter.  Assert that it is &global_options_set.
9002         (common_handle_option): Don't set _set variables.  Check opts_set
9003         instead of such variables.
9004         (enable_warning_as_error): Pass &global_options_set to
9005         handle_generated_option.
9006         * opts.h (cl_option_handler_func.handler, set_option,
9007         handle_option, handle_generated_option, read_cmdline_option): Add
9008         opts_set parameters.
9009         (handle_option): Add generated_p parameter.
9010         * config/i386/i386.c (ix86_function_specific_save,
9011         ix86_function_specific_restore): Updat for renaming of
9012         target_flags_explicit field.
9013         * config/i386/i386.opt (target_flags_explicit): Rename to
9014         ix86_target_flags_explicit.
9015         * config/ia64/ia64.c (ia64_override_options_after_change): Check
9016         global_options_set.x_flag_selective_scheduling and
9017         global_options_set.x_flag_selective_scheduling2, not
9018         sel_sched_switch_set.
9019         * flags.h (sel_sched_switch_set,
9020         flag_speculative_prefetching_set): Remove.
9021         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
9022         that it is &global_options_set.
9023         (process_command): Pass &global_options_set to read_cmdline_option.
9024         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
9025         set_option.
9026         * toplev.c (target_flags_explicit): Remove.
9027
9028 2010-10-04  Jan Hubicka  <jh@suse.cz>
9029
9030         PR middle-end/45871
9031         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
9032         use get_ref_base_and_offset to handle references.
9033         (fold_const_aggregate_ref): Update.
9034
9035 2010-10-04  Martin Jambor  <mjambor@suse.cz>
9036
9037         PR tree-optimization/45572
9038         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
9039         ipa_check_create_node_params.
9040         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
9041
9042 2010-10-04  Yao Qi  <yao@codesourcery.com>
9043
9044         * doc/passes.texi: Clean up.
9045
9046 2010-10-03  Ian Lance Taylor  <iant@google.com>
9047
9048         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
9049         referring to a field using a typedef name.
9050         (find_anonymous_field_with_type): New static function.
9051         (convert_to_anonymous_field): New static function.
9052         (convert_for_assignment): If -fplan9-extensions, permit converting
9053         pointer to struct to pointer to anonymous field.
9054         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
9055         (is_duplicate_field): New static function.
9056         (detect_field_duplicates_hash): If -fplan9-extensions, check for
9057         typedef names duplicating field names.
9058         (detect_field_duplicates): Likewise.
9059         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
9060         (C Dialect Options): Document -fplan9-extensions.
9061         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
9062
9063 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
9064
9065         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
9066         revision 164914.
9067         (vect_create_data_ref_ptr): Likewise.
9068         * tree-vect-stmts.c (vectorizable_store): Likewise.
9069         (perm_mask_for_reverse): Likewise.
9070         (reverse_vec_elements): Likewise.
9071         (vectorizable_load): Likewise.
9072
9073 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9074
9075         * cppbuiltin.c: New file.
9076         * cppbuiltin.h: New file.
9077         * Makefile.in: Take into account cppbuiltin.{h,c}.
9078
9079 2010-10-03  Andi Kleen  <ak@linux.intel.com>
9080
9081         * lto-cgraph.c (input_cgraph): Check for missing sections.
9082
9083 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
9084
9085         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
9086         to nonimmediate_operand.  Force operand 2 to register when allowed.
9087         (*<shiftrt_insn><mode>3_mask): Ditto.
9088         (*<rotate_insn><mode>3_mask): Ditto.
9089
9090 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
9091
9092         PR tree-optimization/45720
9093         PR tree-optimization/45764
9094         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
9095         Don't accept backwards consecutive accesses.
9096         (vect_create_data_ref_ptr): Disallow negative steps.
9097
9098         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
9099         (perm_mask_for_reverse): Removed.
9100         (reverse_vec_elements): Likewise.
9101         (vectorizable_load): Don't handle negative steps.
9102
9103 2010-10-02  Jan Hubicka  <jh@suse.cz>
9104
9105         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
9106         call destination is known.
9107
9108 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9109
9110         PR target/45820
9111         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
9112         earlier.
9113
9114 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9115
9116         * doc/install.texi (Configuration): Document build_configargs,
9117         host_configargs, target_configargs.
9118
9119 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
9120
9121         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
9122         (*<shiftrt_insn><mode>3_mask): Ditto.
9123         (*<rotate_insn><mode>3_mask): Ditto.
9124
9125 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
9126
9127         PR tree-optimization/44716
9128         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
9129         (HOT_TEXT_SECTION_NAME): Define.
9130
9131 2010-10-01  Nick Clifton  <nickc@redhat.com>
9132
9133         * common.opt: Add -fcombine-stack-adjustments.
9134         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
9135         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
9136         flag_combine_stack_adjustments.
9137         * doc/invoke.texi: Document the new option.
9138
9139 2010-10-01  Richard Guenther  <rguenther@suse.de>
9140
9141         PR tree-optimization/45854
9142         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
9143
9144 2010-10-01  Anthony Green  <green@moxielogic.com>
9145
9146         * config.gcc: Fix moxie-*-rtems* configuration.
9147
9148 2010-10-01  Richard Guenther  <rguenther@suse.de>
9149
9150         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
9151         (gen_decl_die): Likewise.
9152
9153 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9154
9155         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
9156         to the function code for SPU MD builtins.
9157         (spu_expand_builtin): Update.
9158         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
9159
9160 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9161
9162         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
9163         sjlj_except_unwind_info.
9164
9165 2010-10-01  Tristan Gingold  <gingold@adacore.com>
9166
9167         * configure.ac: Define the nop insn for avr*-*-*
9168         * configure: Regenerate.
9169
9170 2010-10-01  Alan Modra  <amodra@gmail.com>
9171
9172         PR target/45807
9173         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
9174         extend toc_restore_insn.
9175
9176 2010-09-30  Richard Guenther  <rguenther@suse.de>
9177
9178         PR tree-optimization/43959
9179         * function.c (gimplify_parameters): Use create_tmp_reg instead of
9180         create_tmp_var.
9181
9182 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
9183
9184         * config/sh/sh.c (sh_expand_prologue): Set
9185         current_function_static_stack_size.
9186
9187 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9188
9189         * configure.ac: Check for Solaris 8 ld with .hidden support.
9190         * configure: Regenerate.
9191
9192 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9193
9194         PR middle-end/45758
9195         * graphite.c (graphite_initialize): Call scev_reset.
9196
9197 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9198
9199         * sese.h (scev_analyzable_p): Return false for real or floating
9200         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
9201
9202 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9203
9204         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
9205         and ps.
9206         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
9207         domain.
9208         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
9209         Do not allocate ub_expr, it is passed in initialized.
9210
9211 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9212
9213         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
9214         (build_cloog_prog): Dump CLooG input file when
9215         flag_graphite_dump_cloog is set.  This is disabled on trunk.
9216         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
9217
9218 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9219
9220         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
9221         verify_dominators for CDI_POST_DOMINATORS.
9222         * sese.h: Remove comment about CDI_POST_DOMINATORS.
9223         (recompute_all_dominators): Remove call to free_dominance_info
9224         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
9225         for CDI_POST_DOMINATORS.
9226
9227 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9228
9229         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
9230         over pbb_dim_iter_domain.
9231
9232 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9233
9234         * graphite-flattening.c: Fix comments.
9235
9236 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9237
9238         * Makefile.in (OBJS-common): Add graphite-flattening.o.
9239         (graphite-flattening.o): New rule.
9240         * common.opt (floop-flatten): New flag.
9241         * doc/invoke.texi (-floop-flatten): Documented.
9242         * graphite-flattening.c: New.
9243         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
9244         * graphite-poly.h (flatten_all_loops): Declared.
9245         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
9246         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
9247         is set, also set flag_graphite.
9248
9249 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9250
9251         * graphite-poly.c (cloog_checksum): New.
9252         * graphite-poly.h (cloog_checksum): Declared.
9253
9254 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9255
9256         * graphite-poly.c (pbb_number_of_iterations): Removed.
9257         (pbb_number_of_iterations_at_time): Correctly compute the number
9258         of iterations in the transformed loop.
9259         * graphite-poly.h (pbb_number_of_iterations): Removed.
9260
9261 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9262
9263         * graphite-poly.h (lst_update_scattering_seq): Removed.
9264         (lst_update_scattering): Correctly handle outermost loop dewey
9265         renumbering.
9266
9267 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9268
9269         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
9270         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
9271         * graphite-poly.h (lst_niter_for_loop): New.
9272
9273 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9274
9275         * graphite-poly.c (apply_poly_transforms): Do not abort when the
9276         transform read from disk is not legal.  Call fatal_error instead.
9277
9278 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9279
9280         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
9281         (print_scop_header): Removed.  Inlined in the only call place...
9282         (print_scop): ... here.
9283
9284 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9285
9286         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
9287
9288 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9289
9290         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
9291
9292 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9293
9294         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
9295         (dot_deps_stmt): Same.
9296         * graphite-poly.c (dot_lst): Same.
9297
9298 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9299
9300         * graphite-blocking.c (scop_do_strip_mine): Do not call
9301         graphite_legal_transform.
9302         (scop_do_block): Same.
9303
9304 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
9305
9306         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
9307         description.
9308
9309 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9310
9311         * tree-scalar-evolution.c (instantiate_array_ref): New.
9312         (instantiate_scev_r): Also handle ARRAY_REFs.
9313
9314 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9315
9316         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9317         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
9318         RESULT_DECL, and FIELD_DECL.  Return false for an
9319         SSA_NAME_IS_DEFAULT_DEF.
9320         (compute_scalar_evolution_in_loop): Do not further analyze the
9321         scalar evolution when no_evolution_in_loop_p returns true.
9322
9323 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9324
9325         * tree-chrec.h (evolution_function_is_affine_p): Do not check
9326         whether CHREC_LEFT is invariant.  A function is affine when
9327         CHREC_RIGHT is invariant.
9328
9329 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9330
9331         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
9332         is_gimple_reg.
9333         (rewrite_degenerate_phi): Same.
9334         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
9335
9336 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
9337
9338         * graphite-scop-detection.c (graphite_can_represent_scev,
9339         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
9340         graphite_can_represent_loop): Remove outermost_loop.
9341
9342 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9343
9344         PR middle-end/45229
9345         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
9346         handle GIMPLE_CALLs with no LHS.
9347
9348 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9349
9350         * graphite-poly.c (init_graphite_out_file): New.
9351         (init_graphite_in_file): New.
9352         (apply_poly_transforms): Updated to enable reading and writing of
9353         multiple scop files.
9354
9355 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
9356
9357         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
9358         redundant checks.
9359
9360 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9361
9362         * graphite-clast-to-gimple.c (precision_for_value): Adjust
9363         computation of precision by 1.
9364
9365 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9366
9367         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
9368         (openscop_read_polyhedron_matrix): New.
9369         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
9370         (openscop_read_N_int): Same.
9371         * graphite-poly.c (openscop_read_N_int): New.
9372         (openscop_read_one_int): New.
9373         (openscop_read_N_string): New.
9374         (openscop_read_one_string): New.
9375         (openscop_read_powerset_matrix): New.
9376         (graphite_read_transforms): Remove.
9377         (graphite_read_scatt): New.
9378         (graphite_read_scop_file): New.
9379         (apply_poly_transforms): Updated to call graphite_read_scop_file.
9380
9381 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9382
9383         * graphite-poly.c: Change include order.
9384
9385 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9386
9387         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
9388         (cloog_matrix_nrows): New.
9389
9390 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9391
9392         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
9393         from matrix lines.
9394         * graphite-poly.c (openscop_print_scattering_function_1): Same.
9395         (print_scattering_function_1): Same.
9396         (openscop_print_pbb_domain): Same.
9397         (openscop_print_scop_context): Same.
9398         (print_scop_context): Same.
9399
9400 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
9401
9402         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
9403         (openscop_print_pdr_polyhedron): Print pph.
9404
9405 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9406
9407         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
9408         priority signed types.
9409
9410 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
9411
9412         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
9413         the call to lang_hooks.types.type_for_size.  Call
9414         build_nonstandard_integer_type.
9415
9416 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
9417
9418         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
9419         (openscop_print_polyhedron_matrix): New.
9420         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
9421         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
9422         (openscop_print_pdr_powerset): New.
9423         (openscop_print_powerset_matrix): New.
9424         (openscop_print_scattering_function_1): New.
9425         (print_scattering_function): Add support for scattering names and
9426         OpenScop format.
9427         (graphite_write_transforms): Remove.
9428         (print_pdr_access_layout): Updated to support OpenScop format.
9429         (print_pdr): Same.
9430         (openscop_print_pbb_domain): New.
9431         (print_pbb_body): Added a parameter to allow indicating that pbb_body
9432         is not provided.
9433         (print_pbb): Updated to call the new print_pbb_body.
9434         (openscop_print_scop_context): New.
9435         (print_scop_header): New.
9436         (print_scop): Updated to call print_scop_header.
9437         * graphite-poly.h: Document OpenScop format.
9438
9439 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
9440
9441         * config/cris/m32c.c (cris_memory_move_cost): New.
9442         (cris_register_move_cost): Make static. Change arguments type from
9443         enum reg_class to reg_class_t.
9444         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9445         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9446         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
9447
9448 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
9449
9450         PR target/45843
9451         * config/i386/i386.c (ix86_gimplify_va_arg): Use
9452         INTVAL (XEXP (slot, 1)) as prev_size.
9453
9454 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
9455
9456         PR target/45837
9457         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
9458         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
9459         defined.
9460         * config/rs6000/option-defaults.h (toplevel): Change #if
9461         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
9462         global option changes.
9463
9464 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
9465
9466         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
9467
9468         PR tree-optimization/31261
9469         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
9470         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
9471
9472 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9473
9474         PR bootstrap/45796
9475         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
9476         special-casing for generators and turn into ...
9477         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
9478         rule, for better error messages in case of toplevel dependency errors.
9479         (genprog): Add hooks, rename to ...
9480         (genprogerr): ... this, and let genprog also contain check,
9481         checksum, condmd.
9482         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
9483         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
9484         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
9485
9486 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
9487             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9488
9489         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
9490         for GMP, MPFR and MPC.
9491
9492 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9493
9494         * config/sparc/sparc.opt (mimpure-text): Move ...
9495         * config/sol2.opt: ... here.  Correct description.
9496         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
9497         * doc/invoke.texi (Option Summary, SPARC Options): Move
9498         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
9499         (Option Summary, Solaris 2 Options): ... here.
9500         (Submodel Options, Solaris 2 Options): New menu entry.
9501         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
9502         (Solaris 2 Options): ... here.
9503
9504 2010-09-30  Michael Eager  <eager@eagercon.com>
9505
9506         * extend.texi (interrupt_handler): Add MicroBlaze to list.
9507         (save_volatiles): Describe option for MicroBlaze.
9508         * invoke.texi: Add MicroBlaze Options.
9509         * contrib.texi: Add acknowledgment.
9510         * md.texi: Add MicroBlaze d and z constraints.
9511         * install.texi: Add microblaze-*-elf.
9512         * configure.ac: Add microblaze-*-* to target list.
9513         * configure: Regenerate.
9514         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
9515         * config/microblaze/microblaze-protos.h: New.
9516         * config/microblaze/crti.s: New.
9517         * config/microblaze/predicates.md: New.
9518         * config/microblaze/linux.h: New.
9519         * config/microblaze/microblaze.md: New.
9520         * config/microblaze/constraints.md: New.
9521         * config/microblaze/crtn.s: New.
9522         * config/microblaze/microblaze.opt: New.
9523         * config/microblaze/microblaze-c.c: New.
9524         * config/microblaze/t-microblaze: New.
9525         * config/microblaze/microblaze.c: New.
9526         * config/microblaze/microblaze.h: New.
9527
9528 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
9529
9530         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
9531         parse @optional/@required and set the flags as appropriate.
9532
9533 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
9534
9535         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
9536
9537 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
9538
9539         * opt-functions.awk (static_var): Update comment.
9540         (var_ref): Return offsetof expression or -1, not variable address.
9541         * optc-gen.awk: Generate structure field initializers instead of
9542         static variables.  Expect -1 for missing variables instead of null
9543         pointer.  Add gcc_options parameters to generated functions.
9544         * opth-gen.awk: Generate structure fields for static variables.
9545         Add gcc_options parameters to generated functions.
9546         * common.opt (optimize, optimize_size): Add variables.
9547         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
9548         &global_options to cl_target_option_restore.
9549         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
9550         &global_options to cl_optimization_restore, cl_target_option_save
9551         and cl_target_option_restore.
9552         (ix86_set_current_function): Pass &global_options to
9553         cl_target_option_restore.
9554         * config/pdp11/pdp11.h (optimize): Remove.
9555         * config/rs6000/rs6000.h (optimize): Remove.
9556         * config/sh/sh.h (optimize): Remove.
9557         * config/xtensa/xtensa.h (optimize): Remove.
9558         * coretypes.h (struct gcc_options): Declare.
9559         * diagnostic.c (diagnostic_initialize): Initialize
9560         context->option_state.
9561         (diagnostic_report_diagnostic): Pass option_state to
9562         option_enabled hook.
9563         * diagnostic.h (diagnostic_context.option_enabled): Add void *
9564         parameter.
9565         (diagnostic_context.option_state): New field.
9566         * final.c (final_start_function, final, final_scan_insn): Rename
9567         optimize parameter to optimize_p.
9568         * flags.h (optimize, optimize_size): Remove.
9569         * function.c (invoke_set_current_function_hook): Pass
9570         &global_options to cl_optimization_restore.
9571         * gcc.c (driver_handle_option): Take gcc_options parameter.
9572         Assert that it is &global_options.
9573         (process_command): Pass &global_options to read_cmdline_option.
9574         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
9575         option_enabled.
9576         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
9577         &global_options to set_option.
9578         * opts-common.c (handle_option, handle_generated_option,
9579         read_cmdline_option, set_option): Take explicit gcc_options
9580         parameters.  Use option_flag_var.
9581         (option_flag_var): New.
9582         * opts.c (common_handle_option, lang_handle_option,
9583         target_handle_option): Take gcc_options parameter.  Assert that it
9584         is &global_options.
9585         (read_cmdline_options): Pass &global_options to read_cmdline_option.
9586         (print_filtered_help): Use option_flag_var.  Pass &global_options
9587         to option_enabled.
9588         (common_handle_option): Use option_flag_var.
9589         (option_enabled): Take opts parameter.  Use option_flag_var.
9590         (get_option_state): Take gcc_options parameter.  Use
9591         option_flag_var.  Pass gcc_options parameter to option_enabled.
9592         (enable_warning_as_error): Pass &global_options to
9593         handle_generated_option.
9594         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
9595         (cl_option_handler_func.handler): Take gcc_options parameter.
9596         (option_enabled, get_option_state, set_option, handle_option,
9597         handle_generated_option, read_cmdline_option): Take gcc_options
9598         parameters.
9599         * toplev.c (optimize, optimize_size): Remove.
9600         (print_switch_values): Pass &global_options to option_enabled.
9601         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
9602         to get_option_state.
9603         (general_init): Initialize global_dc->option_state.
9604         * tree.c (build_optimization_node): Pass &global_options to
9605         cl_optimization_save.
9606         (build_target_option_node): Pass &global_options to
9607         cl_target_option_save.
9608
9609 2010-09-30  Martin Jambor  <mjambor@suse.cz>
9610
9611         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
9612         zero sized bit-fields.
9613
9614 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
9615
9616         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
9617         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
9618         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
9619         (c_parser_objc_class_declaration): Same change.
9620         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
9621         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
9622         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
9623         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
9624         and RID_AT_PUBLIC instead of RID_PUBLIC.
9625         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
9626         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
9627
9628 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
9629
9630         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
9631         Add links to current providers of packages for Solaris and IRIX.
9632
9633 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9634
9635         Merge from 'apple/trunk' branch on FSF servers.
9636         * c-parser.c: Applied change originally in c-parse.in.
9637
9638         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
9639
9640         Radar 4281748
9641         * c-decl.c (start_decl): Check for redeclaration of class name.
9642         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
9643
9644 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
9645
9646         * config/ia64/ia64.c (ia64_builtin_decl): New.
9647         (TARGET_BUILTIN_DECL): Define.
9648         (ia64_builtins): New.
9649         (ia64_init_builtins): Save decls in ia64_builtins.
9650
9651 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
9652
9653         PR target/40457
9654         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
9655         (move2add_use_add3_insn): Likewise.
9656         (reload_cse_move2add): Likewise.
9657         * rtlanal.c (get_full_rtx_cost): New function.
9658         * rtl.h (struct full_rtx_costs): New.
9659         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
9660         costs_add_n_insns): New inline functions.
9661         (get_full_rtx_cost): Declare.
9662
9663         PR c/45054
9664         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
9665         invariants.  Check for reg_equiv_invariant.
9666         (reload): Assert that spilled_pseudos is empty when returning.
9667
9668 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
9669
9670         * config/i386/mingw32.h (TARGET_64BIT): replaced by
9671         TARGET_64BIT_DEFAULT in #if check.
9672
9673 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
9674
9675         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
9676
9677 2010-09-29  Mike Stump  <mikestump@comcast.net>
9678
9679         * config/darwin.h (flag_mkernel): Remove.
9680         (flag_apple_kext): Likewise.
9681
9682 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
9683             Jack Howarth  <howarth@bromo.med.uc.edu>
9684
9685         * config/darwin.opt (undefined): Add.
9686
9687 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
9688
9689         PR testsuite/45664
9690         * configure.ac: Add --enable-indirect-function option.
9691         * config.gcc: Add default_gnu_indirect_function.
9692         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
9693         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
9694         * varasm.c (do_assemble_alias): Adjust for macro name change.
9695         * configure: Rebuilt.
9696         * doc/install.texi: Document --enable-indirect-function.
9697
9698 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
9699
9700         * doc/options.texi (Variable, Var, Init): Update documentation
9701         without reference to VarExists.
9702         (VarExists): Remove.
9703         * common.opt, config/i386/i386.opt, config/linux.opt,
9704         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
9705         Don't use VarExists.
9706
9707 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
9708
9709         * optc-gen.awk: Generate global_options initializer instead of
9710         individual variables.  Add x_ prefix to names of structure members.
9711         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
9712         names of structure members.
9713         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9714         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
9715         * doc/tm.texi: Regenerate.
9716         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9717         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
9718         * c-parser.c (disable_extension_diagnostics,
9719         restore_extension_diagnostics): Update names of cpp_options members.
9720         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9721         * common.opt (fcompare-debug-second): Don't use Var.
9722         * config/alpha/alpha.h (target_flags): Remove.
9723         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9724         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
9725         * config/bfin/bfin.h (target_flags): Remove.
9726         * config/cris/cris.h (target_flags): Remove.
9727         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
9728         cl_target_option members.
9729         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
9730         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
9731         ix86_can_inline_p): Update names of cl_target_option members.
9732         * config/i386/i386.h (ix86_isa_flags): Remove.
9733         * config/lm32/lm32.h (target_flags): Remove.
9734         * config/mcore/mcore.h (mcore_stack_increment): Remove.
9735         * config/mcore/mcore.md (addsi3): Remove extern declaration of
9736         flag_omit_frame_pointer.
9737         * config/mep/mep.h (target_flags): Remove.
9738         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9739         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
9740         * config/mmix/mmix.h (target_flags): Remove.
9741         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
9742         flag_expensive_optimizations): Remove.
9743         * config/s390/s390.h (flag_pic): Remove.
9744         * config/score/score-conv.h (target_flags): Remove.
9745         * config/sh/sh.h (sh_fixed_range_str): Remove.
9746         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
9747         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
9748         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9749         * diagnostic.c (diagnostic_initialize): Update names of
9750         diagnostic_context members.
9751         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
9752         warn_system_headers.
9753         (diagnostic_report_warnings_p): Update for new names.
9754         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
9755         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
9756         HARD_FRAME_POINTER_IS_ARG_POINTER.
9757         * flags.h (flag_compare_debug): Declare.
9758         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9759         * opts.c (flag_compare_debug): Define.
9760         (common_handle_option): Update names of diagnostic_context
9761         members.  Handle -fcompare-debug-second.
9762         (fast_math_flags_struct_set_p): Update names of cl_optimization
9763         members.
9764         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9765         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9766         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9767         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9768         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9769         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9770         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
9771         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9772         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
9773
9774 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
9775
9776         * config/picochip/picochip.c (picochip_output_internal_label):
9777         This function can now be called for debug CFI labels, which can come
9778         in the middle of a vliw instruction.  Postpone until end of vliw.
9779
9780 2010-09-29  Richard Guenther  <rguenther@suse.de>
9781
9782         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
9783         (DECL_FILE_SCOPE_P): Use it.
9784         (TYPE_FILE_SCOPE_P): New macro.
9785
9786 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9787
9788         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
9789         a CPP_NAME which is a reserved word, clearly separate cases for
9790         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
9791
9792 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
9793
9794         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
9795         token->value with the canonical spelling.  Do exactly like C and
9796         C++ and leave it as it is.
9797
9798 2010-09-28  Richard Henderson  <rth@redhat.com>
9799
9800         * config/alpha/alpha.c (alpha_builtins): New.
9801         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
9802         (alpha_builtin_function): New.
9803         (alpha_add_builtins, alpha_init_builtins): Use it.
9804
9805 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
9806
9807         * doc/standards.texi (Standards): Expanded the section on
9808         Objective-C and Objective-C++.
9809
9810 2010-09-28  DJ Delorie  <dj@redhat.com>
9811
9812         PR target/45800
9813         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
9814         volatile MEMs.
9815
9816 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
9817
9818         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
9819         attributes on methods.
9820          (c_parser_objc_method_definition): Handle attributes.
9821         (c_parser_objc_methodproto): Likewise.
9822         (c_parser_objc_maybe_method_attributes): New.
9823         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
9824         missing definition, similar to that in ObjC++.
9825
9826 2010-09-28  Richard Henderson  <rth@redhat.com>
9827
9828         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
9829         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
9830         (CONFIG_SJLJ_EXCEPTIONS): Remove.
9831         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
9832         (STACK_CHECK_PROTECT): Likewise.
9833         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
9834         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
9835         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
9836         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
9837         (dwarf2out_assembly_start): Likewise.
9838         * except.c (init_eh): Use targetm.except_unwind_info.
9839         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
9840         (output_one_function_exception_table): Likewise.
9841         * final.c: Unconditionally include dwarf2out.h.
9842         (final_start_function): Unconditionally call dwarf2out routines.
9843         (final_end_function, final_scan_insn): Likewise.
9844         * function.c (expand_function_end): Use targetm.except_unwind_info.
9845         * opts.c (decode_options): Use targetm.except_unwind_info.
9846         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
9847         * target.def (debug_unwind_info, except_unwind_info): New.
9848         * target.h (enum unwind_info_type): New.
9849         * targhooks.c (default_debug_unwind_info): New.
9850         (default_except_unwind_info): New.
9851         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
9852         * targhooks.h: Declare them.
9853         * tree-tailcall.c: Include "target.h"
9854         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
9855         * Makefile.in (tree-tailcall.o): Update.
9856         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
9857         (lhd_gcc_personality): Likewise.
9858
9859         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
9860         (TARGET_EXCEPT_UNWIND_INFO): New.
9861         (DWARF2_UNWIND_INFO): Update.
9862         (TARGET_DEBUG_UNWIND_INFO): New.
9863         * doc/tm.texi: Rebuild.
9864
9865         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
9866         targetm.except_unwind_info.
9867
9868         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
9869         (arm_except_unwind_info): New.
9870         (arm_compute_func_type): Use it.
9871         (arm_expand_prologue, thumb_pushpop): Likewise.
9872         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
9873         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
9874         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
9875         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
9876         (DWARF2_UNWIND_INFO): Remove.
9877         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
9878         (ARM_EABI_UNWIND_TABLES): Remove.
9879
9880         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
9881         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
9882         (ia64_except_unwind_info): New.
9883         (ia64_output_function_prologue): Use it.
9884         (ia64_add_bundle_selector_before): Likewise.
9885         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
9886         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
9887         (TARGET_UNWIND_INFO): Remove.
9888
9889         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
9890
9891 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
9892
9893         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
9894         (c_parser_objc_protocol_definition): Likewise.
9895         (c_parser_external_declaration): Provide dummy attribute arguments.
9896         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
9897         (c_parser_objc_class_definition): Handle attributes.
9898         (c_parser_objc_protocol_definition): Likewise.
9899
9900 2010-09-28  Tobias Burnus  <burnus@net-b.de>
9901
9902         PR fortran/40569
9903         PR fortran/40568
9904         * toplev.h (save_decoded_options, save_decoded_options_count):
9905         New global variables.
9906         * toplev.c (save_decoded_options, save_decoded_options_count):
9907         Export variables.
9908
9909 2010-09-28  Ian Lance Taylor  <iant@google.com>
9910
9911         * config/i386/i386.c (ix86_supports_split_stack): Test
9912         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
9913
9914 2010-09-28  Ian Lance Taylor  <iant@google.com>
9915
9916         PR target/45815
9917         * opts.c (decode_options): Don't test whether the target supports
9918         split stack if flag_split_stack == 0.
9919
9920 2010-09-28  Jan Hubicka  <jh@suse.cz>
9921
9922         * builtin-attrs.def (ATTR_LEAF): New attribute.
9923         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
9924         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
9925         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
9926         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
9927         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
9928         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
9929         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
9930         * sync-builtins.def: Annotate all builtins by leaf.
9931         * omp-builtins.def: Annotate all builtins by leaf.
9932         * builtins.def: Annotate relevant builtins with leaf attribute.
9933         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
9934         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
9935         leaf.
9936
9937 2010-09-28  Jan Hubicka  <jh@suse.cz>
9938
9939         * tree-ssa-ccp.c (fold_ctor_reference): New function.
9940         (fold_const_aggregate_ref): Use it.
9941         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
9942         into external static.
9943
9944 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9945
9946         PR target/44452
9947         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
9948         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
9949         (ix86_solaris_return_in_memory): Remove.
9950         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
9951         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
9952         (TARGET_SUBTARGET_DEFAULT): Redefine.
9953         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
9954         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
9955         (TARGET_SUBTARGET_DEFAULT): Redefine.
9956         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
9957         -mvect8-ret-in-mem.
9958         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
9959
9960 2010-09-29  Alan Modra  <amodra@gmail.com>
9961
9962         PR target/45807
9963         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
9964         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
9965         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
9966         Delete.
9967         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
9968         (rs6000_emit_prologue): Don't just create frame save info for r2,
9969         actually save r2.
9970
9971 2010-09-28  Richard Henderson  <rth@redhat.com>
9972
9973         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
9974         when 8 bytes are requested.
9975
9976 2010-09-28  Tristan Gingold  <gingold@adacore.com>
9977
9978         * config/avr/avr.c (expand_prologue): Set
9979         current_function_static_stack_size.
9980
9981 2010-09-28  Tristan Gingold  <gingold@adacore.com>
9982
9983         * config/alpha/alpha.md: Change the initial condition of the
9984         probing loop.
9985
9986 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
9987
9988         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
9989         Split from *avx_<maxmin:code><mode>3.
9990         (*avx_<smaxmin:code><mode>3): Ditto.
9991         * config/i386/i386.md (maxmin): Remove code iterator.
9992
9993 2010-09-27  Ian Lance Taylor  <iant@google.com>
9994
9995         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
9996         requires assembler support for CFI directives.
9997
9998 2010-09-27  Richard Henderson  <rth@redhat.com>
9999
10000         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
10001
10002 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
10003
10004         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
10005         that AFTER is not in the range FROM..TO, inclusive.
10006
10007 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
10008             Bernd Schmidt  <bernds@codesourcery.com>
10009
10010         PR rtl-optimization/45792
10011         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
10012         If not all insns are to be merged, for each edge, stash the
10013         next candidate after the to-be-merged insns before doing the
10014         merge, and use them for the retry at the new insertion point.
10015         Handle CC0 targets when retrying.
10016
10017 2010-09-27  Ian Lance Taylor  <iant@google.com>
10018
10019         * common.opt (fsplit-stack): New option.
10020         * opts.c (decode_options): Set flag_split_stack to final value.
10021         * target.def (supports_split_stack): New hook.
10022         * gcc.c (STACK_SPLIT_SPEC): Define.
10023         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
10024         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
10025         (Code Gen Options): Document -fsplit-stack.
10026         * doc/extend.texi (Function Attributes): Mention no_split_stack.
10027         (Function Attributes): Document no_split_stack.
10028         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
10029         TARGET_SUPPORTS_SPLIT_STACK.
10030         * doc/tm.texi: Rebuild.
10031         * function.c (thread_prologue_and_epilogue_insns): If
10032         flag_split_stack, add split stack prologue.
10033         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
10034         * varasm.c (saw_no_split_stack): New static variable.
10035         (assemble_start_function): Set saw_no_split_stack if the function
10036         has the no_split_stack attribute.
10037         (file_end_indicate_split_stack): New function.
10038         * output.h (file_end_indicate_split_stack): Declare.
10039         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
10040         and function.
10041         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
10042         routines.
10043         * config/i386/i386.c (ix86_option_override_internal): Don't set
10044         expand_builtin_va_start to NULL if -fsplit-stack.
10045         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
10046         -fsplit-stack.
10047         (ix86_va_start): If -fsplit-stack, get overflow pointer from
10048         scratch register set by prologue.
10049         (ix86_code_end): If -fsplit-stack, call
10050         file_end_indicate_split_stack.
10051         (ix86_supports_split_stack): New static function.
10052         (SPLIT_STACK_AVAILABLE): Define.
10053         (split_stack_prologue_scratch_regno): New static function.
10054         (split_stack_fn): New static variable.
10055         (ix86_expand_split_stack_prologue): New function.
10056         (ix86_live_on_entry): New static function.
10057         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
10058         (output_pic_addr_const): Likewise.
10059         (i386_asm_output_addr_const_extra): Likewise.
10060         (ix86_expand_call): Change return type to rtx.  Return the new
10061         call instruction.
10062         (TARGET_SUPPORTS_SPLIT_STACK): Define.
10063         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
10064         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
10065         (split_stack_prologue, split_stack_return): New insns.
10066         (split_stack_space_check): New insn.
10067         * config/i386/i386.h (struct machine_function): Add
10068         split_stack_varargs_pointer field.
10069         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
10070         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
10071         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
10072         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
10073         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
10074         Declare.
10075         (ix86_expand_call): Update declaration.
10076
10077 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
10078
10079         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
10080         code.  Added byref, which was missing in the list of codes.
10081         Explain that enumeration values are encoded as the integer type
10082         that the compiler uses to store them.  Explain and make examples
10083         of how 'const' interacts with pointers, and the complication of
10084         the encoding of 'const char *'.
10085         (Legacy type encoding): New subsection, explaining that GCC emits
10086         incorrect type encodings for the NeXT runtime for compatibility
10087         reasons.
10088         (@@encode): New subsection, explaining @encode and particularly
10089         that protocol qualifiers are not recognized inside an @encode()
10090         expression.
10091         (Method signatures): New subsection, explaining how method
10092         signatures are encoded.
10093
10094 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
10095
10096         Merge from 'apple/trunk' branch on FSF servers.  Removed small
10097         change in build_conditional_expr that had been added when fixing
10098         PR objc/27377 and which did the same check in a less complete way.
10099
10100         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
10101
10102         Radar 4229905
10103         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
10104         looking for objective-c common pointer types.
10105
10106         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
10107
10108         Radar 4154928
10109         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
10110         use their ObjC common type.
10111
10112 2010-09-27  Richard Guenther  <rguenther@suse.de>
10113
10114         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
10115
10116 2010-09-27  Jie Zhang  <jie@codesourcery.com>
10117
10118         * print-tree.c (print_node): Print in-constant-pool.
10119
10120 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
10121
10122         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
10123         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
10124         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
10125         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
10126
10127 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
10128
10129         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
10130         from pro_epilogue_adjust_stack_<mode>_{1,2}.
10131         (pro_epilogue_adjust_stack_<mode>_add): Rename from
10132         pro_epilogue_adjust_stack_<mode>_3.
10133         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
10134         renamed pro_epilogue_adjust_stack_{si,di}_add.
10135         (ix86_expand_prologue): Use indirect functions.  Update for renamed
10136         pro_epilogue_adjust_stack_{si,di}_sub.
10137
10138 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
10139
10140         * config/i386/i386.md (movmsk_df): New insn.
10141         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
10142         sequence for TARGET_SSE_MATH.
10143
10144 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
10145
10146         * config/mips/mips.c (mips_builtin_decls): Declare.
10147         (mips_init_builtins): Store function declarations in
10148         mips_builtin_decls.
10149         (mips_builtin_decl): New function.
10150         (TARGET_BUILTIN_DECL): Define.
10151
10152 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
10153             Richard Henderson  <rth@redhat.com>
10154
10155         * config/i386/cygwin.asm: Include auto-host.h.
10156         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
10157         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
10158         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
10159         alignment code from the 64-bit path.  Use gas local labels.
10160         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
10161         from _di_2.  Remove the useless constant integer argument.
10162         (pro_epilogue_adjust_stack_<mode>_3): New.
10163         (allocate_stack_worker_probe_<mode>): Macroize from
10164         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
10165         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
10166         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
10167         (__chkstk_ms): New function.
10168         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
10169         * config/i386/t-interix: Likewise.
10170         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
10171         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
10172         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
10173         * configure, config.in: Rebuild.
10174
10175 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
10176
10177         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
10178         statements because of the return slot optimization.
10179
10180 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
10181
10182         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
10183         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
10184         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10185         (class_likely_spilled_p): Rename to...
10186         (avr_class_likely_spilled_p): ...this. Make static. Change argument
10187         type to reg_class_t.
10188
10189 2010-09-24  Jan Hubicka  <jh@suse.cz>
10190
10191         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
10192         (lto_symtab_resolve_symbols): Set it.
10193         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
10194         store resolution field in cgraph/varpool.
10195         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
10196         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
10197         (cgraph_dump_node): Drop used_from_object_file.
10198         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
10199         (cgraph_function_body_availability): Use decl_replaceable_p.
10200         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
10201         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
10202         cgraph_used_from_object_file_p.
10203         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
10204         cgraph_used_from_object_file_p.
10205         (resolution_used_from_other_file_p): New functoin.
10206         (cgraph_used_from_object_file_p): New predicate.
10207         * cgraph.h: Include plugin-api.h
10208         (struct cgraph_local_info): Remove used_from_object_file.
10209         (struct cgraph_node): Add resolution field.
10210         (struct varpool_node): Likewise; remove used_from_object_file;
10211         reove const_value_known.
10212         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
10213         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
10214         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
10215         varpool_used_from_object_file_p): Declare.
10216         (varpool_get_node, varpool_extra_name_alias): Update prototype.
10217         * tree.h (DECL_REPLACEABLE_P): Remove.
10218         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
10219         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
10220         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
10221         input_overwrite_node, input_node, input_varpool_node): Stream
10222         resolution.
10223         * expr.c (expand_expr_real_1): Use const_value_known_p
10224         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
10225         const_value_known.
10226         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
10227         (function_and_variable_visibility): Set resolution for local vars
10228         and functions; use varpool_used_from_object_file_p.
10229         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
10230         static functions.
10231         (default_binds_local_p_1): Use resolutoin info.
10232         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
10233         * varpool.c (varpool_get_node): Constify.
10234         (const_value_known_p): Do not use vnode->const_value_known;
10235         use decl_replaceable_p.
10236         (varpool_finalize_decl): Do not set const_value_known.
10237         (cgraph_variable_initializer_availability): Use decl_replaceable_p
10238         (varpool_extra_name_alias): Return new node.
10239         (varpool_used_from_object_file_p): New function.
10240
10241 2010-09-24  Richard Henderson  <rth@redhat.com>
10242
10243         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
10244         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
10245         (do_spill): Use REG_CFA_OFFSET.
10246         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
10247         as appropriate.
10248         (ia64_expand_epilogue): Likewise.
10249         (process_set): Split into ...
10250         (process_cfa_adjust_cfa): this,
10251         (process_cfa_register): this,
10252         (process_cfa_offset): and this new function.
10253         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
10254         instead of REG_FRAME_RELATED_EXPR.
10255
10256 2010-09-24  Olivier Hainque  <hainque@adacore.com>
10257
10258         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
10259
10260 2010-09-24  Jan Hubicka  <jh@suse.cz>
10261
10262         * doc/extend.texi: (attribute leaf): Document.
10263         * tree.c (local_define_builtin): Handle ECF_LEAF.
10264         (build_common_builtin_nodes): Set ECF_LEAF where needed.
10265         * tree.h (ECF_LEAF): New.
10266         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
10267         overwrittable and unavailable functions.
10268         (ipa_init): Put all_module_statics into optimization_summary_obstack.
10269         (copy_global_bitmap): Do not copy all_module_statics.
10270         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
10271         (propagate): Handle overwritable and unavailable leaf functions;
10272         initialize global info for overwritable and unavailable leaf functions;
10273         do not free all module statics.
10274         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
10275         local statics.
10276         * calls.c (flags_from_decl_or_type): Handle leaf.
10277         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
10278         abnormal gotos.
10279
10280 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
10281
10282         * gengtype.c: Reindented.
10283         * gengtype.h: Reindented.
10284         * gengtype-parse.c: Reindented.
10285
10286 2010-09-24  Jan Hubicka  <jh@suse.cz>
10287
10288         PR tree-optimization/45738
10289         PR tree-optimization/45741
10290         * expr.c (string_constant): Allow CONST_DECL too;
10291         check that DECL_INITIAL is set.
10292         * varpool.c (const_value_known_p): Only look into VAR_DECL
10293         and CONST_DECL.
10294
10295 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
10296
10297         * common.opt (undef): New.
10298
10299 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
10300
10301         PR middle-end/45234
10302         * rtl.h (enum global_rtl_index): Add
10303         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
10304         (LAST_VIRTUAL_POINTER_REGISTER): Define.
10305         (virtual_preferred_stack_boundary_rtx,
10306         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
10307         (LAST_VIRTUAL_REGISTER): Increase by one.
10308         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
10309         instead of LAST_VIRTUAL_REGISTER.
10310         * function.c (instantiate_new_reg): Handle
10311         virtual_preferred_stack_boundary_rtx.
10312         * emit-rtl.c (init_virtual_regs): Handle
10313         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
10314         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
10315         * explow.c (round_push): If crtl->preferred_stack_boundary
10316         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
10317         virtual_preferred_stack_boundary_rtx alignment instead of
10318         crtl->preferred_stack_boundary alignment.
10319         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
10320         macros.  Never decrease crtl->preferred_stack_boundary,
10321         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
10322         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
10323         stack_pointer_delta in dynamic allocation, even when size
10324         is constant.
10325         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
10326         macro.
10327         * print-rtl.c (print_rtx): Handle
10328         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
10329         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
10330         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
10331         * config/frv/frv.c (frv_emit_movsi): Likewise.
10332         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
10333         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
10334         Likewise.
10335
10336         Revert:
10337         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
10338
10339         PR middle-end/45234
10340         * calls.c (expand_call): Make sure that all variable sized
10341         adjustments are multiple of preferred stack boundary after
10342         stack alignment.
10343
10344 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
10345             Dominique Dhumieres  <dominiq@lps.ens.fr>
10346
10347         PR bootstrap/45751
10348         * config/darwin-driver.c (darwin_default_min_version):
10349         Adjust size passed to memcpy in two places.
10350
10351 2010-09-24  Richard Guenther  <rguenther@suse.de>
10352
10353         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
10354         Make sure to not call set_type_context with error_mark_node.
10355         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
10356
10357 2010-09-24  Richard Guenther  <rguenther@suse.de>
10358
10359         * Makefile.in (OBJS-onestep): Remove.
10360         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
10361         (libbackend.a): Remove onestep support.
10362         (libbackend.o): Remove.
10363         * configure.ac (--enable-intermodule): Remove.
10364         * configure: Regenerate.
10365
10366 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
10367
10368         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
10369         reaching the end of a block if it occurs at a DEBUG_INSN.
10370
10371 2010-09-09  Tristan Gingold  <gingold@adacore.com>
10372
10373         PR target/44242
10374         * config/vms/vms-crt0-64.c: Removed.
10375         * config/vms/vms-crt0.c: Removed.
10376         * config/vms/vms-psxcrt0-64.c: Removed.
10377         * config/vms/vms-psxcrt0.c: Removed.
10378         * config/vms/vms-ucrt0.c: New file.
10379         * config/vms/t-vms64: Removed.
10380         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
10381         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
10382         * config.gcc (alpha-dec-vms): Use t-vms.
10383
10384 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
10385
10386         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
10387         underfull hbox in DVI output.
10388         (-fobjc-class-cxx-cdtors): Same change.
10389         (-fobjc-exceptions): Tidied up documentation.  Explain what the
10390         option does, but moved the (lenghty) description of the exception
10391         syntax into objc.texi.
10392         (-fobjc-gc): Explain that the option is not useful with the GNU
10393         runtime.
10394         (-fzero-link): Explain that the GNU runtime always works in
10395         "zero-link" mode.
10396         * doc/objc.texi: All sections: simplified @node declarations
10397         removing specification of next, previous, up node.
10398         (Objective-C): Updated introduction.
10399         (Garbage Collection): Updated.  The bohem-gc library is now
10400         included in gcc itself.  Mention that this section only applies to
10401         the GNU Objective-C runtime.
10402         (compatibility_alias): Small tidy up.
10403         (Exceptions): New section mostly containing text previously in the
10404         description of the -fobjc-exception command-line option.
10405         (Synchronization): Same.
10406
10407 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
10408
10409         * config/i386/i386.md (ix86_code_end): Move the initialization of
10410         xops array near the consumer.  Use AX_REG and SP_REG instead of
10411         numerical constants.
10412
10413 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
10414
10415         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
10416         method [methodname]' for an Objective-C method instead of the less
10417         satisfactory 'too many arguments to function' (with no method name).
10418
10419 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
10420
10421         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
10422         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
10423         (execute_update_addresses_taken): Remove parameter.  Execute the
10424         optimization unconditionally.
10425         * passes.c (execute_function_todo): Call execute_update_addresses_taken
10426         unconditionally if TODO_rebuild_alias is set, else only when optimizing
10427         if TODO_update_address_taken is set.
10428
10429 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
10430
10431         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10432         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
10433         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10434         (arm_output_addr_const_extra): Make static.
10435
10436 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
10437
10438         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
10439         define as unspec_volatile.
10440         ("nops"): Define as unspec_volatile. Use fputs to write to
10441         asm_out_file directly.  Output NOPs on separate lines using while loop.
10442         * config/i386/i386.c (ix86_code_end): Use fputs to write to
10443         asm_out_file directly.  Output NOPs on separate lines using while loop.
10444
10445 2010-09-23  Richard Guenther  <rguenther@suse.de>
10446
10447         PR tree-optimization/45565
10448         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
10449         Make sure to adjust the fndecl before replacing the stmt.
10450
10451 2010-09-23  Richard Guenther  <rguenther@suse.de>
10452
10453         PR middle-end/45750
10454         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
10455         gimplifying MEM_REF.
10456
10457 2010-09-23  Alan Modra  <amodra@gmail.com>
10458
10459         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
10460         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
10461
10462 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
10463
10464         PR rtl-optimization/44374
10465         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
10466         * df-core.c (df_set_bb_dirty): Set it.
10467         * ifcvt.c (find_memory): Remove function.
10468         (dead_or_predicable): Use can_move_insns_across.
10469         * df.h (can_move_insns_across): Declare function.
10470         * cfgcleanup.c (block_was_dirty): New static variable.
10471         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
10472         than df_get_bb_dirty.
10473         (try_head_merge_bb): New static function.
10474         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
10475         is set.
10476         * df-problems.c: Include "target.h"
10477         (df_simulate_find_uses): New static function.
10478         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
10479         (find_memory, find_memory_store): New static functions.
10480         (can_move_insns_across): New function.
10481         * Makefile.in (df-problems.o): Update dependencies.
10482
10483 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
10484
10485         PR java/44095
10486         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
10487         is specified and the suffix of the file isn't ".c".
10488         * config/sparc/linux64.h (ASM_SPEC): Likewise.
10489
10490 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10491
10492         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
10493         * doc/cppopts.texi: Fix markup of index entry.
10494         * doc/extend.texi (Constructing Calls): Fix markup of
10495         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
10496         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
10497         (Vague Linkage, C++ Attributes): Fix markup of index entries and
10498         keywords.
10499         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
10500         avoid long lines.
10501         (C Dialect Options, C++ Dialect Options, Warning Options)
10502         (Debugging Options, Spec Files, Darwin Options)
10503         (i386 and x86-64 Options, MIPS Options)
10504         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
10505         index entries, avoid abbreviations, allow URLs to wrap, avoid
10506         long lines, avoid overlong pages from long @itemx lists.
10507         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
10508         * doc/standards.texi (Standards): Likewise.
10509         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
10510
10511 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
10512
10513         * opts-common.c (prune_options): Make static.  Work with decoded
10514         options.
10515         (decode_cmdline_options_to_array): Call prune_options.  Don't
10516         resize option array here.
10517         * opts.h (prune_options): Remove prototype.
10518         * gcc.c (process_command): Take decoded options; don't call
10519         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
10520         (main): Call decode_cmdline_options_to_array here instead of
10521         prune_options.  Update call to process_command.
10522         * config/darwin-driver.c: Include opts.h.
10523         (darwin_default_min_version): Work with decoded options.  Don't
10524         handle -b or -V here.
10525         * config/darwin.h (darwin_default_min_version): Update prototype.
10526         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
10527         darwin_default_min_version.
10528         * config/i386/cygwin.h (mingw_scan): Update prototype.
10529         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
10530         * config/i386/cygwin1.c: Include opts.h.
10531         (mingw_scan): Work with decoded options.
10532         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
10533         * config/t-darwin (darwin-driver.o): Update dependencies.
10534
10535 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
10536
10537         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
10538         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
10539         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
10540         -force-link, -force-link=, -language, -language=,
10541         -library-directory, -library-directory=, -no-canonical-prefixes,
10542         -no-standard-libraries, -no-warnings, -optimize, -output,
10543         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
10544         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
10545         -print-file-name=, -print-libgcc-file-name,
10546         -print-multi-directory, -print-multi-lib,
10547         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
10548         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
10549         -profile, -save-temps, -shared, -specs, -specs=, -static,
10550         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
10551         symbolic): New.
10552         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
10553         * gcc.c (A Short Introduction to Adding a Command-Line Option):
10554         Remove comment.
10555         (cc1_options): Correct specs for passing down --help,
10556         --target-help and --help=*.  Add spec for passing down --version.
10557         (struct option_map, option_map, target_option_translations,
10558         translate_options): Remove.
10559         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
10560         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
10561         OPT_fhelp_ and OPT_ftarget_help.
10562         (process_command): Don't call translate_options.  Call
10563         decode_cmdline_options_to_array before checking for
10564         -no-canonical-prefixes using decoded options.
10565         * opts-common.c (tm.h): Update comment on #include.
10566         (find_opt): Allow abbreviations of long options.
10567         (struct option_map, option_map): New.
10568         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
10569         and -mno handling.
10570         (target_option_translations): New.
10571         (decode_cmdline_options_to_array): Handle
10572         TARGET_OPTION_TRANSLATE_TABLE in driver.
10573         * opts.c (common_handle_option): Don't handle OPT_fhelp,
10574         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
10575
10576 2010-09-22  Richard Guenther  <rguenther@suse.de>
10577
10578         * tree-inline.c (optimize_inline_calls): Schedule cleanups
10579         only if we inlined something.  Block compaction and conditional
10580         folding are done by cfg cleanup.  Schedule update-address-taken.
10581         (tree_function_versioning): Remove redundant call to number_blocks.
10582         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
10583         folding is done by cfg cleanup.
10584         * passes.c (init_optimization_passes): Remove update-address-taken
10585         pass after IPA inlining.
10586
10587 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
10588
10589         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
10590         to update conditions. Fix reg_mode[] check.
10591
10592 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
10593
10594         * config/picochip/picochip.md (movhicc): Use expand to check whether
10595         movhicc is available and split it after reload.
10596
10597 2010-09-22  Richard Guenther  <rguenther@suse.de>
10598
10599         * tree-ssanames.c (release_dead_ssa_names): Do not remove
10600         callee edges here.
10601         * passes.c (init_optimization_passes): Remove early CFG cleanup.
10602         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
10603         (pass_cleanup_cfg): Likewise.
10604         (execute_fixup_cfg): Cleanup.
10605         * tree-pass.h (pass_cleanup_cfg): Remove.
10606
10607 2010-09-22  Martin Jambor  <mjambor@suse.cz>
10608
10609         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
10610         builtins if it is true.
10611         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
10612         parameter.
10613
10614 2010-09-22  Martin Jambor  <mjambor@suse.cz>
10615
10616         * tree-sra.c (struct access): New field grp_no_warning.
10617         (create_access_replacement): Set TREE_NO_WARNING according to
10618          grp_no_warning.
10619         (create_artificial_child_access): Use build_ref_for_model and set
10620         grp_no_warning if build_user_friendly_ref_for_offset fails.
10621         (propagate_subaccesses_across_link): Likewise.
10622
10623 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
10624
10625         PR target/35664
10626         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
10627         ('f'): Likewise.
10628
10629 2010-09-22  Tristan Gingold  <gingold@adacore.com>
10630
10631         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
10632
10633 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
10634
10635         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
10636         * config/i386/i386.c (decide_alg): Update for rename.
10637
10638 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
10639
10640         PR rtl-optimization/45739
10641         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
10642         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
10643
10644 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
10645
10646         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
10647         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
10648         Remove.
10649         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
10650         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10651
10652 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10653
10654         PR objc/23710
10655         * c-parser.c (c_parser_objc_method_definition): Check the return
10656         value of objc_start_method_definition and if false is returned,
10657         parse the method definition but emit no code.
10658
10659 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10660
10661         PR objc/25965
10662         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
10663         call objc_get_interface_ivars ().
10664
10665 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
10666
10667         PR target/45694
10668         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
10669         static chain-register is used for 64-bit.
10670
10671 2010-09-21  Richard Guenther  <rguenther@suse.de>
10672
10673         * dwarf2out.c (is_cu_die): New function.
10674         (add_pubtype): Use it.
10675         (gen_subprogram_die): Likewise.
10676         (gen_struct_or_union_type_die): Likewise.
10677         (dwarf2out_finish): Likewise.
10678         (comp_unit_die): Rename to ...
10679         (single_comp_unit_die): ... this.
10680         (comp_unit_die): New function lazily constructing and
10681         returning single_comp_unit_die.
10682         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
10683         base_type_die, subrange_type_die, modified_type_die,
10684         lower_bound_default, add_bound_info, add_prototyped_attribute,
10685         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
10686         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
10687         force_decl_die, gen_namespace_die, dwarf2out_decl,
10688         dwarf2out_start_source_file, dwarf2out_end_source_file,
10689         prune_unused_types, dwarf2out_finish): Use it.
10690         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
10691         the global list of translation-unit decls.
10692         (dwarf2out_init): Do not create single_comp_unit_die here.
10693         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
10694
10695 2010-09-21  Richard Guenther  <rguenther@suse.de>
10696
10697         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
10698         for bool for C++.
10699
10700 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
10701
10702         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
10703         (qhs_extenddi_cstr): Likewise.
10704         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
10705         them for the source operand.
10706
10707 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
10708
10709         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
10710         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
10711         (ix86_split_ashr): Ditto.
10712         (ix86_split_lshr): Ditto.
10713
10714 2010-09-21  Richard Guenther  <rguenther@suse.de>
10715
10716         PR tree-optimization/45580
10717         * tree-ssa-propagate.c (substitute_and_fold): Always replace
10718         regular uses.
10719         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
10720         virtuals fold the call into a regular indirect one.
10721
10722 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
10723
10724         PR rtl-optimization/42775
10725         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
10726         scheduling is enabled.
10727
10728 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
10729
10730         PR rtl-optimization/45728
10731         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
10732         gen_lowpart_common first and if that fails, force_reg first
10733         before calling gen_lowpart.
10734
10735         PR middle-end/45678
10736         * cfgexpand.c (expand_one_stack_var_at): Use
10737         crtl->max_used_stack_slot_alignment as max_align, instead
10738         of maximum of that and PREFERRED_STACK_BOUNDARY.
10739         Don't call update_stack_alignment.
10740
10741 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
10742
10743         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
10744         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
10745         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
10746         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
10747         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
10748         (build_nonstandard_integer_type): Likewise.
10749         (build_range_type_1): New function, built from...
10750         (build_range_type): ...this.  Call build_range_type_1.
10751         (build_nonshared_range_type): New function.
10752         (build_array_type_1): New function, built from...
10753         (build_array_type: ...this.  Call build_array_type_1.
10754         (build_nonshared_array_type): New function.
10755         * tree.h (build_nonshared_range_type): Declare.
10756         (build_nonshared_array_type): Likewise.
10757
10758 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
10759
10760         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
10761         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10762         (arm_class_likely_spilled_p): New function.
10763
10764 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
10765
10766         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
10767         indirect functions.
10768         (ix86_split_ashl): Ditto.
10769         (ix86_split_ashr): Ditto.
10770         (ix86_split_lshr): Ditto.
10771         (ix86_adjust_counter): Ditto.
10772
10773 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
10774
10775         * c-family/c-common.h (constant_string_class): Documented with
10776         comment identical to the one already in c-common.c.
10777
10778 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
10779
10780         * dwarf2out.c (any_cfis_emitted): New static variable.
10781         (add_fde_cfi): Set it.
10782         (dwarf2out_frame_debug): Clear it before processing,
10783         if it is set afterwards, flush any queued reg saves.
10784
10785         PR debug/45124
10786         * dwarf2out.c (add_accessibility_attribute): Assume
10787         DW_ACCESS_private as the default for dwarf_version > 2
10788         and DW_TAG_class_type parent.
10789         (gen_inheritance_die): Assume DW_ACCESS_public as the default
10790         for dwarf_version > 2 and parent other than DW_TAG_class_type.
10791
10792 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
10793
10794         PR target/45726
10795         * arm.md (arm_movt): Only enable on machines with MOVT.
10796
10797 2010-09-20  Jie Zhang  <jie@codesourcery.com>
10798
10799         * config/arm/arm.c (arm_address_offset_is_imm): New.
10800         (arm_early_store_addr_dep): New.
10801         (arm_early_load_addr_dep): New.
10802         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
10803         (arm_early_load_addr_dep): Declare.
10804         (arm_address_offset_is_imm): Declare.
10805         * config/arm/cortex-m4.md: New file.
10806         * config/arm/cortex-m4-fpu.md: New file.
10807         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
10808         (attr generic_sched): Exclude cortexm4.
10809         (attr generic_vfp): Exclude cortexm4.
10810
10811 2010-09-20  Richard Guenther  <rguenther@suse.de>
10812
10813         PR middle-end/45704
10814         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
10815
10816 2010-09-20  Jan Hubicka  <jh@suse.cz>
10817
10818         PR tree-optimize/45605
10819         * cgraph.h (const_value_known_p): Declare.
10820         (varpool_decide_const_value_known): Remove.
10821         * tree-ssa-ccp.c (get_base_constructor): Use it.
10822         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
10823         * expr.c (string_constant): Likewise.
10824         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
10825         * ipa.c (ipa_discover_readonly_nonaddressable_var,
10826         function_and_variable_visibility): Likewise.
10827         * gimplify.c (gimplify_call_expr): Likewise.
10828         * gimple-fold.c (get_symbol_constant_value): Likewise.
10829         * varpool.c (varpool_decide_const_value_known): Replace by...
10830         (const_value_known_p): ... this one; handle other kinds of DECLs
10831         too and work for automatic vars.
10832         (varpool_finalize_decl): Use const_value_known_p.
10833
10834 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
10835
10836         PR target/45726
10837         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
10838
10839 2010-09-20  Richard Guenther  <rguenther@suse.de>
10840
10841         PR tree-optimization/45705
10842         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
10843
10844 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
10845
10846         PR rtl-optimization/45695
10847         * combine.c (try_combine): When splitting a two set pattern,
10848         make sure the pattern which will be put into i2 doesn't use REGs
10849         or MEMs set by insns in between i2 and i3.
10850
10851 2010-09-19  Jan Hubicka  <jh@suse.cz>
10852
10853         PR lto/44246
10854         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
10855         processing same node twice.
10856
10857 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
10858
10859         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
10860         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10861         (bfin_class_likely_spilled_p): New function
10862
10863 2010-09-19  Ira Rosen  <irar@il.ibm.com>
10864
10865         PR tree-optimization/45714
10866         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
10867         created in vectorizable_call instead of the original statement in
10868         def stmt updates.
10869
10870 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
10871
10872         * config/i386/i386-protos.h (split_double_mode): New prototype.
10873         (split_di, split_ti): Remove prototypes.
10874         * config/i386/i386.c (split_double_mode): New function.
10875         (split_di, split_ti): Remove.
10876         (ix86_expand_branch): Use split_double_mode.
10877         (ix86_split_to_parts): Ditto.
10878         (ix86_split_ashl): Ditto.
10879         (ix86_split_ashr): Ditto.
10880         (ix86_split_lshr): Ditto.
10881         (ix86_force_to_memory): Ditto.
10882         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
10883
10884 2010-09-18  Jan Hubicka  <jh@suse.cz>
10885
10886         PR tree-optimization/45453
10887         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
10888         virtual functions are reachable.
10889         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
10890         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
10891         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
10892         when modifying function.
10893
10894 2010-09-18  Jan Hubicka  <jh@suse.cz>
10895
10896         PR tree-optimization/45605
10897         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
10898         * gimple-fold.c (static_object_in_other_unit_p): New function.
10899         (canonicalize_constructor_val): Use it.
10900         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
10901         returning NULL.
10902         (gimple_fold_obj_type_ref_known_binfo): Use
10903         static_object_in_other_unit_p.
10904
10905 2010-09-18  Richard Guenther  <rguenther@suse.de>
10906
10907         PR tree-optimization/45709
10908         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
10909         insertions until after all PHI nodes of the block are processed.
10910
10911 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
10912
10913         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
10914
10915 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
10916
10917         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
10918
10919 2010-09-18  Richard Guenther  <rguenther@suse.de>
10920
10921         PR tree-optimization/45709
10922         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
10923
10924 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
10925
10926         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
10927         (dot_deps_stmt): Same.
10928         * graphite-poly.c (dot_lst): Same.
10929         * graphite-scop-detection.c (dot_all_scops): Same.
10930         (dot_scop): Same.
10931
10932 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
10933
10934         Revert:
10935         2009-12-16  Ben Elliston  <bje@au.ibm.com>
10936
10937         * tree-data-ref.c (dot_rdg_1): Added back.
10938         (dot_rdg): Same.  Added "#if 0" around system call.
10939
10940 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
10941             Richard Henderson  <rth@redhat.com>
10942
10943         * config/i386/i386.c (initial_ix86_tune_features): Add
10944         X86_TUNE_PAD_SHORT_FUNCTION.
10945         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
10946         (ix86_count_insn): New.
10947         (ix86_pad_short_function): Likewise.
10948         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
10949
10950         * config/i386/i386.h (ix86_tune_indices): Add
10951         X86_TUNE_PAD_SHORT_FUNCTION.
10952         (TARGET_PAD_SHORT_FUNCTION): New.
10953
10954         * config/i386/i386.md (UNSPEC_NOPS): New.
10955         (nops): Likewise.
10956
10957 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
10958
10959         PR middle-end/45234
10960         * calls.c (expand_call): Make sure that all variable sized
10961         adjustments are multiple of preferred stack boundary after
10962         stack alignment.
10963
10964 2010-09-17  DJ Delorie  <dj@redhat.com>
10965
10966         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
10967         passed an invalid value, print an error instead of ICEing.
10968         (valid_psw_flag): New.
10969         (rx_expand_builtin): Call it for setpsw/clrpsw.
10970         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
10971
10972         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
10973         (bitclr_in_memory): Likewise.
10974         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
10975
10976 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
10977
10978         PR middle-end/45678
10979         * cfgexpand.c (update_stack_alignment): New.
10980         (get_decl_align_unit): Use it.
10981         (expand_one_stack_var_at): Call update_stack_alignment.
10982
10983 2010-09-17  Richard Guenther  <rguenther@suse.de>
10984
10985         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
10986         Properly copy the read string.
10987
10988 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
10989
10990         * doc/options.texi (Variable): Document.
10991         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
10992         generate target_flags declarations explicitly.  Don't define
10993         VarExists variables for the driver.
10994         * common.opt (target_flags): New Variable record.
10995         (flag_dump_unnumbered, flag_dump_unnumbered_links,
10996         flag_var_tracking, flag_var_tracking_assignments,
10997         flag_var_tracking_assignments_toggle): Don't mark variables with
10998         VarExists.
10999         * config/i386/i386.c (ix86_isa_flags): Don't define here.
11000         * config/i386/i386.opt (ix86_isa_flags): Define here.
11001         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
11002         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
11003         VarExists.
11004         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
11005         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
11006         Only define for generator programs.
11007         * rtlanal.c (target_flags): Remove.
11008         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
11009         flag_var_tracking_assignments_toggle): Remove.
11010
11011 2010-09-17  Michael Matz  <matz@suse.de>
11012
11013         PR tree-optimization/43432
11014         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
11015         Accept backwards consecutive accesses.
11016         (vect_create_data_ref_ptr): If step is negative generate
11017         decreasing IVs.
11018         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
11019         (perm_mask_for_reverse, reverse_vec_elements): New functions.
11020         (vectorizable_load): Handle loads with negative steps when easily
11021         possible.
11022
11023 2010-09-03  Jan Hubicka  <jh@suse.cz>
11024
11025         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
11026
11027 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
11028
11029         * config/v850/v850.c (v850_function_value_regno_p): Make static.
11030         Adjust comments. Declare.
11031         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11032         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
11033
11034 2010-09-17  Richard Guenther  <rguenther@suse.de>
11035
11036         * common.opt (combine): Remove.
11037         * gcc.c (default_compilers): Remove specs testing combine.
11038         The C compilers no longer can combine.
11039         (option_map): Remove -combine.
11040         (display_help): Remove -combine.
11041         (driver_handle_option): Remove OPT_combine handling.
11042         (compile_input_file_p): Remove.
11043         (do_spec): Remove code concerning combine.
11044         (main): Likewise.
11045         * doc/invoke.texi: Remove traces of -combine.
11046         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
11047
11048 2010-09-17  Richard Guenther  <rguenther@suse.de>
11049
11050         PR middle-end/45678
11051         * builtins.c (fold_builtin_memory_op): Always properly adjust
11052         alignment of memory accesses.
11053
11054 2010-09-16  Jan Hubicka  <jh@suse.cz>
11055
11056         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
11057         processing clone.
11058
11059 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
11060
11061         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
11062
11063         * config/i386/i386.c (predict_jump): Add prototype.
11064         (flag_opts): Add -m8bit-idiv.
11065         (ix86_split_idivmod): New.
11066
11067         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
11068         Add 2 splitters for SI/DI mode divide.
11069         (divmod<mode>4_1): New pattern.
11070         (udivmod<mode>4_1): Likewise.
11071         (testdi_ccno_1): Likewise.
11072
11073         * config/i386/i386.opt (m8bit-idiv): New.
11074
11075         * doc/invoke.texi: Document -m8bit-idiv.
11076
11077 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
11078
11079         PR bootstrap/45680
11080         * config/i386/i386.c (min_insn_size): Moved out of the
11081         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
11082
11083 2010-09-16  Jan Hubicka  <jh@suse.cz>
11084
11085         * lto-cgraph.c (lto_output_node): Fix handling of clones.
11086         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
11087         unreachable clones with reachable clones.
11088         * tree-inline.c (copy_bb): Fix sanity checking when producing
11089         unreachable clone.
11090
11091 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
11092
11093         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
11094         (TARGET_MEMORY_MOVE_COST): Define.
11095         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
11096
11097 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
11098
11099         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
11100         maybe_tidy_empty_bb.
11101
11102         Revert:
11103         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
11104         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
11105
11106 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
11107
11108         * target.def (target_option.optimization): New hook.
11109         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
11110         TARGET_OPTION_OPTIMIZATION hook.
11111         * doc/tm.texi: Regenerate.
11112         * hooks.c (hook_void_int_int): New.
11113         * hooks.h (hook_void_int_int): Declare.
11114         * opts.c: Don't include tm_p.h.
11115         (decode_options): Use targetm.target_option.optimization instead
11116         of OPTIMIZATION_OPTIONS.
11117         * system.h (OPTIMIZATION_OPTIONS): Poison.
11118         * config/arm/arm-protos.h (arm_optimization_options): Remove.
11119         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
11120         (arm_optimization_options): Rename to arm_option_optimization.
11121         Make static.
11122         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
11123         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
11124         (cris_option_optimization): New.
11125         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
11126         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
11127         (crx_option_optimization): New.
11128         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
11129         * config/frv/frv-protos.h (frv_optimization_options): Remove.
11130         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
11131         (frv_optimization_options): Rename to frv_option_optimization.
11132         Make static.
11133         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
11134         * config/h8300/h8300.c (h8300_option_optimization): New.
11135         (TARGET_OPTION_OPTIMIZATION): Define.
11136         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
11137         * config/i386/i386-protos.h (optimization_options): Remove.
11138         * config/i386/i386.c (optimization_options): Rename to
11139         ix86_option_optimization.  Make static.
11140         (TARGET_OPTION_OPTIMIZATION): Define.
11141         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
11142         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
11143         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
11144         (ia64_optimization_options): Rename to ia64_option_optimization.
11145         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
11146         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
11147         commented-out definition.
11148         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
11149         instead of OPTIMIZATION_OPTIONS.
11150         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
11151         (m32r_option_optimization): New.
11152         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
11153         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
11154         Remove.
11155         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
11156         (mcore_option_optimization): New.
11157         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
11158         * config/mep/mep-protos.h (mep_optimization_options): Remove.
11159         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
11160         (mep_optimization_options): Rename to mep_option_optimization.
11161         Make static.  Take unused level and size parameters.
11162         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
11163         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
11164         (mmix_option_optimization): New.
11165         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
11166         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
11167         (pdp11_option_optimization): New.
11168         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
11169         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
11170         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
11171         (optimization_options): Rename to rs6000_option_optimization.
11172         Make static.
11173         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
11174         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
11175         * config/rx/rx.c (rx_set_optimization_options): Rename to
11176         rx_option_optimization.  Make static.  Take unused level and size
11177         parameters.
11178         (TARGET_OPTION_OPTIMIZATION): Define.
11179         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
11180         * config/s390/s390-protos.h (optimization_options): Remove.
11181         * config/s390/s390.c (optimization_options): Rename to
11182         s390_option_optimization.  Make static.  Don't mark size parameter
11183         unused.
11184         (TARGET_OPTION_OPTIMIZATION): Define.
11185         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
11186         * config/sh/sh-protos.h (sh_optimization_options): Remove.
11187         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
11188         (sh_optimization_options): Rename to sh_option_optimization.  Make
11189         static.  Don't mark parameters unused.
11190         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
11191         * config/spu/spu-protos.h (spu_optimization_options): Remove.
11192         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
11193         (spu_optimization_options): Rename to spu_option_optimization.
11194         Make static.
11195         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
11196         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
11197         (v850_option_optimization): New.
11198         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
11199         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
11200         (xtensa_option_optimization): New.
11201         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
11202
11203 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
11204
11205         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
11206         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
11207         * doc/tm.texi: Regenerate.
11208         * system.h (OVERRIDE_OPTIONS): Poison.
11209         * target.def (override): Default to hook_void_void.
11210         * targhooks.c (default_target_option_override): Remove.
11211         * genmodes.c, machmode.def: Update comments mentioning
11212         OVERRIDE_OPTIONS.
11213         * config/alpha/alpha-modes.def: Update comment mentioning
11214         alpha_override_options.
11215         * config/alpha/alpha-protos.h (override_options): Remove.
11216         * config/alpha/alpha.c (override_options): Rename to
11217         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
11218         (TARGET_OPTION_OVERRIDE): Define.
11219         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
11220         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
11221         of OVERRIDE_OPTIONS.
11222         * config/arc/arc-protos.h (arc_init): Remove.
11223         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
11224         (arc_init): Rename to arc_option_override.  Make static.
11225         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
11226         (OVERRIDE_OPTIONS): Remove.
11227         * config/arm/arm-protos.h (arm_override_options): Remove.
11228         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
11229         (arm_override_options): Rename to arm_option_override.  Make
11230         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
11231         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
11232         * config/arm/arm.md: Update comment referring to arm_override_options.
11233         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
11234         instead of OVERRIDE_OPTIONS.
11235         * config/avr/avr-protos.h (avr_override_options): Remove.
11236         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
11237         (avr_override_options): Rename to avr_option_override.  Make static.
11238         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
11239         * config/bfin/bfin-protos.h (override_options): Remove (twice).
11240         * config/bfin/bfin.c (override_options): Rename to
11241         bfin_option_override.  Make static.
11242         (TARGET_OPTION_OVERRIDE): Define.
11243         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
11244         * config/cris/cris-protos.h (cris_override_options): Remove.
11245         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
11246         (cris_override_options): Rename to cris_option_override.  Make static.
11247         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
11248         * config/frv/frv-protos.h (frv_override_options): Remove.
11249         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
11250         (frv_override_options): Rename to frv_option_override.  Make static.
11251         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
11252         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
11253         * config/h8300/h8300.c (h8300_init_once): Rename to
11254         h8300_option_override.  Make static.
11255         (TARGET_OPTION_OVERRIDE): Define.
11256         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
11257         * config/i386/i386-protos.h (override_options): Remove.
11258         * config/i386/i386.c (override_options): Rename to
11259         ix86_option_override_internal.  Make static.  Comments referring
11260         to this function and callers changed.
11261         (ix86_option_override): New.
11262         (TARGET_OPTION_OVERRIDE): Define.
11263         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
11264         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
11265         * config/ia64/ia64.c (ia64_file_start): Update comment referring
11266         to ia64_override_options.
11267         * config/iq2000/iq2000-protos.h (override_options): Remove.
11268         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
11269         (override_options): Rename to iq2000_option_override.  Make static.
11270         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
11271         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
11272         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
11273         (lm32_override_options): Rename to lm32_option_override.  Make static.
11274         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
11275         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
11276         (m32r_option_override): New.
11277         (m32r_init): Update comment.
11278         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
11279         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
11280         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
11281         (m68hc11_override_options): Rename to m68hc11_option_override.
11282         Make static.  Return void.
11283         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
11284         * config/m68k/m68k-protos.h (override_options): Remove.
11285         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
11286         (override_options): Rename to m68k_option_override.  Make static.
11287         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
11288         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
11289         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
11290         (mcore_override_options): Rename to mcore_option_override.  Make
11291         static.
11292         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
11293         * config/mep/mep-protos.h (mep_override_options): Remove.
11294         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
11295         (mep_override_options): Rename to mep_option_override.  Make static.
11296         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
11297         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
11298         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
11299         (mmix_override_options): Rename to mmix_option_override.  Make static.
11300         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
11301         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
11302         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
11303         (mn10300_override_options): Rename to mn10300_option_override.
11304         Make static.
11305         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
11306         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
11307         * config/moxie/moxie.c (moxie_override_options): Rename to
11308         moxie_option_override.  Make static.
11309         (TARGET_OPTION_OVERRIDE): Define.
11310         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
11311         * config/picochip/picochip-protos.h (picochip_override_options):
11312         Remove.  Update comment referring to picochip_override_options.
11313         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
11314         (picochip_override_options): Rename to picochip_option_override.
11315         Make static.  Update comment and definition of
11316         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
11317         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
11318         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11319         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11320         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11321         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11322         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11323         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
11324         instead of OVERRIDE_OPTIONS.
11325         * config/rs6000/rs6000-modes.def: Update comment referring to
11326         rs6000_override_options.
11327         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
11328         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
11329         (rs6000_override_options): Rename to
11330         rs6000_option_override_internal.  Make static.  Commented
11331         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
11332         (rs6000_option_override): New.
11333         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
11334         instead of OVERRIDE_OPTIONS.
11335         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
11336         * config/s390/s390-protos.h (override_options): Remove.
11337         * config/s390/s390.c (override_options): Rename to
11338         s390_option_override.  Make static.
11339         (TARGET_OPTION_OVERRIDE): Define.
11340         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
11341         * config/score/score-protos.h (score_override_options): Remove.
11342         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
11343         (score_override_options): Rename to score_option_override.  Make
11344         static.
11345         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
11346         Update comment referring to override_options.
11347         * config/score/score3.c (score3_override_options): Rename to
11348         score3_option_override.
11349         * config/score/score3.h (score3_override_options): Rename to
11350         score3_option_override.
11351         * config/score/score7.c (score7_override_options): Rename to
11352         score7_option_override.
11353         * config/score/score7.h (score7_override_options): Rename to
11354         score7_option_override.
11355         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
11356         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
11357         (sparc_override_options): Rename to sparc_option_override.  Make
11358         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
11359         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
11360         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
11361         instead of OVERRIDE_OPTIONS.
11362         * config/spu/spu-protos.h (spu_override_options): Remove.
11363         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
11364         (spu_override_options): Rename to spu_option_override.  Make
11365         static.
11366         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
11367         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
11368         OVERRIDE_OPTIONS.
11369         * config/vax/vax-protos.h (override_options): Remove.
11370         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
11371         (override_options): Rename to vax_option_override.  Make static.
11372         Call SUBTARGET_OVERRIDE_OPTIONS.
11373         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
11374         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
11375         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
11376         * config/xtensa/xtensa-protos.h (override_options): Remove.
11377         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
11378         (override_options): Rename to xtensa_option_override.  Make static.
11379         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
11380
11381 2010-09-16  Richard Guenther  <rguenther@suse.de>
11382
11383         PR tree-optimization/45623
11384         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
11385         (get_constraint_for_component_ref): If computing a constraint
11386         for the rhs handle type punning through unions.
11387         (get_constraint_for_address_of): Adjust.
11388         (get_constraint_for_1): Likewise.
11389         (get_constraint_for): Likewise.
11390         (get_constraint_for_rhs): New function.
11391         (do_structure_copy): Adjust.
11392         (make_constraint_to): Likewise.
11393         (handle_const_call): Likewise.
11394         (find_func_aliases): Likewise.
11395         (process_ipa_clobber): Likewise.
11396         (create_variable_info_for): Likewise.
11397
11398 2010-09-16  Ira Rosen  <irar@il.ibm.com>
11399
11400         * tree-vectorizer.c: Fix documentation.
11401         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
11402         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
11403         is_pattern_stmt_p, is_loop_header_bb_p,
11404         stmt_vinfo_set_inside_of_loop_cost,
11405         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
11406         known_alignment_for_access_p): Likewise.
11407         * tree-vect-loop.c: Fix documentation.
11408         (vect_get_cost): Start function name from new line.
11409         * tree-vect-data-refs.c: Fix documentation.
11410         * tree-vect_stmts.c: Likewise.
11411         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
11412         (vectorizable_store): Free vec_oprnds if allocated.
11413         (vectorizable_condition): Initialize several variables to avoid
11414         warnings.
11415         * tree-vect-slp.c: Fix documentation.
11416
11417 2010-09-16  Richard Guenther  <rguenther@suse.de>
11418
11419         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
11420         is TS_TRANSLATION_UNIT_DECL.
11421         (initialize_tree_contains_struct): Adjust.
11422         (all_translation_units): New global vector.
11423         (build_translation_unit_decl): New function.
11424         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
11425         (struct tree_translation_unit_decl): New.
11426         (all_translation_units): Declare.
11427         (union tree_node): Add translation_unit_decl member.
11428         (build_translation_unit_decl): Declare.
11429         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
11430         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
11431         New function.
11432         (pack_value_fields): Call it.
11433         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
11434         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
11435         (lto_output_tree_pointers): Call it.
11436         * lto-streamer-in.c (lto_input_tree_ref): Handle references
11437         to TRANSLATION_UNIT_DECL.
11438         (unpack_ts_translation_unit_decl_value_fields): New function.
11439         (unpack_value_fields): Call it.
11440         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
11441         (lto_input_tree_pointers): Call it.
11442         * lto-streamer.c (check_handled_ts_structures): Adjust.
11443         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
11444         * c-decl.c (all_translation_units): Remove.
11445         (pop_scope): Use build_translation_unit_decl.
11446         (collect_all_refs): Adjust.
11447         (for_each_global_decl): Likewise.
11448         (c_write_global_declarations): Likewise.
11449
11450 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
11451
11452         PR bootstrap/45686
11453         * fold-const.c (fold_checksum_tree): Change slot from const void **
11454         to void **, use CONST_CAST_TREE to store into *slot.
11455
11456 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
11457
11458         * config/i386/i386.md: Remove unneeded empty conditions and
11459         preparation statements from expanders.
11460         * config/i386/mmx.md: Ditto.
11461         * config/i386/sse.md: Ditto.
11462
11463 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
11464
11465         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
11466
11467 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11468
11469         PR rtl-optimization/45593
11470         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
11471         insns that were in delay slots as stand-alone insns.
11472
11473 2010-09-15  Ian Lance Taylor  <iant@google.com>
11474
11475         * incpath.c (remove_duplicates): If name is not a directory, issue
11476         a warning rather than an error.
11477
11478 2010-09-15  Martin Jambor  <mjambor@suse.cz>
11479
11480         PR middle-end/45644
11481         * tree-sra.c (create_access): Check for bit-fields directly.
11482
11483 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
11484
11485         PR tree-optimization/45633
11486         * tree-cfg.c (verify_gimple_assign_binary): Allow
11487         MINUS_EXPR with lhs and rhs1 pointer vector and
11488         rhs2 sizetype vector.
11489         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
11490         or vector pointer use TER to optimize pointer subtraction.
11491
11492 2010-09-15  Jie Zhang  <jie@codesourcery.com>
11493
11494         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
11495         fcmpd to fcmps.
11496
11497 2010-09-15  Ian Lance Taylor  <iant@google.com>
11498
11499         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
11500
11501 2010-09-15  Ian Lance Taylor  <iant@google.com>
11502
11503         * function.c (get_arg_pointer_save_area): Set
11504         arg_pointer_save_area_init to true.
11505
11506 2010-09-15  Martin Jambor  <mjambor@suse.cz>
11507
11508         * tree-sra.c (generate_subtree_copies): Updated comment.
11509         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
11510         obtained from the statement iterator instead.
11511         (load_assign_lhs_subreplacements): Removed parameters lhs and
11512         right_offset, which is obtained from top_racc instead.  Parameter lacc
11513         is now expected to be the root of the processed tree rather than root's
11514         first child.  Updated all callers.
11515
11516 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
11517
11518         * config/pdp11/pdp11.c (register_move_cost): Rename to
11519         pdp11_register_move_cost.
11520         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
11521         pdp11_register_move_cost.
11522         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
11523         pdp11_register_move_cost instead of register_move_cost.
11524
11525 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
11526
11527         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
11528         pattern for vmovn. Expansion in case of non
11529         -mvectorize-with-neon-quad.
11530         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
11531         non- -mvectorize-with-neon-quad case.
11532         (move_lo_quad_<mode>): New expansion to vmov into low part.
11533         (move_hi_quad_<mode>): New expansion to vmov into high part.
11534         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
11535         (move_lo_quad_v4sf): Likewise.
11536         (move_lo_quad_v8hi): Likewise.
11537         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
11538         low part.
11539         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
11540         high part.
11541         * config/arm/iterators.md (ANY128): New mode iterator.
11542         (V_narrow_pack): New mode attribute.
11543         (V_HALF): Add attribute.
11544         (V_DOUBLE): Add attribute.
11545         (V_mode_nunits): Add attribute.
11546
11547 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
11548
11549         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
11550         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
11551
11552 2010-09-15  Olivier Hainque  <hainque@adacore.com>
11553             Jose Ruiz  <ruiz@adacore.com>
11554
11555         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
11556         * config/alpha/osf5-unwind.h: New file.
11557
11558 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11559
11560         PR bootstrap/45672
11561         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
11562         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
11563         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
11564
11565 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11566
11567         * c-lang.h (struct lang_type): Add variable_size GTY option.
11568
11569 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11570
11571         PR bootstrap/45672
11572         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
11573
11574 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11575
11576         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
11577         result isn't used in memory address.
11578
11579 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11580
11581         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
11582         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
11583         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
11584         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
11585         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
11586         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
11587
11588         * target.def: Add units_per_simd_word to vectorize.
11589
11590         * targhooks.c (default_units_per_simd_word): New.
11591         * targhooks.h (default_units_per_simd_word): Likewise.
11592         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
11593         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11594         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
11595         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11596         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
11597         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11598         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
11599         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11600
11601         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
11602         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
11603
11604         * tree-vect-stmts.c: Don't include "tm_p.h".
11605         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
11606         with targetm.vectorize.units_per_simd_word.
11607
11608         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
11609
11610         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
11611
11612         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
11613         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
11614
11615         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
11616         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
11617
11618         * doc/tm.texi: Regenerated.
11619
11620 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
11621
11622         * tree-vect-stmts.c: Include "tm_p.h".
11623
11624         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
11625         out of RTX_CODE.
11626
11627 2010-09-14  Martin Jambor  <mjambor@suse.cz>
11628
11629         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
11630         location of generated statement.  Changed all callers.
11631         (build_ref_for_model): New parameter loc which used to set location of
11632         all generated expressions.  Changed all callers.
11633         (generate_subtree_copies): Likewise.
11634         (init_subtree_with_zero): Likewise.
11635         (sra_modify_expr): Set locations of all generated statements and
11636         expressions to the location the original statement.
11637         (handle_unscalarized_data_in_subtree): Likewise.
11638         (load_assign_lhs_subreplacements): Likewise.
11639         (sra_modify_constructor_assign): Likewise.
11640         (sra_modify_assign): Likewise.
11641
11642 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
11643
11644         PR target/45277
11645         PR target/45363
11646         PR target/45407
11647         * doc/install.texi (sparc*-*-*): New section.
11648         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
11649
11650 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
11651
11652         PR middle-end/45567
11653         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
11654         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
11655         (expand_builtin): Adjust caller.
11656         (expand_builtin_unop): Only use subtarget if it has the right mode.
11657
11658 2010-09-14  Tristan Gingold  <gingold@adacore.com>
11659
11660         * configure.ac (plugins): Fix typos.
11661         * configure: Regenerate.
11662
11663 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
11664
11665         PR debug/45660
11666         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
11667         gen_type_die for function/method return type.
11668
11669 2010-09-14  Ira Rosen  <irar@il.ibm.com>
11670
11671         PR tree-optimization/45470
11672         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11673         can throw an exception.
11674         * tree-vect-stmts.c (vectorizable_call): Likewise.
11675
11676 2010-09-14  DJ Delorie  <dj@redhat.com>
11677
11678         PR target/44749
11679         * config/mep/mep-protos.h (mep_save_register_info,
11680         mep_reinit_regs, mep_init_regs): Declare.
11681
11682         * config/mep/mep.c: Move all target definitions to the end of the
11683         file to avoid the need for duplicate declarations.
11684         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
11685         (mep_reorg_erepeat): Remove unused variables.
11686         (mep_expand_builtin): Likewise.
11687
11688         * config/mep/mep-pragma.c: Don't include rtl.h.
11689         (INVALID_REGNUM): New.
11690         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
11691         functions.
11692         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
11693         Avoid enum/integer math.
11694
11695 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
11696
11697         PR target/44749
11698         * config/mep/t-mep (GTM_H): Add insn-constants.h.
11699         * config/mep/mep.c (mep_conditional_register_usage): Take no
11700         parameters.
11701         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
11702         prototype.
11703         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
11704         call to mep_conditional_register_usage.
11705
11706 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
11707
11708         PR debug/43937
11709         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
11710         the DECL as well.
11711
11712 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
11713
11714         PR rtl-optimization/45617
11715         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
11716         even if low N bits of X aren't known to be zero.
11717
11718 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
11719
11720         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
11721
11722         * config/i386/i386.c (initial_ix86_tune_features): Add
11723         X86_TUNE_VECTORIZE_DOUBLE.
11724         (ix86_units_per_simd_word): New.
11725
11726         * config/i386/i386.h (ix86_tune_indices): Add
11727         X86_TUNE_VECTORIZE_DOUBLE.
11728         (TARGET_VECTORIZE_DOUBLE): New.
11729         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
11730
11731 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
11732
11733         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
11734         (new_temp_expr_table): Allocate call_cnt vector.
11735         (free_temp_expr_table): Free it.
11736         (process_replaceable): Add call_cnt parm and set in vector.
11737         (find_replaceable_in_bb): Skip replacement if def/use span a call.
11738         (debug_ter): Dump call_cnt value, remove stderr uses.
11739
11740 2010-09-13  Jan Hubicka  <jh@suse.cz>
11741
11742         * tree.c (build_zero_cst): New.
11743         * tree.h (build_zero_cst): Declare.
11744         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
11745         (get_base_constructor): Break out from ...
11746         (fold_const_aggregate_ref): Here; handle empty constructors.
11747
11748 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11749
11750         * config/arm/arm.md: (define_attr "conds"): Update comment.
11751         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
11752         conds attribute to clob.
11753         (arm_sync_compare_and_swapsi): Likewise.
11754         (arm_sync_compare_and_swap<mode>): Likewise.
11755         (arm_sync_lock_test_and_setsi): Likewise.
11756         (arm_sync_lock_test_and_set<mode>): Likewise.
11757         (arm_sync_new_<sync_optab>si): Likewise.
11758         (arm_sync_new_nandsi): Likewise.
11759         (arm_sync_new_<sync_optab><mode>): Likewise.
11760         (arm_sync_new_nand<mode>): Likewise.
11761         (arm_sync_old_<sync_optab>si): Likewise.
11762         (arm_sync_old_nandsi): Likewise.
11763         (arm_sync_old_<sync_optab><mode>): Likewise.
11764         (arm_sync_old_nand<mode>): Likewise.
11765
11766 2010-09-13  Olivier Hainque  <hainque@adacore.com>
11767
11768         * fwprop.c (forward_propagate_and_simplify): Only attach a
11769         REG_EQUAL note to an insn if the destination is a register.
11770         * gcse.c (try_replace_reg): Likewise.
11771
11772 2010-09-13  Richard Guenther  <rguenther@suse.de>
11773
11774         PR tree-optimization/45611
11775         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
11776         (copy_ref_info): Likewise.
11777
11778 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
11779
11780         PR debug/45604
11781         PR debug/45419
11782         PR debug/45408
11783         * tree-pretty-print.c (dump_generic_node): Disregard top-level
11784         types of MEM_REF pointer types to the same type.
11785
11786 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
11787
11788         PR rtl-optimization/41087
11789         * ifcvt.c (noce_get_condition): Don't allow conditions with
11790         side-effects.
11791
11792 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
11793
11794         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11795         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
11796         * config/frv/frv.c (frv_register_move_cost): Make static. Change
11797         arguments type to reg_class_t. Add mode argument.
11798         (frv_memory_move_cost): New.
11799         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
11800
11801 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
11802
11803         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
11804         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
11805
11806 2010-09-10  Jan Hubicka  <jh@suse.cz>
11807
11808         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
11809
11810 2010-09-10  Richard Guenther  <rguenther@suse.de>
11811
11812         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
11813         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
11814         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
11815         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
11816         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
11817
11818 2010-09-10  Richard Guenther  <rguenther@suse.de>
11819
11820         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
11821         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
11822         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
11823         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
11824
11825 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
11826
11827         PR middle-end/45634
11828         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
11829         of string folding is of integral type.
11830
11831 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
11832
11833         * doc/invoke.texi (-x): Fix typo.
11834
11835 2010-09-10  Richard Guenther  <rguenther@suse.de>
11836
11837         PR debug/44115
11838         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
11839         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11840         Output DECL_DEBUG_EXPR.
11841         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11842         Input DECL_DEBUG_EXPR.
11843
11844 2010-09-10  Richard Guenther  <rguenther@suse.de>
11845
11846         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
11847         (build_index_type): Implement in terms of build_range_type.
11848         (build_range_type): Do not allow NULL_TREE type, improve
11849         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
11850         if we didn't hash.
11851         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
11852         create a distinct copy of the type.
11853
11854 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
11855
11856         * configure: Regenerated.
11857         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
11858
11859 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11860
11861         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
11862         * config/arm/cortex-a9-neon.md: New and partially generated.
11863         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
11864
11865 2010-09-10  Richard Guenther  <rguenther@suse.de>
11866
11867         * tree.h (build_index_2_type): Remove.
11868         * tree.c (build_index_2_type): Remove.
11869
11870 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
11871
11872         PR bootstrap/45630
11873         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
11874         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
11875         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
11876
11877 2010-09-10  Martin Jambor  <mjambor@suse.cz>
11878
11879         PR tree-optimization/44972
11880         * tree-sra.c: Include toplev.h.
11881         (build_ref_for_offset): Entirely reimplemented.
11882         (build_ref_for_model): New function.
11883         (build_user_friendly_ref_for_offset): New function.
11884         (analyze_access_subtree): Removed build_ref_for_offset check.
11885         (propagate_subaccesses_across_link): Likewise.
11886         (create_artificial_child_access): Use
11887         build_user_friendly_ref_for_offset.
11888         (propagate_subaccesses_across_link): Likewise.
11889         (ref_expr_for_all_replacements_p): Removed.
11890         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
11891         (sra_modify_expr): Use build_ref_for_model.
11892         (load_assign_lhs_subreplacements): Likewise.
11893         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
11894         checks for return values of build_ref_for_offset.
11895         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
11896         build_ref_for_offset.
11897         * ipa-prop.h: Include gimple.h
11898         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
11899         (ipa_analyze_indirect_call_uses): Update comment.
11900         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
11901         (IPA_PROP_H): Likewise.
11902
11903 2010-09-10  Martin Jambor  <mjambor@suse.cz>
11904
11905         PR tree-optimization/44972
11906         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
11907         calling build_ref_for_offset.
11908
11909 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11910
11911         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
11912         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
11913         * config/arm/arm-tune.md: Regenerate.
11914         * doc/invoke.texi (ARM Options): Document it.
11915
11916 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
11917
11918         * config/i386/i386.c: Include sched-int.h.
11919         (TARGET_SCHED_DISPATCH): Defined.
11920         (TARGET_SCHED_DISPATCH_DO): Defined.
11921         (DISPATCH_WINDOW_SIZE): Defined.
11922         (MAX_DISPATCH_WINDOWS): Defined.
11923         (MAX_INSN): Defined.
11924         (MAX_IMM): Defined.
11925         (MAX_IMM_SIZE): Defined.
11926         (MAX_IMM_32): Defined.
11927         (MAX_IMM_64): Defined.
11928         (MAX_LOAD): Defined.
11929         (MAX_STORE): Defined.
11930         (BIG): Defined.
11931         (dispatch_group): New.
11932         (num_allowable_groups): New.
11933         (group_name): New.
11934         (sched_insn_info_s): New.
11935         (dispatch_windows_s): New.
11936         (imm_info_s): New.
11937         (dispatch_window_list): New.
11938         (dispatch_window_list1): New.
11939         (get_mem_group): New.
11940         (is_cmp): New.
11941         (dispatch_violation): New.
11942         (is_branch): New.
11943         (is_prefetch): New.
11944         (init_window): New.
11945         (allocate_window): New.
11946         (init_dispatch_sched): New.
11947         (is_end_basic_block): New.
11948         (process_end_window): New.
11949         (allocate_next_window): New.
11950         (find_constant_1): New.
11951         (find_constant): New.
11952         (get_num_immediates): New.
11953         (has_immediate): New.
11954         (get_insn_path): New.
11955         (get_insn_group): New.
11956         (count_num_restricted): New.
11957         (fits_dispatch_window): New.
11958         (add_insn_window): New.
11959         (add_to_dispatch_window): New.
11960         (debug_dispatch_window_file): New.
11961         (debug_dispatch_window): New.
11962         (debug_insn_dispatch_info_file): New.
11963         (debug_ready_dispatch): New.
11964         (do_dispatch): New.
11965         (has_dispatch): New.
11966         * config/i386/i386.h (debug_ready_dispatch): Declared.
11967         (debug_dispatch_window): Declared.
11968         * config/i386/i386.opt (mdispatch-scheduler): New flag.
11969         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
11970         (TARGET_SCHED_DISPATCH_DO): New.
11971         * doc/tm.texi: Regererated.
11972         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
11973         ready_remove_first_dispatch
11974         (schedule_block): Call targetm.sched.dispatch and
11975         targetm.sched.dispatch_do.
11976         (sched_init): Call targetm.sched.dispatch and
11977         targetm.sched.dispatch_do.
11978         (ready_remove_first_dispatch): New.
11979         (number_in_ready): New.
11980         (get_ready_element): New.
11981         * hooks.c (hook_bool_rtx_int_false): New.
11982         (hook_void_rtx_int): New.
11983         * hooks.h (hook_bool_rtx_int_false): Declared.
11984         (hook_void_rtx_int): Declared.
11985         * sched-int.h (IS_DISPATCH_ON): Defined.
11986         (IS_CMP): Defined.
11987         (DISPATCH_VIOLATION): Defined.
11988         (FITS_DISPATCH_WINDOW): Defined.
11989         (DISPATCH_INIT): Defined.
11990         (ADD_TO_DISPATCH_WINDOW): Defined.
11991         (get_ready_element): Declared.
11992         (number_in_ready): Declared.
11993         * target.def (dispatch): Defined.
11994         (dispatch_do): Defined.
11995
11996 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
11997
11998         PR middle-end/45312
11999         * reload1.c (merge_assigned_reloads): Remove.
12000         (reload_as_needed): Don't call it.
12001
12002 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
12003
12004         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
12005         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12006         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12007
12008 2010-09-09  Matthias Klose  <doko@ubuntu.com>
12009
12010         PR bootstrap/43847
12011         * configure.ac (--enable-plugin): Enhance for cross builds.
12012         * configure: Regenerate.
12013
12014 2010-09-09  Jan Hubicka  <jh@suse.cz>
12015
12016         PR tree-optimization/45598
12017         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
12018         string folding is of integral type.
12019
12020 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12021
12022         * configure.ac (gnu_indirect_function): New test.
12023         * configure: Rebuilt.
12024         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
12025         * defaults.h (IFUNC_ASM_TYPE): Provide default.
12026
12027         * doc/extend.texi (Function Attributes): Document ifunc.
12028         * varasm.c (do_assemble_alias): Deal with ifuncs too.
12029
12030 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
12031
12032         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
12033         epilogue instruction move.
12034
12035 2010-09-09  Jan Hubicka  <jh@suse.cz>
12036
12037         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
12038         command line to allow more partitions than input files.
12039
12040 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12041
12042         PR middle-end/44554
12043         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
12044
12045 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
12046
12047         PR middle-end/40386
12048         * ira.c (pseudo_for_reload_consideration_p): Don't use
12049         flag_ira_share_spill_slots.
12050
12051 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12052
12053         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
12054         point zero operands that fit into a single GPR.
12055         (s390_preferred_reload_class): Ensure we only return general-purpose
12056         register classes.
12057         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
12058         floating-point zero operands into GPRs.
12059         ("*mov<mode>_64"): Likewise.
12060         ("mov<mode>"): Likewise using lhi.
12061
12062 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12063
12064         * config/s390/s390.c (s390_symref_operand_p): Return false for
12065         literal pool references.
12066         (s390_check_qrst_address): Update caller.
12067
12068 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
12069
12070         * config/i386/predicates.md (ext_register_operand): Check that
12071         SUBREG_REG is really a register before looking for REGNO.
12072         (reg_not_xmm0_operand): Handle SUBREGs correctly.
12073         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
12074
12075 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
12076
12077         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
12078         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
12079         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
12080         * print-rtl.c (print_rtx): Likewise.
12081         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12082         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
12083         for ADDR_EXPR with non-addressable object.
12084         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
12085         (struct dw_val_struct): Add v.val_decl_ref.
12086         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
12087         Handle DW_OP_GNU_implicit_pointer.
12088         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
12089         (get_ref_die_offset_label): New function.
12090         (implicit_ptr_descriptor): New function.
12091         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
12092         (loc_descriptor): Likewise.
12093         (gen_variable_die): Put even definitions into decl_die_table.
12094         (resolve_addr_in_expr): Resolve still unresolved
12095         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
12096         return false.
12097         (dwarf2out_finish): Call output_location_lists after outputting
12098         .debug_info and .debug_abbrev instead of before.
12099
12100 2010-09-09  Roland McGrath  <roland@redhat.com>
12101
12102         * dwarf2out.c (DWARF_REF_SIZE): Define.
12103         (size_of_loc_descr): Use it for DW_OP_call_ref.
12104
12105 2010-09-09  Alan Modra  <amodra@gmail.com>
12106
12107         * doc/invoke.text: Reinstate mcmodel=medium.
12108         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12109         CMODEL_MEDIUM as default.
12110         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
12111         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
12112         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
12113         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
12114
12115 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12116
12117         PR target/45250
12118         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
12119         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
12120         (builtin_longjmp): Likewise.
12121         (allocate_stack): Use hard_frame_pointer_rtx instead of
12122         frame_pointer_rtx.
12123         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
12124         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
12125         (pa_can_eliminate): Likewise.
12126         (TARGET_INTERNAL_ARG_POINTER): Define.
12127         (TARGET_CAN_ELIMINATE): Define.
12128         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
12129         pointer.
12130         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
12131         (pa_internal_arg_pointer, pa_can_eliminate,
12132         pa_initial_elimination_offset): New.
12133         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
12134         (HARD_FRAME_POINTER_REGNUM): Set to register three.
12135         (INITIAL_FRAME_POINTER_OFFSET): Delete.
12136         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
12137         Define.
12138         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
12139         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
12140         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
12141         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
12142         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
12143         new soft frame pointer.
12144         * config/pa/pa64-regs.h: Likewise.
12145
12146 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
12147
12148         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
12149         numerical constant.
12150         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
12151
12152 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
12153
12154         PR debug/45531
12155         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
12156
12157 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
12158
12159         PR debug/45419
12160         PR debug/45408
12161         * tree-pretty-print.c (dump_generic_node): Disregard top-level
12162         qualifiers in otherwise equal MEM_REF pointer types.
12163         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
12164         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
12165
12166 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12167
12168         PR target/44392
12169         * config/arm/arm.md (bswapsi2): Handle condition correctly
12170         for armv6 and optimize_size.
12171
12172 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12173
12174         PR other/18555
12175         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
12176
12177 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
12178
12179         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
12180         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
12181         ix86_expand_strlen, legitimate_pic_address_disp_p,
12182         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
12183         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
12184         ix86_check_movabs, ix86_secondary_memory_needed): Change function
12185         prototype to bool.
12186         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
12187         return_in_memory_ms_64, ix86_check_movabs,
12188         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
12189         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
12190         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
12191         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
12192         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
12193         ix86_secondary_memory_needed): Change to bool.  Return
12194         "true" and "false" values.
12195         * config/i386/i386.md: Return "true" and "false" values.
12196
12197 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12198
12199         * doc/sourcebuild.texi (Effective-Target Keywords): Document
12200         run_expensive_tests.
12201
12202 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12203
12204         * toplev.c (output_stack_usage): Use lbasename instead of basename.
12205
12206 2010-09-08  Martin Jambor  <mjambor@suse.cz>
12207
12208         PR other/45443
12209         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
12210         at -O3.
12211
12212 2010-09-08  Richard Guenther  <rguenther@suse.de>
12213
12214         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
12215         (visit): Adjust.
12216         (iterative_hash_gimple_type): Likewise.
12217         (gimple_type_hash): Likewise.
12218         (gimple_register_type): Likewise.
12219         (print_gimple_types_stats): Likewise.
12220         (free_gimple_type_tables): Likewise.
12221
12222 2010-09-08  Michael Matz  <matz@suse.de>
12223
12224         PR tree-optimization/43430
12225         * tree-vect-stmts.c (vectorizable_condition): Support multiple
12226         copies for conditional statements if it's not part of a reduction.
12227
12228 2010-09-08  Michael Matz  <matz@suse.de>
12229
12230         PR tree-optimization/33244
12231         * tree-ssa-sink.c (statement_sink_location): Don't sink into
12232         empty loop latches.
12233
12234 2010-09-08  Richard Guenther  <rguenther@suse.de>
12235
12236         PR tree-optimization/45578
12237         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
12238         Be more careful when transfering alignment information to
12239         the new induction variable.
12240         (copy_ref_info): Likewise.
12241
12242 2010-09-08  Richard Guenther  <rguenther@suse.de>
12243
12244         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
12245         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
12246
12247 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
12248
12249         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
12250         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
12251
12252 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
12253
12254         PR doc/45587
12255         * doc/md.texi: Fixed modes on several standard pattern names.
12256
12257 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
12258
12259         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
12260         (ashl<mode>3): ...this.
12261         (loongson_psra<V_suffix>): Rename to...
12262         (ashr<mode>3): ...this.
12263         (loongson_psrl<V_suffix>): Rename to...
12264         (lshr<mode>3): ...this.
12265         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
12266         (CODE_FOR_loongson_psllw): Define.
12267         (CODE_FOR_loongson_psrlh): Define.
12268         (CODE_FOR_loongson_psrlw): Define.
12269         (CODE_FOR_loongson_psrah): Define.
12270         (CODE_FOR_loongson_psraw): Define.
12271
12272 2010-09-07  Richard Henderson  <rth@redhat.com>
12273
12274         * tree-vect-data-refs.c: Include tm_p.h.
12275         * Makefile.in (tree-vect-data-refs.o): Update deps.
12276         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
12277         Move delarations outside #ifdef RTX_CODE.
12278
12279 2010-09-07  Richard Henderson  <rth@redhat.com>
12280
12281         * final.c (rest_of_handle_final): Unconditionally do
12282         output_function_exception_table before assemble_end_function.
12283
12284 2010-09-07  Jan Hubicka  <jh@suse.cz>
12285
12286         * tree-inline.c (tree_inlinable_function_p): Do not test
12287         DECL_REPLACEABLE_P.
12288         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
12289         update_callee_keys, cgraph_decide_inlining): Test function availability.
12290         * cif-code.def (OVERWRITABLE): New code.
12291
12292 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
12293             Jack Howarth  <howarth@bromo.med.uc.edu>
12294
12295         PR target/36502
12296         PR target/42313
12297         PR target/44651
12298         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
12299         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
12300         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
12301         MAX macro.
12302
12303 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12304
12305         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
12306         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
12307
12308 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12309
12310         * config.gcc: Don't append t-android for Android targets.
12311
12312         * config/t-android: Removed.
12313
12314 2010-09-07  Richard Henderson  <rth@redhat.com>
12315
12316         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
12317         * doc/tm.texi.in: Add doc marker.
12318         * doc/tm.texi: Rebuild.
12319         * except.c (switch_to_exception_section): Always build.
12320         (output_one_function_exception_table): Move section switch,
12321         personality output, and label output ...
12322         (output_function_exception_table): ... here.  Use the new
12323         personality hook.
12324
12325         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
12326         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
12327         TARGET_ASM_INIT_SECTIONS): New.
12328         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
12329         make static.
12330         (TARGET_ASM_UNWIND_EMIT): Update to match.
12331         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
12332
12333         * config/arm/arm.c (arm_asm_emit_except_personality): New.
12334         (arm_asm_init_sections): New.
12335         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
12336
12337 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12338
12339         * config/arm/arm.md: Remove unused variable.
12340
12341 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
12342
12343         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12344         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
12345         (m32r_memory_move_cost): New function.
12346
12347 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12348
12349         * config.gcc: Append t-android for Android targets.
12350
12351         * config/t-android: New.
12352
12353 2010-09-07  Richard Henderson  <rth@redhat.com>
12354
12355         * target.def (unwind_emit_before_insn): New hook.
12356         * doc/tm.texi.in: Add @hook marker for it.
12357         * doc/tm.texi: Rebuild.
12358         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
12359
12360 2010-09-07  Martin Jambor  <mjambor@suse.cz>
12361
12362         PR fortran/43665
12363         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
12364         are any type attributes.
12365
12366 2010-09-07  Jan Hubicka  <jh@suse.cz>
12367
12368         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
12369         array_ref_low_bound in string access folding.
12370
12371 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
12372
12373         PR target/45206
12374         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
12375         eh_return fixup sequence.
12376
12377 2010-09-07  Jan Hubicka  <jh@suse.cz>
12378
12379         * gimple-fold.c (maybe_fold_reference): Verify that operand is
12380         gimple_min_invariant.
12381
12382 2010-09-07  Richard Guenther  <rguenther@suse.de>
12383
12384         PR middle-end/45569
12385         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
12386         nor CONSTRUCTOR can trap.
12387         * tree-complex.c (update_complex_assignment): Update EH info.
12388
12389 2010-09-07  Richard Guenther  <rguenther@suse.de>
12390
12391         PR middle-end/45569
12392         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
12393         * passes.c (execute_function_todo): Do not verify anything if
12394         we saw errors.
12395
12396 2010-09-07  Richard Guenther  <rguenther@suse.de>
12397
12398         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
12399
12400 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
12401
12402         PR target/43137
12403         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
12404         New define_mode_attrs.
12405         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
12406         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
12407         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
12408         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
12409         Remove pool_range attribute.
12410         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
12411         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
12412         pool_range and neg_pool_range attributes.
12413         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
12414         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
12415         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
12416
12417 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
12418
12419         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
12420         check glibc.
12421
12422 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
12423
12424         PR target/22152
12425         * config/i386/mmx.md (*mov<mode>_internal_rex64,
12426         *mov<mode>_internal_avx, *mov<mode>_internal,
12427         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
12428         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
12429
12430 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
12431
12432         * c-typeck.c (do_warn_double_promotion): Remove.
12433         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
12434         Objective-C++ too.
12435
12436 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
12437
12438         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
12439         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
12440         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
12441         argument type to reg_class_t. Change result type to bool.
12442         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12443
12444 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
12445
12446         PR libobjc/19850
12447         * gthr-posix.h (__gthread_objc_thread_detach): Use
12448         _objc_thread_attribs when detaching a thread.
12449         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
12450
12451 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
12452
12453         PR target/45524
12454         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
12455         * configure: Regenerated.
12456
12457 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12458
12459         * combine.c (try_combine): Set subst_low_luid to i0.
12460
12461 2010-09-06  Richard Guenther  <rguenther@suse.de>
12462
12463         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
12464         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
12465         (build_aligned_type): Declare.
12466         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
12467         (check_aligned_type): New function.
12468         (build_aligned_type): Likewise.
12469         * expr.c (expand_assignment): Handle misaligned stores via
12470         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
12471         (expand_expr_real_1): Likewise.
12472         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
12473         * tree-vect-stmts.c (vectorizable_store): Do not build
12474         MISALIGNED_INDIRECT_REF but initialize alignment information.
12475         (vectorizable_load): Likewise.
12476         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
12477         handling.
12478         * cfgexpand.c (expand_debug_expr): Likewise.
12479         * dwarf2out.c (loc_list_from_tree): Likewise.
12480         * fold-const.c (maybe_lvalue_p): Likewise.
12481         (operand_equal_p): Likewise.
12482         (build_fold_addr_expr_with_type_loc): Likewise.
12483         * gimplify.c (gimplify_addr_expr): Likewise.
12484         (gimplify_expr): Likewise.
12485         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
12486         (verify_gimple_assign_single): Likewise.
12487         * tree-dump.c (dequeue_and_dump): Likewise.
12488         (tree_could_trap_p): Likewise.
12489         * tree-predcom.c (ref_at_iteration): Likewise.
12490         * tree-pretty-print.c (dump_generic_node): Likewise.
12491         (op_code_prio): Likewise.
12492         (op_symbol_code): Likewise.
12493         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
12494         * tree-ssa-loop-im.c (for_each_index): Likewise.
12495         (gen_lsm_tmp_name): Likewise.
12496         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
12497         (find_interesting_uses_address): Likewise.
12498         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
12499         * tree-ssa-operands.c (get_expr_operands): Likewise.
12500         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
12501         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
12502         (ao_ref_init_from_vn_reference): Likewise.
12503         * tree.c (staticp): Likewise.
12504         (build1_stat): Likewise.
12505         (reference_alias_ptr_type): Likewise.
12506         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
12507         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
12508         MISALIGNED_INDIRECT_REF handling.
12509
12510 2010-09-06  Richard Guenther  <rguenther@suse.de>
12511
12512         PR tree-optimization/45534
12513         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
12514         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
12515         on the target.
12516         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
12517         valid on the target.
12518
12519 2010-09-06  Andreas Schwab  <schwab@redhat.com>
12520
12521         * configure.ac: Quote argument of AC_MSG_WARN.
12522         * configure: Regenerate.
12523
12524 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
12525
12526         * sel-sched.c (move_cond_jump): Correct arguments to
12527         maybe_tidy_empty_bb.
12528         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
12529
12530 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
12531
12532         PR rtl-optimization/44919
12533         * sel-sched.c (move_cond_jump): Remove assert, check that
12534         the several blocks case can only happen with mutually exclusive
12535         insns instead.  Rewrite the movement code to support moving through
12536         several basic blocks.
12537
12538 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
12539
12540         * config/i386/i386.md (iptrsize): New mode attribute.
12541         (tp_seg): Ditto.
12542         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
12543         mode iterator.
12544         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
12545         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
12546         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
12547         (stack_tls_protect_set_<mode>): Ditto from
12548         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
12549         of thread base pointer load.
12550         (stack_tls_protect_test_<mode>): Ditto from
12551         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
12552         of thread base pointer load.
12553         (stack_protect_set): Rewrite using indirect functions.
12554         (stack_protect_test): Ditto.
12555         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
12556         (ix86_print_operand): Handle '@'.
12557
12558 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
12559
12560         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
12561         MINUS_EXPR.
12562
12563 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
12564
12565         * doc/invoke.texi: Document -Wdouble-promotion.
12566         * c-typeck.c (convert_arguments): Check for implicit conversions
12567         from float to double.
12568         (do_warn_double_promotion): New function.
12569         (build_conditional_expr): Use it.
12570         (build_binary_op): Likewise.
12571
12572 2010-09-05  Richard Guenther  <rguenther@suse.de>
12573
12574         PR tree-optimization/45535
12575         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
12576         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
12577         dereferencing it.
12578         (indirect_refs_may_alias_p): Likewise.
12579
12580 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
12581
12582         * config/sh/sh.c (sh_option_override): Make static.
12583         Adjust comments.  Declare.
12584         (sh_function_value_regno_p): Likewise.
12585         (sh_register_move_cost): Modify the arguments, make static.
12586         Adjust comments.  Declare.
12587         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
12588         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12589         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
12590         REGISTER_MOVE_COST): Delete.
12591         * config/sh/sh-protos.h (sh_override_options): Delete.
12592         (sh_register_move_cost): Delete.
12593         (sh_function_value_regno_p): Delete.
12594
12595 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
12596
12597         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
12598         m32r_function_value_regno_p): New functions.
12599         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12600         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
12601         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
12602         FUNCTION_VALUE_REGNO_P): Remove.
12603
12604 2010-09-04  Jan Hubicka  <jh@suse.cz>
12605
12606         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
12607         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
12608         fold_read_from_constant_string.
12609
12610         * gimple.h (canonicalize_constructor_val): Declare.
12611         * gimple-fold.c (canonicalize_constructor_val): New function.
12612         (get_symbol_constant_value):Use it.
12613         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
12614
12615 2010-09-04  Jan Hubicka  <jh@suse.cz>
12616
12617         * tree-switch-conversion.c (build_one_array): Set constructor to be
12618         static.
12619         * varpool.c (varpool_finalize_decl): Compute const_value_known.
12620
12621 2010-09-04  Richard Guenther  <rguenther@suse.de>
12622
12623         PR bootstrap/45519
12624         * tree-flow.h (force_gimple_operand_1): Declare.
12625         (force_gimple_operand_gsi_1): Likewise.
12626         * gimplify.c (force_gimple_operand_1): New worker taking a
12627         gimple predicate for ...
12628         (force_gimple_operand): ... which now wraps it.
12629         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
12630         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
12631         last change.
12632         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
12633         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
12634         (create_mem_ref): Likewise.
12635
12636 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
12637
12638         * config/i386/predicates.md (sse_reg_operand): New predicate.
12639         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
12640         predicate for operand 1.
12641         (XFmode push splitter): Use fp_register_operand predicate
12642         for operand 1.
12643         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
12644         (SF-DF float_extend push splitter): Add reload_completed insn
12645         predicate.
12646         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
12647         MODEF mode macro.  Add reload_completed insn predicate.
12648
12649 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
12650
12651         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
12652         (struct df_extract_ref): Remove.
12653         (union df_ref_d): Remove extract_ref member.
12654         (df_ref_create): Remove last three arguments.
12655         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
12656         * df-scan.c (df_ref_record): Remove last three arguments, do not
12657         pass them to df_ref_create_structure.
12658         (df_uses_record): Remove first and last three arguments.  Replace
12659         first argument with DF_REF_REGULAR, adjust calls to remove the
12660         width, offset and mode.  Always call recursively on the second
12661         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
12662         (df_ref_create_structure): Remove first argument.
12663         (struct df_scan_problem_data): Remove ref_extract_pool.
12664         (df_scan_free_internal): Do not free it.
12665         (df_scan_alloc): Do not allocate it.
12666         (df_ref_create): Remove last three arguments, do not pass them to
12667         df_ref_create_structure.
12668         (df_free_ref): Remove DF_REF_EXTRACT case.
12669         (df_notes_rescan): Adjust call to df_uses_record.
12670         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
12671         Remove DF_REF_EXTRACT case.
12672         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
12673         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
12674         and SUBREG definitions.
12675         (df_get_conditional_uses): Remove references to width/offset/mode,
12676         adjust call to df_ref_create_structure.
12677         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
12678         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
12679         calls to df_uses_record and df_ref_record.
12680         * fwprop.c (update_df): Remove references to width/offset/mode,
12681         adjust call to df_ref_create.
12682
12683 2010-09-03  Jan Hubicka  <jh@suse.cz>
12684
12685         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
12686         (build_cdtor_fns): Update use of build_cdtor.
12687
12688 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
12689
12690         * doc/options.texi (SeparateAlias): Document.
12691         * opt-functions.awk (switch_flags): Handle SeparateAlias.
12692         * opth-gen.awk: Generate enumeration names for options marked
12693         SeparateAlias, but not for those marked Ignore.
12694         * opts-common.c (generate_canonical_option): Don't output separate
12695         argument for options marked CL_SEPARATE_ALIAS.
12696         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
12697         * opts.h (CL_SEPARATE_ALIAS): New.
12698         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
12699         CL_COMMON): Adjust definitions.
12700         * config/i386/darwin.opt, config/mips/sde.opt: New.
12701         * common.opt (fdump-final-insns): New.
12702         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12703         i386/darwin.opt.
12704         (mips*-sde-elf*): Add mips/sde.opt.
12705         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
12706         -mno-data-in-code and -mcode-xonly here.
12707         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
12708         * gcc.c (option_map): Add "j" to --dump entry.
12709         (translate_options): Don't translate -d to -foutput-class-dir= here.
12710
12711 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
12712
12713         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
12714         DR_IS_WRITE.
12715         (compute_all_dependences): Same.
12716         (create_rdg_edge_for_ddr): Same.
12717         * tree-data-ref.h (DR_IS_WRITE): New.
12718         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
12719         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
12720         (write_memrefs_written_at_least_once): Same.
12721         * tree-predcom.c (suitable_component_p): Same.
12722         (determine_roots_comp): Same.
12723         (execute_load_motion): Same.
12724         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
12725         (vect_enhance_data_refs_alignment): Same.
12726         (vect_analyze_group_access): Same.
12727
12728 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
12729
12730         PR testsuite/42843
12731         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
12732         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
12733
12734 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
12735
12736         * dwarf2out.c (file scope): Remove #if0'd code.
12737         (gen_subprogram_die): Same.
12738
12739 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
12740
12741         PR middle-end/45484
12742         * dwarf2out.c (flush_queued_reg_saves): Rename to...
12743         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
12744         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
12745         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
12746         * config/i386/i386.c (output_set_got): Call it.
12747
12748 2010-09-03  Michael Matz  <matz@suse.de>
12749
12750         PR middle-end/45415
12751         * tree-sra.c (sra_modify_assign): If we modify the statement,
12752         say so.
12753
12754         * tree-ssa.c (verify_ssa): Check number of operands and links
12755         per statement to agree.
12756
12757 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
12758             Iain Sandoe  <iains@gcc.gnu.org>
12759
12760         PR target/45476
12761         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
12762         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
12763         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
12764
12765 2010-09-03  Richard Guenther  <rguenther@suse.de>
12766
12767         * lto-streamer-out.c (output_function): Output function
12768         start and end loci.
12769         * lto-streamer-in.c (input_function): Input function start
12770         and end loci.
12771
12772 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12773
12774         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
12775         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
12776         * configure: Regenerate.
12777         * aclocal.m4: Regenerate.
12778
12779 2010-09-03  Jan Hubicka  <jh@suse.cz>
12780
12781         PR lto/44812
12782         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
12783         on functions/variables in other partition.
12784
12785 2010-09-03  Jan Hubicka  <jh@suse.cz>
12786
12787         * cgraph.h (struct varpool_node): Add const_value_known.
12788         (varpool_decide_const_value_known): Declare.
12789         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
12790         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
12791         (input_varpool_node): Restore const_value_known.
12792         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
12793         initializer folding.
12794         * ipa.c (ipa_discover_readonly_nonaddressable_var,
12795         function_and_variable_visibility): Compute const_value_known.
12796         * gimple-fold.c (get_symbol_constant_value): Use varpool for
12797         initializer folding.
12798         * varpool.c (varpool_decide_const_value_known): New function.
12799
12800 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
12801
12802         * config/i386/i386.md: Remove empty preparation statements
12803         from splitters.
12804
12805 2010-09-03  Jan Hubicka  <jh@suse.cz>
12806
12807         * passes.c (rest_of_decl_compilation): Do not add local vars into
12808         varpool.
12809         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
12810         static or extern vars are in varpool.
12811         (varpool_finalize_decl): Sanity check that only static vars are
12812         finalized.
12813
12814 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
12815
12816         PR debug/45500
12817         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
12818         not just generic vectors with BLKmode.
12819
12820 2010-09-03  Richard Guenther  <rguenther@suse.de>
12821
12822         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
12823         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
12824         * tree.h (TMR_SYMBOL): Remove.
12825         (TMR_BASE, TMR_OFFSET): Adjust.
12826         (TMR_INDEX2): New.
12827         * alias.c (ao_ref_from_mem): Use TMR_BASE.
12828         * builtins.c (get_object_alignment): Merge TMR_BASE and
12829         TMR_SYMBOL handling.
12830         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
12831         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
12832         handling.  Also allow TARGET_MEM_REF as base address.
12833         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
12834         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
12835         base.  Gimplify TMR_INDEX2.
12836         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
12837         * tree-dfa.c (get_ref_base_and_extent): Likewise.
12838         (get_addr_base_and_unit_offset): Likewise.
12839         * tree-eh.c (tree_could_trap_p): Likewise.
12840         * tree-pretty-print.c (dump_generic_node): Likewise.
12841         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
12842         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
12843         base to index2.
12844         (get_address_description): Reconstruct addres description
12845         from merged TMR_BASE and TMR_INDEX2.
12846         (maybe_fold_tmr): Fold propagated addresses.
12847         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
12848         MEM_REF and TARGET_MEM_REF paths.
12849         (indirect_refs_may_alias_p): Likewise.
12850         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
12851         instead of TMR_SYMBOL.
12852         * tree-ssa-operands.c (get_tmr_operands): Simplify.
12853         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
12854         according to changes ...
12855         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
12856         Split TARGET_MEM_REF into two fields plus the base.
12857         * tree.c (mem_ref_offset): Simplify.
12858         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
12859         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
12860         Strip NOPs when folding MEM_REF addresses.
12861         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
12862         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
12863         (fold_gimple_assign): ... not here.
12864
12865 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
12866
12867         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
12868         * config/mips/mips.c (mips_shift_truncation_mask): New function.
12869         (TARGET_SHIFT_TRUNCATION_MASK): Define.
12870
12871 2010-09-02  Richard Henderson  <rth@redhat.com>
12872
12873         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
12874         instead of readelf in the test.
12875         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
12876         in the .debug_frame section for coff targets.
12877         * configure: Rebuild.
12878
12879 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
12880
12881         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
12882         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
12883         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12884         (m32c_class_likely_spilled_p): Make static. Change argument type to
12885         reg_class_t. Change result type to bool.
12886
12887 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12888
12889         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
12890         to convert (double)(long) into a single FRIZ instruction or not
12891         when -ffast-math is used.
12892
12893         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
12894         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
12895         or FRIZ instruction if -ffast-math.
12896         * config/rs6000/rs6000.md (friz): Ditto.
12897
12898         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
12899
12900 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12901
12902         * opth-gen.awk (quote, comma): Remove unused variables.
12903
12904 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
12905
12906         * arm.c (arm_override_options): Correct fall-back code to use
12907         SUBTARGET_CPU_DEFAULT.
12908
12909 2010-09-02  Julian Brown  <julian@codesourcery.com>
12910
12911         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
12912         unspecs.
12913         (vcond<mode>, vcondu<mode>): New expanders.
12914         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
12915         comparisons with zero.
12916         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
12917         * config/arm/constraints.md (Dz): New constraint.
12918
12919 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
12920
12921         * target.def (class_likely_spilled_p): New hook.
12922         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
12923         * doc/tm.texi: Regenerate.
12924         * targhooks.c (default_class_likely_spilled_p): New function.
12925         * targhooks.h (default_class_likely_spilled_p): Declare.
12926         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
12927         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
12928         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
12929         Use fixed_reg_set instead of fixed_regs.
12930         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
12931         * calls.c (avoid_likely_spilled_reg): Ditto.
12932         * ira-conflicts.c (ira_build_conflicts): Ditto.
12933         * ira.c (update_equiv_regs): Ditto.
12934         * mode-switching.c (create_pre_exit): Ditto.
12935         * regmove.c (find_matches): Ditto.
12936         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
12937         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
12938         (small_register_class_p): New inline function.
12939         (push_secondary_reload, find_reusable_reload, find_reloads): Use
12940         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
12941
12942         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
12943         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
12944         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12945
12946 2010-09-02  Richard Guenther  <rguenther@suse.de>
12947
12948         PR tree-optimization/44937
12949         PR tree-optimization/45412
12950         * ipa-split.c (split_function): Properly remove PHI nodes.
12951
12952 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12953
12954         * opts.h (struct cl_option): Add warn_message field.
12955         (struct cl_decoded_option): Add warn_message field.
12956         * doc/options.texi (Ignore, Warn): Document.
12957         * opt-functions.awk (needs_state_p): Don't consider aliases or
12958         ignored options to need state saved.
12959         * optc-gen.awk: Handle Warn and Ignore.
12960         * opth-gen.awk: Output OPT_SPECIAL_ignore.
12961         * opts-common.c (decode_cmdline_option): Set warn_message field.
12962         Handle ignored options.
12963         (decode_cmdline_options_to_array, generate_option,
12964         generate_option_input_file): Set warn_message field.
12965         (read_cmdline_option): Generate warnings from warn_message field.
12966         Handle ignored options.
12967         * common.opt (Wunreachable-code, fargument-alias,
12968         fargument-noalias, fargument-noalias-global,
12969         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
12970         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
12971         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
12972         ftree-salias): Mark Ignore.
12973         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
12974         -mintel-syntax and -mno-intel-syntax here.
12975         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
12976         using Warn.
12977         * opts.c (common_handle_option): Don't handle options marked as
12978         ignored.
12979         (enable_warning_as_error): Handle ignored options.
12980
12981 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
12982
12983         PR driver/44076
12984         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
12985         alias_target fields.
12986         * opt-functions.awk (opt_sanitized_name): Don't handle
12987         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
12988         * optc-gen.awk: Generate alias fields.
12989         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
12990         Don't generate such constants for aliases.
12991         * opts-common.c (generate_canonical_option): New.
12992         (decode_cmdline_option): Handle aliases.  Use
12993         generate_canonical_option for known options instead of copying the
12994         input option text.
12995         * doc/options.texi (Alias): Document.
12996         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
12997         fstack-check, specs): Mark as aliases.
12998         * gcc.c (driver_handle_option): Canonicalize -L options to joined
12999         arguments.
13000         (driver_handle_option): Don't handle OPT_specs.
13001         * opts.c (common_handle_option): Don't handle options marked as
13002         aliases.
13003         (enable_warning_as_error): Handle aliases.
13004         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
13005         OPT_Wlarger_than_eq.
13006         * tree-optimize.c (tree_rest_of_compilation): Use
13007         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
13008
13009 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
13010
13011         * config/i386/i386.md (nonmemory_operand): New mode attribute.
13012         (push memory peephole2): Macroize peepholes using SWI mode iterator.
13013         (move immediate to memory peephole2): Macroize peepholes using
13014         SWI124 mode iterator.
13015         (non-pairable NOT peephole2): Macroize peepholes using SWI124
13016         mode iterator.
13017         (simple lea add peephole2): Macroize peepholes using SWI48
13018         mode iterator.
13019         (simple lea mult peephole2): Ditto.
13020         (imul by 3,5,9 to lea peephole2): Ditto.
13021         (mov $-1, reg peephole2): Macroize peepholes using SWI248
13022         mode iterator.
13023         (imul $32bit_imm,mem,reg peephole2): Ditto.
13024         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
13025
13026 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
13027
13028         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
13029
13030 2010-09-02  Olivier Hainque  <hainque@adacore.com>
13031
13032         PR middle-end/44763
13033         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
13034         (allocno_priority_compare_func): Use it instead of a straight
13035         difference computation over priorities.
13036
13037 2010-09-02  Andi Kleen  <ak@linux.intel.com>
13038
13039         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
13040
13041 2010-09-02  Ira Rosen  <irar@il.ibm.com>
13042
13043         * tree-vectorizer.h (get_later_stmt): New function.
13044         (vect_analyze_data_ref_dependences): Add argument.
13045         * tree-vect-loop.c (vect_analyze_loop): Update call to
13046         vect_analyze_data_ref_dependences.
13047         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
13048         New function.
13049         (vect_analyze_data_ref_dependence): Add argument for basic block
13050         dependencies. Check dependencies in basic block vectorization.
13051         (vect_analyze_data_ref_dependences): Add argument and update call to
13052         vect_analyze_data_ref_dependences.
13053         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
13054         (vect_bb_vectorizable_with_dependencies): New.
13055         (vect_slp_analyze_bb): Check dependencies in basic block.
13056         (vect_schedule_slp_instance): Insert stores before the last store in
13057         SLP instance.
13058
13059 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
13060
13061         PR target/45476
13062         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
13063         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
13064
13065 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
13066
13067         PR middle-end/45458
13068         * bb-reorder.c (add_labels_and_missing_jumps): Treat
13069         bbs ending with throwing insns like blocks ending with a call.
13070         (fix_up_fall_thru_edges): Likewise.
13071
13072 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
13073
13074         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
13075         (m32c_function_arg_advance): Delete.
13076         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13077         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
13078         comments.  Take a const_tree and a bool.  Declare.
13079         (m32c_function_arg_advance): Likewise.
13080         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13081
13082 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13083
13084         PR target/45476
13085         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
13086         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
13087         * config/i386/mingw32.h: ... here.
13088
13089 2010-09-01  Andi Kleen  <ak@linux.intel.com>
13090
13091         PR lto/45475
13092         * lto-streamer-in.c (lto_input_ts_target_option): Add.
13093         (lto_input_tree_pointers): Call lto_input_ts_target_option.
13094         * lto-streamer-out (lto_output_ts_target_option): Add.
13095         (lto_output_tree_pointers): Call lto_output_ts_target_option.
13096
13097 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
13098
13099         PR/target 45452
13100         * config/i386/cygwin.h: Change order of specified import libraries.
13101         * config/i386/mingw32.h: Likewise.
13102         * config/i386/t-cygwin: Likewise.
13103         * config/i386/t-mingw32: Likewise.
13104         * config/i386/t-mingw-w32: Likewise.
13105         * config/i386/t-mingw-w64: Likewise.
13106
13107 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13108
13109         * config/arm/neon-schedgen.ml (core): New type.
13110         (allCores): List of supported cores.
13111         (availability_table): Add supported cores.
13112         (collate_bypasses): Accept core as a parameter.
13113         (worst_case_latencies_and_bypasses): Accept core as a parameter.
13114         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
13115         and coreStr to get tune attribute and prefix for functional units.
13116         (emit_bypasses): Accept core name and use it.
13117         (calculate_per_core_availability_table): New.
13118         (filter_core): New.
13119         (calculate_core_availability_table): New.
13120         (main): Use calculate_core_availablity_table.
13121         * config/arm/cortex-a8-neon.md: Update copyright year.
13122         Regenerated from ml file and merged in.
13123         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
13124         cortex_a8_neon_mrc.
13125
13126 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
13127
13128         * Makefile.in (tree-switch-conversion.o): Update dependencies.
13129
13130 2010-09-01  Richard Guenther  <rguenther@suse.de>
13131
13132         * alias.c (ao_ref_from_mem): Adjust.
13133         * builtins.c (get_object_alignment): Likewise.
13134         * cfgexpand.c (expand_debug_expr): Likewise.
13135         * gimple.c (get_base_address): Likewise.
13136         * tree-dfa.c (get_ref_base_and_extent): Likewise.
13137         (get_addr_base_and_unit_offset): Likewise.  Fix for
13138         both TMR_SYMBOL and TMR_BASE being set.
13139         * tree-eh.c (tree_could_trap_p): Likewise.
13140         * gimplify.c (gimplify_expr): Do not attempt to gimplify
13141         TMR_SYMBOL.  Always gimplify TMR_BASE.
13142         * tree-cfg.c (verify_types_in_gimple_reference): Verify
13143         TMR_BASE if there is a TMR_SYMBOL.
13144         * tree-pretty-print.c (dump_generic_node): Adjust.
13145         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
13146         (tree_mem_ref_addr): Likewise.
13147         (create_mem_ref_raw): Likewise.
13148         (move_fixed_address_to_symbol): Likewise.
13149         (create_mem_ref): Likewise.
13150         (dump_mem_address): Likewise.
13151         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
13152         Fix for both TMR_SYMBOL and TMR_BASE being set.
13153         (indirect_refs_may_alias_p): Likewise.
13154         * tree-ssa-operands.c (get_tmr_operands): Adjust.
13155         * tree.def (TARGET_MEM_REF): Adjust documentation.
13156
13157 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13158
13159         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
13160         Rename from X86_TUNE_ADD_ESP_4.
13161         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
13162         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
13163         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
13164         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
13165         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
13166         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
13167         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
13168         * config/i386/i386.c (initial_ix86_tune_features)
13169         <X86_TUNE_SINGLE_POP>: Invert members.
13170         <X86_TUNE_DOUBLE_POP>: Ditto.
13171         <X86_TUNE_SINGLE_PUSH>: Ditto.
13172         <X86_TUNE_DOUBLE_PUSH>: Ditto.
13173         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
13174         No longer exported.
13175         (push peephole2 patterns): Macroize peepholes using P mode iterator.
13176         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
13177         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
13178         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
13179
13180 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
13181
13182         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
13183         a volatile LHS if the constructor has only one element.
13184
13185 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
13186
13187         PR bootstrap/45321
13188         * tree.c (stdarg_p): Make fntype parameter const.
13189         * tree.h (stdarg_p): Likewise.
13190         (function_args_iterator): Remove unused fntype field.
13191         (function_args_iter_init): Do not initialize fntype
13192         field.  Make fntype parameter const.
13193
13194 2010-09-01  Richard Guenther  <rguenther@suse.de>
13195
13196         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
13197         estimate.
13198         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
13199         (execute_vrp): Compute number of iteration estimates.
13200         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
13201         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
13202         * tree-data-ref.c (estimated_loop_iterations): Adjust.
13203         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
13204         Infer loop bounds from undefined behavior based on a new parameter.
13205         (estimate_numbers_of_iterations): Likewise.
13206         (scev_probably_wraps_p): Adjust.
13207         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
13208
13209 2010-09-01  Nick Clifton  <nickc@redhat.com>
13210
13211         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
13212         where appropriate.
13213         (xstormy16_legitimate_address_p): Use true and false instead of 1
13214         and 0.
13215         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
13216         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
13217         magic constant 2.
13218         (xstormy16_expand_call): Fix comment at start of function.
13219
13220 2010-09-01  Nick Clifton  <nickc@redhat.com>
13221
13222         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
13223         when pushing accumulator register.
13224         (rx_get_stack_layout): Always save call clobbered registers inside
13225         interrupt handlers.
13226         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
13227
13228 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
13229
13230         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
13231         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
13232
13233         * libgcc-std.ver (GCC_4.6.0): Define version.
13234
13235 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
13236
13237         * tree-nested.c (convert_all_function_calls): Iterate until after the
13238         sum of static chains in the nest doesn't change.
13239
13240 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
13241
13242         * config/m32c/m32c.c (classes_intersect): Remove.
13243         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
13244         reg_classes_intersect_p instead of classes_intersect.
13245         (class_can_hold_mode): Change arguments type from enum reg_class to
13246         reg_class_t.  Use reg_class_contents instead of class_contents.
13247         (m32c_register_move_cost): Make static. Change arguments type from
13248         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
13249         classes_intersect. Use reg_class_contents instead of class_contents.
13250         (m32c_memory_move_cost): Make static. Change arguments type from
13251         enum reg_class to reg_class_t.
13252         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13253         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13254         * config/m32c/m32c-protos.h (m32c_register_move_cost,
13255         m32c_memory_move_cost): Remove.
13256
13257 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13258
13259         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
13260         (arm_function_arg): Delete.
13261         (arm_needs_doubleword_align): Take a const_tree.
13262         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13263         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
13264         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
13265         (arm_function_arg): Make static.  Take a const_tree and a bool.
13266         (arm_function_arg_advance): Likewise.
13267         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13268
13269 2010-08-31  Andi Kleen  <ak@linux.intel.com>
13270
13271         * common.opt (fwhopr=): Update for -fwhopr=jobserver
13272         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
13273         * lto-wrapper.c (run_gcc): Add jobserver mode.
13274         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
13275         argument.
13276
13277 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
13278
13279         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
13280         (popsi1): Ditto.
13281         (*popdi1_epilogue): Ditto.
13282         (*popsi1_epilogue): Ditto.
13283         (popsi, popdi peephole2 patterns): Update peepholes for changed
13284         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
13285
13286         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
13287         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
13288
13289         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
13290         (override_options): Do not initialize removed ix86_gen_pop1.
13291         (gen_pop): New static function.
13292         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
13293         (release_scratch_register_on_entry): Ditto.
13294         (ix86_restore_reg_using_pop): Ditto.
13295         (ix86_expand_epilogue): Ditto.
13296
13297 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
13298
13299         PR middle-end/45461
13300         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
13301
13302 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13303
13304         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
13305         semicolons.
13306
13307 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13308
13309         * doc/extend.texi: Fix documentation of the return value of
13310         __builtin_choose_expr.
13311
13312 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13313
13314         * config/v850/v850-protos.h (function_arg): Delete.
13315         * config/v850/v850.h (FUNCTION_ARG): Delete.
13316         (FUNCTION_ARG_ADVANCE): Move code to...
13317         * config/v850/v850.c (v850_function_arg_advance): ...here.
13318         (v850_function_arg): Make static.  Take a const_tree and a bool.
13319         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13320
13321 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13322
13323         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
13324         these...
13325         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
13326         ...and these...
13327         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
13328         ..to here..
13329         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
13330         ...and here.
13331         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13332
13333 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
13334
13335         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
13336         Delete.
13337         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13338         * config/rx/rx.c (rx_function_arg_size): Make static.
13339         (rx_function_arg): Likewise.
13340         (rx_function_arg_advance): New function.
13341         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13342
13343 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
13344
13345         * config/arm/arm.c (arm_override_options): Remove superfluous test.
13346         Fix indentation.
13347
13348 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
13349
13350         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
13351         (dwarf2out_decl) <CONST_DECL>: Likewise.
13352
13353 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
13354
13355         Stack usage support
13356         * common.opt (-fstack-usage): New option.
13357         * doc/invoke.texi (Debugging options): Document it.
13358         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
13359         allocate_dynamic_stack_space.
13360         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
13361         and propagate it to allocate_dynamic_stack_space.
13362         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
13363         * calls.c (initialize_argument_information): Pass TRUE as 4th
13364         argument to allocate_dynamic_stack_space.
13365         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
13366         to 1 when pushing a variable-sized argument onto the stack.  Pass
13367         TRUE as 4th argument to allocate_dynamic_stack_space.
13368         Update current_function_pushed_stack_size.
13369         (emit_library_call_value_1): Likewise.
13370         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
13371         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
13372         attempt to find an upper bound.  Remove redundant code for the
13373         SETJMP_VIA_SAVE_AREA case.
13374         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
13375         * function.h (struct stack_usage): New structure.
13376         (current_function_static_stack_size): New macro.
13377         (current_function_dynamic_stack_size): Likewise.
13378         (current_function_pushed_stack_size): Likewise.
13379         (current_function_dynamic_alloc_count): Likewise.
13380         (current_function_has_unbounded_dynamic_stack_size): Likewise.
13381         (current_function_allocates_dynamic_stack_space): Likewise.
13382         (struct function): Add new field 'su'.
13383         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
13384         add the value of the dynamic offset to the dynamic stack usage.
13385         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
13386         for variable-sized objects.
13387         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
13388         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
13389         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
13390         BUILT_IN_ALLOCA for variable-sized objects.
13391         * output.h (output_stack_usage): Declare.
13392         * toplev.c (stack_usage_file): New file pointer.
13393         (output_stack_usage): New function.
13394         (open_auxiliary_file): Likewise.
13395         (lang_dependent_init): Open file if flag_stack_usage is set.
13396         (finalize): Close file if stack_usage_file is not null.
13397         * tree.h (ALLOCA_FOR_VAR_P): New macro.
13398         * config/alpha/alpha.c (compute_frame_size): New function.
13399         (alpha_expand_prologue): Use it.
13400         (alpha_start_function): Likewise.
13401         (alpha_expand_epilogue): Likewise.  Set stack usage info.
13402         * config/i386/i386.c (ix86_expand_prologue): Likewise.
13403         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
13404         * config/mips/mips.c (mips_expand_prologue): Likewise.
13405         * config/pa/pa.c (hppa_expand_prologue): Likewise.
13406         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
13407         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
13408
13409 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
13410
13411         PR tree-optimization/45427
13412         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
13413         Handle the case that the exit is never taken correctly.
13414         (number_of_iterations_ne): Pass exit_must_be_taken to
13415         number_of_iterations_ne_max.
13416
13417 2010-08-30  Catherine Moore  <clm@codesourcery.com>
13418
13419         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
13420         Infer -mdspr2 for the the 74K.
13421
13422 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
13423
13424         PR debug/45419
13425         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
13426
13427         PR middle-end/45423
13428         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
13429         and TRUTH_{AND,OR,XOR}_EXPR.
13430         * c-parser.c (c_parser_omp_atomic): Handle boolean
13431         {PRE,POST}_{INC,DEC}REMENT.
13432
13433 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
13434
13435         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
13436         (function_arg): Delete.
13437         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13438         (FUNCTION_INCOMING_ARG): Delete.
13439         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
13440         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
13441         and a bool.
13442         (function_arg): Rename to...
13443         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
13444         a bool.
13445         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
13446         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13447         (TARGET_FUNCTION_INCOMING_ARG): Define.
13448
13449 2010-08-30  Richard Guenther  <rguenther@suse.de>
13450
13451         PR tree-optimization/21602
13452         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
13453         using points-to information.
13454
13455 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
13456
13457         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
13458
13459 2010-08-30  Richard Guenther  <rguenther@suse.de>
13460
13461         PR tree-optimization/45449
13462         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
13463         variables.
13464
13465 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
13466
13467         * opts.h (CL_ERR_NEGATIVE): Define.
13468         * opts.c (unknown_option_callback): Don't postpone warnings for
13469         options marked with CL_ERR_NEGATIVE.
13470         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
13471         for negative versions of CL_REJECT_NEGATIVE options.
13472
13473 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
13474
13475         * config/i386/i386.md (zero_extendsidi2_1): Rename from
13476         zero_extendsidi2_32.
13477         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
13478         using SWI12 mode iterator.
13479         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
13480         to define_insn_and_split pattern.
13481         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
13482         using SWI24 mode iterator.
13483         (*zero_extendqi<mode>2_and): Macroize insn from
13484         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
13485         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
13486         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
13487         SWI24 mode iterator.
13488         (*zero_extendqi<mode>2_movzbl): Ditto from
13489         *zero_extendqi{hi,si}2_movzbl.
13490         (extendsidi2_1): Rename from extendsidi2_32.
13491         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
13492         SWI12 mode iterator.
13493
13494 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
13495
13496         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
13497         general purpose registers.
13498         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
13499         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
13500         with general purpose registers and memory operands.  Add associated
13501         CCImode post-reload splitter.
13502         * config/ia64/div.md: Change BImode to CCImode throughout.
13503
13504 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
13505
13506         * config/ia64/ia64.md (cstorebi4): Fix thinko.
13507
13508 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
13509
13510         * config/picochip/picochip.c (reorder_var_tracking_notes): This
13511         function was dropping debug insns which caused PR45299.
13512
13513 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
13514
13515         * config/i386/sse.md (extsuffix): New code attribute.
13516         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
13517         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
13518         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
13519         and sse4_1_zero_extendv4qiv4si2.
13520         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
13521         and sse4_1_zero_extendv2qiv2di2.
13522         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
13523         and sse4_1_zero_extendv4hiv4si2.
13524         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
13525         and sse4_1_zero_extendv2hiv2di2.
13526         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
13527         and sse4_1_zero_extendv2siv2di2
13528
13529         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
13530         using any_extend code iterator.
13531         (*avx_<s>mulv8hi3_highpart): Macroize insn from
13532         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
13533         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
13534
13535         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
13536         gen_sse4_1_sign_extend* functions.
13537         (struct builtin_description bdesc_args): Ditto.
13538
13539 2010-08-27  Xinliang David Li  <davidxl@google.com>
13540
13541         PR/45422
13542         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
13543         (iv_ca_set_no_cp): Update used inv expr count.
13544         (iv_ca_set_cp): Ditto.
13545         (iv_ca_new): Initialize new member.
13546         (iv_ca_free): Free memory.
13547
13548 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
13549
13550         * config/sh/sh-protos.h (sh_function_arg): Delete.
13551         (sh_function_arg_advance): Delete.
13552         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13553         (PASS_IN_REG_P): Eliminate cast.
13554         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
13555         const_tree and a bool.
13556         (sh_function_arg): Likewise.
13557         (sh_output_mi_thunk): Call sh_function_arg_advance) and
13558         sh_function_arg.
13559         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13560
13561 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
13562             Kaz Kojima  <kkojima@gcc.gnu.org>
13563
13564         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
13565         when possible.
13566         (sh_expand_epilogue): Likewise.
13567         * config/sh/sh.md (movml_push_banked): New insn.
13568         (movml_pop_banked): Likewise.
13569
13570 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
13571
13572         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
13573         gen_regexp_oneof, gen_regexp_sequence): Use the string found
13574         in vector element 0 rather than the original string when there's
13575         only one element.
13576         (gen_regexp): Remove extra semicolon.
13577
13578         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
13579         thumb2_movsf_vfp): Set attribute "insn".
13580         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
13581         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
13582         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
13583         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
13584         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
13585         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
13586         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
13587         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
13588         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
13589         if_not_arith, if_arith_not, cond_move_not): Likewise.
13590
13591 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13592
13593         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
13594         New declaration.
13595         (rs6000_allocate_stack_temp): Ditto.
13596         (rs6000_expand_convert_si_to_sfdf): Ditto.
13597
13598         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
13599         line.  Update the options set if power6 or power7 server/embedded
13600         type options are used.  If we give a warning for no vsx under
13601         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
13602         (rs6000_allocate_stack_temp): New function to allocate a stack
13603         tempoary and adjust the address so it meets either REG+OFFSET or
13604         REG+REG addressing requirements.
13605         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
13606         that they can be used with the LFIWAX/LFIWZX instrucitons.
13607         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
13608         converting signed/unsigned SImode to either SFmode/DFmode.
13609
13610         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
13611         whether certain instructions can be generated.
13612         (TARGET_FCTIDZ): Ditto.
13613         (TARGET_STFIWX): Ditto.
13614         (TARGET_LFIWAX): Ditto.
13615         (TARGET_LFIWZX): Ditto.
13616         (TARGET_FCFIDS): Ditto.
13617         (TARGET_FCFIDU): Ditto.
13618         (TARGET_FCFIDUS): Ditto.
13619         (TARGET_FCTIDUZ): Ditto.
13620         (TARGET_FCTIWUZ): Ditto.
13621
13622         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
13623         (UNSPEC_FCTID): Ditto.
13624         (UNSPEC_LFIWAX): Ditto.
13625         (UNSPEC_LFIWZX): Ditto.
13626         (UNSPEC_FCTIWUZ): Ditto.
13627         (rreg): Use correct constraints.
13628         (SI_CONVERT_FP): New mode attribute for floating point conversion
13629         tests.
13630         (E500_CONVERT): Ditto.
13631         (lfiwax): New insns for converting from integer to floating point
13632         utilizing newer instructions.  Attempt to optimize conversions
13633         that come from memory so that we don't load the value into a GPR,
13634         spill it to the stack and reload it into a FPR.
13635         (floatsi<mode>2_lfiwax): Ditto.
13636         (floatsi<mode>2_lfiwax_mem): Ditto.
13637         (floatsi<mode>2_lfiwax_mem2): Ditto.
13638         (lfiwzx): Ditto.
13639         (floatunssi<mode>2_lfiwzx): Ditto.
13640         (floatunssi<mode>2_lfiwzx_mem): Ditto.
13641         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
13642         (floatdidf2_mem): Ditto.
13643         (floatunsdidf2_fcfidu): Ditto.
13644         (floatunsdidf2_mem): Ditto.
13645         (floatunsdisf2): Ditto.
13646         (floatunsdisf2_fcfidus): Ditto.
13647         (floatunsdisf2_mem): Ditto.
13648         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
13649         Use FCFID on 32-bit hosts that support it.
13650         (floatsidf2_internal): Ditto.
13651         (floatunssisf2): Ditto.
13652         (floatunssidf2): Ditto.
13653         (floatunssidf2_internal): Ditto.
13654         (floatsisf2): Ditto.
13655         (floatdidf2): Ditto.
13656         (floatdidf2_fpr): Ditto.
13657         (floatunsdidf2): Ditto.
13658         (floatdisf2): Ditto.
13659         (floatdisf2_fcfids): Ditto.
13660         (floatdisf2_internal1): Ditto.
13661         (fixuns_truncsfsi2): Delete, merge into common pattern for both
13662         SF/DF.  Add power7 support.
13663         (fix_truncsfsi2): Ditto.
13664         (fixuns_truncdfsi2): Ditto.
13665         (fixuns_truncdfdi2): Ditto.
13666         (fix_truncdfsi2): Ditto.
13667         (fix_truncdfsi2_internal): Ditto.
13668         (fix_truncdfsi2_internal_gfxopt): Ditto.
13669         (fix_truncdfsi2_mfpgpr): Ditto.
13670         (fctiwz): Ditto.
13671         (btruncdf2): Ditto.
13672         (btruncdf2_fpr): Ditto.
13673         (btructsf2): Ditto.
13674         (ceildf2): Ditto.
13675         (ceildf2_fpr): Ditto.
13676         (ceilsf2): Ditto.
13677         (floordf2): Ditto.
13678         (floordf2_fpr): Ditto.
13679         (floorsf2): Ditto.
13680         (rounddf2): Ditto.
13681         (rounddf2_fpr): Ditto.
13682         (roundsf2): Ditto.
13683         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
13684         (fix_trunc<mode>di2): Ditto.
13685         (fixuns_trunc<mode>si2): Ditto.
13686         (fixuns_trunc<mode>di2): Ditto.
13687         (fctiwz_<mode>): Ditto.
13688         (btrunc<mode>2): Ditto.
13689         (btrunc<mode>2_fpr): Ditto.
13690         (ceil<mode>2): Ditto.
13691         (ceil<mode>2_fpr): Ditto.
13692         (floor<mode>2): Ditto.
13693         (float<mode>2_fpr): Ditto.
13694         (round<mode>2): Ditto.
13695         (round<mode>2_fpr): Ditto.
13696         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
13697         (fixuns_trunc<mode>si2_stfiwx): Ditto.
13698         (fix_truncdfsi2_internal): Ditto.
13699         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
13700         converted value on stack, loaded into GPR, and then stored into
13701         the final destination.
13702         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
13703         FCTIDZ.
13704         (lrint<mode>di2): New insn, provide the lrint builtin functions.
13705         (ftruncdf2): Delete, unused.
13706         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
13707
13708         * config/rs6000/vsx.md (toplevel): Update copyright year.
13709         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
13710         (VSr3): Ditto.
13711
13712 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
13713             Jeremie Salvucci  <jeremie.salvucci@free.fr>
13714
13715         * gengtype.c (output_type_enum): Test the right union member.
13716
13717 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
13718
13719         PR target/41484
13720         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
13721         operands for operand 1.
13722         (sse4_1_extendv4qiv4si2): Ditto.
13723         (sse4_1_extendv2qiv2di2): Ditto.
13724         (sse4_1_extendv4hiv4si2): Ditto.
13725         (sse4_1_extendv2hiv2di2): Ditto.
13726         (sse4_1_extendv2siv2di2): Ditto.
13727         (sse4_1_zero_extendv8qiv8hi2): Ditto.
13728         (sse4_1_zero_extendv4qiv4si2): Ditto.
13729         (sse4_1_zero_extendv2qiv2di2): Ditto.
13730         (sse4_1_zero_extendv4hiv4si2): Ditto.
13731         (sse4_1_zero_extendv2hiv2di2): Ditto.
13732         (sse4_1_zero_extendv2siv2di2): Ditto.
13733         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
13734         (*sse4_1_extendv4qiv4si2): Ditto.
13735         (*sse4_1_extendv2qiv2di2): Ditto.
13736         (*sse4_1_extendv4hiv4si2): Ditto.
13737         (*sse4_1_extendv2hiv2di2): Ditto.
13738         (*sse4_1_extendv2siv2di2): Ditto.
13739         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
13740         (*sse4_1_zero_extendv4qiv4si2): Ditto.
13741         (*sse4_1_zero_extendv2qiv2di2): Ditto.
13742         (*sse4_1_zero_extendv4hiv4si2): Ditto.
13743         (*sse4_1_zero_extendv2hiv2di2): Ditto.
13744         (*sse4_1_zero_extendv2siv2di2): Ditto.
13745
13746 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
13747
13748         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
13749         (mips_function_arg): Delete.
13750         (mips_function_arg_boundary): Take a const_tree.
13751         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
13752         (mips_arg_info): Likewise.
13753         (mips_setup_incoming_varargs): Call mips_function_arg_advance
13754         instead of FUNCTION_ARG_ADVANCE.
13755         (mips_function_arg_advance): Adjust prototype.  Make static.
13756         (mips_function_arg): Likewise.
13757         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13758         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
13759
13760 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
13761
13762         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13763         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
13764         (function_arg): Delete.
13765         (function_arg_boundary): Take a const_tree.
13766         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
13767         (rs6000_spe_function_arg): Likewise.
13768         (rs6000_parm_start): Likewise.
13769         (rs6000_arg_size): Likewise.
13770         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
13771         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
13772         (rs6000_mixed_function_arg): Likewise.
13773         (function_arg): Rename to...
13774         (rs6000_function_arg): ...this.
13775         (function_arg_advance): Rename to...
13776         (rs6000_function_arg_advance_1): ...this
13777         (rs6000_function_arg_advance): New function.  Call it.
13778         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
13779         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
13780         (rs6000_function_value): Likewise.
13781         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13782
13783 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13784
13785         * config/arm/arm.md (enabled): Test the value of arch_enabled
13786         rather than just using it.
13787
13788 2010-08-27  Olivier Hainque  <hainque@adacore.com>
13789             Eric Botcazou  <ebotcazou@adacore.com>
13790
13791         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
13792         cover all the possible offsets from this base.
13793         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
13794
13795 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
13796
13797         PR tree-optimization/44485
13798         * calls.c (flags_from_decl_or_type): For const or pure
13799         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
13800         together with ECF_CONST resp. ECF_PURE.
13801         * builtins.c (expand_builtin): Use flags_from_decl_or_type
13802         instead of querying flags directly.
13803         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
13804         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
13805
13806 2010-08-26  Richard Guenther  <rguenther@suse.de>
13807
13808         PR tree-optimization/45255
13809         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
13810         and externals are also invariant.
13811
13812 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
13813
13814         PR rtl-optimization/44858
13815         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
13816         newi2pat, make sure they don't affect newpat.
13817
13818         PR rtl-optimization/45400
13819         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
13820         SUBREG_REG if both modes are of MODE_INT class.
13821
13822 2010-08-25  Julian Brown  <julian@codesourcery.com>
13823
13824         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
13825         * config/arm/arm.md (generic_sched): No for Cortex-A5.
13826         (generic_vfp): Likewise.
13827         (cortex-a5.md): Include.
13828         * config/arm/cortex-a5.md: New.
13829
13830 2010-08-25  Richard Guenther  <rguenther@suse.de>
13831
13832         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
13833         * gimple.c (gimple_get_alias_set): Remove special handling
13834         for pointers.
13835
13836 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
13837
13838         PR middle-end/45355
13839         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
13840         dead_or_set_p when computing i0_feeds_i2_n.
13841
13842         * combine.c (find_split_point): Undo canonicalization of multiply-add
13843         to (minus x (mult)) when it seems likely that this will increase the
13844         chances of a split.
13845
13846 2010-08-25  Richard Guenther  <rguenther@suse.de>
13847
13848         PR lto/44562
13849         * lto-streamer.c (lto_record_common_node): Do not mess with
13850         TYPE_CANONICAL when not in lto.
13851         * gimple.c (gimple_register_type): Likewise.
13852
13853 2010-08-25  Richard Guenther  <rguenther@suse.de>
13854
13855         PR tree-optimization/45316
13856         * tree-ssa-pre.c (eliminate): Properly clean EH info.
13857
13858 2010-08-25  Richard Guenther  <rguenther@suse.de>
13859
13860         PR tree-optimization/45393
13861         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
13862         and clean EH info.  Avoid SSA update.
13863         (execute_cse_sincos): Cleanup the CFG if it has changed.
13864
13865 2010-08-25  Richard Guenther  <rguenther@suse.de>
13866
13867         PR middle-end/45379
13868         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
13869         TARGET_MEM_REF in alignment computation.
13870
13871 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
13872
13873         PR tree-optimization/45059
13874         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
13875         type conversions from newop{1,2}.  Assert t is a comparison and
13876         newop{1,2} after the stripping are gimple vals.
13877
13878 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
13879
13880         * config/arm/iterators.md (VU, SE, V_widen_l): New.
13881         (V_unpack, US): New.
13882         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
13883         (vec_unpack<US>_lo_<mode>): Likewise.
13884         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
13885         (neon_vec_unpack<US>_lo_<mode>): Likewise.
13886         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
13887         (vec_widen_<US>mult_hi_<mode>): Likewise.
13888         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
13889         (neon_vec_<US>mult_hi_<mode>"): Likewise.
13890         (neon_unpack<US>_<mode>): Widening move intermediate step for
13891         vectorizing without -mvectorize-with-neon-quad.
13892         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
13893         for vectorizing without -mvectorize-with-neon-quad.
13894         * config/arm/predicates.md (vect_par_constant_high): Check for
13895         high-half lanes of a vector.
13896         (vect_par_constant_low): Check for low-half lanes of a vector.
13897
13898 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
13899
13900         * tree-if-conv.c (struct ifc_dr): New.
13901         (IFC_DR): New.
13902         (DR_WRITTEN_AT_LEAST_ONCE): New.
13903         (DR_RW_UNCONDITIONALLY): New.
13904         (memref_read_or_written_unconditionally): Use the cached values
13905         when possible.
13906         (write_memref_written_at_least_once): Same.
13907         (if_convertible_loop_p): Initialize and free DR->aux fields.
13908
13909 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
13910
13911         * gimple.c (gimple_could_trap_p_1): Not static anymore.
13912         Pass an extra bool parameter include_mem.
13913         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
13914         (gimple_assign_rhs_could_trap_p): Same.
13915         * gimple.h (gimple_could_trap_p_1): Declared.
13916         * tree-data-ref.h (same_data_refs_base_objects): New.
13917         (same_data_refs): New.
13918         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
13919         (write_memrefs_written_at_least_once): New.
13920         (ifcvt_memrefs_wont_trap): New.
13921         (operations_could_trap): New.
13922         (ifcvt_could_trap_p): New.
13923         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
13924         Gets a vector of data refs.
13925         (if_convertible_stmt_p): Same.
13926         (if_convertible_loop_p_1): New.
13927         (if_convertible_loop_p): Call if_convertible_loop_p_1.
13928
13929 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
13930
13931         * common.opt (ftree-loop-if-convert-stores): New flag.
13932         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
13933         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
13934         the created statement before GSI.
13935         (if_convertible_phi_p): Allow virtual phi nodes when
13936         flag_loop_if_convert_stores is set.
13937         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
13938         Do not handle types that do not match is_gimple_reg_type.
13939         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
13940         when flag_loop_if_convert_stores is set, as LHS can contain
13941         memory refs.
13942         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
13943         to if_convertible_gimple_assign_stmt_p.
13944         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
13945         (replace_phi_with_cond_gimple_assign_stmt): Renamed
13946         predicate_scalar_phi.  Do not handle virtual phi nodes.
13947         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
13948         Call predicate_scalar_phi.
13949         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
13950         just after the labels for flag_loop_if_convert_stores, otherwise
13951         insert the predicate in the end of the BB.
13952         (predicate_mem_writes): New.
13953         (combine_blocks): Call predicate_all_scalar_phis.  When
13954         flag_loop_if_convert_stores is set, call predicate_mem_writes.
13955         (tree_if_conversion): Call mark_sym_for_renaming when
13956         flag_loop_if_convert_stores is set.
13957         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
13958         flag_loop_if_convert_stores is set.
13959
13960 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
13961
13962         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
13963         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
13964         (pa_function_value): Make static.
13965         (override_options): Rename to...
13966         (pa_option_override): ...this. Make static.
13967         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
13968         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
13969         TARGET_OPTION_OVERRIDE): Define.
13970         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
13971         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
13972         Remove.
13973         * config/pa/pa-protos.h (override_options): Remove.
13974
13975 2010-08-24  Richard Guenther  <rguenther@suse.de>
13976
13977         PR middle-end/45379
13978         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
13979         if addr->index is NULL or zero.
13980         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
13981         TARGET_MEM_REF more properly.
13982         (indirect_ref_may_alias_decl_p): Likewise.
13983         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
13984         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
13985
13986 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
13987
13988         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
13989         (m32c_override_options): Rename to...
13990         (m32c_option_override): ...this. Make static.
13991         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
13992         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
13993         Remove.
13994         * config/m32c/m32c-protos.h (m32c_override_options,
13995         m32c_function_value_regno_p): Remove.
13996
13997 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
13998
13999         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
14000         Fix a typo in a previous commit.
14001
14002 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
14003
14004         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
14005         Pre-initialize innerloop_iters to one.
14006
14007 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
14008
14009         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
14010         existing static function global.
14011
14012         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
14013         is changed to global.
14014
14015         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
14016         may_be_nonaddressable_p on base, and don't collect this reference
14017         if the address of the base could not be taken.
14018
14019 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
14020
14021         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
14022         enable the compiler to autovectorize mathmetical functions for
14023         power7 using the Mathematical Acceleration Subsystem library.
14024
14025         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
14026         handle which vector math library we have.
14027         (rs6000_override_options): Add -mveclibabi=mass support.
14028         (rs6000_builtin_vectorized_libmass): New function to handle auto
14029         vectorizing math functions that are in the MASS library.
14030         (rs6000_builtin_vectorized_function): Call it.
14031
14032         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
14033         -mveclibabi=mass.
14034
14035 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14036
14037         PR boehm-gc/34544
14038         * gthr-posix.h (__gthread_active_init): Delete.
14039         (__gthread_active_p): Do activity check here.
14040         Don't include errno.h on hppa-hpux.  Update comment.
14041         * gthr-posix95.h (__gthread_active_init): Delete.
14042         (__gthread_active_p): Do activity check here.
14043         Don't include errno.h on hppa-hpux.  Update comment.
14044         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
14045         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
14046         add -lpthread when -mt or -pthread is specified.
14047         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
14048         (LINK_GCC_C_SEQUENCE_SPEC): Define.
14049         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
14050         (stublib.c, pthread_default_stacksize_np-stub.o,
14051         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
14052         $(T)libgcc_stub.a): Add methods.
14053         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
14054         (stublib.c, pthread_default_stacksize_np-stub.o,
14055         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
14056         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14057         pthread_mutex_unlock): New stubs.
14058
14059 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
14060
14061         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
14062         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
14063         options.
14064         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
14065         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
14066         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
14067         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
14068         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
14069         "-l".
14070         * cppspec.c: Include opts.h.
14071         (lang_specific_driver): Use cl_decoded_option structures.
14072         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
14073         * doc/tm.texi: Regenerate.
14074         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
14075         (driver_handle_option): Allow driver options needing no special
14076         processing.
14077         (process_command): Decode options before call to
14078         lang_specific_driver.  Pass decoded options to
14079         lang_specific_driver.
14080         * gcc.h (lang_specific_driver): Update prototype.
14081         * gccspec.c: Include opts.h.
14082         (lang_specific_driver): Use cl_decoded_option structures.
14083         * opts-common.c (option_ok_for_language, generate_option,
14084         generate_option_input_file): New.
14085         (decode_cmdline_option): Use option_ok_for_language.
14086         (decode_cmdline_options_to_array): Use generate_option_input_file.
14087         (handle_generated_option): Use generate_option.
14088         * opts.h (generate_option, generate_option_input_file): Declare.
14089
14090 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
14091
14092         * config/mips/mips.c (mips_override_options): Rename to...
14093         (mips_option_override): ...this. Make static.
14094         (TARGET_OPTION_OVERRIDE): Define.
14095         (mips_in_small_data_p): Update comment.
14096         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
14097         (FIXED_REGISTERS): Update comment.
14098         * config/mips/mips-protos.h (mips_override_options): Remove.
14099
14100 2010-08-21  Olivier Hainque  <hainque@adacore.com>
14101
14102         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
14103
14104 2010-08-21  Olivier Hainque  <hainque@adacore.com>
14105
14106         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
14107         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
14108
14109 2010-08-20  Jan Hubicka  <jh@suse.cz>
14110
14111         * tree-pass.h (pass_ipa_cdtor_merge): New function.
14112         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
14113         heap allocated.
14114         (record_cdtor_fn): Move to ipa.c; do not test for
14115         have_ctors_dtors.
14116         (build_cdtor): Move to ipa.c; add code avoiding construction
14117         when target have ctors/dtors and there is only one ctor/dtor at given
14118         priority.
14119         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
14120         sort; reverse order of constructors.
14121         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
14122         (cgraph_finalize_function): Do not call record_cdtor_fn.
14123         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
14124         (cgraph_build_static_cdtor): Move to ipa.c.
14125         * ipa.c: Include target.h and tree-iterator.h.
14126         (cgraph_build_static_cdtor, static_ctors, static_dtors,
14127         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
14128         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
14129         pass_ipa_cdtor_merge): New.
14130         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
14131         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
14132         bounds access.
14133
14134 2010-08-20  Jan Hubicka  <jh@suse.cz>
14135
14136         PR c++/45307
14137         PR c++/17736
14138         * cgraph.h (cgraph_only_called_directly_p,
14139         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
14140         static cdtors.
14141         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
14142         are not needed.
14143         (cgraph_finalize_function): Static cdtors are reachable.
14144         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
14145
14146 2010-08-20  Jan Hubicka  <jh@suse.cz>
14147
14148         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
14149         flag_wpa.
14150         * lto-streamer-out.c (lto_output): Likewise.
14151         * passes.c (ipa_write_optimization_summaries): Initialize statement
14152         uids.
14153
14154 2010-08-20  Olivier Hainque  <hainque@adacore.com>
14155
14156         * tree.h (alias_diag_flags): New enum.
14157         (alias_pair): Add an 'emitted_diags' field.
14158         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
14159         (assemble_alias): Initialize emitted_diags of new pairs.
14160
14161 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
14162
14163         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
14164         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14165         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
14166         (STACK_CHECK_PROTECT): Define.
14167         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
14168         (output_probe_stack_range): Likewise.
14169         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
14170         builtin stack checking is enabled.
14171         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
14172         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
14173         (probe_stack_range): New insn.
14174
14175 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
14176
14177         PR target/45336
14178         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
14179         short first.
14180
14181         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
14182         char first.
14183
14184 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14185
14186         PR target/45336
14187         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
14188         to cover zero extension into 64-bit register.
14189         (*sse2_pextrw): Likewise.
14190         (*sse4_1_pextrd_zext): New insn.
14191
14192 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
14193
14194         revert r163410, partially revert r163267.
14195         * config/rs6000/darwin.h (LIB_SPEC): Remove.
14196         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
14197         Darwin versions.
14198
14199 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14200
14201         PR middle-end/44974
14202         * builtins.c (expand_builtin): Don't optimize away
14203         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
14204
14205 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
14206
14207         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
14208         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
14209         alternative 1 of operand 2.
14210
14211 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14212             Paolo Bonzini  <bonzini@gnu.org>
14213
14214         * simplify-rtx.c (simplify_unary_operation_1): Optimize
14215         (sign_extend (zero_extend (...)) and
14216         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
14217
14218 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14219
14220         PR rtl-optimization/45353
14221         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
14222         after bb_note is a BARRIER.
14223
14224 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
14225
14226         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
14227         linking libgcc.a.
14228
14229 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
14230             Michael Matz  <matz@suse.de>
14231
14232         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
14233
14234 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14235
14236         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
14237         (ggc_mark_roots): ...here.
14238
14239 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
14240
14241         * vec.h (FOR_EACH_VEC_ELT): Define.
14242         * c-decl.c: Use it.
14243         * cfgloop.c: Likewise.
14244         * cfgloopmanip.c: Likewise.
14245         * cgraph.c: Likewise.
14246         * cgraphunit.c: Likewise.
14247         * combine.c: Likewise.
14248         * config/bfin/bfin.c: Likewise.
14249         * config/mips/mips.c: Likewise.
14250         * config/rs6000/rs6000.c: Likewise.
14251         * dbxout.c: Likewise.
14252         * df-scan.c: Likewise.
14253         * dominance.c: Likewise.
14254         * dse.c: Likewise.
14255         * dwarf2out.c: Likewise.
14256         * except.c: Likewise.
14257         * expr.c: Likewise.
14258         * function.c: Likewise.
14259         * gcse.c: Likewise.
14260         * genattr.c: Likewise.
14261         * ggc-common.c: Likewise.
14262         * gimplify.c: Likewise.
14263         * graphite-blocking.c: Likewise.
14264         * graphite-clast-to-gimple.c: Likewise.
14265         * graphite-dependences.c: Likewise.
14266         * graphite-interchange.c: Likewise.
14267         * graphite-poly.c: Likewise.
14268         * graphite-scop-detection.c: Likewise.
14269         * graphite-sese-to-poly.c: Likewise.
14270         * graphite.c: Likewise.
14271         * haifa-sched.c: Likewise.
14272         * ifcvt.c: Likewise.
14273         * implicit-zee.c: Likewise.
14274         * ipa-prop.c: Likewise.
14275         * ipa-struct-reorg.c: Likewise.
14276         * ipa.c: Likewise.
14277         * ira-build.c: Likewise.
14278         * ira-color.c: Likewise.
14279         * ira-emit.c: Likewise.
14280         * lambda-code.c: Likewise.
14281         * loop-invariant.c: Likewise.
14282         * loop-unroll.c: Likewise.
14283         * lower-subreg.c: Likewise.
14284         * lto-cgraph.c: Likewise.
14285         * lto-opts.c: Likewise.
14286         * lto-streamer-in.c: Likewise.
14287         * lto-streamer-out.c: Likewise.
14288         * lto-streamer.c: Likewise.
14289         * lto-symtab.c: Likewise.
14290         * matrix-reorg.c: Likewise.
14291         * opts.c: Likewise.
14292         * predict.c: Likewise.
14293         * print-tree.c: Likewise.
14294         * sdbout.c: Likewise.
14295         * sel-sched-dump.c: Likewise.
14296         * sel-sched-ir.c: Likewise.
14297         * sel-sched.c: Likewise.
14298         * sese.c: Likewise.
14299         * stor-layout.c: Likewise.
14300         * tree-cfg.c: Likewise.
14301         * tree-cfgcleanup.c: Likewise.
14302         * tree-chrec.c: Likewise.
14303         * tree-data-ref.c: Likewise.
14304         * tree-emutls.c: Likewise.
14305         * tree-inline.c: Likewise.
14306         * tree-into-ssa.c: Likewise.
14307         * tree-loop-distribution.c: Likewise.
14308         * tree-loop-linear.c: Likewise.
14309         * tree-mudflap.c: Likewise.
14310         * tree-outof-ssa.c: Likewise.
14311         * tree-parloops.c: Likewise.
14312         * tree-predcom.c: Likewise.
14313         * tree-pretty-print.c: Likewise.
14314         * tree-scalar-evolution.c: Likewise.
14315         * tree-ssa-live.c: Likewise.
14316         * tree-ssa-loop-im.c: Likewise.
14317         * tree-ssa-loop-ivcanon.c: Likewise.
14318         * tree-ssa-loop-ivopts.c: Likewise.
14319         * tree-ssa-loop-manip.c: Likewise.
14320         * tree-ssa-loop-niter.c: Likewise.
14321         * tree-ssa-loop-prefetch.c: Likewise.
14322         * tree-ssa-phiprop.c: Likewise.
14323         * tree-ssa-pre.c: Likewise.
14324         * tree-ssa-reassoc.c: Likewise.
14325         * tree-ssa-sccvn.c: Likewise.
14326         * tree-ssa-structalias.c: Likewise.
14327         * tree-ssa.c: Likewise.
14328         * tree-vect-data-refs.c: Likewise.
14329         * tree-vect-loop-manip.c: Likewise.
14330         * tree-vect-loop.c: Likewise.
14331         * tree-vect-patterns.c: Likewise.
14332         * tree-vect-slp.c: Likewise.
14333         * tree-vect-stmts.c: Likewise.
14334         * tree-vrp.c: Likewise.
14335         * tree.c: Likewise.
14336         * value-prof.c: Likewise.
14337         * var-tracking.c: Likewise.
14338         * varasm.c: Likewise.
14339         * vmsdbgout.c: Likewise.
14340
14341 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
14342             Richard Guenther  <richard.guenther@gmail.com>
14343
14344         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
14345         copy the src value and return a copy.
14346         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
14347         (C++ Volatiles): Adjust to describe C++ semantics only.
14348
14349 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
14350
14351         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
14352         be zero or nonzero.
14353         * doc/tm.texi: Regenerate.
14354         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
14355         * df-scan.c (df_get_exit_block_use_set), reginfo.c
14356         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
14357         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
14358         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
14359         to 1.
14360
14361 2010-08-20  Olivier Hainque  <hainque@adacore.com>
14362
14363         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
14364         an extra nop past a sibling call at the very end.
14365
14366 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
14367
14368         PR bootstrap/45350
14369         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
14370         a comment.
14371
14372 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
14373
14374         * target.def (function_arg, function_incoming_arg): Remove const
14375         qualifier on CUMULATIVE_ARGS parameter.
14376         * targhooks.h (default_function_arg, default_function_incoming_arg):
14377         Likewise.
14378         * targhooks.c (default_function_arg, default_function_incoming_arg):
14379         Likewise.
14380         * config/i386/i386.c (ix86_function_arg): Likewise.
14381
14382 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
14383
14384         PR target/45336
14385         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
14386         SIGN_EXTENDs or ZERO_EXTENDs.
14387
14388 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
14389
14390         PR target/42172
14391         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
14392         Take its cost into account if nonnull.
14393         (insn_a_feeds_b): New static function.
14394         (combine_instructions): Look for four-insn combinations.
14395         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
14396         them into account when computing all_adjacent and looking for other
14397         uses.
14398         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
14399         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
14400         (try_combine): New arg I0.  Handle four-insn combinations.
14401         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
14402         like ELIM_I1.
14403
14404 2010-08-19  Jason Merrill  <jason@redhat.com>
14405
14406         PR c++/45307
14407         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
14408         if ctor is empty.
14409         (gimplify_modify_expr_rhs): Adjust.
14410
14411 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
14412
14413         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
14414         bitmap_bit_p.
14415         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
14416         * dominance.c (iterate_fix_dominators): Likewise.
14417         * dse.c (set_usage_bits): Likewise.
14418         (set_position_unneeded, record_store): Likewise.
14419         * gimple-fold.c (get_maxval_strlen): Likewise.
14420         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
14421         * ipa-inline.c (update_caller_keys): Likewise.
14422         * ipa-split.c (verify_non_ssa_vars): Likewise.
14423         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
14424         (close_type_exposed_parameter, close_type_full_escape): Likewise.
14425         (close_addressof_down): Likewise.
14426         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
14427         (setup_allocno_left_conflicts_size): Likewise.
14428         (ira_reassign_conflict_allocnos): Likewise.
14429         (ira_reassign_pseudos): Likewise.
14430         * ira-emit.c (change_loop): Likewise.
14431         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
14432         * lto-streamer-out.c (write_symbol): Likewise.
14433         * predict.c (expr_expected_value_1): Likewise.
14434         * regstat.c (regstat_bb_compute_ri): Likewise.
14435         * sel-sched.c (create_block_for_bookkeeping): Likewise.
14436         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
14437         * stmt.c (expand_case): Likewise.
14438         * tree-eh.c (emit_eh_dispatch): Likewise.
14439         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
14440         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
14441         Likewise.
14442         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
14443         (rdg_build_components): Likewise.
14444         * tree-object-size.c (collect_object_sizes_for): Likewise.
14445         * tree-sra.c (convert_callers): Likewise.
14446         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
14447         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
14448         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
14449
14450 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
14451
14452         * config/i386/i386.md (*lea_1): Use P mode iterator.
14453         (lea add splitter): Also handle DImode operands.
14454         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
14455         predicate.  Do not use ix86_lea_for_add_ok.
14456         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
14457         (lea ashift splitter): Also handle DImode operands.
14458         (DImode lea ashift splitter): Remove splitter.
14459
14460 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
14461
14462         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
14463         ix86_binary_operator_ok.
14464
14465 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
14466
14467         PR rtl-optimization/44691
14468         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
14469         is not a register.
14470
14471 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
14472
14473         PR target/45070
14474         * config/arm/arm.c (arm_output_epilogue): Ensure that return
14475          value of size 1-3 is handled correctly.
14476
14477 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
14478
14479         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
14480         type for the conditional has wide enough range.
14481
14482 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
14483
14484         PR target/45327
14485         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
14486         ix86_binary_operator_ok.
14487
14488 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
14489
14490         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
14491         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
14492         code to output insn mnemonic.  Fix comment.
14493         (*addsi_1_zext): Add r-r-0 alternative 1.
14494         <TYPE_LEA>: Split insn to lea.
14495         <default>: Handle alternative 1.
14496         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
14497         multi-level if_then_else RTX to set "type" attribute.
14498         <default>: Handle alternative 2.
14499         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
14500         Use cond RTX instead of multi-level if_then_else RTX to set
14501         "type" attribute.
14502         <default>: Handle alternatives 2 and 4.
14503         (lea splitters): Update calls to ix86_lea_for_add_ok.
14504
14505         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
14506         argument.
14507         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
14508
14509 2010-08-18  Richard Guenther  <rguenther@suse.de>
14510
14511         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
14512         use operand helpers.
14513
14514 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
14515
14516         PR middle-end/45292
14517         * optabs.c (expand_bool_compare_and_swap): Expand pending
14518         pops before trying the optab.
14519
14520 2010-08-18  Yao Qi  <yao@codesourcery.com>
14521
14522         PR target/45094
14523         * config/arm/arm.c (output_move_double): Fix typo generating
14524         instructions ('ldr'->'str').
14525
14526 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
14527
14528         PR rtl-optimization/42575
14529         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
14530         live ranges.
14531
14532 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14533
14534         * config/arm/arm-protos.h (arm_expand_sync): New.
14535         (arm_output_memory_barrier, arm_output_sync_insn): New.
14536         (arm_sync_loop_insns): New.
14537         * config/arm/arm.c (FL_ARCH7): New.
14538         (FL_FOR_ARCH7): Include FL_ARCH7.
14539         (arm_arch7): New.
14540         (arm_print_operand): Support %C markup.
14541         (arm_legitimize_sync_memory): New.
14542         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
14543         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
14544         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
14545         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
14546         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
14547         (arm_process_output_sync_insn, arm_output_sync_insn): New.
14548         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
14549         * config/arm/arm.h (struct arm_sync_generator): New.
14550         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
14551         (TARGET_HAVE_MEMORY_BARRIER): New.
14552         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
14553         * config/arm/arm.md: Include sync.md.
14554         (UNSPEC_MEMORY_BARRIER): New.
14555         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
14556         (VUNSPEC_SYNC_OP):New.
14557         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
14558         (sync_result, sync_memory, sync_required_value): New attributes.
14559         (sync_new_value, sync_t1, sync_t2): Likewise.
14560         (sync_release_barrier, sync_op): Likewise.
14561         (length): Add logic to length attribute defintion to call
14562         arm_sync_loop_insns when appropriate.
14563         * config/arm/sync.md: New file.
14564
14565 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
14566
14567         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
14568         ENABLE_TREE_CHECKING.
14569         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
14570         and GCC >= 4.3.
14571
14572 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
14573
14574         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
14575         or optimizing for size, always avoid lea if possible.
14576
14577         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
14578
14579 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
14580
14581         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
14582         Dunmmy function with NULL return unless the target is
14583         OSX >= 10.6 (Darwin10).
14584
14585 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
14586
14587         * gcc.c (spec_function): Add remove-outfile.
14588         (remove_outfile_spec_function): New function.
14589         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
14590         * invoke.texi (replace-outfile): Document.
14591
14592 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
14593
14594         PR target/45296
14595         * reginfo.c (globalize_reg): Reject stack registers.
14596
14597 2010-08-17  Richard Guenther  <rguenther@suse.de>
14598
14599         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
14600         list of conditional equivalences.
14601         (free_all_edge_infos): Adjust.
14602         (record_equivalences_from_incoming_edge): Likewise.
14603         (record_cond): Likewise.
14604         (build_and_record_new_cond): Likewise.
14605         (record_conditions): Likewise.
14606         (dom_opt_leave_block): Likewise.
14607
14608 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
14609
14610         * doc/invoke.texi (ms-extension): Add documentation.
14611
14612 2010-08-17  Richard Guenther  <rguenther@suse.de>
14613
14614         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
14615
14616 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
14617
14618         PR c/40563
14619         * c-decl.c (diagnose_uninitialized_cst_member): New function.
14620         (finish_decl): Use it to issue a -Wc++-compat warning about
14621         uninitialized const field in struct or union.
14622
14623         (finish_struct): Use strip_array_types.
14624
14625 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
14626
14627         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
14628         functions.
14629         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
14630         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
14631         call block_nreverse here.
14632         (blocks_nreverse): Rename decl temporary to block.
14633
14634 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
14635
14636         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
14637         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
14638         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
14639         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
14640         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
14641         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
14642         thumb2_iorsi3): Delete.
14643         (orsi_notsi_si): No longer a named pattern.
14644         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
14645         * config/arm/predicates.md (shift_amount_operand): New.
14646         (mult_operator): New.
14647         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
14648         attr enabled): New.
14649         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
14650         arch matches t2.
14651         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
14652         (not_shiftsi_compare0): Likewise, renamed from
14653         arm_notsi_shiftsi_compare0.
14654         (not_shiftsi_compare0_scratch): Likweise, renamed from
14655         arm_notsi_shiftsi_compare0_scratch.
14656         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
14657         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
14658         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
14659         so that the register alternative is disabled when the shift_operator
14660         is MULT.  Use "M" as the constraint for constants.
14661         (arith_shiftsi splitter): Enable for TARGET_32BIT.
14662         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
14663         constraint for constants.
14664         (arith_shiftsi_compare0_scratch): Likewise.
14665         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
14666         Handle Thumb2 alternative.
14667
14668 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
14669
14670         * doc/options.texi (NoDriverArg): Document.
14671         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
14672         -MDX and -MMDX.
14673         * opt-functions.awk (switch_flags): Handle NoDriverArg.
14674         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
14675         marking for CL_NO_DRIVER_ARG options when in the driver.
14676         * opts.h (CL_NO_DRIVER_ARG): Define.
14677         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
14678         CL_COMMON): Update values.
14679
14680 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
14681
14682         * common.opt: Add driver options.
14683         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
14684         * doc/options.texi (Driver, RejectDriver): Document.
14685         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
14686         print_prog_name, print_multi_directory, print_sysroot,
14687         print_multi_os_directory, print_multi_lib,
14688         print_sysroot_headers_suffix, report_times, combine_flag,
14689         use_pipes, wrapper_string): Remove.
14690         (save_switch, driver_unknown_option_callback,
14691         driver_wrong_lang_callback, driver_post_handling_callback,
14692         driver_handle_option): New.
14693         (spec_lang, last_language_n_infiles): Make file-scope static
14694         instead of local to process_command.
14695         (process_command): Use decode_cmdline_options_to_array and
14696         read_cmdline_option for option processing.  Compute have_c in
14697         prescan of decoded options.
14698         * opt-functions.awk (switch_flags): Handle Driver and
14699         RejectDriver.
14700         (var_type, var_type_struct): Handle Separate options as generating
14701         const char * variables.
14702         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
14703         CL_TARGET to be passed by caller if required.
14704         (decode_cmdline_options_to_array): Update comment.
14705         * opts.c (complain_wrong_lang): Handle options only valid for the
14706         driver.
14707         (decode_options): Update call to decode_cmdline_options_to_array.
14708         (print_filtered_help): Ignore driver-only options.
14709         (print_specific_help): Ignore CL_DRIVER.
14710         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
14711         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
14712         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
14713         Update values.
14714
14715 2010-08-16  Richard Guenther  <rguenther@suse.de>
14716
14717         * tree-cfg.c (verify_types_in_gimple_reference): Verify
14718         TARGET_MEM_REF a bit.
14719         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
14720         (create_mem_ref_raw): Always create TMR_OFFSET, store the
14721         alias pointer type via it.
14722         (copy_mem_ref_info): Adjust.
14723         (maybe_fold_tmr): Likewise.
14724         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
14725         (reference_alias_ptr_type): Likewise.
14726         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
14727         adjust documentation of TMR_OFFSET operand.
14728         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
14729         use the alias pointer type.
14730         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
14731         initialize mem attrs but the TMR itself.
14732         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
14733         similar to MEM_REF.
14734         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
14735         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
14736         (unshare_and_remove_ssa_names): Likewise.
14737         (copy_ref_info): Adjust.
14738         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
14739         TARGET_MEM_REF case.
14740         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
14741         at TMR_ORIGINAL.
14742         * tree.h (TMR_ORIGINAL): Remove.
14743         * gimple.c (get_base_address): For TARGET_MEM_REF with a
14744         symbol return that.
14745         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
14746         with a symbol.
14747         (get_addr_base_and_unit_offset): Likewise.
14748         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
14749         TARGET_MEM_REFs.
14750         (indirect_ref_may_alias_decl_p): Likewise.
14751         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
14752
14753 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
14754
14755         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
14756         with GCC version 4.6, the default setting (when not optimizing
14757         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
14758         been changed to -fomit-frame-pointer.
14759
14760 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
14761
14762         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
14763         Darwin10.  Do not link libgcc.a for Darwin >= 9.
14764
14765 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
14766
14767         * doc/invoke.texi (Warning Options): Fix terminology and markup
14768         in the description of how unknown warning options are handled.
14769
14770 2010-08-15  Ira Rosen  <irar@il.ibm.com>
14771
14772         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
14773         in basic blocks.
14774         (vect_supportable_dr_alignment): Check alignment for basic blocks.
14775         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
14776         data references.
14777         (vect_bb_vectorization_profitable_p): New function.
14778         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
14779         check if it's worthwhile to vectorize the basic block.
14780
14781 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
14782
14783         * reload.h (register_move_cost, memory_move_secondary_cost,
14784         secondary_reload_class): Adjust prototype.
14785         * rtl.h (reg_class_subset_p): Adjust prototype.
14786         * reload.c (secondary_reload_class): Change arguments type from
14787         enum reg_class to reg_class_t. Change result type to reg_class_t.
14788         * reginfo.c (register_move_cost, reg_class_subset_p): Change
14789         arguments type from enum reg_class to reg_class_t.
14790         (memory_move_secondary_cost): Change arguments type from
14791         enum reg_class to reg_class_t. Change type of saved_flags to
14792         reg_class_t.
14793
14794         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14795         Remove macros.
14796         (mips_cost): Remove.
14797         (struct mips_rtx_cost_data): Moved to mips.c.
14798         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
14799         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
14800         (mips_cost): Make static.
14801         (mips_canonicalize_move_class): Change argument type to reg_class_t.
14802         Change result type to reg_class_t.
14803         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
14804         type from enum reg_class to reg_class_t.
14805         (mips_register_move_cost): Make static. Change arguments
14806         type from enum reg_class to reg_class_t.
14807         (mips_memory_move_cost): New function.
14808         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14809
14810 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
14811
14812         PR rtl-optimization/43358
14813         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
14814         of a single hard register, using simplify_subreg_regno to decide
14815         what that register should be.
14816
14817 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
14818
14819         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
14820         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
14821         (loongson_pmull<V_suffix>): Rename to...
14822         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
14823
14824 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
14825
14826         * configure.ac: Enable -fomit-frame-pointer on darwin
14827         which support dwarf2.
14828         * config/i386/i386.c (override_options): Same.
14829
14830 2010-08-13  Jie Zhang  <jie@codesourcery.com>
14831
14832         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
14833
14834 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
14835
14836         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
14837         -MMD.
14838
14839 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
14840
14841         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
14842         up dot_prod pattern searching if a stmt is outside the loop.
14843
14844 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
14845             Uros Bizjak  <ubizjak@gmail.com>
14846
14847         * config.gcc: Handle --enable-frame-pointer.
14848
14849         * configure.ac: Add --enable-frame-pointer.
14850         * configure: Regenerated.
14851
14852         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
14853         (override_options): If not configured with --enable-frame-pointer,
14854         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
14855         optimizing for size), -fasynchronous-unwind-tables and
14856         -maccumulate-outgoing-args by default.
14857
14858 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
14859
14860         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
14861
14862         PR middle-end/45262
14863         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
14864         -a overflows.  Normalize the range.
14865
14866 2010-08-12  Richard Guenther  <rguenther@suse.de>
14867
14868         PR tree-optimization/45232
14869         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
14870         for types with undefined overflow.
14871         (reassociate_bb): Allow re-associating of bit and min/max
14872         operations for types with undefined overflow.
14873         * tree-ssa-forwprop.c (associate_plusminus): New function.
14874         (tree_ssa_forward_propagate_single_use_vars): Call it.
14875
14876 2010-08-12  Richard Guenther  <rguenther@suse.de>
14877
14878         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
14879         * tree-ssa-alias.c (get_ptr_info): Move ...
14880         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
14881         align and misalign fields conservatively.
14882         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
14883         derive alignment information.
14884         (evaluate_stmt): Derive alignment information from memory
14885         allocation functions.
14886         * tree.h (get_pointer_alignment): Make unsigned.
14887         * builtins.c (get_object_alignment): Use alignment information we
14888         have computed for pointers.
14889         (get_pointer_alignment): Likewise.  Make conservative, return
14890         and unsigned value.
14891         (expand_builtin_strlen): Adjust.
14892         (expand_builtin_memcmp): Likewise.
14893         (expand_builtin_strcmp): Likewise.
14894         (expand_builtin_strncmp): Likewise.
14895         (get_builtin_sync_mem): Use at least mode alignment.
14896         (fold_builtin_memset): Adjust.
14897         (fold_builtin_memory_op): Likewise.
14898         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
14899         information also dump pointer alignment knowledge.
14900         (dump_gimple_stmt): Likewise.
14901
14902 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
14903
14904         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
14905         (EMPTY_FIELD_BOUNDARY): Remove.
14906         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
14907
14908 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
14909
14910         PR debug/45259
14911         * caller-save.c (save_call_clobbered_regs): Only swap notes with
14912         DEBUG_INSNs if n_regs_saved.
14913
14914 2010-08-12  Wei Guozhi  <carrot@google.com>
14915
14916         PR target/44999
14917         * config/arm/arm.md (andsi3): Change to zero extension if possible.
14918         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
14919
14920 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
14921
14922         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
14923
14924         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
14925
14926 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14927
14928         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
14929         the case removed in the previous patch, when the only phi argument
14930         is defined in the same loop as the phi node itself.  Handle it
14931         separately from the invariant case by both propagating it outside
14932         the region and replacing the phi node with an assign.
14933
14934 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
14935
14936         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
14937         constant phi nodes with one argument are is_gimple_min_invariant
14938         and SSA_NAME_IS_DEFAULT_DEF.
14939
14940 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14941
14942         * graphite-cloog-util.c (oppose_constraint):
14943         Extend loop counter's value range (CLOOG_ORG).
14944         (cloog_matrix_to_ppl_constraint): Same.
14945         (new_Constraint_System_from_Cloog_matrix): Same.
14946         * graphite-cloog-compat.h (matrix_num_type): New.
14947
14948 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14949
14950         * graphite.c (graphite_initialize): Do not initialize
14951         CLooG and initialize the Parma Polyhedra Library
14952         manually when using CLOOG_ORG.
14953         (graphite_finalize): Do not finalize CLooG and finalize
14954         the Parma Polyhedra Library manually when using CLOOG_ORG.
14955         * graphite-cloog-compat.h (cloog_initialize): Hide function
14956         when using CLOOG_ORG.
14957         (cloog_finalize): Same.
14958
14959 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14960
14961         * graphite-clast-to-gimple.c (free_scattering): Change
14962         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
14963         (CLOOG_ORG).
14964         (build_cloog_prog): Same.
14965         * graphite-cloog-compat.h (cloog_domain): Removed.
14966         (cloog_scattering): New.
14967         (cloog_set_domain): Removed.
14968         (cloog_set_scattering): New.
14969         (cloog_next_domain): Removed.
14970         (cloog_next_scattering): New.
14971         (cloog_set_next_domain): Removed.
14972         (cloog_set_next_scattering): New.
14973         (CloogScatteringList): New.
14974         (CloogScattering): New.
14975         (cloog_scattering_free): New.
14976         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
14977         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
14978         New.
14979
14980 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
14981
14982         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
14983         CloogState.
14984         (set_cloog_options): Same.
14985         (print_clast_stmt): Same.
14986         (scop_to_clast): Same.
14987         (print_generated_program): Same.
14988         (gloog): Same.
14989         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
14990         (scop_to_clast): Extend with CloogState.
14991         * graphite-cloog-util.c: Include graphite-cloog-compat.h
14992         (new_Cloog_Domain_from_ppl_Polyhedron):
14993         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
14994         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
14995         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14996         * graphite-cloog-util.h (build_cloog_prog): Same.
14997         * graphite-cloog-copat.h (build_cloog_prog): New.
14998         (CloogState): New.
14999         (cloog_state_malloc): New.
15000         (cloog_state_free): New.
15001         (cloog_loop_malloc): New.
15002         (cloog_options_malloc): New.
15003         (cloog_statement_alloc): New.
15004         (cloog_domain_from_cloog_matrix): New.
15005         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
15006         (new_Cloog_Domain_from_ppl_Polyhedron): New.
15007
15008 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15009
15010         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
15011         type of NAME now depends on used CLooG version.
15012         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
15013         (gcc_type_for_clast_expr): Same.
15014         (print_clast_stmt): Replace pprint with clast_pprint.
15015         * graphite-cloog-compat.h: Provide compatibility macros for
15016         CLooG Legacy.
15017         (clast_name_p): New.
15018         (clast_expr_term): New.
15019         (clast_expr_red): New.
15020         (clast_expr_bin): New.
15021         (clast_pprint): New.
15022
15023 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15024
15025         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
15026         compatible to newer CLooG releases (CLOOG_ORG).
15027         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
15028         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
15029         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
15030         (build_cloog_prog) : New.
15031         (cloog_program_extract_scalars): New.
15032         (cloog_program_scatter): New.
15033
15034 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15035
15036         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
15037         conditionally (CLOOG_ORG).
15038         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
15039         (cloog_statement_usr): New.
15040         (cloog_domain): Same.
15041         (cloog_set_domain): Same.
15042         (cloog_next_domain): Same.
15043         (cloog_set_next_domain): Same.
15044         (cloog_program_nb_scattdims): Same.
15045         (cloog_program_set_nb_scattdims): Same.
15046         (cloog_program_names): Same.
15047         (cloog_program_set_names): Same.
15048         (cloog_program_set_context): Same.
15049         (cloog_program_set_loop): Same.
15050         (cloog_program_blocklist): Same.
15051         (cloog_program_set_blocklist): Same.
15052         (cloog_program_scaldims): Same.
15053         (cloog_program_set_scaldims): Same.
15054         (cloog_names_nb_parameters): Same.
15055         (cloog_names_set_nb_parameters): Same.
15056         (cloog_names_parameters): Same.
15057         (cloog_names_set_parameters): Same.
15058         (cloog_names_set_nb_iterators): Same.
15059         (cloog_names_set_iterators): Same.
15060         (cloog_names_set_nb_scattering): Same.
15061         (cloog_names_set_scattering): Same.
15062         (cloog_statement_set_usr): Same.
15063         (cloog_loop_set_next): Same.
15064         (cloog_loop_set_domain): Same.
15065         (cloog_loop_set_block): Same.
15066         (cloog_block_list_next): Same.
15067         (cloog_block_list_set_next):
15068         (cloog_block_list_set_block): Same.
15069
15070 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15071
15072         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
15073         a bool.
15074         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
15075         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
15076         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
15077         when something has been changed.
15078         (rewrite_commutative_reductions_out_of_ssa): Same.
15079
15080 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15081
15082         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
15083         handle the case when def is in the sese region.
15084         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
15085         for invariant expressions.
15086         (rewrite_cross_bb_phi_deps): Removed.
15087         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
15088         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
15089         rewrite_cross_bb_phi_deps.
15090
15091 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15092
15093         * graphite-sese-to-poly.c
15094         (rewrite_commutative_reductions_out_of_ssa_loop): Call
15095         scev_analyzable_p only on is_gimple_reg
15096
15097 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15098
15099         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
15100         (rewrite_close_phi_out_of_ssa): Propagate constant values or
15101         parametric expressions outside the scop region.
15102         (rewrite_cross_bb_scalar_deps): Same.
15103         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
15104
15105 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15106
15107         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
15108         SSA_NAME_DEF_STMT only on SSA_NAMEs.
15109
15110 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15111
15112         * tree-scalar-evolution.c (instantiate_scev_name): Do not
15113         instantiate default definitions.
15114
15115 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
15116             Sebastian Pop  <sebastian.pop@amd.com>
15117
15118         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
15119         (loop_exits_from_bb_p): New.
15120         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
15121         (loop_exits_from_bb_p): Declared.
15122         * graphite-scop-detection.c (scopdet_basic_block_info): Call
15123         loop_exits_to_bb_p.
15124
15125 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15126
15127         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
15128         extra parameter for the region.  Call scev_analyzable_p.
15129         (rewrite_reductions_out_of_ssa): Update call to
15130         rewrite_close_phi_out_of_ssa.
15131         (rewrite_cross_bb_phi_deps): Same.
15132         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
15133         parameter for the region.  Call scev_analyzable_p.
15134         (rewrite_commutative_reductions_out_of_ssa): Update call to
15135         rewrite_commutative_reductions_out_of_ssa_loop.
15136
15137 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15138
15139         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
15140
15141 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15142
15143         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
15144         SSA scalar phi nodes that can be scev_analyzable_p.
15145
15146 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15147
15148         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
15149         handle SSA_NAME_IS_DEFAULT_DEF.
15150
15151 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15152
15153         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
15154
15155 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15156
15157         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
15158         case non close-phi nodes with one argument.
15159
15160 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15161
15162         * sese.h (scev_analyzable_p): Scevs could be expressions without
15163         chrecs and still be scev_analyzable_p.
15164
15165 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15166
15167         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15168
15169 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15170
15171         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
15172         * cfgloop.h (struct loop): Remove single_iv field.
15173         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
15174         (scop_canonicalize_loops): Removed.
15175         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
15176         over all the loop phi nodes in loop->header.
15177         (build_poly_scop): Remove use of scop_canonicalize_loops.
15178
15179 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15180
15181         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
15182         handle GIMPLE_CALL.
15183
15184 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15185
15186         * tree-chrec.c (chrec_apply): Should only apply to the specified
15187         variable.  Also handle multivariate chains of recurrences that
15188         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
15189
15190 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15191
15192         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
15193         (debug_clast_name_indexes_1): Removed.
15194         (debug_clast_name_indexes): Removed.
15195         (pbb_to_depth_to_oldiv): Removed.
15196         (build_iv_mapping): Replace the use of rename_map with iv_map.
15197         (translate_clast_user): Remove uses of rename_map.  Allocate and
15198         free iv_map.
15199         (translate_clast_for_loop): Remove uses of rename_map.
15200         (translate_clast_for): Same.
15201         (translate_clast_guard): Same.
15202         (translate_clast): Same.
15203         (gloog): Same.
15204         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
15205         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
15206         * sese.c (set_rename): Now static.
15207         (rename_variables_in_stmt): Removed.
15208         (rename_uses): New.
15209         (is_parameter): Removed.
15210         (is_iv): Removed.
15211         (expand_scalar_variables_call): Removed.
15212         (expand_scalar_variables_ssa_name): Removed.
15213         (expand_scalar_variables_expr): Removed.
15214         (expand_scalar_variables_stmt): Removed.
15215         (expand_scalar_variables): Removed.
15216         (rename_variables): Removed.
15217         (remove_condition): Removed.
15218         (get_true_edge_from_guard_bb): Removed.
15219         (get_false_edge_from_guard_bb): Removed.
15220         (struct igp): Removed.
15221         (default_before_guard): Removed.
15222         (convert_for_phi_arg): Removed.
15223         (add_guard_exit_phis): Removed.
15224         (insert_guard_phis): Removed.
15225         (graphite_copy_stmts_from_block): Now also uses iv_map and a
15226         region.  Do not copy conditions.  Do not copy induction variables.
15227         Call rename_uses.
15228         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
15229         the translated statement.  Use the iv_map for the induction
15230         variable renaming.
15231         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
15232         (set_rename): Removed declaration.
15233         (scev_analyzable_p): ...here.
15234         * tree-chrec.c (chrec_apply_map): New.
15235         * tree-chrec.h (chrec_apply_map): Declared.
15236
15237 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15238
15239         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
15240         insert_loop_close_phis.
15241         * sese.c (name_defined_in_loop_p): Removed.
15242         (expr_defined_in_loop_p): Removed.
15243         (alive_after_loop): Removed.
15244         (close_phi_not_yet_inserted_p): Removed.
15245         (struct alep): Removed.
15246         (add_loop_exit_phis): Removed.
15247         (insert_loop_close_phis): Removed.
15248
15249 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15250
15251         * graphite-cloog-util.c
15252         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
15253         * graphite-poly.c
15254         (psct_scattering_dim_for_loop_depth): Same.
15255
15256 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15257
15258         * graphite-cloog-util.h: Added cloog.h.
15259         * graphite-blocking.c: Removed cloog.h.
15260         * graphite-dependences.c: Same.
15261         * graphite-interchange.c: Same.
15262         * graphite-poly.c: Same.
15263         * graphite-ppl.c: Same.
15264         * graphite-scop-detection.c: Same.
15265         * graphite-sese-to-poly.c:
15266         Removed cloog.h.
15267         Removed graphite-clast-to-gimple.h.
15268         (check_poly_representation): Removed (unused).
15269         * graphite-sese-to-poly.h
15270         (check_poly_representation): Removed (unused).
15271
15272 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15273
15274         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
15275         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
15276         (graphite-cloog-util.o): New.
15277         (graphite-ppl.o): Added graphite-cloog-util.h.
15278         * graphite-clast-to-gimple.c:
15279         Added graphite-cloog-util.h to include statements.
15280         * graphite-cloog-util.c: New.
15281         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
15282         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15283         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15284         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15285         (insert_constraint_into_matrix): Same.
15286         (ppl_Constrain_System_number_of_constraints): Same.
15287         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
15288         (oppose_constraint): Same.
15289         (cloog_matrix_to_ppl_constraint): Same.
15290         (new_Constraint_System_from_Cloog_Matrix): Same.
15291         * graphite-cloog-util.h: New.
15292         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
15293         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15294         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15295         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15296         (insert_constraint_into_matrix): Same.
15297         * graphite-ppl.c:
15298         Added graphite-cloog-util.h to include statements.
15299         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
15300         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15301         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15302         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15303         (insert_constraint_into_matrix): Same.
15304         (ppl_Constrain_System_number_of_constraints): Same.
15305         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
15306         (oppose_constraint): Same.
15307         (cloog_matrix_to_ppl_constraint): Same.
15308         (new_Constraint_System_from_Cloog_Matrix): Same.
15309         * graphite-ppl.h:
15310         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
15311         graphite-cloog-util.h.
15312         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
15313         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
15314         (new_C_Polyhedron_from_Cloog_Matrix): Same.
15315         (insert_constraint_into_matrix): Same.
15316
15317 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
15318
15319         * graphite-clast-to-gimple.c
15320         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
15321         (precision_for_interval): Same.
15322         (gcc_type_for_interval): Same.
15323         (compute_type_for_level): Same.
15324         * graphite-interchange.c
15325         (lst_interchange_profitable_p): Same.
15326         * graphite-poly.c
15327         (psct_scattering_dim_for_loop_depth): Same.
15328         * graphite-ppl.c
15329         (ppl_max_for_le_pointset): Same.
15330         (ppl_min_for_le_pointset): Same.
15331
15332 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15333
15334         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
15335         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
15336
15337 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15338
15339         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
15340         rewrite_close_phi_out_of_ssa.
15341
15342 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15343
15344         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
15345
15346 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15347
15348         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
15349         rename_map.
15350         * sese.c (debug_rename_map): Same.
15351         (get_rename): Same.
15352         (set_rename): Same.
15353         (rename_variables_in_stmt): Same.
15354         (expand_scalar_variables_call): Same.
15355         (expand_scalar_variables_ssa_name): Same.
15356         (expand_scalar_variables_expr): Same.
15357         (expand_scalar_variables_stmt): Same.
15358         (expand_scalar_variables): Same.
15359         (rename_variables): Same.
15360         (graphite_copy_stmts_from_block): Same.
15361         (copy_bb_and_scalar_dependences): Same.
15362
15363 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15364
15365         * graphite-clast-to-gimple.c (copy_renames): Removed.
15366         (translate_clast_for): Do not call copy_renames.
15367         (translate_clast_guard): Same.
15368
15369 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15370
15371         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
15372         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
15373         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
15374         before rewrite_cross_bb_scalar_deps.
15375
15376 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15377
15378         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
15379         Early return in when flag_associative_math is not set.
15380
15381 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15382
15383         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
15384         of SSA copies on edges except for loop->latch.
15385
15386 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15387
15388         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
15389         Split out of rewrite_reductions_out_of_ssa.
15390         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
15391         Declared.
15392         * graphite.c (graphite_transform_loops): Call it.
15393
15394 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15395
15396         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
15397
15398 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
15399
15400         * dbgcnt.def (graphite_scop): New counter.
15401         * graphite.c: Include dbgcnt.h.
15402         (graphite_transform_loops): Use new counter to limit transformations.
15403         * Makefile.in (graphite.o): Depend on DBGCNT_H.
15404
15405 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15406
15407         * passes.c (init_optimization_passes): Add pass_graphite.
15408         Schedule a pass_copy_prop before pass_graphite_transforms.
15409         * timevar.def (TV_GRAPHITE): Declared.
15410         * tree-pass.h (pass_graphite): Declared.
15411         * tree-ssa-loop.c (pass_graphite): New.
15412
15413 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15414
15415         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
15416         Remove calls to rename_nb_iterations and rename_sese_parameters.
15417         * graphite-clast-to-gimple.h (gloog): Update declaration.
15418         * graphite.c (graphite_transform_loops): Update call to gloog.
15419         * sese.c (rename_variables_in_expr): Removed.
15420         (rename_nb_iterations): Removed.
15421         (rename_sese_parameters): Removed.
15422         * sese.h (rename_nb_iterations): Removed.
15423         (rename_sese_parameters): Removed.
15424
15425 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15426
15427         * graphite-clast-to-gimple.c (gloog): Remove call to
15428         sese_adjust_liveout_phis.
15429         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
15430         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
15431         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
15432         rewrite_phi_out_of_ssa.
15433         * sese.c (get_vdef_before_sese): Removed.
15434         (sese_adjust_vphi): Removed.
15435         (sese_adjust_liveout_phis): Removed.
15436         * sese.h (sese_adjust_liveout_phis): Removed.
15437
15438 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15439
15440         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
15441         argument for the place after which to insert the out of SSA copy.
15442         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
15443         (rewrite_phi_out_of_ssa): Same.
15444         (rewrite_cross_bb_scalar_deps): Same.
15445         (insert_copyout): Removed.
15446         (insert_copyin): Removed.
15447         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
15448         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
15449         insert_copyin.
15450
15451 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15452
15453         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
15454         (rewrite_reductions_out_of_ssa): Same.
15455         (rewrite_commutative_reductions_out_of_ssa): Same.
15456         (build_poly_scop): Do not call these functions.
15457         * graphite-sese-to-poly.h (build_poly_scop): Declared.
15458         (rewrite_reductions_out_of_ssa): Declared.
15459         (rewrite_commutative_reductions_out_of_ssa): Declared.
15460         * graphite.c (graphite_transform_loops): Call on every scop
15461         rewrite_commutative_reductions_out_of_ssa before calling
15462         rewrite_reductions_out_of_ssa and build_scop_bbs.
15463
15464 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15465
15466         * graphite-dependences.c (dot_deps): Make system call to dotty run
15467         in background.
15468         (dot_deps_stmt): Same.
15469         * graphite-poly.c (dot_lst): Same.
15470
15471 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
15472
15473         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
15474         phi_arg_in_outermost_loop.
15475         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
15476         (remove_invariant_phi): Same.
15477
15478 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
15479
15480         * target.def (output_addr_const_extra): New hook.
15481         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
15482         * doc/tm.texi: Regenerate.
15483         * targhooks.c (default_asm_output_addr_const_extra): New function.
15484         * targhooks.h (default_asm_output_addr_const_extra): Declare.
15485         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
15486         target hook.
15487
15488         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15489         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
15490         * config/i386/i386.h (output_addr_const_extra): Rename to...
15491         (i386_asm_output_addr_const_extra): ...this. Make static.
15492         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15493
15494 2010-08-11  Richard Henderson  <rth@redhat.com>
15495
15496         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
15497
15498 2010-08-11  Nick Clifton  <nickc@redhat.com>
15499
15500         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
15501         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
15502         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
15503         stormy16-lib2-cmpsi.c.
15504
15505         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
15506         -O2.
15507
15508 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
15509
15510         * opts.h (struct cl_option_handler_func): Make handler take
15511         cl_decoded_option structure as parameter, not individual elements.
15512         (struct cl_option_handlers): Make callbacks take cl_decoded_option
15513         structure as parameter, not individual elements.
15514         (handle_option): Take cl_decoded_option structure as parameter,
15515         not individual elements.
15516         (handle_generated_option): Declare.
15517         * opts-common.c (handle_option): Take cl_decoded_option structure
15518         as parameter, not individual elements.  Update calls to callback
15519         and handler functions.
15520         (handle_generated_option): New.
15521         (read_cmdline_option): Update calls to callback functions and
15522         handle_option.
15523         * opts.c (common_handle_option, complain_wrong_lang,
15524         unknown_option_callback, post_handling_callback,
15525         lang_handle_option, target_handle_option): Take cl_decoded_option
15526         structure as parameter, not individual elements.
15527         (lang_handle_option, target_handle_option, common_handle_option):
15528         Assert option has at most one argument.
15529         (enable_warning_as_error): Call handle_generated_option instead of
15530         handle_option.  Do not pass -Werror argument as argument of
15531         generated option.
15532
15533 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15534
15535         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
15536         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
15537         (SUBWORD_BOOL_CAS): Likewise.
15538         (SUBWORD_SYNC_OP): Likewise.
15539         (SUBWORD_TEST_AND_SET): Likewise.
15540         (FETCH_AND_OP_WORD): Parenthesise INF_OP
15541         (SUBWORD_SYNC_OP): Likewise.
15542         (OP_AND_FETCH_WORD): Likewise.
15543
15544 2010-08-10  Xinliang David Li  <davidxl@google.com>
15545
15546         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
15547         compute max/min offset in address.
15548
15549 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
15550
15551         * ira-live.c: Include sbitmap.h.
15552         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
15553         Compress live ranges even more.
15554
15555 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
15556
15557         * coverage.c (ctr_labels): Delete.
15558
15559 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
15560
15561         PR bootstrap/45177
15562         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
15563         test here from arm_gen_load_multiple_1.
15564         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
15565         multiple_operation_profitable_p.
15566
15567 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
15568
15569         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
15570         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
15571
15572 2010-08-10  Richard Henderson  <rth@redhat.com>
15573
15574         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
15575         after saving registers.  Assert that SSE registers are only saved
15576         with a sufficiently aligned frame.
15577         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
15578         remove stack_realign_fp handling.
15579         (ix86_expand_prologue): Save int registers before stack_realign_fp,
15580         and do not mark the stack alignment as frame related.
15581         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
15582
15583         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
15584         saves when re-aligning the stack.
15585
15586 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
15587
15588         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
15589         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
15590         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
15591
15592 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
15593
15594         * dwarf2out.c (struct die_struct): Move die_tag to the end.
15595
15596 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
15597
15598         * config/arm/iterators.md: New file.
15599         * config/arm/arm.md: Include iterators.md.
15600         (QHSI): Move to new file.
15601         (LTUGEU, cnb, optab, ior_xor): Likewise.
15602         * config/arm/iwmmxt.md (VMMX): Move to new file.
15603         (VSHFT, MMX_char): Likewise.
15604         * config/arm/neon.md (VD): Move to new file.
15605         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
15606         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
15607         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
15608         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
15609         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
15610         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
15611         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
15612         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
15613         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
15614         (Is_d_reg, V_mode_nunits): Likewise.
15615         * config/arm/vec-common.md (VALL): Move to new file.
15616         (VALLW, VINT, VINTW): Likewise.
15617
15618 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
15619
15620         PR middle-end/45182
15621         * combine.c (make_compound_operation): Don't try to convert
15622         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
15623
15624 2010-08-10  Richard Guenther  <rguenther@suse.de>
15625
15626         * tree.h (get_object_alignment): Adjust prototype.
15627         * builtins.c (get_object_alignment): Return unsigned int,
15628         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
15629         and TARGET_MEM_REF properly.
15630         (get_pointer_alignment): Adjust.
15631         * emit-rtl.c (get_mem_align_offset): Adjust comment.
15632         (set_mem_attributes_minus_bitpos): Adjust.
15633         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
15634
15635 2010-08-10  Richard Guenther  <rguenther@suse.de>
15636
15637         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
15638         (copy_prop_visit_assignment): Simplify.
15639         (copy_prop_visit_stmt): Also visit assignments from
15640         constants.
15641         (copy_prop_visit_phi_node): Use operand_equal_p.
15642
15643 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
15644
15645         * ipa-split.c (find_split_points): Free stack.
15646
15647 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
15648
15649         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
15650         * tree.c (tree_node_kind): Delete corresponding entries.
15651
15652 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
15653
15654         * alias.c (may_alias_p): Remove unused ret.
15655
15656 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
15657
15658         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
15659         alias_sets_conflict_p.
15660         (walk_mems_1): Moved from alias.c.
15661         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
15662         in alias.c.
15663         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
15664         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
15665         * alias.c (walk_mems_2): Moved to ddg.c.
15666         (walk_mems_1): Ditto.
15667         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
15668         to ddg.c.
15669         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
15670         disambiguation.
15671         *(may_alias_p): New function to check whether two memory expression
15672         may alias or not. Currently used in buidling inter-iteration memory
15673         dependence.
15674         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
15675         (insn_alias_sets_conflict_p): Removed
15676         *rtl.h (may_alias_p): New function prototype.
15677
15678 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
15679
15680         * tree.c (nreverse): Assert that we don't have a BLOCK.
15681
15682 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
15683
15684         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
15685         * config/arm/arm.c (arm_get_pcs_model): Likewise.
15686         * config/avr/avr.c (init_cumulative_args): Likewise.
15687         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15688         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15689         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
15690         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
15691         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
15692         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15693         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
15694         * dwarf2out.c (gen_subprogram_die): Likewise.
15695         * function.c (allocate_struct_function): Likewise.
15696         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
15697         (deserves_ellipsis): Delete.
15698
15699 2010-08-09  Richard Guenther  <rguenther@suse.de>
15700
15701         * tree-ssa-copy.c (cached_last_copy_of): Remove.
15702         (valueize_val): New function.
15703         (get_last_copy_of): Remove.
15704         (set_copy_of_val): Simplify.
15705         (dump_copy_of): Likewise.
15706         (copy_prop_visit_cond_stmt): Use valueize_val.
15707         (copy_prop_visit_phi_node): Properly handle unvisited names.
15708         Drop code managing copy-of chains.
15709         (init_copy_prop): Adjust.
15710         (fini_copy_prop): Likewise.
15711         (execute_copy_prop): Remove obsolete comment.
15712
15713 2010-08-09  Richard Guenther  <rguenther@suse.de>
15714
15715         PR middle-end/44632
15716         * function.c (gimplify_parameters): Do not clear addressable
15717         bit of the original parameter.
15718
15719 2010-08-09  Richard Guenther  <rguenther@suse.de>
15720
15721         PR middle-end/45212
15722         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
15723         alignment from MEM_REF offset only if we took it from the
15724         base object.
15725
15726 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
15727
15728         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
15729
15730 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
15731
15732         * c-tree.h (build_arg_info): Declare.
15733         * c-decl.c (build_arg_info): Define.
15734         (get_parm_info): Call it.  Delete initialization code.
15735         * c-parser.c (c_parser_parms_declarator): Likewise.
15736         (c_parser_parms_list_declaractor): Likewise.
15737
15738 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
15739
15740         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
15741         (struct c_arg_info): Change type of tags field.
15742         * c-decl.c (grokdeclarator): Update for changed type of tags field.
15743         (get_parm_info): Likewise.
15744         (store_parm_decls_newstyle): Likewise.
15745
15746 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
15747
15748         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
15749         (branch_island_list): Delete.
15750         (branch_islands): Declare.
15751         (add_compiler_branch_island): Adjust for branch_islands instead of
15752         branch_island_list.
15753         (macho_branch_islands): Likewise.
15754         (no_previous_def): Likewise.
15755         (get_prev_label): Likewise.
15756
15757 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15758
15759         PR boehm-gc/34544
15760         * gthr-posix.h (__gthread_start): Delete.
15761         (__gthread_active_init): Use pthread_default_stacksize_np instead of
15762         pthread_create to determine if hpux pthreads are active.
15763         * gthr-posix95.h (__gthread_start): Delete.
15764         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
15765
15766 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
15767
15768         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
15769         _WIN64 not expanded.
15770
15771 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
15772             H.J. Lu  <hongjiu.lu@intel.com>
15773
15774         PR target/45213
15775         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
15776         to output 32bit SFmode immediate as 8 byte sign extended value.
15777
15778 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
15779
15780         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
15781         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
15782         (SUBWORD_BOOL_CAS): Likewise.
15783         (SUBWORD_SYNC_OP): Likewise.
15784         (SUBWORD_TEST_AND_SET): Likewise.
15785         (FETCH_AND_OP_WORD): Parenthesise INF_OP
15786         (SUBWORD_SYNC_OP): Likewise.
15787         (OP_AND_FETCH_WORD): Likewise.
15788
15789 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15790
15791         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
15792         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
15793         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
15794         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
15795         generic part.
15796         (cortex_a9_sched_adjust_cost): New function.
15797         (xscale_sched_adjust_cost): New function.
15798         * config/arm/arm-protos.h (struct tune_params): New field
15799         sched_adjust_cost.
15800         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
15801
15802 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
15803
15804         PR target/44942
15805         * config/sparc/sparc.c (function_arg_advance): Always take into account
15806         the padding, if any.
15807
15808 2010-08-06  Richard Guenther  <rguenther@suse.de>
15809
15810         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
15811         (dump_lattice_value): Dump it.
15812         (get_default_value): Adjust.
15813         (get_constant_value): Likewise.
15814         (set_value_varying): Likewise.
15815         (set_lattice_value): Make sure to not go up the lattice
15816         with bitwise constant values.
15817         (get_value_for_expr): Handle ADDR_EXPRs.
15818         (value_to_double_int): New function.
15819         (get_value_from_alignment): Likewise.
15820         (do_dbg_cnt): Adjust.
15821         (ccp_lattice_meet): Handle partially constant values.
15822         (bit_value_unop_1): New function.
15823         (bit_value_binop_1): Likewise.
15824         (bit_value_unop): Likewise.
15825         (bit_value_binop): Likewise.
15826         (evaluate_stmt): Track partially constant values if
15827         flag_tree_bit_ccp is set.
15828         (ccp_fold_stmt): Dump if we folded a predicate.
15829         (ccp_visit_stmt): Adjust.
15830         * common.opt (ftree-bit-ccp): New flag.
15831         * doc/invoke.texi (ftree-bit-ccp): Document.
15832         * opts.c (decode_options): Enable bit-CCP at -O1.
15833
15834 2010-08-06  Alan Modra  <amodra@gmail.com>
15835
15836         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
15837         and -mrelocatable-lib description.
15838
15839 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
15840
15841         From Martin Thuresson  <martint@google.com>
15842         * postreload.c (reload_cse_simplify_operands): Use
15843         SET_REGNO_RAW instead of SET_REGNO.
15844         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
15845         SET_REGNO.
15846         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
15847         instead of SET_REGNO.
15848         * rtl.h (SET_REGNO_RAW): New macro.
15849
15850 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
15851
15852         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
15853         computations.  Fix formatting issues.
15854         (num_sign_bit_copies1): Likewise.
15855         (canonicalize_condition): Likewise.
15856
15857 2010-08-05  Richard Henderson  <rth@redhat.com>
15858
15859         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
15860         (floor_log2): Use clz_hwi.
15861         (exact_log2): Use ctz_hwi.
15862         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
15863         * builtins.c (fold_builtin_bitop): Use them.
15864         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
15865         * combine.c (get_pos_from_mask): Use ctz_hwi.
15866         * double-int.c (double_int_ctz): Likewise.
15867         * explow.c (force_reg): Likewise.
15868         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
15869
15870 2010-08-05  Richard Henderson  <rth@redhat.com>
15871
15872         PR target/45189
15873         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
15874         the alignment constant is properly sign-extended.
15875
15876 2010-08-05  Richard Guenther  <rguenther@suse.de>
15877
15878         * expr.c (store_expr): Use emit_block_move only if both
15879         source and target are MEMs.  Use store_bit_field if only
15880         the target is a MEM.
15881
15882 2010-08-05  Richard Henderson  <rth@redhat.com>
15883
15884         PR debug/45188
15885         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
15886         (INCOMING_RETURN_ADDR_RTX): Likewise.
15887         (dwarf2out_do_frame): Remove conditional compilation.
15888         (dwarf2out_frame_init): Likewise.
15889
15890 2010-08-05  Nicolas Setton  <setton@adacore.com>
15891
15892         * gcov.c (flag_display_progress): New static variable.
15893         (main): Display progress info on standard output if requested.
15894         (options): Add -d/--display-progress.
15895         (print_usage): Print them.
15896         (process_args): Handle them.
15897         * doc/gcov.texi: Document them.
15898
15899 2010-08-05  Martin Jambor  <mjambor@suse.cz>
15900
15901         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
15902         (ipcp_insert_stage): Redirect only edges not flagged with
15903         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
15904         discovered constants.
15905
15906 2010-08-05  Martin Jambor  <mjambor@suse.cz>
15907
15908         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
15909         (struct ipa_param_descriptor): New fields types and
15910         cannot_devirtualize.
15911         (ipa_param_cannot_devirtualize_p): New function.
15912         (ipa_param_types_vec_empty): Likewise.
15913         (ipa_make_edge_direct_to_target): Declare.
15914         * ipa-cp.c: Fixed first stage driver name in initial comment,
15915         described devirtualization there too.
15916         (ipcp_analyze_node): Call ipa_analyze_params_uses.
15917         (ipcp_print_all_lattices): Print devirtualization info.
15918         (ipa_set_param_cannot_devirtualize): New function.
15919         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
15920         lattice to BOTTOM.
15921         (ipcp_init_stage): Merged into...
15922         (ipcp_generate_summary): ...its caller.
15923         (ipcp_change_tops_to_bottom): Also process type lists.
15924         (ipcp_add_param_type): New function.
15925         (ipcp_copy_types): Likewise.
15926         (ipcp_propagate_types): Likewise.
15927         (ipcp_propagate_stage): Also propagate types.
15928         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
15929         Also return true if propagated types require it.
15930         (ipcp_update_callgraph): Dump redirection info.
15931         (ipcp_process_devirtualization_opportunities): New function.
15932         (ipcp_const_param_count): Include known type information.
15933         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
15934         on new node.  Fixed formatting.
15935         * ipa-prop.c (make_edge_direct_to_target): Renamed to
15936         ipa_make_edge_direct_to_target and changed all callers.  Made
15937         externally visible.
15938         (ipa_node_duplication_hook): Duplicate types vector.
15939         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
15940         redirect outgoing calls for which we can't get a decl from the
15941         statement.  Check that we can get a decl from the call statement.
15942         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
15943         ipa_analyze_params_uses only when ipa-cp is disabled.
15944         * tree-inline.c (get_indirect_callee_fndecl): Removed.
15945         (expand_call_inline): Do not call get_indirect_callee_fndecl.
15946         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
15947         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
15948
15949 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
15950
15951         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
15952         temporary. Emit move from temporary to accum, so REG_EQUAL note will
15953         be attached to this insn in correct mode.
15954
15955 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
15956
15957         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
15958         using REGNO of base_reg directly.
15959
15960 2010-08-05  Jie Zhang  <jie@codesourcery.com>
15961
15962         PR tree-optimization/45144
15963         * tree-sra.c (type_consists_of_records_p): Return false
15964         if the record contains bit-field.
15965
15966 2010-08-04  Richard Henderson  <rth@redhat.com>
15967
15968         * config/i386/i386.c (struct ix86_frame): Remove padding and
15969         to_allocate members.
15970         (ix86_compute_frame_layout): Don't store them.
15971         (ix86_can_use_return_insn_p): Use a more direct and more obviously
15972         correct condition for the position of the stack pointer.
15973         (ix86_expand_prologue): Compute remaining stack allocation based
15974         on the ultimate stack pointer offset.
15975         (ix86_expand_epilogue): Use more obvious expressions testing for
15976         the stack pointer already pointing to the saved registers.
15977
15978         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
15979         duplication deconstructing the frame pointer.  Simplify
15980         deallocation of the local stack frame.
15981
15982         * reg-notes.def (CFA_EXPRESSION): New.
15983         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
15984         (dwarf2out_frame_debug_cfa_expression): New.
15985         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
15986
15987         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
15988         * config/i386/i386.c (ix86_expand_prologue): Set it.
15989         (ix86_expand_epilogue): Clear it.
15990         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
15991         context, add REG_CFA_EXPRESSION notes.
15992
15993         * config/i386/i386.h (struct machine_frame_state): Rename from
15994         machine_cfa_state.  Add members tracking SP and FP regardless
15995         of the current CFA register.
15996         (ix86_cfa_state): Remove.
15997         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
15998         and sse_reg_save_offset members.
15999         (ix86_compute_frame_layout): Set them.
16000         (gen_push): Increment sp_offset too.
16001         (choose_baseaddr_len, choose_baseaddr): New.
16002         (ix86_emit_save_reg_using_mov): New.
16003         (ix86_emit_save_regs_using_mov): Use it.
16004         (ix86_emit_save_sse_regs_using_mov): Likewise.
16005         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
16006         compare vs the saved red_zone_offset.
16007         (pro_epilogue_adjust_stack): Adjust sp_offset.
16008         (ix86_adjust_stack_and_probe): Likewise.
16009         (ix86_expand_prologue): Set up, use, and validate the new
16010         frame_state_info members.  Use gen_frame_mem.
16011         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
16012         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
16013         new frame_state_info members.
16014         (ix86_emit_leave): Likewise.
16015         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
16016         out-of-range stack pointer offsets here.
16017         (ix86_emit_restore_sse_regs_using_mov): Likewise.
16018         (ix86_expand_epilogue): Use and validate the new frame_state_info
16019         members.  Break up and simplify the logic selecting the
16020         restore_regs_via_mov code path.  Ensure that there will be no
16021         out-of-range stack pointer offsets.
16022
16023         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
16024
16025         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
16026         argument name to reflect the expected tree; fix indentation.
16027         (ix86_asm_output_function_label): Output the entire 32-bit
16028         ms_hook here as bytes ...
16029         (ix86_expand_prologue): ... not here as insns.  Attach the
16030         unwind info for the ms_hook to a blockage insn.
16031         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
16032         (ix86_ms_bitfield_layout_p): Fix indentation.
16033         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
16034
16035         * config/i386/i386.c (ix86_using_red_zone): New.
16036         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
16037         ix86_expand_prologue, ix86_force_to_memory): Use it.
16038
16039         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
16040         saving the int registers.
16041
16042         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
16043         and DWARF2_UNWIND_INFO conditional compilation.
16044
16045 2010-08-04  Richard Henderson  <rth@redhat.com>
16046
16047         PR debug/45171
16048         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
16049         an is_naming_typedef_decl.
16050
16051 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
16052
16053         PR rtl-optimization/45162
16054         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
16055         * dce.c (word_dce_process_block): Likewise.
16056
16057 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
16058
16059         PR target/44583
16060         * config/ia64/constraints.md (Z): New.
16061         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
16062         (xfreg_or_signed_fp01_operand): New.
16063         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
16064         with fr_reg_or_signed_fp01_operand and constraint G with Z.
16065         (subsf3): Ditto.
16066         (*maddsf4): Ditto.
16067         (*msubsf4): Ditto.
16068         (adddf3): Ditto.
16069         (adddf3_trunc): Ditto.
16070         (subdf3): Ditto.
16071         (*subdf3_trunc): Ditto.
16072         (*madddf4): Ditto.
16073         (*madddf4_trunc): Ditto.
16074         (*msubdf4): Ditto.
16075         (*msubdf4_trunc): Ditto.
16076         (addxf3): Replace xfreg_or_fp01_operand with
16077         xfreg_or_signed_fp01_operand and constraint G with Z.
16078         (*addxf3_truncsf): Ditto.
16079         (*addxf3_truncdf): Ditto.
16080         (subxf3): Ditto.
16081         (*subxf3_truncsf): Ditto.
16082         (*subxf3_truncdf): Ditto.
16083         (*maddxf4): Ditto.
16084         (*maddxf4_truncsf): Ditto.
16085         (*maddxf4_truncdf): Ditto.
16086         (*msubxf4): Ditto.
16087         (*msubxf4_truncsf): Ditto.
16088         (*msubxf4_truncdf): Ditto.
16089
16090 2010-08-04  Richard Guenther  <rguenther@suse.de>
16091
16092         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
16093         if either alias-set is zero.
16094
16095 2010-08-04  Richard Guenther  <rguenther@suse.de>
16096
16097         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
16098         * tree-ssa-ccp.c: ... here.
16099         * tree-ssa-copy.c: ... and here.
16100         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
16101         value_range_t): Move ...
16102         * tree-vrp.c: ... here.
16103         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
16104         (substitute_and_fold): Adjust prototype.
16105         * tree-ssa-propagate.c (replace_uses_in): Adjust.
16106         (replace_phi_args_in): Likewise.
16107         (substitute_and_fold): Take callback to query lattice instead
16108         of pointer to lattice.  Replace SSA name defs with lattice
16109         values first.
16110         * tree-ssa-ccp.c (ccp_finalize): Adjust.
16111         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
16112         (get_value): New function.
16113         (fini_copy_prop): Adjust.
16114         * tree-vrp.c (vrp_finalize): Adjust.
16115
16116 2010-08-04  Richard Guenther  <rguenther@suse.de>
16117
16118         PR middle-end/45176
16119         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
16120         points-to set for original MEM_REF.
16121
16122 2010-08-04  Richard Guenther  <rguenther@suse.de>
16123
16124         * tree-ssa-ccp.c (get_constant_value): New function.
16125         (get_rhs_assign_op_for_ccp): Remove.
16126         (valueize_op): New function.
16127         (ccp_fold): Use get_constant_value and valueize_op.
16128         (fold_const_aggregate_ref): Likewise.
16129         (ccp_fold_stmt): Likewise.
16130         (visit_assignment): Simplify.
16131
16132 2010-08-04  Richard Guenther  <rguenther@suse.de>
16133
16134         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
16135         * double-int.h (double_int_ctz): Declare.
16136         * double-int.c (double_int_ctz): New function.
16137
16138 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
16139
16140         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
16141         Define.
16142         picochip_expand_movmemhi : Expand movmem pattern.
16143         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
16144         Declare.
16145         * config/picochip/picochip.md (movmemhi) : New pattern.
16146
16147 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
16148
16149         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
16150
16151 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
16152
16153         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
16154         NEG as operand of a MULT by merging it with the other operand.
16155         * combine.c (make_compound_operation): Use trunc_int_for_mode when
16156         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
16157         MULT.
16158         * config/arm/constraints.md (M): Examine only 32 bits of a
16159         HOST_WIDE_INT.
16160         * config/arm/predicates.md (power_of_two_operand): Likewise.
16161
16162 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16163
16164         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
16165         non-NOTE insns.
16166
16167 2010-08-03  Jan Hubicka  <jh@suse.cz>
16168
16169         * ipa-split.c (struct split_point): Add split_part_set_retval.
16170         (find_retval): Forward declare.
16171         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
16172         (consider_split): Compute current->split_part_set_retval.
16173         (visit_bb): Do not look into return value.
16174         (split_function): Handle !split_part_set_retval
16175
16176 2010-08-03  Martin Jambor  <mjambor@suse.cz>
16177
16178         * tree-sra.c (completely_scalarize_record): New parameter REF, create
16179         its own access->expr intead of using build_ref_for_offset.
16180
16181 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
16182
16183         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
16184         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
16185         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
16186         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
16187         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
16188         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
16189         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
16190         DEFAULT_SWITCH_TAKES_ARG.
16191         * config/rx/rx.opt (-patch=): Remove option.
16192         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
16193         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
16194         * doc/invoke.texi (RX Options): Remove -patch=.
16195         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
16196         (option_map): Remove --profile-blocks, --quiet and --silent.
16197
16198 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
16199
16200         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
16201         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
16202         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
16203         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
16204         Update calls to ix86_expand_compare and ix86_expand_branch.
16205         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
16206         ix86_expand_compare.
16207         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
16208         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
16209         Make static.
16210         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
16211         and ix86_compare_op1.  Update calls to ix86_expand_compare.
16212         (ix86_expand_int_movcc): Ditto.
16213         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
16214         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
16215         (ix86_expand_setcc): Ditto.
16216         (ix86_expand_compare): Remove prototype.
16217         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
16218         ix86_compare_op0 and ix86_compare_op1.  Update calls
16219         to ix86_expand_branch to directly pass operands[1] and operands[2].
16220         (cbranchxf4): Ditto.
16221         (cbranch<MODEF:mode>4): Ditto.
16222         (cbranchcc4): Ditto.
16223         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
16224         Update calls to ix86_expand_setcc to directly pass operands[2] and
16225         operands[3].
16226         (cstorexf4): Ditto.
16227         (cstore<MODEF:mode>4): Ditto.
16228         (cstorecc4): Ditto.
16229
16230 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
16231
16232         PR target/45063
16233         * caller-save.c (save_call_clobbered_regs): Remove regs from
16234         hard_regs_saved when they are set.
16235
16236 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
16237
16238         PR target/41089
16239         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16240         as volatile.
16241
16242 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
16243
16244         * common.opt (ftree-loop-distribute-patterns): New.
16245         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
16246         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
16247         at -O3.
16248         * tree-data-ref.c (stores_zero_from_loop): New.
16249         * tree-data-ref.h (stores_zero_from_loop): Declared.
16250         * tree-loop-distribution.c (tree_loop_distribution): Call
16251         stores_zero_from_loop.
16252         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
16253
16254 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
16255
16256         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
16257         into account.
16258
16259         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
16260         * config/arm/arm.c (thumb1_code): New variable.
16261         (arm_override_options): Set it.
16262         (thumb1_final_prescan_insn): Keep track of condition code status.
16263         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
16264         jumps that depend on them.
16265         * config/arm/arm.h (thumb1_code): Declare variable.
16266         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
16267         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
16268         thumb1_cc_mode.
16269         (CC_STATUS_INIT): New macro.
16270         * config/arm/constraints.md (Pd): New constraint.
16271         * config/arm/predicates.md (noov_comparison_operator): New predicate.
16272         * config/arm/arm.md (is_thumb1): New define_attr.
16273         (conds): Set default to "clob" when generating Thumb1 code.
16274         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
16275         code are set.  Use two-operand assembly syntax.
16276         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
16277         pattern.
16278         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
16279         codes are set.  Use two-operand assembly syntax.
16280         (zero_extendhisi splitter): Remove constraints.
16281         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
16282         thumb1_movsf_insn): Set conds attribute as appropriate.
16283         (cbranchsi4_insn): Use condition code status from struct
16284         machine_function to determine whether the comparison can be eliminated.
16285         Discourage the alternative using high registers.
16286         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
16287         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
16288         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
16289         subsi3_cbranch): Delete.
16290         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
16291         one subtract and one cbranch insn.
16292
16293         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
16294         thumb2_movdf_soft_insn): Delete patterns.
16295         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
16296         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
16297         (pool_range, neg_pool_range): Use them to define defaults.
16298         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
16299         and allow for TARGET_32BIT.
16300
16301         PR target/40457
16302         * config/arm/arm.h (arm_regs_in_sequence): Declare.
16303         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
16304         load_multiple_sequence, store_multiple_sequence): Delete
16305         declarations.
16306         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
16307         declarations.
16308         * config/arm/ldmstm.md: New file.
16309         * config/arm/arm.c (arm_regs_in_sequence): New array.
16310         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
16311         CHECK_REGS.  All callers changed.
16312         If SAVED_ORDER is nonnull, copy the computed order into it.
16313         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
16314         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
16315         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
16316         If SAVED_ORDER is nonnull, copy the computed order into it.
16317         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
16318         like REGS.  Handle Thumb mode.
16319         (arm_gen_load_multiple_1): New function, broken out of
16320         arm_gen_load_multiple.
16321         (arm_gen_store_multiple_1): New function, broken out of
16322         arm_gen_store_multiple.
16323         (arm_gen_multiple_op): New function, with code from
16324         arm_gen_load_multiple and arm_gen_store_multiple moved here.
16325         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
16326         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
16327         changed.
16328         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
16329         * config/arm/predicates.md (commutative_binary_operator): New.
16330         (load_multiple_operation, store_multiple_operation): Handle more
16331         variants of these patterns with different starting offsets.  Handle
16332         Thumb-1.
16333         * config/arm/arm.md: Include "ldmstm.md".
16334         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
16335         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
16336         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
16337         peepholes): Delete.
16338         * config/arm/ldmstm.md: New file.
16339         * config/arm/arm-ldmstm.ml: New file.
16340
16341         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
16342         if statement which adds extra costs to frame-related expressions.
16343
16344 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16345
16346         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
16347
16348 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
16349
16350         PR target/45142
16351         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
16352         alternative 2.
16353         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
16354         split V4SI operands.
16355
16356 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
16357
16358         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
16359         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
16360         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
16361         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
16362
16363 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
16364
16365         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
16366         LOCAL_INCLUDE_DIR.
16367
16368 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
16369
16370         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
16371         used in the call to optab_for_tree_code.  Fix the second
16372         is_widening_mult_p call.  Check that both unwidened operands
16373         have the same sign.
16374
16375 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
16376
16377         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
16378
16379 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
16380
16381         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
16382
16383 2010-07-30  DJ Delorie  <dj@redhat.com>
16384
16385         * config/rx/predicates.md (rx_constshift_operand): New.
16386         * config/rx/rx.md (zs_cond): New.
16387         (cbranchsi4): Remove mode.
16388         (*cbranchsi4_<code>): Likewise.
16389         (*tstbranchsi4_<code>): New.
16390         (*tstbranchsi4r_<code>): New.
16391         (*tstbranchsi4m_eq): New.
16392         (*tstbranchsi4m_ne): New.
16393         (cbranchsf4): Remove mode.
16394         (*cbranchsf4_<code>): Likewise.
16395
16396 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
16397
16398         * rtlanal.c (simplify_subreg_regno): Don't treat
16399         HARD_FRAME_POINTER_REGNUM specially.
16400
16401 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
16402
16403         * common.opt (-G): Don't define option here.
16404         * config/g.opt: New.
16405         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
16406         rs6000/powerpc and score targets.
16407         * opts.c (common_handle_option): Don't handle -G here.
16408         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
16409         * config/frv/frv.c (frv_handle_option): Handle -G.
16410         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
16411         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
16412         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
16413         * config/mips/mips.c (mips_handle_option): Handle -G.
16414         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
16415         * config/score/score.c (score_handle_option): Handle -G.
16416
16417 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
16418
16419         * config/mmix/mmix.c: Include basic-block.h.
16420
16421 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
16422
16423         PR debug/45055
16424         PR rtl-optimization/45137
16425         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
16426         prototypes.
16427         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
16428         New functions.
16429         * combine.c (next_nonnote_nondebug_insn): Removed.
16430         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
16431         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
16432         * sched-deps.c (sched_analyze_insn): Likewise.
16433         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
16434         * rtlanal.c (canonicalize_condition): Likewise.
16435         * postreload.c (reload_combine_recognize_pattern): Likewise.
16436         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
16437
16438 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
16439
16440         * config/i386/i386.md (int_cond): Remove code iterator.
16441         (fp_cond): Ditto.
16442         (cbranch<mode>4): Use ordered_comparison_operator predicate
16443         for operator0.
16444         (cstore<mode>4): Ditto for operator1.
16445         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
16446         (add<mode>cc): ditto.
16447
16448 2010-07-30  Richard Guenther  <rguenther@suse.de>
16449
16450         PR middle-end/45141
16451         * expr.c (expand_expr_real_1): Check for not handled base address.
16452
16453 2010-07-30  Richard Guenther  <rguenther@suse.de>
16454
16455         * ipa-prop.c (ipa_modify_formal_parameters): Use
16456         build_distinct_type_copy.
16457
16458 2010-07-30  Anthony Green  <green@moxielogic.com>
16459
16460         * config/moxie/rtems.h: New file.
16461         * config.gcc: Add moxie-rtems support.
16462
16463 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
16464
16465         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
16466         df flags as in run_fast_df_dce.
16467
16468 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
16469
16470         Revert:
16471         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
16472
16473         * rtl.def (NOTE): Swap operands 4 and 5.
16474         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
16475         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
16476         Adjust accordingly.
16477         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
16478
16479 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
16480
16481         PR debug/45110
16482         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
16483         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
16484         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
16485         formal parameters.
16486         (gen_decl_die): Change return type to dw_die_ref, return what
16487         gen_formal_parameter_die returned.
16488
16489 2010-07-29  Martin Jambor  <mjambor@suse.cz>
16490
16491         * dbgcnt.def (eipa_sra): New counter.
16492         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
16493
16494 2010-07-29  Xinliang David Li  <davidxl@google.com>
16495
16496         PR bootstrap/45119
16497         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
16498         in revision 162652.
16499
16500 2010-07-29  Richard Guenther  <rguenther@suse.de>
16501
16502         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
16503         (TV_TREE_STORE_CCP): Likewise.
16504         (TV_TREE_REDPHI): Likewise.
16505
16506 2010-07-29  Richard Guenther  <rguenther@suse.de>
16507
16508         * double-int.h (double_int_and_not): New function.
16509         * combine.c (try_combine): Use it.
16510         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
16511
16512 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
16513
16514         PR rtl-optimization/42575
16515         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
16516         Argument AU removed.  All callers changed.  Ignore artificial refs.
16517         Use return value of df_word_lr_simulate_defs to decide whether an insn
16518         is necessary.
16519         (fast_dce): Rename arg to WORD_LEVEL.
16520         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
16521         static.
16522         (pass_fast_rtl_byte_dce): Delete.
16523         * dce.h (run_word_dce): Declare.
16524         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
16525         All callers changed.  Simplify code to only deal with two-word regs.
16526         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
16527         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
16528         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
16529         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
16530         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
16531         (df_word_lr_mark_ref): Declare.
16532         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
16533         df_word_lr_simulate_uses): Declare or rename from byte variants.
16534         (df_byte_lr_simulate_artificial_refs_at_top,
16535         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
16536         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
16537         declarations.
16538         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
16539         (enum df_mm): Delete.
16540         * df-byte-scan.c: Delete file.
16541         * df-problems.c (df_word_lr_problem_data): Renamed from
16542         df_byte_lr_problem_data, all members deleted except for
16543         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
16544         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
16545         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
16546         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
16547         df_byte_lr_confluence_0): Delete functions.
16548         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
16549         callers changed.
16550         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
16551         Don't initialize members that were deleted, don't try to discover data
16552         about registers.  Ignore hard regs.
16553         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
16554         (df_word_lr_mark_ref): New function.
16555         (df_word_lr_bb_local_compute): Renamed from
16556         df_byte_bb_lr_local_compute; all callers changed.  Use
16557         df_word_lr_mark_ref.  Assert that artificial refs don't include
16558         pseudos.  Ignore hard registers.
16559         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
16560         Assert that exit block uses don't contain pseudos.
16561         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
16562         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
16563         callers changed.  Ignore hard regs.
16564         (df_word_lr_transfer_function): Renamed from
16565         df_byte_lr_transfer_function; all callers changed.
16566         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
16567         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
16568         changed.
16569         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
16570         callers changed.
16571         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
16572         confluence operator 0 set to NULL.
16573         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
16574         callers changed.
16575         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
16576         Return bool, true if bitmap changed or insn otherwise necessary.
16577         All callers changed.  Simplify using df_word_lr_mark_ref.
16578         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
16579         all callers changed.  Simplify using df_word_lr_mark_ref.
16580         * lower-subreg.c: Include "dce.h"
16581         (decompose_multiword_subregs): Call run_word_dce if df available.
16582         * Makefile.in (lower-subreg.o): Adjust dependencies.
16583         (df-byte-scan.o): Delete.
16584         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
16585
16586 2010-07-29  Richard Guenther  <rguenther@suse.de>
16587
16588         * tree.c (build_vector): Assert that the vector constant
16589         has enough elements.
16590         (build_vector_from_ctor): Pad with trailing zeros.
16591
16592 2010-07-29  Richard Guenther  <rguenther@suse.de>
16593
16594         PR tree-optimization/45120
16595         * tree-ssa-structalias.c (get_constraint_for_component_ref):
16596         Handle offset in DEREFs properly.
16597         (get_constraint_for_1): Handle MEM_REF offset properly.
16598
16599 2010-07-29  Richard Guenther  <rguenther@suse.de>
16600
16601         PR middle-end/45034
16602         * convert.c (convert_to_integer): Always use an unsigned
16603         type for narrowed negate and bitwise not.
16604
16605 2010-07-29  Ira Rosen  <irar@il.ibm.com>
16606
16607         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
16608         to outer loop when creating reduction epilogue for double reduction,
16609         and switch back to the inner loop when updating the phi nodes.
16610         Update uses of outer loop exit phi nodes in double reduction (instead
16611         of uses of reduction).
16612
16613 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
16614
16615         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
16616         popcount on power7 and parity on power6 systems.
16617         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
16618         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
16619         instructions.
16620
16621         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
16622         (UNSPEC_PARITY): Ditto.
16623         (SFDF): New iterator for SF/DF.
16624         (rreg2): New mode attribute for floating register constraint.
16625         (TARGET_FLOAT): New mode attribute for whether single/double float
16626         is supported.
16627         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
16628         pattern.
16629         (parity<mode>2_cmpb): New insn for parity on power6 and newer
16630         machines.
16631         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
16632         pattern.  Add support for fcpsgn instruction added in power6.
16633         (copysignsf3): Delete.
16634         (copysigndf3): Delete.
16635         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
16636         instead of if_then_else in RTL to avoid problems with -0.
16637
16638         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
16639         of if_then_else to mirror scalar code.
16640         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
16641         rs6000.md.
16642
16643         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
16644         instead of if_then_else.
16645
16646 2010-07-28  Xinliang David Li  <davidxl@google.com>
16647
16648         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
16649         (dump_cand): Dump var_before/after.
16650         (htab_inv_expr_eq): New function.
16651         (htab_inv_expr_hash): New function.
16652         (tree_ssa_iv_optimize_init): Support pseudo invariants.
16653         (add_candidate_1): consider base type precision.
16654         (set_use_iv_cost): New parameter.
16655         (adjust_setup_cost): Use profile information.
16656         (get_address_cost): Do not hard code width in computing address
16657         offset limits.
16658         (compare_aff_trees): New function.
16659         (get_loop_invariant_expr_id): New function.
16660         (get_computation_cost_at): New parameter and use profile information.
16661         (get_computation_cost): New parameter.
16662         (determine_use_iv_cost_generic): Pass new parameter.
16663         (determine_use_iv_cost_address): Ditto.
16664         (determine_use_iv_cost_condition): Ditto.
16665         (autoinc_possible_for_pair): Ditto.
16666         (determine_use_iv_costs): More dumps.
16667         (iv_ca_get_num_inv_exprs): New function.
16668         (iv_ca_recount_cost): Consider loop invariants in register pressure
16669         cost.
16670         (iv_ca_add_use): New parameter.
16671         (iv_ca_dump): Better dumping.
16672         (iv_ca_extend): New parameter.
16673         (try_add_cand_for): Attempt to get better partial solution.
16674         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
16675         (create_new-ivs): More dumps.
16676         (rewrite_use_compare): Ditto.
16677         (free_loop_data): More cleanup.
16678         (treee_ssa_iv_optimize_finalize): Ditto.
16679
16680 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
16681
16682         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
16683         * config/i386/i386.c (ix86_profile_before_prologue): New.
16684         (override_options): Add special handling for -mfentry.
16685         (ix86_function_regparm): Likewise.
16686         (ix86_function_sseregparm): Likewise.
16687         (ix86_frame_pointer_required): Likewise.
16688         (ix86_expand_prologue): Check for ms_hook_prologue.
16689         (x86_function_profiler): Adjust mcount output.
16690         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
16691         * config/i386/i386.opt (mfentry): New.
16692         * doc/invoke.texi (mfentry): Add documentation.
16693         * doc/tm.texi: Regenerated..
16694         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
16695         * final.c (final_start_function): Replace macro
16696         PROFILE_BEFORE_PROLOGUE by target hook.
16697         * function.c (thread_prologue_and_epilogue_insns): Likewise.
16698         * target.def (profile_before_prologue): New hook.
16699         * targhooks.c (default_profile_before_prologue): New.
16700         * targhooks.h (default_profile_before_prologue): New.
16701
16702 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
16703
16704         PR debug/45105
16705         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
16706
16707         PR debug/45103
16708         * dwarf2out.c (dwarf2out_var_location): Always consider
16709         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
16710
16711 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
16712
16713         PR rtl-optimization/45107
16714         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
16715
16716 2010-07-28  Richard Guenther  <rguenther@suse.de>
16717
16718         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
16719         (set_lattice_value): Do not query an old default value.
16720         (get_value_for_expr): New function.  Properly canonicalize
16721         float values.
16722         (ccp_visit_phi_node): Use it.
16723
16724 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
16725
16726         * config/arm/arm.c (arm_pcs_default): Remove static.
16727         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
16728         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
16729         (arm_pcs_default): Declare.
16730
16731 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
16732
16733         * config/rs6000/rs6000.c (rs6000_override_options):
16734         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
16735         ... to darwin_rs6000_override_options.
16736         (rs6000_return_in_memory): Update preceding comment for darwin
16737         64 bit ABI.  Use TARGET_MACHO inline.
16738         (rs6000_darwin64_struct_check_p): New.
16739         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
16740         (function_arg): Likewise.
16741         (rs6000_arg_partial_bytes): Likewise.
16742         (rs6000_function_value): Likewise.
16743
16744 2010-07-28  Andi Kleen  <ak@linux.intel.com>
16745
16746         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
16747
16748 2010-07-28  Richard Guenther  <rguenther@suse.de>
16749
16750         PR middle-end/44903
16751         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
16752         targets try harder to not generate unaligned accesses.
16753
16754 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
16755
16756         PR rtl-optimization/45101
16757         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
16758         for gcse-las.
16759
16760 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
16761
16762         PR tree-optimization/44885
16763         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
16764         with non-aliased component.
16765
16766 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
16767
16768         * config/darwin-driver.c (SWITCH_TAKES_ARG,
16769         WORD_SWITCH_TAKES_ARG): Remove.
16770         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
16771         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
16772         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
16773         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
16774         definitions from gcc.c.
16775         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
16776         defaults.h.
16777         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
16778         Move to defaults.h.
16779         * opts-common.c: Include tm.h.
16780         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
16781         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
16782         Handle more than one argument.  Set canonical_option_num_elements.
16783         (decode_cmdline_options_to_array): Set
16784         canonical_option_num_elements and trailing elements of
16785         canonical_option.
16786         * opts.h (struct cl_decoded_option): Allow four elements in
16787         canonical_option.  Add field canonical_option_num_elements.
16788         * Makefile.in (opts-common.o): Update dependencies.
16789
16790 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
16791
16792         PR middle-end/44790
16793         PR middle-end/44993
16794         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
16795         sure the base has address_mode before adding the offset.
16796
16797 2010-07-27  Xinliang David Li  <davidxl@google.com>
16798
16799         * tree-flow.h (create_mem_ref): Add one new parameter.
16800         * tree-ssa-address.c (create_mem_ref): New parameter.
16801         (addr_to_parts): Ditto.
16802         (move_variant_to_index): New function.
16803         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
16804
16805 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
16806
16807         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
16808         4 and 5.
16809         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
16810         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
16811         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
16812         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
16813         CODE_LABELs and NOTEs.
16814         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
16815         * combine.c (try_combine): Likewise.
16816         * ira.c (setup_prohibited_mode_move_regs): Likewise.
16817         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
16818
16819 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
16820
16821         * coretypes.h (struct cl_option_handlers): Declare.
16822         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
16823         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
16824         * langhooks-def.h (lhd_handle_option): Declare.
16825         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
16826         * langhooks.c (lhd_handle_option): New.
16827         * langhooks.h (struct lang_hooks): Update prototype and return
16828         value type of handle_option hook.
16829         * optc-gen.awk: Generate target_flags_explicit definition for the
16830         driver.
16831         * opts-common.c: Include diagnostic.h.
16832         (handle_option): Move from opts.c.  Update prototype and return
16833         value type.  Use handlers structure.
16834         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
16835         handlers structure.
16836         (set_option): Move from opts.c.
16837         * opts.c (common_handle_option): Update prototype and return value
16838         type.  Update calls to handle_option and enable_warning_as_error.
16839         (unknown_option_callback, post_handling_callback,
16840         lang_handle_option, target_handle_option): New.
16841         (handle_option, read_cmdline_option): Move to opts-common.c.
16842         (read_cmdline_options): Update prototype.  Update call to
16843         read_cmdline_option.
16844         (decode_options): Initialize and use handlers structure.
16845         (set_option): Move to opts-common.c.
16846         (enable_warning_as_error): Update prototype.  Update call to
16847         handle_option.
16848         * opts.h (struct cl_option_handler_func, struct
16849         cl_option_handlers): New.
16850         (handle_option, enable_warning_as_error): Update prototypes.
16851         (read_cmdline_option): Declare.
16852         * Makefile.in (opts-common.o): Update dependencies.
16853
16854 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16855
16856         * config/arm/arm.c (params.h): Include.
16857         (arm_override_options): Tune gcse-unrestricted-cost.
16858         * config/arm/t-arm (arm.o): Define dependencies.
16859
16860 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16861
16862         PR target/42495
16863         PR middle-end/42574
16864         * basic-block.h (get_dominated_to_depth): Declare.
16865         * dominance.c (get_dominated_to_depth): New function, use
16866         get_all_dominated_blocks as a base.
16867         (get_all_dominated_blocks): Use get_dominated_to_depth.
16868
16869         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
16870         (hoist_exprs): Remove.
16871         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
16872         (compute_code_hoist_vbeinout): Add debug print outs.
16873         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
16874
16875         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
16876         quadratic behavior.
16877         * params.h (MAX_HOIST_DEPTH): New macro.
16878         * doc/invoke.texi (max-hoist-depth): Document.
16879
16880 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16881
16882         PR rtl-optimization/40956
16883         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
16884         constants.
16885
16886 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16887
16888         PR target/42495
16889         PR middle-end/42574
16890         * config/arm/arm.c (legitimize_pic_address): Use
16891         gen_calculate_pic_address pattern to emit calculation of PIC address.
16892         (will_be_in_index_register): New function.
16893         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
16894         (thumb1_legitimate_address_p): Use it provided !strict_p.
16895         * config/arm/arm.md (calculate_pic_address): New expand and split.
16896
16897 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16898
16899         PR target/42495
16900         PR middle-end/42574
16901         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
16902         * config/arm/arm.md (define_split "J", define_split "K"): Make
16903         IRA/reload friendly.
16904
16905 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16906
16907         * gcse.c (insert_insn_end_basic_block): Update signature, remove
16908         unused checks.
16909         (pre_edge_insert, hoist_code): Update.
16910
16911 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16912
16913         PR target/42495
16914         PR middle-end/42574
16915         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
16916
16917 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16918
16919         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
16920
16921 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16922
16923         PR rtl-optimization/40956
16924         PR target/42495
16925         PR middle-end/42574
16926         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
16927         for hoisting.
16928         (hoist_code): Count occurences in current block too.
16929
16930 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16931
16932         * gcse.c (struct expr:max_distance): New field.
16933         (doing_code_hoisting_p): New static variable.
16934         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
16935         simple expressions, don't change behavior for PRE.  Set max_distance.
16936         (insert_expr_in_table): Set new max_distance field.
16937         (hash_scan_set): Update.
16938         (hoist_expr_reaches_here_p): Stop search after max_distance
16939         instructions.
16940         (find_occr_in_bb): New static function.  Use it in ...
16941         (hoist_code): Calculate sizes of basic block before any changes are
16942         done.  Pass max_distance to hoist_expr_reaches_here_p.
16943         (one_code_hoisting_pass): Set doing_code_hoisting_p.
16944
16945         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
16946         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
16947         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
16948         macros.
16949         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
16950         Document.
16951
16952 2010-07-27  Jeff Law  <law@redhat.com>
16953             Maxim Kuvyrkov  <maxim@codesourcery.com>
16954
16955         * gcse.c (compute_transpout, transpout): Remove, move logic
16956         to prune_expressions.
16957         (compute_pre_data): Move pruning of trapping expressions ...
16958         (prune_expressions): ... here.  New static function.
16959         (compute_code_hoist_data): Use it.
16960         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
16961
16962 2010-07-27  Xinliang David Li  <davidxl@google.com>
16963
16964         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
16965         (rewrite_use_address): Adjust iv update position when needed.
16966
16967 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
16968
16969         * dbgcnt.def (hoist_insn): New debug counter.
16970         * gcse.c (hoist_code): Use it.
16971
16972 2010-07-27  Xinliang David Li  <davidxl@google.com>
16973
16974         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
16975         (niter_for_single_dom_exit): Passes additional parameter.
16976         (iv_period): Fix comments.
16977         (may_eliminate_iv): Handles multiple exit loops properly.
16978         (free_tree_niter_desc): New function.
16979         (free_loop_data): Frees up loop iteration descriptors.
16980
16981 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
16982
16983         PR target/44542
16984         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
16985         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
16986         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
16987         (expand_one_var): Don't consider DECL_ALIGN for variables for
16988         which expand_one_stack_var_at has been already called.
16989
16990         PR testsuite/44701
16991         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
16992         constraints on IA-64.
16993
16994 2010-07-27  Jie Zhang  <jie@codesourcery.com>
16995
16996         PR target/44290
16997         Revert:
16998         2010-07-23  Jie Zhang  <jie@codesourcery.com>
16999
17000         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
17001         false if ! tree_versionable_function_p.
17002
17003 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17004
17005         * dwarf2out.c (add_data_member_location_attribute): Use
17006         add_AT_unsigned instead of add_AT_int if offset is non-negative.
17007
17008 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17009
17010         * postreload.c (try_replace_in_use): New static function.
17011         (reload_combine_recognize_const_pattern): Use it here.  Allow
17012         substituting into a final add insn, and substituting into a memory
17013         reference in an insn that sets the reg.
17014
17015 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17016
17017         * common.opt (o): Add MissingArgError.
17018         * doc/options.texi (MissingArgError): Document.
17019         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
17020         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
17021         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
17022         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
17023         * langhooks.h (struct lang_hooks): Remove missing_argument.
17024         * optc-gen.awk: Handle MissingArgError and output new structure
17025         field initializers.
17026         * opts.c (read_cmdline_option): Use missing_argument_error field
17027         instead of missing_argument langhook.
17028         * opts.h (struct cl_option): Add missing_argument_error field.
17029         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
17030
17031 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
17032
17033         PR target/29090
17034         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
17035         Darwin64 ABI, for zero-sized objects.
17036
17037 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
17038
17039         PR target/35491
17040         PR target/29090
17041
17042         Merge from Apple local 4.2.1.
17043         2005-05-11  Stan Shebs  <shebs@apple.com>
17044         Fix 64-bit varargs for Darwin (Radar 4028089).
17045         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
17046         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
17047         Add argument, add case for 8-byte register half-filled with a float.
17048         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
17049         single-precision floats specially.
17050
17051 2010-07-27  Ira Rosen  <irar@il.ibm.com>
17052
17053         PR tree-optimization/44152
17054         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
17055         complex numbers for further check.
17056         (vect_supported_load_permutation_p): Check nodes with
17057         complex numbers.
17058
17059 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
17060
17061         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
17062         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
17063         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
17064         (LANG_HOOKS_INITIALIZER): Add new hooks.
17065         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
17066         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
17067         and complain_wrong_lang_p.  Update init_options prototype.
17068         * c-objc-common.c (c_initialize_diagnostics): First call
17069         c_common_initialize_diagnostics.
17070         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
17071         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
17072         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
17073         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
17074         (hook_uint_void_0): New.
17075         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
17076         (hook_uint_void_0): New.
17077         * opts-common.c (decode_cmdline_option,
17078         decode_cmdline_options_to_array): Also fill in canonical_option field.
17079         * opts.c (complain_wrong_lang): Use langhook to determine whether
17080         to complain instead of special-casing LTO.
17081         (decode_options): Separate lang_mask determination with
17082         option_lang_mask hook from call of init_options hook.
17083         * opts.h (struct cl_decoded_option): Add canonical_option.
17084
17085 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
17086
17087         PR tree-optimization/45083
17088         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
17089
17090 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
17091
17092         * postreload.c (reload_combine_recognize_const_pattern): Move test
17093         for limiting the insn movement to the right scope.
17094
17095         PR rtl-optimization/45051
17096         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
17097         than reg_mentioned_p.
17098
17099 2010-07-26  Richard Henderson  <rth@redhat.com>
17100
17101         PR target/44132
17102         * tree-emutls.c: New file.
17103         * Makefile.in (OBJS-common): Add it.
17104         * tree-pass.h (pass_ipa_lower_emutls): Declare.
17105         * passes.c (init_optimization_passes): Add it.
17106
17107         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
17108         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
17109         * expr.c (emutls_var_address): Delete.
17110         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
17111         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
17112         (emutls_finish): Delete.
17113         * toplev.c (compile_file): Don't call it.
17114         * tree.h (emutls_decl): Delete.
17115         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
17116         (emutls_finish, emutls_finalize_control_var): Delete.
17117         (emutls_object_type): Move to tree-emutls.c.
17118         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
17119         default_emutls_var_fields, get_emutls_object_type,
17120         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
17121         default_emutls_var_init): Likewise.
17122         (get_variable_section): Don't special case emutls.
17123         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
17124         default_elf_select_section, default_unique_section,
17125         default_encode_section_info): Likewise.
17126         * varpool.c (decide_is_variable_needed): Likewise.
17127         * gimple-iterator.c (update_call_edge_frequencies): New
17128         (gsi_insert_on_edge_immediate): Use it.
17129         (gsi_insert_seq_on_edge_immediate): Likewise.
17130         (gsi_commit_one_edge_insert): Likewise.
17131
17132         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
17133         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
17134         (x86_64_elf_unique_section): Likewise.
17135
17136 2010-07-26  Jan Hubicka  <jh@suse.cz>
17137
17138         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
17139         GTY((skip)).
17140
17141 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
17142
17143         * target.def (output_source_filename): New hook.
17144         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
17145         * doc/tm.texi: Regenerate.
17146         * toplev.c (output_file_directive) Remove function.
17147         * toplev.h (output_file_directive) Remove.
17148         * output.h (default_asm_output_source_filename,
17149         output_file_directive): Declare.
17150         * varasm.h (default_asm_output_source_filename,
17151         output_file_directive): New functions.
17152
17153         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
17154         * config/mips/mips-protos.h (mips_output_filename): Remove.
17155         * config/mips/mips.c (mips_output_filename): Make Static.
17156         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
17157
17158 2010-07-26  Richard Guenther  <rguenther@suse.de>
17159
17160         PR tree-optimization/43784
17161         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
17162         if the destination is used by the call.
17163
17164 2010-07-26  Richard Guenther  <rguenther@suse.de>
17165
17166         PR middle-end/45073
17167         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
17168         SSA updating on being in SSA form.
17169
17170 2010-07-26  Richard Guenther  <rguenther@suse.de>
17171
17172         PR middle-end/45056
17173         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
17174
17175 2010-07-26  Richard Guenther  <rguenther@suse.de>
17176
17177         PR tree-optimization/45071
17178         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
17179         adjust op->opcode.
17180
17181 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
17182
17183         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
17184         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
17185         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
17186         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
17187         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
17188         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
17189         save_r31, return_r31, save_interrupt, return_interrupt,
17190         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
17191         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
17192         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
17193         new ABI requirements.
17194         (save_r6_r9, L_callt_save_r6_r9): Remove.
17195         * config/v850/predicates.md (even_reg_operand, disp23_operand,
17196         const_float_1_operand const_float_0_operand): New Predicates.
17197         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
17198         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
17199         * config/v850/t-v850: Update multilibs for new target variants.
17200         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
17201         * config/v850/t-v850e: Likewise.
17202         * config/v850/v850.c (v850_issue_rate): New.
17203         (v850_strict_argument_naming): New.
17204         (function_arg): Modify to generate a different ABI.
17205         (print_operand): Update case 'z' to support float modes.
17206         (output_move_single): Modify to generate appropriate and better
17207         assembly.
17208         (v850_float_z_comparison_operator, v850_select_cc_mode,
17209         v850_float_nz_comparison_operator,  v850_gen_float_compare,
17210         v850_gen_compare): New functions to support comparison of float values.
17211         (ep_memory_offset): Add support for V850E2 targets.
17212         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
17213         (INTERRUPT_REGPARM_NUM): Remove.
17214         (compute_register_save_size): Add extra case to save/restore long call.
17215         (use_prolog_function): New function to support prologue.
17216         (expand_prologue): Add support for V850E2 targets and modified
17217         as per the current ABI requirements.
17218         (expand_epilogue): Likewise.
17219         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
17220         (construct_save_jarl): Likewise.
17221         (construct_dispose_instruction): Update as per the current ABI
17222         requirements.
17223         (construct_prepare_instruction): Likewise.
17224         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
17225         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
17226         (CPP_SPEC): Updated to support v850e2 targets.
17227         (STRICT_ALIGNMENT): Modified.
17228         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
17229         (FIXED_REGISTERS): Likewise.
17230         (CALL_USED_REGISTERS): Likewise.
17231         (CONDITIONAL_REGISTER_USAGE): Updated.
17232         (HARD_REGNO_MODE_OK): Updated.
17233         (reg_class): Updated to add even registers.
17234         (REG_CLASS_NAMES): Likewise.
17235         (REG_CLASS_CONTENTS): Likewise.
17236         (REGNO_REG_CLASS): Updated for CC registers.
17237         (REG_CLASS_FROM_LETTER): Added support for even registers.
17238         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
17239         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
17240         ARG_POINTER_REGNUM): Updated.
17241         (FUNCTION_ARG_ADVANCE): Define.
17242         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
17243         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
17244         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
17245         (GO_IF_LEGITIMATE_ADDRESS): Updated.
17246         (SELECT_CC_MODE): Define.
17247         (REGISTER_NAMES): Updated to add psw and fcc registers.
17248         (ADDITIONAL_REGISTER_NAMES): Updated.
17249         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
17250         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
17251         * config/v850/v850.md (define_constants): Define new constants.
17252         (type): Update store,bit1,macc,div,fpu and single attributes.
17253         (cpu): New attribute.
17254         (cc): Add set_z attribute.
17255         (unsign23byte_load, sign23byte_load, unsign23hword_load,
17256         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
17257         23word_store): New instructions for 23-bit displacement load and store.
17258         (movqi_internal, movhi_internal): Update the attributes.
17259         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
17260         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
17261         the attributes.
17262         (v850_tst1): Modified using CC_REGNUM.
17263         (tstsi): Remove.
17264         (cmpsi): Modified as define_expand from define_insn.
17265         (cmpsi_insn, cmpsf, cmpdf): New instructions.
17266         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
17267         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
17268         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
17269         one_cmplsi2): Clobber the CC_REGNUM register.
17270         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
17271         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
17272         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
17273         (setf_insn, set_z_insn, set_nz_insn): New instructions for
17274         v850e2v3 target.
17275         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
17276         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
17277         targets.
17278         (sasf_1, sasf_2): Remove.
17279         (sasf): New instruction.
17280         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
17281         targets. CC_REGNUM register is clobbered and attributes are
17282         updated.
17283         (branch_z_normal, branch_z_invert, branch_nz_normal,
17284         branch_nz_invert): New branch related instructions.
17285         (jump): Updated the attributes.
17286         (switch): Update to support new targets. CC_REGNUM register is
17287         clobbered and attributes are updated.
17288         (call_internal_short, call_internal_long, call_value_internal_short,
17289         call_value_internal_long): Updated the attributes.
17290         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
17291         clobbered and attributes are updated.
17292         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
17293         Update to support new targets. CC_REGNUM register is clobbered.
17294         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
17295         instructions.
17296         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
17297         are updated.
17298         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
17299         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
17300         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
17301         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
17302         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
17303         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
17304         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
17305         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
17306         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
17307         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
17308         point instructions defined for V850e2v3 target.
17309         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
17310         Add support for V850E2 targets and CC_REGNUM register is clobbered.
17311         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
17312         support for new targets.
17313         * config/v850/v850-modes.def: New file.
17314         * config/v850/v850.opt(mstrict-align): Remove.
17315         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
17316         mv850e2v3): New command line options for V850.
17317         * config.gcc: Update the newly added files.
17318         * doc/invoke.texi: Update the newly added command line options for
17319         V850 target.
17320
17321 2010-07-26  Richard Guenther  <rguenther@suse.de>
17322
17323         PR tree-optimization/45052
17324         * ipa-pure-const.c (check_stmt): Check volatileness.
17325
17326 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
17327
17328         PR target/44707
17329         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
17330         * config/sparc/sparc.c: Include reload.h.
17331         (legitimize_tls_address): Rename into...
17332         (sparc_legitimize_tls_address): ...this.
17333         (legitimize_pic_address): Rename into...
17334         (sparc_legitimize_pic_address): ...this.
17335         (sparc_expand_move): Adjust to above renaming.
17336         (sparc_tls_referenced_p): Likewise.
17337         (sparc_legitimize_tls_address): Likewise.
17338         (sparc_legitimize_pic_address): Likewise.
17339         (sparc_legitimize_address): Likewise.
17340         (sparc_output_mi_thunk): Likewise.
17341         (sparc_legitimize_reload_address): New global function.  Recognize
17342         (lo_sum (high ...) ...) patterns generated by earlier passes.
17343         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
17344
17345 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
17346
17347         PR target/44484
17348         * config/sparc/predicates.md (memory_reg_operand): Delete.
17349         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
17350         (*sync_compare_and_swap): Encode the address form in the pattern.
17351         (*sync_compare_and_swapdi_v8plus): Likewise.
17352
17353 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
17354
17355         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
17356         Streamline paragraph on compatibility with the system compiler.
17357
17358 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
17359
17360         PR middle-end/45035
17361         * alias.c (true_dependence_1): Fix thinko in merge of old
17362         true_dependence and canon_true_dependence.
17363
17364 2010-07-23  Jan Hubicka  <jh@suse.cz>
17365
17366         * lto-streamer-out.c (write_symbol): Fix visibilities of external
17367         references.
17368
17369 2010-07-23  Le-Chun Wu  <lcwu@google.com>
17370
17371         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
17372         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
17373         and an unnecessary assignment.
17374         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
17375         self-assign warning.
17376         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
17377         unnecessary self-init.
17378
17379 2010-07-23  Richard Guenther  <rguenther@suse.de>
17380
17381         PR lto/43071
17382         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
17383         for -flto and -fwhopr.
17384
17385 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
17386
17387         PR target/41943
17388         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
17389         (stmp-int-hdrs): Prefix/postfix headers by include_next.
17390         * config.gcc (user_headers_inc_next_pre): New.
17391         (user_headers_inc_next_post): Likewise.
17392         (*-w64-mingw*): Use for float.h post-fixing, and for
17393         stddef.h/stdarg.h pre-fixing by include_next.
17394         * configure.ac (user_headers_inc_next_post): New.
17395         (user_headers_inc_next_pre): New.
17396         * configure: Regenerated.
17397
17398 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17399
17400         * configure.ac: Don't disable TLS on Solaris 8/9 by default
17401         Set tga_func for Solaris 2/x86 resp. SPARC.
17402         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
17403         (LIB_THREAD_LDFLAGS_SPEC): Define.
17404         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
17405         * configure: Regenerate.
17406         * config.in: Regenerate.
17407         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
17408         -pthread, -threads, LIB_TLS_SPEC with -pthread.
17409         * doc/install.texi (Specific, *-*-solaris2*): Document use of
17410         alternate thread libraries on Solaris 8.
17411         Document TLS patch requirements.
17412         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
17413         Document tls.
17414
17415         PR target/18788
17416         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
17417         -shared.
17418
17419 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
17420
17421         * tree.h (struct tree_base): Add nameless_flag bitfield.
17422         (TYPE_NAMELESS, DECL_NAMELESS): Define.
17423         * omp-low.c (create_omp_child_function, scan_omp_parallel,
17424         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
17425         DECL_ARTIFICIAL where needed.
17426         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
17427         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
17428         has DECL_NAMELESS set.
17429
17430 2010-07-23  Martin Jambor  <mjambor@suse.cz>
17431
17432         PR tree-optimization/44915
17433         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
17434         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
17435         (analyze_function): Likewise.
17436
17437 2010-07-23  Martin Jambor  <mjambor@suse.cz>
17438
17439         PR tree-optimization/44914
17440         * tree-sra.c (sra_modify_function_body): Return true if CFG was
17441         changed, add purging dead eh edges.
17442         (ipa_sra_modify_function_body): Return true if CFG was changed,
17443         simplify purging dead eh edges.
17444         (modify_function): Return true if CFG was changed.
17445         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
17446         was changed.
17447         (ipa_early_sra): Likewise.
17448
17449 2010-07-23  Jie Zhang  <jie@codesourcery.com>
17450
17451         PR target/44290
17452         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
17453         if "naked".
17454         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
17455         false if ! tree_versionable_function_p.
17456
17457 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
17458
17459         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
17460         * ipa-pure-const.c (special_builtlin_state): Remove
17461         BUILT_IN_ARGS_INFO case.
17462         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
17463         * builtins.c (expand_builtin): Likewise.
17464         (expand_builtin_args_info): Remove.
17465         * doc/tm.texi (__builtin_args_info): Remove.
17466         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
17467         * doc/tm.text.in: Likewise.
17468
17469 2010-07-23  Richard Guenther  <rguenther@suse.de>
17470
17471         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
17472         (lto_symtab_merge_decls_2): Likewise.
17473         * tree-ssa.c (useless_type_conversion_p): Likewise.
17474         * lto-streamer-in.c (input_gimple_stmt): Likewise.
17475         * gimple.c (gtc_visited2, gtc_ob2): Remove.
17476         (struct type_pair_d): Make same_p an array indexed by mode.
17477         Update comment.
17478         (lookup_type_pair): Update initialization.
17479         (struct sccs): Adjust same_p type.
17480         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
17481         Adjust.
17482         (print_gimple_types_stats): Likewise.
17483         * gimple.h (enum gtc_mode): New.
17484         (gimple_types_compatible_p): Adjust prototype.
17485
17486 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
17487
17488         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
17489         again after processing insn.
17490
17491 2010-07-23  Jie Zhang  <jie@codesourcery.com>
17492
17493         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
17494         proper words when !tree_versionable_function_p.
17495
17496 2010-07-23  Richard Guenther  <rguenther@suse.de>
17497
17498         PR tree-optimization/45037
17499         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
17500
17501 2010-07-23  Jie Zhang  <jie@codesourcery.com>
17502
17503         * doc/extend.texi: Remove IP2K from the description of naked attribute.
17504         Add MCORE instead.
17505
17506 2010-07-10  Andi Kleen  <ak@linux.intel.com>
17507
17508         PR lto/44992
17509         * lto-opts.c (lto_write_options): Add NULL file_data argument to
17510         lto_get_section_name.
17511         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
17512         * lto-streamer-out.c (produce_asm): Likewise.
17513         (copy_function): Likewise.
17514         (produce_symtab): Likewise.
17515         (produce_asm_for_decls): Likewise.
17516         * lto-streamer.c (lto_get_section_name): Add file_data argument.
17517         Rewrite to add random postfix to LTO sections.
17518         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
17519         (lto_get_section_name): Add file_data argument to prototype.
17520
17521 2010-07-10  Andi Kleen  <ak@linux.intel.com>
17522
17523         * lto-section-in.c (lto_section_name): Synchronize names
17524         with lto_get_section_name.
17525
17526 2010-07-10  Andi Kleen  <ak@linux.intel.com>
17527
17528         * lto-opts.c (lto_read_file_options): Check for missing section.
17529
17530 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
17531
17532         * ira.c (check_allocation): Correctly handle the case where an allocno
17533         with two objects was allocated to a single reg.
17534
17535 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
17536
17537         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
17538         (is_widening_mult_p): Likewise.
17539         (convert_to_widen): Use them.
17540         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
17541         well as integer ones.
17542
17543 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
17544
17545         * alias.c (true_dependence_1): New function, merged version of
17546         true_dependence and canon_true_dependence.
17547         (true_dependence): Simplify.
17548         (canon_true_dependence): Simplify.
17549
17550 2010-07-22  Richard Henderson  <rth@redhat.com>
17551
17552         PR target/45027
17553         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
17554         of V4SFmode for the SSE saves; increase stack alignment if needed.
17555         (ix86_gimplify_va_arg): Don't increase stack alignment here.
17556
17557 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
17558
17559         PR bootstrap/45028
17560         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
17561         call cprop_find_used_regs again via note_uses.
17562
17563 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
17564
17565         * alias.c (get_alias_set): Fix formatting issues.
17566
17567 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
17568
17569         PR middle-end/44878
17570         * stmt.c (expand_value_return):  Call promote_function_mode with
17571         a for_return argument of 2 when returning by reference.
17572
17573 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
17574
17575         PR debug/45024
17576         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
17577         unit DIE if we can find the scope DIE.
17578
17579 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
17580
17581         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
17582         changed.  Initialize OBJECT_SUBWORD.
17583         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
17584         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
17585         all callers changed.
17586         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
17587         (finish_allocno): Likewise.
17588         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
17589         (remove_low_level_allocnos): Likewise.
17590         (update_bad_spill_attribute): Likewise.
17591         (setup_min_max_allocno_live_range_point): Likewise.
17592         (sort_conflict_id_map): Likewise.
17593         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
17594         (ior_hard_reg_conflicts): New function.
17595         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
17596         (compress_conflict_vecs): Iterate over objects, not allocnos.
17597         (ira_add_live_range_to_object): New function.
17598         (object_range_compare_func): Renamed from allocno_range_compare_func.
17599         All callers changed.
17600         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
17601         subobjects, widen the min/max range of the lowest-order object to
17602         potentially include all other such low-order objects.
17603         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
17604         (check_allocation): Likewise.  Use more fine-grained tests for register
17605         conflicts.
17606         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
17607         allocno subobjects.
17608         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
17609         choices about which bits to set in each set.  Don't use
17610         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
17611         using the multiple sets we computed.
17612         (push_allocno_to_stack): Iterate over allocno subobjects.
17613         (all_conflicting_hard_regs_coalesced): New static function.
17614         (setup_allocno_available_regs_num): Use it.
17615         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
17616         subobjects.
17617         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
17618         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
17619         by ALLOCNO_NUM_OBJECTS.
17620         (calculate_spill_cost): Likewise.
17621         (color_pass): Express if statement in a more normal way.
17622         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
17623         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
17624         (setup_slot_coalesced_allocno_live_ranges): Likewise.
17625         (allocno_reload_assign): Likewise.
17626         (ira_reassign_pseudos): Likewise.
17627         (fast_allocation): Likewise.
17628         * ira-conflicts.c (build_conflict_bit_table): Likewise.
17629         (print_allocno_conflicts): Likewise.
17630         (ira_build_conflicts): Likewise.
17631         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
17632         callers changed.  Test subword 0 of each allocno for conflicts.
17633         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
17634         callers changed.  Iterate over allocno subobjects.
17635         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
17636         * ira-int.h (struct ira_allocno): New member: num_objects.
17637         Rename object to objects and change it into an array.
17638         (ALLOCNO_OBJECT): Add new argument N.
17639         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
17640         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
17641         (ior_hard_reg_conflicts): Declare.
17642         (ira_add_live_range_to_object): Declare.
17643         (ira_allocno_object_iterator): New.
17644         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
17645         (FOR_EACH_ALLOCNO_OBJECT): New macro.
17646         * ira-lives.c (objects_live): Renamed from allocnos_live; all
17647         uses changed.
17648         (allocnos_processed): New sparseset.
17649         (make_object_born): Renamed from make_allocno_born; take an
17650         ira_object_t argument.  All callers changed.
17651         (make_object_dead): Renamed from make_allocno_dead; take an
17652         ira_object_t argument.  All callers changed.
17653         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
17654         All callers changed.
17655         (mark_pseudo_regno_live): Iterate over allocno subobjects.
17656         (mark_pseudo_regno_dead): Likewise.
17657         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
17658         functions.
17659         (mark_ref_live): Detect subword accesses and call
17660         mark_pseudo_regno_subword_live as appropriate.
17661         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
17662         (process_bb_nodes_live): Deal with object-related updates first; set
17663         and test bits in allocnos_processed to avoid computing allocno
17664         statistics more than once.
17665         (create_start_finish_chains): Iterate over objects, not allocnos.
17666         (print_object_live_ranges): New function.
17667         (print_allocno_live_ranges): Use it.
17668         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
17669         and objects_live.
17670
17671 2010-07-22  Richard Guenther  <rguenther@suse.de>
17672
17673         PR lto/42451
17674         * gimple.c (gtc_next_dfs_num): New global.
17675         (struct sccs): Make value a union, add integer same_p member.
17676         (gtc_visit): New function.
17677         (gimple_types_compatible_p_1): New function, split out from ...
17678         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
17679         (iterative_hash_gimple_type): Adjust for sccs change.
17680
17681 2010-07-22  Martin Jambor  <mjambor@suse.cz>
17682
17683         PR tree-optimization/44891
17684         * tree-sra.c: Include gimple-pretty-print.h.
17685         (replace_uses_with_default_def_ssa_name): Renamed to
17686         get_repl_default_def_ssa_name, return the new SSA name instead of
17687         replacing the old one.
17688         (sra_modify_assign): Dump a message when removing a load, if the LHS
17689         is an SSA_NAME, do not do any propagation, just set the RHS to a
17690         default definition SSA NAME, type convert if necessary.
17691         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
17692
17693 2010-07-22  Richard Guenther  <rguenther@suse.de>
17694
17695         PR tree-optimization/45017
17696         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
17697         TYPE_PRECISION of integral types in addition to size.
17698
17699 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
17700
17701         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
17702         when no C library is specified.
17703
17704 2010-07-22  Martin Jambor  <mjambor@suse.cz>
17705
17706         * ipa-prop.h (struct ipa_node_params): Updated comment.
17707         (struct ipa_edge_args): Likewise.
17708         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
17709
17710 2010-07-22  Martin Jambor  <mjambor@suse.cz>
17711
17712         * cgraphunit.c (verify_edge_count_and_frequency): New function.
17713         (verify_cgraph_node): Verify frequencies of indirect edges.
17714         * tree-inline.c (tree_function_versioning): Update frequencies of
17715         indirect edges.
17716
17717 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17718
17719         PR target/43698
17720         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
17721         Set *arm_rev to be predicable.
17722
17723 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
17724
17725         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
17726         (LINK_COMMAND_SPEC_A): New.
17727         (DSYMUTIL): New.
17728         (DSYMUTIL_SPEC): New.
17729         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
17730         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
17731
17732 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
17733
17734         * calls.c (load_register_parameters): Move check for zero
17735         sized items so that only the call to
17736         mem_overlaps_already_clobbered_arg_p () is protected.
17737
17738 2010-07-22  Jan Hubicka  <jh@suse.cz>
17739
17740         * ipa-pure-const.c (varying_state): Break out from ...
17741         (get_function_state): ... here; always return varying_state
17742         when state would be NULL otherwise.
17743         (remove_node_data): Do not free varying state.
17744
17745 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
17746
17747         PR bootstrap/44970
17748         PR middle-end/45009
17749         * postreload.c: Include "target.h".
17750         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
17751         into account.
17752         (fixup_debug_insns): Don't copy the rtx.
17753         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
17754         Don't copy when replacing.  Call fixup_debug_insns in the case where
17755         we merged one add with another.
17756         (reload_combine_recognize_pattern): Fail if there aren't any uses.
17757         Try harder to determine whether we're picking a valid index register.
17758         Don't set store_ruid for an insn we're going to scan in the
17759         next iteration.
17760         (reload_combine): Remove unused code.
17761         (reload_combine_note_use): When updating use information for
17762         an old insn, ignore a use that occurs after store_ruid.
17763         * Makefile.in (postreload.o): Update dependencies.
17764
17765         * function.c (record_hard_reg_sets): Restrict the previous change
17766         to cases where the incoming nominal mode is the same as the
17767         incoming promoted mode and everything happens in MODE_INT.
17768
17769 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
17770
17771         PR debug/45015
17772         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
17773         ASM_OPERANDS_OUTPUT_IDX.
17774         (adjust_insn): For inline asm with multiple sets ensure first
17775         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
17776         the insn.
17777
17778 2010-07-21  Richard Henderson  <rth@redhat.com>
17779
17780         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
17781         comparison for avoiding xmm register saves.  Emit the xmm register
17782         saves explicitly.
17783         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
17784         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
17785         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
17786         Remove patterns and the associated splitters.
17787
17788 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
17789
17790         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
17791         and imagine parts of a complex, so that they can have the same
17792         base and fall into the same group.
17793
17794 2010-07-21  Richard Guenther  <rguenther@suse.de>
17795
17796         PR lto/45018
17797         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
17798         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
17799         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
17800
17801 2010-07-21  Martin Jambor  <mjambor@suse.cz>
17802
17803         PR tree-optimization/44900
17804         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
17805         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
17806
17807 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
17808
17809         PR middle-end/44738
17810         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
17811
17812 2010-07-21  Richard Guenther  <rguenther@suse.de>
17813
17814         PR middle-end/45013
17815         * tree-ssa.c (useless_type_conversion_p): Dispatch to
17816         gimple_types_compatible_p only when in lto.
17817         * gimple.c (gimple_types_compatible_p): Use canonical types
17818         to speed up comparison.
17819
17820 2010-07-21  Richard Guenther  <rguenther@suse.de>
17821
17822         * tree-flow.h (referenced_var): Move define ...
17823         * tree-flow-inline.h (referenced_var): ... here as an inline
17824         function.  Assert here ...
17825         * tree-dfa.c (referenced_var_lookup): ... instead of here.
17826         * tree-ssa.c (maybe_optimize_var): Check if the variable
17827         is in referenced vars.
17828         (execute_update_addresses_taken): Remove old broken check.
17829         * gimple-pretty-print.c (pp_points_to_solution): Use
17830         referenced_var_lookup.
17831         * tree-into-ssa.c (dump_decl_set): Likewise.
17832
17833 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
17834
17835         PR debug/45003
17836         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
17837         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
17838         ZERO_EXTEND here.
17839
17840 2010-07-20  Richard Henderson  <rth@redhat.com>
17841
17842         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
17843
17844 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
17845
17846         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
17847         computing the sum of the stack pointer and a large constant.
17848         * config/arm/constraints.md (M): Remove superfluous parentheses.
17849         (Pc): New constraint.
17850
17851 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
17852
17853         PR debug/45006
17854         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
17855         operand's type if exp is tcc_unary class tree.
17856
17857 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
17858
17859         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
17860         Reverse sense of if_then_else condition.
17861
17862 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
17863
17864         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
17865         * config/rs6000/rs6000.c (rs6000_override_options): Set
17866         rs6000_block_move_inline_limit appropriately.
17867         (expand_block_move): Use rs6000_block_move_inline_limit.
17868         * doc/invoke.texi (mblock-move-inline-limit): Document.
17869
17870 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
17871
17872         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
17873         FROM and TO.  All callers changed.  Don't look for tracked uses,
17874         just scan the RTL for DEBUG_INSNs and substitute.
17875         (reload_combine_recognize_pattern): Call fixup_debug_insns.
17876         (reload_combine): Ignore DEBUG_INSNs.
17877
17878 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
17879
17880         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
17881         depth to 8 from 5.
17882
17883         PR debug/45003
17884         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
17885         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
17886         instead of the result's type.
17887
17888 2010-07-20  Richard Guenther  <rguenther@suse.de>
17889
17890         PR tree-optimization/44977
17891         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
17892         SSA form.
17893
17894 2010-07-20  Richard Guenther  <rguenther@suse.de>
17895
17896         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
17897         (lto_symtab_merge_decls_2): Likewise.
17898         * gimple.h (gimple_types_compatible_p): Declare.
17899         * gimple.c (gimple_queue_type_fixup): Remove.
17900         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
17901         (gimple_compatible_complete_and_incomplete_type_p): New function.
17902         (gimple_types_compatible_p): Adjust.
17903         (gimple_register_type): Remove type fixup code.
17904         (print_gimple_types_stats): Adjust.
17905         (free_gimple_type_tables): Likewise.
17906         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
17907         * tree-ssa.c (useless_type_conversion_p): Likewise.
17908
17909 2010-07-20  Richard Guenther  <rguenther@suse.de>
17910
17911         PR middle-end/44971
17912         PR middle-end/44988
17913         * tree-ssa.c (maybe_optimize_var): New function split out from ...
17914         (execute_update_addresses_taken): ... here.
17915         (non_rewritable_mem_ref_base): Likewise.
17916         (execute_update_addresses_taken): Do not iterate over all referenced
17917         vars but just all local decls and parms.
17918         Properly check call and asm arguments and rewrite call arguments.
17919
17920 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
17921
17922         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
17923         to top level.
17924         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
17925         definitions ...
17926         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
17927         New macro.
17928         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
17929
17930 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
17931
17932         * gengtype.c (start_root_entry): New function, split out from
17933         write_root.  Check whether V is null and raise an error if so.
17934         (write_field_root): Check for V being null.  Don't raise an error here;
17935         set V to null instead.
17936         (write_root): Update comment above function.  Use start_root_entry.
17937
17938 2010-07-19  Xinliang David Li  <davidxl@google.com>
17939
17940         PR testsuite/44932
17941         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
17942         def edges.
17943         (find_uninit_use): Add dump.
17944         (is_use_properly_guarded): Ditto.
17945         (warn_uninitialized_phi): Ditto.
17946         (execute_late_warn_uninitialized): Ditto.
17947
17948 2010-07-19  Richard Guenther  <rguenther@suse.de>
17949
17950         PR middle-end/44941
17951         * expr.c (emit_block_move_hints): Move zero size check first.
17952         Move asserts to more useful places.
17953         * calls.c (load_register_parameters): Check for zero size.
17954
17955 2010-07-19  Richard Henderson  <rth@redhat.com>
17956
17957         * tree-optimize.c (execute_all_early_local_passes): New.  Change
17958         cgraph_state here ...
17959         (execute_early_local_optimizations): ... not here.  Remove.
17960         (pass_early_local_passes, pass_all_early_optimizations): Update.
17961
17962 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
17963
17964         * postreload.c (reload_combine_closest_single_use): Ignore the
17965         number of uses for DEBUG_INSNs.
17966         (fixup_debug_insns): New static function.
17967         (reload_combine_recognize_const_pattern): Use it.  Don't let the
17968         main loop be affected by DEBUG_INSNs.
17969         Really disallow moving adds past a jump insn.
17970         (reload_combine_recognize_pattern): Don't update use_ruid here.
17971         (reload_combine_note_use): Do it here.
17972         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
17973
17974 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
17975
17976         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
17977         of a loop.
17978         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
17979
17980 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
17981
17982         * config/i386/darwin.h: Define darwin_emit_branch_islands.
17983         (TARGET_MACHO_BRANCH_ISLANDS): New.
17984         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
17985         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
17986         default value.
17987         * config/i386/i386.c (output_pic_addr_const): Do not emit
17988         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
17989         (x86_output_mi_thunk): Adjust symbol creation.
17990         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
17991         Remove out of date comment.
17992         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
17993         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
17994         (DARWIN_GENERATE_ISLANDS): Ditto.
17995         (output_call):  Do not emit branch islands unless
17996         darwin_emit_branch_islands is set.
17997         * config/darwin.c: Declare darwin_emit_branch_islands.
17998         (machopic_indirect_data_reference): Do not emit unless
17999         darwin_emit_branch_islands is set.
18000         (darwin_override_options): Set darwin_emit_branch_islands
18001         where it is needed.
18002         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
18003
18004 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18005
18006         * doc/sourcebuild.texi (Effective-Target Keywords): Document
18007         sse_runtime, sse2_runtime.
18008
18009 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
18010
18011         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
18012         low half of a single-register SCmode return value before ORing
18013         it with the high half.
18014         * config/mips/mips16.S (MERGE_GPRf): Likewise.
18015
18016 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18017
18018         PR target/44805
18019         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
18020         on all targets.
18021
18022 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
18023
18024         PR target/42235
18025         * postreload.c (reload_cse_move2add): Return bool, true if anything.
18026         changed.  All callers changed.
18027         (move2add_use_add2_insn): Likewise.
18028         (move2add_use_add3_insn): Likewise.
18029         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
18030         reload_combine.
18031         (RELOAD_COMBINE_MAX_USES): Bump to 16.
18032         (last_jump_ruid): New static variable.
18033         (struct reg_use): New members CONTAINING_MEM and RUID.
18034         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
18035         (reload_combine_split_one_ruid, reload_combine_split_ruids,
18036         reload_combine_purge_insn_uses, reload_combine_closest_single_use
18037         reload_combine_purge_reg_uses_after_ruid,
18038         reload_combine_recognize_const_pattern): New static functions.
18039         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
18040         is true for our reg and that we have available index regs.
18041         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
18042         callers changed.  Use them to initialize fields in struct reg_use.
18043         (reload_combine): Initialize last_jump_ruid.  Be careful when to
18044         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
18045         Call reload_combine_recognize_const_pattern.
18046         (reload_combine_note_store): Update REAL_STORE_RUID field.
18047
18048 2010-07-16  Jason Merrill  <jason@redhat.com>
18049
18050         * Makefile.in (opts-common.o): Depend on options.h.
18051
18052 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
18053
18054         * tree.c (build_common_builtin_nodes): Use build_function_type_list
18055         instead of build_function_type.
18056         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
18057         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
18058
18059 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
18060
18061         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
18062         do all the work.
18063         (rs6000_emit_int_cmove): Use function pointers for insn generation.
18064         Don't force values into registers unnecessarily.
18065         (output_isel): Assert that we're not given conditions we can't handle.
18066         Delete corresponding code.
18067         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
18068         scc_comparison_operator constraint.  Permit 0 for the consequent
18069         operand.  Permit any GPR for the alternative operand.
18070         (isel_unsigned_<mode>): Likewise.
18071
18072 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
18073
18074         PR target/44942
18075         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
18076         argument to const_tree.
18077         * config/i386/i386.c (function_arg_advance): If padding needs to be
18078         inserted before argument, increment cum->words by number of padding
18079         words as well.
18080         (contains_aligned_value_p): Change argument to const_tree.
18081         (ix86_function_arg_boundary): Change second argument to const_tree.
18082
18083 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
18084
18085         PR target/42235
18086         * function.c (record_hard_reg_sets): New static function.
18087         (assign_parm_setup_reg): If an optab for extending exists and the
18088         generated code clobbbers no hard regs, emit the insn directly and
18089         create a REG_EQUIV note.
18090
18091 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18092
18093         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
18094         TREE_CHAIN.
18095         * c-typeck.c (push_init_level): Likewise.
18096         (process_init_element): Likewise.
18097
18098 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
18099
18100         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
18101         (integer_three_node): Add.
18102         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
18103         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
18104         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
18105         of call build_int_cst.
18106         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
18107         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
18108         (find_interesting_uses_address): Ditto.
18109         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
18110         * tree-eh.c (lower_eh_constructs_2): Ditto.
18111         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
18112         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
18113         * expmed.c (expand_divmod): Ditto.
18114         * tree-mudflap.c (mx_register_decls): Ditto.
18115         * varasm.c (array_size_for_constructor): Ditto.
18116         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
18117         * c-parser.c (c_parser_postfix_expression): Ditto.
18118
18119 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18120
18121         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
18122         New static variables.
18123         (reload_combine_recognize_pattern): New static function, broken out
18124         of reload_combine.
18125         (reload_combine): Use it.  Only initialize first_index_reg and
18126         last_index_reg once.
18127
18128 2010-07-15  Richard Henderson  <rth@redhat.com>
18129
18130         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
18131         when done.
18132
18133 2010-07-15  Jan Hubicka  <jh@suse.cz>
18134
18135         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
18136         comdats for broken gold.
18137         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
18138
18139 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18140
18141         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
18142
18143 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
18144
18145         * tree.h (DECL_CHAIN): Define.
18146         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
18147         * c-decl.c: Likewise.
18148         * c-parser.c: Likewise.
18149         * c-typeck.c: Likewise.
18150         * cfgexpand.c: Likewise.
18151         * cgraph.c: Likewise.
18152         * cgraphunit.c: Likewise.
18153         * combine.c: Likewise.
18154         * config/alpha/alpha.c: Likewise.
18155         * config/arm/arm.c: Likewise.
18156         * config/frv/frv.c: Likewise.
18157         * config/i386/i386.c: Likewise.
18158         * config/i386/winnt-cxx.c: Likewise.
18159         * config/ia64/ia64.c: Likewise.
18160         * config/iq2000/iq2000.c: Likewise.
18161         * config/mep/mep.c: Likewise.
18162         * config/mips/mips.c: Likewise.
18163         * config/pa/som.h: Likewise.
18164         * config/rs6000/rs6000.c: Likewise.
18165         * config/s390/s390.c: Likewise.
18166         * config/sh/sh.c: Likewise.
18167         * config/sh/symbian-cxx.c: Likewise.
18168         * config/sparc/sparc.c: Likewise.
18169         * config/spu/spu.c: Likewise.
18170         * config/stormy16/stormy16.c: Likewise.
18171         * config/vxworks.c: Likewise.
18172         * config/xtensa/xtensa.c: Likewise.
18173         * coverage.c: Likewise.
18174         * dbxout.c: Likewise.
18175         * dwarf2out.c: Likewise.
18176         * emit-rtl.c: Likewise.
18177         * expr.c: Likewise.
18178         * function.c: Likewise.
18179         * gimple-low.c: Likewise.
18180         * gimple-pretty-print.c: Likewise.
18181         * gimplify.c: Likewise.
18182         * integrate.c: Likewise.
18183         * ipa-inline.c: Likewise.
18184         * ipa-prop.c: Likewise.
18185         * ipa-split.c: Likewise.
18186         * ipa-struct-reorg.c: Likewise.
18187         * ipa-type-escape.c: Likewise.
18188         * langhooks.c: Likewise.
18189         * lto-cgraph.c: Likewise.
18190         * omp-low.c: Likewise.
18191         * stor-layout.c: Likewise.
18192         * tree-cfg.c: Likewise.
18193         * tree-complex.c: Likewise.
18194         * tree-dfa.c: Likewise.
18195         * tree-dump.c: Likewise.
18196         * tree-inline.c: Likewise.
18197         * tree-mudflap.c: Likewise.
18198         * tree-nested.c: Likewise.
18199         * tree-object-size.c: Likewise.
18200         * tree-pretty-print.c: Likewise.
18201         * tree-sra.c: Likewise.
18202         * tree-ssa-live.c: Likewise.
18203         * tree-ssa-loop-niter.c: Likewise.
18204         * tree-ssa-math-opts.c: Likewise.
18205         * tree-ssa-reassoc.c: Likewise.
18206         * tree-ssa-sccvn.c: Likewise.
18207         * tree-ssa-structalias.c: Likewise.
18208         * tree-tailcall.c: Likewise.
18209         * tree-vrp.c: Likewise.
18210         * tree.c: Likewise.
18211         * var-tracking.c: Likewise.
18212         * varasm.c: Likewise.
18213
18214 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18215
18216         PR target/44877
18217         * config/spu/spu.c (spu_expand_builtin_1): Allow references
18218         (as well as pointers) as argument to mask_for_load builtins.
18219
18220 2010-07-15  Richard Guenther  <rguenther@suse.de>
18221
18222         PR tree-optimization/44946
18223         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
18224         with accessing only padding properly.
18225
18226 2010-07-15  Jan Hubicka  <jh@suse.cz>
18227
18228         * ipa.c (function_and_variable_visibility): Variables marked as used
18229         should not be localized.
18230
18231 2010-07-15  Jan Hubicka  <jh@suse.cz>
18232
18233         * cgraph.c: Include lto-streamer.h
18234         (change_decl_assembler_name): Work when assembler name hash is at place.
18235         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
18236         be sure to rename it to avoid name clash.
18237         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
18238         Localize hidden symbols only when locally defined.
18239
18240 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
18241
18242         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
18243
18244 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
18245             Kevin F. Quinn  <kevquinn@gentoo.org>
18246
18247         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
18248         * common.opt: Add -Wtrampolines.
18249         * doc/invoke.texi: Add -Wtrampolines.
18250
18251 2010-07-15  Jie Zhang  <jie@codesourcery.com>
18252
18253         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
18254         cortex_a8_issue_ls.
18255
18256 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
18257
18258         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
18259         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
18260
18261 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18262
18263         * config/spu/spu.c (reg_names): Remove prototype.
18264         (call_used_regs): Likewise.
18265
18266 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
18267
18268         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
18269         "unused" with attribute "used".
18270         (__JCR_END__): Likewise.
18271         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
18272         "used" attribute.
18273         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
18274
18275 2010-07-14  Richard Guenther  <rguenther@suse.de>
18276
18277         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
18278         (maybe_fixup_decls): Likewise.
18279         (input_gimple_stmt): Do not fixup anything.
18280         * lto-streamer-out.c (output_gimple_stmt): Make sure all
18281         non-automatic variable uses are wrapped inside a MEM_REF.
18282
18283 2010-07-14  Richard Henderson  <rth@redhat.com>
18284
18285         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
18286         for functions.
18287         * varasm.c (assemble_variable): Remove early exit for functions;
18288         assert that we're given a variable.
18289
18290 2010-07-14  Jie Zhang  <jie@codesourcery.com>
18291
18292         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
18293         cortex_a8_default when neon_type is not none.
18294
18295 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
18296
18297         * lower-subreg.c (subreg_context): New static bitmap.
18298         (decompose_multiword_subregs): Allocate and free it.
18299         (find_decomposable_subregs): Set a bit in it for a register that
18300         occurs in a subreg that changes mode but not size.
18301         (can_decompose_p): Test it instead of non_decomposable_context.
18302
18303 2010-07-14  Richard Guenther  <rguenther@suse.de>
18304
18305         PR tree-optimization/44824
18306         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
18307         is_gimple_mem_ref_addr.
18308         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
18309         non-decl_address_invariant_p addresses.
18310
18311 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
18312
18313         * reload.c (find_reloads): Revert code to penalize small register
18314         classes that was brought in with the IRA merge.
18315
18316 2010-07-14  Richard Guenther  <rguenther@suse.de>
18317
18318         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
18319         as base of ARRAY_REFs.
18320
18321 2010-07-14  Richard Guenther  <rguenther@suse.de>
18322
18323         PR middle-end/44930
18324         * tree-pretty-print.c (do_niy): Do not print a newline.
18325
18326 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
18327
18328         * ira-int.h (struct ira_object): New.
18329         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
18330         (struct ira_allocno): Remove members min, max,
18331         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
18332         conflict_allocnos_num and conflict_vec_p.  Add new member object.
18333         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
18334         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
18335         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
18336         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
18337         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
18338         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
18339         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
18340         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
18341         an ira_object_t rather than ira_allocno_t.  All uses changed.
18342         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
18343         contains a vector of ira_object_t; all uses changed.
18344         (ira_objects_num): Declare variable.
18345         (ira_create_allocno_object): Declare function.
18346         (ira_conflict_vector_profitable_p): Adjust prototype.
18347         (ira_allocate_conflict_vec): Renamed from
18348         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
18349         (ira_allocate_object_conflicts): Renamed from
18350         ira_allocate_allocno_conflicts; first arg now ira_object_t.
18351         (struct ira_object_iterator): New.
18352         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
18353         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
18354         to conflict_vec_p.  All uses changed.
18355         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
18356         Changed to take into account that conflicts are now tracked for
18357         objects.
18358         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
18359         Args changed to accept ira_object_t.  All uses changed.
18360         (allocnos_conflict_p): New static function.
18361         (collected_conflict_objects): Renamed from collected_allocno_objects;
18362         now a vector of ira_object_t.  All uses changed.
18363         (build_conflict_bit_table): Changed to take into account that
18364         conflicts are now tracked for objects.
18365         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
18366         (print_allocno_conflicts, ira_build_conflicts): Likewise.
18367         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
18368         setup_allocno_left_conflicts_size, allocno_reload_assign,
18369         fast_allocation): Likewise.
18370         * ira-lives.c (make_hard_regno_born, make_allocno_born)
18371         process_single_reg_class_operands, process_bb_node_lives): Likewise.
18372         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
18373         Likewise.
18374         * ira-build.c (ira_objects_num): New variable.
18375         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
18376         contains a vector of ira_object_t; all uses changed.
18377         (ira_object_id_map_vec): Corresponding change.
18378         (object_pool): New static variable.
18379         (initiate_allocnos): Initialize it.
18380         (finish_allocnos): Free it.
18381         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
18382         New functions.
18383         (ira_create_allocno): Don't set members that were removed.
18384         (ira_set_allocno_cover_class): Don't change conflict hard regs.
18385         (merge_hard_reg_conflicts): Changed to take into account that
18386         conflicts are now tracked for objects.
18387         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
18388         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
18389         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
18390         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
18391         setup_min_max_conflict_allocno_ids, ):  Likewise.
18392         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
18393         to ira_object_t; all callers changed.
18394         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
18395         to ira_object_t, all callers changed.
18396         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
18397         to ira_object_t, all callers changed.
18398         (conflict_check, curr_conflict_check_tick): Renamed from
18399         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
18400         changed.
18401         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
18402         arg changed to ira_object_t, all callers changed.
18403         (create_cap_allocno): Call ira_create_allocno_object.
18404         (finish_allocno): Free the corresponding object.
18405         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
18406         callers changed.  Adjusted for dealing with objects.
18407         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
18408         dealing with objects.
18409         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
18410
18411         * ira-int.h (struct live_range): Rename allocno member to object
18412         and change type to ira_object_t.
18413         (struct ira_object): New member live_ranges.
18414         (struct ira_allocno): Remove member live_ranges.
18415         (ALLOCNO_LIVE_RANGES): Remove.
18416         (OBJECT_LIVE_RANGES): New macro.
18417         (ira_create_live_range, ira_copy_live_range_list,
18418         ira_merge_live_range_list, ira_live_ranges_intersect_p,
18419         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
18420         * ira-build.c (ira_create_object): Initialize live ranges here.
18421         (ira_create_allocno): Not here.
18422         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
18423         changed to ira_object_t, all callers changed.
18424         (copy_live_range): Rename from copy_allocno_live_range, all callers
18425         changed.
18426         (ira_copy_live_range_list): Rename from
18427         ira_copy_allocno_live_range_list, all callers changed.
18428         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
18429         all callers changed.
18430         (ira_live_ranges_intersect_p): Rename from
18431         ira_allocno_live_ranges_intersect_p, all callers changed.
18432         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
18433         callers changed.
18434         (ira_finish_live_range_list): Rename from
18435         ira_finish_allocno_live_range_list, all callers changed.
18436         (change_object_in_range_list): Rename from change_allocno_in_range_list,
18437         last arg changed to ira_object_t, all callers changed.
18438         (finish_allocno): Changed to expect live ranges in the allocno's object.
18439         (move_allocno_live_ranges, copy_allocno_live_ranges,
18440         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
18441         ira_flattening, ira_build): Likewise.
18442         * ira-color.c (allocnos_have_intersected_live_ranges_p,
18443         slot_coalesced_allocno_live_ranges_intersect,
18444         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
18445         * ira-conflicts.c (build_conflict_bit_table): Likewise.
18446         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
18447         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
18448         make_allocno_dead, create_start_finish_chains,
18449         remove_some_program_points_and_update_live_ranges,
18450         ira_debug_live_range_list): Likewise.
18451
18452         * ira-int.h (ira_object_conflict_iterator): Rename from
18453         ira_allocno_conflict_iterator.
18454         (ira_object_conflict_iter_init): Rename from
18455         ira_allocno_conflict_iter_init, second arg changed to
18456         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
18457         FOR_EACH_ALLOCNO_CONFLICT.
18458         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
18459         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
18460         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
18461         * ira-conflicts.c (print_allocno_conflicts): Likewise.
18462
18463 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
18464
18465         PR other/44874
18466         * tree-dump.c (dump_options): Add enumerate_locals entry.
18467         Add TDF_NOID exclusion to all entry.
18468         * tree-dump.h (dump_enumerated_decls): Declare.
18469         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
18470         Don't display type uid.
18471         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
18472         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
18473         * tree-ssa-live.c: Include gimple.h.
18474         (numbered_tree_d): New struct.
18475         (numbered_tree): New typedef.
18476         (DEF_VEC_O (numbered_tree): New.
18477         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
18478         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
18479         (dump_enumerated_decls): Likewise.
18480         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
18481         debug info and flag_dump_final_insns, call dump_enumerated_decls.
18482         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
18483         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
18484
18485 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
18486
18487         * expmed.h (MAX_BITS_PER_WORD): Move to...
18488         * defaults.h (MAX_BITS_PER_WORD): ...here.
18489
18490 2010-07-13  DJ Delorie  <dj@redhat.com>
18491
18492         * config/h8300/h8300.c (h8300_init_once): Default to
18493         -fstrict_volatile_bitfields.
18494
18495         * config/sh/sh.c (sh_override_options): Default to
18496         -fstrict_volatile_bitfields.
18497
18498         * config/rx/rx.c (rx_option_override): New.
18499
18500         * config/m32c/m32c.c (m32c_override_options): Default to
18501         -fstrict_volatile_bitfields.
18502
18503 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
18504
18505         * tree.h (build_function_call_expr): Delete.
18506         (build_call_expr_loc_array): New function.
18507         (build_call_expr_loc_vec): New function.
18508         * tree-flow.h (struct omp_region): Change type of ws_args field
18509         to a VEC.
18510         * builtins.c (build_function_call_expr): Delete.
18511         (build_call_expr_loc_array): New function.
18512         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
18513         (build_call_expr): Likewise.
18514         (build_call_expr_loc_vec): New function.
18515         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
18516         build_function_call_expr.
18517         * expr.c (emutls_var_address): Likewise.
18518         * varasm.c (emutls_common_1): Likewise.
18519         * omp-low.c (expand_omp_atomic_mutex): Likewise.
18520         (expand_omp_taskreg): Adjust for new type of region->ws_args.
18521         (get_ws_args_for): Return a VEC instead of a tree.
18522         (expand_parallel_call): Call build_call_expr_loc_vec instead of
18523         build_function_call_expr.
18524         * stor-layout.c (self_referential_size): Likewise.
18525
18526 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
18527
18528         PR testsuite/44701
18529         * recog.c (constrain_operands): Allow side-effects in memory
18530         operands if either < or > constraint is used, rather than if
18531         both < and > is used.
18532
18533 2010-07-13  Richard Guenther  <rguenther@suse.de>
18534
18535         PR middle-end/44911
18536         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
18537         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
18538         without name.
18539
18540 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
18541
18542         PR target/44761
18543         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
18544         to variable emited.
18545         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
18546         * config/sh/sh.md (symGOT_load): Likewise.
18547         (symDTPOFF2reg): Likewise.
18548         (symTPOFF2reg): Likewise.
18549
18550 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18551
18552         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
18553         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
18554
18555 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18556
18557         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
18558         explanation.
18559         Find ucontext_t * on Solaris 11.
18560         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
18561         Handle new Solaris 11 __sighndlr patterns.
18562
18563 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
18564
18565         PR debug/44901
18566         * vec.h (VEC_block_remove): Fix comment.
18567         * tree-ssa-live.c (remove_unused_locals): Don't use
18568         VEC_unordered_remove on local_decls, instead replace a single
18569         vector element in each iteration if at least one element had
18570         to be removed and VEC_truncate at the end.
18571         * omp-low.c (expand_omp_taskreg): Likewise.
18572
18573 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18574
18575         * c-decl.c (finish_function): Fix typo in comment.
18576
18577 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
18578
18579         PR bootstrap/44921
18580         * postreload.c (move2add_use_add3_insn): Silence gcc warning
18581         on min_regno.
18582
18583 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
18584
18585         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
18586         (simplify_stmt_using_ranges): Use it.
18587
18588 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18589
18590         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
18591         member.  Do not mark as GTY(()).
18592         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
18593         (spu_builtin_decls): New static variable.
18594         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
18595         (spu_init_builtins): Likewise.
18596         (spu_builtin_mul_widen_even): Likewise.
18597         (spu_builtin_mul_widen_odd): Likewise.
18598         (spu_builtin_mask_for_load): Likewise.
18599         (spu_builtin_vec_perm): Likewise.
18600         * config/spu/spu-c.c: Include "target.h".
18601         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
18602         of using spu_builtins[].fndecl.
18603
18604 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18605
18606         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
18607         imply -minterlink-mips16.
18608
18609 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18610
18611         * config/mips/mips.h (mips16_globals): Declare.
18612         (SWITCHABLE_TARGET): Define.
18613         * config/mips/mips.c: Include target-globals.h.
18614         (mips16_globals): New variable.
18615         (mips_set_mips16_mode): Use save_target_globals and
18616         restore_target_globals instead of target_reinit.
18617
18618 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18619
18620         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
18621         to say that the function can be called more than once.
18622         * target-globals.c (save_target_globals): Call init_reg_sets.
18623
18624 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18625
18626         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
18627         * bb-reorder.h: New file.
18628         * bb-reorder.c (default_target_bb_reorder): New variable.
18629         (this_target_bb_reorder): New conditional variable.
18630         (uncond_jump_length): Redefine as a macro.
18631         * target-globals.h (this_target_bb_reorder): Declare.
18632         (target_globals): Add a bb_reorder field.
18633         (restore_target_globals): Copy the bb_reorder field to
18634         this_target_bb-reorder.
18635         * target-globals.c: Include bb-reorder.h.
18636         (default_target_globals): Initialize the bb_reorder field.
18637         (save_target_globals): Likewise.
18638
18639 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18640
18641         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
18642         * gcse.h: New file.
18643         * gcse.c: Include gcse.h.
18644         (default_target_gcse): New variable.
18645         (this_target_gcse): New conditional variable.
18646         (can_copy): Redefine as a macro.
18647         (can_copy_init_p): New macro.
18648         (can_copy_p): Remove can_copy_init_p.
18649         * target-globals.h (this_target_gcse): Declare.
18650         (target_globals): Add a gcse field.
18651         (restore_target_globals): Copy the gcse field to this_target_gcse.
18652         * target-globals.c: Include gcse.h.
18653         (default_target_globals): Initialize the gcse field.
18654         (save_target_globals): Likewise.
18655
18656 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18657
18658         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
18659         and x_ira_prohibited_mode_move_regs_initialized_p.
18660         (ira_prohibited_mode_move_regs): Redefine as a macro.
18661         * ira.c (ira_prohibited_mode_move_regs): Delete.
18662         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
18663
18664 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18665
18666         * reload.h (target_reload): Add x_cached_reg_save_code and
18667         x_cached_reg_restore_code.
18668         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
18669         Redefine as macros.
18670
18671 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18672
18673         * Makefile.in (target-globals.o): Depend on builtins.h.
18674         * builtins.h: New file.
18675         * builtins.c: Include builtins.h.
18676         (default_target_builtins): New variable.
18677         (this_target_builtins): New conditional variable.
18678         (apply_args_mode, apply_result_mode): Redefine as macros.
18679         * target-globals.h (this_target_builtins): Declare.
18680         (target_globals): Add a builtins field.
18681         (restore_target_globals): Copy the builtins field to
18682         this_target_builtins.
18683         * target-globals.c: Include builtins.h.
18684         (default_target_globals): Initialize the builtins field.
18685         (save_target_globals): Likewise.
18686
18687 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18688
18689         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
18690         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
18691         from expmed.c.
18692         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
18693         (alg_hash, alg_hash_used_p): New macros.
18694         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
18695         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
18696         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
18697
18698 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18699
18700         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
18701         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
18702         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
18703         (this_op_costs, costs_classes): Redefine as macros.
18704         (record_reg_classes): Don't take op_costs as a parameter.
18705         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
18706         (scan_one_insn): Update call to record_operand_costs.
18707
18708 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18709
18710         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
18711         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
18712         (target_ira_int): New structure.
18713         (default_target_ira_int): Declare.
18714         (this_target_ira_int): Declare as a variable or define as a macro.
18715         (ira_reg_mode_hard_regset, ira_register_move_cost)
18716         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
18717         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
18718         (prohibited_class_mode_regs, ira_important_classes_num)
18719         (ira_important_classes, ira_reg_class_intersect)
18720         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
18721         (ira_reg_class_union): Redefine as macros.
18722         * ira.h (target_ira): New structure.
18723         (default_target_ira): Declare.
18724         (this_target_ira): Declare as a variable or define as a macro.
18725         (ira_available_class_regs, ira_hard_regno_cover_class)
18726         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
18727         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
18728         (ira_class_hard_regs_num): Redefine as macros.
18729         * ira.c (default_target_ira, default_target_ira_int): New variables.
18730         (this_target_ira, this_target_ira_int): New conditional variables.
18731         (ira_reg_mode_hard_regset, ira_memory_move_cost)
18732         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
18733         (ira_class_subset_p): Delete.
18734         (no_unit_alloc_regs): Redefine as a macro.
18735         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
18736         (ira_class_hard_regs_num, ira_class_hard_reg_index)
18737         (ira_available_class_regs): Delete.
18738         (alloc_reg_class_subclasses): Redefine as a macro.
18739         (ira_reg_class_cover_size, ira_reg_class_cover)
18740         (ira_important_classes_num, ira_important_classes)
18741         (ira_important_class_nums, ira_class_translate): Delete.
18742         (cover_class_order): Document the variable's lifetime.
18743         (reorder_important_classes): Don't set ira_important_class_nums.
18744         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
18745         (ira_reg_class_super_classes, ira_reg_class_union)
18746         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
18747         Delete.
18748         (setup_reg_class_nregs): Don't set ira_max_regs.
18749         (prohibited_class_mode_regs): Delete.
18750         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
18751         (target_globals): Add ira and ira_int fields.
18752         (restore_target_globals): Copy the ira field to this_target_ira
18753         and the ira_int field to this_target_ira_int.
18754         * target-globals.c: Include ira-int.h.
18755         (default_target_globals): Initialize the ira and ira_int fields.
18756         (save_target_globals): Likewise.
18757
18758 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18759
18760         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
18761         * cfgloop.h (target_cfgloop): New structure.
18762         (default_target_cfgloop): Declare.
18763         (this_target_cfgloop): Declare as a variable or define as a macro.
18764         (target_avail_regs, target_clobbered_regs, target_res_regs)
18765         (target_reg_cost, target_spill_cost): Redefine as macros.
18766         * cfgloopanal.c (default_target_cfgloop): New variable.
18767         (this_target_cfgloop): New conditional variable.
18768         (target_avail_regs, target_clobbered_regs, target_res_regs)
18769         (target_reg_cost, target_spill_cost): Delete.
18770         * target-globals.h (this_target_cfgloop): Declare.
18771         (target_globals): Add a cfgloop field.
18772         (restore_target_globals): Copy the cfgloop field to
18773         this_target_cfgloop.
18774         * target-globals.c: Include cfgloop.h.
18775         (default_target_globals): Initialize the cfgloop field.
18776         (save_target_globals): Likewise.
18777
18778 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18779
18780         * regs.h (target_regs): Add x_direct_load, x_direct_store and
18781         x_float_extend_from_mem.
18782         (direct_load, direct_store, float_extend_from_mem): New macros.
18783         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
18784
18785 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18786
18787         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
18788         (target-globals.o): Depend on $(LIBFUNCS_H).
18789         * libfuncs.h: Include hashtab.h.
18790         (libfunc_entry): Moved from optabs.c.
18791         (target_libfuncs): New structure.
18792         (default_target_libfuncs): Declare.
18793         (this_target_libfuncs): Declare as a variable or define as a macro.
18794         (libfunc_table): Redefine as a macro.
18795         * optabs.c (default_target_libfuncs): New variable.
18796         (this_target_libfuncs): New conditional variable.
18797         (libfunc_table): Delete.
18798         (libfunc_entry): Moved to optabs.h.
18799         (libfunc_hash): Redefine as a macro.
18800         (hash_libfunc, eq_libfunc): Fix comments.
18801         (init_optabs): Use libfunc_hash to detect cases where the function
18802         has already been called.  Clear the hash table instead of
18803         recreating it.
18804         * target-globals.h (this_target_libfuncs): Declare.
18805         (target_globals): Add a libfuncs field.
18806         (restore_target_globals): Copy the libfuncs field to
18807         this_target_libfuncs.
18808         * target-globals.c: Include libfuncs.h.
18809         (default_target_globals): Initialize the libfuncs field.
18810         (save_target_globals): Likewise.
18811
18812 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18813
18814         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
18815         in all dependency lists.
18816
18817 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18818
18819         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
18820         * optabs.h (target_optabs): New structure.
18821         (default_target_optabs): Declare.
18822         (this_target_optabs): Declare as a variable or define as a macro.
18823         (optab_table, convert_optab_table, direct_optab_table): Redefine
18824         as macros.
18825         * optabs.c (default_target_optabs): New variable.
18826         (this_target_optabs): New conditional variable.
18827         (optab_table, convert_optab_table, direct_optab_table): Delete.
18828         * target-globals.h (this_target_optabs): Declare.
18829         (target_globals): Add a optabs field.
18830         (restore_target_globals): Copy the optabs field to
18831         this_target_optabs.
18832         * target-globals.c: Include expr.h and optabs.h.
18833         (default_target_globals): Initialize the optabs field.
18834         (save_target_globals): Likewise.
18835
18836 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18837
18838         * flags.h (target_flagstate): Add x_flag_excess_precision.
18839         (flag_excess_precision): Redefine as a macro.
18840         * toplev.c (flag_excess_precision): Delete.
18841
18842 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18843
18844         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
18845         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
18846         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
18847         (no_caller_save_reg_set): Redefine as a macro.
18848         * reload.h (target_reload): Add x_caller_save_initialized_p and
18849         x_regno_save_mode.
18850         (caller_save_initialized_p): Redefine as a macro.
18851         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
18852         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
18853         (regno_save_mode): Redefine as a macro.
18854
18855 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18856
18857         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
18858         * expmed.h: New file.
18859         * expmed.c (default_target_costs): New variable.
18860         (this_target_costs): New conditional variable.
18861         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
18862         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
18863         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
18864         * target-globals.h (this_target_expmed): Declare.
18865         (target_globals): Add a expmed field.
18866         (restore_target_globals): Copy the expmed field to
18867         this_target_expmed.
18868         * target-globals.c: Include expmed.h.
18869         (default_target_globals): Initialize the expmed field.
18870         (save_target_globals): Likewise.
18871
18872 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18873
18874         * Makefile.in (target-globals.o): Depend on reload.h.
18875         * reload.h (target_reload): New structure.
18876         (default_target_reload): Declare.
18877         (this_target_reload): Declare as a variable or define as a macro.
18878         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
18879         * reload1.c (default_target_reload): New variable
18880         (this_target_reload): New conditional variable.
18881         (indirect_symref_ok, double_reg_address_ok): Delete.
18882         (spill_indirect_levels): Redefine as a macro.
18883         * target-globals.h (this_target_reload): Declare.
18884         (target_globals): Add a reload field.
18885         (restore_target_globals): Copy the reload field to
18886         this_target_reload.
18887         * target-globals.c: Include hard-reg-set.h.
18888         (default_target_globals): Initialize the reload field.
18889         (save_target_globals): Likewise.
18890
18891 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18892
18893         * rtl.h (target_rtl): Add x_static_reg_base_value.
18894         * alias.c (static_reg_base_value): Redefine as a macro.
18895
18896 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18897
18898         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
18899         (GTFILES): Remove reginfo.c.
18900         * rtl.h (target_rtl): Add x_top_of_stack.
18901         (top_of_stack): New macro.
18902         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
18903         (top_of_stack): Delete.
18904
18905 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18906
18907         * regs.h (target_regs): Add x_hard_regs_of_mode,
18908         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
18909         x_may_move_out_cost and x_last_mode_for_init_move_cost.
18910         (have_regs_of_mode, contains_reg_of_mode, move_cost)
18911         (may_move_in_cost, may_move_out_cost): Redefine as macros.
18912         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
18913         (may_move_in_cost, may_move_out_cost): Delete.
18914         (last_mode_for_init_move_cost): Redefine as a macro.
18915
18916 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18917
18918         * hard-reg-set.h (target_hard_regs): New structure.
18919         (default_target_hard_regs): Declare.
18920         (this_target_hard_regs): Declare as a variable or define as a macro.
18921         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
18922         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
18923         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
18924         (reg_class_size, reg_class_subclasses, reg_class_subunion)
18925         (reg_class_superunion, reg_names): Redefine as macros.
18926         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
18927         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
18928         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
18929         (reg_class_contents, reg_class_size, reg_class_subclasses)
18930         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
18931         (default_target_hard_regs): New variable
18932         (this_target_hard_regs, initial_call_really_used_regs)
18933         (initial_reg_alloc_order): New conditional variables.
18934         (initial_reg_names): New variable.
18935         (init_reg_sets): Assert that initial_call_really_used_regs,
18936         initial_reg_alloc_order and initial_reg_names
18937         are all the same size as their variable counterparts.  Use them to
18938         initialize those counterparts.
18939         * target-globals.h (this_target_hard_regs): Declare.
18940         (target_globals): Add a hard_regs field.
18941         (restore_target_globals): Copy the hard_regs field to
18942         this_target_hard_regs.
18943         * target-globals.c: Include hard-reg-set.h.
18944         (default_target_globals): Initialize the hard_regs field.
18945         (save_target_globals): Likewise.
18946
18947 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18948
18949         * Makefile.in (target-globals.o): Depend on $(RTL_H).
18950         * rtl.h (target_rtl): New structure.
18951         (default_target_rtl): Declare.
18952         (this_target_rtl): Declare as a variable or define as a macro.
18953         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
18954         Redefine as macros.
18955         * emit-rtl.c (default_target_rtl): New variable.
18956         (this_target_rtl): New conditional variable.
18957         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
18958         (return_address_pointer_rtx): Delete.
18959         (initial_regno_reg_rtx): New macro.
18960         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
18961         (init_emit_regs): Likewise.
18962         * target-globals.h (this_target_rtl): Declare.
18963         (target_globals): Add a rtl field.
18964         (restore_target_globals): Copy the rtl field to this_target_rtl.
18965         * target-globals.c: Include rtl.h.
18966         (default_target_globals): Initialize the rtl field.
18967         (save_target_globals): Likewise.
18968
18969 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18970
18971         * Makefile.in (target-globals.o): Depend on $(REGS_H).
18972         * regs.h (target_reg_modes): New structure.
18973         (default_target_reg_modes): Declare.
18974         (this_target_reg_modes): Declare as a variable or define as a macro.
18975         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
18976         * reginfo.c (default_target_reg_modes): New variable.
18977         (this_target_reg_modes): New conditional variable.
18978         (hard_regno_nregs, reg_raw_mode): Delete.
18979         * target-globals.h (this_target_regs): Declare.
18980         (target_globals): Add a regs field.
18981         (restore_target_globals): Copy the regs field to this_target_regs.
18982         * target-globals.c: Include regs.h.
18983         (default_target_globals): Initialize the regs field.
18984         (save_target_globals): Likewise.
18985
18986 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
18987
18988         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
18989         * doc/tm.texi: Regenerate.
18990         * Makefile.in (OBJS-common): Add target-globals.o.
18991         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
18992         and target-globals.h.
18993         (target-globals.o): New rule.
18994         (GTFILES): Include $(srcdir)/target-globals.h.
18995         * defaults.h (SWITCHABLE_TARGET): Define.
18996         * gengtype.c (open_base_files): Add target-globals.h to the
18997         list of includes.
18998         * target-globals.h: New file.
18999         * target-globals.c: Likewise.
19000
19001         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
19002         * flags.h (target_flag_state): New structure.
19003         (default_target_flag_state): Declare.
19004         (this_target_flag_state): Declare as a variable or define as a macro.
19005         (align_loops_log): Redefine as a macro.
19006         (align_loops_max_skip, align_jumps_log): Likewise.
19007         (align_jumps_max_skip, align_labels_log): Likewise.
19008         (align_labels_max_skip, align_functions_log): Likewise.
19009         * toplev.c (default_target_flag_state): New variable.
19010         (this_target_flag_state): New conditional variable.
19011         (align_loops_log): Delete.
19012         (align_loops_max_skip, align_jumps_log): Likewise.
19013         (align_jumps_max_skip, align_labels_log): Likewise.
19014         (align_labels_max_skip, align_functions_log): Likewise.
19015         * target-globals.h (this_target_flag_state): Declare.
19016         (target_globals): Add a flag_state field.
19017         (restore_target_globals): Copy the flag_state field to
19018         this_target_flag_state.
19019         * target-globals.c: Include flags.h.
19020         (default_target_globals): Initialize the flag_state field.
19021         (save_target_globals): Likewise.
19022
19023 2010-07-12  Jie Zhang  <jie@codesourcery.com>
19024
19025         * postreload.c (reg_symbol_ref[]): New.
19026         (move2add_use_add2_insn): New.
19027         (move2add_use_add3_insn): New.
19028         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
19029         (move2add_note_store): Likewise.
19030
19031 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
19032
19033         PR rtl-optimization/44752
19034         * genautomata.c (main): Don't emit an empty file even if there
19035         is no automaton.
19036
19037 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19038
19039         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
19040         ix86_solaris_return_in_memory.
19041         * config/i386-protos.h: Reflect this.
19042         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
19043         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
19044         Move ...
19045         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
19046
19047 2010-07-12  Jie Zhang  <jie@codesourcery.com>
19048
19049         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
19050         align the stack when it's going to be saved.
19051
19052 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19053
19054         PR pch/14940
19055         * config/host-solaris.c (mmap_fixed): New function.
19056         (sol_gt_pch_get_address): Use it.
19057         (sol_gt_pch_use_address): Likewise.
19058
19059 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19060
19061         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19062         pentiumpro on Solaris 8 and 9/x86.
19063         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
19064         Document SSE/SSE2 support.
19065         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
19066
19067 2010-07-12  Andi Kleen  <ak@linux.intel.com>
19068
19069         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
19070         instead of gcc_assert to print better error message for multiple
19071         prevailing defs.
19072
19073 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
19074
19075         * config/i386/i386.c (ix86_asm_output_function_label): Change format
19076         string placeholder from 0x%x to %#x.
19077         (ix86_code_end): Use putc to output '\n'.
19078         (ix86_print_operand) <case ';'>: Use putc to output ';'.
19079
19080 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
19081
19082         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
19083         in directive -export.
19084
19085 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
19086
19087         * reginfo.h (reg_classes_intersect_p): Change arguments type to
19088         reg_class_t.
19089         * rtl.h (reg_classes_intersect_p): Adjust prototype.
19090
19091         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19092         Remove macros.
19093         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
19094         rs6000_memory_move_cost): Remove
19095         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
19096         TARGET_MEMORY_MOVE_COST): Define.
19097         (rs6000_register_move_cost): Make static. Change arguments type from
19098         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
19099         (rs6000_memory_move_cost): Make static. Change arguments type from
19100         'enum reg_class' to reg_class_t.
19101
19102 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
19103
19104         PR middle-end/42505
19105         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
19106         lookup code into....
19107         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
19108         new functions.
19109         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
19110         * cfgloopanal.c (target_clobbered_regs): Define.
19111         (init_set_costs): Initialize target_clobbered_regs.
19112         (estimate_reg_pressure_cost): Add call_p argument.  When true,
19113         adjust the number of available registers to exclude the
19114         call-clobbered registers.
19115         * cfgloop.h (target_clobbered_regs): Declare.
19116         (estimate_reg_pressure_cost): Adjust declaration.
19117         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
19118         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
19119         (determine_set_costs): Dump target_clobbered_regs.
19120         (loop_body_includes_call): New function.
19121         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
19122         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
19123         call_p flag through.
19124         (best_gain_for_invariant): Likewise.
19125         (find_invariants_to_move): Likewise.
19126         (move_single_loop_invariants): Likewise, using already-computed
19127         has_call field.
19128
19129 2010-07-10  Richard Guenther  <rguenther@suse.de>
19130             Joern Rennecke  <joern.rennecke@embecosm.com>
19131
19132         PR debug/44832
19133         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
19134         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
19135         unless they have DECL_IGNORED_P set.
19136
19137 2010-07-10  Richard Guenther  <rguenther@suse.de>
19138
19139         PR lto/44889
19140         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
19141         helper function.
19142         (gimple_types_compatible_p): Similar to pointed-to
19143         types allow and merge a mix of complete and incomplete aggregate.
19144         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
19145         (iterative_hash_gimple_type): Adjust for that.
19146
19147 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
19148
19149         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
19150
19151 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
19152
19153         PR objc/44140
19154         * config/darwin.c (output_objc_section_asm_op): Save and restore
19155         section when outputting ObjC section list.
19156
19157 2010-07-09  Jan Hubicka  <jh@suse.cz>
19158
19159         * lto-streamer-out.c (produce_symtab): Do not write alias
19160         cgraph/varpool nodes.
19161
19162 2010-07-09  Jan Hubicka  <jh@suse.cz>
19163
19164         * tree-inline.c (declare_return_variable): Fix ICE while
19165         inlining DECL_BY_VALUE function not in SSA form
19166
19167 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
19168
19169         PR tree-optimization/44576
19170         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
19171         New.  Pull out from is_loop_prefetching_profitable to implement
19172         the trip count to ahead ratio heuristic.
19173         (mem_ref_count_reasonable_p): New.  Pull out from
19174         is_loop_prefetching_profitable to implement the instruction to
19175         memory reference ratio heuristic.  Also consider not reasonable if
19176         the memory reference count is above a threshold (to avoid
19177         explosive compilation time.
19178         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
19179         is_loop_prefetching_profitable to implement the instruction to
19180         prefetch ratio heuristic.
19181         (is_loop_prefetching_profitable): Removed.
19182         (loop_prefetch_arrays): Distribute the cost analysis across the
19183         function to allow early exit of the prefetch analysis.
19184         is_loop_prefetching_profitable is splitted into three functions,
19185         with each one called as early as possible.
19186         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
19187         number of memory references in a loop is considered too many.
19188
19189 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
19190
19191         * reload.c (find_reloads): Don't clear badop if we have a winreg
19192         alternative, but not win, and the class only has fixed regs.
19193         * hard-reg-set.h (class_only_fixed_regs): Declare.
19194         * reginfo.c (class_only_fixed_regs): New array.
19195         (init_reg_sets_1): Initialize it.
19196         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
19197         discourage alternatives using the stack pointer.
19198
19199         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
19200
19201         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
19202
19203         * config/arm/arm.md (cbranchqi4): Fix array size.
19204         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
19205         calculating length.
19206
19207 2010-07-09  Richard Guenther  <rguenther@suse.de>
19208
19209         * gimple.c (struct type_fixup_s): New struct and VEC type.
19210         (gimple_register_type_fixups): New static global.
19211         (gimple_queue_type_fixup): New function.
19212         (gimple_types_compatible_p): Queue type fixups instead of
19213         applying them here.
19214         (gimple_register_type): Apply queued fixups for the
19215         canonical type.  Empty the type fixup queue.
19216
19217 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19218
19219         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
19220         * configure: Regenerate.
19221         * config.in: Ditto.
19222
19223 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
19224             Denys Vlasenko  <dvlasenk@redhat.com>
19225             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
19226
19227         PR tree-optimization/28632
19228         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
19229         (extract_range_from_binary_expr): Further optimize
19230         BIT_AND_EXPR and BIT_IOR_EXPR.
19231
19232 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
19233
19234         * tree-if-conv.c (fold_or_predicates): New.
19235         (add_to_predicate_list): Call it.
19236
19237 2010-07-09  Richard Guenther  <rguenther@suse.de>
19238
19239         PR middle-end/44890
19240         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
19241         if base is a pointer.
19242         * tree-cfg.c (verify_expr): Update MEM_REF checking.
19243
19244 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
19245
19246         PR target/44877
19247         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
19248         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
19249         builtin mask for load/store builtins.
19250
19251 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19252
19253         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
19254         for "lock addl".
19255         * configure: Regenerate.
19256         * config/i386/i386.c (ix86_print_operand) <case ';'>:
19257         Remove TARGET_MACHO.
19258
19259 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
19260
19261         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
19262         default ISA flags.
19263         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
19264
19265 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
19266
19267         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
19268
19269 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
19270
19271         * config/picochip/picochip.md (commsTestPort): Emit more
19272         efficient sequence for tstport instruction.
19273
19274 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
19275
19276         * config/i386/i386.c (ix86_veclib_handler): Make static.
19277
19278 2010-07-09  Richard Guenther  <rguenther@suse.de>
19279
19280         PR tree-optimization/44852
19281         * tree-ssa-alias.c: Include toplev.h for exact_log2.
19282         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
19283         in MEM_REF.
19284         (indirect_refs_may_alias_p): Likewise.
19285         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
19286
19287 2010-07-09  Richard Guenther  <rguenther@suse.de>
19288
19289         PR tree-optimization/44882
19290         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
19291         sets do conflict.
19292         (vectorizable_load): Likewise.
19293
19294 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
19295
19296         PR target/40657
19297         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
19298         All callers changed.
19299         Handle the case when we're called for the epilogue.
19300         (thumb_unexpanded_epilogue): Use it.
19301         (thumb1_expand_epilogue): Likewise.
19302
19303 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
19304
19305         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
19306         both ranges are range_int_cst_p with non-negative minimum,
19307         try harder to derive smaller range.
19308
19309 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19310
19311         * genrecog.c: Include diagnostic-core.h before toplev.h.
19312         * genoutput.c: Likewise.
19313         * genextract.c: Likewise.
19314         * genautomata.c: Likewise.
19315         * genemit.c: Likewise.
19316         * genpeep.c: Likewise.
19317         * genattrtab.c: Likewise.
19318         * genconditions.c: Likewise.
19319         * genpreds.c: Likewise.
19320
19321 2010-07-08  Andi Kleen  <ak@linux.intel.com>
19322
19323         * lto-section-in.c (lto_section_name): Add missing comma.
19324
19325 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
19326
19327         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
19328         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
19329         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
19330         (ia64_override_options): Rename to...
19331         (ia64_option_override): ... this one. Make static.
19332
19333 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19334
19335         PR middle-end/44843
19336         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
19337         pointed-to type of the offset in a MEM_REF to compute the alignment.
19338
19339 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
19340
19341         * final.c (final_scan_insn): Replace
19342         TARGET_UNWIND_INFO macro check by unwind_emit
19343         hook NULL check.
19344         * targhooks.c (default_unwind_emit): Removed.
19345         * targhooks.h (default_unwind_emit): Likewise.
19346         * target.def (unwind_emit): Set default value to NULL.
19347
19348         * config/i386/i386-protos.h (ix86_asm_output_function_label):
19349         New prototype.
19350         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
19351         for NULL fntype argument and allow 64-bit targets.
19352         (ix86_asm_output_function_label): New function.
19353         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
19354         (ix86_handle_fndecl_attribute): Likewise.
19355         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
19356         * doc/doc/tm.texi: Regenerated.
19357         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
19358         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
19359         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
19360         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
19361         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
19362         * config/elfos.h: Likewise.
19363         * config/i386/cygming.h: Likewise.
19364         * config/netbsd-aout.h: Likewise.
19365         * config/openbsd.h: Likewise.
19366         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
19367         by ix86_asm_output_function_label function call.
19368         * varasm.c (assemble_start_function): Use
19369         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
19370
19371 2010-07-08  Jan Hubicka  <jh@suse.cz>
19372
19373         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
19374         New function.
19375         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
19376         Declare.
19377         * ipa-cp.c (ipcp_estimate_growth): Use it.
19378         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
19379         Likewise.
19380
19381 2010-07-08  Jan Hubicka  <jh@suse.cz>
19382
19383         * tree-inline.c (declare_return_variable): Allocate annotation for new
19384         temporary.
19385
19386 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
19387
19388         PR tree-optimization/44710
19389         * tree-if-conv.c (parse_predicate): New.
19390         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
19391         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
19392
19393 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
19394
19395         * common.opt (ftree-loop-if-convert): New flag.
19396         * doc/invoke.texi (ftree-loop-if-convert): Documented.
19397         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
19398         when flag_tree_loop_if_convert is set.
19399
19400 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
19401
19402         * config/i386/i386.c: Use short syntax for function calls
19403         through function pointers.
19404         * config/i386/i386.md: Ditto.
19405
19406 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19407
19408         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
19409
19410 2010-07-08  Richard Guenther  <rguenther@suse.de>
19411
19412         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
19413         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
19414
19415 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
19416
19417         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
19418         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
19419         (loc_list_from_tree): Likewise.
19420         (output_loc_operands): Handle outputting DW_OP_const[48]u
19421         with loc->dtprel set.
19422         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
19423
19424 2010-07-08  Jan Hubicka  <jh@suse.cz>
19425
19426         * ipa.c: Include pointer-set.h
19427         (cgraph_externally_visible_p): New attribute ALIASED;
19428         when in LTO, hidden symbols are local unless they are aliased.
19429         (function_and_variable_visibility): Compute aliased nodes;
19430         handle LTO and hidden symbol on functions and vars.
19431         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
19432         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
19433
19434 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19435
19436         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
19437         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19438         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19439         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19440         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19441         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
19442         (ix86_gen_probe_stack_range): Likewise.
19443         (override_options): Set them.
19444         (ix86_target_stack_probe): New function.
19445         (ix86_compute_frame_layout): Force use of push instructions to
19446         save registers if stack checking with probes is enabled.
19447         (get_scratch_register_on_entry): New function.
19448         (release_scratch_register_on_entry): Likewise.
19449         (ix86_adjust_stack_and_probe): Likewise.
19450         (output_adjust_stack_and_probe): Likewise.
19451         (ix86_emit_probe_stack_range): Likewise.
19452         (output_probe_stack_range): Likewise.
19453         (ix86_expand_prologue): Emit stack checking code if static built-in
19454         stack checking is enabled.
19455         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
19456         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
19457         (output_adjust_stack_and_probe): Likewise.
19458         (output_probe_stack_range): Likewise.
19459         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
19460         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
19461         TARGET_STACK_PROBE.
19462         (allocate_stack_worker_64): Likewise.
19463         (allocate_stack): Likewise.
19464         (adjust_stack_and_probe): New insn.
19465         (probe_stack_range): Likewise.
19466
19467 2010-07-08  Richard Guenther  <rguenther@suse.de>
19468
19469         PR tree-optimization/44831
19470         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
19471         a MEM_REF preserving TBAA info of the original dereference.
19472         Dereference the original pointer if the address is not invariant.
19473         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
19474         at least one invariant address that we are going to dereference.
19475
19476 2010-07-08  Richard Guenther  <rguenther@suse.de>
19477
19478         PR tree-optimization/44861
19479         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
19480         information when building MEM_REFs.
19481         (vectorizable_load): Likewise.
19482         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
19483
19484 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19485
19486         * config/sol2-c.c: Do not include diagnostic-core.h.
19487
19488 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19489
19490         PR bootstrap/44768
19491         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
19492         with respect to current_function_decl. Pass decl of the function.
19493         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
19494         * ipa-inline.c (compute_inline_parameters): Pass decl to
19495         estimated_stack_frame_size.
19496
19497 2010-07-08  Richard Guenther  <rguenther@suse.de>
19498
19499         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19500         New function.
19501         (valueize_refs): Call it.
19502
19503 2010-07-08  Richard Guenther  <rguenther@suse.de>
19504
19505         PR rtl-optimization/44838
19506         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
19507         SSA form do not use pointer equivalence.
19508
19509 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
19510
19511         * dwarf2out.c (AT_linkage_name): Delete.
19512         (add_linkage_attr): New function.
19513         (add_linkage_name): Call it to emit the linkage attribute.
19514         (dwarf2out_finish): Likewise.
19515         (move_linkage_attr): Explicitly accept both attribute variants.
19516
19517 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19518
19519         * toplev.h: Do not include diagnostic-core.h.
19520         Include diagnostic-core.h in every file that includes toplev.h.
19521         * c-tree.h: Do not include toplev.h.
19522         * pretty-print.h: Update comment.
19523         * Makefile.in: Update dependencies.
19524         * alias.c: Include diagnostic-core.h in every file that includes
19525         toplev.h.
19526         * attribs.c: Likewise.
19527         * auto-inc-dec.c: Likewise.
19528         * bb-reorder.c: Likewise.
19529         * bt-load.c: Likewise.
19530         * caller-save.c: Likewise.
19531         * calls.c: Likewise.
19532         * cfg.c: Likewise.
19533         * cfganal.c: Likewise.
19534         * cfgbuild.c: Likewise.
19535         * cfgcleanup.c: Likewise.
19536         * cfghooks.c: Likewise.
19537         * cfgloop.c: Likewise.
19538         * combine.c: Likewise.
19539         * config/alpha/alpha.c: Likewise.
19540         * config/arc/arc.c: Likewise.
19541         * config/arm/arm.c: Likewise.
19542         * config/arm/pe.c: Likewise.
19543         * config/avr/avr.c: Likewise.
19544         * config/bfin/bfin.c: Likewise.
19545         * config/cris/cris.c: Likewise.
19546         * config/crx/crx.c: Likewise.
19547         * config/darwin-c.c: Likewise.
19548         * config/darwin.c: Likewise.
19549         * config/fr30/fr30.c: Likewise.
19550         * config/frv/frv.c: Likewise.
19551         * config/h8300/h8300.c: Likewise.
19552         * config/host-darwin.c: Likewise.
19553         * config/i386/i386.c: Likewise.
19554         * config/i386/netware.c: Likewise.
19555         * config/i386/nwld.c: Likewise.
19556         * config/i386/winnt-cxx.c: Likewise.
19557         * config/i386/winnt-stubs.c: Likewise.
19558         * config/i386/winnt.c: Likewise.
19559         * config/ia64/ia64-c.c: Likewise.
19560         * config/ia64/ia64.c: Likewise.
19561         * config/iq2000/iq2000.c: Likewise.
19562         * config/lm32/lm32.c: Likewise.
19563         * config/m32c/m32c-pragma.c: Likewise.
19564         * config/m32c/m32c.c: Likewise.
19565         * config/m32r/m32r.c: Likewise.
19566         * config/m68hc11/m68hc11.c: Likewise.
19567         * config/m68k/m68k.c: Likewise.
19568         * config/mcore/mcore.c: Likewise.
19569         * config/mep/mep-pragma.c: Likewise.
19570         * config/mep/mep.c: Likewise.
19571         * config/mmix/mmix.c: Likewise.
19572         * config/mn10300/mn10300.c: Likewise.
19573         * config/moxie/moxie.c: Likewise.
19574         * config/pa/pa.c: Likewise.
19575         * config/pdp11/pdp11.c: Likewise.
19576         * config/picochip/picochip.c: Likewise.
19577         * config/rs6000/rs6000-c.c: Likewise.
19578         * config/rs6000/rs6000.c: Likewise.
19579         * config/rx/rx.c: Likewise.
19580         * config/s390/s390.c: Likewise.
19581         * config/score/score.c: Likewise.
19582         * config/score/score3.c: Likewise.
19583         * config/score/score7.c: Likewise.
19584         * config/sh/sh.c: Likewise.
19585         * config/sh/symbian-base.c: Likewise.
19586         * config/sh/symbian-c.c: Likewise.
19587         * config/sh/symbian-cxx.c: Likewise.
19588         * config/sol2-c.c: Likewise.
19589         * config/sol2.c: Likewise.
19590         * config/sparc/sparc.c: Likewise.
19591         * config/spu/spu.c: Likewise.
19592         * config/stormy16/stormy16.c: Likewise.
19593         * config/v850/v850-c.c: Likewise.
19594         * config/v850/v850.c: Likewise.
19595         * config/vax/vax.c: Likewise.
19596         * config/vxworks.c: Likewise.
19597         * config/xtensa/xtensa.c: Likewise.
19598         * convert.c: Likewise.
19599         * cse.c: Likewise.
19600         * cselib.c: Likewise.
19601         * dbgcnt.c: Likewise.
19602         * dbxout.c: Likewise.
19603         * ddg.c: Likewise.
19604         * dominance.c: Likewise.
19605         * emit-rtl.c: Likewise.
19606         * explow.c: Likewise.
19607         * expmed.c: Likewise.
19608         * fixed-value.c: Likewise.
19609         * fold-const.c: Likewise.
19610         * fwprop.c: Likewise.
19611         * gcse.c: Likewise.
19612         * ggc-common.c: Likewise.
19613         * ggc-page.c: Likewise.
19614         * ggc-zone.c: Likewise.
19615         * gimple-low.c: Likewise.
19616         * gimplify.c: Likewise.
19617         * graph.c: Likewise.
19618         * haifa-sched.c: Likewise.
19619         * ifcvt.c: Likewise.
19620         * implicit-zee.c: Likewise.
19621         * integrate.c: Likewise.
19622         * ira-build.c: Likewise.
19623         * ira-color.c: Likewise.
19624         * ira-conflicts.c: Likewise.
19625         * ira-costs.c: Likewise.
19626         * ira-lives.c: Likewise.
19627         * ira.c: Likewise.
19628         * lists.c: Likewise.
19629         * loop-doloop.c: Likewise.
19630         * loop-iv.c: Likewise.
19631         * lto-opts.c: Likewise.
19632         * lto-symtab.c: Likewise.
19633         * main.c: Likewise.
19634         * modulo-sched.c: Likewise.
19635         * optabs.c: Likewise.
19636         * params.c: Likewise.
19637         * plugin.c: Likewise.
19638         * postreload-gcse.c: Likewise.
19639         * postreload.c: Likewise.
19640         * predict.c: Likewise.
19641         * profile.c: Likewise.
19642         * real.c: Likewise.
19643         * regcprop.c: Likewise.
19644         * reginfo.c: Likewise.
19645         * regmove.c: Likewise.
19646         * reorg.c: Likewise.
19647         * resource.c: Likewise.
19648         * rtl.c: Likewise.
19649         * rtlanal.c: Likewise.
19650         * sched-deps.c: Likewise.
19651         * sched-ebb.c: Likewise.
19652         * sched-rgn.c: Likewise.
19653         * sdbout.c: Likewise.
19654         * sel-sched-dump.c: Likewise.
19655         * sel-sched-ir.c: Likewise.
19656         * simplify-rtx.c: Likewise.
19657         * stmt.c: Likewise.
19658         * stor-layout.c: Likewise.
19659         * store-motion.c: Likewise.
19660         * targhooks.c: Likewise.
19661         * tree-cfg.c: Likewise.
19662         * tree-cfgcleanup.c: Likewise.
19663         * tree-dump.c: Likewise.
19664         * tree-eh.c: Likewise.
19665         * tree-inline.c: Likewise.
19666         * tree-nomudflap.c: Likewise.
19667         * tree-object-size.c: Likewise.
19668         * tree-optimize.c: Likewise.
19669         * tree-outof-ssa.c: Likewise.
19670         * tree-phinodes.c: Likewise.
19671         * tree-profile.c: Likewise.
19672         * tree-ssa-ccp.c: Likewise.
19673         * tree-ssa-coalesce.c: Likewise.
19674         * tree-ssa-live.c: Likewise.
19675         * tree-ssa-loop-niter.c: Likewise.
19676         * tree-ssa-loop-prefetch.c: Likewise.
19677         * tree-ssa-loop.c: Likewise.
19678         * tree-ssa-structalias.c: Likewise.
19679         * tree-ssa-uninit.c: Likewise.
19680         * tree-ssa.c: Likewise.
19681         * tree-vect-data-refs.c: Likewise.
19682         * tree-vect-loop-manip.c: Likewise.
19683         * tree-vect-loop.c: Likewise.
19684         * tree-vect-patterns.c: Likewise.
19685         * tree-vect-stmts.c: Likewise.
19686         * tree-vrp.c: Likewise.
19687         * varasm.c: Likewise.
19688         * vec.c: Likewise.
19689         * web.c: Likewise.
19690         * xcoffout.c: Likewise.
19691
19692 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
19693
19694         * gengtype.c (write_field_root): New function.
19695         (write_root): Use it.
19696
19697 2010-07-07  Wei Guozhi  <carrot@google.com>
19698
19699         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
19700         of lowest bits to lshift/compare): Add a missing line.
19701
19702 2010-07-07  Wei Guozhi  <carrot@google.com>
19703
19704         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
19705         of lowest bits to lshift/compare): New.
19706
19707 2010-07-07  Tom Tromey  <tromey@redhat.com>
19708
19709         * doc/tm.texi: Update.
19710         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
19711         Add @hook.
19712         * target.def (want_debug_pub_sections): New hook.
19713         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
19714         * dwarf2out.c (add_pubname_string): Check
19715         targetm.want_debug_pub_sections.
19716         (add_pubname): Likewise.
19717         (add_pubtype): Likewise.
19718
19719 2010-07-07  Jie Zhang  <jie@codesourcery.com>
19720
19721         * genautomata.c (output_automata_list_min_issue_delay_code):
19722         Correctly decompress min_issue_delay.
19723
19724 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
19725
19726         PR rtl-optimization/44404
19727         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
19728         possible, use reg_overlap_mentioned_p instead.
19729
19730 2010-07-07  Duncan Sands  <baldrick@free.fr>
19731
19732         PR middle-end/41355
19733         * tree.c (build_function_type_skip_args): Copy the original type using
19734         build_distinct_type_copy rather than copy_node.
19735
19736 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
19737
19738         PR target/44850
19739         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
19740         revision 161876.
19741         (ix86_expand_prologue): Likewise.
19742         (ix86_handle_fndecl_attribute): Likewise.
19743         (ix86_asm_declare_function_name): Likewise.
19744         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19745         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19746         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
19747         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
19748         * doc/extend.texi: Likewise.
19749
19750 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
19751
19752         PR target/44844
19753         * config/i386/i386.md (rdrand<mode>): Changed to expand to
19754         retry if the carry flag isn't valid.
19755         (rdrand<mode>_1): New.
19756
19757 2010-07-07  Richard Guenther  <rguenther@suse.de>
19758
19759         PR middle-end/44790
19760         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
19761         for expanding the constant offset for MEM_REFs.
19762
19763 2010-07-07  Richard Guenther  <rguenther@suse.de>
19764
19765         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
19766         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
19767         * gimple.h (is_gimple_operand): Remove.
19768         * gimple.c (is_gimple_operand): Likewise.
19769         (walk_gimple_op): Fix wi->val_only setting for calls.
19770         * tree-cfg.c (verify_gimple_call): Fix argument validation.
19771         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
19772         invalid gimple calls.
19773
19774 2010-07-06  Jan Hubicka  <jh@suse.cz>
19775
19776         * lto-cgraph.c (output_cgraph): Add missing declaration.
19777
19778 2010-07-06  Jan Hubicka  <jh@suse.cz>
19779
19780         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
19781         partition.
19782
19783 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
19784
19785         * doc/gimple.texi (GIMPLE_DEBUG): Document.
19786         * doc/rtl.texi (Debug Information): New node.
19787         (NOTE_INSN_VAR_LOCATION): Document.
19788         (debug_insn): Likewise.
19789         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
19790
19791 2010-07-07  Jan Hubicka  <jh@suse.cz>
19792
19793         With parts by Richard Guenther.
19794
19795         PR middle-end/44813
19796         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
19797         for functions passed by reference.
19798         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
19799         in memory when passed by reference.
19800         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
19801         beggining.
19802         * ipa-split.c (split_function): Cleanup way return value is passed;
19803         handle SSA DECL_BY_REFERENCE retvals.
19804         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
19805         DECL_BY_REFERENCE is set.
19806         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
19807         find_what_p_points_to): Handle RESULT_DECL.
19808         * tree-inline.c (declare_return_variable): Get new entry_block argument;
19809         when passing by reference ensure that RESULT_DECL is gimple_val.
19810         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
19811         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
19812
19813 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
19814
19815         PR rtl-optimization/44787
19816         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
19817         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
19818
19819 2010-07-06  Jan Hubicka  <jh@suse.cz>
19820
19821         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
19822         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
19823         with body can prevail.
19824         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
19825         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
19826         * cgraph.c (cgraph_get_node_or_alias): New function.
19827         * cgraph.h (cgraph_get_node_or_alias): Declare.
19828
19829 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
19830
19831         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
19832         support.
19833         (ix86_expand_prologue): Likewise.
19834         (ix86_handle_fndecl_attribute): Likewise.
19835         (ix86_asm_declare_function_name): New function for
19836         ASM_DECLARE_FUNCTION_NAME.
19837         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
19838         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
19839         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
19840         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
19841         * doc/extend.texi: Adjust documentation about ms_hook_prologue
19842         attribute.
19843
19844 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
19845
19846         * config/i386/i386.md (immediate_operand): New mode attribute.
19847
19848         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
19849         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
19850         using P mode iterator.
19851         (pro_epilogue_adjust_stack_di_2): Rename from
19852         pro_epilogue_adjust_stack_rex64_2.
19853
19854         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
19855
19856 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
19857
19858         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
19859         through gen_mov_insv_1 function pointer.
19860         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
19861         gen_truncxf<mode>2 through gen_truncxf function pointer.
19862         (remainder<mode>3): Ditto.
19863         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
19864         (allocate_stack): Call gen_allocate_stack_worker_64 or
19865         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
19866         function pointer.
19867         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
19868         function pointer.
19869
19870 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
19871
19872         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
19873         operand constraint instead of <r><i>m.
19874
19875 2010-07-06  Richard Guenther  <rguenther@suse.de>
19876
19877         PR middle-end/44828
19878         * convert.c (convert_to_integer): Watch out for overflowing
19879         MULT_EXPR as well.
19880
19881 2010-07-05  Jan Hubicka  <jh@suse.cz>
19882
19883         * lto-streamer.c (write_symbol_vec): Rename to ...
19884         (write_symbol) ... this one; write only symbol given and when
19885         present in cache. Sanity check that what is defined is present
19886         in cgraph/varpool with body/finalized decl.
19887         (write_symbols_of_kind): Remove.
19888         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
19889         pairs to produce symtab.
19890         (produce_asm_for_decls): Update call of produce_symtab; don't do so
19891         when doing WPA streaming.
19892
19893 2010-07-05  Jan Hubicka  <jh@suse.cz>
19894
19895         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
19896         function is still available to fold into.
19897
19898 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
19899
19900         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
19901         * function.h (struct_function): Change type of local_decls field
19902         to a VEC.
19903         (add_local_decl): New function.
19904         (FOR_EACH_LOCAL_DECL): New macro.
19905         * cfgexpand.c (init_vars_expansion): Adjust for new type of
19906         cfun->local_decls.
19907         (estimated_stack_frame_size): Likewise.
19908         (expand_used_vars): Likewise.
19909         * cgraphbuild.c (build_cgraph_edges): Likewise.
19910         * function.c (instantiate_decls_1): Likewise.
19911         * ipa-struct-reorg.c (build_data_structure): Likewise.
19912         * ipa-type-escape.c (analyze_function): Likewise.
19913         * lto-streamer-in.c (input_function): Likewise.
19914         * lto-streamer-out.c (output_function): Likewise.
19915         * tree-ssa-live.c (remove_unused_locals): Likewise.
19916         * tree.c (free_lang_data_in_decl): Likewise.
19917         (find_decls_types_in_node): Likewise.
19918         * omp-low.c (remove_exit_barrier): Likewise.
19919         (expand_omp_taskreg): Likewise.
19920         (list2chain): Rename to...
19921         (vec2chain): ...this.  Adjust.
19922         * cgraphunit.c (assemble_thunk): Call add_local_decl.
19923         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
19924         * gimple-low.c (record_vars_into): Likewise.
19925         * tree-inline.c (remap_decls): Likewise.
19926         (declare_return_variable): Likewise.
19927         (declare_inline_vars): Likewise.
19928         (copy_forbidden): Adjust for new type of cfun->local_decls.
19929         (add_local_variables): New function.
19930         (expand_call_inline): Call it.
19931         (tree_function_versioning): Likewise.
19932
19933 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
19934
19935         AVX Programming Reference (June, 2010)
19936         * config/i386/cpuid.h (bit_F16C): New.
19937         (bit_RDRND): Likewise.
19938         (bit_FSGSBASE): Likewise.
19939
19940         * config/i386/i386-builtin-types.def: Add
19941         "DEF_FUNCTION_TYPE (UINT16)", function types for
19942         float16 <-> float conversions and
19943         "DEF_FUNCTION_TYPE (VOID, UINT64)".
19944
19945         * config/i386/i386-c.c (ix86_target_macros_internal): Support
19946         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
19947         OPTION_MASK_ISA_F16C.
19948
19949         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
19950         (OPTION_MASK_ISA_RDRND_SET): Likewise.
19951         (OPTION_MASK_ISA_F16C_SET): Likewise.
19952         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
19953         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
19954         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
19955         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
19956         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
19957         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
19958         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
19959         (override_options): Handle them.
19960         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
19961         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
19962         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
19963         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
19964         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
19965         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
19966         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
19967         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
19968         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
19969         (bdesc_args): Likewise.
19970         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
19971         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
19972         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
19973         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
19974         Handle non-memory store.
19975
19976         * config/i386/i386.h (TARGET_FSGSBASE): New.
19977         (TARGET_RDRND): Likewise.
19978         (TARGET_F12C): Likewise.
19979
19980         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
19981         (UNSPEC_VCVTPS2PH): Likewise.
19982         (UNSPECV_RDFSBASE): Likewise.
19983         (UNSPECV_RDGSBASE): Likewise.
19984         (UNSPECV_WRFSBASE): Likewise.
19985         (UNSPECV_WRGSBASE): Likewise.
19986         (UNSPECV_RDRAND): Likewise.
19987         (rdfsbase<mode>): Likewise.
19988         (rdgsbase<mode>): Likewise.
19989         (wrfsbase<mode>): Likewise.
19990         (wrgsbase<mode>): Likewise.
19991         (rdrand<mode>): Likewise.
19992
19993         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
19994
19995         * config/i386/immintrin.h (_rdrand_u16): New.
19996         (_rdrand_u32): Likewise.
19997         (_readfsbase_u32): Likewise.
19998         (_readfsbase_u64): Likewise.
19999         (_readgsbase_u32): Likewise.
20000         (_readgsbase_u64): Likewise.
20001         (_writefsbase_u32): Likewise.
20002         (_writefsbase_u64): Likewise.
20003         (_writegsbase_u32): Likewise.
20004         (_writegsbase_u64): Likewise.
20005         (_rdrand_u64): Likewise.
20006         (_cvtsh_ss): Likewise.
20007         (_mm_cvtph_ps): Likewise.
20008         (_mm256_cvtph_ps): Likewise.
20009         (_cvtss_sh): Likewise.
20010         (_mm_cvtps_ph): Likewise.
20011         (_mm256_cvtps_ph): Likewise.
20012
20013         * config/i386/sse.md (vcvtph2ps): New.
20014         (*vcvtph2ps_load): Likewise.
20015         (vcvtph2ps256): Likewise.
20016         (vcvtps2ph): Likewise.
20017         (*vcvtps2ph): Likewise.
20018         (*vcvtps2ph_store): Likewise.
20019         (vcvtps2ph256): Likewise.
20020
20021         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
20022
20023         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
20024
20025 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
20026
20027         PR bootstrap/44512
20028         * genenums.c (main): Output include of insn-constants.h
20029         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
20030
20031 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
20032
20033         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
20034         (override_options): Initialize it.
20035         (ix86_expand_prologue): Use it.
20036
20037 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
20038
20039         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
20040
20041 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
20042
20043         * double-int.h (fit_double_type): Remove declaration.
20044         * double-int.c (fit_double_type): Remove function.
20045         * tree.h (int_fits_type_p): Adjust prototype.
20046         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
20047         instead of fit_double_type.
20048         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
20049         instead of fit_double_type and build_int_cst_wide.
20050         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
20051         instead of fit_double_type and build_int_cst_wide.
20052         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
20053         of fit_double_type.
20054
20055 2010-07-05  Jan Hubicka  <jh@suse.cz>
20056
20057         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
20058         in_other_partition.
20059         * lto-cgraph.c (referenced_from_other_partition_p,
20060         reachable_from_other_partition_p): Use in_other_partition flags.
20061         (output_node, output_varpool_node): COMDAT nodes always have private
20062         copies and thus are never used from other partition.
20063
20064 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
20065
20066         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
20067         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
20068         * config/ia64/ia64.c Include reload.h.
20069         (ia64_memory_move_cost): New function.
20070         (TARGET_MEMORY_MOVE_COST): Define.
20071         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
20072         memory_move_cost.
20073
20074 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
20075
20076         PR middle-end/42505
20077         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
20078         comments about cost model.
20079         (try_add_cand_for):  Add second strategy for choosing initial set
20080         based on original IVs, controlled by ORIGINALP argument.
20081         (get_initial_solution): Add ORIGINALP argument.
20082         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
20083         (find_optimal_iv_set): Try two different strategies for choosing
20084         the IV set, and return the one with lower cost.
20085
20086 2010-07-05  Richard Guenther  <rguenther@suse.de>
20087
20088         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
20089
20090 2010-07-05  Richard Guenther  <rguenther@suse.de>
20091
20092         * tree.c (reference_alias_ptr_type): New function.
20093         * tree.h (reference_alias_ptr_type): Declare.
20094         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
20095         allow non-TARGET_MEM_REF new refs.
20096         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
20097         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
20098         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
20099         (create_mem_ref): Get alias pointer type.  Adjust calls to
20100         create_mem_ref_raw.
20101         (maybe_fold_tmr): Likewise.
20102         * tree-flow.h (create_mem_ref): Adjust prototype.
20103
20104 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
20105
20106         PR c++/44808
20107         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
20108         *from_p is VAR_DECL.
20109
20110 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20111
20112         * tree.h (build_call_list): Remove.
20113         * tree.c (build_call_list): Remove.
20114
20115 2010-07-05  Richard Guenther  <rguenther@suse.de>
20116
20117         * double-int.h (double_int_sub): Declare.
20118         * double-int.c (double_int_sub): New function.
20119         * dwarf2out.c (field_byte_offset): Use it.
20120         * fixed-value.c (do_fixed_add): Likewise.
20121         (do_fixed_multiply): Likewise.
20122         (do_fixed_divide): Likewise.
20123         * tree-predcom.c (add_ref_to_chain): Likewise.
20124         (determine_roots_comp): Likewise.
20125         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
20126
20127 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
20128
20129         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
20130         implementations.
20131
20132 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
20133
20134         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
20135         * arm-modes.def (CC_NOTB): Don't define.
20136         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
20137         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
20138         (LTUGEU): New code_iterator.
20139         (cnb, optab): New corresponding code_attrs.
20140         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
20141         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
20142         using LTUGEU.
20143         (addsi3_carryin_shift_<optab>): Likewise.
20144         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
20145         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
20146         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
20147         (subsi3_compare): Renamed from subsi3_compare0_c.
20148         Change CC_NOTB to CC.
20149         (arm_subsi3_insn): Allow constants for operand 0.
20150         (compare_scc peephole for eq case): New.
20151         (compare_scc splitters): Change CC_NOTB to CC.
20152
20153 2010-07-05  Richard Guenther  <rguenther@suse.de>
20154
20155         * tree-ssa-loop-im.c (for_each_index): Do not handle
20156         ALIGN_INDIRECT_REF.
20157         (gen_lsm_tmp_name): Likewise.
20158         * tree-dump.c (dequeue_and_dump): Likewise.
20159         * tree-pretty-print.c (dump_generic_node): Likewise.
20160         (op_code_prio): Likewise.
20161         (op_symbol_code): Likewise.
20162         * tree.c (staticp): Likewise.
20163         (build1_stat): Likewise.
20164         * tree.h (INDIRECT_REF_P): Likewise.
20165         * fold-const.c (maybe_lvalue_p): Likewise.
20166         (operand_equal_p): Likewise.
20167         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
20168         (ao_ref_init_from_vn_reference): Likewise.
20169         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
20170         (find_interesting_uses_address): Likewise.
20171         * dwarf2out.c (loc_list_from_tree): Likewise.
20172         * gimplify.c (gimplify_expr): Likewise.
20173         * tree-eh.c (tree_could_trap_p): Likewise.
20174         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
20175         * cfgexpand.c (expand_debug_expr): Likewise.
20176         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
20177         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
20178         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
20179         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
20180         * tree-ssa-operands.c (get_expr_operands): Likewise.
20181         * expr.c (safe_from_p): Likewise.
20182         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
20183         * tree-vect-data-refs.c (vect_setup_realignment): Build
20184         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
20185         * tree-vect-stmts.c (vectorizable_load): Likewise.
20186         * tree.def (ALIGN_INDIRECT_REF): Remove.
20187
20188 2010-07-05  Richard Guenther  <rguenther@suse.de>
20189
20190         PR tree-optimization/44784
20191         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
20192         for inserted stmts.
20193         (find_or_generate_expression): Fix SCCVN insertion check.
20194
20195 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
20196
20197         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
20198         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
20199         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
20200         directives.
20201
20202 2010-07-05  Ira Rosen  <irar@il.ibm.com>
20203
20204         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
20205         statements that are not vectorized.
20206         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
20207         in INSIDE_COST.
20208
20209 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
20210
20211         PR bootstrap/44820
20212         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
20213
20214 2010-07-05  Richard Guenther  <rguenther@suse.de>
20215
20216         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
20217         RESULT_DECLs properly.
20218
20219 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
20220
20221         PR rtl-optimization/44695
20222         * config/i386/i386.md (extract_code): Removed.
20223         (<u>divmodqi4): Likewise.
20224         (divmodqi4): New.
20225         (udivmodqi4): Likewise.
20226         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
20227         (udivmodhiqi3): Likewise.
20228
20229 2010-07-04  Jan Hubicka  <jh@suse.cz>
20230
20231         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
20232
20233 2010-07-04  Jan Hubicka  <jh@suse.cz>
20234
20235         * cgraphunit.c (init_cgraph): Only initialize dump file if it
20236         is not already initialized.
20237
20238 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20239
20240         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
20241         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
20242         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
20243         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
20244         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
20245         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
20246         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
20247         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
20248         (sync_new_nand_optab): Redefine as macros.
20249         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
20250         Delete.
20251         (direct_optab_index): New enum.
20252         (direct_optab_d): New structure.
20253         (direct_optab): New typedef.
20254         (direct_optab_table): Declare.
20255         (direct_optab_handler, set_direct_optab_handler): New functions.
20256         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
20257         (sync_lock_release_optab): New macros.
20258         * optabs.c (direct_optab_table): New variable.
20259         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
20260         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
20261         cmpstr_optab and cmpstrn_optab.
20262         (emit_conditional_move): Likewise for movcc_optab.
20263         (can_conditionally_move_p): Likewise for movcc_gen_code.
20264         (init_insn_codes): Clear direct_optab_table.
20265         (init_optabs): Don't initialize the new "direct optabs" here.
20266         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
20267         vcond_gen_code.
20268         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
20269         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
20270         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
20271         (expand_sync_operation): Likewise other sync_*_optabs.
20272         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
20273         to sync_compare_and_swap_optab.
20274         (expand_sync_lock_test_and_set): Use direct_optab_handler for
20275         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
20276         to the names of both.
20277         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
20278         cmpstr_optab and cmpstrn_optab.
20279         (expand_builtin_lock_release): Likewise sync_lock_release.
20280         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
20281         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
20282         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
20283         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
20284         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
20285         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
20286         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
20287         (sync_lock_test_and_set, sync_lock_release): Delete.
20288         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
20289         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
20290         * genopinit.c (optabs): Use set_direct_optab_handler for the new
20291         macro optabs.
20292         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
20293         the "optab" local variable.  Use direct_optab_handler for optab and
20294         sync_compare_and_swap_optab.
20295         * reload1.c (reload_in_optab, reload_out_optab): Delete.
20296         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
20297         reload_in_optab and reload_out_optab.
20298         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
20299         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
20300         * config/pa/pa.c (pa_secondary_reload): Likewise.
20301         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
20302         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
20303         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
20304         (VMSupportsCS8_builtin): Likewise.
20305
20306 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20307
20308         * optabs.h (optab_handlers): Change type of insn_code to int.
20309         (optab_handler, set_optab_handler, convert_optab_handler)
20310         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
20311         CODE_FOR_nothing".
20312         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
20313         (init_insn_codes): Zero both the above arrays.
20314         (init_optabs): Never call init_insn_codes first time around.
20315
20316 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
20317
20318         * optabs.h (optab_handler, convert_optab_handler): Turn into
20319         inline functions that return an insn code.
20320         (set_optab_handler, set_convert_optab_handler): New functions.
20321         * builtins.c: Replace optab_handler(X)->insn_code with
20322         optab_handler or set_optab_handler thoughout.  Likewise
20323         convert_optab_handler(X)->insn_code with convert_optab_handler
20324         and set_convert_optab_handler.
20325         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
20326         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
20327         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
20328         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
20329         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
20330         config/spu/spu.c: Likewise.
20331
20332 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
20333
20334         PR target/44531
20335         * config.gcc (sh*-*-*): Use regular expressions instead of
20336         the 'i' modifier for sed substitutions.
20337
20338 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
20339
20340         * gimple.c (gimple_body): Comments added.
20341
20342 2010-07-04  Richard Guenther  <rguenther@suse.de>
20343
20344         PR middle-end/44809
20345         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
20346         of an INDIRECT_REF.
20347
20348 2010-07-04  Richard Guenther  <rguenther@suse.de>
20349
20350         PR tree-optimization/44479
20351         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
20352         extra SSA name copy statements which preserves points-to
20353         information.
20354         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20355         Copy points-to information for all pointers.  Properly handle
20356         MEM_REFs.
20357         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
20358         copy statements.
20359         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
20360         dependency.
20361
20362 2010-07-04  Richard Guenther  <rguenther@suse.de>
20363
20364         PR middle-end/44785
20365         * tree-inline.c (initialize_inlined_parameters): Do not
20366         re-use pointer-map slot over remap_type call.
20367
20368 2010-07-04  Richard Guenther  <rguenther@suse.de>
20369
20370         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
20371
20372 2010-07-04  Richard Guenther  <rguenther@suse.de>
20373
20374         PR tree-optimization/44656
20375         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
20376         again after value-replacing in the defintions lhs.
20377
20378 2010-07-04  Ira Rosen  <irar@il.ibm.com>
20379             Revital Eres  <eres@il.ibm.com>
20380
20381         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
20382         Document new arguments.
20383         * doc/tm.texi: Regenerate.
20384         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
20385         Handle unaligned store.
20386         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
20387         * target.def (builtin_vectorization_cost): Add new arguments.
20388         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
20389         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
20390         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
20391         (vect_vfa_segment_size): Fix indentation.
20392         * tree-vectorizer.h (struct _vect_peel_info): New.
20393         (struct _vect_peel_extended_info): New.
20394         (struct _loop_vec_info): Add new field for peeling hash table and a
20395         macro for its access.
20396         (VECT_MAX_COST): Define.
20397         (vect_get_load_cost): Declare.
20398         (vect_get_store_cost, vect_get_known_peeling_cost,
20399         vect_get_single_scalar_iteraion_cost): Likewise.
20400         (vect_supportable_dr_alignment): Add new argument.
20401         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
20402         field.
20403         (destroy_loop_vec_info): Free peeling hash table.
20404         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
20405         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
20406         vect_analyze_slp. Fix indentation.
20407         (vect_get_single_scalar_iteraion_cost): New function.
20408         (vect_get_known_peeling_cost): Likewise.
20409         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
20410         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
20411         statement. Move outside cost calculation inside unknown peeling case.
20412         Call vect_get_known_peeling_cost for known amount of peeling.
20413         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
20414         reference to the print message of forced alignment.
20415         (vect_verify_datarefs_alignment): Update call to
20416         vect_supportable_dr_alignment.
20417         (vect_get_data_access_cost): New function.
20418         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
20419         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
20420         vect_peeling_hash_choose_best_peeling): Likewise.
20421         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
20422         to store all the accesses in the loop and find best possible access to
20423         align using peeling for known alignment case. For unknown alignment
20424         check if stores are preferred or if peeling is worthy.
20425         (vect_find_same_alignment_drs): Analyze pairs of loads too.
20426         (vect_supportable_dr_alignment): Add new argument and check aligned
20427         accesses according to it.
20428         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
20429         (cost_for_stmt): Call vect_get_stmt_cost.
20430         (vect_model_simple_cost): Likewise.
20431         (vect_model_store_cost): Call vect_get_stmt_cost. Call
20432         vect_get_store_cost to calculate the cost of the statement.
20433         (vect_get_store_cost): New function.
20434         (vect_model_load_cost): Call vect_get_stmt_cost. Call
20435         vect_get_load_cost to calculate the cost of the statement.
20436         (vect_get_load_cost): New function.
20437         (vectorizable_store): Update call to vect_supportable_dr_alignment.
20438         (vectorizable_load): Likewise.
20439         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
20440         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
20441         arguments. Handle unaligned store.
20442         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
20443         (rs6000_builtin_support_vector_misalignment): Return true for word and
20444         double word alignments for VSX.
20445         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
20446         vect_supportable_dr_alignment and builtin_vectorization_cost.
20447
20448 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20449
20450         PR target/44597
20451         * config/pa/predicates.md (prefetch_cc_operand): Remove.
20452         (prefetch_nocc_operand): Likewise.
20453         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
20454         (prefetch_20): New insn.
20455         (prefetch_cc): Remove.
20456         (prefetch_nocc): Likewise.
20457
20458 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20459
20460         * expr.c (vector_mode_valid_p): Move to c-common.c.
20461         * expr.h (vector_mode_valid_p): Do not declare here.
20462         * system.h: Poison GCC_EXPR_H in front-ends.
20463         * Makefile.in: Update dependencies.
20464
20465 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20466
20467         PR target/44705
20468         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
20469
20470 2010-07-03  Jan Hubicka  <jh@suse.cz>
20471
20472         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
20473         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
20474         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
20475         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
20476         Likewise.
20477
20478         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
20479         Update timevars.V
20480         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
20481         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
20482         TV_IPA_LTO_DECL_OUT): New.
20483         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
20484
20485 2010-07-03  Jan Hubicka  <jh@suse.cz>
20486
20487         * ipa-inline.c (update_edge_key): Break out from ...
20488         update_callers_keys): ... here;
20489         (update_callee_keys): Update only the edges from caller to callee.
20490         (update_all_calle_keys): Do what update_calle_keys did.
20491         (decide_inlining_of_small_functions): Avoid recomputing of all
20492         callees when badness increase.
20493
20494 2010-07-03  Jie Zhang  <jie@codesourcery.com>
20495
20496         * config/arm/arm.c (arm_attr_length_move_neon): New.
20497         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
20498         * config/arm/neon.md (define_mode_attr V_slen): Remove.
20499         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
20500         to compute length attribute.
20501
20502 2010-07-03  Jie Zhang  <jie@codesourcery.com>
20503
20504         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
20505         as predicate for operand 1 and remove its constraint.
20506         * config/arm/predicates.md (vfp_register_operand): New.
20507         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
20508         (*push_fp_multi): Likewise.
20509
20510 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
20511
20512         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
20513
20514 2010-07-03  Jan Hubicka  <jh@suse.cz>
20515
20516         * config/i386/i386.c (override_options): Revert accidental commit.
20517
20518 2010-07-02  Le-Chun Wu  <lcwu@google.com>
20519
20520         PR c++/44128
20521         * doc/invoke.texi: Update documentation of -Wshadow.
20522
20523 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
20524             Julian Brown  <julian@codesourcery.com>
20525             Sandra Loosemore  <sandra@codesourcery.com>
20526
20527         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
20528         comparisons.  Adjust to take both operands.
20529         (arm_select_cc_mode): Handle DImode comparisons.
20530         (arm_gen_compare_reg): Generate a scratch register for DImode
20531         comparisons which require one.  Use xor for Thumb equality checks.
20532         (arm_const_double_by_immediates): New.
20533         (arm_print_operand): Allow 'Q' and 'R' for constants.
20534         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
20535         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
20536         arm_canonicalize_comparison.
20537         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
20538         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
20539         prototype.
20540         (arm_const_double_by_immediates): Declare.
20541         * config/arm/constraints.md (Di): New constraint.
20542         * config/arm/predicates.md (arm_immediate_di_operand)
20543         (arm_di_operand, cmpdi_operand): New.
20544         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
20545         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
20546         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
20547         (cstoredi4): Handle non-Cirrus also.
20548
20549 2010-07-02  Julian Brown  <julian@codesourcery.com>
20550             Sandra Loosemore  <sandra@codesourcery.com>
20551
20552         PR target/43703
20553         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
20554         (smax<mode>3): Disable for NEON float modes when
20555         flag_unsafe_math_optimizations is false.
20556         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
20557         (*mul<mode>3_neon)
20558         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
20559         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
20560         for NEON float modes when flag_unsafe_math_optimizations is false.
20561         (quad_halves_<code>v4sf): Only enable if
20562         flag_unsafe_math_optimizations is true.
20563         * doc/invoke.texi (ARM Options): Add note about floating point
20564         vectorization requiring -funsafe-math-optimizations.
20565
20566 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
20567             Julian Brown  <julian@codesourcery.com>
20568
20569         * config/arm/neon.md (UNSPEC_VABA): Delete.
20570         (UNSPEC_VABAL): Delete.
20571         (UNSPEC_VABS): Delete.
20572         (UNSPEC_VMUL_N): Delete.
20573         (adddi3_neon): New.
20574         (subdi3_neon): New.
20575         (mul<mode>3add<mode>_neon): Make the pattern named.
20576         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
20577         (neon_vadd<mode>): Replace with define_expand, and move the remaining
20578         unspec parts...
20579         (neon_vadd<mode>_unspec): ...to this.
20580         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
20581         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
20582         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
20583         (neon_vaba<mode>): Rewrite in terms of vabd.
20584         (neon_vabal<mode>): Rewrite in terms of vabdl.
20585         (neon_vabs<mode>): Rewrite without unspec.
20586         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
20587         (*arm_subdi3): Likewise.
20588         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
20589         No_op attribute to disable assembly output checks.
20590         * config/arm/arm_neon.h: Regenerated.
20591         * doc/arm-neon-intrinsics.texi: Regenerated.
20592
20593 2010-07-02  Jan Hubicka  <jh@suse.cz>
20594
20595         * ipa-split.c (split_function): For aggregate values, set the return
20596         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
20597         *<retval> = fncall.part ().
20598         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
20599
20600 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
20601
20602         * config/arm/neon.md (UNSPEC_VAND): Delete.
20603         (UNSPEC_VBIC): Delete.
20604         (UNSPEC_VCLZ): Delete.
20605         (UNSPEC_VCNT): Delete.
20606         (UNSPEC_VEOR): Delete.
20607         (UNSPEC_VORN): Delete.
20608         (UNSPEC_VORR): Delete.
20609         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
20610         core registers too.
20611         (anddi3_neon): Likewise.
20612         (orndi3_neon): Likewise.
20613         (bicdi3_neon): Likewise.
20614         (xordi3_neon): Likewise.
20615         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
20616         rid of unspec and handle unused operand.
20617         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
20618         * config/arm/predicates.md (imm_for_neon_logic_operand):
20619         Require TARGET_NEON.
20620         (imm_for_neon_inv_logic_operand): Likewise.
20621         * config/arm/arm.md (define_split for logical_binary_operator):
20622         Disable for NEON registers.
20623         (anddi3): Add new define_expand, and rename the insn.  Disable
20624         this insn for NEON, where anddi3_neon now applies.
20625         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
20626         (iordi3): As for anddi3.
20627         (xordi3): Likewise.
20628         * config/arm/neon.ml (Vand): Split DImode variants and mark them
20629         as No_op to disable testing for exact instruction match.
20630         (Vorr): Likewise.
20631         (Veor): Likewise.
20632         (Vbic): Likewise.
20633         (Vorn): Likewise.
20634         * config/arm/arm_neon.h: Regenerated.
20635         * doc/arm-neon-intrinsics.texi: Regenerated.
20636
20637 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
20638
20639         * expr.h (emit_stack_probe): Declare.
20640         * explow.c (emit_stack_probe): Make global.
20641         (anti_adjust_stack_and_probe): Fix comments.
20642         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
20643         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20644         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20645         * config/sparc/sparc.c: Include except.h.
20646         (sparc_emit_probe_stack_range): New function.
20647         (output_probe_stack_range): Likewise.
20648         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
20649         built-in stack checking is enabled.
20650         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
20651         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
20652         (probe_stack_range): New insn.
20653
20654 2010-07-02  Richard Guenther  <rguenther@suse.de>
20655
20656         PR target/43958
20657         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
20658         for argument alignment.
20659
20660 2010-07-02  Jan Hubicka  <jh@suse.cz>
20661
20662         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
20663         walk backwards from entry_bb to check only those basic block of header
20664         that might lead to execution of split part.
20665         (consider_split) ... here.
20666         (find_return_bb): Allow assignment in return BB.
20667         (find_retval): New.
20668         (split_function): Fix name of cloned function; take care of updating
20669         return value in return_bb containing move.
20670
20671 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
20672
20673         PR target/44771
20674         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
20675         used variable insn.
20676
20677 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
20678
20679         * implicit-zee.c (combine_reaching_defs): Fix long lines.
20680         (is_set_with_extension_DI): Delete.
20681         (struct zero_extend_info): New structure.
20682         (add_removable_zero_extend): New function.
20683         (find_removable_zero_extends): Use note_stores to find SETs.
20684         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
20685
20686 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
20687
20688         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
20689         is_miss_rate_acceptable. Pull total_positions computation
20690         out of the loops.  Early return if miss_positions exceeds
20691         the acceptable threshold.
20692         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
20693         is_miss_rate_acceptable after renaming of compute_miss_rate.
20694
20695 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
20696
20697         PR middle-end/44576
20698         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
20699         of 1000) for miss rate if the address diference is greater than or
20700         equal to the cache line size (the two reference will never hit the
20701         same cache line).
20702
20703 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
20704
20705         PR target/42835
20706         * config/arm/arm-modes.def (CC_NOTB): New mode.
20707         * config/arm/arm.c (get_arm_condition_code): Handle it.
20708         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
20709         * config/arm/arm.md (subsi3_compare0_c): New pattern.
20710         (compare_scc): Now a define_and_split.  Add a number of extra
20711         splitters before it.
20712
20713         PR target/42172
20714         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
20715         and ZERO_EXTEND.
20716         (arm_rtx_costs_1): Likewise.
20717         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
20718         * config/arm/arm.md (is_arch6): New attribute.
20719         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
20720         extendqisi2): Tighten the code somewhat, avoiding invalid
20721         RTL to occur in the expander patterns.
20722         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
20723         (thumb1_zero_extendhisi2_v6): Delete.
20724         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
20725         (thumb1_extendhisi2_v6): Delete.
20726         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
20727         (thumb1_extendqisi2_v6): Delete.
20728         (zero_extendhisi2 for register input splitter): New.
20729         (zero_extendqisi2 for register input splitter): New.
20730         (thumb1_extendhisi2 for register input splitter): New.
20731         (extendhisi2 for register input splitter): New.
20732         (extendqisi2 for register input splitter): New.
20733         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
20734         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
20735         and add support for a register alternative requiring a split.
20736         (thumb1_zero_extendqisi2): Likewise.
20737         (arm_zero_extendqisi2): Likewise.
20738         (arm_extendhisi2): Likewise.
20739         (arm_extendqisi2): Likewise.
20740
20741 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
20742
20743         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
20744         instead of an unspec.
20745         (neon_expand_vector_init): Likewise.
20746         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
20747         (UNSPEC_VDUP_LANE): Delete.
20748         (UNSPEC VDUP_N): Delete.
20749         (UNSPEC_VGET_HIGH): Delete.
20750         (UNSPEC_VGET_LANE): Delete.
20751         (UNSPEC_VGET_LOW): Delete.
20752         (UNSPEC_VMVN): Delete.
20753         (UNSPEC_VSET_LANE): Delete.
20754         (V_double_vector_mode): New.
20755         (vec_set<mode>_internal): Make code emitted match that for the
20756         corresponding intrinsics.
20757         (vec_setv2di_internal): Likewise.
20758         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
20759         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
20760         (neon_vset_lane<mode>): Combine double and quad patterns and
20761         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
20762         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
20763         (neon_vdup_n<mode>): Rewrite RTL without unspec.
20764         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
20765         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
20766         with neon_vdup_lanev2di, adjusting the pattern from the latter
20767         to be predicable for consistency.
20768         (neon_vdup_lane<mode>_internal): New.
20769         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
20770         to avoid using an unspec.
20771         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
20772         (neon_vdup_lanev2di): Turn into a define_expand.
20773         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
20774         (neon_vget_high<mode>): Replace with....
20775         (neon_vget_highv16qi): New pattern using canonical RTL.
20776         (neon_vget_highv8hi): Likewise.
20777         (neon_vget_highv4si): Likewise.
20778         (neon_vget_highv4sf): Likewise.
20779         (neon_vget_highv2di): Likewise.
20780         (neon_vget_low<mode>): Replace with....
20781         (neon_vget_lowv16qi): New pattern using canonical RTL.
20782         (neon_vget_lowv8hi): Likewise.
20783         (neon_vget_lowv4si): Likewise.
20784         (neon_vget_lowv4sf): Likewise.
20785         (neon_vget_lowv2di): Likewise.
20786
20787         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
20788         test for this emitting vmov.
20789         (Vset_lane): Likewise.
20790         (Vdup_n): Likewise.
20791         (Vmov_n): Likewise.
20792
20793         * doc/arm-neon-intrinsics.texi: Regenerated.
20794
20795 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
20796
20797         * config/arm/neon.md (vec_extractv2di): Correct error in register
20798         numbering to reconcile with neon_vget_lanev2di.
20799
20800 2010-07-02  Richard Guenther  <rguenther@suse.de>
20801
20802         * tree-ssa-structalias.c (pt_solution_set_var): New function.
20803         * tree-ssa-alias.h (pt_solution_set_var): Declare.
20804         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
20805         points-to information.
20806
20807 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
20808
20809         * config/s390/s390.c (override_options): Adopt prefetching
20810         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
20811
20812 2010-07-02  Jan Hubicka  <jh@suse.cz>
20813
20814         * df-problems.c (df_kill_notes): Do not collect dead  notes.
20815         (df_set_note): Just call add_reg_note.
20816         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
20817         df_create_unused_note): Do not deal with lists of old notes.
20818         (df_note_bb_compute): Likewise.
20819
20820 2010-07-02  Richard Guenther  <rguenther@suse.de>
20821
20822         * tree-ssa-structalias.c (find_func_aliases): Handle
20823         pointer alignment via BIT_AND_EXPR.
20824         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
20825
20826 2010-07-02  Richard Guenther  <rguenther@suse.de>
20827
20828         * tree-data-ref.c (initialize_data_dependence_relation): Handle
20829         mismatching number of dimensions properly.
20830
20831 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20832
20833         PR target/44707
20834         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
20835         (lo_sum (high ...) ...) patterns generated by earlier passes.
20836
20837 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20838
20839         * doc/install.texi (Prerequisites): Document Perl requirement on
20840         Solaris 2.
20841         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
20842
20843 2010-07-02  Richard Guenther  <rguenther@suse.de>
20844
20845         PR middle-end/44777
20846         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
20847
20848 2010-07-02  Jan Hubicka  <jh@suse.cz>
20849
20850         PR middle-end/44706
20851         * predict.c (predict_paths_for_bb): Handle case when control dependence
20852         BB has only abnormal edges.
20853
20854 2010-07-02  Richard Guenther  <rguenther@suse.de>
20855
20856         PR tree-optimization/44748
20857         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
20858         the embedded conversion in MEM_REFs.
20859
20860 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
20861
20862         * reload.c: Include toplev.h.
20863         * recog.c:  Likewise.
20864         * Makefile.in: Adjust dependencies.
20865
20866 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
20867
20868         PR debug/44694
20869         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
20870         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
20871
20872 2010-07-01  Richard Guenther  <rguenther@suse.de>
20873
20874         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
20875         types for offsets.
20876
20877 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
20878
20879         PR target/44732
20880         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
20881         Fix argument types.
20882
20883 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
20884
20885         PR target/44727
20886         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20887         Make sure operand 0 dies.
20888
20889 2010-07-01  Richard Guenther  <rguenther@suse.de>
20890
20891         PR middle-end/42834
20892         PR middle-end/44468
20893         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
20894         * doc/generic.texi (References to storage): Document MEM_REF.
20895         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
20896         (print_call_name): Likewise.
20897         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
20898         (build_simple_mem_ref_loc): New function.
20899         (mem_ref_offset): Likewise.
20900         * tree.h (build_simple_mem_ref_loc): Declare.
20901         (build_simple_mem_ref): Define.
20902         (mem_ref_offset): Declare.
20903         * fold-const.c: Include tree-flow.h.
20904         (operand_equal_p): Handle MEM_REF.
20905         (build_fold_addr_expr_with_type_loc): Likewise.
20906         (fold_comparison): Likewise.
20907         (fold_unary_loc): Fold
20908         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
20909         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
20910         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
20911         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
20912         (ptr_deref_may_alias_ref_p_1): Likewise.
20913         (ao_ref_base_alias_set): Properly differentiate base object for
20914         offset and TBAA.
20915         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
20916         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
20917         (indirect_refs_may_alias_p): Likewise.
20918         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
20919         chasing code.
20920         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
20921         (call_may_clobber_ref_p_1): Likewise.
20922         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
20923         * expr.c (expand_assignment): Handle MEM_REF.
20924         (store_expr): Handle MEM_REFs from STRING_CSTs.
20925         (store_field): If expanding a MEM_REF of a non-addressable
20926         decl use bitfield operations.
20927         (get_inner_reference): Handle MEM_REF.
20928         (expand_expr_addr_expr_1): Likewise.
20929         (expand_expr_real_1): Likewise.
20930         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
20931         * alias.c (ao_ref_from_mem): Handle MEM_REF.
20932         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
20933         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
20934         (dr_analyze_indices): Likewise.
20935         (dr_analyze_alias): Likewise.
20936         (object_address_invariant_in_loop_p): Likewise.
20937         * gimplify.c (mark_addressable): Handle MEM_REF.
20938         (gimplify_cond_expr): Build MEM_REFs.
20939         (gimplify_modify_expr_to_memcpy): Likewise.
20940         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
20941         (gimple_fold_indirect_ref): Adjust.
20942         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
20943         * tree.def (MEM_REF): New tree code.
20944         * tree-dfa.c: Include toplev.h.
20945         (get_ref_base_and_extent): Handle MEM_REF.
20946         (get_addr_base_and_unit_offset): New function.
20947         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
20948         * gimple-fold.c (may_propagate_address_into_dereference): Handle
20949         MEM_REF.
20950         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
20951         accesses if the array has just one dimension.  Remove always true
20952         parameter.  Do not require type compatibility here.
20953         (maybe_fold_offset_to_component_ref): Remove.
20954         (maybe_fold_stmt_indirect): Remove.
20955         (maybe_fold_reference): Remove INDIRECT_REF handling.
20956         Fold back to non-MEM_REF.
20957         (maybe_fold_offset_to_address): Simplify.  Deal with type
20958         mismatches here.
20959         (maybe_fold_reference): Likewise.
20960         (maybe_fold_stmt_addition): Likewise.  Also handle
20961         &ARRAY + I in addition to &ARRAY[0] + I.
20962         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
20963         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
20964         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
20965         * tree-ssa.c (useless_type_conversion_p): Make most pointer
20966         conversions useless.
20967         (warn_uninitialized_var): Handle MEM_REF.
20968         (maybe_rewrite_mem_ref_base): New function.
20969         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
20970         to SSA form.
20971         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
20972         INDIRECT_REF handling.
20973         (copy_tree_body_r): Handle MEM_REF.
20974         * gimple.c (is_gimple_addressable): Adjust.
20975         (is_gimple_address): Likewise.
20976         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
20977         invariant base are invariant.
20978         (is_gimple_min_lval): Adjust.
20979         (is_gimple_mem_ref_addr): New function.
20980         (get_base_address): Handle MEM_REF.
20981         (count_ptr_derefs): Likewise.
20982         (get_base_loadstore): Likewise.
20983         * gimple.h (is_gimple_mem_ref_addr): Declare.
20984         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
20985         * tree-cfg.c (verify_address): New function, split out from ...
20986         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
20987         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
20988         INDIRECT_REFs.
20989         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
20990         INDIRECT_REF.  Allow conversions.
20991         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
20992         a register does not change its size.
20993         (verify_types_in_gimple_reference): Verify MEM_REF.
20994         (verify_gimple_assign_single): Disallow INDIRECT_REF.
20995         Handle MEM_REF.
20996         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
20997         New.
20998         (mark_address_taken): Handle MEM_REF.
20999         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
21000         (get_asm_expr_operands): Pass opf_not_non_addressable.
21001         (get_expr_operands): Handle opf_[not_]non_addressable.
21002         Handle MEM_REF.  Remove INDIRECT_REF handling.
21003         * tree-vrp.c (check_array_ref): Handle MEM_REF.
21004         (search_for_addr_array): Likewise.
21005         (check_array_bounds): Likewise.
21006         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
21007         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
21008         (ref_always_accessed_p): Likewise.
21009         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
21010         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
21011         Handle MEM_REF.
21012         * cgraphbuild.c (mark_load): Properly check for NULL result
21013         from get_base_address.
21014         (mark_store): Likewise.
21015         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
21016         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
21017         handling for MEM_REF.
21018         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
21019         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
21020         * builtins.c (stabilize_va_list_loc): Use the function ABI
21021         valist type if we couldn't canonicalize the argument type.
21022         Always dereference with the canonical va-list type.
21023         (maybe_emit_free_warning): Handle MEM_REF.
21024         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
21025         memmove to memcpy.
21026         * builtins.c (fold_builtin_memory_op): Use ref-all types
21027         for all memcpy foldings.
21028         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
21029         (build_outer_var_ref): Likewise.
21030         (scan_omp_1_op): Likewise.
21031         (lower_rec_input_clauses): Likewise.
21032         (lower_lastprivate_clauses): Likewise.
21033         (lower_reduction_clauses): Likewise.
21034         (lower_copyprivate_clauses): Likewise.
21035         (expand_omp_atomic_pipeline): Likewise.
21036         (expand_omp_atomic_mutex): Likewise.
21037         (create_task_copyfn): Likewise.
21038         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
21039         Remove old union trick.  Initialize constant offsets.
21040         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
21041         INDIRECT_REF.  Init base_alias_set properly.
21042         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
21043         (vn_reference_fold_indirect): Adjust for MEM_REFs.
21044         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
21045         for ARRAY_REFs.
21046         (may_insert): Remove.
21047         (visit_reference_op_load): Do not test may_insert.
21048         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
21049         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
21050         a field to store the constant offset this op applies.
21051         (run_scc_vn): Adjust prototype.
21052         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
21053         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
21054         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
21055         bother about volatile qualifiers on pointers.
21056         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
21057         * tree-ssa-loop-ivopts.c
21058         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
21059         (strip_offset_1): Likewise.
21060         (find_interesting_uses_address): Replace INDIRECT_REF handling with
21061         MEM_REF handling.
21062         (get_computation_cost_at): Likewise.
21063         * ipa-pure-const.c (check_op): Handle MEM_REF.
21064         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
21065         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
21066         and constants.
21067         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
21068         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
21069         (eliminate_local_variables_1): Likewise.
21070         (create_call_for_reduction_1): Likewise.
21071         (create_loads_for_reductions): Likewise.
21072         (create_loads_and_stores_for_name): Likewise.
21073         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
21074         (ssa_accessed_in_tree): Handle MEM_REF.
21075         (ssa_accessed_in_assign_rhs): Likewise.
21076         (update_type_size): Likewise.
21077         (analyze_accesses_for_call_stmt): Likewise.
21078         (analyze_accesses_for_assign_stmt): Likewise.
21079         (transform_access_sites): Likewise.
21080         (transform_allocation_sites): Likewise.
21081         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
21082         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
21083         not handle INDIRECT_REF.
21084         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
21085         (cond_store_replacement): Likewise.
21086         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
21087         MEM_REF, no not handle INDIRECT_REFs.
21088         (insert_into_preds_of_block): Properly initialize avail.
21089         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
21090         for ARRAY_REFs.  Properly handle reference lookups that
21091         require a bit re-interpretation.
21092         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
21093         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
21094         (build_ref_for_offset_1): Remove.
21095         (build_ref_for_offset): Build MEM_REFs.
21096         (gate_intra_sra): Disable for now.
21097         (sra_ipa_modify_expr): Handle MEM_REF.
21098         (ipa_early_sra_gate): Disable for now.
21099         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
21100         MEM_REF handling.
21101         (disqualify_base_of_expr): Likewise.
21102         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
21103         MEM_REF handling.
21104         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
21105         Use mem_ref_offset.  Remove bogus folding.
21106         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
21107         (make_fancy_name_1): Add support for MEM_REF.
21108         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
21109         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
21110         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
21111         (compute_complex_ancestor_jump_func): Likewise.
21112         (ipa_analyze_virtual_call_uses): Likewise.
21113         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
21114         INDIRECT_REF folding with more generalized MEM_REF folding.
21115         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
21116         (forward_propagate_addr_into_variable_array_index): Also handle
21117         &ARRAY + I in addition to &ARRAY[0] + I.
21118         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
21119         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
21120         creates assignments with overlap.
21121         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
21122         (get_frame_field): Likewise.
21123         (get_nonlocal_debug_decl): Likewise.
21124         (convert_nonlocal_reference_op): Likewise.
21125         (struct nesting_info): Add mem_refs pointer-set.
21126         (create_nesting_tree): Allocate it.
21127         (convert_local_reference_op): Insert to be folded mem-refs.
21128         (fold_mem_refs): New function.
21129         (finalize_nesting_tree_1): Perform defered folding of mem-refs
21130         (free_nesting_tree): Free the pointer-set.
21131         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
21132         (vectorizable_load): Likewise.
21133         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
21134         (propagate_with_phi): Likewise.
21135         * tree-object-size.c (addr_object_size): Handle MEM_REFs
21136         instead of INDIRECT_REFs.
21137         (compute_object_offset): Handle MEM_REF.
21138         (plus_stmt_object_size): Handle MEM_REF.
21139         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
21140         for &MEM_REF.
21141         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
21142         (symbol_marked_for_renaming): Likewise.
21143         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
21144         (fold-const.o): Add $(TREE_FLOW_H).
21145         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
21146         (find_func_clobbers): Likewise.
21147         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
21148         (decompose_access): Likewise.
21149         (replace_field_acc): Likewise.
21150         (replace_field_access_stmt): Likewise.
21151         (insert_new_var_in_stmt): Likewise.
21152         (get_stmt_accesses): Likewise.
21153         (reorg_structs_drive): Disable.
21154         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
21155         (ix86_canonical_va_list_type): Likewise.
21156
21157 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
21158
21159         PR other/44566
21160         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
21161         * target.def (struct gcc_target): Replace enum reg_class with
21162         reg_class_t in hook argument / return types.
21163         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
21164         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
21165         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
21166         * targhooks.h (default_branch_target_register_class): Likewise.
21167         (default_ira_cover_classes, default_secondary_reload): Likewise.
21168         (default_memory_move_cost, default_register_move_cost): Likewise.
21169         * targhooks.c (default_branch_target_register_class): Likewise.
21170         (default_ira_cover_classes, default_secondary_reload): Likewise.
21171         (default_memory_move_cost, default_register_move_cost): Likewise.
21172         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
21173         * bt-load.c (branch_target_load_optimize): Likewise.
21174         * ira.c (setup_cover_and_important_classes): Likewise.
21175         * ira-costs.c (copy_cost): Likewise.
21176         * reload1.c (emit_input_reload_insns): Likewise.
21177         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
21178         * config/frv/frv.c (frv_secondary_reload): Likewise.
21179         * config/s390/s390.c (s390_secondary_reload): Likewise.
21180         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
21181         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
21182         (ix86_register_move_cost): Likewise.
21183         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
21184         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
21185         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
21186         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
21187         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
21188         (rs6000_ira_cover_classes): Likewise.
21189         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
21190         * config/picochip/picochip-protos.h (picochip_secondary_reload):
21191         Likewise.
21192         * config/pa/pa.c (pa_secondary_reload): Likewise.
21193         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
21194         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
21195         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
21196         * doc/tm.texi: Regenerate.
21197
21198 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
21199
21200         PR bootstrrap/44726
21201         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
21202         use.
21203         (build_alias_set_optimal_p): Likewise.
21204         (build_base_obj_set_for_drs): Likewise.
21205
21206 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
21207
21208         * target.def: Remove comment about licensing problems of function
21209         declarations.
21210
21211         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
21212         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
21213         * doc/tm.texi: Regenerate.
21214
21215         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
21216         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
21217
21218         * target.def (enum_va_list_p): Use DEFHOOK.
21219         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
21220         Rename ptype to ptree.
21221         * doc/tm.texi: Regenerate.
21222
21223         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
21224         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
21225         * doc/tm.texi: Regenerate.
21226
21227         * target.def (memory_move_cost): Use DEFHOOK.
21228         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
21229         Rename regclass AKA class to rclass.
21230         * doc/tm.texi: Regenerate.
21231
21232         * target.def (pragma_parse): Use DEFHOOK.
21233         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
21234         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
21235         * doc/tm.texi: Regenerate.
21236
21237         * target.def (pass_by_reference): Use DEFHOOK.
21238         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
21239         * doc/tm.texi: Regenerate.
21240
21241         * target.def (resolve_overloaded_builtin): Rename params to arglist.
21242         Use DEFHOOK.
21243         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
21244         * doc/tm.texi: Regenerate.
21245
21246         * target.def (return_pops_args): Use DEFHOOK.
21247         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
21248         Rename stack-size to size.
21249         * doc/tm.texi: Regenerate.
21250
21251         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
21252         last-sched_cycle to last_clock, cur_cycle to clock.
21253         * doc/tm.texi.in: Use @hook.
21254         * doc/tm.texi: Regenerate.
21255
21256         * target.def (print_operand, print_operand_address): Update comment.
21257         (print_operand_punct_valid_p): Likewise.
21258
21259 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21260
21261         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
21262         to rtl.h.
21263         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
21264         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
21265         * rtl-error.h: New.
21266         * regrename.c: Do not include toplev.h. Include rtl-error.h.
21267         * rtl-error.c: Likewise.
21268         * reload.c: Likewise.
21269         * recog.c:  Likewise.
21270         * sel-sched.c: Likewise.
21271         * function.c: Likewise.
21272         * reg-stack.c: Likewise.
21273         * cfgrtl.c: Likewise.
21274         * reload1.c: Likewise.
21275         * final.c: Include rtl-error.
21276         * Makefile.in: Adjust dependencies.
21277
21278 2010-06-30  Jan Hubicka  <jh@suse.cz>
21279
21280         PR middle-end/PR44706
21281         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
21282         to return the value.
21283
21284 2010-06-30  Michael Matz  <matz@suse.de>
21285
21286         PR bootstrap/44699
21287         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
21288         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
21289         a gimple reg, attach the original VDEF to the last store in the
21290         sequence.
21291
21292 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
21293
21294         PR other/44034
21295         * config/darwin.c (darwin_override_options): Use renamed
21296         targetm.asm_out.emit_unwind_label.
21297
21298 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
21299
21300         PR tree-optimization/39799
21301         * tree-inline.c (remap_ssa_name): Initialize variable only if
21302         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
21303
21304 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
21305
21306         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
21307
21308 2010-06-30  Richard Guenther  <rguenther@suse.de>
21309
21310         PR target/44722
21311         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
21312         against oscillation with reverse peephole2.
21313
21314 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
21315
21316         PR target/44721
21317         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
21318         Fix last commit.
21319
21320 2010-06-30  Nick Clifton  <nickc@redhat.com>
21321
21322         * config/rx/rx-modes.def: New file.
21323         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
21324         (CC_REGNUM): Define.
21325         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
21326         register.
21327         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
21328         (SELECT_CC_MODE): Define.
21329         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
21330         (reg:CC CC_REG) instead of (cc0).
21331         (attr "cc"): Delete.
21332         (cbranchsi4): Do not split compare and branch here. Instead move
21333         it to...
21334         (cbranchsi4_<code>): ... here.  New patterns.
21335         (cmpsi): Call rx-compare_redundant to find out if it is necessary
21336         to emit the compare instruction.
21337         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
21338         cc_status flags.
21339         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
21340         FIRST_PSEUDO_REGNUM.
21341         (rx_expand_prologue, rx_expand_epilogue): Likewise.
21342         (rx_notice_update_cc): Delete.
21343         (rx_cc_modes_compatible): New function.
21344         (flags_needed_for_conditional): New function.
21345         (flags_from_mode): New function.
21346         (rx_compare_redundant): New function - scans backwards through
21347         insn list to find out if condition flags are already set correctly.
21348         (TARGET_CC_MODES_COMPATIBLE): Define.
21349         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
21350
21351         * config/rx/rx.h (BRANCH_COST): Define.
21352         (REGISTER_MOVE_COST): Define.
21353         * config/rx/predicates (rx_source_operand): Allow all constant types.
21354         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
21355         (tstsi4): New pattern.
21356         * config/rx/rx.c (rx_memory_move_cost): Define.
21357         (TARGET_MEMORY_MOVE_COST): Define.
21358
21359 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21360
21361         * tree.h (block_may_fallthru): Declare here.
21362         * tree-flow.h (block_may_fallthru): Do not declare here.
21363         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
21364         bitmap.h
21365         * Makefile.in (c-typeck.o): Update dependencies.
21366
21367 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
21368
21369         PR debug/44694
21370         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
21371         * cselib.c (cfa_base_preserved_regno): New static variable.
21372         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
21373         of REGNO (cfa_base_preserved_val->locs->loc).
21374         (cselib_preserve_cfa_base_value): Add regno argument, set
21375         cfa_base_preserved_regno to it.
21376         (cselib_invalidate_regno): Allow removal of registers other than
21377         cfa_base_preserved_regno from cfa_base_preserved_val.
21378         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
21379         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
21380         of MEM addresses, if not on LHS.
21381         (reverse_op): Don't add reverse ops for cfa_base_rtx.
21382         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
21383
21384 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
21385
21386         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
21387         static variables.
21388         (peep2_buf_position): New static function.
21389         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
21390         peephole2_optimize): Use it.
21391         (peep2_attempt, peep2_update_life): New static functions, broken out
21392         of peephole2_optimize.
21393         (peep2_fill_buffer): New static function.
21394         (peephole2_optimize): Change the main loop to try to fill the buffer
21395         with the maximum number of insns before matching them against
21396         peepholes.  Use a forward scan.  Remove special case for targets with
21397         conditional execution.
21398         * genrecog.c (change_state): Delete dead code.
21399         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
21400         Rewrite so as not to expect the second insn to have had a peephole
21401         applied yet.
21402
21403 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
21404
21405         * genhooks.c (emit_findices): Cast field precision to int.
21406         (emit_documentation): Likewise.
21407
21408 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
21409
21410         PR tree-optimization/43801
21411         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
21412         if old_decl was DECL_ONE_ONLY.
21413
21414         PR debug/44668
21415         * dwarf2out.c (add_accessibility_attribute): New function.
21416         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
21417         instead of adding DW_AT_accessibility manually.
21418         (gen_enumeration_type_die, gen_struct_or_union_type_die,
21419         gen_typedef_die): Use it.
21420
21421 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21422
21423         * vmsdbgout.c (full_name): Just output the file name if not native.
21424
21425 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21426
21427         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
21428         (funcnam_table): New static table.
21429         (funcnum_table): New static table.
21430         (write_rtnbeg): Write value saved in funcnum_table.
21431         (write_rtnend): Write value saved in funcnum_table.
21432         (vmsdbgout_begin_function): Save current function info in
21433         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
21434         (vmsdbgout_finish): Iterate over funcnum_table.
21435
21436 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21437
21438         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
21439         (vmsdbgout_type_decl): Declare
21440         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
21441         (FUNC_EPILOGUE_LABEL): New macro
21442         (vmsdbgout_begin_epilogue): New function.
21443         (vmsdbgout_type_decl): New function.
21444
21445 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21446
21447         * vmsdbg.h: Update copyright.
21448
21449 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
21450
21451         * vmsdbg.h (DST_K_TBG): New DST constant.
21452         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
21453         (write_modbeg): Cast module_language to avoid warning.
21454         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
21455
21456 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21457
21458         PR other/44034
21459         * target.def, doc/tm.texi.in, genhooks.c: New files.
21460         * target.h: Instead of defining individual hook members,
21461         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
21462         include target.def.
21463         * target-def.h: Instead of defining individual hook initializers,
21464         include target-hooks-def.h.
21465         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
21466         targetm.live_on_entry -> targetm.extra_live_on_entry
21467         targetm.sched.md_finish ->targetm.sched.finish
21468         targetm.sched.md_init -> targetm.sched.init
21469         targetm.sched.md_init_global -> targetm.sched.init_global
21470         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
21471         targetm.asm_out.except_table_label ->
21472           targetm.asm_out.emit_except_table_label
21473         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
21474         targetm.target_help -> targetm.help
21475         targetm.vectorize.builtin_support_vector_misalignment ->
21476           targetm.vectorize.support_vector_misalignment
21477         targetm.file_start_app_off -> targetm.asm_file_start_app_off
21478         targetm.file_start_file_directive ->
21479          targetm.asm_file_start_file_directive
21480         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
21481         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
21482         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
21483         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
21484           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
21485         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
21486           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
21487         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
21488         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
21489         * Makefile.in (TARGET_H): Depend on target.def.
21490         (TARGET_DEF_H): Depend on target-hooks-def.h.
21491         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
21492         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
21493         * doc/tm.texi: Regenerate.
21494
21495         * Makefile.in (s-tm-texi): Remove stray tab / rule.
21496
21497         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
21498         (targetm.sched.init): Likewise.
21499
21500 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
21501
21502         PR bootstrap/44713
21503         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
21504         (function_arg_advance_32): Const-ify TYPE parameter.
21505         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
21506         (ix86_function_arg_advance): Change type of NAMED to bool.
21507         (function_arg_32): Const-ify CUM and TYPE parameters.
21508         (function_arg_64): Likewise.  Change type of NAMED to bool.
21509         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
21510         to bool.
21511         (ix86_function_arg): Change type of NAMED to bool.
21512         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
21513         last argument as a bool.
21514
21515 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21516
21517         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
21518         (OVERRIDE_OPTIONS): Add note of obsolescence.
21519         Replace references with references to TARGET_OPTION_OVERRIDE.
21520         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
21521          the macro).
21522         * targhooks.c (default_target_option_override): New function.
21523         * targhooks.h (default_target_option_override): Declare.
21524         * target.h (struct gcc_target): Add override member to
21525         target_option member.
21526         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
21527         targetm.target_option.override call.
21528         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
21529         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
21530
21531 2010-06-29  Jan Hubicka  <jh@suse.cz>
21532
21533         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
21534
21535 2010-06-29  Jan Hubicka  <jh@suse.cz>
21536
21537         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
21538         unreachable.
21539         (rebuild_frequencies): New function.
21540         * predict.h (rebuild_frequencies): Declare.
21541         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
21542         entry block and edge reaching new_entry.
21543         (tree_function_versioning): When doing partial cloning, rebuild
21544         frequencies when done.
21545         * passes.c (execute_function_todo): Use rebild_frequencies.
21546
21547 2010-06-29  Richard Guenther  <rguenther@suse.de>
21548
21549         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
21550         * tree-flow.h (enum noalias_state): Remove.
21551         (struct var_ann_d): Remove noalias_state member.
21552
21553 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
21554
21555         PR target/43902
21556         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
21557         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
21558         (maddhidi4): Likewise.
21559
21560         Revert parts of the change for PR25130.
21561         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
21562         MEM_ALIAS_SET.
21563
21564 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
21565
21566         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
21567         targetm.calls.function_incoming_arg, and
21568         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
21569         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
21570         * target.h (struct gcc_target): Add function_arg_advance,
21571         function_arg, and function_incoming_arg fields.
21572         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
21573         (TARGET_FUNCTION_INCOMING_ARG): Define.
21574         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
21575         and TARGET_FUNCTION_INCOMING_ARG.
21576         * targhooks.h (default_function_arg_advance): Declare.
21577         (default_function_arg, default_function_incoming_arg): Declare.
21578         * targhooks.c (default_function_arg_advance): New function.
21579         (default_function_arg, default_function_incoming_arg): New function.
21580         * config/i386/i386.c (function_arg_advance): Rename to...
21581         (ix86_function_arg_advance): ...this.  Make static.
21582         (function_arg): Rename to...
21583         (ix86_function_arg): ...this.  Make static.
21584         (TARGET_FUNCTION_ARG_ADVANCE): Define.
21585         (TARGET_FUNCTION_ARG): Define.
21586         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
21587         (FUNCTION_ARG): Delete.
21588         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
21589         (function_arg): Delete prototype.
21590
21591 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
21592
21593         * reginfo.c (init_reg_sets_1): Adjust comments.
21594         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
21595         * calls.c (prepare_call_address): Likewise.
21596         (emit_call_1): Use targetm.calls.return_pops_args.
21597         (expand_call): Likewise.
21598         * function.c (assign_parms): Likewise.
21599         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
21600         * target.h (struct gcc_target) [struct calls]: Add
21601         return_pops_args field.
21602         * targhooks.h (default_return_pops_args): Declare.
21603         * targhooks.c (default_return_pops_args): Define.
21604         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
21605         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
21606         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
21607         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
21608         documentation.
21609         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
21610         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
21611         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
21612         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
21613         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
21614         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
21615         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
21616         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
21617         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
21618         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
21619         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
21620         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
21621         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
21622         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
21623         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
21624         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
21625         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
21626         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
21627         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
21628         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
21629         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
21630         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
21631         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
21632         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
21633         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
21634         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
21635         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
21636         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
21637         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
21638         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
21639         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
21640         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
21641         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
21642         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
21643         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
21644         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
21645         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
21646         * config/i386/i386.c (ix86_return_pops_args): Make static.
21647         Constify arguments.
21648         (TARGET_RETURN_POPS_ARGS): Define.
21649         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
21650         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
21651         (TARGET_RETURN_POPS_ARGS): Define.
21652         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
21653         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
21654         (TARGET_RETURN_POPS_ARGS): Define.
21655
21656 2010-06-29  Richard Guenther  <rguenther@suse.de>
21657
21658         PR middle-end/44667
21659         * tree-inline.c (initialize_inlined_parameters): Make sure
21660         to remap the inlined parameter variable substitutions types.
21661
21662 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
21663
21664         PR rtl-optimization/44659
21665         * combine.c (make_compound_operation) <SUBREG>: Do not return the
21666         result of force_to_mode if it partially re-expanded the compound.
21667
21668 2010-06-28  Jan Hubicka  <jh@suse.cz>
21669
21670         PR middle-end/44671
21671         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
21672         RESULT_DECL.
21673
21674 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
21675
21676         * double-int.h (force_fit_type_double): Remove declaration.
21677         * double-int.c (force_fit_type_double): Move to tree.c.
21678         * tree.h (force_fit_type_double): Declare.
21679         * tree.h (force_fit_type_double): Moved from double-int.c. Use
21680         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
21681         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
21682         * convert.c (convert_to_pointer): Adjust call to
21683         force_fit_type_double.
21684         * tree-vrp.c (extract_range_from_assert,
21685         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
21686         * fold-const.c: Update comment.
21687         (int_const_binop, fold_convert_const_int_from_int,
21688         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
21689         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
21690         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
21691         round_up_loc): Adjust call to force_fit_type_double.
21692
21693 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21694
21695         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
21696
21697 2010-06-28  Martin Jambor  <mjambor@suse.cz>
21698
21699         * tree-sra.c (convert_callers): New parameter, change fndecls of
21700         recursive calls.
21701         (modify_function): Pass the old decl to convert_callers.
21702
21703 2010-06-28  Martin Jambor  <mjambor@suse.cz>
21704
21705         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
21706         ipa_check_create_node_params and ipa_initialize_node_params with
21707         checking asserts they are not necessary.
21708
21709 2010-06-28  Jan Hubicka  <jh@suse.cz>
21710
21711         PR tree-optimization/44687
21712         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
21713
21714 2010-06-28  Martin Jambor  <mjambor@suse.cz>
21715
21716         PR c++/44535
21717         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
21718         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
21719         instead of BINFO_BASE_BINFO.
21720
21721 2010-06-28  Michael Matz  <matz@suse.de>
21722
21723         PR middle-end/44592
21724         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
21725         proper VDEF chain for intermediate stores in the sequence.
21726
21727 2010-06-28  Jan Hubicka  <jh@suse.cz>
21728
21729         PR tree-optimization/44357
21730         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
21731         uninlinable functions.
21732
21733 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
21734
21735         * config.gcc (powerpc*-*-*): Handle titan.
21736         * config/rs6000/rs6000.c (titan_cost): New costs.
21737         (rs6000_override_options): Add "titan" to processor_target_table.
21738         Add Titan to branch alignment logic.
21739         Correctly set rs6000_cost for titan.
21740         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
21741         * config/rs6000/titan.md: New file.
21742         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
21743
21744 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
21745
21746         * tree-browser.c (TB_history_stack): Convert to a VEC.
21747         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
21748         (TB_history_prev): Likewise.
21749
21750 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
21751
21752         * vec.h (vec_heap_free): Add parentheses around free.
21753
21754 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
21755
21756         * system.h: Poison GCC_EXCEPT_H for front-end files.
21757
21758         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
21759         langhook.
21760         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
21761         Define to NULL by default.
21762         * except.h: Define GCC_EXCEPT_H.
21763         (doing_eh): Remove prototype.
21764         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
21765         (lang_protect_cleanup_actions): Remove.
21766         * except.c (lang_protect_cleanup_actions): Remove.
21767         (doing_eh): Remove.
21768         (gen_eh_region): Don't check doing_eh here.
21769         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
21770         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
21771         instead of lang_protect_cleanup_actions.
21772         * omp-low.c (maybe_catch_exception): Likewise.
21773         * Makefile.in: Update dependencies.
21774
21775 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
21776
21777         * cgraph.h (struct varpool_node): new used_from_object_file flag.
21778         (struct cgraph_local_info): new used_from_object_file flag.
21779         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
21780         (cgraph_clone_node): initialize used_from_object_file.
21781         (cgraph_create_virtual_clone): initialize used_from_object_file.
21782         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
21783         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
21784         when compiling with -fwhole-program.
21785         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
21786         internal resolver.
21787         * ipa.c (function_and_variable_visibility): Set externally_visible
21788         flag of varpool_node if used_from_object_file flag is set.
21789         (cgraph_externally_visible_p): check used_from_object_file flag.
21790         * doc/invoke.texi (-fwhole-program option): Change description of
21791         externally_visible attribute accordingly.
21792         * doc/extend.texi (externally_visible): Ditto.
21793
21794 2010-06-27  Jan Hubicka  <jh@suse.cz>
21795
21796         * params.def (max-inline-insns-auto): Default to 40.
21797         * doc/invoke.texi (max-inline-insns-auto): Document the change.
21798
21799 2010-06-27  Jan Hubicka  <jh@suse.cz>
21800
21801         PR middle-end/44671
21802         PR middle-end/44686
21803         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
21804         signature change.
21805         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
21806         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
21807
21808 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
21809
21810         * target.h (struct gcc_target): Add register_move_cost field.
21811         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
21812         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
21813         * targhooks.c (default_register_move_cost): New function.
21814         * targhooks.h (default_register_move_cost): Declare function.
21815         * defaults.h (REGISTER_MOVE_COST): Delete.
21816         * ira-int.h (ira_register_move_cost): Update comment.
21817         * ira.c (ira_register_move_cost): Update comment.
21818         * reload.h (register_move_cost): Declare.
21819         * reginfo.c (register_move_cost): New function.
21820         (move_cost): Update comment.
21821         (init_move_cost, memory_move_secondary_cost): Replace
21822         REGISTER_MOVE_COST with register_move_cost.
21823         * postreload.c (reload_cse_simplify_set): (Ditto.).
21824         * reload.c (find_valid_class, find_reloads): (Ditto.).
21825         * reload1.c (choose_reload_regs): (Ditto.).
21826         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
21827         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
21828         * doc/md.texi (can_create_pseudo_p): Update documentation.
21829
21830         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
21831         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
21832         * config/i386/i386.h (ix86_memory_move_cost): Make static.
21833         (TARGET_MEMORY_MOVE_COST): Define.
21834
21835         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
21836         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
21837         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
21838         (TARGET_MEMORY_MOVE_COST): Define.
21839
21840 2010-06-27  Richard Guenther  <rguenther@suse.de>
21841
21842         PR tree-optimization/44683
21843         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
21844         false edge from the inverted condition.
21845
21846 2010-06-27  Richard Guenther  <rguenther@suse.de>
21847
21848         PR middle-end/44684
21849         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
21850         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
21851         for register LHS.  Or non-store assignments.
21852
21853 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
21854
21855         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
21856         (sparc_emit_set_const64): Likewise.  Remove disabled code.
21857         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
21858         (sparc_emit_set_const64): Likewise.
21859
21860 2010-06-26  Catherine Moore  <clm@codesourcery.com>
21861
21862         * config/mips/mips.md (alu_type): New attribute.
21863         (type): Infer type from alu_type.
21864         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
21865         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
21866         *subsi3_extended, negsi2, negdi2, *low<mode>,
21867         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
21868         xor<mode>3, *nor<mode>3,
21869         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
21870         *zero_extendhi_truncqi):  Set alu_type instead of type.
21871
21872 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
21873
21874         * config/alpha/alpha.c (alpha_need_linkage): Adjust
21875         splay_tree_new_ggc call.
21876         (alpha_use_linkage): Likewise.
21877
21878 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
21879
21880         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
21881         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
21882         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
21883         (static_specs): Remove switches_need_spaces.
21884         (process_command, do_self_spec): Hardcode handling "-o" instead of
21885         checking switches_need_spaces.
21886         * system.h (SWITCHES_NEED_SPACES): Poison.
21887
21888 2010-06-26  Richard Guenther  <rguenther@suse.de>
21889
21890         PR tree-optimization/44393
21891         * tree-loop-distribution.c (generate_loops_for_partition): Fix
21892         stmt removal and VOP renaming.
21893         (generate_memset_zero): Remove redundant stmt updating.
21894         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
21895         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
21896
21897 2010-06-26  Jan Hubicka  <jh@suse.cz>
21898
21899         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
21900         edges comming from header are equivalent.
21901         (visit_bb): Handle PHIs correctly.
21902         * tree-inline.c (copy_phis_for_bb): Be able to copy
21903         PHI from entry edge.
21904         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
21905
21906 2010-06-26  Richard Guenther  <rguenther@suse.de>
21907
21908         PR middle-end/44674
21909         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
21910         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
21911
21912 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
21913
21914         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
21915         add_infile, alloc_switch): New.
21916         (process_command): Remove variable lang_n_infiles.  Process
21917         options in a single pass.  Use new functions for allocating
21918         infiles and switches arrays.  Properly skip operands of
21919         -Xpreprocessor and -Xassembler.
21920
21921 2010-06-26  Jan Hubicka  <jh@suse.cz>
21922
21923         PR middle-end/44671
21924         * cgraphunit.c (cgraph_function_versioning): Remove wrong
21925         cgraph_make_decl_local call; fix typo copying RTL data.
21926
21927 2010-06-25  DJ Delorie  <dj@redhat.com>
21928
21929         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
21930         (m32c_output_aligned_common): Likewise.
21931         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
21932         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
21933         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
21934         (m32c_register_pragmas): Register it.
21935         * config/m32c/m32c.c (m32c_get_pragma_address): New.
21936         (m32c_insert_attributes): Set #pragma address decls volatile.
21937         (pragma_entry_eq): New.
21938         (pragma_entry_hash): New.
21939         (m32c_note_pragma_address): New.
21940         (m32c_get_pragma_address): New.
21941         (m32c_output_aligned_common): New.
21942         * doc/extend.texi: Document the new pragma.
21943
21944         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
21945         also.
21946         * config/m32c/predicates.md (m32c_any_operand): Check the code
21947         instead of memory_operand so as to allow matching volatile MEMs.
21948         (m32c_nonimmediate_operand): Likewise.
21949         (mra_operand): Allow volatiles.
21950
21951 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
21952
21953         PR debug/44610
21954         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
21955         address if the offset is unknown.
21956
21957 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
21958
21959         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
21960         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
21961         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
21962         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
21963         to ia64_start_function. Invoke it.
21964         * config/ia64/ia64.c (ia64_start_function): Call new function
21965         dwarf2out_vms_debug_main_pointer.
21966
21967 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
21968
21969         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
21970         statements computing the true predicate.
21971
21972 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
21973
21974         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
21975         to boolean_true_node.
21976         (reset_bb_predicate): New.
21977         (predicate_bbs): Call reset_bb_predicate.
21978
21979 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
21980
21981         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
21982         (tree_if_conversion): Returns true when something has been changed.
21983         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
21984         changed something.
21985
21986 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
21987
21988         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
21989         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
21990         * tree-if-conv.c: Include dbgcnt.h.
21991         (tree_if_conversion): Use if_conversion_tree to count the number of
21992         if-convertible loops.
21993
21994 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
21995
21996         * common.opt (fprefetch-loop-arrays): Re-define
21997         -fprefetch-loop-arrays as a tri-state option with the initial
21998         value of -1.
21999         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
22000         pass only when flag_prefetch_loop_arrays > 0.
22001         * toplev.c (process_options): Note that, with tri-states,
22002         flag_prefetch_loop_arrays>0 means prefetching is enabled.
22003         * config/i386/i386.c (override_options): Enable prefetching at -O3
22004         for a set of CPUs that sw prefetching is helpful.
22005         (software_prefetching_beneficial_p): New.  Return TRUE if software
22006         prefetching is beneficial for the given CPU.
22007
22008 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22009
22010         PR rtl-optimization/44326
22011         * implicit-zee.c (find_removable_zero_extends): Replace
22012         INSN_P with NONDEBUG_INSN_P.
22013
22014 2010-06-25  Martin Jambor  <mjambor@suse.cz>
22015
22016         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
22017         (struct ipa_node_params): Removed the modification_analysis_done flag.
22018         (ipa_is_param_modified): Removed.
22019         (ipa_analyze_node): Declare.
22020         (ipa_compute_jump_functions): Remove declaration.
22021         (ipa_count_arguments): Likewise.
22022         (ipa_detect_param_modifications): Likewise.
22023         (ipa_analyze_params_uses): Likewise.
22024         * ipa-prop.c (struct param_analysis_info): New type.
22025         (visit_store_addr_for_mod_analysis): Removed.
22026         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
22027         moved down in the file.
22028         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
22029         (ipa_count_arguments): Made static.
22030         (mark_modified): New function.
22031         (is_parm_modified_before_call): New function.
22032         (compute_pass_through_member_ptrs): New parameter parms_info, call
22033         is_parm_modified_before_call instead of ipa_is_param_modified.
22034         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
22035         it to compute_pass_through_member_ptrs.
22036         (ipa_compute_jump_functions): New parameter parms_info, pass it to
22037         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
22038         on the callee if it is analyzed.  Made static.
22039         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
22040         is_parm_modified_before_call instead of ipa_is_param_modified.
22041         (ipa_analyze_call_uses): New parameter parms_info, pass it to
22042         ipa_analyze_indirect_call_uses.
22043         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
22044         ipa_analyze_call_uses.
22045         (ipa_analyze_params_uses): New parameter parms_info, pass it to
22046         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
22047         (ipa_analyze_node): New function.
22048         (ipa_print_node_params): Do not dump the modified flag.
22049         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
22050         it.  Do not stream the modified parameter flag.
22051         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
22052         it.  Do not stream the modified parameter flag.
22053         * ipa-cp.c (ipcp_analyze_node): Removed.
22054         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
22055         with only a call to ipa_analyze_node.
22056         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
22057         node with only a call to ipa_analyze_node.
22058
22059 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22060
22061         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
22062
22063 2010-06-25  Jan Hubicka  <jh@suse.cz>
22064
22065         * tree-pass.h (pass_split_functions): Declare.
22066         * opts.c (decode_options): Enable function splitting at -O2
22067         * timevar.def (TV_IPA_FNSPLIT): New macro.
22068         * ipa-split.c: New file.
22069         * common.opt (-fpartial-inlining): New flag.
22070         * Makefile.in (ipa-split.o): New object file.
22071         * passes.c (init_optimization_passes): Add ipa-split.
22072         * params.def (partial-inlining-entry-probability): New parameters.
22073         * doc/invoke.texi (-fpartial-inlining): New.
22074
22075 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22076
22077         PR 44665
22078         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
22079         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
22080         (gimplify_expr): Likewise.
22081
22082 2010-06-25  Martin Jambor  <mjambor@suse.cz>
22083
22084         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
22085         statements instead of bailing out on them.
22086         (ipa_analyze_indirect_call_uses): Do not require that loads from the
22087         parameter are in the same BB as the condition.  Update comments.
22088
22089 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
22090
22091         PR middle-end/43866
22092         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
22093         true or always false, return NULL_TREE.
22094         (tree_unswitch_single_loop): Optimize conditions even when reaching
22095         max-unswitch-level parameter.  If num > 0, optimize first all conditions
22096         using entry checks, then do still reachable block discovery and consider
22097         only conditions in still reachable basic blocks in the loop.
22098
22099         PR tree-optimization/44539
22100         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
22101         the call doesn't have LHS, but has VDEF.
22102
22103 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
22104
22105         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
22106         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
22107         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
22108         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
22109         * system.h (MODIFY_TARGET_NAME): Poison.
22110
22111 2010-06-25  Alan Modra  <amodra@gmail.com>
22112
22113         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
22114         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
22115         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
22116         CMODEL_LARGE as default.
22117         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
22118         (offsettable_ok_by_alignment): Delete.
22119         (rs6000_emit_move): Remove mcmodel=medium optimization.
22120
22121 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
22122
22123         With large parts from Jim Wilson:
22124         PR target/43902
22125         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
22126         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
22127         * optabs.c (optab_for_tree_code): Likewise.
22128         (expand_widen_pattern_expr): Likewise.
22129         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
22130         out of execute_optimize_widening_mul.
22131         (convert_plusminus_to_widen): New function.
22132         (execute_optimize_widening_mul): Use the two new functions.
22133         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
22134         Remove code to generate widening multiply-accumulate.  Add support
22135         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
22136         * gimple-pretty-print.c (dump_ternary_rhs): New function.
22137         (dump_gimple_assign): Call it when appropriate.
22138         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
22139         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
22140         (expand_gimple_stmt_1): Likewise.
22141         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
22142         WIDEN_MULT_MINUS_EXPR.
22143         * tree-ssa-operands.c (get_expr_operands): Likewise.
22144         * tree-inline.c (estimate_operator_cost): Likewise.
22145         * gimple.c (extract_ops_from_tree_1): Renamed from
22146         extract_ops_from_tree.  Add new arg for a third operand; fill it.
22147         (gimple_build_assign_stat): Support operations with three operands.
22148         (gimple_build_assign_with_ops_stat): Likewise.
22149         (gimple_assign_set_rhs_from_tree): Likewise.
22150         (gimple_assign_set_rhs_with_ops_1): Renamed from
22151         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
22152         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
22153         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
22154         WIDEN_MULT_MINUS_EXPR.
22155         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
22156         (extract_ops_from_tree_1): Adjust declaration.
22157         (gimple_assign_set_rhs_with_ops_1): Likewise.
22158         (gimple_build_assign_with_ops): Pass NULL for last operand.
22159         (gimple_build_assign_with_ops3): New macro.
22160         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
22161         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
22162         functions.
22163         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
22164         (verify_gimple_assign): Call it.
22165         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
22166         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
22167         functions for dealing with three-operand statements.
22168         * tree.c (commutative_ternary_tree_code): New function.
22169         * tree.h (commutative_ternary_tree_code): Declare it.
22170         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
22171         ternary statements.
22172         (gimple_assign_nonzero_warnv_p): Likewise.
22173         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
22174         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
22175         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
22176         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
22177         (struct hashtable_expr): New member ternary in the union.
22178         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
22179         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
22180         (iterative_hash_hashable_expr): Likewise.
22181         (print_expr_hash_elt): Handle EXPR_TERNARY.
22182         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
22183         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
22184         statements.  Handle GIMPLE_TERNARY_RHS.
22185
22186 2010-06-25  Jan Hubicka  <jh@suse.cz>
22187
22188         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
22189
22190 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
22191
22192         PR c/44517
22193         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
22194         parameters are not good.
22195         (c_parser_parameter_declaration): Error unknown type name if the type
22196         name can't start declaration specifiers.
22197
22198 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
22199
22200         * gcc.c (translate_options): Don't mention +e in comment.
22201         (process_command): Don't handle +e specially.
22202
22203 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
22204
22205         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
22206
22207         * ira-build.c (merge_hard_reg_conflicts): New function.
22208         (create_cap_allocno, copy_info_to_removed_store_destinations,
22209         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
22210         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
22211         (remove_unnecessary_allocnos, remove_low_level_allocnos)
22212         copy_nifo_to_removed_store_destination): Use them.
22213         * ira-lives.c (make_hard_regno_born): New function, split out of
22214         make_regno_born.
22215         (make_allocno_born): Likewise.
22216         (make_hard_regno_dead): New function, split out of make_regno_dead.
22217         (make_allocno_dead): Likewise.
22218         (inc_register_pressure): New function, split out of set_allocno_live.
22219         (dec_register_pressure): New function, split out of clear_allocno_live.
22220         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
22221         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
22222         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
22223         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
22224         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
22225         mark_pseudo_regno_live.
22226         (process_bb_node_lives): Use mark_pseudo_regno_live,
22227         make_hard_regno_born and make_allocno_dead.
22228         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
22229         set_allocno_live, clear_allocno_live): Delete functions.
22230
22231         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
22232         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
22233         functions.
22234         (ira_flattening): Use ira_parent_allocno.
22235         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
22236         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
22237
22238         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
22239         statement.
22240
22241         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
22242         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
22243         minmax_set_iter_cond, minmax_set_iter_next,
22244         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
22245         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
22246         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
22247         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
22248         uses changed.
22249
22250         * ira-int.h (struct live_range, live_range_t): Renamed from struct
22251         ira_allocno_live_range and allocno_live_range_t; all uses changed.
22252         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
22253         All uses changed.
22254
22255 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
22256
22257         * thumb2.md (thumb2_tlobits_cbranch): Delete.
22258         (peephole2 to convert zero_extract/compare of single bit to
22259          lshift/compare): New.
22260
22261 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
22262
22263         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
22264         recursive call and call to 'int_const_binop'.
22265         (build_range_check, fold_cond_expr_with_comparison, unextend,
22266         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
22267         multiple_of_p): Adjust call to const_binop.
22268
22269 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
22270
22271         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
22272         determine size of XFmode operand.
22273         (XFmode extended DFmode push splitter): Ditto.
22274         (XFmode extended SFmode push splitter): Ditto.
22275
22276 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
22277
22278         PR target/44588
22279         * config/i386/i386.md (extract_code): New.
22280         (<u>divmodqi4): Likewise.
22281         (divmodhiqi3): Likewise.
22282         (udivmodhiqi3): Likewise.
22283         (<u>divqi3): Remvoved.
22284
22285 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
22286
22287         PR middle-end/44492
22288         * recog.h (struct recog_data): Add is_asm field.
22289         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
22290         present in constraints of inline-asm operand and memory operand
22291         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
22292         (extract_insn): Initialize recog_data.is_asm.
22293         * doc/md.texi (Constraints): Document operand side-effect rules.
22294
22295 2010-06-24  Andi Kleen  <ak@linux.intel.com>
22296
22297         * c-parser.c (c_parser_conditional_expression): Call
22298         warn_for_omitted_condop.
22299         * doc/invoke.texi: Document omitted condop warning.
22300
22301 2010-06-24  Nick Clifton<nickc@redhat.com>
22302
22303         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
22304         insn in the sequence is a jump insn before setting its label.
22305
22306 2010-06-24  Alan Modra  <amodra@gmail.com>
22307
22308         * collect2.c (main): Match exactly --version and --help.
22309
22310 2010-06-24  DJ Delorie  <dj@redhat.com>
22311
22312         * config/m32c/m32c-pragma.c: Don't include rtl.h.
22313
22314 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
22315
22316         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
22317         using X87MODEF mode iterator.
22318         (pushsf splitter): Macroize splitter using P mode iterator.
22319         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
22320         mode iterator.
22321
22322         (*movxf_internal): Rename from *movxf_integer.
22323         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
22324         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
22325         (*movdf_internal): Rename from *movdf_integer.
22326         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
22327         (*movsf_internal): Rename from *movdf_1.
22328
22329 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
22330
22331         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
22332         (const_gimple_seq_node): Removed typedefs.
22333
22334         * gimple.h (gimple_seq_node_d, gimple_seq_node)
22335         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
22336
22337 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
22338
22339         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
22340         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
22341         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
22342         and CODE_FOR_vec_extract_lo_v4df.
22343
22344         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
22345         Changed to define_insn_and_split.
22346         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
22347         (vec_extract_lo_v16hi): Likewise.
22348         (vec_extract_lo_v32qi): Likewise.
22349         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
22350         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
22351
22352 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
22353
22354         PR target/44640
22355         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
22356         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
22357         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
22358         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
22359         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
22360
22361         PR target/44640
22362         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
22363
22364         PR other/44644
22365         * df-core.c (struct df): Rename to df_d.
22366         * df.h (struct df): Likewise.
22367         * dse.h (struct df): Remove forward declaration.
22368         * recog.h (struct insn_data): Rename to:
22369         (struct_insn_data_d).  Adjusted all users.
22370
22371 2010-06-23  Arnaud Charlet  <charlet@adacore.com
22372
22373         PR ada/22220
22374         * doc/install.texi: Update requirements to build GNAT.
22375
22376 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
22377
22378         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
22379         enum type.
22380         (m68k_sched_attr_opx_type): Remove unreachable return.
22381         (m68k_sched_attr_opy_type): Likewise.
22382         (m68k_sched_attr_size): Likewise.
22383         (sched_get_opxy_mem_type): Likewise.
22384         (m68k_sched_attr_op_mem): Likewise.
22385
22386 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
22387
22388         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
22389         new statement and adjust VDEF only if necessary.  Remove superfluous
22390         call to maybe_clean_or_replace_eh_stmt.
22391         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
22392         copy the flags.
22393         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
22394         * tree-inline.c (copy_bb): ...and not there.
22395
22396 2010-06-22  Cary Coutant  <ccoutant@google.com>
22397
22398         * dwarf2out.c (is_nested_in_subprogram): New function.
22399         (should_move_die_to_comdat): Use it.
22400         (copy_ancestor_tree): Don't mark DIEs here.
22401         (copy_decls_walk): Start walk from root of newly-added tree;
22402         mark DIEs here instead.
22403
22404 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
22405
22406         * config/i386/i386.md (unit): Also check sseishft1.
22407
22408 2010-06-22  Jan Hubicka  <jh@suse.cz>
22409
22410         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
22411         enabled.
22412
22413 2010-06-22  Jan Hubicka  <jh@suse.cz>
22414
22415         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
22416         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
22417         Return true if something changed.
22418         * df.h (df_confluence_function_n): Return bool.
22419         * df-core.c (df_worklist_propagate_forward,
22420         df_worklist_propagate_backward): Track changes and ages.
22421         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
22422         track ages.
22423         * dse.c (dse_confluence_n): Return always true.
22424
22425 2010-06-22  Jan Hubicka  <jh@suse.cz>
22426
22427         * bitmap.c (bitmap_clear_bit): Micro optimize.
22428
22429 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
22430
22431         * config/i386/i386.md (SWI1248x): New mode iterator.
22432         (SWI48x): Ditto.
22433         (SWI12): Ditto.
22434         (SWI24): Ditto.
22435
22436         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
22437         SWI1248x mode iterator.
22438         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
22439         using SWI124 mode iterator.
22440         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
22441         mode iterator.
22442         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
22443         *pushdi2_prologue_rex64 using P mode iterator.
22444         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
22445         using SWI48 mode iterator.
22446         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
22447         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
22448         using SWI1248x mode iterator.
22449         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
22450         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
22451         SWI48 mode iterator.
22452         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
22453         iterator.
22454         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
22455         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
22456         SWI12 mode iterator.
22457         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
22458         SWI12 mode iterator.
22459         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
22460         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
22461         SWI24 mode iterator.
22462         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
22463         SWI48 mode iterator.
22464         (mov<mode>_insn_1): New expander.
22465         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
22466         using SWI48x mode iterator.
22467
22468         (*movoi_internal_avx): Rename from *movoi_internal.
22469         (*movti_internal_rex64): Rename from *movti_rex64.
22470         (*movti_internal_sse): Rename from *movti_sse.
22471         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
22472         (*movdi_internal): Rename from *movdi_2.
22473         (*movsi_internal): Rename from *movsi_1.
22474         (*movhi_internal): Rename from *movhi_1.
22475         (*movqi_internal): Rename from *movqi_1.
22476
22477         (insv): Update the call to gen_movsi_insv_1 for rename.
22478         * config/i386/i386.c (promote_duplicated_reg): Ditto.
22479
22480 2010-06-22  Jan Hubicka  <jh@suse.cz>
22481
22482         * passes.c (execute_function_todo): Move call of statistics_fini_pass
22483         to ...
22484         (execute_todo) ... this one.
22485
22486 2010-06-22  Alan Modra  <amodra@gmail.com>
22487
22488         PR target/44364
22489         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
22490         * caller-save.c (insert_restore, insert_save): Use non-validate
22491         form of adjust_address.
22492
22493 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22494
22495         PR target/39690
22496         * config/pa/pa.c (override_options): Disable
22497         -freorder-blocks-and-partition.
22498
22499 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
22500
22501         PR target/44615
22502         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
22503
22504         * config/i386/i386.md (type): Add sseishft1
22505
22506         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
22507         (ppro_insn_load): Likewise.
22508         (ppro_insn_store): Likewise.
22509         (ppro_insn_both): Likewise.
22510
22511         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
22512         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
22513         for type.
22514         (*vec_extractv2di_1_avx): Likewise.
22515         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
22516         type.  Remove atom_unit.
22517         (*vec_extractv2di_1_sse2): Likewise.
22518
22519 2010-06-21  DJ Delorie  <dj@redhat.com>
22520
22521         * diagnostic.h (diagnostic_classification_change_t): New.
22522         (diagnostic_context): Add history and push/pop list.
22523         (diagnostic_push_diagnostics): Declare.
22524         (diagnostic_pop_diagnostics): Declare.
22525         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
22526         from pragmas in a history chain instead of the global table.
22527         (diagnostic_push_diagnostics): New.
22528         (diagnostic_pop_diagnostics): New.
22529         (diagnostic_report_diagnostic): Scan history chain to find state
22530         of diagnostics as of the diagnostic location.
22531         * opts.c (set_option): Pass UNKNOWN_LOCATION to
22532         diagnostic_classify_diagnostic.
22533         (enable_warning_as_error): Likewise.
22534         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
22535         use in the history chain.
22536         * doc/extend.texi: Document pragma GCC diagnostic changes.
22537
22538 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
22539
22540         * dwarf2out.c (add_linkage_name): New function.  Don't add
22541         anything to DW_TAG_member DIEs.
22542         (add_name_and_src_coords_attributes): Use it.
22543         (gen_variable_die): Call it for C++ static data members if
22544         specification is DW_TAG_member.
22545
22546         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
22547         C++ char16_t and char32_t.
22548
22549         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
22550         * genattrtab.c: Include vecprim.h.
22551         (cached_attrs, cached_attr_count, attrs_seen_once,
22552         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
22553         attrs_cached_after): New variables.
22554         (find_attrs_to_cache): New function.
22555         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
22556         (write_test_expr): Add attrs_cached argument, return it too,
22557         attempt to cache non-const attributes used more than once in
22558         a single case handling.
22559         (write_attr_get): Use find_attrs_to_cache, for caching candidates
22560         emit cached_* variables.  Adjust write_attr_set callers.
22561         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
22562         to find attributes that should be cached in this block.  Adjust
22563         write_test_expr callers.
22564         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
22565         callers.
22566         (make_automaton_attrs): Adjust write_test_expr caller.
22567
22568         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
22569         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
22570         (make_automaton_attrs): If find_tune_attr returns non-NULL,
22571         write separate internal_dfa_insn_code_* and insn_default_latency_*
22572         functions for each attribute's value and emit init_sched_attrs
22573         function and function pointers.
22574         * genattr.c (const_attrs, reservations): New variables.
22575         (gen_attr): Add const attributes to const_attrs vector.
22576         (check_tune_attr, find_tune_attr): New functions.
22577         (main): Add reservations to reservations vector.  If find_tune_attr
22578         returns true, add prototype for init_sched_attrs and make
22579         internal_dfa_insn_code and insn_default_latency function pointers,
22580         otherwise define init_sched_attrs as dummy macro.
22581         * cfgexpand.c: Include insn-attr.h.
22582         (gimple_expand_cfg): Call init_sched_attrs.
22583
22584         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
22585
22586         PR target/44575
22587         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
22588         va_arg from a set of register save slots into a temporary,
22589         if the container is bigger than type size, do the copying
22590         using smaller mode or using memcpy.
22591
22592         PR bootstrap/44426
22593         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
22594         prototype.
22595         (sel_print_to_dot): Remove macro.
22596         (sel_print): Likewise.  New prototype.
22597         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
22598         (sel_print): New function.
22599
22600 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22601
22602         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
22603         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
22604
22605 2010-06-21  Nick Clifton  <nickc@redhat.com>
22606
22607         * config/rx/rx.h (PTRDIFF_TYPE): Define.
22608         (SMALL_REGISTER_CLASS): Define (to zero).
22609         (PRINT_OPERAND): Delete.
22610         (PRINT_OPERAND_ADDRESS): Delete.
22611         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
22612         (rx_print_operand_address): Delete prototype.
22613         * config/rx/rx.c (rx_print_operand): Make static.
22614         Allow %H and %L to handle CONST_DOUBLEs.
22615         (rx_print_operand_address): Make static.
22616         (rx_gen_move_template): Rename local variable 'template' to
22617         out_template.
22618         (rx_function_arg): Do not pass unknown sized objects in registers.
22619         (TARGET_PRINT_OPERAND): Define.
22620         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22621
22622 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
22623
22624         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
22625
22626 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
22627
22628         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
22629         stack-alignment for simple leaf-functions.
22630
22631 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
22632
22633         * doc/install.texi: Document bootstrap-lto.
22634
22635 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
22636
22637         PR debug/44248
22638         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
22639         (input_function): Drop them here, if VTA is disabled.
22640
22641 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
22642
22643         PR target/44546
22644         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
22645         New predicate.
22646         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
22647         ix86_swapped_fp_comparsion_operator instead of
22648         ix86_fp_comparison_operator.
22649
22650         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
22651         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
22652         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
22653         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
22654         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
22655         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
22656
22657 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
22658
22659         PR other/32998
22660         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
22661         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
22662         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
22663         (decode_cmdline_option): Update for this return value.  Set
22664         orig_option_with_args_text field.  Set arg field for unknown
22665         options.  Make static.
22666         (decode_cmdline_options_to_array): New.
22667         (prune_options): Update handling of find_opt return value.
22668         * opts.c (read_cmdline_option): Take decoded option.  Return void.
22669         (read_cmdline_options): Take decoded options.
22670         (decode_options): Add parameters for decoded options.  Use
22671         decode_cmdline_options_to_array.  Use decoded options for -O
22672         scan.  Use integral_argument for -O parameters.  Update call to
22673         read_cmdline_options.
22674         (enable_warning_as_error): Update handling of find_opt return value.
22675         * opts.h: Update comment on unknown options.
22676         (struct cl_decoded_option): Update comments on opt_index and arg.
22677         Add orig_option_with_args_text.
22678         (decode_cmdline_option): Remove.
22679         (decode_cmdline_options_to_array): Declare.
22680         (decode_options): Update prototype.
22681         * toplev.c (save_argv): Remove.
22682         (save_decoded_options, save_decoded_options_count): New.
22683         (read_integral_parameter): Remove.
22684         (print_switch_values): Use decoded options.
22685         (toplev_main): Don't set save_argv.  Update call to decode_options.
22686         * toplev.h (read_integral_parameter): Remove.
22687         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
22688
22689 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
22690
22691         PR target/44072
22692         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
22693         immediate.
22694         * constraints.md (Pw, Px): New constraints.
22695         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
22696
22697 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
22698
22699         * config/i386/sse.md (fma4modesuffixf4): Removed.
22700         (ssemodesuffixf2s): Likewise.
22701         (ssemodesuffixf4): Likewise.
22702         (ssemodesuffixf2c): Likewise.
22703         (ssescalarmodesuffix2s): Likewise.
22704         (avxmodesuffixf2c): Likewise.
22705         (ssemodesuffix): New.
22706         (ssescalarmodesuffix): Likewise.
22707         Update patterns with ssemodesuffix and ssescalarmodesuffix.
22708
22709 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
22710
22711         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
22712
22713 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22714
22715         * stor-layout.c (debug_rli): Remove unused local variables.
22716
22717 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
22718
22719         PR rtl-optimization/40900
22720         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
22721         original expression for later reuse.
22722         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
22723         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
22724
22725 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
22726
22727         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
22728         double_int_fits_in_uhwi_p): Implement as static inline.
22729         (double_int_xor): New inline function.
22730         (double_int_lrotate, double_int_rrotate, double_int_max,
22731         double_int_umax, double_int_smax, double_int_min, double_int_umin,
22732         double_int_smin): Declare.
22733         (lrotate_double, rrotate_double): Remove declaration.
22734         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
22735         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
22736         (double_int_lrotate, double_int_rrotate, double_int_max,
22737         double_int_umax, double_int_smax, double_int_min, double_int_umin,
22738         double_int_smin): New function.
22739         * fold-const.c (int_const_binop): Clean up, use double_int_*
22740         functions.
22741         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
22742         double_int_* and immed_double_int_const functions.
22743
22744 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
22745
22746         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
22747         * function.c (types_used_by_cur_var_decl): Likewise.
22748         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
22749
22750 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
22751
22752         * tree.h (record_layout_info): Change type of pending_statics field
22753         to a VEC.
22754         * stor-layout.c (start_record_layout): Store NULL into
22755         pending_statics.
22756         (debug_rli): Call debug_vec_tree instead of debug_tree.
22757         (place_field): Likewise.
22758         (finish_record_layout): Likewise.
22759
22760 2010-06-18  Alan Modra  <amodra@gmail.com>
22761
22762         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
22763
22764 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22765
22766         PR target/43740
22767         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
22768         for SET source operand from SET destination operand.
22769
22770 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
22771
22772         PR rtl-optimization/39871
22773         * reload1.c (init_eliminable_invariants): For flag_pic, disable
22774         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
22775         (function_invariant_p): Rule out a plus of frame or arg pointer with
22776         a SYMBOL_REF.
22777         * ira.c (find_reg_equiv_invariant_const): Likewise.
22778
22779 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
22780
22781         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
22782         print_operand_address and puts to output the operand for CONST.
22783
22784 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
22785
22786         PR debug/44572
22787         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
22788         hook.
22789
22790 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22791
22792         * v850-protos.h (print_operand): Delete.
22793         (print_operand_address): Delete.
22794         * v850.h (PRINT_OPERAND): Delete.
22795         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22796         (PRINT_OPERAND_ADDRESS): Delete.
22797         * v850.c (print_operand_address): Rename to...
22798         (v850_print_operand_address): ...this.  Make static. Call
22799         v850_print_operand.
22800         (print_operand): Rename to...
22801         (v850_print_operand): ...this.  Make static.  Call
22802         v850_print_operand_address.
22803         (v850_print_operand_punct_valid_p): New function.
22804         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22805         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22806
22807 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22808
22809         * config/sh/sh-protos.h (print_operand): Delete.
22810         (print_operand_address): Delete.
22811         * config/sh/sh.h (PRINT_OPERAND): Delete.
22812         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22813         (PRINT_OPERAND_ADDRESS): Delete.
22814         * config/sh/sh.c (sh_print_operand_address): Make static.
22815         (sh_print_operand): Make static.  Call sh_print_operand_address
22816         and sh_print_operand.
22817         (sh_print_operand_punct_valid_p): New function.
22818         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22819         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22820
22821 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22822
22823         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
22824         (mcore_print_operand_address): Delete.
22825         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
22826         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22827         (PRINT_OPERAND_ADDRESS): Delete.
22828         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
22829         (mcore_print_operand): Make static.
22830         (mcore_print_operand_punct_valid_p): New function.
22831         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
22832         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22833
22834 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22835
22836         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
22837         (print_operand_address): Delete.
22838         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
22839         (PRINT_OPERAND_ADDRESS): Delete.
22840         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
22841         static.
22842         (m68hc11_print_operand): Make static.
22843         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22844
22845 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22846
22847         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
22848         (m32r_print_operand_address): Delete.
22849         * config/m32r/m32r.h (m32r_punct_chars): Delete.
22850         (PRINT_OPERAND): Delete.
22851         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22852         (PRINT_OPERAND_ADDRESS): Delete.
22853         * config/m32r/m32r.c (m32r_punct_chars): Make static.
22854         (m32r_print_operand_address): Make static.
22855         (m32r_print_operand): Make static.
22856         (m32r_print_operand_punct_valid_p): New function.
22857         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22858         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22859
22860 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22861
22862         * config/iq2000/iq2000-protos.h (print_operand): Delete.
22863         (print_operand_address): Delete.
22864         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
22865         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22866         (PRINT_OPERAND_ADDRESS): Delete.
22867         (iq2000_print_operand_punct): Delete.
22868         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
22869         (iq2000_print_operand_address): Make static.
22870         (iq2000_print_operand): Make static.
22871         (iq2000_print_operand_punct_valid_p): New function.
22872         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22873         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22874
22875 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22876
22877         * config/frv/frv-protos.h (frv_print_operand): Delete.
22878         (frv_print_operand_address): Delete.
22879         * config/frv/frv.h (PRINT_OPERAND): Delete.
22880         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22881         (PRINT_OPERAND_ADDRESS): Delete.
22882         * config/frv/frv.c (frv_print_operand_address): Make static.
22883         (frv_print_operand): Make static.
22884         (frv_print_operand_punct_valid_p): New function.
22885         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22886         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22887
22888 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
22889
22890         * tree.h (vec_member): Declare.
22891         * tree.c (vec_member): Define.
22892
22893 2010-06-17  Richard Guenther  <rguenther@suse.de>
22894
22895         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
22896         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
22897
22898 2010-06-17  Richard Guenther  <rguenther@suse.de>
22899
22900         * tree-inline.c (declare_return_variable): Remove bogus code.
22901
22902 2010-06-17  Richard Guenther  <rguenther@suse.de>
22903
22904         * gimplify.c (gimplify_bind_expr): Always promote complex
22905         and vector variables to registers if possible.
22906
22907 2010-06-17  Richard Guenther  <rguenther@suse.de>
22908
22909         * expr.c (get_inner_reference): Use double_int for bit_offset
22910         calculation.
22911
22912 2010-06-16  DJ Delorie  <dj@redhat.com>
22913
22914         * common.opt (-fstrict-volatile-bitfields): new.
22915         * doc/invoke.texi: Document it.
22916         * fold-const.c (optimize_bit_field_compare): For volatile
22917         bitfields, use the field's type to determine the mode, not the
22918         field's size.
22919         * expr.c (expand_assignment): Likewise.
22920         (get_inner_reference): Likewise.
22921         (expand_expr_real_1): Likewise.
22922         * expmed.c (store_fixed_bit_field): Likewise.
22923         (extract_bit_field_1): Likewise.
22924         (extract_fixed_bit_field): Likewise.
22925
22926 2010-06-16  Richard Guenther  <rguenther@suse.de>
22927
22928         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
22929
22930 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
22931
22932         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
22933         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
22934         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
22935         * debug.c: Likewise.
22936         * sdbout.c: Likewise.
22937         * vmsdbgout.c: Likewise.
22938         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
22939         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
22940         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
22941         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
22942         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
22943         * dwarf2out.c (dw_fde_struct): New fields
22944         dw_fde_vms_{end,begin}_prologue.
22945         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
22946         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
22947         (dwarf2out_vms_end_prologue): New function.
22948         (dwarf2out_vms_begin_epilogue): New function.
22949         (dw_val_struct): New value dw_val_class_vms_delta.
22950         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
22951         begin_epilogue for VMS.
22952         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
22953         new static functions.
22954         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
22955         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
22956         static functions.
22957         (print_die): New case dw_val_class_vms_delta.
22958         (attr_checksum): Likewise.
22959         (same_dw_val_p: Likewise.
22960         (size_of_die): Likewise.
22961         (value_format): Likewise.
22962         (output_die): Likewise.
22963         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
22964         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
22965         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
22966         dwarf2out_cfi_begin_epilogue
22967         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
22968
22969 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
22970
22971         * config/cris/cris-protos.h (cris_print_operand): Delete.
22972         (cris_print_operand_address): Delete.
22973         * config/cris/cris.h (PRINT_OPERAND): Delete.
22974         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22975         (PRINT_OPERAND_ADDRESS): Delete.
22976         * config/cris/cris.c (cris_print_operand_address): Make static.
22977         (cris_print_operand): Make static.
22978         (cris_print_operand_punct_valid_p): New function.
22979         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22980         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22981
22982 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
22983
22984         * config/arm/arm-protos.h (arm_print_operand): Delete.
22985         (arm_print_operand_address): Delete.
22986         * config/arm/arm.h (PRINT_OPERAND): Delete.
22987         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22988         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
22989         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
22990         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
22991         (arm_print_operand): Make static.
22992         (arm_print_operand_punct_valid_p): New function.
22993         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22994         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22995
22996 2010-06-16  Nick Clifton  <nickc@redhat.com>
22997
22998         * config/rx/constraints.md (NEGint4): New constraint.
22999         * config/rx/rx.md (attr cc): Add set_zsc.
23000         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
23001         initialised.
23002         (cmpsf): Likewise.
23003         (call_internal): Clobber the cc0 register.
23004         (call_value_internal): Likewise.
23005         (cstoresi4): Likewise.
23006         (movsieq): Likewise.
23007         (movsine): Likewise.
23008         (addsi3): Add alternative to handle small negative constants.
23009         (sunsi3): Likewise.
23010         (addsi3): Do not set the O bit in the cc0 register.
23011         (adddi3): Likewise.
23012         (subsi3): Likewise.
23013         (subdi3): Likewise.
23014         (andsi3): Reorder alternatives to prefer shorter forms.
23015         (mulsi3): Likewise.
23016         (iorsi3): Likewise.
23017         (negsi2): Note that the cc0 flags are set.
23018         (rotlsi3): Note that only the Z and S bits are set in cc0.
23019         (lshrsi3): Likewise.
23020         (ashlsi3): Likewise.
23021         (subsf3): Use %Q for the MEM operand.
23022         (fix_truncsfsi2): Likewise.
23023         (floatsisf2): Likewise.
23024         (bitset): Remove early clobber from destination.
23025         (bitset_in_memory): Likewise.
23026         (lrintsf2): Clobber the cc0 register.
23027         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
23028         (rx_print_operand): Handle %N.
23029
23030 2010-06-16  Jan Hubicka  <jh@suse.cz>
23031
23032         * df-core.c (df_compact_blocks): Free problem_temps vector.
23033
23034 2010-06-16  Martin Jambor  <mjambor@suse.cz>
23035
23036         PR tree-optimization/43905
23037         * tree-sra.c: Include tree-inline.h.
23038         (create_abstract_origin): Removed.
23039         (modify_function): Version the call graph node instead of creating
23040         abstract origins and dealing with same_body aliases.
23041         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
23042         function is versionable.
23043         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
23044
23045 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
23046
23047         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
23048         (CHOOSE_DYNAMIC_LINKER): Update.
23049
23050 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
23051
23052         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
23053         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
23054         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
23055         *prefetch_3dnow_rex.
23056
23057 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
23058
23059         * target.h (struct asm_out):Add declare_constant_name field.
23060         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
23061         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
23062         * output.h (default_asm_declare_constant_name): Declare.
23063         (assemble_label): Update prototype.
23064         * varasm.c (assemble_constant_contents): Use
23065         targetm.asm_out.declare_constant_name target hook.
23066         (assemble_label): Add 'file' argument.
23067         (default_asm_declare_constant_name): New function.
23068         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
23069         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
23070         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
23071
23072         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
23073         * config/darwin.c (darwin_asm_declare_constant_name): New function.
23074         (machopic_output_indirection): Update assemble_label argument list.
23075         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
23076         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
23077
23078 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
23079
23080         PR middle-end/44391
23081         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
23082         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
23083
23084 2010-06-15  Richard Guenther  <rguenther@suse.de>
23085
23086         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
23087
23088 2010-06-15  Paul Brook  <paul@codesourcery.com>
23089
23090         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
23091         hard-float ABI.
23092
23093 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
23094
23095         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
23096         don't get a vector type for output.
23097
23098 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
23099
23100         PR fortran/44536
23101         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
23102         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
23103         (LANG_HOOKS_DECLS): Add it.
23104         * gimplify.c (omp_notice_variable): Call
23105         lang_hooks.decls.omp_report_decl.
23106
23107 2010-06-15  Martin Jambor  <mjambor@suse.cz>
23108
23109         PR lto/44464
23110         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
23111         on the newly dead SSA name.
23112
23113 2010-06-15  Alan Modra  <amodra@gmail.com>
23114
23115         * doc/invoke.texi: Add mcmodel to powerpc options.
23116         * configure.ac: Add HAVE_LD_LARGE_TOC test.
23117         * configure: Regenerate.
23118         * config.in: Regenerate.
23119         * config/rs6000/linux64.opt (mcmodel): New.
23120         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
23121         (TARGET_CMODEL, SET_CMODEL): Define.
23122         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
23123         select CMODEL_MEDIUM default.
23124         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
23125         (TARGET_CMODEL): Define default.
23126         * config/rs6000/rs6000.c (cmodel): New variable.
23127         (rs6000_explicit_options): Add cmodel field.
23128         (rs6000_handle_option): Handle -mcmodel.
23129         (create_TOC_reference): Add largetoc_reg param.  Generate high,
23130         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
23131         (rs6000_delegitimize_address): Recognise new toc reference rtl
23132         and minimal-toc rtl.
23133         (rs6000_legitimize_reload_address): Handle new toc references.
23134         (print_operand_address): Handle legitimate_constant_pool_address_p
23135         match before lo_sum.
23136         (rs6000_eliminate_indexed_memrefs): Tidy.
23137         (rs6000_emit_move): Tweak threshold for inlining constants.
23138         Keep rs6000_emit_allocate_stack large stack frame offsets
23139         loaded into r0 inline.
23140         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
23141         (tocrel_base, tocrel_offset): New variables.
23142         (toc_relative_expr_p): Set them here.
23143         (print_operand_address): Skip over any offset on constant pool address.
23144         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
23145         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
23146         (offsettable_ok_by_alignment): New function.
23147         (rs6000_emit_move): Address suitably aligned local symbol_refs
23148         relative to the toc pointer for -mcmodel=medium.
23149         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
23150         strict param.  Allow lo_sum version of addressing.  Verify reg
23151         used for -mminimal-toc and -mcmodel != small.  Update all callers.
23152         * config/rs6000/constraints.md: Update for above change.
23153         * config/rs6000/predicates.md: Likewise.
23154         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
23155         code.
23156         (tls_gd): Split for -mcmodel=medium/large.
23157         (tls_gd_high, tls_gd_low): New.
23158         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
23159         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
23160         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
23161         (largetoc_high, largetoc_low): New.
23162         (cmptf_internal2): Add clobber.
23163         * config/rs6000/rs6000-protos.h: Update.
23164
23165 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
23166
23167         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
23168         true if no prefetch is going to be generated for a given group.
23169         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
23170         estimate the prefetch_count.
23171         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
23172         prefetch count by considering the unroll_factor and prefetch_mod
23173         for is_loop_prefetching_profitable.
23174
23175 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
23176
23177         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
23178         anything if the argument is not a MEM.
23179
23180 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
23181
23182         PR debug/43650
23183         PR debug/44181
23184         PR debug/44247
23185         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
23186         debug stmts.
23187         (canonicalize_loop_ivs): Likewise.
23188
23189 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
23190
23191         PR debug/43656
23192         * haifa-sched.c (setup_insn_reg_pressure_info,
23193         update_register_pressure): Reject debug insns.
23194         (ready_sort): Don't setup reg pressure for debug insns.
23195         (schedule_insn): Don't update reg pressure for debug insns.
23196
23197 2010-06-14  Richard Guenther  <rguenther@suse.de>
23198
23199         * lto-streamer.c (cached_bp): Remove.
23200         (bitpack_delete): Likewise.
23201         (bitpack_create): Likewise.
23202         (bp_get_next_word): Likewise.
23203         (bp_pack_value, bp_unpack_value): Move ...
23204         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
23205         Re-implement.
23206         (struct bitpack_d): Likewise.
23207         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
23208         New inline functions.
23209         * lto-streamer-out.c (lto_output_bitpack): Remove.
23210         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
23211         (pack_value_fields): Adjust.
23212         (lto_write_tree): Likewise.
23213         (output_gimple_stmt): Likewise.
23214         (output_function): Likewise.
23215         * lto-streamer-in.c (input_gimple_stmt): Adjust.
23216         (input_function): Likewise.
23217         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
23218         (lto_input_bitpack): Remove.
23219         (lto_materialize_tree): Adjust.
23220         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
23221         * lto-cgraph.c (lto_output_edge): Adjust.
23222         (lto_output_node): Likewise.
23223         (lto_output_varpool_node): Likewise.
23224         (lto_output_ref): Likewise.
23225         (input_node): Likewise.
23226         (input_varpool_node): Likewise.
23227         (input_ref): Likewise.
23228         (input_edge): Likewise.
23229         (output_node_opt_summary): Likewise.
23230         (input_node_opt_summary): Likewise.
23231         * ipa-pure-const.c (pure_const_write_summary): Likewise.
23232         (pure_const_read_summary): Likewise.
23233         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
23234         (ipa_read_indirect_edge_info): Likewise.
23235         (ipa_write_node_info): Likewise.
23236         (ipa_read_node_info): Likewise.
23237
23238 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
23239
23240         PR target/44534
23241         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
23242         (vec_extract_lo_v16hi): Likewise.
23243         (vec_extract_lo_v32qi): Likewise.
23244
23245 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
23246
23247         PR bootstrap/44426
23248         * tree.h (build_call_expr): Don't define as vararg macro, instead
23249         add a prototype.
23250         * builtins.c (build_call_nofold): Remove.
23251         (expand_builtin_int_roundingfn, expand_builtin_pow,
23252         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
23253         expand_builtin_memset_args, expand_builtin_strcmp,
23254         expand_builtin_strncmp, expand_builtin_memory_chk): Use
23255         build_call_nofold_loc instead of build_call_nofold.
23256         (build_call_expr): New function.
23257
23258         PR tree-optimization/44508
23259         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
23260         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
23261         don't eliminate trivially dead stmts.
23262         * tree-vrp.c (vrp_finalize): Pass false as last argument
23263         to substitute_and_fold.
23264         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
23265         to substitute_and_fold.
23266         * tree-ssa-ccp.c (ccp_finalize): Likewise.
23267
23268         PR bootstrap/44509
23269         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
23270
23271 2010-06-14  Ira Rosen  <irar@il.ibm.com>
23272
23273         PR tree-optimization/44507
23274         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
23275         to build initial vector for BIT_AND_EXPR.
23276         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
23277
23278 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
23279
23280         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
23281         adjust z10prop set_attr.
23282
23283 2010-06-13  Jan Hubicka  <jh@suse.cz>
23284
23285         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
23286         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
23287         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
23288         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
23289         datastructure checks into checking asserts.
23290         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
23291         * tree-ssa-sccvn.c (VN_INFO): Likewise.
23292         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
23293         df_ref_create_structure): Likewise.
23294         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
23295         pool_free): Use gcc_checking_assert.
23296         * alias.c (get_alias_set): Likewise.
23297         * var-tracking.c (variable_htab_free, shared_hash_copy,
23298         canonicalize_values_mark, variable_merge_over_cur): Likewise.
23299         * lto-streamer.c (bp_unpack_value): Likewise.
23300
23301 2010-06-13  Richard Guenther  <rguenther@suse.de>
23302
23303         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
23304         Do not stream but initialize TYPE_CANONICAL to NULL.
23305         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
23306         * gimple.c (gimple_types_compatible_p): Disregard
23307         TYPE_STRUCTURAL_EQUALITY_P.
23308         (gimple_register_type): Use TYPE_CANONICAL as cache.
23309         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
23310         before registering common types.
23311         * config/i386/i386.c (ix86_function_arg_boundary): Do not
23312         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
23313         * tree.h (TYPE_CANONICAL): Clarify documentation.
23314
23315 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
23316
23317         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
23318         LIBCALL_VALUE): Remove macros.
23319         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
23320         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23321         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23322         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
23323         (ia64_function_value): Make static. Handle receiving the function
23324         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
23325
23326 2010-06-12  Jan Hubicka  <jh@suse.cz>
23327
23328         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
23329         at correct place.
23330
23331 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
23332
23333         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
23334
23335 2010-06-12  Jan Hubicka  <jh@suse.cz>
23336
23337         * df-core.c (df_clear_bb_info): New function.
23338         (df_set_blocks): bb_info is always allocated.
23339         (df_get_bb_info): Use block_info_elt_size.
23340         (df_set_bb_info): Likewise.
23341         (df_compact_blocks): Update for new block_info.
23342         (grow_bb_info): New function.
23343         * df-problems.c (df_grow_bb_info): Move to df-core.c
23344         (df_rd_set_bb_info): Remove.
23345         (df_rd_free_bb_info): Do not free block pool.
23346         (df_rd_alloc): Do not create pool, use check for
23347         obstack presence instead of NULL pointer for new blocks.
23348         (df_rd_free): DO not free alloc pool; clear block_info.
23349         (problem_RD): Add size of block info structure.
23350         (df_lr_set_bb_info): Remove.
23351         (df_lr_free_bb_info): Do not free block pool.
23352         (df_lr_alloc): Do not create pool, use check for
23353         obstack presence instead of NULL pointer for new blocks.
23354         (df_lr_free): DO not free alloc pool; clear block_info.
23355         (problem_LR): Add size of block info structure.
23356         (df_live_set_bb_info): Remove.
23357         (df_live_free_bb_info): Do not free block pool.
23358         (df_live_alloc): Do not create pool, use check for
23359         obstack presence instead of NULL pointer for new blocks.
23360         (df_live_free): DO not free alloc pool; clear block_info.
23361         (problem_LIVE): Add size of block info structure.
23362         (problem_CHAIN): Add size of block info structure.
23363         (df_byte_lr_set_bb_info): Remove.
23364         (df_byte_lr_free_bb_info): Do not free block pool.
23365         (df_byte_lr_alloc): Do not create pool, use check for
23366         obstack presence instead of NULL pointer for new blocks.
23367         (df_byte_lr_free): DO not free alloc pool; clear block_info.
23368         (problem_BYTE_LR): Add size of block info structure.
23369         (problem_NOTE): Add size of block info structure.
23370         (df_byte_MD_set_bb_info): Remove.
23371         (df_byte_MD_free_bb_info): Do not free block pool.
23372         (df_byte_MD_alloc): Do not create pool, use check for
23373         obstack presence instead of NULL pointer for new blocks.
23374         (df_byte_MD_free): DO not free alloc pool; clear block_info.
23375         (problem_BD): Add size of block info structure.
23376         * df-scan.c (df_scan_free_internal): Free block pool.
23377         (df_scan_set_bb_info): Remove.
23378         (df_scan_free_bb_info): Check for artificial_defs instead
23379         of bb_info being non-NULL.
23380         (df_scan_alloc): DO not create df_scan_block pool.
23381         (problem_SCAN): Set size of block info.
23382         (df_bb_refs_record): Do not allocate bb_info.
23383         * df.h (df_problem): Add block_info_elt_size.
23384         (struct dataflow): Change block_info to void *.
23385         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
23386         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
23387         in-line structures.
23388
23389 2010-06-12  Jan Hubicka  <jh@suse.cz>
23390
23391         PR tree-optimize/44485
23392         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
23393         containing use of return value of noreturn function.
23394
23395 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
23396
23397         * targhooks.c (default_function_value): Don't use
23398         FUNCTION_OUTGOING_VALUE.
23399         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
23400         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
23401
23402 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
23403
23404         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
23405         Add crtfastmath.o to extra_parts.
23406         * config/mips/crtfastmath.c: New.
23407         * config/mips/linux.h (ENDFILE_SPEC): New.
23408
23409 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
23410
23411         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
23412         old_type in parameter.
23413         (gcc_type_for_value): Update call to gcc_type_for_interval.
23414         (compute_type_for_level_1): Renamed compute_type_for_level.
23415         Update call to gcc_type_for_interval.
23416
23417 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
23418
23419         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
23420         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
23421
23422 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
23423
23424         * opts-common.c: Include options.h.
23425         (integral_argument): Move from opts.c.
23426         (decode_cmdline_option): New.  Based on read_cmdline_option.
23427         * opts.c (integral_argument): Move to opts-common.c.
23428         (read_cmdline_option): Move most contents to
23429         decode_cmdline_option.  Use %qs in diagnostics.
23430         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
23431         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
23432         decode_cmdline_option): New.
23433
23434 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
23435
23436         PR target/44481
23437         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
23438         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
23439         (partiysi2_cmp): Ditto.
23440         (*partiyhi2_cmp): Ditto.
23441         (*parityqi2_cmp): Remove.
23442
23443 2010-06-11  Jan Hubicka  <jh@suse.cz>
23444
23445         * bitmap.h (bmp_iter_next_bit): New.
23446         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
23447
23448 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
23449             Eric Botcazou  <ebotcazou@adacore.com>
23450
23451         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
23452         computed cost.
23453
23454 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
23455
23456         * config/i386/i386.md (unspec): New define_c_enum.
23457         (unspecv): Ditto.
23458
23459 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
23460
23461         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
23462
23463 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
23464
23465         PR middle-end/44483
23466         * tree-if-conv.c (bb_predicate_s): New struct.
23467         (bb_predicate_p): New.
23468         (bb_has_predicate): New.
23469         (bb_predicate): New.
23470         (set_bb_predicate): New.
23471         (bb_predicate_gimplified_stmts): New.
23472         (set_bb_predicate_gimplified_stmts): New.
23473         (add_bb_predicate_gimplified_stmts): New.
23474         (init_bb_predicate): New.
23475         (free_bb_predicate): New.
23476         (is_predicated): Use bb_predicate.
23477         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
23478         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
23479         before processing their successors.
23480         (clean_predicate_lists): Removed.
23481         (find_phi_replacement_condition): Use bb_predicate.
23482         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
23483         computations.
23484         (insert_gimplified_predicates): New.
23485         (combine_blocks): Call insert_gimplified_predicates.
23486         (tree_if_conversion): Call free_bb_predicate instead of
23487         clean_predicate_lists.
23488
23489 2010-10-11  Paul Brook  <paul@codesourcery.com>
23490
23491         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
23492         * config/arm/arm.c (all_architectures): Change v7e-m default to
23493         cortexm4.
23494         * config/arm/arm-cores.def: Add cortex-m4.
23495         * config/arm/arm-tune.md: Regenerate.
23496
23497 2010-06-11  Jan Hubicka  <jh@suse.cz>
23498
23499         * ipa-pure-const.c (special_builtlin_state): New function.
23500         (check_call): Use it instead of special casign BUILT_IN_RETURN.
23501         (propagate_pure_const): Use it.
23502
23503 2010-06-11  Jan Hubicka  <jh@suse.cz>
23504
23505         * df-problems.c (df_live_scratch): Convert to bitmap_head.
23506         (df_live_alloc): Initialize df_live_scratch when initializing
23507         problem_data.
23508         (df_live_transfer_function): Update uses of df_live_scratch.
23509         (df_live_free): Free problem_data; clear df_live_scratch before
23510         releasing the obstack.
23511         (df_md_free): Free problem data.
23512
23513 2010-06-11  Jan Hubicka  <jh@suse.cz>
23514
23515         * doc/invoke.texi (Wsuggest-attribute): Document.
23516         (Wmissing-noreturn): Remove.
23517         * ipa-pure-const.c (warn_function_noreturn): New function.
23518         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
23519         warn_missing_noreturn.
23520         * common.opt (Wsuggest-attribute=noreturn): New.
23521         * tree-flow.h (warn_function_noreturn): Declare.
23522         * tree-cfg.c (execute_warn_function_noreturn): Use
23523         warn_function_noreturn.
23524         (gate_warn_function_noreturn): New.
23525         (pass_warn_function_noreturn): Update.
23526
23527 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23528
23529         * c-typeck.c (handle_warn_cast_qual): Add loc
23530         parameter. Improve warning message.
23531         (build_c_cast): Pass location to handle_warn_cast_qual.
23532
23533 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
23534
23535         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
23536         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
23537         insn mnemonic.
23538         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
23539
23540 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
23541
23542         Fix bootstap on mips
23543         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
23544         be naming typedefs.
23545
23546 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
23547
23548         * system.h (helper_const_non_const_cast): New inline for
23549         gcc version <= 4.0.
23550         (CONST_CAST2): For gcc version <= 4.0 use
23551         new helper to do const/non-const casting.
23552
23553 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23554
23555         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
23556         * Makefile.in (OBJS-common): Include insn-enums.o.
23557         (insn-enums.o): New rule.
23558         (simple_generated_c): Add insn-enums.c.
23559         (build/genenums.o): New rule.
23560         (genprogmd): Add "enums".
23561         * genconstants.c (print_enum_type): Declare a C string array
23562         for each enum.
23563         * genenums.c: New file.
23564         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
23565         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
23566         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
23567
23568 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23569
23570         * doc/md.texi (define_enum_attr): Document.
23571         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
23572         * read-md.h (lookup_enum_type): Declare.
23573         * read-md.c (lookup_enum_type): New function.
23574         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
23575         * genattrtab.c (attr_desc): Add an enum_name field.
23576         (evaluate_eq_attr): Take the associated attribute as argument.
23577         Get the enum prefix from the enum_name field, if defined.
23578         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
23579         (simplify_test_exp): Pass attr to evaluate_eq_attr.
23580         (add_attr_value): New function, split out from...
23581         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
23582         (write_test_expr): Pass attr to evaluate_eq_attr.
23583         (write_attr_get): Use the enum_name as the enum tag, if defined.
23584         (write_attr_valueq): Use the enum_name as a prefix, if defined.
23585         (find_attr): Initialize enum_name.
23586         (main): Handle DEFINE_ENUM_ATTR.
23587         * gensupport.c (process_rtx): Likewise.
23588         * config/mips/mips.h (mips_tune_attr): Delete.
23589         * config/mips/mips.md (cpu): Use define_attr_enum.
23590
23591 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23592
23593         * doc/md.texi (define_c_enum, define_enum): Document.
23594         * read-md.h (md_constant): Add a parent_enum field.
23595         (enum_value, enum_type): New structures.
23596         (upcase_string, traverse_enum_types): Declare.
23597         * read-md.c (enum_types): New variable.
23598         (upcase_string, add_constant): New functions.
23599         (handle_constants): Don't create the hash table here.
23600         Use add_constant.
23601         (traverse_md_constants): Don't check for a null md_constants.
23602         (decimal_string, handle_enum, traverse_enum_types): New functions.
23603         (read_md_files): Initialize md_constants and md_enums.
23604         * genconstants.c (print_md_constant): Ignore info argument.
23605         Only print constants that belong to no enum.
23606         (print_enum_type): New function.
23607         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
23608         for each defined enum type.
23609         * config/mips/mips.md (processor): New define_enum.
23610         (unspec): New define_c_enum.
23611         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
23612         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
23613         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
23614         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
23615         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
23616         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
23617         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
23618         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
23619         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
23620         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
23621         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
23622         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
23623         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
23624         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
23625         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
23626         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
23627         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
23628         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
23629         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
23630         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
23631         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
23632         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
23633         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
23634         (UNSPEC_RDDSP): Move to mips-dsp.md.
23635         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
23636         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
23637         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
23638         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
23639         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
23640         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
23641         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
23642         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
23643         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
23644         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
23645         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
23646         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
23647         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
23648         Moved to mips-dspr2.md.
23649         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
23650         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
23651         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
23652         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
23653         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
23654         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
23655         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
23656         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
23657         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
23658         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
23659         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
23660         UNSPEC_LOONGSON_PSADBH)
23661         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
23662         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
23663         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
23664         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
23665         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
23666         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
23667         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
23668         (cpu): Update comment.
23669         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
23670         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
23671         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
23672         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
23673         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
23674         UNSPEC_LOONGSON_PCMPEQ)
23675         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
23676         UNSPEC_LOONGSON_PINSR_0)
23677         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
23678         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
23679         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
23680         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
23681         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
23682         UNSPEC_LOONGSON_PSADBH)
23683         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
23684         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
23685         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
23686         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
23687         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
23688         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
23689         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
23690         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
23691         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
23692         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
23693         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
23694         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
23695         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
23696         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
23697         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
23698         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
23699         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
23700         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
23701         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
23702         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
23703         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
23704         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
23705         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
23706         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
23707         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
23708         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
23709         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
23710         (UNSPEC_RDDSP): Moved from mips.md.
23711         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
23712         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
23713         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
23714         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
23715         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
23716         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
23717         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
23718         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
23719         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
23720         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
23721         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
23722         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
23723         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
23724         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
23725         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
23726         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
23727         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
23728         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
23729         (UNSPEC_SCC): Moved from mips.md.
23730         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
23731         "processor_type" to "processor".
23732         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
23733         * config/mips/mips.h (processor_type): Delete.
23734         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
23735         "processor_type" to "processor".
23736
23737 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23738
23739         * configure.ac (tm_include_list): Add insn-constants.h.
23740         * configure: Regenerate.
23741         * Makefile.in (GTM_H): Move insn-constants.h here from...
23742         (TM_H): ...here.
23743         * mkconfig.sh: Remove special handling for insn-constants.h.
23744
23745 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23746
23747         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
23748         (BUILD_MD): ...this new variable.
23749         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
23750         that include the old contents of simple_generated_h and
23751         simple_generated_c.
23752         (simple_generated_h, simple_generated_c): Include them.  Add
23753         insn-constants.h.
23754         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
23755         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
23756         Remove these dependencies from the main rule and include
23757         insn-conditions.md in the command line only if it appears
23758         in the dependency list.
23759         (insn-constants.h, s-constants): Delete.
23760         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
23761         or gensupport.h.
23762         (build/genmddeps.o): Likewise.
23763         (genprogrtl): New variable that contains everything from genprogmd
23764         except mddeps and constants.
23765         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
23766         depend on $(BUILD_MD)
23767         (genprog): New variable.  Make these programs depend on
23768         $(BUILD_ERRORS).
23769         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
23770         (main): Use read_md_files instead of init_rtx_reader_args.
23771         * genconstants.c: As for genmddeps.c.
23772         * read-md.h (read_skip_construct): Declare.
23773         * read-md.c (read_skip_construct): New function.
23774         (handle_file): Allow a null handle_directive, skipping the
23775         construct if so.
23776         (parse_include): Update the comment accordingly.
23777
23778 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23779
23780         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
23781         * genmddeps.c: Include read-md.h.
23782         (main): Call init_rtx_reader_args instead of init_md_reader_args.
23783         * genattr.c (main): Likewise.
23784         * genattrtab.c (main): Likewise.
23785         * genautomata.c (main): Likewise.
23786         * gencodes.c (main): Likewise.
23787         * genconditions.c (main): Likewise.
23788         * genconfig.c (main): Likewise.
23789         * genconstants.c (main): Likewise.
23790         * genemit.c (main): Likewise.
23791         * genextract.c (main): Likewise.
23792         * genflags.c (main): Likewise.
23793         * genopinit.c (main): Likewise.
23794         * genoutput.c (main): Likewise.
23795         * genpeep.c (main): Likewise.
23796         * genrecog.c (main): Likewise.
23797         * genpreds.c (main): Likewise.
23798         * gensupport.h (in_fname): Move to read-md.h.
23799         (init_md_reader_args_cb): Rename to...
23800         (init_rtx_reader_args_cb): ...this and return a bool.
23801         (init_md_reader_args): Rename to...
23802         (init_rtx_reader_args): ...this and return a bool.
23803         (include_callback): Move to read-md.h.
23804         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
23805         (file_name_list, first_dir_md_include): Move to read-md.c
23806         (first_bracket_include): Delete unused variable.
23807         (last_dir_md_include): Move to read-md.c.
23808         (process_include): Delete, moving code to read-md.c:handle_include.
23809         (process_rtx): Don't handle INCLUDE.
23810         (save_string): Delete.
23811         (rtx_handle_directive): New function.
23812         (init_md_reader_args_cb): Rename to...
23813         (init_rtx_reader_args_cb): ...this and return a boolean success value.
23814         Use read_md_args.
23815         (init_md_reader_args): Rename to...
23816         (init_rtx_reader_args): ...this and return a boolean success value.
23817         * rtl.def (INCLUDE): Delete.
23818         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
23819         argument.
23820         * read-rtl.c (read_conditions): Don't gobble ')' here.
23821         (read_mapping): Likewise.
23822         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
23823         Handle top-level non-rtx constructs here rather than in read_rtx_1.
23824         Store the whole queue in *X.  Remove call to init_md_reader.
23825         (read_rtx_1): Rename to...
23826         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
23827         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
23828         here.
23829         (read_nested_rtx): New function.  Handle (nil) here rather than
23830         in read_rtx_code.
23831         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
23832         gobble ')' here.
23833         * read-md.h (directive_handler_t): New type.
23834         (in_fname, include_callback): Moved from read-md.h.
23835         (read_constants, init_md_reader): Delete.
23836         (read_md_files): Declare.
23837         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
23838         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
23839         from gensupport.c.
23840         (read_constants): Rename to...
23841         (handle_constants): ...this.  Don't gobble ')' here.
23842         (handle_include, handle_file, handle_toplevel_file)
23843         (parse_include): New functions, mostly taken from gensupport.c.
23844         (init_md_reader): Subsume into...
23845         (read_md_files): ...this new function.
23846
23847 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23848
23849         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
23850         (unread_char): Decrement read_md_lineno after putting back '\n'.
23851         * read-md.c (fatal_with_file_and_line): Push back any characters
23852         that we decide not to add to the context.
23853         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
23854         fatal_expected_char in cases where '/' ends a line (for example).
23855         (read_name): Don't increment read_md_lineno here.
23856         (read_escape): Likewise.
23857         (read_quoted_string): Likewise.
23858         (read_braced_string): Likewise.
23859
23860 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23861
23862         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
23863         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
23864         * genconstants.c: Include read-md.h.
23865         * read-rtl.c (md_constants): Move to read-md.c.
23866         (md_name): Move to read-md.h.
23867         (initialize_iterators): Use leading_string_hash instead of def_hash
23868         and leading_string_eq_p instead of def_name_eq_p.
23869         (read_name): Move to read-md.c.
23870         (def_hash, def_name_eq_p): Delete.
23871         (read_constants, traverse_md_constants): Move to read-md.c.
23872         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
23873         * read-md.h: Include hashtab.h.
23874         (md_name): Moved from read-rtl.c.
23875         (md_constant): Moved from read-md.h.
23876         (leading_string_hash, leading_string_eq_p, read_name)
23877         (read_constants, traverse_md_constants): Declare.
23878         * read-md.c (md_constants): Moved from read-rtl.c.
23879         (leading_string_hash, leading_string_eq_p): New functions.
23880         (read_name, read_constants, traverse_md_constants): Moved from
23881         read-rtl.c.
23882
23883 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23884
23885         * read-rtl.c (md_name): New structure.
23886         (read_name): Take an md_name instead of a buffer pointer.
23887         Use the "string" field instead of strcpy when expanding constants.
23888         (read_constants): Remove the tmp_char argument.  Update the calls
23889         to read_name, using two local name buffers instead of the tmp_char
23890         argument.  Merge the constant-creation code.
23891         (read_conditions): Remove the tmp_char argument.  Update the calls
23892         to read_name, using a local name buffer instead of the tmp_char
23893         argument.
23894         (read_mapping): Replace tmp_char variable with a local name buffer.
23895         Update the calls to read_name.
23896         (read_rtx_1): Likewise.  Update the calls to read_constants and
23897         read_conditions.
23898
23899 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23900
23901         * Makefile.in (build/read-md.o): Depend on errors.h.
23902         * read-md.h (error_with_line): Declare.
23903         * read-md.c: Include errors.h.
23904         (message_with_line_1): New function, extracted from...
23905         (message_with_line): ...here.
23906         (error_with_line): New function.
23907         * genattrtab.c: If a call to message_with_line is followed by
23908         "have_error = 1;", replace both statements with a call to
23909         error_with_line.
23910         * genoutput.c: Likewise.
23911         * genpreds.c: Likewise.
23912         * genrecog.c: If a call to message_with_line is followed by
23913         "error_count++;", replace both statements with a call to
23914         error_with_line.
23915         (errorcount): Delete.
23916         (main): Don't check it.
23917         * gensupport.c: If a call to message_with_line is followed by
23918         "errors = 1;", replace both statements with a call to error_with_line.
23919         (errors): Delete.
23920         (process_define_cond_exec): Check have_error instead of errors.
23921         (init_md_reader_args_cb): Likewise.  Don't set errors.
23922
23923 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23924
23925         * read-md.h (read_md_file): Declare.
23926         (read_char, unread_char): New functions.
23927         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
23928         (read_quoted_string, read_string): Remove FILE * argument.
23929         * read-md.c (read_md_file): New variable.
23930         (read_md_filename, read_md_lineno): Update comments and remove
23931         unnecessary initialization.
23932         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
23933         (read_escape, read_quoted_string, read_braced_string, read_string):
23934         Remove FILE * argument.  Update calls accordingly, using read_char
23935         and unread_char instead of getc and ungetc.
23936         * rtl.h (read_rtx): Remove FILE * argument.
23937         * read-rtl.c (iterator_group): Remove FILE * argument from
23938         "find_builtin".
23939         (iterator_traverse_data): Remove "infile" field.
23940         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
23941         (add_mapping, read_name, read_constants, read_conditions)
23942         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
23943         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
23944         Remove file arguments from all calls, using read_char and unread_char
23945         instead of getc and ungetc.
23946         * gensupport.c (process_include): Preserve read_md_file around
23947         the include.  Set read_md_file to the handle of the included file.
23948         Update call to read_rtx.
23949         (init_md_reader_args_cb): Set read_md_file to the handle of the file
23950         and remove local FILE *.  Update calls to read_rtx.
23951
23952 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23953
23954         * read-md.h (read_rtx_lineno): Rename to...
23955         (read_md_lineno): ...this.
23956         (read_rtx_filename): Rename to...
23957         (read_md_filename): ...this.
23958         (copy_rtx_ptr_loc): Rename to...
23959         (copy_md_ptr_loc): ...this.
23960         (print_rtx_ptr_loc): Rename to...
23961         (print_md_ptr_loc): ...this.
23962         * read-md.c: Likewise.  Update references after renaming.
23963         (string_obstack): Replace RTL with MD in comment.
23964         (set_rtx_ptr_loc): Rename to...
23965         (set_md_ptr_loc): ...this.
23966         (get_rtx_ptr_loc): Rename to...
23967         (get_md_ptr_loc): ...this.
23968         * genconditions.c: Update references after renaming.
23969         * genemit.c: Likewise.
23970         * genoutput.c: Likewise.
23971         * genpreds.c: Likewise.
23972         * gensupport.c: Likewise.
23973         * read-rtl.c: Likewise.
23974
23975 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
23976
23977         * Makefile.in (READ_MD_H): New variable.
23978         (BUILD_RTL): Add build/read-md.o.
23979         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
23980         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
23981         (build/genattrtab.o, build/genconditions.o build/genemit.o)
23982         (build/genextract.o, build/genflags.o, build/genoutput.o)
23983         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
23984         (build/read-md.o): New rule.
23985         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
23986         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
23987         * coretypes.h: ...here.
23988         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
23989         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
23990         * genattr.c: Include read-md.h.
23991         * genattrtab.c: Likewise.
23992         * genconditions.c: Likewise.
23993         * genemit.c: Likewise.
23994         * genextract.c: Likewise.
23995         * genflags.c: Likewise.
23996         * genoutput.c: Likewise.
23997         * genpreds.c: Likewise.
23998         * genrecog.c: Likewise.
23999         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
24000         (join_c_conditions, print_c_condition, read_rtx_filename)
24001         (read_rtx_lineno): Move to read-md.h.
24002         * read-rtl.c: Include read-md.h.
24003         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
24004         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
24005         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
24006         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
24007         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
24008         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
24009         (read_braced_string, read_string): Move to read-md.c.
24010         (read_rtx): Move some initialization to init_md_reader and call
24011         init_md_reader here.
24012         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
24013         Move to read-md.h.
24014         * gensupport.c: Include read-md.h.
24015         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
24016         * read-md.h, read-md.c: New files.
24017
24018 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
24019
24020         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24021         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24022         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
24023         * config/moxie/moxie.c (moxie_function_value): Make static.
24024         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
24025         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24026
24027 2010-06-10  Martin Jambor  <mjambor@suse.cz>
24028
24029         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
24030         * dbgcnt.def (tree_sra): New counter.
24031         * tree-sra.c: Include dbgcnt.h.
24032         (gate_intra_sra): Check tree_sra debug counter.
24033
24034 2010-06-10  Martin Jambor  <mjambor@suse.cz>
24035
24036         PR tree-optimization/44258
24037         * tree-sra.c (build_access_subtree): Return false iff there is a
24038         partial overlap.
24039         (build_access_trees): Likewise.
24040         (analyze_all_variable_accesses): Disqualify candidates if
24041         build_access_trees returns true for them.
24042
24043 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
24044
24045         PR debug/41371
24046         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
24047         tail-recurse into canonical node.  Fast-forward over
24048         non-canonical VALUEs.
24049
24050 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
24051
24052         PR boostrap/44470
24053         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
24054         (*addsi_1_zext) <TYPE_LEA>: Likewise.
24055         (add lea splitter): Likewise.
24056         (add_zext lea splitter): Likewise.
24057
24058 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
24059
24060         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
24061
24062 2010-06-10  Jan Hubicka  <jh@suse.cz>
24063
24064         * df-problems.c (df_live_problem_data): Add live_bitmaps.
24065         (df_live_alloc): Initialize problem data and live_osbtacks.
24066         (df_live_finalize): Remove obstack, problem data; do not
24067         clear all bitmaps.
24068         (df_live_top_dump, df_live_bottom_dump): Do not dump old
24069         data when not allocated.
24070         (df_live_verify_solution_start): Do not allocate problem data.
24071         (df_live_verify_solution_end): Check if out is allocated.
24072         (struct df_md_problem_data): New structure.
24073         (df_md_alloc): Allocate problem data.
24074         (df_md_free): Free problem data; do not clear bitmaps.
24075
24076 2010-06-10  Jan Beulich  <jbeulich@novell.com>
24077
24078         PR bootstrap/37304
24079         * configure.ac: Replace $() with ${} when intending to expand
24080         variables rather than invoking commands.
24081         * configure: Re-generate.
24082
24083 2010-06-10  Jan Hubicka  <jh@suse.cz>
24084
24085         PR rtl-optimization/44460
24086         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
24087         TYPE_NEEDS_CONSTRUCTING sanity check.
24088
24089 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
24090
24091         * doc/include/fdl.texi: Move to GFDL version 1.3.
24092
24093         * doc/cpp.texi: Move to GFDL version 1.3.
24094         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
24095         * doc/gccint.texi: Move to GFDL version 1.3.
24096         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
24097         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
24098         * doc/invoke.texi: Move to GFDL version 1.3.
24099
24100 2010-06-09  Jan Hubicka  <jh@suse.cz>
24101
24102         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
24103         Break out from ...
24104         (propagate) ... here; swap the order.
24105
24106 2010-06-09  Jan Hubicka  <jh@suse.cz>
24107
24108         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
24109         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
24110         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
24111         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
24112
24113 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
24114
24115         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
24116         Do not the gather memory reference in the outer loop if the step
24117         is not a constant.
24118
24119 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
24120
24121         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
24122         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
24123         8 to 4.  Minor change of the related comments.
24124
24125 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24126
24127         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
24128         the scev analysis when the variable is not used outside the loop
24129         in a close phi node: call compute_overall_effect_of_inner_loop.
24130
24131 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24132
24133         * graphite-sese-to-poly.c (single_pred_cond): Renamed
24134         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
24135         (build_sese_conditions_before): Renamed call to single_pred_cond.
24136         (build_sese_conditions_after): Same.
24137
24138 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
24139
24140         * graphite-poly.h: Fix comments and indentation.
24141         * graphite-sese-to-poly.c: Same.
24142         (build_sese_conditions_before): Compute stmt and gbb only when needed.
24143         * tree-chrec.c: Fix comments and indentation.
24144         (tree-ssa-loop-niter.c): Same.
24145
24146 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
24147
24148         PR rtl-optimization/42461
24149         * dce.c (deletable_insn_p): Return true for const or pure calls again.
24150         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
24151
24152 2010-06-09  Jan Hubicka  <jh@suse.cz>
24153
24154         * bitmap.c (bitmap_and): Walk array forward.
24155         (bitmap_and_compl_into): Likewise.
24156         (bitmap_xor): Likewise.
24157         (bitmap_xor_into):  Likewise.
24158         (bitmap_equal_p): Likewise.
24159         (bitmap_intersect_p): Likewise.
24160         (bitmap_intersect_compl_p): Likewise.
24161         (bitmap_ior_and_into): Likewise.
24162         (bitmap_elt_copy): Likewise.
24163         (bitmap_and_compl): Likewise.
24164         (bitmap_elt_ior): Likewise.
24165
24166 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
24167
24168         * opts-common.c (prune_options): Ensure replacement argv array
24169         is correctly terminated by a NULL entry.
24170
24171 2010-06-09  Jan Hubicka  <jh@suse.cz>
24172
24173         * cgraph.h (varpool_first_static_initializer,
24174         varpool_next_static_initializer): Make checking only when
24175         checking enabled.
24176         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
24177         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
24178         gcc_assert to gcc_checking_assert.
24179         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
24180         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
24181         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
24182         op_iter_init_phiuse, op_iter_init_phidef,
24183         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
24184         gcc_checking_assert.
24185         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
24186         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
24187         partition_is_global, live_on_entry, live_on_exit,
24188         live_merge_and_clear): Likewise.
24189         * system.h (gcc_checking_assert): New macro.
24190         * gimple.h (set_bb_seq): Use gcc_checking_assert.
24191
24192 2010-06-09  Jason Merrill  <jason@redhat.com>
24193
24194         * Makefile.in (TAGS): Collect tags info from c-family.
24195
24196 2010-06-09  Jan Hubicka  <jh@suse.cz>
24197
24198         * gimple.h (gcc_gimple_checking_assert): New macro.
24199         (gimple_set_def_ops, gimple_set_use_ops,
24200         gimple_set_vuse, gimple_set_vdef,
24201         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
24202         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
24203         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
24204         gimple_asm_output_op, gimple_asm_output_op_ptr,
24205         gimple_asm_set_output_op, gimple_asm_clobber_op,
24206         gimple_asm_set_clobber_op, gimple_asm_label_op,
24207         gimple_asm_set_label_op, gimple_try_set_kind,
24208         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
24209         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
24210         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
24211         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
24212         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
24213         gimple_omp_for_set_initial, gimple_omp_for_final,
24214         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
24215         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
24216         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
24217         conditional with ENABLE_GIMPLE_CHECKING.
24218         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
24219
24220 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
24221
24222         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
24223         (get_computation_cost_at): Use it.
24224         (determine_use_iv_cost_condition): Likewise.
24225         (determine_iv_cost): Likewise.
24226
24227 2010-06-09  Richard Guenther  <rguenther@suse.de>
24228
24229         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
24230         replace constants.
24231
24232 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
24233
24234         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
24235
24236 2010-06-09  Martin Jambor  <mjambor@suse.cz>
24237
24238         PR tree-optimization/44423
24239         * tree-sra.c (dump_access): Dump also grp_assignment_read.
24240         (analyze_access_subtree): Pass negative allow_replacements to children
24241         if the current type is scalar.
24242
24243 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24244
24245         PR testsuite/42843
24246         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
24247         * doc/plugins.texi (Plugin license check): Update information
24248         on type of plugin_is_GPL_compatible.
24249         * Makefile.in (PLUGINCC): Define as $(COMPILER).
24250         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
24251
24252 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
24253
24254         * config/arm/arm.c (thumb2_reorg): New function.
24255         (arm_reorg): Call it.
24256         * config/arm/thumb2.md (define_peephole2 for flag clobbering
24257         arithmetic operations): Delete.
24258
24259 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
24260
24261         PR target/44067
24262         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
24263         e500v2 target.
24264
24265 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
24266
24267         PR plugins/44459
24268         * gcc-plugin.h: Encapsulate all declarations in extern "C".
24269
24270 2010-06-08  Jan Hubicka  <jh@suse.cz>
24271
24272         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
24273         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
24274
24275 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
24276
24277         PR tree-optimization/39874
24278         PR middle-end/28685
24279         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
24280         Declare.
24281         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
24282         same_bool_result_p): New.
24283         (and_var_with_comparison, and_var_with_comparison_1,
24284         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
24285         (or_var_with_comparison, or_var_with_comparison_1,
24286         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
24287         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
24288         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
24289         of combine_comparisons.
24290         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
24291
24292 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
24293
24294         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24295         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24296         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
24297         pdp11_function_value_regno_p): New functions.
24298         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24299         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24300
24301 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
24302
24303         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
24304         Thumb-2 in the MINUS case.
24305
24306 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
24307
24308         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
24309
24310         * doc/gty.texi (GTY Options): Document typed GC allocation and
24311         variable_size GTY option.
24312
24313         * ggc-internal.h: New.
24314
24315         * ggc.h: Update copyright year.
24316         (digit_string): Move to stringpool.c.
24317         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
24318         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
24319         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
24320         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
24321         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
24322         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
24323         (ggc_force_collect, ggc_get_size, ggc_statistics)
24324         (ggc_print_common_statistics): Move to ggc-internal.h.
24325         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
24326         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
24327         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
24328         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
24329         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
24330         (ggc_alloc_zone_pass_stat): Remove.
24331         (ggc_internal_alloc_stat, ggc_internal_alloc)
24332         (ggc_internal_cleared_alloc_stat): New.
24333         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
24334         (ggc_internal_vec_alloc_stat)
24335         (ggc_internal_cleared_vec_alloc_stat)
24336         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
24337         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
24338         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
24339         (ggc_cleared_alloc_ptr_array_two_args): New.
24340         (htab_create_ggc, splay_tree_new_ggc): Redefine.
24341         (ggc_splay_alloc): Change the type of the first argument to
24342         enum gt_types_enum.
24343         (ggc_alloc_string): Make macro.
24344         (ggc_alloc_string_stat): New.
24345         (ggc_strdup): Redefine.
24346         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
24347         (ggc_alloc_rtvec_sized): New.
24348         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
24349         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
24350         (ggc_internal_cleared_alloc_zone_stat)
24351         (ggc_internal_zone_alloc_stat)
24352         (ggc_internal_zone_cleared_alloc_stat)
24353         (ggc_internal_zone_vec_alloc_stat)
24354         (ggc_alloc_zone_rtx_def_stat)
24355         (ggc_alloc_zone_tree_node_stat)
24356         (ggc_alloc_zone_cleared_tree_node_stat)
24357         (ggc_alloc_cleared_gimple_statement_d_stat): New.
24358
24359         * ggc-common.c: Include ggc-internal.h.
24360         (ggc_internal_cleared_alloc_stat): Rename from
24361         ggc_alloc_cleared_stat.
24362         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
24363         (ggc_calloc): Remove.
24364         (ggc_cleared_alloc_htab_ignore_args): New.
24365         (ggc_cleared_alloc_ptr_array_two_args): New.
24366         (ggc_splay_alloc): Add obj_type parameter.
24367         (init_ggc_heuristics): Formatting fixes.
24368
24369         * ggc-none.c: Update copyright year.
24370         (ggc_alloc_stat): Rename to ggc_alloc_stat.
24371         (ggc_alloc_cleared_stat): Rename to
24372         ggc_internal_cleared_alloc_stat.
24373         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
24374
24375         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
24376         Remove references to ggc_alloc in comments.
24377         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
24378         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
24379         (new_ggc_zone, destroy_ggc_zone): Remove.
24380         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
24381
24382         * ggc-zone.c: Include ggc-internal.h.  Remove references to
24383         ggc_alloc in comments.
24384         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
24385         (ggc_internal_alloc_zone_pass_stat): New.
24386         (ggc_internal_cleared_alloc_zone_stat): New.
24387         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
24388         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
24389         (new_ggc_zone, destroy_ggc_zone): Remove.
24390
24391         * stringpool.c: Update copyright year.  Include ggc-internal.h
24392         (digit_vector): Make static.
24393         (digit_string): Moved from ggc.h.
24394         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
24395         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
24396
24397         * Makefile.in (GGC_INTERNAL_H): New.
24398         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
24399         $(GGC_INTERNAL_H) to dependencies.
24400
24401         * gengtype.c: Update copyright year.
24402         (walk_type): Accept variable_size GTY option.
24403         (USED_BY_TYPED_GC_P): New macro.
24404         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
24405         whitespace at the end of strings.
24406         (get_type_specifier, variable_size_p): New functions.
24407         (alloc_quantity, alloc_zone): New enums.
24408         (write_typed_alloc_def): New function.
24409         (write_typed_struct_alloc_def): Likewise.
24410         (write_typed_typed_typedef_alloc_def): Likewise.
24411         (write_typed_alloc_defns): Likewise.
24412         (output_typename, write_splay_tree_allocator_def): Likewise.
24413         (write_splay_tree_allocators): Likewise.
24414         (main): Call write_typed_alloc_defns and
24415         write_splay_tree_allocators.
24416
24417         * lto-streamer.h (lto_file_decl_data_ptr): New.
24418
24419         * passes.c (order): Define using cgraph_node_ptr.
24420
24421         * strinpool.c (struct string_pool_data): Declare nested_ptr using
24422         ht_identifier_ptr.
24423
24424         * gimple.h (union gimple_statement_d): Likewise.
24425
24426         * rtl.h (struct rtx_def): Likewise.
24427         (struct rtvec_def): Likewise.
24428
24429         * tree.h (union tree_node): Likewise.
24430
24431         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
24432
24433         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
24434
24435         * tree-scalar-evolution.c (scev_initialize): Likewise.
24436
24437         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
24438
24439         * dwarf2asm.c (dw2_force_const_mem): Likewise.
24440
24441         * omp-low.c (lower_omp_critical): Likewise.
24442
24443         * bitmap.h (struct bitmap_head_def): Update comment to not
24444         reference ggc_alloc.
24445
24446         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
24447
24448         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
24449
24450         * ipa-prop.c (duplicate_ggc_array): Rename to
24451         duplicate_ipa_jump_func_array.  Use typed GC allocation.
24452         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
24453
24454         * gimple.c (gimple_alloc_stat): Use
24455         ggc_alloc_cleared_gimple_statement_d_stat.
24456
24457         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
24458
24459         * tree.c (make_node_stat): Use
24460         ggc_alloc_zone_cleared_tree_node_stat.
24461         (make_tree_vec_stat): Likewise.
24462         (build_vl_exp_stat): Likewise.
24463         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
24464         (make_tree_binfo_stat): Likewise.
24465         (tree_cons_stat): Likewise.
24466
24467         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
24468         (shallow_copy_rtx_stat): Likewise.
24469         (make_node_stat): Likewise.
24470
24471         * lto-symtab.c: Fix comment.
24472
24473         * tree-cfg.c (create_bb): Update comment to not reference
24474         ggc_alloc_cleared.
24475         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
24476
24477         * varpool.c (varpool_node): Use typed GC allocation.
24478         (varpool_extra_name_alias): Likewise.
24479
24480         * varasm.c (emutls_decl): Likewise.
24481         (get_unnamed_section): Likewise.
24482         (get_noswitch_section): Likewise.
24483         (get_section): Likewise.
24484         (get_block_for_section): Likewise.
24485         (build_constant_desc): Likewise.
24486         (create_constant_pool): Likewise.
24487         (force_const_mem): Likewise.
24488
24489         * tree.c (build_vl_exp_stat): Likewise.
24490         (build_real): Likewise.
24491         (build_string): Likewise.
24492         (decl_debug_expr_insert): Likewise.
24493         (decl_value_expr_insert): Likewise.
24494         (type_hash_add): Likewise.
24495         (build_omp_clause): Likewise.
24496
24497         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
24498
24499         * tree-ssa.c (init_tree_ssa): Likewise.
24500
24501         * tree-ssa-structalias.c (heapvar_insert): Likewise.
24502
24503         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24504
24505         * tree-ssa-loop-niter.c (record_estimate): Likewise.
24506
24507         * tree-ssa-alias.c (get_ptr_info): Likewise.
24508
24509         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24510
24511         * tree-phinodes.c (allocate_phi_node): Likewise.
24512
24513         * tree-iterator.c (tsi_link_before): Likewise.
24514         (tsi_link_after): Likewise.
24515
24516         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24517
24518         * tree-dfa.c (create_var_ann): Likewise.
24519
24520         * tree-cfg.c (create_bb): Likewise.
24521
24522         * toplev.c (alloc_for_identifier_to_locale): Likewise.
24523         (general_init): Likewise.
24524
24525         * stringpool.c (stringpool_ggc_alloc): Likewise.
24526         (gt_pch_save_stringpool): Likewise.
24527
24528         * sese.c (if_region_set_false_region): Likewise.
24529
24530         * passes.c (do_per_function_toporder): Likewise.
24531
24532         * optabs.c (set_optab_libfunc): Likewise.
24533         (set_conv_libfunc): Likewise.
24534
24535         * lto-symtab.c (lto_symtab_register_decl): Likewise.
24536
24537         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24538         (input_eh_region): Likewise.
24539         (input_eh_lp): Likewise.
24540         (make_new_block): Likewise.
24541         (unpack_ts_real_cst_value_fields): Likewise.
24542
24543         * lto-section-in.c (lto_new_in_decl_state): Likewise.
24544
24545         * lto-cgraph.c (input_node_opt_summary): Likewise.
24546
24547         * loop-init.c (loop_optimizer_init): Likewise.
24548
24549         * lambda.h (lambda_vector_new): Likewise.
24550
24551         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
24552
24553         * ira.c (update_equiv_regs): Likewise.
24554
24555         * ipa.c (cgraph_node_set_new): Likewise.
24556         (cgraph_node_set_add): Likewise.
24557         (varpool_node_set_new): Likewise.
24558         (varpool_node_set_add): Likewise.
24559
24560         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
24561         (duplicate_ipa_jump_func_array): Likewise.
24562         (ipa_read_node_info): Likewise.
24563
24564         * ipa-cp.c (ipcp_create_replace_map): Likewise.
24565
24566         * integrate.c (get_hard_reg_initial_val): Likewise.
24567
24568         * gimple.c (gimple_alloc_stat): Likewise.
24569         (gimple_build_omp_for): Likewise.
24570         (gimple_seq_alloc): Likewise.
24571         (gimple_copy): Likewise.
24572
24573         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
24574         (gsi_insert_after_without_update): Likewise.
24575
24576         * function.c (add_frame_space): Likewise.
24577         (insert_temp_slot_address): Likewise.
24578         (assign_stack_temp_for_type): Likewise.
24579         (allocate_struct_function): Likewise.
24580         (types_used_by_var_decl_insert): Likewise.
24581
24582         * except.c (init_eh_for_function): Likewise.
24583         (gen_eh_region): Likewise.
24584         (gen_eh_region_catch): Likewise.
24585         (gen_eh_landing_pad): Likewise.
24586         (add_call_site): Likewise.
24587
24588         * emit-rtl.c (get_mem_attrs): Likewise.
24589         (get_reg_attrs): Likewise.
24590         (start_sequence): Likewise.
24591         (init_emit): Likewise.
24592
24593         * dwarf2out.c (new_cfi): Likewise.
24594         (queue_reg_save): Likewise.
24595         (dwarf2out_frame_init): Likewise.
24596         (new_loc_descr): Likewise.
24597         (find_AT_string): Likewise.
24598         (new_die): Likewise.
24599         (add_var_loc_to_decl): Likewise.
24600         (clone_die): Likewise.
24601         (clone_as_declaration): Likewise.
24602         (break_out_comdat_types): Likewise.
24603         (new_loc_list): Likewise.
24604         (loc_descriptor): Likewise.
24605         (add_loc_descr_to_each): Likewise.
24606         (add_const_value_attribute): Likewise.
24607         (tree_add_const_value_attribute): Likewise.
24608         (add_comp_dir_attribute): Likewise.
24609         (add_name_and_src_coords_attributes): Likewise.
24610         (lookup_filename): Likewise.
24611         (store_vcall_insn): Likewise.
24612         (dwarf2out_init): Likewise.
24613
24614         * dbxout.c (dbxout_init): Likewise.
24615
24616         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24617
24618         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24619
24620         * config/score/score7.c (score7_output_external): Likewise.
24621
24622         * config/score/score3.c (score3_output_external): Likewise.
24623
24624         * config/s390/s390.c (s390_init_machine_status): Likewise.
24625
24626         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24627         (rs6000_init_machine_status): Likewise.
24628         (output_toc): Likewise.
24629
24630         * config/pa/pa.c (pa_init_machine_status): Likewise.
24631         (get_deferred_plabel): Likewise.
24632
24633         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24634
24635         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24636
24637         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24638
24639         * config/mep/mep.c (mep_init_machine_status): Likewise.
24640         (mep_note_pragma_flag): Likewise.
24641
24642         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24643
24644         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24645
24646         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24647
24648         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24649         (i386_pe_maybe_record_exported_symbol): Likewise.
24650
24651         * config/i386/i386.c (get_dllimport_decl): Likewise.
24652         (ix86_init_machine_status): Likewise.
24653         (assign_386_stack_local): Likewise.
24654
24655         * config/frv/frv.c (frv_init_machine_status): Likewise.
24656
24657         * config/darwin.c (machopic_indirection_name): Likewise.
24658
24659         * config/cris/cris.c (cris_init_machine_status): Likewise.
24660
24661         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24662
24663         * config/avr/avr.c (avr_init_machine_status): Likewise.
24664
24665         * config/arm/arm.c (arm_init_machine_status): Likewise.
24666
24667         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24668         (alpha_need_linkage): Likewise.
24669         (alpha_use_linkage): Likewise.
24670
24671         * cgraph.c (cgraph_allocate_node): Likewise.
24672         (cgraph_create_edge_1): Likewise.
24673         (cgraph_create_indirect_edge): Likewise.
24674         (cgraph_add_asm_node): Likewise.
24675
24676         * cfgrtl.c (init_rtl_bb_info): Likewise.
24677
24678         * cfgloop.c (alloc_loop): Likewise.
24679         (rescan_loop_exit): Likewise.
24680
24681         * cfg.c (init_flow): Likewise.
24682         (alloc_block): Likewise.
24683         (unchecked_make_edge): Likewise.
24684
24685         * c-parser.c (c_parse_init): Likewise.
24686         (c_parse_file): Likewise.
24687
24688         * c-decl.c (bind): Likewise.
24689         (record_inline_static): Likewise.
24690         (push_scope): Likewise.
24691         (make_label): Likewise.
24692         (lookup_label_for_goto): Likewise.
24693         (finish_struct): Likewise.
24694         (finish_enum): Likewise.
24695         (c_push_function_context): Likewise.
24696
24697         * bitmap.c (bitmap_element_allocate): Likewise.
24698         (bitmap_gc_alloc_stat): Likewise.
24699
24700         * alias.c (record_alias_subset): Likewise.
24701         (init_alias_analysis): Likewise.
24702
24703 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
24704
24705         * fold-const.c (fold_comparison): Remove redundant parenthesis.
24706         * tree-inline.c (expand_call_inline): Pass translated return value of
24707         cgraph_inline_failed_string to diagnostic function.
24708
24709 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
24710             Shujing Zhao  <pearly.zhao@oracle.com>
24711
24712         PR c/37724
24713         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
24714         implicit bad conversions is initialization.
24715         (error_init): Use gmsgid instead of msgid for argument name and change
24716         the call for error.
24717         (pedwarn_init): Use gmsgid instead of msgid for argument name and
24718         change the call for pedwarn.
24719         (warning_init): Use gmsgid instead of msgid for argument name and
24720         change the call for warning.
24721
24722 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
24723
24724         * config/mips/mips-protos.h (mips_print_operand): Delete.
24725         (mips_print_operand_address): Delete.
24726         * config/mips/mips.h (mips_print_operand_punct): Delete.
24727         (PRINT_OPERAND): Delete.
24728         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24729         (PRINT_OPERAND_ADDRESS): Delete.
24730         * config/mips/mips.c (mips_print_operand_punct): Make static.
24731         (mips_print_operand_address): Make static.
24732         (mips_print_operand): Make static.  Call
24733         mips_print_operand_punct_valid_p.
24734         (mips_print_operand_punct_valid_p): New function.
24735         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24736         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24737
24738 2010-06-07  Jan Hubicka  <jh@suse.cz>
24739
24740         PR middle-end/44454
24741         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
24742         are allocated.
24743
24744 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
24745
24746         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
24747         name of RECORD.
24748
24749 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24750
24751         * doc/sourcebuild.texi (Effective-Target Keywords, Other
24752         attributes): Document gas.
24753
24754 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
24755
24756         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
24757         <TYPE_LEA>: Split instruction.
24758         <default>: Remove alternative 2 handling.
24759         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
24760         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
24761         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
24762
24763         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
24764         (ashift_zext lea splitter): Use DImode for multiplication.
24765
24766         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
24767         to generate addition.
24768
24769 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
24770
24771         * common.opt (fira-verbose): Use Var.
24772         (fpcc-struct-return): Use Init instead of VarExists.
24773         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
24774         toplev.c.
24775         * flags.h (flag_signed_char, flag_short_enums,
24776         flag_pcc_struct_return, flag_ira_verbose,
24777         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
24778         * toplev.c (flag_detailed_statistics, flag_signed_char,
24779         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
24780         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
24781         * toplev.h (flag_crossjumping, flag_if_conversion,
24782         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
24783         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
24784         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
24785         flag_cprop_registers, time_report, flag_ira_loop_pressure,
24786         flag_ira_coalesce, flag_ira_move_spills,
24787         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
24788
24789 2010-06-07  Jan Hubicka  <jh@suse.cz>
24790
24791         * df-core.c (df_analyze_problem): Do verification after allocation.
24792
24793         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
24794         (df_lr_alloc): Initialize problem data; move bitmaps to
24795         lr_bitmaps obstack.
24796         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
24797         (df_lr_verify_solution_start): Do not initialize problem data;
24798         allocate bitmaps in lr_bitmaps.
24799         (df_lr_verify_solution_end): Do not free problem data.
24800
24801 2010-06-07  Jan Hubicka  <jh@suse.cz>
24802
24803         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
24804         if caller is noreturn.
24805         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
24806         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
24807         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
24808         * ipa-pure-const.c (check_decl): Add IPA parameter.
24809         (state_from_flags): New function.
24810         (better_state, worse_state): New functions.
24811         (check_call): When in IPA mode, do not care about callees.
24812         (check_load, check_store): Update.
24813         (check_ipa_load, check_ipa_store): New.
24814         (check_stmt): When in IPA mode, use IPA checkers.
24815         (analyze_function): Use state_from_flags.
24816         (propagate): Check indirect edges and references.
24817
24818 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
24819
24820         PR rtl-optimization/44404
24821         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
24822         of count_occurrences to see if it's safe to modify mem_insn.
24823
24824 2010-06-07  Richard Guenther  <rguenther@suse.de>
24825
24826         * gimplify.c (gimplify_cleanup_point_expr): For empty body
24827         and EH-only cleanup drop the cleanup instead of inserting it
24828         unconditionally.
24829
24830 2010-06-07  Ira Rosen  <irar@il.ibm.com>
24831
24832         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
24833         documentation.
24834         * targhooks.c (default_builtin_vectorization_cost): New function.
24835         * targhooks.h (default_builtin_vectorization_cost): Declare.
24836         * target.h (enum vect_cost_for_stmt): Define.
24837         (builtin_vectorization_cost): Change argument and comment.
24838         * tree-vectorizer.h: Remove cost model macros.
24839         * tree-vect-loop.c: Include target.h.
24840         (vect_get_cost): New function.
24841         (vect_estimate_min_profitable_iters): Replace cost model macros with
24842         calls to vect_get_cost.
24843         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
24844         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
24845         default implementation.
24846         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
24847         calls to target hook builtin_vectorization_cost.
24848         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
24849         Likewise.
24850         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
24851         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
24852         implementation to return costs.
24853         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
24854         * config/spu/spu.h: Remove vectorizer cost model macros.
24855         * config/i386/i386.h: Likewise.
24856         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
24857         a call to target hook builtin_vectorization_cost.
24858
24859 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
24860
24861         PR target/44319
24862         * config/i386/i386.c (override_options): Turn zee pass on for level 2
24863         and above and defer till target is known.
24864         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
24865         turn off otherwise.
24866
24867 2010-05-25  Jan Hubicka  <jh@suse.cz>
24868
24869         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
24870         (df_compact_blocks): Likewise.
24871         * df.h (struct df): Turn hardware_regs_used,
24872         regular_block_artificial_uses, eh_block_artificial_uses,
24873         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
24874         bitmap_head.
24875         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
24876         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
24877         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
24878         df_scan_blocks, df_insn_delete, df_insn_rescan,
24879         df_insn_rescan_debug_internal, df_insn_rescan_all,
24880         df_process_deferred_rescans, df_process_deferred_rescans,
24881         df_notes_rescan, df_get_call_refs, df_get_call_refs,
24882         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
24883         df_record_entry_block_defs, df_record_exit_block_uses,
24884         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
24885         df_scan_verify): Update.
24886
24887 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
24888
24889         PR c++/44188
24890         * c-common.c (is_typedef_decl): Move this definition ...
24891         * tree.c (is_typedef_decl): ... here.
24892         (typdef_variant_p): Move definition here from cp/tree.c.
24893         * c-common.h (is_typedef_decl): Move this declaration ...
24894         * tree.h (is_typedef_decl): ... here.
24895         (typedef_variant_p): Move declaration here from cp/cp-tree.h
24896         * dwarf2out.c (is_naming_typedef_decl): New function.
24897         (gen_tagged_type_die): Split out of ...
24898         (gen_type_die_with_usage): ... this function. When an anonymous
24899         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
24900         is emitted for the typedef.
24901         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
24902         anonymous tagged types.
24903
24904 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24905
24906         PR c/20000
24907         * c-decl.c (grokdeclarator): Delete warning.
24908
24909 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24910
24911         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
24912         newly built CALL_EXPR.
24913         * tree-profile.c (tree_profiling): Don't profile functions produced
24914         for built-in stuff.
24915
24916 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
24917
24918         PR bootstrap/44427
24919         PR bootstrap/44428
24920         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
24921         endianness-independent.
24922
24923 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
24924
24925         * c-common.c: Move to c-family/.
24926         * c-common.def: Likewise.
24927         * c-common.h: Likewise.
24928         * c-cppbuiltin.c: Likewise.
24929         * c-dump.c: Likewise.
24930         * c-format.c: Likewise.
24931         * c-format.h : Likewise.
24932         * c-gimplify.c: Likewise.
24933         * c-lex.c: Likewise.
24934         * c-omp.c: Likewise.
24935         * c.opt: Likewise.
24936         * c-opts.c: Likewise.
24937         * c-pch.c: Likewise.
24938         * c-ppoutput.c: Likewise.
24939         * c-pragma.c: Likewise.
24940         * c-pragma.h: Likewise.
24941         * c-pretty-print.c: Likewise.
24942         * c-pretty-print.h: Likewise.
24943         * c-semantics.c: Likewise.
24944         * stub-objc.c: Likewise.
24945
24946         * gengtype.c (get_file_langdir): Special-case files in c-family/.
24947         (get_output_file_with_visibility): Fix name for c-common.h.
24948         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
24949
24950         * c-tree.h: Update include path for moved files.
24951         * c-lang.c: Likewise.
24952         * c-lang.h: Likewise.
24953         * c-parser.c: Likewise.
24954         * c-convert.c: Likewise.
24955         * c-decl.c: Likewise.
24956         * c-objc-common.c: Likewise.
24957         * configure.ac: Make sure c-family/ exists in the build directory.
24958         * configure: Regenerate.
24959         * Makefile.in: Update paths for moved files.  Regroup files per
24960         location and update dependencies.  Move generated_files down after
24961         ALL_GTFILES_H.
24962
24963         * config/spu/spu-c.c: Update paths for moved files.
24964         * config/mep/mep-pragma.c: Likewise.
24965         * config/darwin-c.c: Likewise.
24966         * config/i386/msformat-c.c: Likewise.
24967         * config/i386/i386-c.c: Likewise.
24968         * config/avr/avr-c.c: Likewise.
24969         * config/sol2-c.c: Likewise.
24970         * config/ia64/ia64-c.c: Likewise.
24971         * config/rs6000/rs6000-c.c: Likewise.
24972         * config/arm/arm.c: Likewise.
24973         * config/arm/arm-c.c: Likewise.
24974         * config/h8300/h8300.c: Likewise.
24975         * config/v850/v850-c.c: Likewise.
24976
24977         * config/t-darwin: Fix dependencies for moved files.
24978         * config/t-sol2: Fix dependencies for moved files.
24979         * config/mep/t-mep: Fix dependencies for moved files.
24980         * config/ia64/t-ia64: Fix dependencies for moved files.
24981         * config/rs6000/t-rs6000: Fix dependencies for moved files.
24982         * config/v850/t-v850: Fix dependencies for moved files.
24983         * config/v850/t-v850e: Fix dependencies for moved files.
24984
24985         * config/m32c/m32c-pragma.c
24986
24987         * po/exgettext: Look in c-family/ also.
24988
24989 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
24990
24991         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
24992         (mark_control_dependent_edges_necessary): Call it instead of marking
24993         the last statement manually.
24994         (propagate_necessity): Likewise.
24995
24996 2010-06-05  Jan Hubicka  <jh@suse.cz>
24997
24998         * basic-block.h (compute_dominance_frontiers): Updated.
24999         (compute_idf): Likewise.
25000
25001         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
25002         for dominance frontiers.
25003         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
25004         (insert_updated_phi_nodes_for): Likewise.
25005         (update_ssa): Likewise.
25006         * cfganal.c (compute_dominance_frontiers_1): Likewise.
25007         (compute_dominance_frontiers): Likewise.
25008         (compute_idf): Likewise.
25009         * df-problems.c (df_md_local_compute): Likewise.
25010
25011 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
25012
25013         * target.h (struct gcc_target): Add memory_move_cost field.
25014         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
25015         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
25016         * targhooks.c (default_memory_move_cost): New function.
25017         * targhooks.h (default_memory_move_cost): Declare function.
25018         * reload.h (memory_move_cost): Declare.
25019         (memory_move_secondary_cost): Change type of 'in' argument to bool.
25020         * reginfo.c (memory_move_cost): New function.
25021         (memory_move_secondary_cost): Change type of 'in' argument to bool.
25022         * ira.h (ira_memory_move_cost): Update comment.
25023         * ira.c (ira_memory_move_cost): Update comment.
25024         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
25025         with memory_move_cost.
25026         * postreload.c (reload_cse_simplify_set): (Ditto.).
25027         * reload1.c (choose_reload_regs): (Ditto.).
25028         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
25029         (MEMORY_MOVE_COST):  Revise documentation.
25030
25031         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
25032         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
25033         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
25034         type of 'in' argument to bool.
25035         (TARGET_MEMORY_MOVE_COST): Define.
25036
25037 2010-06-05  Jan Hubicka  <jh@suse.cz>
25038
25039         * ipa-pure-const.c (propagate): Fix typo in handling of functions
25040         that cannot return.  Be more careful when merging the results with
25041         previously known ones.
25042
25043 2010-06-05  Matthias Klose  <doko@ubuntu.com>
25044
25045         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
25046         function to add the -iplugindir option.
25047         (find_plugindir_spec_function): Add new declaration and function.
25048         (static_spec_func): Use it for "find-plugindir".
25049
25050 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
25051
25052         PR c++/44361
25053         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
25054         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
25055         statement expression.
25056
25057 2010-06-05  Jan Hubicka  <jh@suse.cz>
25058
25059         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
25060         (df_rd_problem_data): Convert sparse_invalidated_by_call,
25061         dense_invalidated_by_call to bitmap head.
25062         (df_rd_alloc, df_rd_bb_local_compute_process_def,
25063         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
25064         df_rd_start_dump, df_lr_verify_transfer_functions,
25065         df_live_verify_transfer_functions, df_chain_create_bb,
25066         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
25067         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
25068         df_simulate_one_insn_forwards, df_md_alloc,
25069         df_md_bb_local_compute_process_def,
25070         df_md_bb_local_compute_process_def, df_md_local_compute,
25071         df_md_transfer_function df_md_free): Update.
25072
25073 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
25074
25075         PR c/44322
25076         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
25077         target type for ADDR_EXPR; require no changes to qualifiers except
25078         for function types.
25079         * c-tree.h (c_build_type_variant): Remove.
25080
25081 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
25082
25083         * genautomata.c (get_excl_set): Do work per element, not per char.
25084         (check_presence_pattern_sets): Similar.
25085         (check_absence_pattern_sets): Similar.
25086
25087 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
25088
25089         * genautomata.c (curr_state_pass_num): Delete.
25090         (min_issue_delay_pass_states): Delete.
25091         (min_issue_delay): Delete.
25092         (initiate_min_issue_delay_pass_states): Delete.
25093         (output_min_issue_delay_table): Compute min_issue_delay_vect
25094         using a breadth-first search variant.
25095         (output_tables): Don't call initiate_min_issue_delay_pass_states.
25096
25097 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
25098
25099         PR boostrap/44421
25100         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
25101         (df_byte_lr_bb_local_compute): Likewise.
25102
25103 2010-06-03  Jason Merrill  <jason@redhat.com>
25104
25105         Implement noexcept operator (5.3.7)
25106         * c-common.c (c_common_reswords): Add noexcept.
25107         * c-common.h (enum rid): Add RID_NOEXCEPT.
25108
25109 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
25110
25111         * config/darwin-driver.c (darwin_default_min_version): Use
25112         GCC-specific formats in diagnostics.
25113         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
25114         diagnostics.
25115         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
25116         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
25117         eval_spec_function, handle_braces, process_brace_body, main,
25118         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
25119         getenv_spec_function, compare_version_strings,
25120         version_compare_spec_function): Use GCC-specific formats in
25121         diagnostics.
25122
25123 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25124
25125         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
25126         that operand 0 and operand 1 are equal.
25127         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
25128         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
25129         and operand 1 are equal.
25130         <default>: Ditto.  Remove ??? comment.
25131         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
25132         and operand 1 are equal.
25133         <default>: Ditto.  Remove ??? comment.
25134         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
25135         are equal.
25136         (*add<mode>_4) <default>: Ditto.
25137         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
25138
25139 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
25140
25141         * config/i386/i386-protos.h (ix86_print_operand): Declare.
25142         * config/i386/i386.c (ix86_print_operand): Make non-static.
25143         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
25144         * output.h (output_operand): Declare.
25145         * final.c (output_operand): Make non-static.
25146
25147 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
25148
25149         PR rtl-optimization/44013
25150         * sched-deps.c (add_dependence_list_and_free): Don't free lists
25151         when processing debug insns.
25152
25153         PR debug/41371
25154         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
25155         recursing.  Check that recursion is bounded.  Rename inner var
25156         to avoid hiding incoming argument.
25157
25158 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25159
25160         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
25161         operands[2] == 255.
25162         (*addqi_3): Ditto.
25163         (*addqi_4): Ditto.
25164         (*addqi_5): Ditto.
25165         (*addqi_ext_1_rex64): Ditto.
25166         (*addqi_ext_1): Ditto.
25167
25168         (*addqi_4): Check for incdec_operand in QImode.
25169
25170         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
25171         using SWI mode iterator.
25172         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
25173         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
25174         mode iterator.
25175         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
25176         using SWI mode iterator.
25177
25178 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25179
25180         PR c/25880
25181         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
25182         * c-format.c (gcc_diag_flag_specs): Add hash.
25183         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
25184         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
25185         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
25186         pp_c_cv_qualifiers. Handle qualifiers spelling here.
25187         (pp_c_type_qualifier_list): Call the function above.
25188         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
25189         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
25190         (WARN_FOR_QUALIFIERS): New macro.
25191         (convert_for_assignment): Use it.
25192
25193 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
25194
25195         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
25196
25197 2010-06-04  Jan Hubicka  <jh@suse.cz>
25198
25199         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
25200         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
25201         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
25202         DF_BYTE_LR_OUT): Update for embedded bitmaps.
25203         * fwprop.c (single_def_use_enter_block): Likewise.
25204         * ddg.c (create_ddg_dep_from_intra_loop_link,
25205         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
25206         * loop-iv.c (latch_dominating_def): Likewise.
25207         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
25208         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
25209         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
25210         df_rd_transfer_function, df_rd_top_dump,
25211         df_rd_bottom_dump): Update.
25212         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
25213         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
25214         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
25215         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
25216         df_lr_verify_solution_start, df_lr_verify_solution_end,
25217         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
25218         df_live_free_bb_info, df_live_alloc, df_live_reset,
25219         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
25220         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
25221         df_live_verify_solution_start, df_live_verify_solution_end,
25222         df_live_verify_transfer_functions, df_chain_create_bb,
25223         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
25224         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
25225         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
25226         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
25227         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
25228         df_byte_lr_transfer_function, df_byte_lr_top_dump,
25229         df_byte_lr_bottom_dump, df_create_unused_note,
25230         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
25231         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
25232         df_md_transfer_function, df_md_init, df_md_confluence_0,
25233         df_md_confluence_n,
25234         df_md_top_dump, df_md_bottom_dump): Update.
25235         (struct df_lr_problem_data): Embedd bitmap headers.
25236
25237 2010-06-04  Jan Hubicka  <jh@suse.cz>
25238
25239         * dce.c (dce_process_block): Do not re-scan already marked
25240         instructions.
25241
25242 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
25243
25244         PR rtl-optimization/39871
25245         PR rtl-optimization/40615
25246         PR rtl-optimization/42500
25247         PR rtl-optimization/42502
25248         * ira.c (init_reg_equiv_memory_loc: New function.
25249         (ira): Call it twice.
25250         * reload.h (calculate_elim_costs_all_insns): Declare.
25251         * ira-costs.c: Include "reload.h".
25252         (regno_equiv_gains): New static variable.
25253         (init_costs): Allocate it.
25254         (finish_costs): Free it.
25255         (ira_costs): Call calculate_elim_costs_all_insns.
25256         (find_costs_and_classes): Take estimated elimination costs
25257         into account.
25258         (ira_adjust_equiv_reg_cost): New function.
25259         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
25260         * reload1.c (init_eliminable_invariants, free_reg_equiv,
25261         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
25262         (elim_bb): New static variable.
25263         (reload): Move code out of here into init_eliminable_invariants and
25264         free_reg_equiv.  Call them.
25265         (calculate_elim_costs_all_insns): New function.
25266         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
25267         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
25268         but call note_reg_elim_costly if we turned a valid memory address
25269         into an invalid one.
25270         * Makefile.in (ira-costs.o): Depend on reload.h.
25271
25272 2010-06-04  Julian Brown  <julian@codesourcery.com>
25273
25274         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
25275         for pool ranges.
25276
25277 2010-06-04  Richard Guenther  <rguenther@suse.de>
25278
25279         PR lto/41584
25280         * cgraph.h (struct varpool_node): Add lto_file_data field.
25281         * lto-cgraph.c (input_varpool_node): Initialize it.
25282
25283 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
25284
25285         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
25286         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
25287         predicate in "type" attribute calculation.
25288         (*addsi_1_zext): Ditto.
25289         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
25290         (*addsi_2_zext): Ditto.
25291         (*add<mode>_3): Ditto.
25292         (*addsi_3_zext): Ditto.
25293         (*add<mode>_5): Ditto.
25294
25295 2010-06-03  Jan Hubicka  <jh@suse.cz>
25296
25297         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
25298         of bitmap_bit_p.
25299         * cfganal.c (compute_dominance_frontiers_1): Likewise.
25300
25301 2010-06-03  Jan Hubicka  <jh@suse.cz>
25302
25303         * df-problems.c (df_create_unused_note, df_note_bb_compute):
25304         micro-optimize the checks when to add new note.
25305
25306 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
25307
25308         * final.c (output_asm_insn): Call
25309         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
25310         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
25311         (output_address): Call targetm.asm_out.print_operand_address.
25312         Update comments.
25313         * target.h (struct gcc_target): Add print_operand,
25314         print_operand_address, and print_operand_punct_valid_p fields.
25315         * targhooks.h (default_print_operand): Declare.
25316         (default_print_operand_address): Declare.
25317         (default_print_operand_punct_valid_p): Declare.
25318         * targhooks.c (default_print_operand): Define.
25319         (default_print_operand_address): Define.
25320         (default_print_operand_punct_valid_p): Define.
25321         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
25322         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
25323         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
25324         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
25325         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
25326         * vmsdbgout.c (addr_const_to_string): Update comment.
25327         * config/i386/i386.c (print_operand): Rename to...
25328         (ix86_print_operand): ...this.  Make static.
25329         (print_operand_address): Rename to...
25330         (ix86_print_operand_address): ...this.  Make static.  Call
25331         ix86_print_operand instead of PRINT_OPERAND.
25332         (ix86_print_operand_punct_valid_p): New function.
25333         (TARGET_PRINT_OPERAND): Define.
25334         (TARGET_PRINT_OPERAND_ADDRESS): Define.
25335         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
25336         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
25337         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
25338         (PRINT_OPERAND): Delete.
25339         (PRINT_OPERAND_ADDRESS): Delete.
25340         * config/i386/i386-protos.h (print_operand): Delete prototype.
25341         (print_operand_address): Delete prototype.
25342
25343 2010-06-03  Richard Guenther  <rguenther@suse.de>
25344
25345         PR tree-optimization/44403
25346         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25347         Preserve pointer qualifiers.
25348         (vect_create_data_ref_ptr): Likewise.
25349
25350 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
25351
25352         PR c++/44294
25353         * defaults.h (MAX_FIXED_MODE_SIZE): New.
25354
25355         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
25356
25357 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
25358
25359         PR debug/44375
25360         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
25361         return false if merging the bbs would lead to goto_locus
25362         location being lost from the IL.
25363
25364 2010-06-03  Jan Hubicka  <jh@suse.cz>
25365             Jakub Jelinek  <jakub@redhat.com>
25366
25367         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
25368         set->regs[i] is NULL or has just one entry.
25369
25370 2010-06-03  Jan Hubicka  <jh@suse.cz>
25371
25372         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
25373         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
25374
25375 2010-06-03  Paul Brook  <paul@codesourcery.com>
25376
25377         * config/arm/arm.c (FL_TUNE): Define.
25378         (arm_default_cpu, arm_cpu_select): Remove.
25379         (all_cores): Populate core field.
25380         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
25381         (arm_find_cpu): New function.
25382         (arm_handle_option): Lookup cpu/architecture names.
25383         (arm_override_options): Cleanup mcpu/march/mtune handling.
25384         (arm_file_start): Ditto.
25385
25386 2010-06-03  Alan Modra  <amodra@gmail.com>
25387
25388         PR target/44169
25389         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
25390         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
25391         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
25392         (rs6000_emit_load_toc_table): Likewise.
25393
25394 2010-06-02  Jan Hubicka  <jh@suse.cz>
25395
25396         * passes.c (init_optimization_passes): Put ipa reference
25397         after ipa pure-const.
25398
25399 2010-06-02  Jan Hubicka  <jh@suse.cz>
25400
25401         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
25402         calls_read_all and calls_write_all.
25403         (get_reference_optimization_summary): Fix formatting.
25404         (is_proper_for_analysis): Check that decl is not readonly.
25405         (propagate_bits): Check CONST/PURE/noreturn flags.
25406         (ipa_init): Move all_module_statics to optimization_summary_obstack.
25407         (analyze_function): Ignore indirect edges.
25408         (copy_global_bitmap): For all module statics, do nothing.
25409         (generate_summary): Do not print calls_read_all/calls_write_all.
25410         (read_write_all_from_decl): Take node as argument; check
25411         cgraph_node_cannot_return.
25412         (propagate): Reorganize read_all/write_all computation;
25413         check indirect edges; check ecf flags; use all_module_statics
25414         in the results; do not free all_module_statics.
25415         (stream_out_bitmap): Handle all_module_statics.
25416         (ipa_reference_write_optimization_summary): Likewise; use
25417         varpool/cgraph encoders to get boundaries.
25418         (ipa_reference_read_optimization_summary): Read in all_module_statics;
25419         use it when possible.
25420
25421 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25422
25423         PR target/44218
25424         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
25425         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
25426
25427         * doc/extend.texi (powerpc builtins): Document vec_recip,
25428         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
25429
25430         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
25431         (rs6000_emit_swrsqrt): Ditto.
25432         (rs6000_emit_swdivsf): Delete.
25433         (rs6000_emit_swdivdf): Ditto.
25434         (rs6000_emit_swrsqrtsf): Ditto.
25435
25436         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
25437         describe the reciprocal estimate support for each type.
25438         (recip_options): Map -mrecip=<opt> into option bits.
25439         (gen_2arg_fn_t): New typedef for binary rtx gen function.
25440         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
25441         reciprocal estimate instructions.
25442         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
25443         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
25444         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
25445         cost information if -mdebug=cost or -mdebug=reg.
25446         (rs6000_override_options): Set -mrecip-precision for power6, and
25447         power7 machines.  If -mvsx or -mdfp, enable various options that
25448         came in previous instruction set ISAs, unless the option was
25449         explicitly disabled by the command line option.  Parse
25450         -mrecip=<opt> options.
25451         (rs6000_builtin_vectorized_function): Add support for vectorizing
25452         the reciprocal estimate builtins and expansions.
25453         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
25454         (bdesc_2arg): Add reciprocal estimate builtins.
25455         (bdesc_1arg): Add reciprocal square root estimate builtins.
25456         (rs6000_expand_builtin): Rewrite to use a switch statement,
25457         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
25458         (rs6000_init_builtins): Create declarations for reciprocal
25459         estimate builtins.
25460         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
25461         sized, prefer traditional floating point registers, if integer
25462         vector types, prefer altivec registers.  Don't actually look at
25463         the memory address any more.
25464         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
25465         builtins.
25466         (rs6000_load_constant_and_splat): New helper function to load up
25467         the constant for reciprocal estimate instructions.
25468         (rs6000_emit_madd): New helper function for generating
25469         multiply/add type instructions, based on the current switches.
25470         (rs6000_emit_msub): Ditto.
25471         (rs6000_emit_mnsub): Ditto.
25472         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
25473         replace a divide with a reciprocal estimate and fixup, adding
25474         support for machines with high precision and vectors.
25475         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
25476         low precision machines.
25477         (rs6000_emit_swdiv): New common function to be called to replace a
25478         division with reciprocal estimate and fixup.
25479         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
25480         for double and vector types.  Add support for high precision machines.
25481
25482         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
25483         the reciprocal estimate instructions can be generated.
25484         (TARGET_FRE): Ditto.
25485         (TARGET_FRSQRTES): Ditto.
25486         (TARGET_FRSQRTE): Ditto.
25487         (RS6000_RECIP_*): New macros for reciprocal estimate support.
25488
25489         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
25490         square root estimate on vectors.
25491         (re<mode>2): New insn for reciprocal division estimate on vectors.
25492
25493         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
25494         New builtin.
25495         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
25496         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
25497         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
25498         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
25499         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
25500         (RS6000_BUILTIN_RSQRT): Ditto.
25501         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
25502         floating point builtin.
25503
25504         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
25505         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
25506         __RECIP_PRECISION__ based on the command line switches.
25507         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
25508
25509         * config/rs6000/rs6000.opt (-mrecip): Document add support for
25510         replacing division instructions with reciprocal estimate and fixup.
25511         (-mrecip=<opt>): New option.
25512         (-mrecip-precision): Ditto.
25513
25514         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
25515         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
25516         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
25517         precision scalar.
25518
25519         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
25520         (UNSPEC_VREFP): Ditto.
25521         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
25522         conterparts with regard to support of -mno-fused-madd and -ffast-math.
25523         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
25524         reciprocal estimate instructions to be generated.
25525         (altivec_vrefp): Ditto.
25526
25527         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
25528         estimate support.
25529         (rreg): New mode attribute for reciprocal estimate support.
25530         (recip<mode>3): New insn for division using reciprocal estimate
25531         and fixup builtins.
25532         (divide define_split): New define_split to convert floating point
25533         division to use reciprocal estimate if the user used the
25534         appropriate options and the split is run when we can add new
25535         pseudo registers for the fixup.
25536         (rsqrt<mode>2): New insn for reciprocal square root support.
25537         (recipsf3): Move into recip<mode>3.
25538         (recipdf3): Ditto.
25539         (fres): Use TARGET_FRES.
25540         (rsqrtsf2): Move into rsqrt<mode>2.
25541         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
25542         (copysignsf3): Add support for VSX.
25543         (fred): Use TARGET_FRE.
25544         (fred_fpr): Ditto.
25545         (rsqrtdf_internal1): New function for frsqrte instruciton.
25546
25547         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
25548         (vec_rsqrt): Ditto.
25549
25550 2010-06-03  Richard Guenther  <rguenther@suse.de>
25551
25552         PR middle-end/44291
25553         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
25554         (set_user_assembler_libfunc): Likewise.
25555
25556 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
25557
25558         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
25559         defaults.h.
25560         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
25561         to defaults.h
25562         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
25563         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
25564         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
25565         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
25566         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
25567         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
25568         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
25569         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
25570         * defaults.h: Updated for above mentioned changes.
25571
25572 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
25573
25574         * c-common.c: Remove header include of tm_p.h.
25575         * Makefile.in (c-common.o): Remove TM_P_H dependency.
25576
25577 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
25578
25579         * tree.h (struct tree_decl_map): New type.
25580         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
25581         (tree_decl_map_hash): New prototype.
25582         (debug_expr_for_decl, value_expr_for_decl): Change into
25583         tree_decl_map hashtab from tree_map.
25584         (init_ttree): Adjust initialization.
25585         (tree_decl_map_hash): New function.
25586         (decl_debug_expr_lookup, decl_debug_expr_insert,
25587         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
25588
25589 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25590
25591         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
25592         linker emulations.
25593         * configure: Regenerate.
25594         * config.in: Regenerate.
25595
25596         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
25597         (X86_64_EMULATION): Define.
25598         (TARGET_LD_EMULATION): Use them.
25599
25600         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
25601         (SPARC64_EMULATION): Define.
25602         (LINK_ARCH_SPEC): Use them.
25603
25604 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
25605
25606         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
25607         smallest_mode_for_size for computing the precision types of new
25608         graphite IVs.  Do not call lang_hooks.types.type_for_size.
25609
25610 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
25611
25612         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
25613         information.
25614         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
25615
25616 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
25617
25618         PR middle-end/44363
25619         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
25620         return false instead.
25621
25622 2010-06-02  Jan Hubicka  <jh@suse.cz>
25623
25624         PR middle-end/44295
25625         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
25626         create new cgraph node to check callee.
25627
25628 2010-06-02  Richard Guenther  <rguenther@suse.de>
25629
25630         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
25631
25632 2010-06-02  Richard Guenther  <rguenther@suse.de>
25633
25634         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
25635         (lto_wrapper_cleanup): ... this.  Do not exit.
25636         (fatal): Adjust.  Exit here.
25637         (fatal_perror): Likewise.
25638         (fatal_signal): New function.
25639         (main): Set up signal handlers to cleanup temporary files.
25640         * Makefile.in (lto-wrapper.o): Adjust dependencies.
25641
25642 2010-06-02  Richard Guenther  <rguenther@suse.de>
25643
25644         PR tree-optimization/44377
25645         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
25646
25647 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25648
25649         * config/s390/2097.md (z10_fhex): Remove insn reservation.
25650         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
25651         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
25652         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
25653         instruction.
25654         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
25655
25656 2010-06-02  Jan Hubicka  <jh@suse.cz>
25657
25658         * bitmap.c (bitmap_descriptor): Add search_iter.
25659         (bitmap_find_bit): Increment it.
25660         (print_statistics): Print it.
25661
25662 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
25663
25664         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
25665         instead of gimple_build_call_vec.  Delete unnecessary local variable.
25666
25667 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
25668
25669         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
25670         change from yesterday.
25671
25672 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
25673
25674         * c-ada-spec.c: Clean up redundant includes.
25675
25676 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
25677
25678         * gimplify.c: Do not include except.h and optabs.h.
25679         (gimplify_body): Do not initialize RTL profiling.
25680         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
25681         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
25682         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
25683         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
25684         langhooks.h.
25685
25686         * tree-pretty-print.h: Include pretty-print.h.
25687         * gimple-pretty-print.h: Include pretty-print.h.
25688
25689         * tree-pretty-print.c: Do not include diagnostic.h.
25690         * tree-vrp.c: Likewise.
25691         * tree-tailcall.c: Likewise
25692         * tree-scalar-evolution.c: Likewise
25693         * tree-ssa-dse.c: Likewise
25694         * tree-chrec.c: Likewise
25695         * tree-ssa-sccvn.c: Likewise
25696         * tree-ssa-copyrename.c: Likewise
25697         * tree-nomudflap.c: Likewise
25698         * tree-call-cdce.c: Likewise
25699         * tree-stdarg.c: Likewise
25700         * tree-ssa-math-opts.c: Likewise
25701         * tree-nrv.c: Likewise
25702         * tree-ssa-sink.c: Likewise
25703         * tree-browser.c: Likewise
25704         * tree-ssa-loop-ivcanon.c: Likewise
25705         * tree-ssa-loop.c: Likewise
25706         * tree-parloops.c: Likewise
25707         * tree-ssa-address.c: Likewise
25708         * tree-ssa-ifcombine.c: Likewise
25709         * tree-if-conv.c: Likewise
25710         * tree-data-ref.c: Likewise
25711         * tree-affine.c: Likewise
25712         * tree-ssa-phiopt.c: Likewise
25713         * tree-ssa-coalesce.c: Likewise
25714         * tree-ssa-pre.c: Likewise
25715         * tree-ssa-live.c: Likewise
25716         * tree-predcom.c: Likewise
25717         * tree-ssa-forwprop.c: Likewise
25718         * tree-ssa-dce.c: Likewise
25719         * tree-ssa-ter.c: Likewise
25720         * tree-ssa-loop-prefetch.c: Likewise
25721         * tree-optimize.c: Likewise
25722         * tree-ssa-phiprop.c: Likewise
25723         * tree-object-size.c: Likewise
25724         * tree-outof-ssa.c: Likewise
25725         * tree-ssa-structalias.c: Likewise
25726         * tree-switch-conversion.c: Likewise
25727         * tree-ssa-reassoc.c: Likewise
25728         * tree-ssa-operands.c: Likewise
25729         * tree-vectorizer.c: Likewise
25730         * tree-vect-data-refs.c: Likewise
25731         * tree-vect-generic.c: Likewise
25732         * tree-vect-stmts.c: Likewise
25733         * tree-vect-patterns.c: Likewise
25734         * tree-vect-slp.c: Likewise
25735         * tree-vect-loop.c: Likewise
25736         * tree-ssa-loop-ivopts.c: Likewise
25737         * tree-ssa-loop-im.c: Likewise
25738         * tree-ssa-loop-niter.c: Likewise
25739         * tree-ssa-loop-unswitch.c: Likewise
25740         * tree-ssa-loop-manip.c: Likewise
25741         * tree-ssa-loop-ch.c: Likewise
25742         * tree-dump.c: Likewise
25743         * tree-complex.c: Likewise
25744
25745         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
25746         * tree-ssa-uninit.c: Likewise
25747         * tree-ssa-threadupdate.c: Likewise
25748         * tree-ssa-uncprop.c: Likewise
25749         * tree-ssa-ccp.c: Likewise
25750         * tree-ssa-dom.c: Likewise
25751         * tree-ssa-propagate.c: Likewise
25752         * tree-ssa-alias.c: Likewise
25753         * tree-dfa.c: Likewise
25754         * tree-cfgcleanup.c: Likewise
25755         * tree-sra.c: Likewise
25756         * tree-ssa-copy.c: Likewise
25757         * tree-ssa.c: Likewise
25758         * tree-profile.c: Likewise
25759         * tree-cfg.c: Likewise
25760         * tree-ssa-threadedge.c: Likewise
25761         * tree-vect-loop-manip.c: Likewise
25762
25763         * tree-inline.c: Do not include diagnostic.h and expr.h.
25764         Include rtl.h.
25765         (copy_decl_for_dup_finish): Do not use NULL_RTX.
25766
25767         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
25768         * tree-loop-distribution.c: Likewise.
25769
25770 2010-06-01  Jan Hubicka  <jh@suse.cz>
25771
25772         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
25773
25774 2010-06-01  Jan Hubicka  <jh@suse.cz>
25775
25776         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
25777         remove return value.
25778         (split_bbs_on_noreturn_calls) .... here.
25779         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
25780         * tree-flow.h (fixup_noreturn_call): New.
25781
25782 2010-06-01  Jan Hubicka  <jh@suse.cz>
25783
25784         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
25785
25786 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
25787
25788         * tree.h (build_nt_call_list): Delete.
25789         * tree.c (build_nt_call_list): Delete.
25790
25791 2010-06-01  Jan Hubicka  <jh@suse.cz>
25792
25793         * fwprop.c: Make emit-rtl.h include last.
25794         * rtlanal.c: Include emit-rtl.h.
25795         * genautomata.c: Output emit-rtl include into insn-automata.c
25796         * df-scan.c: Include emit-rtl.h.
25797         * haifa-sched.c: Indlude emit-rtl.h.
25798         * mode-switching.c: Indlude emit-rtl.h.
25799         * graph.c: Indlude emit-rtl.h.
25800         * sel-sched.c: Include emit-rtl.h.
25801         * sel-sched-ir.c: Include emit-rtl.h.
25802         * ira-build.c: Include emit-rtl.h.
25803         * emit-rtl.c (first_insn, last_insn): Remove defines.
25804         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
25805         Move to emit-rtl.h.
25806         (set_new_first_and_last_insn, get_last_insn_anywhere,
25807         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
25808         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
25809         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
25810         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
25811         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
25812         Use accessor functions.
25813         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
25814          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
25815         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
25816         mem_expr_equal_p): Move here from rtl.h.
25817         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
25818         Move here from emit-rtl.c; make inline.
25819         * cfglayout.h: Include emit-rtl.h.
25820         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
25821          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
25822         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
25823         mem_expr_equal_p, get_insns, set_first-insn,
25824         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
25825         * reg-stack.c: Include emit-rtl.h.
25826         * dce.c: Likewise.
25827
25828 2010-06-01  Jan Hubicka  <jh@suse.cz>
25829
25830         * cgraph.h (tree_function_versioning): Update prototype.
25831         (cgraph_function_versioning): Update prototype.
25832         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
25833         bitmap.
25834         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
25835         (cgraph_materialize_clone, save_inline_function_body): Update use of
25836         tree_function_versioning.
25837         * tree-inline.c (copy_bb): Look for previous copied block to link
25838         after; fix debug output.
25839         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
25840         (copy_body): Likewise.
25841         (expand_call_inline): Update use of copy_body.
25842         (tree_function_versioning): Update use of copy body; accept
25843         blocks_to_copy and new_entry.
25844
25845 2010-06-01  Jan Hubicka  <jh@suse.cz>
25846
25847         * gegenrtl.c: Remove unnecesary prototypes.
25848         (gendecl): Remove.
25849         (gendef): Produce static inline.
25850         (gencode): Remove.
25851         (main): Do not decode parameters; generate header only.
25852         * Makefile.in (genrtl.c): Remove.
25853
25854 2010-06-01  Jan Hubicka  <jh@suse.cz>
25855
25856         * tree-switch-conversion.c (build_one_array): Make it readonly.
25857
25858 2010-06-01  Richard Guenther  <rguenther@suse.de>
25859
25860         * optabs.c (init_optabs): Guard all accesses to reinit.
25861         * ipa-pure-const.c (propagate): Fix another typo.
25862         * opts.c (common_handle_option): Split assignment to bool.
25863         * c-opts.c (c_common_handle_option): Likewise.
25864
25865 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
25866             Matthew Gingell  <gingell@adacore.com>
25867
25868         * doc/invoke.texi: Mention -fdump-ada-spec.
25869         * tree-dump.c (dump_files): Add ada-spec.
25870         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
25871         * tree-pass.h (tree_dump_index): Add TDI_ada.
25872         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
25873         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
25874         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
25875         * c-decl.c: Include c-ada-spec.h.
25876         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
25877         functions.
25878         (c_write_global_declarations): Add handling of -fdump-ada-spec.
25879         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
25880         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
25881         * c-ada-spec.h, c-ada-spec.c: New files.
25882
25883 2010-06-01  Richard Guenther  <rguenther@suse.de>
25884
25885         PR lto/43853
25886         * ipa-pure-const.c (get_function_state): Hand back varying state
25887         if we do not have one.
25888         (has_function_state): New function.
25889         (duplicate_node_data): Adjust.
25890         (remove_node_data): Likewise.
25891         (pure_const_write_summary): Likewise.
25892         (propagate): Likewise.  Fix typo.
25893
25894 2010-06-01  Jan Hubicka  <jh@suse.cz>
25895
25896         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
25897         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
25898         (execute_all_ipa_transforms): Do not play with the states.
25899
25900 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
25901
25902         * config/arm/t-linux-androideabi: New.
25903         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
25904
25905 2010-06-01  Jan Hubicka  <jh@suse.cz>
25906
25907         * tree-inline.c (estimate_num_insns): For stdarg functions look
25908         into call statement to count cost of argument passing.
25909
25910 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
25911
25912         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
25913         argument for fprintf.
25914         (ix86_output_addr_diff_elt): Likewise.
25915         (x86_function_profiler): Likewise.
25916         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
25917         (LPREFIX): Likewise.
25918         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
25919
25920 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
25921
25922         PR target/44338
25923         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
25924         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
25925         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
25926         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
25927         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
25928         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
25929         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
25930         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
25931         TARGET_FUSED_MADD.
25932
25933 2010-05-31  Jan Hubicka  <jh@suse.cz>
25934
25935         * tree.h (tree_range_check_failed): Declare noreturn.
25936
25937 2010-05-31  Jan Hubicka  <jh@suse.cz>
25938
25939         * gimple.c (gimple_call_builtin_p): New function.
25940         * gimple.h (gimple_call_builtin_p): Declare.
25941         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
25942         to exit.
25943         (execute_warn_function_return): BUILT_IN_RETURN is return.
25944         (split_critical_edges): Return edges are not critical.
25945         (is_ctrl_altering_stmt): Builtin_in_return is altering.
25946         (gimple_verify_flow_info): Handle built_in_return.
25947         (execute_warn_function_return): Handle built_in_return.
25948         * ipa-pure-const.c (check_call): Ignore builtin_return.
25949
25950 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
25951
25952         PR middle-end/44337
25953         * expr.c (expand_assignment): Don't store anything for out-of-bounds
25954         array accesses with non-MEM.
25955
25956         PR tree-optimization/44182
25957         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
25958         newly needs to end a bb is followed by debug stmts, instead return
25959         true from the function at the end.
25960         (maybe_move_debug_stmts_to_successors): New function.
25961         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
25962
25963 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
25964
25965         PR target/44161
25966         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
25967
25968 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25969
25970         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
25971         for nested functions in non-optimized compilation.
25972
25973 2010-05-31  Richard Guenther  <rguenther@suse.de>
25974
25975         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
25976
25977 2010-05-30  Jan Hubicka  <jh@suse.cz>
25978
25979         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
25980
25981 2010-05-30  Richard Guenther  <rguenther@suse.de>
25982
25983         PR lto/42975
25984         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
25985         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
25986         no longer needed.
25987
25988 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
25989
25990         * config/darwin.c (output_objc_section_asm_op): Add comment.
25991         (name_needs_quotes): Add '_' to list of valid comment chars.
25992         (machopic_output_function_base_name): Remove unneeded quotes.
25993         (darwin_encode_section_info): Adjust asm whitespace.
25994         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
25995         (ASM_OUTPUT_LOCAL): Ditto.
25996         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
25997         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
25998         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
25999
26000 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
26001
26002         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
26003         RS6000_OUTPUT_BASENAME unconditionally.
26004         (rs6000_output_function_epilogue): Likewise.
26005
26006 2010-05-30  Jan Hubicka  <jh@suse.cz>
26007
26008         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
26009         nodes.
26010
26011 2010-05-30  Richard Guenther  <rguenther@suse.de>
26012
26013         * tree-cfg.c (verify_gimple_assign_single): Implement
26014         verification for COND_EXPR rhs.
26015
26016 2010-05-30  Jan Hubicka  <jh@suse.cz>
26017
26018         * cgraph.h (cgraph_dump_file): Declare.
26019         * cgraphunit.c (cgraph_dump_file): Export.
26020         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
26021
26022 2010-05-30  Jan Hubicka  <jh@suse.cz>
26023
26024         * dwarf2out.c (reference_to_unused,
26025         premark_types_used_by_global_vars_helper): Avoid creation of new
26026         varpool nodes.
26027
26028 2010-05-30  Jan Hubicka  <jh@suse.cz>
26029
26030         * cgraph.h (cgraph_node_cannot_return,
26031         cgraph_edge_cannot_lead_to_return): New functions.
26032         * cgraph.c (cgraph_node_cannot_return,
26033         cgraph_edge_cannot_lead_to_return): Use them.
26034         * ipa-pure-const.c (pure_const_names): New static var.
26035         (check_call): Handle calls not leading to return.
26036         (pure_const_read_summary): Dump info read.
26037         (propagate): Dump info about propagation process; ignore side effects
26038         of functions not leading to exit; fix handling of pure functions.
26039
26040 2010-05-30  Jan Hubicka  <jh@suse.cz>
26041
26042         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
26043         for tail call epilogues.
26044
26045 2010-05-30  Jan Hubicka  <jh@suse.cz>
26046
26047         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
26048         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
26049         dump files.
26050
26051 2010-05-29  Jan Hubicka  <jh@suse.cz>
26052
26053         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
26054         node; remove references in node we no longer keep in cgrpah but need
26055         body of.
26056
26057 2010-05-29  Jan Hubicka  <jh@suse.cz>
26058
26059         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
26060
26061 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26062
26063         PR target/44165
26064         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
26065
26066 2010-05-29  Jan Hubicka  <jh@suse.cz>
26067
26068         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
26069         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
26070         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
26071         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
26072         debug_names_replaced_by, debug_update_ssa): Likewise.
26073         * sbitmap.c (debug_sbitmap): Likewise.
26074         * genrecog.c (debug_decision, debug_decision_list): Likewise.
26075         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
26076         debug_tree_chain): Likewise.
26077         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
26078         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
26079         * optabs.c (debug_optab_libfuncs): Likewise.
26080         (verify_loop_closed_ssa): Likewise.
26081         * value-prof.c (verify_histograms): Likewise.
26082         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
26083         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
26084         * cfghooks.c (verify_flow_info): Likewise.
26085         * fold-const.c (debug_fold_checksum): Likewise.
26086         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
26087         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
26088         Likewise.
26089         * omega.c (debug_omega_problem): Likewise.
26090         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
26091         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
26092         * dominance.c (verify_dominators, debug_dominance_info,
26093         debug_dominance_tree): Likewise.
26094         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
26095         * df_regno_debug, df_ref_debug,
26096         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
26097         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
26098         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
26099         * sel-sched.c (debug_state): Likewise.
26100         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
26101         Likewise.
26102         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
26103         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
26104         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
26105         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
26106         Likewise.
26107         * c-pretty-print.c (debug_c_tree): Likewise.
26108         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
26109         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
26110         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
26111         * ebitmap.c (debug_ebitmap): Likewise.
26112         * function.c (debug_find_var_in_block_tree): Likewise.
26113         * print-rtl.c (debug_rtx): Likewise.
26114         (debug_rtx_count): Likewise.
26115         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
26116         * stor-layout.c (debug_rli): Likewise.
26117         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
26118         * tree-data-ref.c (debug_data_references,
26119         debug_data_dependence_relations, debug_data_reference,
26120         debug_data_dependence_relation, debug_rdg_vertex,
26121         debug_rdg_component, debug_rdg): Likewise.
26122         * tree-affine.c (debug_aff): Likewise.
26123         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
26124         Likewise.
26125         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
26126         * emit-rtl.c (verify_rtl_sharing): Likewise.
26127         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
26128         debug_value_expressions): Likewise.
26129         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
26130         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
26131         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
26132         * cfglayout.c (verify_insn_chain): Likewise.
26133         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
26134         debug_clast_stmt, debug_generated_program): Likewise.
26135         * ggc-page.c (debug_print_page_list): Likewise.
26136         * tree-ssa-ter.c (debug_ter): Likewise.
26137         * graphite-dependences.c (debug_pddr): Likewise.
26138         * sched-deps.c (debug_ds): Likewise.
26139         * tree-ssa.c (verify_ssa): Likewise.
26140         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
26141         debug_scattering_functions, debug_iteration_domains, debug_pdr,
26142         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
26143         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
26144         * tree-inline.c (debug_find_tree): Likewise.
26145         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
26146         debug_ppl_powerset_matrix): Likewise.
26147         * var-tracking.c (debug_dv): Likewise.
26148         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
26149         * cfgloop.c (verify_loop_structure): Likewise.
26150         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
26151         * c-common.c (verify_sequence_points): Likewise.
26152         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
26153         debug_candidates, debug_rgn_dependencies): Likewise.
26154         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
26155         * debug_constraint_graph, debug_solution_for_var,
26156         debug_sa_points_to_info): Likewise.
26157         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
26158         Likewie.
26159         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
26160         debug_loops, debug_loop, debug_loop_num): Likewise.
26161         * passes.c (debug_pass): Likewise.
26162         (dump_properties): Likewise; add cfglayout property.
26163         (debug_properties): Likewise.
26164         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
26165         * varpool.c (debug_varpool): Likewise.
26166         * regcprop.c (debug_value_data): Likewise.
26167         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
26168         debug_immediate_uses_for): Likewise.
26169
26170 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
26171
26172         PR bootstrap/44315
26173         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
26174         Filter out insn-flags.h.
26175
26176 2010-05-29  Jan Hubicka  <jh@suse.cz>
26177
26178         * cgraph.h (struct varpool_node_set_def,
26179         struct cgraph_node_set_def): Remove unused AUX pointer.
26180         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
26181         VEC_empty macro.
26182
26183 2010-05-29  Jan Hubicka  <jh@suse.cz>
26184
26185         PR middle-end/44324
26186         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
26187
26188 2010-05-29  Richard Guenther  <rguenther@suse.de>
26189
26190         * lto-streamer.c (cached_bp): New global variable.
26191         (bitpack_create): Return the cached bitpack, if available.
26192         (bitpack_delete): Clear and cache the bitpack, if appropriate.
26193         (bp_pack_value): Remove redundant asserts.
26194
26195 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
26196
26197         PR middle-end/44306
26198         * tree-if-conv.c (is_true_predicate): New.
26199         (is_predicated): Use is_true_predicate.
26200         (add_to_predicate_list): Same.  Do not use unshare_expr.
26201         (add_to_dst_predicate_list): Same.
26202
26203 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
26204
26205         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
26206         field on edges.
26207         (predicate_bbs): Same.
26208         (clean_predicate_lists): Same.
26209         (find_phi_replacement_condition): Do not AND the predicate from
26210         edge->aux.
26211
26212 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
26213
26214         PR bootstrap/44315
26215         * Makefile.in (build/gencondmd.o): Add a missing `\'.
26216
26217 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26218
26219         PR target/44261
26220         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
26221         (negdf2): Adjust expander pattern and use negdf2_slow.
26222         (negsf2): Likewise.
26223
26224 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
26225
26226         * basic-block.h (struct control_flow_graph): Move last_label_uid field
26227         up.
26228         * df.h (struct df_base_ref): Move regno field up.
26229         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
26230         * expr.h (struct separate_ops): Move location field up.
26231         * optabs.h (struct optab_d): Move libcall_basename field down.
26232         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
26233         * config/i386/i386.h (struct machine_function): Convert call_abi field
26234         into a bitfield.  Move cfa field to the end of the structure.
26235
26236 2010-05-29  Jan Hubicka  <jh@suse.cz>
26237
26238         * varpool.c (varpool_get_node): Fix lookup.
26239
26240 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26241
26242         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
26243         RTL specific prototypes with #ifdef RTX_CODE.
26244         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
26245         * config/spu/t-spu-elf: Fix dependencies.
26246
26247         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
26248
26249 2010-05-29  Mike Stump  <mikestump@comcast.net>
26250
26251         PR bootstrap/44315
26252         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
26253         TM_H when building to avoid dependency loops.
26254
26255 2010-05-29  Jan Hubicka  <jh@suse.cz>
26256
26257         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
26258         refs and body; not the whole node for masters of materialized clones.
26259
26260 2010-05-29  Mike Stump  <mikestump@comcast.net>
26261
26262         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
26263
26264 2010-05-29  Jan Hubicka  <jh@suse.cz>
26265
26266         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
26267         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
26268         use of clone_function_name.
26269         * cgraph.h (cgraph_create_virtual_clone,
26270         cgraph_function_versioning): update prototypes.
26271         (clone_function_name): Declare.
26272         * ipa-cp.c (ipcp_insert_stage): Update call of
26273         cgraph_create_virtual_clone.
26274         * omp-low.c (create_omp_child_function_name): Use
26275         cgraph_create_virtual_clone.
26276         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
26277         (cgraph_function_versioning): Take SUFFIX argument; produce new name
26278         and make decl local.
26279
26280 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26281
26282         * vec.h: Include statistics.h
26283         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
26284         with VEC_H.
26285
26286 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26287
26288         * c-lex.c: Do not include c-tree.h.
26289         * c-pretty-print.c: Likewise.
26290         * c-opts.c: Likewise.
26291         * c-gimplify.c: Likewise.
26292         * c-common.c: Likewise.
26293         * c-dump.c: Likewise.  Include c-common.h.
26294
26295 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26296
26297         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
26298         before including diagnostic-core.h.
26299         (c_cpp_error): New prototype moved from c-tree.h.
26300         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
26301         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
26302         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
26303         (c_cpp_error): Prototype moved to c-common.h.
26304         * Makefile.in: Update dependency for C_COMMON_H.
26305
26306 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
26307
26308         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
26309         * c-common.c (c_register_addr_space): Remove here.
26310         * c-decl.c (c_register_addr_space): Re-add here.
26311
26312 2010-05-28  Mike Stump  <mikestump@comcast.net>
26313
26314         * config/darwin-c.c: Remove c-tree.h include.
26315
26316 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26317
26318         * gcc.c: Include diagnostic.h.
26319         (error_count): Remove.  All users changed to use errorcount.
26320         (programname): Remove.  All users changed to use progname.
26321         (fancy_abort, internal_error, fatal_error, error, warning, inform,
26322         fnotice): Remove.
26323         (execute): Don't include "Internal error" and bug reporting
26324         information in argument of internal_error call.
26325         (process_command): Don't increment error_count after calling
26326         perror_with_name.
26327         (input_filename): Rename to gcc_input_filename.  All users
26328         changed.
26329         (main): Call diagnostic_initialize.  Register delete_temp_files
26330         with atexit.  Use seen_error to test for errors.
26331         * gcc.h: Include diagnostic-core.h.
26332         (fatal_error, error, warning): Remove.
26333         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
26334         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
26335         (gcc.o): Update dependencies.
26336
26337 2010-05-28  Jeff Law  <law@redhat.com>
26338
26339         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
26340         functions.
26341         * ira.h (ira_bad_reload_regno): Declare
26342         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
26343
26344         * ira-color.c (update_curr_costs): Free updated hard reg costs.
26345         (ira_reassign_conflict_allocnos): Remove bogus asserts.
26346         (allocno_reload_assign): Likewise.
26347
26348 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
26349
26350         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
26351         build1_stat.
26352
26353 2010-05-28  Richard Guenther  <rguenther@suse.de>
26354
26355         PR lto/44312
26356         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
26357         Stream fixed-point constants mode.
26358         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
26359         and TYPE_PRECISION.
26360         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
26361         Stream fixed-point constants mode.
26362         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
26363         and TYPE_PRECISION.
26364
26365 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
26366
26367         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
26368         only place it was called from.
26369         (number_of_latch_executions): Do not return chrec_dont_know when the
26370         may_be_zero is a runtime condition: instead, return a COND_EXPR
26371         including the may_be_zero condition.
26372         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
26373         of nb_iterations.
26374         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
26375         COND_EXPRs.
26376
26377 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
26378
26379         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
26380         generate COND_EXPRs for degenerate_phi_result.
26381
26382 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
26383
26384         PR middle-end/44293
26385         * tree-if-conv.c (if_convertible_loop_p): Check the
26386         if-convertibility of phi nodes in non predicated BBs.
26387
26388 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26389
26390         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
26391
26392 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26393
26394         PR driver/15303
26395         * gcc.c (inform, warning, inform): New functions.
26396         (fatal_ice): Rename to internal_error; change cmsgid parameter to
26397         gmsgid.  All callers changed.
26398         (notice): Rename to fnotice; add parameter fp.  All callers changed.
26399         (fatal_error): Rename to fatal_signal.  All users changed.
26400         (fatal): Rename to fatal_error; change cmsgid parameter to
26401         gmsgid.  All callers changed.
26402         (process_command): Use warning instead of error for warnings.
26403         (end_going_arg): Don't use _() around argument of error.
26404         (do_spec_1): Use inform for message from %n specs.  Use warning
26405         instead of error for warnings.
26406         (main): Use inform for comparison messages.  Use warning for
26407         message about unused linker input.
26408         (error): Increment error_count.  Print "error: ".
26409         * gcc.h (fatal): Change to fatal_error.
26410         (warning): Declare.
26411         * config/darwin-driver.c (darwin_default_min_version): Use warning
26412         instead of fprintf for warnings.
26413         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
26414
26415 2010-05-28  Julian Brown  <julian@codesourcery.com>
26416
26417         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
26418         (*thumb2_addsi3_compare0_scratch): New.
26419         * config/arm/constraints.md (Pv): New.
26420         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
26421         for ARM mode only.
26422         (*addsi3_compare0_scratch): Likewise.
26423
26424 2010-05-28  Jan Hubicka  <jh@suse.cz>
26425
26426         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
26427         check.
26428         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
26429         only on local statics.
26430
26431 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
26432
26433         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
26434
26435 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
26436
26437         PR bootstrap/44314
26438         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
26439         (OPTION_GLIBC): Define.
26440
26441 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
26442
26443         PR debug/41048
26444         * dwarf2out.c (double_int_type_size_in_bits): New function.
26445         (round_up_to_align): Change first argument and return value to
26446         double_int.
26447         (field_byte_offset): Work internally on double_ints.
26448
26449         PR target/43636
26450         * builtins.c (expand_movstr): Use a temporary pseudo instead
26451         of target even when target is not NULL and not const0_rtx, but
26452         fails movstr predicate.
26453         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
26454
26455 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
26456
26457         * final.c (rest_of_clean_state): Use %m in errors instead of
26458         strerror (errno).
26459         * gengtype.c (read_input_list, close_output_files): Use xstrerror
26460         instead of strerror.
26461         * toplev.c (process_options): Use %m in errors instead of strerror
26462         (errno).
26463         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
26464         (errno).
26465
26466 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
26467
26468         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
26469         (ix86_canonical_va_list_type): Make static.  Add declaration.
26470         (ix86_enum_va_list): Make static.  Reindent.
26471         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
26472         (ix86_canonical_va_list_type): Ditto.
26473         (ix86_enum_va_list): Ditto.
26474
26475 2010-05-28  Richard Guenther  <rguenther@suse.de>
26476
26477         * lto-wrapper.c (run_gcc): With -save-temps generate a
26478         user-visible ltrans filename.  Fixup ltrans unit numbering.
26479
26480 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
26481
26482         * c-common.c (c_common_nodes_and_builtins): Replace use
26483         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
26484         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
26485         to ix86_enum_va_list.
26486         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
26487         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
26488         (TARGET_ENUM_VA_LIST_P): Add hook description.
26489         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
26490         * target.h (gcc_target): Add enum_va_list hook.
26491
26492         PR bootstrap/44299
26493         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
26494         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
26495         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
26496
26497 2010-05-28  Alan Modra  <amodra@gmail.com>
26498
26499         PR target/44266
26500         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
26501         emit_library_call machinery to set up __tls_get_addr calls.
26502
26503 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26504
26505         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
26506
26507 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
26508
26509         Revert fix for PR c++/44188
26510         * c-common.c (is_typedef_decl): Revert the moving of  this
26511         definition ...
26512         * tree.c (is_typedef_decl): ... here.
26513         (typdef_variant_p): Revert the moving of this  definition
26514         here from cp/tree.c.
26515         * c-common.h (is_typedef_decl): Revert the moving of this
26516         declaration ...
26517         * tree.h (is_typedef_decl): ... here.
26518         (typedef_variant_p): Revert the moving of this  declaration here
26519         from cp/cp-tree.h
26520         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
26521         (gen_tagged_type_die): Revert the splitting out of ...
26522         (gen_type_die_with_usage): ... this function. Revert the anonymous
26523         tagged type handling.
26524         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
26525         typedefs naming anonymous tagged types.
26526
26527 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
26528
26529         * config/rs6000/rs6000-modes.def (PSImode): Delete.
26530
26531 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
26532
26533         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
26534         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
26535         throughout.
26536         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
26537         "xer" to "ca".
26538         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
26539         XER_REGS to CA_REGS throughout.
26540         * config/rs6000/rs6000.h: Same.
26541         (ADDITIONAL_REGISTER_NAMES): Add "xer".
26542         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
26543         that mode_iterator "P" is the size for arithmetic carries as well.
26544         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
26545
26546 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
26547
26548         PR bootstrap/44255
26549         * combine.c (struct rtx_subst_pair): Define unconditionally.
26550         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
26551         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
26552         Call make_compound_operation on pair->to.
26553         (propagate_for_debug): Don't call make_compound_operation here.
26554         Always use simplify_replace_fn_rtx.
26555
26556 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
26557
26558         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
26559         * config/xtensa/xtensa.c (override_options): Check
26560           TARGET_FORCE_NO_PIC and set flag_pic.
26561         * config/xtensa/xtensa.opt: Document -mforce-no-pic
26562
26563 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
26564
26565         PR bootstrap/44299
26566         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
26567         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
26568
26569 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
26570
26571         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
26572         toplev.h.
26573         * diagnostic.c: Don't include toplev.h.
26574         (progname): Define.  Moved from toplev.c.
26575         (seen_error): New function.
26576         * diagnostic.h: Include diagnostic-core.h.
26577         (diagnostic_t, emit_diagnostic): Don't declare here.
26578         * toplev.c (progname): Move to toplev.c.
26579         (emit_debug_global_declarations, compile_file, finalize,
26580         do_compile, toplev_main): Use seen_error.
26581         * toplev.h: Include diagnostic-core.h.
26582         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
26583         internal_error, warning, warning_at, error, error_n, error_at,
26584         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
26585         verbatim, fnotice, progname): Move to diagnostic-core.h.
26586         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
26587         (expand_builtin_expect): Use seen_error.
26588         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
26589         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
26590         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
26591         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
26592         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
26593         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
26594         errorcount for errors.
26595         * c-opts.c (c_common_finish): Use seen_error.
26596         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
26597         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
26598         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
26599         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
26600         (get_coverage_counts): Use seen_error.
26601         * dwarf2out.c (dwarf2out_finish): Use seen_error.
26602         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
26603         gimplify_body): Use seen_error.
26604         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
26605         * ipa-pure-const.c (gate_pure_const): Use seen_error.
26606         * ipa-reference.c (gate_reference): Use seen_error.
26607         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
26608         * lambda-code.c: Include diagnostic-core.h instead of
26609         diagnostic.h.
26610         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
26611         * lto-compress.c: Include diagnostic-core.h instead of
26612         diagnostic.h.
26613         * lto-section-in.c: Include diagnostic-core.h instead of
26614         diagnostic.h.
26615         * lto-streamer-out.c: Include diagnostic-core.h instead of
26616         diagnostic.h.
26617         * lto-streamer.c: Include diagnostic-core.h instead of
26618         diagnostic.h.
26619         (gate_lto_out): Use seen_error.
26620         * matrix-reorg.c: Include diagnostic-core.h instead of
26621         diagnostic.h.
26622         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
26623         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
26624         (gate_expand_omp, lower_omp_1): Use seen_error.
26625         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
26626         (rest_of_decl_compilation, rest_of_type_compilation,
26627         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
26628         * tree-cfg.c (label_to_block_fn): Use seen_error.
26629         * tree-inline.c (optimize_inline_calls): Use seen_error.
26630         * tree-mudflap.c (mudflap_finish_file): Use
26631         seen_error.
26632         * tree-optimize.c (gate_all_optimizations,
26633         gate_all_early_local_passes, gate_all_early_optimizations): Use
26634         seen_error.
26635         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
26636         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
26637         (varpool_remove_unreferenced_decls,
26638         varpool_assemble_pending_decls): Use seen_error.
26639         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
26640         (TOPLEV_H, DIAGNOSTIC_H): Update.
26641         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
26642         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
26643         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
26644         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
26645         coverage.o, lambda-code.o): Update dependencies.
26646
26647 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
26648
26649         PR c++/44188
26650         * c-common.c (is_typedef_decl): Move this definition ...
26651         * tree.c (is_typedef_decl): ... here.
26652         (typdef_variant_p): Move definition here from cp/tree.c.
26653         * c-common.h (is_typedef_decl): Move this declaration ...
26654         * tree.h (is_typedef_decl): ... here.
26655         (typedef_variant_p): Move declaration here from cp/cp-tree.h
26656         * dwarf2out.c (is_naming_typedef_decl): New function.
26657         (gen_tagged_type_die): Split out of ...
26658         (gen_type_die_with_usage): ... this function. When an anonymous
26659         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
26660         is emitted for the typedef.
26661         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
26662         anonymous tagged types.
26663
26664 2010-05-27  Jason Merrill  <jason@redhat.com>
26665
26666         * print-tree.c (debug_vec_tree): New fn.
26667         (print_vec_tree): New fn.
26668         * tree.h: Declare them.
26669         * gdbinit.in (pvt): New command.
26670
26671         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
26672
26673         * gdbinit.in (pdd): New command.
26674
26675 2010-05-27  Jan Hubicka  <jh@suse.cz>
26676
26677         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
26678         (update_caller_keys): Return early if there are no callers;
26679         only update fibheap when decresing the key.
26680         (update_callee_keys): Avoid recursion.
26681         (decide_inlining_of_small_functions): When badness does not match;
26682         re-insert into fibheap.
26683
26684 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
26685
26686         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
26687         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
26688         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
26689         (ALL_HOST_OBJS): Now a union of the above two.
26690         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
26691         all files in ALL_HOST_FRONTEND_OBJS.
26692         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
26693
26694         * c-common.c: Pretend to be a backend file by undefining
26695         IN_GCC_FRONTEND (still need rtl.h here).
26696
26697 2010-05-27  Jan Hubicka  <jh@suse.cz>
26698
26699         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
26700         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
26701
26702 2010-05-27  Jan Hubicka  <jh@suse.cz>
26703
26704         * sched-ebb.c: Rename struct deps to struct deps_desc.
26705         * ddg.c: Likewise.
26706         * sel-sched-ir.c: Likewise.
26707         * sched-deps.c: Likewise.
26708         * sched-int.h: Likewise.
26709         * sched-rgn.c: Likewise.
26710
26711 2010-05-27  Jon Beniston  <jon@beniston.com>
26712
26713         PR 43726
26714         * config/lm32/lm32.h: Remove definition of
26715         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
26716
26717 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
26718
26719         PR lto/44230
26720         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
26721
26722 2010-05-27  Richard Guenther  <rguenther@suse.de>
26723
26724         PR tree-optimization/44284
26725         * tree-vect-stmts.c (vectorizable_assignment): Handle
26726         sign-changing conversions as simple copy.
26727
26728 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
26729
26730         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
26731         Bionic C library.
26732         (__gthread_active_p): Check for pthread_create if compiling against
26733         Bionic C library.
26734
26735 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
26736
26737         Support compilation for Android platform.  Reimplement -mandroid.
26738
26739         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
26740         (*android*): Set ANDROID_DEFAULT.
26741         (arm*-*-linux*): Include linux-android.h.
26742         (arm*-*-eabi*): Don't include previous -mandroid implementation.
26743         * config/arm/eabi.h: Remove, move Android-specific parts ...
26744         * config/linux-android.h: ... here.  New file.
26745         * config/arm/eabi.opt: Rename to ...
26746         * config/linux-android.opt: ... this.
26747         (mandroid): Allow -mno-android option.  Initialize based on
26748         ANDROID_DEFAULT.
26749         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
26750         Move logic to corresponding LINUX_TARGET_* macros.
26751         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
26752         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
26753         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
26754         Android definitions.
26755         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
26756         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
26757         Document.
26758
26759 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
26760
26761         Add support for Bionic C library
26762
26763         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
26764         macro.
26765         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
26766         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
26767
26768         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
26769         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
26770         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
26771         to support multiple C libraries.  Handle Bionic.
26772         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
26773         (BIONIC_DYNAMIC_LINKER64): Define.
26774         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
26775         Update.
26776         (TARGET_HAS_SINCOS): Enable for Bionic.
26777
26778         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
26779         the last option specified on command line take effect.
26780         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
26781         (mbionic): New.
26782         (mglibc, muclibc): Update.
26783
26784         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
26785         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
26786         DEFAULT_LIBC.
26787
26788         * doc/invoke.texi (-mglibc, -muclibc): Update.
26789         (-mbionic): Document.
26790
26791 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
26792
26793         * c-common.h (c_register_addr_space): Add prototype.
26794         (ADDR_SPACE_KEYWORD): Remove.
26795         * c-common.c (c_register_addr_space): New function.
26796         (c_addr_space_name): Reimplement.
26797         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
26798
26799         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
26800         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
26801
26802         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
26803         Remove TARGET_ADDR_SPACE_KEYWORDS.
26804
26805 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
26806
26807         * input.c: New file.
26808         * input.h (main_input_filename): Move declaration to toplev.h.
26809         * toplev.c (input_location, line_table): Move to input.c
26810         * toplev.h (main_input_filename): Move declaration from input.h.
26811         * tree.c (expand_location): Move to input.c.
26812         * Makefile.in (OBJS-common): Add input.o.
26813         (input.o): Add dependencies.
26814
26815 2010-05-27  Richard Guenther  <rguenther@suse.de>
26816
26817         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
26818         for non-existant files.
26819         (fork_execute): Mark args_name file as deleted.
26820
26821 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
26822
26823         PR bootstrp/44287
26824         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
26825         (narrow_signed_type): Likewise.
26826
26827 2010-05-26  Jan Hubicka  <jh@suse.cz>
26828
26829         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
26830         edge only when checking is enabled; check using former_clone_of;
26831         check inline clones too.
26832         (cgraph_materialize_clone): Record former_clone_of pointer.
26833         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
26834         combining redirections; dump args_to_skip bitmap
26835         (cgraph_materialize_all_clones): Do no redirection here.
26836         * ipa-inline.c (inline_transform): Do redirection here.
26837         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
26838         cheking only).
26839
26840 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
26841
26842         * config/avr/avr-c.c: Do not include regs.h.
26843         Include cpplib.h for cpp_define and tree.h for c-common.h.
26844         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
26845         * config/avr/t-avr: Fix dependencies for avr-c.o.
26846
26847 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
26848
26849         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
26850         string instead of SYMBOL_REF rtx.
26851         * rtl.h (set_stack_check_libfunc): Move prototype from here...
26852         * libfuncs.h: ...to here.  Adjust for explow.c change.
26853
26854 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
26855
26856         * pretty-print.c: Don't include ggc.h.
26857         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
26858         (identifier_to_locale): Use them for allocation.
26859         * pretty-print.h (identifier_to_locale_alloc,
26860         identifier_to_locale_free): Declare.
26861         * toplev.c (alloc_for_identifier_to_locale): New.
26862         (general_init): Set identifier_to_locale_alloc and
26863         identifier_to_locale_free.
26864         * Makefile.in (pretty-print.o): Update dependencies.
26865
26866 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
26867
26868         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
26869         pointer types if they have different alignment or mode.
26870
26871 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
26872
26873         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26874         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26875         * config/sparc/sparc-protos.h (function_value): Remove declaration.
26876         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
26877         sparc_function_value_regno_p): New functions.
26878         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26879         TARGET_FUNCTION_VALUE_REGNO_P): Define.
26880         (function_value): Rename to...
26881         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
26882         argument to 'outgoing'.
26883         (function_arg_record_value, function_arg_union_value,
26884         function_arg_vector_value): Update comment.
26885
26886 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
26887
26888         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
26889         (fde_needed_for_eh_p): New predicate.
26890         (output_call_frame_info): Use it throughout to decide whether FDEs
26891         are needed for EH purpose.
26892         (dwarf2out_begin_prologue): Reorder assignments.
26893
26894 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26895
26896         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
26897         special case loop->header.
26898         (is_predicated): New.
26899         (if_convertible_loop_p): Call it.
26900
26901 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26902
26903         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
26904         iterator in parameter.  Do not generate code during the analysis.
26905         (tree_if_convert_cond_stmt): Removed.
26906         (tree_if_convert_stmt): Removed.
26907         (predicate_bbs): New.
26908         (if_convertible_loop_p): Call predicate_bbs.
26909         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
26910         now contains all the analysis part.
26911
26912 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26913
26914         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
26915         statements in the analysis part.
26916         (tree_if_convert_stmt): Update comment.
26917         (remove_conditions_and_labels): New.
26918         (combine_blocks): Call remove_conditions_and_labels.
26919         (tree_if_conversion): Update comment.
26920
26921 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26922
26923         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
26924         than 2 predecessors or more than 2 successors.
26925
26926 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26927
26928         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
26929         of loops in which the data dependence analysis fails.
26930
26931 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26932
26933         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
26934         CDI_POST_DOMINATORS.
26935         (tree_if_conversion): Same.
26936
26937 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26938
26939         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
26940
26941 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
26942
26943         * tree-if-conv.c: Update copyright years.  Fix comments.
26944         Fix indentation.
26945
26946 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
26947
26948         * builtin-types.def (BT_INT128): New primitive type.
26949         (BT_UINT128): Likewise.
26950         * c-common.c (c_common_r): Add __int128 keyword.
26951         (c_common_type_for_size): Handle __int128.
26952         (c_common_type_for_mode): Likewise.
26953         (c_common_signed_or_unsigned_type): Likewise.
26954         (c_common_nodes_and_builtins): Add builtin type
26955         if target supports 128-bit integer scalar.
26956         * c-common.h (enum rid): Add RID_INT128.
26957         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
26958         if target supports 128-bit integer scalar.
26959         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
26960         (finish_declspecs): Likewise.
26961         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
26962         (c_token_starts_declspecs): Likewise.
26963         (c_parser_declspecs): Likewise.
26964         (c_parser_attributes): Likewise.
26965         (c_parser_objc_selector): Likewise.
26966         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
26967         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
26968         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
26969         * tree.c (make_or_reuse_type): Likewise.
26970         (make_unsigned_type): Likewise.
26971         (build_common_tree_nodes_2): Likewise.
26972         * tree.h (enum integer_type_kind): Add itk_int128 and
26973         itk_unsigned_int128.
26974         (int128_integer_type_node): New define.
26975         (int128_unsigned_type_node): New define.
26976         * doc/extend.texi: Add documentation about __int128 type.
26977
26978 2010-05-26  Richard Guenther  <rguenther@suse.de>
26979
26980         * tree-ssa-sccvn.c (copy_nary): Adjust.
26981         (copy_phis): Rename to ...
26982         (copy_phi): ... this.  Adjust.
26983         (copy_references): Rename to ...
26984         (copy_reference): ... this.  Adjust.
26985         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
26986         result into the valid table.
26987
26988 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
26989
26990         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
26991         insn-config.h, insn-codes.h, recog.h, and optabs.h.
26992
26993 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26994
26995         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
26996
26997 2010-05-26  Richard Guenther  <rguenther@suse.de>
26998
26999         * opts.c (common_handle_option): Handle OPT_Ofast.
27000
27001 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
27002
27003         * diagnostic.c: Don't include opts.h.
27004         (permissive_error_option): Define.
27005         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
27006         for classify_diagnostic.  Don't use memset for
27007         classify_diagnostic.  Initialize new and recently added fields.
27008         (diagnostic_classify_diagnostic): Use context->n_opts instead of
27009         N_OPTS.
27010         (diagnostic_report_diagnostic): Pass context parameter to
27011         diagnostic_report_warnings_p.  Use option_enabled and option_name
27012         hooks from context.
27013         (emit_diagnostic): Use permissive_error_option.
27014         (permerror): Likewise.
27015         * diagnostic.h: Don't include options.h.
27016         (struct diagnostic_context): Add n_opts, opt_permissive,
27017         inhibit_warnings, warn_system_headers, option_enabled and
27018         option_name fields.  Change classify_diagnostic to a pointer.
27019         * opts-diagnostic.h: New file.
27020         * opts.c: Include opts-diagnostic.h.
27021         (common_handle_option): Set global_dc fields for -Wfatal-errors,
27022         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
27023         (option_name): New function.
27024         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
27025         (c_common_handle_option): Set global_dc->permissive for
27026         -fpermissive.
27027         * c-common.c (c_cpp_error): Save and restore
27028         global_dc->warn_system_headers, not variable warn_system_headers.
27029         * toplev.c: Include opts-diagnostic.h.
27030         (general_init): Update call to diagnostic_initialize.  Set
27031         global_dc->show_column, global_dc->option_enabled and
27032         global_dc->option_name.
27033         (process_options): Don't set global_dc fields here.
27034         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
27035         (diagnostic.o, opts.o, toplev.o): Update dependencies.
27036
27037 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27038
27039         * config/picochip/picochip.md (movsi): Split a movsi from a
27040         const after reload.
27041
27042 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27043
27044         * ggc-zone.c: Update copyright year.
27045         (poison_region): Mark memory for Valgrind as undefined before
27046         memset () call and inaccessible afterwards.
27047         (ggc_pch_total_size): Change type of i to int.
27048
27049 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27050
27051         * ggc-common.c (ggc_free_overhead): Allow empty slot.
27052
27053 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27054
27055         * ggc-common.c: Update copyright year.
27056         (ggc_rlimit_bound): Remove prototype.  Compile only if
27057         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
27058         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
27059         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
27060         (ggc_min_heapsize_heuristic): Likewise.
27061
27062 2010-05-26  Richard Guenther  <rguenther@suse.de>
27063
27064         PR rtl-optimization/44164
27065         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
27066         no-common access-path disambiguation.
27067         (indirect_ref_may_alias_decl_p): Adjust.
27068         (indirect_refs_may_alias_p): Likewise.
27069         (refs_may_alias_p_1): Likewise.
27070
27071 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27072
27073         * c-typeck.c: Do not include expr.h.
27074
27075 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
27076
27077         * rtl.h (decl_default_tls_model): Move prototype from here...
27078         * output.h: ...to here.
27079         * c-decl.c: Do not include rtl.h.
27080         * c-pragma.c: Likewise.
27081         * c-parser.c: Likewise.
27082         * c-gimplify.c: Likewise.  And also not hard-reg-set.
27083         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
27084         FIXME note for it.  Add a FIXME note for expr.h.
27085         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
27086         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
27087         defined.
27088
27089 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
27090
27091         PR target/44199
27092         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
27093         or total_size is larger than red zone size for non-V4 ABI, emit a
27094         stack_tie resp. frame_tie insn before stack pointer restore.
27095         * config/rs6000/rs6000.md (frame_tie): New insn.
27096
27097 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
27098
27099         * function.h (struct function): Add can_throw_non_call_exceptions bit.
27100         * lto-streamer-in.c (input_function): Stream it in.
27101         * lto-streamer-out.c (output_function): Stream it out.
27102         * function.c (allocate_struct_function): Set it.
27103         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
27104         for flag_non_call_exceptions.
27105         * cfgbuild.c (control_flow_insn_p): Likewise.
27106         (make_edges): Likewise.
27107         * cfgexpand.c (expand_stack_alignment): Likewise.
27108         * combine.c (distribute_notes): Likewise.
27109         * cse.c (cse_extended_basic_block): Likewise.
27110         * except.c (insn_could_throw_p): Likewise.
27111         * gcse.c (simple_mem): Likewise.
27112         * ipa-pure-const.c (check_call): Likewise.
27113         (check_stmt ): Likewise.
27114         * lower-subreg.c (lower-subreg.c): Likewise.
27115         * optabs.c (emit_libcall_block): Likewise.
27116         (prepare_cmp_insn): Likewise.
27117         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
27118         * postreload.c (rest_of_handle_postreload): Likewise.
27119         * reload1.c (reload_as_needed): Likewise.
27120         (emit_input_reload_insns): Likewise.
27121         (emit_output_reload_insns): Likewise.
27122         (fixup_abnormal_edges): Likewise.
27123         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
27124         * store-motion.c (find_moveable_store): Likewise.
27125         * tree-eh.c (stmt_could_throw_p): Likewise.
27126         (tree_could_throw_p): Likewise.
27127         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27128         * config/arm/arm.c (arm_expand_prologue): Likewise.
27129         (thumb1_expand_prologue): Likewise.
27130         * config/rx/rx.md (cbranchsf4): Likewise.
27131         (cmpsf): Likewise.
27132         * config/s390/s390.c (s390_emit_prologue): Likewise.
27133         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
27134         (inline_forbidden_into_p): New predicate.
27135         (expand_call_inline): Use it to forbid inlining.
27136         (tree_can_inline_p): Likewise.
27137
27138 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27139
27140         * config/i386/i386-c.c: Do not include rtl.h.
27141         * config/i386/t-i386: Update dependencies.
27142
27143 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27144
27145         * attribs.c: Do not include rtl.h.
27146         * Makefile.in: Update dependencies.
27147
27148 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
27149
27150         * double-int.h (double_int_and): New.
27151         * combine.c (try_combine): Clean up, use double_int_* and
27152         immed_double_int_const functions.
27153
27154 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27155
27156         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
27157         stderr to /dev/null instead of grep -q.
27158         * configure: Regenerate.
27159
27160 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
27161
27162         * Makefile.in (EXCEPT_H): Fix typo.
27163
27164 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
27165
27166         * ira-build.c (update_conflict_hard_reg_costs): New.
27167         (ira_build): Call update_conflict_hard_reg_costs.
27168
27169 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
27170
27171         PR debug/41371
27172         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
27173         ENABLE_CHECKING.
27174         (intersect_loc_chains): Walk the s2var's loc_chain together
27175         with s1node chain as long as the locations are equal, don't
27176         call find_loc_in_1pdv in that case.
27177
27178         PR debug/42801
27179         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
27180         (copy_bind_expr): ... instead of here.
27181         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
27182         if the block hasn't been remapped.
27183         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
27184         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
27185
27186 2010-05-25  Richard Guenther  <rguenther@suse.de>
27187
27188         PR middle-end/44069
27189         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
27190         out-of-bounds array accesses.
27191
27192 2010-05-25  Richard Guenther  <rguenther@suse.de>
27193
27194         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
27195         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
27196         (run_gcc): Re-organize to make cleanup easier.
27197
27198 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27199
27200         * config/s390/s390.c (optimization_options): Fix and move the
27201         flag_prefetch_loop_arrays override ...
27202         (override_options): ... here.
27203
27204 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
27205
27206         * diagnostic.c: Don't include plugin.h.
27207         (diagnostic_report_diagnostic): Don't handle plugins specially
27208         here.  Pass context to internal_error callback.
27209         * diagnostic.h (struct diagnostic_context): Add context parameter
27210         to internal_error callback.
27211         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
27212         * plugin.h (struct diagnostic_context): Declare.
27213         (warn_if_plugins, plugins_internal_error_function): Declare.
27214         * toplev.c (general_init): Set global_dc->internal_error.
27215         * Makefile.in (diagnostic.o): Update dependencies.
27216
27217 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
27218
27219         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
27220         * config/rs6000/t-darwin64: New.
27221         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
27222         build crt2.
27223
27224 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
27225
27226         PR 44203
27227         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
27228         match the original (and intended) behaviour before r159557.  This
27229         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
27230         in two ways.
27231
27232 2010-05-25  Richard Guenther  <rguenther@suse.de>
27233
27234         * doc/invoke.texi: Document -Ofast.
27235         * target.h (struct gcc_target): Add handle_ofast.
27236         * target-def.h (TARGET_HANDLE_OFAST): Add.
27237         (TARGET_INITIALIZER): Adjust.
27238         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
27239         * common.opt (Ofast): Add.
27240
27241 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
27242
27243         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
27244         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
27245
27246 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
27247
27248         PR target/43610
27249         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
27250         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
27251         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
27252         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
27253
27254 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
27255
27256         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
27257         DW_OP_minus with negated offset instead of DW_OP_plus.
27258         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
27259
27260 2010-05-25  Wei Guozhi  <carrot@google.com>
27261
27262         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
27263         tst instruction and a new alternative.
27264         * config/arm/constraints.md (Pu): New constraint.
27265
27266 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
27267
27268         * function.c (assign_stack_local_1): Initialize variable
27269         to avoid warning when bootstrapping at -O3.
27270
27271 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
27272
27273         * configure.ac (all_lang_makefiles): Remove everything related to it.
27274         * configure: Regenerate.
27275         * Makefile.in: Fix reference to ada Make-lang.in.
27276         Remove support for LANG_MAKEFILES.
27277
27278 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
27279             Sandra Loosemore  <sandra@codesourcery.com>
27280
27281         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
27282         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
27283         description.  Add arm_neon_fp16_ok.
27284         (Add Options): Add arm_neon and arm_neon_fp16.
27285
27286 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
27287
27288         * diagnostic.c: Don't include flags.h.
27289         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
27290         context parameters.  Check flags in the context passed as a parameter.
27291         (diagnostic_build_prefix): Add context parameter.  Check
27292         show_column flag in context.
27293         (diagnostic_action_after_output): Check fatal_errors flag in context.
27294         (diagnostic_report_current_module): Check show_column flag in context.
27295         (default_diagnostic_starter): Update call to
27296         diagnostic_build_prefix.
27297         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
27298         (emit_diagnostic): Pass context to permissive_error_kind.
27299         (permerror): Pass context to permissive_error_kind.
27300         * diagnostic.h (struct diagnostic_context): Add show_column,
27301         pedantic_errors, permissive and fatal_errors fields.
27302         (diagnostic_build_prefix): Update prototype.
27303         * langhooks.c
27304         * toplev.c (process_options): Set flags in global_dc from
27305         flag_show_column, flag_pedantic_errors, flag_permissive,
27306         flag_fatal_errors.
27307         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
27308         to diagnostic_build_prefix.
27309         * Makefile.in (diagnostic.o): Update dependencies.
27310
27311 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
27312
27313         * config/i386/ia32intrin.h (__crc32q): Define only if
27314         __SSE4_2__ is defined.
27315
27316 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
27317
27318         PR target/44132
27319         PR middle-end/43602
27320         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
27321         DECL_VISIBILITY_SPECIFIED.
27322         (emutls_decl): Set DECL_PRESERVE_P and copy
27323         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
27324         (emutls_finalize_control_var): New callback.
27325         (emutls_finish): Finalize emutls control variables.
27326         * toplev.c (compile_file): Move the call to emutls_finish ()
27327         before varpool_assemble_pending_decls ().
27328
27329 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
27330
27331         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
27332         added to the preprocessor condition.
27333
27334 2010-05-24  Paul Brook  <paul@codesourcery.com>
27335
27336         * gengtype-lex.l: Add HARD_REG_SET.
27337         * expr.c (expand_expr_real_1): Record writes to hard registers.
27338         * function.c (rtl_data): Add asm_clobbers.
27339         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
27340         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
27341         Use crtl->asm_clobbers.
27342
27343 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27344
27345         * doc/makefile.texi (Makefile): Mention stages 'profile'
27346         and 'feedback' for profiledbootstrap.
27347
27348 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
27349
27350         PR target/44245
27351         * config/i386/i386.c (def_builtin): Properly check
27352         OPTION_MASK_ISA_64BIT.
27353
27354 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
27355
27356         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
27357         typedefs with different but compatible types.  Allow duplicate
27358         typedefs with the same type except for pedantic non-C1X, but give
27359         warning for variably modified types.
27360         * c-typeck.c (tagged_types_tu_compatible_p,
27361         function_types_compatible_p, type_lists_compatible_p,
27362         comptypes_internal): Add parameter different_types_p; set
27363         *different_types_p for different but compatible types.  All
27364         callers changed.
27365         (comptypes_check_different_types): New.
27366         * c-tree.h (comptypes_check_different_types): Declare.
27367
27368 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
27369
27370         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
27371         * jump.c: Include basic-block.h.
27372         * profile.c: Likewise.
27373         * tree-profile.c: Likewise.
27374         * coverage.c: Likewise.
27375         * basic-block.h (optimize_function_for_size_p): Move to function.h.
27376         (optimize_function_for_speed_p): Likewise.
27377         * function.h (optimize_function_for_size_p,
27378         optimize_function_for_speed_p): Moved here from basic-block.h.
27379         * Makefile.in: Update dependencies.
27380
27381 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27382
27383         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
27384         before calling make; allow override through $MAKE.
27385         * doc/invoke.texi (Optimize Options): Document override.
27386
27387 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
27388
27389         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
27390         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27391         (rs6000_mode_dependent_address_ptr): Make static.
27392         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27393         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
27394         Remove.
27395
27396 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
27397
27398         PR target/43869
27399         * config/i386/i386.c: Make sure that the correct regparm is passed.
27400
27401 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
27402
27403         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
27404         * sbitmap.c: ...to here to internalize sbitmap element access.
27405         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
27406         Explain why basic-block.h is included.
27407         * function.h: Include tm.h for CUMULATIVE_ARGS.
27408         * Makefile.in: Update dependencies.
27409
27410 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
27411
27412         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
27413         New core types.
27414         * sbitmap.h (struct sbitmap_def): Do not typedef here.
27415         * sbitmap.c: Include sbitmap.h.
27416         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
27417         hard-reg-set.h.  Split everything related to regsets out from here...
27418         * regset.h: ...to here.  New file.
27419         * df.h: Include regset.h and sbitmap.h.
27420         * tree-flow.h: Likewise.
27421         * cfgloop.h: Likewise.
27422         * except.h: Do not include sbitmap.h.  Include hashtab.h.
27423         * cgraph.h: Include vec.h and function.h.
27424         * reload.h (struct insn_chain): Change types of live_throughout
27425         and dead_or_set from regset_head to bitmap_head.
27426         (compute_use_by_pseudos): Be defined also if regset.h is not included.
27427         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
27428         spilled_regs from regset_head to bitmap_head to avoid dependency
27429         in regset.h.
27430         * sel-sched-ir.h: Include regset.h.
27431         * reload.c: Include df.h before reload.h.
27432         * caller-save.c: Likewise.
27433         * reload1.c: Likewise.
27434         * ira.c: Likewise.
27435         (mark_elimination): Update type of r to bitmap, consistent with
27436         DF_LR_IN.
27437         * dominance.c: Include bitmap.h.
27438         * modulo-sched.c: Include df.h.
27439         * cfganal.c: Include bitmap.h and sbitmap.h.
27440         * cfgbuild.c: Include sbitmap.h.
27441         * lcm.c: Include sbitmap.h.
27442         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
27443         * domwalk.c: Include sbitmap.h, exclude ggc.h.
27444         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
27445         * cselib.c: Include bitmap.h.
27446         * tree-optimize.c: Include regset.h.
27447         * stmt.c: Include bitmap.h.
27448         * Makefile.in: Update dependencies.
27449
27450 2010-05-22  Jan Hubicka  <jh@suse.cz>
27451
27452         * cgraph.h (struct varpool_node): Add same_comdat_group.
27453         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
27454         pointer.
27455         (output_varpool): Update call of lto_output_varpool_node.
27456         (input_varpool): Read same_comdat_group pointer.
27457         (input_varpool_1): Fixup same_comdat_group pointer.
27458         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
27459         group is needed, all are.
27460         * varpool.c (varpool_remove_node): Remove node from same comdat group
27461         linklist too.
27462         (varpool_analyze_pending_decls): Walk same comdat groups.
27463
27464 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
27465
27466         * rtl.h (union rtunion_def): Remove rt_bit member.
27467         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
27468         * print-rtl (print_rtx): Do not print the member.
27469         * gengtype.c (adjust_field_rtx_def): Do not handle it.
27470         * gengenrtl.c (type_from_format): Likewise.
27471         (accessor_from_format): Likewise.
27472
27473 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
27474
27475         * dbgcnt.c: Include toplev.h instead of errors.h.
27476         * ira-emit.c: Don't include errors.h.
27477         * ira.c: Include toplev.h instead of errors.h.
27478         * lto-compress.c: Include toplev.h instead of errors.h.
27479         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
27480         ira.o, dbgcnt.o): Update dependencies.
27481
27482 2010-05-22  Richard Guenther  <rguenther@suse.de>
27483
27484         * gimple.c (gimple_types_compatible_p): Check type qualifications
27485         before merging pointer to complete and pointer to incomplete type.
27486         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
27487         we use our own resolution algorithm.  The gold linker plugin
27488         doesn't do the job we want it to do here.
27489
27490 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
27491
27492         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
27493         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
27494         (sparc_mode_dependent_address_p): New function.
27495
27496 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
27497
27498         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
27499
27500         * timevar.c: Do not include any core headers.
27501         (timevar_print): De-i18n-ize.
27502         (print_time): Likewise.
27503         * timevar.h (timevar_push, timevar_pop): Make inline functions.
27504
27505 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
27506
27507         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
27508         langhooks-def.h.
27509         (diagnostic_initialize): Initialize x_data not last_function.
27510         (diagnostic_report_current_function): Move to tree-diagnostic.c.
27511         (default_diagnostic_starter): Call
27512         diagnostic_report_current_module not
27513         diagnostic_report_current_function.
27514         (diagnostic_report_diagnostic): Initialize x_data not
27515         abstract_origin.
27516         (verbatim): Likewise.
27517         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
27518         x_data.
27519         (struct diagnostic_context): Change last_function to x_data.
27520         (diagnostic_auxiliary_data): Replace with
27521         diagnostic_context_auxiliary_data and
27522         diagnostic_info_auxiliary_data.
27523         (diagnostic_last_function_changed, diagnostic_set_last_function,
27524         diagnostic_report_current_function): Move to tree-diagnostic.h.
27525         (print_declaration, dump_generic_node, print_generic_stmt,
27526         print_generic_stmt_indented, print_generic_expr,
27527         print_generic_decl, debug_c_tree, dump_omp_clauses,
27528         print_call_name, debug_generic_expr, debug_generic_stmt,
27529         debug_tree_chain, default_tree_printer): Move to
27530         tree-pretty-print.h.
27531         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
27532         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
27533         gimple-pretty-print.h.
27534         * pretty-print.c: Don't include tree.h
27535         (pp_base_format): Don't handle %K here.
27536         (pp_base_tree_identifier): Move to tree-pretty-print.c.
27537         * pretty-print.h (text_info): Change abstract_origin to x_data.
27538         (pp_tree_identifier, pp_unsupported_tree,
27539         pp_base_tree_identifier): Move to tree-pretty-print.h.
27540         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
27541         tree-pretty-print.h: New files.
27542         * tree-pretty-print.c: Include tree-pretty-print.h.
27543         (percent_K_format): New.  Moved from pretty-print.c.
27544         (pp_base_tree_identifier): Move from pretty-print.c.
27545         * c-objc-common.c: Include tree-pretty-print.h.
27546         (c_tree_printer): Handle %K here.
27547         * langhooks.c: Include tree-diagnostic.h.
27548         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
27549         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
27550         (default_tree_printer): Handle %K using percent_K_format.
27551         (general_init): Use default_tree_diagnostic_starter.
27552         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
27553         (free_lang_data): Use default_tree_diagnostic_starter.
27554         * c-pretty-print.c: Include tree-pretty-print.h.
27555         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27556         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27557         * dwarf2out.c: Include tree-pretty-print.h.
27558         * except.c: Include tree-pretty-print.h.
27559         * gimple-pretty-print.c: Include tree-pretty-print.h and
27560         gimple-pretty-print.h.
27561         * gimplify.c: Include tree-pretty-print.h.
27562         * graphite-poly.c: Include tree-pretty-print.h and
27563         gimple-pretty-print.h.
27564         * ipa-cp.c: Include tree-pretty-print.h.
27565         * ipa-inline.c: Include gimple-pretty-print.h.
27566         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27567         * ipa-pure-const.c: Include gimple-pretty-print.h.
27568         * ipa-struct-reorg.c: Include tree-pretty-print.h and
27569         gimple-pretty-print.h.
27570         * ipa-type-escape.c: Include tree-pretty-print.h.
27571         * print-rtl.c: Include tree-pretty-print.h.
27572         * print-tree.c: Include gimple-pretty-print.h.
27573         * sese.c: Include tree-pretty-print.h.
27574         * tree-affine.c: Include tree-pretty-print.h.
27575         * tree-browser.c: Include tree-pretty-print.h.
27576         * tree-call-cdce.c: Include gimple-pretty-print.h.
27577         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27578         * tree-chrec.c: Include tree-pretty-print.h.
27579         * tree-data-ref.c: Include tree-pretty-print.h and
27580         gimple-pretty-print.h.
27581         * tree-dfa.c: Include tree-pretty-print.h.
27582         * tree-if-conv.c: Include tree-pretty-print.h and
27583         gimple-pretty-print.h.
27584         * tree-inline.c: Include tree-pretty-print.h.
27585         * tree-into-ssa.c: Include tree-pretty-print.h and
27586         gimple-pretty-print.h.
27587         * tree-nrv.c: Include tree-pretty-print.h.
27588         * tree-object-size.c: Include tree-pretty-print.h and
27589         gimple-pretty-print.h.
27590         * tree-outof-ssa.c: Include tree-pretty-print.h and
27591         gimple-pretty-print.h.
27592         * tree-parloops.c: Include tree-pretty-print.h and
27593         gimple-pretty-print.h.
27594         * tree-predcom.c: Include tree-pretty-print.h and
27595         gimple-pretty-print.h.
27596         * tree-scalar-evolution.c: Include tree-pretty-print.h and
27597         gimple-pretty-print.h.
27598         * tree-sra.c: Include tree-pretty-print.h.
27599         * tree-ssa-address.c: Include tree-pretty-print.h.
27600         * tree-ssa-alias.c: Include tree-pretty-print.h.
27601         * tree-ssa-ccp.c: Include tree-pretty-print.h and
27602         gimple-pretty-print.h.
27603         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
27604         * tree-ssa-copy.c: Include tree-pretty-print.h and
27605         gimple-pretty-print.h.
27606         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
27607         * tree-ssa-dce.c: Include tree-pretty-print.h and
27608         gimple-pretty-print.h.
27609         * tree-ssa-dom.c: Include tree-pretty-print.h and
27610         gimple-pretty-print.h.
27611         * tree-ssa-dse.c: Include gimple-pretty-print.h.
27612         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
27613         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
27614         * tree-ssa-live.c: Include tree-pretty-print.h and
27615         gimple-pretty-print.h.
27616         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
27617         gimple-pretty-print.h.
27618         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
27619         gimple-pretty-print.h.
27620         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
27621         gimple-pretty-print.h.
27622         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
27623         gimple-pretty-print.h.
27624         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
27625         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
27626         * tree-ssa-operands.c: Include tree-pretty-print.h and
27627         gimple-pretty-print.h.
27628         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
27629         gimple-pretty-print.h.
27630         * tree-ssa-pre.c: Include tree-pretty-print.h and
27631         gimple-pretty-print.h.
27632         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
27633         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
27634         gimple-pretty-print.h.
27635         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
27636         gimple-pretty-print.h.
27637         * tree-ssa-sink.c: Include gimple-pretty-print.h.
27638         * tree-ssa-ter.c: Include tree-pretty-print.h and
27639         gimple-pretty-print.h.
27640         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
27641         * tree-ssa.c: Include tree-pretty-print.h and
27642         gimple-pretty-print.h.
27643         * tree-stdarg.c: Include gimple-pretty-print.h.
27644         * tree-switch-conversion.c: Include gimple-pretty-print.h.
27645         * tree-tailcall.c: Include tree-pretty-print.h and
27646         gimple-pretty-print.h.
27647         * tree-vect-data-refs.c: Include tree-pretty-print.h and
27648         gimple-pretty-print.h.
27649         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
27650         gimple-pretty-print.h.
27651         * tree-vect-loop.c: Include tree-pretty-print.h and
27652         gimple-pretty-print.h.
27653         * tree-vect-patterns.c: Include gimple-pretty-print.h.
27654         * tree-vect-slp.c: Include tree-pretty-print.h and
27655         gimple-pretty-print.h.
27656         * tree-vect-stmts.c: Include tree-pretty-print.h and
27657         gimple-pretty-print.h.
27658         * tree-vectorizer.c: Include tree-pretty-print.h.
27659         * tree-vrp.c: Include tree-pretty-print.h and
27660         gimple-pretty-print.h.
27661         * value-prof.c: Include tree-pretty-print.h and
27662         gimple-pretty-print.h.
27663         * var-tracking.c: Include tree-pretty-print.h.
27664         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
27665         (tree-diagnostic.o): New dependencies.
27666         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
27667         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
27668         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
27669         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
27670         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
27671         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
27672         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
27673         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
27674         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
27675         tree-ssa-address.o, tree-ssa-loop-niter.o,
27676         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
27677         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
27678         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
27679         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
27680         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
27681         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
27682         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
27683         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
27684         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
27685         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
27686         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
27687         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
27688         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
27689         tree-switch-conversion.o, var-tracking.o, value-prof.o,
27690         cfgexpand.o, pretty-print.o): Update dependencies.
27691
27692 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
27693
27694         * tree-ssa-structalias.c: Remove tm_p.h from include.
27695
27696 2010-05-21  Jeff Law  <law@redhat.com>
27697
27698         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
27699
27700 2010-05-21  Jason Merrill  <jason@redhat.com>
27701
27702         * tree-eh.c (cleanup_is_dead_in): New.
27703         (lower_try_finally): Don't generate a dead cleanup region.
27704         (lower_cleanup): Likewise.
27705
27706 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
27707
27708         PR debug/44223
27709         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
27710         unchain each use from the cyclic next_regno_use chain first.
27711
27712 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
27713
27714         * real: Do not include gmp.h, mpfr.h, and mpc.h.
27715         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
27716         (real_value_negate, real_value_abs): New prototypes.
27717         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
27718         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
27719         new include file for interface between MPFR and REAL_VALUE_TYPE.
27720         * real.c: Include realmpfr.h.
27721         (real_arithmetic2): Remove legacy function.
27722         (real_value_negate): New.
27723         (real_value_abs): New.
27724         (mfpr_from_real, real_from_mpfr): Move from here...
27725         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
27726         * builtins.c: Include realmpfr.h.
27727         * fold-const.c: Include realmpfr.h.
27728         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
27729         (fold_negate_const): Likewise.
27730         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
27731         * toplev.c: Include realmpfr.h.
27732         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
27733         and real_value_negate.
27734         * fixed-value.c (check_real_for_fixed_mode): Likewise.
27735         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
27736         (vfp3_const_double_index): Likewise.
27737         (arm_print_operand): Likewise.
27738         * Makefile.in: Update dependencies.
27739
27740 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27741
27742         * config/s390/s390.c (override_options): Increase the default
27743         of max-completely-peel-times.
27744
27745 2010-05-21  Julian Brown  <julian@codesourcery.com>
27746             Mark Mitchell  <mark@codesourcery.com>
27747
27748         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
27749         sibling calls for Thumb-1.
27750         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
27751         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
27752         Thumb-2.
27753         (*call_insn, *call_value_insn): Don't use for Thumb-2.
27754         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
27755         for Thumb-2.
27756         (return): New expander.
27757         (*arm_return): New name for ARM return insn.
27758         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
27759
27760 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
27761
27762         * config.gcc (sparc64-*-rtems*): New target.
27763
27764 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
27765
27766         * tree.c (build_function_decl_skip_args): Fix grammar.
27767         (build_function_type_list_1): Fix typos, adjust formatting.
27768
27769 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
27770
27771         * tree.h: Include real.h and fixed-value.h as basic datatypes.
27772         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
27773         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
27774         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
27775         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
27776         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
27777         tree-pretty-print.c, tree-loop-distribution.c,
27778         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
27779         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
27780         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
27781         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
27782         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
27783         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
27784         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
27785         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
27786         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
27787         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
27788         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
27789         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
27790         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
27791         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
27792         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
27793         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
27794         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
27795         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
27796         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
27797         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
27798         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
27799         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
27800         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
27801         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
27802         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
27803         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
27804         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
27805         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
27806         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
27807         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
27808         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
27809         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
27810         config/score/score7.c, config/score/score.c, config/arm/arm.c,
27811         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
27812         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
27813         config/bfin/bfin.c: Clean up redundant includes.
27814         * Makefile.in: Update accordingly.
27815
27816 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
27817
27818         PR middle-end/44204
27819         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
27820         statement has no arguments.
27821
27822 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
27823
27824         PR/44139
27825         * varasm.c (emutls_decl): Merge attributes to new decl.
27826
27827 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
27828
27829         PR middle-end/44101
27830         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
27831         around the uniquized constructor if its type requires a conversion.
27832
27833 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
27834
27835         PR debug/44205
27836         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
27837         at -O0 goto_locus of any of the incoming edges differs from
27838         goto_locus of outgoing edge, or gimple_location of any of the
27839         labels differs.
27840
27841 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
27842
27843         * ira.c (ira_non_ordered_class_hard_regs): Define.
27844         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
27845         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
27846         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
27847         cost of unaligned hard regs when allocating multi-reg pseudos.
27848
27849 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
27850
27851         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
27852         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
27853         for TARGET_NO_FLOAT.
27854         * config/mips/mips.c (mips_file_start): Expand conditional expression
27855         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
27856         (mips_override_options): Move -mno-float override -msoft-float and
27857         -mhard-float.
27858         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
27859         Condition(TARGET_SUPPORTS_NO_FLOAT).
27860         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
27861         __mips_no_float here.
27862         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
27863         (TARGET_SUPPORTS_NO_FLOAT): Define.
27864         * config/mips/sdemtk.opt: Delete.
27865
27866 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
27867
27868         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
27869
27870 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
27871
27872         PR target/43733
27873         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
27874         * configure: Regenerate.
27875         * config.in: Regenerate.
27876         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
27877         instead of sahf only for 64bit targets.
27878
27879 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
27880
27881         PR debug/44178
27882         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
27883         setup_ref_regs for DEBUG_INSNs.
27884
27885 2010-05-20  Jan Hubicka  <jh@suse.cz>
27886
27887         PR middle-end/44197
27888         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
27889
27890 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
27891
27892         PR bootstrap/43870
27893         * df-scan.c (df_ref_compare): Stabilize sort.
27894
27895 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
27896
27897         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
27898         argument.  Don't use DW_OP_piece if offset is non-zero,
27899         put offset into second DW_OP_bit_piece argument.
27900         (dw_sra_loc_expr): Adjust callers.  For memory expressions
27901         compute offset.
27902
27903 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
27904
27905         PR target/44202
27906         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
27907         settings for 16-bit-constant "addo" alternative.
27908
27909 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
27910
27911         * config/mips/mips-dsp.md (add<DSPV:mode>3,
27912         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
27913
27914         PR target/43764
27915         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
27916         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
27917         Use it.
27918
27919 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
27920
27921         * diagnostic.c (FLOAT, FFS): Don't undefine.
27922         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
27923         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
27924         include ordering.
27925
27926 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
27927
27928         * combine.c (propagate_for_debug): Call make_compound_operation
27929         on the source value.
27930         (try_combine): When implementing a split chosen by find_split_point,
27931         either copy i2src or set it to null.  Assert that i2src is not null
27932         before substituting into CALL_INSN_FUNCTION_USAGE.
27933
27934 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
27935
27936         * double-int.h (double_int_ior): New function.
27937         * tree.h (build_int_cst_wide_type): Remove.
27938         * tree.c (build_int_cst_wide_type): Remove.
27939         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
27940         of build_int_cst_wide_type.
27941         * stor-layout.c (set_sizetype): (Ditto.).
27942         * dojump.c (do_jump): Use build_int_cstu instead of
27943         build_int_cst_wide_type.
27944
27945 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
27946
27947         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
27948         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
27949         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
27950         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
27951         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
27952         propagate the 'data' argument to copy_tree_r.
27953         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
27954         Propagate 'data' argument to walk_tree.
27955         (copy_if_shared): New function.
27956         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
27957         (unmark_visited): New function.
27958         (unshare_body): Call copy_if_shared instead of doing it manually.
27959         (unvisit_body): Call unmark_visited instead of doing it manually.
27960
27961 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
27962
27963         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
27964         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
27965         * hooks.c: Likewise.
27966         * target-def.h (TARGET_FOLD_BUILTIN): Define to
27967         hook_tree_tree_int_treep_bool_null.
27968         * target.h (struct gcc_target): Update signature of fold_builtin
27969         field.
27970         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
27971         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
27972         instead of the call expression.
27973         (fold_builtin_call_array): Pass n and argarray directly.
27974         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
27975         consing a list.
27976         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
27977         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
27978         `i' and use it in place of `arity'.
27979         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
27980         Dereference `args' directly.
27981         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
27982
27983 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27984
27985         * doc/sourcebuild.texi (Effective-Target Keywords): Document
27986         3dnow, sse3, sse2.
27987         (Directives): Document optional dg-require-effective-target
27988         selector.
27989
27990 2010-05-19  Richard Guenther  <rguenther@suse.de>
27991
27992         PR lto/44196
27993         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
27994
27995 2010-05-19  Richard Guenther  <rguenther@suse.de>
27996
27997         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
27998         * common.opt (fwhopr=): New.
27999         * opts.c (common_handle_option): Handle OPT_fwhopr.
28000         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
28001         * collect2.c (main): Match -fwhopr*.
28002         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
28003         Execute ltrans stage in parallel when jobs is bigger than 1.
28004
28005 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28006
28007         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
28008         pentiumpro on Solaris 8/x86 with Sun as.
28009         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
28010         hidden alias bug.
28011         (gcc_cv_as_ix86_quad): Check for .quad directive.
28012         * configure: Regenerate.
28013         * config.in: Regenerate.
28014         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
28015
28016 2010-05-19  Martin Jambor  <mjambor@suse.cz>
28017
28018         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
28019         also for indirect edges.  Actual printing moved...
28020         (ipa_print_node_jump_functions_for_edge): ...here.
28021         (ipa_compute_jump_functions): Renamed to
28022         ipa_compute_jump_functions_for_edge and made static.
28023         (ipa_compute_jump_functions): New function.
28024         (make_edge_direct_to_target): Check if the number of arguments on
28025         the newly direct edge is the same as the number of parametrs of
28026         the callee.
28027         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
28028         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
28029         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
28030         analysis functions unconditionally, call the new
28031         ipa_analyze_params_uses on the node instead of every edge.
28032
28033 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
28034
28035         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
28036         to tree.
28037         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
28038         also checks for a constant int vs.  non-constant but
28039         loop-invariant steps.
28040         (find_or_create_group): Change the sort algorithm to only consider
28041         steps that are constant ints.
28042         (idx_analyze_ref): Adopt code to handle a tree instead of a
28043         HOST_WIDE_INT for step.
28044         (gather_memory_references_ref): Handle tree instead of int and be
28045         prepared to see a NULL_TREE.
28046         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
28047         prefetches if the step cannot be calculated at compile time.
28048         (issue_prefetch_ref): Issue prefetches for non-constant but
28049         loop-invariant steps.
28050
28051 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28052
28053         Revert:
28054         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28055
28056         * tree.h (build_call_list): Remove.
28057         * tree.c (build_call_list): Remove.
28058
28059 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
28060
28061         * tree.h (build_call_list): Remove.
28062         * tree.c (build_call_list): Remove.
28063
28064 2010-05-18  Jan Hubicka  <jh@suse.cz>
28065
28066         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
28067
28068 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
28069
28070         PR rtl-optimization/43332
28071         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
28072
28073 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
28074
28075         * tree.h (build_int_cstu): Implement as static inline.
28076         * tree.c (build_int_cstu): Remove function.
28077         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
28078         sign extended.
28079
28080 2010-05-18  Richard Guenther  <rguenther@suse.de>
28081
28082         PR lto/44143
28083         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
28084         (debug): Initialize from -save-temps.
28085         (collect_execute): Print command-line when verbose.
28086         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
28087         for ltrans invocation.  Produce -dumpbase flag again.
28088         (process_args): Remove.
28089         (main): Simplify.
28090         * collect2.c (maybe_run_lto_and_relink): Only pass object
28091         files to lto-wrapper.
28092         * gcc.c (LINK_COMMAND_SPEC): Likewise.
28093
28094 2010-05-18  Jan Hubicka  <jh@suse.cz>
28095
28096         * opts.c (decode_options): Do not disable whopr at ipa_cp.
28097         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
28098
28099 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
28100
28101         PR lto/44184
28102         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
28103         in a GIMPLE_ASM.
28104         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
28105         in a GIMPLE_ASM.
28106
28107 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
28108
28109         PR debug/41371
28110         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
28111         rtx_equal_p inline.
28112
28113 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
28114
28115         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
28116         lto-macho as lto_binary_reader.
28117
28118         * darwin.c (darwin_asm_named_section): Do not add assembler comment
28119         after .section directive; just print it before the directive instead.
28120
28121 2010-05-17  Jan Hubicka  <jh@suse.cz>
28122
28123         * cgraph.c (cgraph_create_virtual_clone): Only check
28124         versionable_function_p when not in wpa and checking is enabled.
28125         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
28126         there are no more functions to materialize.
28127
28128 2010-05-17  Jan Hubicka  <jh@suse.cz>
28129
28130         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
28131         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
28132         New functions.
28133         (output_cgraph): Call output_cgraph_opt_summary.
28134         (input_cgrpah): Call input_cgraph_opt_summary.
28135         (output_cgraph_opt_summary_p, output_node_opt_summary,
28136         input_node_opt_summary, input_cgraph_opt_section): New functions.
28137         * lto-section-in.c (lto_section_name): Add cgraphopt.
28138         * tree-inline.c (tree_function_versioning): Handle parm_num.
28139         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
28140         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
28141
28142 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
28143
28144         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
28145         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
28146         the insn to prefetch ratio heuristic to loops with known trip count.
28147
28148 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
28149
28150         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
28151         (schedule_prefetches): Do not generate a prefetch if the unroll factor
28152         is far from what is required by the prefetch.
28153
28154 2010-05-17  Jan Hubicka  <jh@suse.cz>
28155
28156         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
28157         (ipcp_estimate_growth): Likewise.
28158         (ipcp_const_param_count): Likewise.
28159         (ipcp_insert_stage): Likewise.
28160         * ipa-prop.c (visit_load_for_mod_analysis): New function.
28161         (visit_store_addr_for_mod_analysis): Set used flag.
28162         (ipa_detect_param_modifications): Set used flag for SSE params;
28163         update use of walk_stmt_load_store_addr_ops.
28164         (ipa_print_node_params): Print used flag.
28165         (ipa_write_node_info): Stream used flag.
28166         (ipa_read_node_info): Likewise.
28167         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
28168         (ipa_is_param_used): New function.
28169         (lto_ipa_fixup_call_notes): Remove unused declaration.
28170
28171 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28172
28173         PR target/44074
28174         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
28175         * configure: Regenerate.
28176         * config.in: Regenerate.
28177         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
28178         !HAVE_AS_IX86_REP_LOCK_PREFIX.
28179         Don't emit whitespace.
28180         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
28181         (*rep_movsi): Likewise.
28182         (*rep_movsi_rex64): Likewise.
28183         (*rep_movqi): Likewise.
28184         (*rep_movqi_rex64): Likewise.
28185         (*rep_stosdi_rex64): Likewise.
28186         (*rep_stossi): Likewise.
28187         (*rep_stossi_rex64): Likewise.
28188         (*rep_stosqi): Likewise.
28189         (*rep_stosqi_rex64): Likewise.
28190         (*cmpstrnqi_nz_1): Use {%;} after repz.
28191         (*cmpstrnqi_nz_rex_1): Likewise.
28192         (*cmpstrnqi_1): Likewise.
28193         (*cmpstrnqi_rex_1): Likewise.
28194         (*strlenqi_1): Use {%;} after repnz.
28195         (*strlenqi_rex_1): Likewise.
28196         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
28197         (*sync_compare_and_swap<mode>): Likewise.
28198         (sync_double_compare_and_swap<mode>): Likewise.
28199         (*sync_double_compare_and_swapdi_pic): Likewise.
28200         (sync_old_add<mode>): Likewise.
28201         (sync_add<mode>): Likewise.
28202         (sync_sub<mode>): Likewise.
28203         (sync_<code><mode>): Likewise.
28204
28205 2010-05-17  Martin Jambor  <mjambor@suse.cz>
28206
28207         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
28208         otr_token and polymorphic.
28209         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
28210         (cgraph_clone_edge): Copy the above fields.
28211         * tree.c (get_binfo_at_offset): New function.
28212         * tree.h (get_binfo_at_offset): Declare.
28213         * ipa-prop.h (enum jump_func_type): Added known_type jump function
28214         type, reordered items, updated comments.
28215         (union jump_func_value): Added base_type field, reordered fields.
28216         (enum ipa_lattice_type): Moved down in the file.
28217         (struct ipa_param_descriptor): New field polymorphic.
28218         (ipa_is_param_polymorphic): New function.
28219         * ipa-prop.c: Include gimple.h and gimple-fold.h.
28220         (ipa_print_node_jump_functions): Print known type jump functions.
28221         (compute_complex_pass_through): Renamed to...
28222         (compute_complex_assign_jump_func): this.
28223         (compute_complex_ancestor_jump_func): New function.
28224         (compute_known_type_jump_func): Likewise.
28225         (compute_scalar_jump_functions): Create known type and complex ancestor
28226         jump functions.
28227         (ipa_note_param_call): New parameter polymorphic, set the corresponding
28228         flag in the call note accordingly.
28229         (ipa_analyze_call_uses): Renamed to...
28230         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
28231         variable var only in the block where it is used.
28232         (ipa_analyze_virtual_call_uses): New function.
28233         (ipa_analyze_call_uses): Likewise.
28234         (combine_known_type_and_ancestor_jfs): Likewise.
28235         (update_jump_functions_after_inlining): Implemented handling of a
28236         number of new jump function types combination.
28237         (print_edge_addition_message): Removed.
28238         (make_edge_direct_to_target): New function.
28239         (try_make_edge_direct_simple_call): Likewise.
28240         (try_make_edge_direct_virtual_call): Likewise.
28241         (update_call_notes_after_inlining): Renamed to...
28242         (update_indirect_edges_after_inlining): this.  Moved edge creation for
28243         indirect calls to try_make_edge_direct_simple_call, also calls
28244         try_make_edge_direct_virtual_call for virtual calls.
28245         (ipa_print_node_params): Changed the header message.
28246         (ipa_write_jump_function): Stream also known type jump functions.
28247         (ipa_read_jump_function): Likewise.
28248         (ipa_write_indirect_edge_info): Stream new fields in
28249         cgraph_indirect_call_info.
28250         (ipa_read_indirect_edge_info): Likewise.
28251         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
28252         GIMPLE_FOLD_H.
28253
28254 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28255
28256         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
28257
28258 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
28259
28260         * tree.h (CALL_EXPR_ARGS): Delete.
28261         (call_expr_arglist): Delete.
28262         * tree.c (call_expr_arglist): Delete.
28263         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
28264         targetm.fold_builtin.
28265         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
28266         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
28267         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
28268         arglist parameter.  Use CALL_EXPR_ARG.
28269         (picochip_expand_builtin_3op): Likewise.
28270         (picochip_expand_builtin_2opvoid): Likewise.
28271         (picochip_expand_array_get): Likewise.
28272         (picochip_expand_array_put): Likewise.
28273         (picochip_expand_array_testport): Likewise.
28274         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
28275         rather than arglist.
28276         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
28277         CALL_EXPR_ARGS.
28278         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
28279         than TREE_VALUE and TREE_CHAIN.
28280         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
28281         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
28282         the arglist.
28283
28284 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
28285
28286         PR bootstrap/42347
28287         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
28288         to have no fallthru edge.
28289
28290         PR middle-end/44102
28291         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
28292         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
28293         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
28294         add BARRIER after previous bb if needed.
28295
28296 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
28297
28298         * tree.c (build_function_type_list_1): Remove bogus assert condition.
28299
28300 2010-05-17  Alan Modra  <amodra@gmail.com>
28301
28302         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
28303         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
28304         with copy_reg rtx param.
28305         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
28306         Correct cases where code for ABI_V4 did not initialise the reg
28307         used to access frame.  Also leave frame_reg_rtx as sp for large
28308         frames that save no regs.
28309
28310 2010-05-17  Martin Jambor  <mjambor@suse.cz>
28311
28312         PR middle-end/44133
28313         * tree-sra.c (create_access_replacement): New parameter rename, mark
28314         the replaement for renaming only when it is true.
28315         (get_access_replacement): Pass true in the rename parameter of
28316         create_access_replacement.
28317         (get_unrenamed_access_replacement): New function.
28318         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
28319         replacement declaration from it.
28320
28321 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
28322
28323         * function.c (try_fit_stack_local, add_frame_space): New static
28324         functions.
28325         (assign_stack_local_1): Use them.  Look for opportunities to use
28326         space previously wasted on alignment.
28327         * function.h (struct frame_space): New.
28328         (struct rtl_data): Add FRAME_SPACE_LIST member.
28329         * reload1.c (something_was_spilled): New static variable.
28330         (alter_reg): Set it.
28331         (reload): Test it in addition to testing if the frame size changed.
28332
28333 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
28334
28335         * config/s390/s390.c: Define sane prefetch settings and activate
28336         flag_prefetch_loop_arrays on -O3.
28337         * config/s390/s390.h: Declare that read can use write prefetch.
28338
28339 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
28340
28341         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
28342         build.
28343
28344 2010-05-16  Jan Hubicka  <jh@suse.cz>
28345
28346         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
28347         function body; do not check stdarg field of struct function.
28348
28349 2010-05-16  Jan Hubicka  <jh@suse.cz>
28350
28351         * cgraph.c (dump_cgraph_node): Dump versionable flag.
28352         * cgraph.h (cgraph_local_info): Add versionable flag.
28353         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
28354         (ipcp_versionable_function_p): Use it.
28355         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
28356         versionable flag.
28357
28358 2010-05-16  Jan Hubicka  <jh@suse.cz>
28359
28360         * cgraph.c (cgraph_clone_node): Take decl argument and insert
28361         clone into hash when it is different from orig.
28362         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
28363         * cgraph.h (cgraph_clone_node): Update prototype.
28364         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
28365         (lto_cgraph_encoder_delete): Delete body map.
28366         (lto_cgraph_encoder_size): Move to header.
28367         (lto_cgraph_encoder_encode_body_p,
28368         lto_set_cgraph_encoder_encode_body): New.
28369         (lto_output_node): Do not take written_decls argument; output clone_of
28370         pointer.
28371         (add_node_to): Add include_body_argument; call
28372         lto_set_cgraph_encoder_encode_body on master of the clone.
28373         (add_references): Update use of add_node_to.
28374         (compute_ltrans_boundary): Likewise.
28375         (output_cgraph): Do not create written_decls bitmap.
28376         (input_node): Take nodes argument; stream in clone_of correctly.
28377         (input_cgraph_1): Update use of input_node.
28378         * lto-streamer-out.c (lto_output): Use encoder info to decide
28379         what bodies to output.
28380         * ipa-inline.c (cgraph_clone_inlined_nodes,
28381         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
28382         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
28383         (lto_cgraph_encoder_size): Define here.
28384         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
28385         Declare.
28386
28387 2010-05-16  Richard Guenther  <rguenther@suse.de>
28388
28389         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
28390         -fipa-type-escape.
28391         * ipa-type-escape.c (gate_type_escape_vars): Run when
28392         -fipa-struct-reorg runs.
28393         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
28394         * common.opt (fipa-type-escape): Remove.
28395
28396 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
28397
28398         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
28399         (decode_options): Likewise.
28400         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
28401
28402 2010-05-16  Jan Hubicka  <jh@suse.cz>
28403
28404         * ipa.c (function_and_variable_visibility): Also bring local all
28405         aliases.
28406
28407 2010-05-16  Richard Guenther  <rguenther@suse.de>
28408
28409         * alias.c (nonoverlapping_memrefs_p): Remove use of
28410         IPA type-escape information.
28411
28412 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
28413
28414         * c-common.c (c_common_reswords): Add _Static_assert for C.
28415         * c-parser.c (c_token_starts_declaration,
28416         c_parser_next_token_starts_declaration,
28417         c_parser_static_assert_declaration_no_semi,
28418         c_parser_static_assert_declaration): New.
28419         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
28420         Handle static assertions if static_assert_ok.
28421         (c_parser_external_declaration, c_parser_declaration_or_fndef,
28422         c_parser_compound_statement_nostart, c_parser_label,
28423         c_parser_for_statement, c_parser_objc_methodprotolist,
28424         c_parser_omp_for_loop): All callers of
28425         c_parser_declaration_or_fndef changed.
28426         (c_parser_struct_declaration): Handle static assertions.
28427         (c_parser_compound_statement_nostart): Use
28428         c_parser_next_token_starts_declaration and
28429         c_token_starts_declaration to detect start of declarations.
28430         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
28431         Likewise.
28432
28433 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
28434
28435         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
28436         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
28437         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
28438         TARGET_FUNCTION_VALUE_REGNO_P): Define.
28439         (mmix_function_outgoing_value): Rename to...
28440         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
28441         (mmix_function_value_regno_p): Make static.
28442         (mmix_libcall_value): New function.
28443         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
28444         mmix_function_value_regno_p): Remove declaration.
28445
28446 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
28447
28448         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
28449         BUILT_IN_ALLOCA if stack checking is enabled.
28450
28451 2010-05-16  Richard Guenther  <rguenther@suse.de>
28452
28453         * var-tracking.c (vars_copy_1): Inline ...
28454         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
28455         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
28456         (variable_merge_over_cur): Adjust.  Merge asserts.
28457         (variable_merge_over_src): Likewise.
28458         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
28459         (variable_post_merge_new_vals): Merge asserts.
28460         (variable_post_merge_perm_vals): Likewise.
28461         (find_mem_expr_in_1pdv): Likewise.
28462         (dataflow_set_different_value): Remove.
28463         (onepart_variable_different_p): Merge asserts.
28464         (variable_different_p): Likewise.
28465         (dataflow_set_different_1): Inline ...
28466         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
28467         (emit_notes_for_differences_1): Merge asserts.
28468
28469 2010-05-16  Richard Guenther  <rguenther@suse.de>
28470
28471         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
28472         * optabs.c (libfunc_decl_hash): Likewise.
28473         * varasm.c (emutls_decl): Likewise.
28474
28475 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
28476
28477         * c-decl.c: Don't include gimple.h.
28478         (merge_decls): Do not copy gimple_body.
28479
28480 2010-05-15  Jason Merrill  <jason@redhat.com>
28481
28482         * c.opt: Add -fnothrow-opt.
28483
28484 2010-05-15  Jan Hubicka  <jh@suse.cz>
28485
28486         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
28487         analyzed.
28488         * passes.c (ipa_write_summaries): Write all analyzed nodes.
28489
28490 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
28491
28492         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
28493         * Makefile.in: Add it.
28494         Fix all other Makefile dependencies for changes below.
28495         * tree.h: Include it instead of defining VEC primitives here.
28496         * gimple.h: Likewise.
28497         * rtl.h: Likewise.
28498         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
28499         * except.h: Include vecir.h, break dependence on tree.h.
28500
28501         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
28502         Move from here...
28503         * tree-iterator.c: ...to here.
28504         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
28505
28506         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
28507         tm_p.h.
28508         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
28509         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
28510         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
28511         tree-mudflap.h, and target.h.
28512         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
28513         predict.h, tree-inline.h, gimple.h, and langhooks.h.
28514         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
28515         Add FIXME for why gimple.h is still included (should be unnecessary
28516         since GCC 4.5 gimplification unit-at-a-time).
28517         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
28518         * c-pragma.c: Add FIXME for why function.h needs to be included just
28519         for cfun, at front-end level.
28520         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
28521         Do not include ggc.h, but include vecprim.h for VEC(char).
28522         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
28523         Explain why target.h is included.
28524         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
28525         Explain why gimple.h is included.
28526         * c-ppoutput.c: Do not include tm.h.
28527         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
28528         * c-parses.c: Explain why rtl.h is included, and that this (and only
28529         this) is also why tm.h must be included.
28530         Do not include except.h.
28531         * c-lang.c: Do not include ggc.h.
28532
28533 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
28534
28535         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
28536
28537 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
28538
28539         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
28540         unions by default if those structs and unions have no tags.  Do
28541         not condition anonymous struct and unions handling on flag_iso.
28542         Allow anonymous structs and unions for C1X.
28543         (finish_struct): Do not diagnose lack of named fields when
28544         anonymous structs and unions present for C1X.  Accept flexible
28545         array members in structure with anonymous structs or unions but no
28546         directly named fields.
28547         * doc/extend.texi (Unnamed Fields): Update.
28548
28549 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
28550
28551         * gimple.h (compare_field_offset): Rename into...
28552         (gimple_compare_field_offset): ...this.
28553         * gimple.c (compare_field_offset): Rename into...
28554         (gimple_compare_field_offset): ...this.  Compare the full access if
28555         the offset is self-referential.
28556         (gimple_types_compatible_p): Adjust for above renaming.
28557         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
28558         DECL_NONADDRESSABLE_P flag of fields before merging them.
28559
28560 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
28561
28562         * tree.h (ctor_to_list): Delete.
28563         * tree.c (ctor_to_list): Delete.
28564
28565 2010-05-15  Jan Hubicka  <jh@suse.cz>
28566
28567         * ipa-reference.c: Include toplev.h
28568         (is_proper_for_analysis): Only add to all_module_statics
28569         if it is allocated.
28570         (write_node_summary_p, stream_out_bitmap,
28571         ipa_reference_write_optimization_summary,
28572         ipa_reference_read_optimization_summary): New.
28573         (struct ipa_opt_pass_d pass_ipa_reference): Add
28574         optimization summary streaming.
28575         * lto-cgraph.c (referenced_from_this_partition_p,
28576         reachable_from_this_partition_p): New functions.
28577         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
28578         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
28579         * opts.c (decode_options): Enable ipa_reference.
28580         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
28581         * lto-streamer.h (referenced_from_this_partition_p,
28582         reachable_from_this_partition_p): Declare.
28583
28584 2010-05-15  Richard Guenther  <rguenther@suse.de>
28585
28586         PR tree-optimization/44038
28587         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
28588         taking the address of a V_C_E of a constant.
28589
28590 2010-05-14  Jan Hubicka  <jh@suse.cz>
28591
28592         * tree.h (memory_identifier_string): Remove.
28593         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
28594         (ipa_reference_global_vars_info_d): Remove statics_not_read and
28595         statics_not_written.
28596         (ipa_reference_optimization_summary_d): New structure.
28597         (ipa_reference_optimization_summary_t): New type and vector.
28598         (ipa_reference_vars_info_d): Embedd structures instead of using
28599         pointers.
28600         (reference_vars_to_consider): Remove out of GGC space.
28601         (module_statics_escape): Remove.
28602         (global_info_obstack): Rename to ...
28603         (optimization_summary_obstack): ... this one.
28604         (initialization_status_t): Remove.
28605         (memory_identifier_string): Remove.
28606         (get_reference_vars_info): Fix indenting.
28607         (set_reference_vars_info): Likewise.
28608         (get_reference_optimization_summary): New.
28609         (set_reference_optimization_summary): New.
28610         (get_global_reference_vars_info): Remove.
28611         (ipa_reference_get_read_global): Remove.
28612         (ipa_reference_get_written_global): Remove.
28613         (ipa_reference_get_not_read_global): Update.
28614         (ipa_reference_get_not_written_global): Update.
28615         (is_proper_for_analysis): Outlaw addressable.
28616         (propagate_bits): Update for new datastructures.
28617         (analyze_variable): Remove.
28618         (init_function_info): Update for new datastructures.
28619         (clean_function_local_data): Remove.
28620         (clean_function): Remove.
28621         (copy_global_bitmap): Use optimizations_summary_obstack.
28622         (duplicate_node_data): Duplicate optimization summary only.
28623         (remove_node_data): Remove optimization summary only.
28624         (generate_summary): Do not analyze variables; do not compute
28625         module_statics_escape; do not prune solutions by it.
28626         (read_write_all_from_decl): Fix typos in comments.
28627         (propagate): Doscover readonly and nonaddressable first;
28628         update for new datastructures; share global bitmaps.
28629         * ipa-reference.h (ipa_reference_get_read_global,
28630         ipa_reference_get_written_global): Remove.
28631         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
28632         * Makefile.in: Remove ipa-refereference from GT files.
28633
28634 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
28635
28636         PR debug/44112
28637         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
28638         for all SYMBOL_REF_DECLs.
28639
28640 2010-05-14  Jan Hubicka  <jh@suse.cz>
28641
28642         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
28643         (varpool_all_refs_explicit_p): New inline function.
28644         * ipa-reference.c: Update comment.
28645         (module_statics_written): Remove.
28646         (get_static_decl): Remove.
28647         (ipa_init): Do not initialize module_statics_written.
28648         (analyze_function): Likewise.
28649         (generate_summary): Likewise; do not compute module_statics_readonly
28650         and do not update variable flags.
28651         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
28652         * ipa.c: Inlucde flags.h
28653         (cgraph_local_node_p): New.
28654         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
28655         promote functions to local.
28656         (ipa_discover_readonly_nonaddressable_vars): New function.
28657         (function_and_variable_visibility): Use cgraph_local_node_p.
28658         * varpool.c (varpool_finalize_decl): Set force_output for
28659         DECL_PRESERVE_P vars.
28660
28661 2010-05-14  Jan Hubicka  <jh@suse.cz>
28662
28663         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
28664
28665 2010-05-14  Richard Guenther  <rguenther@suse.de>
28666
28667         PR tree-optimization/44119
28668         * tree-ssa-pre.c (eliminate): Properly mark replacement of
28669         a PHI node necessary.
28670
28671 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
28672
28673         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
28674
28675 2010-05-14  Jason Merrill  <jason@redhat.com>
28676
28677         PR c++/44127
28678         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
28679         (gimple_call_set_nothrow): New.
28680         * gimple.c (gimple_build_call_from_tree): Call it.
28681         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
28682
28683         PR c++/44127
28684         * gimplify.c (gimplify_seq_add_stmt): No longer static.
28685         * gimple.h: Declare it.
28686         * gimple.c (gimple_build_eh_filter): No ops.
28687
28688 2010-05-14  Jan Hubicka  <jh@suse.cz>
28689
28690         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
28691         nodes already in queue.
28692         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
28693         re-enqueueing node.
28694
28695 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
28696
28697         PR debug/44136
28698         * cfgexpand.c (expand_debug_expr): If non-memory op0
28699         has BLKmode, return NULL.
28700
28701 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
28702
28703         * config.gcc: Add support for --with-cpu option for bdver1.
28704         * config/i386/i386.h (TARGET_BDVER1): New macro.
28705         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
28706         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
28707         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
28708         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
28709         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
28710         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
28711         (processor_type): Add PROCESSOR_BDVER1.
28712         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
28713         processor_type in config/i386/i386.h.
28714         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
28715         movaps <reg, reg> instead of movapd <reg, reg> when replacing
28716         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
28717         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
28718         to emit packed xor instead of packed double/packed integer
28719         xor for SSE and AVX when moving a zero value.
28720         * config/i386/sse.md: Add check for
28721         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
28722         movapd/movdqa for SSE and AVX.
28723         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
28724         single logical operations i.e and, or and xor instead of packed double
28725         logical operations for SSE and AVX.
28726         * config/i386/i386-c.c (ix86_target_macros_internal):
28727         Add PROCESSOR_BDVER1.
28728         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
28729         (has_fma4, has_xop): New.
28730         * config/i386/i386.c (bdver1_cost): New variable.
28731         (m_BDVER1): New macro.
28732         (m_AMD_MULTIPLE): Add m_BDVER1.
28733         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
28734         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
28735         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
28736         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
28737         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
28738         x86_tune_sse_partial_reg_dependency,
28739         x86_tune_sse_unaligned_load_optimal,
28740         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
28741         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
28742         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
28743         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
28744         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
28745         Enable/disable for bdver1.
28746         (processor_target_table): Add bdver1_cost.
28747         (cpu_names): Add bdver1.
28748         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
28749          processor_alias_table.
28750         (ix86_expand_vector_move_misalign): Change.
28751         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
28752         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
28753         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
28754         of movupd/movdqu for SSE and AVX.
28755         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
28756         (ix86_tune_adjust_cost): Add code for bdver1.
28757         (standard_sse_constant_opcode): Add check for
28758         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
28759         of packed double xor for SSE and AVX.
28760
28761 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
28762
28763         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
28764         result to unsigned.
28765
28766 2010-05-14  Tristan Gingold  <gingold@adacore.com>
28767
28768         * toplev.c (default_debug_hooks): Remove this variable.
28769         (process_options): Remove assignments to default_debug_hooks.
28770
28771 2010-05-14  Martin Jambor  <mjambor@suse.cz>
28772
28773         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
28774         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
28775         * langhooks.h (struct lang_hooks_for_decls): Removed field
28776         fold_obj_type_ref.
28777         * tree.c (free_lang_data): Remove assignment to
28778         lang_hooks.fold_obj_type_ref.
28779         * tree.def (OBJ_TYPE_REF): Update comment.
28780
28781 2010-05-14  Richard Guenther  <rguenther@suse.de>
28782
28783         PR tree-optimization/44124
28784         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
28785
28786 2010-05-14  Alan Modra  <amodra@gmail.com>
28787
28788         PR target/44075
28789         * config/rs6000/rs6000.c (struct machine_function): Reorder
28790         fields for better packing.  Add lr_save_state.
28791         (rs6000_ra_ever_killed): Return lr_save_state if set.
28792         (rs6000_emit_eh_reg_restore): Set lr_save_state.
28793
28794 2010-05-13  Jan Hubicka  <jh@suse.cz>
28795
28796         * varpool.c (decide_is_variable_needed): Drop code checking
28797         TREE_SYMBOL_REFERENCED.
28798
28799 2010-05-13  Jan Hubicka  <jh@suse.cz>
28800
28801         * final.c (output_addr_const): Do not call mark_decl_referenced.
28802         * cgraphunit.c (process_function_and_variable_attributes): Use
28803         mark_needed_node dirrectly.
28804         (assemble_thunk): Do not call mark_decl_referenced.
28805
28806 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
28807
28808         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
28809
28810 2010-05-13  Jeff Law  <law@redhat.com>
28811
28812         * ira-conflicts.c (print_allocno_conflicts): New function broken out
28813         from...
28814         (print_conflicts): Call print_allocno_conflicts.
28815
28816 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
28817
28818         PR debug/44104
28819         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
28820         if it is NULL.
28821
28822 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
28823
28824         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
28825         t-mingw-w64 or t-mingw-w32 for multilib configuration.
28826         * config/i386/t-mingw-w32: New.
28827         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
28828
28829 2010-05-13  Martin Jambor  <mjambor@suse.cz>
28830
28831         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
28832         gimple-fold.c).
28833         * gimple-fold.c (get_base_binfo_for_type): New function.
28834         (gimple_get_relevant_ref_binfo): Likewise.
28835         (gimple_fold_obj_type_ref_known_binfo): Likewise.
28836         (gimple_fold_obj_type_ref): Likewise.
28837         (fold_gimple_call): Simplify condition for folding virtual calls
28838         and call gimple_fold_obj_type_ref.
28839         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
28840         (gimple_fold_obj_type_ref_known_binfo): Likewise.
28841
28842 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
28843
28844         * config/rs6000/rs6000-protos.h
28845         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
28846         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
28847         (rs6000_debug_mode_dependent_address)
28848         (rs6000_mode_dependent_address_ptr): Likewise.
28849
28850 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
28851
28852         PR debug/43983
28853         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
28854         by SRA.
28855         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
28856         * tree-sra.c (create_access_replacement): Call unshare_expr before
28857         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
28858         * dwarf2out.c: Include tree-flow.h.
28859         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
28860         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
28861         Handle DW_OP_bit_piece.
28862         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
28863         construct_piece_list, adjust_piece_list): New functions.
28864         (add_var_loc_to_decl): Handle SRA optimized variables.
28865         Adjust for var_loc_note to loc field renaming.
28866         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
28867         in VAR_LOCATION note.
28868         (new_loc_descr_op_bit_piece): New function.
28869         (dw_sra_loc_expr): New function.
28870         (dw_loc_list): Use it.  Don't handle the last range after the
28871         loop, handle it inside of the loop.  Adjust for var_loc_note
28872         to loc field renaming.
28873         (add_location_or_const_value_attribute): Only special case
28874         single entry loc lists if loc is NOTE_P.  Adjust for
28875         var_loc_note to loc field renaming.
28876         (dwarf2out_var_location): Don't set newloc->var_loc_note
28877         and newloc->next here.
28878
28879 2010-05-12  Jan Hubicka  <jh@suse.cz>
28880
28881         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
28882         flag.
28883         * cgraph.h (cgraph_only_called_directly_p,
28884         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
28885         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
28886         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
28887         (assemble
28888         * ipa.c (cgraph_remove_unreachable_nodes): Use
28889         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
28890         flags.
28891         * tree-inline.c (copy_bb): Check address_taken flag.
28892         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
28893         externally_visible flag.
28894
28895 2010-05-12  Jason Merrill  <jason@redhat.com>
28896
28897         PR bootstrap/44048
28898         PR target/44099
28899         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
28900         * sdbout.c (plain_type_1): Likewise.
28901         * dwarf2out.c (is_base_type): Likewise.
28902         (gen_type_die_with_usage): Likewise.  Generate
28903         DW_TAG_unspecified_type for any LANG_TYPE.
28904
28905 2010-05-12  Jan Hubicka  <jh@suse.cz>
28906
28907         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
28908         indrect edges too.
28909         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
28910         (cgraph_clone_edge): Update.
28911         (cgraph_node_remove_callees): Remove indirect calls too.
28912         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
28913         (cgraph_create_indirect_edge): Update prototype.
28914         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
28915         is_proper_for_analysis.
28916         (add_new_function, visited_nodes, function_insertion_hook_holder,
28917         get_local_reference_vars_info, mark_address_taken, mark_address,
28918         mark_load, mark_store, check_asm_memory_clobber, check_call,
28919         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
28920         (ipa_init): Do not initialize visited_nodes;
28921         function_insertion_hook_holder.
28922         (analyze_variable): Rewrite.
28923         (analyze_function): Rewrite.
28924         (copy_local_bitmap): Remove.
28925         (duplicate_node_dat): Do not duplicate local info.
28926         (generate_summary): Simplify to only walk cgraph.
28927         (write_node_summary_p, ipa_reference_write_summary,
28928         ipa_reference_read_summary): Remove.
28929         (propagate): Do not remove function insertion;
28930         generate summary.
28931         (pass_ipa_reference): NULLify summary handling fields.
28932         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
28933         (input_edge): Input ecf_flags.
28934         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
28935         (update_indirect_edges_after_inlining): Ignore edges with unknown
28936         param.
28937
28938 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
28939
28940         * implicit-zee.c: New file.
28941         * tree-pass.h (pass_implicit_zee): Declare.
28942         * passes.c (init_optimization_passes): Add zee pass.
28943         * common.opt (fzee): New flag.
28944         * timevar.def (TV_ZEE): Define.
28945         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
28946         and beyond.
28947         * Makefile.in (implicit-zee.o): Add new build file.
28948
28949 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
28950             Nathan Froyd  <froydnj@codesourcery.com>
28951
28952         * c-common.c (sync_resolve_params): Remove write-only variable.
28953
28954 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
28955
28956         * target.h (struct gcc_target): Add mode_dependent_address_p field.
28957         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
28958         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
28959         * targhooks.c (default_mode_dependent_address_p): New function.
28960         * targhooks.h (default_mode_dependent_address_p): Declare function.
28961         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
28962         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
28963         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
28964         target hook. Change return type to bool.
28965         * recog.h (mode_dependent_address_p): Change return type to bool.
28966
28967 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
28968             Nathan Froyd  <froydnj@codesourcery.com>
28969
28970         * tree-mudflap.c (build_function_type_0, build_function_type_1,
28971         build_function_type_2, build_function_type_3): Remove.
28972         (mudflap_init): Use build_function_type_list.
28973
28974 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
28975             Nathan Froyd  <froydnj@codesourcery.com>
28976
28977         * coverage.c (build_fn_info_value): Call build_constructor instead of
28978         build_constructor_from_list.
28979         (build_ctr_info_value): Likewise.
28980         (build_gcov_info): Likewise.
28981
28982 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
28983
28984         * tree.c (build_constructor): Compute TREE_CONSTANT for the
28985         resultant constructor.
28986         (build_constructor_single): Don't set TREE_CONSTANT.
28987         (build_constructor_from_list): Don't compute TREE_CONSTANT.
28988
28989 2010-05-12  Jan Hubicka  <jh@suse.cz>
28990
28991         * cgraph.h (struct varpool_node): Add aux.
28992         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
28993         * varpool.c (varpool_remove_node): Do not remove initializer.
28994         (varpool_reset_queue): Export.
28995         (varpool_finalize_decl): Volatile vars are forced to be output.
28996         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
28997         replaced decl.
28998         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
28999         process_references, varpool_can_remove_if_no_refs): New functions.
29000         (cgraph_remove_unreachable_nodes): Handle variables too.
29001
29002 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
29003
29004         PR target/44088
29005         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
29006
29007 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
29008
29009         PR middle-end/44085
29010         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
29011         change value of ORT_TASK.
29012         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
29013         (omp_notice_threadprivate_variable): New function.
29014         (omp_notice_variable): Call it for threadprivate variables.
29015         If enclosing ctx is a task, print enclosing task rather than
29016         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
29017         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
29018         if task has untied clause.
29019
29020         PR debug/42278
29021         * dwarf2out.c (base_type_die): Don't add name attribute here.
29022         (modified_type_die): Instead of sizetype use
29023         its underlying original type.  If a DW_TAG_base_type doesn't
29024         have name added, add __unknown__.
29025         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
29026         always call force_type_die instead.
29027
29028 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
29029
29030         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
29031         for __stack_chk_guard.
29032
29033 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
29034
29035         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
29036         don't call start_source_file debug hook here...
29037         (finish_options): ... but here, after outputting predefined and
29038         command line defines and undefs.
29039
29040         PR middle-end/44071
29041         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
29042         no fallthru edge.
29043         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
29044         optimizing away empty bb with no successors, move over its
29045         footer chain to fallthru predecessor.
29046         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
29047         (rtl_split_edge): For asm goto call patch_jump_insn even if
29048         splitting fallthru edge.
29049
29050         PR c++/44059
29051         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
29052         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
29053         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
29054         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
29055         on DW.ref.* decls.
29056
29057         PR c++/44062
29058         * c-parser.c (c_parser_expression): Mark LHS of a comma
29059         expression as read if it is a decl, handled component or
29060         COMPOUND_EXPR with that on the RHS.
29061         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
29062         if it is a decl or handled component.
29063
29064 2010-05-11  Jan Hubicka  <jh@suse.cz>
29065
29066         * lto-symtab.c (lto_symtab_free): New function.
29067         * lto-streamer.h (lto_symtab_free): Declare.
29068
29069 2010-05-11  Jan Hubicka  <jh@suse.cz>
29070
29071         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
29072         that if function is needed it is reachable.
29073         (lto_output_node): See if it the function is reachable or referenced.
29074         (output_cgraph): Update call of lto_output_node.
29075         * lto-streamer.h (reachable_from_other_partition_p): Declare.
29076
29077 2010-05-11  Jan Hubicka  <jh@suse.cz>
29078
29079         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
29080         Mark as used.
29081
29082 2010-05-11  Jan Hubicka  <jh@suse.cz>
29083
29084         PR tree-optimize/44063
29085         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
29086         queue.
29087         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
29088         limits.
29089         (estimate_function_body_sizes): Compute sizes even when disregarding.
29090
29091 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
29092
29093         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
29094
29095 2010-05-11  Jan Hubicka  <jh@suse.cz>
29096
29097         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
29098         into every boundary.
29099
29100 2010-05-11  Jan Hubicka  <jh@suse.cz>
29101
29102         * matrix-reorg.c (matrix_reorg): Rebuild edges.
29103
29104 2010-05-11  Jan Hubicka  <jh@suse.cz>
29105
29106         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
29107         lto_streamer_cache_delete): Put nodes into heap.
29108         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
29109         heap.
29110
29111 2010-05-11  Jan Hubicka  <jh@suse.cz>
29112
29113         * cgraphbuild.c (cgraph_rebuild_references): New.
29114         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
29115         out extern inlines.
29116         * cgraph.h (cgraph_rebuild_references): Declare.
29117         * tree-inline.c (tree_function_versioning): Use it.
29118         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
29119
29120 2010-05-11  Jan Hubicka  <jh@suse.cz>
29121
29122         * cgraph.c: Include ipa-utils.h
29123         (cgraph_create_virtual_clone): Update references.
29124         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
29125
29126 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
29127
29128         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
29129         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
29130         cache size.
29131
29132 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
29133
29134         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
29135
29136 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
29137
29138         * gcc.c (execute): For -### don't quote arguments that
29139         contain just alphanumerics and _/-. characters.
29140         * doc/invoke.texi: Document that change for -###.
29141
29142         PR debug/44023
29143         * df-problems.c (struct dead_debug): Add to_rescan field.
29144         (dead_debug_init): Clear to_rescan field.
29145         (dead_debug_finish): Rescan all debug insns in to_rescan
29146         bitmap and free the bitmap.
29147         (dead_debug_insert_before): Instead of rescanning debug insns
29148         immediately queue their rescanning until dead_debug_finish.
29149         (df_note_bb_compute): After dead_debug_add do continue instead
29150         of break.
29151
29152 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
29153
29154         PR debug/44028
29155         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
29156         clear also INSN_REG_USE_LIST.
29157
29158 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29159
29160         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
29161
29162 2010-05-10  Jan Hubicka  <jh@suse.cz>
29163
29164         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
29165         commited change.
29166
29167 2010-05-10  Jan Hubicka  <jh@suse.cz>
29168
29169         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
29170         Allocate encoders.
29171         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
29172         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
29173         (lto_streamer_cache_create): Init alloc pool.
29174         (lto_streamer_cache_delete): Free alloc pool.
29175         * lto-streamer.h: Include alloc pool.
29176         (lto_streamer_cache_d): Use alloc pool.
29177         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
29178
29179 2010-05-10  Jan Hubicka  <jh@suse.cz>
29180
29181         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
29182         * cgraphbuild.c: Include except.h
29183         (record_type_list, record_eh_tables): New function.
29184         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
29185
29186 2010-05-10  Jan Hubicka  <jh@suse.cz>
29187
29188         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
29189         __frame_dummy_init_array_entry, force_to_data): Attribute as used
29190         rather than unused.
29191
29192 2010-05-10  Michael Matz  <matz@suse.de>
29193
29194         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
29195         (can_reassociate_p): Use FLOAT_TYPE_P.
29196         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
29197         (vect_force_simple_reduction): ... this.
29198         * tree-parloops.c (gather_scalar_reductions): Use
29199         vect_force_simple_reduction.
29200         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
29201         vect_is_simple_reduction, add modify argument, if true rewrite
29202         "a-b" into "a+(-b)".
29203         (vect_is_simple_reduction, vect_force_simple_reduction): New
29204         functions.
29205         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
29206
29207 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
29208             Vladimir Makarov  <vmakarov@redhat.com>
29209
29210         PR rtl-optimization/44012
29211         * ira-build.c (remove_unnecessary_allocnos): Nullify
29212         regno_allocno_map of the removed allocno.
29213
29214 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29215
29216         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
29217         to /dev/null.
29218         * configure: Regenerate.
29219
29220 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29221
29222         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
29223         unused.
29224         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
29225         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
29226         support in Sun ld.
29227         * configure: Regenerate.
29228
29229 2010-05-10  Richard Guenther  <rguenther@suse.de>
29230
29231         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
29232         marked if the entry identifier is marked.
29233
29234 2010-05-10  Richard Guenther  <rguenther@suse.de>
29235
29236         * c-common.c (struct c_common_attributes): Add fnspec attribute.
29237         (handle_fnspec_attribute): New function.
29238         * gimple.h (gimple_call_return_flags): Declare.
29239         (gimple_call_arg_flags): Likewise.
29240         * gimple.c (gimple_call_arg_flags): New function.
29241         (gimple_call_return_flags): Likewise.
29242         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
29243         New argument flags.
29244         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
29245         return value flags.
29246         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
29247         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
29248         main work to ...
29249         (make_heapvar_for): ... this new function.
29250         (handle_rhs_call): Handle fnspec attribute argument specifiers.
29251         (handle_lhs_call): Likewise.
29252         (find_func_aliases): Adjust.
29253
29254 2010-05-10  Richard Guenther  <rguenther@suse.de>
29255
29256         PR tree-optimization/44050
29257         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
29258
29259 2010-05-10  Wei Guozhi  <carrot@google.com>
29260
29261         PR target/42879
29262         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
29263
29264 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
29265
29266         PR c/10676
29267         * c-typeck.c (lookup_field): Take a type directly.  Update
29268         recursive calls.
29269         (build_component_ref): Update call to lookup_field.
29270         (set_init_label): Use lookup_field to find initialized field.
29271         Handle returned list of fields like a sequence of designators.
29272
29273 2010-05-09  Richard Guenther  <rguenther@suse.de>
29274
29275         PR middle-end/44024
29276         * fold-const.c (tree_single_nonzero_warnv_p): Properly
29277         handle &FUNCTION_DECL.
29278
29279 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
29280
29281         PR c/4784
29282         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
29283         structures and unions recursively.
29284         (detect_field_duplicates): Move duplicate detection with a hash to
29285         detect_field_duplicates_hash.  Always use a hash if anonymous
29286         structures or unions are present.
29287         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
29288         give errors.
29289
29290 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
29291
29292         PR target/44046
29293         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
29294         detect Atom, Core 2 and Core i7.
29295
29296 2010-05-09  Richard Guenther  <rguenther@suse.de>
29297
29298         * gcc.c (store_arg): Handle temporary file deletion for
29299         joined arguments.
29300
29301 2010-05-09  Richard Guenther  <rguenther@suse.de>
29302
29303         PR middle-end/44043
29304         * ipa-inline.c (estimate_function_body_sizes): Return after
29305         disregarding inline limits.
29306
29307 2010-05-09  Richard Guenther  <rguenther@suse.de>
29308
29309         * gcc.c (store_arg): Revert last change.
29310
29311 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
29312
29313         PR middle-end/28685
29314         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
29315         (optimize_ops_list): Call it.
29316
29317 2010-05-08  Richard Guenther  <rguenther@suse.de>
29318
29319         PR tree-optimization/44030
29320         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
29321         NECESSARY flag if we propagate from a inserted expression.
29322
29323 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
29324
29325         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
29326         domain types as equal if they are both PLACEHOLDER_EXPRs.
29327
29328 2010-05-08  Richard Guenther  <rguenther@suse.de>
29329
29330         * lto-wrapper.c (run_gcc): Remove linker output from
29331         command line for LTRANS invocation.
29332
29333 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
29334
29335         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
29336         lto-macho as lto_binary_reader.
29337         * target.h (struct gcc_target): New hooks lto_start and lto_end.
29338         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
29339         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
29340         in lto_start and lto_end calls.
29341         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
29342         magic numbers.
29343         (scan_prog_file): Update is_elf_or_coff call.
29344         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
29345
29346         * collect2.c (main): Fix enum comparison.
29347
29348         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
29349         Add prototypes.
29350         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
29351         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
29352         and TARGET_ASM_LTO_END.
29353         * darwin.c: Include obstack.h and lto-streamer.h.
29354         (lto_section_names_offset, lto_section_names_obstack,
29355         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
29356         global variables.
29357         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
29358         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
29359         to a temporary file.
29360         (darwin_asm_lto_end): New function.  Restore asm_out_file.
29361         (darwin_asm_named_section): For LTO sections, replace the name with
29362         the offset of the section name in a string table, and build this
29363         table.
29364         (darwin_file_start): Initialize global vars for LTO support.
29365         (darwin_file_end): If output to asm_out_file was redirected, append it
29366         to the proper asm_out_file here.  Add the section names section.
29367
29368 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
29369
29370         * c-pragma.c (pending_weak_d, pending_weak): New.
29371         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
29372         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
29373         handle_pragma_weak): Update the uses of pending_weaks.
29374
29375 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29376
29377         PR documentation/44016
29378         * doc/standards.texi (Standards): Link to unversioned
29379         cxx0x_status.html page.
29380
29381 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
29382
29383         PR target/43708
29384         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
29385         in addition to TREE_USED, to avoid "set but unused" warnings.
29386
29387 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
29388
29389         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
29390         (is_loop_prefetching_profitable): Do not insert prefetches
29391         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
29392         times the prefetch ahead distance.
29393
29394 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
29395
29396         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
29397         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
29398         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
29399         the unroll_factor.
29400
29401 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
29402
29403         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
29404         a diagnostic info when the insn-to-mem ratio is too small.
29405
29406 2010-05-07  Richard Guenther  <rguenther@suse.de>
29407
29408         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
29409         the linker plugin.
29410         (store_arg): Queue temp_filename for deletion instead of
29411         the whole argument.
29412
29413 2010-05-07  Richard Guenther  <rguenther@suse.de>
29414
29415         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
29416         (run_gcc): Handle LTRANS phase invocation.
29417         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
29418
29419 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
29420
29421         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
29422         this is also meaningful on PARM_DECLs and RESULT_DECLs.
29423
29424 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29425
29426         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
29427
29428 2010-05-07  Richard Guenther  <rguenther@suse.de>
29429
29430         PR tree-optimization/44020
29431         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
29432         code when PRE is not yet initialized.
29433
29434 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29435
29436         * config/mips/dbxmdebug.h: Remove.
29437         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
29438
29439 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
29440
29441         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
29442         with null pointer and also warn about ordered comparison of zero with
29443         pointer if -Wextra.
29444
29445 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
29446
29447         * graphite-blocking.c
29448         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
29449         * graphite-clast-to-gimple.c
29450         (clast_to_gcc_expression): Same.
29451         (precision_for_value): Same.
29452         (precision_for_interval): Same.
29453         (gcc_type_for_interval): Same.
29454         (graphite_create_new_guard): Same.
29455         (compute_bounds_for_level): Same.
29456         (graphite_create_new_loop_guard): Same.
29457         * graphite-interchange.c
29458         (build_linearized_memory_access): Same.
29459         (pdr_stride_in_loop): Same.
29460         (memory_strides_in_loop_1): Same.
29461         (memory_strides_in_loop): Same.
29462         (extend_scattering): Same.
29463         (psct_scattering_dim_for_loop_depth): Same.
29464         (pbb_number_of_iterations): Same.
29465         * graphite-poly.h
29466         (debug_iteration_domains): Same.
29467         * graphite-ppl.c
29468         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
29469         (ppl_set_inhomogeneous_gmp): Same.
29470         (ppl_strip_loop): Same.
29471         (ppl_lexico_compare_linear_expressions): Same.
29472         (ppl_read_polyhedron_matrix): Same.
29473         (ppl_max_for_le_pointset): Same.
29474         * graphite-ppl.h
29475         (ppl_read_polyhedron_matrix): Same.
29476         (tree_int_to_gmp): Same.
29477         (gmp_cst_to_tree): Same.
29478         (ppl_set_inhomogeneous): Same.
29479         (ppl_set_inhomogeneous_tree): Same.
29480         (ppl_set_coef): Same.
29481         (ppl_set_coef_tree): Same.
29482         * graphite-sese-to-poly.c
29483         (build_pbb_scattering_polyhedrons): Same.
29484         (build_scop_scattering): Same.
29485         (scan_tree_for_params_right_scev): Same.
29486         (scan_tree_for_params): Same.
29487         (find_params_in_bb): Same.
29488         (find_scop_parameters): Same.
29489         (add_upper_bounds_from_estimated_nit): Same.
29490         (build_loop_iteration_domains): Same.
29491         (add_condition_to_domain): Same.
29492         (pdr_add_memory_accesses): Same.
29493
29494 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
29495
29496         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
29497         CLooG's value_* macros to their respective mpz_* counterparts.
29498         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
29499         (graphite_create_new_loop_guard): Same.
29500         * graphite-interchange.c (build_linearized_memory_access): Same.
29501         (pdr_stride_in_loop): Same.
29502         (memory_strides_in_loop_1): Same.
29503         (1st_interchange_profitable_p): Same.
29504         * graphite-poly.c (extend_scattering): Same.
29505         (psct_scattering_dim_for_loop_depth): Same.
29506         (pbb_number_of_iterations): Same.
29507         (pbb_number_of_iterations_at_time): Same.
29508         * graphite-poly.h (new_1st_loop): Same.
29509         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
29510         (oppose_constraint): Same.
29511         (insert_constraint_into_matrix): Same.
29512         (ppl_set_inhomogeneous_gmp): Same.
29513         (ppl_set_coef_gmp): Same.
29514         (ppl_strip_loop): Same.
29515         (ppl_lexico_compare_linear_expressions): Same.
29516         (ppl_max_for_le_pointset): Same.
29517         (ppl_min_for_le_pointset): Same.
29518         (ppl_build_realtion): Same.
29519         * graphite-ppl.h (gmp_cst_to_tree): Same.
29520         (ppl_set_inhomogeneous): Same.
29521         (ppl_set_inhomogeneous_tree): Same.
29522         (ppl_set_coef): Same.
29523         (ppl_set_coef_tree): Same.
29524         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
29525         (build_scop_scattering): Same.
29526         (add_value_to_dim): Same.
29527         (scan_tree_for_params_right_scev): Same.
29528         (scan_tree_for_params_int): Same.
29529         (scan_tree_for_params): Same.
29530         (find_params_in_bb): Same.
29531         (find_scop_parameters): Same.
29532         (add_upper_bounds_from_estimated_nit): Same.
29533         (build_loop_iteration_domains): Same.
29534         (create_linear_expr_from_tree): Same.
29535         (add_condition_to_domain): Same.
29536         (pdr_add_memory_accesses): Same.
29537
29538 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
29539             Jason Merrill  <jason@redhat.com>
29540
29541         * c-common.c (c_common_reswords): Add nullptr.
29542         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
29543         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
29544         (gen_type_die_with_usage): Likewise.
29545         * dbxout.c (dbxout_type): Likewise.
29546         * sdbout.c (plain_type_1): Likewise.
29547
29548 2010-05-06  Jason Merrill  <jason@redhat.com>
29549
29550         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
29551         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
29552         ret appropriately.
29553         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
29554
29555         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
29556         stripping WITH_SIZE_EXPR.
29557         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
29558         change.
29559
29560 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29561
29562         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
29563         list of obsolete configurations.
29564         Disabled check for obsolete configurations.
29565         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
29566         Removed support for previous versions.
29567         * config/mips/iris.h: Removed.
29568         * config/mips/iris5.h: Removed.
29569         * config/mips/iris6.h: Merged old iris.h contents.
29570         (TARGET_IRIX): Removed.
29571         (DRIVER_SELF_SPECS): Removed mabi=32.
29572         (IDENT_ASM_OP): Removed undef.
29573         (STARTFILE_SPEC): Removed mabi=32.
29574         (ENDFILE_SPEC): Likewise.
29575         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
29576         (MACHINE_TYPE): Update for IRIX 6.5.
29577         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
29578         TARGET_IRIX by TARGET_IRIX6.
29579         (mips_file_start): Likewise.
29580         (mips_output_external): Remove IRIX 5/6 O32 support.
29581         (mips_output_function_prologue): Likewise.
29582         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
29583         TARGET_IRIX6.
29584         (TARGET_CPU_CPP_BUILTINS): Likewise.
29585         (TARGET_IRIX): Removed.
29586         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
29587         (MULTILIB_DIRNAMES): Removed 32.
29588         (MULTILIB_OSDIRNAMES): Removed ../lib.
29589         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
29590         (Specific, mips-sgi-irix5): Document removal.
29591         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
29592         Remove references to older IRIX 6 releases and the O32 ABI.
29593
29594 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
29595
29596         PR bootstrap/43994
29597         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
29598         instead of DF_REF_REAL_REG.
29599
29600 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
29601
29602         PR target/43888
29603         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
29604         handling to still return true for x64 targets.
29605
29606 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
29607
29608         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
29609
29610 2010-05-06  Jan Hubicka  <jh@suse.cz>
29611
29612         PR tree-optimization/43791
29613         * ipa-inline.c (update_caller_keys): Remove bogus
29614         disregard_inline_limits check.
29615
29616 2010-05-06  Michael Matz  <matz@suse.de>
29617
29618         PR tree-optimization/43984
29619         * tree-ssa-pre.c (inserted_phi_names): Remove.
29620         (inserted_exprs): Change to bitmap.
29621         (create_expression_by_pieces): Set bits, don't append to vector.
29622         (insert_into_preds_of_block): Don't handle inserted_phi_names.
29623         (eliminate): Don't look at inserted_phi_names, remove deleted
29624         insns from inserted_exprs.
29625         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
29626         (init_pre, fini_pre): Allocate and free bitmaps.
29627         (execute_pre): Insert insns on edges before elimination.
29628
29629 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
29630
29631         * tree.c (initializer_zerop): Handle STRING_CST.
29632
29633 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29634
29635         PR 40989
29636         * doc/invoke.texi (Wimplicit): Document as C only.
29637         * opts.c (common_handle_option): Add argument kind.
29638         (handle_option): Rename as read_cmdline_option. Factor out code to...
29639         (handle_option): ... here. New.
29640         (handle_options): Rename as read_cmdline_options.
29641         (decode_options): Update call.
29642         (set_option): Use option index instead of option pointer. Classify
29643         diagnostics correctly.
29644         (enable_warning_as_error): Call handle_option.
29645         * opts.h (set_option): Update declaration.
29646         (handle_option): Declare.
29647         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
29648         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
29649         * c-opts.c (set_Wimplicit): Delete.
29650         (c_family_lang_mask): New static constant.
29651         (c_common_handle_option): Add argument kind. Use handle_option
29652         instead of set_Wimplicit.
29653         (c_common_post_options): warn_implicit and warn_implicit_int
29654         are disabled by default.
29655         * c-common.c (warn_implicit): Do not define here.
29656         * c-common.h (warn_implicit): Do not declare here.
29657         (c_common_handle_option): Update declaration.
29658         * lto-opts.c (lto_reissue_options): Update call to set_option.
29659
29660 2010-05-06  Richard Guenther  <rguenther@suse.de>
29661
29662         PR tree-optimization/43571
29663         * domwalk.c (walk_dominator_tree): Walk the dominator
29664         sons in more optimal order.
29665
29666 2010-05-06  Richard Guenther  <rguenther@suse.de>
29667
29668         PR tree-optimization/43934
29669         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
29670         (stmt_cost): Likewise.
29671         (extract_true_false_args_from_phi): New helper.
29672         (determine_max_movement): For PHI nodes verify we can hoist them
29673         and compute their cost.
29674         (determine_invariantness_stmt): Handle PHI nodes.
29675         (move_computations_stmt): Likewise.  Hoist PHI nodes in
29676         if-converted form using COND_EXPRs.
29677         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
29678         (tree_ssa_lim): Likewise.
29679         * tree-flow.h (tree_ssa_lim): Adjust prototype.
29680         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
29681
29682 2010-05-06  Richard Guenther  <rguenther@suse.de>
29683
29684         PR tree-optimization/43987
29685         * tree-ssa-structalias.c (could_have_pointers): For possibly
29686         address-taken variables force pointers to be recorded.
29687         (create_variable_info_for_1): Likewise.
29688         (push_fields_onto_fieldstack): Pass in wheter all fields
29689         must have pointers.
29690         (find_func_aliases): Query types instead of vars whether
29691         they contain pointers where appropriate.
29692
29693 2010-05-06  Jan Hubicka  <jh@suse.cz>
29694
29695         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
29696         (record_reference, mark_address, mark_load, mark_store): Record
29697         references.
29698         (record_references_in_initializer): Update call of record_references.
29699         (rebuild_cgraph_edges): Remove all references before rebuiding.
29700         * cgraph.c (cgraph_create_node): Clear ref list.
29701         (cgraph_remove_node): Remove references.
29702         (dump_cgraph_node): Dump references.
29703         (cgraph_clone_node): Clone references.
29704         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
29705         (struct cgraph_node, varpool_node): Add ref_lst.
29706         * ipa-ref.c: New file.
29707         * ipa-ref.h: New file.
29708         * ipa-ref-inline.h: New file.
29709         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
29710         (referenced_from_other_partition_p): New function.
29711         (lto_output_varpool_node): Take set arugment; call
29712         referenced_from_other_partition.
29713         (lto_output_ref): New.
29714         (add_references): New.
29715         (output_refs): New.
29716         (output_cgraph): Compute boundary based on references; output refs.
29717         (output_varpool): Accept cgraph_node_set argument.
29718         (input_ref): New.
29719         (input_refs): New.
29720         (input_cgraph): Call input_refs.
29721         * lto-section-in.c (lto_section_name): Add refs.
29722         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
29723         (ipa-ref.o): New file.
29724         * varpool.c (varpool_node): Clear ipa ref list.
29725         (varpool_remove_node): Remove references.
29726         (dump_varpool_node): Dump references.
29727         (varpool_assemble_decl): Only compile finalized ones.
29728         (varpool_extra_name_alias): Initialize ref list.
29729         * lto-streamer.c (lto-get_section_name): Add .refs section.
29730         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
29731         (referenced_from_other_partition_p): Declared.
29732
29733 2010-05-06  Ira Rosen  <irar@il.ibm.com>
29734
29735         PR tree-optimization/43901
29736         * tree-vect-stmts.c (vectorizable_call): Assert that vector
29737         type is not NULL if it's transformation phase, and return
29738         FALSE if it's analysis.
29739         (vectorizable_conversion, vectorizable_operation,
29740         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
29741
29742 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
29743
29744         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
29745         Delete.
29746         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
29747         New define.
29748         * config/mips/mips-protos.h
29749         (mips_small_register_classes_for_mode_p): Delete prototype.
29750
29751 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
29752
29753         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
29754         * config/arm/arm.c (multiple_operation_profitable_p,
29755         compute_offset_order): New static functions.
29756         (load_multiple_sequence, store_multiple_sequence): Use them.
29757         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
29758         memory offsets, not register numbers.
29759         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
29760
29761 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
29762
29763         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
29764         (get_pending_sizes, put_pending_size, put_pending_sizes):
29765         Update the uses of pending_sizes.
29766         * c-decl.c (store_parm_decls): Likewise.
29767         * c-tree.h (struct c_arg_info): Likewise.
29768         * tree.h: Update the prototype for get_pending_sizes and
29769         put_pending_sizes.
29770
29771 2010-05-05  Jason Merrill  <jason@redhat.com>
29772
29773         PR debug/43370
29774         * c-common.c (handle_aligned_attribute): Respect
29775         ATTR_FLAG_TYPE_IN_PLACE.
29776
29777         PR testsuite/43758
29778         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
29779         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
29780         (TARGET_INITIALIZER): Use it.
29781         * c-common.c (attribute_takes_identifier_p): Call it.
29782         * c-common.h: Update prototype.
29783         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
29784         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
29785
29786 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
29787
29788         PR debug/43950
29789         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
29790         DW_ID_down_case for Fortran compilation units.
29791
29792 2010-05-05  Jan Hubicka  <jh@suse.cz>
29793
29794         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
29795         handle aliases.
29796
29797 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
29798
29799         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
29800         a variable-sized RESULT_DECL.
29801
29802 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
29803
29804         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
29805
29806 2010-05-05  Jason Merrill  <jason@redhat.com>
29807
29808         PR c++/43787
29809         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
29810         returns GS_OK.
29811         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
29812
29813 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
29814             Jakub Jelinek  <jakub@redhat.com>
29815
29816         PR debug/43478
29817         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
29818         (dead_debug_init, dead_debug_finish): New functions.
29819         (dead_debug_add, dead_debug_insert_before): Likewise.
29820         (df_note_bb_compute): Initialize a dead_debug object, add dead
29821         debug uses to it, insert debug bind insns before death insns,
29822         reset debug insns that refer to pending uses at the end.
29823         * rtl.h (make_debug_expr_from_rtl): New prototype.
29824         * varasm.c (make_debug_expr_from_rtl): New function.
29825
29826 2010-05-05  Jan Hubicka  <jh@suse.cz>
29827
29828         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
29829         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
29830         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
29831         lto_varpool_encoder_deref, lto_varpool_encoder_size,
29832         lto_varpool_encoder_encode_initializer_p,
29833         lto_set_varpool_encoder_encode_initializer): New functions.
29834         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
29835         call output_varpool.
29836         (input_varpool_node): Do not always set analyzed.
29837         (input_cgraph_1): Return vector of cgraph nodes.
29838         (input_varpool_1): Return vector of varpools.
29839         (input_cgraph): Free the vectors.
29840         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
29841         output only initializers needed.
29842         (lto_output): Only call output_cgraph.
29843         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
29844         * lto-section-out.c (lto_new_out_decl_state): Initialize
29845         state->varpool_node_encoder.
29846         * lto-streamer.h (lto_varpool_encoder_d): New.
29847         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
29848         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
29849         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
29850         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
29851         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
29852         Declare.
29853         (output_varpool, input_varpool): Remove declarations.
29854
29855 2010-05-05  Jan Hubicka  <jh@suse.cz>
29856
29857         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
29858         with body can prevail.
29859
29860 2010-05-05  Jan Hubicka  <jh@suse.cz>
29861
29862         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
29863         size.
29864
29865 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
29866
29867         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
29868
29869         * gengtype.h (erro_at_line): Constify pos argument.
29870
29871         * gengtype.c: Include hashtab.h.
29872         (enum gc_used): Document GC_MAYBE_POINTED_TO.
29873         (error_at_line): Constify pos argument.
29874         (do_typedef): Initialize p->opt field.
29875         (get_file_gtfilename): Fix comment typo.
29876         (struct walk_type_data): Constify line field.
29877         (get_output_file_for_structure): New function.
29878         (write_local_func_for_structure): Constify orig_s argument.
29879         Use get_output_file_for_structure.
29880         (write_func_for_structure): Use get_output_file_for_structure.
29881         (INDENT): New define.
29882         (dump_pair, dump_type, dump_type_list, dump_typekind)
29883         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
29884         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
29885         functions.
29886         (seen_types): New variable.
29887         (main): New variable do_dump.  Process "-d" command line option.
29888         Call dump_everything if dump requested.
29889
29890 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
29891
29892         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
29893         in a temporary instead of invoking the macro multiple times.
29894         (track_expr_p): Likewise.
29895
29896 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
29897
29898         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
29899         per new semantics.
29900         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
29901         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
29902         conditions for printing notes.
29903         * common.opt (-Wcoverage-mismatch): Allow negative, default to
29904         true, update documentation.
29905         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
29906
29907 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
29908
29909         PR c/43981
29910         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
29911         on dimen.
29912
29913 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
29914
29915         PR target/43799
29916         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
29917         (*sse_prologue_save_insn1): Likewise.
29918         (SSE prologue save splitter): Likewise.
29919
29920 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
29921
29922         * tree.c (free_lang_data_in_one_sizepos): New inline function.
29923         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
29924         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
29925         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
29926         all decls.  Call it on DECL_FIELD_OFFSET of fields.
29927         (find_decls_types_r): Follow DECL_VALUE_EXPR.
29928         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
29929
29930 2010-05-04  Martin Jambor  <mjambor@suse.cz>
29931
29932         * tree-sra.c (build_access_from_expr_1): The first parameter type
29933         changed to simple tree.
29934         (build_access_from_expr): Likewise, gsi parameter was eliminated.
29935         (scan_assign_result): Renamed to assignment_mod_result, enum elements
29936         renamed as well.
29937         (build_accesses_from_assign): Removed all parameters except for a
29938         simple gimple statement.  Now returns a simple bool.
29939         (scan_function): All non-analysis parts moved to separate functions
29940         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
29941         parameters and updated both callers.
29942         (sra_modify_expr): Removed parameter data.
29943         (sra_modify_function_body): New function.
29944         (perform_intra_sra): Call sra_modify_function_body to modify the
29945         function body.
29946         (replace_removed_params_ssa_names): Parameter data changed into
29947         adjustments vector.
29948         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
29949         changed the parameter dont_convert to convert with the opposite
29950         meaning.
29951         (sra_ipa_modify_assign): Parameter data changed into adjustments
29952         vector, return value changed to bool.
29953         (ipa_sra_modify_function_body): New function.
29954         (sra_ipa_reset_debug_stmts): Updated a comment.
29955         (modify_function): Use ipa_sra_modify_function_body to modify function
29956         body.
29957
29958 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
29959
29960         PR middle-end/43671
29961         * alias.c (true_dependence): Handle the same VALUE in x and mem.
29962         (canon_true_dependence): Likewise.
29963         (write_dependence_p): Likewise.
29964
29965 2010-05-04  Jan Hubicka  <jh@suse.cz>
29966
29967         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
29968         * cgraphbuild.c: Include ipa-utils.h
29969         (record_reference_ctx): New struct.
29970         (record_reference): Simplify to work on initializers; not statements.
29971         (mark_address, mark_load, mark_store): New.
29972         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
29973         walk PHI nodes too.
29974         (record_references_in_initializer): Update use of record_reference.
29975         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
29976         walk PHI nodes too.
29977
29978 2010-05-04  Jan Hubicka  <jh@suse.cz>
29979
29980         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
29981         node will be removed anyway.
29982         (lto_varpool_replace_node): Allow also unanalyzed nodes;
29983         relink aliases of node into prevailing node.
29984         * varpool.c (varpool_remove_node): Remove aliases properly;
29985         when removing node, remove all its aliases too; remove DECL_INITIAL
29986         of removed node; ggc_free the varpool node.
29987
29988 2010-05-04  Richard Guenther  <rguenther@suse.de>
29989
29990         PR tree-optimization/43879
29991         * tree-ssa-structalias.c (alias_get_name): Use
29992         DECL_ASSEMBLER_NAME if available.
29993         (create_function_info_for): Return the varinfo node.
29994         (ipa_pta_execute): Associate same-body aliases and extra names
29995         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
29996
29997 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
29998
29999         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
30000
30001 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
30002
30003         PR bootstrap/43964
30004         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
30005         only if HONOR_REG_ALLOC_ORDER is not defined.
30006
30007 2010-05-04  Richard Guenther  <rguenther@suse.de>
30008
30009         PR tree-optimization/43949
30010         * tree-vrp.c (extract_range_from_binary_expr): Only handle
30011         TRUNC_MOD_EXPR.
30012
30013 2010-04-26  Jason Merrill  <jason@redhat.com>
30014
30015         * c.opt (-fstrict-enums): New.
30016         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
30017
30018 2010-05-03  David Ung  <davidu@mips.com>
30019             James E. Wilson  <wilson@codesourcery.com>
30020
30021         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
30022         emit the trap instruction before the divide for TUNE_74K.
30023
30024 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
30025
30026         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
30027         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
30028         based on the above, for new target hook.
30029
30030         * hooks.c (hook_bool_mode_true): New generic hook.
30031         * hooks.h (hook_bool_mode_true): Add prototype.
30032
30033         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
30034         target hook.
30035         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
30036         target hook, set to hook_bool_mode_false.
30037         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
30038         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
30039         with targetm.small_register_classes_for_mode_p.
30040         (find_reusable_reload): Likewise.
30041         (combine_reloads): Likewise.
30042         * reload1.c (reload_as_needed): Likewise.
30043         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
30044         * ifcvt.c (noce_process_if_block, check_cond_move_block,
30045         dead_or_predicable): Likewise.
30046         * regmove.c (optimize_reg_copy_1): Likewise.
30047         * calls.c (prepare_call_address): Likewise.
30048         (precompute_register_parameters): Likewise.
30049
30050         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
30051         hook definition.
30052         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
30053         implementation of the hook that considers all register classes
30054         small except for SH64.
30055         (sh_override_options): Use the new hook.
30056         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
30057         Add prototype.
30058
30059         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
30060         hook definition.
30061         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
30062         implementation of the hook that considers all register classes
30063         small for THUMB1.
30064         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
30065         Add prototype.
30066
30067         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
30068         hook definition.
30069         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
30070         implementation of the hook that considers all register classes
30071         small for MIPS16.
30072         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
30073         Add prototype.
30074
30075         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
30076         hook definition.
30077         * config/m32c/m32c.h: Likewise.
30078         * config/pdp11/pdp11.h: Likewise.
30079         * config/avr/avr.h: Likewise.
30080         * config/xtensa/xtensa.h: Likewise.
30081         * config/m68hc11/m68hc11.h: Likewise.
30082         * config/mn10300/mn10300.h: Likewise.
30083         * config/mcore/mcore.h: Likewise.
30084         * config/h8300/h8300.h: Likewise.
30085         * config/bfin/bfin.h: Likewise.
30086
30087         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
30088         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
30089
30090 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
30091
30092         * double-int.h (tree_to_double_int): Remove macro.
30093         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
30094         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
30095         (tree_to_double_int): New function.
30096         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
30097         Move ...
30098         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
30099
30100 2010-05-03  Richard Guenther  <rguenther@suse.de>
30101
30102         PR tree-optimization/43971
30103         * tree-ssa-structalias.c (get_constraint_for_1): Fix
30104         constraints in the !flag_delete_null_pointer_checks case.
30105
30106 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
30107
30108         PR debug/43972
30109         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
30110         result mode matches original rtl mode.
30111
30112 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
30113
30114         PR target/43888
30115         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
30116
30117 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30118
30119         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
30120         when processing flag options.
30121
30122 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30123
30124         * gcov-iov.c (main): Change format string placeholder
30125         from %#08x to 0x%08x.
30126         * genchecksum.c (dosum): Change format string placeholder
30127         from %#02x to 0x%02x.
30128
30129 2010-05-02  Richard Guenther  <rguenther@suse.de>
30130
30131         PR tree-optimization/43879
30132         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
30133
30134 2010-05-02  Bruno Haible  <bruno@clisp.org>
30135
30136         * doc/extend.texi (Function Attributes): Fix a typo.
30137
30138 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30139
30140         Revert:
30141         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
30142         placeholder from 0x%x to %#x.
30143         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
30144         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
30145         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
30146         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
30147         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
30148         * config/i386/i386.c (ix86_target_string): Ditto.
30149         * config/i386/i386.c (output_pic_addr_const): Ditto.
30150         (print_operand): Ditto.
30151
30152 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
30153
30154         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
30155         placeholder from 0x%x to %#x.
30156         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
30157         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
30158         (ASM_OUTPUT_DEBUG_DATA): Ditto.
30159         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
30160         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
30161         * optc-gen.awk: Ditto.
30162         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
30163         (HOST_WIDE_INT_PRINT_HEX): Ditto.
30164         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
30165         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
30166
30167 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
30168
30169         * target.h (struct calls): Add function_value_regno_p field.
30170         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
30171         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
30172         * targhooks.c (default_function_value_regno_p): New function.
30173         * targhooks.h (default_function_value_regno_p): Declare function.
30174         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
30175         * builtins.c. (apply_result_size): (Ditto.).
30176         * combine.c. (likely_spilled_retval_p): (Ditto.).
30177         * mode-switching.c. Include 'target.h'.
30178         (create_pre_exit): Use function_value_regno_p hook.
30179         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
30180         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
30181         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
30182
30183         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
30184         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
30185         (ix86_function_value_regno_p): Declare as static, change argument
30186         type to const unsigned int.
30187         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
30188
30189 2010-05-01  Richard Guenther  <rguenther@suse.de>
30190
30191         PR tree-optimization/43949
30192         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
30193         types.
30194         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
30195
30196 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
30197
30198         * rtl.h (CONST_DOUBLE_P): Define.
30199         (rtx_to_double_int): Declare.
30200         * emit-rtl.c (rtx_to_double_int): New function.
30201         * dwarf2out.c (insert_double): New function.
30202         (loc_descriptor, add_const_value_attribute): Clean up, use
30203         rtx_to_double_int and insert_double functions.
30204
30205 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
30206
30207         * doc/extend.texi (Inline): Add missing return keyword to examples.
30208         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
30209         "command-line".
30210
30211 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
30212
30213         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
30214         the variable part of the offset as well.  Use highest_pow2_factor for
30215         all alignment checks.
30216
30217 2010-04-30  Richard Guenther  <rguenther@suse.de>
30218
30219         PR tree-optimization/43879
30220         * tree-ssa-structalias.c (type_could_have_pointers): Functions
30221         can have pointers.
30222
30223 2010-04-30  Jan Hubicka  <jh@suse.cz>
30224
30225         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
30226         varpool.
30227         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
30228
30229 2010-04-30  Jan Hubicka  <jh@suse.cz>
30230
30231         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
30232         New.
30233         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
30234         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
30235         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
30236         cgraph_node_set_needs_ltrans_p): Remove.
30237
30238 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
30239
30240         * sdbout.c: Include vec.h, do not include varray.h.
30241         (deferred_global_decls, sdbout_global_decl,
30242         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
30243         * toplev.c: Do not include varray.h.
30244         (dump_memory_report): Do not dump VARRAY statistics.
30245         * gengtype.c (open_base_file): Ignore varray.h.
30246         * Makefile.in: Update for abovementioned changes.
30247         Remove all traces of varray.c and varray.h.
30248         * varray.c: Remove file.
30249         * varray.h: Remove file.
30250
30251 2010-04-30  Jan Hubicka  <jh@suse.cz>
30252
30253         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
30254         references.
30255
30256 2010-04-30  Jan Hubicka  <jh@suse.cz>
30257
30258         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
30259         needed.
30260
30261 2010-04-30  Richard Guenther  <rguenther@suse.de>
30262
30263         * tree-ssa-structalias.c (get_constraint_for_1): Generate
30264         constraints for CONSTRUCTOR.
30265
30266 2010-04-30  Richard Guenther  <rguenther@suse.de>
30267
30268         PR lto/43946
30269         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
30270         first after all lowering passes.
30271
30272 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
30273
30274         * toplev.c: Include varray.h for statistics dumping.
30275         * tree.h: Do not declare varray_head_tag.
30276         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
30277         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
30278         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
30279         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
30280         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
30281         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
30282         c-common.c, c-common.h, reg-stack.c, basic-block.h,
30283         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
30284         include varray.h.
30285         * Makefile.in: Update for abovementioned changes.
30286
30287 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
30288
30289         PR debug/43942
30290         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
30291
30292 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
30293
30294         * config/picochip/picochip.c (picochip_legitimize_address): Define.
30295         Use this function to do machine-specific conversion.
30296         (picochip_legitimize_reload_address): Likewise.
30297         (picochip_legitimate_address_p): Check valid base register only if
30298         strict.
30299         (picochip_check_conditional_copy): Check for modw only if opnd is
30300         register.
30301         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
30302         to call the function in c.
30303         * config/picochip/picochip-protos.h
30304         (picochip_legitimize_reload_address): Define.
30305         * config/picochip/picochip.md (supported_compare1): Define.
30306
30307 2010-04-30  Jan Hubicka  <jh@suse.cz>
30308
30309         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
30310         (cgraph_global_info): Remove inlined.
30311         (LTO_cgraph_tag_names): Remove.
30312         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
30313         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
30314         simplify cgraph tags and document.
30315         (lto_output_node): Use only LTO_cgraph_unavail_node and
30316         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
30317         for_functions_valid, global info, process and output flags.
30318         (input_overwrite_node): Initialize estimated stack size and
30319         estimated growth.  Do not read flags we no longer store.
30320         (input_node): Likewise do not read info no longer stored.
30321         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
30322         flag.
30323
30324 2010-04-30  Richard Guenther  <rguenther@suse.de>
30325
30326         PR tree-optimization/43879
30327         * tree-ssa-structalias.c (get_constraint_for_1): Properly
30328         handle non-zero initializers.
30329
30330 2010-04-30  Richard Guenther  <rguenther@suse.de>
30331
30332         * builtins.c (fold_builtin_1): Delete free (0).
30333
30334 2010-04-29  Jan Hubicka  <jh@suse.cz>
30335
30336         * gengtype.c (open_base_files): Add lto-streamer.h
30337         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
30338         (pass_ipa_cp): GGC collect.
30339         * toplev. (compile_file): Do not output symbols.
30340         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
30341         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
30342         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
30343         * lto-section-in.c: Include ggc.h
30344         (lto_new_in_decl_state): Alloc in GGC.
30345         (lto_delete_in_decl_state): Likewise.
30346         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
30347         Collect.
30348
30349 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
30350
30351         PR target/42895
30352         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
30353         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
30354         (HONOR_REG_ALLOC_ORDER): Describe new macro.
30355         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
30356         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
30357         account only if HONOR_REG_ALLOC_ORDER is not defined.
30358         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
30359         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
30360
30361 2010-04-29  Jon Grant  <04@jguk.org>
30362
30363         * collect2.c (vflag): Change type from int to bool.
30364         (debug): Likewise.
30365         (helpflag): New global bool.
30366         (main): Set vflag and debug with boolean, not integer truth values.
30367         Accept new "--help" option and output usage text if found.
30368         * collect2.h (vflag): Update prototype.
30369         (debug): Likewise.
30370
30371 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
30372
30373         PR bootstrap/43936
30374         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
30375
30376 2010-04-29  Richard Guenther  <rguenther@suse.de>
30377
30378         PR bootstrap/43935
30379         * plugin.h (invoke_plugin_callbacks): Annotate arguments
30380         with ATTRIBUTE_UNUSED.
30381
30382 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
30383
30384         PR target/43921
30385         * config/i386/i386.c (get_some_local_dynamic_name): Replace
30386         INSN_P with NONDEBUG_INSN_P.
30387         (distance_non_agu_define): Likewise.
30388         (distance_agu_use): Likewise.
30389
30390 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
30391
30392         From Dominique d'Humieres  <dominiq@lps.ens.fr>
30393         PR bootstrap/43858
30394         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
30395         test_set.
30396
30397 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
30398
30399         * plugin.h (invoke_plugin_callbacks): New inline function.
30400         * plugin.c (flag_plugin_added): New global flag.
30401         (add_new_plugin): Initialize above flag.
30402         (invoke_plugin_callbacks): Rename to ...
30403         (invoke_plugin_callbacks_full): ... this.
30404
30405 2010-04-28  Jan Hubicka  <jh@suse.cz>
30406
30407         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
30408         (lto_varpool_replace_node): New.
30409         (lto_symtab_resolve_symbols): Resolve varpool nodes.
30410         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
30411         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
30412         * cgraph.h (varpool_node_ptr): New type.
30413         (varpool_node_ptr): New vector.
30414         (varpool_node_set_def): New structure.
30415         (varpool_node_set): New type.
30416         (varpool_node_set): New vector.
30417         (varpool_node_set_element_def): New structure.
30418         (varpool_node_set_element, const_varpool_node_set_element): New types.
30419         (varpool_node_set_iterator): New type.
30420         (varpool_node): Add prev pointers, add used_from_other_partition,
30421         in_other_partition.
30422         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
30423         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
30424         varpool_get_node, varpool_remove_node): Declare.
30425         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
30426         varpool_node_set_size): New inlines.
30427         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
30428         * tree-pass.h (varpool_node_set_def): Forward declare.
30429         (ipa_opt_pass_d): Summary writting takes vnode sets too.
30430         (ipa_write_optimization_summaries): Update prototype.
30431         * ipa-cp.c (ipcp_write_summary): Update.
30432         * ipa-reference.c (ipa_reference_write_summary): Update.
30433         * lto-cgraph.c (lto_output_varpool_node): New static function.
30434         (output_varpool): New function.
30435         (input_varpool_node): New static function.
30436         (input_varpool_1): New function.
30437         (input_cgraph): Input varpool.
30438         * ipa-pure-const.c (pure_const_write_summary): Update.
30439         * lto-streamer-out.c (lto_output): Update, output varpool too.
30440         (write_global_stream): Kill WPA hack.
30441         (produce_asm_for_decls): Update.
30442         (output_alias_pair_p): Handle variables.
30443         (output_unreferenced_globals): Output only needed partition of varpool.
30444         * ipa-inline.c (inline_write_summary): Update.
30445         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
30446         cgraph.
30447         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
30448         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
30449         varpool_node_set_new, varpool_node_set_add,
30450         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
30451         debug_varpool_node_set): New functions.
30452         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
30453         (execute_one_pass): Process new decls too.
30454         (ipa_write_summaries_2): Pass around vsets.
30455         (ipa_write_summaries_1): Likewise.
30456         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
30457         to add.
30458         (ipa_write_optimization_summaries_1): Pass around vsets.
30459         (ipa_write_optimization_summaries): Likewise.
30460         * varpool.c (varpool_get_node): New.
30461         (varpool_node): Update doubly linked lists.
30462         (varpool_remove_node): New.
30463         (dump_varpool_node): More dumping.
30464         (varpool_enqueue_needed_node): Update doubly linked lists.
30465         (decide_is_variable_needed): Kill ltrans hack.
30466         (varpool_finalize_decl): Kill lto hack.
30467         (varpool_assemble_decl): Skip decls in other partitions.
30468         (varpool_assemble_pending_decls): Update doubly linkes lists.
30469         (varpool_empty_needed_queue): Likewise.
30470         (varpool_extra_name_alias): Likewise.
30471         * lto-streamer.c (lto_get_section_name): Add vars section.
30472         * lto-streamer.h (lto_section_type): Update.
30473         (output_varpool, input_varpool): Declare.
30474
30475 2010-04-28  Mike Stump  <mikestump@comcast.net>
30476
30477         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
30478
30479 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
30480
30481         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
30482         record or union type with RECORD_OR_UNION_TYPE_P predicate.
30483         (lto_input_ts_type_tree_pointers): Likewise.
30484         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
30485         (lto_output_ts_type_tree_pointers): Likewise.
30486
30487 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
30488
30489         Uniquization of constants at the Tree level
30490         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
30491         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
30492         bit to the end.
30493         (tree_output_constant_def): Declare.
30494         * gimplify.c (gimplify_init_constructor): When using block copy, first
30495         uniquize the constant constructor on the RHS.
30496         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
30497         DECL_IN_CONSTANT_POOL flag.
30498         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
30499         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
30500         constant pool.
30501         (assemble_variable): Deal with symbols belonging to the tree constant
30502         pool.
30503         (get_constant_section): Add ALIGN parameter and simplify.
30504         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
30505         (assemble_constant_contents): Use the expression of the VAR_DECL.
30506         (output_constant_def_contents): Use the alignment of the VAR_DECL.
30507         (tree_output_constant_def): New global function.
30508         (mark_constant): Use the expression of the VAR_DECL.
30509         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
30510         its expression.
30511         (output_object_block): Likewise and assemble the expression.
30512
30513 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
30514
30515         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
30516         hash_tree, eq_tree): New tree hash table.
30517         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
30518         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
30519         lto_orig_address_remove): Reimplement.
30520
30521 2010-04-28  Xinliang David Li  <davidxl@google.com>
30522
30523         PR c/42643
30524         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
30525         (compute_uninit_opnds_pos): New function.
30526         (is_non_loop_exit_postdominating): New function.
30527         (compute_control_dep_chain): New function.
30528         (find_pdom): New function.
30529         (convert_control_dep_chain_into_preds): New function.
30530         (find_predicates): New function.
30531         (find_control_equiv_block): New function.
30532         (collect_phi_def_edges): New function.
30533         (find_def_preds): New function.
30534         (find_dom): New function.
30535         (dump_predicates): New function.
30536         (get_cmp_code): New function.
30537         (is_value_included_in): New function.
30538         (find_matching_predicate_in_rest_chains): New function.
30539         (use_pred_not_overlap_with_undef_path_pred): New function.
30540         (is_use_properly_guarded): New function.
30541         (normalize_cond_1): New function.
30542         (is_and_or_or): New function.
30543         (normalize_cond): New function.
30544         (is_gcond_subset_of): New function.
30545         (is_subset_of_any): New function.
30546         (is_or_set_subset_of): New function.
30547         (is_and_set_subset_of): New function.
30548         (is_norm_cond_subset_of): New function.
30549         (is_pred_expr_subset_of): New function.
30550         (is_pred_chain_subset_of): New function.
30551         (is_included_in): New function.
30552         (is_superset_of): New function.
30553         (find_uninit_use): New function.
30554         (warn_uninitialized_phi): New function.
30555         (compute_possibly_undefined_names): New function.
30556         (ssa_undefined_value_p): New function.
30557         (execute_late_warn_uninitialized): New function.
30558         * tree-ssa.c (ssa_undefined_value_p): Removed.
30559         (warn_uninit): Changed to extern.
30560         (warn_uninitialized_phi): Removed.
30561         (warn_uninitialized_vars): Changed to extern.
30562         (execute_late_warn_uninitialized): Removed
30563         * tree-flow.h: Add new prototypes.
30564         * timevar.def: Add new time variable.
30565         * Makefile.in: Add new build file.
30566
30567 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
30568
30569         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
30570         type if available.
30571
30572 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30573
30574         PR target/22224
30575         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
30576
30577 2010-04-28  Martin Jambor  <mjambor@suse.cz>
30578
30579         * cgraph.h (struct cgraph_node): New field indirect_calls.
30580         (struct cgraph_indirect_call_info): New type.
30581         (struct cgraph_edge): Removed field indirect_call. New fields
30582         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
30583         (cgraph_create_indirect_edge): Declare.
30584         (cgraph_make_edge_direct): Likewise.
30585         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
30586         * ipa-prop.h (struct ipa_param_call_note): Removed.
30587         (struct ipa_node_params): Removed field param_calls.
30588         (ipa_create_all_structures_for_iinln): Declare.
30589         * cgraph.c: Described indirect edges and uids in initial comment.
30590         (cgraph_add_edge_to_call_site_hash): New function.
30591         (cgraph_edge): Search also among the indirect edges, use
30592         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
30593         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
30594         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
30595         site hash.
30596         (initialize_inline_failed): Assign a reason to indirect edges.
30597         (cgraph_create_edge_1): New function.
30598         (cgraph_create_edge): Moved some functionality to
30599         cgraph_create_edge_1.
30600         (cgraph_create_indirect_edge): New function.
30601         (cgraph_edge_remove_callee): Add an assert checking for
30602         non-indirectness.
30603         (cgraph_edge_remove_caller): Special-case indirect edges.
30604         (cgraph_remove_edge): Likewise.
30605         (cgraph_set_edge_callee): New function.
30606         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
30607         (cgraph_make_edge_direct): New function.
30608         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
30609         the declaration of the call statement matches.
30610         (cgraph_node_remove_callees): Special-case indirect edges.
30611         (cgraph_clone_edge): Likewise.
30612         (cgraph_clone_node): Clone also the indirect edges.
30613         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
30614         indirect_call, dump count of indirect_calls edges.
30615         * ipa-prop.c (iinlining_processed_edges): New variable.
30616         (ipa_note_param_call): Create indirect edges instead of
30617         creating notes.  New parameter node.
30618         (ipa_analyze_call_uses): New parameter node, pass it on to
30619         ipa_note_param_call.
30620         (ipa_analyze_stmt_uses): Likewise.
30621         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
30622         (print_edge_addition_message): Work on edges rather than on notes.
30623         (update_call_notes_after_inlining): Likewise, renamed to
30624         update_indirect_edges_after_inlining.
30625         (ipa_create_all_structures_for_iinln): New function.
30626         (ipa_free_node_params_substructures): Do not free notes.
30627         (ipa_edge_duplication_hook): Propagate bits within
30628         iinlining_processed_edges bitmap.
30629         (ipa_node_duplication_hook): Do not duplicate notes.
30630         (free_all_ipa_structures_after_ipa_cp): Renamed to
30631         ipa_free_all_structures_after_ipa_cp.
30632         (free_all_ipa_structures_after_iinln): Renamed to
30633         ipa_free_all_structures_after_iinln.
30634         (ipa_write_param_call_note): Removed.
30635         (ipa_read_param_call_note): Removed.
30636         (ipa_write_indirect_edge_info): New function.
30637         (ipa_read_indirect_edge_info): Likewise.
30638         (ipa_write_node_info): Do not stream notes, do stream information
30639         in indirect edges.
30640         (ipa_read_node_info): Likewise.
30641         (lto_ipa_fixup_call_notes): Removed.
30642         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
30643         * ipa-inline.c (pass_ipa_inline): Likewise.
30644         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
30645         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
30646         * tree-inline.c (copy_bb): Removed an unnecessary double check for
30647         is_gimple_call.
30648         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
30649         edges.
30650         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
30651         (output_cgraph): Stream also indirect edges.
30652         (lto_output_edge): Added capability to stream indirect edges.
30653         (input_edge): Likewise.
30654         (input_cgraph_1): Likewise.
30655         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
30656         of indirect edges.
30657
30658 2010-04-28  Richard Guenther  <rguenther@suse.de>
30659
30660         PR tree-optimization/43879
30661         PR tree-optimization/43909
30662         * tree-ssa-structalias.c (struct variable_info): Add
30663         only_restrict_pointers flag.
30664         (new_var_info): Initialize it.  Increment stats.total_vars here.
30665         (create_function_info_for): Do not increment stats.total_vars here.
30666         (get_function_part_constraint): Fix build with C++.
30667         (insert_into_field_list): Remove.
30668         (push_fields_onto_fieldstack): Properly merge fields.
30669         (create_variable_info_for): Split and simplify.
30670         (create_variable_info_for_1): New piece.
30671         (intra_create_variable_infos): Properly make restrict constraints
30672         from parameters.
30673
30674 2010-04-28  Richard Guenther  <rguenther@suse.de>
30675
30676         PR c++/43880
30677         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
30678
30679 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30680             Jan Hubicka  <hubicka@ucw.cz>
30681
30682         * doc/invoke.texi (-Wsuggest-attribute=const,
30683         -Wsuggest-attribute=pure): Document.
30684         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
30685         (function_always_visible_to_compiler_p,
30686         suggest_attribute, warn_function_pure, warn_function_const):
30687         New functions.
30688         (check_call): Improve debug info.
30689         (analyze_function): Do not check availability.
30690         (add_new_function): Check availability.
30691         (propagate): Output warnings.
30692         (skip_function_for_local_pure_const): New function.
30693         (local_pure_const): Use it; output warnings.
30694         * common.opt (Wsuggest-attribute=const,
30695         Wsuggest-attribute=pure): New.
30696
30697 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
30698
30699         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
30700         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
30701         or DW_CFA_def_cfa_offset{,_sf}.
30702
30703 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
30704
30705         * tree.h: Fix truncated long macros.
30706
30707 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
30708
30709         * collect2.c (TARGET_64BIT): Redefine to target's default.
30710         * tlink.c: Likewise.
30711         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
30712         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
30713         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
30714         for underscoring __USER_LABEL_PREFIX__.
30715         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
30716         (SUB_LINK_ENTRY32): New.
30717         (SUB_LINK_ENTRY64): New.
30718         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
30719         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
30720         (SUB_LINK_ENTRY64): New.
30721         (SUB_LINK_ENTRY): New.
30722         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
30723         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
30724         x64 target is choosen.
30725         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
30726         * configure: Regenerated.
30727         * configure.ac (leading-mingw64-underscores): Option added.
30728
30729 2010-04-27  Jan Hubicka  <jh@suse.cz>
30730
30731         * doc/invoke.texi (-fipa-profile): Document.
30732         * opts.c (decode_options): Enable ipa-profile at -O1.
30733         * timevar.def (TV_IPA_PROFILE): Define.
30734         * common.opt (fipa-profile): Add.
30735         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
30736         flag for clones.
30737         (cgraph_propagate_frequency): Handle only local ones.
30738         * tree-pass.h (pass_ipa_profile): Declare.
30739         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
30740         (pass_ipa_profile): Use TV_IPA_PROFILE.
30741         * ipa.c (ipa_profile): New function.
30742         (gate_ipa_profile): Likewise.
30743         (pass_ipa_profile): New global variable.
30744         * passes.c (pass_ipa_profile): New.
30745
30746 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
30747
30748         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
30749
30750 2010-04-27  Martin Jambor  <mjambor@suse.cz>
30751
30752         PR middle-end/43812
30753         * ipa.c (dissolve_same_comdat_group_list): New function.
30754         (function_and_variable_visibility): Call
30755         dissolve_same_comdat_group_list when comdat group contains external or
30756         newly local nodes.
30757         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
30758         lists are circular and that they contain only DECL_ONE_ONLY nodes.
30759
30760 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
30761
30762         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
30763         (const_hash_1) <VECTOR_CST>: New case.
30764         (compare_constant) <VECTOR_CST>: Likewise.
30765         <ADDR_EXPR>: Deal with LABEL_REFs.
30766         (copy_constant) <VECTOR_CST>: New case.
30767
30768 2010-04-27  Jan Hubicka  <jh@suse.cz>
30769
30770         * cgraph.c (cgraph_propagate_frequency): New function.
30771         * cgraph.h (cgraph_propagate_frequency): Declare.
30772         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
30773         cgraph_propagate_frequency.
30774
30775 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
30776
30777         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
30778
30779 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
30780
30781         PR target/40657
30782         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
30783         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
30784         here to determine which regs to push and how much stack to reserve.
30785
30786 2010-04-27  Jie Zhang  <jie@codesourcery.com>
30787
30788         * doc/gimple.texi (gimple_statement_with_ops): Remove
30789         addresses_taken field.
30790         (gimple_statement_with_memory_ops): Likewise.
30791
30792 2010-04-27  Jan Hubicka  <jh@suse.cz>
30793
30794         * tree-inline.c (eni_inlining_weights): Remove.
30795         (estimate_num_insns): Special case more builtins.
30796
30797 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
30798
30799         PR c/32207
30800         * c-typeck.c (build_binary_op): Move forward check for comparison
30801         pointer with null pointer constant and adjust the diagnostic message.
30802
30803 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
30804
30805         PR lto/42776
30806         * configure.ac (gcc_cv_as_section_has_align): Set if installed
30807         binutils supports extended .section directive needed by LTO, or
30808         warn if older binutils found.
30809         (LTO_BINARY_READER): New AC_SUBST'd variable.
30810         (LTO_USE_LIBELF): Likewise.
30811         * config.gcc (lto_binary_reader): New target-specific configure
30812         variable.
30813         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
30814         (LTO_USE_LIBELF): Likewise.
30815         * configure: Regenerate.
30816
30817         * collect2.c (is_elf): Rename from this ...
30818         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
30819          object files in addition to ELF-formatted ones.
30820         (scan_prog_file): Caller updated.  Also allow for LTO info marker
30821         symbol to be prefixed or not by an extra underscore.
30822
30823         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
30824         * config/i386/winnt.c: Also #include lto-streamer.h
30825         (i386_pe_asm_named_section): Specify 1-byte section alignment for
30826         LTO named sections.
30827         (i386_pe_asm_output_aligned_decl_common): Add comment.
30828         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
30829
30830 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
30831
30832         PR target/43889
30833         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
30834         Add missing earlyclobber for second alternative.
30835
30836 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
30837
30838         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
30839         bits for artificial defs at the top of the block.
30840         * fwprop.c (single_def_use_enter_block): Don't call it.
30841
30842 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
30843
30844         PR 43715
30845         * configure.ac: Use "$gcc_cv_nm -g" on darwin
30846         instead of "$gcc_cv_objdump -T".
30847         Use "-undefined dynamic_lookup" on darwin.
30848         * configure: Regenerate.
30849
30850 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
30851
30852         PR c/43893
30853         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
30854
30855 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
30856
30857         * c-parser.c (struct c_token): Move location field up.
30858         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
30859         (struct c_declspecs): Convert typespec_word, storage_class, and
30860         default_int_p into bitfields.
30861         (struct c_declarator): Move loc field up.
30862
30863 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
30864
30865         * cfgloop.h (struct loop): Move can_be_parallel field up.
30866         * ipa-prop.h (struct ip_node_params): Move bitfields up.
30867         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
30868         down.
30869         (struct iv_cand): Convert pos field into a bitfield.
30870         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
30871         field up.
30872         (struct _stmt_vec_info): Shuffle fields for better packing.
30873
30874 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
30875
30876         * varasm.c (IN_NAMED_SECTION): Remove guard.
30877         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
30878         (IN_NAMED_SECTION_P): ...this.
30879         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
30880         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
30881
30882 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
30883
30884         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
30885         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
30886         of shadowing it.  Fix comments.
30887
30888 2010-04-26  Jan Hubicka  <jh@suse.cz>
30889
30890         * cgraph.c (cgraph_create_node): Set node frequency to normal.
30891         (cgraph_clone_node): Copy function frequency.
30892         * cgraph.h (node_frequency): New enum
30893         (struct cgraph_node): Add.
30894         * final.c (rest_of_clean_state): Update.
30895         * lto-cgraph.c (lto_output_node): Output node frequency.
30896         (input_overwrite_node): Input node frequency.
30897         * tre-ssa-loop-ivopts (computation_cost): Update.
30898         * lto-streamer-out.c (output_function): Do not output function
30899         frequency.
30900         * predict.c (maybe_hot_frequency_p): Update and handle functions
30901         executed once.
30902         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
30903         attribute lookup.
30904         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
30905         (compute_function_frequency): Set noreturn functions to be executed
30906         once.
30907         (choose_function_section): Update.
30908         * lto-streamer-in.c (input_function): Do not input function frequency.
30909         * function.c (allocate_struct_function): Do not initialize function
30910         frequency.
30911         * function.h (function_frequency): Remove.
30912         (struct function): Remove function frequency.
30913         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
30914         (try_update): Update.
30915         * tree-inline.c (initialize_cfun): Do not update function frequency.
30916         * passes.c (pass_init_dump_file): Update.
30917         * i386.c (ix86_compute_frame_layout): Update.
30918         (ix86_pad_returns): Update.
30919
30920 2010-04-26  Jie Zhang  <jie@codesourcery.com>
30921
30922         PR tree-optimization/43833
30923         * tree-vrp.c (range_int_cst_p): New.
30924         (range_int_cst_singleton_p): New.
30925         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
30926         when both operands are constants.  Use range_int_cst_p in
30927         BIT_IOR_EXPR case.
30928
30929 2010-04-26  Jan Hubicka  <jh@suse.cz>
30930
30931         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
30932
30933 2010-04-26  Richard Guenther  <rguenther@suse.de>
30934
30935         PR lto/43080
30936         * gimple.c (gimple_decl_printable_name): Deal gracefully
30937         with a NULL DECL_NAME.
30938
30939 2010-04-26  Richard Guenther  <rguenther@suse.de>
30940
30941         PR lto/42425
30942         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
30943         if emitting debug information and it is either a function
30944         or a namespace decl.
30945
30946 2010-04-26  Ira Rosen  <irar@il.ibm.com>
30947
30948         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
30949         determine if the statement is vectorizable, and a macro to access it.
30950         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30951         Skip statements that can't be vectorized. If the analysis fails,
30952         mark the statement as unvectorizable if vectorizing basic block.
30953         (vect_compute_data_refs_alignment): Likewise.
30954         (vect_verify_datarefs_alignment): Skip statements marked as
30955         unvectorizable. Add print.
30956         (vect_analyze_group_access): Skip statements that can't be
30957         vectorized. If the analysis fails, mark the statement as
30958         unvectorizable if vectorizing basic block.
30959         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
30960         * tree-vect-stmts.c (vectorizable_store): Fix the number of
30961         generated stmts for SLP.
30962         (new_stmt_vec_info): Initialize the new field.
30963         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
30964         statements marked as unvectorizable.
30965
30966 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
30967
30968         * c-common.c (flag_isoc1x): New.
30969         (flag_isoc99): Update comment.
30970         * c-common.h (flag_isoc1x): New.
30971         (flag_isoc99): Update comment.
30972         * c-cppbuiltin.c (builtin_define_float_constants): Also define
30973         __<type>_DECIMAL_DIG__.
30974         * c-opts.c (set_std_c1x): New.
30975         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
30976         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
30977         * c.opt (-std=c1x, -std=gnu1x): New options.
30978         * doc/cpp.texi: Mention -std=c1x.
30979         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
30980         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
30981         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
30982         * doc/standards.texi: Mention C1X.
30983         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
30984         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
30985         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
30986         Define for C1X.
30987
30988 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
30989
30990         * config/i386/gmon-sol2.c (_mcleanup): Change format string
30991         placeholder from 0x%x to %#x.
30992         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
30993         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
30994         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
30995         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
30996         * config/i386/i386.c (ix86_target_string): Ditto.
30997         (output_pic_addr_const): Ditto.
30998         (print_operand): Ditto.
30999
31000 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
31001
31002         * combine.c (find_split_point): Add third argument.  Use it
31003         to find nested multiply-accumulate instructions.  Adjust calls.
31004         (try_combine): Adjust call to find_split_point.
31005
31006 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
31007
31008         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
31009
31010 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
31011
31012         PR tree-optimization/41442
31013         * fold-const.c (merge_truthop_with_opposite_arm): New function.
31014         (fold_binary_loc): Call it.
31015
31016 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31017
31018         * toplev.c (general_init): Set default for fdiagnostics-show-option.
31019         * opts.c (common_handle_option): Allow disabling it.
31020         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
31021
31022 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
31023
31024         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
31025         between modes if both types are integral.
31026
31027 2010-04-23  Richard Guenther  <rguenther@suse.de>
31028
31029         PR tree-optimization/43572
31030         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
31031
31032 2010-04-23  Richard Guenther  <rguenther@suse.de>
31033
31034         PR lto/43455
31035         * tree-inline.c (tree_can_inline_p): Also check compatibility
31036         of return types.
31037
31038 2010-04-23  Martin Jambor  <mjambor@suse.cz>
31039
31040         PR tree-optimization/43846
31041         * tree-sra.c (struct access): New flag grp_assignment_read.
31042         (build_accesses_from_assign): Set grp_assignment_read.
31043         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
31044         (enum mark_read_status): New type.
31045         (analyze_access_subtree): Propagate grp_assignment_read, create
31046         accesses also if both direct_read and root->grp_assignment_read.
31047
31048 2010-04-23  Martin Jambor  <mjambor@suse.cz>
31049
31050         PR middle-end/43835
31051         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
31052         function does not have type attributes.
31053
31054 2010-04-23  Richard Guenther  <rguenther@suse.de>
31055
31056         PR lto/42653
31057         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
31058         of FUNCTION_DECLs.
31059
31060 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31061
31062         * sese.h (create_if_region_on_edge): Remove.
31063
31064         * sese.c (create_if_region_on_edge): Make static.
31065
31066         * tree-inline.c: Do not include ggc.h.
31067
31068         * expr.c: Do not include ggc.h.
31069
31070         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
31071         dependencies.
31072
31073 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
31074
31075         PR target/43744
31076         * config/sh/sh.c (find_barrier): Don't emit a constant pool
31077         in the middle of insns for casesi_worker_2.
31078
31079 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
31080
31081         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
31082
31083 2010-04-22  Ira Rosen  <irar@il.ibm.com>
31084
31085         PR tree-optimization/43842
31086         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
31087         loop unrolling in update of exit phis. Fix comment.
31088         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
31089         least two reduction statements in the loop before starting SLP
31090         analysis.
31091
31092 2010-04-22  Nick Clifton  <nickc@redhat.com>
31093
31094         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
31095
31096 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
31097
31098         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
31099         to simplify a + ~a.
31100
31101 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31102
31103         * tree-parloops.c (loop_parallel_p): New argument
31104         parloop_obstack.  Pass it down.
31105         (parallelize_loops): New variable parloop_obstack.  Initialize it,
31106         pass it down, free it.
31107
31108         * tree-loop-linear.c (linear_transform_loops): Pass down
31109         lambda_obstack.
31110
31111         * tree-data-ref.h (lambda_compute_access_matrices): New argument
31112         of type struct obstack *.
31113
31114         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
31115         scratch_obstack.  Initialize it, pass down, free it.
31116
31117         * lambda.h (lambda_loop_new): Remove.
31118         (lambda_matrix_new, lambda_matrix_inverse)
31119         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
31120         argument of type struct obstack *.
31121
31122         * lambda-trans.c (lambda_trans_matrix_new): New argument
31123         lambda_obstack.  Pass it down, use obstack allocation for ret.
31124         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
31125         it down.
31126
31127         * lambda-mat.c (lambda_matrix_get_column)
31128         (lambda_matrix_project_to_null): Remove.
31129         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
31130         allocation for mat.
31131         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
31132         lambda_obstack.
31133
31134         * lambda-code.c (lambda_loop_new): New function.
31135         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
31136         (lambda_compute_auxillary_space, lambda_compute_target_space)
31137         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
31138         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
31139         (build_access_matrix): New argument lambda_obstack.  Use obstack
31140         allocation for am.
31141         (lambda_compute_step_signs, lambda_compute_access_matrices): New
31142         argument lambda_obstack.  Pass it down.
31143
31144 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31145
31146         * optabs.h (expand_widening_mult): Declare.
31147
31148 2010-04-22  Richard Guenther  <rguenther@suse.de>
31149
31150         PR tree-optimization/43845
31151         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
31152         lookup the CALL_EXPR function and arguments.
31153
31154 2010-04-22  Nick Clifton  <nickc@redhat.com>
31155
31156         * config/stormy16/stormy16.c
31157         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
31158         * config/stormy16/stormy16.h: Tidy up formatting.
31159         (DONT_USE_BUILTIN_SETJMP): Remove definition.
31160         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
31161         (ineqbranchsi): Delete pattern.
31162         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
31163         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
31164         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
31165         stormy16-lib2-ucmpsi2.c.
31166
31167 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31168
31169         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
31170         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
31171         extra set merge_set_noclobber, and use it to relax the final test
31172         slightly.
31173         * df.h (df_simulate_find_noclobber_defs): Declare.
31174         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
31175         conditional defs.
31176         (df_simulate_find_noclobber_defs): New function.
31177
31178 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
31179
31180         * config/i386/i386.md: Use {} around multi-line preparation statements.
31181
31182 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
31183
31184         * c-tree.h (push_init_level, pop_init_level, set_init_index)
31185         (process_init_element): New argument of type struct obstack *.
31186
31187         * c-typeck.c (push_init_level, pop_init_level, set_designator)
31188         (set_init_index, set_init_label, set_nonincremental_init)
31189         (set_nonincremental_init_from_string, find_init_member)
31190         (output_init_element, output_pending_init_elements)
31191         (process_init_element): New argument braced_init_obstack.  Pass it
31192         down.
31193         (push_range_stack, add_pending_init): New argument
31194         braced_init_obstack.  Use obstack allocation.
31195
31196         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
31197         braced_init_obstack.  Pass it down.
31198         (c_parser_braced_init): New variables ret, braced_init_obstack.
31199         Initialize obstack, pass it down and finally free it.
31200
31201 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
31202
31203         PR middle-end/29274
31204         * tree-pass.h (pass_optimize_widening_mul): Declare.
31205         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
31206         gate_optimize_widening_mul): New static functions.
31207         (pass_optimize_widening_mul): New.
31208         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
31209         <case MULT_EXPR>: Remove support for widening multiplies.
31210         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
31211         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
31212         simplify_gen_unary rather than directly building extensions.
31213         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
31214         WIDEN_MULT_EXPR.
31215         * expmed.c (expand_widening_mult): New function.
31216         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
31217
31218 2010-04-21  Jan Hubicka  <jh@suse.cz>
31219
31220         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
31221         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
31222         * lto-wpa-fixup.c: Remove.
31223         * Makefile.in (lto-wpa-fixup.o): Remove.
31224         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
31225         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
31226         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
31227
31228 2010-04-21  Jan Hubicka  <jh@suse.cz>
31229
31230         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
31231         add write_optimization_summary, read_optimization_summary.
31232         (ipa_write_summaries_of_cgraph_node_set): Remove.
31233         (ipa_write_optimization_summaries): Declare.
31234         (ipa_read_optimization_summaries): Declare.
31235         * ipa-cp.c (pass_ipa_cp): Update.
31236         * ipa-reference.c (pass_ipa_reference): Update.
31237         * ipa-pure-const.c (pass_ipa_pure_const): Update.
31238         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
31239         Update.
31240         * ipa-inline.c (pass_ipa_inline): Update.
31241         * ipa.c (pass_ipa_whole_program): Update.
31242         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
31243         * passes.c (ipa_write_summaries_1): Do not test wpa.
31244         (ipa_write_optimization_summaries_1): New.
31245         (ipa_write_optimization_summaries): New.
31246         (ipa_read_summaries): Do not test ltrans.
31247         (ipa_read_optimization_summaries_1): New.
31248         (ipa_read_optimization_summaries): New.
31249
31250 2010-04-21  Jan Hubicka  <jh@suse.cz>
31251
31252         * lto-cgraph.c (lto_output_node): Do not output comdat groups
31253         for boundary nodes.
31254         (output_cgraph): Do not arrange comdat groups for boundary nodes.
31255
31256 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31257
31258         PR debug/40040
31259         * dwarf2out.c (add_name_and_src_coords_attributes): Add
31260         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
31261
31262 2010-04-21  Jan Hubicka  <jh@suse.cz>
31263
31264         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
31265
31266 2010-04-21  Jan Hubicka  <jh@suse.cz>
31267
31268         * varpool.c (decide_is_variable_needed): Variable is always needed
31269         during ltrans.
31270
31271 2010-04-21  Jan Hubicka  <jh@suse.cz>
31272
31273         * opts.c (decode_options): Enable pure-const pass for whopr.
31274
31275 2010-04-21  Jan Hubicka  <jh@suse.cz>
31276
31277         * cgraph.c (dump_cgraph_node): Dump also assembler name.
31278         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
31279         at WPA dumping.
31280         (cgraph_decide_inlining): Do not expect callee to be removed in all
31281         cases.
31282
31283 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
31284
31285         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
31286
31287 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
31288
31289         * config/i386/i386.md (x86_shrd): Add athlon_decode and
31290         amdfam10_decode attributes.
31291
31292 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31293
31294         PR middle-end/43570
31295         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
31296         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
31297         (lower_copyprivate_clauses): Use private var in outer
31298         context instead of original var.  Make sure the types
31299         are correct for VLAs.
31300
31301 2010-04-21  Richard Guenther  <rguenther@suse.de>
31302
31303         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
31304         to non-pointer objects.
31305
31306 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
31307
31308         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
31309         last chain entry if it starts with the still current label.
31310         (add_location_or_const_value_attribute): Check that
31311         loc_list->first->next is NULL instead of comparing ->first with ->last.
31312         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
31313         to add_var_loc_to_decl.
31314
31315         * dwarf2out.c (output_call_frame_info): For dw_cie_version
31316         >= 4 add also address size and segment size fields into CIE header.
31317
31318         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
31319         long as address size is the same as sizeof (void *) and
31320         segment size is 0.
31321         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
31322         address size or segment size is unexpected, return DW_EH_PE_omit.
31323         (classify_object_over_fdes): If get_cie_encoding returned
31324         DW_EH_PE_omit, return -1.
31325         (init_object): If classify_object_over_fdes returned -1,
31326         pretend there were no FDEs at all.
31327
31328 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
31329
31330         * config/i386/i386.md (bswap<mode>2): Macroize expander from
31331         bswap{si,di}2 using SWI48 mode iterator.
31332         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
31333         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
31334         set modrm attribute of bswap insn to 0 and remove length attribute.
31335         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
31336         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
31337         set mode attribute to <MODE> and remove length attribute.
31338
31339 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
31340
31341         PR rtl-optimization/43520
31342         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
31343         zero available registers.
31344
31345 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31346
31347         * builtins.c (fold_builtin_cproj): Fold more cases.
31348
31349 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
31350
31351         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
31352         (fold_builtin_1): Fold builtin cproj.
31353         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
31354         Use ATTR_CONST_NOTHROW_LIST.
31355
31356 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
31357
31358         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
31359         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
31360         ffsi2_no_cmove for !TARGET_CMOVE.
31361         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
31362         (ffssi2): Remove expander.
31363         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
31364         mode iterator.
31365         (ctz<mode>2): Ditto from ctz{si,di}2.
31366         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
31367         mode iterator.
31368         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
31369         mode iterator.
31370
31371 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
31372
31373         * dwarf2out.c (AT_linkage_name): Define.
31374         (clone_as_declaration): Handle DW_AT_linkage_name.
31375         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
31376         of DW_AT_MIPS_linkage_name.
31377         (move_linkage_attr): Likewise.
31378         (dwarf2out_finish): Likewise.
31379
31380 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
31381
31382         PR middle-end/41952
31383         * fold-const.c (fold_comparison): New folding rule.
31384
31385 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
31386
31387         * double-int.h (double_int_setbit): Declare.
31388         * double-int.c (double_int_setbit): New function.
31389         * rtl.h (immed_double_int_const): Declare.
31390         * emit-rtl.c (immed_double_int_const): New function.
31391         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
31392         and immed_double_int_const functions.
31393         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
31394         expand_copysign_bit): (Ditto.).
31395         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
31396         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
31397         * dojump.c (prefer_and_bit_test): (Ditto.).
31398         * expr.c (convert_modes, reduce_to_bit_field_precision,
31399         const_vector_from_tree): (Ditto.).
31400         * expmed.c (mask_rtx, lshift_value): (Ditto.).
31401
31402 2010-04-20  Jan Hubicka  <jh@suse.cz>
31403
31404         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
31405         (dump_cgraph_node): Dump new flags.
31406         * cgraph.h (struct cgraph_node): Add flags
31407         reachable_from_other_partition and in_other_partition.
31408         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
31409         other partition can not be removed.
31410         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
31411         the other partition must be output; silence sanity checking on
31412         leaking functions bodies from other paritition.
31413         * lto-cgraph.c (reachable_from_other_partition_p): New function.
31414         (lto_output_node): Output new flags; do not sanity check that inline
31415         clones are output; drop lto_forced_extern_inline_p code; do not mock
31416         visibility flags at partition boundaries.
31417         (add_node_to): New function.
31418         (output_cgraph): Use it to sort functions so masters appear before
31419         clones.
31420         (input_overwrite_node): Input new flags.
31421         * passes.c (ipa_write_summaries): Do not call
31422         lto_new_extern_inline_states.
31423         * lto-section-out.c (forced_extern_inline,
31424         lto_new_extern_inline_states lto_delete_extern_inline_states,
31425         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
31426         * lto-streamer.h (lto_new_extern_inline_states,
31427         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
31428         lto_forced_extern_inline_p): Kill.
31429
31430 2010-04-20  Richard Guenther  <rguenther@suse.de>
31431
31432         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
31433         from vars that can have pointers.
31434         (process_constraint): Dump useless constraints.
31435
31436 2010-04-20  Richard Guenther  <rguenther@suse.de>
31437
31438         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
31439         (dump_sa_points_to_info): Remove asserts.
31440         (init_base_vars): nothing_id isn't an escape point nor does it
31441         have pointers.
31442
31443 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
31444
31445         * tree.h (TYPE_REF_IS_RVALUE): Define.
31446         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
31447         should_move_die_to_comdat, prune_unused_types_walk): Handle
31448         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
31449         (modified_type_die, gen_reference_type_die): Emit
31450         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
31451         if TYPE_REF_IS_RVALUE and -gdwarf-4.
31452
31453 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31454
31455         PR target/43635
31456         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
31457         calls for -fpic -m31 if they have been sibcall optimized.
31458
31459 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
31460
31461         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
31462         ar.lc fixed and call-used.
31463
31464         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
31465
31466 2010-04-19  Jan Hubicka  <jh@suse.cz>
31467
31468         * opts.c (decode_options): Disable whpr incompatible passes.
31469         * lto/lto.c (lto_1_to_1_map): Skip clones.
31470         (read_cgraph_and_symbols): Do not mark everything as needed.
31471         (do_whole_program_analysis): Do map only after optimizing;
31472         set proper cgraph_state; use passmanager.
31473
31474 2010-04-19  DJ Delorie  <dj@redhat.com>
31475
31476         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
31477         POINTER_PLUS_EXPR and fix them.
31478
31479 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
31480
31481         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
31482         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
31483         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
31484         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
31485         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
31486         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
31487         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
31488         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
31489         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
31490         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
31491         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
31492
31493 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
31494
31495         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
31496         (check_cond_move_block): Likewise.
31497         (cond_move_process_if_block): Likewise.
31498         (noce_find_if_block): Improve formatting.
31499         (find_if_header): Pass 0 to memset and tweak conditions.
31500         (cond_exec_find_if_block): Fix long lines and tweak conditions.
31501
31502 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
31503
31504         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
31505         for -gdwarf-4.
31506
31507         PR middle-end/43337
31508         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
31509         with non-local decl doesn't need chain.
31510
31511 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
31512
31513         * ira-color.c (allocno_reload_assign): Avoid accumulating
31514         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
31515
31516 2010-04-19  Martin Jambor  <mjambor@suse.cz>
31517
31518         * gimple.h (create_tmp_reg): Declare.
31519         * gimplify.c (create_tmp_reg): New function.
31520         (gimplify_return_expr): Use create_tmp_reg.
31521         (gimplify_omp_atomic): Likewise.
31522         (gimple_regimplify_operands): Likewise.
31523         * tree-dfa.c (make_rename_temp): Likewise.
31524         * tree-predcom.c (predcom_tmp_var): Likewise.
31525         (reassociate_to_the_same_stmt): Likewise.
31526         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
31527         (get_replaced_param_substitute): Likewise.
31528         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
31529         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
31530         * tree-ssa-pre.c (get_representative_for): Likewise.
31531         (create_expression_by_pieces): Likewise.
31532         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
31533         (create_tailcall_accumulator): Likewise.
31534
31535 2010-04-19  Martin Jambor  <mjambor@suse.cz>
31536
31537         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
31538         new_stmt.
31539         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
31540
31541 2010-04-19  Richard Guenther  <rguenther@suse.de>
31542
31543         PR tree-optimization/43796
31544         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
31545         from SCEV in the lattice.
31546         (vrp_visit_phi_node): Dump change.
31547
31548 2010-04-19  Richard Guenther  <rguenther@suse.de>
31549
31550         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
31551         * configure: Re-generated.
31552
31553 2010-04-19  Richard Guenther  <rguenther@suse.de>
31554
31555         PR tree-optimization/43783
31556         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
31557         constant ARRAY_REF operands two and three if possible.
31558
31559 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
31560
31561         PR target/43766
31562         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
31563
31564 2010-04-19  Jie Zhang  <jie@codesourcery.com>
31565
31566         PR target/43662
31567         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
31568
31569 2010-04-19  Ira Rosen  <irar@il.ibm.com>
31570
31571         PR tree-optimization/37027
31572         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
31573         and macro to access it.
31574         (vectorizable_reduction): Add argument.
31575         (vect_get_slp_defs): Likewise.
31576         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
31577         statements for possible use in SLP.
31578         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
31579         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
31580         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
31581         add new argument.
31582         (vectorizable_reduction): Likewise.
31583         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
31584         vect_get_slp_defs.
31585         (vectorizable_type_demotion, vectorizable_type_promotion,
31586         vectorizable_store): Likewise.
31587         (vect_analyze_stmt): Update call to vectorizable_reduction.
31588         (vect_transform_stmt): Likewise.
31589         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
31590         (vect_build_slp_tree): Fix indentation. Check that there are no loads
31591         from different interleaving chains in same node.
31592         (vect_slp_rearrange_stmts): New function.
31593         (vect_supported_load_permutation_p): Allow load permutations for
31594         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
31595         inside SLP nodes if necessary.
31596         (vect_analyze_slp_instance): Handle reductions.
31597         (vect_analyze_slp): Try to build SLP instances originating from groups
31598         of reductions.
31599         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
31600         (vect_get_constant_vectors): Create initial vectors for reductions
31601         according to reduction code. Add new argument.
31602         (vect_get_slp_defs): Add new argument, pass it to
31603         vect_get_constant_vectors.
31604         (vect_schedule_slp_instance): Remove SLP tree root statements.
31605
31606 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
31607
31608         * tree.h (ENUM_IS_SCOPED): Define.
31609         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
31610         for ENUM_IS_SCOPED enums.
31611
31612 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
31613
31614         * fold-const.c (fold_comparison): Use ssizetype.
31615         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
31616         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
31617         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
31618         * tree-object-size.c (compute_object_sizes): Use size_type_node.
31619
31620         * tree.h (initialize_sizetypes): Remove parameter.
31621         (build_common_tree_nodes): Remove second parameter.
31622         * stor-layout.c (initialize_sizetypes): Remove parameter.
31623         Always create an unsigned type.
31624         (set_sizetype): Assert that the passed type is unsigned and simplify.
31625         * tree.c (build_common_tree_nodes): Remove second parameter.
31626         Adjust call to initialize_sizetypes.
31627         * c-decl.c (c_init_decl_processing): Remove second argument in call to
31628         build_common_tree_nodes.
31629
31630 2010-04-18  Matthias Klose  <doko@ubuntu.com>
31631
31632         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
31633
31634 2010-04-18  Ira Rosen  <irar@il.ibm.com>
31635
31636         PR tree-optimization/43771
31637         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
31638         load permutation doesn't have gaps.
31639
31640 2010-04-18  Jan Hubicka  <jh@suse.cz>
31641
31642         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
31643         (sse_prologue_save_insn expander): Use new pattern.
31644         (sse_prologue_save_insn1): New pattern and splitter.
31645         (sse_prologue_save_insn): Update to deal also with 64bit aligned
31646         blocks.
31647         * i386.c (setup_incoming_varargs_64): Do not compute jump
31648         destination here.
31649         (ix86_gimplify_va_arg): Update alignment needed.
31650         (ix86_local_alignment): Do not align all local arrays to 128bit.
31651
31652 2010-04-17  Jan Hubicka  <jh@suse.cz>
31653
31654         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
31655
31656 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
31657
31658         * arm.md (negdi2): Remove redundant code to force values into a
31659         register.
31660
31661 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
31662
31663         * arm/bpabi.S: Add EABI alignment attributes to objects.
31664         * arm/bpabi-v6m.S: Likewise.
31665         * arm/crti.asm: Likewise.
31666         * arm/crtn.asm: Likewise.
31667         * arm/lib1funcs.asm: Likewise.
31668         * arm/libunwind.S: Likewise.
31669
31670 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
31671
31672         * arm-protos.h (tune_params): New structure.
31673         * arm.c (current_tune): New variable.
31674         (arm_constant_limit): Delete.
31675         (struct processors): Add pointer to the tune parameters.
31676         (arm_slowmul_tune): New tuning option.
31677         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
31678         (all_cores): Adjust to pick up the tuning model.
31679         (arm_constant_limit): New function.
31680         (arm_override_options): Select the appropriate tuning model.  Delete
31681         initialization of arm_const_limit.
31682         (arm_split_constant): Use the new constant-limit model.
31683         (arm_rtx_costs): Pick up the current tuning model.
31684         * arm.md (is_strongarm, is_xscale): Delete.
31685         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
31686         for Xscale variant architectures.
31687         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
31688
31689 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31690
31691         * config/arm/arm.c (arm_gen_constant): Remove unused variable
31692         can_shift.
31693         (arm_rtx_costs_1): Remove unused variable extra_cost.
31694         (arm_unwind_emit_set): Use variable offset.
31695         (thumb1_output_casesi): Remove unused variable flags.
31696
31697 2010-04-16  Jeff Law  <law@redhat.com>
31698
31699         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
31700         needing assignment rather than doing a two-phase assignment.  Remove
31701         unused variable 'm'.
31702
31703 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
31704
31705         PR bootstrap/43767
31706         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
31707
31708 2010-04-16  Doug Kwan  <dougkwan@google.com>
31709
31710         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
31711         (next_operand_entry_id): New static variable.
31712         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
31713         (add_to_ops_vec): Assigned unique ID to operand entry.
31714         (struct oecount_s): New field ID.
31715         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
31716         (undistribute_ops_list): Assign unique IDs to oecounts.
31717         (init_reassoc): reset next_operand_entry_id.
31718
31719 2010-04-16  Doug Kwan  <dougkwan@google.com>
31720
31721         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
31722         missing left parenthesis.
31723
31724 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
31725
31726         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
31727         *btdi_rex64 using SWI48 mode iterator.
31728         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
31729         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
31730         *jcc_btdi_mask_rex64.
31731
31732 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
31733
31734         * double-int.h (tree_to_double_int): Convert to macro.
31735         * double-int.c (tree_to_double_int): Remove.
31736
31737 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
31738
31739         PR debug/43762
31740         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
31741         with want_address 2 and in case a single element list might be
31742         possible, call it again with want_address 0.
31743
31744 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
31745
31746         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
31747         case 'W' print operands for HI mode.
31748         * config/h8300/h8300.h (Y0, Y2) : New constraints.
31749         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
31750         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
31751         * config/h8300/predicate.md (bit_register_indirect_operand): New.
31752
31753         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
31754
31755         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
31756         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
31757         #xx:3 and #xx:4 mode.
31758
31759         * config/h8300/h8300.md (inverted load with HImode dest): Add
31760         support for H8300SX.
31761
31762         * config/h8300/predicate.md (bit_operand): Allow immediate values that
31763         satisfy 'U' constraint.
31764
31765 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31766
31767         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
31768         * configure: Regenerate.
31769         * config.in: Regenerate.
31770         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
31771         works.
31772
31773 2010-04-16  Richard Guenther  <rguenther@suse.de>
31774
31775         * tree.h (struct tree_decl_minimal): Move pt_uid ...
31776         (struct tree_decl_common): ... here.
31777         (DECL_PT_UID): Adjust.
31778         (SET_DECL_PT_UID): Likewise.
31779         (DECL_PT_UID_SET_P): Likewise.
31780
31781 2010-04-16  Richard Guenther  <rguenther@suse.de>
31782
31783         PR tree-optimization/43572
31784         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
31785         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
31786         * tree-flow.h (is_call_clobbered): Remove.
31787         * tree-flow-inline.h (is_call_clobbered): Likewise.
31788         * tree-dfa.c (dump_variable): Do not dump call clobber state.
31789         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
31790         (execute_return_slot_opt): Adjust.
31791         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
31792         check for call clobbered vars here.
31793         (find_tail_calls): Move tailcall verification to the
31794         proper place.
31795
31796 2010-04-16  Diego Novillo  <dnovillo@google.com>
31797
31798         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
31799
31800 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
31801
31802         PR target/40603
31803         * config/arm/arm.md (cbranchqi4): New pattern.
31804         * config/arm/predicates.md (const0_operand,
31805         cbranchqi4_comparison_operator): New predicates.
31806
31807 2010-04-16  Richard Guenther  <rguenther@suse.de>
31808
31809         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
31810         (dump_gimple_stmt): Likewise.
31811
31812 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
31813
31814         * recog.h (struct recog_data): New field is_operator.
31815         (struct insn_operand_data): New field is_operator.
31816         * recog.c (extract_insn): Set recog_data.is_operator.
31817         * genoutput.c (output_operand_data): Emit code to set the
31818         is_operator field.
31819         * reload.c (find_reloads): Use it rather than testing for an
31820         empty constraint string.
31821
31822         PR target/41514
31823         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
31824         If the previous insn is a cbranchsi4_insn with the same arguments,
31825         omit the compare instruction.
31826
31827         * config/arm/arm.md (addsi3_cbranch): If destination is a high
31828         register, inputs must be low registers and we need a low register
31829         scratch.  Handle alternative 2 like alternative 3.
31830
31831 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
31832
31833         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
31834         don't call get_addr on both.  If one expression is a VALUE and
31835         the other a REG, check VALUE's locs if the REG isn't among them.
31836
31837 2010-04-16  Christian Bruel  <christian.bruel@st.com>
31838
31839         * config/sh/sh.h (sh_frame_pointer_required): New function.
31840         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
31841         (flag_omit_frame_pointer) Set.
31842         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
31843         (rounded_frame_size): Adjust size with outgoing_args_size.
31844         (sh_set_return_address): Must return from stack pointer.
31845         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
31846         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
31847         (ACCUMULATE_OUTGOING_ARGS): Define.
31848         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
31849         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
31850
31851 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
31852
31853         PR target/43471
31854         * config/sh/sh.c (sh_legitimize_reload_address): Use
31855         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
31856         Remove a unneeded check for offset_base.
31857
31858 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
31859
31860         * configure: Regenerated.
31861
31862 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31863
31864         * config/s390/s390.c (s390_call_save_register_used): Switch back
31865         to HARD_REGNO_NREGS.
31866
31867 2010-04-15  Richard Guenther  <rguenther@suse.de>
31868
31869         * alias.c (alias_set_subset_of): Handle alias-set zero
31870         child properly.
31871
31872 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
31873             Julian Brown  <julian@codesourcery.com>
31874
31875         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
31876         alternatives according to use of high and low regs.
31877         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
31878         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
31879         optimizing for size on Thumb-2.
31880
31881 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
31882
31883         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
31884
31885 2010-04-15  Richard Guenther  <rguenther@suse.de>
31886
31887         * tree-ssa-structalias.c (struct variable_info): Add
31888         is_fn_info flag.
31889         (new_var_info): Initialize it.
31890         (dump_constraints): Support printing last added constraints.
31891         (debug_constraints): Adjust.
31892         (dump_constraint_graph): Likewise.
31893         (make_heapvar_for): Check for NULL cfun.
31894         (get_function_part_constraint): New function.
31895         (get_fi_for_callee): Likewise.
31896         (find_func_aliases): Properly implement IPA PTA constraints.
31897         (process_ipa_clobber): New function.
31898         (find_func_clobbers): Likewise.
31899         (insert_into_field_list_sorted): Remove.
31900         (create_function_info_for): Properly allocate vars for IPA mode.
31901         Do not use insert_into_field_list_sorted.
31902         (create_variable_info_for): Properly generate constraints for
31903         global vars in IPA mode.
31904         (dump_solution_for_var): Always dump the solution.
31905         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
31906         (find_what_var_points_to): Adjust.
31907         (pt_solution_set): Change.
31908         (pt_solution_ior_into): New function.
31909         (pt_solution_empty_p): Export.
31910         (pt_solution_includes_global): Adjust.
31911         (pt_solution_includes_1): Likewise.
31912         (pt_solutions_intersect_1): Likewise.
31913         (dump_sa_points_to_info): Check some invariants.
31914         (solve_constraints): Move constraint dumping ...
31915         (compute_points_to_sets): ... here.
31916         (ipa_pta_execute): ... and here.
31917         (compute_may_aliases): Do not re-compute points-to info
31918         locally if IPA info is available.
31919         (ipa_escaped_pt): New global var.
31920         (ipa_pta_execute): Properly implement IPA PTA.
31921         * tree-into-ssa.c (dump_decl_set): Support dumping
31922         decls not in referenced-vars.
31923         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
31924         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
31925         (dump_points_to_solution): Likewise.
31926         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
31927         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
31928         (remap_gimple_stmt): Reset call clobber/use information if necessary.
31929         (copy_decl_to_var): Copy DECL_PT_UID.
31930         (copy_result_decl_to_var): Likewise.
31931         * tree.c (make_node_stat): Initialize DECL_PT_UID.
31932         (copy_node_stat): Copy it.
31933         * tree.h (DECL_PT_UID): New macro.
31934         (SET_DECL_PT_UID): Likewise.
31935         (DECL_PT_UID_SET_P): Likewise.
31936         (struct tree_decl_minimal): Add pt_uid member.
31937         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
31938         (pt_solution_empty_p): Declare.
31939         (pt_solution_set): Adjust.
31940         (ipa_escaped_pt): Declare.
31941         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
31942         * gimple-pretty-print.c (pp_points_to_solution): New function.
31943         (dump_gimple_call): Dump call clobber/use information.
31944         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
31945         * tree-pass.h (TDF_ALIAS): New dump option.
31946         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
31947         * doc/invoke.texi (-fipa-pta): Update documentation.
31948
31949 2010-04-15  Richard Guenther  <rguenther@suse.de>
31950
31951         * Makefile.in (OBJS-common): Add gimple-fold.o.
31952         (gimple-fold.o): New rule.
31953         * tree.h (maybe_fold_offset_to_reference,
31954         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
31955         prototypes ...
31956         * gimple.h: ... here.
31957         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
31958         may_propagate_address_into_dereference): Move prototypes ...
31959         * gimple.h: ... here.
31960         * tree-ssa-ccp.c (get_symbol_constant_value,
31961         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
31962         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
31963         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
31964         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
31965         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
31966         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
31967         gimplify_and_update_call_from_tree): Move ...
31968         * gimple-fold.c: ... here.  New file.
31969         (ccp_fold_builtin): Rename to ...
31970         (gimple_fold_builtin): ... this.
31971         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
31972
31973 2010-04-15  Richard Guenther  <rguenther@suse.de>
31974
31975         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
31976         fit_double_type, force_fit_type_double, add_double_with_sign,
31977         neg_double, mul_double_with_sign, lshift_double, rshift_double,
31978         lrotate_double, rrotate_double, div_and_round_double): Move ...
31979         * double-int.c: ... here.
31980         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
31981         add_double, neg_double, mul_double_with_sign, mul_double,
31982         lshift_double, rshift_double, lrotate_double, rrotate_double,
31983         div_and_round_double): Move prototypes ...
31984         * double-int.h: ... here.
31985
31986 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
31987
31988         PR target/43742
31989         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
31990         matching constraints to ensure inputs match the output.
31991
31992 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
31993
31994         PR target/43742
31995         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
31996         in an input-only operand.
31997
31998 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
31999
32000         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
32001         (double_int_not, double_int_lshift, double_int_rshift): Declare.
32002         (double_int_negative_p): Convert to static inline function.
32003         * double-int.c (double_int_lshift, double_int_lshift): New functions.
32004         (double_int_negative_p): Remove.
32005         * tree.h (lshift_double, rshift_double):
32006         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
32007         * fold-const.c (fold_convert_const_int_from_real,
32008         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
32009         (lshift_double): Change type of arith argument to bool.
32010         (rshift_double): Change type of arith argument to bool. Correct
32011         comment.
32012         * expmed.c (mask_rtx, lshift_value): (Ditto.).
32013
32014 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
32015
32016         PR target/21803
32017         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
32018         at the start and end of the then/else blocks, and omit them from the
32019         conversion.
32020         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
32021         argument; all callers changed.  Pass zero to old_insns_match_p instead.
32022         (flow_find_head_matching_sequence): New function.
32023         (old_insns_match_p): Check REG_EH_REGION notes for calls.
32024         * basic-block.h (flow_find_cross_jump,
32025         flow_find_head_matching_sequence): Declare functions.
32026
32027 2010-04-14  Jason Merrill  <jason@redhat.com>
32028
32029         PR c++/36625
32030         * c-common.c (attribute_takes_identifier_p): New fn.
32031         * c-common.h: Declare it.
32032
32033 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32034
32035         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
32036         splitter condition.
32037         (*udivmod<mode>4): Ditto.
32038
32039 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32040
32041         * config/i386/i386.md (maxmin_int): Rename code attribute from
32042         maxminiprefix and update all users.
32043         (maxmin_float): Ditto from maxminfprefix.
32044         (logic): Ditto from logicprefix.
32045         (absneg_mnemonic): Ditto from absnegprefix.
32046         * config/i386/mmx.md: Update all users of maxminiprefix,
32047         maxminfprefix and logicprefix for rename.
32048         * config/i386/sse.md: Ditto.
32049         * config/i386/sync.md (sync_<code><mode>): Update for
32050         logicprefix rename.
32051
32052 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32053
32054         PR 42966
32055         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
32056         warnings converted to errors.
32057
32058 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32059
32060         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
32061         used insn_type variable.
32062         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
32063         to avoid set-but-not-used warning.
32064
32065 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32066
32067         * df-core.c (df_ref_debug): Change format string placeholder
32068         from 0x%x to %#x.
32069         * dwarf2asm.c (dw2_asm_output_data_raw,
32070         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
32071         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
32072         * dwarf2out.c (output_cfi, output_cfi_directive,
32073         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
32074         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
32075         Ditto.
32076         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
32077         * print-rtl.c (print_rtx): Ditto.
32078
32079 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
32080
32081         PR middle-end/42694
32082         * builtins.c (expand_builtin_pow_root): New function to expand pow
32083         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
32084         series of sqrt and cbrt calls under -ffast-math.
32085         (expand_builtin_pow): Call it.
32086
32087 2010-04-14  Michael Matz  <matz@suse.de>
32088
32089         PR tree-optimization/42963
32090         * tree-cfg.c (touched_switch_bbs): New static variable.
32091         (group_case_labels_stmt): New function broken out from ...
32092         (group_case_labels): ... here, use the above.
32093         (start_recording_case_labels): Allocate touched_switch_bbs.
32094         (end_recording_case_labels): Deallocate it, call
32095         group_case_labels_stmt.
32096         (gimple_redirect_edge_and_branch): Remember index of affected BB.
32097
32098 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32099
32100         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
32101         from insn template.
32102
32103 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
32104
32105         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
32106
32107 2010-04-13  Jan Hubicka  <jh@suse.cz>
32108
32109         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
32110         of optimized out static functions.
32111         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
32112         cost computation.  Also sanity check for overflows.
32113         (update_caller_keys): Update cgraph_edge_badness call; properly
32114         update fibheap and sanity check that it is up to date.
32115         (add_new_edges_to_heap): Update cgraph_edge_badness.
32116         (cgraph_decide_inlining_of_small_function): Likewise;
32117         add sanity checking that badness in heap is up to date;
32118         improve dumping of reason; Update badness of calls to the
32119         offline copy of function currently inlined; dump badness
32120         of functions not inlined because of unit growth limits.
32121
32122 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
32123
32124         PR middle-end/32628
32125         * c-common.c (pointer_int_sum): Disregard overflow that occured only
32126         because of sign-extension change when converting to sizetype here...
32127         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
32128
32129         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
32130         the folding to constants.  Remove redundant final conversion.
32131         (fold_binary) <associate>: Do not associate if the re-association of
32132         constants alone overflows.
32133         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
32134         to the end of the list.
32135         (multiple_of_p) <COND_EXPR>: New case.
32136
32137 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32138
32139         * opt-functions.awk (opt_sanitized_name): New.
32140         (opt_enum): New.
32141         * optc-gen.awk: Use it
32142         * opth-gen.awk: Use it.
32143
32144 2010-04-13  Martin Jambor  <mjambor@suse.cz>
32145
32146         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
32147         (sra_modify_assign): Delete stmts loading dead data even if racc has no
32148         children.  Call replace_uses_with_default_def_ssa_name to handle
32149         SSA_NAES on lhs.
32150
32151 2010-04-13  Michael Matz  <matz@suse.de>
32152
32153         PR middle-end/43730
32154         * builtins.c (expand_builtin_interclass_mathfn): Also create
32155         a register if the predicate doesn't match.
32156
32157 2010-04-13  Diego Novillo  <dnovillo@google.com>
32158
32159         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
32160         * c-pch.c: Include timevar.h.
32161         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
32162         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
32163         * ggc-common.c: Include timevar.h.
32164         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
32165         * timevar.def (TV_PCH_SAVE): Define.
32166         (TV_PCH_CPP_SAVE): Define.
32167         (TV_PCH_PTR_REALLOC): Define.
32168         (TV_PCH_PTR_SORT): Define.
32169         (TV_PCH_RESTORE): Define.
32170         (TV_PCH_CPP_RESTORE): Define.
32171
32172 2010-04-13  Michael Matz  <matz@suse.de>
32173
32174         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
32175         into MINUS_EXPRs.
32176         (can_reassociate_p): New function.
32177         (break_up_subtract_bb, reassociate_bb): Use it.
32178
32179 2010-04-13  Richard Guenther  <rguenther@suse.de>
32180
32181         PR bootstrap/43737
32182         * builtins.c (c_readstr): Fix assert.
32183
32184 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
32185
32186         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
32187         when generating cltd insn.
32188
32189         (*ashl<mode>3_1): Remove special handling for register operand 2.
32190         (*ashlsi3_1_zext): Ditto.
32191         (*ashlhi3_1): Ditto.
32192         (*ashlhi3_1_lea): Ditto.
32193         (*ashlqi3_1): Ditto.
32194         (*ashlqi3_1_lea): Ditto.
32195         (*<shiftrt_insn><mode>3_1): Ditto.
32196         (*<shiftrt_insn>si3_1_zext): Ditto.
32197         (*<shiftrt_insn>qi3_1_slp): Ditto.
32198         (*<rotate_insn><mode>3_1): Ditto.
32199         (*<rotate_insn>si3_1_zext): Ditto.
32200         (*<rotate_insn>qi3_1_slp): Ditto.
32201
32202 2010-04-13  Richard Guenther  <rguenther@suse.de>
32203
32204         * tree-ssa-structalias.c (callused_id): Remove.
32205         (call_stmt_vars): New.
32206         (get_call_vi): Likewise.
32207         (lookup_call_use_vi): Likewise.
32208         (lookup_call_clobber_vi): Likewise.
32209         (get_call_use_vi): Likewise.
32210         (get_call_clobber_vi): Likewise.
32211         (make_transitive_closure_constraints): Likewise.
32212         (handle_const_call): Adjust to do per-call call-used handling.
32213         (handle_pure_call): Likewise.
32214         (find_what_var_points_to): Remove general callused handling.
32215         (init_base_vars): Likewise.
32216         (init_alias_vars): Initialize call_stmt_vars.
32217         (compute_points_to_sets): Process call-used and call-clobbered
32218         vars for call statements.
32219         (delete_points_to_sets): Free call_stmt_vars.
32220
32221 2010-04-13  Richard Guenther  <rguenther@suse.de>
32222
32223         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
32224         Only add RW dependence for dependence distance zero.
32225         Adjust maximal vectorization factor according to dependences.
32226         Move alignment handling ...
32227         (vect_find_same_alignment_drs): ... here.  New function.
32228         (vect_analyze_data_ref_dependences): Adjust.
32229         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
32230         (vect_analyze_data_refs): Adjust minimal vectorization factor
32231         according to data references.
32232         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
32233         dependences before determining the vectorization factor.
32234         Analyze alignment after determining the vectorization factor.
32235         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
32236         dependences before alignment.
32237         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
32238         Adjust prototype.
32239         (vect_analyze_data_refs): Likewise.
32240         (MAX_VECTORIZATION_FACTOR): New define.
32241
32242 2010-04-13  Duncan Sands  <baldrick@free.fr>
32243
32244         * except.h (lang_eh_type_covers): Remove.
32245         * except.c (lang_eh_type_covers): Likewise.
32246
32247 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32248             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32249
32250         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
32251         * config/s390/s390.c: Replace UNTIS_PER_WORD with
32252         UNITS_PER_LONG where it is ABI relevant.
32253         (s390_return_addr_rtx): Likewise.
32254         (s390_back_chain_rtx): Likewise.
32255         (s390_frame_area): Likewise.
32256         (s390_frame_info): Likewise.
32257         (s390_initial_elimination_offset): Likewise.
32258         (save_gprs): Likewise.
32259         (s390_emit_prologue): Likewise.
32260         (s390_emit_epilogue): Likewise.
32261         (s390_function_arg_advance): Likewise.
32262         (s390_function_arg): Likewise.
32263         (s390_va_start): Likewise.
32264         (s390_gimplify_va_arg): Likewise.
32265         (s390_function_profiler): Likewise.
32266         (s390_optimize_prologue): Likewise.
32267         (s390_rtx_costs): Likewise.
32268         (s390_secondary_reload): Likewise.
32269         (s390_promote_function_mode): Likewise.
32270         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
32271         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
32272         registers available.
32273         (s390_unwind_word_mode): New function.
32274         (s390_function_value): Split 64 bit values into register pair if
32275         used as return value.
32276         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
32277         function call parameters.  Handle parallels.
32278         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
32279         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
32280         (DWARF_CIE_DATA_ALIGNMENT): New macro.
32281         (s390_expand_setmem): Remove unused variable src_addr.
32282         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
32283         deal with 64 bit registers.
32284         * config/s390/s390.h: Define __zarch__ predefined macro.
32285         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
32286         (UNITS_PER_LONG): New macro.
32287         * libjava/include/s390-signal.h: Define extended ucontext
32288         structure containing the upper halfs of the 64 bit registers.
32289
32290 2010-04-13  Simon Baldwin  <simonb@google.com>
32291
32292         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
32293
32294 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
32295
32296         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
32297         rvalue on the RHS if the LHS is of a non-renamable type.
32298         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
32299
32300 2010-04-13  Matthias Klose  <doko@ubuntu.com>
32301
32302         * gcc.c (cc1_options): Handle -iplugindir before processing
32303         the cc1 spec. Only add -iplugindir once.
32304         (cpp_unique_options): Add -iplugindir option if -fplugin* options
32305         found.
32306         * common.opt (iplugindir): Remove `Separate' property, initialize.
32307         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
32308         option.
32309         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
32310         (distclean): Remove plugin dir.
32311         * doc/invoke.texi: Document -iplugindir.
32312
32313 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
32314
32315         * doc/plugins.texi (Loading Plugins): Document short
32316         -fplugin=foo option.
32317         (Plugin API): Mention default_plugin_dir_name function.
32318
32319         * gcc.c (find_file_spec_function): Add new declaration.
32320         (static_spec_func): Use it for "find-file".
32321         (find_file_spec_function): Add new function.
32322         (cc1_options): Add -iplugindir option if -fplugin* options found.
32323
32324         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
32325
32326         * plugin.c (add_new_plugin): Updated comment, and handle short
32327         plugin name.
32328         (default_plugin_dir_name): Added new function.
32329
32330         * common.opt (iplugindir): New option to set the plugin directory.
32331
32332 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
32333
32334         * config/i386/i386.md (any_rotate): New code iterator.
32335         (rotate_insn): New code attribute.
32336         (rotate): Ditto.
32337         (SWIM124): New mode iterator.
32338         (<rotate_insn>ti3): New expander.
32339         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
32340         any_rotate code iterator.
32341         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
32342         using any_rotate code iterator and SWIM124 mode iterator.
32343         (ix86_rotlti3): New insn_and_split pattern.
32344         (ix86_rotrti3): Ditto.
32345         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
32346         ix86_rotl{di,ti}3 patterns.
32347         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
32348         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
32349         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
32350         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
32351         code iterator and SWI mode iterator.
32352         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
32353         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
32354         code iterator.
32355         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
32356         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
32357         (bswap rotatert splitter): Add splitter.
32358         (bswap splitter): Macroize splitter using any_rotate code iterator.
32359         Add insn predicate to split only for TARGET_USE_XCHGB or when
32360         optimizing function for size.
32361
32362 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
32363
32364         * config/pa/pa.c (emit_move_sequence): Remove use of
32365         deleted variable flag_argument_noalias.
32366
32367 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32368
32369         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
32370         configurations.
32371         Add to unsupported targets list.
32372         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
32373         sparc*-sun-solaris2.[567]* from target lists.
32374         * configure: Regenerate.
32375         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
32376         removal.
32377         Remove Solaris 7 patch references.
32378         (Specific, sparc-sun-solaris2.7): Removed.
32379         (sparc-sun-solaris2*): Update Solaris 7 example.
32380         (sparc64-*-solaris2*): Likewise.
32381
32382 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32383
32384         * config.build (alpha*-dec-osf4*): Remove.
32385         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
32386         of obsolete configurations.
32387         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
32388         support.
32389         * config/alpha/t-osf4: Renamed to ...
32390         * config/alpha/t-osf5: ... this.
32391         * config/alpha/osf.h: Renamed to ...
32392         * config/alpha/osf5.h: ... this.
32393         Merged old osf5.h contents.
32394         Update comments.
32395         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
32396         (EXTRA_SPECS): Removed.
32397         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
32398         reflect removal of Tru64 UNIX V4.0/V5.0 support.
32399         Document that.
32400
32401 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32402
32403         * doc/contrib.texi (Contributors, Rainer Orth): Update.
32404
32405 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
32406
32407         PR/43702
32408         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
32409         __thiscall convention.
32410
32411 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
32412
32413         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
32414         orig_base.
32415         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
32416
32417 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
32418
32419         * function.c (assign_parms_initialize_all): Add unused attribute
32420         to fntype.
32421
32422 2010-04-12  Richard Guenther  <rguenther@suse.de>
32423
32424         * gsstruct.def (GSS_CALL): New.
32425         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
32426         * gimple.h: Include tree-ssa-alias.h.
32427         (struct gimple_statement_call): New.
32428         (union gimple_statement_struct_d): Add gimple_call member.
32429         (gimple_call_reset_alias_info): Declare.
32430         (gimple_call_use_set): New function.
32431         (gimple_call_clobber_set): Likewise.
32432         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
32433         * gimple.c (gimple_call_reset_alias_info): New function.
32434         (gimple_build_call_1): Call it.
32435         * lto-streamer-in.c (input_gimple_stmt): Likewise.
32436         * tree-inline.c (remap_gimple_stmt): Likewise.
32437         (expand_call_inline): Remove callused handling.
32438         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
32439         * tree-dfa.c (dump_variable): Likewise.
32440         * tree-parloops.c (parallelize_loops): Likewise.
32441         * tree-ssa.c (init_tree_ssa): Likewise.
32442         (delete_tree_ssa): Likewise.
32443         * tree-flow-inline.h (is_call_used): Remove.
32444         * tree-flow.h (struct gimple_df): Remove callused member.
32445         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
32446         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
32447         (ref_maybe_used_by_call_p_1): Simplify.
32448         (call_may_clobber_ref_p_1): Likewise.
32449         * tree-ssa-structalias.c (compute_points_to_sets): Set
32450         the call stmt used and clobbered sets.
32451         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
32452         (find_tail_calls): Verify the tail call.
32453
32454 2010-04-12  Richard Guenther  <rguenther@suse.de>
32455
32456         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
32457         single-iteration always-inline inlining.
32458         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
32459         (cgraph_decide_inlining): Do not handle always-inline specially.
32460         (try_inline): Remove always-inline cycle detection special case.
32461         Do not recurse on always-inlines.
32462         (cgraph_early_inlining): Do not iterate if not optimizing.
32463         (cgraph_gate_early_inlining): remove.
32464         (pass_early_inline): Run unconditionally.
32465         (gate_cgraph_decide_inlining): New function.
32466         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
32467         not inlining or optimizing.
32468         (cgraph_decide_inlining_of_small_functions): Also consider
32469         always-inline functions.
32470         (cgraph_default_inline_p): Return true for nodes which should
32471         disregard inline limits.
32472         (estimate_function_body_sizes): Assume zero size and time for
32473         nodes which are marked as disregarding inline limits.
32474         (cgraph_decide_recursive_inlining): Do not perform recursive
32475         inlining on always-inline nodes.
32476
32477 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
32478
32479         PR bootstrap/43699
32480         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
32481         for exprs satisfying handled_component_p.
32482
32483 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
32484
32485         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
32486         non-constant aggregate elements.
32487
32488         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
32489         is a real initialization.
32490
32491 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
32492
32493         PR c/36774
32494         * c-decl.c (start_function): Move forward check for nested function.
32495
32496 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
32497
32498         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
32499         * config/sh/sh.c: Include reload.h.
32500         (sh_legitimize_reload_address): New.
32501         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
32502         sh_legitimize_reload_address.
32503
32504 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
32505
32506         * config/sh/sh.md (*movqi_pop): New insn pattern.
32507         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
32508
32509 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
32510
32511         * config/i386/i386.md (any_shiftrt): New code iterator.
32512         (shiftrt_insn): New code attribute.
32513         (shiftrt): Ditto.
32514         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
32515         using any_shiftrt code iterator.
32516         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
32517         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
32518         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
32519         pattern from corresponding peephole2 patterns.
32520         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
32521         using any_shiftrt code iterator.
32522         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
32523         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
32524         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
32525         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
32526         *{ashr,lshr}<mode>3_cmp_zext.
32527         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
32528
32529 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
32530
32531         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
32532         scratch register.
32533         (*lshr<mode>3_cconly): Ditto.
32534
32535 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
32536
32537         * config/i386/i386.md (lshr<mode>3): Macroize expander from
32538         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
32539         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
32540         pattern from *lshr{di,ti}3_1 and corresponding splitters using
32541         DWI mode iterator.
32542         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
32543         from corresponding peephole2 patterns.
32544         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
32545         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
32546         and *lshrdi3_1_rex64 using SWI mode iterator.
32547         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
32548         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
32549         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
32550         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
32551         and *lshrdi3_cmp_rex64 using SWI mode iterator.
32552         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
32553         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
32554         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
32555         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
32556         SWI mode iterator.
32557
32558 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
32559
32560         * config/i386/i386.md (ashr<mode>3): Macroize expander from
32561         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
32562         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
32563         pattern from *ashr{di,ti}3_1 and corresponding splitters using
32564         DWI mode iterator.
32565         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
32566         from corresponding peephole2 patterns.
32567         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
32568         (ashrsi3_cvt): Rename from ashrsi3_31.
32569         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
32570         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
32571         and x86_64_shift_adj_3 using SWI48 mode iterator.
32572         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
32573         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
32574         and *ashrdi3_1_rex64 using SWI mode iterator.
32575         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
32576         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
32577         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
32578         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
32579         and *ashrdi3_cmp_rex64 using SWI mode iterator.
32580         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
32581         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
32582         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
32583         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
32584         SWI mode iterator.
32585         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
32586         * config/i386/i386.c (ix86_split_ashr): Update for renamed
32587         x86_shift<mode>_adj_3 expanders.
32588
32589 2010-04-10  Wei Guozhi  <carrot@google.com>
32590
32591         PR target/42601
32592         * config/arm/arm.c (arm_pic_static_addr): New function.
32593         (legitimize_pic_address): Call arm_pic_static_addr when it detects
32594         a static symbol.
32595         (arm_output_addr_const_extra): Output expression for new pattern.
32596         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
32597
32598 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
32599
32600         * ira-costs.c (record_reg_classes): Ignore alternatives that are
32601         not enabled.
32602
32603         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
32604         * web.c: Include "insn-config.h" and "recog.h".
32605         (union_match_dups): New function.
32606         (web_main): Call it.
32607         (union_defs): Don't try to recognize match_dups.
32608
32609         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
32610         if doing so would replace the entire pattern.
32611
32612 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
32613
32614         PR target/43707
32615         PR target/43709
32616         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
32617         and splitter pattern.  Change splitter operand 1 predicate to
32618         nonmemory_operand.
32619
32620 2010-04-09  Martin Jambor  <mjambor@suse.cz>
32621
32622         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
32623         lattices are addresses of CONST_DECLs with the same initial value.
32624         (ipcp_print_all_lattices): Print values of CONST_DECLs.
32625         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
32626
32627 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
32628             Bernd Schmidt  <bernds@codesourcery.com>
32629
32630         * loop-invariant.c (replace_uses): New static function.
32631         (move_invariant_reg): Use it to ensure we can replace the uses.
32632
32633 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
32634
32635         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
32636         function template.
32637         (picochip_override_options): Enable section anchors only above -O1.
32638         (picochip_reorg): Fixed a couple of build warnings.
32639
32640 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32641
32642         * configure.ac (plugin -rdynamic test): Log result.
32643         * configure: Regenerate.
32644         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
32645         (RDYNAMIC_SPEC): Define.
32646         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
32647
32648 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32649
32650         * configure.ac: Determine Sun ld version numbers.
32651         (comdat_group): Restrict GNU ld version checks to gld.
32652         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
32653         (enable_comdat): Support --enable-comdat.
32654         * configure: Regenerate.
32655         * doc/install.texi (Configuration): Document --enable-comdat.
32656
32657 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32658
32659         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
32660         * config/sol2-gld.h: ... here.
32661         * config.gcc (sparc*-*-solaris2*): Reflect this.
32662         (i[34567]86-*-solaris2*): Use it.
32663
32664 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
32665
32666         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
32667         setup_clocks_p.
32668         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
32669
32670 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32671
32672         PR 42965
32673         * diagnostic.c (diagnostic_initialize): Initialize
32674         some_warnings_are_errors.
32675         (diagnostic_finish): New.
32676         (diagnostic_action_after_output): Call it before exiting.
32677         (diagnostic_report_diagnostic): Do not print message here. Set
32678         some_warnings_are_errors.
32679         * diagnostic.h (diagnostic_context): Delete
32680         issue_warnings_are_errors_message. Add some_warnings_are_errors.
32681         (diagnostic_finish): Declare.
32682         * toplev.c (toplev_main): Call it before exit.
32683
32684 2010-04-09  Jason Merrill  <jason@redhat.com>
32685
32686         PR c++/42623
32687         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
32688         for incomplete type.
32689
32690         PR c++/41788
32691         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
32692         based on a warning flag.
32693
32694 2010-04-09  Richard Guenther  <rguenther@suse.de>
32695
32696         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
32697
32698 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
32699
32700         PR bootstrap/43684
32701         * varasm.c (default_assemble_visibility): Wrap vars that are
32702         set, but unused, by targets without GAS.
32703         * config/rs6000/rs6000.c (paired_emit_vector_compare):
32704         Remove set, but unused, vars.
32705         (rs6000_legitimize_tls_address): Likewise.
32706         (altivec_expand_dst_builtin): Likewise.
32707         * config/darwin.c (machopic_classify_symbol): Likewise.
32708         (machopic_indirection_name): Likewise.
32709
32710 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
32711
32712         * config/i386/i386.md (DWI): New mode iterator.
32713         (S): New mode attribute.
32714         (shift_operand): Ditto.
32715         (shift_immediate_operand): Ditto.
32716         (ashl_input_operand): Ditto.
32717         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
32718         using SDWIM mode iterator.
32719         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
32720         pattern from *ashl{di,ti}3_1 and corresponding splitters using
32721         DWI mode iterator.
32722         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
32723         from corresponding peephole2 patterns.
32724         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
32725         and x86_64_shift_adj_1 using SWI48 mode iterator.
32726         (x86_shift<mode>_adj_2): Ditto.
32727         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
32728         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
32729         using SWI48 mode iterator.
32730         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
32731         *ashldi3_cmp_rex64 using SWI mode iterator.
32732         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
32733         *ashldi3_cconly_rex64 using SWI mode iterator.
32734         * config/i386/i386.c (ix86_split_ashl): Update for renamed
32735         x86_shift<mode>_adj_{1,2}.
32736         (ix86_split_ashr): Ditto.
32737         (ix86_split_lshr): Ditto.
32738
32739 2010-04-09  Richard Guenther  <rguenther@suse.de>
32740
32741         * target.h (builtin_conversion): Pass in input and output types.
32742         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
32743         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
32744         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
32745         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
32746
32747         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
32748         Handle AVX modes.
32749         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
32750
32751 2010-04-09  Richard Guenther  <rguenther@suse.de>
32752
32753         PR target/43152
32754         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
32755
32756 2010-04-09  Richard Guenther  <rguenther@suse.de>
32757
32758         * tree-vectorizer.h (struct _stmt_vec_info): Document
32759         that vectype is the type of the LHS.
32760         (supportable_widening_operation, supportable_narrowing_operation):
32761         Get both input and output vector types as arguments.
32762         (vect_is_simple_use_1): Declare.
32763         (get_same_sized_vectype): Likewise.
32764         * tree-vect-loop.c (vect_determine_vectorization_factor):
32765         Set STMT_VINFO_VECTYPE to the vector type of the def.
32766         (vectorizable_reduction): Adjust.
32767         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
32768         Adjust.  Specify the output vector type.
32769         (vect_pattern_recog_1): Adjust.
32770         * tree-vect-stmts.c (get_same_sized_vectype): New function.
32771         (vectorizable_call): Adjust.
32772         (vectorizable_conversion): Likewise.
32773         (vectorizable_operation): Likewise.
32774         (vectorizable_type_demotion): Likewise.
32775         (vectorizable_type_promotion): Likewise.
32776         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
32777         the def.
32778         (vect_is_simple_use_1): New function.
32779         (supportable_widening_operation): Get both input and output
32780         vector types.
32781         (supportable_narrowing_operation): Likewise.
32782         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
32783
32784 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
32785
32786         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
32787         __thiscall and _thiscall as predefined macros.
32788         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
32789         thiscall attribute handling.
32790         (ix86_comp_type_attributes): Likewise.
32791         (ix86_function_regparm): Likewise.
32792         (ix86_return_pops_args): Likewise.
32793         (init_cumulative_args): Likewise.
32794         (find_drap_reg): Likewise.
32795         (ix86_static_chain): Likewise.
32796         (x86_this_parameter): Likewise.
32797         (x86_output_mi_thunk): Likewise.
32798         (ix86_attribute_table): Add description for thiscall attribute.
32799         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
32800         * doc/extend.texi: Add documentation for thiscall.
32801
32802 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32803
32804         PR c++/28584
32805         * c.opt (Wint-to-pointer-cast): Available in C++.
32806         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
32807
32808 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
32809
32810         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
32811         * calls.c (expand_call): Pass the function type to aggregate_value_p.
32812         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
32813         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
32814         function type instead.  Reorder and simplify checks.
32815
32816         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
32817
32818 2010-04-08  Jing Yu  <jingyu@google.com>
32819             Zdenek Dvorak  <ook@ucw.cz>
32820
32821         PR tree-optimization/42720
32822         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
32823         loop unswitch conditions here from ...
32824         (tree_unswitch_single_loop): ... here.
32825
32826 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
32827
32828         * tree-if-conv.c: Fix comments and simplify logic.
32829
32830 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
32831
32832         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
32833         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
32834         (main_tree_if_conversion): Update call to tree_if_conversion.
32835
32836 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32837
32838         PR 42485
32839         * doc/invoke.texi (-b,-V): Delete.
32840         * doc/tm.texi: Do not mention -b.
32841         * gcc.c (display_help): Delete -b and -V.
32842         (process_command): Delete -b and -V.
32843         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
32844
32845 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
32846             Wolfgang Gellerich  <gellerich@de.ibm.com>
32847
32848         Implement target hook for loop unrolling
32849         * target.h (loop_unroll_adjust): Add a new target hook function.
32850         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
32851         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
32852         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
32853         (s390_loop_unroll_adjust): Implement the new target hook for s390.
32854         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
32855         target hook.
32856         (decide_unroll_stupid): Likewise.
32857
32858 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32859
32860         PR target/43643
32861         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
32862
32863 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32864
32865         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
32866         (Specific, *-*-solaris2*): Likewise.
32867         Don't prefer Sun as over GNU as.
32868
32869 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
32870
32871         * config/s390/s390.c (override_options): Adjust the z10 defaults
32872         for max-unroll-times, max-completely-peeled-insns
32873         and max-completely-peel-times.
32874
32875 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32876
32877         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
32878         instructions for z10.
32879         (s390_expand_setmem): Likewise.
32880         (s390_expand_cmpmem): Likewise.
32881
32882 2010-04-08  Richard Guenther  <rguenther@suse.de>
32883
32884         PR tree-optimization/43679
32885         * tree-ssa-pre.c (eliminate): Only propagate copies.
32886
32887 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
32888
32889         PR bootstrap/43681
32890         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
32891         set but not used variable warning.
32892
32893 2010-04-08  Wei Guozhi  <carrot@google.com>
32894
32895         PR target/41653
32896         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
32897         (arm_size_rtx_costs): Call the new function when optimized for size.
32898
32899 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
32900
32901         PR debug/43670
32902         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
32903         op0 is not a MEM, just return NULL instead of assertion
32904         failure.
32905         (discover_nonconstant_array_refs): Don't walk debug stmts.
32906
32907 2010-04-08  Doug Kwan  <dougkwan@google.com>
32908
32909         * configure.ac: Recognize gold and do not use its version number
32910         to test ld features.
32911         * configure: Regenerate.
32912
32913 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
32914
32915         PR middle-end/40815
32916         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
32917         (negate_value): Move code to push elements to broken_up_substracts ...
32918         (eliminate_plus_minus_pair): ... here.  Push operands that have no
32919         negative pair to plus_negates.
32920         (repropagate_negates, init_reassoc, fini_reassoc): Update.
32921
32922 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32923
32924         * doc/install.texi (Configuration): Move description of
32925         --enable-lto, --with-libelf*, --enable-gold from Java section to
32926         general section.
32927
32928         * doc/generic.texi (Working with declarations)
32929         (Function Properties, C and C++ Trees): Fix typos.
32930         * doc/sourcebuild.texi (Top Level): Likewise.
32931
32932 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
32933
32934         PR c/18624
32935         * tree.h (DECL_READ_P): Define.
32936         (struct tree_decl_common): Add decl_read_flag.
32937         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
32938         a set but not used warning.
32939         (merge_decls): Merge DECL_READ_P flag.
32940         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
32941         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
32942         * c-common.c (handle_used_attribute, handle_unused_attribute):
32943         Likewise.
32944         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
32945         New prototypes.
32946         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
32947         New functions.
32948         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
32949         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
32950         c_parser_binary_expression, c_parser_cast_expression,
32951         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
32952         Call default_function_array_read_conversion instead of
32953         default_function_array_conversion where needed.
32954         (c_parser_unary_expression, c_parser_conditional_expression,
32955         c_parser_postfix_expression_after_primary, c_parser_initelt):
32956         Likewise.  Call mark_exp_read where needed.
32957         (c_parser_statement_after_labels, c_parser_asm_operands,
32958         c_parser_typeof_specifier, c_parser_sizeof_expression,
32959         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
32960         where needed.
32961         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
32962         New.
32963         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
32964         (warn_unused_but_set_parameter): Default to warn_unused
32965         && extra_warnings.
32966         * doc/invoke.texi: Document -Wunused-but-set-variable and
32967         -Wunused-but-set-parameter.
32968
32969         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
32970         used count variable.
32971         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
32972         when operandN variables aren't used in the body of the expander
32973         or splitter.
32974         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
32975         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
32976         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
32977         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
32978         FOR_EACH_IMM_USE_ON_STMT): Likewise.
32979         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
32980         * tree.c (PROCESS_ARG): Likewise.
32981
32982 2010-04-07  Simon Baldwin  <simonb@google.com>
32983
32984         * diagnostic.h (diagnostic_override_option_index): New macro to
32985         set a diagnostic's option_index.
32986         * c-tree.h (c_cpp_error): Add warning reason argument.
32987         * opts.c (_warning_as_error_callback): New.
32988         (register_warning_as_error_callback): Store callback for
32989         warnings enabled via enable_warning_as_error.
32990         (enable_warning_as_error): Call callback, minor code tidy.
32991         * opts.h (register_warning_as_error_callback): Declare.
32992         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
32993         response to -Werror=.
32994         (c_common_init_options): Register warning_as_error_callback in opts.c.
32995         * common.opt: Add -Wno-cpp option.
32996         * c-common.c (struct reason_option_codes_t): Map cpp warning
32997         reason codes to gcc option indexes.
32998         * (c_option_controlling_cpp_error): New function, lookup the gcc
32999         option index for a cpp warning reason code.
33000         * (c_cpp_error): Add warning reason argument, call
33001         c_option_controlling_cpp_error for diagnostic_override_option_index.
33002         * doc/invoke.texi: Document -Wno-cpp.
33003
33004 2010-04-07  Richard Guenther  <rguenther@suse.de>
33005
33006         * ipa-reference.c (mark_load): Use get_base_address.
33007         (mark_store): Likewise.
33008
33009         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
33010         inserting GIMPLE_NOPs into the IL.
33011         * tree-ssa-structalias.c (get_constraint_for_component_ref):
33012         Explicitly strip handled components and indirect references.
33013
33014         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
33015         folding address expressions.
33016         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
33017         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
33018         operand_equal_p to compare decls.
33019         (ptr_deref_may_alias_decl_p): Likewise.
33020         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
33021         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
33022         Handle reversed comparison ops.
33023         * tree-sra.c (asm_visit_addr): Use get_base_address.
33024         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
33025         * ipa-reference.c (mark_address): Use get_base_address.
33026
33027 2010-04-07  Richard Guenther  <rguenther@suse.de>
33028
33029         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
33030         Propagate constants everywhere.
33031
33032 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
33033
33034         PR debug/43516
33035         * tree.c (MAX_INT_CACHED_PREC): Define.
33036         (nonstandard_integer_type_cache): New array.
33037         (build_nonstandard_integer_type): Cache results for precision
33038         <= MAX_INT_CACHED_PREC.
33039
33040 2010-04-07  Richard Guenther  <rguenther@suse.de>
33041
33042         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
33043         -fargument-noalias-global, -fargument-noalias-anything): Remove.
33044         * common.opt: Likewise.
33045         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
33046         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
33047         (nonoverlapping_memrefs_p): Likewise.
33048         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
33049         * opts.c (common_handle_option): Handle OPT_fargument_alias,
33050         OPT_fargument_noalias, OPT_fargument_noalias_anything and
33051         OPT_fargument_noalias_global for backward compatibility.
33052
33053 2010-04-07  Richard Guenther  <rguenther@suse.de>
33054
33055         PR tree-optimization/43270
33056         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
33057         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
33058         * tree-ssa-pre.c (phi_translate_1): Adjust.
33059         (fully_constant_expression): Split out vn_reference handling to ...
33060         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
33061         Fold reads from constant strings.
33062         (vn_reference_lookup): Handle fully constant references.
33063         (vn_reference_lookup_pieces): Likewise.
33064         * Makefile.in (expmed.o-warn): Add -Wno-error.
33065
33066 2010-04-07  Martin Jambor  <mjambor@suse.cz>
33067
33068         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
33069
33070 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
33071
33072         PR driver/41594
33073         * gcc.c: Add -static-libstdc++ to list of recognized options.
33074
33075 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33076
33077         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
33078
33079 2010-04-07  Richard Guenther  <rguenther@suse.de>
33080
33081         PR middle-end/42617
33082         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
33083         bases build simple mem attributes to retain points-to information.
33084
33085 2010-04-07  Richard Guenther  <rguenther@suse.de>
33086
33087         PR middle-end/42617
33088         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
33089         preserve points-to related information.
33090
33091 2010-04-07  Richard Guenther  <rguenther@suse.de>
33092
33093         PR middle-end/42617
33094         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
33095         discard plain indirect references.
33096         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
33097         * tree.c (tree_nop_conversion): Likewise.
33098
33099 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
33100
33101         PR debug/43628
33102         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
33103
33104 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
33105
33106         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
33107         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
33108
33109 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33110
33111         * tree-if-conv.c: Fix indentation and comments.
33112
33113 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33114
33115         * tree-if-conv.c: Sort static functions in topological order.
33116
33117 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
33118
33119         * tree-if-conv.c: Fix indentation and comments.
33120
33121 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33122
33123         PR middle-end/43519
33124         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
33125         lang_hooks.types.type_for_size instead of
33126         build_nonstandard_integer_type.
33127         When converting an unsigned type to signed, double its precision.
33128         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
33129         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
33130         (graphite_create_new_loop_guard): When ub + 1 wraps around,
33131         use lb <= ub.
33132
33133 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33134
33135         PR middle-end/43519
33136         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
33137         POINTER_PLUS_EXPR for pointer types.
33138
33139 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33140
33141         PR middle-end/43519
33142         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
33143         * graphite-clast-to-gimple.c: Include langhooks.h.
33144         (max_signed_precision_type): New.
33145         (max_precision_type): Takes two types as arguments.
33146         (precision_for_value): New.
33147         (precision_for_interval): New.
33148         (gcc_type_for_interval): New.
33149         (gcc_type_for_value): New.
33150         (gcc_type_for_clast_term): New.
33151         (gcc_type_for_clast_red): New.
33152         (gcc_type_for_clast_bin): New.
33153         (gcc_type_for_clast_expr): Split up into several functions.
33154         (gcc_type_for_clast_eq): Rewritten.
33155         (compute_bounds_for_level): New.
33156         (compute_type_for_level_1): New.
33157         (compute_type_for_level): New.
33158         (gcc_type_for_cloog_iv): Removed.
33159         (gcc_type_for_iv_of_clast_loop): Rewritten.
33160         (graphite_create_new_loop): Compute the lower and upper bound types
33161         with gcc_type_for_clast_expr.
33162         (graphite_create_new_loop_guard): Same.
33163         (find_cloog_iv_in_expr): Removed.
33164         (compute_cloog_iv_types_1): Removed.
33165         (compute_cloog_iv_types): Removed.
33166         (gloog): Do not call compute_cloog_iv_types.
33167         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
33168         GBB_CLOOG_IV_TYPES.
33169         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
33170         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
33171         (GBB_CLOOG_IV_TYPES): Removed.
33172
33173 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33174
33175         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
33176         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
33177         (detect_commutative_reduction): Same.
33178
33179 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33180
33181         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
33182         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
33183         argument.
33184         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
33185         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
33186         (rewrite_commutative_reductions_out_of_ssa): Same.
33187         * passes.c (execute_function_todo): Call verify_ssa for every pass
33188         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
33189         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
33190         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
33191         with an extra argument.
33192         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
33193         verify_ssa only when the extra argument is true.
33194         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
33195         with an extra argument.
33196         (tree_transform_and_unroll_loop): Same.
33197
33198 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
33199
33200         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
33201         for all the passes of the LNO having LOOP_CLOSED_SSA.
33202         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
33203         * tree-loop-distribution.c (pass_loop_distribution): Same.
33204         * tree-pass.h (TODO_verify_loops): Removed.
33205         * tree-ssa-loop.c (pass_tree_loop_init): Same.
33206         (pass_lim): Same.
33207         (pass_tree_unswitch): Same.
33208         (pass_predcom): Same.
33209         (pass_vectorize): Same.
33210         (pass_linear_transform): Same.
33211         (pass_graphite_transforms): Same.
33212         (pass_iv_canon): Same.
33213         (pass_complete_unroll): Same.
33214         (pass_complete_unrolli): Same.
33215         (pass_parallelize_loops): Same.
33216         (pass_loop_prefetch): Same.
33217         (pass_iv_optimize): Same.
33218
33219 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
33220
33221         PR middle-end/32824
33222         * passes.c (init_optimization_passes): Move pass_lim before
33223         pass_copy_prop and pass_dce_loop.
33224
33225 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
33226
33227         PR target/43667
33228         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
33229         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
33230         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
33231         MULTI_* defines for 4 argument vpermil2p* builtins.
33232
33233 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
33234
33235         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
33236         * config/i386/i386.c (x86_maybe_negate_const_int): New.
33237         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
33238         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
33239         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
33240         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
33241         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
33242         Use x86_maybe_negate_const_int to output insn mnemonic.
33243         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
33244         check from instruction predicate.  Update comments.
33245         * config/i386/sync.md (sync_add<mode>): Use
33246         x86_maybe_negate_const_int to output insn mnemonic.
33247
33248 2010-04-06  Jan Hubicka  <jh@suse.cz>
33249
33250         PR tree-optimization/42906
33251         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
33252         IGNORE_SELF argument.  Set visited_control_parents for fully
33253         processed BBs.
33254         (find_obviously_necessary_stmts): Update call of
33255         mark_control_dependent_edges_necessary.
33256         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
33257
33258 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
33259
33260         * config/i386/i386.md: Remove comment about 'e' and 'E'
33261         operand modifier.
33262
33263 2010-04-06  Richard Guenther  <rguenther@suse.de>
33264
33265         PR tree-optimization/43627
33266         * tree-vrp.c (extract_range_from_unary_expr): Widenings
33267         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
33268         not varying.
33269
33270 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
33271
33272         * BASE-VER: Change to 4.6.0.
33273
33274         PR target/43638
33275         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
33276         handling.
33277
33278 2010-04-06  Richard Guenther  <rguenther@suse.de>
33279
33280         PR middle-end/43661
33281         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
33282
33283 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33284
33285         * doc/invoke.texi (Optimize Options): Document that LTO
33286         won't remove object access purely due to incompatible
33287         declarations.
33288
33289 2010-04-04  Matthias Klose  <doko@ubuntu.com>
33290
33291         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
33292         Initialize variable.
33293
33294 2010-04-03  Richard Guenther  <rguenther@suse.de>
33295
33296         PR middle-end/42509
33297         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
33298         require a non-NULL MEM_OFFSET.
33299
33300 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
33301
33302         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
33303         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
33304         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
33305         config/alpha/predicates.md, config/arm/arm.md,
33306         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
33307         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
33308         config/darwin9.h, config/darwin.c, config/darwin.h,
33309         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
33310         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
33311         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
33312         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
33313         config/mips/mips.md, config/mn10300/mn10300.c,
33314         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
33315         config/rs6000/aix.h, config/rs6000/dfp.md,
33316         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
33317         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
33318         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
33319         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
33320         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
33321         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
33322         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
33323         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
33324         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
33325         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
33326         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
33327         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
33328         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
33329         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
33330         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
33331         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
33332         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
33333         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
33334         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
33335         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
33336         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
33337         opt-functions.awk, opth-gen.awk, params.def, passes.c,
33338         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
33339         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
33340         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
33341         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
33342         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
33343         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
33344         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
33345         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
33346         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
33347         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
33348         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
33349         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
33350         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
33351         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
33352
33353 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33354
33355         PR other/43620
33356         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
33357         * aclocal.m4: Regenerate.
33358
33359 2010-04-02  Richard Guenther  <rguenther@suse.de>
33360
33361         PR tree-optimization/43629
33362         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
33363         if we have seen a constant value.
33364
33365 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
33366
33367         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
33368
33369 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
33370
33371         PR target/43469
33372         * arm.c (legitimize_tls_address): Adjust call to
33373         gen_tls_load_dot_plus_four.
33374         (arm_note_pic_base): New function.
33375         (arm_cannot_copy_insn_p): Use it.
33376         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
33377         constraint.
33378
33379 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33380
33381         PR bootstrap/43531
33382
33383         Revert:
33384         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33385
33386         * Makefile.in ($(out_object_file)): Depend on
33387         gt-$(basename $(notdir $(out_file))).h.
33388
33389 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
33390
33391         * config.gcc (lm32-*-rtems*): Add t-lm32.
33392
33393 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
33394
33395         * config.gcc: Add lm32-*-rtems*.
33396         * config/lm32/rtems.h: New file.
33397
33398 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
33399
33400         PR target/42609
33401         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
33402
33403 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
33404
33405         * dwarf2out.c (output_compilation_unit_header): For
33406         -gdwarf-4 use version 4 instead of version 3.
33407         (output_line_info): For version 4 and above emit additional
33408         maximum ops per insn header field.
33409         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
33410
33411         * dwarf2out.c (is_c_family, is_java): Remove.
33412         (lower_bound_default): New function.
33413         (add_bound_info, gen_descr_array_type_die): Use it.
33414
33415 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
33416
33417         PR debug/43325
33418         * dwarf2out.c (gen_variable_die): Allow debug info for variable
33419         re-declaration when it happens in a function.
33420
33421 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
33422
33423         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
33424         (cgraph_remove_function_insertion_hook): Same.
33425         (cgraph_call_function_insertion_hooks): Same.
33426
33427 2010-04-01  Richard Guenther  <rguenther@suse.de>
33428
33429         PR middle-end/43614
33430         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
33431         and TREE_THIS_VOLATILE.
33432         (copy_ref_info): Likewise.
33433         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
33434         * tree.c (build6_stat): Ignore side-effects of all but arg5
33435         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
33436         TARGET_MEM_REF.
33437
33438 2010-04-01  Richard Guenther  <rguenther@suse.de>
33439
33440         PR tree-optimization/43607
33441         * ipa-type-escape.c (check_call): Do not access non-existing
33442         arguments.
33443
33444 2010-04-01  Richard Guenther  <rguenther@suse.de>
33445
33446         PR middle-end/43602
33447         Revert
33448         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
33449                     Jack Howarth  <howarth@bromo.med.uc.edu>
33450
33451         * tree-profile.c (tree_init_ic_make_global_vars): Make static
33452         variables TLS.
33453
33454 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33455
33456         * doc/install.texi (Prerequisites): Document libelf usability on
33457         IRIX 5/6 and Solaris 2.
33458         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
33459         Update GNU as, GNU ld requirements.
33460         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
33461         Document Sun Studio compiler download.
33462         Update and simplify as, ld recommendations.
33463         (Specific, *-*-solaris2.7): Note obsoletion, removal.
33464
33465 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33466
33467         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
33468         with_tune_32 to pentium4.
33469
33470 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
33471
33472         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
33473
33474 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33475
33476         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
33477         obsoletion, removal.
33478         Update IDO URL.
33479         Document GNU as requirement.
33480         Update configure requirements.
33481         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
33482         Recomment IRIX 6.5.18+.
33483         Document IDF/IDL requirement.
33484         Document GNU as requirement.
33485         Document GNU ld bootstrap failure.
33486         Remove freeware.sgi.com reference.
33487
33488 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33489
33490         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
33491         UNIX V4.0, V5.0 obsoletion, removal.
33492         Remove --with-gc=simple reference.
33493         Update VM requirements during bootstrap.
33494         Remove -oldas bootstrap description.
33495         Update binutils reference.
33496         Remove comparison failure note.
33497
33498 2010-03-31  Richard Guenther  <rguenther@suse.de>
33499             Zdenek Dvorak  <ook@ucw.cz>
33500             Sebastian Pop  <sebastian.pop@amd.com>
33501
33502         PR middle-end/43464
33503         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
33504         with multiple arguments.
33505         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
33506
33507 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
33508
33509         * graphite-dependences.c (print_pddr): Call print_pdr with an
33510         extra argument.
33511         * graphite-poly.c (debug_pdr): Add an extra argument for the
33512         verbosity level.
33513         (print_pdr): Same.
33514         (print_pbb_domain): Same.
33515         (print_pbb): Same.
33516         (print_scop_context): Same.
33517         (print_scop): Same.
33518         (print_cloog): Same.
33519         (debug_pbb_domain): Same.
33520         (debug_pbb): Same.
33521         (print_pdrs): Same.
33522         (debug_pdrs): Same.
33523         (debug_scop_context): Same.
33524         (debug_scop): Same.
33525         (debug_cloog): Same.
33526         (print_scop_params): Same.
33527         (debug_scop_params): Same.
33528         (print_iteration_domain): Same.
33529         (print_iteration_domains): Same.
33530         (debug_iteration_domain): Same.
33531         (debug_iteration_domains): Same.
33532         (print_scattering_function): Same.
33533         (print_scattering_functions): Same.
33534         (debug_scattering_function): Same.
33535         (debug_scattering_functions): Same.
33536         * graphite-poly.h (debug_pdr): Update declaration.
33537         (print_pdr): Same.
33538         (print_pbb_domain): Same.
33539         (print_pbb): Same.
33540         (print_scop_context): Same.
33541         (print_scop): Same.
33542         (print_cloog): Same.
33543         (debug_pbb_domain): Same.
33544         (debug_pbb): Same.
33545         (print_pdrs): Same.
33546         (debug_pdrs): Same.
33547         (debug_scop_context): Same.
33548         (debug_scop): Same.
33549         (debug_cloog): Same.
33550         (print_scop_params): Same.
33551         (debug_scop_params): Same.
33552         (print_iteration_domain): Same.
33553         (print_iteration_domains): Same.
33554         (debug_iteration_domain): Same.
33555         (debug_iteration_domains): Same.
33556         (print_scattering_function): Same.
33557         (print_scattering_functions): Same.
33558         (debug_scattering_function): Same.
33559         (debug_scattering_functions): Same.
33560
33561 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
33562
33563         * graphite-poly.c (print_scattering_function_1): New.
33564         (print_scattering_function): Call it.
33565         (print_scop_params): Remove spaces at the end of lines.
33566         (print_cloog): New.
33567         (debug_cloog): New.
33568         * graphite-poly.h (print_cloog): Declared.
33569         (debug_cloog): Declared.
33570
33571 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
33572
33573         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
33574         in loop->header.
33575         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
33576         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
33577         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
33578         to switch between adding the IV bump in loop->latch or in loop->header.
33579
33580 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
33581
33582         * graphite-poly.c (print_scattering_function): Pretty print following
33583         the scoplib format.
33584         (print_pdr): Same.
33585         (print_pbb_domain): Same.
33586         (dump_gbb_cases): Same.
33587         (dump_gbb_conditions): Same.
33588         (print_pdrs): Same.
33589         (print_pbb): Same.
33590         (print_scop_params): Same.
33591         (print_scop_context): Same.
33592         (print_scop): Same.
33593         (print_pbb_body): New.
33594         (lst_indent_to): New.
33595         (print_lst): Start new lines with a #.
33596         * graphite-poly.h (pbb_bb): New.
33597         (pbb_index): Use pbb_bb.
33598         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
33599         disjuncts.
33600         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
33601
33602 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
33603
33604         * dwarf2out.c (size_of_die): For -gdwarf-4 use
33605         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
33606         and 0 instead of 1 for dw_val_class_flag.
33607         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
33608         dw_val_class_range_list, dw_val_class_loc_list,
33609         dw_val_class_lineptr and dw_val_class_macptr, use
33610         DW_FORM_flag_present for dw_val_class_flag and
33611         DW_FORM_exprloc for dw_val_class_loc.
33612         (output_die): For -gdwarf-4 print dw_val_class_loc
33613         size as uleb128 instead of 1 or 2 bytes and don't print
33614         anything for dw_val_class_flag.
33615
33616         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
33617         instead of cselib_lookup following by tweaking locs->setting_insn.
33618
33619         PR bootstrap/43596
33620         * cselib.c (cselib_process_insn): Clear cselib_current_insn
33621         even before returning from label, setjmp call or volatile asm
33622         handling.
33623
33624 2010-03-31  Richard Guenther  <rguenther@suse.de>
33625
33626         PR middle-end/43600
33627         * cgraphunit.c (cgraph_output_in_order): Do not allocate
33628         temporary data on stack.
33629
33630 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33631
33632         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
33633         (PUSHSECTION_ASM_OP): Remove.
33634         (POPSECTION_ASM_OP): Remove.
33635         (PUSHSECTION_FORMAT): Remove.
33636         * config/sol2.h (PUSHSECTION_FORMAT): Define.
33637         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
33638         * config/sol2.c (solaris_output_init_fini): Use it.
33639
33640 2010-03-31  Jie Zhang  <jie@codesourcery.com>
33641
33642         PR 43574
33643         * opt-functions.awk (var_type_struct): Use signed char type
33644         for simple variables.
33645
33646 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33647
33648         * config/sol2.c: Include output.h.
33649         (solaris_assemble_visibility): New function.
33650         * config/t-sol2 (sol2.o): Add output.h dependency.
33651         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
33652         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
33653         Redefine.
33654
33655 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
33656
33657         PR target/43580
33658         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
33659         V2SImode or XFmode on PRE_DEC.
33660
33661         PR debug/43557
33662         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
33663         BLKmode.
33664
33665 2010-03-31  Jie Zhang  <jie@codesourcery.com>
33666
33667         PR 43562
33668         * reload.h (caller_save_initialized_p): Declare.
33669         * toplev.c (backend_init_target): Don't call
33670         init_caller_save but set caller_save_initialized_p to false.
33671         * caller-save.c (caller_save_initialized_p): Define.
33672         (init_caller_save): Check caller_save_initialized_p.
33673         * ira.c (ira): Call init_caller_save if flag_caller_saves.
33674
33675 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33676
33677         PR target/39048
33678         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
33679         and soft-fp/t-softfp to tmake_file.
33680         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
33681         (LIBGCC2_TF_CEXT): Define.
33682         (TF_SIZE): Define.
33683
33684 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
33685
33686         PR debug/42977
33687         * cselib.c (n_useless_values): Document handling of debug locs.
33688         (n_useless_debug_values, n_debug_values): New variables.
33689         (new_elt_loc_list): Don't add to debug values, keep count.
33690         (promote_debug_loc): New.
33691         (cselib_reset_table): Zero new variables.
33692         (entry_and_rtx_equal_p): Promote debug locs.
33693         (discard_useless_locs): Increment n_useless_debug_values for
33694         debug values.
33695         (remove_useless_values): Adjust n_useless_values and n_debug_values
33696         with n_useless_debug_values.
33697         (add_mem_for_addr): Promote debug locs.
33698         (cselib_lookup_mem): Likewise.
33699         (cselib_lookup_addr): Renamed to...
33700         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
33701         (cselib_log_lookup): ... this.  Turn into...
33702         (cselib_lookup_addr): ... new wrapper.
33703         (cselib_lookup_from_insn): New.
33704         (cselib_invalidate_regno): Increment n_useless_debug_values for
33705         debug values.
33706         (cselib_invalidate_mem): Likewise.
33707         (cselib_process_insn): Take n_deleted and n_debug_values into
33708         account to guard remove_useless_value call.
33709         (cselib_finish): Zero n_useless_debug_values.
33710         * cselib.h (cselib_lookup_from_insn): Declare.
33711         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
33712         (sched_analyze_2): Likewise.
33713
33714 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
33715
33716         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
33717         functions.
33718         (adjust_mems): Replace narrowing SUBREG of expression containing
33719         just PLUS, MINUS, MULT and ASHIFT of registers and constants
33720         with operations in the narrower mode.
33721
33722         PR debug/43593
33723         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
33724         regs_invalidated_by_call instead all call_used_reg_set registers.
33725
33726 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
33727
33728         PR middle-end/43430
33729         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
33730         pointer comparisons with types_compatible_p.
33731         * tree-vect-stmts.c (vectorizable_call): Same.
33732         (vectorizable_condition): Same.
33733
33734 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33735
33736         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
33737         stack check if the mask would be zero.
33738
33739 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
33740             Jack Howarth  <howarth@bromo.med.uc.edu>
33741
33742         * tree-profile.c (tree_init_ic_make_global_vars): Make static
33743         variables TLS.
33744
33745 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
33746
33747         PR other/25232
33748         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
33749         and __unordtf2.
33750         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
33751         Include ___unordxf2 and ___unordtf2.
33752         * config/i386/libgcc-glibc.ver: Do not define inheritance from
33753         GCC_4.4.0 here.
33754
33755 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
33756
33757         * config/lm32/t-lm32: New file.
33758         * config.gcc: Use the above file when targetting lm32.
33759
33760 2010-03-28  Duncan Sands  <baldrick@free.fr>
33761
33762         * Makefile.in (PLUGIN_HEADERS): Add except.h.
33763
33764 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
33765
33766         PR middle-end/43431
33767         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
33768         Improve vectorization cost model diagnostic.
33769
33770 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
33771
33772         PR middle-end/43436
33773         * tree-vect-data-refs.c (vect_analyze_data_refs): When
33774         compute_data_dependences_for_loop returns false, early exit
33775         and output an extra diagnostic for the failed data reference
33776         analysis.
33777
33778 2010-03-29  Richard Guenther  <rguenther@suse.de>
33779
33780         PR tree-optimization/43560
33781         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
33782         (can_sm_ref_p): Treat stores to readonly locations as trapping.
33783
33784 2010-03-29  Jie Zhang  <jie@codesourcery.com>
33785
33786         PR 43564
33787         * toplev.c (process_options): Set optimization_default_node
33788         and optimization_current_node.
33789         * opts.c (decode_options): Don't set optimization_default_node
33790         and optimization_current_node.
33791
33792 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
33793
33794         * config/rtems.h: Abandon -qrtems_debug.
33795
33796 2010-03-28  Jan Hubicka  <jh@suse.cz>
33797
33798         PR tree-optimization/43505
33799         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
33800         map should not be copied.
33801
33802 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33803
33804         PR middle-end/41674
33805         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
33806         cdtors, set DECL_PRESERVE_P.
33807         * ipa.c (cgraph_externally_visible_p): Return true if declaration
33808         should be preseved.
33809
33810 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
33811
33812         PR tree-optimization/43528
33813         * stor-layout.c (place_field): Check that constant fits into
33814         unsigned HWI when skipping calculation of MS bitfield layout.
33815
33816 2010-03-27  Jan Hubicka  <jh@suse.cz>
33817
33818         PR middle-end/43391
33819         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
33820         notice_global_symbol work.
33821
33822 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
33823
33824         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
33825         instead of dwarf2out_decl.
33826         (struct var_loc_node): Remove section_label field.
33827         (dwarf2out_function_decl): New function.
33828         (dwarf2out_var_location): Don't set section_label field.
33829         (dwarf2out_begin_function): Don't empty decl_loc_table here.
33830
33831 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
33832
33833         PR tree-optimization/43544
33834         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
33835         First argument for builtin vectorized function hook is now a
33836         tree to be able to distinguish between machine specific and
33837         standard builtins.
33838         * targhooks.c (default_builtin_vectorized_function): Ditto.
33839         * targhooks.h (default_builtin_vectorized_function): Ditto.
33840         * target.h (struct gcc_target): Ditto.
33841         * tree-vect-stmts.c (vectorizable_function): Ditto.
33842         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
33843         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
33844         Ditto.
33845
33846 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
33847
33848         PR c/43381
33849         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
33850         nested binding iff it is a FUNCTION_DECL.
33851         (store_parm_decls_newstyle): Pass nested=true to bind for
33852         FUNCTION_DECLs amongst parameters.
33853
33854 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
33855
33856         * var-tracking.c (vt_expand_loc_callback): Don't run
33857         cselib_expand_value_rtx_cb in dummy mode if
33858         cselib_dummy_expand_value_rtx_cb returned false.
33859
33860         * var-tracking.c (emit_note_insn_var_location): For one part
33861         notes with offset 0, don't add EXPR_LIST around the location.
33862         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
33863         add_location_or_const_value_attribute): Adjust for that change.
33864
33865         PR debug/43540
33866         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
33867         into first operand and location into second.
33868         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
33869         dw_cfi_oprnd_loc for DW_CFA_expression.
33870         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
33871         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
33872         assume first argument is regnum and second argument is location.
33873
33874 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
33875
33876         PR target/42113
33877         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
33878         of scratch register to DImode.  Split to DImode comparison operator.
33879         Use SImode subreg of scratch register in the multiplication.
33880         (*cmp_sadd_sidi): Ditto.
33881         (*cmp_ssub_si): Ditto.
33882         (*cmp_ssub_sidi): Ditto.
33883
33884 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
33885
33886         PR target/43524
33887         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
33888         Remove invalid assert and wrong comment.
33889
33890 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
33891
33892         PR debug/43516
33893         * flags.h (final_insns_dump_p): New extern.
33894         * final.c (final_insns_dump_p): New variable.
33895         (rest_of_clean_state): Set it before -fdump-final-insns=
33896         dumping, clear afterwards.
33897         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
33898         MEM_ALIAS_SET on MEMs.
33899
33900 2010-03-26  David S. Miller  <davem@davemloft.net>
33901
33902         * configure.ac: Fix sparc GOTDATA_OP bug check.
33903         * configure: Rebuild.
33904
33905 2010-03-26  Alan Modra  <amodra@gmail.com>
33906
33907         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
33908
33909 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33910
33911         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
33912         TLS_SECTION_ASM_FLAG.
33913
33914 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
33915
33916         PR bootstrap/43511
33917         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
33918         Clear first_function_block_is_cold.
33919
33920         PR c/43385
33921         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
33922         argument if the argument is truth_value_p.
33923
33924 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
33925
33926         * config/rs6000/constraints.md: Update copyright year for my changes.
33927
33928         PR target/43484
33929         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
33930         used in reg+reg addressing, swap registers.
33931
33932 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
33933
33934         PR debug/43293
33935         * target.h (struct gcc_target): Add code_end hook.
33936         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
33937         if not yet defined.
33938         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
33939         * toplev.c (compile_file): Call targetm.asm_out.code_end
33940         hook before unwind info/debug info output.
33941         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
33942         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
33943         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
33944         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
33945         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
33946         * config/i386/i386.c (ix86_file_end): Renamed to...
33947         (ix86_code_end): ... this.  Make static.  Don't call
33948         file_end_indicate_exec_stack.  Emit unwind info using
33949         final_start_function/final_end_function.
33950         (darwin_x86_file_end): Remove.
33951         (TARGET_ASM_CODE_END): Define.
33952         * config/i386/i386.h (TARGET_ASM_FILE_END,
33953         NEED_INDICATE_EXEC_STACK): Don't define.
33954         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
33955         (TARGET_ASM_FILE_END): Define to darwin_file_end.
33956         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
33957         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
33958
33959         PR target/43498
33960         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
33961         at the beginning and final_end_function at the end.
33962         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
33963
33964 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33965
33966         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
33967         and Sun as TLS syntax.
33968         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
33969         * configure: Regenerate.
33970         * config.in: Regenerate.
33971         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
33972         (default_elf_asm_named_section): Use it.
33973         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
33974         (i386_output_dwarf_dtprel): Likewise.
33975         (output_addr_const_extra): Likewise.
33976         (output_pic_addr_const): Lowercase @GOTTPOFF.
33977         (output_addr_const_extra): Likewise.
33978         (output_pic_addr_const): Lowercase @GOTNTPOFF.
33979         (output_addr_const_extra): Likewise.
33980         (output_pic_addr_const): Lowercase @INDNTPOFF.
33981         (output_addr_const_extra): Likewise.
33982         (output_pic_addr_const): Lowercase @NTPOFF.
33983         (output_addr_const_extra): Likewise.
33984         (output_pic_addr_const): Lowercase @TPOFF.
33985         (output_addr_const_extra): Likewise.
33986         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
33987         (*tls_global_dynamic_64): Likewise.
33988         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
33989         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
33990
33991         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
33992         (ASM_OUTPUT_TLS_COMMON): Use it.
33993         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
33994
33995         PR target/38118
33996         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
33997         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
33998         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
33999         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
34000         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
34001         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
34002
34003 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34004
34005         * config/i386/i386.c (override_options): Don't accept
34006         -mtls-dialect=sun any longer.
34007         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
34008         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
34009         (*tls_local_dynamic_base_32_sun): Likewise.
34010         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
34011
34012 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
34013
34014         PR debug/43508
34015         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
34016         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
34017
34018         PR debug/43479
34019         * ira.c (adjust_cleared_regs): New function.
34020         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
34021
34022         PR debug/19192
34023         PR debug/43479
34024         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
34025         from gimple_block.
34026         * expr.c (expand_expr_real): Restore previous
34027         curr_insn_source_location and curr_insn_block after
34028         expand_expr_real_1 call.
34029         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
34030         instead of expand_expr_real_1.
34031
34032 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
34033
34034         PR rtl-optimization/43413
34035         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
34036         hard regs too.
34037
34038 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
34039
34040         PR target/43348
34041         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
34042         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
34043
34044 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
34045
34046         * config/i386/i386.c (ix86_target_string): Add -mfma.
34047         Fix a typo in comment.
34048
34049 2010-03-22  Mike Stump  <mikestump@comcast.net>
34050
34051         PR target/23071
34052         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
34053         Don't overly align based upon packed packed fields.
34054
34055 2010-03-22  Jason Merrill  <jason@redhat.com>
34056
34057         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
34058         Use () rather than [], and move before the element type.
34059
34060 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34061
34062         * doc/configfiles.texi (Configuration Files): Removed
34063         fixinc/Makefile*, intl/Makefile.*.
34064         * doc/makefile.texi: Fixed markup. Abstract from version
34065         control system used.
34066         (Makefile): Removed obsolete java/parse.y example.
34067         * doc/sourcebuild.texi: Likewise.
34068         (Top Level): Added config, gnattools, libdecnumber, libgcc,
34069         libgomp, libssp.  Removed fastjar.
34070         (Miscellaneous Docs): Clarify location.
34071         Added COPYING3, COPYING3.LIB.
34072         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
34073
34074 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34075
34076         PR target/38085
34077         * config/i386/i386.c (x86_function_profiler)
34078         [!NO_PROFILE_COUNTERS]: Fix typo.
34079         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
34080         instead of callq.
34081
34082 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
34083             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34084
34085         * doc/sourcebuild.texi (Test Directives): Split into six
34086         subsections, with most of the current text in new subsections
34087         Directives, Selectors, and Final Actions.
34088         (Directives): Split list of test directives into multiple
34089         subsubsections.
34090         (Selectors): Describe use and syntax of selectors.
34091         (Effective-Target Keywords): Describe all existing keywords.
34092         (Add Options): Describe features for dg-add-options.
34093         (Require Support): Describe variants of dg-require-support.
34094         (Final Actions): Describe commands to use in dg-final.
34095
34096 2010-03-22  Michael Matz  <matz@suse.de>
34097
34098         PR middle-end/43475
34099         * recog.c (validate_replace_rtx_group): Replace also in
34100         REG_EQUAL and REG_EQUIV notes.
34101
34102 2010-03-22  Richard Guenther  <rguenther@suse.de>
34103
34104         PR tree-optimization/43390
34105         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
34106         sure vector extracts are type correct.
34107
34108 2010-03-22  Richard Guenther  <rguenther@suse.de>
34109
34110         PR middle-end/40106
34111         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
34112         x * sqrt (x) even when optimizing for size if the target
34113         has native support for sqrt.
34114
34115 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
34116
34117         * varasm.c (make_decl_rtl_for_debug): Also clear
34118         flag_mudflap for the duration of make_decl_rtl call.
34119
34120         PR debug/43443
34121         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
34122         locs from preserved VALUEs.
34123
34124 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34125
34126         PR middle-end/42718
34127         * pa.md (movmemsi): Set align to one if zero.
34128         (movmemdi): Likewise.
34129
34130 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
34131
34132         PR target/42321
34133         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
34134         with their corresponding prologue pushes.
34135
34136 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
34137
34138         PR target/43156
34139         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
34140         at the begining or end.
34141         (spu_expand_epilogue): Likewise.
34142
34143 2010-03-20  Richard Guenther  <rguenther@suse.de>
34144
34145         PR rtl-optimization/43438
34146         * combine.c (make_extraction): Properly zero-/sign-extend an
34147         extraction of the low part of a CONST_INT.  Also handle
34148         CONST_DOUBLE.
34149
34150 2010-03-19  Mike Stump  <mikestump@comcast.net>
34151
34152         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
34153         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
34154         (override_options): Use SUBTARGET32_DEFAULT_CPU.
34155
34156 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
34157
34158         PR c/43211
34159         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
34160         an error.
34161
34162 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
34163
34164         PR rtl-optimization/42258
34165         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
34166         use that may match DEF.
34167
34168         PR target/40697
34169         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
34170         the cost of loading the constant rather than assuming
34171         COSTS_N_INSNS (1).
34172         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
34173         outer code is AND, do the same tests as the andsi3 expander and
34174         return COSTS_N_INSNS (1) if and is cheap.
34175
34176         * optabs.c (avoid_expensive_constant): Fix formatting.
34177
34178 2010-03-19  Michael Matz  <matz@suse.de>
34179
34180         PR c++/43116
34181         * attribs.c (decl_attributes): When rebuilding a function pointer
34182         type use the same qualifiers as the original pointer type.
34183
34184 2010-03-19  Martin Jambor  <mjambor@suse.cz>
34185
34186         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
34187         and is_gimple_ip_invariant_address.
34188
34189 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34190
34191         Revert
34192         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34193
34194         * config/arm/arm.c (arm_override_options): Turn off
34195         flag_dwarf2_cfi_asm for AAPCS variants.
34196
34197 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34198
34199         PR target/43399
34200         * config/arm/arm.c (emit_multi_reg_push): Update comments.
34201         Use PRE_MODIFY instead of PRE_DEC.
34202         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
34203         (vfp_emit_fstmd): Likewise.
34204
34205 2010-03-19  Michael Matz  <matz@suse.de>
34206
34207         PR target/43305
34208         * builtins.c (expand_builtin_interclass_mathfn,
34209         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
34210         if that fails.
34211
34212 2010-03-19  Richard Guenther  <rguenther@suse.de>
34213
34214         PR tree-optimization/43415
34215         * tree-ssa-pre.c (phi_translate): Split out worker to ...
34216         (phi_translate_1): ... this.
34217         (phi_translate): Move all caching here.  Cache all NARY
34218         and REFERENCE translations.
34219
34220 2010-03-19  David S. Miller  <davem@davemloft.net>
34221
34222         With help from Eric Botcazou.
34223         * config/sparc/sparc.c: Include dwarf2out.h.
34224         (emit_pic_helper): Delete.
34225         (pic_helper_symbol_name): Delete.
34226         (pic_helper_emitted_p): Delete.
34227         (pic_helper_needed): New.
34228         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
34229         (get_pc_thunk_name): New.
34230         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
34231         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
34232         Set pic_helper_needed to true.  Don't call emit_pic_helper.
34233         (sparc_expand_prologue): Update load_pic_register call.
34234         (sparc_output_mi_thunk): Likewise.
34235         (sparc_file_end): Emit a hidden comdat symbol for the PIC
34236         thunk if possible.  Output CFI information as needed.
34237
34238 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
34239             Jack Howarth  <howarth@bromo.med.uc.edu>
34240
34241         PR target/36399
34242         * config/i386/i386.h: Fix ABI on darwin x86-32.
34243
34244 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
34245
34246         * tree.h: Declare make_decl_rtl_for_debug.
34247         * varasm.c (make_decl_rtl_for_debug): New.
34248         * dwarf2out.c (rtl_for_decl_location): Call it.
34249         * cfgexpand.c (expand_debug_expr): Call it.
34250
34251 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
34252
34253         PR bootstrap/43399
34254         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
34255         mem_mode.
34256
34257         PR bootstrap/43403
34258         * var-tracking.c (vt_init_cfa_base): Do nothing if
34259         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
34260
34261 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
34262
34263         PR debug/42873
34264         * var-tracking.c (canonicalize_vars_star): New.
34265         (dataflow_post_merge_adjust): Use it.
34266
34267 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
34268
34269         PR debug/43058
34270         * var-tracking.c (non_suitable_const): New function.
34271         (add_uses): For DEBUG_INSNs with constants, don't record any
34272         value, instead just the constant value itself.
34273         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
34274         is not VAR_LOC_UNKNOWN_P, set var to the constant.
34275         (emit_notes_in_bb): Likewise.
34276         (emit_note_insn_var_location): For onepart variables if
34277         cur_loc is a VOIDmode constant, use DECL_MODE.
34278
34279 2010-03-18  Martin Jambor  <mjambor@suse.cz>
34280
34281         PR middle-end/42450
34282         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
34283         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
34284         all non-clones.  Moved call redirection...
34285         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
34286         (cgraph_materialize_all_clones): Dispose of all
34287         combined_args_to_skip bitmaps.
34288         (verify_cgraph_node): Do not check for edges pointing to wrong
34289         nodes in inline clones.
34290         * tree-inline.c (copy_bb): Call
34291         cgraph_redirect_edge_call_stmt_to_callee.
34292         * ipa.c (cgraph_remove_unreachable_nodes): Call
34293         cgraph_node_remove_callees even when there are used clones.
34294
34295 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
34296
34297         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
34298
34299 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
34300
34301         PR target/43383
34302         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
34303         for 32bit.
34304
34305 2010-03-18  Michael Matz  <matz@suse.de>
34306
34307         PR middle-end/43419
34308         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
34309         into sqrt(x) if we need to preserve signed zeros.
34310
34311 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
34312             Eric Botcazou  <ebotcazou@adacore.com>
34313
34314         PR rtl-optimization/43360
34315         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
34316         note if we don't know its invariant status.
34317
34318 2010-03-18  Michael Matz  <matz@suse.de>
34319
34320         PR tree-optimization/43402
34321         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
34322         PHI chains of ssa names registered for update.
34323
34324 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
34325
34326         PR target/42427
34327         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
34328         non-offsettable and pre_modify update addressing.
34329         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
34330         and "2" alternatives "#".
34331         (*movdd_softfloat32): Make all alternatives "#";
34332         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
34333         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
34334         (*movdf_softfloat32): Make all alternatives "#";
34335         (movdi): Use the new DIFD mode iterator to create a common splitter
34336         for movdi, movdf and movdd patterns.
34337
34338 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
34339
34340         * common.opt (dumpdir): Remove redundant tab.
34341
34342 2010-03-17  Martin Jambor  <mjambor@suse.cz>
34343
34344         PR tree-optimization/43347
34345         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
34346         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
34347
34348 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
34349
34350         PR rtl-optimization/42216
34351         * regrename.c (create_new_chain): New function, broken out from...
34352         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
34353         appending a use to an empty chain.
34354         (build_def_use): Remove previous changes that convert OP_INOUT to
34355         OP_OUT operands; instead detect the case where an OP_INOUT operand
34356         uses a previously untracked register and create an empty chain for it.
34357
34358 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34359
34360         * doc/extend.texi (Function Attributes): Rewrite unfinished
34361         sentence in ms_abi documentation.
34362
34363 2010-03-17  Alan Modra  <amodra@gmail.com>
34364
34365         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
34366         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
34367         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
34368         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
34369
34370 2010-03-16  Richard Henderson  <rth@redhat.com>
34371
34372         PR middle-end/43365
34373         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
34374         (lower_try_finally): Save and restore eh_seq around the expansion
34375         of the try-finally.
34376
34377 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
34378
34379         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
34380         statements before splitting block.
34381
34382 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34383
34384         * doc/sourcebuild.texi (Testsuites): Fix markup.
34385         Use pathnames relative to gcc/testsuite.
34386         (Test Directives): Move description of how timeout is determined.
34387         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
34388         (C Tests): Correct gcc.misc-tests directory.
34389         Framework tests now live in gcc.test-framework.
34390
34391 2010-03-16  Richard Guenther  <rguenther@suse.de>
34392
34393         PR middle-end/43379
34394         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
34395         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
34396
34397 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
34398             Alexandre Oliva  <aoliva@redhat.com>
34399
34400         PR tree-optimization/42917
34401         * lambda-code.c (remove_iv): Skip debug statements.
34402         (lambda_loopnest_to_gcc_loopnest): Likewise.
34403         (not_interesting_stmt): Debug statements are not interesting.
34404
34405 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
34406
34407         PR debug/43051
34408         PR debug/43092
34409         * cselib.c (cselib_preserve_constants,
34410         cfa_base_preserved_val): New static variables.
34411         (preserve_only_constants): New function.
34412         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
34413         clear its REG_VALUES.  If cselib_preserve_constants, don't
34414         empty the whole hash table, but preserve there VALUEs with constants,
34415         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
34416         (cselib_preserve_cfa_base_value): New function.
34417         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
34418         (cselib_init): Change argument to int bitfield.  Set
34419         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
34420         is in it.
34421         (cselib_finish): Clear cselib_preserve_constants and
34422         cfa_base_preserved_val.
34423         * cselib.h (enum cselib_record_what): New enum.
34424         (cselib_init): Change argument to int.
34425         (cselib_preserve_cfa_base_value): New prototype.
34426         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
34427         * dse.c (dse_step1): Likewise.
34428         * cfgcleanup.c (thread_jump): Likewise.
34429         * sched-deps.c (sched_analyze): Likewise.
34430         * gcse.c (local_cprop_pass): Likewise.
34431         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
34432         If FN is non-NULL, call the callback always and whenever it returns
34433         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
34434         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
34435         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
34436         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
34437         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
34438         * var-tracking.c: Include recog.h.
34439         (bb_stack_adjust_offset): Remove.
34440         (vt_stack_adjustments): Don't call it, instead just gather the
34441         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
34442         (adjust_stack_reference): Remove.
34443         (compute_cfa_pointer): New function.
34444         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
34445         (struct adjust_mem_data): New type.
34446         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
34447         functions.
34448         (get_address_mode): New function.
34449         (replace_expr_with_values): Use it.
34450         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
34451         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
34452         (adjust_sets): Remove.
34453         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
34454         Use get_address_mode.
34455         (get_adjusted_src): Remove.
34456         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
34457         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
34458         (add_with_sets): Don't call adjust_sets.
34459         (fp_setter, vt_init_cfa_base): New functions.
34460         (vt_initialize): Change return type to bool.  Move most of pool etc.
34461         initialization to the beginning of the function from end.  Pass
34462         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
34463         If !frame_pointer_needed, call vt_stack_adjustment before mos
34464         vector is filled, call vt_init_cfa_base if argp/framep has been
34465         eliminated to sp.  If frame_pointer_needed and argp/framep has
34466         been eliminated to hard frame pointer, set
34467         hard_frame_pointer_adjustment and call vt_init_cfa_base after
34468         encountering fp setter in the prologue.  For MO_ADJUST, call
34469         log_op_type before pusing the op into mos vector, not afterwards.
34470         Call adjust_insn before cselib_process_insn/add_with_sets,
34471         call cancel_changes (0) afterwards.
34472         (variable_tracking_main_1): Adjust for vt_initialize calling
34473         vt_stack_adjustments and returning whether it succeeded or not.
34474
34475 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
34476
34477         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
34478         debug statements.
34479
34480 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
34481
34482         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
34483         has been set.
34484         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
34485         drap_reg has not been set.
34486
34487 2010-03-15  Michael Matz  <matz@suse.de>
34488
34489         PR middle-end/43300
34490         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
34491         use it to expand block copies.
34492         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
34493         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
34494         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
34495
34496 2010-03-15  Richard Guenther  <rguenther@suse.de>
34497
34498         PR tree-optimization/43367
34499         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
34500         elimination check.
34501
34502 2010-03-15  Richard Guenther  <rguenther@suse.de>
34503
34504         PR tree-optimization/43317
34505         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
34506
34507 2010-03-15  Martin Jambor  <mjambor@suse.cz>
34508
34509         PR tree-optimization/43141
34510         * tree-sra.c (create_abstract_origin): New function.
34511         (modify_function): Call create_abstract_origin.
34512
34513 2010-03-15  Chris Demetriou  <cgd@google.com>
34514
34515         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
34516         wasn't copied.
34517
34518 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34519
34520         PR middle-end/43354
34521         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
34522         call insert_out_of_ssa_copy for default definitions.
34523
34524 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34525
34526         * graphite-clast-to-gimple.c (my_long_long): Defined.
34527         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
34528         * graphite-sese-to-poly.c (my_long_long): Defined.
34529         (scop_ivs_can_be_represented): Use it.
34530
34531 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34532
34533         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
34534         graphite-max-bbs-per-function, and loop-block-tile-size.
34535         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
34536         with "maximum".
34537         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
34538
34539 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34540
34541         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
34542         forward declaration.
34543         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
34544         (add_upper_bounds_from_estimated_nit): New.
34545         (build_loop_iteration_domains): Use it.
34546
34547 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34548
34549         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
34550
34551 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34552
34553         PR middle-end/43306
34554         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
34555         should be an INTEGER_CST.  Also handle CASE_CONVERT.
34556
34557 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34558
34559         * graphite.c (graphite_initialize): To bound the number of bbs per
34560         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
34561         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
34562         * doc/invoke.texi: Document it.
34563
34564 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34565
34566         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
34567         * graphite-sese-to-poly.h (build_poly_scop): Same.
34568
34569 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
34570
34571         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
34572         the number of parameters in the scop.  Use as an upper bound
34573         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
34574         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
34575         * doc/invoke.texi: Document it.
34576
34577 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
34578
34579         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
34580         * doc/c-tree.texi: Remove.
34581         * doc/generic.texi: Merge c-tree.texi here.
34582         * doc/gccint.texi (Trees): Remove menu entry.
34583         (c-tree.texi): Remove @include.
34584         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
34585         * doc/languages.texi (Reading RTL): Ditto.
34586
34587 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
34588
34589         PR target/42869
34590         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
34591
34592 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
34593
34594         PR middle-end/42431
34595         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
34596         code added to work around reload clobbering CONST insns.
34597
34598 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
34599
34600         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
34601         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
34602         (cselib_preserve_only_values): Remove retain argument, don't
34603         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
34604         * cselib.h (cselib_preserve_only_values): Remove retain argument.
34605         * var-tracking.c (micro_operation): Move insn field before union.
34606         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
34607         (struct variable_tracking_info_def): Remove n_mos field, change
34608         mos into a vector of micro_operations.
34609         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
34610         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
34611         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
34612         changing into a vector.
34613         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
34614         come before all other uops generated by add_stores.
34615         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
34616         argument removal.
34617         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
34618         a vector.  Run just one pass over the bbs instead of separate counting
34619         and computation phase.
34620         (vt_finalize): Free VTI (bb)->mos vector instead of array.
34621
34622         PR debug/43329
34623         * tree-inline.c (remap_decls): Put old_var rather than origin_var
34624         into *nonlocalized_list vector.
34625         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
34626         even if origin is non-NULL.
34627         (gen_variable_die): Likewise.
34628         (process_scope_var): Don't change origin.
34629         (gen_decl_die): Likewise.
34630         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
34631         before adding new edges instead of after it, fix moving over
34632         debug stmts.
34633
34634 2010-03-11  David S. Miller  <davem@davemloft.net>
34635
34636         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
34637         of four.
34638         * configure: Rebuild.
34639
34640 2010-03-11  Martin Jambor  <mjambor@suse.cz>
34641
34642         PR tree-optimization/43257
34643         * tree.c (assign_assembler_name_if_neeeded): New function.
34644         (free_lang_data_in_cgraph): Assembler name assignment moved to the
34645         above new function.
34646         * tree.h (assign_assembler_name_if_neeeded): Declare.
34647         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
34648         the function if needed.
34649
34650 2010-03-11  Chris Demetriou  <cgd@google.com>
34651
34652         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
34653         include/stdint-gcc.h, and include/stdint.h world-readable.
34654
34655 2010-03-11  Richard Guenther  <rguenther@suse.de>
34656
34657         PR tree-optimization/43255
34658         * tree-vrp.c (process_assert_insertions_for): Do not insert
34659         asserts for trivial conditions.
34660
34661 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34662
34663         PR tree-optimization/43280
34664         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
34665         generation.  Move calculation of size out of the if branch.
34666         (find_bswap): Modify compare number generation.
34667
34668 2010-03-11  Richard Guenther  <rguenther@suse.de>
34669
34670         PR lto/43200
34671         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
34672         (input_gimple_stmt): Fixup handled component types during
34673         operand read.  Also fix up decls in ADDR_EXPRs.
34674
34675 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
34676
34677         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
34678         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
34679
34680 2010-03-10  Jan Hubicka  <jh@suse.cz>
34681
34682         PR c/43288
34683         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
34684         * varasm.c (get_variable_section): Don't do that here...
34685         (make_decl_rtl): ... and here.
34686         (do_assemble_alias): Produce decl RTL.
34687         (assemble_alias): Likewise.
34688
34689 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
34690
34691         PR debug/43290
34692         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
34693         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
34694         of fde->vdrap_reg.
34695         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
34696         (based_loc_descr): Only express drap or vdrap regno based expressions
34697         using DW_OP_fbreg when not optimizing.
34698         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
34699         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
34700         REG_CFA_SET_VDRAP note.
34701
34702 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
34703
34704         PR tree-optimization/43236
34705         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
34706         error in calculation of base address in reverse iteration case.
34707         (generate_builtin): Take number of latch executions if the statement
34708         is in the latch.
34709
34710 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
34711
34712         PR middle-end/42859
34713         * tree-eh.c: Include pointer-set.h.
34714         (lower_eh_dispatch): Filter out duplicate case labels and
34715         remove the unneeded edge when the label is unused.  Return
34716         true when some edges are removed.
34717         (execute_lower_eh_dispatch): When any lowering resulted in
34718         removing an edge, also delete unreachable blocks.
34719
34720 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
34721
34722         PR bootstrap/43287
34723         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
34724         UNSPEC_MACHOPIC_OFFSET.
34725
34726 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
34727
34728         PR target/43294
34729         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
34730         (m68k_delegitimize_address): New function.
34731
34732 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
34733
34734         PR debug/43299
34735         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
34736
34737         PR debug/43299
34738         * var-tracking.c (adjust_sets): New function.
34739         (count_with_sets, add_with_sets): Use it.
34740         (get_adjusted_src): New inline function.
34741         (add_stores): Use it.
34742
34743         PR debug/43304
34744         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
34745         call cselib_dummy_expand_value_rtx_cb instead of
34746         cselib_expand_value_rtx_cb.
34747
34748         PR debug/43293
34749         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
34750         * config/i386/i386.c: Include debug.h and dwarf2out.h.
34751         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
34752         and .cfi_endproc around the pic thunks.
34753         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
34754         all queued unwind info register saves are saved before the call.
34755         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
34756         considered as sp-=4 for unwind info and the pop as sp+=4 which
34757         also clobbers dest, but doesn't actually restore it.
34758
34759         PR debug/43290
34760         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
34761         RTX_FRAME_RELATED_P.
34762
34763 2010-03-09  Jie Zhang  <jie@codesourcery.com>
34764
34765         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
34766         whitespaces in output template.
34767
34768 2010-03-09  Jie Zhang  <jie@codesourcery.com>
34769
34770         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
34771         out array boundary.
34772
34773 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
34774
34775         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
34776         builtins.exp in a separate job.
34777
34778 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34779
34780         * graphite-sese-to-poly.c (add_param_constraints): Use
34781         lower_bound_in_type and upper_bound_in_type.
34782
34783 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34784
34785         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
34786         instead of unsigned_type_node.
34787
34788 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34789             Reza Yazdani  <reza.yazdani@amd.com>
34790
34791         PR middle-end/43065
34792         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
34793         on pointer type parameters.
34794
34795 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
34796
34797         PR middle-end/42644
34798         PR middle-end/42130
34799         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
34800         handle conversions from pointer to integers.
34801         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
34802         induction variable, to be able to work with code generated by CLooG.
34803         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
34804         (build_poly_scop): Bail out if we cannot codegen a loop.
34805
34806 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
34807
34808         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
34809         code generation with gloog_error.
34810
34811 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34812
34813         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
34814         Call fold_convert on all the returned values.
34815         (expand_scalar_variables_expr): Pass to
34816         expand_scalar_variables_ssa_name the type of the resulting expression.
34817
34818 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34819
34820         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
34821         ppl_min_for_le_pointset.
34822         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
34823         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
34824
34825 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34826
34827         * graphite-dependences.c (map_into_dep_poly): Removed.
34828         (dependence_polyhedron_1): Use combine_context_id_scat.
34829
34830 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34831
34832         * graphite-poly.h (struct poly_scattering): Add layout documentation.
34833         (struct poly_bb): Same.
34834         (combine_context_id_scat): New.
34835
34836 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34837
34838         PR middle-end/42326
34839         * sese.c (name_defined_in_loop_p): Return false for default
34840         definitions.
34841
34842 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34843
34844         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
34845         and clean up the logic.
34846
34847 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
34848
34849         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
34850         early return.
34851
34852 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
34853
34854         * var-tracking.c (remove_cselib_value_chains): Define only for
34855         ENABLE_CHECKING.
34856         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
34857         delete_slot_part, emit_notes_for_differences_1): Don't call
34858         remove_cselib_value_chains here.
34859         (set_slot_part, emit_notes_for_differences_2): Don't call
34860         add_cselib_value_chains here.
34861         (preserved_values): New vector.
34862         (preserve_value): New function.
34863         (add_uses, add_stores, vt_add_function_parameters): Use it
34864         instead of cselib_preserve_value.
34865         (changed_values_stack): New vector.
34866         (check_changed_vars_0): New function.
34867         (check_changed_vars_1, check_changed_vars_2): Use it.
34868         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
34869         changed_values_stack VALUEs.
34870         (vt_emit_notes): For all preserved_values call
34871         add_cselib_value_chains.  If ENABLE_CHECKING call
34872         remove_cselib_value_chains before verifying value_chains is empty.
34873         Initialize and free changed_values_stack.
34874         (vt_initialize): Initialize preserved_values.
34875         (vt_finalize): Free preserved_values.
34876
34877 2010-03-08  Richard Guenther  <rguenther@suse.de>
34878
34879         PR tree-optimization/43269
34880         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
34881         region detection.
34882
34883 2010-03-08  Martin Jambor  <mjambor@suse.cz>
34884
34885         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
34886         (ipa_is_param_called): Removed.
34887         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
34888         (ipa_print_node_params): Do not print the called flag.
34889         (ipa_write_node_info): Do not stream the called flag.
34890         (ipa_read_node_info): Likewise.
34891
34892 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
34893
34894         PR debug/43176
34895         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
34896         * cselib.c (struct expand_value_data): Add dummy field.
34897         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
34898         dummy to false.
34899         (cselib_dummy_expand_value_rtx_cb): New function.
34900         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
34901         any rtl.
34902         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
34903         * var-tracking.c: Include pointer-set.h.
34904         (variable): Change n_var_parts to char from int.  Add
34905         cur_loc_changed and in_changed_variables fields.
34906         (variable_canonicalize): Remove.
34907         (shared_var_p): New inline function.
34908         (unshare_variable): Maintain cur_loc_changed and
34909         in_changed_variables fields.  If var was in changed_variables,
34910         replace it there with new_var.  Just copy cur_loc instead of
34911         resetting it to something else.
34912         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
34913         (dataflow_set_union): Don't call variable_canonicalize.
34914         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
34915         of their DEBUG_EXPR_TREE_DECLs.
34916         (canonicalize_loc_order_check): Verify that cur_loc is NULL
34917         and in_changed_variables and cur_loc_changed is false.
34918         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
34919         and cur_loc_changed.  Don't update cur_loc here.
34920         (variable_merge_over_src): Don't call variable_canonicalize.
34921         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
34922         removing loc that is equal to cur_loc, clear cur_loc,
34923         set cur_loc_changed and ensure variable_was_changed is called.
34924         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
34925         compare pointers in cur_loc check, if it is equal to loc,
34926         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
34927         (variable_different_p): Remove compare_current_location argument,
34928         don't compare cur_loc.
34929         (dataflow_set_different_1): Adjust variable_different_p caller.
34930         (variable_was_changed): If dv had some var in changed_variables
34931         already, reset in_changed_variables flag for it and propagate
34932         cur_loc_changed over to the new variable.  On empty var
34933         always set cur_loc_changed.  Set in_changed_variables on whatever
34934         var is added to changed_variables.
34935         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
34936         Use shared_var_p.  When removing loc that is equal to cur_loc,
34937         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
34938         end, don't set it to something else, just call variable_was_changed.
34939         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
34940         loc being removed, clear cur_loc and set cur_loc_changed.
34941         Set cur_loc_changed if all locations have been removed.
34942         (struct expand_loc_callback_data): New type.
34943         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
34944         allocated.  Always create SUBREGs if simplify_subreg failed.
34945         Prefer to use cur_loc, when that fails and still in
34946         changed_variables (and seen first time) recompute it.  Set
34947         cur_loc_changed of variables which had to change cur_loc and
34948         compute elcd->cur_loc_changed if any of the subexpressions used
34949         had to change cur_loc.
34950         (vt_expand_loc): Adjust to pass arguments in
34951         expand_loc_callback_data structure.
34952         (vt_expand_loc_dummy): New function.
34953         (emitted_notes): New variable.
34954         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
34955         that weren't used for any other decl in current
34956         emit_notes_for_changes call call vt_expand_loc_dummy to update
34957         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
34958         first loc_chain location if NULL before.  Always use just
34959         cur_loc instead of first loc_chain location.  When cur_loc_changed
34960         is false, when not --enable-checking=rtl just don't emit any note.
34961         When rtl checking, compute the note and assert it is the same
34962         as previous note.  Clear cur_loc_changed and in_changed_variables
34963         at the end before removing from changed_variables.
34964         (check_changed_vars_3): New function.
34965         (emit_notes_for_changes): Traverse changed_vars to call
34966         check_changed_vars_3 on each changed var.
34967         (emit_notes_for_differences_1): Clear cur_loc_changed and
34968         in_changed_variables.  Recompute cur_loc of new_var.
34969         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
34970         (vt_emit_notes): Initialize and destroy emitted_notes.
34971
34972 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
34973
34974         PR rtl-optimization/42220
34975         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
34976         Use verify_reg_tracked to determine if we should use OP_OUT rather
34977         than OP_INOUT.
34978         (build_def_use): If we see an in-out operand for a register that we
34979         know nothing about, treat is an output if possible, fail the block if
34980         not.
34981
34982 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
34983
34984         PR debug/42897
34985         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
34986         permanently.
34987
34988 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
34989
34990         PR debug/42897
34991         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
34992         uses of relevant DEFs that are dead outside the loop too.
34993
34994 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
34995
34996         * var-tracking.c (dataflow_set_merge): Swap src and src2.
34997         Reverted:
34998         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
34999         PR debug/41371
35000         * var-tracking.c (values_to_unmark): New variable.
35001         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
35002         values_to_unmark vector.  Moved body to...
35003         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
35004         instead queue it into values_to_unmark vector.
35005         (vt_find_locations): Free values_to_unmark vector.
35006
35007 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
35008
35009         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
35010         (site.exp): Export them when plugins are enabled.
35011
35012 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
35013
35014         PR middle-end/42326
35015         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
35016         that contain scevs.
35017         (chrec_fold_multiply): Same.
35018
35019 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
35020
35021         PR c/43248
35022         * c-decl.c (build_compound_literal): Return early if init is
35023         an error_mark_node.
35024
35025 2010-03-04  Martin Jambor  <mjambor@suse.cz>
35026
35027         PR tree-optimization/43164
35028         PR tree-optimization/43191
35029         * tree-sra.c (type_consists_of_records_p): Reject records with
35030         zero-size bit-fields at the end.
35031
35032 2010-03-04  Mike Stump  <mikestump@comcast.net>
35033
35034         * Makefile.in (TAGS): Remove *.y.
35035
35036 2010-03-04  Richard Guenther  <rguenther@suse.de>
35037
35038         PR tree-optimization/40761
35039         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
35040         in reverse order.
35041         (my_rev_post_order_compute): New function.
35042         (init_pre): Call it.
35043
35044 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
35045
35046         PR middle-end/43209
35047         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
35048         decrease the cost of an IV candidate when the cost is infinite.
35049
35050 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35051
35052         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
35053         Use '3DNow!' for the extension of that name, ensure normal space
35054         after the string.
35055         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
35056
35057 2010-03-03  Jeff Law  <law@redhat.com>
35058
35059         * PR middle-end/32693
35060         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
35061         than gen_rtx_SUBREG.
35062         (extract_bit_field_1): Likewise.
35063
35064 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
35065
35066         * doc/sourcebuild.texi (Test directives): Document that arguments
35067         include-opts and exclude-opts are now optional for dg-skip-if,
35068         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
35069
35070 2010-03-03  Jason Merrill  <jason@redhat.com>
35071
35072         PR c++/12909
35073         * cgraph.h (varpool_node): Add extra_name field.
35074         * varpool.c (varpool_extra_name_alias): New.
35075         (varpool_assemble_decl): Emit extra name aliases.
35076         (varpool_mark_needed_node): Look past an extra name alias.
35077         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
35078         * lto-streamer-in.c (lto_input_tree): Read it.
35079         * lto-streamer-out.c (output_unreferenced_globals): Write it.
35080
35081 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
35082
35083         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
35084         (sparc*-*-solaris2*): ...this.
35085
35086 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
35087
35088         PR debug/43229
35089         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
35090         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
35091         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
35092         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
35093
35094         PR debug/43237
35095         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
35096         fallthrough to default handling, just with want_address 0 instead of 2.
35097         For single element lists, add_AT_loc directly, otherwise create an
35098         artificial variable DIE and stick location list to it.
35099
35100         PR debug/43177
35101         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
35102         (VAL_EXPR_HAS_REVERSE): Define.
35103         (reverse_op): New function.
35104         (add_stores): For reversible operations add an extra MO_VAL_USE.
35105
35106 2010-03-02  Jason Merrill  <jason@redhat.com>
35107
35108         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
35109
35110 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
35111
35112         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
35113         (sparc64-*-linux*): Likewise.
35114         (sparc64-*-solaris2*): Include assembler files before linker ones.
35115         (sparc-*-solaris2*): Simplify and reorder to match previous case.
35116         * config/sparc/gas.h: Delete.
35117         * config/sparc/sol2-64.h: Add copyright notice.
35118         * config/sparc/sol2-gas-bi.h: Likewise.
35119         * config/sparc/sol2-gld.h: Likewise.
35120         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
35121         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
35122         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
35123         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
35124         (sparc_elf_asm_named_section): Rename into...
35125         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
35126
35127 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
35128
35129         * config/alpha/alpha.c (override_options): Fix -mtune error message.
35130
35131 2010-03-02  Jeff Law  <law@redhat.com>
35132
35133         PR middle-end/42431
35134         * reload1.c (rtx_p, substitute_stack): Declare.
35135         (substitute): Record addresses of changed rtxs.
35136         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
35137         Restore the original rtx when complete.
35138         (reload): Free subsitute_stack when complete.
35139
35140 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
35141
35142         * doc/gccint.texi (menu): Add Testsuites as a chapter.
35143         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
35144         new chapter.
35145         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
35146         LTO Testing, gcov Testing, profopt Testing, compat Testing,
35147         Torture Tests): Change from subsection to section.
35148
35149 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
35150             Steven Bosscher  <steven@gcc.gnu.org>
35151
35152         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
35153         instead of bb.
35154
35155 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
35156
35157         PR middle-end/42640
35158         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
35159         the assignment from the new induction variable to the assignment
35160         of the value from the original loop PHI function.
35161
35162 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
35163             Daniel Jacobowitz  <dan@codesourcery.com>
35164
35165         * doc/sourcebuild.texi (Test directives): Clarify options to
35166         dg-skip-if.
35167
35168 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35169
35170         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
35171         Disable cfi directives unless GCC and gas agree on using read-only
35172         .eh_frame sections for 64-bit.
35173         * configure: Regenerate.
35174
35175 2010-03-01  Richard Guenther  <rguenther@suse.de>
35176
35177         PR tree-optimization/43220
35178         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
35179         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
35180
35181 2010-03-01  Richard Guenther  <rguenther@suse.de>
35182             Martin Jambor  <mjambor@suse.cz>
35183
35184         PR middle-end/41250
35185         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
35186         gimplified parameters.
35187
35188 2010-03-01  Christian Bruel  <christian.bruel@st.com>
35189
35190         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
35191
35192 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
35193
35194         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
35195
35196 2010-03-01  Richard Guenther  <rguenther@suse.de>
35197
35198         PR middle-end/43213
35199         * expr.c (expand_assignment): Use the alias-oracle to tell
35200         if the rhs aliases the result decl.
35201
35202 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35203
35204         PR pch/14940
35205         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
35206         to sol_gt_pch_get_address.
35207         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
35208         64-bit, SPARC and x86.
35209         (sol_gt_pch_get_address): New function.
35210
35211 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
35212
35213         * toplev.h (inform_n, error_n): Declare.
35214         * diagnostic.c (inform_n, error_n): New function.
35215
35216 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
35217
35218         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
35219         has no rtl yet when processing local_decls, queue it and recheck
35220         if deferred stack allocation hasn't assigned it rtl.
35221
35222 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
35223
35224         * config/sh/sh.c (unspec_bbr_uid): New.
35225         (gen_block_redirect): Use it instead of INSN_UID.
35226         (gen_far_branch): Likewise.
35227
35228 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
35229
35230         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
35231         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
35232
35233 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35234
35235         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
35236         (Warning Options): -Wno-conversion-null is valid for
35237         Objective-C++ as well.
35238         * doc/tm.texi (Named Address Spaces): Likewise.
35239         * doc/plugins.texi (Plugins): Replace TABs with spaces.
35240         * doc/tree-ssa.texi (Tree SSA): Likewise.
35241
35242 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35243
35244         PR bootstrap/43202
35245         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
35246         by default.  Don't set the default arch for
35247         i[34567]86-*-darwin*|x86_64-*-darwin*.
35248
35249 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35250
35251         PR bootstrap/43202
35252         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
35253         default.  Set the default 32bit/64bit archs with $with_arch
35254         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
35255
35256 2010-02-27  Richard Guenther  <rguenther@suse.de>
35257
35258         PR tree-optimization/43186
35259         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
35260         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
35261         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
35262         unroller iterations.
35263
35264 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
35265
35266         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
35267         required and i[34567]86-*-* targets don't support 64bit ISA.
35268
35269 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
35270
35271         PR ada/43096
35272         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
35273         the same alias set.
35274
35275 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
35276
35277         * config.gcc: Set the default arch at least to Prescott for
35278         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
35279         if SSE math is enabled.
35280
35281 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35282
35283         * diagnostic.c (diagnostic_initialize): Update.
35284         (diagnostic_report_diagnostic): Test inhibit_notes_p for
35285         informative notes.
35286         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
35287         (diagnostic_inhibit_notes): New.
35288         * toplev.c (process_options): inhibit notes with -fcompare-debug.
35289
35290 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35291
35292         PR c/20631
35293         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
35294         * doc/standards.texi: Likewise.
35295         * doc/extend.texi: Likewise.
35296         * doc/trouble.texi: Likewise.
35297         * doc/cppopts.texi: Likewise.
35298         * doc/install.texi: Likewise.
35299         * c.opt (std=c90,std=gnu90): New options.
35300         * c-opts.c (c_common_handle_option): Handle them.
35301
35302 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35303
35304         PR c/24577
35305         * c-decl.c (undeclared_variable): Use an informative note.
35306
35307 2010-02-26  Richard Guenther  <rguenther@suse.de>
35308
35309         PR tree-optimization/43186
35310         * gimple.h (gimple_fold): Remove.
35311         * gimple.c (gimple_fold): Remove.  Inline into single user ...
35312         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
35313         Try harder for conditions.
35314
35315 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
35316
35317         PR debug/43190
35318         * function.c (used_types_insert): Don't skip through named pointer
35319         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
35320         and it is different from the main variant's type.
35321
35322 2010-02-26  Nick Clifton  <nickc@redhat.com>
35323
35324         * config/rx/rx.md (sminsi3): Remove bogus alternative.
35325
35326 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
35327
35328         * config.gcc: Support --with-fpmath=sse for x86.
35329
35330         * config/i386/ssemath.h: New.
35331
35332         * doc/install.texi (--with-fpmath=sse): Documented.
35333
35334 2010-02-26  Richard Guenther  <rguenther@suse.de>
35335
35336         PR tree-optimization/43188
35337         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
35338         vector types of over-aligned element type.
35339
35340 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
35341
35342         PR target/43175
35343         * config/i386/i386.c (expand_vec_perm_blend): Use correct
35344         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
35345
35346 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
35347
35348         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
35349
35350 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
35351
35352         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
35353         * var-tracking.c: Include diagnostic.h.
35354         (debug_dv): New function.
35355         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
35356
35357         PR debug/43160
35358         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
35359         (add_value_chain, add_value_chains, remove_value_chain,
35360         remove_value_chains): Handle DEBUG_EXPRs.
35361         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
35362
35363         PR debug/43161
35364         * regcprop.c (struct queued_debug_insn_change): New type.
35365         (struct value_data_entry): Add debug_insn_changes field.
35366         (struct value_data): Add n_debug_insn_changes field.
35367         (debug_insn_changes_pool): New variable.
35368         (free_debug_insn_changes, apply_debug_insn_changes,
35369         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
35370         (kill_value_one_regno): Call free_debug_insn_changes if needed.
35371         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
35372         fields.
35373         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
35374         changes for them.
35375         (copyprop_hardreg_forward_1): Don't call apply_change_group for
35376         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
35377         changes, call cprop_find_used_regs via note_stores.
35378         (copyprop_hardreg_forward): When copying vd from predecessor
35379         which has any queued DEBUG_INSN changes, make sure the pointers are
35380         cleared.  At the end call df_analyze and then if there are any
35381         DEBUG_INSN changes queued at the end of some basic block for still
35382         live registers, apply them.
35383         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
35384
35385 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
35386
35387         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
35388         (arm*-*-*): Ditto.
35389
35390 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
35391
35392         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
35393         targets.  Set the default with_cpu/with_arch from arch/cpu.
35394         Allow x86-64 and native for with_cpu/with_arch.
35395
35396 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
35397
35398         * ebitmap.c: Change calls to verify_popcount with calls to
35399         sbitmap_verify_popcount.
35400         (ebitmap_clear_bit): Fixed map->cacheindex test and
35401         map>cache update when bit clearing results in an empty
35402         element.
35403
35404 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
35405
35406         PR target/43154
35407         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
35408         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
35409         and support both V2DF and V2DI modes.
35410         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
35411         support both V2DF and V2DI modes.
35412         (general): Delete trailing whitespace from a few patterns.
35413
35414         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
35415         V2DF/V2DI interleave high/low builtins.
35416
35417         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
35418         new VSX builtins.
35419
35420         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
35421         interleave high/low functions.
35422
35423 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
35424
35425         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
35426         #pragma extern_prefix.
35427
35428 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
35429
35430         PR debug/43166
35431         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
35432         BLKmode, assert op0 is a MEM and just adjust its mode.
35433
35434         PR debug/43165
35435         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
35436         if bitpos isn't multiple of mode's bitsize.
35437
35438 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35439
35440         * c.opt (-ftemplate-depth=): New.
35441         (-ftemplate-depth-): Deprecate.
35442         * optc-gen.awk: Handle -ftemplate-depth=.
35443         * opth-gen.awk: Likewise.
35444         * c-opts.c (c_common_handle_option): Likewise.
35445         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
35446
35447 2010-02-24  Jason Merrill  <jason@redhat.com>
35448
35449         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
35450
35451 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35452
35453         * cfg.c (alloc_aux_for_block): Remove inline.
35454         (alloc_aux_for_edge): Likewise.
35455
35456 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35457
35458         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
35459
35460 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
35461
35462         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
35463         * config/i386/sol2-gas.h: New file.
35464         * config.gcc (i[34567]86-*-solaris2*): Use it.
35465
35466 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35467
35468         PR c/43128
35469         * c-typeck.c (ep_convert_and_check): New.
35470         (build_conditional_expr): Use it.
35471         (build_binary_op): Likewise.
35472
35473 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
35474
35475         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
35476
35477         PR debug/43150
35478         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
35479         bounds even for -O+.
35480         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
35481         expr needs to have DECL_NAME set.
35482
35483 2010-02-24  Nick Clifton  <nickc@redhat.com>
35484
35485         * config/mep/mep.c: Include gimple.h.
35486         (mep_function_uses_sp): Delete unused function.
35487         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
35488         parameters.  Use unsigned integers to count args.  Return a
35489         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
35490
35491 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
35492
35493         PR target/43107
35494         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
35495         greater or equal to nelt instead of 2 * nelt.
35496         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
35497         with nelt - 1.
35498
35499 2010-02-23  Jason Merrill  <jason@redhat.com>
35500
35501         PR debug/42800
35502         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
35503         in cfun->local_decls even if they have register types.
35504
35505         PR c++/42837
35506         * stor-layout.c (place_field): Don't warn about unnecessary
35507         DECL_PACKED if the type is packed.
35508
35509 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
35510
35511         PR target/43139
35512         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
35513         GOTOFF relocs, even when the base reg isn't pic pointer.
35514
35515 2010-02-23  Michael Matz  <matz@suse.de>
35516
35517         PR debug/43077
35518         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
35519         (expand_gimple_basic_block): Generate and use debug temps if there
35520         are debug uses left after the last real use of TERed ssa names.
35521         Unlink debug immediate uses when they are expanded.
35522
35523 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35524
35525         PR 43123
35526         * config/i386/i386.c (override_options): Reorganise to provide
35527         better error messages.
35528
35529 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
35530
35531         PR middle-end/43083
35532         * graphite-scop-detection.c (create_single_exit_edge): Move
35533         the call to find_single_exit_edge to....
35534         (create_sese_edges): ...here.  Don't handle multiple edges
35535         exiting the function.
35536         (build_graphite_scops): Don't handle multiple edges
35537         exiting the function.
35538
35539 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
35540
35541         PR middle-end/43097
35542         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
35543         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
35544
35545 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
35546
35547         PR middle-end/43026
35548         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
35549
35550 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35551
35552         PR c++/43126
35553         * c-typeck.c (convert_arguments): Print declaration location.
35554         * c-common.c (validate_nargs): Rename as
35555         builtin_function_validate_nargs.
35556         (check_builtin_function_arguments): Update.
35557
35558 2010-02-22  Richard Guenther  <rguenther@suse.de>
35559
35560         PR lto/43045
35561         * tree-inline.c (declare_return_variable): Use the type of
35562         the call stmt lhs if available.
35563
35564 2010-02-22  Duncan Sands  <baldrick@free.fr>
35565
35566         * passes.c (register_pass): Always consider all pass lists when
35567         ref_pass_instance_number is zero.
35568
35569 2010-02-22  Richard Guenther  <rguenther@suse.de>
35570
35571         PR tree-optimization/42749
35572         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
35573         parameter.  Do arithmetic in the original type.
35574         (update_accumulator_with_ops): Likewise.
35575         (adjust_accumulator_values): Adjust.
35576
35577 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35578
35579         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
35580         (QI to BLKmode splitter): New splitter.
35581
35582 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
35583
35584         * config/i386/i386.c (initial_ix86_tune_features): Turn on
35585         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
35586
35587 2010-02-22  Richard Guenther  <rguenther@suse.de>
35588
35589         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
35590
35591 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
35592
35593         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
35594         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
35595         ($(T)crti.o, $(T)crtn.o): Remove rules.
35596
35597 2010-02-21  Tobias Burnus  <burnus@net-b.de>
35598
35599         PR fortran/35259
35600         * doc/invoke.texi (-fassociative-math): Document that this
35601         option is automatically enabled for Fortran.
35602
35603 2010-02-20  David S. Miller  <davem@davemloft.net>
35604
35605         * configure.ac: Test if linker and assembler properly support
35606         GOTDATA_OP relocations.
35607         * configure: Rebuild.
35608         * config.in: Likewise.
35609         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
35610         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
35611         (movsi_high_pic): Likewise.
35612         (movdi_lo_sum_pic): Likewise.
35613         (movdi_high_pic): Likewise.
35614         (movsi_pic_gotdata_op): New pattern.
35615         (movdi_pic_gotdata_op): Likewise.
35616         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
35617         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
35618
35619 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
35620
35621         PR target/43067
35622         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
35623         attribute to ssemul.
35624         (xop_mulv2div2di3_high): Ditto.
35625
35626 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35627
35628         PR c++/35669
35629         * c.opt (Wconversion-null): New option.
35630         * doc/invoke.texi (Wconversion-null): Document.
35631
35632 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35633
35634         * common.opt (Wlarger-than-): Add Undocumented.
35635
35636 2010-02-19  Mike Stump  <mikestump@comcast.net>
35637
35638         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
35639
35640 2010-02-19  Jason Merrill  <jason@redhat.com>
35641
35642         PR target/40332
35643         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
35644         * configure: Likewise.
35645
35646 2010-02-20  Alan Modra  <amodra@gmail.com>
35647
35648         PR middle-end/42344
35649         * cgraph.h (cgraph_make_decl_local): Declare.
35650         * cgraph.c (cgraph_make_decl_local): New function.
35651         (cgraph_make_node_local): Use it.
35652         * cgraphunit.c (cgraph_function_versioning): Likewise.
35653         * ipa.c (function_and_variable_visibility): Likewise.
35654
35655 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
35656
35657         PR bootstrap/43121
35658         * except.c (sjlj_emit_function_enter): Don't call
35659         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
35660         directly.
35661         * rtl.h (add_reg_br_prob_note): Remove prototype.
35662
35663 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
35664
35665         PR 41779
35666         * c-common.c (conversion_warning): Remove widening conversions
35667         before checking the conversion of integers to reals.
35668
35669 2010-02-19  Mike Stump  <mikestump@comcast.net>
35670
35671         PR middle-end/43125
35672         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
35673
35674         PR objc/43061
35675         * cgraphunit.c (process_function_and_variable_attributes): Check
35676         DECL_PRESERVE_P instead of looking up attribute "used".
35677         * ipa-pure-const.c (check_decl): Likewise.
35678         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
35679         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
35680         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
35681         instead of attribute "used".
35682         * config/sol2-c.c (solaris_pragma_init): Likewise.
35683         (solaris_pragma_fini): Likewise.
35684
35685 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
35686
35687         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
35688         Use XCNEW instead of xcalloc.
35689         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
35690         XNEW instead of xmalloc.
35691         (get_fields): Use XNEWVEC instead of xmalloc.
35692
35693         PR debug/43084
35694         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
35695         populate vars array.
35696         (create_new_general_access): For debug stmts just reset value.
35697         (get_stmt_accesses): For accesses within debug stmts just record them
35698         using add_access_to_acc_sites instead of preventing the peeling or
35699         counting them as accesses.
35700
35701         PR middle-end/42233
35702         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
35703
35704 2010-02-19  Richard Guenther  <rguenther@suse.de>
35705
35706         PR tree-optimization/42916
35707         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
35708         instructions.
35709
35710 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
35711
35712         * configure.ac: Replace all uses of changequote in macro arguments
35713         with proper quoting.
35714
35715 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
35716
35717         PR middle-end/42233
35718         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
35719
35720 2010-02-19  Richard Guenther  <rguenther@suse.de>
35721
35722         PR tree-optimization/42944
35723         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
35724         test for aliasing with errno.
35725
35726 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
35727
35728         PR middle-end/42233
35729         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
35730         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
35731         * dojump.c: Include output.h.
35732         (inv): New inline function.
35733         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
35734         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
35735         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
35736         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
35737         argument, pass it down to other calls.
35738         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
35739         add REG_BR_PROB note to the conditional jump.
35740         * cfgexpand.c (add_reg_br_prob_note): Removed.
35741         (expand_gimple_cond): Don't call it, add the probability
35742         as last argument to jumpif_1/jumpifnot_1.
35743         * Makefile.in (dojump.o): Depend on output.h.
35744         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
35745         callers.
35746         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
35747         * stmt.c (do_jump_if_equal): Likewise.
35748         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
35749         * loop-unswitch.c (compare_and_jump_seq): Likewise.
35750         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
35751         Likewise.
35752         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
35753         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
35754         jumpifnot_1 callers.
35755         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
35756         callers.
35757         (store_expr): Adjust jumpifnot caller.
35758         (store_constructor): Adjust jumpif caller.
35759
35760         PR middle-end/42233
35761         * gimplify.c (gimple_boolify): For __builtin_expect call
35762         gimple_boolify also on its first argument.
35763
35764 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
35765
35766         * configure.ac (gnu-unique-object): Wrap regexps using [] in
35767         changequote block.
35768         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
35769         * configure: Regenerated.
35770
35771 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
35772
35773         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
35774         lang_hooks.types_compatible_p instead of comptypes.
35775
35776 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35777
35778         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
35779         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
35780         if __prefer_thumb__ is defined.
35781
35782 2010-02-18  Martin Jambor  <mjambor@suse.cz>
35783
35784         PR tree-optimization/43066
35785         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
35786         array with zero-sized element type.
35787
35788 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
35789
35790         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
35791         rtx, allocate struct var_loc_node here and return it to the
35792         caller, and only if it is actually needed.
35793         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
35794         move it earlier and return immediately if it returns NULL.
35795
35796 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
35797
35798         * config/sparc/gas.h: New file.  Restore
35799         TARGET_ASM_NAMED_SECTION to its ELF default.
35800         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
35801         check !HAVE_GNU_AS.
35802         * config/sparc/sparc.c (sparc_elf_asm_named_section):
35803         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
35804         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
35805         after sparc/sysv4.h.
35806
35807 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
35808
35809         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
35810
35811 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
35812
35813         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
35814         patterns from predicated pattern.
35815
35816 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
35817
35818         PR target/43103
35819         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
35820         for insn mnemonic suffix.
35821
35822 2010-02-17  Richard Guenther  <rguenther@suse.de>
35823
35824         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
35825         to loop PHI nodes.
35826
35827 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
35828
35829         PR debug/42918
35830         * caller-save.c (save_call_clobbered_regs): If BB ends with
35831         a DEBUG_INSN, move any notes in between last real insn and the last
35832         DEBUG_INSN after the last DEBUG_INSN.
35833
35834 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
35835
35836         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
35837         Fix return type.  Fix argument type.  Explain meaning of return value.
35838
35839 2010-02-16  Richard Guenther  <rguenther@suse.de>
35840
35841         PR tree-optimization/41043
35842         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
35843         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
35844         statements ...
35845         (vrp_visit_phi_node): ... but only for loop PHI nodes.
35846
35847 2010-02-16  Ira Rosen  <irar@il.ibm.com>
35848
35849         PR tree-optimization/43074
35850         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
35851         * tree-vect-loop.c (vect_analyze_loop_operations): Add
35852         vectorizable cycles in hybrid SLP check.
35853         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
35854
35855 2010-02-16  Richard Guenther  <rguenther@suse.de>
35856
35857         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
35858         (true_dependence): If memrefs_conflict_p computes must-alias
35859         trust it.  Move TBAA check after offset-based disambiguation.
35860         (canon_true_dependence): Likewise.
35861
35862 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
35863
35864         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
35865         * doc/invoke.texi: Document it.
35866         * var-tracking.c: Include toplev.h and params.h.
35867         (vt_find_locations): Return bool indicating success.  Compute
35868         hash sizes unconditionally.  Check new parameter, report.
35869         (variable_tracking_main_1): Check vt_find_locations results and
35870         retry.  Renamed from...
35871         (variable_tracking_main): ... this.  New wrapper to preserve
35872         flag_var_tracking_assignments.
35873         * Makefile.in (var-tracking.o): Adjust dependencies.
35874
35875 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
35876             Jakub Jelinek  <jakub@redhat.com>
35877
35878         PR target/42854
35879         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
35880         if weak_import attribute is present.
35881         * config/darwin.c (machopic_select_section): Likewise.
35882
35883 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
35884
35885         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
35886         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
35887         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
35888         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
35889
35890         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
35891         types.
35892
35893         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
35894         Fix argument types.
35895
35896         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
35897         Rewrite text to refer to the names.
35898
35899 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
35900
35901         * config/i386/i386-builtin-types.def
35902         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
35903         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
35904         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
35905         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
35906         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
35907         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
35908         IX86_BUILTIN_VPERMIL2PS256.
35909         (MULTI_ARG_4_DF2_DI_I): Defined.
35910         (MULTI_ARG_4_DF2_DI_I1): Defined.
35911         (MULTI_ARG_4_SF2_SI_I): Defined.
35912         (MULTI_ARG_4_SF2_SI_I1): Defined.
35913         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
35914         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
35915         __builtin_ia32_vpermil2ps256.
35916         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
35917         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
35918         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
35919         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
35920         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
35921         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
35922         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
35923         CODE_FOR_xop_vpermil2v8sf3.
35924         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
35925         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
35926         * config/i386/xopintrin.h (_mm_permute2_pd): New.
35927         (_mm256_permute2_pd): New.
35928         (_mm_permute2_ps): New.
35929         (_mm256_permute2_ps): New.
35930
35931 2010-02-15  Nick Clifton  <nickc@redhat.com>
35932
35933         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
35934         boolean parameters.  Use emit_jump_insn when emitting a pop
35935         instruction containing a return insn.
35936         (push): Use 'true' rather than '1' as second parameter to F.
35937         (h8300_expand_prologue): Likewise.
35938         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
35939         (h8300_expand_epilogue): Likewise.
35940
35941 2010-02-15  Richard Guenther  <rguenther@suse.de>
35942
35943         PR middle-end/43068
35944         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
35945         if that is zero.
35946
35947 2010-02-15  Nick Clifton  <nickc@redhat.com>
35948
35949         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
35950         delta.
35951
35952 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
35953
35954         * intl.c (fake_ngettext): New function.
35955         * intl.h (fake_ngettext): Declare.
35956         (ngettext): Define macro.
35957         * collect2.c (notice_translated): New function.
35958         (main): Use notice_translated and ngettext.
35959         * collect2.h (notice_translated): Declare.
35960
35961 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
35962
35963         * reorg.c (delete_computation): Comment fixes.
35964         * caller-save.c (setup_save_areas): Idem.
35965         * sel-sched-dump.c (dump_lv_set): Idem.
35966         * rtl.def: Idem.
35967
35968 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35969
35970         * config/s390/s390.c (s390_sched_init): New function.
35971         (TARGET_SCHED_INIT): Target hook defined.
35972
35973 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
35974             Jack Howarth  <howarth@bromo.med.uc.edu>
35975             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
35976
35977         PR target/42982
35978         Partial revert of unintended change in fix for PR41605.
35979         * config/darwin.h: Fix typo.
35980         * config/darwin9.h: Same.
35981
35982 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
35983
35984         * c-pch.c (pch_init): Clear v.
35985
35986 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
35987
35988         PR middle-end/42930
35989         * graphite-scop-detection.c (graphite_can_represent_scev): Call
35990         graphite_can_represent_init for MULT_EXPR.
35991
35992 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
35993
35994         PR middle-end/42914
35995         PR middle-end/42530
35996         * graphite-sese-to-poly.c (remove_phi): New.
35997         (translate_scalar_reduction_to_array): Call remove_phi.
35998
35999 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36000
36001         PR middle-end/42771
36002         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
36003         * graphite-clast-to-gimple.h (gloog): Update declaration.
36004         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
36005         * graphite-poly.h (struct poly_bb): Add missing comments.
36006         (struct scop): Add poly_scop_p field.
36007         (POLY_SCOP_P): New.
36008         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
36009         * graphite.c (graphite_transform_loops): Build the polyhedral
36010         representation for each scop before code generation.
36011         * sese.c (rename_variables_in_operand): Removed.
36012         (rename_variables_in_expr): Return the renamed expression.
36013         (rename_sese_parameters): New.
36014         * sese.h (rename_sese_parameters): Declared.
36015
36016 2010-02-11  Richard Guenther  <rguenther@suse.de>
36017
36018         PR tree-optimization/42998
36019         * tree-ssa-pre.c (create_expression_by_pieces): Treat
36020         POINTER_PLUS_EXPR properly.
36021
36022 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
36023             Changpeng Fang  <changpeng.fang@amd.com>
36024
36025         PR middle-end/40886
36026         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
36027         the cost of an IV candidate when the IV is used in a test against zero.
36028
36029         * gcc.dg/tree-ssa/ivopts-3.c: New.
36030
36031 2010-02-11  Richard Guenther  <rguenther@suse.de>
36032
36033         PR lto/41664
36034         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
36035         pointer-vs-decl case by swapping refs.  Handle some cases
36036         of pointer-vs-decl disambiguations more conservatively.
36037         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
36038         to false after expanding.
36039
36040 2010-02-11  Richard Guenther  <rguenther@suse.de>
36041
36042         PR driver/43021
36043         * gcc.c (process_command): Handle LTO file@offset case more
36044         appropriately.
36045
36046 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
36047
36048         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
36049         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
36050         of DEBUG_INSNs.
36051         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
36052
36053         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
36054         if MEM's mode size isn't DWARF2_ADDR_SIZE.
36055         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
36056         Optimize eq/ne comparisons when both arguments are known to be
36057         zero-extended.
36058         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
36059         Don't mask operands unnecessarily if they are known to be already
36060         zero-extended.
36061
36062 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
36063
36064         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
36065         instead of loop.
36066
36067 2010-02-10  Richard Guenther  <rguenther@suse.de>
36068
36069         PR tree-optimization/43017
36070         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
36071         for wrapping signed arithmetic.
36072
36073 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
36074
36075         PR debug/43010
36076         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
36077         if no debug info should be emitted for it.
36078
36079 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
36080
36081         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
36082         note when flag_exceptions is set.
36083
36084 2010-02-10  Duncan Sands  <baldrick@free.fr>
36085
36086         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
36087
36088 2010-02-10  Richard Guenther  <rguenther@suse.de>
36089
36090         PR c/43007
36091         * tree.c (get_unwidened): Handle constants.
36092         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
36093
36094 2010-02-10  Martin Jambor  <mjambor@suse.cz>
36095
36096         PR lto/42985
36097         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
36098         check for variable argument counts independently.
36099
36100 2010-02-10  Christian Bruel  <christian.bruel@st.com>
36101
36102         PR target/42841
36103         * config/sh/sh.c (find_barrier): Increase length for non delayed
36104         conditional branches.
36105
36106 2010-02-10  Christian Bruel  <christian.bruel@st.com>
36107
36108         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
36109
36110 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
36111
36112         * builtins.c (set_builtin_user_assembler_name): Also handle
36113         ffs if int is smaller than word.
36114
36115 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
36116
36117         PR middle-end/42973
36118         * ira-conflicts.c (get_dup): Remove.
36119         (process_reg_shuffles): Add new parameter.  Use it as an
36120         additional guard for copy generation.
36121         (add_insn_allocno_copies): Rewrite.
36122
36123 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
36124
36125         * common.opt (fsched2-use-traces): Preserved for backward
36126         compatibility.
36127         * doc/invoke.texi: Remove the documentation about option
36128         -fsched2-use-traces.
36129         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
36130         flag_sched2_use_traces.
36131         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
36132         the backward compatibility flag section.
36133
36134 2010-02-09  Richard Guenther  <rguenther@suse.de>
36135
36136         PR tree-optimization/43008
36137         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
36138         make HEAP variables initialized from global memory if they
36139         are not known builtin functions.
36140         (find_func_aliases): Adjust.
36141
36142 2010-02-09  Richard Guenther  <rguenther@suse.de>
36143
36144         PR tree-optimization/43000
36145         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
36146         arithmetic manually.
36147
36148 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
36149
36150         PR tree-optimization/42931
36151         * tree-loop-linear.c (try_interchange_loops): Don't call
36152         double_int_mul if estimated_loop_iterations failed.
36153
36154 2010-02-08  Martin Jambor  <mjambor@suse.cz>
36155
36156         PR middle-end/42898
36157         * tree-sra.c (build_accesses_from_assign): Do not mark in
36158         should_scalarize_away_bitmap if stmt has volatile ops.
36159         (sra_modify_assign): Do not process assigns piecemeal if if stmt
36160         has volatile ops.
36161
36162 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
36163
36164         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
36165
36166 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
36167
36168         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
36169         before the pattern.
36170
36171 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
36172
36173         PR middle-end/42946
36174         * df-core.c (df_finish_pass): Change type of saved_flags to int.
36175
36176 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
36177
36178         PR middle-end/42988
36179         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
36180         to unknown_dependence.
36181         (graphite_legal_transform_dr): Handle the unknown_dependence.
36182         (graphite_carried_dependence_level_k): Same.
36183
36184 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
36185
36186         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
36187
36188 2010-02-07  Richard Guenther  <rguenther@suse.de>
36189
36190         PR middle-end/42991
36191         * expr.c (get_inner_reference): Always initialize *pbitsize.
36192
36193 2010-02-07  Richard Guenther  <rguenther@suse.de>
36194
36195         PR middle-end/42956
36196         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
36197         new ARRAY_REFs on variable size element or minimal index arrays.
36198         Complete.
36199         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
36200         gimple_fold_indirect_ref.
36201
36202 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
36203
36204         PR target/42957
36205         * arm.c (arm_override_options): Just return if the user has specified
36206         an invalid fpu name.
36207
36208 2010-02-03  Jason Merrill  <jason@redhat.com>
36209
36210         PR c++/42870
36211         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
36212         i386_pe_maybe_record_exported_symbol.
36213
36214 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
36215
36216         PR target/42924
36217         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
36218         (pa_delegitimize_address): New function.
36219
36220 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
36221
36222         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
36223         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
36224
36225 2010-02-05  Richard Guenther  <rguenther@suse.de>
36226
36227         PR lto/42762
36228         * lto-streamer-in.c (get_resolution): Deal with references
36229         to undefined functions.
36230
36231 2010-02-05  Richard Guenther  <rguenther@suse.de>
36232
36233         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
36234         (fold_const_aggregate_ref): Likewise.
36235         (ccp_fold_stmt): Substitute loads.
36236         (maybe_fold_reference): Verify types before substituting.
36237         Unshare properly.
36238         (fold_gimple_assign): Unshare properly.
36239         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
36240
36241 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
36242
36243         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
36244         for rs6000_gen_cell_microcode.
36245
36246 2010-02-04  Richard Guenther  <rguenther@suse.de>
36247
36248         PR rtl-optimization/42952
36249         * dse.c (const_or_frame_p): Remove MEM handling.
36250
36251 2010-02-04  Nick Clifton  <nickc@redhat.com>
36252
36253         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
36254         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36255         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
36256         (mn10300_asm_output_mi_thunk): New function.
36257         (mn10300_can_output_mu_thunk): New function.
36258         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
36259         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
36260         (FUNCTION_ARG): Delete incorrect comment.
36261
36262 2010-02-03  Jason Merrill  <jason@redhat.com>
36263
36264         PR c++/40138
36265         * fold-const.c (operand_equal_p): Handle erroneous types.
36266
36267 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
36268
36269         * config/h8300/h8300.md (can_delay): Fix attibute condition.
36270
36271 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
36272
36273         PR rtl-optimization/42941
36274         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
36275         of xmalloc.
36276
36277 2010-02-03  Jason Merrill  <jason@redhat.com>
36278
36279         PR c++/35652
36280         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
36281
36282 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
36283
36284         PR debug/42896
36285         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
36286         (cselib_reset_table): Renamed from...
36287         (cselib_reset_table_with_next_value): ... this.
36288         (cselib_get_next_uid): Renamed from...
36289         (cselib_get_next_unknown_value): ... this.
36290         * cselib.c (next_uid): Renamed from...
36291         (next_unknown_value): ... this.
36292         (cselib_clear_table): Adjust.
36293         (cselib_reset_table): Adjust.  Renamed from...
36294         (cselib_reset_table_with_next_value): ... this.
36295         (cselib_get_next_uid): Adjust.  Renamed from...
36296         (cselib_get_next_unknown_value): ... this.
36297         (get_value_hash): Use hash.
36298         (cselib_hash_rtx): Likewise.
36299         (new_cselib_val): Adjust.  Set and dump uid.
36300         (cselib_lookup_mem): Pass next_uid as hash.
36301         (cselib_subst_to_values): Likewise.
36302         (cselib_log_lookup): Dump uid.
36303         (cselib_lookup): Pass next_uid as hash.  Adjust.
36304         (cselib_process_insn): Adjust.
36305         (cselib_init): Initialize next_uid.
36306         (cselib_finish): Adjust.
36307         (dump_cselib_table): Likewise.
36308         * dse.c (canon_address): Dump value uid.
36309         * print-rtl.c (print_rtx): Print value uid.
36310         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
36311         (dvuid): New type.
36312         (dv_uid): New function, sort of renamed from...
36313         (dv_htab_hash): ... this, reimplemented in terms of it and...
36314         (dv_uid2hash): ... this.  New.
36315         (variable_htab_eq): Drop excess assertions.
36316         (tie_break_pointers): Removed.
36317         (canon_value_cmp): Compare uids.
36318         (variable_post_merge_New_vals): Print uids.
36319         (vt_add_function_parameters): Adjust.
36320         (vt_initialize): Reset table.  Adjust.
36321
36322 2010-02-03  Richard Guenther  <rguenther@suse.de>
36323
36324         PR tree-optimization/42944
36325         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
36326         (call_may_clobber_ref_p_1): Likewise.  Properly handle
36327         malloc and calloc clobbering errno.
36328
36329 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
36330
36331         * doc/invoke.texi: Fix name of sched1 dump.
36332
36333         * opts.c (decode_options): Set flag_tree_switch_conversion
36334         only conditionally on optimize >= 2.
36335
36336         * gcse.c: Assorted comment fixes in pass description.
36337
36338 2010-02-03  Anthony Green  <green@moxielogic.com>
36339
36340         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
36341         nop padding in order to maintain alignment of storage location of
36342         target function address.
36343         (moxie_trampoline_init): Store target function address at newly
36344         aligned location.
36345         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
36346         to 32.
36347         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
36348
36349 2010-02-03  Richard Guenther  <rguenther@suse.de>
36350
36351         PR middle-end/42927
36352         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
36353
36354 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36355
36356         * config.gcc: Reenable check for obsolete targets.
36357         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
36358         mips-sgi-irix6.[0-4]*.
36359
36360 2010-02-02  Nick Clifton  <nickc@redhat.com>
36361
36362         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
36363         constant size of 4 as being the same as 0.
36364         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
36365         can take values in the range 0..4.
36366
36367 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
36368
36369         PR java/41991
36370         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
36371         as _darwin10_Unwind_FindEnclosingFunction().
36372         * libgcc-libsystem.ver: New.
36373
36374 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
36375
36376         PR target/41399
36377         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
36378         implicitly set registers.
36379
36380 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
36381
36382         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
36383         (arm_override_options): Allow automatic selection of the thread
36384         pointer register if thumb2.
36385         (legitimize_pic_address): Improve code sequences for Thumb2.
36386         (arm_call_tls_get_addr): Likewise.
36387         (legitimize_tls_address): Likewise.
36388         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
36389         (pic_load_addr_32bit): ... this.  New named pattern.
36390         * thumb2.md (pic_load_addr_thumb2): Delete.
36391         (pic_load_dot_plus_four): Delete.
36392         (tls_load_dot_plus_four): New named pattern.
36393
36394 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36395
36396         PR libgomp/29986
36397         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
36398         Document fix for TLS bug.
36399
36400 2010-01-31  Richard Guenther  <rguenther@suse.de>
36401
36402         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
36403         conservatively correct.
36404
36405 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36406
36407         PR target/42850
36408         Revert:
36409         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36410
36411         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
36412
36413 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
36414
36415         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
36416
36417 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
36418
36419         * config.gcc: Adjust order of makefile fragments for mingw targets.
36420
36421 2010-01-31  Richard Guenther  <rguenther@suse.de>
36422
36423         PR middle-end/42898
36424         * gimplify.c (gimplify_init_constructor): For volatile LHS
36425         initialize a temporary.
36426
36427 2010-01-31  Matthias Klose  <doko@ubuntu.com>
36428
36429         * configure.ac: Fix __stack_chk_fail check for cross builds configured
36430         --with-headers
36431         * configure: Regenerate.
36432
36433 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
36434
36435         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
36436         the same alias set and their sizes different constantness.
36437         (aliasing_component_refs_p): Revert 2009-10-24 change.
36438
36439 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36440
36441         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
36442         unused.
36443
36444 2010-01-29  Richard Guenther  <rguenther@suse.de>
36445
36446         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
36447         Assert we successfully updated the call.
36448
36449 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
36450
36451         PR rtl-optimization/42889
36452         * df.h (df_set_bb_dirty_nonlr): New prototype.
36453         * df-core.c (df_set_bb_dirty_nonlr): New function.
36454         * df-scan.c (df_insn_rescan): Call it instead of
36455         df_set_bb_dirty for DEBUG_INSNs.
36456
36457 2010-01-29  Richard Guenther  <rguenther@suse.de>
36458
36459         PR middle-end/37448
36460         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
36461         quadratic behavior in most cases.
36462
36463 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
36464
36465         PR target/42891
36466         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
36467         in the call to gen_x86_movsicc_0_m1.
36468
36469 2010-01-28  Richard Guenther  <rguenther@suse.de>
36470
36471         PR tree-optimization/42871
36472         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
36473
36474 2010-01-28  Richard Guenther  <rguenther@suse.de>
36475
36476         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
36477         into call arguments.
36478
36479 2010-01-28  Richard Guenther  <rguenther@suse.de>
36480
36481         PR middle-end/42883
36482         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
36483         the forwarder if the destination is an EH landing pad.
36484
36485 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
36486
36487         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
36488         block list passed to gimple_duplicate_sese_tail.
36489         (parallelize_loops): Avoid parallelization when the function
36490         has_nonlocal_label.
36491         Avoid parallelization when the preheader is IRREDUCIBLE.
36492         Try to optimize when estimated_loop_iterations_int is unresolved.
36493         Add the loop's location to the dump file.
36494         * tree-cfg.c (add_phi_args_after_redirect): Remove.
36495         (gimple_duplicate_sese_tail): Remove the check for the latch.
36496         Redirect nexits to the exit block.
36497         Remove handling of the incoming edges to the latch.
36498         Redirect the backedge from the copied latch to the exit bb.
36499
36500 2010-01-28  Michael Matz  <matz@suse.de>
36501
36502         PR target/42881
36503         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
36504         Wrap force_reg into a sequence, emit it before user.
36505
36506 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
36507
36508         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
36509         (arm_rev): New.
36510         (arm_legacy_rev): Likewise.
36511         (thumb_legacy_rev): Likewise.
36512
36513 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
36514
36515         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
36516         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
36517         on MEM's address failed, try avoid_constant_pool_reference and
36518         recurse if it returned something different.
36519         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
36520         address, try avoid_constant_pool_reference and recurse if it
36521         returned something different.
36522         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
36523         address and avoid_constant_pool_reference returned something
36524         different, don't set have_address.
36525
36526 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
36527
36528         PR debug/42861
36529         * var-tracking.c (val_store): Add modified argument, obey it.
36530         Adjust callers.
36531         (count_uses): Move down logging of main.
36532         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
36533         don't need resolution.
36534         (emit_notes_in_bb): Likewise.
36535
36536 2010-01-27  Richard Guenther  <rguenther@suse.de>
36537
36538         PR middle-end/42878
36539         * tree-inline.c (remap_decl): Delay remapping of SSA name
36540         default definitions until we need them.
36541
36542 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
36543
36544         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
36545         (rs6000_delegitimize_address): New function.
36546
36547         * config/s390/s390.c (s390_delegitimize_address): Call
36548         delegitimize_mem_from_attrs.
36549
36550         PR middle-end/42874
36551         * tree-inline.c (cannot_copy_type_1): Removed.
36552         (copy_forbidden): Don't forbid copying of functions containing
36553         records/unions with variable length fields.
36554
36555 2010-01-27  Christian Bruel  <christian.bruel@st.com>
36556
36557         Revert:
36558         PR target/42841
36559         * config/sh/sh.c (find_barrier): Increase length for non delayed
36560         conditional branches.
36561
36562 2010-01-27  Matthias Klose  <doko@ubuntu.com>
36563
36564         * configure.ac (gnu-unique-object): Fix ldd version check.
36565         * configure: Regenerate.
36566
36567 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36568
36569         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
36570         HAVE_GNU_AS value.
36571         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
36572         Test for HAVE_GNU_AS value.
36573
36574 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
36575
36576         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
36577         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
36578         INT64_TYPE): Define.
36579         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
36580         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
36581         INT_LEAST64_TYPE): Define.
36582         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
36583         UINT_LEAST64_TYPE): Define.
36584         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
36585         INT_FAST64_TYPE): Define.
36586         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
36587         UINT_FAST64_TYPE): Define.
36588         (INTMAX_TYPE, UINTMAX_TYPE): Define.
36589         (INTPTR_TYPE, UINTPTR_TYPE): Define.
36590         (SIG_ATOMIC_TYPE): Define.
36591
36592 2010-01-26  Richard Guenther  <rguenther@suse.de>
36593
36594         * df-scan.c (df_scan_set_bb_info): Remove assert.
36595         (df_insn_rescan_debug_internal): Merge asserts.
36596         (df_install_ref): Likewise.
36597         (df_mark_reg): Use bitmap_set_range.
36598         (df_hard_reg_used_p): Remove assert.
36599         (df_hard_reg_used_count): Likewise.
36600
36601 2010-01-26  Richard Guenther  <rguenther@suse.de>
36602
36603         PR rtl-optimization/42685
36604         * web.c (web_main): Ignore DEBUG_INSNs.
36605
36606 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
36607
36608         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
36609
36610         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
36611         Fix types of fndecl and arglist parameters.
36612
36613 2010-01-26  Richard Guenther  <rguenther@suse.de>
36614
36615         PR middle-end/42806
36616         * tree-eh.c (unsplit_eh): Skip debug insns.
36617
36618 2010-01-26  Richard Guenther  <rguenther@suse.de>
36619
36620         PR tree-optimization/42250
36621         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
36622
36623 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
36624
36625         PR fortran/42866
36626         * omp-low.c (expand_omp_sections): Only use single_pred if
36627         l2_bb is single_pred_p.
36628
36629 2010-01-25  Christian Bruel  <christian.bruel@st.com>
36630
36631         PR target/42841
36632         * config/sh/sh.c (find_barrier): Increase length for non delayed
36633         conditional branches.
36634         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
36635
36636 2010-01-24  David S. Miller  <davem@davemloft.net>
36637
36638         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
36639         define if not using GAS.
36640         * config/sparc/sparc.c (sparc_elf_asm_named_section):
36641         Likewise.  Delete SECTION_MERGE code, which is only applicable
36642         when using GAS.
36643
36644 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
36645
36646         PR c++/42748
36647         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
36648         mangling of va_list in system headers.
36649
36650 2010-01-23  Toon Moene  <toon@moene.org>
36651
36652         * tree-predcom.c (combine_chains): Return NULL, not false.
36653
36654 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
36655
36656         * tree-loop-distribution.c (distribute_loop): Fix declaration and
36657         initialization of variable res to agree with return type.
36658
36659 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
36660
36661         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
36662         * tree-sra.c: Add include of expr.h.
36663
36664 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
36665
36666         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
36667         insert the debug stmt on the single non-EH edge from the stmt.
36668
36669 2010-01-22  Richard Henderson  <rth@redhat.com>
36670
36671         PR tree-opt/42833
36672         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
36673         the RHS until after generate_subtree_copies has insertted its
36674         code before the current statement.
36675
36676 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
36677
36678         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
36679
36680         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
36681
36682 2010-01-21  Martin Jambor  <mjambor@suse.cz>
36683
36684         PR tree-optimization/42585
36685         * tree-sra.c (struct access): New field grp_total_scalarization.
36686         (dump_access): Dump the new field.
36687         (should_scalarize_away_bitmap): New variable.
36688         (cannot_scalarize_away_bitmap): Likewise.
36689         (sra_initialize): Allocate new bitmaps.
36690         (sra_deinitialize): Free new bitmaps.
36691         (create_access_1): New function.
36692         (create_access): Parts moved to create_access_1.
36693         (type_consists_of_records_p): New function.
36694         (completely_scalarize_record): Likewise.
36695         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
36696         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
36697         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
36698         access.
36699         (analyze_all_variable_accesses): Completely scalarize small eligible
36700         records.
36701
36702 2010-01-21  Martin Jambor  <mjambor@suse.cz>
36703
36704         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
36705
36706 2010-01-21  Andrew Haley  <aph@redhat.com>
36707
36708         * gcc.c (process_command): Move lang_specific_driver before
36709         setting cc_libexec_prefix.
36710
36711 2010-01-21  Richard Guenther  <rguenther@suse.de>
36712
36713         PR middle-end/19988
36714         * fold-const.c (negate_expr_p): Pretend only negative
36715         real constants are easily negatable.
36716
36717 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
36718             Jason Merrill  <jason@redhat.com>
36719
36720         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
36721         (TYPE_TRANSPARENT_AGGR): this, for union and record.
36722         * calls.c (initialize argument_information): Handle it.
36723         * c-common.c (handle_transparent_union_attribute): Use new name.
36724         * c-decl.c (finish_struct): Ditto.
36725         * c-typeck.c (type_lists_compatible_p): Ditto.
36726         (convert_for_assignment): Use new name and also handle record.
36727         * function.c (aggregate_value_p): Handle it.
36728         (pass_by_reference): Ditto.
36729         (assign_parm_data_types): Ditto.
36730         * print-tree.c (print_node): Ditto.
36731         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
36732         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
36733         * tree.c (first_field): New fn.
36734
36735 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
36736
36737         PR target/42818
36738         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
36739         even when linking statically, for now.
36740
36741 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
36742
36743         PR debug/42715
36744         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
36745         without a cselib val.
36746         (count_uses): Accept MO_VAL_SET with no val on stores.
36747         (add_stores): Likewise.
36748
36749 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
36750
36751         * var-tracking.c (check_value_val): Add a compile time assertion.
36752         (dv_is_decl_p): Simplify.
36753         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
36754         gcc_assert if ENABLE_CHECKING.
36755
36756 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
36757
36758         PR debug/42782
36759         * var-tracking.c: Include tree-flow.h.
36760         (mem_dies_at_call): New.
36761         (dataflow_set_preserve_mem_locs): Use it.
36762         (dataflow_set_remove_mem_locs): Likewise.
36763         (dump_var): Renamed from dump_variable.  Adjust all callers.
36764         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
36765         * Makefile.in (var-tracking.o): Adjust deps.
36766
36767 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
36768
36769         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
36770
36771 2010-01-20  Richard Guenther  <rguenther@suse.de>
36772
36773         PR tree-optimization/42717
36774         * tree-ssa-dce.c (get_live_post_dom): Remove.
36775         (forward_edge_to_pdom): Take an arbitrary edge to copy
36776         degenerate PHI args from.
36777         (remove_dead_stmt): Use the first post-dominator even if it
36778         does not contain live statements as redirection destination.
36779
36780 2010-01-20  Richard Guenther  <rguenther@suse.de>
36781
36782         * tree-inline.c (estimate_num_insns): Handle EH builtins.
36783
36784 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
36785
36786         * sel-sched.c (create_speculation_check): Remove set but not used
36787         variable twin.
36788         (try_transformation_cache): Remove set but not used variable ds.
36789         (calculate_privileged_insns): Remove set but not used variables
36790         cur_insn and min_spec_insn.
36791         (find_best_expr): Remove set but not used variable avail_n.
36792         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
36793         variable e.
36794         * cgraphunit.c (assemble_thunk): Remove set but not used variable
36795         false_label.
36796         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
36797         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
36798         new_scop_exit_edge.
36799
36800 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
36801
36802         PR bootstrap/42786
36803         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
36804         cpu types.  Add support for *-sse3 cpu types.
36805         (x86_64-*-*): Ditto.
36806
36807 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
36808
36809         PR middle-end/42803
36810         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
36811         argument, call initializer_constant_valid_p_1 instead of
36812         initializer_constant_valid_p, pass CACHE to it, return NULL
36813         immediately if first call returns NULL.
36814         (initializer_constant_valid_p_1): New function.
36815         (initializer_constant_valid_p): Use it.
36816
36817 2010-01-20  Thomas Quinot  <quinot@adacore.com>
36818
36819         * tree.def (PLACEHOLDER_EXPR): Fix comment.
36820
36821 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
36822
36823         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
36824         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
36825         (loc_list_from_tree): Don't handle unsigned division.  Handle
36826         signed modulo using DW_OP_{over,over,div,mul,minus}.
36827         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
36828         modulo instead of signed.
36829
36830 2010-01-20  DJ Delorie  <dj@redhat.com>
36831
36832         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
36833         (Fpa): Pass it
36834         (h8300_emit_stack_adjustment): Propogate it.
36835         (push): Pass it.
36836         (h8300_expand_prologue): Likewise.
36837         (h8300_expand_epilogue): Likewise.
36838
36839 2010-01-19  Michael Matz  <matz@suse.de>
36840
36841         PR tree-optimization/41783
36842         * tree-data-ref.c (toplevel): Include flags.h.
36843         (dump_data_dependence_relation):  Also dump the inputs if the
36844         result will be unknown.
36845         (split_constant_offset_1): Look through some conversions.
36846         * tree-predcom.c (determine_roots_comp): Restart a new chain if
36847         the offset from last element is too large.
36848         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
36849         (reassociate_to_the_same_stmt): Handle vector registers.
36850         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
36851         (e.g. conversions).
36852         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
36853         wide_prolog_niters argument, emit widening instructions.
36854         (vect_do_peeling_for_alignment): Adjust caller, use widened
36855         variant of the iteration cound.
36856         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
36857
36858 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
36859
36860         PR target/38697
36861         * config/arm/neon-testgen.m (emit_automatics): New parameter
36862         features. Adjust for Fixed_return_reg feature.
36863         (test_intrinsic): Call emit_automatics with new feature.
36864         * config/arm/neon.ml: Update copyright years.
36865         (features): New Fixed_return_reg feature.
36866         (ops): Update feature for Vget_low.
36867
36868 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
36869
36870         PR tree-optimization/42719
36871         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
36872         stmt uses.
36873
36874         PR debug/42728
36875         * fwprop.c (all_uses_available_at): Return false if def_set dest
36876         is a REG that is used in def_insn.
36877
36878 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
36879
36880         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
36881
36882         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
36883         Add argument names.
36884
36885         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
36886
36887         * target.h (struct gcc_target) <secondary_reload>: Change type
36888         of last argument to secondary_reload_info *.
36889
36890 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
36891
36892         PR target/42774
36893         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
36894         memory references with unaligned offsets.  Remove CQImode handling.
36895         (unaligned_memory_operand): Return 1 for memory references with
36896         unaligned offsets.  Remove CQImode handling.
36897
36898 2010-01-18  Richard Guenther  <rguenther@suse.de>
36899
36900         PR middle-end/39954
36901         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
36902         builtin calls.
36903
36904 2010-01-18  Richard Guenther  <rguenther@suse.de>
36905
36906         PR tree-optimization/42781
36907         * tree-ssa-structalias.c (find_what_var_points_to): Skip
36908         restrict processing only if the original variable was artificial.
36909
36910 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
36911
36912         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
36913         find number of popped argument bytes.
36914
36915         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
36916         Fix the text that describes the return value for invalid insns.
36917
36918         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
36919
36920         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
36921         Clarify what 'cost of the -dependence' is.  Fix quoting.
36922
36923         * toplev.c (default_get_pch_validity): Rename argument to "sz".
36924         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
36925
36926 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
36927
36928         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
36929         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
36930
36931 2010-01-17  Richard Guenther  <rguenther@suse.de>
36932
36933         PR middle-end/42248
36934         * function.c (split_complex_args): Take a VEC to modify.
36935         (assign_parms_augmented_arg_list): Build a VEC instead of
36936         a chain of PARM_DECLs.
36937         (assign_parms_unsplit_complex): Take a VEC of arguments.
36938         Do not fixup unmodified parms.
36939         (assign_parms): Deal with the VEC.
36940         (gimplify_parameters): Likewise.
36941
36942 2010-01-17  Richard Guenther  <rguenther@suse.de>
36943
36944         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
36945         node existence check.
36946         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
36947         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
36948         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
36949         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
36950         (gimple_execute_on_growing_pred): Likewise.
36951
36952 2010-01-17  Richard Guenther  <rguenther@suse.de>
36953
36954         PR tree-optimization/42773
36955         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
36956         (compute_antic_aux): Likewise.
36957         (compute_partial_antic_aux): Likewise.
36958
36959 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
36960
36961         PR debug/42767
36962         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
36963         and US_TRUNCATE.
36964
36965 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
36966
36967         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
36968         appearance.
36969
36970         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
36971         Fix markup for strict argument.
36972
36973         (TARGET_SCHED_REORDER2): Fix argument types.
36974
36975         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
36976         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
36977
36978         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
36979         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
36980
36981         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
36982         Add argument name.
36983
36984         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
36985         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
36986         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
36987         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
36988         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
36989
36990         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
36991
36992         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
36993
36994         (TARGET_ASM_RELOC_RW_MASK): Add return type.
36995         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
36996
36997         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
36998
36999         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
37000         Use prototype.
37001
37002         (TARGET_ASM_NAMED_SECTION): Fix argument list.
37003
37004         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
37005         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
37006
37007         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
37008
37009         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
37010
37011         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
37012         referring to it.  Fix language.
37013
37014         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
37015
37016         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
37017
37018         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
37019
37020         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
37021
37022         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
37023         '@var{stream}.  Remove stray 'and'.
37024
37025         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
37026
37027         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
37028
37029         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
37030
37031         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
37032         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
37033
37034         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
37035         Fix description of return value.
37036         Rename argument "sz" to "len."
37037
37038         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
37039         Clarify meaning of 'true' return value.
37040
37041         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
37042
37043         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
37044         rep_mode versus mode_rep.
37045
37046         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
37047
37048         (TARGET_BUILTIN_DECL): Fix name.
37049
37050         (TARGET_COMMUTATIVE_P): Fix type of first argument.
37051
37052         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
37053
37054         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
37055
37056         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
37057
37058         (TARGET_RELAXED_ORDERING): Use @deftypevr.
37059
37060         (TARGET_GET_DRAP_RTX): Note that this is a hook.
37061         Clarify language.
37062
37063         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
37064         Rename argument tm_fn to md_fn.
37065
37066         (TARGET_OPTION_PRINT): Fix argument list.
37067
37068 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
37069
37070         PR target/42664
37071         * config/i386/i386.c (ix86_fixup_binary_operands):
37072         Revert FMA4 fixup of operands.
37073
37074 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37075
37076         PR other/42525
37077         * Makefile.in (write_entries_to_file, install-plugin):
37078         Use \012 instead of \n with tr.
37079
37080 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
37081
37082         * configure.ac (HAVE_AS_REF): New C macro.
37083         * configure: Regenerate.
37084         * config.in: Likewise.
37085         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
37086         if HAVE_AS_REF.
37087         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
37088         if HAVE_AS_REF.
37089
37090 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
37091
37092         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
37093
37094         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
37095
37096         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
37097
37098         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
37099
37100         (TARGET_IN_SMALL_DATA_P): Fix argument type.
37101
37102         (TARGET_BINDS_LOCAL_P): Fix argument type.
37103
37104         (TARGET_ASM_FILE_END): Use prototype.
37105
37106         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
37107
37108         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
37109
37110         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
37111
37112         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
37113
37114         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
37115         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
37116
37117         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
37118         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
37119
37120         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
37121         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
37122         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
37123         (TARGET_ADDR_SPACE_CONVERT): Likewise.
37124
37125         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
37126
37127         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
37128
37129         (TARGET_INIT_BUILTINS): Use prototype.
37130
37131         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
37132         Put 'const char *' in braces.  Fix parameter types.
37133         (TARGET_INVALID_CONVERSION): Fix parameter types.
37134         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
37135         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
37136
37137         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
37138         Fix argument type.
37139
37140         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
37141
37142         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
37143
37144 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
37145
37146         * doc/tm.texi (TARGET_HELP): Fix return type.
37147
37148         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
37149         in braces.  Fix argument types.
37150
37151         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
37152
37153         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
37154
37155         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
37156
37157         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
37158         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
37159
37160         (TARGET_MANGLE_TYPE): Fix argument types.
37161
37162         (TARGET_IRA_COVER_CLASSES): Use prototype.
37163
37164         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
37165
37166         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
37167
37168         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
37169
37170         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
37171
37172         (TARGET_CALLEE_COPIES): Fix argument types.
37173
37174         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
37175
37176         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
37177
37178         (TARGET_FUNCTION_VALUE): Fix argument types.
37179
37180         (TARGET_RETURN_IN_MSB): Fix argument type.
37181
37182         (TARGET_RETURN_IN_MEMORY): Fix argument types.
37183
37184         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
37185
37186         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
37187
37188         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
37189         agree with return type.
37190
37191         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
37192
37193 2010-01-15  Jing Yu  <jingyu@google.com>
37194
37195         PR rtl-optimization/42691
37196         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
37197         a pseudo to a constant and are merged, and adjust comments.
37198
37199 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
37200
37201         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
37202
37203 2010-01-15  Richard Guenther  <rguenther@suse.de>
37204
37205         PR middle-end/42739
37206         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
37207         labels of computed or non-local gotos to the destination.
37208         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
37209         landing pad label is the first label.
37210
37211 2010-01-15  Richard Guenther  <rguenther@suse.de>
37212
37213         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
37214
37215 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
37216
37217         PR target/42747
37218         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
37219         to allow generation of the xssqrtdp instruction on power7.
37220         (sqrtdf2_fpr): Ditto.
37221
37222 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37223
37224         PR middle-end/42674
37225         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
37226         functions with noreturn attribute.
37227
37228         PR c++/42608
37229         * varasm.c (declare_weak): Add weak attribute to decl if it
37230         doesn't have one already.
37231         (assemble_external): Only add decls to weak_decls if they also
37232         have weak attribute.
37233
37234 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
37235
37236         * var-tracking.c (var_reg_delete): Don't delete the association
37237         between REGs and values or one-part variables if the register
37238         isn't clobbered.
37239
37240 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37241
37242         PR debug/42657
37243         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
37244         because its first operand is a non-localized variable.
37245
37246 2010-01-14  Martin Jambor  <mjambor@suse.cz>
37247
37248         PR tree-optimization/42706
37249         * tree-sra.c (encountered_recursive_call): New variable.
37250         (encountered_unchangable_recursive_call): Likewise.
37251         (sra_initialize): Initialize both new variables.
37252         (callsite_has_enough_arguments_p): New function.
37253         (scan_function): Call decl and flags check only for IPA-SRA, check
37254         whether there is a recursive call and whether it has enough arguments.
37255         (all_callers_have_enough_arguments_p): New function.
37256         (convert_callers): Look for recursive calls only when
37257         encountered_recursive_call is set.
37258         (ipa_early_sra): Bail out either if
37259         !all_callers_have_enough_arguments_p or
37260         encountered_unchangable_recursive_call.
37261
37262 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37263
37264         * sel-sched.c: Add 2010 to copyright years.
37265         * sel-sched-ir.c: Likewise.
37266         * sel-sched-ir.h: Likewise.
37267
37268 2010-01-14  Martin Jambor  <mjambor@suse.cz>
37269
37270         PR tree-optimization/42714
37271         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
37272         constructors specially.
37273
37274 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37275
37276         * config/i386/drivers-i386.c (detect_caches_intel):
37277         Add l2sizekb parameter and fill in.
37278         (host_detect_local_cpu): Add l2sizekb, fill in.
37279         Add Atom small cache heuristic.
37280
37281 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37282
37283         * config/i386/drivers-i386.c (detect_caches_cpuid4):
37284         Add level3 parameter and fill in.
37285         (detect_caches_intel): Handle level3 cache.
37286
37287 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37288
37289         * config/i386/drivers-i386.c (host_detect_local_cpu):
37290         Fix core duo detection.
37291
37292 2010-01-14  Andi Kleen  <ak@linux.intel.com>
37293
37294         * config/i386/drivers-i386.c (host_detect_local_cpu):
37295         Fix Atom detection.
37296
37297 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37298
37299         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
37300         (rs6000_variable_issue_1): this.  Use...
37301         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
37302
37303 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37304
37305         * sel-sched-ir.c (sel_restore_other_notes): Rename to
37306         sel_restore_notes.  Update all callers.  Call reemit_notes
37307         for all insns.
37308
37309 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37310
37311         PR rtl-optimization/42246
37312         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
37313         loops.
37314
37315 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37316
37317         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
37318         all successors is the same as number of successors in current region.
37319
37320 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37321
37322         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
37323         to rename is not separable.  Otherwise check that its LHS is not NULL.
37324
37325 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37326
37327         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
37328
37329 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37330
37331         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
37332         available registers when failed to discover LHS register class.
37333         Fix indentation.  Update comment.
37334
37335 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37336             Alexander Monakov  <amonakov@ispras.ru>
37337
37338         PR rtl-optimization/42389
37339         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
37340         to can_issue_more.
37341         (advance_state_on_fence): Likewise.
37342         (sel_target_adjust_priority): Print debug output only when
37343         sched_verbose >= 4, not 2.
37344         (get_expr_cost): Do not issue all unique insns on the next cycle.
37345         (fill_insns): Initialize can_issue_more from the value saved
37346         with the fence.
37347         * sel-sched-ir.c (flist_add): New parameter issue_more.
37348         Init FENCE_ISSUE_MORE with it.
37349         (merge_fences): Likewise.
37350         (init_fences): Update call to flist_add.
37351         (add_to_fences, add_clean_fence_to_fences)
37352         (add_dirty_fence_to_fences): Likewise.
37353         (move_fence_to_fences): Update call to merge_fences.
37354         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
37355         sched groups.
37356         * sel-sched-ir.h (struct _fence): New field issue_more.
37357         (FENCE_ISSUE_MORE): New accessor macro.
37358
37359 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37360
37361         PR rtl-optimization/42388
37362         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
37363         that have no predecessors nor successors.  Do not call move_bb_info
37364         for empty blocks outside of current region.
37365
37366 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37367
37368         PR rtl-optimization/42294
37369         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
37370         * sel-sched.c (move_exprs_to_boundary): Transitively add all
37371         originators' originators.
37372
37373 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
37374
37375         PR rtl-optimization/39453
37376         PR rtl-optimization/42246
37377         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
37378         for pipelining_p.
37379         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
37380
37381 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37382             Alexander Monakov  <amonakov@ispras.ru>
37383
37384         PR middle-end/42245
37385         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
37386         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
37387         argument.  Update all callers.
37388         (tidy_control_flow): ... and here.  Recompute topological order
37389         of basic blocks in region if necessary.
37390         (sel_redirect_edge_and_branch): Change return type.  Return true
37391         if topological order might have been invalidated.
37392         (purge_empty_blocks): Export and move from...
37393         * sel-sched.c (purge_empty_blocks): ... here.
37394         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
37395         (maybe_tidy_empty_bb): Delete prototype.
37396         (purge_empty_blocks): Declare.
37397
37398 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
37399
37400         PR rtl-optimization/42249
37401         * sel-sched.c (try_replace_dest_reg): When chosen register
37402         and original register is the same, do not bail out early, but
37403         still check all original insns for validity of replacing destination
37404         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
37405         in this case.
37406
37407 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
37408
37409         PR c/42721
37410         Port from no-undefined-overflow branch:
37411         2009-03-09  Richard Guenther  <rguenther@suse.de>
37412
37413         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
37414
37415 2010-01-14  Richard Guenther  <rguenther@suse.de>
37416
37417         PR lto/42665
37418         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
37419
37420 2010-01-14  Ira Rosen  <irar@il.ibm.com>
37421
37422         PR tree-optimization/42709
37423         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
37424         as scalar type in creation of constant vector operand.
37425
37426 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37427
37428         PR testsuite/42414
37429         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
37430         (check-parallel-%): Match `testsuite' directory component only
37431         at the end.
37432
37433 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
37434
37435         PR translation/39521
37436         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
37437         strings with _().
37438
37439 2010-01-13  Richard Guenther  <rguenther@suse.de>
37440
37441         PR tree-optimization/42730
37442         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
37443         offset zero.
37444
37445 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
37446
37447         PR target/pr42542
37448         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
37449         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
37450         them signed.
37451
37452 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
37453
37454         * config/bfin/libgcc-bfin.ver: Regenerate based on current
37455         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
37456         ___umulsi3_highpart.
37457
37458         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
37459         rather than schedule_insns if the pass is enabled.
37460
37461 2010-01-13  Martin Jambor  <mjambor@suse.cz>
37462
37463         PR tree-optimization/42704
37464         * tree-sra.c (sra_modify_assign): Do not delete assignments to
37465         SSA_NAMEs.
37466
37467 2010-01-13  Martin Jambor  <mjambor@suse.cz>
37468
37469         PR tree-optimization/42703
37470         * tree-sra.c (analyze_access_subtree): Check that we can build a
37471         reference to the original data within the aggregate.
37472
37473 2010-01-13  Richard Guenther  <rguenther@suse.de>
37474
37475         PR tree-optimization/42705
37476         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
37477
37478 2010-01-13  Richard Guenther  <rguenther@suse.de>
37479
37480         PR middle-end/42716
37481         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
37482
37483 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
37484
37485         PR debug/41371
37486         * var-tracking.c (values_to_unmark): New variable.
37487         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
37488         values_to_unmark vector.  Moved body to...
37489         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
37490         instead queue it into values_to_unmark vector.
37491         (vt_find_locations): Free values_to_unmark vector.
37492
37493 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
37494
37495         * config/s390/s390.c (override_options): Set
37496         default of max-pending-list-length to 256
37497
37498 2010-01-13  Richard Guenther  <rguenther@suse.de>
37499
37500         PR lto/42678
37501         * tree-pass.h (PROP_gimple_lcx): New.
37502         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
37503         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
37504         before the final cleanup_eh.
37505         (dump_properties): Dump PROP_gimple_lcx.
37506         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
37507         (tree_lower_complex_O0): Remove.
37508         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
37509         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
37510         tree_lower_complex, schedule TODO_update_ssa.
37511         * lto-streamer-out.c (output_function): Stream the functions
37512         properties.
37513         * lto-streamer-in.c (input_function): Likewise.
37514         (lto_read_body): Do not override them here.
37515
37516 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
37517
37518         PR c/42708
37519         * c-typeck.c (build_c_cast): Fold value cast to union type before
37520         wrapping it in a CONSTRUCTOR.
37521
37522 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
37523
37524         PR rtl-optimization/42699
37525         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
37526         involved.
37527
37528 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37529
37530         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
37531         SUBTARGET_WARN_UNUSED_SPEC): Move ...
37532         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
37533         SUBTARGET_WARN_UNUSED_SPEC): ... here
37534         * config/mips/iris5.h (LIBGCC_SPEC): Define.
37535
37536 2010-01-12  Julian Brown  <julian@codesourcery.com>
37537
37538         * config/arm/neon-schedgen.ml (Utils): Don't try to
37539         open missing module.
37540         (find_with_result): New.
37541
37542 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
37543
37544         PR debug/42662
37545         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
37546         sharing when canonicalizing ({lt,ge}u (plus a b) b).
37547
37548         PR tree-optimization/42645
37549         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
37550         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
37551         decl_map, set processing_debug_stmt to -1 and return name without
37552         any remapping.
37553
37554 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
37555
37556         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
37557         binutils version, and reword target configuration description.
37558
37559 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
37560
37561         * config/avr/avr.h (LINKER_NAME): Remove.
37562
37563 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
37564
37565         PR target/42416
37566         * config/rs6000/rs6000.c (rs6000_override_options): On targets
37567         that support VSX, warn for -mno-altivec if vsx is not disabled,
37568         and disable vsx.
37569
37570 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
37571             Shujing Zhao  <pearly.zhao@oracle.com>
37572
37573         PR translation/42469
37574         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
37575         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
37576         character between option name and help text.
37577         * c.opt (imultilib): Likewise.
37578
37579 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
37580
37581         * lto-streamer-out.c (output_unreferenced_globals): Output static
37582         variables.
37583
37584 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
37585
37586         PR rtl-optimization/42621
37587         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
37588         optimizing for size.
37589         (duplicate_computed_gotos): Remove now-redundant check.
37590
37591 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
37592
37593         PR target/37454
37594         * configure.ac: Save and restore LDFLAGS and LIBS
37595         * configure: Regenerate.
37596
37597 2010-01-10  Richard Guenther  <rguenther@suse.de>
37598
37599         PR middle-end/42667
37600         * builtins.c (fold_builtin_strlen): Add type argument and
37601         convert the resulting length to it.
37602         (fold_builtin_1): Adjust.
37603
37604 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
37605
37606         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
37607         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
37608         1 insn.
37609         (num_insns_constant_wide): Adjust for that change.
37610
37611 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37612
37613         PR debug/42631
37614         * web.c (union_defs): Add used argument, to combine uses of
37615         uninitialized regs.
37616         (entry_register): Adjust type and tests of used argument.
37617         (web_main): Widen used for new use.  Pass it to union_defs.
37618         * df.h (union_defs): Adjust prototype.
37619
37620 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37621
37622         PR debug/42630
37623         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
37624         uses in new incoming argument.  Free body.
37625         (reset_debug_uses_in_loop): New.
37626         (analyze_insn_to_expand_var): Call the latter if the former found
37627         anything.  Fix whitespace.  Reject invalid dest overlaps before
37628         going through all insns in the loop.
37629
37630 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37631
37632         PR debug/42629
37633         * haifa-sched.c (dying_use_p): Debug insns don't count.
37634
37635 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37636
37637         PR middle-end/42363
37638         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
37639         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
37640         (verify_gimple_call): Reject LHS in noreturn calls.
37641
37642 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37643
37644         PR debug/42604
37645         PR debug/42395
37646         * tree-vect-loop-manip.c (adjust_info): New type.
37647         (adjust_vec): New pointer to vector.
37648         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
37649         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
37650         (slpeel_update_phis_for_duplicate_loop): Use them.
37651         (slpeel_update_phi_nodes_for_guard1): Likewise.
37652         (slpeel_update_phi_nodes_for_guard2): Likewise.
37653         (slpeel_tree_peel_loop_to_edge): Likewise.
37654         (vect_update_ivs_after_vectorizer): Likewise.
37655
37656 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37657
37658         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
37659         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
37660
37661 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
37662
37663         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
37664         bogus uninitialized warning.
37665
37666 2010-01-09  Richard Guenther  <rguenther@suse.de>
37667
37668         PR middle-end/42512
37669         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
37670         the evolution is compatible with the initial condition.
37671
37672 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
37673
37674         * gcc.c (process_command): Update copyright notice dates.
37675         * gcov.c (print_version): Likewise.
37676         * gcov-dump.c (print_version): Likewise.
37677         * mips-tfile.c (main): Likewise.
37678         * mips-tdump.c (main): Likewise.
37679
37680 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
37681
37682         PR target/41885
37683         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
37684         (rotlhi3): Delete.
37685         (rotlhi3_8): Delete.
37686         (rotlsi3): Delete.
37687         (rotlsi3_8): Delete.
37688         (rotlsi3_16): Delete.
37689         (rotlsi3_24): Delete.
37690         (rotl<mode>3): New.
37691         (*rotw<mode>3): New.
37692         (*rotb<mode>3): New.
37693         * config/avr/avr.c (avr_rotate_bytes): New function.
37694         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
37695
37696 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
37697
37698         PR target/37454
37699         * configure.ac: Modify -rdynamic check.
37700         * configure: Regenerate.
37701
37702 2010-01-08  DJ Delorie  <dj@redhat.com>
37703
37704         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
37705         register popping order.
37706
37707 2010-01-08  Richard Guenther  <rguenther@suse.de>
37708
37709         PR lto/42528
37710         * c.opt (fsigned-char): Also let LTO handle this option.
37711         (funsigned-char): Likewise.
37712
37713 2010-01-07  Richard Guenther  <rguenther@suse.de>
37714
37715         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
37716         (gimple_op): Likewise.
37717         (gimple_op_ptr): Likewise.
37718         (gimple_assign_set_lhs): Remove gcc_assert.
37719         (gimple_assign_set_rhs1): Likewise.
37720         (gimple_assign_set_rhs2): Likewise.
37721         (gimple_call_set_lhs): Likewise.
37722         (gimple_call_set_fn): Likewise.
37723         (gimple_call_set_fndecl): Likewise.
37724         (gimple_call_fndecl): Likewise.
37725         (gimple_call_return_type): Likewise.
37726         (gimple_call_set_chain): Likewise.
37727         (gimple_call_num_args): Likewise.
37728         (gimple_call_set_arg): Likewise.
37729         (gimple_cond_set_code): Likewise.
37730         (gimple_cond_set_lhs): Likewise.
37731         (gimple_cond_set_rhs): Likewise.
37732         (gimple_cond_set_true_label): Likewise.
37733         (gimple_cond_set_false_label): Likewise.
37734         (gimple_label_set_label): Likewise.
37735         (gimple_goto_set_dest): Likewise.
37736         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
37737         (gimple_debug_bind_get_value): Likewise.
37738         (gimple_debug_bind_get_value_ptr): Likewise.
37739         (gimple_debug_bind_set_var): Likewise.
37740         (gimple_debug_bind_set_value): Likewise.
37741         (gimple_debug_bind_reset_value): Likewise.
37742         (gimple_debug_bind_has_value_p): Likewise.
37743         (gimple_return_retval_ptr): Remove gcc_assert.
37744         (gimple_return_retval): Likewise.
37745         (gimple_return_set_retval): Likewise.
37746         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
37747         (safe_referenced_var_iterator): Remove.
37748         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
37749         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
37750         (fill_referenced_var_vec): Remove.
37751         (first_readonly_imm_use): Remove redundant gcc_assert.
37752         (phi_arg_index_from_use): Combine gcc_asserts.
37753         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
37754         (first_imm_use_stmt): Remove redundant gcc_assert.
37755         * tree-cfg.c (verify_gimple_call): Verify function and chain
37756         operands.  Verify arguments.
37757         (verify_types_in_gimple_stmt): Verify condition code and labels.
37758
37759 2010-01-07  Richard Guenther  <rguenther@suse.de>
37760
37761         PR tree-optimization/42641
37762         * sese.c (rename_map_elt_info): Use the SSA name version, do
37763         not hash pointers.
37764
37765 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
37766
37767         PR tree-optimization/42625
37768         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
37769         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
37770
37771 2010-01-07  Duncan Sands  <baldrick@free.fr>
37772
37773         * Makefile.in (PLUGIN_HEADERS): Add version.h.
37774
37775 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
37776
37777         PR target/42511
37778         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
37779         note itself is not function_invariant_p.
37780
37781 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
37782
37783         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
37784         Do not add the DF_NOTE problem.
37785         * store-motion.c (execute_rtl_store_motion): Likewise.
37786
37787 2010-01-07  Martin Jambor  <mjambor@suse.cz>
37788
37789         PR tree-optimization/42157
37790         * tree-sra.c (compare_access_positions): Stabilize sort if both
37791         accesses have integer types, return zero immediately if they are the
37792         same.
37793
37794 2010-01-06  Richard Henderson  <rth@redhat.com>
37795
37796         PR middle-end/41883
37797         * haifa-sched.c (add_to_note_list): Merge into ...
37798         (concat_note_lists): ... here, and ...
37799         (unlink_other_notes, rm_other_notes): Merge into...
37800         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
37801         NOTE_INSN_EPILOGUE_BEG.
37802
37803 2010-01-06  Richard Guenther  <rguenther@suse.de>
37804
37805         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
37806         not inline regular functions into always-inline functions.
37807
37808 2010-01-06  Nick Clifton  <nickc@redhat.com>
37809
37810         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
37811         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
37812         used together.
37813         (OVERRIDE_OPTIONS): Delete.
37814         (OPTIMIZATION_OPTIONS): Define.
37815         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
37816         * config/rx/rx.c (rx_handle_option): Issue an error message if
37817         -mcpu=rx200 and -fpu are used together.
37818         (rx_set_optimization_options): New function.  Issue an error
37819         message if an optimization attribute attempts to reset the FPU/
37820         math optimization pairing.
37821         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
37822         * config/rx/rx.opt: Set the default to 32-bit doubles.
37823         * config/rx/t-rx: Add multilibs for -nofpu option.
37824         * doc/invoke.texi: Update documentation of RX options.
37825
37826 2010-01-06  Richard Guenther  <rguenther@suse.de>
37827
37828         * tree-ssa-pre.c (name_to_id): New global.
37829         (alloc_expression_id): Simplify SSA name handling.
37830         (lookup_expression_id): Likewise.
37831         (init_pre): Zero name_to_id.
37832         (fini_pre): Free it.
37833
37834 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
37835
37836         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
37837
37838 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
37839
37840         PR target/42542
37841         * config/i386/sse.md (smaxv2di3): New.
37842         (umaxv2di3): Likewise.
37843         (sminv2di3): Likewise.
37844         (uminv2di3): Likewise.
37845
37846 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
37847
37848         PR target/42564
37849         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
37850         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
37851         (legitimize_tls_address): Likewise.
37852         (sparc_tls_referenced_p): Likewise.
37853         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
37854         and adjust calls to legitimize_pic_address.
37855         (legitimate_constant_p) Use sparc_tls_referenced_p.
37856         (legitimate_pic_operand_p): Likewise.
37857         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
37858         (sparc_tls_symbol_ref_1): Delete.
37859         (sparc_tls_referenced_p): Make static, recognize specific patterns.
37860         (legitimize_tls_address): Make static, handle CONST patterns.
37861         (legitimize_pic_address): Make static, remove unused parameter and
37862         adjust recursive calls.
37863         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
37864         and adjust call to legitimize_pic_address.
37865         (sparc_output_mi_thunk): Likewise.
37866
37867 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
37868             H.J. Lu  <hongjiu.lu@intel.com>
37869
37870         PR target/42542
37871         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
37872         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
37873         operands to make them signed.
37874
37875         Revert:
37876         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
37877
37878         PR target/42542
37879         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
37880         GTU to GT for V4SI and V2DI.
37881
37882         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
37883         (umin<mode>3): Removed.
37884         (uminv8hi3): New.
37885         (uminv4si3): Likewise.
37886
37887 2010-01-05  Martin Jambor  <mjambor@suse.cz>
37888
37889         PR tree-optimization/42462
37890         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
37891         current_function_decl to helper functions and macros.
37892
37893 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37894
37895         PR bootstrap/41771
37896         * flags.h: Don't include real.h.
37897         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
37898         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
37899         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
37900         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
37901         * dominance.c: Update copyright.
37902         * gimple.c (walk_gimple_op): Remove inline.
37903         * tree-ssa-reassoc.c: Include real.h.
37904         * Makefile.in (FLAGS_H): Remove $(REAL_H).
37905         (tree-ssa-reassoc.o): Depend on $(REAL_H).
37906
37907 2010-01-05  Nick Clifton  <nickc@redhat.com>
37908
37909         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
37910         register to push into the stack frame when the accumulator has to
37911         be saved during interrupts.
37912
37913 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
37914
37915         * doc/invoke.texi: Remove the documentation about option
37916         -Wunreachable-code.
37917         * common.opt (Wunreachable-code):  Preserved for backward
37918         compatibility.
37919         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
37920         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
37921         the backward compatibility flag section.
37922
37923 2010-01-05  Richard Guenther  <rguenther@suse.de>
37924
37925         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
37926
37927 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
37928
37929         PR other/42611
37930         * cfgexpand.c (expand_one_var): Diagnose too large variables.
37931
37932         PR tree-optimization/42508
37933         * tree-sra.c (convert_callers): Check for recursive call
37934         by comparing cgraph nodes instead of decls.
37935         (modify_function): Call ipa_modify_formal_parameters also
37936         on all same_body aliases.
37937
37938         * cgraphunit.c (cgraph_materialize_all_clones): Compare
37939         cgraph nodes when checking for same_body aliases.
37940
37941 2010-01-05  Richard Guenther  <rguenther@suse.de>
37942
37943         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
37944         allocation and lookup.
37945         (get_or_alloc_expr_for_constant): Likewise.
37946         (phi_translate): Sink allocation.
37947
37948 2010-01-04  Richard Guenther  <rguenther@suse.de>
37949
37950         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
37951         a new entry only if needed.
37952         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
37953         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
37954         hashtable lookup.
37955         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
37956         the result array.
37957         (phi_translate): Handle CONSTANTs early.
37958
37959 2010-01-04  Martin Jambor  <mjambor@suse.cz>
37960
37961         PR tree-optimization/42398
37962         * tree-sra.c (struct access): Removed flag grp_different_types.
37963         (dump_access): Do not dump the removed flag.
37964         (sort_and_splice_var_accesses): Do not set the removed flag.
37965         (sra_modify_expr): Check for type compatibility directly.
37966
37967 2010-01-04  Martin Jambor  <mjambor@suse.cz>
37968
37969         PR tree-optimization/42366
37970         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
37971         edges with variable number of parameters.
37972         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
37973         flag instead of asserting it.
37974         (ipa_read_node_info): Read uses_analysis_done flag.
37975
37976 2010-01-04  Richard Guenther  <rguenther@suse.de>
37977
37978         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
37979         iterative_hash_* as intended.
37980         (vn_reference_compute_hash): Likewise.  Simplify hashing
37981         SSA names.
37982         (vn_reference_lookup_2): Likewise.
37983         (vn_nary_op_compute_hash): Likewise.
37984         (vn_phi_compute_hash): Likewise.
37985         (expressions_equal_p): Remove strange code.
37986         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
37987         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
37988         (bitmap_insert_into_set_1): Take value-id as parameter.
37989         (add_to_value): Pass it.
37990         (bitmap_insert_into_set): Likewise.
37991         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
37992
37993 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
37994
37995         PR driver/42442
37996         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
37997         (do_self_spec): For switches with SWITCH_IGNORE set set also
37998         SWITCH_IGNORE_PERMANENTLY.
37999         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
38000         of SWITCH_IGNORE.
38001
38002 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
38003
38004         * lto-streamer-out.c (output_unreferenced_globals): Output the full
38005         tree of an unreferenced global var.
38006
38007 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38008
38009         PR target/42542
38010         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
38011         GTU to GT for V4SI and V2DI.
38012
38013         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
38014         (umin<mode>3): Removed.
38015         (uminv8hi3): New.
38016         (uminv4si3): Likewise.
38017
38018 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
38019
38020         PR lto/42581
38021         * collect2.c (main): Turn on trace in collect2 if -v is passed
38022         to gcc with LTO.
38023
38024 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
38025
38026         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
38027         description of expression operand.
38028
38029 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
38030
38031         * configure.ac: Add install-html to target_list for Make-hooks.
38032         * configure: Regenerate.
38033         * fortran/Make-lang.in (F95_HTMLFILES): New.
38034         (fortran.html): Use it.
38035         (fortran.install-html): New.
38036         * Makefile.in (install-html): Add lang.install-html.
38037         * java/Make-lang.in (JAVA_HTMLFILES): New.
38038         (java.html): Use it.
38039         (java.install-html): New.
38040         * objc/Make-lang.in (objc.install-html): New.
38041         * objcp/Make-lang.in (obj-c++.install-html): New.
38042         * cp/Make-lang.in (c++.install-html): New.
38043         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
38044         * lto/Make-lang.in (lto.install-html): New.
38045
38046 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
38047
38048         PR lto/42520
38049         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
38050
38051 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
38052
38053         PR rtl-optimization/41862
38054         * store-motion.c (store_killed_in_insn, compute_store_table,
38055         remove_reachable_equiv_notes, replace_store_insn,
38056         build_store_vectors): Ignore all DEBUG_INSNs.
38057
38058 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
38059
38060         PR lto/41564
38061         * common.opt: Add dumpdir.
38062
38063         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
38064         isn't specified.
38065         (option_map): Add --dumpdir.
38066
38067         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
38068
38069         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
38070
38071         * opts.c (decode_options): Try dump_dir_name first if
38072         dump_base_name isn't an absolute path.
38073         (common_handle_option): Handle OPT_dumpdir.
38074
38075         * toplev.c (dump_dir_name): New.
38076         (print_switch_values): Also ignore -dumpdir.
38077
38078         * toplev.h (dump_dir_name): New.
38079
38080 2010-01-03  Richard Guenther  <rguenther@suse.de>
38081
38082         PR tree-optimization/42589
38083         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
38084         double-word expansion of bswap32.
38085
38086 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
38087
38088         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
38089         with BLOCK_FOR_INSN.
38090         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
38091         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
38092         noce_process_if_block): Likewise.
38093         * gcse.c (compute_local_properties, insert_expr_in_table,
38094         insert_set_in_table, canon_list_insert, find_avail_set,
38095         pre_insert_copy_insn): Likewise.
38096
38097         * basic-block.h (BLOCK_NUM): Move from here...
38098         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
38099
38100 2010-01-03  Richard Guenther  <rguenther@suse.de>
38101
38102         PR tree-optimization/42438
38103         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
38104         contains_may_not_return_call flag.
38105         (BB_MAY_NOTRETURN): New.
38106         (valid_in_sets): Trapping nary operations are not valid
38107         in blocks that may not return.
38108         (insert_into_preds_of_block): Remove check for trapping expressions.
38109         (compute_avail): Compute also BB_MAY_NOTRETURN.
38110
38111 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
38112
38113         * doc/invoke.texi: Add 2010 to copyright years.
38114
38115 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
38116
38117         * config/sparc/sparc.c: Fix formatting nits.
38118
38119 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
38120             Alexander Monakov  <amonakov@ispras.ru>
38121
38122         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
38123
38124 2010-01-02  Richard Guenther  <rguenther@suse.de>
38125
38126         PR middle-end/42577
38127         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
38128         (simplify_switch_using_ranges): Mark to be removed edges
38129         as non-executable.
38130
38131 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
38132
38133         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
38134
38135         * collect2.c (scan_libraries): Add missing argument in call to
38136         scan_prog_file.
38137
38138 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
38139
38140         PR target/42448
38141         * config/alpha/predicates.md (aligned_memory_operand): Return false
38142         for CQImode.
38143         (unaligned_memory_operand): Return true for CQImode.
38144         * config/alpha/alpha.c (get_aligned_mem): Assert that location
38145         doesn not cross aligned SImode word boundary.
38146
38147 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
38148
38149         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
38150         Remove.
38151         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
38152         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
38153
38154 2010-01-02  Richard Guenther  <rguenther@suse.de>
38155
38156         PR lto/41597
38157         * toplev.c (compile_file): Emit LTO marker properly.  Change
38158         it to __gnu_lto_v1.
38159         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
38160
38161 2010-01-01  Richard Guenther  <rguenther@suse.de>
38162
38163         PR debug/42455
38164         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
38165
38166 2010-01-01  Richard Guenther  <rguenther@suse.de>
38167
38168         PR c/42570
38169         * c-decl.c (grokdeclarator): For zero-size arrays force
38170         structural equality checks as layout_type does.
38171
38172 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
38173
38174         * builtins.c: Update copyright to 2010.
38175
38176 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
38177
38178         PR lto/42531
38179         * lto-streamer-out.c (produce_asm): Revert the last change.
38180         (copy_function): Likewise.
38181
38182         * lto-streamer.c (lto_get_section_name): Skip any leading
38183         asterisk in name.
38184
38185 2010-01-01  Richard Guenther  <rguenther@suse.de>
38186
38187         PR middle-end/42559
38188         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
38189         for LABEL_DECLs.
38190
38191 \f
38192 Copyright (C) 2010 Free Software Foundation, Inc.
38193
38194 Copying and distribution of this file, with or without modification,
38195 are permitted in any medium without royalty provided the copyright
38196 notice and this notice are preserved.