OSDN Git Service

2007-07-26 Kenneth Zadeck <zadeck@naturalbridge.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-07-26  Kenneth Zadeck <zadeck@naturalbridge.com>
2
3         PR middle-end/32749
4         
5         * df-problems.c (df_create_unused_note): Removed do_not_gen parm
6         and the updating of the live and do_not_gen sets.
7         (df_note_bb_compute): Added updating of live and do_not_gen sets
8         for regular defs so that the case of clobber inside conditional
9         call is processed correctly.
10         
11 2007-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
12
13         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
14         operands with compatible type.
15
16 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
17
18         * expr.h (store_bit_field): Don't return a value.
19         * expmed.c (check_predicate_volatile_ok): New function.
20         (store_bit_field_1): New function, extracted from store_bit_field.
21         Take a fallback_p argument and return true if the operation succeeded.
22         Only use store_fixed_bit_field if fallback_p.  Don't recompute
23         mode_for_extraction; use op_mode instead.  Try forcing memories
24         into registers if the insv expander fails.
25         (store_bit_field): Use store_bit_field_1 with fallback_p true.
26         Don't return a value.
27         (convert_extracted_bit_field): New function, extracted from
28         store_bit_field.
29         (extract_bit_field_1): Likewise.  Take a fallback_p argument
30         and return NULL if the operation succeeded.  Only use
31         extract_fixed_bit_field if fallback_p.  Only calculate one
32         extraction mode.  Combine code for extv and extzv.  Try forcing
33         memories into registers if the ext(z)v expander fails.
34         (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
35
36 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
37
38         * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
39         into bitfields.
40         (df_ref): Likewise.  Put regno with other integer fields.
41
42 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
43
44         * df.h (df_mw_hardreg): Remove "loc" field.
45         * df-scan.c (df_ref_record): Don't set it.  Remove redundant
46         local variable.
47         * df-problems.c (df_whole_mw_reg_unused_p): New function,
48         split out from df_set_unused_notes_for_mw.  Return false for
49         partial references.  Assert that mw_reg is a REG when returning true.
50         (df_set_unused_notes_for_mw): Use it.  Use mw_reg instead of *loc.
51         (df_whole_mw_reg_dead_p): New function, split out from
52         df_set_dead_notes_for_mw.  Return false for partial references.
53         Assert that mw_reg is a REG when returning true.
54         (df_set_dead_notes_for_mw): Use it.  Use mw_reg instead of *loc.
55         Remove redundant bitmap check.
56
57 2007-07-26  H.J. Lu  <hongjiu.lu@intel.com>
58
59         * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
60         ($(T)crtend.o): Likwise.
61         ($(T)crtbeginS.o): Likwise.
62         ($(T)crtendS.o): Likwise.
63         ($(T)crtfastmath.o): Likwise.
64
65 2007-07-26  Zdenek Dvorak  <dvorakz@suse.cz>
66
67         * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
68         * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
69         * basic-block.h (struct control_flow_graph): Added x_dom_computed
70         and x_n_bbs_in_dom_tree fields.
71
72 2007-07-26  Steve Ellcey  <sje@cup.hp.com>
73
74         PR tree-optimization/32087
75         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
76         Do not call scale_bbs_frequencies_int with prob of zero.
77
78 2007-07-26  Julian Brown  <julian@codesourcery.com>
79
80         * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
81         (neon_element_bits): Add prototypes.
82         * config/arm/arm.c (bounds_check, neon_lane_bounds)
83         (neon_const_bounds, neon_element_bits): New functions.
84         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
85         (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
86         (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
87         (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
88         (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
89         (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
90         (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
91         (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
92         (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
93         (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
94         (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
95         (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
96         (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
97
98 2007-07-26  Nathan Froyd  <froydnj@codesourcery.com>
99
100         * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
101         (HAVE_AS_GNU_ATTRIBUTE): Undefine.
102
103 2007-07-26  Mark Shinwell  <shinwell@codesourcery.com>
104             Julian Brown  <julian@codesourcery.com>
105
106         * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
107         * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
108         * config/arm/cortex-a8.md: New.
109         * config/arm/cortex-a8-neon.md: New.
110         * config/arm/neon-schedgen.ml: New.
111         * config/arm/neon.md (vqh_mnem): New.
112         (neon_type): New.
113         (Is_float_mode): New.
114         (Scalar_mul_8_16): New.
115         (Is_d_reg): New.
116         (V_mode_nunits): New.
117         (All instruction patterns): Annotate with neon_type attribute
118         values.
119         * config/arm/arm.md: Include cortex-a8.md.
120         (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
121         values.
122         Annotate instruction patterns accordingly.
123         (generic_sched): Do not use generic scheduling for Cortex-A8.
124         (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
125
126 2007-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
127
128         * fold-const.c (fold_read_from_constant_string): Use
129         build_int_cst_type.
130         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
131
132 2007-07-26  Nick Clifton  <nickc@redhat.com>
133
134         * tree-ssa-operands.h: Change copyright header to refer to version
135         3 of the GNU General Public License and to point readers at the
136         COPYING3 file and the FSF's license web page.
137         * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
138         sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
139         tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
140         targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
141         tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
142         hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
143         flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
144         opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
145         gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
146         cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
147         rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
148         optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
149         tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
150         genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
151         reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
152         c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
153         rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
154         tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
155         diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
156         gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
157         input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
158         gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
159         cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
160         graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
161         genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
162         tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
163         reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
164         real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
165         omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
166         tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
167         regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
168         tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
169         scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
170         double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
171         dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
172         gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
173         hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
174         ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
175         c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
176         tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
177         xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
178         tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
179         gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
180         mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
181         alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
182         dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
183         expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
184         genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
185         timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
186         tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
187         recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
188         dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
189         matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
190         tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
191         lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
192         ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
193         ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
194         langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
195         sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
196         gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
197         ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
198         init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
199         loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
200         mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
201         opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
202         insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
203         tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
204         dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
205         bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
206         coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
207         stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
208         cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
209         tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
210         loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
211         lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
212         tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
213         tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
214         ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
215         varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
216         sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
217         target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
218         omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
219         intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
220         sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
221         genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
222         tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
223         bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
224         cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
225         cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
226         tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
227         c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
228         fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
229         vecprim.h, basic-block.h, tree-ssa-structalias.c,
230         tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
231         passes.c, genconstants.c, c-incpath.c, c-incpath.h,
232         struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
233         varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
234         reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
235         stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
236         params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
237         tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
238         convert.c, convert.h, langhooks-def.h, reload1.c,
239         tree-ssa-operands.c: Likewise.
240
241 2007-07-26  Jan Hubicka  <jh@suse.cz>
242
243         * tree-ssa-live.c: Include debug.h and flags.h.
244         (mark_scope_block_unused): New function.
245         (remove_unused_scope_block_p): New function.
246         (remove_unused_locals): Remove unused blocks too.
247
248 2007-07-25  Ian Lance Taylor  <iant@google.com>
249
250         * combine.c (combine_max_regno): Remove.  Remove all uses.
251         (struct reg_stat_struct): Rename from struct reg_stat.
252         (reg_stat_type): Define, and declare VECs.
253         (reg_stat): Change from pointer to VEC.  Change all uses.
254         (combine_split_insns): New static function.
255         (try_combine, find_split_point): Call it instead of split_insns.
256
257 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
258
259         * cfghooks.c (split_block): Fix the information about loop latch.
260
261 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
262
263         * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
264
265 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
266
267         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
268         Scan the new edge for loop exit info.
269
270 2007-07-25  Andreas Tobler  <a.tobler@schweiz.org>
271
272         * config/darwin.c: Include debug.h.
273
274 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
275
276         PR target/32218
277         * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
278
279 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
280
281         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
282         (HARD_REGNO_MODE_OK): Ditto.
283         (MODES_TIEABLE_P): Ditto.
284         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
285         (CLASS_MAX_NREGS): Ditto.
286         * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
287         * config/ia64/ia64.md (divsf3_internal_thr): Removed.
288         (divdf3_internal_thr): Removed.
289         * config/ia64/div.md: New file.
290         * config/ia64/constraints.md: Add H constraint.
291
292 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
293
294         * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
295         sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
296         sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
297         sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
298         sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
299         sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
300         sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
301         sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
302         sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
303         dump_sbitmap_file, debug_sbitmap, popcount_table,
304         sbitmap_popcount): Constify.
305         * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
306         (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
307         dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
308         sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
309         sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
310         sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
311         sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
312         sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
313         sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
314         sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
315         sbitmap_popcount, sbitmap_verify_popcount): Constify.
316
317 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
318
319         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
320         bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
321         bitmap_first_set_bit, bitmap_and, bitmap_and_into,
322         bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
323         bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
324         bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
325         bitmap_intersect_p, bitmap_intersect_compl_p,
326         bitmap_ior_and_compl, bitmap_ior_and_compl_into,
327         debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
328         Constify.
329         * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
330         bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
331         bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
332         bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
333         bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
334         debug_bitmap, debug_bitmap_file, bitmap_print,
335         bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
336         bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
337
338 2007-07-25  Daniel Berlin  <dberlin@dberlin.org>
339
340         * config/darwin.c (darwin_override_options): Additional fix for
341         debug info formats that don't support var tracking.
342
343 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
344
345         * cselib.c (entry_and_rtx_equal_p): Constify.
346         * gengtype.c (output_mangled_typename, write_types, write_local):
347         Likewise.
348         * gengtype.h (const_type_p): New.
349         * see.c (eq_descriptor_extension, hash_descriptor_extension):
350         Constify.
351         * tlink.c (scan_linker_output): De-constify.
352         * tree-ssa-loop-im.c (memref_eq): Constify.
353         * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
354         (shared_bitmap_hash, shared_bitmap_eq): Constify.
355
356 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
357
358         * c-common.c (fname_as_string, c_type_hash): Constify.
359         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
360         * cgraph.c (edge_hash, edge_eq): Likewise.
361         * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
362         * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
363         reg_attrs_htab_eq): Likewise.
364         * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
365         Likewise.
366         * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
367         const_decl_t, const_state_t, const_automata_list_el_t): New.
368         (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
369         DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
370         automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
371         insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
372         reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
373         automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
374         compare_max_occ_cycle_nums, out_state_arcs_num,
375         compare_transition_els_num, units_cmp, state_reservs_cmp):
376         Constify.
377         * genmodes.c (cmp_modes): Likewise.
378         * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
379         * gimplify.c (compare_case_labels): Likewise.
380         * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
381         * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
382         * matrix-reorg.c (mtt_info_hash): Likewise.
383         * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
384         * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
385         (htab_hash_bucket, htab_hash_elem): Constify.
386         * tree-browser.c (TB_parent_eq): Likewise.
387         * tree-scalar-evolution.c (hash_scev_info): Likewise.
388         * tree-ssa-alias.c (sort_tags_by_id): Likewise.
389         * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
390         (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
391         Constify.
392         * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
393         * tree-ssa-pre.c (const_expr_pred_trans_t): New.
394         (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
395         * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
396         const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
397         New.
398         (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
399         vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
400         vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
401         * tree-ssa-threadupdate.c (redirection_data_hash,
402         redirection_data_eq): Likewise. 
403         * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
404         * tree-ssa.c (var_ann_eq): Likewise.
405         * tree-vrp.c (compare_case_labels): Likewise.
406         * tree.c (int_cst_hash_hash, int_cst_hash_eq,
407         tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
408         tree_not_check_failed, tree_class_check_failed,
409         tree_range_check_failed, tree_not_class_check_failed,
410         omp_clause_check_failed, omp_clause_range_check_failed,
411         tree_contains_struct_check_failed, tree_operand_check_failed):
412         Likewise. 
413         * tree.h (tree_contains_struct_check_failed, tree_check_failed,
414         tree_not_check_failed, tree_class_check_failed,
415         tree_range_check_failed, tree_not_class_check_failed,
416         tree_operand_check_failed, omp_clause_operand_check_failed,
417         tree_operand_length): Likewise. 
418         * var-tracking.c (const_variable): New.
419         (variable_htab_hash, variable_htab_eq): Constify.
420         * varasm.c (const_desc_hash): Likewise.
421
422 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
423
424         * expr.c (handled_component_p): Constify.
425         * fold-const.c (fit_double_type): Likewise.
426         * real.h (real_value_from_int_cst): Likewise.
427         * tree-flow-inline.h (gimple_in_ssa_p,
428         gimple_aliases_computed_p, gimple_addressable_vars,
429         gimple_call_clobbered_vars, gimple_referenced_vars,
430         gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
431         end_htab_p, end_referenced_vars_p, var_ann, function_ann,
432         may_aliases, end_readonly_imm_use_p, has_zero_uses,
433         has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
434         is_label_stmt, is_global_var, phi_ssa_name_p,
435         factoring_name_p, is_call_clobbered, tree_common_ann,
436         op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
437         unmodifiable_var_p, array_ref_contains_indirect_ref,
438         ref_contains_array_ref, lookup_subvars_for_var,
439         var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
440         gimple_mem_ref_stats): Likewise.
441         * tree-flow.h (tree_common_ann, var_ann, function_ann,
442         may_aliases, is_exec_stmt, is_label_stmt,
443         ref_contains_array_ref, array_ref_contains_indirect_ref,
444         var_can_have_subvars, overlap_subvar, is_call_clobbered,
445         unmodifiable_var_p): Likewise.
446         * tree-gimple.c (is_gimple_min_invariant): Likewise.
447         * tree-gimple.h (is_gimple_min_invariant): Likewise. 
448         * tree.c (type_hash_list, attribute_hash_list, tree_size,
449         cst_and_fits_in_hwi, real_value_from_int_cst,
450         build_real_from_int_cst, integer_zerop, integer_onep,
451         integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
452         tree_floor_log2, real_zerop, real_onep, real_twop,
453         real_minus_onep, really_constant_p, purpose_member, chain_member,
454         list_length, fields_length, int_size_in_bytes, bit_position,
455         int_bit_position, byte_position, int_byte_position, expr_align,
456         array_type_nelts, tree_node_structure,
457         type_contains_placeholder_1, iterative_hash_pointer,
458         is_attribute_with_length_p, is_attribute_p, check_qualified_type,
459         tree_map_base_eq, type_hash_list, type_hash_eq,
460         attribute_hash_list, type_num_arguments, tree_int_cst_equal,
461         tree_int_cst_lt, tree_int_cst_compare, host_integerp,
462         tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
463         simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
464         int_fits_type_p, get_containing_scope, decl_function_context,
465         decl_type_context, omp_clause_operand_check_failed,
466         initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
467         * tree.h (omp_clause_operand_check_failed, tree_size,
468         build_real_from_int_cst, array_type_nelts, purpose_member,
469         tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
470         host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
471         is_attribute_p, check_qualified_type, expr_align,
472         int_size_in_bytes, bit_position, int_bit_position, byte_position,
473         int_byte_position, list_length, fields_length, initializer_zerop,
474         integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
475         integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
476         tree_node_structure, handled_component_p, get_containing_scope,
477         decl_function_context, decl_type_context, real_zerop,
478         type_num_arguments, fit_double_type, really_constant_p,
479         int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
480         compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
481         real_twop, real_minus_onep, int_cst_value): Likewise.
482
483 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
484
485         * cfglayout.c (insn_scope, insn_line): Constify.
486         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
487         const_double_htab_hash, const_double_htab_eq,
488         mem_attrs_htab_hash): Likewise.
489         * loop-iv.c (biv_eq): Likewise.
490         * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
491         print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
492         debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
493         Likewise. 
494         * rtl-error.c (location_for_asm, diagnostic_for_asm,
495         error_for_asm, warning_for_asm, _fatal_insn,
496         _fatal_insn_not_found): Likewise. 
497         * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
498         rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
499         rtl_check_failed_type2, rtl_check_failed_code1,
500         rtl_check_failed_code2, rtl_check_failed_code_mode,
501         rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
502         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
503         rtl_check_failed_type2, rtl_check_failed_code1,
504         rtl_check_failed_code2, rtl_check_failed_code_mode,
505         rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
506         SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
507         shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
508         get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
509         mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
510         rtx_unstable_p, get_integer_term, get_related_value,
511         offset_within_block_p, reg_mentioned_p, count_occurrences,
512         reg_referenced_p, reg_used_between_p, no_labels_between_p,
513         single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
514         reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
515         find_reg_note, find_regno_note, find_reg_equal_equiv_note,
516         find_constant_src, find_reg_fusage, find_regno_fusage,
517         pure_call_p, remove_note, side_effects_p, volatile_refs_p,
518         volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
519         may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
520         computed_jump_p, auto_inc_p, in_expr_list_p,
521         remove_node_from_expr_list, loc_mentioned_in_p,
522         label_is_jump_target_p, reversed_comparison_code_parts,
523         debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
524         print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
525         print_inline_rtx): Likewise.
526         * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
527         computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
528         rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
529         get_integer_term, get_related_value, offset_within_block_p,
530         count_occurrences, reg_mentioned_p, no_labels_between_p,
531         reg_used_between_p, reg_referenced_p, single_set_2,
532         multiple_sets, set_noop_p, refers_to_regno_p,
533         reg_overlap_mentioned_p, dead_or_set_p,
534         covers_regno_no_parallel_p, covers_regno_p,
535         dead_or_set_regno_p, find_reg_note, find_regno_note,
536         find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
537         find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
538         remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
539         side_effects_p, may_trap_p_1, may_trap_p,
540         may_trap_after_code_motion_p, may_trap_or_fault_p,
541         inequality_comparisons_p, tablejump_p, computed_jump_p_1,
542         computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
543         subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
544         * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
545         mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
546         Likewise. 
547         * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
548         warning_for_asm): Likewise.
549         * tree.h (print_rtl): Likewise.
550         * varasm.c (get_pool_mode): Likewise.
551
552 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
553
554         * c-lex.c (c_lex_with_flags, lex_string): Constify.
555         * c-ppoutput.c (print_line, pp_dir_change): Likewise.
556         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
557         * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
558         * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
559         * ddg.c (compare_sccs): Likewise.
560         * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
561         * dfp.c (decimal_real_from_string, decimal_to_decnumber,
562         decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
563         decimal_do_fix_trunc, decimal_real_to_integer,
564         decimal_real_to_integer2, decimal_real_maxval): Likewise.
565         * dse.c (const_group_info_t): New.
566         (invariant_group_base_eq, invariant_group_base_hash): Constify.
567         * dwarf2out.c (const_dw_die_ref): New.
568         (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
569         * tree-browser.c (TB_parent_eq): Likewise.
570         * unwind-dw2-fde.c (__register_frame_info_bases,
571         __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
572         add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
573         Likewise.
574         * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
575         * unwind-dw2.c (uw_frame_state_for): Likewise.
576         * value-prof.c (histogram_hash, histogram_eq): Likewise.
577         * value-prof.h (const_histogram_value): New.
578
579 2007-07-25  Richard Sandiford  <richard@codesourcery.com>
580
581         * config/mips/mips.c (machine_function): Add
582         initialized_mips16_gp_pseudo_p.
583         (mips16_gp_pseudo_reg): Do not emit the initialization of
584         mips16_gp_pseudo_rtx when being called from the gimple cost-
585         calculation routines; emit it on the first use outside those
586         routines.
587
588 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
589
590         * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
591         New.
592         
593         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
594         RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
595         RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
596         RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
597         RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
598         Preserve const-ness of parameters through use of __typeof(),
599         also constify and tidy.
600         
601         * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
602         TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
603         NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
604         CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
605         OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
606         GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
607         PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
608         TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
609         TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
610
611 2007-07-25  Julian Brown  <julian@codesourcery.com>
612             Mark Shinwell  <shinwell@codesourcery.com>
613
614         * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
615         (alpha_mangle_type): This.
616         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
617         (TARGET_MANGLE_TYPE): Define this instead.
618         * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
619         * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
620         (arm_init_neon_builtins): Fix comment.
621         (arm_mangle_map_entry): New.
622         (arm_mangle_map): New.
623         (arm_mangle_type): New.
624         * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
625         (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
626         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
627         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
628         (TARGET_MANGLE_TYPE): Define this instead.
629         * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
630         (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT  and restrict
631         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
632         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
633         (TARGET_MANGLE_TYPE): Define this instead.
634         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
635         to...
636         (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
637         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
638         (TARGET_MANGLE_TYPE): Define this instead.
639         * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
640         (s390_mangle_type): This.
641         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
642         (TARGET_MANGLE_TYPE): Define this instead.
643         * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
644         (sparc_mangle_type): This.
645         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
646         (TARGET_MANGLE_TYPE): Define this instead.
647         * cp/mangle.c (write_type): Call mangle_type target hook on all
648         types before mangling.  Use original type, not main variant, as
649         argument.
650         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
651         (TARGET_MANGLE_TYPE): This.
652         * target.h (gcc_target): Rename mangle_fundamental_type to
653         mangle_type.
654         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
655         (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
656
657 2007-07-25  Julian Brown  <julian@codesourcery.com>
658             Paul Brook  <paul@codesourcery.com>
659             Joseph Myers  <joseph@codesourcery.com>
660             Mark Shinwell  <shinwell@codesourcery.com>
661
662         * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
663         * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
664         (with_fpu): Allow --with-fpu=neon.
665         * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
666         * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
667         * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
668         * config/arm/arm-protos.h (neon_immediate_valid_for_move)
669         (neon_immediate_valid_for_logic, neon_output_logic_immediate)
670         (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
671         (neon_emit_pair_result_insn, neon_disambiguate_copy)
672         (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
673         (output_move_neon): Add prototypes.
674         * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
675         (all_fpus): Add FPUTYPE_NEON.
676         (fp_model_for_fpu): Add NEON field.
677         (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
678         (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
679         in registers.
680         (arm_legitimate_address_p): Don't support fancy addressing for NEON
681         structure moves.
682         (thumb2_legitimate_address_p): Likewise.
683         (neon_valid_immediate): Recognize and prepare constants suitable for
684         NEON instructions.
685         (neon_immediate_valid_for_move): New function. Recognize and prepare
686         immediates for NEON move instructions.
687         (neon_immediate_valid_for_logic): New function. Recognize and
688         prepare immediates for NEON logic instructions.
689         (neon_output_logic_immediate): New function. Create asm string
690         suitable for outputting immediate logic instructions.
691         (neon_pairwise_reduce): New function. Implement reduction using
692         pairwise operations.
693         (neon_expand_vector_init): New function. Expand a (possibly
694         non-constant) vector initialization.
695         (neon_vector_mem_operand): New function. Memory operands supported
696         for quad-word loads/stores to/from ARM or NEON registers. Don't
697         allow base+offset addressing for core regs.
698         (neon_struct_mem_operand): New function. Valid mems for NEON
699         structure moves.
700         (coproc_secondary_reload_class): Enable NEON registers to be loaded
701         from neon_vector_mem_operand addresses without a secondary register.
702         (add_minipool_forward_ref): Handle >8-byte minipool entries.
703         (add_minipool_backward_ref): Likewise.
704         (dump_minipool): Likewise.
705         (push_minipool_fix): Likewise.
706         (output_move_quad): New function. Output quad-word moves, loads and
707         stores using ARM registers.
708         (output_move_vfp): Add support for vectors in VFP (NEON) D
709         registers.
710         (output_move_neon): Output a NEON load/store to/from a quadword
711         register.
712         (arm_print_operand): Implement new codes:
713         - 'c' for unadorned integers (without a # sign).
714         - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
715         mode.
716         - 'e', 'f' for the low and high D parts of a NEON Q register.
717         - 'q' outputs a NEON Q register.
718         - 'h' outputs ranges of D registers for VLDM/VSTM etc.
719         - 'T' prints NEON opcode features from a coded bitmask.
720         - 'F' is similar to T, but signed/unsigned codes both print as
721         'i'.
722         - 't' is similar to T, but 'u' is printed instead of 'p'.
723         - 'O' prints 'r' if NEON instruction should perform rounding (as
724         specified by bitmask), else prints nothing.
725         - '#' is a punctuation character to stop operand numbers from
726         running together with following digits in the assembler
727         strings for instructions (when using mode attributes).
728         (arm_assemble_integer): Handle extra NEON vector modes. Permute
729         constant vectors in big-endian mode, where necessary.
730         (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
731         Handle EI, OI, CI, XI modes.
732         (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
733         (ashrv2si3): Rename IWMMXT2_BUILTINs to...
734         (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
735         (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
736         (neon_builtin_type_bits): Add enumeration, one bit for each vector
737         type.
738         (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
739         (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
740         to turn v8qi, etc. into bits defined above.
741         (neon_itype): New enumeration. Classifications of NEON builtins.
742         (neon_builtin_datum): Define struct. Contains information about
743         a single builtin (with multiple modes).
744         (CF): Define helper macro for...
745         (VAR1...VAR10): Define builtins with a type, name and 1-10 different
746         modes.
747         (neon_builtin_data): New array. Define information about builtins
748         for use during initialization/expansion.
749         (arm_init_neon_builtins): New function.
750         (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
751         true.
752         (neon_builtin_compare): New function.
753         (locate_neon_builtin_icode): New function. Find an insn code for a
754         builtin given a function code for that builtin. Also return type of
755         builtin (NEON_BINOP, NEON_UNOP etc.).
756         (builtin_arg): New enumeration. Types of arguments for builtins.
757         (arm_expand_neon_args): New function. Expand a generic NEON builtin.
758         Takes a variable argument list of builtin_arg types, terminated by
759         NEON_ARG_STOP.
760         (arm_expand_neon_builtin): New function. Expand a NEON builtin.
761         (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
762         (neon_emit_pair_result_insn): New function. Support returning pairs
763         of vectors via a pointer.
764         (neon_disambiguate_copy): New function. Set up operands for a
765         multi-word copy such that registers do not get clobbered.
766         (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
767         ARM_BUILTIN_NEON_BASE.
768         (arm_file_start): Set float-abi attribute for NEON.
769         (arm_vector_mode_supported_p): Enable NEON vector modes.
770         (arm_mangle_map_entry): New.
771         (arm_mangle_map): New.
772         (arm_mangle_vector_type): New.
773         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
774         when appropriate.
775         (TARGET_NEON): New macro. Target supports NEON.
776         (fputype): Add FPUTYPE_NEON.
777         (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
778         for vectorization based on command-line arg.
779         (NEON_REGNO_OK_FOR_NREGS): Define.
780         (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
781         (VALID_NEON_STRUCT_MODE): Define.
782         (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
783         (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
784         * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
785         (consttable_16): Add pattern for outputting 16-byte minipool
786         entries.
787         (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
788         vec-common.md).
789         (vec-common.md, neon.md): Include md files.
790         * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
791         * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
792         (memory_constraint "Ut", "Un", "Us"): Define.
793         * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
794         (MMX_char): New mode attribute.
795         (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
796         (*add<mode>3_iwmmxt): New insn pattern.
797         (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
798         (*sub<mode>3_iwmmxt): New insn pattern.
799         (mulv4hi3): Rename to...
800         (*mulv4hi3_iwmmxt): This.
801         (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
802         (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
803         (uminv4hi3, uminv2si3): Remove. Replace with...
804         (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
805         (*umin<mode>3_iwmmxt): These.
806         (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
807         (ashr<mode>3_iwmmxt): This new pattern.
808         (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
809         (lshr<mode>3_iwmmxt): This new pattern.
810         (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
811         (ashl<mode>3_iwmmxt): This new pattern.
812         * config/arm/neon-docgen.ml: New file. Generate documentation for
813         intrinsics.
814         * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
815         * config/arm/arm_neon.h: New (autogenerated).
816         * config/arm/neon-testgen.ml: New file. Generate NEON tests
817         automatically.
818         * config/arm/neon.md: New file. Define NEON instructions.
819         * config/arm/neon.ml: New file. Abstract description of NEON
820         instructions, used to generate arm_neon.h header, documentation and
821         tests.
822         * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
823         * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
824         support.
825         * doc/extend.texi (ARM Built-in Functions): Rename and remove
826         extraneous comma.
827         (ARM NEON Intrinsics): New subsection.
828         * doc/arm-neon-intrinsics.texi: New (autogenerated).
829
830 2007-07-25  Danny Smith   <dannysmith@users.sourceforge.net>
831
832         * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
833         prototype.
834
835 2007-07-24  Jan Hubicka  <jh@suse.cz>
836
837         * regclass.c (move_table): New type.
838         (move_cost, may_move_in_cost, may_move_out_cost): Use it.
839         (init_move_cost): Break out from ...
840         (init_reg_sets_1): ... here; simplify computation of
841         have_regs-of_mode and contains_reg_of_mode.
842         (record_reg_classes): Unswitch internal loops.
843         (copy_cost): Trigger lazy initialization of move cost
844         (record_address_regs): Likewise.
845
846 2007-07-24  Daniel Berlin  <dberlin@dberlin.org>
847
848         * config/darwin.c (darwin_override_options): Don't force on
849         flag_var_tracking_uninit when no debug info is requested.
850
851 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
852
853         * cfgloop.c (init_loops_structure): New function.
854         (flow_loops_find): Create root of the loop tree unconditionally.
855
856 2007-07-24  Daniel Jacobowitz  <dan@codesourcery.com>
857
858         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
859
860 2007-07-24  Jan Hubicka  <jh@suse.cz>
861
862         * caller-save.c: Include ggc.h, gt-caller-save.h
863         (reg_save_code, reg_restore_code): Rename to ...
864         (cached_reg_save_code, cached_reg_restore_code): ... those.
865         (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
866         (reg_save_code, reg_restore_code): New functions.
867         (init_caller_save): Do not intialize
868         reg_save_code/reg_restore_code tables.
869         * Makeifle.in: (gt-caller-save.h): New.
870
871 2007-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
872
873         * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
874         with the mode of the original operand instead of
875         integer_one_node.
876
877 2007-07-23  Jan Hubicka  <jH@suse.cz>
878
879         * i386.c (ix86_secondary_memory_needed): Break out to...
880         (inline_secondary_memory_needed): ... here.
881         (ix86_memory_move_cost): Break out to ...
882         (inline_memory_move_cost): ... here; add support for IN value of 2 for
883         maximum of input and output; fix handling of Q_REGS on 64bit.
884         (ix86_secondary_memory_needed): Microoptimize.
885
886 2007-07-23  Sebastian Pop  <sebpop@gmail.com>
887
888         * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
889         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
890         stmts_from_loop, known_dependences_p, build_rdg): New.
891         * tree-data-ref.h: Depends on graphds.h.
892         (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
893         (build_rdg): Declared.
894         * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
895
896 2007-07-23  Daniel Berlin  <dberlin@dberlin.org>
897
898         * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
899         ccp_min_invariant.
900
901 2007-07-23  Peter Bergner  <bergner@vnet.ibm.com>
902             Jakub Jelinek  <jakub@redhat.com>
903
904         PR middle-end/PR28690
905         * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow EQ compares.
906         * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
907         and MEM_POINTER operands over REG and MEM operands.
908         (swap_commutative_operands_p): Change return value to bool.
909         * rtl.h: Update the corresponding prototype.
910         * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
911         instead of gen_rtx_PLUS.
912         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
913         value to bool.  Change function arguments to rtx's and update code
914         to match.
915         (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
916         calls to match the new declaration.
917         * simplify-rtx.c (simplify_associative_operation): Don't
918         reorder simplify_binary_operation arguments.
919
920 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
921
922         * config/mips/mips.c (override_options): Use mips_costs to derive
923         the default branch cost.
924         * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
925         than mips_costs.
926         * config/mips/mips.opt (mbranch-cost=): New option.
927         * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
928
929 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
930
931         * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
932         (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
933         * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
934         instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
935
936 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
937
938         * config/mips/constraints.md (ks): New constraint.
939         * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
940         (*add<mode>3_mips16): ...here.
941
942 2007-07-21  Uros Bizjak  <ubizjak@gmail.com>
943
944         * optabs.h (enum optab_index): Add new OTI_signbit.
945         (signbit_optab): Define corresponding macro.
946         (enum insn_code signbit_optab[]): Remove array.
947         * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
948         (expand_copysign_absneg): If back end provides signbit insn, use it
949         instead of bit operations on floating point argument.
950         * builtins.c (enum insn_code signbit_optab[]): Remove array.
951         (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code for
952         availability of signbit insn.
953
954         * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
955         signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
956         SSE mode is not active.
957         (isinf<mode>2): Disable for mfpmath=sse,387.
958
959 2007-07-22  Ben Elliston  <bje@au.ibm.com>
960
961         * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
962         `class' parameter.
963         * struct-equiv.c (note_local_live): Likewise for `y_regno'.
964
965 2007-07-20  Richard Guenther  <rguenther@suse.de>
966
967         * tree-cfg.c (verify_expr): COND_EXPRs can have any
968         integral typed condition.
969         * tree-ssa.c (useless_type_conversion_p): Do not preserve
970         booleanness.  Only preserve conversions from a non-base
971         type to a base type, not in general between types with
972         different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
973         * tree.def (COND_EXPR): Document that the condition
974         can be of any integral type.
975
976 2007-07-20  Nigel Stephens  <nigel@mips.com>
977             Richard Sandiford  <richard@codesourcery.com>
978
979         * config/mips/mips.h (mips_dwarf_regno): Declare.
980         (DBX_REGISTER_NUMBER): Remove redundant brackets.
981         (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
982         (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
983         (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
984         (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
985         (REG_CLASS_NAMES): Update accordingly.
986         * config/mips/mips.c (mips_dwarf_regno): New array.
987         (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
988         (mips_subword): Remove special handling for accumulator registers.
989         (override_options): Initiailize mips_dwarf_regno.  Remove use
990         of ACC_HI_REG_P.
991         (mips_swap_registers): New function.
992         (mips_conditional_register_usage): Swap accumulator registers
993         around if TARGET_LITTLE_ENDIAN.
994         (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
995         * config/mips/constraints.md (h, l): Use the endianness to choose
996         between MD0_REG and MD1_REG.
997         * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
998         alternative-dependent template.
999
1000 2007-07-20  Richard Sandiford  <richard@codesourcery.com>
1001
1002         * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
1003         no_new_pseudos.
1004
1005 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
1006
1007         * function.c (thread_prologue_and_epilogue_insns): Fix exit
1008         predecessor fallthru flags.
1009
1010 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
1011
1012         * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
1013         of compare to the same type.
1014         * cfgloopmanip.c (add_loop): Update information about loop exits.
1015         (loop_version): Remove the innermost loop requirement.
1016         * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
1017         to sizetype for pointers.
1018
1019 2007-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1020
1021         * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
1022         (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
1023         (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
1024
1025         * config/dfp-bit.c: Empty for TFmode conversions.
1026
1027 2007-07-18  Caroline Tice  <ctice@apple.com>
1028         
1029         * var-tracking.c (find_src_status):  Check for  COND_EXEC insns
1030         and handle them correctly; check that src is not NULL before
1031         trying to use it.
1032         (find_src_set_src): Likewise.
1033         
1034 2007-07-18  Bob Wilson  <bob.wilson@acm.org>
1035         
1036         * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
1037         (struct alignment_context, init_alignment_context): New.
1038         (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
1039         * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
1040         (XCHAL_HAVE_S32C1I): Likewise.
1041         (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
1042         * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
1043         (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
1044         (ATOMIC, HQI): New macros.
1045         (memory_barrier, *memory_barrier): New.
1046         (sync_lock_releasesi): New.
1047         (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
1048         (sync_lock_test_and_set<mode>): New.
1049         (sync_<atomic><mode>): New.
1050         (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
1051         * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
1052         (xtensa_expand_atomic): New.
1053         
1054 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1055
1056         PR target/30652
1057
1058         * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
1059         transformation for builtin ISNORMAL.
1060         (expand_builtin): Handle BUILT_IN_ISNORMAL.
1061         * builtins.def (BUILT_IN_ISNORMAL): New.
1062         * doc/extend.texi: Document isnormal.
1063
1064 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1065
1066         PR target/30652
1067
1068         * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
1069         optabs infrastructure.  Provide generic implementation for
1070         FINITE/ISFINITE.
1071         (expand_builtin): Handle FINITE/ISFINITE.
1072         (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
1073         (fold_builtin_1): Likewise.
1074
1075         * builtins.def (BUILT_IN_ISFINITE): New.
1076
1077         * doc/extend.texi: Document isfinite.
1078
1079 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1080
1081         PR target/30652
1082         PR middle-end/20558
1083
1084         * builtins.c (expand_builtin_interclass_mathfn): Provide a
1085         generic fallback for isinf.
1086         * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
1087         calculation code ...
1088         * real.c (get_max_float): ... to here.
1089         * real.h (get_max_float): New.
1090
1091 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1092
1093         PR middle-end/32668
1094
1095         * builtin-attrs.def (ATTR_TYPEGENERIC,
1096         ATTR_CONST_NOTHROW_TYPEGENERIC): New.
1097
1098         * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
1099         BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
1100         BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
1101         BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
1102
1103         * c-common.c (handle_type_generic_attribute): New.
1104         (c_common_attribute_table): Add "type generic".
1105
1106         * c-typeck.c (convert_arguments): Handle "type generic" functions.
1107
1108 2007-07-18  Daniel Berlin  <dberlin@dberlin.org>
1109
1110         * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
1111         * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
1112         properly.
1113
1114 2007-07-18  Rask Ingemann Lambertsen  <rask@sygehus.dk>
1115
1116         PR target/32808
1117         * config/cris/cris.c (cris_print_index): Don't use XEXP before
1118         checking that the operand is an expression.
1119
1120 2007-07-19  Christoph von Wittich  <Christoph_vW@reactos.org>
1121             Danny Smith  <dannysmith@users.sourceforge.net>
1122
1123         PR/other 30335
1124         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
1125         file mapping object in local namespace if Windows version later
1126         than NT4
1127
1128 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
1129
1130         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
1131         * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
1132         arm_cannot_force_const_mem.
1133         (arm_cannot_force_const_mem): New function.
1134         * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
1135         (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
1136         of arm_tls_referenced_p.
1137         * config/arm/arm.md (movsi): Split out-of-section constants when
1138         ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
1139         * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
1140
1141 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
1142
1143         * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
1144
1145 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
1146
1147         * config/mips/mips.md (*extendqihi2): Convert the destination
1148         to SImode.
1149
1150 2007-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1151
1152         * config/pa/fptr.c: Update license header.
1153         * config/pa/milli64.S: Likewise.
1154
1155 2007-07-17  Nick Clifton  <nickc@redhat.com>
1156
1157         * COPYING_v3: New file.  Contains version 3 of the GNU General
1158         Public License.
1159         * COPYING.LIB_v3: New file.  Contains version 3 of the GNU
1160         Lesser General Public License.
1161         * doc/include/gpl_v3.texi: New file.  Contains version 3 of
1162         the GNU General Public License.
1163
1164 2007-07-17  Zdenek Dvorak  <dvorakz@suse.cz>
1165
1166         PR rtl-optimization/32773
1167         * cfglayout.c (force_one_exit_fallthru): New function.
1168         (cfg_layout_finalize): Use it.
1169
1170 2007-07-16  Richard Guenther  <rguenther@suse.de>
1171             Uros Bizjak  <ubizjak@gmail.com>
1172
1173         * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
1174         before forcing it to gimple operand.
1175
1176 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
1177             David Ung  <davidu@mips.com>
1178
1179         * config/mips/mips.h (TUNE_24K): Define.
1180         (TUNE_MACC_CHAINS): Add TUNE_24K.
1181         * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
1182         imadd.
1183         * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
1184         (r74k_int_madd): .. this new reservation.
1185         (define_bypass): Fixed bypasses for r74k_int_madd to use
1186         mips_linked_madd_p.
1187         * config/mips/24k.md (define_bypass): Define new
1188         r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
1189
1190 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
1191             Nigel Stephens  <nigel@mips.com>
1192
1193         * config/mips/mips.md:  Include 20kc.md.
1194         * config/mips/20kc.md: New file.
1195         * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
1196         (mips_adjust_cost): Tweak for 20Kc.
1197         (mips_issue_rate): Likewise.
1198         * config/mips/mips.h (TUNE_20KC): Define.
1199
1200 2007-07-16  David Edelsohn  <edelsohn@gnu.og>
1201
1202         * config/rs6000/rs6000.c (struct processor_cost): Add
1203         cache_line_size, l1_cache_lines, and simultaneous_prefetches
1204         fields.
1205         (*_cost): Add cache information.
1206         (rs6000_override_options): Set cache parameters.
1207
1208 2007-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1209
1210         PR bootstrap/3456
1211         * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
1212         * doc/install.texi (mips-sgi-irix6): pthread support works now.
1213
1214 2007-07-16  Paul Brook  <paul@codesourcery.com>
1215
1216         PR target/32753
1217         * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
1218         (cirrus_thumb2_movsi_insn): Ditto.
1219
1220 2007-07-15  Geoffrey Keating  <geoffk@apple.com>
1221
1222         * config/rs6000/darwin-fallback.c (interpret_libc): Change
1223         CR2_REGNO to R_CR2.
1224
1225 2007-07-15  Andrew Haley  <aph@redhat.com>
1226
1227         * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
1228         before looking in the context.
1229
1230 2007-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1231
1232         PR middle-end/32398
1233         PR middle-end/32769
1234         * pa-protos.h (pa_eh_return_handler_rtx): Declare.
1235         * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
1236         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1237         (pa_output_function_prologue): Use rp_saved and current_function_is_leaf
1238         to generate .CALLINFO statement.
1239         (hppa_expand_prologue): Set rp_saved.
1240         (hppa_expand_epilogue): Use rp_saved.
1241         (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
1242         * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
1243
1244 2007-07-14  Dirk Mueller  <dmueller@suse.de>
1245
1246         * omega.c (coalesce): Fix memory leak on early exit.
1247         * matrix-reorg.c (check_allocation_function): Likewise.
1248         * tree-vect-transform.c (vect_get_new_vect_var): free result
1249         of concat().
1250         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1251         pass pointer to edge vector
1252         (partition_hot_cold_basic_blocks): Fix memory leak.
1253         * collect2.c (prefix_from_string): Free temporary storage.
1254         * reload1.c (fixup_abnormal_edges): Free sbitmap.
1255
1256 2007-07-14  Kaz Kojima  <kkojima@gcc.gnu.org>
1257
1258         * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
1259         (DO_GLOBAL_DTORS_BODY): Likewise.
1260
1261 2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
1262             Nigel Stephens  <nigel@mips.com>
1263
1264         * config/mips/mips.c (mips_classify_symbol): Don't return
1265         SYMBOL_SMALL_DATA for constant pool addresses if
1266         TARGET_EMBEDDED_DATA is true.
1267
1268 2007-07-14  Uros Bizjak  <ubizjak@gmail.com>
1269
1270         * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
1271         except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
1272         __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
1273         __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
1274         __builtin_ia32_storehps, __builtin_ia32_storelps,
1275         __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
1276         __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
1277         __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
1278         __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
1279         __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
1280         __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
1281         __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
1282         __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
1283         using def_builtin_const.
1284
1285 2007-07-14  Eric Botcazou  <ebotcazou@adacore.com>
1286
1287         PR tree-optimization/32705
1288         * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
1289         (simplify_binary_expression): Use SSA_VAL consistently.
1290
1291 2007-07-13  David Edelsohn  <edelsohn@gnu.org>
1292
1293         * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
1294         (SPEFSCR_REGNO): Delete definition.
1295         * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
1296         COUNT_REGISTER_REGNUM -> CTR_REGNO.
1297         * config/rs6000/rs6000.h: Do not define *_REGNO.
1298         LINK_REGISTER_REGNUM -> LR_REGNO.
1299         COUNT_REGISTER_REGNUM -> CTR_REGNO.
1300         * config/rs6000/predicates.md: LINK_REGISTER_REGNUM ->  LR_REGNO.
1301         COUNT_REGISTER_REGNUM -> CTR_REGNO.
1302         * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
1303         R_VRSAVE, R_VSCR. Use them.
1304         * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
1305         R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR.  Use them.
1306         * config/rs6000/rs6000.md: Define REGNO constants.  Use them.
1307         * config/rs6000/aix.h: Define R_LR.  Use it.
1308         
1309 2007-07-13  Caroline Tice  <ctice@apple.com>
1310         
1311         * toplev.c (process_options): Turn flag_var_tracking_uninit off when
1312         flag_var_tracking is explicitly turned off (i.e. when variable
1313         tracking is not feasible); otherwise, turn flag_var_tracking on when
1314         flag_var_tracking_uninit is on.
1315         * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
1316         note definitions, to allow recording of initialization status in the
1317         notes.
1318         * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
1319         (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
1320         determine if two note locations are equal.
1321         (output_loc_list): Don't output list entries whose start & end labels
1322         are the same.
1323         (reg_loc_descriptor): Add parameter for initialization status; pass it
1324         to other loc descriptor functions.
1325         (one_reg_loc_descriptor): Add parameter for initialization status;
1326         check its value and add DW_OP_GNU_uninit to returned loc descr if
1327         appropriate.
1328         (multiple_reg_loc_descriptor): Add parameter for initialization
1329         status;
1330         pass init status argument to other loc descriptor functions; check
1331         value of intialization parameter and add DW_OP_GNU_uninit to returned
1332         loc descr if appropriate.
1333         (based_loc_descr): Add parameter for initialization status; add new
1334         variable for return value; check value of initialization parameter and
1335         add DW_OP_GNU_uninit to returned loc descr if appropriate.
1336         (concatn_mem_loc_descriptor): Add parameter for initialization status;
1337         pass init status argument to other loc descriptor functions; check
1338         value of intialization parameter and add DW_OP_GNU_uninit to returned
1339         loc descr if appropriate.
1340         (mem_loc_descriptor): Likewise.
1341         (concat_loc_descriptor): Likewise.
1342         (concatn_loc_descriptor): Likewise.
1343         (loc_descriptor): Add parameter for initialization status; pass it as
1344         argument to other loc descriptor function calls.
1345         (loc_descriptor_from_tree_1): Add appropriate initialization status
1346         to loc descriptor function calls.
1347         (add_location_or_const_value_attribute): Get initialization status
1348         from VAR_LOCATION note; add initialization status to loc descriptor
1349         function calls.
1350         * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
1351         * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
1352         status is uninitialized, add "[uninint]" to output.
1353         * common.opt (fvar-tracking-uninit): New option, similar to
1354         fvar-tracking, to turn on tracking of uninitialized variables; creates
1355         a new global flag, flag_var_tracking_uninit.
1356         * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
1357         (enum var_init_status): New type, for var initialization status field.
1358         * var-tracking.c (struct location_chain_def): Two new fields, init,
1359         for initialization status, and set_src for the assignment value expr.
1360         (unshare_variable): New parameter for initialization status;
1361         initialize new init and set_src fields.
1362         (var_reg_set): New parameters for initialization status and value;
1363         pass them to set_variable_part.
1364         (var_mem_set): Likewise.
1365         (get_init_value): New function.
1366         (var_reg_delete_and_set): New initialization status & value
1367         parameters; add call to get_init_value if status is unknown; pass new
1368         parameters to clobber_variable_part and var_reg_set.
1369         (var_mem_delete_and_set): Likewise.
1370         (var_reg_delete): Pass null set_src value to clobber_variable_part.
1371         (var_mem_delete): Likewise.
1372         (variable_union): Pass status to unshare_variable; initialize new init
1373         and set_src fields. If flag_var_tracking_uninit is not set, force
1374         status to initialized.
1375         (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
1376         used later to get the set_src value.
1377         (find_src_status): New function.
1378         (find_src_set_src): New function.
1379         (compute_bb_dataflow): Pass init status to calls to var_reg_set,
1380         var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
1381         MO_SET, get set_src value and pass it to var_reg_delete_and_set
1382         and var_mem_delete_and_set.
1383         (dump_variable): Print out "[uninit]" if appropriate.
1384         (set_variable_part): Add new initialization and set_src parameters;
1385         pass status to unshare_variable; set node->init and node- >set_src
1386         fields and modify slot in hash table appropriately; save the init and
1387         set_src values if appropriate and assign to the new node.
1388         (clobber_variable_part): New set_src parameter; if two nodes have
1389         same variable and same location but different set_src (assignment)
1390         values, clobber old node.
1391         (delete_variable_part): Pass init status to unshare_variable.
1392         (emit_note_insn_var_location): Add initialized var; assign var's init
1393         status to new 'initialized'; pass new init status field to calls to
1394         gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
1395         status to initialized.
1396         (emit_notes_in_bb): Pass initialization status to calls to
1397         var_reg_set, var_mem_set, var_reg_delete_and_set and
1398         var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
1399         var_reg_delete_and_set and var_mem_delete_and_set; call
1400         emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
1401         make up for change in add_stores.
1402         (vt_add_function_parameters): Add status to calls to
1403         set_variable_part.
1404         * config/darwin.c (darwin_override_options): Turn on uninitialized
1405         tracking automatically, if var_tracking is on and the system is
1406         10.5 or higher.
1407         
1408 2007-07-13  Sa Liu  <saliu@de.ibm.com>
1409
1410         * config.gcc: Add options for arch and tune on SPU.
1411         * config/spu/predicates.md: Add constant operands 0 and 1.
1412         * config/spu/spu-builtins.def: Add builtins for double precision 
1413         floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, 
1414         si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
1415         spu_testsv.
1416         * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with 
1417         a CELLEDP target.
1418         * config/spu/spu-protos.h: Add new function prototypes. 
1419         * config/spu/spu.c (spu_override_options): Check options -march and
1420         -mtune.
1421         (spu_comp_icode): Add comparison code for DFmode and vector mode.
1422         (spu_emit_branch_or_set): Use the new code for DFmode and vector 
1423         mode comparison.
1424         (spu_const_from_int): New.  Create a vector constant from 4 ints.
1425         (get_vec_cmp_insn): New.  Get insn index of vector compare instruction.
1426         (spu_emit_vector_compare): New.  Emit vector compare.
1427         (spu_emit_vector_cond_expr): New.  Emit vector conditional expression.
1428         * config/spu/spu.h: Add options -march and -mtune.  Define processor
1429         types PROCESSOR_CELL and PROCESSOR_CELLEDP.  Define macro
1430         CANONICALIZE_COMPARISON.
1431         * config/spu/spu.md: Add new insns for double precision compare
1432         and double precision vector compare.  Add vcond and smax/smin patterns
1433         to enable DFmode vector conditional expression.
1434         * config/spu/spu.opt: Add options -march and -mtune.
1435         * config/spu/spu_internals.h: Add builtins for CELLEDP target:
1436         si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv.  Add builtin for
1437         both CELL and CELLEDP targets: spu_testsv.
1438         * config/spu/spu_intrinsics.h: Add flag mnemonics for test special 
1439         values.
1440
1441 2007-07-13  Richard Guenther  <rguenther@suse.de>
1442
1443         PR tree-optimization/32721
1444         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
1445         TREE_THIS_VOLATILE on the folded reference.
1446         * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
1447         if the array reference has TREE_THIS_VOLATILE set.
1448
1449 2007-07-13  H.J. Lu  <hongjiu.lu@intel.com>
1450
1451         PR other/32188
1452         * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
1453
1454 2007-07-13  Andreas Schwab  <schwab@suse.de>
1455
1456         * gengtype-lex.l: Allow declarations to be indented.
1457
1458 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
1459
1460         * ginclude/tgmath.h: New.
1461         * config.gcc: Use GCC's tgmath.h on non-glibc systems.
1462         * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
1463         * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
1464         * configure: Regenerate.
1465
1466 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
1467
1468         * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
1469         correct index when setting register save state for xd
1470         registers.
1471
1472 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
1473
1474         * config/sh/sh.c (mark_use): Remove.
1475
1476 2007-07-12  Paul Brook  <paul@codesourcery.com>
1477
1478         * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
1479         reg does not overlap return value.
1480
1481 2007-07-12  Daniel Berlin  <dberlin@dberlin.org>
1482
1483         * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
1484         (set_expression_vuses): Ditto.
1485         (init_pre): Initialize expression_vuses.
1486
1487 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
1488
1489         * config/i386/sse.md (storentdf, storentsf): New.
1490
1491 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
1492
1493         * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
1494         FUNCTION_DECL.
1495         * tree.c (build_decl_stat): Move code from here...
1496         (make_node_stat): ... to here.  Don't uselessly clear DECL_USER_ALIGN.
1497         (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL.  Add comment
1498         about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
1499         * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
1500         * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
1501         FUNCTION_BOUNDARY.
1502
1503 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
1504             Devang Patel  <dpatel@apple.com>
1505
1506         PR tree-optimization/25413
1507         * targhooks.c (default_builtin_vector_alignment_reachable): New.
1508         * targhooks.h (default_builtin_vector_alignment_reachable): New.
1509         * tree.h (contains_packed_reference): New.
1510         * expr.c (contains_packed_reference): New.
1511         * tree-vect-analyze.c (vector_alignment_reachable_p): New.
1512         (vect_enhance_data_refs_alignment): Call
1513         vector_alignment_reachable_p.
1514         * target.h (vector_alignment_reachable): New builtin.
1515         * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
1516         * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
1517         (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
1518
1519 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
1520
1521         * target.h (builtin_vectorization_cost): Add new target builtin.
1522         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1523         * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
1524         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
1525         * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
1526         uninitialized variables.
1527         * tree-vect-transform.c (cost_for_stmt): New function.
1528         (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
1529         using cost 1 for all scalar stmts. Be less conservative when
1530         estimating the number of prologue/epulogue iterations. Call
1531         targetm.vectorize.builtin_vectorization_cost. Return
1532         min_profitable_iters-1.
1533         (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
1534         initialization cost instead of TARG_VEC_STMT_COST. Use
1535         TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
1536         epilogue code. Fix epilogue cost computation.
1537         * config/spu/spu.c (spu_builtin_vectorization_cost): New.
1538         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
1539         * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
1540         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
1541         (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
1542         (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
1543
1544 2007-07-12  Richard Guenther  <rguenther@suse.de>
1545
1546         * gimplify.c (gimplify_conversion): Make sure that the result
1547         from maybe_fold_offset_to_reference is trivially convertible
1548         to the desired type before doing the simplification.
1549         (gimplify_expr): Likewise.
1550         * fold-const.c (fold_binary): Use the correct types for
1551         building the simplified expression.
1552
1553 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
1554
1555         PR rtl-optimization/32729
1556         * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
1557         that fallthru to exit.
1558
1559 2007-07-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1560
1561         * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
1562         (symDTPOFF2reg): Likewise.
1563
1564 2007-07-11  Daniel Berlin  <dberlin@dberlin.org>
1565
1566         PR tree-optimization/32663
1567         
1568         * tree.h (VALUE_HANDLE_VUSES): Remove.
1569         (struct tree_value_handle): Remove vuses.
1570
1571         * tree-vn.c (create_value_handle_for_expr): Don't set
1572         VALUE_HANDLE_VUSES. 
1573
1574         * tree-ssa-pre.c (expression_vuses): New.
1575         (alloc_expression_id): Set up expression_vuses.
1576         (get_expression_vuses): New.
1577         (set_expression_vuses): Ditto.
1578         (clear_expression_ids): Modify for expression_vuses.
1579         (phi_translate_1): Ditto.
1580         (phi_translate_set): Ditto.
1581         (value_dies_in_block_x): Ditto
1582         (valid_in_sets): Ditto.
1583         (add_to_sets): Ditto.
1584         (find_existing_value_expr): Ditto.
1585         (create_value_handle_for_expr): Ditto.
1586         (make_values_for_stmt): Ditto.
1587         (vuse_equiv): Remove.
1588
1589 2007-07-11  Alexandre Oliva  <aoliva@redhat.com>
1590
1591         * Makefile.in (mostlyclean): Remove object files.
1592
1593 2007-07-11  Kenneth Zadeck <zadeck@naturalbridge.com>
1594
1595         * toplev.c (no_new_pseudos): Deleted.
1596         * rtl.h (no_new_pseudos): Deleted.
1597         * tree-pass.h (pass_no_new_pseudos): Deleted. 
1598         * passes.c (pass_no_new_pseudos): Deleted.
1599         * final.c (rest_of_clean_state): Removed no_new_pseudos.
1600         (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
1601         * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with 
1602         reload_completed.
1603         * cfgcleanup.c (try_crossjump_to_edge): Ditto. 
1604         * rtlhooks.c (gen_lowpart_general): Ditto.
1605         * optabs.c (prepare_operand): Ditto.
1606         * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
1607         no_new_pseudos.
1608         * modulo-sched.c (rest_of_handle_sms): Ditto.
1609         * see.c (rest_of_handle_see): Ditto.
1610         * ifcvt.c (if_convert): Ditto.
1611         (gate_handle_if_after_combine): Replaced no_new_pseudos with 
1612         reload_completed.
1613         * init-regs.c (gate_initialize_regs): Deleted set of
1614         no_new_pseudos.
1615         * lower-subreg.c (decompose_multiword_subregs): Ditto. 
1616         * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
1617         * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
1618         
1619 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
1620
1621         PR target/32661
1622         * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
1623         (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
1624         (*vec_extractv2di_1_rex64): New insn pattern.
1625
1626 2007-07-11  David Daney  <ddaney@avtrex.com>
1627
1628         * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
1629         return address calculation.  Substitute DWARF_ALT_FRAME_RETURN_COLUMN
1630         for SIGNAL_UNWIND_RETURN_COLUMN.
1631         * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
1632         (DWARF_FRAME_REGNUM): Rewrite.
1633         (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
1634
1635 2007-07-11  Nick Clifton  <nickc@redhat.com>
1636
1637         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
1638         delta and use gen_int_mode in place of GET_INT instead.
1639
1640 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
1641
1642         * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
1643         and letter field.
1644
1645 2007-07-11  Douglas Gregor  <doug.gregor@gmail.com>
1646
1647         * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
1648         (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical 
1649         types or not.
1650         * params.h (VERIFY_CANONICAL_TYPES): Remove.
1651         (USE_CANONICAL_TYPES): New.
1652         * doc/invoke.texi (verify-canonical-types): Remove.
1653         (use-canonical-types): Add.
1654
1655 2007-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
1656
1657         * config/spu/spu.c (spu_optimization_options): Remove setting of
1658         parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
1659         (spu_override_options): Move it here.
1660
1661 2007-07-11  Richard Sandiford  <richard@codesourcery.com>
1662
1663         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
1664         * config/mips/mips.c (mips_cpu_info_table): Mention
1665         MIPS_ISA_LEVEL_SPEC in the comment.
1666
1667 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
1668
1669         PR tree-optimization/32713
1670         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
1671
1672 2007-07-11  Paolo Carlini  <pcarlini@suse.de>
1673
1674         PR middle-end/30482
1675         * c-opts.c (c_common_post_options): Do not change flag_complex_method
1676         conditional to flag_isoc99.
1677         (c_common_init_options): Do it here, unconditionally.
1678
1679 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
1680
1681         PR tree-optimization/32589
1682         * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
1683         * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
1684         * tree-ssa-propagate.c (valid_gimple_expression_p): New
1685         predicate, extracted from...
1686         (set_rhs): ...here.  Call it for the expression on entry.
1687         * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
1688         * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
1689         (simplify_binary_expression): Use valid_gimple_expression_p
1690         to validate the simplification.
1691         * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
1692
1693 2007-07-11  Danny Smith  <dannysmith@users.sourceforge.net>
1694
1695         * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
1696         DWARF2_DEBUG on 32 bit target too.
1697         (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition. 
1698
1699 2007-07-11  Nick Clifton  <nickc@redhat.com>
1700
1701         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
1702         version for 64-bit hosts.
1703
1704 2007-07-10  David Daney  <ddaney@avtrex.com>
1705
1706         * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
1707         predicate.
1708         (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of  library
1709         call.
1710         * config/mips/mips.c (mips_expand_synci_loop): New function.
1711         * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
1712         (UNSPEC_RDHWR): Same.
1713         (UNSPEC_SYNCI): Same.
1714         (UNSPEC_SYNC): Same.
1715         (clear_cache): New expand.
1716         (sync): New insn.
1717         (synci): Same.
1718         (rdhwr): Same.
1719         (clear_hazard): Same.
1720         * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
1721         function.
1722         * testsuite/gcc.target/mips/clear-cache-1.c: New test.
1723         * testsuite/gcc.target/mips/clear-cache-2.c: New test.
1724
1725 2007-07-10  Ian Lance Taylor  <iant@google.com>
1726
1727         * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
1728         no_new_pseudos.
1729
1730 2007-07-10  David Daney  <ddaney@avtrex.com>
1731
1732         * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
1733         * builtins.c (expand_builtin___clear_cache): New function.
1734         (expand_builtin): Call expand_builtin___clear_cache for
1735         BUILT_IN_CLEAR_CACHE case.
1736         * doc/extend.texi (__builtin___clear_cache): Document new builtin.
1737         * doc/md.texi (clear_cache): Document new instruction pattern.
1738         * testsuite/gcc.dg/builtins-64.c: New test.
1739
1740 2007-07-11  Hans-Peter Nilsson  <hp@axis.com>
1741
1742         * config/cris/cris.md ("movsi"): Fix typo in last change.
1743
1744 2007-07-09  Geoffrey Keating  <geoffk@apple.com>
1745
1746         PR 32617
1747         * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
1748         FUNCTION_DECLs.
1749         (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
1750         * varasm.c (assemble_start_function): Honor DECL_ALIGN
1751         for FUNCTION_DECLs.  Don't use align_functions_log if
1752         DECL_USER_ALIGN.
1753         * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
1754         even for FUNCTION_DECLs.
1755         * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
1756         FUNCTION_DECLs.
1757         * tree.h (DECL_ALIGN): Update for new location of 'align'.
1758         (DECL_FUNCTION_CODE): Update for new location and name of
1759         'function_code'.
1760         (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
1761         (struct tree_decl_common): Move 'align' and 'off_align' out
1762         of union, ensure they're still on a 32-bit boundary.  Remove
1763         other fields in union 'u1'.
1764         (struct tree_function_decl): Add field 'function_code' replacing
1765         'u1.f' in tree_decl_common.
1766         * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
1767         * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
1768         (Variable Attributes): Cross-reference 'aligned' attribute
1769         to Function Attributes.
1770         * flags.h (force_align_functions_log): Delete.
1771         * toplev.c (force_align_functions_log): Delete.
1772
1773 2007-07-10  Uros Bizjak  <ubizjak@gmail.com>
1774
1775         PR target/32708
1776         * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
1777         (*vec_concatv2di_rex): New insn pattern.
1778
1779 2007-07-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1780
1781         PR target/32538
1782         * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
1783
1784 2007-07-10  Ian Lance Taylor  <iant@google.com>
1785
1786         Replace no_new_pseudos in backends.
1787         * rtl.h (can_create_pseudo_p): Define.
1788         * config/darwin.c (machopic_indirect_data_reference): Use
1789         can_create_pseudo_p () instead of no_new_pseudos.
1790         (machopic_indirect_data_reference): Likewise.
1791         (machopic_legitimize_pic_address): Likewise.
1792         * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
1793         (alpha_emit_set_const_1): Likewise.
1794         (alpha_emit_set_const): Likewise.
1795         (alpha_emit_conditional_move): Likewise.
1796         (alpha_split_conditional_move): Likewise.
1797         * config/alpha/alpha.md (various splitters): Likewise.
1798         (movti): Likewise.
1799         * config/arm/arm.c (legitimize_pic_address): Likewise.
1800         (arm_load_pic_register): Likewise.
1801         * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
1802         (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
1803         * config/bfin/bfin.c (legitimize_pic_address): Likewise.
1804         * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
1805         * config/cris/cris.md (movsi): Likewise.
1806         * config/frv/frv.md (symGOT2reg_hilo): Likewise.
1807         (symGOTOFF2reg_hilo): Likewise.
1808         (symGPREL2reg, symGPREL2reg_hilo): Likewise.
1809         * config/h8300/h8300.md (insv, extzv): Likewise.
1810         * config/i386/i386.c (ix86_expand_move): Likewise.
1811         (ix86_expand_vector_move): Likewise.
1812         (ix86_prepare_fp_compare_args): Likewise.
1813         (ix86_expand_carry_flag_compare): Likewise.
1814         * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
1815         (tls_dynamic_gnu2_combine_32): Likewise.
1816         (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
1817         * config/ia64/ia64.c (ia64_expand_move): Likewise.
1818         (ia64_expand_movxf_movrf): Likewise.
1819         * config/m32c/m32c.c (m32c_prepare_move): Likewise.
1820         (m32c_split_move): Likewise.
1821         (m32c_expand_insv): Likewise.
1822         * config/m68k/m68k.md (movsi): Likewise.
1823         * config/mips/mips.c (mips_force_temporary): Likewise.
1824         (mips_split_symbol): Likewise.
1825         (mips_move_integer): Likewise.
1826         (mips_legitimize_const_move): Likewise.
1827         * config/mn10300/mn10300.md (movsi): Likewise.
1828         * config/pa/pa.c (emit_move_sequence): Likewise.
1829         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1830         (rs6000_got_register): Likewise.
1831         (create_TOC_reference): Likewise.
1832         (rs6000_machopic_legitimize_pic_address): Likewise.
1833         * config/rs6000/rs6000.md (add<mode>3): Likewise.
1834         (various splitters): Likewise.
1835         (iorsi3, xorsi3, iordi3, xordi3): Likewise.
1836         (movsi_got): Likewise.
1837         * config/s390/s390.c (emit_symbolic_move): Likewise.
1838         * config/s390/s390.md (movhi, movqi): Likewise.
1839         (load_multiple, store_multiple): Likewise.
1840         * config/score/score.c (score_force_temporary): Likewise.
1841         * config/sh/sh.c (prepare_move_operands): Likewise.
1842         (prepare_cbranch_operands): Likewise.
1843         (emit_fpu_switch): Likewise.
1844         (fpscr_set_from_mem): Likewise.
1845         * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
1846         (adddi3, subsi3): Likewise.
1847         (various splitters): Likewise.
1848         (divsi_inv_fp_combine): Likewise.
1849         (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
1850         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
1851         (sne): Likewise.
1852         * config/sh/predicates.md (xor_operand): Likewise.
1853         * config/sparc/sparc.c (legitimize_tls_address): Likewise.
1854         * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
1855         (movdi_pic_label_ref): Likewise.
1856         * config/spu/spu.c (spu_split_immediate): Likewise.
1857         * config/alpha/alpha.md (various splitters): Remove test
1858         !no_new_pseudos || reload_completed.
1859         * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
1860         no_new_pseudos.
1861         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1862         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
1863         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1864         * config/score/score.c (th_output_mi_thunk): Likewise.
1865         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1866         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1867
1868 2007-07-10  Kaz Kojima  <kkojima@gcc.gnu.org>
1869
1870         PR rtl-optimization/32664
1871         * mode-switching.c (create_pre_exit): Skip barrier insns.
1872
1873 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
1874
1875         * tree-scalar-evolution.c (scev_const_prop): Add arguments to
1876         force_gimple_operand_bsi.
1877         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
1878         rewrite_use_compare): Ditto.
1879         * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
1880         Ditto.
1881         * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
1882         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
1883         * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
1884         * tree-profile.c (prepare_instrumented_value,
1885         tree_gen_interval_profiler, tree_gen_pow2_profiler,
1886         tree_gen_one_value_profiler, tree_gen_ic_profiler,
1887         tree_gen_ic_func_profiler, tree_gen_average_profiler,
1888         tree_gen_ior_profiler): Ditto.
1889         * tree-ssa-reassoc.c (negate_value): Ditto.
1890         * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
1891         Use force_gimple_operand_bsi.
1892         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
1893         * tree-if-conv.c (add_to_dst_predicate_list,
1894         find_phi_replacement_condition): Ditto.
1895         * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
1896         Call mark_symbols_for_renaming for new statements.
1897         * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
1898
1899 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
1900
1901         * cfghooks.c (remove_edge): New function.
1902         (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
1903         loop exit rescans.
1904         * cfghooks.h (remove_edge): Declare.
1905         * cfg.c (remove_edge): Renamed to remove_edge_raw.
1906         * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
1907
1908 2007-07-09  Wolfgang Gellerich  <gellerich@de.ibm.com>
1909
1910         * optabs.h: Added declaration for signbit_optab.  
1911         * optabs.c: (init_optabs): Added initialization for signbit_optab.
1912         * genoptinit.c (optabs): Added entry for signbit insns.  
1913         * builtins.c (expand_builtin_signbit): Added code to use a signbit
1914         insn, if available.  
1915         * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.  
1916         * config/s390/s390.md (signbit<mode>2): New expander.  
1917
1918 2007-07-09  Richard Guenther  <rguenther@suse.de>
1919
1920         PR middle-end/32698
1921         * fold-const.c (fold_plusminus_mult_expr): Move constant
1922         arguments second to allow decomposing.
1923
1924 2007-07-09  Alexandre Oliva  <aoliva@oliva.athome.lsd.ic.unicamp.br>
1925
1926         Revert:
1927         2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
1928         PR debug/23551
1929         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
1930         Disregard DECL_FROM_INLINE.
1931
1932 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
1933
1934         PR target/27855
1935         * doc/invoke.texi: Add ftree-reassoc flag.
1936         * common.opt (ftree-reassoc): New flag.
1937         * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
1938         (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
1939
1940 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
1941
1942         PR tree-optimization/32681
1943         * tree-if-conv.c (find_phi_replacement_condition): Use the condition
1944         saved in second_edge->aux when first_bb is a loop header.
1945
1946 2007-07-09  Jan HUbicka  <jh@suse.cz>
1947
1948         * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
1949
1950 2007-07-09  Richard Guenther  <rguenther@suse.de>
1951
1952         * c-decl.c (start_function): Do not promote return type.
1953
1954 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
1955
1956         * function.c (do_warn_unused_parameter): Do not warn if
1957         TREE_NO_WARNING is set.
1958
1959 2007-07-08  Andreas Schwab  <schwab@suse.de>
1960
1961         * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
1962
1963 2007-07-08  Sandra Loosemore  <sandra@codesourcery.com>
1964
1965         Revert this patch:
1966         2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
1967
1968         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
1969         apply to assembly language, too.
1970         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
1971
1972 2007-07-07  Daniel Berlin  <dberlin@dberlin.org>
1973
1974         Revert (note the sccvn portions are *not* reverted)
1975         2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
1976
1977         Fix PR tree-optimization/23488
1978
1979         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
1980         handles.
1981         * tree-flow-inline.h (get_value_handle): Ditto.
1982         * tree-ssa-pre.c (decl_vh_map): New.
1983         (decl_node_pool): New.
1984         (can_value_number_operation): Support DECL_P.
1985         (can_PRE_operation): Ditto.
1986         (create_expression_by_pieces): Ditto.
1987         (find_existing_value_expr): Modify to differnetiate between
1988         addressing and top level.
1989         (create_value_handle_for_expr): Handle DECL's.
1990         (poolify_tree): Ditto.
1991         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
1992         (make_values_for_stmt): Handle DECL's properly.
1993         (init_pre): Reorg to not init useless things during FRE.
1994         (fini_pre): Ditto.
1995         * tree-flow.h: Include pointer-set.h.
1996         (decl_vh_map): Declare.
1997         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
1998
1999 2007-07-07 Eric Weddington  <eweddington@cso.atmel.com>
2000
2001         * config/avr/constraints.md (define_memory_constraint "Q"): Fix
2002         the constraint description.
2003         * doc/md.texi: Update documentation of AVR constraints.
2004
2005 2007-07-07  Kazu Hirata  <kazu@codesourcery.com>
2006
2007         * auto-inc-dec.c, config/arm/arm.c,
2008         config/m32r/constraints.md, config/mips/mips.md,
2009         config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
2010         df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
2011         tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
2012         typos.  Follow spelling conventions.
2013         * doc/invoke.texi, doc/rtl.texi: Fix typos.
2014
2015         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
2016         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
2017
2018         * tree-ssa-operands.c (realloc_vop, realloc_vdef,
2019         realloc_vuse): Remove.
2020         * tree-ssa-operands.h: Remove the prototype for realloc_vdef
2021         and realloc_vuse.
2022
2023 2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
2024
2025         Fix PR tree-optimization/23488
2026
2027         * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
2028         (try_to_simplify): Ditto.
2029         (visit_use): Ditto.
2030         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
2031         handles.
2032         * tree-flow-inline.h (get_value_handle): Ditto.
2033         * tree-ssa-pre.c (decl_vh_map): New.
2034         (decl_node_pool): New.
2035         (can_value_number_operation): Support DECL_P.
2036         (can_PRE_operation): Ditto.
2037         (create_expression_by_pieces): Ditto.
2038         (find_existing_value_expr): Modify to differnetiate between
2039         addressing and top level.
2040         (create_value_handle_for_expr): Handle DECL's.
2041         (poolify_tree): Ditto.
2042         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
2043         (make_values_for_stmt): Handle DECL's properly.
2044         (init_pre): Reorg to not init useless things during FRE.
2045         (fini_pre): Ditto.
2046         * tree-flow.h: Include pointer-set.h.
2047         (decl_vh_map): Declare.
2048         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
2049                 
2050 2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
2051
2052         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
2053         apply to assembly language, too.
2054         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
2055
2056 2007-07-06  Ian Lance Taylor  <iant@google.com>
2057             Zack Weinberg  <zackw@panix.com>
2058
2059         PR middle-end/32441
2060         * builtins.c (std_expand_builtin_va_start): Don't use make_tree.
2061
2062 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
2063
2064         * config/sh/sh.md (*prefetch_i4): Disable for TARGET_VXWORKS_RTP.
2065         (prefetch): Likewise if "pref" would be used.
2066
2067 2007-07-06  Josh Conner  <jconner@apple.com>
2068
2069         PR middle-end/32602
2070         PR middle-end/32603
2071         * calls.c (store_one_arg): Handle arguments which are partially
2072         on the stack when detecting argument overlap.
2073
2074 2007-07-06  Bernd Schmidt  <bernd.schmidt@analog.com>
2075
2076         * reload1.c (choose_reload_regs): Set reload_spill_index for regs
2077         chosen during find_reloads.
2078
2079 2007-07-06  Richard Guenther  <rguenther@suse.de>
2080
2081         * gimplify.c (gimplify_call_expr): Prefer DECL_ARGUMENTS over
2082         TYPE_ARG_TYPES for verification of argument types.  Use
2083         DECL_ARG_TYPE instead of the PARM_DECL type.  Take excess
2084         parameters as variable arguments.
2085
2086 2007-07-06  Andreas Krebbel  <krebbel1@de.ibm.com>
2087
2088         * libgcc2.h (word_type): Type definition removed.
2089         (cmp_return_type, shift_count_type): Type definitions added.
2090         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
2091         replaced with shift_count_type.
2092         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
2093         cmp_return_type.
2094         * libgcc2.c (__udivmoddi4, __moddi3): Type of local variable c
2095         changed from word_type to Wtype.
2096         (__lshrdi3, __ashldi3, __ashrdi3): word_type of second parameter
2097         replaced with shift_count_type.
2098         (__cmpdi2, __ucmpdi2): word_type of return type replaced with
2099         cmp_return_type.
2100         * c-common.c (handle_mode_attribute): Handling for libgcc_cmp_return
2101         and libgcc_shift_count attribute added.
2102         * target-def.h (TARGET_LIBGCC_CMP_RETURN_MODE,
2103         TARGET_LIBGCC_SHIFT_COUNT_MODE): New target hooks defined.
2104         (TARGET_INITIALIZER): New target hooks added.
2105         * targhooks.c (default_libgcc_cmp_return_mode,
2106         default_libgcc_shift_count_mode): Default implementations for the new
2107         target hooks added.
2108         * targhooks.h (default_libgcc_cmp_return_mode,
2109         default_libgcc_shift_count_mode): Function prototypes added.
2110         * target.h (struct gcc_target): Fields for the new target hooks added.
2111         * optabs.c (expand_binop): Use shift_count_mode when expanding shift
2112         as library call.
2113         (prepare_cmp_insn): Use cmp_return_mode when expanding comparison as
2114         library call.
2115
2116         * doc/tm.texi (TARGET_LIBGCC_CMP_RETURN_MODE,
2117         TARGET_LIBGCC_SHIFT_COUNT_MODE): Documentation added.
2118
2119         * config/s390/s390.c (s390_libgcc_cmp_return_mode,
2120         s390_libgcc_shift_count_mode): Functions added.
2121         (TARGET_LIBGCC_CMP_RETURN_MODE, TARGET_LIBGCC_SHIFT_COUNT_MODE):
2122         Target hooks defined.
2123
2124 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
2125
2126         * config/mips/mips.c (compute_frame_size): Restore the original
2127         gp_sp_offset for !GENERATE_MIPS16E_SAVE_RESTORE and remove the
2128         fp_size term from the GENERATE_MIPS16E_SAVE_RESTORE calculation.
2129         Document why the difference is needed.
2130
2131 2007-07-06  Richard Guenther  <rguenther@suse.de>
2132
2133         * c-common.c (boolean_increment): Use correctly typed
2134         constant.
2135
2136 2007-07-06  Richard Sandiford  <richard@codesourcery.com>
2137
2138         * config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
2139         the topmost argument register is not also included in the save mask.
2140         (mips16e_collect_argument_save_p): Take a pointer to the argument
2141         register, rather than a pointer to the number of arguments.
2142         (mips16e_collect_argument_saves): Only include argument saves
2143         that aren't in the register mask.
2144
2145 2007-07-06  Uros Bizjak  <ubizjak@gmail.com>
2146
2147         PR rtl-optimization/32450
2148         * function.c (thread_prologue_and_epilogue_insns): Emit blockage insn
2149         to ensure that instructions are not moved into the prologue when
2150         profiling is on.  Remove unused prologue_end variable.
2151         (expand_function_end): Emit blockage insn instead of ASM_INPUT rtx
2152         as a scheduling barrier.
2153
2154 2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
2155
2156         PR debug/23551
2157         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
2158         Disregard DECL_FROM_INLINE.
2159
2160 2007-07-05  Adam Nemet  <anemet@caviumnetworks.com>
2161
2162         * rtlanal.c (num_sign_bit_copies1): Improve cases of ANDing or
2163         IORing with a constant.
2164
2165 2007-07-05  Seongbae Park  <seongbae.park@gmail.com>
2166
2167         PR rtl-optimization/32475
2168         * df-scan.c (df_def_record_1): Add a use of the stack pointer
2169         for every definition of the stack pointer.
2170
2171 2007-07-05  Richard Earnshaw  <rearnsha@arm.com>
2172
2173         * arm.c (vfp3_const_double_index): Copy signed results of
2174         REAL_VALUE_TO_INT into unsigned vars.
2175
2176 2007-07-05  Richard Guenther  <rguenther@suse.de>
2177
2178         PR middle-end/32639
2179         * alias.c (get_alias_set): Tread METHOD_TYPE the same as
2180         FUNCTION_TYPE.
2181         * tree-ssa.c (useless_type_conversion_p): Check canonical
2182         types early.
2183
2184 2007-07-05 Anatoly Sokolov <aesok@post.ru>
2185
2186         * config/avr/avr.md (zero_extendqihi2, zero_extendqisi2, 
2187         zero_extendhisi2): Change to define_insn_and_split. 
2188         (zero_extendqidi2, zero_extendhidi2, zero_extendsidi2): New.
2189
2190 2007-07-05  Paolo Bonzini  <bonzini@gnu.org>
2191
2192         * function.c (match_asm_constraints_1, rest_of_match_asm_constraints,
2193         pass_match_asm_constraints): New.
2194         * passes.c (init_optimization_passes): Add new pass.
2195         * stmt.c (expand_asm_operands): Set cfun->has_asm_statement.
2196         * function.h (struct function): Add has_asm_statement bit.
2197         (current_function_has_asm_statement): New.
2198         * tree-pass.h (pass_match_asm_constraints): New.
2199
2200 2007-07-05  Richard Sandiford  <rsandifo@nildram.co.uk>
2201
2202         * config/mips/mips.c (mips_file_start): Avoid declaration
2203         after code.
2204
2205 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
2206
2207         * optabs.c (expand_binop_directly): Fix signed/unsigned comparison.
2208
2209 2007-07-05  Uros Bizjak  <ubizjak@gmail.com>
2210
2211         * rtl.def (NOTE): Change print format string to print
2212         operand 5 as a note insn name.
2213
2214 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
2215             David Ung  <davidu@mips.com>
2216
2217         * config/mips/mips.c (mips_cpu_info): Add 4ksc and 4ksd processors.
2218         * doc/invoke.texi: (MIPS Options): Document them.
2219
2220 2007-07-05  Sandra Loosemore  <sandra@codesourcery.com>
2221             David Ung  <davidu@mips.com>
2222
2223         Add support for SmartMIPS ASE.
2224
2225         * optabs.c (expand_binop_directly): New, broken out from...
2226         (expand_binop): Here.  Make it try rotating in the other
2227         direction even when the second operand isn't constant.
2228         * config/mips/mips.md (*lwxs): New.
2229         * config/mips/mips.opt (msmartmips): New.
2230         * config/mips/mips.c (mips_lwxs_address_p): New.
2231         (mips_rtx_costs): Make it recognize scaled indexed addressing.
2232         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
2233         __mips_smartmips when compiling for TARGET_SMARTMIPS.
2234         (ISA_HAS_ROR): Define for TARGET_SMARTMIPS.
2235         (ISA_HAS_LWXS): New.
2236         (ASM_SPEC): Add -msmartmips/-mno-smartmips.
2237         * doc/invoke.texi (MIPS Options): Document -msmartmips/-mno-smartmips.
2238         * testsuite/gcc.target/mips/smartmips-lwxs.c: New test case.
2239         * testsuite/gcc.target/mips/smartmips-ror-1.c: New test case.
2240         * testsuite/gcc.target/mips/smartmips-ror-2.c: New test case.
2241         * testsuite/gcc.target/mips/smartmips-ror-3.c: New test case.
2242         * testsuite/gcc.target/mips/smartmips-ror-4.c: New test case.
2243
2244 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
2245
2246         * tree-vectorizer.c (new_loop_vec_info): Initialize
2247         LOOP_VINFO_COST_MODEL_MIN_ITERS.
2248         * tree-vectorizer.h (_loop_vec_info): Added new filed
2249         min_profitable_iters.
2250         (LOOP_VINFO_COST_MODEL_MIN_ITERS): New access macro to above new field.
2251         (TARG_SCALAR_TO_VEC_COST): Define cost of scalar to vector operation.
2252         * tree-vect-analyze.c (vect_analyze_operations): Set
2253         LOOP_VINFO_COST_MODEL_MIN_ITERS.
2254         * tree-vect-transform.c (vect_estimate_min_profitable_iters): Use
2255         VEC_length to determine if there are any LOOP_VINFO_MAY_MISALIGN_STMTS.
2256         Fix calculation of peel_iters_prologue. Move consideration of epilogue
2257         and prologue cost to after they are computed.
2258         (vect_model_induction_cost): Use TARG_SCALAR_TO_VEC_COST instead of
2259         TARG_VEC_STMT_COST.
2260         (vect_model_simple_cost): Takes additional argument dt. Consider cost
2261         of creating vectors from scalars according to dt.
2262         (vect_model_store_cost): Likewise.
2263         (vectorizable_call): Use dt array instead of scalar dt. Call
2264         vect_model_simple_cost with additional argument dt.
2265         (vectorizable_assignment): Likewise.
2266         (vectorizable_operation): Likewise.
2267         (vectorizable_type_demotion): Likewise.
2268         (vectorizable_type_promotion): Likewise.
2269         (vectorizable_store): Use dt array instead of scalar dt. Call
2270         vect_model_store_cost with additional argument dt.
2271         (vect_do_peeling_for_loop_bound): Don't call
2272         vect_estimate_min_profitable_iters. Instead, lookup
2273         LOOP_VINFO_COST_MODEL_MIN_ITERS. Don't always print
2274         "may not be profitable".
2275
2276 2007-07-05  Dorit Nuzman  <dorit@il.ibm.com>
2277
2278         PR testsuite/32014
2279         * config/rs6000/altivec.md (UNSPEC_VUPKHS_V4SF, UNSPEC_VUPKLS_V4SF):
2280         (UNSPEC_VUPKHU_V4SF, UNSPEC_VUPKLU_V4SF): New.
2281         (vec_unpacks_float_hi_v8hi, vec_unpacks_float_lo_v8hi): New patterns.
2282         (vec_unpacku_float_hi_v8hi, vec_unpacku_float_lo_v8hi): New patterns. 
2283
2284 2007-07-05  Zdenek Dvorak  <dvorakz@suse.cz>
2285
2286         * config/i386/i386.c (ix86_address_cost): Do not consider more complex
2287         addressing modes cheaper.
2288
2289 2007-07-05  Alexandre Oliva  <aoliva@redhat.com>
2290
2291         * dwarf2out.c (dw_ranges_by_label_ref): New typedef.
2292         (dw_ranges_struct): Rename block_num to num.  Adjust.
2293         (dw_ranges_by_label_struct): New.
2294         (ranges_by_label, ranges_by_label_allocated,
2295         ranges_by_label_in_use): New variables.
2296         (add_ranges_num): Factored most of the code out of...
2297         (add_ranges): ... this one.  Rewrite in terms of the former.
2298         (add_ranges_by_labels): New.
2299         (output_ranges): Output by-label ranges.
2300         (dwarf2out_finish): Output range for multiple-section
2301         compile_unit.  Output standard DW_AT_low_pc in addition to
2302         unexpected DW_AT_entry_pc.
2303
2304 2007-07-04  Daniel Berlin  <dberlin@dberlin.org>
2305
2306         PR tree-optimization/32604
2307         PR tree-optimization/32606
2308
2309         * tree-ssa-pre.c (bb_bitmap_sets): Removed antic_safe_loads.
2310         (compute_antic_safe): Removed.
2311         (ANTIC_SAFE_LOADS): Ditto.
2312         (compute_antic_aux): Don't print ANTIC_SAFE_LOADS.
2313         (execute_pre): Don't call compute_antic_safe.
2314         (vuse_equiv): New function.
2315         (make_values_for_stmt): Use it
2316         * tree-ssa-sccvn.c (set_ssa_val_to): Remove assert, since it is
2317         not always true.
2318
2319 2007-07-04 Anatoly Sokolov <aesok@post.ru>
2320
2321         PR target/31331
2322         * config/avr/avr.c (avr_naked_function_p): Handle receiving a type
2323         rather than a decl. 
2324         (avr_attribute_table): Make "naked" attribute apply to function types
2325         rather than to decls.
2326         (avr_handle_fntype_attribute): New function.
2327
2328 2007-07-04  Joseph Myers  <joseph@codesourcery.com>
2329
2330         * target-def.h (TARGET_INITIALIZER): Remove trailing whitespace
2331         after \.
2332
2333 2007-07-04  David Ung  <davidu@mips.com>
2334             Joseph Myers  <joseph@codesourcery.com>
2335
2336         * config/mips/mips.md (type): Add logical, signext and move.
2337         (one_cmpl<mode>2, *and<mode>3, *and<mode>3_mips16, *ior<mode>3,
2338         *ior<mode>3_mips16, two unnamed insns after *ior<mode>3_mips16,
2339         *nor<mode>3, "Combiner patterns to optimize truncate/zero_extend
2340         combinations", *zero_extend<SHORT:mode><GPR:mode>2,
2341         *zero_extendqihi2, *extend<SHORT:mode><GPR:mode>2_mips16e,
2342         *extend<SHORT:mode><GPR:mode>2_se<SHORT:size>, *movdi_64bit,
2343         *movdi_64bit_mips16, *movsi_internal, *movsi_mips16, movcc,
2344         *movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16,
2345         *movsf_hardfloat, *movsf_softfloat, *movsf_mips16,
2346         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit,
2347         movv2sf_hardfloat_64bit): Use the new types.
2348         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16,
2349         *movdf_softfloat, *movdf_mips16): Use "multi".
2350         (extendqihi2): Replace with a define_expand.
2351         (*extendqihi2_mips16e, *extendqihi2, *extendqihi2_seb): New.
2352         Based on extend<SHORT:mode><GPR:mode>2 patterns.
2353         * config/mips/74k.md (r74k_int_logical): New reservation and
2354         bypasses.
2355         (r74k_int_arith): Remove "slt".
2356         * config/mips/24k.md, config/mips/4130.md, config/mips/4k.md,
2357         config/mips/5400.md, config/mips/5500.md, config/mips/5k.md,
2358         config/mips/7000.md, config/mips/9000.md, config/mips/generic.md,
2359         config/mips/sb1.md, config/mips/sr71k.md: Add new types to
2360         reservations for "arith".
2361
2362 2007-07-04  Richard Guenther  <rguenther@suse.de>
2363
2364         * tree-ssa.c (useless_type_conversion_p): Add handling for
2365         scalar float and vector types.  Only call the types_compatible_p
2366         langhook for aggregate types as last resort.  Follow the
2367         rules.
2368
2369 2007-07-04  Richard Guenther  <rguenther@suse.de>
2370
2371         * tree-inline.c (estimate_num_insns_1): Treat CONVERT_EXPR
2372         the same as NOP_EXPR.
2373
2374 2007-07-04  Nick Clifton  <nickc@redhat.com>
2375
2376         * target.h (struct gcc_target): Add target_help field.
2377         * target-def.h (TARGET_HELP): New.
2378         (TARGET_INITIALIZER): Use TARGET_HELP.
2379         * opts.c (command_handle_option): Invoke target_help function, if
2380         defined, when the user has specified --target-help on the command
2381         line.
2382         * doc/invoke.texi: Mention that --target-help might print
2383         additional information.
2384         * doc/tm.texi: Document TARGET_HELP hook.
2385
2386         * arm.c (TARGET_HELP): Override default definition.
2387         (arm_target_help): New - display a wrapped list of cores and
2388         architectures supported.
2389
2390 2007-07-04  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2391
2392         * config/gcc/v850/v850.c (expand_prologue): Make sure
2393         GEN_INT() argument is sign extended rather than zero extended.
2394         (expand_epilogue): Likewise.
2395         (output_move_double): Delete.
2396         * config/gcc/v850/v850-protos.h (output_move_double): Delete.
2397         * config/gcc/v850/v850.md (movdi): Delete.
2398         (*movdi_internal): Delete.
2399         (movdf): Delete.
2400         (*movdf_internal): Delete.
2401
2402 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
2403
2404         * config/sh/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Reject -mrelax
2405         unless compiling RTP PIC.
2406
2407 2007-07-04  Richard Guenther  <rguenther@suse.de>
2408
2409         PR tree-optimization/32482
2410         * tree-ssa-ifcombine.c (recognize_single_bit_test): Use the
2411         original ssa name if we didn't find a shift expression.
2412         Fix shift constant for bit zero test.
2413
2414 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
2415
2416         * config/sh/lib1funcs.asm (ic_invalidate): Align constant pool.
2417
2418 2007-07-04  Richard Sandiford  <richard@codesourcery.com>
2419
2420         * config.gcc (arm-wrs-vxworks): Don't include svr4.h.
2421         * config/vxworks.h (PTRDIFF_TYPE, SIZE_TYPE, TARGET_POSIX_IO): Define.
2422         * config/arm/vxworks.h (ASM_SPEC): Delete.
2423         (SUBTARGET_EXTRA_ASM_SPEC): Define.
2424
2425 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
2426
2427         * tree-data-ref.h (data_dependence_relation): New flag reversed_p.
2428         (DDR_REVERSED_P): New.
2429         * tree-data-ref.c (initialize_data_dependence_relation,
2430         build_classic_dist_vector): Set DDR_REVERSED_P.
2431
2432 2007-07-04  Sebastian Pop  <sebpop@gmail.com>
2433
2434         PR middle-end/32457
2435         * tree-data-ref.c (analyze_siv_subscript_cst_affine,
2436         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
2437         init_omega_for_ddr_1): Use non conservative number of iterations
2438         estimations.
2439         (analyze_subscript_affine_affine): Use HOST_WIDE_INT instead of int.
2440         (analyze_siv_subscript): Remove FIXME and reinitialization of 
2441         last_conflicts to chrec_dont_know.
2442         * testsuite/gfortran.dg/vect/pr32457.f90: New.
2443
2444 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
2445
2446         * tree.c (maybe_canonicalize_argtypes): Improve description.
2447
2448 2007-07-04  Douglas Gregor  <doug.gregor@gmail.com>
2449
2450         * tree.c (maybe_canonicalize_argtypes): New.
2451         (build_function_type): Set canonical type.
2452         (build_method_type_directly): Ditto.
2453         (reconstruct_complex_type): Rebuild the METHOD_TYPE node
2454         properly.
2455
2456 2007-07-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2457
2458         * tree-ssa-loop-ivopts.c (strip_offset_1): Treat POINTER_PLUS_EXPR
2459         like PLUS_EXPR.
2460         (rewrite_use_nonlinear_expr): Likewise.
2461
2462 2007-07-03  Seongbae Park  <seongbae.park@gmail.com>
2463
2464         * rtl.def (UNSPEC, USE, CLOBBER): More comments.
2465
2466 2007-07-04  Ben Elliston  <bje@au.ibm.com>
2467
2468         * dwarf2out.c: Move DWARF2 abbreviation glossary closer to the top
2469         of this file.
2470
2471         * c-objc-common.c (c_types_compatible_p): Fix indentation.
2472
2473         * doc/tm.texi (Run-time Target): Capitalise "CPU".
2474         (Exception Handling): Likewise.
2475
2476 2007-07-03  Jan Hubicka  <jh@suse.cz>
2477
2478         * ifcvt.c (find_cond_trap): Avoid invalid RTL sharing.
2479
2480 2007-07-03  Eric Christopher  <echristo@apple.com>
2481
2482         * doc/cppopts.texi: Add conflicting option note to -dM.
2483         * doc/invoke.texi: Add note about possible conflicts with
2484         -E for -dCHARS and note that -dM will not produce
2485         any results if there is no machine dependent reorg.
2486         
2487 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
2488
2489         * tree.h (DECL_ALIGN): Back out previous change.
2490
2491 2007-07-03  Joseph Myers  <joseph@codesourcery.com>
2492
2493         * configure.ac: Test for .dtprelword support on MIPS.
2494         * configure, config.in: Regenerate.
2495         * config/mips/mips.c (mips_output_dwarf_dtprel): New.
2496         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
2497
2498 2007-07-03  Julian Brown  <julian@codesourcery.com>
2499
2500         * config.gcc (with_fpu): Allow --with-fpu=vfp3.
2501         * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
2502         * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
2503         * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
2504         capability.
2505         (all_fpus): Add FPUTYPE_VFP3.
2506         (fp_model_for_fpu): Add VFPv3 field.
2507         (arm_rtx_costs_1): Give cost to VFPv3 constants.
2508         (vfp3_const_double_index): New function. Return integer index of
2509         VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
2510         isn't suitable.
2511         (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
2512         and argument represents a valid RTX for a VFPv3 constant.
2513         (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
2514         two instructions.
2515         (vfp_emit_fstmd): Similar, for fstmd.
2516         (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
2517         constants, represented as integer indices.
2518         (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
2519         VFP_REGNO_OK_FOR_DOUBLE macros.
2520         (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
2521         (arm_file_start): Set float-abi attribute for VFPv3, and output
2522         correct ".fpu" assembler directive.
2523         (arm_dbx_register_numbering): Add FIXME.
2524         * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
2525         (fputype): Add FPUTYPE_VFP3.
2526         (FIXED_REGISTERS): Add 32 registers for D16-D31.
2527         (CALL_USED_REGISTERS): Likewise.
2528         (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
2529         of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
2530         (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
2531         (D7_VFP_REGNUM): New.
2532         (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
2533         (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
2534         (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
2535         (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
2536         (REG_ALLOC_ORDER): Adjust for VFPv3.
2537         (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
2538         (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
2539         VFP_LO_REGS, VFP_HI_REGS.
2540         (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
2541         (IS_VFP_CLASS): Define macro.
2542         (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
2543         IS_VFP_CLASS.
2544         (REGISTER_MOVE_COST): Likewise.
2545         * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
2546         * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
2547         (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
2548         (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
2549         (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
2550         (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
2551         (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
2552         (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
2553         (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
2554         (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
2555         (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
2556         where appropriate for single-word registers.
2557         (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
2558         As above. Fix type attributes.
2559         * config/arm/constraints.md (register_contraint "t"): Define.
2560         (register_constraint "w"): Change to D0-D15, or D0-D31 for
2561         VFPv3/NEON.
2562         (register_constraint "x"): Define.
2563         (constraint "Dv"): Define.
2564
2565 2007-07-03  Geoffrey Keating  <geoffk@apple.com>
2566
2567         * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
2568
2569 2007-07-03  Tom Tromey  <tromey@redhat.com>
2570
2571         * c-parser.c (objc_pq_context): Removed.
2572         (objc_need_raw_identifier): Likewise.
2573         (c_parser) <objc_pq_context>: New field.
2574         <objc_need_raw_identifier>: Likewise.
2575         (OBJC_NEED_RAW_IDENTIFIER): Removed.
2576         (c_lex_one_token): Update.
2577         (c_parser_objc_protocol_definition): Update.
2578         (c_parser_objc_method_definition): Update.
2579         (c_parser_objc_methodproto): Update.
2580         (c_parser_declspecs): Update.
2581
2582 2007-07-03  David Ung  <davidu@mips.com>
2583
2584         * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
2585
2586 2007-07-03  David Ung  <davidu@mips.com>
2587             Richard Sandiford  <richard@codesourcery.com>
2588
2589         * doc/invoke.texi: Document -march=74kf3_2.
2590         * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
2591         (TUNE_74K): Check for it.
2592         * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
2593         (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
2594         * config/mips/mips.md (cpu): Add 74kf3_2.
2595         * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
2596         (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
2597         (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
2598         (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
2599         74kf3_2 to the CPU list.
2600         (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
2601         (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
2602         (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
2603         (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
2604         (r74kf3_2_fxfer_from_c1): New insn reservations.
2605
2606 2007-07-03  Richard Sandiford  <richard@codesourcery.com>
2607             David Ung  <davidu@mips.com>
2608
2609         * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
2610         -march=24kx with -march=24kf1_1.  Likewise 24ke[fx], 34k[fx]
2611         and 74k[fx].  Document aliases for the new options.
2612         * config/mips/mips.h (PROCESSOR_24KF): Rename to...
2613         (PROCESSOR_24KF2_1): ...this.
2614         (PROCESSOR_24KX): Rename to...
2615         (PROCESSOR_24KF1_1): ...this.
2616         (PROCESSOR_74KF): Rename to...
2617         (PROCESSOR_74KF2_1): ...this.
2618         (PROCESSOR_74KX): Rename to...
2619         (PROCESSOR_74KF1_1): ...this.
2620         (TUNE_74K): Update PROCESSOR_* names.
2621         * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
2622         for 24kf.  Add 24kf1_1 and 24kfx as synonyms for 24kx.  Likewise
2623         the 24ke*, 34k* and 74k* processors.  Update PROCESSOR_* names.
2624         (mips_rtx_cost_data): Update processor names in comments.
2625         (mips_issue_rate): Update PROCESSOR_* names.
2626         * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
2627         24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
2628         * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
2629         to r24kf2_1_*.  Rename r24kx_* insn reservations to r24kf1_1_*.
2630         Update cpu attribute names.
2631         (r24k_fpu_iss): Rename this reservation to...
2632         (r24kf2_1_fpu_iss): ...this and update all uses.
2633         (r24kx_fpu_iss): Rename this reservation to...
2634         (r24kf1_1_fpu_iss): ...this and update all uses.
2635         * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
2636         to r74kf2_1_*.  Rename r74kx_* insn reservations to r74kf1_1_*.
2637         Update cpu attribute names.
2638
2639 2007-07-01  Kaz Kojima  <kkojima@gcc.gnu.org>
2640
2641         * config/m32r/constraints.md: New file.
2642         * config/m32r/m32r.c: Include tm-constrs.h.
2643         (small_data_operand): Use satisfies_constraint_* instead of macro.
2644         (addr24_operand, gen_compare): Likewise.
2645         * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
2646         (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
2647         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2648         EXTRA_CONSTRAINT): Likewise.
2649         * config/m32r/m32r.md: Include constraints.md.
2650         (*movsi_insn): Use satisfies_constraint_* instead of macro.
2651         (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
2652         * config/m32r/predicates.md (conditional_move_operand): Likewise.
2653         (two_insn_const_operand, int8_operand, uint16_operand,
2654         reg_or_int16_operand, reg_or_uint16_operand,
2655         reg_or_cmp_int16_operand, cmp_int16_operand,
2656         seth_add3_operand): Likewise.
2657
2658 2007-07-03  Eric Christopher  <echristo@gmail.com>
2659
2660         * libgcc2.h: Conditionally declare __bswapsi2 and
2661         __bswapdi2.
2662         
2663 2007-07-03  H.J. Lu  <hongjiu.lu@intel.com>
2664
2665         * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
2666         defined.
2667
2668 2007-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2669
2670         PR target/28307
2671         * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
2672         (__gthrw_pragma): Provide default definition.
2673         (__gthrw2): Use it.
2674         * gthr-posix.c (__gthrw_pragma): Define.
2675
2676 2007-07-03  Daniel Berlin  <dberlin@dberlin.org>
2677
2678         * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
2679         before declaring inequality.
2680
2681 2007-07-03  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2682
2683         * combine.c (recog_for_combine): Log the success or failure of
2684           matching new insn patterns against the machine description in
2685           detailed dumps.
2686
2687 2007-07-03  Revital Eres  <eres@il.ibm.com>
2688
2689         * ddg.c (print_sccs): New function.
2690         (check_sccs): New function.
2691         (create_ddg_all_sccs): Use it.
2692         * ddg.h (print_sccs): Declare.
2693         * modulo-sched.c (sms_order_nodes): Call print_sccs.
2694
2695 2007-07-03  Uros Bizjak  <ubizjak@gmail.com>
2696
2697         * targhooks.h (default_mode_for_suffix): New function declaration.
2698         * targhooks.c (default_mode_for_suffix): New default target hook.
2699         * target.h (struct c): New structure in the targetm struct.
2700         (mode_for_suffix): New target hook as part of struct c.
2701         target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
2702         default_mode_for_suffix.
2703         (TARGET_C): New define.
2704         * c-lex.c: Include "target.h".
2705         (interpret_float): Use targetm.c.mode_for_suffix to determine
2706         the mode for a given non-standard suffix.
2707         Makefile.in (c-lex.o): Depend on $(TARGET_H).
2708
2709         * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
2710         (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
2711
2712         * doc/extend.texi (Floating Types): New node.  Document __float80 and
2713         __float128 types.  Document 'w', 'W', 'q' and 'Q' suffixes.
2714
2715 2007-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
2716
2717         PR target/32506
2718         * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
2719         predicate instead of target_operand.
2720         (divsi3_i1_media, divsi3_media_2): Likewise.
2721
2722 2007-07-02  Eric Botcazou  <ebotcazou@adacore.com>
2723
2724         * tree.h (alias_sets_might_conflict_p): Rename into
2725         alias_sets_must_conflict_p.
2726         * alias.c (alias_sets_might_conflict_p): Likewise.
2727         (alias_sets_conflict_p): Use it.
2728         (objects_must_conflict_p): Likewise.
2729         * c-common.c (strict_aliasing_warning): Adjust.
2730
2731 2007-07-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2732
2733         * rtlhooks.c (gen_lowpart_if_possible): Check for
2734         invalid subreg before calling gen_lowpart_SUBREG.
2735
2736 2007-07-02  Geoffrey Keating  <geoffk@apple.com>
2737
2738         * config/darwin9.h: Add copyright notice.
2739         (LINK_COMMAND_SPEC): Add comment.
2740         (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
2741         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
2742         DARWIN_LIBSYSTEM_HAS_UNWIND.
2743
2744 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
2745
2746         PR libgomp/32468
2747         * omp-low.c (check_combined_parallel): New function.
2748         (lower_omp_parallel): Call it via walk_stmts, set
2749         OMP_PARALLEL_COMBINED if appropriate.
2750         (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
2751         isn't the only statement in WS_ENTRY_BB or OMP_RETURN
2752         the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
2753         don't consider it as combined parallel.
2754
2755 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
2756
2757         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
2758         (gcc_tooldir): Likewise.
2759         * configure: Regenerate.
2760         * Makefile.in (libsubdir_to_prefix): New variable, based on the
2761         old configure.ac gcc_tooldir setting.
2762         (prefix_to_exec_prefix): New variable.
2763         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
2764         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
2765
2766 2007-07-02  Daniel Berlin  <dberlin@dberlin.org>
2767
2768         Fix PR tree-optimization/32583
2769         Fix PR tree-optimization/32584
2770         * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
2771         (phi_translate_set): Use phi_translate directly now.
2772         (make_values_for_stmt): Don't value number RHS if we already know
2773         it is constant.
2774
2775 2007-07-02  Steve Ellcey  <sje@cup.hp.com>
2776             Jim Wilson <wilson@specifix.com>
2777
2778         PR target/31684
2779         * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
2780         copy_insn.
2781
2782 2007-07-02  Sandra Loosemore  <sandra@codesourcery.com>
2783             Richard Sandiford  <richard@codesourcery.com>
2784             Nigel Stephens  <nigel@mips.com>
2785
2786         * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
2787         (mips16e_output_save_restore): Declare.
2788         (mips16e_save_restore_pattern_p): Likewise.
2789         * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
2790         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
2791         for GENERATE_MIPS16E_SAVE_RESTORE.  Return 0x400 for TARGET_MIPS16
2792         && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
2793         (BITSET_P): New global macro, extracted from...
2794         (mips_for_each_saved_reg): ...here.
2795         (mips16e_save_restore_info): New struct.
2796         (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
2797         (mips16e_save_restore_regs): New variable.
2798         (mips_split_plus, mips16e_find_first_register): New functions.
2799         (mips16e_mask_registers): New function.
2800         (compute_frame_size): Expand the commentary before the function.
2801         Enforce the MIPS16e save and restore register range restrictions.
2802         Pad the general register save area at the low end.
2803         (mips16e_save_restore_reg, mips16e_build_save_restore)
2804         (mips16e_save_restore_pattern_p, mips16e_add_register_range)
2805         (mips16e_output_save_restore, mips16e_collect_propagate_value)
2806         (mips16e_collect_argument_save, mips16e_collect_argument_saves):
2807         New functions.
2808         (mips_expand_prologue, mips_expand_epilogue): Handle
2809         GENERATE_MIPS16E_SAVE_RESTORE.
2810         * config/mips/mips.md (*mips16e_save_restore): New pattern.
2811
2812 2007-07-02  Uros Bizjak  <ubizjak@gmail.com>
2813
2814         PR tree-optimization/31966
2815         PR tree-optimization/32533
2816         * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
2817         "basic_block" description as its third argument.  Update function
2818         calls to get destination bb from "edge" argument.  Save "cond" into
2819         aux field of the edge.  Update prototype for changed arguments.
2820         (if_convertible_loop_p): Clear aux field of incoming edges if bb
2821         contains phi node.
2822         (find_phi_replacement_condition): Operate on incoming edges, not
2823         on predecessor blocks.  If there is a condition saved in the
2824         incoming edge aux field, AND it with incoming bb predicate.
2825         Return source bb of the first edge.
2826         (clean_predicate_lists): Clean aux field of outgoing node edges.
2827         (tree_if_conversion): Do not initialize cond variable. Move
2828         variable declaration into the loop.
2829         (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
2830         initializations of new_stmt, arg0 and arg1 variables.
2831
2832 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
2833
2834         * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
2835         SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
2836
2837 2007-07-02  Richard Guenther  <rguenther@suse.de>
2838
2839         * tree-ssa.c (useless_type_conversion_p): Document
2840         future intent as defining the middle-end type system.
2841         Re-structure to call langhook last, group by type class,
2842         mark questionable parts.
2843
2844 2007-07-02  Richard Guenther  <rguenther@suse.de>
2845
2846         * tree-flow.h (types_compatible_p): Declare.
2847         * tree-ssa.c (types_compatible_p): New function.
2848         * ipa-type-escape.c (discover_unique_type): Use
2849         types_compatible_p instead of lang_hooks.types_compatible_p.
2850         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
2851         * tree-vn.c (expressions_equal_p): Likewise.
2852         * tree.c (fields_compatible_p): Likewise.
2853         * tree-ssa-dom.c (avail_expr_eq): Likewise.
2854         (cprop_operand): Use useless_type_conversion_p instead of
2855         lang_hooks.types_compatible_p.
2856         * tree-inline.c (setup_one_parameter): Likewise.
2857         (declare_return_variable): Likewise.
2858         * tree-nrv.c (tree_nrv): Likewise.
2859         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
2860         (maybe_fold_offset_to_component_ref): Likewise.
2861         (maybe_fold_offset_to_reference): Likewise.
2862         * tree-ssa-copy.c (may_propagate_copy): Likewise.
2863         (merge_alias_info): Likewise.
2864         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2865         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
2866         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
2867         * tree-tailcall.c (find_tail_calls): Likewise.
2868         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
2869         * gimplify.c (canonicalize_addr_expr): Likewise.
2870         (fold_indirect_ref_rhs): Likewise.
2871         (gimplify_addr_expr): Likewise.  Swap parameters to cpt_same_type.
2872         (cpt_same_type): Likewise.
2873         (check_pointer_types_r): Swap parameters to cpt_same_type
2874         where appropriate.
2875         * fold-const.c (fold_convert): Revert fix for PR15988.
2876         * tree-inline.c (setup_one_parameter): Instead fix it here by
2877         using fold_build1 instead of fold_convert and checking for
2878         error_mark_node.  Convert only if the conversion is necessary.
2879
2880 2007-07-02  Joseph Myers  <joseph@codesourcery.com>
2881
2882         * configure.ac: Check for .gnu_attribute on Power.
2883         * configure: Regenerate.
2884         * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
2885         attribute for floating-point ABI.
2886
2887 2007-07-02  Ira Rosen  <irar@il.ibm.com>
2888
2889         PR tree-optimization/32230
2890         PR tree-optimization/32477
2891         * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base 
2892         address is a constant.
2893
2894 2007-07-02  Richard Sandiford  <richard@codesourcery.com>
2895
2896         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
2897         (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
2898         (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
2899         stanzas.  Use the first part of the triplet to set MIPS_ISA_DEFAULT.
2900         Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
2901         64-bit targets.  Add support for *-elfoabi*.
2902         * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
2903         different settings if $(tm_defines) does not select the EABI.
2904         (MULTILIB_EXCLUSIONS): Define in those circumstances.
2905         * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
2906         (MIPS_ARCH_OPTION_SPEC): Likewise.
2907         (MIPS_ISA_LEVEL_SPEC): Likewise.
2908         (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
2909         * config/mips/elfoabi.h: New file.
2910
2911 2007-07-02  Richard Guenther  <rguenther@suse.de>
2912
2913         * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
2914         (useless_type_conversion_p): ... this.
2915         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
2916         (useless_type_conversion_p): ... this.
2917         * builtins.c (fold_builtin_memory_op): Rename
2918         tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
2919         * tree-cfg.c (verify_expr): Likewise.
2920         * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
2921         * tree-ssa-ccp.c (ccp_fold): Likewise.
2922         * tree-ssa-copy.c (may_propagate_copy): Likewise.
2923         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
2924         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2925         * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
2926         * tree-ssa-pre.c (eliminate): Likewise.
2927         * tree-ssa.c (delete_tree_ssa): Likewise.
2928         (tree_ssa_useless_type_conversion): Likewise.
2929         * tree.c (build2_stat): Likewise.
2930
2931 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
2932
2933         Fix PR tree-optimization/32571
2934         * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
2935         simplifying them.
2936
2937 2007-07-01  Daniel Berlin  <dberlin@dberlin.org>
2938
2939         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
2940         and other expected operations explicitly, change default to
2941         gcc_unreachable. 
2942
2943 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
2944
2945         * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
2946         PARALLEL.
2947         * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
2948         (tls_load_dot_plus_eight): Move the label number into the unspec.
2949         * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
2950
2951 2007-07-01  Andreas Schwab  <schwab@suse.de>
2952
2953         * dwarf2out.c (initial_return_save): Define only if used.
2954
2955 2007-07-01  Kenneth Zadeck <zadeck@naturalbridge.com>
2956
2957         Unreverting Richard's Revert of:
2958
2959         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
2960
2961         * dce.c (deletable_insn_p_1): New function, split out from...
2962         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
2963         specially, not those inside PARALLELs.  Remove BODY argument
2964         and adjust recursive call accordingly.
2965         (prescan_insns_for_dce): Update call to delete_insn_p.
2966
2967 2007-07-01  Vladimir Yanovsky  <yanov@il.ibm.com>
2968             Revital Eres  <eres@il.ibm.com>
2969
2970         * ddg.c (create_ddg_all_sccs): Fix missed
2971         initialization of scc_nodes.
2972
2973 2007-07-01  Uros Bizjak  <ubizjak@gmail.com>
2974
2975         PR middle-end/32559
2976         * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
2977         X + ~X to 1 only for INTEGRAL_TYPE_P type.
2978
2979 2007-06-30  Joseph Myers  <joseph@codesourcery.com>
2980
2981         * configure.ac: Check for .gnu_attribute on MIPS.
2982         * configure, config.in: Regenerate.
2983         * config/mips/mips.c (mips_file_start): If supported, output
2984         attribute for floating-point ABI.
2985
2986 2007-06-30  Uros Bizjak  <ubizjak@gmail.com>
2987
2988         PR target/32433
2989         * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
2990         (ffs_cmove): New expander to expand using ctz pattern.
2991         (*ffs_cmove): Remove pattern.
2992         (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
2993         (ffsdi2): Expand using ctz pattern.
2994         (*ffs_rex64): Remove pattern.
2995
2996 2007-06-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2997
2998         PR rtl-optimization/32296
2999         * pa.md (return): Delete pattern.
3000         (return_internal): Remove "(const_int 1)" from pattern.
3001         (epilogue): Use return_internal pattern for trivial returns.
3002         * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
3003         * pa.c (hppa_can_use_return_insn_p): Delete function.  Include "df.h".
3004
3005 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
3006
3007         * tree-ssa-pre.c (is_exception_related): New function
3008         (can_value_number_operation): Use it.
3009
3010 2007-06-30  Daniel Berlin  <dberlin@dberlin.org>
3011         
3012         Fix PR tree-optimization/32540
3013         Fix PR tree-optimization/31651
3014
3015         * tree-ssa-sccvn.c: New file.
3016
3017         * tree-ssa-sccvn.h: Ditto.
3018         
3019         * tree-vn.c: Include tree-ssa-sccvn.h
3020         (val_expr_paid_d): Removed.
3021         (value_table): Ditto.
3022         (vn_compute): Ditto.
3023         (val_expr_pair_hash): Ditto.
3024         (val_expr_pair_expr_eq): Ditto.
3025         (copy_vuses_from_stmt): Ditto.
3026         (vn_delete): Ditto.
3027         (vn_init): Ditto.
3028         (shared_vuses_from_stmt): Ditto.
3029         (print_creation_to_file): Moved up.
3030         (sort_vuses): Ditto.
3031         (sort_vuses_heap): Ditto.
3032         (set_value_handle): Make non-static.
3033         (make_value_handle): Ditto.
3034         (vn_add): Rewritten to use sccvn lookups.
3035         (vn_add_with_vuses): Ditto.
3036         (vn_lookup): Ditto (and second argument removed).
3037         (vn_lookup_with_vuses): Ditto.
3038         (vn_lookup_or_add): Ditto (and second argument removed);
3039         (vn_lookup_or_add_with_vuses): Ditto.
3040         (vn_lookup_with_stmt): New.
3041         (vn_lookup_or_add_with_stmt): Ditto.
3042         (create_value_handle_for_expr): Ditto.
3043
3044         * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
3045         (seen_during_translate): New function.
3046         (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
3047         (phi_trans_add): Ditto.
3048         (constant_expr_p): FIELD_DECL is always constant.
3049         (phi_translate_1): Renamed from phi_translate, add seen bitmap.
3050         Use constant_expr_p.
3051         Avoid infinite recursion on mutually valued expressions.
3052         Change callers of vn_lookup_or_add.
3053         (phi_translate): New function.
3054         (compute_antic_safe): Allow phi nodes.
3055         (create_component_ref_by_pieces): Update for FIELD_DECL change.
3056         (find_or_generate_expression): Rewrite slightly.
3057         (create_expression_by_pieces): Updated for vn_lookup_or_add
3058         change.
3059         Update VN_INFO for new names.
3060         (insert_into_preds_of_block): Update for new names.
3061         (add_to_exp_gen): New function.
3062         (add_to_sets): Use vn_lookup_or_add_with_stmt.
3063         (find_existing_value_expr): Rewrite to changed vn_lookup.
3064         (create_value_expr_from): Ditto, and use add_to_exp_gen.
3065         (try_look_through_load): Removed.
3066         (try_combine_conversion): Ditto.
3067         (get_sccvn_value): New function.
3068         (make_values_for_phi): Ditto.
3069         (make_values_for_stmt): Ditto.
3070         (compute_avail): Rewritten for vn_lookup_or_add changes and to use
3071         SCCVN.
3072         (init_pre): Update for SCCVN changes.
3073         (fini_pre): Ditto.
3074         (execute_pre): Ditto.
3075
3076         * tree-flow.h (make_value_handle): Declare.
3077         (set_value_handle): Ditto.
3078         (sort_vuses_heap): Ditto.
3079         (vn_lookup_or_add_with_stmt): Ditto.
3080         (vn_lookup_with_stmt): Ditto.
3081         (vn_compute): Remove.
3082         (vn_init): Ditto.
3083         (vn_delete): Ditto.
3084         (vn_lookup): Update arguments.
3085
3086         * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
3087         (tree-vn.o): Ditto.
3088         (tree-ssa-sccvn.o): New.
3089         (OBJS-common): Add tree-ssa-sccvn.o
3090         
3091 2007-06-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3092
3093         PR c/4076
3094         * c-typeck.c (build_external_ref): Don't mark as used if called
3095         from itself.
3096         * calls.c (rtx_for_function_call): Likewise.
3097         
3098 2007-06-30  Richard Sandiford  <richard@codesourcery.com>
3099
3100         Revert:
3101
3102         2007-06-27  Richard Sandiford  <richard@codesourcery.com>
3103
3104         * dce.c (deletable_insn_p_1): New function, split out from...
3105         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
3106         specially, not those inside PARALLELs.  Remove BODY argument
3107         and adjust recursive call accordingly.
3108         (prescan_insns_for_dce): Update call to delete_insn_p.
3109
3110 2007-06-30  Rask Ingemann Lambertsen <rask@sygehus.dk>
3111
3112         * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
3113         (try_combine): Move potential calls to undo_all() so they happen
3114         before we commit to using the combined insns.
3115
3116 2006-06-30  Jan Hubicka  <jh@suse.cz>
3117
3118         * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
3119         code.
3120
3121 2006-06-30  Thomas Neumann  <tneumann@users.sourceforge.net>
3122
3123         * ipa.c (cgraph_postorder): Cast according to the coding conventions.
3124         (cgraph_remove_unreachable_nodes): Likewise.
3125         * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
3126         * ipa-inline.c (update_caller_keys): Cast according to the coding
3127         conventions.
3128         (cgraph_decide_recursive_inlining): Likewise.
3129         (cgraph_decide_inlining_of_small_function): Likewise.
3130         (try_inline): Likewise.
3131         (cgraph_decide_inlining_incrementally): Likewise.
3132         * ipa-pure-const.c (get_function_state): Likewise.
3133         (scan_function): Likewise.
3134         (analyze_function): Likewise.
3135         (static_execute): Likewise.
3136         * gcc/ipa-reference.c (scan_for_static_refs): Likewise.
3137         (merge_callee_local_info): Likewise.
3138         (analyze_function): Use type safe memory macros.
3139         (static_execute): Likewise. Cast according to the coding conventions.
3140         * ipa-type-escape.c (scan_for_regs): Cast according to the coding
3141         conventions.
3142         * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
3143         names.
3144         (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
3145         * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
3146         variable names.
3147
3148 2007-06-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3149
3150         PR middle-end/30024
3151         * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
3152         for complex modes (both int and real).
3153
3154 2007-06-29  Jan Hubicka  <jh@suse.cz>
3155
3156         * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
3157
3158 2007-06-29  Jan Hubicka  <jh@suse.cz>
3159
3160         PR middle-end/32372
3161         * cse.c (cse_insn): Avoid invalid sharing in between register note and
3162         the insn pattern.
3163
3164 2007-06-29  Anatoly Sokolov <aesok@post.ru>
3165
3166         PR target/32335
3167         * config/avr/avr.c: Include dataflow header file.
3168         (expand_prologue): Adjust for prologue insn change.
3169         * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
3170         inside a insn.
3171
3172 2007-06-29  Richard Guenther  <rguenther@suse.de>
3173
3174         PR middle-end/32493
3175         * gimplify.c (gimplify_call_expr): Ignore variable argument parts
3176         during type verification.
3177
3178 2007-06-29  Jan Hubicka  <jh@suse.cz>
3179
3180         * recog.c (validate_change_rtx_1): Unshare TO argument.
3181
3182 2007-06-29  Uros Bizjak  <ubizjak@gmail.com>
3183
3184         PR tree-optimization/24659
3185         * tree-vect-transform.c (vectorizable_call): Handle
3186         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
3187
3188         * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
3189         * config/i386/i386.c (enum ix86_builtins)
3190         [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
3191         (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
3192         description.
3193         (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
3194         const using def_builtin_const.
3195         (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
3196         input operands in the same modes as the result.
3197         (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
3198
3199 2007-06-29  Richard Sandiford  <rsandifo@nildram.co.uk>
3200
3201         * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
3202         (df_set_dead_notes_for_mw): Likewise.
3203
3204 2007-06-29  Eric Botcazou  <ebotcazou@adacore.com>
3205
3206         * c-common.c (pointer_int_sum): Do the negation in sizetype.
3207
3208 2007-06-28  DJ Delorie  <dj@redhat.com>
3209
3210         * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
3211
3212 2007-06-28  Geoffrey Keating  <geoffk@apple.com>
3213
3214         * doc/invoke.texi (C++ Dialect Options): Document
3215         fvisibility-ms-compat.
3216         * c.opt (fvisibility-ms-compat): New.
3217
3218 2007-06-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3219
3220         PR tree-opt/32417
3221         * tree-affine.c (aff_combination_add_elt): Handle
3222         pointer addition specially.
3223
3224 2007-06-28  Jakub Jelinek  <jakub@redhat.com>
3225
3226         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
3227         decl is non-external for AIX ABI.
3228
3229 2007-06-28  David Edelsohn  <edelsohn@gnu.org>
3230
3231         * config/rs6000/predicates.md (current_file_function_operand):
3232         Ensure the symbol is non-external for AIX ABI.
3233
3234 2007-06-28  Nick Clifton  <nickc@redhat.com>
3235
3236         * common.opt (fipa-matrix-reorg): Add Optimization attribute.
3237         (fdce, fdse, fpredictive-commoning): Likewise.
3238
3239 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3240
3241         PR other/31400
3242         * gcc.c (process_command): Recognize the new -static-libgfortran
3243         option.
3244
3245 2007-06-27  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3246
3247         PR target/32418
3248         * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
3249         Use a call clobbered hard reg instead of a pseudo reg.
3250
3251 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3252
3253         * config/sh/sh.md (load_gbr): Use correct operand constraint.
3254
3255 2007-06-27  Kaz Kojima  <kkojima@gcc.gnu.org>
3256
3257         PR target/32479
3258         * config/sh/sh.md (udivsi3): Don't wrap the sequence with
3259         REG_LIBCALL and REG_RETVAL notes.
3260         (divsi3, mulsi3): Likewise.
3261         (mulhisi3): Likewise.  Use emit_libcall_block.
3262         (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
3263
3264 2007-06-27  Seongbae Park  <seongbae.park@gmail.com>
3265
3266         PR rtl-optimization/32481
3267         * combine.c (adjust_for_new_dest): Rescan the changed insn.
3268
3269 2007-06-27  Richard Sandiford  <richard@codesourcery.com>
3270
3271         * dce.c (deletable_insn_p_1): New function, split out from...
3272         (deletable_insn_p): ...here.  Only treat bare USEs and CLOBBERs
3273         specially, not those inside PARALLELs.  Remove BODY argument
3274         and adjust recursive call accordingly.
3275         (prescan_insns_for_dce): Update call to delete_insn_p.
3276
3277 2007-06-27  Richard Guenther  <rguenther@suse.de>
3278
3279         PR middle-end/32492
3280         * tree.h (fold_convertible_p): Declare.
3281         * fold-const.c (fold_convertible_p): New function.
3282         * gimplify.c (gimplify_call_expr): Use fold_convertible_p
3283         instead of lang_hooks.types_compatible_p.
3284
3285 2007-06-26  Jan Hubicka  <jh@suse.cz>
3286
3287         * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
3288         * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
3289         early use validate_unshare_change.
3290         (reload_combine): Likewise.
3291         * recog.c (change_t): New field unshare.
3292         (validate_change_1): Rename from validate_change; add argument unshare.
3293         (validate_change): Turn into wrapper of validate_change_1; update
3294         prototype for bools.
3295         (validate_unshare_change): New.
3296         (confirm_change_group): Unshare changes if asked for; avoid unnecesary
3297         calls of df_insn_rescan.
3298         * recog.h (validate_change): Replace ints by bools.
3299         (validate_unshare_change): Declare.
3300
3301 2007-06-26  Kenneth Zadeck <zadeck@naturalbridge.com>
3302
3303         * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
3304         
3305 2007-06-26  Steve Ellcey  <sje@cup.hp.com>
3306
3307         * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
3308
3309 2007-06-25  Jan Hubicka  <jh@suse.cz>
3310
3311         * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
3312         uninlinable call.
3313         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
3314         cgraph_decide_inlining_incrementally): Move uninlinability checks to
3315         places other call site specific checks are performed.
3316
3317 2007-06-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3318
3319         PR tree-opt/32421
3320         * tree-vect-transform.c (vectorizable_operation): Convert
3321         POINTER_PLUS_EXPR over to PLUS_EXPR.
3322
3323 2007-06-25  Chao-ying Fu  <fu@mips.com>
3324
3325         * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
3326         UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
3327         Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
3328         Document GET_MODE_IBIT, and GET_MODE_FBIT.
3329
3330         * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
3331         MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
3332         (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
3333         SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
3334         SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
3335         ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
3336         ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
3337         SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
3338         ALL_FIXED_POINT_MODE_P): New define.
3339         (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
3340         MODE_UACCUM.
3341         (GET_MODE_IBIT, GET_MODE_FBIT): New define.
3342
3343         * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
3344         MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
3345         MODE_VECTOR_UACCUM): New mode classes.
3346
3347         * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
3348         UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
3349         Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
3350         USA, UDA, and UTA.
3351
3352         * genmodes.c (struct mode_data): Add ibit and fbit fields.
3353         (blank_mode): Initialize ibit and fbit.
3354         (adj_ibit, adj_fbit): New to adjust ibit and fbit.
3355         (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
3356         MODE_UACCUM.
3357         (new_adjust): Change required_class to required_class_from and
3358         required_class_to for testing within a range.
3359         (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
3360         MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
3361         MODE_VECTOR_UACCUM.
3362         (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
3363         (make_fixed_point_mode): New.
3364         (_ADD_ADJUST): Change C to C1 and C2.
3365         (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
3366         use a range for machine classes.
3367         (ADJUST_IBIT, ADJUST_FBIT): New.
3368         (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
3369         CONST_MODE_FBIT.
3370         (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
3371         MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
3372         Emit adjustment for ibit and fbit.
3373         (emit_mode_ibit, emit_mode_fbit): New.
3374         (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
3375
3376 2007-06-25  Nathan Froyd  <froydnj@codesourcery.com>
3377
3378         * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
3379         as the source of the set.
3380
3381 2007-06-25  Roman Zippel <zippel@linux-m68k.org>
3382
3383         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
3384         FP_REGNO_P): Use IN_RANGE.
3385         (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
3386         (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
3387         (DATA_REG_P): Use DATA_REGNO_P.
3388         (FP_REG_P): Use FP_REGNO_P.
3389         (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
3390         * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
3391         REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
3392
3393 2007-06-24  Jan Hubicka  <jh@suse.cz>
3394
3395         PR middle-end/30563
3396         * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
3397
3398 2007-06-24  Sebastian Pop  <sebpop@gmail.com>
3399
3400         PR middle-end/32461
3401         * fold-const.c (fold_binary): Strip nops of operand 0
3402         of BIT_NOT_EXPR before calling operand_equal_p.
3403         * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
3404         * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
3405
3406 2007-06-23  Mark Mitchell  <mark@codesourcery.com>
3407
3408         * doc/extend.texi: Document that dllimport and dllexport imply
3409         default visibility.
3410         * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
3411         imported or exported declaration, including type declarations.
3412         * c-common.c (handle_visibility_attribute): Check for conflicts
3413         with dllimport/dllexport.
3414         (c_determine_visibility): Handle dllimport/dllexport as an
3415         explicit visibility atttribute.
3416
3417 2007-06-23  Richard Guenther  <rguenther@suse.de>
3418
3419         PR tree-optimization/16876
3420         PR middle-end/29478
3421         * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
3422         for CALL_EXPRs.
3423         * tree-inline.c (initialize_inlined_parameters): Do not call
3424         lang_hooks.tree_inlining.convert_parm_for_inlining.
3425         * cgraphbuild.c (initialize_inline_failed): Set inline failed
3426         reason for mismatched types.
3427         * gimplify.c (gimplify_call_expr): Verify the call expression
3428         arguments match the called function type signature.  Otherwise
3429         mark the call expression to be not considered for inlining
3430         using CALL_CANNOT_INLINE_P flag.
3431         * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
3432         edges call expression.
3433         (cgraph_decide_inlining_of_small_function): Likewise.
3434         (cgraph_decide_inlining): Likewise.
3435         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
3436         Remove define.
3437         * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
3438         * c-typeck.c (c_convert_parm_for_inlining): Remove.
3439         * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
3440         Remove declaration.
3441         (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
3442         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
3443         Remove.
3444         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
3445         convert_parm_for_inlining member.
3446
3447 2007-06-23  Richard Earnshaw  <rearnsha@arm.com>
3448
3449         PR target/31152
3450         * arm.md (negscc): Match the correct operand for optimized LT0 test.
3451         Remove optimization for GT.
3452
3453 2007-06-23  Kenneth Zadeck <zadeck@naturalbridge.com>
3454
3455         PR middle-end/32437
3456         * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
3457         is a PARALLEL.
3458         (prescan_insns_for_dce): Add extra parameter.
3459         
3460 2007-06-23  Jan Hubicka  <jh@suse.cz>
3461
3462         PR middle-end/31541
3463         * gimplify.c (mark_addressable): New function.
3464         (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
3465
3466 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
3467
3468         PR middle-end/32374
3469         * expr.c (store_constructor): Do not clobber non-zeroed memory. 
3470
3471 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
3472
3473         PR target/32413
3474         * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
3475         moves between MMX/SSE registers to at least 8 units to prevent
3476         ICE caused by non-tieable SI/HI/QImodes in SSE registers. 
3477
3478 2007-06-22  Uros Bizjak  <ubizjak@gmail.com>
3479
3480         * config/i386/i386.c (override_options): Correct x86_sahf
3481         setting condition.
3482
3483 2007-06-21  David Daney  <ddaney@avtrex.com>
3484
3485         PR target/32406
3486         * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
3487         to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
3488         (exception_receiver): Renamed to ...
3489         (nonlocal_goto_receiver): ... this.
3490
3491 2007-06-22  Roman Zippel <zippel@linux-m68k.org>
3492
3493         * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
3494         (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
3495         partial register accesses.
3496
3497 2007-06-21  Adam Nemet  <anemet@caviumnetworks.com>
3498
3499         * fold-const.c (debug_fold_checksum): Move it under
3500         ENABLE_FOLD_CHECKING.
3501
3502 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
3503
3504         PR middle-end/20623
3505         * tree.h (debug_fold_checksum): Declared.
3506         * fold-const.c (build_fold_addr_expr_with_type_1): New.
3507         (build_fold_addr_expr_with_type, build_fold_addr_expr): Use 
3508         build_fold_addr_expr_with_type_1.
3509         (fold_addr_expr, debug_fold_checksum): New.
3510         (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
3511         (fold_unary, fold_comparison, split_address_to_core_and_offset):
3512         Use fold_addr_expr.
3513         
3514 2007-06-21  Sebastian Pop  <sebpop@gmail.com>
3515
3516         PR tree-optimization/19590
3517         * tree-vrp.c (adjust_range_with_scev): Set the range when the result
3518         of scev is a constant.
3519         * gcc/testsuite/gcc.dg/tree-ssa/pr19590.c: New.
3520
3521 2007-06-21  Kenneth Zadeck <zadeck@naturalbridge.com>
3522
3523         * df-problems.c (df_note_bb_compute): Made computation of live
3524         info consistent with df_lr.
3525
3526 2007-06-21  Richard Guenther  <rguenther@suse.de>
3527
3528         PR tree-optimization/32453
3529         * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
3530         for pointer anti-range.
3531
3532 2007-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3533
3534         * config/i386/i386.c (processor_target_table): Increase maximum
3535         skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
3536         default 64bit.
3537
3538         * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
3539         byte alignment if > 8 byte alignment is preferred.
3540         * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3541
3542 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
3543
3544         PR tree-optimization/31866
3545         * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
3546         if ASM_EXPR's input is not a SSA_NAME.
3547
3548         PR middle-end/32362
3549         * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
3550         but decl is a global var, instead return decl.
3551         * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
3552         even for is_global_var decls, if they are private in some outer
3553         context.
3554
3555 2007-06-21  Richard Guenther  <rguenther@suse.de>
3556
3557         PR tree-optimization/32451
3558         * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
3559
3560 2007-06-21  Christian Bruel  <christian.bruel@st.com>
3561
3562         * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
3563         * config/sh/sh.c (sh_loads_bankedreg_p): New function.
3564         (push_regs): Changed saving order or banked registers.
3565         (sh_expand_epilogue): Likewise.
3566         * config/sh/sh.h (BANKED_REGISTER_P): New macro.
3567         (FIRST_BANKED_REG): Likewise.
3568         (LAST_BANKED_REG): Likewise.
3569         * config/sh/sh.md (banked) New attribute.
3570         (in_delay_slot): Check banked attribute.
3571         
3572 2007-06-20  Sebastian Pop  <sebpop@gmail.com>
3573
3574         PR tree-optimization/32075
3575         * tree-data-ref.c (subscript_dependence_tester_1, 
3576         analyze_miv_subscript, analyze_overlapping_iterations,
3577         add_distance_for_zero_overlaps, build_classic_dist_vector,
3578         subscript_dependence_tester_1, analyze_overlapping_iterations,
3579         subscript_dependence_tester, access_functions_are_affine_or_constant_p,
3580         compute_affine_dependence, compute_all_dependences): Pass loop_nest 
3581         to evolution_function_is_affine_multivariate_p.
3582
3583 2007-06-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
3584
3585         * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
3586
3587 2007-06-20  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3588
3589         PR target/32335
3590         * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
3591         for TARGET_A16.
3592         * config/m32c/prologue.md (epilogue_exitd_16): New.
3593         (epilogue_reit_16): New.
3594         (epilogue_exitd): Rename to epilogue_exitd_24.
3595         (epilogue_reit): Rename to epilogue_reit_24.
3596
3597 2007-06-20  Seongbae Park  <seongbae.park@gmail.com>
3598             Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
3599
3600         * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
3601         New counters.
3602         * haifa-sched.c (queue_to_ready): Don't requeue next insn
3603         if dbg_cnt (sched_insn) reaches the limit.
3604         (choose_ready): New parameter INSN_PTR and new return value.
3605         (schedule_block): Handle dbg_cnt (sched_insn). Handle
3606         the new return value from choose_ready.
3607         * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
3608         (rest_of_handle_global_alloc): New global_alloc_at_func.
3609
3610 2007-06-20  Adam Nemet  <anemet@caviumnetworks.com>
3611
3612         PR tree-optimization/25737
3613         * tree.h (struct tree_struct_field_tag): Add new field alias_set.
3614         (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
3615         * tree-flow.h (struct fieldoff): Add new field alias_set.
3616         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
3617         argument addressable_type.  Set alias_set of fieldoff.
3618         * tree-ssa-alias.c (create_sft): Add new argument alias_set.
3619         (create_overlap_variables_for): Pass alias_set from fieldoff to
3620         create_sft.
3621         * alias.c (get_alias_set): Use alias_set from SFT if set.
3622
3623 2007-06-20  Hui-May Chang  <hm.chang@apple.com>
3624
3625         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
3626         of a variable as an unsigned HOST_WIDE_INT integer.
3627
3628 2007-06-20  Zdenek Dvorak  <dvorakz@suse.cz>
3629
3630         PR rtl-optimization/32405
3631         * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
3632
3633 2007-06-20  Jakub Jelinek  <jakub@redhat.com>
3634
3635         * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
3636
3637         PR middle-end/31959
3638         * builtins.c: Include diagnostic.h.
3639         (expand_builtin_expect): Make gcc_assert more permissive.
3640         * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
3641
3642         PR inline-asm/32109
3643         * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
3644         and !allows_mem.
3645
3646         PR middle-end/32285
3647         * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
3648         if ACCUMULATE_OUTGOING_ARGS.
3649
3650 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3651
3652         * config/m68hc11/m68hc11.c: Include dataflow header file.
3653         (m68hc11_reorg): Port to dataflow.
3654
3655 2007-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
3656
3657         * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
3658         (struct df_problem.free_blocks_on_set_blocks): New field.
3659         (struct dataflow.optional_p): New field.
3660         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
3661         (df_live_set_all_dirty): New function.
3662         * df-scan.c (df_scan_alloc): Initialize optional_p.
3663         (problem_SCAN): Initialize free_blocks_on_set_blocks.
3664         * df-core.c (df_set_blocks): Removed use of
3665         DF_FIRST_OPTIONAL_PROBLEM.  Now uses
3666         df_problem.free_blocks_on_set_blocks to determine which blocks are
3667         recycled.
3668         (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
3669         (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM.  Now
3670         uses dataflow.optional_p to determine if problem should be
3671         deleted.
3672         (rest_of_handle_df_initialize): Only start live problem if 
3673         -02 or above.
3674         (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
3675         * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
3676         df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
3677         (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
3678         problem_NOTE):  Initialize free_blocks_on_set_blocks.
3679         (df_lr_bb_local_compute): Recompute luids if df_live problem is
3680         not active.
3681         (df_live_set_all_dirty, df_note_alloc): New function.
3682         * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
3683         df_get_live_*.
3684         * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
3685         * postreload.c (reload_combine): Ditto.
3686         * cse.c (cse_extended_basic_block): Ditto.
3687         * regmove.c (mark_flags_life_zones): Ditto.
3688         * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
3689         erase_matching_seqs): Ditto.
3690         * bt-load.c (compute_defs_uses_and_gen): Ditto.
3691         * integrate (allocate_initial_values): Ditto.
3692         * combine.c (reg_dead_at_p): Ditto.
3693         * resource.c (mark_target_live_regs): Ditto.
3694         * sched-rgn.c (check_live_1, update_live_1): Ditto.
3695         * config/sh/sh.c (find_r0_life_regions): Ditto.
3696         * global.c (rest_of_handle_global_alloc): Only add back df_live
3697         for -O > 1.
3698         * local-alloc.c (rest_of_handle_local_alloc): Only remove
3699         df_live for -O > 1.
3700         * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
3701         df_get_live_*.
3702         (if_convert): Make sure df_live is there at -O == 1.
3703         (pass_if_after_combine): Cleanup flags.
3704         * init-regs.c (initialize_uninitialized_regs): Make sure df_live
3705         is there at -O == 1.
3706         
3707 2007-06-19  Seongbae Park  <seongbae.park@gmail.com>
3708
3709         * config/arm/arm.c (arm_get_frame_offsets): Set
3710         offsets->locals_base to avoid negative stack size.
3711         (thumb1_expand_prologue): Assert on negative stack size.
3712
3713 2007-06-19  Sebastian Pop  <sebpop@gmail.com>
3714
3715         PR tree-optimization/32367
3716         * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side 
3717         of the chrec has no evolution in that loop.
3718         * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
3719
3720 2007-06-19  Bob Wilson  <bob.wilson@acm.org>
3721
3722         * config/xtensa/xtensa.c: Include "df.h".
3723         (xtensa_builtin_saveregs): Use adjust_address instead of
3724         change_address.
3725         (xtensa_va_start): Invoke make_tree with sizetype for
3726         expand_builtin_saveregs and then convert the result to a pointer.
3727         Use POINTER_PLUS_EXPR.  Use size_int instead of build_int_cst.
3728         (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
3729         Subtract argument size from index value as integers and then use
3730         POINTER_PLUS_EXPR to add the result to the array address.
3731         
3732 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3733
3734         PR target/32335
3735         * config/m32c/m32c.c: Include dataflow header file.
3736         (m32c_emit_prologue): Adjust for prologue insn change.
3737         * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
3738         once inside a PARALLEL. Assume frame size passed in operand 0
3739         includes space to save the fb register.
3740         (prologue_enter_24): Likewise.
3741         (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
3742
3743 2007-06-19  David Daney  <ddaney@avtrex.com
3744
3745         PR target/32313
3746         * config/mips/mips.md (cprestore): Mark $gp as used.
3747
3748 2007-06-19  Rask Ingemann Lambertsen  <rask@sygehus.dk>
3749
3750         PR target/32369
3751         * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
3752         (frv_ifcvt_modify_insn): Likewise.
3753
3754 2007-06-19  Richard Guenther  <rguenther@suse.de>
3755
3756         * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
3757         only handle positive offsets that fit in a HOST_WIDE_INT.
3758
3759 2007-06-19  Uros Bizjak  <ubizjak@gmail.com>
3760
3761         * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
3762         result of rsqrt insn for zero input argument to avoid NaN.
3763
3764 2007-06-19  Richard Guenther  <rguenther@suse.de>
3765
3766         PR middle-end/31950
3767         * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
3768
3769 2007-06-19  Jakub Jelinek  <jakub@redhat.com>
3770
3771         PR tree-optimization/32353
3772         * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
3773
3774 2007-06-19  Nick Clifton  <nickc@redhat.com>
3775
3776         * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
3777
3778 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
3779
3780         PR target/32389
3781         * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
3782         * config/i386/i386.c (assign_386_stack_local): Assert that
3783         SLOT_VIRTUAL is valid only before virtual regs are instantiated.
3784         (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
3785         Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
3786         * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
3787
3788 2007-06-18  Steve Ellcey  <sje@cup.hp.com>
3789
3790         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
3791
3792 2007-06-18  Seongbae Park  <seongbae.park@gmail.com>
3793
3794         PR rtl-optimization/32321
3795         * gcse.c (replace_store_insn): Update the note before
3796         calling emit_insn_after.
3797
3798 2007-06-18  Kenneth Zadeck <zadeck@naturalbridge.com>
3799
3800         PR middle-end/32355
3801         * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
3802         cse_main.
3803         * df-problems.c (df_note_bb_compute): Fix dumping info.
3804         
3805 2007-06-18  Kazu Hirata  <kazu@codesourcery.com>
3806
3807         * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
3808         insn with emit_jump_insn.
3809
3810 2007-06-18  Uros Bizjak  <ubizjak@gmail.com>
3811
3812         PR tree-optimization/32383
3813         * targhooks.c (default_builtin_reciprocal): Add new bool argument.
3814         * targhooks.h (default_builtin_reciprocal): Update prototype.
3815         * target.h (struct gcc_target): Update builtin_reciprocal.
3816         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
3817         * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
3818         where arg1 is not SSA_NAME.  Pass true to targetm.builtin_reciprocal
3819         when fndecl is in BUILT_IN_MD class.
3820         (execute_convert_to_rsqrt): Ditto.
3821
3822         * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
3823         argument.  Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
3824         Convert BUILT_IN_SQRTF code only  when md_fn is false.
3825
3826 2007-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
3827
3828         * bt-load.c (move_btr_def): Fix the order of arguments
3829         to validate_replace_rtx.
3830
3831 2007-06-18  Nathan Sidwell  <nathan@codesourcery.com>
3832
3833         * config/m68k/m68k-devices.def: Add 54450..54455.
3834
3835 2007-06-17  Uros Bizjak  <ubizjak@gmail.com>
3836
3837         PR rtl-optimization/32366
3838         * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
3839         FLOAT_EXTEND]: Prevent non-scalar modes from entering
3840         significand_size.
3841
3842 2007-06-17  Kenneth Zadeck <zadeck@naturalbridge.com>
3843
3844         PR middle-end/32349
3845         * modulo-sched (generate_reg_moves): Added rescan parameter and if
3846         this is true, rescan insn being modified.
3847         (sms_schedule): Added rescan parameter.
3848         (rest_of_handle_sms): Moved freeing of dominance info to before
3849         getting out of cfg_layout.
3850         
3851 2007-06-17  Nathan Sidwell  <nathan@codesourcery.com>
3852
3853         * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
3854         * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
3855         appropriate.
3856
3857         * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
3858         FL_CF_EMAC from the entry for isac.
3859
3860         * config/m68k/predicates.md (const_call_operand): Adjust comment.
3861         (const_sibcall_operand): New.
3862         (sibcall_operand): Use it.
3863         * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
3864         (m68k_isas): ISAC does not imply FPU or EMAC.
3865         (override_options): Add ISA_C logic for symbolic jump & call.
3866
3867 2007-06-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3868
3869         * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
3870         return mode from the builtin itself.
3871         (sparc_fold_builtin): Fix cast of zero constant.
3872
3873 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
3874
3875         * targhooks.c (default_builtin_reciprocal): New default target hook.
3876         * targhooks.h (default_builtin_reciprocal): Add prototype.
3877         * hooks.c (hook_tree_tree_bool_null): Remove hook.
3878         * hooks.h (hook_tree_tree_bool_null): Remove prototype.
3879         * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
3880         default_builtin_reciprocal.
3881
3882 2007-06-16  Uros Bizjak  <ubizjak@gmail.com>
3883
3884         PR middle-end/31723
3885         * hooks.c (hook_tree_tree_bool_null): New hook.
3886         * hooks.h (hook_tree_tree_bool_null): Add prototype.
3887         * tree-pass.h (pass_convert_to_rsqrt): Declare.
3888         * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
3889         * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
3890         and convert it to reciprocal a*rfunc(b).
3891         (execute_convert_to_rsqrt): New function.
3892         (gate_convert_to_rsqrt): New function.
3893         (pass_convert_to_rsqrt): New pass definition.
3894         * target.h (struct gcc_target): Add builtin_reciprocal.
3895         * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
3896         (TARGET_INITIALIZER): Initialize builtin_reciprocal with
3897         TARGET_BUILTIN_RECIPROCAL.
3898         * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
3899
3900         * config/i386/i386.h (TARGET_RECIP): New define.
3901         * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
3902         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
3903         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
3904         and not optimizing for size.
3905         (*rcpsf2_sse): New insn pattern.
3906         (*rsqrtsf2_sse): Ditto.
3907         (rsqrtsf2): New expander.  Expand by calling ix86_emit_swsqrtsf
3908         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
3909         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
3910         and not optimizing for size.
3911         (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
3912         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
3913         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
3914         and not optimizing for size.
3915         * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
3916         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
3917         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
3918         and not optimizing for size.
3919         (*sse_rsqrtv4sf2): Do not export.
3920         (sqrtv4sf2): Ditto.
3921         (sse_rsqrtv4sf2): New expander.  Expand by calling ix86_emit_swsqrtsf
3922         for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
3923         flag_unsafe_math_optimizations are set, flag_trapping_math is unset
3924         and not optimizing for size.
3925         (sqrtv4sf2): Ditto.
3926         * config/i386/i386.opt (mrecip): New option.
3927         * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
3928         (ix86_emit_swsqrtsf): Ditto.
3929         * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
3930         (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
3931         builtin definition.
3932         (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
3933         ix86_expand_unop1_builtin.
3934         (ix86_emit_swdivsf): New function.
3935         (ix86_emit_swsqrtsf): Ditto.
3936         (ix86_builtin_reciprocal): New function.
3937         (TARGET_BUILTIN_RECIPROCAL): Use it.
3938         (ix86_vectorize_builtin_conversion): Rename from
3939         ix86_builtin_conversion.
3940         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
3941         * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
3942         "i386 and x86_64 Options" section.
3943         (Intel 386 and AMD x86_64 Options): Document -mrecip.
3944
3945 2007-06-15  Andrew Pinski <andrew_pinski@playstation.sony.com>
3946             Zdenek Dvorak <dvorakz@suse.cz>
3947             Richard Guenther  <rguenther@suse.de>
3948             Kaz Kojima  <kkojima@gcc.gnu.org>
3949
3950         * tree-vrp.c (compare_values_warnv): Convert val2 to
3951         the type of val1.
3952         (extract_range_from_assert): Create
3953         POINTER_PLUS_EXPR for pointer types.
3954         (extract_range_from_binary_expr): Handle
3955         only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
3956         for pointer types.
3957         * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
3958         * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
3959         POINTER_PLUS_EXPR as PLUS_EXPR.
3960         (number_of_iterations_lt_to_ne):
3961         For pointer types, use sizetype when
3962         creating MINUS_EXPR/PLUS_EXPRs.
3963         (assert_loop_rolls_lt): For pointer types, use sizetype when
3964         creating MINUS_EXPR/PLUS_EXPRs.
3965         (number_of_iterations_le): Likewise.
3966         (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
3967         (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
3968         like PLUS_EXPR and MINUS_EXPR.
3969         * tree-pretty-print.c (dump_generic_node): Handle
3970         POINTER_PLUS_EXPR.
3971         (op_prio): Likewise.
3972         (op_symbol_1): Likewise.
3973         * optabs.c (optab_for_tree_code): Likewise.
3974         * tree-ssa-loop-manip.c (create_iv): Handle pointer base
3975         specially.
3976         * tree-tailcall.c (process_assignment): Mention
3977         POINTER_PLUS_EXPR in a TODO comment.
3978         * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or 
3979         MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
3980         not used with a pointer and an integer type.
3981         * tree-scalar-evolution.c (add_to_evolution_1): Convert the
3982         increment using chrec_convert_rhs instead of chrec_convert.
3983         (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
3984         PLUS_EXPR except for the right hand side's type will be
3985         sizetype.
3986         (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
3987         (fold_used_pointer_cast): Kill.
3988         (pointer_offset_p): Kill.
3989         (fold_used_pointer): Kill.
3990         (pointer_used_p): Kill.
3991         (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
3992         call fold_used_pointer.
3993         (instantiate_parameters_1): Convert the increment
3994         using chrec_convert_rhs instead of chrec_convert.
3995         Handle POINTER_PLUS_EXPR as PLUS_EXPR.
3996         * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
3997         instead of PLUS_EXPR.
3998         (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
3999         PLUS_EXPR for pointers.
4000         (std_gimplify_va_arg_expr): Likewise.
4001         (fold_builtin_memory_op): Likewise.
4002         (fold_builtin_strstr): Likewise.
4003         (fold_builtin_strchr): Likewise.
4004         (fold_builtin_strrchr): Likewise.
4005         (fold_builtin_strpbrk): Likewise.
4006         (expand_builtin_memory_chk): Likewise.
4007         (fold_builtin_memory_chk): Likewise.
4008         (std_expand_builtin_va_start): Use
4009         sizetype for the call to make_tree and then convert
4010         to the pointer type.
4011         (fold_builtin_memchr): Use POINTER_PLUS_EXPR
4012         instead of PLUS_EXPR for adding to a pointer.
4013         (std_gimplify_va_arg_expr): Use fold_build2 for
4014         the creating of POINTER_PLUS_EXPR.  For the BIT_AND_EXPR, cast
4015         the operands to sizetype first and then cast the BIT_AND_EXPR
4016         back to the pointer type.
4017         * fold-const.c (build_range_check): Handle pointer types
4018         specially.
4019         (extract_array_ref): Look for POINTER_PLUS_EXPR instead
4020         of PLUS_EXPR's. Make sure the offset is converted to
4021         sizetype.
4022         (try_move_mult_to_index): Strip the NOPs from the offset.
4023         Remove code argument and replace all uses with PLUS_EXPR.
4024         (fold_to_nonsharp_ineq_using_bound): Handle pointer types
4025         specially. Don't use a pointer type for MINUS_EXPR.
4026         (fold_unary): Handle for (T1)(X op Y),
4027         only p+ as that is the only as that can be handled for
4028         binary operators now.
4029         (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
4030         POINTER_PLUS_EXPR.
4031         <case PLUS_EXPR>: Add folding of PTR+INT into
4032         PTR p+ INT.
4033         Don't call try_move_mult_to_index.
4034         <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
4035         into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
4036         (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
4037         Don't call try_move_mult_to_index.
4038         (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
4039         (tree_expr_nonzero_p): Likewise.
4040         (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
4041         of PLUS_EXPR for the complex expression folding.
4042         * tree-chrec.c (chrec_fold_plus_poly_poly): If the
4043         first chrec is a pointer type, then the second should
4044         be sizetype and not the first's type.
4045         For POINTER_PLUS_EXPR, use a different right hand side type.
4046         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
4047         (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
4048         different right hand side type.
4049         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
4050         (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
4051         instead of PLUS_EXPR.
4052         When either operand is zero, convert the other operand.
4053         (chrec_apply): Use chrec_convert_rhs
4054         on the argument x instead of chrec_convert.
4055         (reset_evolution_in_loop): For pointer types, the new_evol
4056         should be sizetype.
4057         (convert_affine_scev): For POINTER_PLUS_EXPR, use a
4058         different right hand side type.
4059         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
4060         (chrec_convert_rhs): New function.
4061         (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
4062         different right hand side type.
4063         Handle POINTER_PLUS_EXPR like PLUS_EXPR.
4064         * tree-chrec.h (chrec_convert_rhs): New prototype.
4065         (build_polynomial_chrec): For pointer types, the right hand
4066         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
4067         POINTER_PLUS_EXPR instead of PLUS_EXPR's.
4068         Remove subtraction case as it is always addition now.
4069         Make sure the offset is converted to sizetype.
4070         (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
4071         Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
4072         * tree-ssa-loop-ivopts.c (determine_base_object): Abort for 
4073         PLUS_EXPR in pointer type.
4074         Handle POINTER_PLUS_EXPR.
4075         (tree_to_aff_combination): Likewise.
4076         (force_expr_to_var_cost): Likewise.
4077         (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
4078         instead of PLUS_EXPR for pointers.
4079         * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
4080         instead of PLUS_EXPR of pointer types.
4081         * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
4082         as PLUS_EXPR.
4083         (check_va_list_escapes): Likewise.
4084         (check_all_va_list_escapes): Likewise.
4085         * dwarf2out.c (loc_descriptor_from_tree_1):
4086         Handle POINT_PLUS_EXPR as a PLUS_EXPR.
4087         * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
4088         (string_constant): Likewise.
4089         * tree-ssa-address.c (tree_mem_ref_addr): When adding
4090         the offset to the base, use POINTER_PLUS_EXPR.
4091         (add_to_parts): Convert the index to sizetype.
4092         (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
4093         * matrix-reorg.c (collect_data_for_malloc_call): Stmt
4094         will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
4095         Offset only holds something for PLUS_EXPR.
4096         (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
4097         a PLUS_EXPR.
4098         (analyze_transpose): POINTER_PLUS_EXPR will only show up now
4099         and not PLUS_EXPR.
4100         (analyze_accesses_for_modify_stmt): Likewise.
4101         Remove comment about the type being integral type as it is
4102         wrong now.
4103         (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
4104         PLUS_EXPR.
4105         (transform_access_sites): POINTER_PLUS_EXPR will only show up now
4106         and not PLUS_EXPR.
4107         Correct the type which the artimentic is done in (is now
4108         sizetype).
4109         Reindent one loop.
4110         * tree-data-ref.c (split_constant_offset): Handle
4111         POINTER_PLUS_EXPR
4112         * tree-affine.c (tree_to_aff_combination): Likewise.
4113         * c-typeck.c (build_unary_op): For pointers create the increment
4114         as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
4115         for pointers.
4116         * gimplify.c (gimplify_self_mod_expr): Create a
4117         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
4118         (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
4119         * tree.def (POINTER_PLUS_EXPR): New tree code.
4120         * tree-predcom.c (ref_at_iteration): If we have a pointer
4121         type do the multiplication in sizetype.
4122         * tree-mudflap.c (mf_xform_derefs_1): Create a
4123         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
4124         * tree-ssa-forwprop.c 
4125         (forward_propagate_addr_into_variable_array_index):
4126         Don't expect there to be a cast for the index as that
4127         does not exist anymore.
4128         (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
4129         instead of PLUS_EXPR.
4130         Don't check for the first operand of the POINTER_PLUS_EXPR
4131         was the index as it cannot be.
4132         Call forward_propagate_addr_into_variable_array_index with
4133         the SSA_NAME instead of the statement.
4134         * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
4135         (compare_constant): Likewise.
4136         (copy_constant): Likewise.
4137         (compute_reloc_for_constant): Likewise.
4138         (output_addressed_constants): Likewise.
4139         (initializer_constant_valid_p): Likewise.
4140         * tree-ssa.c (tree_ssa_useless_type_conversion_1):
4141         Convert the MIN/MAX of the inner type to the outer
4142         type before comparing them.
4143         * tree-ssa-loop-prefetch.c (idx_analyze_ref):  Handle
4144         POINTER_PLUS_EXPR instead of PLUS_EXPR.
4145         (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
4146         of PLUS_EXPR for pointers.
4147         * tree-inline.c (estimate_num_insns_1): Handle
4148         POINTER_PLUS_EXPR.
4149         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): 
4150         Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
4151         (bump_vector_ptr): Create a POINTER_PLUS_EXPR
4152         instead of PLUS_EXPR for the pointer increment statement.
4153         (vect_update_ivs_after_vectorizer): For pointer types, create
4154         POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
4155         MULT_EXPR in sizetype.
4156         (vect_gen_niters_for_prolog_loop): Add a cast when creating
4157         byte_misalign.
4158         * tree-object-size.c (plus_expr_object_size): Handle
4159         POINTER_PLUS_EXPR instead of PLUS_EXPR.  Removing all the extra
4160         code which is trying to figure out which side is a pointer and 
4161         is the index.
4162         (check_for_plus_in_loops_1): Likewise.
4163         (check_for_plus_in_loops): Likewise.
4164         * c-common.c (pointer_int_sum): Create a
4165         POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
4166         * tree-ssa-structalias.c (handle_ptr_arith): Handle
4167         only POINTER_PLUS_EXPR.  Removing all the extra
4168         code which is trying to figure out which side is a pointer and 
4169         is the index.
4170         * tree-cfg.c (verify_expr): Add extra checking for pointers and
4171         PLUS_EXPR and MINUS_EXPR.
4172         Also add checking to make sure the operands of POINTER_PLUS_EXPR
4173         are correct.
4174         * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
4175         with make_tree, instead of a pointer type.
4176         * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
4177         for pointers instead of PLUS_EXPR.
4178         (s390_gimplify_va_arg): Likewise.
4179         * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
4180         instead of PLUS_EXPR when doing addition on pointer
4181         types.  Use sizetype for the second operand.
4182         (spu_gimplify_va_arg_expr): Likewise.
4183         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use 
4184         POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
4185         a pointer.  Don't create a BIT_AND_EXPR for pointer types.
4186         * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
4187         for the pointer addition and also use size_int/sizetype
4188         for the offset.
4189         (ix86_gimplify_va_arg): Likewise.
4190         Perform BIT_AND_EXPR on sizetype arguments.
4191         * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
4192         and convert its result to a pointer type.  Use POINTER_PLUS_EXPR
4193         for the pointer additions and also use size_int for the offsets.
4194         (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
4195         additions and also use size_int for the offsets.  Perform
4196         BIT_AND_EXPR on sizetype arguments.
4197         * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
4198         POINTER_PLUS_EXPR for pointers and create the
4199         BIT_AND_EXPR in sizetype.
4200         * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
4201         instead of PLUS_EXPR for pointer addition.
4202         (rs6000_va_start): Likewise.
4203         Also use sizetype for the offset.
4204         * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
4205         as PLUS_EXPR/MINUS_EXPR.
4206         (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
4207         PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
4208         Don't use BIT_AND_EXPR on a pointer type, convert the
4209         expression to sizetype first.
4210         * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
4211         for pointers.
4212         (mips_gimplify_va_arg_expr): Likewise.
4213         Don't create BIT_AND_EXPR in a pointer type.
4214
4215 2007-06-15  Eric Christopher  <echristo@apple.com>
4216
4217         * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
4218         (x86_64-*-darwin*): Ditto.
4219         * config/i386/darwin.h (CRTEND_SPEC): New. Add support
4220         for above.
4221
4222 2007-06-15  Matthew Wilcox <matthew@wil.cx>
4223
4224         * doc/extend.texi: Document behavior of __attribute__((aligned))
4225         on typedefs.
4226
4227 2007-06-15  Mark Mitchell  <mark@codesourcery.com>
4228
4229         * rtlanal.c (note_stores): Improve documentation.
4230
4231 2007-06-15  Bernd Schmidt  <bernd.schmidt@analog.com>
4232
4233         * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
4234         LOCAL_LABEL_PREFIX): Delete.
4235         * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
4236         (bfin_internal_label): Delete.
4237
4238 2007-06-15  Uros Bizjak  <ubizjak@gmail.com>
4239
4240         * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
4241         define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
4242         otherwise define to LIBGCC2_TF_CEXT.
4243         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
4244         (LIBGCC_TF_CEXT): Ditto.
4245         (TF_SIZE): Ditto.
4246
4247 2007-06-14  Seongbae Park  <seongbae.park@gmail.com>
4248
4249         PR rtl-optimization/32339
4250         * df-scan.c (df_uses_record): Don't modify flags but just add to
4251         it for df_ref_record.
4252
4253 2007-06-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4254
4255         * tree-mudflap.c: Fix whitespace issues.
4256
4257 2007-06-15  Kazu Hirata  <kazu@codesourcery.com>
4258
4259         * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
4260
4261 2007-06-14  Eric Christopher  <echristo@apple.com>
4262
4263         * config/i386/sse.md (movdi_to_sse): Rewrite body.
4264         (movv4sf): Use gcc_unreachable instead of abort.
4265
4266 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
4267
4268         PR target/32268
4269         * config/i386/sfp-machine.h (CMPtype): New define.
4270         (mach stubs): Use CMPtype instead of int as a return type.
4271
4272 2007-06-14  Uros Bizjak  <ubizjak@gmail.com>
4273
4274         * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
4275         config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
4276         config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
4277         config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
4278         config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
4279         config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
4280         config/soft-fp/soft-fp.h: Update from glibc CVS.
4281
4282 2007-06-14  Bernd Schmidt  <bernd.schmidt@analog.com>
4283
4284         * config/bfin/uclinux.h (MFWRAP_SPEC): New.
4285
4286 2007-06-14  Rask Ingemann Lambertsen  <rask@sygehus.dk>
4287
4288         PR target/32341
4289         * config/v850/v850.c: Include dataflow header file.
4290         (substitute_ep_register): Fix typo.
4291
4292 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
4293
4294         * configure.ac: Fix earlier checkin.
4295         * configure: Regenerated.
4296
4297 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
4298
4299         * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
4300         * aclocal.m4: Regenerate.
4301         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
4302         ACX_PROG_CC_WARNINGS_ARE_ERRORS,
4303         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
4304         * configure: Regenerate.
4305         * Makefile.in (LOOSE_WARN): Subst loose_warn.
4306
4307         * Makefile.in (quickstrap): Build libgcc too.
4308
4309 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
4310
4311         * configure.ac: Add --enable-checking=df.  Explicitly mention that
4312         the variables are initialized as for "release".
4313         * df-core.c: Use it.
4314         * configure: Regenerate.
4315         * config.in: Regenerate.
4316
4317 2007-06-14  Bob Wilson  <bob.wilson@acm.org>
4318
4319         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
4320         validate_replace_rtx instead of replace_rtx.
4321         (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
4322
4323 2007-06-14  Danny Smith  <dannysmith@users.sourceforge.net>
4324
4325         * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
4326         (DWARF2_UNWIND_INFO): Override default if configured with
4327         SJLJ EH disabled.
4328         * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
4329         (ENDFILE_SPEC): Add crtend.o.
4330         * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
4331         (ENDFILE_SPEC): Add crtend.o.
4332         (TARGET_USE_JCR_SECTION): Define.
4333         (MD_UNWIND_SUPPORT): Define for 32-bit target.
4334
4335         * config/i386/cygming-crtbegin.c: New file.
4336         * config/i386/cygming-crtend.c: New file.
4337
4338 2007-06-14  Pascal Obry Pascal Obry  <obry@adacore.com>
4339
4340         * config/i386/w32-unwind.h: New file.
4341
4342 2007-06-13  Eric Christopher  <echristo@apple.com>
4343
4344         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
4345         the user set a value below STACK_BOUNDARY.
4346
4347 2007-06-13  Thiemo Seufer  <ths@networkno.de>
4348
4349         * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
4350         imply -lpthread for -pthread.
4351
4352 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
4353
4354         * basic-block.h: Remove the prototype for
4355         free_basic_block_vars.
4356         * cfglayout.h: Remove the prototype for
4357         insn_locators_initialize.
4358         * tree.h: Remove the prototype for emit_line_note.
4359
4360         * tree-ssa-pre.c (mergephitemp): Remove.
4361         (init_pre): Don't use mergephitemp.
4362
4363 2007-06-13  Eric Christopher  <echristo@apple.com>
4364
4365         * config/i386/i386.c (override_options): If we've specified
4366         an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
4367
4368 2007-06-13  Bob Wilson  <bob.wilson@acm.org>
4369
4370         * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
4371         is defined.
4372
4373 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
4374
4375         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
4376         * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
4377         (eh_store_handler): New pattern.
4378         (eh_return): Emit it instead of a plain move.
4379
4380 2007-06-13  Uros Bizjak  <ubizjak@gmail.com>
4381
4382         * config/i386/i386.c (ix86_init_mmx_sse_builtins)
4383         [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
4384         [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
4385         def_builtin_const.
4386
4387 2007-06-13  Bernd Schmidt  <bernd.schmidt@analog.com>
4388
4389         * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
4390         (find_next_insn_start, find_load): New functions.
4391         (bfin_reorg): Use them to deal with the fact that parallel insns are
4392         no longer represented as a SEQUENCE.
4393
4394 2007-06-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4395
4396         * config/sparc/sparc.c (sparc_override_options): Initialize
4397         fpu mask correctly.
4398
4399 2007-06-13  Dave Korn  <dave.korn@artimi.com>
4400
4401         * config/i386/i386.c (ix86_eax_live_at_start_p): Use
4402         df_get_live_out.
4403
4404 2007-06-13  Kazu Hirata  <kazu@codesourcery.com>
4405
4406         * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
4407         config/sh/divcost-analysis, dbgcnt.def, df-core.c,
4408         df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
4409         tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
4410         tree-vect-transform.c: Fix comment typos.  Follow spelling
4411         conventions.
4412
4413 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
4414
4415        * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
4416        to the exit block use set.
4417        (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring". 
4418        * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
4419        * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
4420
4421 2007-06-12  Seongbae Park  <seongbae.park@gmail.com>
4422
4423         * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
4424         * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
4425         to indicate an error.
4426         (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters):
4427         New functions.
4428         (dbg_cnt_process_opt): Print an error on a bad argument.
4429         * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
4430         * common.opt (-fdbg-cnt-list): New.
4431         * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
4432
4433 2007-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4434
4435         * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
4436         flag on ref-all pointers.
4437
4438 2007-06-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
4439
4440         PR middle-end/31579
4441         * expr.c (expand_expr_addr_expr_1): Call expand_expr
4442         for the offset with the modifier as EXPAND_INITIALIZER
4443         if the modifier is EXPAND_INITIALIZER.
4444         (expand_expr_real_1 <case INTEGER_CST>): Don't force to
4445         a register if we had an overflow.
4446
4447 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4448
4449         * real.c (real_isfinite): New.
4450         (real_sqrt): Use it.
4451         * real.h (real_isfinite): New.
4452         * builtins.c: Use it.
4453
4454 2007-06-12  Ian Lance Taylor  <iant@google.com>
4455             Daniel Berlin  <dberlin@dberlin.org>
4456
4457         PR libstdc++/29286
4458         * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
4459         * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
4460         (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
4461         (DECL_NO_TBAA_P): Define.
4462         (struct tree_decl_common): Add no_tbaa_flag field.
4463         * tree-ssa-structalias.c (struct variable_info): Add
4464         no_tbaa_pruning field.
4465         (new_var_info): Initialize no_tbaa_pruning field.
4466         (unify_nodes): Copy no_tbaa_pruning field.
4467         (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
4468         (dump_solution_for_var): Print no_tbaa_pruning flag.
4469         (set_uids_in_ptset): Add no_tbaa_pruning parameter.  Change all
4470         callers.
4471         (compute_tbaa_pruning): New static function.
4472         (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
4473         Call compute_tbaa_pruning.
4474         * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
4475         * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
4476         * gimple-low.c (lower_stmt): Likewise.
4477         * tree-gimple.c (is_gimple_stmt): Likewise.
4478         * tree-ssa-operands.c (get_expr_operands): Likewise.
4479         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4480         * tree-inline.c (estimate_num_insns_1): Likewise.
4481         (copy_result_decl_to_var): Likewise.
4482         * expr.c (expand_expr_real_1): Likewise.
4483         * tree-pretty-print.c (dump_generic_node): Likewise.
4484         * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
4485         * omp-low.c (omp_copy_decl_2): Likewise.
4486         * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
4487         * doc/c-tree.texi (Expression trees): Document
4488         CHANGE_DYNAMIC_TYPE_EXPR.
4489
4490 2007-06-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4491
4492         * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
4493         with !HONOR_NANS and !HONOR_INFINITIES.
4494         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4495
4496 2007-06-12  Tristan Gingold  <gingold@adacore.com>
4497
4498         * gcov.c: Comments updated.
4499         (source_info): Add file_time field.
4500         (source_index): New variable.
4501         (mutiple_files): New variable.
4502         (generate_results): New function extracted from process_file.
4503         (process_file): Save and restore chain of functions, generate
4504         results and free structures only if not merging results.
4505         (release_structures): File names are now freed in create_file_names
4506         (create_file_names): Free previous file names.
4507         (find_source): File date is now read here and modifications in
4508         source files is checked here.
4509         (read_graph_file): Only reverse order of functions for the current
4510         object file.
4511         (make_gcov_file_name): Do not generate long names if input_name is
4512         NULL.
4513         (output_lines): If merging results do not display graph, data and
4514         runs informations.
4515         Checking source file modification is done in find_source.
4516
4517         * doc/gcov.texi: Append an s to sourcefile.
4518
4519 2007-06-12  Bernd Schmidt  <bernd.schmidt@analog.com>
4520
4521         * config/bfin/bfin.md (UNSPEC_NOP): New constant.
4522         (forced_nop): New pattern.
4523         * config/bfin/bfin.c: Include "df.h".
4524         (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
4525         (bfin_discover_loop): Use df_get_live_in instead of
4526         global_live_at_start.
4527         (bfin_reorder_loops): Pass 0 to cfg_layout_initialize.  Call
4528         df_analyze when done.
4529         (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
4530         the insns.  Use QImode for the final insn in a bundle.  Call
4531         df_insn_rescan on generated NOPs; use gen_forced_nop instead of
4532         gen_nop.
4533         (reorder_var_tracking_notes): New function.
4534         (bfin_reorg): Pass no argument to split_all_insns.  Don't call
4535         update_life_info.  Call df_analyze after scheduling and bundle
4536         generation.  Call reorder_var_tracking_notes if generating these
4537         notes.  Call df_finish_pass at the end.
4538
4539 2007-06-12  Dirk Mueller  <dmueller@suse.de>
4540
4541         * optabs.c (debug_optab_libfuncs): fix gcc_assert to
4542         a comparison, not an assignment.
4543
4544 2007-06-12  Olivier Hainque  <hainque@adacore.com>
4545
4546         * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
4547         Request walking the subtrees only, leaving the current is_lhs/val_only
4548         untouched.
4549         (convert_non_local_reference): Likewise.
4550
4551 2007-06-12  Nathan Sidwell  <nathan@codesourcery.com>
4552
4553         * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
4554
4555 2007-06-12  Richard Guenther  <rguenther@suse.de>
4556
4557         PR tree-optimization/15353
4558         PR tree-optimization/31657
4559         * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
4560         * timevar.def: Add TV_TREE_IFCOMBINE.
4561         * tree-pass.h (pass_tree_ifcombine): Declare.
4562         * tree-ssa-ifcombine.c: New file.
4563         * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
4564         * tree-flow.h (blocks_in_phiopt_order): Declare.
4565         * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
4566         (tree-ssa-ifcombine.o): New dependencies.
4567
4568 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
4569
4570         PR rtl-optimization/32293
4571         * combine.c (simplify_if_then_else): Truncate return from
4572         nonzero_bits() to correct mode.
4573
4574 2007-06-12  Uros Bizjak  <ubizjak@gmail.com>
4575
4576         * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
4577         into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
4578
4579 2007-06-11  Diego Novillo  <dnovillo@google.com>
4580
4581         * Makefile.in (reload1.o-warn): Remove.
4582
4583 2007-06-11  Seongbae Park <seongbae.park@gmail.com>
4584
4585         * combine.c (subst): Use reg_overlap_mentioned_p
4586         instead of comparing register numbers directly.
4587
4588 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
4589
4590         * reload1.c (mark_home_live_1): Use the mode parameter.
4591
4592 2007-06-11  Kenneth Zadeck <zadeck@naturalbridge.com>
4593
4594         * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
4595         df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
4596         word "deferred".
4597         * df-core.c: Ditto.
4598
4599 2007-06-11  Daniel Berlin  <dberlin@dberlin.org>
4600
4601         * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
4602
4603 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
4604
4605         * config/i386/i386.md ("*movtf_internal): Penalize moves to and
4606         from integer registers.
4607         (FP mode splitters): Handle TFmode.
4608
4609 2007-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4610
4611         * tree-ssa-structalias.c (find_what_p_points_to): Return false
4612         for ref-all pointers that point-to anything.
4613
4614 2007-06-11  Joseph Myers  <joseph@codesourcery.com>
4615
4616         * config/arm/arm.c (arm_output_dwarf_dtprel,
4617         TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
4618
4619 2007-06-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4620
4621         * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
4622         movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
4623         to memory moves.
4624
4625 2007-06-11  Rafael Avila de Espindola  <espindola@google.com>
4626
4627         * gcc/tree.c (signed_or_unsigned_type_for): New.
4628         (unsigned_type_for): Use signed_or_unsigned_type_for.
4629         (signed_type_for): Use signed_or_unsigned_type_for.
4630         * gcc/tree.h (signed_or_unsigned_type_for): New.
4631         (get_signed_or_unsigned_type): Remove.
4632         * gcc/fold-const.c (fold_negate_expr): Use signed_type_for instead of
4633         lang_hooks.types.signed_type
4634         (size_diffop): Likewise.
4635         (all_ones_mask_p): Likewise.
4636         (build_range_check): Likewise.
4637         (fold_cond_expr_with_comparison): Likewise.
4638         (fold_cond_expr_with_comparison): Likewise.
4639         (unextend): Likewise.
4640         (extract_muldiv_1): Likewise.
4641         (fold_single_bit_test_into_sign_test): Likewise.
4642         (fold_binary): Likewise.
4643         (fold_ternary): Likewise.
4644         (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
4645         instead of get_signed_or_unsigned_type.
4646         * gcc/c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
4647         (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
4648         * gcc/expr.c (signed_or_unsigned_type_for): Use
4649         signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
4650         * gcc/langhooks.c (get_signed_or_unsigned_type): Remove.
4651         (lhd_signed_or_unsigned_type): Remove.
4652         * gcc/langhooks.h (lang_hooks_for_types): Remove signed_type and
4653         signed_or_unsigned_type.
4654         (lhd_signed_or_unsigned_type): Remove.
4655         * gcc/expmed.c (make_tree): Use signed_type_for instead of
4656         lang_hooks.types.signed_type.
4657         * gcc/c-common.c (same_scalar_type_ignoring_signedness): Use
4658         c_common_signed_type instead of lang_hooks.types.signed_type.
4659         (c_common_unsigned_type): New.
4660         (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
4661         (shorten_compare): Use c_common_unsigned_type instead of
4662         c_common_signed_or_unsigned_type.
4663         (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
4664         unsigned_type_for.
4665         * gcc/convert.c (convert_to_integer): Use signed_type_for instead of
4666         lang_hooks.types.signed_type.
4667         * gcc/langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
4668         (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
4669         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
4670         * gcc/c-format.c (check_format_types): Use c_common_unsigned_type
4671         instead of unsigned_type_for.
4672         * gcc/c-decl.c (groakdeclarator): Likewise.
4673         * gcc/c-typeck.c (convert_for_assignment): Likewise.
4674         * gcc/c-common.h (c_common_unsigned_type): New.
4675
4676 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
4677
4678         PR target/32280
4679         * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
4680         * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
4681
4682 2007-06-11  Uros Bizjak  <ubizjak@gmail.com>
4683
4684         PR middle-end/32279
4685         * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
4686         into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
4687
4688 2007-06-10  Jan Sjodin  <jan.sjodin@amd.com>
4689             Sebastian Pop  <sebpop@gmail.com>
4690
4691         * lambda-code.c (remove_iv): New.
4692         (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
4693
4694 2007-06-10  Zdenek Dvorak  <dvorakz@suse.cz>
4695
4696         * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
4697         * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
4698         * tree-ssa-loop-prefetch.c: Include optabs.h.
4699         (FENCE_FOLLOWING_MOVNT): New macro.
4700         (struct mem_ref): Add independent_p and storent_p fields.
4701         (record_ref): Initalize the new fields.
4702         (gather_memory_references_ref): Return true if the reference
4703         could be analysed.
4704         (gather_memory_references): Check whether all memory accesses
4705         in loop were recorded.
4706         (should_issue_prefetch_p): Return false for nontemporal stores.
4707         (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
4708         may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
4709         (determine_loop_nest_reuse): Detect independent memory references.
4710         (loop_prefetch_arrays): Call mark_nontemporal_stores.
4711         * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
4712         * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
4713         * config/i386/i386.h (x86_mfence): Declare.
4714         (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
4715         * config/i386/i386.c (x86_mfence): New variable.
4716         (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
4717
4718         * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
4719         * optabs.c (init_optabs): Initialize storent_optab.
4720         * optabs.h (enum optab_index): Add OTI_storent.
4721         (storent_optab): Declare.
4722         * genopinit.c (optabs): Add initialization for storent_optab.
4723         * tree.h (MOVE_NONTEMPORAL): New macro.
4724         * expr.c (expand_assignment, store_expr, store_constructor_field,
4725         store_constructor, store_field, expand_expr_real_1): Propagate
4726         nontemporality of the expanded store.
4727         (emit_storent_insn): New function.
4728         * expr.h (expand_assignment, store_expr): Declaration changed.
4729         * function.c (assign_parm_setup_reg): Pass false as nontemporality
4730         to expand_assignment.
4731         * stmt.c (expand_asm_expr): Ditto.
4732         * calls.c (initialize_argument_information): Pass false as
4733         nontemporality to store_expr.
4734         * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
4735         storentsi): New.
4736
4737 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
4738
4739         * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
4740         parameter, use it.
4741         (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
4742
4743 2007-06-09  Daniel Berlin  <dberlin@dberlin.org>
4744
4745         * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
4746         and allow DECL_P here.
4747
4748 2007-06-09  Zdenek Dvorak  <dvorakz@suse.cz>
4749
4750         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
4751         follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
4752         track of the size of the expression.
4753         * cfghooks.c (merge_blocks): Remove block from loops structure only
4754         after call of the merge_blocks hook.
4755
4756 2007-06-09  Tom Tromey  <tromey@redhat.com>
4757
4758         * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
4759         (deprecated_state): Removed.
4760         (start_decl): Update.
4761         (enum deprecated_states): Moved earlier.
4762         (groktypename): Update.
4763         (push_parm_decl): Likewise.
4764         (grokfield): Likewise.
4765         (start_function): Likewise.
4766
4767 2007-06-09  Ian Lance Taylor  <iant@google.com>
4768
4769         PR tree-optimization/32169
4770         * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
4771         CONVERT_EXPR, check whether min and max both converted to an
4772         overflow infinity representation.
4773
4774 2007-06-08  Eric Botcazou  <ebotcazou@adacore.com>
4775
4776         * reload1.c (fixup_abnormal_edges): Clear bb field for insns
4777         not inserted on the edge.
4778
4779 2007-06-08  Bob Wilson  <bob.wilson@acm.org>
4780
4781         * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
4782         instructions if they are supported.
4783         (__divsi3, __umodsi3, __modsi3): Likewise.
4784         (__ashldi3, __ashrdi3, __lshrdi3): New.
4785         * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
4786
4787 2007-06-08  Harsha Jagasia <harsha.jagasia@amd.com>
4788             Tony Linthicum <tony.linthicum@amd.com>
4789
4790         * doc/invoke.texi: Add fvect-cost-model flag.
4791         * common.opt (fvect-cost-model): New flag.
4792         * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
4793         cost fields in stmt_vec_info struct for STMT.
4794         * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
4795         fields in stmt_vec_info struct and access functions for the same.
4796         (TARG_COND_BRANCH_COST): Define cost of conditional branch.
4797         (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
4798         load, store and vector to scalar operation.
4799         (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
4800         (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
4801         (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
4802         (TARG_VEC_STORE_COST): Define cost of vector store.
4803         (vect_estimate_min_profitable_iters): Define new function.
4804         * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
4805         check to evaluate if loop iterations are less than minimum profitable
4806         iterations determined by cost model or minimum vect loop bound defined
4807         by user, whichever is more conservative.
4808         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
4809         run-time check to evaluate if loop iterations are less than minimum
4810         profitable iterations determined by cost model or minimum vect loop
4811         bound defined by user, whichever is more conservative.
4812         (vect_estimate_min_profitable_iterations): New function to estimate
4813         mimimimum iterartions required for vector version of loop to be
4814         profitable over scalar version.
4815         (vect_model_reduction_cost): New function.
4816         (vect_model_induction_cost): New function.
4817         (vect_model_simple_cost): New function.
4818         (vect_cost_strided_group_size): New function.
4819         (vect_model_store_cost): New function.
4820         (vect_model_load_cost): New function.
4821         (vectorizable_reduction): Call vect_model_reduction_cost during
4822         analysis phase.
4823         (vectorizable_induction): Call vect_model_induction_cost during
4824         analysis phase.
4825         (vectorizable_load): Call vect_model_load_cost during analysis phase.
4826         (vectorizable_store): Call vect_model_store_cost during analysis phase.
4827         (vectorizable_call, vectorizable_assignment, vectorizable_operation,
4828         vectorizable_promotion, vectorizable_demotion): Call
4829         vect_model_simple_cost during analysis phase.
4830
4831 2007-06-08  Simon Baldwin  <simonb@google.com>
4832
4833         * reg-stack.c (get_true_reg): Readability change.  Moved default case
4834         label into direct switch statement scope.
4835
4836 2007-06-08  Simon Baldwin  <simonb@google.com>
4837
4838         * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
4839         in gcc_assert() with '==' comparison.
4840
4841 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
4842
4843         * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
4844         TARGET_ABM handling of x86_popcnt variable.
4845
4846 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
4847
4848         * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
4849         __builtin_copysignq and __builtin_infq built-in functions.
4850
4851 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
4852
4853         * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
4854         SSE4.2 section.  Correct built-in function names in SSE4A section.
4855
4856 2007-06-08  Uros Bizjak  <ubizjak@gmail.com>
4857
4858         PR tree-optimization/32243
4859         * tree-vect-transform.c (vectorizable_type_promotion): Move check
4860         for ncopies after ratio check between nunits_out and nunits_in.
4861         (vectorizable_type_demotion): Remove single-use variable "scalar_type".
4862
4863 2007-06-08  Dorit Nuzman  <dorit@il.ibm.com>
4864
4865         PR tree-optimization/32224
4866         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
4867         vectorization upon a non GIMPLE_MODIFY_STMT.
4868
4869 2007-06-08  Christian Bruel  <christian.bruel@st.com>
4870
4871         PR target/29953
4872         * config/sh/sh.md (doloop_end): New pattern and splitter.
4873         * loop-iv.c (simple_rhs_p): Check for hardware registers.
4874
4875 2007-06-08  Zdenek Dvorak  <dvorakz@suse.cz>
4876
4877         PR middle-end/32209
4878         * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
4879         functions.
4880         (verify_dominators): Do not change dominance tree.
4881
4882 2007-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
4883
4884         * config/sh/constraints.md: New file.
4885         * config/sh/sh.c: Include tm-constrs.h.
4886         (reg_class_from_letter): Remove.
4887         (prepare_cbranch_operands): Use satisfies_constraint_*
4888         function instead of macro.
4889         (andcosts, broken_move, sh_secondary_reload): Likewise.
4890         * config/sh/predicates.md (trapping_target_operand): Likewise.
4891         (and_operand, arith_operand, arith_reg_or_0_operand,
4892         cmp_operand, logical_operand, target_operand,
4893         ua_address_operand, ua_offset, xor_operand): Likewise.
4894         * config/sh/sh.md: Include constraints.md.
4895         (*movsicc_t_false): Use satisfies_constraint_* function
4896         instead of macro.
4897         (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
4898         lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
4899         movdi_const_16bit+1, beq, bne, *ptb): Likewise.
4900         * config/sh/sh.h (reg_class_from_letter): Remove prototype.
4901         (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
4902         (REG_CLASS_FROM_CONSTRAINT): Remove.
4903         (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
4904         CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
4905         CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
4906         CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
4907         CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
4908         (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
4909         function instead of macro.
4910         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
4911         (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
4912         EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
4913         EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
4914         (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
4915         (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
4916         (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
4917         (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
4918         (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
4919         EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
4920         EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
4921         EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
4922         EXTRA_CONSTRAINT_STR): Likewise.
4923         (GO_IF_LEGITIMATE_INDEX): Fix indentation.
4924
4925 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
4926
4927         * config/i386/darwin.h (STACK_BOUNDARY): Define.
4928
4929 2007-06-07  Simon Martin  <simartin@users.sourceforge.net>
4930
4931         PR c++/30759
4932         * c-common.h (flag_cpp0x): Replaced by...
4933         (cxx_dialect): ... this new variable specifying the C++ dialect that
4934         is used.
4935         * c-common.c (flag_cpp0x): Removed.
4936         (cxx_dialect): Defined.
4937         * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
4938         cxx_dialect.
4939         * c-opts.c (c_common_post_options): Likewise.
4940         (set_std_cxx98): Set cxx_dialect to cxx98.
4941         (set_std_cxx0x): Set cxx_dialect to cxx0x.
4942
4943 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
4944             Hui-May Chang <hm.chang@apple.com>
4945
4946         * doc/invoke.texi (Darwin Options): Update documentation for
4947         -mmacosx-version-min.
4948         * config.gcc (*-*-darwin*): Set extra_gcc_objs.
4949         * config/darwin-driver.c: New file.
4950         * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
4951         * config/t-darwin (darwin-driver.o): New rule.
4952
4953         * config/darwin-c.c (version_as_macro): Ignore low digit.
4954
4955 2007-06-07  Uros Bizjak  <ubizjak@gmail.com>
4956
4957         * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
4958         (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
4959         (CSGNMODE): New mode macro.
4960         (CSGNVMODE): New mode attribute.
4961         (copysign<mode>3): Rename from copysingsf3 and copysigndf3.  Macroize
4962         expander using CSGNMODE mode macro.  Handle TFmode.
4963         (copysign<mode>3_const): Rename from copysignsf3_const and
4964         copysigndf3_const.  Macroize pattern using CSGNMODE mode macro.
4965         Handle TFmode.
4966         (copysign<mode>3_var): Rename from copysignsf3_var and
4967         copysigndf3_var.  Macroize pattern using CSGNMODE mode macro.
4968         Handle TFmode.
4969         (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
4970         mode macro.  Handle TFmode.
4971         * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
4972         (iortf3, *iortf3): Ditto.
4973         (xortf3, *xortf3): Ditto.
4974         * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
4975         TFmode and TImode masks.
4976         (ix86_expand_copysign): Expand TFmode copysign insn.
4977         (IX86_BUILTIN_INFQ): New.
4978         (IX86_BUILTIN_FABSQ): Ditto.
4979         (IX86_BUILTIN_COPYSIGNQ): Ditto.
4980         (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
4981         [__builtin_fabsq]: Ditto.
4982         [__builtin_copysignq]: Ditto.
4983         (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
4984         [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
4985         [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
4986         ix86_expand_binop_builtin().
4987
4988 2007-06-07  Bob Wilson  <bob.wilson@acm.org>
4989
4990         * config/xtensa/lib1funcs.asm: Clean up whitespace.
4991
4992 2007-06-07  Steve Ellcey  <sje@cup.hp.com>
4993
4994         PR target/31850
4995         * rtl.h (push_to_sequence2): New.
4996         * emit-rtl.c (push_to_sequence2): New.
4997         * function.c (assign_parm_data_all): Add new fields.
4998         (assign_parm_setup_block): Call push_to_sequence2 instead of
4999         push_to_sequence.
5000         (assign_parm_setup_reg): Ditto.
5001         (assign_parm_setup_stack): Ditto.
5002         (assign_parms_unsplit_complex): Ditto.
5003         (assign_parms): Change field name.
5004
5005 2007-06-07  Zdenek Dvorak  <dvorakz@suse.cz>
5006
5007         PR tree-optimization/32220
5008         * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
5009         phi node is reached before defining statement.
5010
5011 2007-06-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5012
5013         PR tree-opt/32231
5014         * tree-vect-transform.c (vectorizable_call): Call update_stmt
5015         after changing the right hand side of the assignment.
5016
5017 2007-06-06  Eric Christopher  <echristo@apple.com>
5018
5019         * config.gcc (i?86-*-darwin*): Remove arch parameter.
5020         (x86_64-*-darwin*): Ditto.
5021         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
5022         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
5023
5024 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
5025
5026         * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
5027         coding conventions.
5028         (add_key): Likewise.
5029         * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
5030         * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
5031         variable names.
5032         * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory
5033         macros.
5034         (add_cost_one_coalesce): Likewise.
5035         * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
5036         variable names. Rename orig to orig_name for consistency.
5037         * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the
5038         coding conventions.
5039         (cprop_into_successor_phis): Avoid using C++ keywords as variable
5040         names.
5041         (record_equivalences_from_stmt): Likewise.
5042         * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
5043         the coding conventions.
5044         (memory_ssa_name_same): Likewise.
5045         (dse_optimize_stmt): Likewise.
5046         (dse_record_phis): Likewise.
5047         (dse_finalize_block): Likewise.
5048         * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
5049         keywords as variable names.
5050         (may_move_till): Cast according to the coding conventions.
5051         (force_move_till_expr): Avoid using C++ keywords as variable names.
5052         (force_move_till): Cast according to the coding conventions.
5053         (memref_hash): Likewise.
5054         (memref_eq): Likewise.
5055         (gather_mem_refs_stmt): Likewise.
5056         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid
5057         using C++ keywords as variable names.
5058         (idx_find_step): Cast according to the coding conventions.
5059         (idx_record_use): Likewise.
5060         (find_depends): Likewise.
5061         (prepare_decl_rtl): Likewise.
5062         (mbc_entry_hash): Likewise.
5063         (mbc_entry_eq): Likewise.
5064         * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
5065         (simplify_replace_tree): Avoid using C++ keywords as variable names.
5066         (idx_infer_loop_bounds): Cast according to the coding conventions.
5067         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
5068         * tree-ssa-math-opts.c (occ_new ): Likwise.
5069         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
5070         macros.
5071         * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as
5072         variable names.
5073         (add_use_op): Likewise.
5074         (add_vop): Likewise.
5075         (add_vuse_op): Likewise.
5076         (add_vdef_op): Likewise.
5077         (get_expr_operands): Likewise.
5078         (push_stmt_changes): Use type safe memory macros.
5079         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
5080         keywords as variable names.
5081         (conditional_replacement): Likewise.
5082         (minmax_replacement): Likewise.
5083         (abs_replacement): Likewise.
5084         * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
5085         coding conventions.
5086         (insert_fake_stores): Avoid using C++ keywords as variable names.
5087         * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
5088         conventions.
5089         * tree-ssa-structalias.c (heapvar_lookup): Likewise.
5090         (heapvar_insert): Use type safe memory macros.
5091         (new_var_info): Cast according to the coding conventions.
5092         (new_constraint): Likewise.
5093         (remove_preds_and_fake_succs): Use type safe memory macros.
5094         * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
5095         conventions.
5096         (thread_single_edge): Likewise.
5097         (thread_through_loop_header): Likewise.
5098
5099 2007-06-06  Eric Christopher  <echristo@apple.com>
5100
5101         * config/i386/i386.c (override_options): Move handling
5102         of TARGET_SUBTARGET* earlier.
5103
5104 2007-06-06  Paolo Bonzini  <bonzini@gnu.org>
5105
5106         * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
5107         use %n on printf.
5108
5109 2007-06-06  Zdenek Dvorak  <dvorakz@suse.cz>
5110
5111         * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
5112         emited outside of basic block.
5113         * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
5114         the created blocks.
5115         * rtl.h (delete_insn_chain): Declaration changed.
5116         * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
5117         non-removed insns.
5118         (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
5119         (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
5120         rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
5121         to delete_insn_chain.
5122         (rtl_verify_flow_info_1): Verify that the insns in header and footer
5123         do not have bb field set.
5124         (rtl_verify_flow_info): Verify that insns between basic blocks do not
5125         have bb field set.
5126         * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
5127         * cfgcleanup.c (try_optimize_cfg): Ditto.
5128
5129 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
5130
5131         * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
5132         (lambda_body_vector_new): Use type safe memory macros.
5133         (lambda_linear_expression_new): Likewise.
5134         (lambda_loopnest_new): Likewise.
5135         (lambda_lattice_new): Likewise.
5136         (replace_uses_equiv_to_x_with_y): Cast according to the coding
5137         conventions. Use type safe memory macros.
5138         * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
5139         (lambda_body_vector_s): Likewise.
5140         * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
5141         * lambda-trans.c (lambda_trans_matrix_new): Likewise.
5142
5143 2007-06-06  Richard Guenther  <rguenther@suse.de>
5144
5145         * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
5146         if we need to schedule cfg_cleanup.
5147         (tree_ssa_forward_propagate_single_use_vars): Do so.
5148
5149 2007-06-06  Ian Lance Taylor  <iant@google.com>
5150
5151         * fold-const.c (merge_ranges): If range_successor or
5152         range_predecessor fail, just return 0.
5153
5154 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
5155
5156         PR tree-optimization/32216
5157         * tree-vectorizer.c (supportable_widening_operation): Determine
5158         signedness of FIX_TRUNC_EXPR from output operand.
5159         (supportable_narrowing_operation): Ditto.
5160         * tree-vect-generic.c (expand_vector_operations_1): Determine
5161         signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
5162         from input operand.
5163
5164 2007-06-06  Thomas Neumann  <tneumann@users.sourceforge.net>
5165
5166         * config/i386/i386.c (enum pta_flags): Move out of struct scope...
5167         (struct pta): ...from here. Change flags to unsigned to avoid
5168         excessive casting (as it is used as a bit mask).
5169         (override_options): Add casts according to the coding convenventions.
5170         (x86_64_elf_unique_section): Likewise.
5171         (examine_argument): Avoid using C++ keywords as variable names.
5172         (construct_container): Likewise.
5173         (legitimize_pic_address): Likewise.
5174         (get_dllimport_decl): Cast according to the coding conventions. Use
5175         type safe memory macros.
5176         (legitimize_address): Cast according to the coding conventions.
5177         (emit_i387_cw_initialization): Corrected the type of slot to enum
5178         ix86_stack_slot.
5179         (ix86_init_machine_status): Use type safe memory macros.
5180         (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
5181         (bdesc_pcmpistr): Likewise.
5182         (bdesc_crc32): Likewise.
5183         (bdesc_sse_3arg): Likewise.
5184         (bdesc_2arg): Likewise.
5185         (bdesc_1arg): Likewise.
5186         (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
5187         (ix86_expand_sse_pcmpistr): Likewise.
5188         (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
5189         (ix86_builtin_vectorized_function): Change the type of fn to unsigned
5190         int to match the langhook definition.
5191         (ix86_builtin_conversion): Change the type of code to unsigned init to
5192         match the langhook definition.
5193         (ix86_preferred_reload_class): Avoid using C++ keywords as variable
5194         names.
5195         (ix86_preferred_output_reload_class): Likewise.
5196         (ix86_cannot_change_mode_class): Likewise.
5197         (ix86_memory_move_cost): Likewise.
5198         (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
5199         avoid excessive casting later on.
5200         (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
5201
5202 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
5203
5204         * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
5205         as flags setting insn.
5206         (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
5207
5208 2007-06-06  Uros Bizjak  <ubizjak@gmail.com>
5209
5210         * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
5211         (UNSPEC_ROUND): New.
5212         ("sse4_1_round<mode>2"): New insn pattern.
5213         ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
5214         SSE4.1 targets.
5215         ("floor<mode>2"): Rename from floordf2 and floorsf2.  Macroize
5216         expander using SSEMODEF mode macro.  Expand using
5217         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
5218         ("ceil<mode>2"): Rename from ceildf2 and ceilsf2.  Macroize
5219         expander using SSEMODEF mode macro.  Expand using
5220         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
5221         ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2.  Macroize
5222         expander using SSEMODEF mode macro.  Expand using
5223         "sse4_1_round<mode>2" pattern for SSE4.1 targets.
5224         * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
5225         UNSPEC_ROUND instead of UNSPEC_ROUNDP.
5226         ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
5227         UNSPEC_ROUNDS.
5228
5229 2007-06-06  Jan Sjodin  <jan.sjodin@amd.com>
5230             Sebastian Pop  <sebpop@gmail.com>
5231
5232         * lambda.h (build_linear_expr): New.
5233         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
5234         Use build_linear_expr, call fold and force_gimple_operand.
5235         (lambda_loopnest_to_gcc_loopnest): Check that there is
5236         something to insert.
5237         * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
5238
5239 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
5240
5241         PR preprocessor/23479
5242         * doc/extend.texi: Document the 0b-prefixed binary integer
5243         constant extension.
5244
5245 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
5246
5247         PR tree-optimization/32215
5248         * tree-vectorizer.c (supportable_widening_operation): Return false
5249         for unsupported FIX_TRUNC_EXPR tree code.
5250         (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
5251
5252 2007-06-06  Nathan Froyd  <froydnj@codesourcery.com>
5253
5254         * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
5255         register on SPE targets.  Change documentation to reflect
5256         reality.
5257         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
5258         Change FIXED_SCRATCH to 14 and document why we're keeping r14
5259         out of the register allocation pool.
5260         (rs6000_reg_live_or_pic_offset_p): New function.
5261         (rs6000_emit_prologue): Move the actual saving of LR up to free
5262         r0 for holding r11.  Split saving of SPE 64-bit registers into
5263         its own case.  Ensure that offsets will always be in-range for
5264         'evstdd' by using r11 as a scratch register to point at the start
5265         of the SPE save area.  Save r11 if necessary, as it is the static
5266         chain register.
5267         (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
5268         into its own case.  Ensure that offsets will always be in-range
5269         for 'evldd' by using r11 as a scratch register to point at the
5270         start of the SPE save area.  Also adjust r11 when restoring
5271         the stack pointer to compensate for pre-loading r11.
5272
5273 2007-06-05  Thomas Neumann  <tneumann@users.sourceforge.net>
5274
5275         * cfg.c (init_flow): Use type safe memory macros.
5276         (alloc_block): Likewise.
5277         (unchecked_make_edge): Likewise.
5278         (dump_flow_info): Avoid using C++ keywords as variable names.
5279         (copy_original_table_clear): Cast according to the coding conventions.
5280         (copy_original_table_set): Likewise.
5281         * cfgexpand (label_rtx_for_bb): Likewise.
5282         (expand_gimple_basic_block): Likewise.
5283         * cfghooks.c (dump_bb): Likewise.
5284         (lv_adjust_loop_header_phi): Avoid using C++ keywords as
5285         variable names.
5286         (lv_add_condition_to_bb): Likewise.
5287         * cfglayout (relink_block_chain): Cast according to the coding
5288         conventions.
5289         (fixup_reorder_chain): Likewise.
5290         (fixup_fallthru_exit_predecessor): Likewise.
5291         * cfgloop.c (glb_enum_p): Likewise.
5292         (get_exit_description): Likewise.
5293         (dump_recorded_exit): Likewise.
5294         * cfgloop.h (enum loop_estimation): Move out of struct scope...
5295         (struct loop): ... from here.
5296         * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
5297         conventions.
5298         * cfgrtl.c (rtl_create_basic_block): Likewise.
5299         (rtl_split_block): Likewise.
5300         (rtl_dump_bb): Likewise.
5301         (cfg_layout_split_block): Likewise.
5302         (init_rtl_bb_info): Use typesafe memory macros.
5303
5304         * graphds.h (struct graph_edge): Renamed edge to graph_edge.
5305         * graphds.h: Updated all usages of edge to graph_edge.
5306         * graphds.c: Likewise.
5307         * cfgloopanal.c: Likewise.
5308
5309 2007-06-05  Ian Lance Taylor  <iant@google.com>
5310
5311         * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
5312         PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
5313         (extract_range_from_assert): Set TREE_NO_WARNING when creating an
5314         expression.
5315         (test_for_singularity): Likewise.
5316
5317 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
5318
5319         * config/i386/constraints.md ("Y2"): Replaced by ...
5320         ("Yt"): This.
5321         * config/i386/i386.md: Likewise.
5322         * config/i386/mmx.md: Likewise.
5323         * config/i386/sse.md: Likewise.
5324
5325 2007-06-05  H.J. Lu  <hongjiu.lu@intel.com>
5326
5327         * config/i386/constraints.md ("z"): Replaced by ...
5328         ("Y0"): This.
5329         * config/i386/sse.md (sse4_1_blendvpd): Likewise.
5330         (sse4_1_blendvps): Likewise.
5331         (sse4_1_pblendvb): Likewise.
5332         (sse4_2_pcmpestr): Likewise.
5333         (sse4_2_pcmpestrm): Likewise.
5334         (sse4_2_pcmpestr_cconly): Likewise.
5335         (sse4_2_pcmpistr): Likewise.
5336         (sse4_2_pcmpistrm): Likewise.
5337         (sse4_2_pcmpistr_cconly): Likewise.
5338
5339 2007-06-05  Razya Ladelsky  <razya@il.ibm.com>
5340
5341         * matrix-reorg.c (transform_access_sites): Fix computation.
5342         (transform_allocation_sites): Same.
5343
5344 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
5345
5346         * config/i386/i386.c (override_options): Use
5347         TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
5348
5349 2007-06-05  Uros Bizjak  <ubizjak@gmail.com>
5350
5351         * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
5352         (nonimm_not_xmm0_operand): Ditto.
5353         * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
5354         as operand[0] and operand[1] predicate.  Use "nonimm_not_xmm0_operand"
5355         as operand[2] predicate.  Require "z" class XMM register for
5356         operand[3].  Adjust asm template.
5357         ("sse4_1_blendvpd"): Ditto.
5358         ("sse4_1_pblendvb"): Ditto.
5359         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
5360         force op2 into xmm0 register for variable blend instructions.
5361
5362 2007-06-04  Tom Tromey  <tromey@redhat.com>
5363
5364         * c-tree.h (start_enum): Update.
5365         (build_enumerator): Likewise.
5366         * c-decl.c (enum_next_value): Removed.
5367         (enum_overflow): Likewise.
5368         (start_enum): Add c_enum_contents argument.  Don't use globals.
5369         (build_enumerator): Likewise.
5370         * c-tree.h (struct c_enum_contents): New struct.
5371
5372 2007-06-04  Tom Tromey  <tromey@redhat.com>
5373
5374         * c-common.c (c_common_get_alias_set): Fix indentation.
5375
5376 2007-06-04  Ian Lance Taylor  <iant@google.com>
5377
5378         * tree-vrp.c (adjust_range_with_scev): When loop is not expected
5379         to overflow, reduce overflow infinity to regular infinity.
5380         (vrp_var_may_overflow): New static function.
5381         (vrp_visit_phi_node): Check vrp_var_may_overflow.
5382
5383 2007-06-04  Kazu Hirata  <kazu@codesourcery.com>
5384
5385         * stor-layout.c (layout_type): Remove duplicate code.
5386
5387 2007-06-04  Uros Bizjak  <ubizjak@gmail.com>
5388
5389         PR c/32191
5390         * gcc/c-common.c (c_define_builtins): Call targetm.init_builtins ()
5391         before build_common_builtin_nodes ().
5392
5393 2007-06-04  Steve Ellcey  <sje@cup.hp.com>
5394
5395         PR target/31733
5396         * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
5397
5398 2007-06-04  Jan Hubicka  <jh@suse.cz>
5399
5400         * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
5401         reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
5402         instead of _stat version.
5403
5404 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
5405
5406         PR tree-optimization/32194
5407         * tree-predcom.c (determine_offset): Check that both references have
5408         the same type.
5409
5410 2007-06-03  Zdenek Dvorak  <dvorakz@suse.cz>
5411
5412         * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
5413         Change dom_bbs to vector.  Add argument to iterate_fix_dominators call.
5414         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
5415         * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
5416         Add argument to iterate_fix_dominators call.
5417         (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
5418         * gcse.c (hoist_code): Change domby to vector.
5419         * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
5420         Add argument to iterate_fix_dominators call.
5421         * loop-doloop.c (doloop_modify): Changed recount_dominator to
5422         recompute_dominator.
5423         * lambda-code.c (perfect_nestify): Ditto.
5424         * cfgloopanal.c: Include graphds.h.
5425         (struct edge, struct vertex, struct graph, dump_graph, new_graph,
5426         add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
5427         (mark_irreducible_loops): Use graphds_scc.  Remove argument from
5428         add_edge call.
5429         * graphds.c: New file.
5430         * graphds.h: New file.
5431         * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
5432         (get_dominated_by, get_dominated_by_region): Change return type to
5433         vector.
5434         (verify_dominators): Recompute all dominators and compare the results.
5435         (recount_dominator): Renamed to ...
5436         (recompute_dominator): ... this.  Do not check that the block is
5437         dominated by entry.
5438         (iterate_fix_dominators): Reimplemented.
5439         (prune_bbs_to_update_dominators, root_of_dom_tree,
5440         determine_dominators_for_sons): New functions.
5441         * et-forest.c (et_root): New function.
5442         * et-forest.h (et_root): Declare.
5443         * Makefile.in (graphds.o): Add.
5444         (cfgloopanal.o): Add graphds.h dependency.
5445         (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
5446         * basic-block.h (get_dominated_by, get_dominated_by_region,
5447         iterate_fix_dominators): Declaration changed.
5448         (recount_dominator): Renamed to ...
5449         (recompute_dominator): ... this.
5450         * tree-ssa-threadupdate.c (thread_block): Free dominance info.
5451         (thread_through_all_blocks): Do not free dominance info.
5452
5453 2007-06-03  Andreas Schwab  <schwab@suse.de>
5454
5455         * config/m68k/m68k.c (override_options): Don't override
5456         REAL_MODE_FORMAT.
5457         * config/m68k/m68k-modes.def (SF, DF): Define to use
5458         motorola_single_format and motorola_double_format, resp.
5459         * real.c (motorola_single_format): Renamed from
5460         coldfire_single_format.
5461         (motorola_double_format): Renamed from coldfire_double_format.
5462         (encode_ieee_extended): Generate a proper canonical NaN image
5463         respecting canonical_nan_lsbs_set.
5464         (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
5465         true.
5466         * real.h: Adjust declarations.
5467
5468 2007-06-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5469
5470         PR target/32163
5471         * config/sh/sh.md (symGOT_load): Don't schedule insns when
5472         the symbol is generated with the stack protector.
5473
5474 2007-06-03  Kazu Hirata  <kazu@codesourcery.com>
5475
5476         * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
5477         (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
5478         "interrupt".
5479         * doc/extend.texi (interrupt): Mention m68k.
5480
5481 2007-06-02  Uros Bizjak  <ubizjak@gmail.com>
5482
5483         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
5484         safe_vector_operand() if input operand is VECTOR_MODE_P operand.
5485         (ix86_expand_sse_pcmpestr): Do not check operands for
5486         "register_operand", when insn operand predicate is "register_operand".
5487         (ix86_expand_sse_pcmpistr): Ditto.
5488
5489 2007-06-02  H.J. Lu  <hongjiu.lu@intel.com>
5490             Uros Bizjak  <ubizjak@gmail.com>
5491
5492         * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
5493         (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
5494         (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
5495         (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
5496         * config/i386/constraints.md ("z"): New register constraint
5497         for members of SSE_FIRST_REG class.
5498         * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
5499         * config/i386/i386.c (regclass_map): Change class of %xmm0 to
5500         SSE_FIRST_REG class.
5501         (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
5502         (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
5503         (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
5504         (IX86_BUILTIN_PCMPESTRM128): Likewise.
5505         (IX86_BUILTIN_PCMPESTRA128): Likewise.
5506         (IX86_BUILTIN_PCMPESTRC128): Likewise.
5507         (IX86_BUILTIN_PCMPESTRO128): Likewise.
5508         (IX86_BUILTIN_PCMPESTRS128): Likewise.
5509         (IX86_BUILTIN_PCMPESTRZ128): Likewise.
5510         (IX86_BUILTIN_PCMPISTRI128): Likewise.
5511         (IX86_BUILTIN_PCMPISTRM128): Likewise.
5512         (IX86_BUILTIN_PCMPISTRA128): Likewise.
5513         (IX86_BUILTIN_PCMPISTRC128): Likewise.
5514         (IX86_BUILTIN_PCMPISTRO128): Likewise.
5515         (IX86_BUILTIN_PCMPISTRS128): Likewise.
5516         (IX86_BUILTIN_PCMPISTRZ128): Likewise.
5517         (struct builtin_description): Change "flag" field to unsigned.
5518         (bdesc_pcmpestr): New builtin description table.
5519         (bdesc_pcmpistr): Likewise.
5520         (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
5521         v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
5522         Initialize pcmp[ei]str[im] insns for SSE4.2.
5523         (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
5524         (ix86_expand_sse_pcmpistr): Likewise.
5525         (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
5526         * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
5527         (UNSPEC_PCMPISTR): Likewise.
5528         * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
5529         (sse4_2_pcmpestri):New isns pattern.
5530         (sse4_2_pcmpestrm): Likewise.
5531         (sse4_2_pcmpestr_cconly): Likewise.
5532         (sse4_2_pcmpistr): New insn patern and splitter.
5533         (sse4_2_pcmpistri):New isns pattern.
5534         (sse4_2_pcmpistrm): Likewise.
5535         (sse4_2_pcmpistr_cconly): Likewise.
5536         * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
5537         in SSE4.2.
5538
5539 2007-06-01  David Daney  <ddaney@avtrex.com>
5540
5541         * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
5542         LOADGP_ABSOLUTE and not binds_local_p.
5543
5544 2007-06-01  Geoffrey Keating  <geoffk@apple.com>
5545
5546         * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
5547
5548 2007-06-01  Ian Lance Taylor  <iant@google.com>
5549
5550         * tree-vrp.c (compare_name_with_value): Always set
5551         used_strict_overflow if we get a result from the variable itself.
5552
5553 2007-06-01  Ian Lance Taylor  <iant@google.com>
5554
5555         PR rtl-optimization/31455
5556         * lower-subreg.c (find_decomposable_subregs): Don't decompose
5557         subregs which have a cast between modes which are not tieable.
5558
5559 2007-06-01  Uros Bizjak  <ubizjak@gmail.com>
5560
5561         * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
5562         breaks after return statements.
5563
5564 2007-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
5565
5566         * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
5567         only after no_new_pseudos.
5568
5569 2007-05-31  Eric Christopher  <echristo@apple.com>
5570
5571         * expr.c (convert_move): Assert that we don't have a BLKmode
5572         operand.
5573         (store_expr): Handle BLKmode moves by calling emit_block_move.
5574
5575 2007-05-31  Daniel Berlin  <dberlin@dberlin.org>
5576
5577         * c-typeck.c (build_indirect_ref): Include type in error message.
5578         (build_binary_op): Pass types to binary_op_error.
5579         * c-common.c (binary_op_error): Take two type arguments, print out
5580         types with error.
5581         * c-common.h (binary_op_error): Update prototype.
5582
5583 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5584
5585         * config/i386/i386.c: Correct coments on -mno-sse4.
5586
5587 2007-05-31  H.J. Lu  <hongjiu.lu@intel.com>
5588
5589         * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
5590         (x86_64-*-*): Likewise.
5591         * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
5592         (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
5593         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
5594         (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
5595         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
5596         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
5597         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
5598         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
5599         (OPTION_MASK_ISA_SSE4): Likewise.
5600         (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
5601         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
5602         (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET.  Handle SSE4.2.
5603         (override_options): Support SSE4.2.
5604         (ix86_build_const_vector): Support SImode and DImode.
5605         (ix86_build_signbit_mask): Likewise.
5606         (ix86_expand_int_vcond): Support V2DImode.
5607         (IX86_BUILTIN_CRC32QI): New for SSE4.2.
5608         (IX86_BUILTIN_CRC32HI): Likewise.
5609         (IX86_BUILTIN_CRC32SI): Likewise.
5610         (IX86_BUILTIN_CRC32DI): Likewise.
5611         (IX86_BUILTIN_PCMPGTQ): Likewise.
5612         (bdesc_crc32): Likewise.
5613         (bdesc_sse_3arg): Likewise.
5614         (ix86_expand_crc32): Likewise.
5615         (ix86_init_mmx_sse_builtins): Support SSE4.2.
5616         (ix86_expand_builtin): Likewise.
5617         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
5618         __SSE4_2__ for -msse4.2.
5619         * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
5620         (CRC32MODE): Likewise.
5621         (crc32modesuffix): Likewise.
5622         (crc32modeconstraint): Likewise.
5623         (sse4_2_crc32<mode>): Likewise.
5624         (sse4_2_crc32di): Likewise.
5625         * config/i386/i386.opt (msse4.2): New for SSE4.2.
5626         (msse4): Likewise.
5627         * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
5628         * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
5629         * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
5630         (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
5631         (vcondu<mode>): Likewise.
5632         * doc/extend.texi: Document SSE4.2 built-in functions.
5633         * doc/invoke.texi: Document -msse4.2/-msse4.
5634
5635 2007-05-31  Zdenek Dvorak  <dvorakz@suse.cz>
5636
5637         PR tree-optimization/32160
5638         * tree-predcom.c (predcom_tmp_var): New function.  Mark created
5639         variable as gimple reg.
5640         (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
5641
5642 2007-05-31  Kazu Hirata  <kazu@codesourcery.com>
5643
5644         * gcc.c (main): Don't consider linker options when issuing the
5645         warning about a linker input file not being used.
5646
5647 2007-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5648
5649         * tree-vrp.c (compare_names): Initialize sop.
5650
5651 2007-05-30  Dirk Mueller  <dmueller@suse.de>
5652
5653         * cgraphunit.c (cgraph_analyze_function): Remove
5654         computation of inline parameters.
5655
5656 2007-05-30  Uros Bizjak  <ubizjak@gmail.com>
5657
5658         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
5659
5660 2007-05-30  Richard Sandiford  <richard@codesourcery.com>
5661
5662         * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
5663         Add vx-common.h.  Include vxworks.h between vx-common.h and
5664         arm/vxworks.h.
5665         * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
5666         redefining.
5667         * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
5668         (TARGET_ASM_DESTRUCTOR): Likewise.
5669         * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
5670         instead of arm_is_xscale.  Use VXWORKS_OS_CPP_BUILTINS.
5671         (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
5672         (CC1_SPEC): Add -tstrongarm.  Line up backslashes.
5673         (VXWORKS_ENDIAN_SPEC): Define.
5674         (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
5675         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
5676         VXWORKS_* equivalents.
5677         (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
5678         (ASM_FILE_START): Delete.
5679         (TARGET_VERSION): Reformat.
5680         (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
5681         (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
5682         * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
5683         (FPBIT, DPBIT): Define.
5684         (fp-bit.c, dp-bit.c): New rules.
5685         (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
5686         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
5687         * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
5688         * config/arm/arm.h: Include vxworks-dummy.h.
5689         * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
5690         Mark with ATTRIBUTE_UNUSED.
5691         (arm_override_options): Do not allow VxWorks RTP PIC to be used
5692         for Thumb.  Force r9 to be the PIC register for VxWorks RTPs and
5693         make it incompatible with -msingle-pic-base.
5694         (arm_function_ok_for_sibcall): Return false for calls that might
5695         go through a VxWorks PIC PLT entry.
5696         (require_pic_register): New function, split out from...
5697         (legitimize_pic_address): ...here.  Do not use GOTOFF accesses
5698         for VxWorks RTPs.
5699         (arm_load_pic_register): Handle the VxWorks RTP initialization
5700         sequence.  Use pic_reg as a shorthand for cfun->machine->pic_reg.
5701         (arm_emit_call_insn): New function.
5702         (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
5703         * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
5704         (pic_offset_arm): New pattern.
5705         (call, call_value): Use arm_emit_call_insn.
5706         (call_internal, call_value_internal): New expanders.
5707         * config/arm/lib1funcs.asm (__PLT__): Define to empty for
5708         VxWorks unless __PIC__.
5709
5710 2007-05-30  Eric Christopher  <echristo@gmail.com>
5711
5712         * genrecog.c: Include regs.h in generated file.
5713         * genemit.c: Ditto. Fix up formatting.
5714         * config/mn10300/constraints.md: New.
5715         * config/mn10300/mn10300.md: Include.
5716         * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
5717         Fix up for removed macro.
5718         * config/mn10300/predicates.md (call_address_operand):  Ditto.
5719         * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
5720         (CONST_OK_FOR_I): Ditto.
5721         (CONST_OK_FOR_J): Ditto.
5722         (CONST_OK_FOR_K): Ditto.
5723         (CONST_OK_FOR_L): Ditto.
5724         (CONST_OK_FOR_M): Ditto.
5725         (CONST_OK_FOR_N): Ditto.
5726         (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
5727         (OK_FOR_Q): Ditto.
5728         (OK_FOR_R): Ditto.
5729         (OK_FOR_T): Ditto.
5730         (EXTRA_CONSTRAINT): Ditto.
5731
5732 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
5733
5734         * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
5735         Remove defines.
5736         * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
5737         OPTION_MASK_ISA_64BIT.
5738         * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
5739
5740 2007-05-30  Richard Guenther  <rguenther@suse.de>
5741
5742         PR middle-end/32152
5743         * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
5744         types for comparison.
5745         * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
5746         with original typed arguments.
5747         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
5748
5749 2007-05-30  Jakub Jelinek  <jakub@redhat.com>
5750
5751         PR tree-optimization/31769
5752         * except.c (duplicate_eh_regions): Clear prev_try if
5753         ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
5754
5755 2007-05-30  Zdenek Dvorak  <dvorakz@suse.cz>
5756
5757         * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
5758         * tree-ssa-sink.c (statement_sink_location): Return basic block and
5759         bsi of the location where statements should be inserted.
5760         (sink_code_in_bb): Take bsi from statement_sink_location.
5761         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
5762         instead of bsi_start.
5763         * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
5764         bsi_insert_after.
5765         * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
5766         (bsi_move_before): Document inconsistency with bsi_move_after.
5767         (tree_redirect_edge_and_branch): Do not create labels if not necessary.
5768
5769 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
5770
5771         * config/i386/i386.h (TARGET_ABM): New define.
5772         (TARGET_POPCNT): Ditto.
5773         (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
5774         New temporary defines to redefine from OPTION_ISA_* defines.
5775         (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
5776         New temporary defines to redefine from OPTION_MASK_ISA_* defines.
5777         (ix86_isa_flags): New extern int declaration.
5778         (TARGET_SUBTARGET_DEFAULT): New define.
5779         (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
5780         (TARGET_SUBTARGET32_DEFAULT): Ditto.
5781         (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
5782         (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
5783         * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
5784         * config/i386/darwin.h: Change TARGET_64BIT define to
5785         OPTION_ISA_64BIT.
5786
5787         * config/i386/i386.opt (m3dnowa): Define as undocumented option
5788         using existing "ix86_isa_flags" varible.
5789         (m32, m64): Use existing "ix86_isa_flags" variable.
5790         (mmmx, m3dnow): Ditto.
5791         (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
5792         (mabm): Define as non-negative option using "x86_abm" variable.
5793         (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
5794
5795         * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
5796         Rewrite feature test bitmap.
5797         (ix86_isa_flags): New initialized global int varible.
5798         (ix86_isa_flags_explicit): New static int variable.
5799         (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
5800         msse, msse2, msse3, msse4.1 and msse4a option is processed.  Change
5801         i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
5802         target_flags_explicit.
5803         (override_options): Remove "target_enable" and "target_disable" fields
5804         from "struct ptt". Update processor_target_table accordingly. Remove
5805         PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
5806         defined and rearrange PTA_* bits.  Use "ix86_isa_flags" instead of
5807         "target_flags" and "ix86_isa_flags_explicit" instead of
5808         "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
5809         MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*.  Set "x86_abm" to true when
5810         PTA_ABM is set in processor_alias_table flags entry.  Set "x86_popcnt"
5811         to true when either of PTA_POPCNT or PTA_ABM is set in
5812         processor_alias_table flags entry.  Set "x86_prefetch_sse" to true
5813         when either of PTA_PREFETCH_SSE or PTA_SSE is set in
5814         processor_alias_table flags entry.  Remove handling of
5815         "target_enable" and "target_disable" fields of processor_target_table.
5816         Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
5817         targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
5818         Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
5819         targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
5820         (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
5821         "target_flags".
5822         (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
5823
5824 2007-05-29  David Daney  <ddaney@avtrex.com>
5825
5826         PR gcc/31975
5827         * config/mips/mips.c (mips_output_mi_thunk): Emit
5828         NOTE_INSN_PROLOGUE_END at beginning of the thunk.
5829
5830 2007-05-29  Hui-May Chang  <hm.chang@apple.com>
5831         * config/i386/i386.c (ix86_function_regparm): Added checking of
5832         ix86_force_align_arg_pointer to determine the number of
5833         register parameters.
5834
5835 2007-05-29  Zdenek Dvorak  <dvorakz@suse.cz>
5836
5837         * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
5838         (SET_DR_MISALIGNMENT): New.
5839         * tree-vect-analyze.c (vect_compute_data_ref_alignment,
5840         vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
5841         Use SET_DR_MISALIGNMENT.
5842         * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
5843         pointer.
5844         * tree-data-ref.c (create_data_ref, compute_all_dependences,
5845         find_loop_nest): Export.
5846         * tree-data-ref.h (struct data_reference): Change aux field to pointer.
5847         (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
5848         * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
5849         (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
5850         New macros.
5851         (struct mem_ref): Add field reuse_distance.
5852         (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
5853         Initialize reuse_distance field.
5854         (issue_prefetch_ref): Select temporality of prefetch according to
5855         reuse_distance.
5856         (volume_of_references, volume_of_dist_vector, add_subscript_strides,
5857         self_reuse_distance, determine_loop_nest_reuse): New functions.
5858         (loop_prefetch_arrays): Call determine_loop_nest_reuse.
5859         (tree_ssa_prefetch_arrays): Dump L2 cache size.
5860         * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
5861         dependency.
5862
5863 2007-05-29  Daniel Berlin  <dberlin@dberlin.org>
5864
5865         * tree-ssa-alias.c: Add aliasing overview.
5866
5867 2007-05-29  Zuxy Meng  <zuxy.meng@gmail.com>
5868             Danny Smith  <dannysmith@users.sourceforge.net>
5869
5870         PR target/29498
5871         * config/i386/t-crtfm: Compile crtfastmath.o with
5872         -minline-all-stringops.
5873         * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
5874         * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
5875
5876 2007-05-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5877
5878         * doc/md.texi: Document constraints on HP PA-RISC.
5879
5880         * pa/constraints.md: New file.
5881         * pa.md: Include constraints.md.
5882         * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
5883         (integer_store_memory_operand, ldil_cint_p): New functions.
5884         * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
5885         * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
5886         IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
5887         * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
5888         * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
5889
5890 2007-05-28  Andrew Pinski  <Andrew_pinski@playstation.sony.com>
5891
5892         PR c/31339
5893         * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
5894         case POSTINCREMENT_EXPR, case PREDECREMENT_EXPR,
5895         case POSTDECREMENT_EXPR>): Return the error_mark_node
5896         if either the real or imaginary parts would an
5897         error_mark_node.
5898
5899 2007-05-28  Daniel Berlin  <dberlin@dberlin.org>
5900
5901         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Release LHS SSA
5902         name when we remove it from a call.
5903
5904 2007-05-28  Kazu Hirata  <kazu@codesourcery.com>
5905
5906         * targhooks.c (default_narrow_bitfield): Remove.
5907         * targhooks.h: Remove the prototype for
5908         default_narrow_bitfield.
5909
5910         * langhooks-def.h: Remove the prototype for
5911         hook_get_alias_set_0.
5912         * langhooks.c (hook_get_alias_set_0): Remove.
5913
5914         * global.c (EXECUTE_IF_CONFLICT): Remove.
5915
5916 2007-05-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5917
5918         PR tree-opt/32100
5919         * fold-const.c (tree_expr_nonnegative_warnv_p): Don't
5920         return true when truth_value_p is true and the type
5921         is of signed:1.
5922
5923 2007-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
5924
5925         * doc/install.texi (Prerequisites): We no longer require Autoconf
5926         2.13 for the top-level.
5927
5928 2007-05-28  Uros Bizjak  <ubizjak@gmail.com>
5929
5930         * target/i386/i386.c (ix86_expand_vector_move): Expand unaligned
5931         memory access via x86_expand_vector_move_misalign() only for
5932         TImode values on 32-bit targets.
5933
5934 2007-05-28  Razya Ladelsky  <razya@il.ibm.com>
5935
5936         * matrix-reorg.c: New file. Implement matrix flattening and
5937         transposing optimization.
5938         * tree-pass.h: Add matrix reorg pass.
5939         * common.opt: Add fipa-mreorg flag.
5940         * Makefile.in: Add matrix-reorg.c.
5941         * passes.c: Add matrix reorg pass.
5942         * varpool.c (add_new_static_var): New function.
5943         * cgraph.h (add_new_static_var): Declare.
5944
5945 2007-05-27  Eric Christopher  <echristo@apple.com>
5946
5947         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update
5948         sp_offset depending on stack size. Save r12 depending
5949         on registers we're saving later.
5950         (rs6000_emit_epilogue): Update sp_offset depending only
5951         on stack size.
5952
5953 2007-05-27  Zdenek Dvorak  <dvorakz@suse.cz>
5954
5955         * tree-vrp.c (execute_vrp): Do not check whether current_loops == NULL.
5956         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
5957         * ifcvt.c (if_convert): Ditto.
5958         * tree-ssa-threadupdate.c (thread_block): Ditto.
5959         (thread_through_all_blocks): Ditto.  Assert that loops were analysed.
5960         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
5961         verify_loop_closed_ssa): Check number_of_loops instead of
5962         current_loops.
5963         * predict.c (tree_estimate_probability): Ditto.
5964         * tree-if-conv.c (main_tree_if_conversion): Ditto.
5965         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
5966         * modulo-sched.c (sms_schedule): Ditto.
5967         * tree-scalar-evolution.c (scev_const_prop): Ditto.
5968         (scev_finalize): Do not do anything if scev analysis was not
5969         initialized.
5970         * cfgloopanal.c (mark_irreducible_loops): Do not check whether
5971         current_loops == NULL.
5972         (mark_loop_exit_edges): Check number_of_loops instead of current_loops.
5973         * loop-init.c (loop_optimizer_init): Do not free current_loops when
5974         there are no loops.
5975         (loop_optimizer_finalize): Assert that loops were analyzed.
5976         (rtl_move_loop_invariants, rtl_unswitch, rtl_unroll_and_peel_loops,
5977         rtl_doloop): Check number_of_loops instead of current_loops.
5978         * tree-ssa-loop.c (tree_loop_optimizer_init): Do not check whether
5979         current_loops == NULL.
5980         (tree_ssa_loop_init, tree_ssa_loop_im, tree_ssa_loop_unswitch,
5981         gate_tree_vectorize tree_linear_transform, check_data_deps,
5982         tree_ssa_loop_ivcanon, tree_ssa_empty_loop, tree_ssa_loop_bounds,
5983         tree_complete_unroll, tree_ssa_loop_prefetch, tree_ssa_loop_ivopts):
5984         Check number_of_loops instead of current_loops.
5985         (tree_ssa_loop_done): Do not check whether current_loops == NULL.
5986         * tree-ssa-pre.c (fini_pre): Do not take do_fre argument.  Always
5987         free loops if available.
5988         (execute_pre): Do not pass do_fre to fini_pre.
5989
5990 2007-05-27  Tobias Burnus  <burnus@net-b.de>
5991
5992         PR middle-end/32083
5993         * real.c (mpfr_from_real): Fix sign of -Inf.
5994
5995 2007-05-27  H.J. Lu  <hongjiu.lu@intel.com>
5996
5997         * tree-vect-transform.c (vectorizable_conversion): Initialize
5998         tree_code variables to ERROR_MARK.
5999         (vectorizable_type_demotion): Likewise.
6000         (vectorizable_type_promotion): Likewise.
6001
6002 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
6003
6004         PR target/32065
6005         * config/i386/i386.md (movti): Handle push operands via
6006         ix86_expand_push().
6007
6008 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
6009
6010         * basic-block.h: Remove the prototype for merge_seq_blocks.
6011         * cfgcleanup.c (merge_seq_blocks): Remove.
6012
6013         * tree-flow.h: Remove the prototype for is_aliased_with.
6014         * tree-ssa-alias.c (is_aliased_with): Remove.
6015
6016 2007-05-26  H.J. Lu  <hongjiu.lu@intel.com>
6017
6018         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): New.
6019
6020         * config/i386/i386.c (ix86_expand_sse4_unpack): New.
6021
6022         * config/i386/sse.md (vec_unpacku_hi_v16qi): Call
6023         ix86_expand_sse4_unpack if SSE4.1 is enabled.
6024         (vec_unpacks_hi_v16qi): Likewise.
6025         (vec_unpacku_lo_v16qi): Likewise.
6026         (vec_unpacks_lo_v16qi): Likewise.
6027         (vec_unpacku_hi_v8hi): Likewise.
6028         (vec_unpacks_hi_v8hi): Likewise.
6029         (vec_unpacku_lo_v8hi): Likewise.
6030         (vec_unpacks_lo_v8hi): Likewise.
6031         (vec_unpacku_hi_v4si): Likewise.
6032         (vec_unpacks_hi_v4si): Likewise.
6033         (vec_unpacku_lo_v4si): Likewise.
6034         (vec_unpacks_lo_v4si): Likewise.
6035
6036 2007-05-26  Kazu Hirata  <kazu@codesourcery.com>
6037
6038         * c-typeck.c, config/arm/arm.c, config/darwin.c,
6039         config/sh/symbian.c, gcc.c, ipa-cp.c, ipa-inline.c, loop-iv.c,
6040         omega.c, tree-ssa-loop-niter.c, treestruct.def: Fix typos and
6041         follow spelling conventions in various
6042         warning/error/diagnostic messages.
6043
6044         * config/i386/i386.c, config/pa/pa.c, config/spu/spu.c,
6045         df-problems.c, df-scan.c, domwalk.c, ebitmap.c, ebitmap.h,
6046         fold-const.c, gcc.c, ipa-type-escape.c, omega.c, omega.h,
6047         tree-ssa-coalesce.c, tree-ssa-live.c, tree-ssa-structalias.c,
6048         tree-vrp.c: Fix comment typos.  Follow spelling conventions.
6049         * doc/tm.texi: Follow spelling conventions.
6050
6051 2007-05-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6052
6053         PR tree-opt/32090
6054         * tree-ssa-forwprop.c
6055         (forward_propagate_addr_into_variable_array_index): Remove
6056         the lhs argument.  Use the type of def_rhs instead of lhs.
6057         (forward_propagate_addr_expr_1): Update use of
6058         forward_propagate_addr_into_variable_array_index.
6059
6060 2007-05-25  Sandra Loosemore  <sandra@codesourcery.com>
6061             Nigel Stephens  <nigel@mips.com>
6062
6063         * config/mips/mips.c (mips_attribute_table): Add "near" and "far"
6064         function attributes, "far" being an alias for "long_call".
6065         (TARGET_COMP_TYPE_ATTRIBUTES): Define as mips_comp_type_attributes.
6066         (mips_near_type_p, mips_far_type_p): New.
6067         (mips_comp_type_attributes): New function to check that attributes
6068         attached to a function type are compatible.
6069         (mips_output_mi_thunk): Test SYMBOL_REF_LONG_CALL_P() rather than
6070         TARGET_LONG_CALLS when deciding whether we can do a direct sibcall
6071         to the target function of the thunk.
6072         (mips_encode_section_info): Check for "near" and "far" function
6073         attributes, and always set the SYMBOL_FLAG_LONG_CALL bit explicitly.
6074
6075         * config/mips/predicates.md (const_call_insn_operand): Test only
6076         SYMBOL_REF_LONG_CALL_P() and not TARGET_LONG_CALLS.
6077
6078         * doc/extend.texi (Function Attributes): Document MIPS "near" and
6079         "far" attributes.
6080
6081         * testsuite/gcc.target/mips/near-far-1.c:  New test case.
6082         * testsuite/gcc.target/mips/near-far-2.c:  New test case.
6083         * testsuite/gcc.target/mips/near-far-3.c:  New test case.
6084         * testsuite/gcc.target/mips/near-far-4.c:  New test case.
6085
6086 2007-05-25  Eric Christopher  <echristo@apple.com>
6087
6088         * config.gcc: Add i386/t-fprules-softfp64 and soft-fp/t-softfp
6089         to x86-darwin configurations.
6090         * config/i386/t-darwin: Add softfp support.
6091         * config/i386/t-darwin64: Ditto.
6092         * config/i386/sfp-machine.h: If mach then don't use
6093         aliasing, emit a stub to call.
6094
6095 2007-05-25  Kazu Hirata  <kazu@codesourcery.com>
6096
6097         * cfglayout.c, cgraphunit.c, config/avr/avr.c, fold-const.c,
6098         haifa-sched.c, optabs.h, tree-affine.c, tree-data-ref.c,
6099         tree-predcom.c, tree-ssa-alias-warnings.c,
6100         tree-ssa-forwprop.c, tree-vect-analyze.c, tree-vrp.c: Fix
6101         comment typos.  Follow spelling conventions.
6102         * doc/cpp.texi, doc/invoke.texi: Fix typos.
6103
6104 2007-05-26  Uros Bizjak  <ubizjak@gmail.com>
6105
6106         PR target/32065
6107         * target/i386/i386.c (ix86_expand_vector_move): Force SUBREGs of
6108         constants into memory.  Expand unaligned memory references for
6109         SSE modes via x86_expand_vector_move_misalign() function.
6110
6111 2007-05-25  Uros Bizjak  <ubizjak@gmail.com>
6112
6113         * config/i386/sse.md (*vec_extractv2di_1_sse2): Do not calculate
6114         "memory" attribute for "sseishft" type insn without operands[2].
6115
6116 2007-05-25  Dirk Mueller  <dmueller@suse.de>
6117             Marcus Meissner <meissner@suse.de>
6118
6119         * doc/extend.texi (alloc_size): New attribute.
6120         * c-common.c (handle_alloc_size_attribute): New.
6121         * tree-object-size.c (alloc_object_size): Use alloc_size
6122         attribute, if available.
6123
6124 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6125
6126         * config/i386/i386.c (__builtin_ia32_vec_ext_v2df): Mark it
6127         with MASK_SSE2.
6128         (__builtin_ia32_vec_ext_v2di): Likewise.
6129         (__builtin_ia32_vec_ext_v4si): Likewise.
6130         (__builtin_ia32_vec_ext_v8hi): Likewise.
6131         (__builtin_ia32_vec_ext_v16qi): Likewise.
6132         (__builtin_ia32_vec_set_v8hi): Likewise.
6133
6134 2007-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6135
6136         * config/i386/sse.md (*vec_extractv2di_1_sse2): Correct shift.
6137
6138 2007-05-25  Richard Sandiford  <richard@codesourcery.com>
6139
6140         * config/arm/arm-protos.h (arm_encode_call_attribute): Delete.
6141         (arm_is_longcall_p): Rename to...
6142         (arm_is_long_call_p): ...this.  Take a single tree argument and
6143         return a bool.
6144         * config/arm/arm.h (CALL_SHORT, CALL_LONG, CALL_NORMAL): Delete.
6145         (CUMULATIVE_ARGS): Remove call_cookie.
6146         (SHORT_CALL_FLAG_CHAR, LONG_CALL_FLAG_CHAR, ENCODED_SHORT_CALL_ATTR_P)
6147         (ENCODED_LONG_CALL_ATTR_P): Delete.
6148         (ARM_NAME_ENCODING_LENGTHS): Remove SHORT_CALL_FLAG_CHAR and
6149         LONG_CALL_FLAG_CHAR cases.
6150         (ARM_DECLARE_FUNCTION_SIZE): Delete.
6151         * config/arm/elf.h (ASM_DECLARE_FUNCTION_SIZE): Don't use
6152         ARM_DECLARE_FUNCTION_SIZE.
6153         * config/arm/arm.c (arm_init_cumulative_args): Don't set call_cookie.
6154         (arm_function_arg): Return const0_rtx for VOIDmode arguments.
6155         (arm_encode_call_attribute, current_file_function_operand): Delete.
6156         (arm_function_in_section_p): New function.
6157         (arm_is_longcall_p): Rename to...
6158         (arm_is_long_call_p): ...this.  Take the target function as a single
6159         argument and return a bool.  Do not rely on call cookies.  Check
6160         whether the target symbol is in the same section as the current
6161         function, not just the same compilation unit.
6162         (arm_function_ok_for_sibcall): Use arm_is_long_call_p.
6163         (arm_encode_section_info): Don't encode a call type.
6164         * config/arm/arm.md (call, call_value): Update calls to
6165         arm_is_long(_)call_p.  Simplify logic.
6166         (*call_symbol, *call_value_symbol, *call_insn, *call_value_insn):
6167         Update calls to arm_is_long(_)call_p.
6168
6169 2007-05-25  Richard Guenther  <rguenther@suse.de>
6170
6171         PR tree-optimization/31982
6172         * tree-ssa-forwprop.c
6173         (forward_propagate_addr_into_variable_array_index): Handle arrays
6174         with element size one.
6175
6176 2007-05-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6177
6178         * config/spu/spu.md (smulsi3_highpart): Unshare the rtl chain.
6179         (umulsi3_highpart): Likewise.
6180
6181 2007-05-24  Ian Lance Taylor  <iant@google.com>
6182
6183         PR rtl-optimization/32069
6184         * regclass.c (regclass): Don't crash if the entry in regno_reg_rtx
6185         is NULL.
6186
6187 2007-05-24  Ollie Wild  <aaw@google.com>
6188
6189         * doc/cpp.texi (Common Predefined Macros): Add __COUNTER__
6190         description.
6191
6192 2007-05-24  Richard Sandiford  <rsandifo@nildram.co.uk>
6193
6194         * postreload-gcse.c (reg_changed_after_insn_p): New function.
6195         (oprs_unchanged_p): Use it to check all registers in a REG.
6196         (record_opr_changes): Look for clobbers in CALL_INSN_FUNCTION_USAGE.
6197         (reg_set_between_after_reload_p): Delete.
6198         (reg_used_between_after_reload_p): Likewise.
6199         (reg_set_or_used_since_bb_start): Likewise.
6200         (eliminate_partially_redundant_load): Use reg_changed_after_insn_p
6201         and reg_used_between_p instead of reg_set_or_used_since_bb_start.
6202         Use reg_set_between_p instead of reg_set_between_after_reload_p.
6203         * rtlanal.c (reg_set_p): Check whether REG overlaps
6204         regs_invalidated_by_call, rather than just checking the
6205         membership of REGNO (REG).
6206
6207 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
6208
6209         * doc/passes.texi: Document predictive commoning.
6210         * doc/invoke.texi (-fpredictive-commoning): Document.
6211         * opts.c (decode_options): Enable flag_predictive_commoning on -O3.
6212         * tree-ssa-loop-im.c (get_lsm_tmp_name): Export.  Allow
6213         adding indices to the generated name.
6214         (schedule_sm): Pass 0 to get_lsm_tmp_name.
6215         * tree-ssa-loop-niter.c (stmt_dominates_stmt_p): Export.
6216         * tree-pretty-print.c (op_symbol_1): Renamed to ...
6217         (op_symbol_code): ... and exported.
6218         (dump_omp_clause, op_symbol): Use op_symbol_code
6219         instead of op_symbol_1.
6220         * tree-pass.h (pass_predcom): Declare.
6221         * timevar.def (TV_PREDCOM): New timevar.
6222         * tree-ssa-loop.c (run_tree_predictive_commoning,
6223         gate_tree_predictive_commoning, pass_predcom): New.
6224         * tree-data-ref.c (find_data_references_in_loop): Find the
6225         references in dominance order.
6226         (canonicalize_base_object_address): Ensure that the result has
6227         pointer type.
6228         (dr_analyze_innermost): Export.
6229         (create_data_ref): Code to fail for references with invariant
6230         address moved ...
6231         (find_data_references_in_stmt): ... here.
6232         * tree-data-ref.h (dr_analyze_innermost): Declare.
6233         * tree-affine.c: Include tree-gimple.h and hashtab.h.
6234         (aff_combination_find_elt, name_expansion_hash,
6235         name_expansion_eq, tree_to_aff_combination_expand,
6236         double_int_constant_multiple_p, aff_combination_constant_multiple_p):
6237         New functions.
6238         * tree-affine.h (aff_combination_constant_multiple_p,
6239         tree_to_aff_combination_expand): Declare.
6240         * tree-predcom.c: New file.
6241         * common.opt (fpredictive-commoning): New option.
6242         * tree-flow.h (op_symbol_code, tree_predictive_commoning,
6243         stmt_dominates_stmt_p, get_lsm_tmp_name): Declare.
6244         * Makefile.in (tree-predcom.o): Add.
6245         (tree-affine.o): Add TREE_GIMPLE_H dependency.
6246         * passes.c (init_optimization_passes):  Add dceloop after
6247         copy propagation in loop optimizer.  Add predictive commoning
6248         to loop optimizer passes.
6249
6250 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6251
6252         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Correct
6253         default hook.
6254
6255 2007-05-24  Jan Hubicka  <jh@suse.cz>
6256
6257         * gengenrtl.c (gendecl, gendef): Output the gens annotated for
6258         statistics.
6259         (genheader): Include statistics.h.
6260
6261         * doc/invoke.texi (-fdump-unnumbered): Update docs when line number
6262         notes are gone.
6263         * print-rtl.c (flag_dump_unnumbered): Update comments.
6264         (print_rtl): Fix my previous change.
6265         * emit-rtl.c (emit_note_before, emit_note_after): Clear out note
6266         specific data.
6267
6268 2007-05-24  Zdenek Dvorak  <dvorakz@suse.cz>
6269
6270         PR middle-end/32018
6271         * tree-ssa-threadupdate.c (thread_through_loop_header): Use
6272         set_loop_copy.
6273         (thread_through_all_blocks): Call initialize_original_copy_tables
6274         and free_original_copy_tables.
6275         * cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
6276         Use set_loop_copy.
6277         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
6278         * cfghooks.c (duplicate_block): Use get_loop_copy.
6279         * cfg.c: Include cfgloop.h.
6280         (loop_copy): New hash table.
6281         (initialize_original_copy_tables): Initialize loop_copy table.
6282         (free_original_copy_tables): Free loop_copy table.
6283         (copy_original_table_clear, copy_original_table_set,
6284         set_loop_copy, get_loop_copy): New functions.
6285         (set_bb_original, set_bb_copy): Use copy_original_table_set.
6286         * cfgloop.h (struct loop): Remove copy field.
6287         * Makefile.in (cfg.o): Add CFGLOOP_H dependency.
6288         * basic-block.h (set_loop_copy, get_loop_copy): Declare.
6289
6290 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6291
6292         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
6293         -msse/-msse2/-msse3.
6294
6295 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6296
6297         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
6298         __builtin_ia32_vec_set_v2di with MASK_64BIT.
6299
6300 2007-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
6301
6302         PR target/27067
6303         * doc/tm.texi (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Document.
6304         * targhooks.h (default_mangle_decl_assembler_name): Declare
6305         default hook.
6306         * targhooks.c (default_mangle_decl_assembler_name): Define
6307         default hook.
6308         * target-def.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) New. Set to
6309         default hook.
6310         * target.h (struct gcc_target): Add mangle_decl_assembler_name field.
6311         * langhooks.c (lhd_set_decl_assembler_name): Call
6312         targetm.mangle_decl_assembler_name for names with global scope.
6313
6314         * config/i386/cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME) Override
6315         default.
6316         (ASM_OUTPUT_DEF_FROM_DECLS): Simplify to use DECL_ASSEMBLER_NAME.
6317         * config/i386/i386-protos.h (i386_pe_mangle_decl_assembler_name):
6318         Declare.
6319         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6320         New. Factored out of i386_pe_encode_section_info.
6321         (gen_stdcall_or_fastcall_suffix): Get name identifier as argument.
6322         Move check for prior decoration of stdcall
6323         symbols to i386_pe_encode_section_info.
6324         (i386_pe_encode_section_info): Adjust call to
6325         gen_stdcall_or_fastcall_suffix.  Use
6326         i386_pe_maybe_mangle_decl_assembler_name, if needed.
6327         (i386_pe_mangle_decl_assembler_name): New. Wrap
6328         i386_pe_maybe_mangle_decl_assembler_name.
6329
6330 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
6331
6332         * c-common.c (c_common_signed_or_unsigned_type): Delay the check for
6333         INTEGRAL_TYPE_P and TYPE_UNSIGNED.
6334         * langhooks.c (get_signed_or_unsigned_type): Don't check for
6335         INTEGRAL_TYPE_P or TYPE_UNSIGNED.
6336         (lhd_signed_or_unsigned_type): Check for INTEGRAL_TYPE_P and
6337         TYPE_UNSIGNED.
6338
6339 2007-05-23  Sandra Loosemore  <sandra@codesourcery.com>
6340             Nigel Stephens  <nigel@mips.com>
6341             Richard Sandiford  <richard@codesourcery.com>
6342
6343         Fix up MIPS16 hard float and add support for complex.
6344
6345         * config/mips/mips.h (TARGET_HARD_FLOAT_ABI): New.
6346         (TARGET_SOFT_FLOAT_ABI): New.
6347         (TARGET_CPU_CPP_BUILTINS): Define __mips_hard_float and
6348         __mips_soft_float to reflect the ABI in use, not whether the
6349         FPU is directly accessible (e.g., in MIPS16 mode).
6350         (UNITS_PER_HWFPVALUE): Use TARGET_SOFT_FLOAT_ABI.
6351         (UNITS_PER_FPVALUE): Likewise.
6352
6353         * config/mips/mips.c (mips_expand_call): Remove redundant
6354         TARGET_MIPS16 check.
6355         (mips_arg_regno): New.
6356         (function_arg_advance): When setting bits in cum->fp_code for
6357         MIPS16, don't subtract 1 from cum->arg_number, since it is now
6358         zero-based.
6359         (function_arg): Use mips_arg_regno.
6360         (mips_return_mode_in_fpr_p): New.
6361         (mips16_call_stub_mode_suffix): New.
6362         (mips16_cfun_returns_in_fpr_p): New.
6363         (mips_save_reg_p): Use mips16_cfun_returns_in_fpr_p.
6364         (mips_output_function_prologue): Test mips16_hard_float, not
6365         !TARGET_SOFT_FLOAT, to decide when a function stub is required.
6366         (mips_expand_epilogue): Call MIPS16 helper routines to copy
6367         return value into a floating-point register.
6368         (mips_can_use_return_insn): Use mips16_cfun_returns_in_fpr_p.
6369         (mips_function_value): Rewrite to use mips_return_mode_in_fpr_p.
6370         (mips16_fp_args): Handle MIPS32r2 ISA which supports
6371         TARGET_FLOAT64, and use mfhc1/mthc1 to copy the most significant
6372         word of double arguments from or to the high bits of 64-bit
6373         floating point registers.
6374         (build_mips16_function_stub): Fill in DECL_RESULT for stubdecl.
6375         (mips16_fpret_double): New helper function.
6376         (build_mips16_call_stub): Use mips16_return_mode_in_fpr_p.  Add
6377         support for complex modes.  Fill in DECL_RESULT for stubdecl.
6378         (mips_init_libfuncs): Remove redundant TARGET_MIPS16 check.
6379
6380         * config/mips/mips16.S
6381         (RET, ARG1, ARG2): New.
6382         (MERGE_GPRf, MERGE_GPRt): New.
6383         (DELAYt, DELAYf): New.
6384         (MOVE_SF_BYTE0, MOVE_SI_BYTE0): New.
6385         (MOVE_SF_BYTE4, MOVE_SF_BYTE8): New.
6386         (MOVE_DF_BYTE0, MOVE_DF_BYTE8): New.
6387         (MOVE_SF_RET, MOVE_SC_RET, MOVE_DF_RET, MOVE_DC_RET, MOVE_SI_RET): New.
6388         (SFOP): Renamed to...
6389         (OPSF3): This, and macro-ified.  Updated all uses.
6390         (SFOP2): Renamed to...
6391         (OPSF2): This, and macro-ified.  Updated all uses.
6392         (SFCMP): Renamed to...
6393         (CMPSF): This, and macro-ified.  Updated all uses.
6394         (SFREVCMP): Renamed to...
6395         (REVCMPSF): This, and macro-ified.  Updated all uses.
6396         (__mips16_floatsisf, __mips16_fix_truncsfsi): Macro-ified.
6397         (LDDBL1, LDDBL2, RETDBL): Deleted.
6398         (DFOP): Renamed to...
6399         (OPDF3): This, and macro-ified.  Updated all uses.
6400         (DFOP2): Renamed to...
6401         (OPDF2): This, and macro-ified.  Updated all uses.
6402         (__mips16_extendsfdf2, __mips16_truncdfsf2): Macro-ified.
6403         (DFCMP): Renamed to...
6404         (CMPDF): This, and macro-ified.  Updated all uses.
6405         (DFREVCMP): Renamed to...
6406         (REVCMPDF): This, and macro-ified.  Updated all uses.
6407         (__mips16_floatsidf, __mips16_fix_truncdfsi): Macro-ified.
6408         (RET_FUNCTION): New.
6409         (__mips16_ret_sf, __mips16_ret_df): Macro-ified.
6410         (__mips16_ret_sc, __mips16_ret_dc): New.
6411         (STUB_ARGS_0, STUB_ARGS_1, STUB_ARGS_5, STUB_ARGS_9, STUB_ARGS_2,
6412         STUB_ARGS_6, STUB_ARGS_10): New.
6413         (CALL_STUB_NO_RET): New.
6414         (__mips16_call_stub_1): Macro-ified.
6415         (__mips16_call_stub_5): Macro-ified.
6416         (__mips16_call_stub_2): Macro-ified.
6417         (__mips16_call_stub_6): Macro-ified.
6418         (__mips16_call_stub_9): Macro-ified.
6419         (__mips16_call_stub_10): Macro-ified.
6420         (CALL_STUB_RET): New.
6421         (__mips16_call_stub_sf_0): Macro-ified.
6422         (__mips16_call_stub_sf_1): Macro-ified.
6423         (__mips16_call_stub_sf_5): Macro-ified.
6424         (__mips16_call_stub_sf_2): Macro-ified.
6425         (__mips16_call_stub_sf_6): Macro-ified.
6426         (__mips16_call_stub_sf_9): Macro-ified.
6427         (__mips16_call_stub_sf_10): Macro-ified.
6428         (__mips16_call_stub_df_0): Macro-ified.
6429         (__mips16_call_stub_df_1): Macro-ified.
6430         (__mips16_call_stub_df_5): Macro-ified.
6431         (__mips16_call_stub_df_2): Macro-ified.
6432         (__mips16_call_stub_df_6): Macro-ified.
6433         (__mips16_call_stub_df_9): Macro-ified.
6434         (__mips16_call_stub_df_10): Macro-ified.
6435         (__mips16_call_stub_sc_0): New.
6436         (__mips16_call_stub_sc_1): New.
6437         (__mips16_call_stub_sc_5): New.
6438         (__mips16_call_stub_sc_2): New.
6439         (__mips16_call_stub_sc_6): New.
6440         (__mips16_call_stub_sc_9): New.
6441         (__mips16_call_stub_sc_10): New.
6442         (__mips16_call_stub_dc_0): New.
6443         (__mips16_call_stub_dc_1): New.
6444         (__mips16_call_stub_dc_5): New.
6445         (__mips16_call_stub_dc_2): New.
6446         (__mips16_call_stub_dc_6): New.
6447         (__mips16_call_stub_dc_9): New.
6448         (__mips16_call_stub_dc_10): New.
6449
6450         * config/mips/t-elf (LIB1ASMFUNCS): Add MIPS16 floating-point stubs.
6451         * config/mips/t-isa3264 (LIB1ASMFUNCS): Likewise.
6452         * config/mips/t-r2900 (LIB1ASMFUNCS): Likewise.
6453
6454 2007-05-23  Ian Lance Taylor  <iant@google.com>
6455
6456         * doc/invoke.texi (Invoking GCC): Document that the order of the
6457         -l option matters.
6458
6459 2007-05-23  Chen Liqin  <liqin@sunnorth.com.cn>
6460
6461         PR target/30987
6462         * config/score/misc.md (bitclr_c, bitset_c, bittgl_c): Remove.
6463         * config/score/predicate.md (const_pow2, const_npow2): Remove.
6464         * config/score/score.h (ASM_OUTPUT_EXTERNAL): Add ASM_OUTPUT_EXTERNAL
6465         undef.
6466
6467         PR target/30474
6468         * config/score/score.c (score_print_operand): Make sure that only
6469         lower bits are used.
6470
6471 2007-05-22  Ian Lance Taylor  <iant@google.com>
6472
6473         * tree-vrp.c (avoid_overflow_infinity): New static function,
6474         broken out of set_value_range_to_value.
6475         (set_value_range_to_value): Call avoid_overflow_infinity.
6476         (extract_range_from_assert): Likewise.
6477
6478 2007-05-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6479
6480         PR middle-end/31095
6481          * builtins.c (expand_builtin_memmove_args): Strip nops that don't
6482         change the type before looking for a COMPOUND_EXPR.
6483
6484 2007-05-22  Ian Lance Taylor  <iant@google.com>
6485
6486         * lower-subreg.c (decompose_multiword_subregs): If we change an
6487         insn, call remove_retval_note on it.
6488
6489 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
6490
6491         * regs.h (end_hard_regno): New function.
6492         (END_HARD_REGNO, END_REGNO): New macros.
6493         (add_to_hard_reg_set): New function.
6494         (remove_from_hard_reg_set): Likewise.
6495         (in_hard_reg_set_p): Likewise.
6496         (overlaps_hard_reg_set_p): Likewise.
6497         * bt-load.c (find_btr_reference): Use overlaps_hard_reg_set_p.
6498         (note_btr_set): Use END_HARD_REGNO.
6499         * caller-save.c (setup_save_areas): Use end_hard_regno.
6500         (mark_set_regs): Use END_HARD_REGNO.
6501         (add_stored_regs): Use end_hard_regno.
6502         (mark_referenced_regs): Use add_to_hard_reg_set.
6503         * combine.c (update_table_tick): Use END_REGNO.
6504         (record_value_for_reg): Likewise.
6505         (record_dead_and_set_regs): Likewise.
6506         (get_last_value_validate): Likewise.
6507         (use_crosses_set_p): Likewise.
6508         (reg_dead_at_p_1): Likewise.
6509         (reg_dead_at_p): Likewise.
6510         (mark_used_regs_combine): Use add_to_hard_reg_set.
6511         (move_deaths): Use END_HARD_REGNO.
6512         (reg_bitfield_target_p): Use end_hard_regno.
6513         (distribute_notes): Use END_HARD_REGNO.
6514         * cse.c (mention_regs): Use END_REGNO.
6515         (insert): Use add_to_hard_reg_set.
6516         (invalidate): Use END_HARD_REGNO.
6517         (invalidate_for_call): Likewise.
6518         (exp_equiv_p): Use END_REGNO.
6519         (cse_insn): Likewise.
6520         * cselib.c (cselib_invalidate_regno): Use end_hard_regno.
6521         * df-problems.c (df_urec_mark_reg_change): Use END_HARD_REGNO.
6522         * df-scan.c (df_ref_record): Use END_HARD_REGNO.
6523         * function.c (keep_stack_depressed): Use end_hard_regno.
6524         * global.c (global_alloc): Use end_hard_regno.
6525         (global_conflicts): Use add_to_hard_reg_set instead of
6526         mark_reg_live_nc.
6527         (find_reg): Likewise.
6528         (mark_reg_store): Likewise.
6529         (mark_reg_conflicts): Likewise.
6530         (mark_reg_death): Use remove_from_hard_reg_set.
6531         (mark_reg_live_nc): Delete.
6532         (set_preference): Use end_hard_regno.
6533         * local-alloc.c (mark_life): Use add_to_hard_reg_set and
6534         remove_from_hard_reg_set.
6535         (post_mark_life): Use add_to_hard_reg_set.
6536         * mode-switching.c (reg_dies): Use remove_from_hard_reg_set.
6537         (reg_becomes_live): Use add_to_hard_reg_set.
6538         * recog.c (reg_fits_class_p): Use in_hard_reg_set_p.
6539         (peep2_find_free_register): Use add_to_hard_reg_set.
6540         * reg-stack.c (convert_regs_exit): Use END_HARD_REGNO.
6541         * regclass.c (record_reg_classes): Use in_hard_reg_set_p.
6542         * regrename.c (note_sets): Use add_to_hard_reg_set.
6543         (clear_dead_regs): Use remove_from_hard_reg_set.
6544         (regrename_optimize): Use add_to_hard_reg_set.
6545         (find_oldest_value_reg): Use in_hard_reg_set_p.
6546         * reload.c (push_reload): Use in_hard_reg_set_p and end_hard_regno.
6547         (hard_reg_set_here_p): Use end_hard_regno.
6548         (decompose): Likewise.
6549         (reg_overlap_mentioned_for_reload_p): Use END_HARD_REGNO.
6550         (find_equiv_reg): Use in_hard_reg_set_p and end_hard_regno.
6551         * reload1.c (compute_use_by_pseudos): Use add_to_hard_reg_set.
6552         (mark_home_live): Use end_hard_regno.
6553         (spill_hard_reg): Likewise.
6554         (clear_reload_reg_in_use): Likewise.
6555         * reorg.c (delete_prior_computation): Use END_REGNO.
6556         * resource.c (update_live_status): Use END_HARD_REGNO.
6557         (mark_referenced_resources): Use add_to_hard_reg_set.
6558         (mark_set_resources): Likewise.
6559         (mark_target_live_regs): Likewise.  Use remove_from_hard_reg_set.
6560         * rtlanal.c (refers_to_regno_p): Use END_REGNO.
6561         (reg_overlap_mentioned_p): Likewise.
6562         (dead_or_set_p): Likewise.  Use an exclusive upper loop bound.
6563         (covers_regno_no_parallel_p): Use END_REGNO.
6564         (find_regno_note): Likewise.
6565         (find_reg_fusage): Use END_HARD_REGNO.
6566         * stmt.c (decl_overlaps_hard_reg_set_p): Use overlaps_hard_reg_set_p.
6567         * var-tracking.c (emit_note_insn_var_location): Use end_hard_regno.
6568
6569 2007-05-22  Richard Sandiford  <rsandifo@nildram.co.uk>
6570
6571         * mode-switching.c (reg_dies): Change type of second argument to
6572         "HARD_REG_SET *".
6573         (optimize_mode_switching): Update accordingly.
6574
6575 2007-05-22  Richard Sandiford  <richard@codesourcery.com>
6576
6577         * hard-reg-set.h (GO_IF_HARD_REG_SUBSET, GO_IF_HARD_REG_EQUAL): Delete
6578         in favor of...
6579         (hard_reg_subset_p, hard_reg_sets_equal_p, hard_reg_sets_intersect_p)
6580         (hard_reg_set_empty_p): ...these new functions.
6581         * bt-load.c (choose_btr): Use hard_reg_subset_p instead of
6582         GO_IF_HARD_REG_SUBSET.
6583         * cfgcleanup.c (old_insns_match_p): Use hard_reg_sets_equal_p
6584         instead of GO_IF_HARD_REG_EQUAL.
6585         * df-problems.c (df_urec_local_compute): Use hard_reg_set_empty_p
6586         instead of GO_IF_HARD_REG_EQUAL.
6587         * global.c (find_reg): Use hard_reg_set_empty_p instead of
6588         GO_IF_HARD_REG_SUBSET.
6589         (modify_reg_pav): Use hard_reg_set_empty_p instead of
6590         GO_IF_HARD_REG_EQUAL.
6591         * local-alloc.c (find_free_reg): Use hard_reg_subset_p instead
6592         of GO_IF_HARD_REG_SUBSET.
6593         * reg-stack.c (change_stack, convert_regs_1): Use hard_reg_sets_equal_p
6594         instead of GO_IF_HARD_REG_EQUAL.
6595         * regclass.c (init_reg_sets_1, reg_scan_mark_refs): Use
6596         hard_reg_subset_p instead of GO_IF_HARD_REG_SUBSET.
6597         (reg_classes_intersect_p): Use hard_reg_sets_intersect_p instead
6598         of GO_IF_HARD_REG_SUBSET,
6599         * reload1.c (finish_spills): Use hard_reg_subset_p instead of
6600         GO_IF_HARD_REG_SUBSET.
6601         * struct-equiv.c (death_notes_match_p): Use hard_reg_sets_equal_p
6602         instead of GO_IF_HARD_REG_EQUAL.
6603         * config/sh/sh.c (push_regs, calc_live_regs): Use
6604         hard_reg_sets_intersect_p instead of hard_regs_intersect_p.
6605         (hard_regs_intersect_p): Delete.
6606
6607 2007-05-22  Janis Johnson  <janis187@us.ibm.com>
6608
6609         * doc/sourcebuild.texi (Test Directives) Add dg-message.
6610
6611 2007-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6612             Richard Henderson  <rth@redhat.com>
6613
6614         * config.gcc (i[34567]86-*-*): Add smmintrin.h to
6615         extra_headers.
6616         (x86_64-*-*): Likewise.
6617
6618         * i386/i386-modes.def (V2QI): New.
6619
6620         * config/i386/i386.c (ix86_handle_option): Handle SSE4.1 and
6621         SSE4A.
6622         (override_options): Support SSE4.1.
6623         (IX86_BUILTIN_BLENDPD): New for SSE4.1.
6624         (IX86_BUILTIN_BLENDPS): Likewise.
6625         (IX86_BUILTIN_BLENDVPD): Likewise.
6626         (IX86_BUILTIN_BLENDVPS): Likewise.
6627         (IX86_BUILTIN_PBLENDVB128): Likewise.
6628         (IX86_BUILTIN_PBLENDW128): Likewise.
6629         (IX86_BUILTIN_DPPD): Likewise.
6630         (IX86_BUILTIN_DPPS): Likewise.
6631         (IX86_BUILTIN_INSERTPS128): Likewise.
6632         (IX86_BUILTIN_MOVNTDQA): Likewise.
6633         (IX86_BUILTIN_MPSADBW128): Likewise.
6634         (IX86_BUILTIN_PACKUSDW128): Likewise.
6635         (IX86_BUILTIN_PCMPEQQ): Likewise.
6636         (IX86_BUILTIN_PHMINPOSUW128): Likewise.
6637         (IX86_BUILTIN_PMAXSB128): Likewise.
6638         (IX86_BUILTIN_PMAXSD128): Likewise.
6639         (IX86_BUILTIN_PMAXUD128): Likewise.
6640         (IX86_BUILTIN_PMAXUW128): Likewise.
6641         (IX86_BUILTIN_PMINSB128): Likewise.
6642         (IX86_BUILTIN_PMINSD128): Likewise.
6643         (IX86_BUILTIN_PMINUD128): Likewise.
6644         (IX86_BUILTIN_PMINUW128): Likewise.
6645         (IX86_BUILTIN_PMOVSXBW128): Likewise.
6646         (IX86_BUILTIN_PMOVSXBD128): Likewise.
6647         (IX86_BUILTIN_PMOVSXBQ128): Likewise.
6648         (IX86_BUILTIN_PMOVSXWD128): Likewise.
6649         (IX86_BUILTIN_PMOVSXWQ128): Likewise.
6650         (IX86_BUILTIN_PMOVSXDQ128): Likewise.
6651         (IX86_BUILTIN_PMOVZXBW128): Likewise.
6652         (IX86_BUILTIN_PMOVZXBD128): Likewise.
6653         (IX86_BUILTIN_PMOVZXBQ128): Likewise.
6654         (IX86_BUILTIN_PMOVZXWD128): Likewise.
6655         (IX86_BUILTIN_PMOVZXWQ128): Likewise.
6656         (IX86_BUILTIN_PMOVZXDQ128): Likewise.
6657         (IX86_BUILTIN_PMULDQ128): Likewise.
6658         (IX86_BUILTIN_PMULLD128): Likewise.
6659         (IX86_BUILTIN_ROUNDPD): Likewise.
6660         (IX86_BUILTIN_ROUNDPS): Likewise.
6661         (IX86_BUILTIN_ROUNDSD): Likewise.
6662         (IX86_BUILTIN_ROUNDSS): Likewise.
6663         (IX86_BUILTIN_PTESTZ): Likewise.
6664         (IX86_BUILTIN_PTESTC): Likewise.
6665         (IX86_BUILTIN_PTESTNZC): Likewise.
6666         (IX86_BUILTIN_VEC_EXT_V16QI): Likewise.
6667         (IX86_BUILTIN_VEC_SET_V2DI): Likewise.
6668         (IX86_BUILTIN_VEC_SET_V4SF): Likewise.
6669         (IX86_BUILTIN_VEC_SET_V4SI): Likewise.
6670         (IX86_BUILTIN_VEC_SET_V16QI): Likewise.
6671         (bdesc_ptest): New.
6672         (bdesc_sse_3arg): Likewise.
6673         (bdesc_2arg): Likewise.
6674         (bdesc_1arg): Likewise.
6675         (ix86_init_mmx_sse_builtins): Support SSE4.1.  Handle SSE builtins
6676         with 3 args.
6677         (ix86_expand_sse_4_operands_builtin): New.
6678         (ix86_expand_unop_builtin): Support 2 arg builtins with a constant
6679         smaller than 8 bits as the 2nd arg.
6680         (ix86_expand_sse_ptest): New.
6681         (ix86_expand_builtin): Support SSE4.1. Support 3 arg SSE builtins.
6682         (ix86_expand_vector_set): Support SSE4.1.
6683         (ix86_expand_vector_extract): Likewise.
6684
6685         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
6686         __SSE4_1__ for -msse4.1.
6687
6688         * config/i386/i386.md (UNSPEC_BLENDV): New for SSE4.1.
6689         (UNSPEC_INSERTPS): Likewise.
6690         (UNSPEC_DP): Likewise.
6691         (UNSPEC_MOVNTDQA): Likewise.
6692         (UNSPEC_MPSADBW): Likewise.
6693         (UNSPEC_PHMINPOSUW): Likewise.
6694         (UNSPEC_PTEST): Likewise.
6695         (UNSPEC_ROUNDP): Likewise.
6696         (UNSPEC_ROUNDS): Likewise.
6697
6698         * config/i386/i386.opt (msse4.1): New for SSE4.1.
6699
6700         * config/i386/predicates.md (const_pow2_1_to_2_operand): New.
6701         (const_pow2_1_to_32768_operand): Likewise.
6702
6703         * config/i386/smmintrin.h: New. The SSE4.1 intrinsic header
6704         file.
6705
6706         * config/i386/sse.md (*vec_setv4sf_sse4_1): New pattern for
6707         SSE4.1.
6708         (sse4_1_insertps): Likewise.
6709         (*sse4_1_extractps): Likewise.
6710         (sse4_1_ptest): Likewise.
6711         (sse4_1_mulv2siv2di3): Likewise.
6712         (*sse4_1_mulv4si3): Likewise.
6713         (*sse4_1_smax<mode>3): Likewise.
6714         (*sse4_1_umax<mode>3): Likewise.
6715         (*sse4_1_smin<mode>3): Likewise.
6716         (*sse4_1_umin<mode>3): Likewise.
6717         (sse4_1_eqv2di3): Likewise.
6718         (*sse4_1_pinsrb): Likewise.
6719         (*sse4_1_pinsrd): Likewise.
6720         (*sse4_1_pinsrq): Likewise.
6721         (*sse4_1_pextrb): Likewise.
6722         (*sse4_1_pextrb_memory): Likewise.
6723         (*sse4_1_pextrw_memory): Likewise.
6724         (*sse4_1_pextrq): Likewise.
6725         (sse4_1_blendpd): Likewise.
6726         (sse4_1_blendps): Likewise.
6727         (sse4_1_blendvpd): Likewise.
6728         (sse4_1_blendvps): Likewise.
6729         (sse4_1_dppd): Likewise.
6730         (sse4_1_dpps): Likewise.
6731         (sse4_1_movntdqa): Likewise.
6732         (sse4_1_mpsadbw): Likewise.
6733         (sse4_1_packusdw): Likewise.
6734         (sse4_1_pblendvb): Likewise.
6735         (sse4_1_pblendw): Likewise.
6736         (sse4_1_phminposuw): Likewise.
6737         (sse4_1_extendv8qiv8hi2): Likewise.
6738         (*sse4_1_extendv8qiv8hi2): Likewise.
6739         (sse4_1_extendv4qiv4si2): Likewise.
6740         (*sse4_1_extendv4qiv4si2): Likewise.
6741         (sse4_1_extendv2qiv2di2): Likewise.
6742         (*sse4_1_extendv2qiv2di2): Likewise.
6743         (sse4_1_extendv4hiv4si2): Likewise.
6744         (*sse4_1_extendv4hiv4si2): Likewise.
6745         (sse4_1_extendv2hiv2di2): Likewise.
6746         (*sse4_1_extendv2hiv2di2): Likewise.
6747         (sse4_1_extendv2siv2di2): Likewise.
6748         (*sse4_1_extendv2siv2di2): Likewise.
6749         (sse4_1_zero_extendv8qiv8hi2): Likewise.
6750         (*sse4_1_zero_extendv8qiv8hi2): Likewise.
6751         (sse4_1_zero_extendv4qiv4si2): Likewise.
6752         (*sse4_1_zero_extendv4qiv4si2): Likewise.
6753         (sse4_1_zero_extendv2qiv2di2): Likewise.
6754         (*sse4_1_zero_extendv2qiv2di2): Likewise.
6755         (sse4_1_zero_extendv4hiv4si2): Likewise.
6756         (*sse4_1_zero_extendv4hiv4si2): Likewise.
6757         (sse4_1_zero_extendv2hiv2di2): Likewise.
6758         (*sse4_1_zero_extendv2hiv2di2): Likewise.
6759         (sse4_1_zero_extendv2siv2di2): Likewise.
6760         (*sse4_1_zero_extendv2siv2di2): Likewise.
6761         (sse4_1_roundpd): Likewise.
6762         (sse4_1_roundps): Likewise.
6763         (sse4_1_roundsd): Likewise.
6764         (sse4_1_roundss): Likewise.
6765         (mulv4si3): Don't expand for SSE4.1.
6766         (smax<mode>3): Likewise.
6767         (umaxv4si3): Likewise.
6768         (uminv16qi3): Likewise.
6769         (umin<mode>3): Likewise.
6770         (umaxv8hi3): Rewrite.  Only enabled for SSE4.1.
6771
6772         * doc/extend.texi: Document SSE4.1 built-in functions.
6773
6774         * doc/invoke.texi: Document -msse4.1.
6775
6776 2007-05-22  Nathan Sidwell  <nathan@codesourcery.com>
6777
6778         * config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec.
6779         * config/m68k/m68k-none.h (ASM_SPEC): Don't override here.
6780         * config/m68k/m68k.h (ASM_PCREL_SPEC): New.
6781         (ASM_SPEC): Add asm_pcrel_spec.
6782         (EXTRA_SPECS): Add asm_pcrel_spec.
6783
6784 2007-05-21  David Daney  <ddaney@avtrex.com>
6785
6786         * doc/install.texi (Building a cross compiler): Add requirements
6787         for Java cross compiler.
6788
6789 2007-05-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6790
6791         PR middle-end/31995
6792         * tree-chrec.c (evolution_function_is_affine_multivariate_p):
6793         Add loopno argument.  Use evolution_function_is_invariant_rec_p
6794         instead of evolution_function_is_constant_p.
6795         Update calls to evolution_function_is_affine_multivariate_p.
6796         * tree-chrec.h (evolution_function_is_affine_multivariate_p):
6797         Add loopno argument.
6798         * tree-scalar-evolution.c (gather_chrec_stats): Call
6799         evolution_function_is_affine_multivariate_p with a loop
6800         number of 0.
6801         * tree-data-ref.c (analyze_miv_subscript): Likewise.
6802         (analyze_overlapping_iterations): Likewise.
6803         (access_functions_are_affine_or_constant_p): Likewise.
6804         (build_classic_dist_vector_1): If the access functions
6805         are equal, don't do anything.
6806
6807 2007-05-21  Paolo Bonzini  <bonzini@gnu.org>
6808             Paolo Carlini  <pcarlini@suse.de>
6809             Uros Bizjak  <ubizjak@gmail.com>
6810
6811         * c-cppbuiltin.c (c_cpp_builtins): Define
6812         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
6813         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8,
6814         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16, if appropriate.
6815         * doc/cpp.texi ([Standard Predefined Macros]): Document.
6816
6817 2007-05-21  Mike Stump  <mrs@apple.com>
6818
6819         * config/darwin.h (LINK_COMMAND_SPEC): Add .cxx/.cp for dsymutil
6820         handling as well.
6821         * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
6822
6823 2007-05-21  Uros Bizjak  <ubizjak@gmail.com>
6824
6825         * config/i386/tmmintrin.h (_mm_alignr_epi8): Provide macro
6826         implementation if __OPTIMIZE__ is not defined.
6827         (_mm_alignr_pi8): Ditto.
6828         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
6829         (_mm_inserti_si64): Ditto.
6830         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
6831         (_mm_slli_epi16): Ditto.
6832         (_mm_slli_epi32): Ditto.
6833         (_mm_slli_epi64): Ditto.
6834         (_mm_srai_epi16): Ditto.
6835         (_mm_srai_epi32): Ditto.
6836         (_mm_srli_si128): Ditto.
6837         (_mm_slli_si128): Ditto.
6838         (_mm_srli_epi16): Ditto.
6839         (_mm_srli_epi32): Ditto.
6840         (_mm_srli_epi64): Ditto.
6841         (_mm_extract_epi16): Ditto.
6842         (_mm_insert_epi16): Ditto.
6843         (_mm_shufflehi_epi16): Ditto.
6844         (_mm_shufflelo_epi16): Ditto.
6845         (_mm_shuffle_epi32): Ditto.
6846         * config/i386/xmmintrin.h (_mm_extract_pi16): Ditto.
6847         (_m_pextrw): Ditto.
6848         (_mm_insert_pi16): Ditto.
6849         (_m_pinsrw): Ditto.
6850         (_mm_shuffle_pi16): Ditto.
6851         (_m_pshufw): Ditto.
6852         (_mm_shufle_ps): Ditto.
6853         (_mm_prefetch): Ditto.
6854
6855 2007-05-21  Andreas Krebbel  <krebbel1@de.ibm.com>
6856
6857         * defaults.h (IBM_FLOAT_FORMAT): Macro definition removed.
6858         * doc/tm.texi (IBM_FLOAT_FORMAT): Documentation entry removed.
6859         * real.c (encode_i370_single, decode_i370_single,
6860         encode_i370_double, decode_i370_double): Functions removed.
6861         (i370_single_format, i370_double_format): Initializations removed.
6862         (real_maxval, round_for_format, exact_real_truncate, significand_size):
6863         Consider the log2_b field to always be one.
6864         (ieee_single_format, mips_single_format, coldfire_single_format,
6865         ieee_double_format, mips_double_format, coldfire_double_format,
6866         ieee_extended_motorola_format, ieee_extended_intel_96_format,
6867         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
6868         ibm_extended_format, mips_extended_format, ieee_quad_format,
6869         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
6870         decimal_single_format, decimal_double_format, decimal_quad_format,
6871         c4x_single_format, c4x_extended_format, real_internal_format): Remove
6872         initialization of log2_b.
6873         * real.h (i370_single_format, i370_double_format): Declarations
6874         removed.
6875         * c-cppbuiltin.c (builtin_define_float_constants): Consider the log2_b
6876         field to always be one.
6877
6878 2007-05-21  Andreas Schwab  <schwab@suse.de>
6879
6880         * config/ia64/ia64.c (emit_predicate_relation_info): Fix use of
6881         NOTE_INSN_BASIC_BLOCK_P.
6882         (process_for_unwind_directive): Likewise.
6883
6884 2007-05-21  Nathan Sidwell  <nathan@codesourcery.com>
6885
6886         * builtins.c (expand_builtin_setjmp_setup): Update comment.
6887         * function.h (struct function): Move va_list_gpr_size,
6888         va_list_fpr_size, function_frequency to front of bitfields.  Add
6889         calls_unwind_init.
6890         (current_function_calls_unwind_init): New.
6891         * except.c (expand_builtin_unwind_init): Set
6892         current_function_calls_unwind_init not
6893         current_function_has_nonlocal_label.
6894         * reload1.c (has_nonexceptional_receiver): New.
6895         (reload): Use it and current_function_calls_unwind_init to
6896         determine whether call-saved regs must be saved.
6897
6898 2007-05-20  Jan Hubicka  <jh@suse.cz>
6899
6900         * gengtype.c (adjust_field_rtx_def): Use NOTE_KIND instead of
6901         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
6902         * ddg.c (create_ddg): LIkewise.
6903         * final.c (final): Remove hunk moving line number notes around since
6904         they are no longer present at this stage.
6905         (final_scan_insn): Use NOTE_KIND instead of
6906         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
6907         (output_asm_label): Likewise.
6908         * reorg.c (dbr_schedule): Likewise.
6909         * haifa-sched.c (unlink_other_notes): Likewise.
6910         * mode-switching.c (optimize_mode_switching): Likewise.
6911         * graph.c (start_bb): Likewise.
6912         * rtl.def (NOTE): Update description.
6913         * jump.c (squeeze_notes): Delete.
6914         (mark_jump_label): Use NOTE_KIND instead of NOTE_LINE_NUMBER; use
6915         NOTE_INSN_BASIC_BLOCK_P when possible.
6916         * ifcvt.c (dead_or_predicable): Remove call of squeeze_notes.
6917         * dwarf2out.c (gen_label_die): Use NOTE_KIND instead of
6918         NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P when possible.
6919         (dwarf2out_var_location): Likewise.
6920         * cfgbuild.c (make_edges): Likewise.
6921         (find_basic_blocks_1): Likewise.
6922         * function.c (reorder_blocks_1): Likewise.
6923         (epilogue_done): Likewise.
6924         (reposition_prologue_and_epilogue_notes): Likewise.
6925         * print-rtl.c (print_rtx): Likewise; drop code for printing
6926         line number notes.
6927         (print_rtl): Likewise.
6928         (print_rtl_single): Likewise.
6929         * gcse.c (insert_insn_start_bb): Likewise.
6930         * alias.c (init_alias_analysis): Likewise.
6931         * calls.c (fixup_tail_calls): Likewise.
6932         * except.c (sjlj_emit_function_enter): Likewise.
6933         * emit-rtl.c (add_insn_after): Likeiwse.
6934         (emit_label_before): Likewise.
6935         (emit_label_after): Likewise.
6936         (emit_note_before, emit_note_after, emit_note): Update
6937         parameter to be enum insn_note; do not deal with source
6938         files.
6939         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps):
6940         Use NOTE_KIND instead of NOTE_LINE_NUMBER; use NOTE_INSN_BASIC_BLOCK_P
6941         when possible.
6942         (merge_blocks_move_successor_nojumps): Simplify now when
6943         we don't have BLOCK notes.
6944         (try_optimize_cfg): Likewise.
6945         * cfglayout.c (skip_insns_after_block): Likewise.
6946         (record_effective_endpoints): Likewise.
6947         (duplicate_insn_chain): Likewise.
6948         * varasm.c (output_constant_pool_1): Likewise.
6949         * sched-deps.c (sched_analyze): Likewise.
6950         * rtl.c (NOTE_INSN_MAX_isnt_negative_adjust_NOTE_INSN_BIAS):
6951         Exterminate.
6952         (note_insn_name): Simplify now when NOTE_INSN_BIAS is gone.
6953         * rtl.h (NOTE_SOURCE_LOCATION, NOTE_EXPANDED_LOCATION): Exterminate.
6954         (SET_INSN_DELETED): Simplify.
6955         (NOTE_LINE_NUMBER): Exterminate.
6956         (NOTE_LINE_KIND): New.
6957         (NOTE_INSN_BASIC_BLOCK_P): Update.
6958         (enum insn_note): Simplify.
6959         (GET_NOTE_INSN_NAME) Simplify.
6960         (emit_note_before, emit_note_after, emit_note): Update prototype.
6961         (squeeze_notes): Remove.
6962         * sched-int.h (NOTE_NOT_BB_P): Update.
6963         * resource.c (mark_target_live_regs): Update.
6964         * sched-rgn.c (debug_dependencies): Update.
6965         * sched-vis.c (print_insn): Update.
6966         * config/alpha/alpha.c (alpha_handle_trap_shadows): Update.
6967         * config/i386/i386.c (ix86_output_function_epilogue): Update.
6968         * config/sh/sh.c (sh_adjust_unroll_max): Function dead since gcc 4.0.0.
6969         (TARGET_ADJUST_UNROLL_MAX): Likewise.
6970         (split_branches): Update.
6971         (sh_optimize_target_register_callee_saved): Remove hunk dead since gcc
6972         4.0.0.
6973         (sh_adjust_unroll_max): Exterminate.
6974         * config/c4x/c4x.c (c4x_reorg): Use SET_INSN_DELETED.
6975         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Likewise.
6976         (m68hc11_reorg): Likewise.
6977         * config/ia64/ia64.c (emit_insn_group_barriers): Update.
6978         (emit_predicate_relation_info): Update.
6979         (process_for_unwind_directive): Update.
6980         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update.
6981         (output_call): Update.
6982         * config/pa/pa.c (output_lbranch): Update.
6983         (output_millicode_call): Update.
6984         (output_call): Update.
6985         (pa_combine_instructions): Update.
6986         * config/mips/mips.c (mips16_gp_pseudo_reg): Update.
6987         * config/bfin/bfin.c (gen_one_bundle): Update.
6988         * cfgrtl.c (can_delete_note_p): Update.
6989         (delete_insn): Update.
6990         (rtl_merge_blocks): Update.
6991         (commit_one_edge_insertion): Update.
6992         (rtl_verify_flow_info): Update.
6993         * stmt.c (expand_case): Do not call squeeze_notes.
6994
6995 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6996
6997         PR middle-end/7651
6998         PR c++/11856
6999         PR c/12963
7000         PR c/23587
7001         PR other/29694
7002         * c.opt (Wtype-limits): New.
7003         * doc/invoke.texi (Wtype-limits): Document it.
7004         (Wextra): Enabled by -Wextra.
7005         * c-opts.c (c_common_post_options): Enabled by -Wextra.
7006         * c-common.c (shorten_compare): Warn with Wtype-limits.
7007
7008 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
7009
7010         * config/i386/tmmintrin.h (_mm_alignr_epi32): Implement as always
7011         inlined function, not as a macro.
7012         (_mm_alignr_pi8): Ditto.
7013         * config/i386/ammintrin.h (_mm_extracti_si64): Ditto.
7014         (_mm_inserti_si64): Ditto.
7015         * config/i386/emmintrin.h (_mm_shuffle_pd): Ditto.
7016         (_mm_extract_epi16): Ditto.
7017         (_mm_insert_epi16): Ditto.
7018         (_mm_shufflehi_epi16): Ditto.
7019         (_mm_shufflelo_epi16): Ditto.
7020         (_mm_shuffle_epi32): Ditto.
7021         * config/i386/xmmintrin.h (_mm_set_ss): Use 0.0f for float constant.
7022         * config/386/mm3dnow.h: Add __attribute__((__always_inline__)) to
7023         all functions.
7024         (_m_from_float): Add __extension__ to conversion.  Use 0.0f for
7025         float constant.
7026         (_m_to_float): Use C89 compatible assignment.
7027
7028 2007-05-20  Martin Michlmayr  <tbm@cyrius.com>
7029
7030         PR target/32007
7031         * config/arm/lib1funcs.asm: Define __ARM_ARCH__ on v2/v3 machines.
7032
7033 2007-05-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7034
7035         PR middle-end/7651
7036         * doc/invoke.texi (Wreturn-type): Complete description.
7037         (Wextra): Delete item about return-type warning.
7038         * c-decl.c: Delete redundant Wextra warning.
7039
7040 2007-05-20  Uros Bizjak  <ubizjak@gmail.com>
7041
7042         PR target/31585
7043         * config/i386/pmmintrin.h: Do not include xmmintrin.h
7044         * config/i386/xmmintrin.h (_mm_extract_pi16): Implement as always
7045         inlined function, not as a macro.
7046         (_mm_prefetch): Ditto.
7047         (_m_pextrw): Ditto.
7048         (_mm_insert_pi16): Ditto.
7049         (_m_pinsrw): Ditto.
7050         (_mm_shuffle_pi16): Ditto.  Add const to __N argument.
7051         (_m_pshufw): Ditto. Add const to __N argument.
7052         (_mm_shufle_ps): Ditto.  Add const to __mask argument.
7053         * config/i386/emmintrin.h (_mm_slli_epi16): Add const to __B argument.
7054         (_mm_slli_epi32): Ditto.
7055         (_mm_srli_si128): Implement as always inlined function, not as a
7056         macro.  Add __inline to function declaration.
7057         (_mm_slli_si128): Ditto.
7058
7059 2007-05-19  Uros Bizjak  <ubizjak@gmail.com>
7060
7061         * config/i386/sfp-machine.h (FP_EX_INVALID, FP_EX_DENORM,
7062         FP_EXP_DIVZERO, FP_EX_OVERFLOW, FP_EX_UNDERFLOW, FP_EX_INEXACT):
7063         New constants.
7064         (struct fenv): New structure.
7065         (FP_HANDLE_EXCEPTIONS): New define.
7066         (FP_RND_NEAREST, FP_RND_ZERO, FP_RND_PINF, FP_RND_MINF): New constants.
7067         (_FP_DECL_EXP): New define.
7068         (FP_INIT_ROUNDMODE): New define.
7069         (FP_ROUNDMODE): New define.
7070
7071 2007-05-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7072
7073         * doc/invoke.texi (Warning Options): Add -Wconversion-sign.
7074         (Wconversion): Update description.
7075         (Wconversion-sign): New.
7076         * c.opt (Wconversion-sign): New.
7077         * c-opts.c (c_common_post_options): Uninitialized Wconversion-sign
7078         means disabled for C++. Otherwise, take the status of Wconversion.
7079         * c-common.c (conversion_warning): Warn with either Wconversion or
7080         Wconversion-sign.
7081         (warnings_for_convert_and_check): Conditions are already checked by
7082         conversion_warning.
7083         (convert_and_check): Don't check warnings if the conversion failed.
7084
7085 2007-05-19 Andy Hutchinson <HutchinsonAndy@netscape.net>
7086            Anatoly Sokolov <aesok@dol.ru>
7087
7088         * config/avr/avr-protos.h (expand_prologue, expand_epilogue,
7089         avr_epilogue_uses) : Add declaration.
7090         * config/avr/predicates.md (avr_sp_immediate_operand): New predicate.
7091         * config/avr/constraints.md (R): New constraint.
7092         config/avr/avr.md (SREG_ADDR, UNSPEC_SEI, UNSPEC_CLI,
7093         UNSPECV_PROLOGUE_SAVES, UNSPECV_EPILOGUE_RESTORES): New constants.
7094         (*pop1, *pop2, *pop3, *pop4, *pop5): Combine into ...
7095         (*addhi3_sp_R_pc2, *addhi3_sp_R_pc3): ... these patterns.
7096         (*movhi_sp, popqi, pophi, enable_interrupt, disable_interrupt,
7097         call_prologue_saves, epilogue_restores, return_from_epilogue,
7098         return_from_main_epilogue, return_from_interrupt_epilogue,
7099         return_from_naked_epilogue, prologue, epilogue): New patterns.
7100         (jump): Handle symbol reference.
7101         * config/avr/avr.c (out_adj_frame_ptr, out_set_stack_ptr,
7102         avr_output_function_prologue, avr_output_function_epilogue): Remove
7103         functions.
7104         (avr_init_machine_status, expand_prologue, expand_epilogue,
7105         avr_asm_function_end_prologue, avr_epilogue_uses,
7106         avr_asm_function_begin_epilogue): New functions.
7107         (prologue_size, epilogue_size, jump_tables_size): Remove global
7108         variables.
7109         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
7110         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
7111         (TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): Define.
7112         (avr_override_options): Initialise init_machine_status.
7113         (output_movhi): Handle all stack pointer loads.
7114         (out_movqi_r_mr, out_movqi_mr_r): Handle SREG_ADDR address.
7115         (avr_output_addr_vec_elt): Do not use variable jump_tables_size.
7116         * config/avr/avr.h (AVR_2_BYTE_PC, AVR_3_BYTE_PC): New.
7117         (EPILOGUE_USES) Redefine.
7118         (machine_function) Declare.
7119
7120 2007-05-19  Richard Sandiford  <richard@codesourcery.com>
7121
7122         * config/mips/mips.c (mips_offset_within_alignment_p): Tweak comment.
7123         Use a single return statement.
7124
7125 2007-05-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7126
7127         PR middle-end/30250
7128         * builtins.c (do_mpfr_lgamma_r): New.
7129         (fold_builtin_2): Handle builtin gamma_r/lgamma_r.
7130         * tree.h (CASE_FLT_FN_REENT): New.
7131
7132 2007-05-18  Geoffrey Keating  <geoffk@apple.com>
7133
7134         * dwarf2out.c (print_die): Use '%ld' not '%lu' to print a 'long'.
7135         (output_die): Use 'unsigned long' with %x.
7136         * sched-vis.c (print_value): Use 'unsigned HOST_WIDE_INT' and
7137         HOST_WIDE_INT_PRINT_HEX to print HOST_WIDE_INT.
7138         * tree-dump.c (dump_pointer): Use 'unsigned long' for %lx.
7139
7140         * unwind-dw2.c (uw_identify_context): Use the CFA, not the IP.
7141
7142 2007-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7143
7144         PR target/31989
7145         PR target/31681
7146         PR target/31666
7147         * config/i386/i386.c (init_cumulative_args): Set maybe_vaarg to
7148         true if function has no argument.
7149
7150 2007-05-18  DJ Delorie  <dj@redhat.com>
7151
7152         * config/mips/mips.c (mips_offset_within_alignment_p): New.
7153         (mips_symbolic_constant_p): Call it for TPREL and DTPREL symbols.
7154
7155 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
7156
7157         * longlong.h (__x86_64__): Add definitions for add_ssaaaa,
7158         sub_ddmmss, umul_ppmm, udiv_qrnnd, count_leading_zeros and
7159         count_trailing_zeros.
7160         (__i386__): Implement count_leading_zeros using __builtin_clz().
7161         Implement count_trailing_zeros usign __builtin_ctz().
7162
7163 2007-05-18  Richard Sandiford  <richard@codesourcery.com>
7164
7165         * config/i386/vxworks.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine.
7166
7167 2007-05-18  Uros Bizjak  <ubizjak@gmail.com>
7168
7169         PR middle-end/31344
7170         * expr.c (emit_move_change_mode): Change mode of push operands here.
7171
7172 2007-05-17  Ian Lance Taylor  <iant@google.com>
7173
7174         PR tree-optimization/31953
7175         * tree-vrp.c (set_value_range_to_value): Add equiv parameter.
7176         Change all callers.
7177         (set_value_range_to_null): Call set_value_range_to_value.
7178         (extract_range_from_comparison): Likewise.
7179
7180 2007-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7181
7182         * toplev.c (print_version): Output GMP/MPFR version info.
7183
7184         * builtins.c (CASE_MATHFN_REENT): New macro.
7185         (mathfn_built_in): Use it.
7186         * builtins.def (BUILT_IN_GAMMA_R, BUILT_IN_GAMMAF_R,
7187         BUILT_IN_GAMMAL_R, BUILT_IN_LGAMMA_R, BUILT_IN_LGAMMAF_R,
7188         BUILT_IN_LGAMMAL_R): New.
7189         * doc/extend.texi: Document new builtins.
7190
7191         PR middle-end/31796
7192         * builtins.c (do_mpfr_remquo): New.
7193         (fold_builtin_2): Handle BUILT_IN_DREM/BUILT_IN_REMAINDER.
7194         (fold_builtin_3): Handle BUILT_IN_REMQUO.
7195
7196         PR middle-end/30251
7197         * builtins.c (fold_builtin_1): Handle y0, y1.
7198         (fold_builtin_2): Handle yn.
7199
7200         PR middle-end/30251
7201         * builtins.c (do_mpfr_bessel_n): New.
7202         (fold_builtin_1): Handle BUILT_IN_J0 and BUILT_IN_J1.
7203         (fold_builtin_2): Handle BUILT_IN_JN.
7204
7205 2007-05-17  Danny Smith  <dannysmith@users.sourceforge.net>
7206
7207         PR target/31965
7208         * config/i386/mingw32.h (_INTEGRAL_MAX_BITS): Define builtin as
7209         TYPE_PRECISION (intmax_type_node).
7210
7211 2007-05-17  Steve Ellcey  <sje@cup.hp.com>
7212
7213         PR target/31850
7214         * reload.c (subst_reloads): Remove checking.
7215
7216 2007-05-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
7217
7218         PR rtl-optimization/31691
7219         * combine.c (simplify_set): Build a new src pattern instead of
7220         substituting its operands in the COMPARE case.
7221
7222 2007-05-17  Zdenek Dvorak  <dvorakz@suse.cz>
7223
7224         * tree-vrp.c (finalize_jump_threads): Do not care about dominance info.
7225         (execute_vrp): Preserve loops through jump threading.
7226         * tree-ssa-threadupdate.c (thread_single_edge,
7227         dbds_continue_enumeration_p, determine_bb_domination_status,
7228         thread_through_loop_header): New functions.
7229         (create_edge_and_update_destination_phis,
7230         create_edge_and_update_destination_phis): Set loops for the new blocks.
7231         (prune_undesirable_thread_requests): Removed.
7232         (redirect_edges): Do not pretend that redirect_edge_and_branch can
7233         create new blocks.
7234         (thread_block): Do not call prune_undesirable_thread_requests.
7235         Update loops.
7236         (mark_threaded_blocks): Select edges to thread here.
7237         (thread_through_all_blocks): Take may_peel_loop_headers argument.
7238         Thread edges through loop headers independently.
7239         * cfgloopmanip.c (create_preheader, mfb_keep_just): Export.
7240         * tree-pass.h (TODO_mark_first_instance): New.
7241         (first_pass_instance): Declare.
7242         * cfghooks.c (duplicate_block): Put the block to the original loop
7243         if copy is not specified.
7244         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Preserve loops through
7245         jump threading.  Pass may_peel_loop_headers to
7246         thread_through_all_blocks according to first_pass_instance.
7247         * cfgloop.h (create_preheader): Declare.
7248         * tree-flow.h (thread_through_all_blocks): Declaration changed.
7249         * basic-block.h (mfb_keep_just, mfb_kj_edge): Declare.
7250         * passes.c (first_pass_instance): New variable.
7251         (next_pass_1): Set TODO_mark_first_instance.
7252         (execute_todo): Set first_pass_instance.
7253
7254 2007-05-17  Uros Bizjak  <ubizjak@gmail.com>
7255
7256         PR tree-optimization/24659
7257         * optabs.h (enum optab_index): Add OTI_vec_unpacks_float_hi,
7258         OTI_vec_unpacks_float_lo, OTI_vec_unpacku_float_hi,
7259         OTI_vec_unpacku_float_lo, OTI_vec_pack_sfix_trunc and
7260         OTI_vec_pack_ufix_trunc.
7261         (vec_unpacks_float_hi_optab): Define new macro.
7262         (vec_unpacks_float_lo_optab): Ditto.
7263         (vec_unpacku_float_hi_optab): Ditto.
7264         (vec_unpacku_float_lo_optab): Ditto.
7265         (vec_pack_sfix_trunc_optab): Ditto.
7266         (vec_pack_ufix_trunc_optab): Ditto.
7267         * genopinit.c (optabs): Implement vec_unpack[s|u]_[hi|lo]_optab
7268         and vec_pack_[s|u]fix_trunc_optab using
7269         vec_unpack[s|u]_[hi\lo]_* and vec_pack_[u|s]fix_trunc_* patterns
7270         * tree-vectorizer.c (supportable_widening_operation): Handle
7271         FLOAT_EXPR and CONVERT_EXPR.  Update comment.
7272         (supportable_narrowing_operation): New function.
7273         * tree-vectorizer.h (supportable_narrowing_operation): Prototype.
7274         * tree-vect-transform.c (vectorizable_conversion): Handle
7275         (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
7276         (vect_gen_widened_results_half): Move before vectorizable_conversion.
7277         (vectorizable_type_demotion): Call supportable_narrowing_operation()
7278         to check for target support.
7279         * optabs.c (optab_for_tree_code) Return vec_unpack[s|u]_float_hi_optab
7280         for VEC_UNPACK_FLOAT_HI_EXPR, vec_unpack[s|u]_float_lo_optab
7281         for VEC_UNPACK_FLOAT_LO_EXPR and vec_pack_[u|s]fix_trunc_optab
7282         for VEC_PACK_FIX_TRUNC_EXPR.
7283         (expand_binop): Special case mode of the result for
7284         vec_pack_[u|s]fix_trunc_optab.
7285         (init_optabs): Initialize vec_unpack[s|u]_[hi|lo]_optab and
7286         vec_pack_[u|s]fix_trunc_optab.
7287
7288         * tree.def (VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR,
7289         VEC_PACK_FIX_TRUNC_EXPR): New tree codes.
7290         * tree-pretty-print.c (dump_generic_node): Handle
7291         VEC_UNPACK_FLOAT_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
7292         VEC_PACK_FIX_TRUNC_EXPR.
7293         (op_prio): Ditto.
7294         * expr.c (expand_expr_real_1): Ditto.
7295         * tree-inline.c (estimate_num_insns_1): Ditto.
7296         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7297
7298         * config/i386/sse.md (vec_unpacks_float_hi_v8hi): New expander.
7299         (vec_unpacks_float_lo_v8hi): Ditto.
7300         (vec_unpacku_float_hi_v8hi): Ditto.
7301         (vec_unpacku_float_lo_v8hi): Ditto.
7302         (vec_unpacks_float_hi_v4si): Ditto.
7303         (vec_unpacks_float_lo_v4si): Ditto.
7304         (vec_pack_sfix_trunc_v2df): Ditto.
7305
7306         * doc/c-tree.texi (Expression trees) [VEC_UNPACK_FLOAT_HI_EXPR]:
7307         Document.
7308         [VEC_UNPACK_FLOAT_LO_EXPR]: Ditto.
7309         [VEC_PACK_FIX_TRUNC_EXPR]: Ditto.
7310         * doc/md.texi (Standard Names) [vec_pack_sfix_trunc]: Document.
7311         [vec_pack_ufix_trunc]: Ditto.
7312         [vec_unpacks_float_hi]: Ditto.
7313         [vec_unpacks_float_lo]: Ditto.
7314         [vec_unpacku_float_hi]: Ditto.
7315         [vec_unpacku_float_lo]: Ditto.
7316
7317 2007-05-16  Uros Bizjak  <ubizjak@gmail.com>
7318
7319         * soft-fp/README: Update for new files.
7320         * soft-fp/floattisf.c: New file.
7321         * soft-fp/floattidf.c: New file.
7322         * soft-fp/floattitf.c: New file.
7323         * soft-fp/floatuntisf.c: New file.
7324         * soft-fp/floatuntidf.c: New file.
7325         * soft-fp/floatuntitf.c: New file.
7326         * soft-fp/fixsfti.c: New file.
7327         * soft-fp/fixdfti.c: New file.
7328         * soft-fp/fixtfti.c: New file.
7329         * soft-fp/fixunssfti.c: New file.
7330         * soft-fp/fixunsdfti.c: New file.
7331         * soft-fp/fixunstfti.c: New file.
7332         * soft-fp/extendxftf.c: New file.
7333         * soft-fp/trunctfxf.c: New file.
7334
7335         * libgcc-std.ver (__extendxftf2): Added to GCC_4.3.0 section.
7336         (__trunctfxf2): Ditto.
7337
7338         * config/i386/libgcc-x86_64-glibc.ver (__addtf3, __divtf3, __eqtf2,
7339         __extenddftf2, __extendsftf2, __fixtfdi, __fixtfsi, __fixtfti,
7340         __fixunstfdi, __fixunstfsi, __fixunstfti, __floatditf, __floatsitf,
7341         __floattitf, __floatunditf, __floatunsitf, __floatuntitf, __getf2,
7342         __letf2, __multf3, __negtf2, __subtf3, __trunctfdf2, __trunctfsf2,
7343         __unordtf2): Exclude and add to GCC_4.3.0 section for x86_64 targets.
7344
7345         * config/i386/t-fprules-softfp64: New file.
7346         * config/i386/sfp-machine.h: New file.
7347         * config.gcc (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu,
7348         x86_64-*-knetbsd*-gnu): Add i386/t-fprules-softfp64
7349         and soft-fp/t-softfp to tmake_file.
7350         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
7351         i[34567]86-*-knetbsd*-gnu): Ditto for --enable-targets=all.
7352
7353         * config/i386/t-linux64 (softfp_wrap_start): New.
7354         (softfp_wrap_end): New.
7355         * config/i386/i386.c (ix86_scalar_mode_supported): TFmode is
7356         supported for TARGET_64BIT.
7357
7358 2007-05-16  Rafael Avila de Espindola  <espindola@google.com>
7359
7360         * c-common.c (c_common_signed_or_unsigned_type): Emulate
7361         c_common_unsigned_type behavior.
7362
7363 2007-05-16  Paolo Bonzini  <bonzini@gnu.org>
7364
7365         * config/i386/i386.c (legitimize_tls_address): Mark __tls_get_addr
7366         calls as pure.
7367
7368 2007-05-16  Eric Christopher  <echristo@apple.com>
7369
7370         * config/rs6000/rs6000.c (rs6000_emit_prologue): Move altivec register
7371         saving after stack push. Set sp_offset whenever we push.
7372         (rs6000_emit_epilogue): Move altivec register restore before
7373         stack push.
7374
7375 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
7376
7377         * configure.ac: Allow sysroots to be relocated under $prefix as
7378         well as $exec_prefix.
7379         * configure: Regenerate.
7380
7381 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
7382
7383         Revert:
7384
7385         2007-05-12  Richard Sandiford  <richard@codesourcery.com>
7386
7387         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
7388         (gcc_tooldir): Likewise.
7389         * configure: Regenerate.
7390         * Makefile.in (libsubdir_to_prefix): New variable, based on the
7391         old configure.ac gcc_tooldir setting.
7392         (prefix_to_exec_prefix): New variable.
7393         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
7394         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
7395
7396 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
7397
7398         * c-typeck.c (build_binary_op): Return early for error.
7399
7400 2007-05-15  Zdenek Dvorak  <dvorakz@suse.cz>
7401
7402         * tree-ssa-loop-niter.c (record_estimate): Use GGC_NEW to allocate
7403         struct nb_iter_bound.
7404         (free_numbers_of_iterations_estimates_loop): Use ggc_free.
7405         * gengtype.c (open_base_files): Add cfhloop.h to the list of includes.
7406         * cfgloopmanip.c (place_new_loop): Vector larray is gc-allocated.
7407         * tree-scalar-evolution.c: Include gt-tree-scalar-evolution.h.
7408         (struct scev_info_str, scalar_evolution_info): Add GTY markers.
7409         (new_scev_info_str): Use GGC_NEW to allocate struct scev_info_str.
7410         (del_scev_info): Use ggc_free.
7411         (scev_initialize): Allocate scalar_evolution_info in gc memory.
7412         * loop-init.c: Include ggc.h.
7413         (loop_optimizer_init): Use GGC_CNEW to allocate struct loops.
7414         (loop_optimizer_finalize): Use ggc_free.
7415         * tree-ssa-loop.c (pass_tree_unswitch, pass_vectorize,
7416         pass_linear_transfom, pass_empty_loop, pass_complete_unroll,
7417         pass_iv_optimize): Add TODO_ggc_collect.
7418         * function.h (struct function): Remove skip marker from
7419         x_current_loops.
7420         * cfgloop.c: Include ggc.h.
7421         (flow_loops_free, flow_loop_free): Free the loop descriptions in gc
7422         memory.
7423         (establish_preds): Vector superloops is gc allocated.
7424         (alloc_loop): Allocate loop using GGC_CNEW.  Allocate head of
7425         loop->exits list.
7426         (flow_loops_find): Vector larray is gc allocated.
7427         (loop_exit_free): Use ggc_free.
7428         (rescan_loop_exit): Use GGC_NEW to allocate struct loop_exit.  Reflect
7429         that head of exits list is now not a part of struct loop.
7430         (record_loop_exits): Allocate exits table in gc memory.
7431         (get_loop_exit_edges, verify_loop_structure, single_exit): Reflect
7432         that head of exits list is now not a part of struct loop.
7433         * cfgloop.h (struct lpt_decision, struct nb_iter_bound,
7434         struct loop_exit): Add GTY marker.
7435         (struct loop): Add GTY marker.  Make superloops vector gc allocated.
7436         Add skip marker to aux field.  Make head of exits list a separate
7437         object.
7438         (struct loops): Add GTY marker.  Make larray vector gc allocated.
7439         Add param marker to exits table.
7440         (get_loops): Type changed.
7441         * Makefile.in (tree-scalar-evolution.o): Add
7442         gt-tree-scalar-evolution.h dependency.
7443         (cfgloop.o, loop-init.o): Add ggc.h dependency.
7444         (GTFILES): Add cfgloop.h and tree-scalar-evolution.c.
7445         * basic-block.h (struct basic_block_def): Remove skip marker from
7446         loop_father field.
7447
7448 2007-05-14  Uros Bizjak  <ubizjak@gmail.com>
7449
7450         * builtins.c (expand_builtin_mathfn): Use EXPAND_NORMAL instead
7451         of 0 in the call to expand_expr().
7452         (expand_builtin_mathfn_3): Ditto.
7453         (expand_builtin_interclass_mathfn): Ditto.
7454         (expand_builtin_cexpi): Ditto.
7455         (expand_builtin_int_roundingfn): Ditto.
7456         (expand_builtin_int_roundingfn_2): Ditto.
7457         (expand_builtin_pow): Ditto.
7458         (expand_builtin_powi): Ditto.
7459         (expand_builtin_bswap): Ditto.
7460         (expand_builtin_unop): Ditto.
7461         (expand_builtin_fabs): Ditto.
7462         (get_builtin_sync_mem): Use NULL_RTX instead of NULL in
7463         the call to expand_expr().
7464         (expand_builtin_sync_operation): Ditto.
7465         (expand_builtin_compare_and_swap): Ditto.
7466         (expand_builtin_lock_test_and_set): Ditto.
7467         * except.c (expand_builtin_eh_return_data_regno): Use EXPAND_NORMAL
7468         instead of 0 in the call to expand_expr().
7469         (expand_builtin_extract_return_addr): Ditto.
7470         (expand_builtin_eh_return): Ditto.
7471         (expand_eh_return): Ditto.
7472         * explow.c (expr_size): Ditto.
7473         * expr.c (optimize_bitfield_assignment_op): Ditto.
7474         (expand_assignement): Ditto.
7475         (store_expr): Ditto.
7476         (store_field): Ditto.
7477         (expand_expr_addr_expr_1): Use NULL_RTX instead of NULL in
7478         the call to expand_expr().
7479         (expand_expr_real_1) [COMPLEX_CST]: Use EXPAND_NORMAL instead of 0
7480         in the call to expand_expr().
7481         [CONSTRUCTOR, PLUS_EXPR, MINUS_EXPR, NEGATE_EXPR, ABS_EXPR,
7482         BIT_NOT_EXPR, LSHIFT_EXPR, LT_EXPR, TRUTH_NOT_EXPR]: Ditto.
7483         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO]: Use expand_normal() instead
7484         of expand_expr().
7485         * optabs.c (expand_vec_shift_expr): Ditto.
7486         (expand_vec_cond_expr): Ditto.
7487         (vector_compare_rtx): Use EXPAND_STACK_PARM instead of 1 in the
7488         call to expand_expr().
7489         * stmt.c (expand_return): Use EXPAND_NORMAL instead of 0
7490         in the call to expand_expr().
7491
7492 2007-05-14  Dave Korn  <dave.korn@artimi.com>
7493
7494         * genautomata.c (gen_regexp_el):  Allocate correct size for regexp.
7495
7496 2007-05-14  Rafael Avila de Espindola  <espindola@google.com>
7497
7498         * c-common.c (warnings_for_convert_and_check): Use unsigned_type_for
7499         instead of c_common_unsigned_type.
7500         (c_common_unsigned_type): Remove.
7501         (shorten_compare): Use c_common_signed_or_unsigned_type instead of
7502         c_common_unsigned_type.
7503         (c_common_nodes_and_builtins): Use unsigned_type_for instead of
7504         c_common_unsigned_type.
7505         * c-common.h (c_common_unsigned_type): Remove.
7506         * c-decl.c (grokdeclarator): Use unsigned_type_for instead of
7507         c_common_unsigned_type.
7508         * c-format.c (check_format_types): Use unsigned_type_for instead of
7509         c_common_unsigned_type.
7510         * c-objc-common.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
7511         * c-typeck.c (convert_for_assignment): Use unsigned_type_for instead
7512         of c_common_unsigned_type.
7513         * convert.c (convert_to_integer): Use unsigned_type_for instead of
7514         lang_hooks.types.unsigned_type.
7515         * expmed.c (make_tree): Use unsigned_type_for instead of
7516         lang_hooks.types.unsigned_type.
7517         * fold-const.c (fold_negate_expr): Use unsigned_type_for instead of
7518         lang_hooks.types.unsigned_type.
7519         (build_range_check): Likewise.
7520         (fold_unary): Likewise.
7521         (fold_binary): Likewise.
7522         (fold_ternary): Likewise.
7523         * langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Remove.
7524         * langhooks.h (lang_hooks_for_types): Remove unsigned_type.
7525         * tree.c (get_unsigned_type): New.
7526         (unsigned_type_for): Use get_unsigned_type instead of
7527         lang_hooks.types.unsigned_type.
7528
7529 2007-05-14  Kazu Hirata  <kazu@codesourcery.com>
7530
7531         * config/m68k/m68k-protos.h: Rename m68k_interrupt_function_p
7532         to m68k_get_function_kind.  Update its prototype.
7533         * config/m68k/m68k.c (m68k_attribute_table): Add an entry for
7534         interrupt_thread.
7535         (m68k_interrupt_function_p): Return enum m68k_function_type
7536         instead of bool.  Rename to m68k_get_function_kind.
7537         (m68k_handle_fndecl_attribute): Reject interrupt_thread if the
7538         target is not fido.
7539         (m68k_compute_frame_layout): Don't mark any register for save
7540         if an interrupt_thread attribute is specified.
7541         (m68k_hard_regno_rename_ok): Update a use of
7542         m68k_interrupt_function_p.
7543         * config/m68k/m68k.h (EPILOGUE_USES): Update a use of
7544         m68k_interrupt_function_p.
7545         (m68k_function_type): New.
7546         * config/m68k/m68k.md (*return): Output a 'sleep' instruction
7547         for a function with an interrupt_thread attribute.
7548         * doc/extend.texi: Document the interrupt_thread attribute.
7549
7550 2007-05-13  Daniel Berlin  <dberlin@dberlin.org>
7551
7552         Fix PR tree-optimization/31911
7553         * tree-ssa-pre.c (phi_translate): Make sure to cache results even
7554         if they didn't change the expression.
7555
7556 2007-05-13  Zdenek Dvorak  <dvorakz@suse.cz>
7557
7558         * tree-scalar-evolution.c (resolve_mixers): Exported.
7559         * tree-scalar-evolution.h (resolve_mixers): Declare.
7560         * tree-data-ref.c (object_analysis, ptr_decl_may_alias_p,
7561         ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
7562         record_record_differ_p, record_array_differ_p, array_ptr_differ_p,
7563         base_object_differ_p, base_addr_differ_p, analyze_array_indexes,
7564         init_array_ref, init_pointer_ref, analyze_indirect_ref,
7565         strip_conversion, analyze_offset_expr, address_analysis,
7566         object_analysis, analyze_offset): Removed.
7567         (dr_analyze_innermost, dr_analyze_indices, dr_analyze_alias,
7568         split_constant_offset, canonicalize_base_object_address,
7569         object_address_invariant_in_loop_p, disjoint_objects_p,
7570         dr_may_alias_p, dr_address_invariant_p): New functions.
7571         (create_data_ref): Use dr_analyze_innermost, dr_analyze_indices
7572         and dr_analyze_alias.
7573         (initialize_data_dependence_relation): Use dr_may_alias_p
7574         and object_address_invariant_in_loop_p.
7575         (compute_self_dependence): Handle the case when
7576         DDR_ARE_DEPENDENT (ddr) is chrec_dont_know.
7577         (find_data_references_in_stmt): Restrict the analysis of data
7578         references to the given loop nest.
7579         (find_data_references_in_loop): Made static.  Pass loop nest to
7580         find_data_references_in_stmt.
7581         (compute_data_dependences_for_loop): Use DR_VOPS.
7582         (free_data_ref): Free DR_VOPS.
7583         * tree-data-ref.h (struct first_location_in_loop): Replaced by ...
7584         (struct innermost_loop_behavior): ... new.
7585         (struct base_object_info): Replaced by ...
7586         (struct indices): ... new.
7587         (struct dr_alias): New.
7588         (enum data_ref_type): Removed.
7589         (struct data_reference): Consist of struct innermost_loop_behavior,
7590         struct indices and struct dr_alias.
7591         (DR_SET_ACCESS_FNS, DR_FREE_ACCESS_FNS): Removed.
7592         (DR_MEMTAG): Renamed to ...
7593         (DR_SYMBOL_TAG): ... this.
7594         (find_data_references_in_loop): Declaration removed.
7595         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use DR_INIT
7596         instead of DR_OFFSET_MISALIGNMENT.  DR_ALIGNED_TO is never NULL.
7597         (vect_analyze_data_refs): Use DR_SYMBOL_TAG instead of DR_MEMTAG.
7598         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
7599
7600 2007-05-13  Revital Eres  <eres@il.ibm.com>
7601
7602         * tree-ssa-dse.c (get_use_of_stmt_lhs): New function
7603         which walks virtual def-use chains to find redundant stores.
7604         (dse_optimize_stmt): Call it.
7605
7606 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
7607
7608         * gcse.c (gcse_main): Do jump bypassing in CPROP2.
7609         * passes.c (init_optimization_passes): Move pass_jump_bypass
7610         after loop2.
7611
7612         * basic-block.h (bb_has_eh_pred): Fix style issue.
7613
7614 2007-05-12  Steven Bosscher  <steven@gcc.gnu.org>
7615
7616         PR rtl-optimization/31848
7617         * loop-invariant.c (move_invariant_reg): If we move an insn
7618         with a REG_EQUAL note, and that insn is not always executed,
7619         remove the REG_EQUAL note.
7620
7621 2007-05-12  Richard Guenther  <rguenther@suse.de>
7622
7623         PR tree-optimization/31797
7624         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Do not
7625         propagate into a stmt that has volatile ops.
7626
7627 2007-05-12  Richard Sandiford  <richard@codesourcery.com>
7628
7629         * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
7630         (gcc_tooldir): Likewise.
7631         * configure: Regenerate.
7632         * Makefile.in (libsubdir_to_prefix): New variable, based on the
7633         old configure.ac gcc_tooldir setting.
7634         (prefix_to_exec_prefix): New variable.
7635         (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
7636         rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
7637
7638 2007-05-11  Silvius Rus  <rus@google.com>
7639
7640         * Makefile.in (OBJS-common): Add tree-ssa-alias-warnings.o.
7641         * c-common.c (strict_aliasing_warning): Modify -Wstrict-aliasing logic.
7642         * c-common.h (strict_aliasing_warning): Change return type.
7643         * c-opts.c (c_common_handle_option): Add call to set_Wstrict_aliasing.
7644         * c-typeck.c (build_indirect_ref): Add call to strict_aliasing_warning.
7645         (build_c_cast): Condition call to strict_aliasing_warning.
7646         * doc/invoke.texi: Update description of -Wstrict-aliasing[=n].
7647         * flags.h (set_Wstrict_aliasing): Declare.
7648         * opts.c (set_Wstrict_alising): Define, add call to.
7649         * tree-flow.h (strict_aliasing_warning_backend): Declare.
7650         * tree-ssa-alias-warnings.c: New file.
7651         * tree-ssa-alias.c (compute_may_aliases): Add call to
7652         strict_aliasing_warning_backend.
7653
7654 2007-05-11  Zdenek Dvorak  <dvorakz@suse.cz>
7655
7656         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
7657         Use loop_depth and loop_outer accessor functions.
7658         * tree-ssa-loop-im.c (outermost_invariant_loop, set_level,
7659         determine_invariantness_stmt, move_computations_stmt): Ditto.
7660         * cfgloopmanip.c (fix_bb_placement, fix_loop_placement, remove_path,
7661         add_loop, loopify, unloop, fix_loop_structure): Ditto.
7662         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Ditto.
7663         * tree-scalar-evolution.c (interpret_loop_phi,
7664         compute_scalar_evolution_in_loop, analyze_scalar_evolution_in_loop,
7665         instantiate_parameters_1, scev_const_prop): Ditto.
7666         * cfghooks.c (make_forwarder_block): Ditto.
7667         * cfgloopanal.c (mark_irreducible_loops, mark_loop_exit_edges): Ditto.
7668         * modulo-sched.c (loop_canon_p): Ditto.
7669         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg,
7670         slpeel_can_duplicate_loop_p): Ditto.
7671         * lambda-code.c (invariant_in_loop_and_outer_loops): Ditto.
7672         * tree-cfg.c (tree_duplicate_sese_region): Ditto.
7673         * cfgloop.c (flow_loop_dump, flow_loop_nodes_find, rescan_loop_exit,
7674         cancel_loop, verify_loop_structure): Ditto.
7675         (flow_loop_nested_p, superloop_at_depth, flow_loop_free,
7676         add_bb_to_loop, remove_bb_from_loops, find_common_loop): Use the
7677         superloops vector instead of "pred" array.
7678         (establish_preds): Take father loop as an argument.  Initialize the
7679         superloops vector.
7680         (flow_loop_tree_node_add): Pass father loop to establish_preds.
7681         Do not initialize loop->outer.
7682         (flow_loop_tree_node_remove): Truncate the superloops vector.
7683         * cfgloop.h (struct loop): Removed field "outer", fields "depth" and
7684         "pred" merged to "superloops" vector.
7685         (loop_depth, loop_outer): New.
7686         (fel_init): Use loop_outer.
7687
7688 2007-05-11  Jan Hubicka  <jh@suse.cz>
7689
7690         * cgraphunit.c: Include gt-cgraphunit.h
7691         (static_ctors, static_dtors): New static vars.
7692         (record_cdtor_fn, build_cdtor, cgraph_build_cdtor_fns): New functions,
7693         based on implementation in c-common.c
7694         (cgraph_finalize_function): Call record_cdtor_fn.
7695         (cgraph_optimize): Call cgraph_build_cdtor_fns.
7696         * decl.c (finish_function): Do not call c_record_cdtor_fn.
7697         (c_write_global_declarations): Do not call c_build_cdtor_fns.
7698         * c-common.c (static_ctors, static_dtors, c_record_cdtor_fn,
7699         build_cdtor, c_build_cdtor_fns): Remove.
7700         * c-common.h (static_ctors, static_dtors, c_record_cdtor_fn,
7701         c_build_cdtor_fns): Remove prototype.
7702
7703 2007-05-11  Paolo Carlini  <pcarlini@suse.de>
7704
7705         PR other/31852
7706         * builtin-types.def: Add BT_FN_PTR_CONST_PTR_INT_SIZE.
7707         * builtins.def: Add BUILT_IN_MEMCHR, use the latter.
7708         * builtins.c (fold_builtin_memchr): New.
7709         (expand_builtin_memchr): Call the latter.
7710         (expand_builtin, fold_builtin_3): Deal with BUILT_IN_MEMCHR.
7711         * doc/extend.texi ([Other built-in functions provided by GCC]):
7712         Document memchr.
7713
7714 2007-05-11  Andreas Krebbel  <krebbel1@de.ibm.com>
7715
7716         * config/s390/s390.md (GPR0_REGNUM, FPR0_REGNUM, FPR2_REGNUM,
7717         PFPO_CONVERT, PFPO_OP_TYPE_SF, PFPO_OP_TYPE_DF, PFPO_OP_TYPE_TF,
7718         PFPO_OP_TYPE_SD, PFPO_OP_TYPE_DD, PFPO_OP_TYPE_TD, PFPO_OP0_TYPE_SHIFT,
7719         PFPO_OP1_TYPE_SHIFT): Constants added.
7720         (DFP_ALL): Mode macro defined.
7721         ("*trunc<BFP:mode><DFP_ALL:mode>2", "*trunc<DFP_ALL:mode><BFP:mode>2",
7722         "*extend<BFP:mode><DFP_ALL:mode>2", "*extend<DFP_ALL:mode><BFP:mode>2"):
7723         Insn definitions added.
7724         ("trunc<BFP:mode><DFP_ALL:mode>2", "trunc<DFP_ALL:mode><BFP:mode>2",
7725         "extend<BFP:mode><DFP_ALL:mode>2", "extend<DFP_ALL:mode><BFP:mode>2"):
7726         Expanders added.
7727
7728 2007-05-10  Zdenek Dvorak  <dvorakz@suse.cz>
7729
7730         PR tree-optimization/31885
7731         * tree-chrec.c (chrec_contains_undetermined): Do not consider
7732         NULL_TREE to be undetermined.
7733         (automatically_generated_chrec_p): Return false for NULL.
7734
7735 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
7736
7737         * config/bfin/bfin.h (MOVE_RATIO): Define.
7738
7739 2007-05-10  Richard Sandiford  <richard@codesourcery.com>
7740
7741         * config.gcc (sparc-wrs-vxworks): New target.
7742         * config/sparc/vxworks.h, config/sparc/t-vxworks: New files.
7743         * config/sparc/sparc-protos.h (sparc_emit_call_insn): Declare.
7744         * config/sparc/sparc.h: Include vxworks-dummy.h.
7745         (PRINT_OPERAND_ADDRESS): Extend SYMBOL_REF handling to
7746         include LABEL_REFs too.
7747         * config/sparc/sparc.c (sparc_expand_move): Don't assume that
7748         _GLOBAL_OFFSET_TABLE_ - label_ref is a link-time constant on
7749         VxWorks.
7750         (legitimize_pic_address): Handle LABEL_REFs like SYMBOL_REFs
7751         on VxWorks.
7752         (load_pic_register): Use gen_vxworks_load_got for VxWorks.
7753         (sparc_emit_call_insn): New function.
7754         (sparc_function_ok_for_sibcall): Restrict sibcalls to locally-binding
7755         functions when generating VxWorks PIC.
7756         * config/sparc/sparc.md (vxworks_load_got): New pattern.
7757         (call, call_value): Use sparc_emit_call_insn instead of
7758         emit_call_insn.
7759
7760 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
7761
7762         * config/xtensa/xtensa.c (xtensa_output_literal): Don't use #if.
7763
7764 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
7765
7766         * config/xtensa/xtensa.c (xtensa_output_literal): Mask out high bits
7767         for floating-point values if HOST_BITS_PER_LONG > 32.  Use
7768         split_double instead of operand_subword.
7769
7770 2007-05-08  Bernd Schmidt  <bernd.schmidt@analog.com>
7771
7772         * config/bfin/bfin.h (LOCAL_ALIGNMENT): Define.
7773         * config/bfin/bfin.c (bfin_local_alignment): New function.
7774         * config/bfin/bfin-protos.h (bfin_local_alignment): Declare it.
7775
7776 2007-05-08  Chao-ying Fu  <fu@mips.com>
7777
7778         * doc/md.texi (msub@var{m}@var{n}4, usub@var{m}@var{n}4): Document.
7779         * optabs.h (OTI_smsub_widen, OTI_umsub_widen): New optab_indexes.
7780         (smsub_widen_optab, umsub_widen_optab): Define.
7781         * optabs.c (init_optabs): Initialize smsub_widen_optab and
7782         umsub_widen_optab.
7783         * genopinit.c (optabs): Fill in smsub_widen_optab and
7784         umsub_widen_optab.
7785         * expr.c (expand_expr_real_1): Try to use smsub_widen_optab
7786         and umsub_widen_optab to implement multiply-subtract sequences.
7787         * config/mips/mips.md (*msac<u>_di): Rename to...
7788         (<u>msubsidi4): ...this.  Extend condition to include
7789         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
7790         of operand 0 to "ka" and use the three-operand form of msub<u>
7791         for TARGET_DSPR2.
7792         * config/mips/mips-dspr2.md (mips_msub, mips_msubu): Convert
7793         to define_expands.
7794
7795 2007-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7796
7797         PR rtl-optimization/28011
7798         * reload.c (push_reload): Set dont_share if IN appears in OUT
7799         also when IN is a PLUS rtx.
7800         (reg_overlap_mentioned_for_reload_p): Return true if X and IN
7801         are same PLUS rtx.
7802
7803 2007-05-08  Kazu Hirata  <kazu@codesourcery.com>
7804
7805         * emit-rtl.c (unshare_all_rtl_1): Don't copy DECL_RTL.  Don't
7806         call unshare_all_decls.
7807         (unshare_all_rtl): Adjust the call to unshare_all_rtl_1.
7808         (unshare_all_decls): Remove.
7809
7810 2007-05-08  Simon Martin  <simartin@users.sourceforge.net>
7811
7812         PR 31847
7813         * tree-dump.c (dump_options): Don't use TDF_DIAGNOSTIC in "*-all" tree
7814         dumps.
7815
7816 2007-05-08  Sandra Loosemore  <sandra@codesourcery.com>
7817             Nigel Stephens  <nigel@mips.com>
7818
7819         * config/mips/mips.h (MAX_FPRS_PER_FMT): Renamed from FP_INC.
7820         Update comments and all uses.
7821         (MIN_FPRS_PER_FMT): Define.
7822         * config/mips/mips.c (function_arg): Fix to correctly handle
7823         the -mips32r2 -mfp64 -mabi=32 case.
7824         (override_options): Enable use of odd-numbered registers for
7825         SFmode values on MIPS32.
7826         (mips_save_reg_p): Save whole floating-point register pair if
7827         either half is used.
7828         (compute_frame_size): Fix comment.
7829
7830 2007-05-08  Jie Zhang  <jie.zhang@analog.com>
7831
7832         * config/bfin/bfin-protos.h (bfin_expand_epilogue): Add a third
7833         argument of type bool.
7834         * config/bfin/bfin.c (add_to_reg): Add epilogue_p as a fourth
7835         argument. Safely select temporary P register according to it.
7836         (do_link): Change call site of add_to_reg accordingly.
7837         (do_unlink): Add epilogue_p as a fourth argument and pass it
7838         to add_to_reg.
7839         (expand_interrupt_handler_epilogue): Change call of do_unlink
7840         accordingly.
7841         (bfin_expand_prologue): Add a third argument sibcall_p.
7842         * config/bfin/bfin.md (epilogue): Change call of
7843         bfin_expand_epilogue accordingly.
7844         (sibcall_epilogue): Likewise.
7845         (eh_return_internal): Likewise.
7846
7847         * config/bfin/bfin-protos.h (enum bfin_cpu): Add
7848         BFIN_CPU_BF534, BFIN_CPU_BF536 and BFIN_CPU_BF561.
7849         * config/bfin/bfin.c (bfin_handle_option): Handle
7850         -mcpu=bf534, -mcpu=bf536 and -mcpu=bf561.
7851         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS):
7852         Support bf534, bf536 and bf561.
7853         * doc/invoke.texi (Blackfin Options): Document -mcpu and -msim.
7854
7855 2007-05-08  Uros Bizjak  <ubizjak@gmail.com>
7856
7857         PR target/31854
7858         * config/i386/i386.c (ix86_function_regparm): Process local
7859         functions only when TREE_CODE (decl) equals FUNCTION_DECL.
7860
7861 2007-05-07  Mike Stump  <mrs@apple.com>
7862
7863         * doc/invoke.texi (Warning Options): Document that -Wempty-body
7864         also checks for and while statements in C++.
7865
7866 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
7867
7868         * gcc.c (at_file_supplied): New variable.
7869         (main): Set it if we expanded argv.
7870         (do_spec_1): Pass an @-file to the linker if we were called with
7871         an @-file argument and HAVE_GNU_LD.
7872         * collect2.c (at_file_supplied): New variable.
7873         (response_file): New variable.
7874         (collect_exit): Unlink response_file if necessary.
7875         (handler): Likewise.
7876         (do_wait): Likewise.
7877         (main): Set at_file_supplied if we expanded argv.
7878         (collect_execute): Pass an @-file to subprocesses if we were called
7879         with an @-file argument.
7880         * configure.ac: Add define for HAVE_GNU_LD.
7881         * configure: Regenerate.
7882         * config.in: Regenerate.
7883
7884 2007-05-07  Naveen.H.S  <naveen.hs@kpitcummins.com>
7885
7886         * config/m32c/muldiv.md (mulhisi3_c): Limit the mode of the 2nd
7887         operand to HI mode.
7888         (mulsi3): New.
7889         (divsi3): New.
7890         (udivsi3): New.
7891
7892 2007-05-07  Jayant Sonar  <jayants@kpitcummins.com>
7893
7894         * config/m32c/m32c.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
7895         (TARGET_ENCODE_SECTION_INFO): Re-define.
7896         (m32c_encode_section_info): New
7897         (function_vector_handler): New
7898         (current_function_special_page_vector): New
7899         (m32c_special_page_vector_p): New.
7900         * config/m32c/m32c-protos.h (m32c_special_page_vector_p):
7901         Prototype.
7902         * config/m32c/jump.md: Added instruction JSRS for functions
7903         with attribute "function_vector".
7904         * doc/extend.texi (function_vector): Added description
7905         for M16C, M32C targets.
7906
7907 2007-05-07  DJ Delorie  <dj@redhat.com>
7908
7909         PR 31794
7910         * config/m32c/shift.md (ashlpsi3_i, ashrpsi3_i, ashlpsi3,
7911         ashrpsi3, lshrpsi3): Update shift count constraint.
7912
7913 2007-05-07  Danny Smith  <dannysmith@users.sourceforge.net>
7914             Nathan Froyd  <froydnj@codesourcery.com>
7915
7916         PR 22133
7917         * c-incpath.c (add_path): Strip trailing path separators.
7918
7919 2007-05-07  Eric Botcazou  <ebotcazou@adacore.com>
7920
7921         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Reset cfg_altered.
7922         Free dominance info before purging EH edges.
7923         (eliminate_degenerate_phis): Likewise.
7924         (propagate_rhs_into_lhs): Set cfg_altered to true instead of 1.
7925
7926 2007-05-07  Jan Hubicka  <jh@suse.cz>
7927
7928         * gimplify.c (gimplify_expr): Do not crash when folding
7929         (void *)(int)&a + 4.
7930
7931 2007-05-07  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7932
7933         PR driver/31694
7934         * c-opts.c (lang_fortran): Make it non static.
7935         * c-common.h (lang_fortran): New prototype.
7936         * c-cppbuiltin.c (c_cpp_builtins): Create a __GFORTRAN__ if the
7937         -lang-fortran option was passed by the driver.
7938
7939 2007-05-06  Eric Botcazou  <ebotcazou@adacore.com>
7940
7941         * timevar.c (timevar_print): Test ENABLE_ASSERT_CHECKING instead
7942         of ASSERT_CHECKING.  Tweak message.
7943
7944 2007-05-06  Revital Eres  <eres@il.ibm.com>
7945
7946         PR 30957
7947         * loop-unroll.c (insert_var_expansion_initialization):
7948         Initialize the expansions with -zero instead of +zero.
7949
7950 2007-05-05  Aurelien Jarno  <aurelien@aurel32.net>
7951
7952         * config/pa/pa.md: Split tgd_load, tld_load and tie_load
7953         into pic and non-pic versions. Mark r19 as used for
7954         tgd_load_pic, tld_load_pic and tie_load_pic. Mark r27 as used
7955         for tgd_load, tld_load and tie_load .
7956         * config/pa/pa.c (legitimize_tls_address): Emit pic or non-pic
7957         version of tgd_load, tld_load and tie_load depending on the
7958         value of flag_pic.
7959
7960 2007-05-04  Ulrich Drepper  <drepper@redhat.com>
7961             Jakub Jelinek  <jakub@redhat.com>
7962
7963         * crtstuff.c (HIDDEN_DTOR_LIST_END): New macro.
7964         (__do_global_dtors_aux): Use more paranoid loop to run
7965         destructors if HIDDEN_DTOR_LIST_END.
7966         (__DTOR_END__): Export as a hidden symbol when HIDDEN_DTOR_LIST_END.
7967
7968 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
7969
7970         * varasm.c (align_variable): Don't increase alignment for
7971         DECL_THREAD_LOCAL_P variables above BITS_PER_WORD through
7972         DATA_ALIGNMENT or CONSTANT_ALIGNMENT.
7973
7974 2007-05-04  Josh Conner  <jconner@apple.com>
7975
7976         * basic-block.h (cdi_direction): Assign values to all enumeration
7977         constants.
7978         (dom_computed): Remove.
7979         (dom_info_state): New.
7980         (set_dom_info_availability): New.
7981         * tree-ssa-loop-im.c (determine_invariantness): Initialize
7982         walk_data.dom_direction.
7983         * cfghooks.c (delete_basic_block): Use dom_info_available_p()
7984         instead of dom_computed[].
7985         (split_edge): Likewise.
7986         (create_basic_block): Likewise.
7987         (merge_blocks): Likewise.
7988         * ifcvt.c (find_if_header): Likewise.
7989         * tree-cfgcleanup.c (cleanup_tree_cfg): Likewise.
7990         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
7991         * tree-ssa.c (verify_ssa): Likewise.
7992         * tree-cfg.c (tree_verify_flow_info): Likewise.
7993         (remove_edge_and_dominated_blocks): Likewise.
7994         * dominance.c (dom_computed): Make static.
7995         (calc_dfs_tree_nonrec): Change third param to a bool.
7996         (calc_dfs_tree): Change second param to a bool.
7997         (calc_idioms): Change second param to a bool.  Use
7998         dom_convert_dir_to_idx.
7999         (init_dom_info): Validate dir before using.
8000         (dom_convert_dir_to_idx): New.
8001         (calculate_dominance_info): Use dom_convert_dir_to_idx.  New
8002         variable 'reverse' used for calling calc_dfs_tree and calc_idoms.
8003         (free_dominance_info): Use dom_convert_dir_to_idx.
8004         (get_immediate_dominator): Likewise.
8005         (set_immediate_dominator): Likewise.
8006         (get_dominated_by): Likewise.
8007         (redirect_immediate_dominators): Likewise.
8008         (nearest_common_denominator): Likewise.
8009         (dominated_by_p): Likewise.
8010         (bb_dom_dfs_in): Likewise.
8011         (bb_dom_dfs_out): Likewise.
8012         (recount_dominator): Likewise.
8013         (iterate_fix_dominators): Likewise.
8014         (add_to_dominance_info): Likewise.
8015         (delete_from_dominance_info): Likewise.
8016         (first_dom_son): Likewise.
8017         (next_dom_son): Likewise.
8018         (dom_info_available_p): Likewise.
8019         (dom_info_state): New.
8020         (set_dom_info_availability): New.
8021
8022 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
8023
8024         * config/s390/s390.md ("fix_trunc<mode>di2", "fix_trunc<mode>si2"):
8025         Expander removed.
8026         ("fix_trunc<DSF:mode><GPR:mode>2"): Expander added.
8027
8028 2007-05-04  Bob Wilson  <bob.wilson@acm.org>
8029
8030         * config/xtensa/xtensa.md (adddi3, adddi_carry): Delete.
8031         (subdi3, subdi_carry): Delete.
8032
8033 2007-05-04  Jan Hubicka  <jh@suse.cz>
8034             Richard Guenther  <rguenther@suse.de>
8035
8036         * opts.c (decode_options): Do not fiddle with inlining
8037         parameters in case of optimizing for size.
8038         * ipa-inline.c (cgraph_decide_recursive_inlining): When optimizing
8039         for size do nothing.
8040         (cgraph_decide_inlining_of_small_function): When optimizing for
8041         size never inline functions increasing caller size.
8042         (cgraph_early_inlining): Inline for size when optimizing for size.
8043
8044 2007-05-04  Bernd Schmidt  <bernd.schmidt@analog.com>
8045
8046         * config/bfin/bfin.md (<optab>di3): Now a define_expand which expands
8047         logical operations piecewise.
8048         (<optab>di_zesidi_di, <optab>di_sesidi_di, negdi2, one_cmpldi2,
8049         zero_extendsidi2, subdi_di_zesidi, subdi_zesidi_di, subdi_di_sesidi,
8050         subdi_sesidi_di): Delete.
8051         (add_with_carry): Produce carry in CC instead of a DREG to shorten
8052         the generated sequence.  Allow three-reg add in constraints.  Rewrite
8053         the rtl expression for carry to avoid zero_extend of a constant.
8054         (sub_with_carry): New pattern.
8055         (adddi3, subdi3): Change into define_expand.  For subtract, generate a
8056         different sequence not involving jumps.
8057         (notbi): Now a named pattern.
8058
8059 2007-05-04  Bradley Lucier  <lucier@math.purdue.edu>
8060
8061         * doc/invoke.texi (i386 and x86-64 Options) [-mpc32, -mpc64, -mpc80]:
8062         Add the note about a significant loss of accuracy of some
8063         mathematical routines when these options are used.
8064
8065 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
8066
8067         * haifa-sched.c (rtx_vec_t): New typedef.
8068         (contributes_to_priority_p): Extract piece of priority () into new
8069         static function.
8070         (priority): Use the function.  Add assertion.
8071         (rank_for_schedule, set_priorities): Add assertion to check that
8072         insn's priority is initialized.
8073         (clear_priorities, calc_priorities): Change signature.  Make it update
8074         all relevant insns.  Update all callers ('add_to_speculative_block ()'
8075         and 'create_block_check_twin ()').
8076         * sched-int.h (struct haifa_insn_data): Remove field 'priority_known'.
8077         Add new field 'priority_status'.
8078         (INSN_PRIORITY_STATUS): New macro.
8079         (INSN_PRIORITY_KNOWN): Change to use INSN_PRIORITY_STATUS.
8080
8081 2007-05-04  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
8082
8083         * sched-ebb.c (debug_ebb_dependencies): New static function.
8084         (init_ready_list): Use it.
8085
8086         * sched-rgn.c (debug_dependencies): Split into 'debug_dependencies ()'
8087         with changed signature and 'debug_rgn_dependencies ()'.
8088         (debug_rgn_dependencies): New static function.
8089         (init_ready_list): Use it.
8090
8091         * sched-int.h (debug_dependencies): Declare.
8092
8093 2007-05-04  Andreas Krebbel  <krebbel1@de.ibm.com>
8094
8095         * libgcc-std.ver (__ffssi2): Added to GCC_4.3.0 section.
8096
8097 2007-05-04  Dirk Mueller  <dmueller@suse.de>
8098
8099         * c.opt(Wmain,ffreestanding): Enable for C++,ObjC++.
8100
8101 2007-05-03  Jan Hubicka  <jh@suse.cz>
8102
8103         * fold-const.c (fold_unary): Convert (T1)(X op Y) into
8104         ((T1)X op (T1)Y), for pointer type in more cases than before.
8105
8106         * gimplify.c (gimplify_expr): Fold (void *)&a + 4.
8107
8108         * tree-object-size.c (plus_expr_object_size): When operand size is
8109         unknown, return unknown.
8110
8111 2007-05-03  Dirk Mueller  <dmueller@suse.de>
8112
8113         * doc/invoke.texi (-m386,-m486,-mpentium,-mpentiumpro): Remove.
8114
8115         * config/i386/i386.h (CC1_CPU_SPEC): Remove handling for deprecated
8116         options.
8117
8118         * config/i386/i386.opt (m386,m486,mpentium,mpentiumpro): Remove.
8119
8120 2007-05-03  Janis Johnson  <janis187@us.ibm.com>
8121
8122         * doc/sourcebuild.texi (Test Directives) Clarify dg-excess-errors.
8123
8124 2007-05-03  Joseph Myers  <joseph@codesourcery.com>
8125
8126         * config/soft-fp/double.h, config/soft-fp/extended.h,
8127         config/soft-fp/floatundidf.c, config/soft-fp/floatundisf.c,
8128         config/soft-fp/floatunsidf.c, config/soft-fp/floatunsisf.c,
8129         config/soft-fp/op-2.h, config/soft-fp/op-4.h,
8130         config/soft-fp/op-common.h, config/soft-fp/quad.h: Update from
8131         glibc CVS.
8132
8133 2007-05-03  Ian Lance Taylor  <iant@google.com>
8134
8135         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
8136         MASK_PPC_GFXOPT for 8540 or 8548.
8137
8138 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
8139
8140         * tree-vect-transform.c (vect_update_inits_of_drs): Use
8141         vect_print_dump_info() to output debug information.
8142
8143 2007-05-03  Uros Bizjak  <ubizjak@gmail.com>
8144
8145         PR target/31768
8146         * config/i386/i386.c (print_operand) ['z']: Output 'w' for
8147         operands of size 2 when operand is not MEM_P.
8148
8149 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
8150
8151         PR tree-optimization/30565
8152         * lambda-code.c (perfect_nestify): Fix updating of dominators.
8153
8154 2007-05-03  Bernd Schmidt  <bernd.schmidt@analog.com>
8155
8156         * config/bfin/bfin.md (addpdi3, us_truncpdisi2): New patterns.
8157         (umulsi3_highpart): Use them.
8158         * config/bfin/lib1funcs.asm (__umulsi3_highpart): Use unsigned move
8159         for final accumulator to D regisster tranfser.
8160
8161 2007-05-03  Dorit Nuzman  <dorit@il.ibm.com>
8162
8163         PR tree-optimization/31699
8164         * tree-vect-analyze.c (vect_update_misalignment_for_peel): Remove
8165         wrong code.
8166         (vect_enhance_data_refs_alignment): Compute peel amount using
8167         TYPE_VECTOR_SUBPARTS instead of vf.
8168         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Likewise.
8169
8170 2007-05-02  Brooks Moses  <brooks.moses@codesourcery.com>
8171
8172         PR bootstrap/31776
8173         * system.h: Remove inclusion of double-int.h
8174         * tree.h: Include double-int.h
8175         * gengtype.c: Likewise
8176         * cfgloop.h: Likewise
8177         * Makefile.in: Adjust dependencies on double-int.h
8178
8179 2007-05-02  Eric Christopher  <echristo@apple.com>
8180
8181         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Translate
8182         -shared to -Zdynamiclib.
8183
8184 2007-05-02  Seongbae Park  <seongbae.park@gmail.com>
8185
8186         PR c++/31663
8187         * c-common.c (strip_pointer_or_array_types): New function.
8188         * c-common.h (strip_pointer_or_array_types): New function declaration.
8189
8190 2007-05-03  Zdenek Dvorak  <dvorakz@suse.cz>
8191
8192         PR tree-optimization/31771
8193         * tree-cfg.c (move_block_to_fn): Assign bb to the correct index.
8194
8195 2007-05-02  Paul Brook  <paul@codesourcery.com>
8196
8197         * config/arm/bpabi.S (aeabi_lcmp): Fix result on overflow.
8198
8199 2007-05-02  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8200
8201         PR middle-end/29715
8202         * fold-const.c (fold_comparision): Remove the "foo++ == CONST"
8203         transformation.
8204
8205 2007-05-02  Nick Clifton  <nickc@redhat.com>
8206
8207         * config/frv/predicates.md (symbolic_operand): Accept CONSTs.
8208
8209 2007-05-02  Richard Guenther  <rguenther@suse.de>
8210
8211         PR tree-optimization/31146
8212         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
8213         argument, single_use_p.  If we have a single use that is
8214         a conversion to the definition rhs type, propagate that rhs.
8215         (forward_propagate_addr_expr): Pass single_use_p argument
8216         to forward_propagate_addr_expr_1.
8217
8218 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8219
8220         * config/i386/i386.c (ix86_expand_sse_comi): Remove unused
8221         variable.
8222
8223 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8224
8225         * doc/invoke.texi: Fix typo, 'AMD Family 10h core' instead of
8226         'AMD Family 10 core'.
8227
8228 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8229
8230         * config/i386/i386.c (override_options): Accept k8-sse3, opteron-sse3
8231         and athlon64-sse3 as improved versions of k8, opteron and athlon64
8232         with SSE3 instruction set support.
8233         * doc/invoke.texi: Likewise.
8234
8235 2007-05-01  Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
8236
8237         * config/i386/i386.c (override_options): Tuning 32-byte loop
8238         alignment for amdfam10 architecture. Increasing the max loop
8239         alignment to 24 bytes.
8240
8241 2007-05-01  Kazu Hirata  <kazu@codesourcery.com>
8242
8243         * config/m68k/constraints.md: New.
8244         * config/m68k/m68k.h (REG_CLASS_FROM_LETTER,
8245         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
8246         EXTRA_CONSTRAINT): Remove.
8247         * config/m68k/m68k.md: Include constraints.md.
8248         * expr.c (expand_expr_real_1): Copy DECL_RTL before using it.
8249
8250 2007-05-01  Ian Lance Taylor  <iant@google.com>
8251
8252         PR tree-optimization/31739
8253         * tree-vrp.c (vrp_val_is_max): New static function.
8254         (vrp_val_is_min): New static function.
8255         (set_value_range_to_value): Use TYPE_{MAX,MIN}_VALUE rather than
8256         copying the node.
8257         (set_value_range): Use vrp_val_is_{max,min}.
8258         (extract_range_from_assert): Likewise.
8259         (extract_range_from_binary_expr): Likewise.
8260         (extract_range_from_unary_expr): Likewise.
8261         (dump_value_range, vrp_meet): Likewise.
8262         (vrp_visit_phi_node): Likewise.
8263         * tree.c (build_distinct_type_copy): Revert change of 2007-04-27.
8264
8265 2007-05-01  Mark Mitchell  <mark@codesourcery.com>
8266
8267         * config/i386/gmon-sol2.c (size_t): New type.
8268         (intptr_t): Likewise.
8269         (s_textsize): Declare as size_t.
8270         (sbrk): Declare.
8271         (monstartup): Use size_t for sizes.
8272         (_mcount): Save and restore registers.
8273         (internal_mcount): Pass 0 as the first argument to monstartup
8274         in 64-bit mode.
8275         (moncontrol): Convert pointer to appropriately sized integer
8276         before passing to profil.
8277
8278 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
8279
8280         * config/rs6000/darwin-ldouble.c (__gcc_qunord): Define if
8281         __NO_FPRS__, not just if _SOFT_DOUBLE.
8282         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qunord): Likewise.
8283         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use __gcc_qunord
8284         also for E500 double.
8285         * config/rs6000/rs6000.md (buneq, bunge, bungt, bunle, bunlt,
8286         suneq, sunge, sungt, sunle, sunlt): Disable for (TARGET_HARD_FLOAT
8287         && !TARGET_FPRS).
8288
8289 2007-05-01  Richard Guenther  <rguenther@suse.de>
8290
8291         * tree-ssa-loop-manip.c (ip_normal_pos): Check if last stmt
8292         is NULL.
8293
8294 2007-05-01  Joseph Myers  <joseph@codesourcery.com>
8295
8296         * config/rs6000/libgcc-ppc-glibc.ver (__gcc_qgt): Fix typo.
8297
8298 2007-05-01  Jan Hubicka  <jh@suse.cz>
8299
8300         * tree-vectorize.c (vect_is_simple_use): gimple_min_invariant is
8301         invariant.
8302
8303 2007-05-01  Jan Hubicka  <jh@suse.cz>
8304
8305         * tree.h (maybe_fold_offset_to_component_ref): Remove.
8306         (maybe_fold_offset_to_reference): Declare.
8307         * fold-const.c (fold_unary): Do not fold
8308         (type *)&A into &A->field_of_type_and_offset_0
8309         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): When base type
8310         size is unknown, give up.
8311         (maybe_fold_offset_to_component_ref): Ignore firelds with unknown
8312         offsets.
8313         (maybe_fold_offset_to_reference): New.
8314         (maybe_fold_stmt_indirect): Use it.
8315         (fold_stmt_r): Fold (type *)&A+offset into A->field_if_type_and_offset.
8316         * gimplify.c (gimplify_conversion): Canonicalize conversions to
8317         field references.
8318         (gimplify_expr): Likewise for plus_expr.
8319
8320 2007-05-01  Zdenek Dvorak  <dvorakz@suse.cz>
8321
8322         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Use
8323         bsi_after_labels.  Always insert statements before bsi.
8324         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
8325         * predict.c (apply_return_prediction): Check for empty blocks.
8326         * cfgexpand.c (lab_rtx_for_bb): New variable.
8327         (label_rtx_for_bb): Do not create new tree labels.
8328         (expand_gimple_basic_block): Add labels recorded in lab_rtx_for_bb.
8329         (tree_expand_cfg): Initialize lab_rtx_for_bb.
8330         * tree-cfg.c (build_tree_cfg): Call cleanup_dead_labels after
8331         creating edges.
8332         (label_for_bb): Add field used.
8333         (update_eh_label, main_block_label): Mark the label used.
8334         (cleanup_dead_labels): Remove unused labels.
8335
8336 2007-05-01  Richard Guenther  <rguenther@suse.de>
8337
8338         * tree-vrp.c (set_value_range): Do not allocate equiv bitmap
8339         if it is not about to be set.
8340         (get_value_range): Do not pre-allocate equiv bitmap.
8341         (update_value_range): No need to clear equiv field.
8342         (add_equivalence): Change prototype to get bitmap pointer.
8343         Allocate bitmap here if it is not already.
8344         (extract_range_from_assert): Do not allocate bitmap here.
8345         Update callers to add_equivalence.
8346         (extract_range_from_ssa_name): Likewise.
8347         (get_vr_for_comparison): New static helper.
8348         (compare_name_with_value): Handle NULL equiv bitmap by
8349         peeling the first iteration of the comparison loop.
8350         Use get_vr_for_comparison.
8351         (compare_names): Handle NULL equiv bitmaps by using fake
8352         ones.  Use get_vr_for_comparison.
8353
8354 2007-04-30  Brooks Moses  <brooks.moses@codesourcery.com>
8355
8356         * double-int.c (mpz_set_double_int): Moved from
8357         tree-ssa-loop-niter.c.
8358         (mpz_get_double_int): Likewise; also, add option to wrap
8359         out-of-range integers.
8360         * double-int.h: New prototypes for above.
8361         * tree.c (get_static_type_bounds): Moved from
8362         tree-ssa-loop-niter.c; now returns TYPE_MIN_VALUE and
8363         TYPE_MAX_VALUE if they exist..
8364         * tree.h: New prototype for above.
8365         * tree-ssa-loop-niter.c: Adjust mpz_to_double_int and
8366         get_type_bounds calls.
8367         (mpz_set_double_int): Move to double-int.c.
8368         (get_type_bounds): Move to tree.c, rename to
8369         get_static_type_bounds.
8370         (mpz_to_double_int): Move to double-int.c, rename to
8371         mpz_get_double_int.
8372
8373 2007-04-30  Bob Wilson  <bob.wilson@acm.org>
8374
8375         * config/xtensa/lib1funcs.asm (__umodsi3, __modsi3): Rearrange so that
8376         DIV0 exception can fall through to a normal return.
8377
8378 2007-04-30  Alexandre Oliva  <aoliva@redhat.com>
8379
8380         PR middle-end/22156
8381         Temporarily revert:
8382         2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
8383         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
8384         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
8385         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
8386         initialize align to silence bogus warning.
8387         2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
8388         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
8389         all_no_warning.
8390         (struct sra_walk_fns): Remove use_all parameter from use.
8391         (sra_hash_tree): Handle BIT_FIELD_REFs.
8392         (sra_elt_hash): Don't hash bitfld blocks.
8393         (sra_elt_eq): Skip them in parent compares as well.  Handle
8394         BIT_FIELD_REFs.
8395         (sra_walk_expr): Don't maintain or pass down use_all_p.
8396         (scan_use): Remove use_all parameter.
8397         (scalarize_use): Likewise.  Re-expand assignment to
8398         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
8399         output, and re-scalarize after output.  Don't mark anything
8400         for no warning.
8401         (scalarize_ldst): Adjust.
8402         (scalarize_walk_gimple_modify_statement): Likewise.
8403         (build_element_name_1): Handle BIT_FIELD_REFs.
8404         (instantiate_element): Don't warn for any element whose parent
8405         is used as a whole.
8406         (instantiate_missing_elements_1): Return the sra_elt.
8407         (canon_type_for_field): New.
8408         (try_instantiate_multiple_fields): New.
8409         (instantiate_missing_elemnts): Use them.
8410         (mark_no_warning): Removed.
8411         (generate_one_element_ref): Handle BIT_FIELD_REFs.
8412         (REPLDUP, sra_build_elt_assignment): New.
8413         (generate_copy_inout): Use them.
8414         (generate_element_copy): Likewise.  Handle bitfld differences.
8415         (generate_element_zero): Don't recurse for blocks.  Use
8416         sra_build_elt_assignment.
8417         (generate_one_element_int): Take elt instead of var.  Use
8418         sra_build_elt_assignment.
8419         (generate_element_init_1): Adjust.
8420         (scalarize_use, scalarize_copy): Use REPLDUP.
8421         (scalarize_ldst): Move assert before dereference.
8422         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
8423
8424 2007-04-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8425
8426         PR C++/31721
8427         * tree.c (reconstruct_complex_type): Reconstruct a reference
8428         correctly.
8429         Also use the same mode for the pointer as the old pointer type.
8430
8431 2007-04-30  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
8432
8433         * doc/trouble.texi (Interoperation): Remove note about Ultrix
8434         Fortran compiler.
8435
8436 2007-04-29  Zdenek Dvorak  <dvorakz@suse.cz>
8437
8438         PR rtl-optimization/31676
8439         * df-scan.c (record_nonlocal_goto_receiver_defs): New function.
8440         (df_refs_record): Call it.
8441
8442 2007-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
8443
8444         * rtl.def (SS_ABS): New code.
8445         * config/bfin/bfin.c (print_operand): New modifier 'v'.
8446         (enum bfin_builtins): Add BFIN_BUILTIN_SUM_2X16, BFIN_BUILTIN_ABS_1x32,
8447         BFIN_BUILTIN_ROUND_1x32, BFIN_BUILTIN_MULT_1x32x32,
8448         BFIN_BUILTIN_MULT_1x32x32NS, BFIN_BUILTIN_SSASHIFT_1x32.
8449         (bfin_init_builtins): Define them.
8450         (bdesc_1arg, bdesc_2arg): Add some of them here, ...
8451         (bfin_expand_builtin): ... and handle the others here.
8452         * config/bfin/bfin.md (ssabssi2, ssroundsi2, ssashiftsi3,
8453         flag_mul_macv2hi_parts_acconly_andcc0): New patterns.
8454         (ss_absv2hi2): Renamed from absv2hi; use ss_abs code.
8455         (ssashiftv2hi3, ssashifthi3, lshiftv2hi3, lshifthi3): Shift count
8456         operand is only HImode.
8457
8458 2007-04-29  Steven Bosscher  <steven@gcc.gnu.org>
8459
8460         * regclass.c (scan_one_insn): Remove splitting of
8461         two address insns.
8462
8463 2007-04-28  Sandra Loosemore  <sandra@codesourcery.com>
8464             Nigel Stephens  <nigel@mips.com>
8465
8466         * config/mips/mips.h (SLOW_BYTE_ACCESS): Turn off for MIPS16.
8467
8468 2007-04-28  Jan Hubicka  <jh@suse.cz>
8469
8470         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Use
8471         insn_locators_alloc instead of insn_locators_initialize;
8472         call reset_block_changes.
8473         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8474         * config/sh/sh.c (sparc_output_mi_thunk): Likewise.
8475         * config/is64/ia64.c (ia64_output_mi_thunk): Likewise.
8476         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8477         * config/score/score.c (th_output_mi_thunk): Likewise.
8478         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
8479         * cfglyaout.c (set_curr_insn_source_location, set_curr_insn_block):
8480         tolerate uninitialized locator info.
8481
8482         Re-apply:
8483         * function.c (init_function_start): Don't init line number info.
8484         (expand_function_end): Update.
8485         (reset_block_changes, record_block_change, finalize_block_changes,
8486         check_block_change, free_block_changes): Kill.
8487         * function.h (reset_block_changes, record_block_change,
8488         finalize_block_changes, check_block_change, free_block_changes):
8489         Remove prototypes.
8490         (struct function): Remove ib_boundaries_block.
8491         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
8492         Use curr_insn_locator to initialize locator.
8493         (emit_line_note): Remove.
8494         * cfgexpand.c (expand_gimple_cond_expr): Update.
8495         (construct_exit_block): Likewise.
8496         (tree_expand_cfg): Initialize/finalize locators.
8497         * expr.c (expand_expr_real): Update.
8498         * cfglayout.c (line_locators_locs, line_locators_lines,
8499         file_locators_locs, file_locators_files): Remove.
8500         (set_block_levels): Move to cfgexpand.c.
8501         (insn_locators_initialize): Remove.
8502         (pass_insn_locators_initialize): Remove.
8503         (locations_locators_locs, locations_locators_vals): New static vars.
8504         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
8505         Likewise.
8506         (insn_locators_alloc, insn_locators_finalize,
8507         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
8508         New functions.
8509         (locator_location): New.
8510         (locator_line, locator_file): Rewrite.
8511         * rtl.h (emit_line_note): Kill.
8512         (insn_locators_alloc, insn_locators_finalize,
8513         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
8514         Declare.
8515         * tree-inline.c (initialize_cfun): Do not initialize
8516         ib_boundaries_block.
8517         * passes.c (pass_insn_locators_initialize): Remove.
8518
8519 2007-04-28  Zdenek Dvorak  <dvorakz@suse.cz>
8520
8521         * tree-cfg.c (move_block_to_fn): Release bb from dominance
8522         info.  Update last_basic_block correctly.
8523
8524 2007-04-27  Kaz Kojima  <kkojima@gcc.gnu.org>
8525
8526         PR target/31701
8527         * config/sh/sh.c (output_stack_adjust): Avoid using the frame
8528         register itself to hold the offset constant.  Tell flow the use
8529         of r4 and r5 when they are used.
8530
8531 2007-04-27  Richard Guenther  <rguenther@suse.de>
8532
8533         * tree-ssa-forwprop.c (forward_propagate_into_cond): Keep track
8534         if we simplified anything.
8535         (tree_ssa_forward_propagate_single_use_vars): Defer overflow
8536         warnings until we did a simplification and the stmt was not
8537         marked as TREE_NO_WARNING.
8538
8539 2007-04-27  Mike Stump  <mrs@apple.com>
8540
8541         * config/rs6000/darwin.h (ALWAYS_PUSH_CONSTS_USING_REGS_P): Remove.
8542
8543 2007-04-27  Ian Lance Taylor  <iant@google.com>
8544
8545         PR middle-end/31710
8546         * tree.c (build_distinct_type_copy): If TYPE_MIN_VALUE or
8547         TYPE_MAX_VALUE exist, convert them to the new type.
8548
8549 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
8550
8551         * tree-cfgcleanup.c (cleanup_tree_cfg): Verify dominance info
8552         if it claims to be available.
8553         * tree-ssa-dce.c (remove_dead_stmt): Mark cfg as altered when
8554         edge is redirected.
8555         (perform_tree_ssa_dce): Always free postdominators.
8556
8557 2007-04-27  Richard Henderson  <rth@redhat.com>
8558
8559         * config/alpha/predicates.md (aligned_memory_operand): Mark
8560         as define_special_predicate.
8561         (unaligned_memory_operand, normal_memory_operand): Likewise.
8562         (reg_or_unaligned_mem_operand): Remove.
8563         (any_memory_operand): Match the documentation and check for
8564         non-renumbered pseudos during reload.
8565         * config/alpha/alpha.c (alpha_secondary_reload): Rename from
8566         alpha_secondary_reload_class, update to new interface, make static.
8567         Handle CQImode like HImode.  Remove FP subreg check.
8568         (alpha_expand_mov): Use replace_equiv_address.
8569         (alpha_expand_mov_nobwx): Use any_memory_operand.
8570         (TARGET_SECONDARY_RELOAD): New.
8571         * config/alpha/alpha.h (SECONDARY_INPUT_RELOAD_CLASS): Remove.
8572         (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
8573         * config/alpha/sync.md (I12MODE, I48MODE, modesuffix): Move ...
8574         * config/alpha/alpha.md: ... here.
8575         (RELOAD12, reloadmode): New.
8576         (movcqi): New.
8577         (reload_in<RELOAD12>): Macro-ize from reload_inqi, reload_inhi.
8578         Don't handle the aligned case here.
8579         (reload_out<RELOAD12>): Macro-ize from reload_outqi, reload_outhi.
8580         (reload_in<I12MODE>_aligned): Macro-ize from reload_inqi_help,
8581         reload_inhi_help.  Don't expect a scratch register.
8582         (reload_out<I12MODE>_aligned): Macro-ize from reload_outqi_help,
8583         reload_outhi_help.
8584         * config/alpha/alpha-protos.h (alpha_secondary_reload_class): Remove.
8585
8586 2007-04-27  Richard Guenther  <rguenther@suse.de>
8587
8588         * tree-ssa-forwprop.c (get_prop_dest_stmt): Fix comment typo.
8589
8590 2007-04-27  Richard Guenther  <rguenther@suse.de>
8591
8592         PR tree-optimization/30965
8593         PR tree-optimization/30978
8594         * Makefile.in (tree-ssa-forwprop.o): Depend on $(FLAGS_H).
8595         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Remove.
8596         (find_equivalent_equality_comparison): Likewise.
8597         (simplify_cond): Likewise.
8598         (get_prop_source_stmt): New helper.
8599         (get_prop_dest_stmt): Likewise.
8600         (can_propagate_from): Likewise.
8601         (remove_prop_source_from_use): Likewise.
8602         (combine_cond_expr_cond): Likewise.
8603         (forward_propagate_comparison): New function.
8604         (forward_propagate_into_cond): Rewrite to use fold for
8605         tree combining.
8606         (tree_ssa_forward_propagate_single_use_vars): Call
8607         forward_propagate_comparison to propagate comparisons.
8608
8609 2007-04-27  Richard Guenther  <rguenther@suse.de>
8610
8611         PR tree-optimization/31715
8612         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make
8613         sure to do computation on the offset in an appropriate
8614         signed type.
8615
8616 2007-04-27  Richard Sandiford  <richard@codesourcery.com>
8617
8618         * reload.h (elimination_target_reg_p): Declare.
8619         * reload.c (find_reloads): Don't apply the reg_rtx move
8620         optimization if the SET_DEST satisfies elimination_target_reg_p.
8621         * reload1.c (elimination_target_reg_p): New function.
8622         (gen_reload): In the move/add2 fallback, make sure that op0
8623         does not overlap the destination register.
8624
8625 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
8626
8627         * tree-ssa-loop-im.c (determine_invariantness_stmt): Attempt to
8628         transform only GIMPLE_MODIFY_STMTs.
8629         * tree-complex.c (expand_complex_operations_1): Ditto.
8630         (expand_complex_div_wide): Do not create gotos in COND_EXPR branches.
8631         * tree-ssa-loop-manip.c (build_if_stmt): Removed.
8632         (tree_transform_and_unroll_loop): Do not create gotos in COND_EXPR
8633         branches.
8634         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
8635         tree_mod_subtract, tree_ic, tree_stringop_fixed_value): Ditto.
8636         * omp-low.c (expand_parallel_call, expand_omp_for_generic,
8637         expand_omp_for_static_chunk, expand_omp_for_static_nochunk): Ditto.
8638         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes,
8639         slpeel_add_loop_guard): Ditto.
8640         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
8641         * lambda-code.c (perfect_nestify): Ditto.
8642         * tree-iterator.c (tsi_split_statement_list_before): Fix splitting
8643         before the first statement.
8644         * tree-optimize.c (execute_free_datastructures): Fix comments.
8645         (execute_free_cfg_annotations): Do not call disband_implicit_edges.
8646         * tree-flow.h (disband_implicit_edges): Declaration removed.
8647         * tree-cfg.c (make_cond_expr_edges): Remove gotos from COND_EXPR
8648         branches.
8649         (cleanup_dead_labels, tree_redirect_edge_and_branch): Handle
8650         COND_EXPRs without gotos.
8651         (disband_implicit_edges, has_label_p): Removed.
8652         (tree_verify_flow_info): Verify that COND_EXPR branches are empty.
8653         (tree_lv_add_condition_to_bb): Do not create gotos in COND_EXPR
8654         branches.
8655         * tree.c (build3_stat): Mark COND_EXPRs used as statements as having
8656         side effects.
8657         * tree-pretty-print.c (dump_implicit_edges): Dump implicit edges
8658         also for COND_EXPRs.
8659         * cfgexpand.c (label_rtx_for_bb): New function.
8660         (expand_gimple_cond_expr): Do not expect gotos in COND_EXPR branches.
8661         Use label_rtx_for_bb to find the labels.
8662         (expand_gimple_basic_block): Remove RETURN_EXPR at the end of the
8663         last block.  Detect fallthru edges.
8664
8665 2007-04-26  Ian Lance Taylor  <iant@google.com>
8666
8667         PR target/28675
8668         * reload.c (find_reloads_subreg_address): If the address was valid
8669         in the original mode but not in the new mode, reload the whole
8670         address.
8671
8672 2007-04-27  Zdenek Dvorak  <dvorakz@suse.cz>
8673
8674         * tree-cfgcleanup.c (cfgcleanup_altered_bbs): New global variable.
8675         (remove_fallthru_edge): Use remove_edge_and_dominated_blocks.
8676         (cleanup_control_expr_graph): Do not invalidate dominance info.
8677         Record altered blocks.
8678         (cleanup_control_flow, cleanup_forwarder_blocks): Removed.
8679         (cleanup_control_flow_bb, split_bbs_on_noreturn_calls,
8680         cleanup_tree_cfg_bb): New functions.
8681         (remove_forwarder_block): Do not maintain the worklist of blocks.
8682         Record altered blocks.
8683         (cleanup_tree_cfg_1): Iterate over cfgcleanup_altered_bbs,
8684         not over whole cfg.
8685         (cleanup_tree_cfg): Do not iterate cleanup_tree_cfg_1.  Only call
8686         delete_unreachable_blocks if dominators are not available.
8687         * tree-inline.c (optimize_inline_calls): Free dominance information
8688         earlier.
8689         * tree-flow.h (remove_edge_and_dominated_blocks,
8690         cfgcleanup_altered_bbs): Altered.
8691         * tree-cfg.c (replace_uses_by, tree_merge_blocks): Record altered
8692         blocks.
8693         (get_all_dominated_blocks, remove_edge_and_dominated_blocks): New
8694         functions.
8695         (tree_purge_dead_eh_edges): Use remove_edge_and_dominated_blocks,
8696         do not invalidate dominators.
8697
8698 2007-04-26  Anatoly Sokolov <aesok@post.ru>
8699
8700         * config/avr/avr.c (avr_mcu_types): Add support for ATmega8HVA and
8701         ATmega16HVA devices. Move AT90USB82 device to 'avr5' architecture.
8702         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
8703         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
8704
8705 2007-04-26  Steve Ellcey  <sje@cup.hp.com>
8706
8707         * config/ia64/ia64.md (ip_value):  Fix itanium_class attribute.
8708
8709 2007-04-26  Richard Guenther  <rguenther@suse.de>
8710
8711         PR tree-optimization/31703
8712         * tree-ssa-loop-im.c (rewrite_bittest): Make sure to use
8713         the right type for the target of the bittest.
8714
8715 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
8716
8717         * config/i386/vx-common.h (RETURN_IN_MEMORY): Use
8718         ix86_sol10_return_in_memory.
8719
8720 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
8721
8722         * config/i386/i386.c (ix86_sol10_return_in_memory): Remove unused
8723         variables.
8724
8725 2007-04-26  Jakub Jelinek  <jakub@redhat.com>
8726
8727         PR c++/31598
8728         * tree-inline.c (copy_body_r): Don't touch TREE_TYPE of OMP_CLAUSE.
8729
8730         PR tree-optimization/30558
8731         * tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW
8732         clear this_state.prev_try.
8733
8734 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
8735             Mark Mitchell  <mark@codesourcery.com>
8736
8737         * config/i386/i386-protos.h (ix86_sol10_return_in_memory): Declare.
8738         * config/i386/i386.c (ix86_sol10_return_in_memory): New function.
8739         * config/i386/sol2-10.h (RETURN_IN_MEMORY): Use it.
8740
8741 2007-04-26  Richard Sandiford  <richard@codesourcery.com>
8742
8743         PR driver/31107
8744         * doc/invoke.texi (%:print-asm-header): Document.
8745         * gcc.c (asm_options): Use %:print-asm-header() for --target-help
8746         and -ftarget-help.
8747         (static_spec_functions): Add print-asm-header.
8748         (main): Print a banner before the --target-help linker options.
8749         (print_asm_header_spec_function): New function.
8750
8751 2007-04-25  Kaz Kojima  <kkojima@gcc.gnu.org>
8752
8753         PR target/31403
8754         * config/sh/sh.md (movsi_ie): Fix length for TARGET_SH2A.
8755         (movsf_ie): Likewise.
8756
8757 2007-04-25  Paolo Carlini  <pcarlini@suse.de>
8758
8759         * doc/extend.texi ([Type Traits]): Adjust per N2255.
8760
8761 2007-04-25  Bob Wilson  <bob.wilson@acm.org>
8762
8763         * config/xtensa/lib1funcs.asm (__udivsi3, __divsi3): Throw an
8764         exception for divide-by-zero.
8765         (__umodsi3, __modsi3): Likewise.
8766
8767 2007-04-25  Dirk Mueller  <dmueller@suse.de>
8768
8769         * c-typeck.c (build_compound_expr): Annotate warning()
8770         call with OPT_Wunused_value.
8771         * tree-ssa.c (warn_uninit): Annotate warning with
8772         OPT_Wunintialized.
8773         * c-common.c (handle_sentinel_attribute): Annotate warning
8774         call with OPT_Wattributes.
8775
8776 2007-04-25  Thiemo Seufer  <ths@mips.com>
8777
8778         * config/mips/mips.opt (mdmx, mmt, mno-mdmx): New options.
8779         (mips16): Fix typo.
8780         * config/mips/mips.h (ASM_SPEC): Pass -mmt/-mno-mt and -mdmx/-mno-mdmx
8781         on to the assembler.  Improve handling of -mno-mips16.  Add handling
8782         of -mno-mips3d, -mno-dsp, -mno-dspr2.
8783         * doc/invoke.texi (MIPS Options): Whitespace cleanup.  Fix wrong use
8784         of @itemx.  Document -mno-dsp, -mno-dspr2, -mno-paired-single, -mdmx,
8785         -mno-mdmx, -mno-mips3d, -mmt and -mno-mt.
8786
8787 2007-04-25  Danny Smith  <dannysmith.users.sourceforge.net>
8788
8789         PR target/31680
8790         * config/i386/winnt.c (i386_pe_file_end): Strip only
8791         USER_LABEL_PREFIX when writing export name.
8792
8793 2007-04-25  Richard Sandiford  <richard@codesourcery.com>
8794
8795         * config.gcc (sh-wrs-vxworks): Don't include dbxelf.h.  Include
8796         sh/elf.h, vx-common.h and vxworks.h.
8797         * config/sh/sh.h: Include config/vxworks-dummy.h.
8798         (SUBTARGET_OVERRIDE_OPTIONS): Define.
8799         (OVERRIDE_OPTIONS): Use it.
8800         * config/sh/sh.md (GOTaddr2picreg): Add suport for VxWorks RTPs.
8801         (vxworks_picreg): New pattern.
8802         * config/sh/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
8803         VXWORKS_OS_CPP_BUILTINS.
8804         (LIB_SPEC, LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine
8805         to their VXWORKS_* equivalents.
8806         (SUBTARGET_OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
8807         (SUBTARGET_LINK_EMUL_SUFFIX, FUNCTION_PROFILER): Define.
8808         * config/sh/lib1funcs.asm (NO_FPSCR_VALUES): Define for VxWorks PIC.
8809         (set_fpscr, ic_invalidate): Add VxWorks PIC sequences.
8810         * config/sh/t-vxworks (MULTILIB_OPTIONS): Add m4a, -mrtp and
8811         -mrtp/-fPIC multilibs.
8812         (MULTILIB_EXCEPTIONS): Generalize globs accordingly.
8813         (MULTILIB_MATCHES, EXTRA_MULTILIB_PARTS): Define.
8814         (MULTILIB_OSDIRNAMES): Delete.
8815
8816 2007-04-25  Anatoly Sokolov <aesok@post.ru>
8817
8818         PR target/18989
8819         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Redefine.
8820
8821 2007-04-24  Brooks Moses  <brooks.moses@codesourcery.com>
8822
8823         * real.c (mpfr_from_real): Handle Inf and NaN, and allow the
8824         rounding mode to be specified by the caller.
8825         (real_to_mpfr) Likewise.
8826         * real.h: Update mpfr_from_real, mpfr_to_real prototypes to
8827         include new arguments.
8828         * builtins.c: Update mpfr_from_real, mpfr_to_real calls.
8829
8830 2007-04-24  Ian Lance Taylor  <iant@google.com>
8831
8832         PR tree-optimization/31605
8833         * tree-vrp.c (set_value_range): Check that min and max are not
8834         both overflow infinities.
8835         (set_value_range_to_value): New static function.
8836         (extract_range_from_binary_expr): Call set_value_range_to_value.
8837         (extract_range_from_cond_expr): Likewise.
8838         (extract_range_from_expr): Likewise.
8839         (extract_range_from_unary_expr): Likewise.  Don't create a range
8840         which overflows on both sides.
8841         (vrp_meet): Check for a useless range.
8842         (vrp_visit_phi_node): If we see a constant which looks like an
8843         overflow infinity, turn off the TREE_OVERFLOW flag.
8844
8845 2007-04-24  Ian Lance Taylor  <iant@google.com>
8846
8847         * flow.c (elim_reg_cond): Handle a comparison of a subreg.
8848
8849 2007-04-24  Simon Martin  <simartin@users.sourceforge.net>
8850
8851         PR diagnostic/25923
8852         * tree-pass.h (TDF_DIAGNOSTIC): New dump control to specify that a
8853         diagnostic message is being built.
8854         * tree-pretty-print.c (dump_generic_node): Only write the
8855         formatted text into BUFFER's stream if we are not building a
8856         diagnostic message.
8857         * toplev.c (default_tree_printer): Pass TDF_DIAGNOSTIC to
8858         dump_generic_node.
8859         * Makefile.in (toplev.o): Depend on tree-pass.h.
8860
8861 2007-04-24  Ian Lance Taylor  <iant@google.com>
8862
8863         PR tree-optimization/31602
8864         * tree-ssa-loop-ch.c (copy_loop_headers): Set TREE_NO_WARNING for
8865         conditionals in the copied loop header.
8866         * tree-cfg.c (fold_cond_expr_cond): Don't issue undefined overflow
8867         warnings if TREE_NO_WARNING is set.
8868         * doc/invoke.texi (Warning Options): Clarify that
8869         -Wstrict-overflow does not warn about loops.
8870
8871 2007-04-24  Janis Johnson  <janis187@us.ibm.com>
8872
8873         * config/rs6000/rs6000.c (function_arg_advance): For 32-bit ELF ABI,
8874         expand on the comment about _Decimal128 arguments and check the
8875         integer result of the modulus operation; for 64-bit ELF ABI, ensure
8876         that _Decimal128 argument uses even/odd register pair.
8877         (function_arg): Ditto.
8878
8879 2007-04-24  Hui-May Chang <hm.chang@apple.com>
8880
8881         * reload1.c (merge_assigned_reloads) : Do not merge a RELOAD_OTHER
8882         instruction with a RELOAD_FOR_OPERAND_ADDRESS instruction.
8883
8884 2007-04-24  Richard Guenther  <rguenther@suse.de>
8885             Olga Golovanevsky  <olga@il.ibm.com>
8886
8887         * fold-const.c (multiple_of_p): Check for bottom
8888         to be zero.
8889
8890 2007-04-24  Richard Henderson  <rth@redhat.com>
8891
8892         * libgcc2.h (AVOID_FP_TYPE_CONVERSION): Rename from
8893         IS_IBM_EXTENDED.  Also define in terms of WIDEST_HARDWARE_FP_SIZE.
8894         * libgcc2.c (__floatdisf): Avoid double-word arithmetic when
8895         looking for non-zero bits shifted out.  Avoid a recursive call
8896         when constructing the scalar.
8897         (__floatundisf): Likewise.
8898
8899 2007-04-24  Nathan Froyd  <froydnj@codesourcery.com>
8900
8901         * dwarf2out.c (field_byte_offset): Move the existing logic
8902         under the control of PCC_BITFIELD_TYPE_MATTERS and just use
8903         the bit offset of the field if !PCC_BITFIELD_TYPE_MATTERS.
8904
8905 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8906
8907         PR target/31641
8908         * config/s390/s390.c (s390_expand_setmem): Don't ICE for constant
8909         length argument of 0 for memset.
8910         (s390_expand_movmem, s390_expand_setmem, s390_expand_cmpmem): Use
8911         unsigned shift instead of the signed variant.
8912
8913 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
8914
8915         * config/s390/s390.md ("*cmp<mode>_ccs_0_ibm", "*cmp<mode>_ccs_ibm",
8916         "fix_trunc<BFP:mode><GPR:mode>2_ieee", "fix_truncdfsi2_ibm",
8917         "floatsidf2_ibm", "floatsisf2", "truncdfsf2_ieee", "truncdfsf2_ibm",
8918         "*trunctfdf2_ieee", "*trunctfdf2_ibm", "*trunctfsf2_ieee",
8919         "*trunctfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
8920         "*extenddftf2_ieee", "*extenddftf2_ibm", "*extendsftf2_ieee",
8921         "*extendsftf2_ibm", "*add<mode>3", "*add<mode>3_ibm", "*sub<mode>3_ibm",
8922         "*mul<mode>3", "*mul<mode>3_ibm", "*div<mode>3", "*div<mode>3_ibm",
8923         "*neg<mode>2_ibm", "*abs<mode>2_ibm"): Insn definitions removed.
8924         ("fix_trunc<BFP:mode><GPR:mode>2_bfp", "floatsi<mode>2",
8925         "truncdfsf2", "trunctf<mode>2", "add<mode>3", "sub<mode>3",
8926         "mul<mode>3", "div<mode>3"): Insn definitions added.
8927         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fix_trunc<mode>di2",
8928         "fix_trunc<mode>si2"): gen_fix_trunc<BFP:mode><GPR:mode>2_ieee renamed
8929         to gen_fix_trunc<BFP:mode><GPR:mode>2_bfp.
8930         ("fix_truncdfsi2", "floatsitf2", "truncdfsf2", "trunctfdf2",
8931         "trunctfsf2", "extendsfdf2", "extenddftf2", "extendsftf2", "add<mode>3",
8932         "sub<mode>3", "mul<mode>3", "div<mode>3"): Expander removed.
8933         ("fix_trunc<mode>si2", "extend<DSF:mode><BFP:mode>2"): Expander added.
8934         * config/s390/s390.h (TARGET_IBM_FLOAT, TARGET_IEEE_FLOAT,
8935         TARGET_FLOAT_FORMAT): Macro definitions removed.
8936         (FP_REGNO_P): No special case for !TARGET_IEEE_FLOAT anymore.
8937         * config/s390/s390.c (struct processor_costs, z900_cost, z990_cost,
8938         z9_109_cost): Remove fields for hexfloat instructions: dxr, ddr and der.
8939         (s390_rtx_costs): Remove !TARGET_IEEE_FLOAT special branches.
8940         (s390_gen_rtx_const_DI): Function removed.
8941         * config/s390/s390-protos.h (s390_gen_rtx_const_DI): Prototype removed.
8942
8943 2007-04-24  Richard Sandiford  <richard@codesourcery.com>
8944
8945         * optabs.c (set_conv_libfunc): Prefer libgcc2's __ffsMM2 functions
8946         over an external ffs function.
8947
8948 2007-04-24  Chao-ying Fu  <fu@mips.com>
8949             Richard Sandiford  <richard@nildram.co.uk>
8950
8951         * doc/md.texi (madd@var{m}@var{n}4, umadd@var{m}@var{n}4): Document.
8952         * optabs.h (OTI_smadd_widen, OTI_umadd_widen): New optab_indexes.
8953         (smadd_widen_optab, umadd_widen_optab): Define.
8954         * optabs.c (init_optabs): Initialize smadd_widen_optab and
8955         umadd_widen_optab.
8956         * genopinit.c (optabs): Fill in smadd_widen_optab and
8957         umadd_widen_optab.
8958         * expr.c (expand_expr_real_1): Try to use smadd_widen_optab
8959         and umadd_widen_optab to implement multiply-add sequences.
8960         * config/mips/mips.md (*<su>mul_acc_di): Rename to...
8961         (<u>maddsidi4): ...this.  Extend condition to include
8962         GENERATE_MADD_MSUB and TARGET_DSPR2.  Change the constraint
8963         of operand 0 to "ka" and use the three-operand form of madd<u>
8964         for TARGET_DSPR2.
8965         * config/mips/mips-dspr2.md (mips_madd, mips_maddu): Convert
8966         to define_expands.
8967         * config/mips/constraints.md (ka): New register constraint.
8968
8969 2007-04-24  Jan Hubicka  <j@suse.cz>
8970
8971         Revert:
8972
8973         2007-04-23  Jan Hubicka  <jh@suse.cz>
8974         * function.c (init_function_start): Don't init line number info.
8975         (expand_function_end): Update.
8976         (reset_block_changes, record_block_change, finalize_block_changes,
8977         check_block_change, free_block_changes): Kill.
8978         * function.h (reset_block_changes, record_block_change,
8979         finalize_block_changes, check_block_change, free_block_changes):
8980         Remove prototypes.
8981         (struct function): Remove ib_boundaries_block.
8982         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
8983         Use curr_insn_locator to initialize locator.
8984         (emit_line_note): Remove.
8985         * cfgexpand.c (expand_gimple_cond_expr): Update.
8986         (construct_exit_block): Likewise.
8987         (tree_expand_cfg): Initialize/finalize locators.
8988         * expr.c (expand_expr_real): Update.
8989         * cfglayout.c (line_locators_locs, line_locators_lines,
8990         file_locators_locs, file_locators_files): Remove.
8991         (set_block_levels): Move to cfgexpand.c.
8992         (insn_locators_initialize): Remove.
8993         (pass_insn_locators_initialize): Remove.
8994         (locations_locators_locs, locations_locators_vals): New static vars.
8995         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
8996         Likewise.
8997         (insn_locators_alloc, insn_locators_finalize,
8998         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
8999         New functions.
9000         (locator_location): New.
9001         (locator_line, locator_file): Rewrite.
9002         * rtl.h (emit_line_note): Kill.
9003         (insn_locators_alloc, insn_locators_finalize,
9004         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
9005         Declare.
9006         * tree-inline.c (initialize_cfun): Do not initialize
9007         ib_boundaries_block.
9008         * passes.c (pass_insn_locators_initialize): Remove.
9009
9010 2007-04-24  Daniel Franke  <franke.daniel@gmail.com>
9011
9012         * doc/invoke.texi: Removed leading '-' from option index entries.
9013
9014 2007-04-23  Zdenek Dvorak  <dvorakz@suse.cz>
9015
9016         * tree-phinodes.c (reserve_phi_args_for_new_edge, remove_phi_node):
9017         Use phi_nodes_ptr.
9018         (create_phi_node): Use set_phi_nodes.
9019         * omp-low.c (expand_omp_parallel): Use bb_stmt_list.
9020         * tree-if-conv.c (process_phi_nodes): Use set_phi_nodes.
9021         (combine_blocks):  Use bb_stmt_list and set_bb_stmt_list.
9022         * tree-flow-inline.h (phi_nodes, set_phi_nodes,
9023         (bsi_start, bsi_last): Use bb_stmt_list.
9024         (phi_nodes_ptr, bb_stmt_list, set_bb_stmt_list): New functions.
9025         * cfgexpand.c (expand_gimple_basic_block): Use bb_stmt_list.
9026         Traverse the statements using tsi iterator.
9027         * basic-block.h (struct basic_block_def): Fields stmt_list
9028         and phi_nodes moved to ...
9029         (struct tree_bb_info): ... new structure.
9030         * tree-cfg.c (create_bb): Allocate il.tree.  Use set_bb_stmt_list.
9031         (tree_merge_blocks): Use bb_stmt_list and set_bb_stmt_list.
9032         (remove_bb): Handle blocks with NULL stmt list.  Clear il.tree field.
9033         (tree_verify_flow_info): Verify that il.tree is not set for
9034         entry and exit block.
9035         (tree_split_block): Use set_bb_stmt_list.
9036
9037 2007-04-23  Mike Stump  <mrs@apple.com>
9038
9039         * config/i386/i386.c (ix86_tune_features
9040         [X86_TUNE_DEEP_BRANCH_PREDICTION]: Prefer call over thunks on
9041         nocona and core2.
9042
9043 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
9044
9045         * config/i386/i386.md (prefix_extra): New attribute.
9046         (length): Add prefix_extra.
9047
9048         * onfig/i386/sse.md (sse2_movdqu): Set prefix_data16.
9049         (sse2_movntv2di): Likewise.
9050         (sse2_cvtps2dq): Likewise.
9051         (sse2_cvtpd2pi): Likewise.
9052         (sse2_cvttpd2pi): Likewise.
9053         (*sse2_cvtpd2ps): Likewise.
9054         (*add<mode>3): Likewise.
9055         (sse2_ssadd<mode>3): Likewise.
9056         (sse2_usadd<mode>3): Likewise.
9057         (*sub<mode>3): Likewise.
9058         (sse2_sssub<mode>3): Likewise.
9059         (sse2_ussub<mode>3): Likewise.
9060         (*mulv8hi3): Likewise.
9061         (*smulv8hi3_highpart): Likewise.
9062         (*umulv8hi3_highpart): Likewise.
9063         (sse2_umulv2siv2di3): Likewise.
9064         (sse2_pmaddwd): Likewise.
9065         (ashr<mode>3): Likewise.
9066         (lshr<mode>3): Likewise.
9067         (ashl<mode>3): Likewise.
9068         (sse2_ashlti3): Likewise.
9069         (sse2_lshrti3): Likewise.
9070         (*umaxv16qi3): Likewise.
9071         (*smaxv8hi3): Likewise.
9072         (*uminv16qi3): Likewise.
9073         (*sminv8hi3): Likewise.
9074         (sse2_eq<mode>3): Likewise.
9075         (sse2_gt<mode>3): Likewise.
9076         (*and<mode>3): Likewise.
9077         (sse2_nand<mode>3): Likewise.
9078         (*ior<mode>3): Likewise.
9079         (*xor<mode>3): Likewise.
9080         (sse2_packsswb): Likewise.
9081         (sse2_packssdw): Likewise.
9082         (sse2_packuswb): Likewise.
9083         (sse2_punpckhbw): Likewise.
9084         (sse2_punpcklbw): Likewise.
9085         (sse2_punpckhwd): Likewise.
9086         (sse2_punpcklwd): Likewise.
9087         (sse2_punpckhdq): Likewise.
9088         (sse2_punpckldq): Likewise.
9089         (sse2_punpckhqdq): Likewise.
9090         (sse2_punpcklqdq): Likewise.
9091         (*sse2_pinsrw): Likewise.
9092         (*sse2_pextrw): Likewise.
9093         (sse2_pshufd_1): Likewise.
9094         (sse2_uavgv16qi3): Likewise.
9095         (sse2_uavgv8hi3): Likewise.
9096         (sse2_psadbw): Likewise.
9097         (sse2_pmovmskb): Likewise.
9098         (*sse2_maskmovdqu): Likewise.
9099         (*sse2_maskmovdqu_rex64): Likewise.
9100         (sse4a_extrqi): Likewise.
9101         (sse4a_extrq): Likewise.
9102         (sse3_lddqu): Set prefix_rep.
9103         (sse3_addsubv4sf3): Likewise.
9104         (sse3_haddv4sf3): Likewise.
9105         (sse3_hsubv4sf3): Likewise.
9106         (sse_cvtss2si): Likewise.
9107         (sse_cvtss2si_2): Likewise.
9108         (sse_cvtss2siq): Likewise.
9109         (sse_cvtss2siq_2): Likewise.
9110         (sse_cvttss2si): Likewise.
9111         (sse_cvttss2siq): Likewise.
9112         (sse2_cvttps2dq): Likewise.
9113         (sse3_movshdup): Likewise.
9114         (sse3_movsldup): Likewise.
9115         (sse2_cvtsd2si): Likewise.
9116         (sse2_cvtsd2si_2): Likewise.
9117         (sse2_cvtsd2siq): Likewise.
9118         (sse2_cvtsd2siq_2): Likewise.
9119         (sse2_cvttsd2si): Likewise.
9120         (sse2_cvttsd2siq): Likewise.
9121         (*sse2_cvtpd2dq): Likewise.
9122         (*sse2_cvttpd2dq): Likewise.
9123         (sse2_pshuflw_1): Likewise.
9124         (sse2_pshufhw_1): Likewise.
9125         (sse4a_insertqi): Likewise.
9126         (sse4a_insertq): Likewise.
9127         (ssse3_phaddwv8hi3): Set prefix_data16 and prefix_extra.
9128         (ssse3_phadddv4si3): Likewise.
9129         (ssse3_phaddswv8hi3): Likewise.
9130         (ssse3_phsubwv8hi3): Likewise.
9131         (ssse3_phsubdv4si3): Likewise.
9132         (ssse3_phsubswv8hi3): Likewise.
9133         (ssse3_pmaddubswv8hi3): Likewise.
9134         (ssse3_pmulhrswv8hi3): Likewise.
9135         (ssse3_pshufbv16qi3): Likewise.
9136         (ssse3_psign<mode>3): Likewise.
9137         (ssse3_palignrti): Likewise.
9138         (abs<mode>2): Likewise.
9139         (ssse3_phaddwv4hi3): Set prefix_extra.
9140         (ssse3_phadddv2si3): Likewise.
9141         (ssse3_phaddswv4hi3): Likewise.
9142         (ssse3_phsubwv4hi3): Likewise.
9143         (ssse3_phsubdv2si3): Likewise.
9144         (ssse3_phsubswv4hi3): Likewise.
9145         (ssse3_pmaddubswv4hi3): Likewise.
9146         (ssse3_pmulhrswv4hi3): Likewise.
9147         (ssse3_pshufbv8qi3): Likewise.
9148         (ssse3_psign<mode>3): Likewise.
9149         (ssse3_palignrdi): Likewise.
9150         (abs<mode>2): Likewise.
9151         (sse2_cvtdq2ps): Set mode to V4SF instead of V2DF.
9152         (*vec_dupv2df): Set mode to V2DF instead of V4SF.
9153         (sse2_pmovmskb): Set mode to SI instead of V2DF.
9154
9155 2007-04-23  Nick Clifton  <nickc@redhat.com>
9156
9157         * params.def: Fix formatting of emacs local variables.
9158
9159 2007-04-23  H.J. Lu  <hongjiu.lu@intel.com>
9160
9161         * config/i386/sse.md (sse2_stored): Don't split to inter-unit
9162         move if inter-unit move isn't allowed.
9163         Don't split moving the first element of V2DI to DI to inter-unit
9164         move if inter-unit move isn't allowed.
9165
9166 2007-04-23  Richard Guenther  <rguenther@suse.de>
9167
9168         * tree-ssa-sink.c (execute_sink_code): Calculate CDI_DOMINATORS
9169         and CDI_POST_DOMINATORS separately.
9170
9171 2007-04-23  Nick Clifton  <nickc@redhat.com>
9172
9173         * c.opt (Wformat-contains-nul): Add warning attribute.
9174
9175 2007-04-23  Jan Hubicka  <jh@suse.cz>
9176
9177         * function.c (init_function_start): Don't init line number info.
9178         (expand_function_end): Update.
9179         (reset_block_changes, record_block_change, finalize_block_changes,
9180         check_block_change, free_block_changes): Kill.
9181         * function.h (reset_block_changes, record_block_change,
9182         finalize_block_changes, check_block_change, free_block_changes):
9183         Remove prototypes.
9184         (struct function): Remove ib_boundaries_block.
9185         * emit-rtl.c (make_insn_raw, make_jump_insn_raw, make_call_insn_raw):
9186         Use curr_insn_locator to initialize locator.
9187         (emit_line_note): Remove.
9188         * cfgexpand.c (expand_gimple_cond_expr): Update.
9189         (construct_exit_block): Likewise.
9190         (tree_expand_cfg): Initialize/finalize locators.
9191         * expr.c (expand_expr_real): Update.
9192         * cfglayout.c (line_locators_locs, line_locators_lines,
9193         file_locators_locs, file_locators_files): Remove.
9194         (set_block_levels): Move to cfgexpand.c.
9195         (insn_locators_initialize): Remove.
9196         (pass_insn_locators_initialize): Remove.
9197         (locations_locators_locs, locations_locators_vals): New static vars.
9198         (curr_location, last_location, curr_block, last_block, curr_rtl_loc):
9199         Likewise.
9200         (insn_locators_alloc, insn_locators_finalize,
9201         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
9202         New functions.
9203         (locator_location): New.
9204         (locator_line, locator_file): Rewrite.
9205         * rtl.h (emit_line_note): Kill.
9206         (insn_locators_alloc, insn_locators_finalize,
9207         set_curr_insn_source_location, set_curr_insn_block, curr_insn_locator):
9208         Declare.
9209         * tree-inline.c (initialize_cfun): Do not initialize
9210         ib_boundaries_block.
9211         * passes.c (pass_insn_locators_initialize): Remove.
9212
9213 2007-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9214
9215         PR middle-end/31448
9216         * expr.c (reduce_to_bit_field_precision): Handle
9217         CONST_INT rtx's.
9218
9219 2007-04-22  Uros Bizjak  <ubizjak@gmail.com>
9220
9221         PR tree-optimization/24659
9222         * optabs.h (enum optab_index) [OTI_vec_unpacks_hi,
9223         OTI_vec_unpacks_lo]: Update comment to mention floating point operands.
9224         (vec_pack_trunc_optab): Rename from vec_pack_mod_optab.
9225         * genopinit.c (optabs): Rename vec_pack_mod_optab
9226         to vec_pack_trunc_optab.
9227         * tree-vect-transform.c (vectorizable_type_demotion): Do not fail
9228         early for scalar floating point operands for NOP_EXPR.
9229         (vectorizable_type_promotion): Ditto.
9230         * optabs.c (optab_for_tree_code) [VEC_PACK_TRUNC_EXPR]: Return
9231         vec_pack_trunc_optab.
9232         (expand_binop): Rename vec_float_trunc_optab to vec_pack_mod_optab.
9233
9234         * tree.def (VEC_PACK_TRUNC_EXPR): Rename from VEC_PACK_MOD_EXPR.
9235         * tree-pretty-print.c (dump_generic_node) [VEC_PACK_TRUNC_EXPR]:
9236         Rename from VEC_PACK_MOD_EXPR.
9237         (op_prio) [VEC_PACK_TRUNC_EXPR]: Ditto.
9238         * expr.c (expand_expr_real_1): Ditto.
9239         * tree-inline.c (estimate_num_insns_1): Ditto.
9240         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
9241
9242         * config/i386/sse.md (vec_unpacks_hi_v4sf): New expander.
9243         (vec_unpacks_lo_v4sf): Ditto.
9244         (vec_pack_trunc_v2df): Ditto.
9245         (vec_pack_trunc_v8hi): Rename from vec_pack_mod_v8hi.
9246         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
9247         (vec_pack_trunc_v2di): Rename from vec_pack_mod_v2di.
9248
9249         * config/rs6000/altivec.md (vec_pack_trunc_v8hi): Rename from
9250         vec_pack_mod_v8hi.
9251         (vec_pack_trunc_v4si): Rename from vec_pack_mod_v4si.
9252
9253         * doc/c-tree.texi (Expression trees) [VEC_PACK_TRUNC_EXPR]:
9254         Rename from VEC_PACK_MOD_EXPR.  This expression also represent
9255         packing of floating point operands.
9256         [VEC_UNPACK_HI_EXPR, VEC_UNPACK_LO_EXPR]: These expression also
9257         represent unpacking of floating point operands.
9258         * doc/md.texi (Standard Names) [vec_pack_trunc]: Update documentation.
9259         [vec_unpacks_hi]: Ditto.
9260         [vec_unpacks_lo]: Ditto.
9261
9262 2007-04-22  Jan Hubicka  <jh@suse.cz>
9263
9264         * final.c (rest_of_handle_final): Call
9265         targetm.asm_out.constructor/targetm.asm_out.destructor
9266         * cgraphunit.c (cgraph_build_static_cdtor): Don't do it here; set
9267         proper priority via decl_*_priority_insert.
9268         * c-common.c (c_expand_body): Likewise.
9269
9270 2007-04-22  Richard Guenther  <rguenther@suse.de>
9271
9272         PR tree-optimization/29789
9273         * tree-ssa-loop-im.c (stmt_cost): Adjust cost of shifts.
9274         (rewrite_reciprocal): New helper split out from
9275         determine_invariantness_stmt.
9276         (rewrite_bittest): Likewise.
9277         (determine_invariantness_stmt): Rewrite (A >> B) & 1 to
9278         A & (1 << B) if (1 << B) is loop invariant but (A >> B)
9279         is not.
9280
9281 2007-04-22  Revital Eres  <eres@il.ibm.com>
9282
9283         * loop-unroll.c (var_to_expand): New field to support also
9284         insns of the form x = something + x.
9285         (analyze_insn_to_expand_var): Use it.
9286         (expand_var_during_unrolling): Likewise.
9287
9288 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
9289
9290         * predict.c: Include pointer-set.h.
9291         (bb_predictions): New variable.
9292         (tree_predicted_by_p, tree_predict_edge,
9293         remove_predictions_associated_with_edge): Use bb_predictions map
9294         instead of bb->predictions.
9295         (clear_bb_predictions, assert_is_empty): New functions.
9296         (combine_predictions_for_bb): Use bb_predictions map.  Call
9297         clear_bb_predictions.
9298         (tree_estimate_probability): Create and free bb_predictions map.
9299         * Makefile.in (predict.o): Add pointer-set.h dependency.
9300         * basic-block.h (struct basic_block_def): Remove predictions
9301         field.
9302         * cfgrtl.c (rtl_verify_flow_info_1): Do not check bb->predictions.
9303
9304 2007-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
9305
9306         PR target/31480
9307         * config/sh/sh.md (length): Check if prev_nonnote_insn (insn)
9308         is null.
9309
9310 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9311
9312         * timevar.c (timevar_print): Change reference of --disable-checking to
9313         --enable-checking=release.  Also warn if assert checking is disabled.
9314
9315 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9316
9317         PR C/30265
9318         * c-gimplifier.c (gimplify_compound_literal_expr): Mark the
9319         decl as addressable if the compound literal was marked as
9320         addressable.
9321         Mark the decl as a gimple register if it is a complex or
9322         vector decl and does not live in memory.
9323
9324 2007-04-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9325
9326         * tree.h (GIMPLE_TUPLE_P): Also true for PHI_NODEs.
9327         (GENERIC_NEXT): New function macro.
9328         (PHI_CHAIN): Use phi_node's new chain variable.
9329         (tree_phi_node): Change tree_common to tree_base
9330         and add the chain field.
9331         * tree-phinodes.c (make_phi_node): Don't set
9332         TREE_TYPE on the new node.
9333         * c-decl.c (lang_tree_node): Use GENERIC_NEXT
9334         instead of checking GIMPLE_TUPLE_P in chain_next.
9335         * tree-vect-transform.c
9336         (get_initial_def_for_induction): Look at
9337         PHI_RESULT_TREE for the type of the phi node.
9338         (update_vuses_to_preheader): Use PHI_CHAIN
9339         instead of TREE_CHAIN on the phi node.
9340         * tree-ssa-structalias.c (compute_points_to_sets):
9341         Likewise.
9342         (ipa_pta_execute): Likewise.
9343
9344 2007-04-21  Richard Guenther  <rguenther@suse.de>
9345
9346         PR middle-end/31136
9347         * fold-const.c (fold_unary): Call fold_convert_const on the
9348         original tree.
9349
9350 2007-04-21  Alexandre Oliva  <aoliva@redhat.com>
9351
9352         * gcse.c (store_killed_in_insn): Handle PARALLELs.
9353         (store_killed_in_pat): New.
9354
9355 2007-04-20  Richard Henderson  <rth@redhat.com>
9356
9357         PR target/31628
9358         * config/i386/i386.c (type_has_variadic_args_p): Look for any
9359         TREE_LIST with a void_type_node value, not void_list_node exactly.
9360
9361 2007-04-21  Douglas Gregor  <doug.gregor@gmail.com>
9362
9363         * doc/standards.texi: Re-arrange into language-specific
9364         subsections. Add a C++ section, documenting which standards we
9365         support.
9366
9367 2007-04-21  Zdenek Dvorak  <dvorakz@suse.cz>
9368
9369         * tree-ssa-structalias.c (delete_points_to_sets): Free graph->complex.
9370         * tree-ssa-operands.c (finalize_ssa_vuse_ops): Free new_ops.
9371
9372 2007-04-20  Daniel Jacobowitz  <dan@codesourcery.com>
9373
9374         * config/rs6000/sysv4.h (STARTFILE_DEFAULT_SPEC): Include
9375         ecrti.o and crtbegin.o.
9376         (LIB_DEFAULT_SPEC): Include -lc.
9377         (ENDFILE_DEFAULT_SPEC): Include crtend.o and ecrtn.o.
9378
9379 2007-04-20  Richard Henderson  <rth@redhat.com>
9380
9381         PR target/28623
9382         * config/alpha/alpha.c (get_unaligned_address): Remove extra_offset
9383         argument; update all callers.
9384         (get_unaligned_offset): New.
9385         * config/alpha/alpha.md (extendqidi2, extendhidi2): Don't use
9386         get_unaligned_address, just pass on the address directly.
9387         (unaligned_extendqidi): Use gen_lowpart instead of open-coding
9388         the subreg in the helper patterns.
9389         (unaligned_extendqidi_le): Use get_unaligned_offset.
9390         (unaligned_extendqidi_be, unaligned_extendhidi_le): Likewise.
9391         (unaligned_extendhidi_be): Likewise.
9392         (unaligned_extendhidi): Tidy.
9393         * config/alpha/alpha-protos.h: Update.
9394
9395 2007-04-20  Richard Henderson  <rth@redhat.com>
9396
9397         * config/alpha/alpha.h (CPP_SPEC, CPP_SUBTARGET_SPEC): Remove.
9398         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
9399         * config/alpha/linux.h (CPP_SPEC): Undef before redefine.
9400         * config/alpha/linux-elf.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
9401         * config/alpha/freebsd.h (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
9402         (CPP_SPEC): Don't include %(cpp_subtarget).
9403         * config/alpha/netbsd.h (CPP_SPEC): Rename CPP_SUBTARGET_SPEC.
9404         (EXTRA_SPECS): Rename SUBTARGET_EXTRA_SPECS.
9405         * config/alpha/osf.h (CPP_SPEC, EXTRA_SPECS): Similarly.
9406
9407 2007-04-20  Jakub Jelinek  <jakub@redhat.com>
9408
9409         * config/i386/i386.c (bdesc_2arg): Use ORDERED rather than UNORDERED
9410         for __builtin_ia32_cmpordss.
9411
9412         PR tree-optimization/31632
9413         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
9414         and arg1 for optimizations of comparison against min/max values.
9415         Fold arg0 to arg1's type for optimizations of comparison against
9416         min+1 and max-1 values.
9417
9418 2007-04-19  Bernd Schmidt  <bernd.schmidt@analog.com>
9419
9420         * reload.c (combine_reloads): When trying to use a dying register,
9421         check whether it's uninitialized and don't use if so.
9422
9423 2007-04-19  Brooks Moses  <brooks.moses@codesourcery.com>
9424
9425         * fold-const.c: Remove prototypes for native_encode_expr and
9426         native_interpret_expr.
9427         (native_encode_expr): Make non-static.
9428         (native_interpret_expr): Likewise.
9429         * tree.h: Add prototypes for the above.
9430
9431 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
9432
9433         * config/rs6000/spe.md (*frob_tf_ti, *frob_ti_tf, *frob_ti_tf_2,
9434         *mov_si<mode>_e500_subreg0, *mov_si<mode>_e500_subreg0_2,
9435         *mov_sitf_e500_subreg8, *mov_sitf_e500_subreg8_2, spe_extenddftf2,
9436         spe_fix_trunctfsi2_internal, spe_negtf2_internal, cmptfeq_gpr,
9437         tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr, tsttflt_gpr):
9438         Add length attributes.
9439
9440 2007-04-19  Janis Johnson  <janis187@us.ibm.com>
9441
9442         * ginclude/float.h: Check that __STDC_WANT_DEC_FP__ is defined,
9443         not that it is 1.
9444
9445         * c-cppbuiltin.c (c_cpp_builtins): Remove definition of
9446         __STDC_WANT_DEC_FP__.
9447
9448 2007-04-19  Joseph Myers  <joseph@codesourcery.com>
9449
9450         * configure.ac: Allow both powerpc*-*-linux* and powerpc*-*-gnu*
9451         for long double compatibility.
9452         * configure: Regenerate.
9453
9454 2007-04-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
9455
9456         PR rtl-optimization/29841
9457         * cfgbuild.c (control_flow_insn_p): Return TRUE for unconditional
9458         trap instructions.
9459         * sched-deps.c (sched_analyze_insn): Prevent all non-jump instructions
9460         that may cause control flow transfer from being moved.
9461
9462 2007-04-18  Jan Hubicka  <jh@suse.cz>
9463
9464         * fold-const.c (div_if_zero_remainder): Do signed divide for pointer
9465         types.
9466
9467 2007-04-18  Eric Christopher  <echristo@apple.com>
9468
9469         * config/rs6000/darwin.md (load_macho_picbase): Use link register
9470         only. Update operands.
9471         * config/rs6000/rs6000.c (rs6000_emit_prologue): Update caller.
9472         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Ditto. Move from
9473         link register to pic register.
9474
9475 2007-04-18  Dirk Mueller  <dmueller@suse.de>
9476
9477         PR diagnostic/31227
9478         * tree-vrp.c (search_for_addr_array): New.
9479         (check_array_bounds): Suppress warning about
9480         address taken of array refs if its not de-referenced.
9481
9482 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
9483
9484         * tree-vectorizer.c (destroy_loop_vec_info): Set loop->aux to NULL.
9485         * tree-vect-analyze.c (vect_analyze_loop_form): Set loop->aux.
9486
9487         * tree-vectorizer.h (NITERS_KNOWN_P): New.
9488         * tree-vect-analyze.c (vect_analyze_loop_form): Call NITERS_KNOWN_P
9489         instead of LOOP_VINFO_INT_NITERS to avoid having to geneate loop_info.
9490
9491         * tree-vect-analyze.c (vect_determine_vectorization_factor): Add
9492         dump print.
9493         (vect_analyze_operations): Fix indenetation.  Fix a comment.  Fix a
9494         print message.
9495         (vect_analyze_scalar_cycles): Fix indentation.
9496         (vect_enhance_data_refs_alignment): Fix check in case of peeling.
9497         (vect_mark_relevant): Include phis in relevance analysis.
9498
9499         * tree-vect-transform.c (vect_transform_loop): Add an assert.
9500
9501 2007-04-18  Anatoly Sokolov <aesok@post.ru>
9502
9503         * config/avr/avr.c (ptrreg_to_str): Replace error() with
9504         output_operand_lossage().
9505
9506 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
9507
9508         * tree-vect-transform.c (get_initial_def_for_reduction): Clean away
9509         the unused code for reduction without adjust-in-epilog to simplify the
9510         function.
9511
9512 2007-04-18  Wolfgang Gellerich  <gellerich@de.ibm.com>
9513
9514         * config/s390/s390.h (S390_TDC_POSITIVE_ZERO): New constant.
9515         (S390_TDC_NEGATIVE_ZERO): New constant.
9516         (S390_TDC_POSITIVE_NORMALIZED_NUMBER): New constant.
9517         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): New constant.
9518         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): New constant.
9519         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): New constant.
9520         (S390_TDC_POSITIVE_INFINITY): New constant.
9521         (S390_TDC_NEGATIVE_INFINITY): New constant.
9522         (S390_TDC_POSITIVE_QUIET_NAN): New constant.
9523         (S390_TDC_NEGATIVE_QUIET_NAN): New constant.
9524         (S390_TDC_POSITIVE_SIGNALING_NAN): New constant.
9525         (S390_TDC_NEGATIVE_SIGNALING_NAN): New constant.
9526         (S390_TDC_INFINITY): New constant.
9527         * config/s390/s390.c (s390_canonicalize_comparison): Renamed
9528         UNSPEC_CMPINT to UNSPEC_CCU_TO_INT, added a UNSPEC_CCU_TO_INT-like
9529         optimization for UNSPEC_CCZ_TO_INT.
9530         * config/s390/s390.md ("*TDC_insn_<mode>"): New insn.
9531         ("*ccz_to_int"): New insn.
9532         ("isinf<mode>2"): New insn.
9533         (UNSPEC_CMPINT): Renamed to UNSPEC_CCU_TO_INT.
9534         (UNSPEC_CCU_TO_INT): New constant, replaces UNSPEC_CMPINT.
9535         (UNSPEC_CCZ_TO_INT): New constant.
9536
9537 2007-04-18  Richard Guenther  <rguenther@suse.de>
9538
9539         PR tree-optimization/19431
9540         PR tree-optimization/21463
9541         * tree-pass.h (pass_phiprop): Declare.
9542         * passes.c (init_optimization_passes): New phiprop pass.
9543         * tree-ssa-forwprop.c (struct phiprop_d): New structure.
9544         (phivn_valid_p): New helper function.
9545         (phiprop_insert_phi): Likewise.
9546         (propagate_with_phi): Likewise.
9547         (tree_ssa_phiprop): New propagator propagating loads
9548         through phi nodes if profitable.
9549
9550 2007-04-18  Dorit Nuzman  <dorit@il.ibm.com>
9551
9552         * tree-vect-analyze.c (process_use): New function.
9553         (vect_mark_stmts_to_be_vectorized): Factor out code to process_use.
9554         Check phis in all bbs.
9555         * tree-vectorizer.c (vect_is_simple_use): Remove a no longer relavant
9556         assert.
9557
9558 2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
9559
9560         * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
9561         we use REG_EQUAL.
9562
9563 2007-04-17  Anatoly Sokolov <aesok@post.ru>
9564
9565         PR target/30483
9566         * config/avr/avr.c (ptrreg_to_str): Replace gcc_unreachable() with
9567         error().
9568
9569 2007-04-17  H.J. Lu  <hongjiu.lu@intel.com>
9570
9571         * config/i386/sse.md (sse_vmaddv4sf3): Use register_operand
9572         on "0".
9573         (sse_vmmulv4sf3): Likewise.
9574         (sse2_vmaddv2df3): Likewise.
9575         (sse2_vmmulv2df3): Likewise.
9576
9577 2007-04-17  Zdenek Dvorak  <dvorakz@suse.cz>
9578
9579         PR rtl-optimization/31360
9580         * cfgloopanal.c (target_small_cost, target_pres_cost): Removed.
9581         (target_reg_cost): New.
9582         (init_set_costs): Initialize target_reg_cost.  Add comments
9583         regarding the rationale of the costs.
9584         (global_cost_for_size): Renamed to...
9585         (estimate_reg_pressure_cost): ... and simplify.  Decrease importance
9586         of register pressure.
9587         * tree-ssa-loop-ivopts.c (ivopts_global_cost_for_size): Use
9588         estimate_reg_pressure_cost.  Add number of ivs.
9589         (determine_set_costs): Dump target_reg_cost.
9590         * loop-invariant.c (gain_for_invariant):  Use
9591         estimate_reg_pressure_cost.  Removed n_inv_uses argument.
9592         (best_gain_for_invariant, find_invariants_to_move): Remove
9593         n_inv_uses.
9594         * cfgloop.h (target_small_cost, target_pres_cost): Removed.
9595         (target_reg_cost): Declare.
9596         (global_cost_for_size): Declaration removed.
9597         (estimate_reg_pressure_cost): Declare.
9598
9599 2007-04-17  Peter Bergner  <bergner@vnet.ibm.com>
9600
9601         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Force TDmode
9602         regnos into even/odd register pairs.
9603         * config/rs6000/rs6000.h [SLOW_UNALIGNED_ACCESS]: Treat DDmode and
9604         TDmode similar to the other floating point modes.
9605         [SECONDARY_MEMORY_NEEDED]: Treat DDmode similar to DFmode.
9606         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): New
9607         define_expand's.
9608         (negdd2_fpr, absdd2_fpr, nabsdd2_fpr, negtd2_fpr, abstd2_fpr,
9609         nabstd2_fpr, movdd_hardfloat64_mfpgpr): New define_insn's.
9610         (movdd_hardfloat64): Use TARGET_MFPGPR.
9611
9612 2007-04-17  Bernd Schmidt  <bernd.schmidt@analog.com>
9613
9614         * reload1.c (delete_output_reload): Don't count output in n_inherited.
9615
9616         Revert
9617         2005-01-05  Richard Henderson  <rth@redhat.com>
9618         PR rtl-opt/10692
9619         * reload1.c (do_input_reload): Restrict the optimization deleteing
9620         a previous output reload to RELOAD_FOR_INPUT.
9621
9622 2007-04-17  Dorit Nuzman  <dorit@il.ibm.com>
9623
9624         * tree-vectorizer.h (stmt_vec_info_type): Add enum value
9625         induc_vec_info_type.
9626         (vectorizable_induction): New function declaration.
9627         * tree-vect-transform.c (get_initial_def_for_induction): No need to
9628         check if already vectorized.  Find first place in BB where new stmts
9629         can be inserted.  Takes only one argument.
9630         (vectorizable_induction): New function.
9631         (vect_transform_stmt): Add case for induc_vec_info_type to call
9632         vectorizable_induction.
9633         (vect_transform_loop): Consider phis for vectorization.
9634         * tree-vect-analyze.c (vect_determine_vectorization_factor): Simplify
9635         condition.
9636         (analyze_operations): Call vectorizable_induction when analyzing phis.
9637         Fix comment.
9638         (vect_mark_stmts_to_be_vectorized): Remove redundant checks.
9639         (vect_mark_relevant): Include phis in relevance analysis.
9640         (vect_mark_stmts_to_be_vectorize): Likewise.
9641         * tree-vect-patterns.c (widened_name_p): Remove obsolete asserts.
9642
9643 2007-04-16  Lawrence Crowl  <crowl@google.com>
9644
9645         * doc/invoke.texi (Debugging Options): Add documentation for the
9646         -femit-struct-debug options -femit-struct-debug-baseonly,
9647         -femit-struct-debug-reduced, and
9648         -femit-struct-debug-detailed[=...].
9649
9650         * c-opts.c (c_common_handle_option): Add
9651         OPT_femit_struct_debug_baseonly, OPT_femit_struct_debug_reduced,
9652         and OPT_femit_struct_debug_detailed_.
9653         * c.opt: Add specifications for
9654         -femit-struct-debug-baseonly, -femit-struct-debug-reduced,
9655         and -femit-struct-debug-detailed[=...].
9656         * opts.c (set_struct_debug_option): Parse the
9657         -femit-struct-debug-... options.
9658         * opts.c (matches_main_base, main_input_basename,
9659         main_input_baselength, base_of_path, matches_main_base): Add
9660         variables and functions to compare header base name to compilation
9661         unit base name.
9662         * opts.c (should_emit_struct_debug): Add to determine to emit a
9663         structure based on the option.
9664         (dump_struct_debug) Also disabled function to debug this
9665         function.
9666         * opts.c (handle_options): Save the base name of the
9667         compilation unit.
9668
9669         * langhooks-def.h (LANG_HOOKS_GENERIC_TYPE_P): Define.
9670         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add.
9671         This hook indicates if a type is generic.  Set it by default
9672         to "never generic".
9673         * langhooks.h (struct lang_hooks_for_types): Add a new hook
9674         to determine if a struct type is generic or not.
9675         * cp/cp-tree.h (class_tmpl_impl_spec_p): Declare a C++ hook.
9676         * cp/tree.c (class_tmpl_impl_spec_p): Implement the C++ hook.
9677         * cp/cp-lang.c (LANG_HOOKS_GENERIC_TYPE_P): Override null C hook
9678         with live C++ hook.
9679
9680         * flags.h (enum debug_info_usage): Add an enumeration to describe
9681         a program's use of a structure type.
9682         * dwarf2out.c (gen_struct_or_union_type_die): Add a new parameter
9683         to indicate the program's usage of the type.  Filter structs based
9684         on the -femit-struct-debug-... specification.
9685         (gen_type_die): Split into two routines, gen_type_die and
9686         gen_type_die_with_usage.  gen_type_die is now a wrapper
9687         that assumes direct usage.
9688         (gen_type_die_with_usage): Replace calls to gen_type_die
9689         with gen_type_die_with_usage adding the program usage of
9690         the referenced type.
9691         (dwarf2out_imported_module_or_decl): Suppress struct debug
9692         information using should_emit_struct_debug when appropriate.
9693
9694 2007-04-16  Ian Lance Taylor  <iant@google.com>
9695
9696         PR tree-optimization/31522
9697         * tree-vrp.c (vr_phi_edge_counts): New static variable.
9698         (vrp_initialize): Allocate vr_phi_edge_counts.
9699         (vrp_visit_phi_node): Don't push to infinity if we saw a new
9700         executable edge.  Drop test for all constants.
9701         (vrp_finalize): Free vrp_phi_edge_counts.
9702
9703         * doc/cpp.texi (Common Predefined Macros): Clarify description of
9704         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
9705
9706         * tree-ssa-propagate.c (cfg_blocks_add): Insert blocks with fewer
9707         predecessors at head rather than tail.
9708
9709 2007-04-16  Matthias Klose  <doko@debian.org>
9710
9711         * config/alpha/linux.h (CPP_SPEC): Define.
9712         * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Extend.
9713
9714 2007-04-16  Aldy Hernandez  <aldyh@redhat.com>
9715
9716         * function.h: Remove sequence_stack extern declaration.
9717
9718 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
9719
9720         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Change to 64 on
9721         TARGET_FIDOA.
9722         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Change to 64 if __mfido__ is
9723         defined.
9724
9725 2007-04-16  Anatoly Sokolov <aesok@post.ru>
9726
9727         * config/avr/avr.c (avr_arch_types): Rearranging  array.
9728         (enum avr_arch): Add.
9729         (avr_mcu_types): Use avr_arch enumeration constants instead of
9730         numbers.
9731         * config/avr/avr.h (LINK_SPEC): Simplify.
9732
9733 2007-04-16  Kazu Hirata  <kazu@codesourcery.com>
9734
9735         * config/m68k/m68k.c (m68k_libcall_value,
9736         m68k_function_value): Use macros for register names more.
9737
9738         * config/m68k/m68k.h (FRAME_POINTER_REGNUM): Use A6_REG
9739         instead.
9740         (M68K_REGNAME): Use A6_REG.
9741         * config/m68k/m68k.md (FP_REG): Rename to A6_REG.
9742
9743 2007-04-16  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
9744
9745         PR middle-end/28071
9746         * sched-int.h (struct deps): Split field 'pending_lists_length' into
9747         'pending_read_list_length' and 'pending_write_list_length'.  Update
9748         comment.
9749         * sched-deps.c (add_insn_mem_dependence): Change signature.  Update
9750         to handle two length counters instead of one.  Update all uses.
9751         (flush_pending_lists, sched_analyze_1, init_deps): Update to handle
9752         two length counters instead of one.
9753         * sched-rgn.c (propagate_deps): Update to handle two length counters
9754         instead of one.
9755
9756 2007-04-16  H.J. Lu  <hongjiu.lu@intel.com>
9757
9758         PR target/31582
9759         * config/i386/i386.c (ix86_expand_vec_set_builtin): Make a
9760         copy of source, pass it to ix86_expand_vector_set and return
9761         it as target.
9762
9763 2007-04-16  David Ung  <davidu@mips.com>
9764             Joseph Myers  <joseph@codesourcery.com>
9765
9766         * config/mips/mips.h (PROCESSOR_74KC, PROCESSOR_74KF,
9767         PROCESSOR_74KX, TUNE_74K, GENERATE_MADD_MSUB): Define.
9768         * config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
9769         Add 74K processor information.
9770         * config/mips/mips.md: Include 74k.md.
9771         (cpu): Add 74kc,74kf,74kx.
9772         (ISA_HAS_MADD_MSUB): Change to GENERATE_MADD_MSUB throughout.
9773         * config/mips/74k.md: New.
9774         * doc/invoke.texi (MIPS Options): Document 74K support.
9775
9776 2007-04-16  Dorit Nuzman  <dorit@il.ibm.com>
9777
9778         * tree-vect-analyze.c (vect_analyze_operations): Reorganize calls to
9779         vectorizable_* functions.
9780         * tree-vect-transform.c (vectorizable_call): Add check for
9781         STMT_VINFO_RELEVANT_P, STMT_VINFO_DEF_TYPE and STMT_VINFO_LIVE_P.
9782         (vectorizable_store): likewise.
9783         (vectorizable_conversion): Add check for STMT_VINFO_DEF_TYPE.
9784         Add comments.
9785         (vectorizable_operation, vectorizable_type_demotion): Likewise.
9786         (vectorizable_type_promotion, vectorizable_load): Likewise.
9787         (vectorizable_live_operation, vectorizable_condition): Likewise.
9788         (vectorizable_assignment): Add check for STMT_VINFO_DEF_TYPE and
9789         STMT_VINFO_LIVE_P.
9790         (vect_transform_stmt): Reorganize calls to vectorizable_* functions.
9791
9792 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
9793
9794         * config/m68k/linux.h (FUNCTION_VALUE_REGNO_P): Use macros for
9795         register numbers more.
9796         * config/m68k/m68k.h (STACK_POINTER_REGNUM,
9797         FRAME_POINTER_REGNUM, STATIC_CHAIN_REGNUM,
9798         M68K_STRUCT_VALUE_REGNUM, FUNCTION_VALUE, LIBCALL_VALUE,
9799         FUNCTION_VALUE_REGNO_P): Likewise.
9800         * config/m68k/m68kelf.h (M68K_STRUCT_VALUE_REGNUM,
9801         STATIC_CHAIN_REGNUM): Likewise.
9802         * config/m68k/m68kemb.h (FUNCTION_VALUE_REGNO_P): Likewise.
9803         * config/m68k/netbsd-elf.h (M68K_STRUCT_VALUE_REGNUM,
9804         STATIC_CHAIN_REGNUM, FUNCTION_VALUE_REGNO_P): Likewise.
9805         * config/m68k/m68k.md (FP_REG): New.
9806
9807 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
9808
9809         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Prefer 32-bit
9810         alignment on fido.
9811
9812 2007-04-15  Kazu Hirata  <kazu@codesourcery.com>
9813
9814         * config/i386/i386.c, config/s390/s390.c, config/s390/s390.md,
9815         tree-ssa-loop-niter.c, tree-ssa-structalias.c, tree-vrp.c: Fix
9816         comment typos.
9817
9818 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
9819
9820         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Ignore
9821         cold loops.
9822
9823 2007-04-14  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9824
9825         PR c/31520
9826         * c-decl.c (finish_decl): Grab the type of the decl after the call
9827         to store_init_value.
9828
9829 2007-04-14  Steven Bosscher  <steven@gcc.gnu.org>
9830
9831         * common.opt (fforward-propagate): Fix "Optimization" annotation.
9832
9833 2007-04-14  Jakub Jelinek  <jakub@redhat.com>
9834
9835         PR c++/25874
9836         * omp-low.c (expand_omp_parallel): If child_cfun->cfg, free
9837         dominators, post dominators and cleanup cfg before returning.
9838
9839 2007-04-14  Bernd Schmidt  <bernd.schmidt@analog.com>
9840
9841         * config/bfin/bfin.h (MODES_TIEABLE_P): Allow more modes to be tied.
9842         * config/bfin/bfin.md (movsi_insn): Delete two unused alternatives.
9843
9844 2007-04-14  Kazu Hirata  <kazu@codesourcery.com>
9845
9846         * config.gcc: Recognize fido.
9847         * config/m68k/m68k-devices.def (fidoa): New.
9848         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define
9849         __mfido__.
9850         (FL_FIDOA, TARGET_FIDOA): New.
9851         * config/m68k/m68k.opt (mfidoa): New.
9852
9853 2007-04-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9854
9855         PR middle-end/31322
9856         * dwarf2out.c (output_call_frame_info): Call assemble_external_libcall
9857         when a personality function is used.
9858
9859 2007-04-13  Bob Wilson  <bob.wilson@acm.org>
9860
9861         * config/xtensa/xtensa.c (xtensa_expand_builtin): Use CALL_EXPR_FN.
9862
9863 2007-04-13  Mike Stump  <mrs@apple.com>
9864
9865         * config/darwin-c.c (handle_c_option): Handle -fapple-kext here so
9866         we can...
9867         * config/darwin.opt (fapple-kext): Make C++ only.
9868         * config/darwin.c (darwin_override_options): Remove code to ensure
9869         -fapple-kext is given for C++ only.
9870
9871 2007-04-13  Richard Sandiford  <richard@codesourcery.com>
9872
9873         * config/mips/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
9874         * config/mips/mips.c (override_options): Call
9875         SUBTARGET_OVERRIDE_OPTIONS, if defined.
9876
9877 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9878
9879         * config/i386/i386.opt (msvr3-shlib): Removed.
9880
9881         * doc/invoke.texi: Remove -msvr3-shlib.
9882
9883 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9884
9885         * config/i386/i386.opt (mpopcnt): Replace "popcount" instruction
9886         with "popcnt" instruction.
9887
9888 2007-04-13  Richard Guenther  <rguenther@suse.de>
9889
9890         PR tree-optimization/21258
9891         * tree-vrp.c (compare_case_labels): New helper.
9892         (find_switch_asserts): New function.
9893         (find_assert_locations): Call it for SWITCH_EXPRs.
9894
9895 2007-04-13  Uros Bizjak  <ubizjak@gmail.com>
9896
9897         * config/i386/i386.h (X87_FLOAT_MODE_P): Check for TARGET_80387.
9898         * config/i386/i386.md (*cmpfp0): Remove check for TARGET_80387, this
9899         check is now implied in X87_FLOAT_MODE_P.
9900         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
9901         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
9902         (fix_trunc<mode>_i386_fisttp): Ditto.
9903         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
9904         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
9905         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
9906         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
9907         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
9908         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
9909         (unnamed_splitters): Ditto.
9910         * config/i386/i386.c (function_value_32): Generate FIRST_FLOAT_REG
9911         for X87_FLOAT_MODE_P mode.  Override FIRST_FLOAT_REG with
9912         FIRST_SSE_REG for local functions when SSE math is enabled or
9913         for functions with sseregparm attribute.
9914         (standard_80387_constant_p): Return -1 if mode is not
9915         X87_FLOAT_MODE_P.
9916         (ix86_cc_mode): Assert that scalar mode is not DECIMAL_FLOAT_MODE_P.
9917         (ix86_expand_compare): Ditto.
9918         (ix86_expand_carry_flag_compare): Ditto.
9919         (ix86_expand_int_movcc): Check for SCALAR_FLOAT_MODE_P instead
9920         of FLOAT_MODE_P for cmp_mode and assert that cmp_mode is not
9921         DECIMAL_FLOAT_MODE_P.
9922         (ix86_preferred_output_reload_class): Use X87_FLOAT_MODE_P instead
9923         of SCALAR_FLOAT_MODE_P.
9924         (ix86_rtx_costs) [PLUS] Remove FLOAT_MODE_P and fall through to ...
9925         [MINUS]: ... here.  Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P
9926         checks before FLOAT_MODE_P.
9927         [MULT]: Add SSE_FLOAT_MODE_P and X87_FLOAT_MODE_P checks
9928         before FLOAT_MODE_P.
9929         [DIV]: Ditto.
9930         [NEG]: Ditto.
9931         [ABS]: Ditto.
9932         [SQRT]: Ditto.
9933         [FLOAT_EXTEND]: Use SSE_FLOAT_MODE_P.
9934
9935 2007-04-12  Paolo Bonzini  <bonzini@gnu.org>
9936             Charles Wilson  <libtool@cwilson.fastmail.fm>
9937
9938         * Makefile.in (stamp-as, stamp-collect-ld, stamp-nm): Remove.
9939         (libgcc.mvars): Don't depend on them.
9940         * configure.ac (as, collect-ld, nm): Create from exec-tool.in.
9941         * exec-tool.in: New.
9942
9943 2007-04-12  Brooks Moses  <brooks.moses@codesourcery.com>
9944
9945         * doc/invoke.text (--help): Document --help=common.
9946
9947 2007-04-12  Thomas Neumann  <tneumann@users.sourceforge.net>
9948
9949         * stub-objc.c (objc_build_keyword_decl): Avoid C++ keywords.
9950
9951 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
9952
9953         * Makefile.in (insn-emit.o): Depend on $(INTEGRATE_H).
9954         * genemit.c (main): Emit #include "integrate.h".
9955         * config/mips/mips-protos.h (SYMBOL_HALF): New mips_symbol_type.
9956         (LOADGP_RTP): New mips_loadgp_style.
9957         * config/mips/mips.h: Include config/vxworks-dummy.h.
9958         (TARGET_RTP_PIC): New macro.
9959         (TARGET_USE_GOT): Return true for TARGET_RTP_PIC.
9960         (TARGET_USE_PIC_FN_ADDR_REG): Return true for TARGET_VXWORKS_RTP.
9961         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit function-relative case tables
9962         for TARGET_RTP_PIC.
9963         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Define.  Pass down
9964         -mvxworks-pic when using -mrtp and a PIC option.
9965         * config/mips/mips.c (mips_classify_symbol): Return SYMBOL_GOT_DISP
9966         for RTP PIC.
9967         (mips_symbolic_constant_p, mips_symbolic_address_p)
9968         (mips_symbol_insns): Handle SYMBOL_HALF.
9969         (override_options): Warn about -G and -mrtp being used together.
9970         Initialize mips_lo_relocs[SYMBOL_HALF].
9971         (mips_current_loadgp_style): Return LOADGP_RTP for RTP PIC.
9972         (mips_emit_loadgp): Handle LOADGP_RTP.
9973         (mips_in_small_data_p): Return false for TARGET_VXWORKS_RTP.
9974         * config/mips/mips.md (loadgp_rtp): New insn and splitter.
9975         (tablejump): Handle function-relative case table entries if
9976         TARGET_RTP_PIC.
9977         * config/mips/predicates.md (symbol_ref_operand): New predicate.
9978
9979 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
9980
9981         * config/mips/mips.md (load_call<mode>): Allow any general register.
9982         destination.
9983         (sibcall_value_internal, sibcall_value_multiple_internal)
9984         (call_value_internal, call_value_split, call_value_multiple_internal)
9985         (call_value_multiple_split): Remove constraints from operand 0.
9986
9987 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
9988
9989         * config/mips/mips-protos.h: In comments, refer to loadgp_absolute
9990         rather than loadgp_noshared.
9991         * config/mips/mips.c (mips_emit_loadgp): Use gen_loadgp_absolute
9992         instead of gen_loadgp_noshared.  Use gen_loadgp_newabi instead of
9993         gen_loadgp.
9994         * config/mips/mips.md (loadgp): Rename to...
9995         (loadgp_newabi): ...this.
9996         (loadgp_noshared): Rename to...
9997         (loadgp_absolute): ...this.
9998
9999 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
10000
10001         * config/mips/mips.c (mips_ok_for_lazy_binding_p): Always return
10002         false for locally-binding symbols.
10003         (mips_dangerous_for_la25_p): Check mips_global_symbol_p.
10004
10005 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
10006
10007         * config/mips/mips-protos.h (SYMBOL_GOT_LOCAL): Rename to...
10008         (SYMBOL_GOT_PAGE_OFST): ...this.
10009         (SYMBOL_GOT_GLOBAL): Rename to...
10010         (SYMBOL_GOT_DISP): ...this.
10011         (SYMBOL_GOTOFF_GLOBAL): Rename to...
10012         (SYMBOL_GOTOFF_DISP): ...this.  Update comments accordingly.
10013         * config/mips/mips.c (mips_global_symbol_p): New function.
10014         (mips_symbol_binds_local_p): Likewise.
10015         (mips_classify_symbol): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP
10016         and SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST.  Use
10017         mips_global_symbol_p and mips_symbol_binds_local_p.
10018         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
10019         (override_options): Rename SYMBOL_GOT_GLOBAL to SYMBOL_GOT_DISP,
10020         SYMBOL_GOT_LOCAL to SYMBOL_GOT_PAGE_OFST and SYMBOL_GOTOFF_GLOBAL to
10021         SYMBOL_GOTOFF_DISP.
10022         (mips_ok_for_lazy_binding_p): New function.
10023         (mips_load_call_address, mips_expand_call): Use it.
10024         (mips_dangerous_for_la25_p): Likewise.
10025         * config/mips/mips.md (*xgot_hi<mode>, *xgot_lo<mode>)
10026         (*got_disp<mode>): Use got_disp_operand instead of
10027         global_got_operand.  Use SYMBOL_GOTOFF_DISP instead of
10028         SYMBOL_GOTOFF_GLOBAL.
10029         (*got_page<mode>): Use got_page_ofst_operand instead of
10030         local_got_operand.
10031         * config/mips/predicates.md (const_call_insn_operand): Use
10032         SYMBOL_GOT_DISP instead of SYMBOL_GOT_GLOBAL.
10033         (global_got_operand): Rename to...
10034         (got_disp_operand): ...this and use SYMBOL_GOT_DISP instead of
10035         SYMBOL_GOT_GLOBAL.
10036         (local_got_operand): Rename to...
10037         (got_page_ofst_operand): ...this and use SYMBOL_GOT_PAGE_OFST instead
10038         of SYMBOL_GOT_LOCAL.
10039
10040 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
10041
10042         * config/mips/mips.h (TARGET_SPLIT_CALLS): Check
10043         TARGET_CALL_CLOBBERED_GP.
10044         (TARGET_SIBCALLS): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
10045         (TARGET_USE_GOT, TARGET_CALL_CLOBBERED_GP): New macros.
10046         (TARGET_CALL_SAVED_GP, TARGET_USE_PIC_FN_ADDR_REG): Likewise.
10047         (STARTING_FRAME_OFFSET): Check TARGET_CALL_CLOBBERED_GP instead
10048         of TARGET_ABICALLS && !TARGET_NEWABI.
10049         (MIPS_CALL): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
10050         * config/mips/mips.c (mips_load_call_address): Check
10051         TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
10052         (mips_global_pointer): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
10053         Check TARGET_CALL_SAVED_GP instead of TARGET_NEWABI.
10054         (mips_save_reg_p): Check TARGET_CALL_SAVED_GP instead of
10055         TARGET_ABICALLS && TARGET_NEWABI.
10056         (mips_current_loadgp_style): Check TARGET_USE_GOT instead of
10057         TARGET_ABICALLS.
10058         (mips_expand_prologue): Check TARGET_OLDABI instead of !TARGET_NEWABI.
10059         (mips_expand_epilogue): Check TARGET_CALL_SAVED_GP instead of
10060         TARGET_ABICALLS && TARGET_NEWABI.
10061         (mips_output_mi_thunk): Check TARGET_USE_GOT instead of
10062         TARGET_ABICALLS.  Check TARGET_CALL_SAVED_GP instead of
10063         TARGET_NEWABI.  Use TARGET_USE_PIC_FN_ADDR_REG to decide
10064         whether indirect calls must use $25.
10065         (mips_extra_live_on_entry): Check TARGET_GOT instead of
10066         TARGET_ABICALLS.
10067         * config/mips/mips.md (jal_macro): Check flag_pic and
10068         TARGET_CALL_CLOBBERED_GP instead of TARGET_ABICALLS and TARGET_NEWABI.
10069         (builtin_setjmp_setup, builtin_longjmp): Check TARGET_USE_GOT
10070         instead of TARGET_ABICALLS.
10071         (exception_receiver): Check TARGET_CALL_CLOBBERED_GP instead of
10072         TARGET_ABICALLS && TARGET_OLDABI.
10073         (load_call<mode>): Check TARGET_USE_GOT instead of TARGET_ABICALLS.
10074         (sibcall): In the comment above the define_insn, mention
10075         TARGET_USE_PIC_FN_ADDR_REG instead of TARGET_ABICALLS.
10076         * config/mips/constraints.md (c): Check TARGET_USE_PIC_FN_ADDR_REG
10077         instead of TARGET_ABICALLS.
10078
10079 2007-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
10080
10081         * doc/md.texi (Blackfin family constraints): Document PA and PB.
10082         * config/bfin/bfin.h (CONST_OK_FOR_P): Handle PA and PB.
10083         (MACFLAGS_MATCH_P): New macro.
10084         * config/bfin/bfin.c (print_operand): Handle MACFLAG_IS_M.
10085         (bfin_secondary_reload): Treat EVEN_AREGS and ODD_AREGS like AREGS.
10086         * config/bfin/bfin.md (MACFLAG_IS_M): New constant.  Renumber some of
10087         the other MACFLAG constants.
10088         (sum_of_accumulators, lshrpdi3, ashrpdi3): New patterns.
10089         (flag_machi): Tighten constraints.  Renumber some of the operands.
10090         (flag_machi_acconly): Tighten constraints.  Correct operand numbers in
10091         output template.
10092         (flag_machi_parts_acconly): New pattern.
10093         (flag_macinithi): Tighten constraints.  Allow any accumulator to be
10094         used.
10095         (flag_macinit1hi): Tighten constraints.
10096         (flag_mul_macv2hi_parts_acconly): New pattern.
10097
10098         * config/bfin/lib1funcs.asm (___umulsi3_highpart, __smulsi3_highpart):
10099         Use a more efficient implementation.
10100         * config/bfin/bfin.md (umulsi3_highpart, smulsi3_highpart): Emit
10101         inline sequences when not optimizing for size.
10102
10103         * config/bfin/bfin.md (movhi_low2high, movhi_high2high, movhi_low2low,
10104         movhi_high2low): Delete, merge functionality into...
10105         (packv2hi): ... this pattern.
10106
10107         2007-02-11  Jie Zhang  <jie.zhang@analog.com>
10108         * config/bfin/bfin.opt (msim): New option.
10109         (mcpu=): New option.
10110         * config/bfin/bfin-protos.h (enum bfin_cpu): New.
10111         (bfin_cpu_t): Typedef of enum bfin_cpu.
10112         (bfin_cpu_type): New declaration.
10113         * config/bfin/elf.h (STARTFILE_SPEC): Add support for
10114         -msim and -mcpu= options.
10115         (LIB_SPEC): Likewise.
10116         * config/bfin/bfin.c (bfin_cpu_type): Define.
10117         (bfin_handle_option): Handle -mcpu= option.
10118         * config/bfin/bfin.h (DEFAULT_CPU_TYPE): Define as BFIN_CPU_BF532.
10119         (TARGET_CPU_CPP_BUILTINS): Define __ADSPBF531__, __ADSPBF532__,
10120         __ADSPBF533__ or __ADSPBF537__ according to the cpu type.
10121
10122 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
10123
10124         * config.gcc (*-*-vxworks*): Don't add to tm_files in this stanza.
10125         (arm-wrs-vxworks, mips-wrs-vxworks, powerpc-wrs-vxworks)
10126         (powerpc-wrs-vxworksae): Use ${tm_file}.
10127         (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add svr4.h
10128         after elfos.h.  Remove i386/sysv4.h and add i386/vx-common.h.
10129         * config/i386/vx-common.h: New file.
10130
10131 2007-04-12  Richard Sandiford  <richard@codesourcery.com>
10132
10133         * config/vxworks.h (VXWORKS_STARTFILE_SPEC): Use -l:crt0.o instead
10134         of crt0.o%s.
10135
10136 2007-04-12  Andreas Krebbel  <krebbel1@de.ibm.com>
10137
10138         * config/s390/s390.md ("trunctddd2"): Use TDmode for the target of
10139         ldxtr.
10140
10141 2007-04-12  Douglas Gregor  <doug.gregor@gmail.com>
10142
10143         PR c++/31078
10144         PR c++/31103
10145         * c-common.c (c_build_qualified_type): Set canonical type
10146         appropriately.
10147
10148 2007-04-12  Richard Guenther  <rguenther@suse.de>
10149
10150         * tree-pretty-print.c (dump_generic_node): Print ARRAY_REF
10151         lower bound and element size if lower bound is not zero
10152         or either of the ARRAY_REF operands is set.
10153
10154 2007-04-12  Richard Guenther  <rguenther@suse.de>
10155
10156         PR tree-optimization/24689
10157         PR tree-optimization/31307
10158         * fold-const.c (operand_equal_p): Compare INTEGER_CST array
10159         indices by value.
10160         * gimplify.c (canonicalize_addr_expr): To be consistent with
10161         gimplify_compound_lval only set operands two and three of
10162         ARRAY_REFs if they are not gimple_min_invariant.  This makes
10163         it never at this place.
10164         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
10165
10166 2007-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10167
10168         * pa.c (pa_som_asm_init_sections): Ensure that cfun->machine is not
10169         null before emitting a .nsubspa directive.
10170
10171 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
10172
10173         * tree-ssa-alias.c (dump_mem_ref_stats): Do not call
10174         need_to_partition_p if there are no memory statements in the
10175         function.
10176
10177 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
10178
10179         * tree-data-ref.c (chrec_steps_divide_constant_p): Removed.
10180         (gcd_of_steps_may_divide_p): New function.
10181         (analyze_miv_subscript): Use gcd_of_steps_may_divide_p.
10182
10183 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10184
10185         * reload.c (find_reloads_toplev, find_reloads_address,
10186         find_reloads_address_1, find_reloads_subreg_address): Use rtx_equal_p,
10187         not a pointer equality test, to decide if we need to call
10188         push_reg_equiv_alt_mem.
10189
10190 2007-04-11  Sebastian Pop  <sebastian.pop@inria.fr>
10191
10192         * tree-data-ref.c (affine_function_zero_p, constant_access_functions,
10193         insert_innermost_unit_dist_vector, add_distance_for_zero_overlaps):
10194         New.
10195         (build_classic_dist_vector): Call add_distance_for_zero_overlaps.
10196
10197 2007-04-11  Zdenek Dvorak  <dvorakz@suse.cz>
10198
10199         * tree-data-ref.c (add_multivariate_self_dist): Force the distance
10200         vector to be positive.
10201
10202 2007-04-11  Diego Novillo  <dnovillo@redhat.com>
10203
10204         PR 30735
10205         PR 31090
10206         * doc/invoke.texi: Document --params max-aliased-vops and
10207         avg-aliased-vops.
10208         * tree-ssa-operands.h (get_mpt_for, dump_memory_partitions,
10209         debug_memory_partitions): Move to tree-flow.h
10210         * params.h (AVG_ALIASED_VOPS): Define.
10211         * tree-ssa-alias.c (struct mp_info_def): Remove.  Update all
10212         users.
10213         (mp_info_t): Likewise.
10214         (get_mem_sym_stats_for): New.
10215         (set_memory_partition): Move from tree-flow-inline.h.
10216         (mark_non_addressable): Only clear the set of symbols for the
10217         partition if it exists.
10218         (dump_memory_partitions): Move from tree-ssa-operands.c
10219         (debug_memory_partitions): Likewise.
10220         (need_to_partition_p): New.
10221         (dump_mem_ref_stats): New.
10222         (debug_mem_ref_stats): New.
10223         (dump_mem_sym_stats): New.
10224         (debug_mem_sym_stats): New.
10225         (update_mem_sym_stats_from_stmt): New.
10226         (compare_mp_info_entries): New.
10227         (mp_info_cmp): Call it.
10228         (sort_mp_info): Change argument to a list of mem_sym_stats_t
10229         objects.
10230         (get_mpt_for): Move from tree-ssa-operands.c.
10231         (find_partition_for): New.
10232         (create_partition_for): Remove.
10233         (estimate_vop_reduction): New.
10234         (update_reference_counts): New.
10235         (build_mp_info): New.
10236         (compute_memory_partitions): Refactor.
10237         Document new heuristic.
10238         Call build_mp_info, update_reference_counts,
10239         find_partition_for and estimate_vop_reduction.
10240         (compute_may_aliases): Populate virtual operands before
10241         calling debugging dumps.
10242         (delete_mem_sym_stats): New.
10243         (delete_mem_ref_stats): New.
10244         (init_mem_ref_stats): New.
10245         (init_alias_info): Call it.
10246         (maybe_create_global_var): Remove alias_info argument.
10247         Get number of call sites and number of pure/const call sites
10248         from gimple_mem_ref_stats().
10249         (dump_alias_info): Call dump_memory_partitions first.
10250         (dump_points_to_info_for): Show how many times a pointer has
10251         been dereferenced.
10252         * opts.c (decode_options): For -O2 set --param
10253         max-aliased-vops to 500.
10254         For -O3 set --param max-aliased-vops to 1000 and --param
10255         avg-aliased-vops to 3.
10256         * fortran/options.c (gfc_init_options): Remove assignment to
10257         MAX_ALIASED_VOPS.
10258         * tree-flow-inline.h (gimple_mem_ref_stats): New.
10259         * tree-dfa.c (dump_variable): Dump memory reference
10260         statistics.
10261         Dump NO_ALIAS* settings.
10262         (referenced_var_lookup): Tidy.
10263         (mem_sym_stats): New.
10264         * tree-ssa-copy.c (may_propagate_copy): Return true if DEST
10265         and ORIG are different SSA names for a memory partition.
10266         * tree-ssa.c (delete_tree_ssa): Call delete_mem_ref_stats.
10267         * tree-flow.h (struct mem_sym_stats_d): Define.
10268         (mem_sym_stats_t): Define.
10269         (struct mem_ref_stats_d): Define.
10270         (struct gimple_df): Add field mem_ref_stats.
10271         (enum noalias_state): Define.
10272         (struct var_ann_d): Add bitfield noalias_state.
10273         (mem_sym_stats, delete_mem_ref_stats, dump_mem_ref_stats,
10274         debug_mem_ref_stats, debug_memory_partitions,
10275         debug_mem_sym_stats): Declare.
10276         * tree-ssa-structalias.c (update_alias_info): Update call
10277         sites, pure/const call sites and asm sites in structure
10278         returned by gimple_mem_ref_stats.
10279         Remove local variable IS_POTENTIAL_DEREF.
10280         Increase NUM_DEREFS if the memory expression is a potential
10281         dereference.
10282         Call update_mem_sym_stats_from_stmt.
10283         If the memory references memory, call
10284         update_mem_sym_stats_from_stmt for all the direct memory
10285         symbol references found.
10286         (intra_create_variable_infos): Set noalias_state field for
10287         pointer arguments according to the value of
10288         flag_argument_noalias.
10289         * tree-ssa-structalias.h (struct alias_info): Remove fields
10290         num_calls_found and num_pure_const_calls_found.
10291         (update_mem_sym_stats_from_stmt): Declare.
10292         * params.def (PARAM_MAX_ALIASED_VOPS): Change description.
10293         Set default value to 100.
10294         (PARAM_AVG_ALIASED_VOPS): Define.
10295
10296 2007-04-11  Richard Guenther  <rguenther@suse.de>
10297
10298         PR middle-end/31530
10299         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
10300         a * -b + c as c - a * b if we honor sign dependent rounding.
10301
10302 2007-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10303
10304         * config/bfin/bfin-protos.h (bfin_expand_movmem): Renamed from
10305         bfin_expand_strmov.
10306         * config/bfin/bfin.c (bfin_expand_prologue, bfin_delegitimize_address,
10307         bfin_function_ok_for_sibcall, split_load_immediate): Remove unused
10308         variables.
10309         (initialize_trampoline): Don't use old-style function definition.
10310         (bfin_secondary_reload): Mark IN_P argument as unused.
10311
10312 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
10313
10314         PR tree-optimization/31343
10315         * tree-chrec.h (chrec_zerop): Moved before build_polynomial_chrec.
10316         (build_polynomial_chrec): Return a scalar when the evolution is zero.
10317         * testsuite/gcc.dg/vect/pr31343.c: New.
10318
10319 2007-04-10  Eric Christopher  <echristo@apple.com>
10320
10321         * config/i386/i386.h (X87_FLOAT_MODE_P): New.
10322         * config/i386/i386.md (*cmpfp0): Use.
10323         (*cmpfp_u, *cmpfp_<mode>, *cmpfp_i_i387): Ditto.
10324         (*cmpfp_iu_387, fix_trunc<mode>_fisttp_i386_1): Ditto.
10325         (fix_trunc<mode>_i386_fisttp): Ditto.
10326         (fix_trunc<mode>_i387_fisttp_with_temp): Ditto.
10327         (*fix_trunc<mode>_i387_1, fix_truncdi_i387): Ditto.
10328         (fix_truncdi_i387_with_temp, fix_trunc<mode>_i387): Ditto.
10329         (fix_trunc<mode>_i387_with_temp, *fp_jcc_1_387): Ditto.
10330         (*fp_jcc_2_387, *fp_jcc_5_387, *fp_jcc_6_387): Ditto.
10331         (*fp_jcc_7_387, *fp_jcc_8<mode>_387): Ditto.
10332         (unnamed_splitters): Ditto.
10333         * config/i386/i386.c (output_fix_trunc): Assert that
10334         we're not being passed a TFmode operand.
10335
10336 2007-04-10  Zdenek Dvorak  <dvorakz@suse.cz>
10337
10338         PR tree-optimization/31526
10339         * tree-inline.c (copy_cfg_body): Use last_basic_block instead of
10340         n_basic_blocks to find newly added blocks.
10341
10342 2007-04-10  Uros Bizjak  <ubizjak@gmail.com>
10343
10344         * config/i386/i386.md (fix_trunc<mode>di_sse): Remove "x" from "xm"
10345         alternative.
10346         (fix_trunc<mode>si_sse): Ditto.
10347         (*floatsisf2_mixed, *floatsisf2_sse): Ditto.
10348         (*floatsidf2_mixed, *floatsidf2_sse): Ditto.
10349         (*floatdisf2_mixed, *floatdisf2_sse): Ditto.
10350         (*floatdidf2_mixed, *floatdidf2_sse): Ditto.
10351         (floathi<mode>2): Rename from floathisf2 and floathidf2. Macroize
10352         expander using SSEMODEF mode macro.
10353         (floatsi<mode>2): Rename from floatsisf2 and floashidf2. Macroize
10354         expander using SSEMODEF mode macro.
10355         (*floathi<mode>2_i387): Rename from *floathisf2_i387 and
10356         *floathidf2_i387. Macroize insn using X87MODEF12 mode macro.
10357         (*floatsi<mode>2_i387): Rename from *floatsisf2_i387 and
10358         *floatsidf2_i387. Macroize insn using X87MODEF12 mode macro.
10359         (*floatdi<mode>2_i387): Rename from *floatdisf2_i387 and
10360         *floatdidf2_i387. Macroize insn using X87MODEF12 mode macro.
10361         (float<mode>xf2): Rename from floathixf2, floatsixf2 and floatdixf2.
10362         Macroize insn using X87MODEF mode macro.
10363
10364 2007-04-09  H.J. Lu  <hongjiu.lu@intel.com>
10365
10366         * config/i386/sse.md (sse2_pinsrw): Removed.
10367         (sse2_pextrw): Renamed to ...
10368         (*sse2_pextrw): This.
10369
10370 2007-04-09  Jan Hubicka  <jh@suse.cz>
10371
10372         PR target/27869
10373         * config/i386/sse.md
10374         (sse_vmaddv4sf3, sse_vmmulv4sf3): Remove '%' modifier.
10375         (sse_vmsmaxv4sf3_finite, sse_vmsminv4sf3_finite): Remove.
10376         (sse2_vmaddv2df3, sse2_vmmulv2df3): Remove '%' modifier.
10377         (sse2_vmsmaxv2df3_finite, sse2_vmsminv2df3_finite): Remove.
10378
10379 2007-04-09  Jan Hubicka  <jh@suse.cz>
10380
10381         * tree-ssa-ccp (maybe_fold_offset_to_component_ref): Recurse into
10382         multiple fields of union.
10383
10384 2007-04-09  Zdenek Dvorak  <dvorakz@suse.cz>
10385
10386         * cfgloopmanip.c (create_preheader): Do not use loop_preheader_edge.
10387         (create_preheaders): Check that loops are available.
10388         (fix_loop_structure): Clean up, improve comments.
10389         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa):
10390         Check that loops are available.  Set LOOP_CLOSED_SSA to the loops
10391         state flags.
10392         * tree-scalar-evolution.c (scev_finalize): Clear scalar_evolution_info.
10393         * predict.c (tree_estimate_probability): Do not call
10394         calculate_dominance_info.  Call create_preheaders.
10395         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Only call
10396         rewrite_into_loop_closed_ssa if LOOP_CLOSED_SSA is set in loops state
10397         flags.
10398         * cfgloop.c (loop_preheader_edge): Assert that loops have preheaders.
10399         * cfgloop.h (LOOP_CLOSED_SSA): New constant.
10400         * tree-cfg.c (tree_split_edge): Make an assert more precise.
10401         * tree-ssa-threadedge.c (thread_across_edge): Comment the function
10402         arguments.
10403
10404 2007-04-08  Jan Hubicka  <jh@suse.cz>
10405
10406         * tree.h (maybe_fold_offset_to_component_ref): Declare.
10407         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Export.
10408         * fold-const.c (fold_unary): Use it.
10409
10410 2007-04-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10411
10412         * varasm.c (assemble_variable): Remove call to
10413         lang_hooks.decls.prepare_assemble_variable.
10414         * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): Kill.
10415         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE.
10416         * langhooks.h (lang_hooks_for_decls): Remove
10417         prepare_assemble_variable.
10418
10419 2007-04-08  Mike Stump  <mrs@apple.com>
10420
10421         * config/i386/i386.c: Use inc/dec on Core2.
10422
10423 2007-04-08  Steven Bosscher  <steven@gcc.gnu.org>
10424
10425         * langhooks.c (lhd_tree_inlining_add_pending_fn_decls,
10426         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
10427         lhd_tree_inlining_end_inlining): Remove.
10428         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove then
10429         add_pending_fn_decls, anon_aggr_type_p, start_inlining, and
10430         end_inlining hooks.
10431         * langhooks-def.h (lhd_tree_inlining_add_pending_fn_decls,
10432         lhd_tree_inlining_anon_aggr_type_p, lhd_tree_inlining_start_inlining,
10433         lhd_tree_inlining_end_inlining): Remove prototypes.
10434         (LANG_HOOKS_TREE_INLINING_ADD_PENDING_FN_DECLS,
10435         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
10436         LANG_HOOKS_TREE_INLINING_START_INLINING,
10437         LANG_HOOKS_TREE_INLINING_END_INLINING): Remove.
10438
10439         * c-objc-common.h (LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Do
10440         not set it.
10441
10442 2007-04-08  Anatoly Sokolov <aesok@post.ru>
10443
10444         PR target/29932
10445         * config/avr/predicates.md (io_address_operand): Delete predicate.
10446         (low_io_address_operand): Don't use 'mode' argument.
10447         (higth_io_address_operand): Rename ...
10448         (high_io_address_operand): ... to this. Don't use 'mode' argument.
10449         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
10450         for above change.
10451
10452 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
10453
10454         Revert change removing staticp.
10455
10456 2007-04-07  Anatoly Sokolov <aesok@post.ru>
10457
10458         PR target/30289
10459         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
10460         earlyclobber.
10461
10462 2007-04-07  Bruce Korb  <bkorb@gnu.org>
10463
10464         * c.opt: Add -Wformat-contains-nul.
10465         * c-format.c (set_Wformat):  Set warn_format_contains_nul to the
10466           -Wformat setting.
10467         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
10468         the NUL byte warning.
10469
10470 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
10471
10472         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
10473
10474 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
10475
10476         * tree.c (staticp): No longer use staticp langhook.
10477         * langhooks.c (lhd_staticp): Removed.
10478         * langhooks.h (struct lang_hooks): Remove staticp.
10479         * c-common.c (c_staticp): Remove.
10480         * c-common.h (c_staticp): Ditto.
10481         * langhooks-defs.h (lhd_staticp): Ditto.
10482         (LHD_HOOKS_STATICP): Ditto
10483         * tree.h (gcc_assert_lowered): New macro.
10484
10485 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
10486
10487         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
10488         argument "reliable".
10489         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
10490         Add argument "reliable".  Propagate it through calls.
10491         (infer_loop_bounds_from_undefined):  Derive number of iterations
10492         estimates from references in blocks that do not dominate loop latch.
10493         (gcov_type_to_double_int): New function.
10494         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
10495         and expected_loop_iterations_unbounded.
10496         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
10497         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
10498         * tree-data-ref.c (estimated_loop_iterations): Export.
10499         (get_references_in_stmt): Fix -- do not return addresses of local
10500         objects.
10501         * cfgloop.h (expected_loop_iterations_unbounded,
10502         estimated_loop_iterations): Declare.
10503
10504 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
10505
10506         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
10507
10508 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
10509
10510         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
10511         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
10512         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
10513         Use output_387_reg_move().
10514         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
10515         expander using X87MODEF12 mode macro.
10516         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
10517         choosing register preferences.  Use output_387_reg_move().
10518         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
10519         instead of "x".  Use output_387_reg_move().
10520         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
10521         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
10522         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
10523         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
10524         Use output_387_reg_move().
10525         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
10526         mode macro.
10527         (*truncxf?f_i387 splitter): Ditto.
10528
10529 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
10530
10531         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
10532         LANG_HOOKS_SAFE_FROM_P.
10533         * expr.c (safe_from_p): Remove langhook call.
10534         * langhooks.h (lang_hooks): Remove safe_from_p.
10535         (lhd_safe_from_p): Remove prototype.
10536         * langhooks.c (lhd_safe_from_p): Remove.
10537
10538 2007-04-06  Jan Hubicka  <jh@suse.cz>
10539
10540         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
10541         functions.
10542
10543 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
10544
10545         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
10546         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
10547         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
10548         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
10549         alternative.
10550         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
10551         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
10552
10553 2007-04-05  Richard Henderson  <rth@redhat.com>
10554
10555         * config/alpha/alpha.c (print_operand) [+]: Remove.
10556         (alpha_end_function): Print nop if call at end of function.
10557         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
10558         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
10559         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
10560         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
10561         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
10562         the call pattern. Update peepholes to match.
10563
10564 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
10565
10566         * doc/extend.texi (Other Builtins): Add decimal float variants
10567         of signbit.
10568         * builtins.def: Ditto.
10569         * builtins.c (expand_builtin): Ditto.
10570
10571 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
10572             H.J. Lu  <hongjiu.lu@intel.com>
10573
10574         PR target/31478
10575         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
10576         of V8HImode when calling ix86_binary_operator_ok.
10577         (sse2_pmaddwd): Call ix86_binary_operator_ok.
10578         (sdot_prodv8hi): Operands 1 and 2 must be register.
10579
10580 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
10581
10582         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
10583         initialize align to silence bogus warning.
10584
10585 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
10586
10587         PR middle-end/22156
10588         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
10589         all_no_warning.
10590         (struct sra_walk_fns): Remove use_all parameter from use.
10591         (sra_hash_tree): Handle BIT_FIELD_REFs.
10592         (sra_elt_hash): Don't hash bitfld blocks.
10593         (sra_elt_eq): Skip them in parent compares as well.  Handle
10594         BIT_FIELD_REFs.
10595         (sra_walk_expr): Don't maintain or pass down use_all_p.
10596         (scan_use): Remove use_all parameter.
10597         (scalarize_use): Likewise.  Re-expand assignment to
10598         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
10599         output, and re-scalarize after output.  Don't mark anything
10600         for no warning.
10601         (scalarize_ldst): Adjust.
10602         (scalarize_walk_gimple_modify_statement): Likewise.
10603         (build_element_name_1): Handle BIT_FIELD_REFs.
10604         (instantiate_element): Don't warn for any element whose parent
10605         is used as a whole.
10606         (instantiate_missing_elements_1): Return the sra_elt.
10607         (canon_type_for_field): New.
10608         (try_instantiate_multiple_fields): New.
10609         (instantiate_missing_elemnts): Use them.
10610         (mark_no_warning): Removed.
10611         (generate_one_element_ref): Handle BIT_FIELD_REFs.
10612         (REPLDUP, sra_build_elt_assignment): New.
10613         (generate_copy_inout): Use them.
10614         (generate_element_copy): Likewise.  Handle bitfld differences.
10615         (generate_element_zero): Don't recurse for blocks.  Use
10616         sra_build_elt_assignment.
10617         (generate_one_element_int): Take elt instead of var.  Use
10618         sra_build_elt_assignment.
10619         (generate_element_init_1): Adjust.
10620         (scalarize_use, scalarize_copy): Use REPLDUP.
10621         (scalarize_ldst): Move assert before dereference.
10622         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
10623
10624 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
10625
10626         * regmove.c: Fix unused variable warnings due to previous commit.
10627
10628 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
10629
10630         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
10631         (regmove_bb_head): Remove.
10632         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
10633         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
10634         problems with fixup_match_1.
10635         Don't initialize/free regmove_bb_head.
10636
10637         (reg_is_remote_constant_p): If an insn is in the same basic block
10638         but not before INSN, consider it remote, too.
10639
10640 2007-04-05  Anatoly Sokolov <aesok@post.ru>
10641
10642         PR target/25448
10643         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
10644         DECL_ASSEMBLER_NAME, not the DECL_NAME.
10645
10646 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
10647
10648         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
10649         (CONDITIONAL_REGISTER_USAGE): Likewise.
10650
10651 2007-04-04  Richard Henderson  <rth@redhat.com>
10652
10653         * config/alpha/lib1funcs.asm: Remove unused file.
10654
10655 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
10656
10657         PR other/31356
10658         * opts.c (print_specific_help): Fix --help=<language>
10659         header line.
10660         (common_handle_option): Support --help=common.
10661
10662 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
10663
10664         PR other/31353
10665         * gcc.c (main): Do not run the linker if
10666         print_subprocess_help indicates that it shouldn't be
10667         run.
10668
10669 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
10670
10671         PR doc/31355
10672         * doc/invoke.texi (--help=): Document <languages> value, fix
10673         formatting in tables of values.
10674
10675 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
10676
10677         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
10678         dllimport attribute of virtual methods.
10679
10680 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
10681
10682         * config/score/crti.asm: Change _bss_start to __bss_start.
10683         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
10684         (OUTGOING_REG_PARM_STACK_SPACE) update.
10685         * config/score/score.opt: add options to make backend support
10686         score5, score5u, score7 and score7d.
10687         * config/score/score.md: Likewise.
10688         * config/score/misc.md: Likewise.
10689         * config/score/mac.md: Likewise.
10690         * doc/invoke.texi: Likewise.
10691         * doc/md.texi: update constraints define.
10692
10693 2007-04-03  Richard Henderson  <rth@redhat.com>
10694
10695         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
10696         an appropriate type, use the mode instead.
10697
10698 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
10699
10700         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
10701         Set the default --with-arch setting to mips2.
10702         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
10703         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
10704         (MULTILIB_OSDIRNAMES): Delete.
10705         (MULTILIB_DIRNAMES): Define.
10706         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
10707         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
10708         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
10709         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
10710         VXWORKS_OS_CPP_BUILTINS.
10711         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
10712         (MIPS_DEBUGGING_INFO): Undefine.
10713         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
10714
10715 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
10716
10717         PR middle-end/30704
10718         * fold-const.c (native_encode_real): Encode real.c provided longs
10719         as a series of 32-bit native integers.
10720         (native_interpret_real): Interpret buffer as a series of 32-bit
10721         native integers.
10722
10723 2007-04-03  Richard Guenther  <rguenther@suse.de>
10724
10725         * genpreds.c (write_insn_constraint_len): Write function
10726         optimized for CONSTRAINT_LEN implementation.
10727         (write_tm_preds_h): Output insn_constraint_len inline and
10728         use it for CONSTRAINT_LEN.
10729         (write_insn_preds_c): Don't output insn_constraint_len.
10730         * doc/md.texi (define_register_constraint): Document multi-letter
10731         constraints shall have the same length if they start with the same
10732         letter.
10733
10734 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
10735
10736         PR target/31175
10737         * config/i386/i386.md (isinf<mode>2): Expand only when
10738         TARGET_C99_FUNCTIONS is set.
10739
10740 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
10741
10742         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
10743         (x86_64-*-linux*): Ditto.
10744         * config/i386/i386.opt (mpc): New option.
10745         * config/i386/i386.c (overrride_options): Handle
10746         ix87_precision_string.
10747         * config/i386/crtprec.c: New file.
10748         * config/i386/t-crtpc: Ditto.
10749         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
10750         and -mpc80 options.
10751         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
10752         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
10753         crtprec32.o, crtprec64.o and crtprec80.o.
10754
10755         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
10756         and -mpc80 options.
10757         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
10758
10759 2007-04-02  Eric Christopher  <echristo@apple.com>
10760
10761         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
10762         limitations on darwin.
10763
10764 2007-04-02  Anatoly Sokolov <aesok@post.ru>
10765
10766         PR target/31137
10767         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
10768
10769 2007-04-02  Dave Korn  <dave.korn@artimi.com>
10770
10771         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
10772
10773 2007-04-02  Dave Korn  <dave.korn@artimi.com>
10774
10775         * libgcc2.h (exception_descriptor): Don't forward-declare.
10776         (__get_eh_table_language, __get_eh_table_version): Delete
10777         prototypes of long-dead functions.
10778
10779 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
10780
10781         * ebitmap.h: New file
10782         * ebitmap.c: New file
10783         * Makefile.in (ebitmap.o): New target.
10784
10785 2007-04-01  Jan Hubicka  <jh@suse.cz>
10786
10787         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
10788         before very first instruction.
10789
10790 2007-04-01  Jan Hubicka  <jh@suse.cz>
10791
10792         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
10793         waring on 64bit hosts.
10794         * bitmap.h: Fix typo in bitmap_head_def.
10795
10796 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
10797
10798         PR rtl-optimization/31391
10799         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
10800         into a DELETED_LABEL note, and the label is in an empty basic
10801         block, update BB_END as well as BB_HEAD.
10802
10803 2007-04-01  Richard Henderson  <rth@redhat.com>
10804
10805         PR tree-optimization/31169
10806         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
10807         to varying if the range is outside [0,  prec-1].
10808
10809 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
10810
10811         PR target/31388
10812         * config/mips/mips.md (load_const_gp): New insn.
10813         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
10814         the MIPS16 GP pseudo register if no_new_pseudos.
10815         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
10816
10817 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10818
10819         PR target/31364
10820         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
10821         secureplt.
10822         (call_value): Likewise.
10823
10824 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
10825             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10826
10827         PR 14737
10828         * doc/invoke.texi: (optimization options): Reword description
10829         of -ffast-math. Document its primary purpose.
10830
10831 2007-03-31  Richard Guenther  <rguenther@suse.de>
10832
10833         * omp-low.c (splay-tree.h): Include.
10834         (lookup_decl): Replace splay-tree usage by pointer-map.
10835         (maybe_lookup_decl): Likewise.
10836         (new_omp_context): Likewise.
10837         (delete_omp_context): Likewise.
10838         * gimplify.c (splay-tree.h): Include.
10839         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
10840         pointer-map.
10841         (remap_ssa_name): Likewise.
10842         (remap_decl): Likewise.
10843         (remap_type_1): Likewise.
10844         (remap_type): Likewise.
10845         (copy_body_r): Likewise.
10846         (expand_call_inline): Likewise.
10847         (clone_body): Likewise.
10848         (copy_tree_r): Likewise.
10849         (remap_save_expr): Likewise.
10850         (unsave_r): Likewise.
10851         (unsave_expr_now): Likewise.
10852         (tree_function_versioning): Likewise.
10853         (build_duplicate_type): Likewise.
10854         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
10855         (struct copy_body_data): Replace splay-tree by pointer-map.
10856         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
10857         not $(SPLAY_TREE_H).
10858         (gimplify.o): Depend on $(SPLAY_TREE_H).
10859         (omp-low.p): Likewise.
10860
10861 2007-03-31  Anatoly Sokolov <aesok@post.ru>
10862
10863         * config/avr/predicates.md (even_register_operand,
10864         odd_register_operand): New predicates.
10865         * config/avr/avr.md (movw peephole2): New.
10866         (movw_r peephole2): New.
10867
10868 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
10869
10870         * tree.h (get_signed_or_unsigned_type): New.
10871         * fold-const.c (operand_equal_for_comparison_p): Use
10872         get_signed_or_unsigned_type instead of
10873         lang_hooks.types.signed_or_unsigned_type.
10874         * expr.c (store_expr): Ditto.
10875         * langhooks.c (get_signed_or_unsigned_type): New.
10876         (lhd_signed_or_unsigned_type): New.
10877         * langhooks.h (lhd_signed_or_unsigned_type): New.
10878         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
10879
10880 2007-03-30  Richard Henderson  <rth@redhat.com>
10881
10882         * tree-ssa-loop-ivopts.c: Include target.h.
10883         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
10884         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
10885         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
10886         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
10887
10888 2007-03-30  Richard Henderson  <rth@redhat.com>
10889             Kai Tietz  <kai.tietz@onevision.com>
10890
10891         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
10892         default for 64-bit.
10893         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
10894         (TARGET_64BIT_MS_ABI): New.
10895         (DBX_REGISTER_NUMBER): Handle 64-bit.
10896         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
10897         (LONG_TYPE_SIZE): Force to 32.
10898         (REG_PARM_STACK_SPACE): New.
10899         (OUTGOING_REG_PARM_STACK_SPACE): New.
10900         (REGPARM_MAX, SSE_REGPARM_MAX): New.
10901         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
10902         (STACK_BOUNDARY): Use 128 for 64-bit.
10903         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
10904         Add 64-bit implementation.
10905         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
10906         argument unused.
10907         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
10908         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
10909         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
10910         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
10911         (ix86_handle_cconv_attribute): Don't warn when ignoring if
10912         TARGET_64BIT_MS_ABI.
10913         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
10914         (ix86_pass_by_reference): Likewise.
10915         (ix86_function_value_regno_p): Likewise.
10916         (ix86_build_builtin_va_list): Likewise.
10917         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
10918         (function_arg_advance_ms_64): New.
10919         (function_arg_advance): Call it.
10920         (function_arg_ms_64): New.
10921         (function_arg): Call it.
10922         (function_value_ms_64): New.
10923         (ix86_function_value_1): Call it.
10924         (return_in_memory_ms_64): New.
10925         (ix86_return_in_memory): Call it.
10926         (setup_incoming_varargs_ms_64): New.
10927         (ix86_setup_incoming_varargs): Call it.
10928         (ix86_expand_prologue): Handle 64-bit stack probing.
10929         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
10930         (output_pic_addr_const): Likewise.
10931         (x86_this_parameter): Likewise.
10932         (x86_output_mi_thunk): Likewise.
10933         (x86_function_profiler): Likewise.
10934         (TARGET_STRICT_ARGUMENT_NAMING): New.
10935         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
10936         (TARGET_64BIT_MS_ABI): New.
10937         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
10938         * config/i386/i386.md (allocate_stack_worker): Remove.
10939         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
10940         describe the clobber of eax without a match_scratch.
10941         (allocate_stack_worker_postreload): Remove.
10942         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
10943         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
10944         (allocate_stack_worker_rex64_postreload): Remove.
10945         (allocate_stack): Handle 64-bit.
10946         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
10947         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
10948         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
10949         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
10950         (STANDARD_STARTFILE_PREFIX_1): Likewise.
10951         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
10952         * config.build (x86_64-*-mingw*): New host.
10953         * config.host (x86_64-*-mingw*): New host.
10954         * config.gcc (x86_64-*-mingw*): New target.
10955         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
10956
10957 2007-03-30  Richard Henderson  <rth@redhat.com>
10958             Kai Tietz  <kai.tietz@onevision.com>
10959
10960         * c-pragma.c (struct def_pragma_macro_value): New.
10961         (struct def_pragma_macro): New.
10962         (pushed_macro_table): New.
10963         (dpm_hash, dpm_eq): New.
10964         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
10965         (init_pragma): Install them.
10966         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
10967
10968 2007-03-30  Anatoly Sokolov <aesok@post.ru>
10969
10970         * config/avr/avr.c (avr_override_options): Clear
10971         'flag_delete_null_pointer_checks'.
10972
10973 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
10974
10975         PR c++/26099
10976         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
10977         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
10978         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
10979         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
10980         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
10981         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
10982         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
10983         C++ extensions.
10984         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
10985
10986 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
10987
10988         * regmove.c: Move all of pass_stack_adjustments from here...
10989         * combine-stack-adj.c: ...to this new file.
10990         * Makefile.in: Add rules for combine-stack-adj.o.
10991
10992 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
10993
10994         PR tree-optimization/31383
10995         * tree-data-ref.c (affine_function_equal_p): Do not require the
10996         vectors to have the same length.
10997
10998 2007-03-30  Jan Hubicka  <jh@suse.cz>
10999
11000         PR middle-end/30700
11001         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
11002         availablility; add more sanity checking; ask varpool only about
11003         VAR_DECL.
11004
11005 2007-03-29  Richard Henderson  <rth@redhat.com>
11006
11007         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
11008         to decide, but __SIZEOF_LONG_LONG__.
11009
11010 2007-03-29  Richard Henderson  <rth@redhat.com>
11011
11012         * emutls.c (struct __emutls_array): New.
11013         (emutls_destroy): Use it instead of casting element 0 from void*.
11014         (__emutls_get_address): Likewise.
11015
11016 2007-03-29  Richard Henderson  <rth@redhat.com>
11017
11018         * varasm.c (initializer_constant_valid_p): Don't deny
11019         DECL_DLLIMPORT_P on functions.
11020
11021         * config/i386/cygming.h: Remove function declarations.
11022         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
11023         (ASM_OUTPUT_LABELREF): Remove.
11024         (COMMON_ASM_OP): Remove.
11025         (ASM_OUTPUT_COMMON): Remove.
11026         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
11027         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
11028         (ASM_DECLARE_FUNCTION_NAME): Likewise.
11029         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
11030         Rename from TARGET_ENCODE_SECTION_INFO.
11031         * config/i386/netware.h: Likewise.
11032         * config/i386/i386-protos.h: Update.
11033         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
11034         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
11035         (legitimate_constant_p): Reject dllimports.
11036         (dllimport_map, get_dllimport_decl): New.
11037         (legitimize_dllimport_symbol): New.
11038         (legitimize_address, ix86_expand_move): Use it.
11039         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
11040         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
11041         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
11042         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
11043         * config/i386/predicates.md (constant_call_address_operand): Only
11044         accept symbols; reject dllimport_p symbols.
11045         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
11046         i386_pe_maybe_record_exported_symbol.
11047         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
11048         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
11049         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
11050         trust the setting of DECL_DLLIMPORT_P.
11051         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
11052         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
11053         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
11054         tidy the argument scanning loop.
11055         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
11056         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
11057         (i386_pe_strip_name_encoding): Remove.
11058         (i386_pe_binds_local_p): New.
11059         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
11060         (i386_pe_output_labelref): Remove.
11061         (i386_pe_asm_output_aligned_decl_common): New.
11062         (i386_pe_maybe_record_exported_symbol): Rename from
11063         i386_pe_record_exported_symbol; check for dllexported symbols.
11064
11065 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
11066
11067         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
11068         add comment explaining why vsnprintf cannot be used.
11069
11070 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
11071
11072         PR tree-optimization/30666
11073         * tree.c (build_complex_type): When creating type names for DWARF2
11074         debug info, create TYPE_DECLs for TYPE_NAME instead of
11075         IDENTIFIER_NODEs.
11076         (build_common_tree_nodes_2): Use build_complex_type when building
11077         predefined complex types, to preserve canonical types.
11078
11079 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
11080
11081         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
11082         (noce_get_alt_condition): Look at it to determine whether to
11083         reverse the condition or not.
11084         (noce_get_condition): Substitute the truth for lies.
11085         (noce_find_if_block): Set the then_else_reversed field.
11086
11087 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
11088
11089         * config/fr30/fr30.md (movdi): Do not accept immediates as the
11090         destination of this insn.
11091         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
11092         than calling gen_rtx_SET directly.  Use r0 to hold the value of
11093         'address + 4' rather than a stack based temporary which can be
11094         mis-optimized away.
11095
11096 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
11097
11098         * config/s390/s390.c (s390_secondary_input_reload_class,
11099         s390_secondary_output_reload_class): Functions removed.
11100         (s390_secondary_reload): New function.
11101         (TARGET_SECONDARY_RELOAD): Target macro defined.
11102         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
11103         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
11104         * config/s390/s390.md ("reload_outti", "reload_outdi",
11105         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
11106         "reload_out<mode>"): Expanders removed.
11107         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
11108         "reload<mode>_nonoffmem_out"): Expanders added.
11109
11110 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
11111
11112         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair
11113         action if SRC->DEST replacement failed anyway.
11114
11115 2007-03-28  Mike Stump  <mrs@apple.com>
11116
11117         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
11118         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
11119         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
11120
11121 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
11122
11123         * config.gcc: Accept barcelona as a variant of amdfam10.
11124         * config/i386/i386.c (override_options): Likewise.
11125         * doc/invoke.texi: Likewise.
11126
11127 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
11128
11129         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
11130         offsets for BIT_FIELD_REF and COMPONENT_REF.
11131
11132 2007-03-28  Richard Guenther  <rguenther@suse.de>
11133
11134         * tree.c (is_global_var): Move ...
11135         * tree-flow-inline.h (is_global_var): ... here.
11136         * tree.h (is_global_var): Remove declaration.
11137
11138 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
11139
11140         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
11141         option.
11142         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
11143         * config/i386/i386.c (ix86_tune_features): Initialize new
11144         tuning option.
11145         * config/i386/predicates.md (promotable_binary_operator): Use
11146         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
11147
11148 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
11149
11150         PR target/31380
11151         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
11152
11153 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
11154
11155         * config/fr30/fr30.md (movsi_internal): Change destination
11156         constraint from m to V and add m to the end.
11157
11158 2007-03-28  Christian Bruel  <christian.bruel@st.com>
11159
11160         * config/sh/sh.md (movsi_i): Fix type attribute.
11161
11162 2007-03-28  Christian Bruel  <christian.bruel@st.com>
11163
11164         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
11165         (movsf_ie): Likewise.
11166
11167 2007-03-28  Christian Bruel  <christian.bruel@st.com>
11168
11169         * config.gcc: Add sh4-300 to multilib.
11170         * config/sh/t-mlib-sh4-300: New file.
11171
11172 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
11173
11174         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
11175         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
11176         fix_trunc<mode>di2.
11177         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
11178         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
11179         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
11180         "fixuns_trunctddi2"): Whitespace fix.
11181
11182 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
11183
11184         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
11185         the definition of struct sh_args.
11186         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
11187         CALL_COOKIE_INT_REG_GET): Likewise.
11188
11189 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
11190
11191         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
11192         transformations are applied successfully.
11193
11194 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
11195
11196         * tree.c (tree_contains_struct): Permit 512 tree codes.
11197         * tree.h (tree_contains_struct): Ditto.
11198         (MAX_TREE_CODES): Ditto.
11199         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
11200         SPARE member to store remaining padding bits.
11201
11202 2007-03-27  Anatoly Sokolov <aesok@post.ru>
11203
11204         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
11205         architecture.
11206
11207 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
11208
11209         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
11210         * configure: Regenerate.
11211
11212         * configure: Regenerate using the correct version of autoconf.
11213
11214 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
11215
11216         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
11217         pointer regs.
11218         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
11219         regs to "__SP_L__" and "__SP_H__".
11220
11221 2007-03-27  Richard Guenther  <rguenther@suse.de>
11222
11223         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
11224         computations with it with a HOST_WIDE_INT variable.
11225
11226 2007-03-26  Mike Stump  <mrs@apple.com>
11227
11228         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
11229         objective-c-header, objective-c++-header and objc++-cpp-output
11230         support.
11231         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
11232
11233 2007-03-26  Richard Henderson  <rth@redhat.com>
11234
11235         PR target/31361
11236         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
11237         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
11238         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
11239         IX86_BUILTIN_PSRLQ128): New.
11240         (ix86_init_mmx_sse_builtins): Add them.
11241         (ix86_expand_builtin): Expand them.
11242         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
11243         operand 2 be TImode.
11244         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
11245         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
11246         _mm_srli_epi64): Mark __B const.
11247         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
11248         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
11249         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
11250         new two-vector shift builtins.
11251
11252 2007-03-26  Ian Lance Taylor  <iant@google.com>
11253
11254         PR tree-optimization/31345
11255         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
11256         [+INF, +INF(OVF)] into VARYING.
11257
11258 2007-03-26  Zack Weinberg  <zackw@panix.com>
11259
11260         * gengtype-parse.c: New file.
11261         * gengtype-yacc.y: Delete.
11262         * gengtype-lex.l: Don't include gengtype-yacc.h.
11263         Define YY_DECL and yyterminate appropriately for recursive
11264         descent parser.  yylval is now a string out-parameter to yylex.
11265         (HWS, EOID): New shorthand.
11266         (IWORD): Add a couple more types.
11267         (yylex): Add a setup stanza.  Remove the complex rules for
11268         detecting GTY'ed types and typedefs; replace with simple
11269         keyword detectors.  Adjust everything for the changed
11270         definition of yylval.  Ignore all pp-directives, not just #define.
11271         (yyerror): Delete.
11272         (parse_file): Rename yybegin; do not call yyparse.
11273         (yyend): New.
11274         * gengtype.c (xasprintf): Export again.
11275         (this_file): New.  Use everywhere __FILE__ was being used.
11276         (get_lang_bitmap): Special case types defined in gengtype.c.
11277         (do_typedef, new_structure): Suppress definition of certain types.
11278         (new_structure): Improve diagnostics of duplicate definitions.
11279         Make sure location_s is associated with input.h.
11280         (nreverse_pairs, define_location_structures): New functions.
11281         (main): Improve tagging of kludge types.  Remove old kludges
11282         for input.h types; use define_location_structures.
11283         * gengtype.h: Update prototypes.  Define token codes here.
11284         * Makefile.in: Remove all references to gengtype-yacc.
11285         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
11286         and gengtype.
11287         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
11288         add GTY((skip)) to the field that's only conditionally there.
11289         * doc/install.texi: Document that Bison is no longer required
11290         unless building treelang.
11291
11292         * gengtype.c: Don't include gtyp-gen.h.
11293         (srcdir): Declare here.
11294         (base_files, lang_dir_names): Allocate dynamically.
11295         (gt_files, num_gt_files, num_lang_dirs): New globals.
11296         (measure_input_list, read_input_line, read_input_list)
11297         (set_lang_bitmap): New functions.
11298         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
11299         simplify, relying on read_input_list to set up the bitmaps.
11300         (main): Arguments are no longer unused.  Check for correct number
11301         of command line arguments, set srcdir and srcdir_len, then call
11302         read_input_list, before doing anything else.  No need to worry
11303         about duplicates in main loop.
11304         * configure.ac: Simplify the calculation of all_gtfiles.
11305         Put language tags in there.  Don't set or substitute
11306         all_gtfiles_files_langs or all_gtfiles_files_frags.
11307         * Makefile.in: Revamp the way gengtype is invoked, now that it
11308         takes a file on its command line with a much simpler format.
11309         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
11310         (GTFILES): Remove duplicates and C source files.
11311         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
11312         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
11313         * configure: Regenerate.
11314
11315         * gengtype.h: Remove all type definitions to gengtype.c; leave
11316         only definitions of options_p, type_p, and pair_p as opaque
11317         pointers.  Update prototypes.
11318         * gengtype.c: Many type definitions moved here from gengtype.h.
11319         Consolidate type definitions at the top of the file.
11320         (xvasprintf): Delete.
11321         (xasprintf): Make static.
11322         (create_nested_pointer_option): Add 'next' parameter.
11323         (create_field_all, create_field_at): New functions.
11324         (create_field): Now a thin wrapper around create_field_all.
11325         (create_optional_field): Rename create_optional_field_ and add
11326         line argument.  Original name is now a macro which supplies
11327         __LINE__.
11328         (oprintf): Use vsnprintf directly.
11329         (close_output_files): Use fatal rather than perror/exit.
11330         (note_def_vec, note_def_vec_alloc): Use create_field_at.
11331         (main): Set progname.  Don't use exit.
11332         * gengtype-yacc.y (struct_fields): Use create_field_at.
11333         (option, optionseqopt): Delete.
11334         (optionseq): Consolidate productions from option here so we
11335         can use the first argument to create_option.
11336
11337         * gengtype-lex.l: Distinguish unions from structures in the
11338         token type.  Don't call find_structure; return the tag as a string.
11339         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and
11340         ENT_UNION.  Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is
11341         string.  Reorganize typedef_struct production accordingly.
11342         Use create_nested_ptr_option.
11343         * gengtype.c (create_nested_ptr_option): New function.
11344         * gengtype.h: Declare it.
11345
11346         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
11347         (string_type): Don't declare.
11348         (do_scalar_typedef): Declare.
11349         (create_scalar_type): Update prototype.
11350         * gengtype.c (string_type): Make static.
11351         (scalar_nonchar, scalar_char): New.
11352         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
11353         (resolve_typedef): Use scalar_nonchar for error recovery.
11354         (create_scalar_type): Remove name_len field.  Return scalar_char
11355         or scalar_nonchar as appropriate.
11356         (adjust_field_type): Look at scalar_is_char boolean to decide whether
11357         to use string_type.
11358         (throughout): Use scalar_nonchar instead of calling
11359         create_scalar_type, whenever possible.
11360         (main): Initialize scalar_char and scalar_nonchar before calling
11361         gen_rtx_next.
11362         * gengtype-lex.l: Adjust for removal of second argument to
11363         create_scalar_type.  Use yylval.s instead of yylval.t when
11364         returning SCALAR.
11365         * gengtype-yacc.y: Type of SCALAR is string.  Call
11366         create_scalar_type from type:SCALAR rule.  Adjust for removal of
11367         second argument to create_scalar_type.
11368
11369         * vec.h: Remove all #if IN_GENGTYPE blocks.
11370         Add comment saying that changes may require adjustments to gengtype.
11371         * gengtype.c: Don't include coretypes.h or tm.h.
11372         Add comment to inclusion of errors.h.
11373         (note_def_vec, note_def_vec_alloc): New functions.
11374         * gengtype.h: Declare new functions.
11375         * gengtype-lex.l: Don't include coretypes.h.
11376         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
11377         Delete.
11378         (update_lineno): Remove unnecessary prototype.
11379         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
11380         (VEC rule): Just return VEC_TOKEN.
11381         * gengtype-yacc.y (VEC_TOKEN): New token type.
11382         (type): Add a production for VEC(a,b).
11383         * Makefile.in: Update dependencies.
11384
11385         * gengtype-lex.l: Remove rules for parsing pointer-to-function
11386         typedefs that use the old PARAMS macro.
11387
11388         * gengtype-lex.l: Remove all rules and states relating to yacc
11389         input files.
11390         * gengtype-yacc.y: Similarly.
11391         * gengtype.c (note_yacc_type): Delete function.
11392         * gengtype.h: Update prototypes.
11393
11394 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
11395
11396         * tree-pretty-print.c (dump_generic_node): Report precision of
11397         unnamed integer types.
11398
11399 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
11400
11401         * ifcvt.c (noce_try_store_flag_constants): Don't check
11402         no_new_pseudos here.
11403         (noce_try_store_flag_constants): Don't check no_new_pseudos.
11404         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
11405         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
11406         noce_try_sign_mask): Likewise.
11407         (if_convert): Check no_new_pseudos here.
11408
11409         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
11410         Remove prototypes.
11411         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
11412         (noce_get_condition): Handle new then_else_reversed argument.
11413         (noce_init_if_info): Remove, fold into noce_find_if_block.
11414         (noce_process_if_block): Take a struct noce_if_info as the
11415         argument.  Don't set up one based on ce_if_info.  Update pointer
11416         references accordingly.
11417         (cond_move_process_if_block): Likewise.
11418         (process_if_block): Removed.
11419         (find_if_block): Removed.  Move functionality two new functions,
11420         noce_find_if_block and cond_exec_find_if_block.
11421         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
11422         blocks and the symmetric IF-ELSE-JOIN case.
11423         (cond_exec_find_if_block): Also new function mostly based on old
11424         find_if_block and process_if_block.
11425         (find_if_header): Replace find_if_block call with separately
11426         guarded calls to noce_find_if_block and cond_exec_find_if_block.
11427         (find_cond_trap): Update noce_get_condition call.
11428         (dead_or_predicable): Likewise.
11429
11430 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
11431
11432         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
11433         Remove.
11434         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
11435         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
11436         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
11437         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
11438         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
11439         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
11440         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
11441         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
11442         __builtin_ia32_psrad128 builtins.
11443
11444 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
11445
11446         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
11447         * config/i386/constraints.md
11448         (define_constraint "I"): Use IN_RANGE macro.
11449         (define_constraint "J"): Ditto.
11450         (define_constraint "K"): Ditto.
11451         (define_constraint "M"): Ditto.
11452         (define_constraint "N"): Ditto.
11453         (define_constraint "O"): Ditto.
11454         * config/i386/predicates.md
11455         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
11456         (define_predicate "const_0_to_3_operand"): Ditto.
11457         (define_predicate "const_0_to_7_operand"): Ditto.
11458         (define_predicate "const_0_to_15_operand"): Ditto.
11459         (define_predicate "const_0_to_63_operand"): Ditto.
11460         (define_predicate "const_0_to_255_operand"): Ditto.
11461         (define_predicate "const_1_to_31_operand"): Ditto.
11462         (define_predicate "const_2_to_3_operand"): Ditto.
11463         (define_predicate "const_4_to_7_operand"): Ditto.
11464
11465 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
11466
11467         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
11468         in SImode for save_world.
11469         * config/rs6000/altivec.md (save_world, restore_world): Convert to
11470         LR hard reg.
11471
11472 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
11473
11474         PR tree-optimization/30784
11475         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
11476         BIT_FIELD_REF.
11477
11478 2007-03-25  Revital Eres  <eres@il.ibm.com>
11479
11480         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
11481           Fold movement_possibility function into it.
11482
11483 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
11484
11485         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
11486         (load_macho_picbase_{si,di}): Convert to LR hard reg.
11487         (call_indirect_nonlocal_darwin64): Same.
11488         (call_nonlocal_darwin64): Same.
11489         (call_value_indirect_nonlocal_darwin64): Same.
11490         (call_value_nonlocal_darwin64): Same.
11491         (sibcall_nonlocal_darwin64): Same.
11492         (sibcall_value_nonlocal_darwin64): Same.
11493         (sibcall_symbolic_64): Same.
11494         (sibcall_value_symbolic_64): Same.
11495         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
11496         LR pseudo.
11497         (rs6000_emit_load_toc_table): Same.
11498         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
11499         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
11500         (mull_call): Same.
11501         (divss_call): Same.
11502         (divus_call): Same.
11503         (quoss_call): Same.
11504         (quous_call): Same.
11505         (load_toc_v4_pic_si): Same
11506         (load_toc_v4_PIC_1): Same.
11507         (load_toc_v4_PIC_1b): Same.
11508         (call_indirect_aix{32,64}): Same.
11509         (call_value_indirect_aix{32,64}): Same.
11510         (call): Same.
11511         (call_value): Same.
11512         (call_local{32,64}): Same.
11513         (call_value_local{32,64}): Same.
11514         (call_indirect_nonlocal_aix{32,64}): Same.
11515         (call_nonlocal_aix{32,64}): Same.
11516         (call_value_indirect_nonlocal_aix{32,64}): Same.
11517         (call_value_nonlocal_aix{32,64}): Same.
11518         (call_indirect_nonlocal_sysv<mode>): Same.
11519         (call_nonlocal_sysv<mode>): Same.
11520         (call_value_indirect_nonlocal_sysv<mode>): Same.
11521         (call_value_nonlocal_sysv<mode>): Same.
11522         (sibcall): Same.
11523         (sibcall_local{32,64}): Same.
11524         (sibcall_value_local{32,64}): Same.
11525         (sibcall_nonlocal_aix{32,64}): Same.
11526         (sibcall_value_nonlocal_aix{32,64}): Same.
11527         (sibcall_nonlocal_sysv<mode>): Same.
11528         (sibcall_value): Same.
11529         (sibcall_value_nonlocal_sysv<mode>): Same.
11530
11531 2007-03-24  Paul Brook  <paul@codesourcery.com>
11532
11533         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
11534         * config/arm/linux-eabi.h: Remove legacy syscall hack.
11535
11536 2007-03-24  Richard Henderson  <rth@redhat.com>
11537
11538         * config/ia64/constraints.md: New file.
11539         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
11540         satisfies_constraint_?.
11541         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
11542         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
11543         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
11544         ia64_output_mi_thunk): Likewise.
11545         (ia64_const_ok_for_letter_p): Remove.
11546         (ia64_const_double_ok_for_letter_p): Remove.
11547         (ia64_extra_constraint): Remove.
11548         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
11549         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
11550         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
11551         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
11552         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
11553         EXTRA_MEMORY_CONSTRAINT): Remove.
11554         * config/ia64/ia64.md: Include constriants.md.  Replace
11555         CONST_OK_FOR_? with satisfies_constraint_?.
11556
11557 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
11558             H.J. Lu  <hongjiu.lu@intel.com>
11559
11560         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
11561         DPD or BID name.
11562         (name macros): Use DPD_BID_NAME to convert names properly.
11563
11564         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
11565         decimal floating point format.
11566         (init_floating_libfuncs): Change decimal functions so that they
11567         have a "bid_" prefix if the decimal system uses the BID format,
11568         and "dpd_" prefix if the decimal system uses the DPD format.
11569         (init_interclass_conv_libfuncs): Ditto.
11570         (init_intraclass_conv_libfuncs): Ditto.
11571
11572         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
11573         using the BID format.
11574
11575         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
11576         whether we are using the BID decimal format.
11577         * configure: Regenerate.
11578
11579         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
11580         the compiler has decimal floating point enabled.  Define
11581         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
11582         instead of DPD.
11583
11584         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
11585         using the BID format.
11586
11587         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
11588         whether we are using the BID decimal format.
11589         * configure: Regenerate.
11590
11591         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
11592         the compiler has decimal floating point enabled.  Define
11593         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
11594         instead of DPD.
11595
11596         * doc/install.texi (--enable-decimal-float): Document BID and DPD
11597         options, and that it is enabled for i386/x86_64 systems.
11598
11599         * Makefile.in (enable_decimal_float): New.
11600         (DECNUMFMT): New.
11601         (DECNUMINC): Add  -I$(DECNUMFMT).
11602         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
11603         to $(DECNUMFMT) from $(DECNUM).
11604
11605         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
11606         Substitute enable_decimal_float.
11607         * configure: Regenerated.
11608
11609         PR other/30529
11610         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
11611         unsigned long.
11612
11613         * configure.ac: Enable decimal float for x86_64-*-linux*.
11614         * configure: Regenerated.
11615
11616         PR other/30530
11617         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
11618         decimal128ClearSign to flip and clear the sign bit in decimal128.
11619         (decimal_real_maxval): Set decimal128SetSign to set the sign
11620         bit in decimal128.
11621
11622 2007-03-23  Ian Lance Taylor  <iant@google.com>
11623
11624         * fold-const.c (fold_binary): Correct warning for X - c >= X.
11625
11626 2007-03-23  Ian Lance Taylor  <iant@google.com>
11627
11628         * tree-dump.c (dump_files): Correct comment.
11629
11630 2007-03-23  Ian Lance Taylor  <iant@google.com>
11631
11632         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
11633
11634 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
11635
11636         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
11637         in cfglayout mode.  Don't go into and out of cfglayout mode.
11638         Link the blocks in the order of the constructed traces.
11639         (rest_of_handle_tracer): Adjust call to tracer.
11640         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
11641         Don't go into cfglayout mode.
11642         (rtl_loop_done): Don't go out of cfglayout mode.
11643         * cfglayout.c (relink_block_chain): New function, split out from...
11644         (fixup_reorder_chain): ...here.  Remove redundant checking.
11645         (cfg_layout_finalize): Don't clear the header, footer, and aux
11646         fields here, move the code to do so to relink_block_chain.  Likewise
11647         for free_original_copy_tables.
11648         * rtl.h (tracer): Update prototype.
11649         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
11650         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
11651         mode.  Use relink_block_chain to serialize the CFG according to the
11652         new basic block order.  Move targetm.cannot_modify_jumps_p check from
11653         here...
11654         (gate_handle_reorder_blocks): ...to here.
11655         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
11656         from here...
11657         (gate_duplicate_computed_gotos): ...to here.
11658         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
11659         something always changes when going into and out of cfglayout mode.
11660         Perform an expensive cfg cleanup while going into cfglayout mode.
11661         Always update liveness information on HAVE_conditional_execution
11662         targets.  Reserialize the basic blocks and go out of cfglayout mode.
11663         * reg-stack.c: Include cfglayout.h.
11664         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
11665         the call to reorder_basic_blocks.
11666         * basic-block.h (reorder_basic_blocks): Update prototype.
11667         (relink_block_chain): New prototype.
11668         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
11669
11670 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
11671
11672         * config/mips/mips.md (type, hazard, *movdi_32bit,
11673         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
11674         *movhi_internal, *movqi_internal, *movsf_hardfloat,
11675         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
11676         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
11677         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
11678         applicable.
11679         (movcc): Change first xfer to multi.
11680         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
11681         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
11682         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
11683         config/mips/generic.md: Change reservations using "xfer" to use
11684         "mfc,mtc".
11685         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
11686         using match_operand.
11687         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
11688         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
11689         examining mode.
11690         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
11691
11692 2007-03-22  Richard Henderson  <rth@redhat.com>
11693
11694         * config/i386/i386.c: Remove unnecessary function declarations.
11695         Move targetm definition, and all related macros, to the end of
11696         the file.  Resort some functions to put definitions before uses.
11697         (ix86_attribute_table): Make static.  Move to end of file.
11698         (ix86_gimplify_va_arg): Make static.
11699
11700 2007-03-22  Richard Henderson  <rth@redhat.com>
11701
11702         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
11703         don't increase local_regparm with force_align_arg_pointer check.
11704         (ix86_function_sseregparm): Assert 32-bit.
11705         (type_has_variadic_args_p): New.
11706         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
11707         type_has_variadic_args_p.
11708         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
11709         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
11710         use memset instead.  Do maybe_vaarg check first; skip attribute
11711         tests if true; skip attribute tests for 64-bit.
11712         (construct_container): Remove TARGET_DEBUG_ARG.
11713         (function_arg_advance_32, function_arg_advance_64): Split out ...
11714         (function_arg_advance): ... from here.
11715         (function_arg_32, function_arg_64): Split out ...
11716         (function_arg): ... from here.
11717         (ix86_pass_by_reference): Tidy.
11718         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
11719         (function_value_32): New, from parts of ix86_function_value
11720         and ix86_value_regno.
11721         (function_value_64): New, from parts of ix86_function_value
11722         and ix86_libcall_value.
11723         (ix86_function_value_1): New.
11724         (ix86_function_value, ix86_libcall_value): Use it.
11725         (return_in_memory_32, return_in_memory_64): Split out ...
11726         (ix86_return_in_memory): ... from here.
11727         (ix86_struct_value_rtx): Skip for 64-bit.
11728         (ix86_libcall_value, ix86_value_regno): Remove.
11729         (setup_incoming_varargs_64): Split out ...
11730         (ix86_setup_incoming_varargs): ... from here.
11731         (ix86_va_start): Remove TARGET_DEBUG_ARG.
11732         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
11733         * config/i386/i386-protos.h (ix86_function_value): Remove.
11734         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
11735
11736 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11737
11738         PR other/23572
11739         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
11740         infinities not supported, otherwise emit warning if -Woverflow. On
11741         underflow, emit warning if -Woverflow.
11742         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
11743         and 0 otherwise.
11744         * real.h (real_from_string): Update declaration
11745
11746 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
11747             Richard Henderson  <rth@redhat.com>
11748
11749         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
11750         * calls.c (compute_argument_block_size, expand_call,
11751         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
11752         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
11753         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
11754         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
11755         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
11756         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
11757         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
11758         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
11759         Set to 1.
11760
11761 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
11762
11763         * c-incpath.c (add_sysroot_to_chain): New.
11764         (merge_include_chains): Add sysroot argument.  Call
11765         add_sysroot_to_chain if sysrooted.
11766         (register_include_chains): Update call to merge_include_chains.
11767         * doc/cppopts.texi: Document use of '=' in include directory
11768         arguments.
11769
11770 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
11771
11772         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
11773         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
11774         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
11775         insn pattern using X87MODEF12 mode macro.
11776
11777 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
11778
11779         * regmove.c (regmove_optimize): Use reg_mentioned_p
11780         instead of reg_overlap_mentioned_p for DST.
11781
11782 2007-03-21  Mike Stump  <mrs@apple.com>
11783
11784         * c.opt: Fixup for Objective-C/C++.
11785
11786 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
11787
11788         * explow.c (convert_memory_address): Fold memory reference when
11789         POINTERS_EXTEND_UNSIGNED < 0
11790
11791 2007-03-21  Richard Henderson  <rth@redhat.com>
11792
11793         PR target/31245
11794         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
11795         * config/i386/mmintrin.h (__m64): Likewise.
11796         * config/i386/xmmintrin.h (__m128): Likewise.
11797
11798 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
11799
11800         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
11801         (VXWORKS_OS_CPP_BUILTINS): Define.
11802         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
11803         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
11804
11805 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
11806
11807         * rtl.h (constant_pool_reference_p): Delete.
11808         (find_constant_src): Declare.
11809         * rtlanal.c (find_constant_src): New function.
11810         * simplify-rtx.c (constant_pool_reference_p): Delete.
11811         * config/i386/i386.md: Use find_constant_src instead of
11812         constant_pool_reference_p/avoid_constant_pool_reference pairs.
11813
11814 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
11815
11816         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
11817         * c-cppbuiltin.c (c_cpp_builtins): Define them.
11818
11819 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
11820
11821         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
11822         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
11823         (arm_elf_asm_constructor): Use it.
11824         (arm_elf_asm_destructor): New function.
11825
11826 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
11827
11828         * jump.c (mark_jump_label): Treat SEQUENCE specially.
11829
11830 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
11831
11832         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
11833
11834 2007-03-19  Andrew Haley  <aph@redhat.com>
11835
11836         PR tree-optimization/31264
11837         * tree-vrp.c (register_edge_assert_for_1): Don't look though
11838         VIEW_CONVERT_EXPRs.
11839
11840 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
11841
11842         PR rtl-optimization/30907
11843         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
11844         (fwprop_init): Always call loop_optimizer_initialize.
11845         (fwprop_done): Always call loop_optimizer_finalize.
11846         (fwprop): We always have loop info now.
11847         (gate_fwprop_addr): Remove.
11848         (pass_fwprop_addr): Use gate_fwprop as gate.
11849
11850         PR rtl-optimization/30841
11851         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
11852         df_chain_alloc): Call df_reorganize_refs unconditionally.
11853         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
11854         refs_organized to refs_organized_size.
11855         (df_ref_create_structure): Use refs_organized_size instead of
11856         bitmap_size if refs had been organized, and keep refs_organized_size
11857         up-to-date.
11858         * df.h (struct df_ref_info): Change refs_organized to
11859         refs_organized_size.
11860         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
11861         bitmap_size.
11862
11863 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
11864
11865         * except.c (output_function_exception_table): Do not reference the
11866         EH personality routine for functions that do not require an
11867         exception table.
11868
11869 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
11870
11871         PR c/30762
11872         * c-typeck.c (convert_for_assignment): Call comptypes for
11873         RECORD_TYPE or UNION_TYPE.
11874
11875         PR inline-asm/30505
11876         * reload1.c (reload): Do invalid ASM checking after
11877         cleanup_subreg_operands.
11878
11879 2007-03-19  Jeff Law  <law@redhat.com>
11880
11881         * tree-cfg.c (find_taken_edge): Tighten conditions for
11882         optimizing computed gotos.
11883
11884 2007-03-19  Michael Matz  <matz@suse.de>
11885
11886         * builtins.c (expand_builtin_sync_operation,
11887         expand_builtin_compare_and_swap,
11888         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
11889         correctly.
11890
11891         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
11892         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
11893         for operand 3.
11894
11895 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
11896
11897         * doc/tm.texi: Add brackets around the return type of
11898         TARGET_SECONDARY_RELOAD.
11899
11900 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11901         Richard Guenther  <rguenther@suse.de>
11902
11903         PR tree-optimization/31254
11904         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11905         Use handled_component_p () where appropriate.  Continue
11906         propagating into the rhs if we propagated into an INDIRECT_REF
11907         on the lhs.
11908
11909 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
11910
11911         * config/s390/s390.md (op_type attribute): RRR instruction type added.
11912         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
11913         (xde, xdee): Mode attributes adjusted to support DFP modes.
11914         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
11915         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
11916         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
11917         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
11918         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
11919         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
11920         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
11921         numbers.
11922         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
11923         "movsf"): Insn definitions removed.
11924         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
11925         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
11926         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
11927         definitions added.
11928         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
11929         "reload_in<mode>", "reload_out<mode>"): Expander added.
11930         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
11931         Expander removed.
11932
11933 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
11934
11935         * config/s390/s390.md: Only non-functional changes.  Renamed
11936         FPR mode macro to BFP all over the file.
11937
11938 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
11939
11940         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
11941         (op_type attribute): RRF instruction type added.
11942         (fT0): New mode attribute.
11943         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
11944         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
11945         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new
11946         instruction no secondary memory is needed when moving DFmode values
11947         between GPRs and FPRs.
11948
11949 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
11950
11951         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
11952         inverted and documentation adjusted.
11953         ("mhard-dfp", "msoft-dfp"): New options.
11954         * config/s390/s390.c (s390_handle_arch_option): New architecture
11955         switch: z9-ec.
11956         (override_options): Sanity checks for the new options added.
11957         * config.gcc: New architecture switch: z9-ec.
11958         * config/s390/s390.h (processor_flags): PF_DFP added.
11959         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
11960         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
11961         when the bit is NOT set so remove it from the defaults.
11962
11963 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
11964
11965         * genemit.c (main): Print include statement for dfp.h.
11966         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
11967         is not available.
11968
11969 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
11970
11971         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
11972
11973 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
11974
11975         PR target/31022
11976         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
11977         instead of PATTERN.
11978
11979 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11980
11981         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
11982         attr_length_call, output_call, output_indirect_call): Cleanup
11983         formatting of targetm calls.
11984
11985 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
11986
11987         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
11988
11989 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11990
11991         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
11992         reservation, bypass and anti-bypass descriptions for these
11993         instructions.  Update move patterns.
11994         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
11995         TYPE_FPSTORE.
11996
11997 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
11998
11999         * tree-vect-transform.c (get_initial_def_for_induction): Replace
12000         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
12001         (get_initial_def_for_reduction): Likewise.
12002
12003 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
12004
12005         Fix PR tree-optimization/29922
12006         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
12007         (get_representative): Removed.
12008         (value_dies_in_block_x): Update for rvuse removal.
12009         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
12010         (compute_antic_aux): Handle when PHI nodes appear in
12011         non-single-successors.
12012         (dump_bitmap_of_names): Removed.
12013         (compute_antic_safe): Renamed and removed rvuse calculation.
12014         Calculate only antic safe.
12015         (insert_into_preds_of_block): Remove assert.
12016         (execute_pre): Update for renamed functions.
12017         (defer_or_phi_translate_block): New function.
12018
12019 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
12020
12021         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
12022         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
12023         typos.
12024         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
12025         Follow spelling conventions.
12026
12027         * tree-data-ref.h: Remove the prototype for analyze_array.
12028
12029 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
12030
12031         PR tree-optimization/31041
12032         * tree-vect-transform.c (get_initial_def_for_induction): Call
12033         force_gimple_operand.
12034
12035 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
12036
12037         * ipa-type-escape.c (look_for_casts) : Revert code to use
12038         handled_component_p due to ada test a-numaux.adb.
12039
12040 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
12041
12042         * final.c (final_scan_insn): Alter the condition of a
12043         conditional trap if we have nonstandard CC.
12044
12045 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
12046
12047         * configure.ac: Remove excess quoting from asm line 0 test.
12048         * configure: Rebuilt.
12049
12050 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12051
12052         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
12053         * c-common.c (convert_and_check): Move warning logic to...
12054         (warnings_for_convert_and_check): ...here. Define.
12055         * c-common.h (warnings_for_convert_and_check): Declare.
12056
12057 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12058
12059         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
12060         (output_call): Likewise.
12061
12062 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
12063
12064         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
12065
12066 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
12067
12068         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
12069
12070 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
12071
12072         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
12073         opteron, athlon-64 and athlon-fx processor_alias_table entries.
12074
12075 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
12076
12077         PR tree-optimization/31183
12078         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
12079         Use double_int instead of unsigned int for representing access_strides.
12080         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
12081
12082 2007-03-16  Richard Guenther  <rguenther@suse.de>
12083
12084         PR tree-optimization/31146
12085         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
12086         to allow recursion of forward_propagate_addr_expr.
12087         (forward_propagate_addr_into_variable_array_index): Likewise.
12088         (forward_propagate_addr_expr): Likewise.
12089         (tree_ssa_forward_propagate_single_use_vars): Likewise.
12090         (forward_propagate_addr_expr_1): Recurse on simple copies
12091         instead of propagating into them.  Do so for useless conversions
12092         as well.
12093         (forward_propagate_addr_expr): Clean up unused statements after
12094         recursion.
12095
12096 2007-03-16  Richard Guenther  <rguenther@suse.de>
12097
12098         * builtins.c (expand_builtin_cexpi): Use the right argument
12099         for the expansion via cexp.
12100
12101 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
12102
12103         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
12104         * configure: Rebuilt.
12105
12106 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
12107
12108         PR debug/29906
12109         * dwarf2out.c (force_type_die): Adjust comment.
12110         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
12111
12112 2007-03-15  DJ Delorie  <dj@redhat.com>
12113
12114         * config/frv/predicates.md (minmax_operator): Don't check operands
12115         here.
12116
12117 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
12118
12119         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
12120         Update constant estimates of number of iterations.
12121         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
12122         argument renamed to "realistic".
12123         (compute_estimated_nb_iterations): Removed.
12124         (record_niter_bound): New function.
12125         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
12126         call record_nonwrapping_iv with upper = false.
12127         (infer_loop_bounds_from_signedness): Pass upper argument to
12128         record_nonwrapping_iv.
12129         (estimate_numbers_of_iterations_loop): Do not call
12130         compute_estimated_nb_iterations.  Record estimate based on profile
12131         information.  Initialize the constant estimates of number of
12132         iterations.
12133         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
12134         estimates.
12135         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
12136         number of iterations is too small.
12137         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
12138         (EST_NOT_AVAILABLE): Removed.
12139         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
12140         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
12141         fields.
12142
12143 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
12144
12145         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
12146         Handle NE_EXPR guards.
12147
12148 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12149
12150         PR c++/24924
12151         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
12152         Set also -pedantic-errors by default for the  preprocessor unless
12153         -fpermissive is given.
12154
12155 2007-03-15  Richard Guenther  <rguenther@suse.de>
12156
12157         PR middle-end/29719
12158         PR middle-end/31161
12159         * builtins.c (expand_builtin_cexpi): As a fallback if we
12160         don't have builtins for sincos or cexp create a function
12161         declaration for cexp and expand to a call to that.
12162         (expand_builtin_int_roundingfn): Always fall
12163         back to floor/ceil and its variants even if they may be
12164         not available.
12165
12166 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
12167
12168         PR middle-end/31159
12169         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
12170         jump tables, move the call to delete_dead_jumptables from here...
12171         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
12172         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
12173         don't allow merging of blocks that try_redirect_by_replacing_jump
12174         also does not handle when not optimizing.
12175
12176 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
12177             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12178
12179         * config/i386/i386.md (x86_sahf_1): Correctly handle
12180         HAVE_AS_IX86_SAHF.
12181
12182 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
12183
12184         PR target/31167
12185         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
12186         x86_64_general_operand as operand[2] predicate.  Remove "iF"
12187         from operand constraints and use "e" constraint instead.
12188         (*subti3_1, *subti3_1 splitter): Ditto.
12189         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
12190         operand[1] predicate.
12191
12192 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
12193
12194         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
12195         arrays, multiply the access strides by the size of the sub-array.
12196         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
12197
12198 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
12199
12200         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
12201         the configured assembler supports the sahf mnemonic.
12202         * configure: Regenerate.
12203         * config.in: Regenerate.
12204
12205         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
12206         emit "sahf" or ".byte\t0x9e" as asm template.
12207
12208 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
12209
12210         PR 31018
12211         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
12212         option to replace hard coded TARGET_xxx in md file.
12213         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
12214         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
12215         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
12216         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
12217         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
12218         (X86_TUNE_NOT_VECTORMODE): Ditto.
12219         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
12220         (TUNE_AVOID_VECTOR_DECODE): Ditto.
12221         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
12222         (TUNE_SLOW_IMUL_IMM8): Ditto.
12223         (TUNE_MOVE_M1_VIA_OR): Ditto.
12224         (TUNE_NOT_UNPAIRABLE): Ditto.
12225         (TUNE_NOT_VECTORMODE): Ditto.
12226
12227         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
12228         options.
12229
12230         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
12231         tuning options instead of hard coded TARGET_xxx.
12232         (fix ssemode peephole2's): Ditto.
12233         (imul peephole2's): Ditto.
12234         (movsi_or): Ditto.
12235         (movdi_or_rex64): Ditto.
12236         (move peephole2): Ditto.
12237         (not peephole2's): Ditto.
12238
12239 2007-03-14  Dirk Mueller  <dmueller@suse.de>
12240
12241         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
12242         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
12243         * c-parser.c (c_parser_if_body): Always add an empty statement in case
12244         of empty body.
12245         * c-parser.c (c_parser_do_statement): Warn about empty body in
12246         do/while statement.
12247         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
12248         * doc/invoke.texi (-Wempty-body): Update documentation.
12249
12250 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12251
12252         PR c/21438
12253         * c-common.h (warn_for_div_by_zero): Declare.
12254         * c-common.c (warn_for_div_by_zero): Define.
12255         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
12256         warning.
12257
12258 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
12259
12260         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
12261         to PREFIX and STANDARD_PREFIX.
12262
12263 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
12264             Phil Edwards  <phil@codesourcery.com>
12265
12266         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
12267         (__gthread_once_t): Remove busy field for RTPs.
12268         (__GTHREAD_ONCE_INIT): Update accordingly.
12269
12270 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
12271
12272         * doc/invoke.texi: Document VxWorks options.
12273
12274 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
12275
12276         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
12277
12278 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
12279
12280         PR tree-optimization/30590
12281         * tree-nrv.c (tree_nrv): Check for the partial update of the
12282         return value.
12283
12284 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
12285
12286         * flags.h (flag_random_seed): Remove declaration, in favor of...
12287         * toplev.h (get_random_seed, set_random_seed): ... these.
12288         * tree.c (get_file_function_name): Use the former.
12289         * opts.c (common_handle_option): Use the latter.
12290         * toplev.c
12291
12292 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
12293
12294         PR middle-end/31127
12295         * cse.c (cse_find_path): Do not bail out if a basic block that
12296         we already visited now becomes part of a path that starts at a
12297         different basic block.  Just disallow this, to make sure we
12298         visit each basic block at most once.
12299
12300 2007-03-13  Jan Hubicka  <jh@suse.cz>
12301
12302         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold
12303         attributes, when profile esitmate is present, calls with very low
12304         frequency are cold.
12305
12306 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
12307
12308         PR tree-optimization/30730
12309         PR tree-optimization/26900
12310         * tree-ssa-loop-niter.c: Include gmp.h.
12311         (bounds): New type.
12312         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
12313         split_to_var_and_offset, determine_value_range,
12314         bound_difference_of_offsetted_base, refine_bounds_using_guard,
12315         bound_difference, bounds_add, bounds_negate,
12316         number_of_iterations_ne_max, dump_affine_iv): New functions.
12317         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
12318         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
12319         difference of initial and final value of control iv to validate
12320         results.
12321         (number_of_iterations_cond): Add loop parameter.  Determine bounds
12322         on the difference of the extremes of the control iv.  Add dumps.
12323         (expand_simple_operations): Handle phi nodes.
12324         (simplify_using_initial_conditions): Do not record used conditions.
12325         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
12326         Do not set additional_info.
12327         (implies_nonnegative_p, implies_ge_p): Removed.
12328         (derive_constant_upper_bound): Do not use parameter `additional'.
12329         (record_estimate): Parameter `additional' removed.  Parameter
12330         `i_bound' added.  Do not call derive_constant_upper_bound.
12331         (record_nonwrapping_iv): Use derive_constant_upper_bound to
12332         bound the number of iterations estimate.
12333         (estimate_numbers_of_iterations_loop): Pass the estimate from
12334         the number of iterations analysis to record_estimate.
12335         * tree.h (multiple_of_p): Declare.
12336         * tree-scalar-evolution.c (expression_expensive_p): Removed.
12337         (scev_const_prop): Do not check expression_expensive_p.
12338         * fold-const.c (multiple_of_p): Exported.
12339         * double-int.c (double_int_mask): Exported.
12340         * double-int.h (double_int_mask): Declare.
12341         * tree-flow.h (struct tree_niter_desc): Removed additional_info
12342         field.  Added max field.
12343
12344 2007-03-13  David Taylor  <taylor@candd.org>
12345
12346         PR driver/12448:
12347         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
12348         default -MQ.
12349
12350 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12351
12352         PR target/31123
12353         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
12354         two unamed patterns.
12355
12356 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
12357
12358         * config/i386/i386.opt (mcx16, msahf): New options.
12359         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
12360         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
12361
12362         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
12363         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
12364         Output -mcx16 and -msahf options when corresponding bit is set.
12365
12366         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
12367         and -msahf options.
12368
12369 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
12370
12371         * configure.ac: Test for assembler tolerance to # 0 "".
12372         * configure, config.in: Rebuilt.
12373         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
12374
12375 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
12376
12377         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
12378
12379         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
12380         (handle_syscall): Handle direct system calls.
12381         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
12382
12383 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
12384
12385         * doc/invoke.texi: Fix cpp.info cross-reference.
12386         * doc/passes.texi: Fix gcc.info cross-reference.
12387
12388 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
12389
12390         PR tree-optimization/30835
12391         * lambda-code.c (can_convert_to_perfect_nest): Check whether
12392         bb_for_stmt is not NULL before accessing it.
12393
12394 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
12395
12396         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
12397         some multilibs.
12398
12399 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
12400
12401         PR 30635
12402         * doc/install.texi: Document --enable-stage1-languages
12403
12404 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
12405
12406         * tree-pass.h (pass_into_cfg_layout_mode,
12407         pass_outof_cfg_layout_mode): Declare.
12408         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
12409         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
12410         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
12411         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
12412
12413 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
12414
12415         * c-decl.c (warn_variable_length_array): New function.
12416         Refactored from grokdeclarator to handle warn_vla
12417         and handle unnamed array case.
12418         (grokdeclarator): Refactored VLA warning case.
12419         * c.opt (Wvla): New flag.
12420         * doc/invoke.texi (Wvla): New warning.
12421
12422 2007-03-12  Richard Henderson  <rth@redhat.com>
12423
12424         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
12425         (TARGET_SECTION_TYPE_FLAGS): New.
12426
12427 2007-03-12  Richard Henderson  <rth@redhat.com>
12428
12429         * config/darwin.c (machopic_reloc_rw_mask): New.
12430         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
12431         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
12432
12433 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
12434
12435         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
12436         * cppdefault.h (cpp_PREFIX): Document.
12437         (cpp_PREFIX_len): Likewise.
12438         (cpp_EXEC_PREFIX): New variable.
12439         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
12440         * c-incpath.c (add_standard_paths): Correct logic for relocating
12441         paths within prefix.
12442
12443 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
12444
12445         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
12446         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
12447         mode macro.
12448         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
12449         fix_truncdfdi_sse using SSEMODEF mode macro.
12450         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
12451         fix_truncdfsi_sse using SSEMODEF mode macro.
12452         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
12453         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
12454
12455 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
12456
12457         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
12458         elfos.h to tm_file.
12459
12460 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
12461
12462         * tree.h : Add multiple_of_p declaration.
12463         * fold-const.c (multiple_of_p): Make multiple_of_p public.
12464         * ipa-type-escape.c (results_of_malloc): Redundant.
12465         (visited_stmts): New. Visited stmt for walk_use_def_chains.
12466         (cast_type): Extended with new members.
12467         (check_cast): Returns cast_type.
12468         (cast): New structure for data of walk_use_def_chains.
12469         (is_malloc_result, is_cast_from_non_pointer_1,
12470         is_cast_from_non_pointer,
12471         is_array_access_through_pointer_and_index): New functions.
12472         (look_for_casts): Returns cast types.
12473         (check_call): Returns void.
12474         (okay_pointer_operation): Use support of pointer plus index,
12475         pointer plus constant and allow all multiplications.
12476
12477 2007-03-11  Richard Guenther  <rguenther@suse.de>
12478
12479         PR tree-optimization/31115
12480         * tree-vrp.c (extract_range_from_binary_expr): Make sure
12481         the shift count is positive and non-anti-range for RSHIFT_EXPR.
12482         A shift count of zero is not special as with *_DIV_EXPR.
12483         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
12484         direction.
12485
12486 2007-03-11  Ian Lance Taylor  <iant@google.com>
12487
12488         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
12489         the *_DIV_EXPR codes correctly with overflow infinities.
12490
12491 2007-03-11  Ira Rosen  <irar@il.ibm.com>
12492
12493         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
12494         indicate success/failure of the analysis. Add negation to subtrahend
12495         in case of subtraction. Fail if both operands contain constants.
12496         (create_data_ref): Fail if analyze_offset fails.
12497
12498 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
12499
12500         * config/i386/i386.md (frndintxf2): Rename to ...
12501         (rintxf2): ... this. Remove expander having same name.
12502         (rintsf2, rintdf2): Implement using SSEMODEF macro.
12503         (roundsf2, rounddf2): Ditto.
12504         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
12505         (lround<mode>di2, lround<mode>si2): Ditto.
12506
12507 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
12508
12509         * lower-subreg.c: Include except.h.
12510         (decompose_multiword_subregs): Verify that the only control flow
12511         insns we can split are loads to multi-words pseudos.
12512         Handle breaking such blocks after splitting, instead of calling
12513         find_many_sub_basic_blocks.
12514
12515         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
12516         on the new basic block.  Add a lengthy comment explaining why we
12517         thought this was necessary.
12518         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
12519
12520 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
12521
12522         PR c++/30924
12523         * tree.c (walk_type_fields): Recurse into the element type of
12524         ARRAY_TYPEs if there is a pointer set.
12525
12526 2007-03-10  Dirk Mueller  <dmueller@suse.de>
12527
12528         * c-common.c (warn_logical_operator): Fix condition.
12529
12530 2007-03-10  Tobias Schl�ter  <tobi@gcc.gnu.org>
12531
12532         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
12533         quotation mark.
12534         * config/darwin.c (machopic_select_section): Remove superfluous
12535         argument in call to categorize_decl_for_section.  Remove unused
12536         variable shlib.
12537
12538 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
12539
12540         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
12541         defined.
12542         * configure: Regenerate.
12543
12544 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
12545
12546         PR target/31101
12547         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
12548         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
12549         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
12550         Add LABEL_NUSES to emitted label.
12551         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
12552         branch probability value to emitted jump insn.
12553         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
12554         Do not check life information and do not re-arrange input operands
12555         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
12556
12557 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
12558
12559         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
12560         the change of decode_asm_operands.
12561
12562 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
12563
12564         * mode-switching.c (create_pre_exit): Skip blockage insn.
12565
12566 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
12567
12568         * tree-pass.h (TODO_update_smt_usage): Remove.
12569         Update all users.
12570         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12571         argument SOME.
12572         Update all users.
12573
12574 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12575
12576         * pa.c (attr_length_call): Revise condition for long
12577         pc-relative branch.
12578         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long
12579         local calls on the SOM target.  Don't use "LONG_PIC_PCREL" call
12580         sequence on SOM target.
12581
12582 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
12583
12584         * gcc.c: Document %{, in big comment at top.
12585         (input_suffix_matches): Remove special handling for .s and
12586         .S.
12587         (input_spec_matches): New.
12588         (handle_braces): Handle %{,.
12589         (validate_switches): ',' indicates a value which is not a switch.
12590         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
12591         to detect assembler input.
12592         * config/i386/sol2.h (CPP_SPEC): Likewise.
12593         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
12594         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12595         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
12596         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12597         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
12598         -m64 causes deployment target to default to 10.5.
12599         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
12600
12601 2007-03-09  Richard Henderson  <rth@redhat.com>
12602
12603         PR target/26090
12604         * target.h (targetm.asm.out.reloc_rw_mask): New.
12605         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
12606         (TARGET_ASM_OUT): Use it.
12607         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
12608         * varasm.c (categorize_decl_for_section): Remove shlib argument;
12609         use the new reloc_rw_mask target hook instead.
12610         (default_section_type_flags_1): Merge into...
12611         (default_section_type_flags): ... here.
12612         (decl_readonly_section_1): Merge into...
12613         (decl_readonly_section): ... here.
12614         (default_elf_select_section_1): Merge into...
12615         (default_elf_select_section): ... here.
12616         (default_unique_section_1): Merge into...
12617         (default_unique_section): ... here.
12618         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
12619         (default_select_rtx_section): Use it.
12620         (default_elf_select_rtx_section): Likewise.
12621         * output.h: Update to match.
12622         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
12623         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
12624         (TARGET_ASM_RELOC_RW_MASK): New.
12625         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
12626         to categorize_decl_for_section.
12627         (x86_64_elf_unique_section): Likewise.
12628         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
12629         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
12630         (TARGET_ASM_RELOC_RW_MASK): New.
12631         * config/ia64/ia64.c (ia64_rwreloc_select_section,
12632         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
12633         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
12634         (TARGET_RWRELOC): Remove.
12635         (ia64_section_type_flags): Adjust call to default_section_type_flags.
12636         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
12637         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
12638         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
12639         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
12640         (rs6000_xcoff_select_section): Use decl_readonly_section.
12641         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
12642         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
12643         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
12644         (TARGET_SECTION_TYPE_FLAGS): Remove.
12645         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
12646
12647 2007-03-09  Roger Sayle  <roger@eyesopen.com>
12648
12649         * fold-const.c (fold_comparison): Remove compile-time evaluation of
12650         complex constant equality/inequality comparisons for here.
12651         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
12652         known at compile-time or can be simplified to a scalar comparison.
12653         (fold_relational_const): Move compile-time evaluation of complex
12654         constant equality/inequality comparisons to here.
12655
12656 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
12657
12658         PR rtl-optimization/30643
12659         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
12660         dest_addr_elt.
12661         (fold_rtx): Recurse, like before 2006-11-03.
12662
12663 2007-03-09  DJ Delorie  <dj@redhat.com>
12664
12665         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
12666         m32c-pragma.o.
12667
12668 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
12669
12670         PR tree-optimization/30375
12671         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
12672         LHS of statements is not the same.
12673         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
12674
12675 2007-03-09  Chao-ying Fu  <fu@mips.com>
12676
12677         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
12678         REV 2.
12679         * doc/invoke.texi (-mdspr2): Document new option.
12680         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
12681         New unspec for DSP REV 2.
12682         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
12683         these instructions are extended in DSP REV 2.
12684         (mips-dspr2.md): Include.
12685         * config/mips/mips.opt (mdspr2): New option.
12686         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
12687         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
12688         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
12689         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
12690         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
12691         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
12692         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
12693         and 2 builtins.
12694         (bdesc_map): Add one field of unsupported_target_flags.
12695         (bdesc_arrays):  Update entries to have extra fields.  Add
12696         dsp_32only_bdesc.
12697         (mips_init_builtins): Initialize new function types.
12698         Check unsupported_target_fileds to filter out builtins.
12699         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
12700         TARGET_DSPR2.
12701         (ASM_SPEC): Pass mdspr2 to the assembler.
12702         * config/mips/mips-dspr2.md: New file.
12703
12704 2007-03-09  Sa Liu  <saliu@de.ibm.com>
12705
12706         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
12707
12708 2007-03-09  Ian Lance Taylor  <iant@google.com>
12709
12710         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
12711         argument) like -Wstrict-overflow=2.
12712         * doc/invoke.texi (Warning Options): Update documentation.
12713
12714 2007-03-09  Dirk Mueller  <dmueller@suse.de>
12715
12716         PR c++/17946
12717         * doc/invoke.texi (-Wlogical-op): Document.
12718         * common.opt (-Wlogical-op): New.
12719         * c-common.h (warn_logical_operator): Declare.
12720         * c-common.c (warn_logical_operator): Define.
12721         * c-typeck.c (parser_build_binary_op): Call
12722         warn_logical_operator.
12723
12724 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
12725
12726         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
12727         * final.c (final_scan_insn): Test for non-"" file name.
12728
12729 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
12730
12731         * doc/loop.texi: Document the Omega linear constraints solver.
12732         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
12733         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
12734         omega-hash-table-size, omega-max-keys, and
12735         omega-eliminate-redundant-constraints.
12736         * tree-pass.h (pass_check_data_deps): Declared.
12737         * omega.c: New.
12738         * omega.h: New.
12739         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
12740         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
12741         pass_check_data_deps): New.
12742         * tree-data-ref.c (init_data_ref): Remove declaration.
12743         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
12744         (analyze_array): Renamed init_array_ref, move up initializations.
12745         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
12746         Removed arguments that are set to NULL.
12747         (analyze_indirect_ref): Correct indentation, correct call to
12748         init_pointer_ref.
12749         (object_analysis): Call init_array_ref instead of analyze_array.
12750         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
12751         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
12752         of DR_ACCESS_FNS_ADDR.
12753         (init_omega_eq_with_af, omega_extract_distance_vectors,
12754         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
12755         ddr_consistent_p): New.
12756         (compute_affine_dependence): Check consistency of ddrs when
12757         flag_check_data_deps is passed.
12758         (analyze_all_data_dependences): Uncomment.
12759         (tree_check_data_deps): New.
12760         * tree-data-ref.h: Include omega.h.
12761         (DR_ACCESS_FNS_ADDR): Removed.
12762         (data_dependence_relation): Add inner_loop.
12763         (DDR_INNER_LOOP): New.
12764         * common.opt (fcheck-data-deps): New.
12765         * tree-flow.h (tree_check_data_deps): Declare.
12766         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
12767         (OBJS-common): Depend on omega.o.
12768         (omega.o): Define.
12769         * passes.c (pass_check_data_deps): Scheduled.
12770         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
12771         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
12772         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
12773         PARAM_VECT_MAX_VERSION_CHECKS,
12774         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
12775
12776 2007-03-09  Richard Guenther  <rguenther@suse.de>
12777
12778         PR tree-optimization/30904
12779         PR middle-end/31058
12780         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
12781         the same way as *_DIV_EXPR.
12782
12783 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
12784
12785         * recog.c (decode_asm_operands): No mixed declarations and code.
12786
12787 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
12788
12789         * rtl.def (ASM_INPUT): Add location.
12790         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
12791         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
12792         (decode_asm_operands): Add loc operand.
12793         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
12794         * stmt.c (expand_asm): Rename to...
12795         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
12796         gen_rtx_ASM_INPUT_loc.
12797         (expand_asm_expr): Adjust.
12798         * recog.c (decode_asm_operands): Add loc operand.
12799         (check_asm_operands, extract_insn): Adjust.
12800         * reload1.c (maybe_fix_stack_asms): Likewise.
12801         * final.c (asm_insn_count): Likewise.
12802         (final_scan_insn): Output # line before and after asm.
12803
12804 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
12805
12806         * tree-ssa-structalias.c (variable_info): Remove
12807         finished_solution.
12808         (new_var_info): Ditto.
12809         (shared_bitmap_info_t): New structure.
12810         (shared_bitmap_table): New variable.
12811         (shared_bitmap_hash): New function.
12812         (shared_bitmap_eq): Ditto
12813         (shared_bitmap_lookup): Ditto.
12814         (shared_bitmap_add): Ditto.
12815         (merge_smts_into): Change to take bitmap directly.
12816         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
12817         (init_alias_vars): Init shared bitmap hashtable.
12818         (delete_points_to_sets): Delete shared bitmap hashtable.
12819         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
12820         is_aliased removal as a change that was still necessary was
12821         deleted.
12822
12823 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
12824
12825         * config/i386/i386.h (override_options): Conditionally disable
12826         x86_sahf for 64bit targets only.
12827
12828 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12829
12830         PR C/31072
12831         * c-decl.c (merge_decls): Don't call make_var_volatile.
12832         * varasm.c (make_var_volatile): Remove.
12833         * output.h (make_var_volatile): Remove.
12834
12835 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
12836
12837         PR tree-optimization/31085
12838         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
12839
12840 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12841
12842         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
12843         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
12844         ATTR_CONST_NOTHROW_LIST.
12845
12846         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
12847         FIX_TRUNC_EXPR.
12848
12849 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
12850
12851         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
12852
12853 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
12854
12855         PR 31013
12856         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
12857         is declared.
12858         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
12859         passed, use shared libgcc.
12860
12861 2007-03-08  Roger Sayle  <roger@eyesopen.com>
12862
12863         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
12864         instead of calling build2 with a GIMPLE_MODIFY_STMT.
12865         (honor_protect_cleanup_actions, lower_try_finally_switch):
12866         Likewise.
12867         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
12868         ifc_temp_var): Likewise.
12869         * tree-inline.c (setup_one_parameter): Likewise.
12870         * tree-mudflap.c (mf_decl_cache_locals,
12871         mf_build_check_statement_for): Likewise.
12872         * tree-nested.c (init_tmp_var, save_tmp_var,
12873         finalize_nesting_tree_1): Likewise.
12874         * tree-outof-ssa.c (insert_copy_on_edge,
12875         insert_backedge_copies): Likewise.
12876         * tree-profile.c (tree_gen_edge_profiler,
12877         tree_gen_ic_profiler): Likewise.
12878         * tree-scalar-evolution.c (scev_const_prop): Likewise.
12879         * tree-sra.c (sra_build_assignment): Likewise.
12880         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
12881         * tree-ssa-math-opts.c (insert_reciprocals,
12882         execute_cse_sincos_1): Likewise.
12883         * tree-tailcall.c (adjust_accumulator_values,
12884         adjust_return_value): Likewise.
12885         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
12886         * tree-vect-transform.c (vect_create_data_ref_ptr,
12887         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
12888         vect_create_epilog_for_reduction, vectorizable_reduction,
12889         vectorizable_call, vectorizable_conversion,
12890         vectorizable_assignment, vectorizable_operation,
12891         vectorizable_type_demotion, vect_gen_widened_results_half,
12892         vect_permute_store_chain, vectorizable_store,
12893         vect_setup_realignment, vect_permute_load_chain,
12894         vectorizable_load, vectorizable_condition,
12895         vect_create_cond_for_align_checks): Likewise.
12896         * tree-vrp.c (build_assert_expr_for): Likewise.
12897
12898 2007-03-08  Ian Lance Taylor  <iant@google.com>
12899
12900         * tree-vrp.c: Include "intl.h".
12901         (usable_range_p): New static function.
12902         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
12903         overflowed values, juts set *strict_overflow_p.
12904         (compare_values): Only return -2 if one of the operands is not a
12905         constant.
12906         (compare_ranges): Call usable_range_p.
12907         (compare_range_with_value): Likewise.
12908         (vrp_evaluate_conditional_warnv): Rename from
12909         vrp_evaluate_conditional.  Make static.  Change all callers.
12910         (vrp_evaluate_conditional): New function.
12911         (simplify_div_or_mod_using_ranges): Issue warning about reliance
12912         on signed overflow.
12913         (simplify_abs_using_ranges): Likewise.
12914         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
12915         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
12916         within_stmt parameter.
12917         * tree-ssa-propagate.c (fold_predicate_in): Update call to
12918         vrp_evaluate_conditional.
12919         * tree-ssa-threadedge.c
12920         (record_temporary_equivalences_from_stmts_at_dest): Change
12921         simplify parameter to take a second tree parameter.
12922         (simplify_control_stmt_condition): Likewise.
12923         (thread_across_edge): Likewise.
12924         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
12925         (thread_across_edge): Likewise.
12926         * Makefile.in (tree-vrp.o): Depend upon intl.h.
12927
12928 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
12929
12930         * config/i386/i386.h (TARGET_SAHF): New define.
12931         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
12932         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
12933         (x86_sahf): New global variable.
12934         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
12935         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
12936         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
12937         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
12938         for 64-bit.
12939         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
12940         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
12941         when expanding fcomi/sahf based tests.
12942         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
12943         expanding sahf based alternative. Emit sahf based sequence when
12944         optimizing for code size.
12945         * config/i386/i386.md (x86_sahf_1): Do not disable for
12946         TARGET_64BIT, enable for TARGET_SAHF.
12947
12948 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
12949
12950         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
12951         spurious whitespace from error message.
12952
12953 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
12954
12955         PR c++/30852
12956         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
12957
12958 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
12959
12960         * c-decl.c (grokdeclarator): Disable warnings for anonymous
12961         bitfields.
12962         * tree-sra.c (instantiate_element): Propagate disabled warnings
12963         from the element itself to the created variable.
12964
12965 2007-03-07  Richard Henderson  <rth@redhat.com>
12966
12967         PR target/30848
12968         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
12969         silently fix up the stack in the case of a missing register.
12970
12971 2007-03-07  Paul Brook  <paul@codesourcery.com>
12972
12973         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
12974
12975 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
12976
12977         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
12978         New.
12979         (phase1_vrs): Use them.
12980         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
12981         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
12982         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
12983         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
12984         __gnu_Unwind_Restore_WMMXC if required.
12985         (_Unwind_VRS_Pop): Implement iWMMXt support.
12986         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
12987         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
12988         gnu_Unwind_Save_WMMXC): Define.
12989
12990 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
12991
12992         * config/vxworks.h (vxworks_override_options): Declare.
12993         (VXWORKS_OVERRIDE_OPTIONS): Use it.
12994         * config/vxworks.c: Include target.h and toplev.h.
12995         (vxworks_override_options): New function.
12996         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
12997
12998 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
12999
13000         * config/s390/s390.c (override_options): Don't emit an error when
13001         -mstack-size is used without providing -mstack-guard.
13002         (s390_emit_prologue): Choose stack_guard value automatically if not
13003         provided via command line.
13004         * doc/invoke.texi: Adjust description of -mstack-guard and
13005         -mstack-size.
13006
13007 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
13008
13009         * config/i386/i386.c (output_set_got): Add a GOT initialization
13010         sequence for VxWorks PIC.
13011         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
13012         around labels as well as symbols.  Use gotoff_operand instead
13013         of local_symbolic_operand.
13014         (legitimize_pic_address): Use gotoff_operand instead of
13015         local_symbolic_operand.  Use @GOT accesses for labels as
13016         well as symbols.
13017         (ix86_output_addr_diff_elt): Use PC-relative rather than
13018         GP-relative offsets for VxWorks PIC.
13019         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
13020         no_new_pseudos.  Check whether the returned register is op0.
13021         * config/i386/i386.md (tablejump): Use PC-relative rather than
13022         GP-relative offsets for VxWorks PIC.
13023         * config/i386/predicates.md (gotoff_operand): New predicate.
13024
13025 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13026
13027         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
13028         before defining.
13029         * config/vxworks-dummy.h: New file.
13030         * config/i386/i386.h: Include it.
13031
13032 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
13033
13034         * dwarf2out.c (is_inlined_entry_point): New
13035         (add_high_low_attributes): Emit DW_AT_entry_pc along with
13036         DW_AT_ranges if the first subblock is the entry point.
13037
13038 2007-03-06  David Daney  <ddaney@avtrex.com>
13039
13040         * doc/install.texi (mips-*-*): Change recommended binutils
13041         version.
13042
13043 2007-03-06  Anatoly Sokolov <aesok@post.ru>
13044
13045         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
13046         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
13047         devices.
13048         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
13049         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
13050
13051 2007-03-06  Jan Hubicka  <jh@suse.cz>
13052
13053         * errors.h (warning, error, fatal, internal_error): Mark as cold.
13054         * predict.c (maybe_hot_bb): Cold functions are never hot; hot
13055         functions are hot.
13056         (probably_cold_bb_p): Cold functions are cold.
13057         (probably_never_executed_bb_p): Cold functions are cold.
13058         (tree_bb_level_predictions): Predict calls to cold functions as not
13059         taken.
13060         (compute_function_frequency): Check hot/cold attributes.
13061         * function.h (function_frequency): Update comments.
13062         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
13063         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
13064         (c_common_att): Add cold and hot.
13065
13066         * doc/extend.texi (hot,cold attributes): Document.
13067
13068 2007-03-06  Andrew Haley  <aph@redhat.com>
13069
13070         * function.c (expand_function_end): Move blockage to just after we
13071         emit the label for the naked return from the function.
13072
13073 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13074
13075         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
13076         before redefining.
13077
13078 2007-03-06  Jan Hubicka  <jh@suse.cz>
13079
13080         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
13081         loaded for constant large models.  Non-large 64bit PIC can do.
13082         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
13083         * cmodel.h: Add LARGE PIC.
13084         * i386.md (UNSPEC_PLTOFF): New.
13085         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other
13086         unspecs as needed.
13087         (*call_1_rex64): Disable for large models.
13088         (*call_1_rex64_large): New.
13089         (*call_value_1_rex64): Disable for large models.
13090         (*call_value_1_rex64_large): New.
13091         (set_rip_rex4): New.
13092         (set_got_offset_rex64): New.
13093         * predicates.md (constant_call_address_operand): For large model
13094         constant calls are not possible.
13095         * i386-protos.h (construct_plt_address): Declare.
13096         * i386.c (override_options): Accept large models.
13097         (ix86_expand_prologue): Expand large PIC GOT pointer load.
13098         (legitimate_constant_p): Add new UNSPECs.
13099         (legitimate_pic_operand_p): Likewise.
13100         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
13101         (legitimize_pic_address): Do easy RIP relative way for TLS only for
13102         non-large model.
13103         (output_pic_addr_const): Add PLTOFF.
13104         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
13105         (ix86_expand_move): Legitimize pic address when in PIC mode.
13106         (construct_plt_address): New function.
13107         (ix86_expand_call): Offload the address to register and use GOT
13108         pointer for large model.
13109         * invoke.texi (mcmodel=large): Update documentation.
13110
13111 2007-03-06  Richard Henderson  <rth@redhat.com>
13112
13113         * config/i386/i386.c (x86_use_leave, x86_push_memory,
13114         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
13115         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
13116         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
13117         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
13118         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
13119         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
13120         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
13121         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
13122         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
13123         x86_partial_reg_dependency, x86_memory_mismatch_stall,
13124         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
13125         x86_sse_partial_reg_dependency, x86_sse_split_regs,
13126         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
13127         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
13128         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
13129         x86_schedule, x86_use_bt, x86_pad_returns,
13130         x86_use_xchgb): Merge into ...
13131         (ix86_tune_features): ... here.  New array.
13132         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
13133         x86_bswap): Merge into ...
13134         (ix86_arch_features): ... here.  New array.
13135         (x86_3dnow_a): Remove.
13136         (x86_accumulate_outgoing_args): Make static.
13137         (x86_arch_always_fancy_math_387): Make static.
13138         (ix86_tune_mask, ix86_arch_mask): Move ...
13139         (override_options): ... to local variables here.  Apply the
13140         appropriate mask to each element of ix86_arch_features and
13141         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
13142         as were done in the old macros.
13143         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
13144         * config/i386/i386.h (x86_use_leave, x86_push_memory,
13145         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
13146         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
13147         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
13148         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
13149         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
13150         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
13151         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
13152         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
13153         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
13154         x86_partial_reg_dependency, x86_memory_mismatch_stall,
13155         x86_accumulate_outgoing_args, x86_prologue_using_move,
13156         x86_epilogue_using_move, x86_decompose_lea,
13157         x86_arch_always_fancy_math_387, x86_shift1,
13158         x86_sse_partial_reg_dependency, x86_sse_split_regs,
13159         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
13160         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
13161         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
13162         x86_use_incdec, x86_pad_returns, x86_bswap,
13163         x86_partial_flag_reg_stall): Remove.
13164         (enum ix86_tune_indices): New.
13165         (ix86_tune_features): New.
13166         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
13167         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
13168         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
13169         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
13170         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
13171         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
13172         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
13173         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
13174         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
13175         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
13176         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
13177         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
13178         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
13179         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
13180         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
13181         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
13182         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
13183         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
13184         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
13185         TARGET_EXT_80387_CONSTANTS): Use it.
13186         (enum ix86_arch_indices): New.
13187         (ix86_arch_features): New.
13188         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
13189         TARGET_BSWAP): Use it.
13190         (ix86_tune_mask, ix86_arch_mask): Remove.
13191
13192 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
13193
13194         PR bootstrap/31020
13195         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
13196         Define using $${sysroot_headers_suffix}.
13197         * configure: Regenerate.
13198         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
13199         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
13200         defined.
13201         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
13202         * gcc.c (print_sysroot_headers_suffix): New.
13203         (option_map): Include --print-sysroot-headers-suffix.
13204         (display_help): Mention -print-sysroot-headers-suffix.
13205         (process_command): Handle -print-sysroot-headers-suffix.
13206         (do_spec_1): Append multilib directory to include-fixed path if
13207         sysroot suffixes in use.
13208         (main): Handle -print-sysroot-headers-suffix.
13209         * Makefile.in (start.encap): Don't depend on xlimits.h
13210         (xlimits.h): Remove.
13211         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
13212         limits.h for each multilib in fixinc_list.
13213         (fixinc_list, s-fixinc_list): New.
13214         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
13215         generate them for each multilib in fixinc_list.
13216         (stmp-fixproto): Use include-fixed.  Run fixproto for each
13217         multilib in fixinc_list.
13218         (mostlyclean): Don't remove xlimits.h.
13219         (clean): Remove include-fixed.
13220         (real-install-headers-tar, real-install-headers-cpio,
13221         real-install-headers-cp): Don't copy include, only include-fixed.
13222         (install-mkheaders): Depend on fixinc_list.  Don't depend on
13223         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
13224         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
13225         SYSTEM_HEADER_DIR setting in mkheaders.conf.
13226
13227 2007-03-06  Jan Hubicka  <jh@suse.cz>
13228
13229         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
13230         NANs easilly.
13231
13232 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13233
13234         * configure.ac: Allow tm_file to contain build-directory files.
13235         * configure: Regenerate.
13236         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
13237         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
13238         * config/m68k/print-sysroot-suffix.sh: New file.
13239
13240 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13241
13242         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
13243         of pic_offset_table_rtx if reload_completed.
13244         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
13245         PIC_OFFSET_TABLE_REGNUM.
13246         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
13247         return true.
13248         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
13249         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
13250
13251 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13252
13253         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
13254         functions that call eh_return.
13255
13256 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13257
13258         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
13259         functions that need a constant pool.
13260
13261 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13262
13263         PR target/28181
13264         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
13265         (m68k_preferred_reload_class): Likewise.
13266         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
13267         (SECONDARY_RELOAD_CLASS): Define.
13268         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
13269         (LIMIT_RELOAD_CLASS): Delete.
13270         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
13271         registers from storing bytes.
13272         (m68k_secondary_reload_class): New function.
13273         (m68k_preferred_reload_class): Likewise.
13274
13275 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13276
13277         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
13278         leaf functions.
13279         (m68k_expand_prologue): Likewise.
13280
13281 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13282
13283         * config/m68k/m68k-protos.h (output_sibcall): Declare.
13284         (mips_expand_epilogue): Add a bool parameter.
13285         (m68k_legitimize_sibcall_address): Declare.
13286         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
13287         (m68k_expand_epilogue): Add a parameter to select between sibling
13288         and normal epilogues.  Only generate a return for the latter.
13289         (m68k_ok_for_sibcall_p): New function.
13290         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
13291         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
13292         (sibcall_value, *sibcall_value): Likewise.
13293         (*call, *call_value): Require !SIBLING_CALL_P.
13294         (epilogue): Update call to m68k_expand_epilogue.
13295         (sibcall_epilogue): New pattern.
13296         * config/m68k/predicates.md (const_call_operand): Say that this
13297         predicate applies to sibling calls too.
13298         (sibcall_operand): New predicate.
13299
13300 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13301
13302         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
13303         alternatives as movsi_cf.
13304         (movsf_cf_hard): Add commentary.
13305
13306 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
13307             Richard Sandiford  <richard@codesourcery.com>
13308
13309         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
13310         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
13311         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
13312         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
13313         as being live on exit from an interrupt function.
13314         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
13315         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
13316         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
13317         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
13318         (m68k_interrupt_function_p): Globalize.
13319         (m68k_compute_frame_layout): Remove reverse mask code.
13320         (m68k_emit_movem, m68k_set_frame_related): New functions.
13321         (m68k_output_function_prologue): Delete in favor of...
13322         (m68k_expand_prologue): ...this new function.
13323         (m68k_output_function_epilogue): Delete in favor of...
13324         (m68k_expand_epilogue): ...this new function.
13325         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
13326         functions.
13327         (print_operand): Handle %?.
13328         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
13329         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
13330         (prologue, epilogue): New patterns.
13331         (return): Turn into a define_expand.
13332         (*return): New pattern, derived from old "return" pattern.  Use rte
13333         rather than rts for interrupt functions.  Only use rtd if the pop
13334         count is nonzero.
13335         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
13336         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
13337         (link, *link, unlink, *unlink, load_got): Likewise.
13338
13339 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
13340
13341         PR target/23482
13342         PR target/17114
13343         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
13344         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
13345         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
13346         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
13347         and m68k_matches_u_p.
13348         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
13349         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
13350         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
13351         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
13352         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
13353         (REG_STRICT_P): New macro.
13354         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
13355         PCREL_GENERAL_OPERAND_OK.
13356         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
13357         m68k_legitimate_base_reg_p.
13358         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
13359         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
13360         (PIC_CASE_VECTOR_ADDRESS): Update comment.
13361         * config/m68k/m68k.c (m68k_address): New structure.
13362         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
13363         (m68k_decompose_index, m68k_legitimate_constant_address_p)
13364         (m68k_jump_table_ref_p, m68k_decompose_address)
13365         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
13366         (m68k_matches_u_p): New functions.
13367         (print_operand_address): Rewrite to use m68k_decompose_index.
13368
13369 2007-03-05  David Taylor  <dtaylor@emc.com>
13370
13371         * gcc.c: Correct copyright date in --version output.
13372
13373 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13374
13375         * pa.md: In unamed move patterns, disparge copies between general
13376         and floating point registers using '?' modifier.  Don't include 'f'
13377         constraint for register preferences in DImode, SImode, HImode and
13378         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
13379         Remove constraints for copies between general and floating registers
13380         in soft-float DFmode pattern.
13381         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
13382         floating register.
13383         (movsf): Likewise.
13384
13385 2007-03-05  Mike Stump  <mrs@apple.com>
13386
13387         * c-common.c (targetcm): Add.
13388         * c-opts.c (c_common_handle_option): Handle language specific
13389         target options.
13390         * opts.c (handle_option): Verify language for target options, if
13391         any are given.
13392         * opth-gen.awk: Add CL_LANG_ALL.
13393         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
13394         (TARGETCM_INITIALIZER): Add.
13395         * target.h (struct gcc_targetcm): Add.
13396         (targetcm): Add.
13397         * targhooks.c (default_handle_c_option): Add.
13398         * targhooks.h (default_handle_c_option): Add.
13399         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
13400
13401         * config/darwin.opt (iframework): Add.
13402         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
13403         * config/darwin-c.c (handle_c_option): Add.
13404         (TARGET_HANDLE_C_OPTION): Add.
13405         (targetcm): Add.
13406         * doc/invoke.texi (Darwin Options): Add -iframework.
13407
13408 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13409
13410         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
13411         conversion.
13412
13413 2007-03-05  Ian Lance Taylor  <iant@google.com>
13414
13415         * c.opt (fgnu89-inline): New option.
13416         * c-opts.c (c_common_post_options): Set default value for
13417         flag_gnu89_inline.
13418         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
13419         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
13420         inline functions.
13421         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
13422         (grokdeclarator, start_function): Likewise.
13423         * c-cppbuiltin.c (c_cpp_builtins): Define either
13424         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
13425         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
13426         (C Dialect Options): Document -fgnu89-inline.
13427         * doc/extend.texi (Function Attributes): Explain what the
13428         gnu_inline attribute does.
13429         * doc/cpp.texi (Common Predefined Macros): Document
13430         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
13431
13432 2007-03-05  Ian Lance Taylor  <iant@google.com>
13433
13434         PR tree-optimization/31034
13435         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
13436         half-range if the other side is an overflow infinity.
13437
13438 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
13439
13440         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
13441         (bfin*-linux-uclibc*): New configuration.
13442         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
13443         defining.
13444         * config/bfin/linux.h: New file.
13445         * config/bfin/libgcc-bfin.ver: New file.
13446         * config/bfin/t-bfin-uclinux: New file.
13447         * config/bfin/t-bfin-linux: New file.
13448         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
13449         (TARGET_OS_CPP_BUILTINS): New macro.
13450
13451 2007-03-05  Richard Guenther  <rguenther@suse.de>
13452
13453         * fold-const.c (fold_binary): Remove duplicate folding
13454         of comparison of non-null ADDR_EXPR against null.
13455
13456 2007-03-05  Richard Guenther  <rguenther@suse.de>
13457             Dorit Nuzman  <dorit@il.ibm.com>
13458
13459         PR tree-optimization/26420
13460         * tree-vectorizer.c (vectorize_loops): Bail out early if there
13461         are no loops in the function.  Only print the number of
13462         vectorized loops if it is greater than zero or we are supposed
13463         to print information about unvectorized loops.
13464
13465 2007-03-05  Revital Eres  <eres@il.ibm.com>
13466
13467         * gcc.dg/var-expand1.c: New test.
13468         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
13469         when an accumulator is expanded.
13470
13471 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13472
13473         PR other/30465
13474         * c-common.c (convert_and_check): Don't give warnings for
13475         conversion if 'expr' already overflowed.
13476
13477 2007-03-04  Roger Sayle  <roger@eyesopen.com>
13478
13479         PR middle-end/30744
13480         * fold-const.c (fold_comparison): Enforce type consistency when
13481         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
13482
13483 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
13484
13485         * tree-ssa-address.c (create_mem_ref): Do not put an expression
13486         containing a cast to the base of TARGET_MEM_REF.
13487
13488 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
13489
13490         * tree.c (tree_contains_struct_check_failed): Remove spurious
13491         whitespace from error message.
13492
13493 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
13494
13495         PR target/30406
13496         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
13497         instead of precision.
13498
13499 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
13500             Nathan Sidwell  <nathan@codesourcery.com>
13501
13502         * emit-rtl.c (find_auto_inc): New.
13503         (try_split): recreate REG_INC notes,
13504         Use regular for loops rather than whiles.
13505
13506 2007-03-03  Andreas Schwab  <schwab@suse.de>
13507
13508         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
13509         * configure: Regenerate.
13510
13511 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13512
13513         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
13514         flag_rounding_math, not flag_unsafe_math_optimizations.
13515
13516         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
13517         fold_build2.
13518         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
13519         alpha_fold_vector_minmax): Likewise.
13520         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
13521         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13522
13523 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
13524
13525         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
13526         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
13527         if the lhs has side-effects.
13528         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
13529
13530 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
13531
13532         * config/i386/i386.h (TUNEMASK): Remove define.
13533         (ARCHMASK): Remove define.
13534         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
13535          Use ix86_arch_mask variable instead of ARCHMASK.
13536         * config/i386/i386.c (override_options): Ditto.
13537         (standard_80387_constant_p): Ditto.
13538
13539 2007-03-02  Ian Lance Taylor  <iant@google.com>
13540
13541         Used signed infinities in VRP.
13542         * tree-vrp.c (uses_overflow_infinity): New static function.
13543         (supports_overflow_infinity): New static function.
13544         (make_overflow_infinity): New static function.
13545         (negative_overflow_infinity): New static function.
13546         (positive_overflow_infinity): New static function.
13547         (is_negative_overflow_infinity): New static function.
13548         (is_positive_overflow_infinity): New static function.
13549         (is_overflow_infinity): New static function.
13550         (overflow_infinity_range_p): New static function.
13551         (compare_values_warnv): New function split out of compare_values.
13552         (compare_value): Call it.
13553         (set_value_range_to_nonnegative): Add overflow_infinity
13554         parameter.  Change caller.
13555         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
13556         Change callers.
13557         (vrp_expr_computes_nonzero): Likewise.
13558         (compare_ranges, compare_range_with_value): Likewise.
13559         (compare_name_with_value, compare_names): Likewise.
13560         (vrp_evaluate_conditional): Likewise.
13561         (set_value_range): Handle infinity
13562         (vrp_operand_equal_p, operand_less_p): Likewise.
13563         (extract_range_from_assert): Likewise.
13564         (vrp_int_const_binop): Likewise.
13565         (extract_range_from_binary_expr): Likewise.
13566         (extract_range_from_unary_expr): Likewise.
13567         (extract_range_from_comparison): Likewise.
13568         (extract_range_from_expr): Likewise.
13569         (dump_value_range): Likewise.
13570         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
13571         (test_for_singularity): Likewise.
13572         (vrp_int_const_binop): Remove inline qualifier.
13573         (adjust_range_with_scev): Add comment.
13574         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
13575
13576 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
13577
13578         * tree-ssa-structalias.c (could_have_pointers): Tidy.
13579         (get_constraint_for): Likewise.
13580         (do_structure_copy): Likewise.
13581         (find_func_aliases): Fix references to MODIFY_EXPR.
13582         (intra_create_variable_infos): Tidy.
13583         * tree-ssa-operands.c (add_virtual_operand): Add argument
13584         IS_CALL_SITE.
13585         When adding members of alias sets, if IS_CALL_SITE is true and
13586         the symbol is not call-clobbered, skip it.
13587         Adjust all callers.
13588
13589 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
13590
13591         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
13592         entry by means of emit_insn_at_entry.
13593
13594 2007-03-02  Richard Henderson  <rth@redhat.com>
13595
13596         * expr.h (promoted_input_arg): Remove decl.
13597         * function.c (promoted_input_arg): Merge into ...
13598         * combine.c (setup_incoming_promotions): ... only caller.
13599         Rearrange to avoid double loop.
13600
13601 2007-03-02  Ben Elliston  <bje@au.ibm.com>
13602             Peter Bergner  <bergner@vnet.ibm.com>
13603             Janis Johnson  <janis187@us.ibm.com>
13604
13605         * config/rs6000/dfp.md: New file.
13606         * config/rs6000/rs6000.md: Include dfp.md.
13607         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
13608         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
13609         and TDmode decimal float modes in FP registers.
13610         (num_insns_constant): Likewise.
13611         (rs6000_legitimate_offset_address_p): Likewise.
13612         (rs6000_legitimize_address): Likewise.
13613         (rs6000_legitimize_reload_address): Likewise.
13614         (rs6000_legitimate_address): Likewise.
13615         (rs6000_emit_move): Likewise.
13616         (function_arg_boundary): Likewise.
13617         (function_arg_advance): Likewise.
13618         (rs6000_darwin64_record_arg_recurse): Likewise.
13619         (function_arg): Likewise.
13620         (rs6000_gimplify_va_arg): Likewise.
13621         (rs6000_split_multireg_move): Likewise.
13622         (rs6000_output_function_epilogue): Likewise.
13623         (rs6000_output_function_epilogue): Likewise.
13624         (rs6000_register_move_cost): Likewise.
13625         (rs6000_function_value): Likewise.
13626         (rs6000_libcall_value): Likewise.
13627
13628 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
13629
13630         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
13631
13632 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
13633
13634         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
13635         Use $MULTIDIR to choose between the kernel and RTP headers,
13636         and use $WIND_BASE and $WIND_USR to locate them.
13637
13638 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
13639
13640         * config/i386/i386.c (override_options): Put initialization of
13641         ix86_tune_mask and ix86_arch_mask to the correct place.
13642
13643 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
13644             Michael Meissner  <michael.meissner@amd.com>
13645
13646         PR target/31019
13647         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
13648         (ARCHMASK): Define.
13649         (TARGET_CMOVE): Use ARCHMASK.
13650         (TARGET_CMPXCHG): Ditto.
13651         (TARGET_CMPXCHG8B): Ditto.
13652         (TARGET_XADD): Ditto.
13653         (TARGET_BSWAP): Ditto.
13654         * config/i386/i386.c (ix86_tune_mask): New global variable.
13655         (ix86_arch_mask): Ditto.
13656         (override_options): Initialize ix86_tune_mask and
13657         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
13658         target_flags.
13659
13660 2007-03-02  Ben Elliston  <bje@au.ibm.com>
13661
13662         PR 30992
13663         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
13664
13665 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
13666
13667         * target.h (init_dwarf_reg_sizes_extra): New target hook.
13668         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
13669         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
13670         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
13671         hook.
13672         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
13673         rs6000_init_dwarf_reg_sizes_extra): New.
13674         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
13675         SPE register high parts.
13676
13677 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
13678
13679         * Makefile.in: Add install-pdf target as
13680         copied from automake v1.10 rules.
13681         * configure.ac: Add install-pdf to target list.
13682         * configure: Regenerate.
13683
13684 2007-03-01  Paul Brook  <paul@codesourcery.com>
13685
13686         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
13687         modes to LDRD for DImode.
13688         (output_move_double): Fixup out of range ldrd/strd.
13689         (vfp_secondary_reload_class): Rename...
13690         (coproc_secondary_reload_class): ... to this.  Add wb argument.
13691         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
13692         coproc_secondary_reload_class for CLASS_IWMMXT.
13693         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
13694         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
13695
13696 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
13697
13698         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the
13699         unroll factor by the estimated number of iterations.
13700         (loop_prefetch_arrays): Do not prefetch in loops that iterate less
13701         than prefetch latency.
13702
13703         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
13704         decode_caches_intel, detect_caches_intel): New functions.
13705         (host_detect_local_cpu): Use detect_caches_amd and
13706         detect_caches_intel.
13707
13708 2007-03-01  Richard Henderson  <rth@redhat.com>
13709
13710         * expr.c (emit_move_complex_push): Export.
13711         (emit_move_complex_parts): Split out from ...
13712         (emit_move_complex): ... here.
13713         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
13714         * config/i386/i386.md (movcdi): New.
13715
13716 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
13717
13718         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
13719         size of mode1 to check for tieable modes in MMX case.
13720
13721 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
13722
13723         * Makefile.in (rtlanal.o): Depend on tree.h.
13724         * rtl.h (offset_within_section_p, split_const): Declare.
13725         * rtlanal.c: Include tree.h.
13726         (offset_within_block_p): New function, taken from
13727         mips_offset_within_object_p.
13728         (split_const): New function, taken from mips_split_const.
13729         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
13730         Declare.
13731         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
13732         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
13733         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
13734         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13735         (m68k_illegitimate_symbolic_constant_p): New function.
13736         * config/m68k/m68k.md (movsi): Remove misleading predicates.
13737         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
13738         symbolic constant that might be outside the symbol's section,
13739         move the symbol first and then add the offset.
13740         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
13741         Override.
13742         * config/mips/mips.c (mips_split_const): Delete.
13743         (mips_offset_within_object_p): Delete.
13744         (mips_symbolic_constant_p): Use offset_within_section_p and
13745         split_const instead of mips_offset_within_object_p and
13746         mips_split_const.
13747         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
13748         (mips_legitimize_const_move, print_operand_reloc)
13749         (mips_dangerous_for_la25_p): Use split_const instead of
13750         mips_split_const.
13751
13752 2007-02-28  Eric Christopher  <echristo@apple.com>
13753
13754         * Makefile.in (install-include-dir): Don't rm -rf include.
13755
13756 2007-02-28  Richard Guenther  <rguenther@suse.de>
13757
13758         PR middle-end/30364
13759         * fold-const.c (fold_binary): Do not associate expressions
13760         with more than one variable for integer types that do not wrap.
13761
13762 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
13763
13764         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
13765         Delete, and replace with...
13766         (fold_builtin_call_array): This.  Update callers to use it.
13767         * fold-const.c (fold_build_call_list): Delete, and replace with...
13768         (fold_build_call_array): This.
13769         (fold_build_call_list_initializer): Delete, and replace with...
13770         (fold_build_call_array_initializer): This.
13771         * tree.h: Update declarations to reflect above changes.
13772
13773         * c-typeck.c (build_function_call): Store converted arguments
13774         in a stack-allocated array instead of building a list.
13775         (convert_arguments): Store arguments in the array passed in as an
13776         argument, and return the actual number of arguments.
13777         * c-format.c: (check_function_format): Pass arguments in an
13778         array instead of a list.
13779         * c-common.c (check_function_nonnull): Likewise.
13780         (check_function_sentinel): Likewise.
13781         (check_function_arguments): Likewise.
13782         * c-common.h: Update declarations to reflect above changes.
13783
13784 2007-02-28  Jan Hubicka  <jh@suse.cz>
13785
13786         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
13787         PRED_NEGATIVE_RETURN): Update outcomes.
13788
13789 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
13790
13791         * calls.c (emit_library_call_value_1): Handle partial registers
13792         correctly when building up CALL_INSN_FUNCTION_USAGE.
13793
13794 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13795
13796         * pa/predicates.md (move_src_operand): Allow zero for mode.
13797         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
13798         move pattern.
13799
13800 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
13801
13802         PR target/30970
13803         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
13804         *movv2df_internal): Enable pattern only for valid operand
13805         combinations.
13806         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
13807         tie only 128bit modes. For MMX registers, tie only 64bit modes.
13808
13809 2007-02-27  Mike Stump  <mrs@apple.com>
13810
13811         * config/darwin-crt3.c: Avoid compilation when compiling for a
13812         kext multilib.
13813
13814 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
13815
13816         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
13817         FIXED_INCLUDE_DIR.
13818         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
13819         for fixed headers and limits.h.
13820         (install-include-dir, install-headers-tar, install-headers-cpio,
13821         install-headers-cp, real-install-headers-tar,
13822         real-install-headers-cpio, real-install-headers-cp): Handle
13823         include-fixed as well as include.
13824         (install-mkheaders): Don't install files that go only in include
13825         not include-fixed.
13826         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
13827         from GCC_INCLUDE_DIR.
13828         * gcc.c (process_command): Remove special -BstageN/ handling.
13829         (do_spec_1): Add include-fixed directories.
13830
13831 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
13832
13833         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
13834         _smulsi3_highpart.
13835         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
13836         New functions.
13837         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
13838         patterns.
13839
13840 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
13841
13842         * c-common.c (get_priority): Add check for
13843         SUPPORTS_INIT_PRIORITY.
13844
13845 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
13846
13847         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
13848
13849         * config/bfin/bfin.c: Include "cfglayout.h".
13850         (MAX_LSETUP_DISTANCE): New macro.
13851         (struct loop_info): New members incoming, incoming_src and
13852         incoming_dest.  Delete member predecessor.
13853         (length_for_loop): New function.
13854         (bfin_optimize_loop): Handle more different loop structures.
13855         (bfin_discover_loop): Rework detection of predecessor blocks by
13856         examining incoming edges.
13857         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
13858         bfin_reorg_loops.
13859         (bfin_reorder_loops): New function.
13860         (bfin_reorg_loops): Use these three new functions.
13861
13862         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
13863         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
13864         (CONSTRAINT_LEN): Add entry for 'q'.
13865         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
13866         Add 'q' constraints.
13867         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
13868         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
13869
13870         * config/bfin/bfin.md (add_with_carry): New pattern.
13871         (s_or_u, su_optab, su_modifier): New code macros/attrs.
13872         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
13873         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
13874         support unsigned multiplies too.  Removed incorrect commutativity from
13875         operand 1 constraint where appropriate.
13876         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
13877         patterns.
13878         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
13879         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
13880         New patterns.
13881         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
13882         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
13883         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
13884         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
13885         usmulhisi_hh_huh): New patterns.
13886
13887         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
13888         lshifthi3): Fix output template to use half reg for operand 2.
13889
13890         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
13891         instead of R2.
13892
13893         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
13894
13895 2007-02-27  Andreas Schwab  <schwab@suse.de>
13896
13897         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
13898
13899 2007-02-27  Jan Hubicka  <jh@suse.cz>
13900
13901         * predict.c (last_basic_block_p): Remove.
13902         (tree_estimate_probability): Update return heuristic for commonized
13903         return blocks.
13904
13905 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
13906
13907         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
13908
13909 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
13910
13911         * doc/include/gcc-common.texi (versionsubtitle): New macro.
13912         * doc/cpp.texi: Standardize title page.
13913         * doc/cppinternals.texi: Likewise.
13914         * doc/gcc.texi: Standardize title page, remove version number
13915         from copyright page.
13916         * doc/gccint.texi: Likewise.
13917         * doc/install.texi: Standardize title page, add table of
13918         contents.
13919
13920 2007-02-26  Jan Hubicka  <jh@suse.cz>
13921
13922         * predict.def: Set outcomes according to more recent results.
13923         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
13924         Remove dead predictors.
13925         * predict.c (return_prediction): Fix pasto.
13926
13927 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
13928
13929         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
13930         change; avoid a memory leak when returning early.
13931
13932 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
13933
13934         * c-decl.c (static_ctors): Move to c-common.c.
13935         (static_dtors): Likewise.
13936         (finish_function): Use c_record_cdtor_fn.
13937         (build_cdtor): Move to c-common.c.
13938         (c_write_global_declarations): Use c_build_cdtor_fns.
13939         * c-common.h (static_ctors): Declare.
13940         (static_dtors): Likewise.
13941         (c_record_cdtor_fn): Likewise.
13942         (c_build_cdtor_fns): Likewise.
13943         * c-common.c (static_ctors): New variable.
13944         (static_dtors): Likewise.
13945         (c_record_cdtor_fn): New function.
13946         (build_cdtor): Move from c-decl.c
13947         (c_build_cdtor_fns): New function.
13948
13949         * output.h (assemble_addr_to_section): Declare.
13950         (get_cdtor_priority_section): Likewise.
13951         * varasm.c (assemble_addr_to_section): New function.
13952         (get_cdtor_priority_section): Likewise.
13953         (default_named_section_asm_out_destructor): Use them.
13954         (destor_dtor_section_asm_out_destructor): Likewise.
13955         (default_named_section_asm_out_constructor): Likewise.
13956         (default_ctor_section_asm_out_constructor): Likewise.
13957         * config.gcc (*-*-vxworks*): Include vxworks.o.
13958         * config/t-vxworks (vxworks.o): New target.
13959         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
13960         (TARGET_ASM_CONSTRUCTOR): Define.
13961         (TARGET_ASM_DESTRUCTOR): Likewise.
13962         (vxworks_asm_out_constructor): Declare.
13963         (vxworks_asm_out_destructor): Likewise.
13964
13965         * c-common.c (get_priority): Check that we have not just an
13966         INTEGER_CST, but an integer constant with integeral type.
13967
13968 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
13969
13970         PR tree-optimization/30938
13971         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
13972         use &dt[nargs-1] instead of &dt[nargs] in the call to
13973         vect_is_simple_use().
13974
13975 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
13976
13977         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
13978         from register elimination as PRE_MODIFY / POST_MODIFY increments.
13979         Do not attempt to handle MEM inside auto-inc expressions.
13980         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
13981         of a register modified by an auto-inc expression.  However, do handle
13982         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
13983         (elimination_effects): Prohibit elimination of a register modified
13984         by an auto-inc expression.  Disable register elimination rules whose
13985         target register is modified by an auto-inc expression with variable
13986         increment.
13987
13988 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
13989
13990         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
13991         off-by-one error.
13992         (array_at_struct_end_p): New function.
13993         (idx_infer_loop_bounds): Use it.
13994         (estimate_numbers_of_iterations_loop): Export.
13995         * predict.c (predict_loops): Use estimated_loop_iterations_int.
13996         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
13997         (tree_estimate_probability): Call record_loop_exits.
13998         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
13999         (estimated_loop_iterations, estimated_loop_iterations_int,
14000         estimated_loop_iterations_tree): New functions.
14001         (analyze_siv_subscript_cst_affine,
14002         compute_overlap_steps_for_affine_1_2,
14003         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
14004         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
14005         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
14006         (PRED_LOOP_ITERATIONS_GUESSED): New.
14007         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
14008         * cfgloop.h (estimate_numbers_of_iterations_loop,
14009         estimated_loop_iterations_int): Declare.
14010
14011 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
14012
14013         * doc/extend.texi: Document optional priority argument to
14014         constructors and destructors.
14015         * tree.c (init_priority_for_decl): Adjust GTY markers.
14016         (init_ttree): Use priority-info hash functions for
14017         init_priority_for_decl.
14018         (tree_map_eq): Rename to ...
14019         (tree_map_base_eq): ... this.
14020         (tree_map_marked_p): Rename to ...
14021         (tree_map_base_marked_p): ... this.
14022         (tree_map_base_hash): New function.
14023         (decl_init_priority_lookup): Rework.
14024         (decl_fini_priority_lookup): New function.
14025         (decl_priority_info): New function.
14026         (decl_init_priority_insert): Use it.
14027         (decl_fini_priority_insert): Likewise.
14028         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
14029         hierarchy.
14030         (decl_restrict_base_insert): Likewise.
14031         (decl_debug_expr_insert): Likewise.
14032         (decl_value_expr_lookup): Likewise.
14033         (decl_value_expr_insert): Likewise.
14034         * tree.h (priority_type): New type.
14035         (decl_init_priority_lookup): Use priority_type.
14036         (decl_fini_priority_lookup): New function.
14037         (decl_init_priority_insert): Use priority_type.
14038         (decl_fini_priority_insert): New function.
14039         (DECL_HAS_INIT_PRIORITY): Tweak comments.
14040         (DECL_INIT_PRIORITY): Likewise.
14041         (SET_DECL_INIT_PRIORITY): Add comment.
14042         (DECL_FINI_PRIORITY): New macro.
14043         (SET_DECL_FINI_PRIORITY): Likewise.
14044         (DEFAULT_INIT_PRIORITY): Document.
14045         (MAX_INIT_PRIORITY): Likewise.
14046         (MAX_RESERVED_INIT_PRIORITY): Likewise.
14047         (tree_map_base): New type.
14048         (tree_map_base_eq): New function.
14049         (tree_map_base_hash): Likewise.
14050         (tree_map_base_marked_p): Likewise.
14051         (tree_map): Inherit from tree_map_base.
14052         (tree_map_eq): Make it a macro.
14053         (tree_map_marked_p): Likewise.
14054         (tree_int_map): Inherit from tree_map_base.
14055         (tree_int_map_eq): Make it a macro.
14056         (tree_int_map_hash): Likewise.
14057         (tree_int_map_marked_p): Likewise.
14058         (tree_priority_map): New type.
14059         (tree_priority_map_eq): New macro.
14060         (tree_priority_map_hash): Likewise.
14061         (tree_priority_map_marked_p): Likewise.
14062         * varasm.c (emults_decl): Adjust for refactoring of tree_map
14063         hierarchy.
14064         (emutls_common_1): Likewise.
14065         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
14066         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
14067         of tree_map hierarchy.
14068         * tree-cfg.c (move_stmt_r): Likewise.
14069         (new_label_mapper): Likewise.
14070         * c-tree.h (c_expand_body): Move to ...
14071         * c-common.h (c_expand_body): ... here.
14072         * c-decl.c (c_expand_body): Move to ...
14073         * c-common.c (c_expand_body): ... here.
14074         (c_common_attribute_table): Allow 1 argument for the constructor
14075         and destructor attributes.
14076         (get_priority): New function.
14077         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
14078         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
14079
14080 2007-02-24  Jan Hubicka  <jh@suse.cz>
14081
14082         PR middle-end/30509
14083         * tree-inline.c (copy_bb): Produce exact copy of EH info when
14084         copying for inlining.
14085
14086 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
14087             Jan Hubicka  <jh@suse.cz>
14088
14089         PR target/30778
14090         * i386.c (counter_mode): New function.
14091         (expand_set_or_movmem_via_loop): Use it.
14092         (expand_movmem_epilogue): Likewise; fix pasto.
14093         (ix86_expand_movmem): Do emit guard even for constant counts.
14094         (ix86_expand_setmem): Likewise.
14095
14096 2007-02-25  Nick Clifton  <nickc@redhat.com>
14097
14098         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
14099         (JUMP_TABLES_IN_TEXT_SECTION): Define.
14100
14101 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
14102
14103         PR target/30770
14104         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
14105         count argument with 0x10, not with 0x16.
14106         (expand_setmem_epilogue): Ditto.
14107
14108 2007-02-24  Mike Stump  <mrs@apple.com>
14109
14110         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
14111         symbols.
14112
14113 2007-02-24  Richard Guenther  <rguenther@suse.de>
14114
14115         PR middle-end/30951
14116         * fold-const.c (fold_binary): Fold x +- CST op x for
14117         EQ_EXPR and NE_EXPR.
14118
14119 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14120
14121         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
14122
14123 2007-02-24  Jan Hubicka  <jh@suse.cz>
14124
14125         * cgraphunit.c (decide_is_function_needed): Honor
14126         -fkeep-inline-functions.
14127
14128 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14129
14130         * builtins.c (fold_builtin_modf): New.
14131         (fold_builtin_2): Use it.
14132
14133 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
14134
14135         * loop-iv.c (implies_p): Detect additional cases where A implies B.
14136         (determine_max_iter): Take additional LOOP arg; all callers changed.
14137         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
14138         one using simplifications.
14139         (simplify_using_initial_values): Return if the expression becomes
14140         invalid due to altered regs.
14141
14142 2007-02-23  DJ Delorie  <dj@redhat.com>
14143
14144         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
14145
14146 2007-02-23  Mike Stump  <mrs@apple.com>
14147
14148         * tlink.c (scan_linker_output): Parse linker messages from
14149         darwin9's linker better.
14150
14151 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
14152
14153         PR debug/29614
14154         * varpool.c (varpool_assemble_pending_decls):  Set
14155         varpool_last_needed_node to null.
14156
14157 2007-02-23  DJ Delorie  <dj@redhat.com>
14158
14159         * config/i386/i386.c (ix86_data_alignment): Don't specify an
14160         alignment bigger than the object file can handle.
14161
14162 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
14163
14164         PR target/30825
14165         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
14166         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
14167         (*movsf_1): Penalize MMX moves.
14168
14169 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
14170
14171         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
14172         2^32-1 or more times unless flag_unsafe_loop_optimizations.
14173
14174         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
14175
14176 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14177
14178         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
14179         (fold_builtin_1): Use them.
14180         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
14181         BUILT_IN_SIGNIFICAND.
14182
14183 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
14184
14185         * config/i386/i386.c (bdesc_1arg): Initialize
14186         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
14187         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
14188         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
14189         and IX86_BUILTIN_MOVSLDUP.
14190
14191 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
14192
14193         PR rtl-optimization/30841
14194         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
14195
14196 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14197
14198         * builtins.c (fold_builtin_frexp): New.
14199         (fold_builtin_2): Use it.
14200
14201 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
14202
14203         * doc/invoke.texi (Spec Files): Document getenv spec function.
14204
14205         * gcc.c (getenv_spec_function): New function.
14206         (static_spec_functions): Add it.
14207         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
14208         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
14209         header files.
14210
14211 2007-02-22  Michael Matz  <matz@suse.de
14212
14213         PR c++/29433
14214         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
14215         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
14216
14217 2007-02-22  Ian Lance Taylor  <iant@google.com>
14218
14219         PR debug/30898
14220         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
14221         (mem_loc_descriptor): Call it.
14222
14223 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
14224             Ira Rosen  <irar@il.ibm.com>
14225
14226         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
14227
14228 2007-02-22  Ira Rosen  <irar@il.ibm.com>
14229
14230         PR tree-optimization/30843
14231         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
14232         stores only after all the group is vectorized.
14233
14234 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
14235
14236         PR tree-optimization/30858
14237         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
14238         in the reduction cycle have a single use in the loop.
14239         * tree-vectorizer.h (relevant): Add documentation.
14240
14241 2007-02-20  Mike Stump  <mrs@apple.com>
14242
14243         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
14244         * configure: Regenerate.
14245
14246 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
14247
14248         Change the defaults of some parameters and options.
14249         * config/spu/spu-protos.h (spu_optimization_options): Declare.
14250         * config/spu/spu.c (spu_optimization_options): Add.
14251         (spu_override_options): Change params in spu_optimization_options.
14252         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
14253
14254         Register 127 is only 16 byte aligned when used as a frame pointer.
14255         * config/spu/spu-protos.h (spu_init_expanders): Declare.
14256         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
14257         HARD_FRAME_POINTER_REGNUM.
14258         (spu_legitimate_address):  Use regno_aligned_for_reload.
14259         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
14260         aligned when frame_pointer_needed is true.
14261         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
14262         to 8 bits.
14263         * config/spu/spu.h (INIT_EXPANDERS): Define.
14264
14265         Make sure shift and rotate instructions have valid immediate operands.
14266         * config/spu/predicates.md (spu_shift_operand): Remove.
14267         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
14268         * config/spu/constraints.md (W, O): Extend range.
14269         * config/spu/spu.md (umask, nmask): Define.
14270         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
14271         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
14272         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
14273         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
14274         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
14275         (lshr<mode>3_reg):  Fix rtl description.
14276
14277         Make sure mulhisi immediate operands are valid.
14278         * config/spu/predicates.md (imm_K_operand): Add.
14279         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
14280
14281         Generate constants using fsmbi and andi.
14282         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
14283         (print_operand, spu_split_immediate, classify_immediate,
14284         fsmbi_const_p): Handle IC_FSMBI2.
14285
14286         Correctly handle a CONST_VECTOR containing symbols.
14287         * config/spu/spu.c (print_operand): Handle HIGH correctly.
14288         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
14289         (immediate_load_p): Allow symbols that use 2 instructions to create.
14290         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
14291         with symbols when flag_pic is set.
14292         (const_vector_immediate_p): New.
14293         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
14294         accept a CONST_VECTOR with symbols.
14295         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
14296         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
14297         correctly.
14298         * config/spu/spu.md (high, low): Delete.
14299         (low_<mode>): Define.
14300
14301         Remove INTRmode and INTR_REGNUM, which didn't work.
14302         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
14303         of INTR_REGNUM.
14304         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
14305         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
14306         peephole2 pattern): Don't use INTR or 131.
14307         (movintrcc): Delete.
14308         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
14309         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
14310         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
14311         (UNSPEC_SET_INTR): Add.
14312         * config/spu/spu-modes.def (INTR): Remove.
14313
14314         More accurate warnings about run-time relocations.
14315         * config/spu/spu.c (reloc_diagnostic): Test in_section.
14316
14317         Correctly warn about immediate arguments to specific intrinsics.
14318         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
14319         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
14320         the instruction predicate.
14321
14322         Fix tree check errors with latest update.
14323         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
14324         CALL_EXPR_ARG.
14325         (spu_expand_builtin): Use CALL_EXPR_FN.
14326
14327         Add missing specific intrinsics.
14328         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
14329         si_bislede.
14330         * config/spu/spu_internals.h: Ditto.
14331
14332         Fix incorrect operand modifiers.
14333         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
14334         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
14335
14336         Optimize one case of zero_extend of a vec_select.
14337         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
14338
14339         Accept any immediate for hbr.
14340         * config/spu/spu.md (hbr):  Change s constraints to i.
14341
14342 2007-02-21  Paul Brook  <paul@codesourcery.com>
14343
14344         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
14345         condexec_count when skipping USE and CLOBBER.
14346
14347 2007-02-21  Nick Clifton  <nickc@redhat.com>
14348
14349         * common.opt (Warray-bounds): Add Warning attribute.
14350         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
14351         Likewise.
14352         (fsized-zeroes): Add Optimization attribute.
14353         (fsplit-wide-types, ftree-scev-cprop): Likewise.
14354         * c.opt (Wc++0x-compat): Add Warning attribute.
14355
14356 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
14357
14358         PR middle-end/30761
14359         * reload1.c (eliminate_regs_in_insn): In the single_set special
14360         case, attempt to re-recognize the insn before falling back to
14361         having reload fix it up.
14362
14363 2007-02-20  Eric Christopher  <echristo@gmail.com>
14364
14365         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
14366         Rewrite accordingly.
14367         (frv_read_iacc_argument): Ditto.
14368         (frv_expand_set_builtin): Take a call instead of arglist, update for
14369         above changes.
14370         (frv_expand_unop_builtin): Ditto.
14371         (frv_expand_binop_builtin): Ditto.
14372         (frv_expand_cut_builtin): Ditto.
14373         (frv_expand_binopimm_builtin): Ditto.
14374         (frv_expand_voidbinop_builtin): Ditto.
14375         (frv_expand_int_void2arg): Ditto.
14376         (frv_expand_prefetches): Ditto.
14377         (frv_expand_voidtriop_builtin): Ditto.
14378         (frv_expand_voidaccop_builtin): Ditto.
14379         (frv_expand_load_builtin): Ditto.
14380         (frv_expand_store_builtin): Ditto.
14381         (frv_expand_mdpackh_builtin): Ditto.
14382         (frv_expand_mclracc_builtin): Ditto.
14383         (frv_expand_mrdacc_builtin): Ditto.
14384         (frv_expand_mwtacc_builtin): Ditto.
14385         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
14386         calls for above.
14387
14388 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
14389
14390         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
14391         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
14392         cmpb instruction.
14393         (HAVE_GAS_DFP): Check for assembler support of decimal floating
14394         point instructions.
14395         * configure: Regenerate.
14396         * config.in: Regenerate.
14397         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
14398         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
14399         masks to power6 and power6x and to POWERPC_MASKS.
14400         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14401         _ARCH_PWR6.
14402         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
14403         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
14404         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14405         Access PROTOTYPE as variable, not mask.
14406
14407 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
14408
14409         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
14410         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
14411         * combine.c (adjust_for_new_dest): Use it.
14412         * postreload.c (reload_combine): Likewise.
14413
14414 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
14415
14416         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
14417         notes on an insn with multiple sets, even if single_set returns
14418         non-NULL for that insn.
14419
14420 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14421
14422         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
14423         scalbn and scalbln.
14424
14425 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
14426
14427         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
14428         if user didn't pass it.
14429         * config/i386/darwin.h (CC1_SPEC): Likewise.
14430         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
14431         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
14432         -mmacosx-version-min.
14433
14434 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14435             Uros Bizjak  <ubizjak@gmail.com>
14436
14437         * optabs.h (enum optab_index): Add new OTI_scalb.
14438         (scalb_optab): Define corresponding macro.
14439         * optabs.c (init_optabs): Initialize scalb_optab.
14440         * genopinit.c (optabs): Implement scalb_optab using scalb?f3
14441         patterns.
14442         * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
14443         BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
14444         (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
14445         and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
14446         flag_unsafe_math_optimizations is set.
14447
14448         * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
14449         to implement scalbf, scalb and scalbl built-ins as inline x87
14450         intrinsics.
14451
14452 2007-02-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14453             DJ Delorie <dj@redhat.com>
14454
14455         PR other/30824
14456         * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
14457         (diagnostic_report_diagnostic): ... here, and turn them into real
14458         errors. If warnings are inhibited, no need to do anything.
14459
14460 2007-02-20  Uros Bizjak  <ubizjak@gmail.com>
14461
14462         * config/i386/i386.md (expm1xf2): Reorder insn sequence for
14463         better code generation.
14464
14465 2007-02-20  Ben Elliston  <bje@au.ibm.com>
14466
14467         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
14468
14469 2007-02-20  Kazu Hirata  <kazu@codesourcery.com>
14470
14471         * config/alpha/alpha.c, config/alpha/alpha.md,
14472         config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
14473         config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
14474         config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
14475         config/arm/lib1funcs.asm: Follow spelling conventions.
14476
14477         * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
14478         config/fr30/fr30.md, config/i386/i386.h,
14479         config/iq2000/iq2000.h, config/iq2000/predicates.md,
14480         config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
14481         config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
14482         config/pdp11/pdp11.c, config/pdp11/pdp11.h,
14483         config/rs6000/altivec.md, config/rs6000/rs6000.c,
14484         config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
14485         config/sparc/sparc.c, config/sparc/sparc.h,
14486         config/sparc/sparc.md, config/spu/constraints.md,
14487         config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
14488         conventions.
14489
14490 2007-02-20  Alan Modra  <amodra@bigpond.net.au>
14491
14492         PR target/29943
14493         * varasm.c (use_blocks_for_decl_p): Return false for decls with
14494         alias attribute.
14495
14496 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
14497
14498         * doc/invoke.texi (-ftree-lrs): Remove.
14499
14500 2007-02-19  Diego Novillo  <dnovillo@redhat.com>
14501
14502         * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
14503         NULL.
14504
14505 2007-02-19  Lee Millward  <lee.millward@codesourcery.com>
14506
14507         * config/ia64/ia64.c (ia64_expand_builtin): Use the
14508         new CALL_EXPR_FN macro for retrieving the function
14509         declaration of the input expression.
14510
14511 2007-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14512
14513         * c.opt (Waddress): New.
14514         * common.opt (Walways-true): Delete.
14515         (Wstring-literal-comparison): Delete.
14516         * doc/invoke.texi (Warning Options): Delete -Walways-true and
14517         -Wstring-literal-comparison. Add -Waddress.
14518         (Waddress): New.
14519         (Walways-true): Delete.
14520         (Wstring-literal-comparison): Delete.
14521         * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
14522         consistently instead of -Walways-true in example.
14523         * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
14524         * c-typeck.c (parser_build_binary_op): Replace
14525         -Wstring-literal-comparison and -Walways-true with -Waddress.
14526         * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
14527         with -Waddress.
14528
14529 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
14530
14531         * tree-cfg.c (dump_function_to_file): Be prepared for functions
14532         without DECL_STRUCT_FUNCTION initialized.
14533
14534 2007-02-19  Eric Botcazou  <ebotcazou@adacore.com>
14535
14536         * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
14537         due to calls to functions taking pointers as parameters.
14538
14539 2007-02-19  Richard Henderson  <rth@redhat.com>
14540
14541         PR debug/29558
14542         * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
14543         in memory.
14544
14545 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
14546
14547         * config/s390/s390.c (s390_call_saved_register_used,
14548         s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
14549         accessed to the new scheme.
14550
14551 2007-02-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14552
14553         * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
14554         (cris_print_index, cris_print_operand, cris_print_operand_address)
14555         (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
14556         (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
14557         (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
14558         GET_CODE () == xxx.
14559         * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
14560         EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
14561         GO_IF_LEGITIMATE_ADDRESS): Ditto.
14562         * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
14563         (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
14564         (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
14565         (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
14566         (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
14567         (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
14568         (uminsi3, call, call_value): Ditto.
14569         (define_split: indir_to_reg_split, unnamed): Ditto.
14570
14571 2007-02-19  Dorit Nuzman  <dorit@il.ibm.com>
14572
14573         PR tree-optimization/30975
14574         * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
14575         wrong assert.
14576
14577 2007-02-18  Eric Christopher  <echristo@gmail.com>
14578
14579         * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
14580         Remove use of arglist.
14581         (mips_expand_builtin): Remove use of arglist, pass in expr.
14582         (mips_expand_builtin_direct): Rewrite handling for arglist removal.
14583         (mips_expand_builtin_movtf): Ditto.
14584         (mips_expand_builtin_compare): Ditto.
14585
14586 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
14587
14588         * tree-sra.c (sra_build_assignment): Replace assertion
14589         checking with a comment explaining why it can't be done.
14590
14591 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
14592
14593         PR middle-end/30833
14594         * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
14595         during CALL_EXPR representation conversion.
14596         * tree-ssa-propagate.c (set_rhs): Likewise.
14597
14598 2007-02-19  Alexandre Oliva  <aoliva@redhat.com>
14599
14600         * tree-sra.c (sra_build_assignment): Disable assertion checking
14601         for now.
14602
14603 2007-02-18  Roger Sayle  <roger@eyesopen.com>
14604
14605         * function.c (gimplify_parameters): Call build_gimple_modify_stmt
14606         instead of calling build2 with a GIMPLE_MODIFY_STMT.
14607         * gimple-low.c (lower_function_body, lower_builtin_setjmp):
14608         Likewise.
14609         * gimplify.c (build_stack_save_restore, gimplify_return_expr,
14610         gimplify_decl_expr,  gimplify_self_mod_expr, gimplify_cond_expr,
14611         gimplify_init_ctor_eval_range, gimple_push_cleanup,
14612         gimplify_omp_for, gimplify_omp_atomic_pipeline,
14613         gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
14614         force_gimple_operand): Likewise.
14615         * ipa-cp.c (constant_val_insert): Likewise.
14616         * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
14617         lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
14618         perfect_nestify): Likewise.
14619         * langhooks.c (lhd_omp_assignment): Likewise.
14620         * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
14621         lower_copyprivate_clauses, lower_send_clauses,
14622         lower_send_shared_vars, expand_parallel_call,
14623         expand_omp_for_generic, expand_omp_for_static_nochunk,
14624         expand_omp_for_static_chunk, expand_omp_sections,
14625         lower_omp_single_copy, lower_omp_for_lastprivate,
14626         lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
14627         * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
14628         tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
14629         Likewise.
14630
14631 2007-02-19  Kazu Hirata  <kazu@codesourcery.com>
14632
14633         * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
14634         config/sh/sh.md: Follow spelling conventions.
14635
14636         * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
14637         config/frv/predicates.md: Follow spelling conventions.
14638
14639         * config/m68k/linux-unwind.h: Fix a comment typo.
14640         * target.h: Follow spelling conventions.
14641
14642 2007-02-18  Roger Sayle  <roger@eyesopen.com>
14643
14644         PR rtl-optimization/28173
14645         * simplify-rtx.c (simplify_binary_operation_1) <IOR>:  Optimize
14646         (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
14647         Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
14648         Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
14649         <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
14650
14651 2007-02-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14652
14653         * builtins.c (fold_builtin_load_exponent): New.
14654         (fold_builtin_2): Use it.
14655
14656 2007-02-18  Steven Bosscher  <steven@gcc.gnu.org>
14657
14658         PR rtl-optimization/30773
14659         * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
14660         if we fail to attach a REG_EQUIV note.
14661
14662 2007-02-18  David Edelsohn  <edelsohn@gnu.org>
14663             Roger Sayle  <roger@eyesopen.com>
14664
14665         * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
14666
14667 2007-02-18  Sandra Loosemore  <sandra@codesourcery.com>
14668
14669         * calls.c (initialize_argument_information): Pass original EXP
14670         and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments.  Move
14671         code to split complex arguments here, as part of initializing the
14672         ARGS array.
14673         (expand_call): Remove code that builds a list of arguments and
14674         inserts implicit arguments into it.  Instead, just count how many
14675         implicit arguments there will be so we can determine the size of
14676         the ARGS array, and let initialize_argument_information do the work.
14677         (split_complex_values): Delete unused function.
14678
14679 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
14680
14681         * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
14682
14683 2007-02-18  Eric Botcazou  <ebotcazou@adacore.com>
14684
14685         * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
14686         for arg pointer based indexed addressing.
14687
14688 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
14689
14690         * config/ia64/ia64.h, config/ia64/ia64.md,
14691         config/ia64/predicates.md, config/ia64/sysv4.h: Follow
14692         spelling conventions.
14693
14694 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
14695
14696         * config/m68k/m68k.c (split_di): New.
14697         * config/m68k/m68k-protos.h: Declare split_di.
14698         * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
14699           Improve predicate handling and split constant shifts.
14700
14701 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
14702
14703         * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
14704         parameter for register bitfield operations, general predicates
14705         cleanup
14706
14707 2007-02-18  Roman Zippel <zippel@linux-m68k.org>
14708
14709         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
14710         * config/m68k/linux-unwind.h: New file.
14711
14712 2007-02-18  Kazu Hirata  <kazu@codesourcery.com>
14713
14714         * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
14715         config/i386/athlon.md, config/ia64/ia64.md,
14716         config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
14717         df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
14718         ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
14719         tree-ssa-loop-niter.c, tree-vect-analyze.c,
14720         tree-vect-transform.c: Fix comment typos.
14721
14722 2007-02-17  Kazu Hirata  <kazu@codesourcery.com>
14723
14724         * sched-deps.c (find_insn_list): Remove.
14725         * sched-int.h: Remove the prototype for find_insn_list.
14726
14727 2007-02-16  Geoffrey Keating  <geoffk@apple.com>
14728
14729         * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
14730         to linker.
14731         (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
14732         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
14733         darwin_rs6000_override_options.
14734         (C_COMMON_OVERRIDE_OPTIONS): Expect
14735         darwin_macosx_version_min to be non-NULL always.
14736         (TARGET_C99_FUNCTIONS): Likewise.
14737         (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
14738         (DARWIN_MINVERSION_SPEC): New.
14739         * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
14740         * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
14741         to cc1*.
14742         (DARWIN_MINVERSION_SPEC): New.
14743         * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
14744         value.
14745         * config/darwin-c.c (darwin_cpp_builtins): Expect
14746         darwin_macosx_version_min to be non-NULL always.
14747
14748         * config/rs6000/rs6000.c: Clean up trailing whitespace.
14749
14750 2007-02-16  Uros Bizjak  <ubizjak@gmail.com>
14751
14752         * config/i386/i386.h (x86_use_xchgb): New.
14753         (TARGET_USE_XCHGB): New macro.
14754         * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
14755         * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
14756         Split after reload into bswaphi for shifts of 8.
14757         (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
14758         (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
14759         or when optimizing for size.
14760
14761 2007-02-16  Richard Guenther  <rguenther@suse.de>
14762             Christian Bruel  <christian.bruel@st.com>
14763
14764         * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
14765         DECLs but prefer SSA_NAMEs over DECLs.
14766
14767 2007-02-16  Richard Guenther  <rguenther@suse.de>
14768
14769         * tree-flow-inline.h (single_imm_use_p): Remove.
14770         (zero_imm_uses_p): Likewise.
14771         * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
14772         instead of single_imm_use_p.
14773         * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
14774         zero_imm_uses_p.
14775
14776 2007-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14777
14778         PR other/27843
14779         * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
14780         nested double- and backquotes.
14781
14782 2007-02-15  Roger Sayle  <roger@eyesopen.com>
14783
14784         PR middle-end/30391
14785         * tree.c (expr_align): Handle MODIFY_EXPR.  GIMPLE_MODIFY_STMT
14786         should be unreachable.
14787         (build2_stat): Allow construction of MODIFY_EXPR at any time.
14788         For the time being redirect GIMPLE_MODIFY_STMT to the new
14789         (renamed) build_gimple_modify_stmt_stat.
14790         (build2_gimple_stat): Rename to...
14791         (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
14792         Always build a GIMPLE_MODIFY_STMT node.
14793         * tree.h (build2_gimple, build2_gimple_stat): Delete.
14794         (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
14795         declarations.
14796
14797         * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
14798         gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
14799         * tree-complex.c (set_component_ssa_name, expand_complex_move,
14800         expand_complex_div_wide): Likewise.
14801         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
14802         * tree-ssa-loop-im.c (schedule_sm): Likewise.
14803         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
14804         * tree-ssa-loop-manip.c (create_iv): Likewise.
14805         * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
14806         abs_replacement): Likewise.
14807         * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
14808         realify_fake_stores): Likewise.
14809
14810         * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
14811         node rather than a GIMPLE_MODIFY_STMT node.
14812         (std_gimpify_va_arg_expr, expand_builtin_va_copy,
14813         fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
14814         Likewise.
14815         (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
14816         * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
14817         GIMPLE_MODIFY_STMT.
14818
14819 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14820
14821         PR middle-end/30433
14822         * fold-const.c (fold_comparison): Add back the
14823         folding of constant complex comparisions.
14824
14825 2007-02-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14826
14827         PR middle-end/30729
14828         * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
14829         effects unknown to this function, return early.
14830
14831 2007-02-15  Ian Lance Taylor  <iant@google.com>
14832
14833         * lower-subreg.c (move_eh_region_note): New static function.
14834         (resolve_simple_move): Call it.
14835         (decompose_multiword_subregs): Track blocks for which we resolve a
14836         simple move which is also a control flow insn.  Pass them to
14837         find_many_sub_basic_blocks.
14838         (pass_lower_subreg): Add TODO_verify_flow.
14839         (pass_lower_subreg2): Likewise.
14840
14841 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
14842             Brooks Moses  <brooks.moses@codesourcery.com>
14843             Lee Millward  <lee.millward@codesourcery.com>
14844
14845         * tree.h (enum tree_code_class): Add tcc_vl_exp.
14846         (VL_EXP_CLASS_P): New.
14847         (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
14848         TREE_CODE_LENGTH.
14849         (TREE_OPERAND_CHECK_CODE): Likewise.
14850         (GIMPLE_STMT_OPERAND_CHECK): Likewise.
14851         (TREE_RTL_OPERAND_CHECK): Likewise.
14852         (tree_operand_check_failed): Make second parameter the whole tree
14853         instead of its code.  Fixed callers.
14854         (VL_EXP_CHECK): New.
14855         (TREE_OPERAND_LENGTH): New.
14856         (VL_EXP_OPERAND_LENGTH): New.
14857         (CALL_EXPR_FN): New.
14858         (CALL_EXPR_STATIC_CHAIN): New.
14859         (CALL_EXPR_ARGS): New.
14860         (CALL_EXPR_ARG): New.
14861         (call_expr_nargs): New.
14862         (CALL_EXPR_ARGP): New.
14863         (build_nt_call_list): Declare.
14864         (build_vl_exp_stat): Declare.
14865         (build_vl_exp): New.
14866         (build_call_list): Declare.
14867         (build_call_nary): Declare.
14868         (build_call_valist): Declare.
14869         (build_call_array): Declare.
14870         (call_expr_arg): Declare.
14871         (call_expr_argp): Declare.
14872         (call_expr_arglist): Declare.
14873         (fold_build_call_list): Declare.
14874         (fold_build_call_list_initializer): Declare.
14875         (fold_call_expr): Declare to replace fold_builtin.
14876         (fold_builtin_fputs): Update to agree with modified definition.
14877         (fold_builtin_strcpy): Likewise.
14878         (fold_builtin_strncpy): Likewise.
14879         (fold_builtin_memory_chk): Likewise.
14880         (fold_builtin_stxcpy_chk): Likewise.
14881         (fold_builtin_strncpy_chk): Likewise.
14882         (fold_builtin_next_arg): Likewise.
14883         (fold_build_call_expr): Declare.
14884         (fold_builtin_call_list): Declare.
14885         (fold_builtin_call_valist): Declare.
14886         (build_call_expr): Declare.
14887         (validate_arglist): Update to agree with modified definition.
14888         (tree_operand_length): New.
14889         (call_expr_arg_iterator): New.
14890         (init_call_expr_arg_iterator): New.
14891         (next_call_expr_arg): New.
14892         (first_call_expr_arg): New.
14893         (more_call_expr_args_p): New.
14894         (FOR_EACH_CALL_EXPR_ARG): New.
14895
14896         * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
14897         and tcc_gimple_stmt.
14898         (tree_code_size): Update documentation.  Use sizeof (tree) rather
14899         than sizeof (char *).
14900         (tree_size): Likewise.  Add case for tcc_vl_exp.
14901         (tree_node_structure): Add case for tcc_vl_exp.
14902         (contains_placeholder_p): Likewise.
14903         (substitute_in_expr): Likewise.
14904         (substitute_placeholder_in_expr): Likewise.
14905         (stabilize_reference_1): Likewise.
14906         (build3_stat): Remove logic for CALL_EXPRs.  Replace with assertion
14907         to diagnose breakage of this interface for constructing CALL_EXPRs.
14908         (build_nt): Add similar assertion here.
14909         (build_nt_call_list): New.
14910         (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
14911         (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
14912         TREE_CODE_LENGTH.
14913         (get_callee_fndecl): Use new CALL_EXPR accessors.
14914         (tree_operand_check_failed): Change parameters to pass entire node
14915         instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
14916         (process_call_operands): New.
14917         (build_vl_exp_stat): New.
14918         (build_call_list): New.
14919         (build_call_nary): New.
14920         (build_call_valist): New.
14921         (build_call_array): New.
14922         (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
14923         (call_expr_arglist): New.
14924
14925         * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
14926         tcc_vl_exp instead of a fixed-size tcc_expression.
14927
14928         * doc/c-tree.texi (CALL_EXPR): Document new representation and
14929         accessors for CALL_EXPRs.
14930         (AGGR_INIT_EXPR): Likewise.
14931
14932 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
14933             Brooks Moses  <brooks.moses@codesourcery.com>
14934             Lee Millward  <lee.millward@codesourcery.com>
14935
14936         * builtins.c (c_strlen): Return NULL_TREE instead of 0.
14937         (expand_builtin_nonlocal_goto): Change parameter to be entire
14938         CALL_EXPR instead of an arglist.  Use new CALL_EXPR accessors.
14939         (expand_builtin_prefetch): Likewise.
14940         (expand_builtin_classify_type): Likewise.
14941         (mathfn_built_in): Return NULL_TREE instead of 0.
14942         (expand_errno_check): Use new CALL_EXPR accessors.
14943         (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
14944         Return NULL_RTX instead of 0.
14945         (expand_builtin_mathfn_2): Likewise.
14946         (expand_builtin_mathfn_3): Likewise.
14947         (expand_builtin_interclass_mathfn): Likewise.
14948         (expand_builtin_sincos): Likewise.
14949         (expand_builtin_cexpi): Likewise.
14950         (expand_builtin_int_roundingfn): Likewise.
14951         (expand_builtin_int_roundingfn_2): Likewise.
14952         (expand_builtin_pow): Likewise.
14953         (expand_builtin_powi): Likewise.
14954         (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
14955         of arglist, fixing callers appropriately.  Use new CALL_EXPR
14956         accessors and constructors.  Return NULL_RTX instead of 0.
14957         (expand_builtin_strstr): Likewise.
14958         (expand_builtin_strchr): Likewise.
14959         (expand_builtin_strrchr): Likewise.
14960         (expand_builtin_strpbrk): Likewise.
14961         (expand_builtin_memcpy): Likewise.
14962         (expand_builtin_mempcpy): Likewise.
14963         (expand_builtin_mempcpy_args): New.
14964         (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
14965         (expand_builtin_memmove_args): New.
14966         (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
14967         (expand_movstr): Likewise.
14968         (expand_builtin_strcpy): Likewise.
14969         (expand_builtin_strcpy_args): New.
14970         (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
14971         (expand_builtin_strncpy): Likewise.
14972         (expand_builtin_memset): Likewise.
14973         (expand_builtin_memset_args): New.
14974         (expand_builtin_bzero): Similarly to expand_builtin_memset.
14975         (expand_builtin_memcmp): Likewise.
14976         (expand_builtin_strcmp): Likewise.
14977         (expand_builtin_strncmp): Likewise.
14978         (expand_builtin_strcat): Likewise.
14979         (expand_builtin_strncat): Likewise.
14980         (expand_builtin_strspn): Likewise.
14981         (expand_builtin_strcspn): Likewise.
14982         (expand_builtin_args_info): Likewise.
14983         (expand_builtin_va_start): Likewise.
14984         (gimplify_va_arg_expr): Likewise.
14985         (expand_builtin_va_end): Likewise.
14986         (expand_builtin_va_copy): Likewise.
14987         (expand_builtin_frame_address): Likewise.
14988         (expand_builtin_alloca): Likewise.
14989         (expand_builtin_bswap): Likewise.
14990         (expand_builtin_unop): Likewise.
14991         (expand_builtin_fputs): Likewise.
14992         (expand_builtin_expect): Likewise.
14993         (expand_builtin_fabs): Likewise.
14994         (expand_builtin_copysign): Likewise.
14995         (expand_builtin_printf): Likewise.
14996         (expand_builtin_fprintf): Likewise.
14997         (expand_builtin_sprintf): Likewise.
14998         (expand_builtin_init_trampoline): Likewise.
14999         (expand_builtin_signbit): Likewise.
15000         (expand_builtin_fork_or_exec): Likewise.
15001         (expand_builtin_sync_operation): Likewise.
15002         (expand_builtin_compare_and_swap): Likewise.
15003         (expand_builtin_lock_test_and_set): Likewise.
15004         (expand_builtin_lock_release): Likewise.
15005         (expand_builtin): Likewise.
15006         (builtin_mathfn_code): Likewise.
15007
15008         (fold_builtin_constant_p): Pass call arguments individually instead
15009         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
15010         accessors and constructors.  Return NULL_TREE instead of 0.
15011         (fold_builtin_expect): Likewise.
15012         (fold_builtin_classify_type): Likewise.
15013         (fold_builtin_strlen): Likewise.
15014         (fold_builtin_nan): Likewise.
15015         (integer_valued_real_p): Likewise.
15016         (fold_trunc_transparent_mathfn): Likewise.
15017         (fold_fixed_mathfn): Likewise.
15018         (fold_builtin_cabs): Likewise.
15019         (fold_builtin_sqrt): Likewise.
15020         (fold_builtin_cbrt): Likewise.
15021         (fold_builtin_cos): Likewise.
15022         (fold_builtin_cosh): Likewise.
15023         (fold_builtin_tan): Likewise.
15024         (fold_builtin_sincos): Likewise.
15025         (fold_builtin_cexp): Likewise.
15026         (fold_builtin_trunc): Likewise.
15027         (fold_builtin_floor): Likewise.
15028         (fold_builtin_ceil): Likewise.
15029         (fold_builtin_round): Likewise.
15030         (fold_builtin_int_roundingfn): Likewise.
15031         (fold_builtin_bitop): Likewise.
15032         (fold_builtin_bswap): Likewise.
15033         (fold_builtin_logarithm): Likewise.
15034         (fold_builtin_hypot): Likewise.
15035         (fold_builtin_pow): Likewise.
15036         (fold_builtin_powi): Likewise.
15037         (fold_builtin_exponent): Likewise.
15038         (fold_builtin_memset): Likewise.
15039         (fold_builtin_bzero): Likewise.
15040         (fold_builtin_memory_op): Likewise.
15041         (fold_builtin_bcopy): Deleted; call site changed to invoke
15042         fold_builtin_memory_op directly.
15043         (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
15044         (fold_builtin_strncpy): Likewise.
15045         (fold_builtin_memcmp): Likewise.
15046         (fold_builtin_strcmp): Likewise.
15047         (fold_builtin_strncmp): Likewise.
15048         (fold_builtin_signbit): Likewise.
15049         (fold_builtin_copysign): Likewise.
15050         (fold_builtin_isascii): Likewise.
15051         (fold_builtin_toascii): Likewise.
15052         (fold_builtin_isdigit): Likewise.
15053         (fold_builtin_fabs): Likewise.
15054         (fold_builtin_abs): Likewise.
15055         (fold_builtin_fmin_fmax): Likewise.
15056         (fold_builtin_carg): Likewise.
15057         (fold_builtin_classify): Likewise.
15058         (fold_builtin_unordered_cmp): Likewise.
15059
15060         (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
15061         New functions split out from fold_builtin_1.
15062         (fold_builtin_n): New.
15063         (fold_builtin_varargs): New.
15064         (fold_builtin): Deleted.  Most callers changed to use fold_call_expr
15065         instead.
15066         (fold_call_expr): New.
15067         (build_function_call_expr): Rewrite to use new helper function.
15068         (fold_builtin_call_list): New.
15069         (build_call_expr): New.
15070         (fold_builtin_call_valist): New.
15071         (rewrite_call_expr): New.
15072         (validate_arg): New.
15073         (validate_arglist): Change parameter to be entire CALL_EXPR instead
15074         of an arglist.  Change return type to bool.  Use new CALL_EXPR
15075         accessors.
15076
15077         (fold_builtin_strstr):  Pass call arguments individually instead
15078         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
15079         accessors and constructors.  Return NULL_TREE instead of 0.
15080         (fold_builtin_strchr): Likewise.
15081         (fold_builtin_strrchr): Likewise.
15082         (fold_builtin_strpbrk): Likewise.
15083         (fold_builtin_strcat): Likewise.
15084         (fold_builtin_strncat): Likewise.
15085         (fold_builtin_strspn): Likewise.
15086         (fold_builtin_strcspn): Likewise.
15087         (fold_builtin_fputs): Likewise.
15088         (fold_builtin_next_arg): Likewise.
15089         (fold_builtin_sprintf): Likewise.
15090
15091         (expand_builtin_object_size): Use new CALL_EXPR accessors.  Use
15092         NULL_RTX instead of 0.
15093         (expand_builtin_memory_chk): Likewise.
15094         (maybe_emit_chk_warning): Likewise.
15095         (maybe_emit_sprintf_chk_warning): Likewise.
15096
15097         (fold_builtin_object_size): Pass call arguments individually instead
15098         of as an arglist, fixing callers appropriately.  Use new CALL_EXPR
15099         accessors and constructors.  Return NULL_TREE instead of 0.
15100         (fold_builtin_memory_chk): Likewise.
15101         (fold_builtin_stxcpy_chk): Likewise.
15102         (fold_builtin_strncpy_chk): Likewise.
15103         (fold_builtin_strcat_chk): Likewise.
15104         (fold_builtin_strcat_chk): Likewise.
15105         (fold_builtin_strncat_chk): Likewise.
15106         (fold_builtin_sprintf_chk): Likewise.
15107         (fold_builtin_snprintf_chk): Likewise.
15108         (fold_builtin_printf): Likewise.
15109         (fold_builtin_vprintf): Likewise.
15110
15111         * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
15112         constructors.
15113         (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
15114         (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
15115         (extract_muldiv_1): Add VL_EXP_CLASS_P case.
15116         (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
15117         (fold_unary): Likewise.
15118         (fold_binary): Likewise.
15119         (fold_ternary): Remove CALL_EXPR case, since they are no longer
15120         ternary expressions.
15121         (fold): Add logic for tcc_vl_exp.
15122         (fold_checksum_tree):  Make it know about tcc_vl_exp.  Use
15123         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
15124         (fold_build3_stat): Add assertion to flag broken interface for
15125         constructing CALL_EXPRs.
15126         (fold_build_call_list): New.
15127         (fold_build_call_list_initializer): New.
15128         (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
15129         constructors.
15130         (fold_strip_sign_ops): Likewise.
15131
15132 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
15133             Brooks Moses  <brooks.moses@codesourcery.com>
15134             Lee Millward  <lee.millward@codesourcery.com>
15135
15136         * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
15137         accessors and dump arguments explicitly.
15138
15139         * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
15140         TREE_CODE_LENGTH.
15141         (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
15142         explicitly.
15143         (print_call_name): Use new CALL_EXPR accessors.
15144
15145         * print-tree.c (print_node): Add case tcc_vl_exp.  Print
15146         CALL_EXPR arguments explicitly instead of as a list.  Use
15147         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
15148
15149         * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
15150         (vrp_visit_stmt): Likewise.
15151
15152         * tree-ssa-loop-im.c (outermost_invariant_loop_expr):  Make it
15153         know about tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of
15154         TREE_CODE_LENGTH.
15155         (force_move_till_expr): Likewise.
15156
15157         * targhooks.c (default_external_stack_protect_fail): Use
15158         build_call_expr instead of build_function_call_expr.
15159         (default_hidden_stack_protect_fail): Likewise.
15160
15161         * tree-complex.c (expand_complex_libcall): Use build_call_expr to
15162         build the call.
15163
15164         * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
15165         and walk arguments explicitly.
15166
15167         * tree-ssa-loop-niter.c (simplify_replace_tree): Use
15168         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
15169         (expand_simple_operations): Likewise.
15170         (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
15171
15172         * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
15173         of TREE_CODE_LENGTH.
15174         (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
15175
15176         * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
15177         instead of TREE_CODE_LENGTH.
15178
15179         * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
15180         (tree_ic_transform): Likewise.
15181         (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
15182         parameter instead of arglist.  Fix callers.
15183         (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
15184         (tree_stringops_transform): Likewise.
15185         (tree_indirect_call_to_profile): Likewise.
15186         (tree_stringops_values_to_profile): Likewise.
15187
15188         * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
15189         (eliminate_tail_call): Likewise.
15190
15191         * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
15192
15193         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15194         Use TREE_OPERAND_LENGTH and generalize to handle any number of
15195         operands.
15196         (instantiate_parameters_1): Can't handle tcc_vl_exp here.
15197
15198         * omp-low.c (build_omp_barrier): Use build_call_expr.
15199         (lower_rec_input_clauses): Likewise.
15200         (lower_reduction_clauses): Likewise.
15201         (expand_parallel_call): Likewise.
15202         (maybe_catch_exception): Likewise.
15203         (expand_omp_for_generic): Likewise.
15204         (expand_omp_for_static_nochunk): Likewise.
15205         (expand_omp_sections): Likewise.
15206         (lower_omp_single_simple): Likewise.
15207         (lower_omp_single_copy): Likewise.
15208         (lower_omp_master): Likewise.
15209         (lower_omp_ordered): Likewise.
15210         (lower_omp_critical): Likewise.
15211
15212         * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
15213         (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
15214
15215         * tree-gimple.c (is_gimple_call_addr): Fix doc.
15216         (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
15217         TREE_CODE_LENGTH.  Add tcc_vl_exp case.
15218
15219         * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
15220         and generalize to handle any number of operands.
15221         (chrec_contains_undetermined): Likewise.
15222         (tree_contains_chrecs): Likewise.
15223         (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
15224
15225         * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
15226
15227         * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors.  Use
15228         fold_call_expr instead of fold_builtin.
15229         (ccp_fold_builtin): Likewise.  Update calls into builtins.c to
15230         match declarations there.
15231         (fold_stmt): Use new CALL_EXPR constructor and accessors.  Doc
15232         updates.
15233
15234         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
15235         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
15236
15237         * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
15238         (scan_function): Add case tcc_vl_exp for CALL_EXPR.
15239
15240         * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
15241         accessors.
15242
15243         * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
15244         (execute_cse_sincos): Use new CALL_EXPR accessors.
15245
15246         * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
15247
15248         * gimple-low.c (lower_function_body): Use build_call_expr.
15249         (lower_builtin_setjmp): Likewise.
15250
15251         * expr.c (emit_block_move_via_libcall): Use build_call_expr.
15252         (set_storage_via_libcall): Likewise.
15253         (safe_from_p): Add tcc_vl_exp case.  Use TREE_OPERAND_LENGTH
15254         instead of TREE_CODE_LENGTH.
15255         (expand_expr_real_1): Use new CALL_EXPR accessors.
15256
15257         * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
15258         generalize to handle any number of operands.
15259         (TB_parent_eq): Likewise.
15260
15261         * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
15262         (strip_builtin_expect): Likewise.
15263
15264         * function.c (gimplify_parameters): Use build_call_expr.
15265
15266         * tree-vectorizer.c (vect_is_simple_reduction): Use
15267         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
15268
15269         * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
15270         (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
15271
15272         * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
15273         iterators.
15274
15275         * gimplify.c (build_stack_save_restore): Use build_call_expr.
15276         (gimplify_decl_expr): Likewise.
15277         (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
15278         Use new CALL_EXPR iterators.
15279         (gimplify_modify_expr_to_memcpy): Use build_call_expr.
15280         (gimplify_modify_expr_to_memset): Likewise.
15281         (gimplify_variable_sized_compare): Likewise.
15282         (gimplify_omp_atomic_fetch_op): Likewise.
15283         (gimplify_omp_atomic_pipeline): Likewise.
15284         (gimplify_omp_atomic_mutex): Likewise.
15285         (gimplify_function_tree): Likewise.
15286
15287         * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
15288         (call_expr_flags): Likewise.
15289         (expand_call): Likewise.
15290
15291         * except.c (expand_builtin_eh_return_data_regno): Pass entire
15292         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
15293         accessors.
15294
15295         * coverage.c (create_coverage): Use build_call_expr.
15296
15297         * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
15298         (temp_call_expr_obstack): New.
15299         (pool_copy_list): Delete.
15300         (temp_copy_call_expr): New.
15301         (phi_translate): Add case tcc_vl_exp for CALL_EXPR.  Use new
15302         CALL_EXPR accessors.  Get rid of special goo for copying argument
15303         lists and use temp_copy_call_expr instead.
15304         (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR.  Use new
15305         CALL_EXPR accessors.
15306         (create_expression_by_pieces): Likewise.  Use build_call_array
15307         to construct the result instead of fold_build3.
15308         (create_value_expr_from): Add tcc_vl_exp.  Delete special goo for
15309         dealing with argument lists.
15310         (init_pre): Remove references to expression_node_pool and
15311         list_node_pool.  Init temp_call_expr_obstack instead.
15312         (fini_pre): Remove references to expression_node_pool and
15313         list_node_pool.
15314
15315         * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
15316         and walk arguments explicitly instead of as a list.
15317
15318         * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
15319         (mx_register_decls): Likewise.
15320         (mudflap_register_call): Likewise.
15321         (mudflap_finish_file): Likewise.
15322
15323         * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
15324         (ipa_callsite_compute_param): Likewise.
15325
15326         * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
15327         accessors and constructor.
15328
15329         * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
15330         accessors and constructor.
15331         (convert_tramp_reference): Likewise.
15332         (convert_call_expr): Likewise.
15333         (finalize_nesting_tree_1): Likewise.
15334
15335         * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
15336         accessors.
15337
15338         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
15339
15340         * tree-inline.c (initialize_inlined_parameters): Pass entire
15341         CALL_EXPR as parameter instead of arglist.  Use new CALL_EXPR
15342         accessors.
15343         (estimate_num_insns_1): Use new CALL_EXPR accessors.
15344         (expand_call_inline): Tidy up call to initialize_inlined_parameters.
15345
15346         * tree-vect-transform.c (vect_create_epilog_for_reduction):  Use
15347         TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
15348         (vectorizable_reduction): Likewise.
15349         (vectorizable_call): Use new CALL_EXPR iterators.
15350         (vectorizable_conversion): Use build_call_expr.
15351         (vectorizable_operation): Use TREE_OPERAND_LENGTH.
15352         (vect_gen_widened_results_half): Use build_call_expr.
15353         (vect_setup_realignment): Likewise.
15354         (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
15355
15356         * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
15357         (pass_through_call): Likewise.
15358         (compute_object_sizes): Likewise.  Use fold_call_expr instead of
15359         fold_builtin.
15360
15361         * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
15362         (tree_gen_pow2_profiler): Likewise.
15363         (tree_gen_one_value_profiler): Likewise.
15364         (tree_gen_ic_func_profiler): Likewise.
15365         (tree_gen_average_profiler): Likewise.
15366         (tree_gen_ior_profiler): Likewise.
15367
15368         * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
15369         (find_func_aliases): Use new CALL_EXPR accessors.  Add case
15370         tcc_vl_exp.  Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
15371
15372         * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
15373         of TREE_CODE_LENGTH.
15374
15375         * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
15376         of TREE_CODE_LENGTH.
15377
15378         * convert.c (convert_to_real): Use new CALL_EXPR accessors and
15379         constructor.
15380         (convert_to_integer): Likewise.
15381
15382         * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
15383         accessors.
15384
15385 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
15386             Brooks Moses  <brooks.moses@codesourcery.com>
15387             Lee Millward  <lee.millward@codesourcery.com>
15388
15389         * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
15390         accessors.
15391         * config/frv/frv.c (frv_expand_builtin): Likewise.
15392         * config/s390/s390.c (s390_expand_builtin): Likewise.
15393
15394         * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
15395         (sparc_expand_builtin): Use new CALL_EXPR accessors.
15396
15397         * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
15398         (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
15399         instead of arglist.  Use new CALL_EXPR accessors on it.  Fix callers.
15400         (ix86_expand_store_builtin): Likewise.
15401         (ix86_expand_unop_builtin): Likewise.
15402         (ix86_expand_unop1_builtin): Likewise.
15403         (ix86_expand_sse_compare): Likewise.
15404         (ix86_expand_sse_comi): Likewise.
15405         (ix86_expand_vec_init_builtin): Likewise.
15406         (ix86_expand_vec_ext_builtin): Likewise.
15407         (ix86_expand_vec_set_builtin): Likewise.
15408         (ix86_expand_builtin): Use new CALL_EXPR accessors.
15409
15410         * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
15411         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
15412
15413         * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
15414         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
15415         (iq2000_expand_builtin): Use new CALL_EXPR accessors.
15416
15417         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
15418         build_call_expr.
15419         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
15420         (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
15421         arglist.  Use new CALL_EXPR accessors.  Fix callers.
15422         (altivec_expand_abs_builtin): Likewise.
15423         (rs6000_expand_binop_builtin): Likewise.
15424         (altivec_expand_predicate_builtin): Likewise.
15425         (altivec_expand_lv_builtin): Likewise.
15426         (spe_expand_stv_builtin): Likewise.
15427         (altivec_expand_stv_builtin): Likewise.
15428         (rs6000_expand_ternop_builtin): Likewise.
15429         (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
15430         (altivec_expand_st_builtin): Likewise.
15431         (altivec_expand_dst_builtin): Likewise.
15432         (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
15433         arglist.  Use new CALL_EXPR accessors.  Fix callers.
15434         (altivec_expand_vec_set_builtin): Likewise.
15435         (altivec_expand_vec_ext_builtin): Likewise.
15436         (altivec_expand_builtin): Use new CALL_EXPR accessors.
15437         (spe_expand_builtin): Likewise.
15438         (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
15439         arglist.  Use new CALL_EXPR accessors.  Fix callers.
15440         (spe_expand_evsel_builtin): Likewise.
15441         (rs6000_expand_builtin): Use new CALL_EXPR accessors.  VCFUX and
15442         FCFSX cases must construct whole new CALL_EXPR, not just arglist.
15443
15444         * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
15445         instead of arglist.  Use new CALL_EXPR accessors.  Fix callers.
15446         (arm_expand_unop_builtin): Likewise.
15447         (arm_expand_builtin): Use new CALL_EXPR accessors.
15448
15449         * config/mips/mips.c (mips_expand_builtin):  Use new CALL_EXPR
15450         accessors.
15451
15452         * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire
15453         CALL_EXPR instead of arglist.  Use new CALL_EXPR accessors.
15454         Fix callers.
15455         (bfin_expand_unop_builtin): Likewise.
15456         (bfin_expand_builtin): Use new CALL_EXPR accessors.
15457
15458 2007-02-15  Sandra Loosemore  <sandra@codesourcery.com>
15459             Brooks Moses  <brooks.moses@codesourcery.com>
15460             Lee Millward  <lee.millward@codesourcery.com>
15461
15462         * c-semantics.c (build_stmt): Add internal diagnostic check.
15463
15464         * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
15465         accessors.  Print arguments explicitly instead of as a list.
15466
15467         * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
15468
15469         * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
15470         (c_finish_omp_flish): Likewise.
15471
15472         * c-common.c (verify_tree): Use new CALL_EXPR accessors.  Traverse
15473         arguments explicitly instead of as a list.  Use TREE_OPERAND_LENGTH
15474         instead of TREE_CODE_LENGTH.
15475         (check_function_arguments_recurse): Use new CALL_EXPR accessors.
15476         (c_warn_unused_result): Likewise.
15477
15478 2007-02-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15479
15480         PR c/26494
15481         * doc/invoke.texi (Warning Options): Remove
15482         -Werror-implicit-function-declaration.
15483         (Wimplicit-function-declaration): Update description.
15484         * opts.c (common_handle_option): Move handling of -Werror=* to...
15485         (enable_warning_as_error): ...here.
15486         * opts.h (enable_warning_as_error): Declare.
15487         * c-decl.c (implicit_decl_warning): Unless
15488         -Wno-implicit-function-declaration is given, emit a pedwarn if
15489         -std=c99 or emit a warning if -Wimplicit-function-declaration.
15490         * c.opt (Wimplicit-function-declaration): Replace
15491         mesg_implicit_function_declaration with
15492         warn_implicit_function_declaration.
15493         * c-opts.c (c_common_handle_option):
15494         -Werror-implicit-function-declaration is exactly equal as
15495         -Werror=implicit-function-declaration.
15496         (set_Wimplicit): Replace mesg_implicit_function_declaration with
15497         warn_implicit_function_declaration.
15498         (c_common_post_options): -Wimplict-function-declaration is enabled
15499         by default by -std=c99, otherwise is disabled by default.
15500         * c-objc-common.c (c_objc_common_init): Remove flawed logic.
15501
15502 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
15503
15504         * gimplify.c (gimplify_modify_expr): During gimplification, attach a
15505         DECL on the rhs to a DECL on the lhs for debug info purposes if the
15506         former is ignored but not the latter.
15507
15508 2007-02-15  Eric Botcazou  <ebotcazou@adacore.com>
15509
15510         * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
15511         is made and the reference doesn't use the alias set of its type,
15512         do not create the temporary using that type.
15513
15514 2007-02-15  Aldy Hernandez  <aldyh@redhat.com>
15515
15516         * jump.c: Remove prototypes for delete_computation and
15517         delete_prior_computation.
15518
15519 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
15520
15521         * jump.c (get_label_after): Delete.
15522         (get_label_before, delete_computation, delete_jump,
15523         delete_prior_computation, follow_jumps): Move...
15524         * reorg.c (delete_computation, delete_prior_computation): ... here...
15525         (get_label_before, delete_jump): ... making these static ...
15526         (follow_jumps): ... and simplifying this since it only runs after
15527         reload.
15528         * rtl.h (get_label_after, get_label_before, delete_jump,
15529         follow_jumps): Delete prototypes.
15530
15531 2007-02-15  Paolo Bonzini  <bonzini@gnu.org>
15532
15533         * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
15534
15535 2007-02-15  Nick Clifton  <nickc@redhat.com>
15536
15537         * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
15538         order to prevent it from being munged by the target.
15539
15540 2007-02-15  Uros Bizjak  <ubizjak@gmail.com>
15541
15542         * config/i386/i386.md: Remove misleading comment.
15543
15544 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
15545
15546         * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
15547         reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
15548         invalid patterns.
15549
15550 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
15551
15552         * tree-sra.c (instantiate_missing_elements): Canonicalize
15553         bit-field types.
15554         (sra_build_assignment): New.
15555         (generate_copy_inout, generate_element_copy,
15556         generate_element_zero, generate_one_element_init): Use it.
15557
15558 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
15559
15560         * tree-sra.c (instantiate_missing_elements): Canonicalize
15561         bit-field types.
15562         (sra_build_assignment): New.
15563         (generate_copy_inout, generate_element_copy,
15564         generate_element_zero, generate_one_element_init): Use it.
15565
15566 2007-02-15  Alexandre Oliva  <aoliva@redhat.com>
15567
15568         * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
15569         limbo die nodes.
15570
15571 2007-02-14  Joseph Myers  <joseph@codesourcery.com>
15572
15573         * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
15574         types as aggregates not scalars.
15575         * function.c (assign_stack_temp_for_type): Likewise.
15576
15577 2007-02-14  Roger Sayle  <roger@eyesopen.com>
15578             Zdenek Dvorak  <dvorakz@suse.cz>
15579
15580         * tree-dump.c (dump_switch_p_1): Require exact match of the option
15581         name.
15582
15583 2007-02-14  Zdenek Dvorak  <dvorakz@suse.cz>
15584
15585         * passes.c (next_pass_1): Clear the next field of the copied
15586         pass structure.
15587
15588 2007-02-14  Richard Henderson  <rth@redhat.com>
15589
15590         * tree-sra.c (early_sra): New.
15591         (decl_can_be_decomposed_p): Deny va_list if early_sra.
15592         (tree_sra_early, pass_sra_early): New.
15593         * tree-pass.h (pass_sra_early): Declare.
15594         * passes.c (init_optimization_passes): Use it.
15595
15596 2007-02-14  Richard Guenther  <rguenther@suse.de>
15597
15598         * flags.h (issue_strict_overflow_warning): Convert to a macro.
15599
15600 2007-02-14  Dorit Nuzman  <dorit@il.ibm.com>
15601
15602          PR tree-optimization/30771
15603         * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
15604         also phi nodes.
15605         (vect_analyze_operations): Induction phis can now be marked as
15606         used_in_loop.
15607         (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
15608         Update documentation accordingly.
15609
15610 2007-02-14  Nick Clifton  <nickc@redhat.com>
15611
15612         * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
15613         most 3 arguments are supported.
15614         (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
15615
15616 2007-02-13  Seongbae Park <seongbae.park@gmail.com>
15617
15618         * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
15619         Ensure dst->current is valid.
15620
15621 2007-02-13  Paul Brook  <paul@codesourcery.com>
15622
15623         * config.gcc: Add arm*-*-uclinux-*eabi.
15624         * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
15625         (SUBTARGET_EXTRA_LINK_SPEC): Define.
15626         (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
15627         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
15628         (LINK_SPEC): Define.
15629         (LIB_SPEC): Define.
15630         * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
15631         register.
15632         * config/arm/uclinux-eabi.h: New file.
15633         * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
15634         * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
15635         based targets.
15636
15637 2007-02-13  Ian Lance Taylor  <iant@google.com>
15638
15639         * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
15640         * flags.h (warn_strict_overflow): Declare.
15641         (enum warn_strict_overflow_code): Define.
15642         (issue_strict_overflow_warning): New static inline function.
15643         * opts.c (warn_strict_overflow): New variable.
15644         (common_handle_option): Handle OPT_Wstrict_overflow and
15645         OPT_Wstrict_overflow_.
15646         * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
15647         OPT_Wall.
15648         * fold-const.c: Include intl.h.
15649         (fold_deferring_overflow_warnings): New static variable.
15650         (fold_deferred_overflow_warning): New static variable.
15651         (fold_deferred_overflow_code): New static variable.
15652         (fold_defer_overflow_warnings): New function.
15653         (fold_undefer_overflow_warnings): New function.
15654         (fold_undefer_and_ignore_overflow_warnings): New function.
15655         (fold_deferring_overflow_warnings_p): New function.
15656         (fold_overflow_warning): New static function.
15657         (make_range): Add strict_overflow_p parameter.  Change all
15658         callers.
15659         (extract_muldiv, extract_muldiv_1): Likewise.
15660         (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
15661         tree_expr_nonnegative_p.
15662         (fold_negate_expr): Call fold_overflow_warning.
15663         (fold_range_test): Likewise.
15664         (fold_comparison): Likewise.
15665         (fold_binary): Likewise.  Call tree_expr_nonnegative_warnv_p
15666         instead of tree_expr_nonnegative_p.
15667         (tree_expr_nonnegative_warnv_p): Rename from
15668         tree_expr_nonnegative_p, add strict_overflow_p parameter.
15669         (tree_expr_nonnegative_p): New function.
15670         (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
15671         strict_overflow_p parameter.
15672         (tree_expr_nonzero_p): New function.
15673         * passes.c (verify_interpass_invariants): New static function.
15674         (execute_one_pass): Call it.
15675         * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
15676         warnings.
15677         (number_of_iterations_exit, loop_niter_by_eval): Likewise.
15678         (estimate_numbers_of_iterations): Likewise.
15679         (scev_probably_wraps_p): Likewise.
15680         * tree-ssa-ccp.c: Include "toplev.h".
15681         (evaluate_stmt): Defer fold overflow warnings until we know we are
15682         going to optimize.
15683         (struct fold_stmt_r_data): Add stmt field.
15684         (fold_stmt_r): Defer fold overflow warnings until we know we
15685         optimized.
15686         (fold_stmt): Initialize stmt field of fold_stmt_r_data.
15687         (fold_stmt_inplace): Likewise.
15688         * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
15689         (cleanup_control_expr_graph): Defer fold overflow warnings until
15690         we know we are going to optimize.
15691         * tree-cfg.c (fold_cond_expr_cond): Likewise.
15692         * tree-ssa-threadedge.c (simplify_control_stmt_condition):
15693         Likewise.
15694         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
15695         tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
15696         * tree-ssa-loop-manip.c (create_iv): Likewise.
15697         * c-typeck.c (build_conditional_expr): Likewise.
15698         (build_binary_op): Likewise.
15699         * tree-vrp.c (vrp_expr_computes_nonzero): Call
15700         tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
15701         (extract_range_from_unary_expr): Likewise.
15702         * simplify-rtx.c (simplify_const_relational_operation): Warn when
15703         assuming that signed overflow does not occur.
15704         * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
15705         * tree.h (tree_expr_nonnegative_warnv_p): Declare.
15706         (fold_defer_overflow_warnings): Declare.
15707         (fold_undefer_overflow_warnings): Declare.
15708         (fold_undefer_and_ignore_overflow_warnings): Declare.
15709         (fold_deferring_overflow_warnings_p): Declare.
15710         (tree_expr_nonzero_warnv_p): Declare.
15711         * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
15712         of warning options.
15713         (Warning Options): Document -Wstrict-overflow.
15714         * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
15715         (tree-ssa-ccp.o): Likewise.
15716         (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
15717         (fold-const.o): Depend on intl.h.
15718
15719 2007-02-13  Ian Lance Taylor  <iant@google.com>
15720
15721         PR middle-end/30751
15722         * lower-subreg.c (resolve_simple_move): Decompose subregs in
15723         addresses.
15724
15725 2007-02-13  Stuart Hastings  <stuart@apple.com>
15726
15727         * config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
15728
15729 2007-02-13  Richard Henderson  <rth@redhat.com>
15730
15731         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
15732         handled_component_p before looking for the indirect_ref.
15733
15734 2007-02-13  Richard Henderson  <rth@redhat.com>
15735
15736         * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
15737         remove flags clobber.
15738         (bswapsi2): New expander, emit code for !TARGET_BSWAP.
15739         (bswaphi_lowpart): New.
15740         (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
15741         remove TARGET_BSWAP test.  Delete expander of the same name.
15742
15743         * optabs.c (widen_bswap, expand_doubleword_bswap): New.
15744         (expand_unop): Use them.
15745
15746 2007-02-13  Uros Bizjak  <ubizjak@gmail.com>
15747
15748         * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
15749         *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
15750         *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
15751         *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
15752         *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
15753         *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
15754         *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
15755         assembler dialect choice from asm templates.
15756
15757 2007-02-12  Richard Henderson  <rth@redhat.com>
15758
15759         * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
15760         (fixuns_trunc<SSEMODEF>si2): Use it.
15761         * config/i386/sse.md (vec_setv4sf_0): Export.
15762         * config/i386/i386.c (ix86_build_const_vector): Export.
15763         (ix86_split_convert_uns_si_sse): Rename from
15764         ix86_expand_convert_uns_si_sse and rewrite as a splitter.
15765         * config/i386/i386-protos.h: Update.
15766
15767 2007-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15768
15769         PR c/29521
15770         * c-typeck.c (c_finish_return): Improve warning message.
15771
15772 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15773
15774         * alias.c (find_symbolic_term): Delete unused function.
15775
15776 2007-02-12  Uros Bizjak  <ubizjak@gmail.com>
15777
15778         * config/i386/i386.md (paritydi2, paritysi2): New expanders.
15779         (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
15780         (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
15781
15782 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
15783
15784         * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
15785         * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
15786         the function, temporarily point the debug interface to the null one.
15787
15788 2007-02-12  Eric Botcazou  <ebotcazou@adacore.com>
15789
15790         * dwarf2out.c (round_up_to_align): New static function.
15791         (field_byte_offset): Use it to round the offset.
15792
15793 2007-02-12  Richard Henderson  <rth@redhat.com>
15794
15795         * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
15796         (inswl_const): Export.
15797
15798 2007-02-12  Richard Henderson  <rth@redhat.com>
15799
15800         * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
15801         result mode of the libcall, convert back to outmode.
15802
15803 2007-02-12  Roger Sayle  <roger@eyesopen.com>
15804
15805         * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
15806         (bswapdi2): New define_expand to implement 32-bit implementation.
15807
15808 2007-02-12  Nick Clifton  <nickc@redhat.com>
15809
15810         * doc/invoke.texi (Overall Options): Document --help=.
15811         * gcc.c (target_help_flag): Rename to print_subprocess_flag.
15812         (cc1_options): Pass --help= on to cc1.
15813         (display_help): Add description of --help=.
15814         (process_command): Add code to handle --help=.  Allow translated
15815         --help and --target-help switches to be passed on to compiler
15816         sub-process.
15817         (main): Remove unused if statement.
15818         * opts.c (columns): Remove.
15819         (LEFT_COLUMN): Define.
15820         (wrap_help): Add columns argument.
15821         (print_filtered_help): Change parameters to be an include bitmask,
15822         an exclude bitmask, an any bitmask and the column width.  Move the
15823         code to display the params list here.  Add code to display the
15824         status of options rather than their descriptions if the quiet flag
15825         is not active.
15826         (print_specific_help): Change parameters to be an include bitmask,
15827         an exclude bitmask and an any bitmask.  Move code to look up the
15828         column width here.  Decide upon the title for an options listing.
15829         (common_handle_options): Add code to handle --help=.  Adapt code
15830         for --help and --target-help to use the revised form of the
15831         print_specific_help function.
15832         (print_help): Delete.
15833         (print_param_help): Delete.
15834         (print_switch): Delete.
15835         * opts.h (cl_lang_count): Add prototype.
15836         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
15837         CL_MAX_OPTION_CLASS): New defines.
15838         * optc-gen.awk: Add construction of cl_lang_count.
15839         * c.opt: Add Warning attribute to warning options and Optimization
15840         attribute to optimization options.
15841         * common.opt: Likewise.
15842         Add --help=.
15843         Add -fhelp and -ftarget-help as aliases for the transformed --help
15844         and --target-help options.
15845         * opt-functions.awk: Add code to handle Warning and Optimization
15846         attributes.
15847
15848 2007-02-12  Richard Henderson  <rth@redhat.com>
15849
15850         * config/alpha/constraints.md: New file.
15851         * config/alpha/alpha.c: Include tm-constrs.h.
15852         (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
15853         alpha_extra_constraint): Remove.
15854         (alpha_emit_conditional_branch): Use satisfies_constraint_*.
15855         * config/alpha/alpha-protos.h: Update.
15856         * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
15857         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
15858         (EXTRA_CONSTRAINT): Remove.
15859         * config/alpha/alpha.md: Include constraints.md.
15860         (adddi splitter): Use satisfies_constraint_*.
15861         * config/alpha/predicates.md (add_operand): Likewise.
15862         (sext_add_operand, addition_operation): Likewise.
15863
15864 2007-02-12  Dorit Nuzman  <dorit@il.ibm.com>
15865
15866         PR tree-optimization/29145
15867         * tree-data-ref.c (base_addr_differ_p): Make us more conservative
15868         in our handling of restrict qualified pointers.
15869
15870 2007-02-12  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15871
15872         PR middle-end/7651
15873         * doc/invoke.texi (Wunused-value): Update description.
15874         (Wextra): Delete item.
15875         * opts.c (set_Wextra): Don't use the value of Wextra to set the
15876         value of Wunused-value.
15877         * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
15878         (c_finish_stmt_expr): Don't check extra_warnings.
15879         (emit_side_effect_warnings): The caller is responsible to check
15880         warn_unused_value.
15881
15882 2007-02-11  Roger Sayle  <roger@eyesopen.com>
15883             Matt Thomas  <matt@3am-software.com>
15884
15885         * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
15886
15887 2007-02-11  Roger Sayle  <roger@eyesopen.com>
15888
15889         * simplify-rtx.c (simplify_relational_operation_1): Optimize
15890         comparisons of POPCOUNT against zero.
15891         (simplify_const_relational_operation): Likewise.
15892
15893 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15894
15895         * doc/invoke.texi (Wextra): Delete outdated paragraph.
15896
15897 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15898
15899         * dwarf2out.c (root_type): Delete unused function.
15900
15901 2007-02-11  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15902
15903         * genattrtab.c (contained_in_p): Delete unused function.
15904         (write_expr_attr_cache): Likewise.
15905
15906 2007-02-11  Jan Hubicka  <jh@suse.cz>
15907
15908         * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
15909         previous patch.
15910
15911 2007-02-11  Steven Bosscher  <steven@gcc.gnu.org>
15912
15913         * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
15914         to add the REG_EQ* note.
15915         * see.c (see_merge_one_use_extension): Likewise.
15916         * local-alloc.c (update_equiv_regs): Likewise.  Also don't
15917         turn REG_EQUAL notes into REG_EQUIV notes if the target
15918         register may have more than one set.
15919         * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
15920         * gcse.c (try_replace_reg): Likewise.
15921         * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
15922         * calls.c (fixup_tail_calls): Likewise.  Abort if there is
15923         more than one REG_EQUIV note.
15924         * reload1.c (gen_reload): Use set_unique_reg_note.
15925
15926 2007-02-11  Uros Bizjak  <ubizjak@gmail.com>
15927
15928         * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
15929         (ix86_builtin_conversion): New function.
15930
15931 2007-02-06  Mark Mitchell  <mark@codesourcery.com>
15932
15933         PR target/29487
15934         * tree.h (DECL_REPLACEABLE_P): New macro.
15935         * except.c (set_nothrow_function_flags): Likewise.
15936
15937 2007-02-11  Tehila Meyzels  <tehila@il.ibm.com>
15938             Ira Rosen  <irar@il.ibm.com>
15939             Dorit Nuzman  <dorit@il.ibm.com>
15940
15941         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
15942         * targhooks.c (default_builtin_vectorized_conversion): New.
15943         * targhooks.h (default_builtin_vectorized_function): New declaration.
15944         * target.h (struct vectorize): Add builtin_conversion field.
15945         * tree-vectorizer.h (type_conversion_vec_info_type): New enum
15946         stmt_vec_info_type value.
15947         (vectorizable_conversion): New declaration.
15948         * tree-vect-analyze.c (vect_analyze_operations): Add
15949         vectorizable_conversion call.
15950         * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
15951         * tree-vect-transform.c (vectorizable_conversion): New function.
15952         (vect_transform_stmt): Add case for type_conversion_vec_info_type.
15953         * tree-vect-generic.c (expand_vector_operations_1): Consider correct
15954         mode.
15955         * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
15956         (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
15957         (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
15958         or ALTIVEC_BUILTIN_VCFSX.
15959
15960 2007-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15961
15962         PR target/30634
15963         * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
15964         CONST_DOUBLE and operand 0 is a hard register.
15965         (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
15966         memory.  Fail if operand 1 is a non-zero CONST_INT and operand 0
15967         is a hard floating-point register.
15968
15969 2007-02-10  Richard Henderson  <rth@redhat.com>
15970             Jakub Jelinek  <jakub@redhat.com>
15971             Alexandre Oliva  <aoliva@redhat.com>
15972
15973         * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
15974         * builtin-types.def (BT_WORD): Make unsigned.
15975         (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
15976         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
15977         (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
15978         * c-decl.c (grokdeclarator): Don't error if !have_tls.
15979         * c-parser.c (c_parser_omp_threadprivate): Likewise.
15980         * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
15981         emulated tls.
15982         * expr.c (emutls_var_address): New.
15983         (expand_expr_real_1): Expand emulated tls.
15984         (expand_expr_addr_expr_1): Likewise.
15985         * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
15986         * output.h (emutls_finish): Declare.
15987         * toplev.c (compile_file): Call it.
15988         * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
15989         address before wrapping in CONST.
15990         * varasm.c (emutls_htab, emutls_object_type): New.
15991         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
15992         (get_emutls_object_name, get_emutls_object_type): New.
15993         (get_emutls_init_templ_addr, emutls_decl): New.
15994         (emutls_common_1, emutls_finish): New.
15995         (assemble_variable): When emulating tls, swap decls; generate
15996         constructor for the emutls objects.
15997         (do_assemble_alias): When emulating tls, swap decl and target name.
15998         (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
15999         for emulated tls.
16000         * varpool.c (decide_is_variable_needed): Look at force_output.
16001         Recurse for emulated tls.
16002         (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
16003         with decide_is_variable_needed.
16004         * emutls.c: New file.
16005         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
16006         tls_object for real tls.
16007
16008 2007-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
16009
16010         PR rtl-optimization/29599
16011         * reload1.c (eliminate_regs_in_insn): Take the destination
16012         mode into account when computing the offset.
16013
16014 2007-02-09  Stuart Hastings  <stuart@apple.com>
16015             Richard Henderson  <rth@redhat.com>
16016
16017         * config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
16018         * config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
16019         * config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
16020         fixuns_truncdfhi2): New.
16021         (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
16022         (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
16023         (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
16024         (floatunssidf2): Allow nonimmediate source.
16025         * config/i386/sse.md (movdi_to_sse): New.
16026         (vec_concatv2di): Drop '*'.
16027         * config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
16028         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
16029         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
16030         New.
16031         * config/i386/i386.c (ix86_expand_convert_uns_si_sse,
16032         ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
16033         ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
16034         ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
16035         (ix86_build_signbit_mask): Fix decl of v, refactor to call
16036         ix86_build_const_vector.
16037         (x86_emit_floatuns): Rewrite.
16038
16039 2007-02-10  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16040
16041         * genautomata.c (longest_path_length): Delete unused function.
16042         (struct state): Delete unused longest_path_length.
16043         (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
16044         (get_free_state): Delete unused.
16045
16046 2007-02-09  Jan Hubicka  <jh@suse.cz>
16047
16048         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
16049         * doc/invoke.texi (inline-unit-growth): Update default value.
16050
16051         * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
16052         * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
16053         (rebuild_cgraph_edges): Likewise.
16054         * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
16055         (dump_cgraph_node): Dump frequencies.
16056         (cgraph_clone_edge): Add frequency scales.
16057         (cgraph_clone_node): Add freuqnecy.
16058         * cgraph.h (cgraph_edge): Add freuqnecy argument.
16059         (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
16060         (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
16061         * tree-pass.h (TODO_rebuild_frequencies): New constant.
16062         * cgraphunit.c (verify_cgraph_node): Verify frequencies.
16063         (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
16064         (save_inline_function_body): Likewise.
16065         * ipa-inline.c: inluce rtl.h
16066         (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
16067         (cgraph_edge_badness): Use frequencies.
16068         (cgraph_decide_recursive_inlining): Update clonning.
16069         (cgraph_decide_inlining_of_small_function): Dump frequency.
16070         * predict.c (estimate_bb_frequencies): Export.
16071         * predict.h (estimate_bb_frequencies): Declare.
16072         * tree-inline.c (copy_bb): Watch overflows.
16073         (expand_call_inline): Update call of cgraph_create_edge.
16074         (optimize_inline_calls): Use TODO flags to update frequnecies.
16075         * passes.h: Include predict.h
16076         (init_optimization_passes): Move profile ahead.
16077         (execute_function_todo): Handle TODO_rebuild_frequencies.
16078
16079 2007-02-09  Roger Sayle  <roger@eyesopen.com>
16080
16081         * config/alpha/alpha.c (emit_insxl): Force the first operand of
16082         the insbl or inswl pattern into a register.
16083
16084 2007-02-09  Roger Sayle  <roger@eyesopen.com>
16085
16086         * config/ia64/ia64.md (bswapdi2): New define_insn.
16087
16088 2007-02-09  Richard Henderson  <rth@redhat.com>
16089
16090         * config/i386/constraints.md (Ym): New constraint.
16091         * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
16092         (movdi_1_rex64): Split sse and xmm general register moves from
16093         memory move alternatives.  Use conditional register constraints.
16094         (movsf_1, movdf_integer): Likewise.
16095         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
16096         (movdf_integer_rex64): New.
16097         (pushsf_rex64): Fix output constraints.
16098         * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
16099         (sse2_stored): Likewise.
16100         (sse2_storeq_rex64): New.
16101         * config/i386/i386.c (x86_inter_unit_moves): Enable for not
16102         amd and not generic.
16103         (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
16104         for optimize_size.  Remove SF/DFmode hack.
16105
16106 2007-02-09  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
16107
16108         * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
16109         (bit_SSE4a): New.
16110
16111 2007-02-09  Nathan Sidwell  <nathan@codesourcery.com>
16112             Richard Sandiford  <richard@codesourcery.com>
16113
16114         * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
16115         (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
16116         (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
16117         m68k/t-mlib to tmake_file.
16118         (m68020-*-elf*, m68k-*-elf*): Likewise.  Add t-m68kbare as well.
16119         (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
16120         (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
16121         Allow it to be cf or m68k.  Set m68k_arch_family.  If that
16122         variable is not empty, add t-$m68k_arch_family to tmake_file.
16123         Add t-mlibs to tmake_file.
16124         * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
16125         * config/m68k/t-cf: New file.
16126         * config/m68k/t-m68k: Likewise.
16127         * config/m68k/t-mlibs: Likewise.
16128         * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
16129         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
16130         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
16131         * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
16132         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
16133         Delete.
16134         * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
16135         (INSTALL_LIBGCC): Delete.
16136         (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
16137         * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
16138         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
16139         (M68K_MLIB_CPU): Define.
16140         * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
16141         (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
16142         (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
16143
16144 2007-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
16145             Richard Guenther  <rguenther@suse.de>
16146
16147         PR middle-end/23361
16148         * fold-const.c (fold_comparison): Handle obfuscated comparisons
16149         against INT_MIN/INT_MAX.
16150         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
16151         file if a loop is removed.
16152
16153 2007-02-09  Joseph Myers  <joseph@codesourcery.com>
16154
16155         * calls.c (store_one_arg): Pass correct alignment to
16156         emit_push_insn for non-BLKmode values.
16157         * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
16158         unaligned stack slot via a suitably aligned slot.
16159
16160 2007-02-08  DJ Delorie  <dj@redhat.com>
16161
16162         * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
16163         warnings.
16164         (legal_subregs): Use unsigned char, make const.
16165         (m32c_illegal_subreg_p): Use ARRAY_SIZE.  Delete unused variables.
16166
16167 2007-02-08  Paul Brook  <paul@codesourcery.com>
16168
16169         * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
16170         special interworking needed.
16171
16172 2007-02-08  Harsha Jagasia  <harsha.jagasia@amd.com>
16173
16174         * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
16175         conditional to __SSE2__.
16176         (Entries below should have been added to first ChangeLog
16177         entry for amdfam10 dated 2007-02-05)
16178         * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
16179         defined.
16180         * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
16181         defined.
16182         * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
16183         defined.
16184
16185 2007-02-08  DJ Delorie  <dj@redhat.com>
16186
16187         * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
16188         * config/m32c/m32c.c (legal_subregs): New.
16189         (m32c_illegal_subreg_p): New.
16190         * config/m32c/predicates.md (m32c_any_operand): Use it to reject
16191         unsupported subregs of hard regs.
16192
16193 2007-02-08  Jan Hubicka  <jh@suse.cz>
16194
16195         * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
16196         the same one; always update histograms.
16197
16198 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
16199
16200         * passes.c (init_optimization_passes): Tidy comment.
16201
16202 2007-02-08  Roger Sayle  <roger@eyesopen.com>
16203
16204         * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
16205         strip zero_extend, bswap and rotates from POCOUNT's argument.
16206         <PARITY>: Likewise, we can strip not, bswap, sign_extend,
16207         zero_extend and rotates from PARITY's argument.
16208         <BSWAP>: A byte-swap followed by a byte-swap is an identity.
16209         (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
16210         of an integer constant at compile-time.
16211
16212 2007-02-08  Diego Novillo  <dnovillo@redhat.com>
16213
16214         PR 30562
16215         * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
16216         Update all users.
16217         * tree-ssa-alias.c (compute_is_aliased): Remove.  Update all
16218         users.
16219         (init_alias_info):
16220         * tree-ssa-live.c (remove_unused_locals): Do not remove
16221         TREE_ADDRESSABLE variables.
16222         * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
16223         * tree-ssa-operands.c (add_virtual_operand): Remove argument
16224         FOR_CLOBBER.  Update all users.
16225         If VAR has an associated alias set, add a virtual operand for
16226         it if no alias is found to conflict with the memory reference.
16227
16228 2007-02-07  Jan Hubicka  <jh@suse.cz>
16229             Robert Kidd <rkidd@crhc.uiuc.edu>
16230
16231         * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
16232
16233 2007-02-07  Ian Lance Taylor  <iant@google.com>
16234
16235         * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
16236
16237 2007-02-07  Roger Sayle  <roger@eyesopen.com>
16238
16239         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
16240         parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
16241         tablejumpdi, movsi_to_cr_one): Remove constraints from
16242         define_expand's match_operands.
16243
16244 2007-02-07  Roger Sayle  <roger@eyesopen.com>
16245
16246         * global.c (compute_regsets): Move declatation of "i" inside of
16247         #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
16248
16249 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
16250
16251         PR c++/30703
16252         * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
16253         of INDIRECT_REF <RESULT_DECL>.
16254
16255         * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
16256
16257 2007-02-06  J"orn Rennecke  <joern.rennecke@arc.com>
16258             Kaz Kojima  <kkojima@gcc.gnu.org>
16259
16260         PR target/29746
16261         * config/sh/sh.c (expand_cbranchdi4): Use scratch register
16262         properly.
16263         (sh_initialize_trampoline): Add parentheses to avoid a warning.
16264
16265 2007-02-06  Zdenek Dvorak <dvorakz@suse.cz>
16266
16267         * doc/loop.texi: Document possibility not to perform disambiguation
16268         of loops with multiple latches.
16269         * cfgloopmanip.c (alp_enum_p): Removed.
16270         (add_loop): Handle subloops.  Use get_loop_body_with_size.
16271         (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
16272         * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
16273         the new forwarder block.
16274         (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
16275         Handle the case latch is NULL.
16276         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg
16277         modifications when marking loop exits.
16278         * ifcvt.c (if_convert): Ditto.  Mark loop exits even if cfg cannot
16279         be modified.
16280         * loop-init.c (loop_optimizer_init): Do not modify cfg.  Call
16281         disambiguate_loops_with_multiple_latches.
16282         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
16283         before fix_loop_structure.
16284         * cfgloop.c: Include pointer-set.h and output.h.
16285         (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
16286         update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
16287         (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
16288         find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
16289         mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
16290         disambiguate_multiple_latches, get_loop_body_with_size,
16291         disambiguate_loops_with_multiple_latches): New functions.
16292         (flow_loop_dump): Dump multiple latch edges.
16293         (flow_loop_nodes_find): Handle loops with multiple latches.
16294         (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
16295         (glb_enum_p): Modified.
16296         (get_loop_body): Use get_loop_body_with_size.
16297         * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
16298         (AVOID_CFG_MODIFICATIONS): New constant.
16299         (disambiguate_loops_with_multiple_latches, add_loop,
16300         get_loop_body_with_size): Declare.
16301         * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
16302
16303 2007-02-06  Seongbae Park <seongbae.park@gmail.com>
16304
16305         PR inline-asm/28686
16306         * global.c (compute_regsets): New function.
16307         (global_alloc): Refactored ELIMINABLE_REGSET
16308         and NO_GLOBAL_ALLOC_REGS computation out.
16309         (rest_of_handle_global_alloc): Call compute_regsets()
16310         for non-optimizing case.
16311
16312 2007-02-06  Richard Henderson  <rth@redhat.com>
16313
16314         * config/i386/constraints.md (Y2): Rename from Y.
16315         (Yi): New constraint.
16316         * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
16317         pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
16318         zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
16319         (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
16320         truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
16321         fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
16322         floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
16323         absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
16324         fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
16325         * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
16326         mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
16327         vec_extractv2si_1): Change Y constraints to Y2.
16328         * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
16329         vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
16330         Change Y constraints to Y2.
16331         (sse2_loadld): Change Y constraints to x.
16332
16333 2007-02-06  Roger Sayle  <roger@eyesopen.com>
16334
16335         * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
16336         (parity<mode>2): New define_expand using rs6000_emit_parity.
16337         * config/rs6000/rs6000.c (rs6000_emit_popcount,
16338         rs6000_emit_parity): New functions.
16339         * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
16340         rs6000_emit_parity): Prototype here.
16341
16342 2007-02-06  Ian Lance Taylor  <iant@google.com>
16343
16344         * lower-subreg.c (simple_move_operand): Reject CONST.
16345         (resolve_clobber): Call validate_change rather than directly
16346         assigning to XEXP (pat, 0).
16347
16348 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
16349
16350         * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
16351         (tree-ssa-reassoc.o): Add pointer-set.h dependency.
16352         (tree-cfg.o): Remove hashtab.h dependency.
16353
16354         * tree-ssa-loop-ivopts.c: Include pointer-set.h.
16355         (struct ivopts_data): Change niters to pointer_map_t.
16356         (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
16357         (niter_for_exit): Create pointer_map on demand.  Change for
16358         pointer_map API.
16359         (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
16360         (free_loop_data): Destroy data->niters if created and reset field.
16361         (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
16362         (tree_ssa_iv_optimize_loop): Check for presence of stale data.
16363
16364         * tree-ssa-reassoc.c: Include pointer-set.h.
16365         (bb_rank): Change to long *.
16366         (operand_rank): Change to pointer_map_t.
16367         (find_operand_rank): Return long, -1 if not found.  Declare as inline.
16368         (insert_operand_rank): Accept long.
16369         (operand_entry_hash, operand_entry_eq): Remove.
16370         (get_rank): Return long.  Adjust for changes above.
16371         (init_reassoc): Change rank type to long.  Adjust creation of bb_rank
16372         and operand_rank.
16373         (fini_reassoc): Delete operand_rank with pointer_map_destroy.
16374
16375         * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
16376         (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
16377         (insert_vi_for_tree): Rewrite for pointer_map API.  Assert argument
16378         is not NULL.
16379         (lookup_vi_for_tree): Rewrite for pointer_map API.  Return varinfo_t
16380         directly since it cannot be NULL.
16381         (get_vi_for_tree): Rewrite for pointer_map API.
16382         (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
16383         (init_alias_vars): Create vi_for_tree as pointer_map.
16384         (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
16385
16386         * tree-cfg.c: Don't include hashtab.h.
16387         (edge_to_cases): Declare as pointer_map.
16388         (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
16389         Delete.
16390         (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
16391         (start_recording_case_labels): Create edge_to_cases as pointer_map.
16392         (end_recoding_case_labels): Cleanup edge_to_cases manually before
16393         destroying it.
16394         (record_switch_edge): Delete.
16395         (get_cases_for_edge): Adjust for pointer_map API, inline
16396         record_switch_edge (rewritten for new API), remove goto.
16397
16398 2006-02-06  Paolo Bonzini  <bonzini@gnu.org>
16399
16400         * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
16401         * tree-nested.c: Include pointer-set.h.
16402         (var_map_elt, var_map_eq, var_map_hash): Delete.
16403         (struct nesting_info): Remove GTY marker.  Change the two htab_t's
16404         to pointer_map_t's.
16405         (nesting_info_bitmap_obstack): New.
16406         (lookup_field_for_decl): Adjust for pointer_map API.
16407         (lookup_tramp_for_decl): Adjust for pointer_map API.
16408         (get_nonlocal_debug_decl): Adjust for pointer_map API.
16409         (get_local_debug_decl): Adjust for pointer_map API.
16410         (convert_nl_goto_reference): Adjust for pointer_map API.
16411         (convert_nl_goto_receiver): Adjust for pointer_map API.
16412         (create_nesting_tree): Create outside GGC space.  Create bitmap on
16413         the new obstack.  Create field_map and var_map as pointer_maps.
16414         (free_nesting_tree): Adjust for changes to create_nesting_tree.
16415         (root): Delete.
16416         (lower_nested_functions): Move root here, no need to NULL it.
16417         Initialize and release the obstack.
16418
16419 2007-02-06  Paolo Bonzini  <bonzini@gnu.org>
16420
16421         * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
16422         Remove prototypes and make them non-static.
16423         (struct tree_int_map): Remove.
16424         * tree.h (struct tree_int_map): Move here, turning TO into an
16425         unsigned int.
16426         (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
16427
16428         * tree.h (TREE_COMPLEXITY): Remove.
16429         (struct tree_exp): Remove complexity field.
16430         * tree.c (build1_stat): Don't set it.
16431
16432 2007-02-06  Dorit Nuzman  <dorit@il.ibm.com>
16433             Victor Kaplansky  <victork@il.ibm.com>
16434
16435         * tree-vectorizer.c (vect_is_simple_use): Support induction.
16436         (vect_is_simple_reduction): Support reduction with induction as
16437         one of the operands.
16438         (vect_is_simple_iv_evolution): Fix formatting.
16439         * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
16440         formatting.  Don't mark induction phis for vectorization.
16441         (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
16442         * tree-vect-transform.c (get_initial_def_for_induction): New function.
16443         (vect_get_vec_def_for_operand): Support induction.
16444         (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
16445         induction case.
16446         (vectorizable_reduction): Support reduction with induction as one of
16447         the operands.
16448         (vectorizable_type_demotion): Use def-type of stmt argument rather
16449         than dummy def-type.
16450
16451         * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
16452         flag_tree_scev_cprop.
16453         * common.opt (tree-scev-cprop): New flag.
16454
16455         * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
16456         call to vect_get_new_vect_var.
16457
16458 2007-02-06  Ira Rosen  <irar@il.ibm.com>
16459
16460         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
16461         vectype is not NULL.
16462         (vect_pattern_recog_1): Likewise.
16463
16464 2007-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16465
16466         * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
16467         (fold_negate_expr): Likewise.
16468
16469 2007-02-05  Alexandre Oliva  <aoliva@redhat.com>
16470
16471         PR debug/30189
16472         * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
16473         even if cv-qualification is the same.
16474
16475 2007-02-05  Geoffrey Keating  <geoffk@apple.com>
16476
16477         * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
16478         __enable_execute_stack on completion.
16479
16480 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16481
16482         * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
16483         athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
16484         athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
16485         athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
16486         athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
16487         athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
16488         athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
16489         athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
16490
16491 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16492
16493         * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
16494         cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
16495         swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
16496         fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
16497         x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
16498         floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
16499         floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
16500         mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
16501         umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
16502         umuldi3_highpart_rex64, umulsi3_highpart_insn,
16503         umulsi3_highpart_zext, smuldi3_highpart_rex64,
16504         smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
16505         x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
16506         sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
16507         sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
16508         sqrtextenddfxf2_i387): Added amdfam10_decode.
16509
16510         * config/i386/athlon.md (athlon_idirect_amdfam10,
16511         athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
16512         athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
16513         athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
16514         athlon_ivector_store_amdfam10): New define_insn_reservation.
16515         (athlon_idirect_loadmov, athlon_idirect_movstore): Added
16516         amdfam10.
16517
16518 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16519
16520         * config/i386/athlon.md (athlon_call_amdfam10,
16521         athlon_pop_amdfam10, athlon_lea_amdfam10): New
16522         define_insn_reservation.
16523         (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
16524         athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
16525         athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
16526
16527 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16528
16529         * config/i386/athlon.md (athlon_sseld_amdfam10,
16530         athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
16531         athlon_mmxssest_short_amdfam10): New define_insn_reservation.
16532
16533 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16534
16535         * config/i386/athlon.md (athlon_sseins_amdfam10): New
16536         define_insn_reservation.
16537         * config/i386/i386.md (sseins): Added sseins to define_attr type
16538         and define_attr unit.
16539         * config/i386/sse.md: Set type attribute to sseins for insertq
16540         and insertqi.
16541
16542 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16543
16544         * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
16545         ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
16546         ssecomi_load_amdfam10, ssecomi_amdfam10,
16547         sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
16548         define_insn_reservation.
16549         (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
16550
16551 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16552
16553         * config/i386/athlon.md (cvtss2sd_load_amdfam10,
16554         cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
16555         cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
16556         cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
16557         cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
16558         cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
16559         define_insn_reservation.
16560
16561         * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
16562         cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
16563         cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
16564         cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
16565         cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
16566
16567 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16568
16569         * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
16570         athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
16571         athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
16572         (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
16573         athlon_ssemul_load_k8): Added amdfam10.
16574
16575 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16576
16577         * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
16578         (x86_sse_unaligned_move_optimal): New variable.
16579
16580         * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
16581         m_AMDFAM10.
16582         (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
16583         for unaligned vector SSE double/single precision loads for AMDFAM10.
16584
16585 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16586
16587         * config/i386/i386.h (TARGET_AMDFAM10): New macro.
16588         (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
16589         Define TARGET_CPU_DEFAULT_amdfam10.
16590         (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
16591         (processor_type): Add PROCESSOR_AMDFAM10.
16592
16593         * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
16594         processor_type in config/i386/i386.h.
16595         Enable imul peepholes for TARGET_AMDFAM10.
16596
16597         * config.gcc: Add support for --with-cpu option for amdfam10.
16598
16599         * config/i386/i386.c (amdfam10_cost): New variable.
16600         (m_AMDFAM10): New macro.
16601         (m_ATHLON_K8_AMDFAM10): New macro.
16602         (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
16603         x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
16604         x86_promote_QImode, x86_integer_DFmode_moves,
16605         x86_partial_reg_dependency, x86_memory_mismatch_stall,
16606         x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
16607         x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
16608         x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
16609         x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
16610         Enable/disable for amdfam10.
16611         (override_options): Add amdfam10_cost to processor_target_table.
16612         Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
16613         processor_alias_table.
16614         (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
16615         (ix86_adjust_cost): Add code for amdfam10.
16616
16617 2007-02-05  Harsha Jagasia  <harsha.jagasia@amd.com>
16618
16619         * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
16620         instruction set feature flag. Add new (-mpopcnt) flag for popcnt
16621         instruction. Add new SSE4A (-msse4a) instruction set feature flag.
16622         * config/i386/i386.h: Add builtin definition for SSE4A.
16623         * config/i386/i386.md: Add support for ABM instructions
16624         (popcnt and lzcnt).
16625         * config/i386/sse.md: Add support for SSE4A instructions
16626         (movntss, movntsd, extrq, insertq).
16627         * config/i386/i386.c: Add support for ABM and SSE4A builtins.
16628         Add -march=amdfam10 flag.
16629         * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
16630         * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
16631         and amdfam10.
16632         * doc/extend.texi: Add documentation for SSE4A builtins.
16633
16634 2007-02-05  Bob Wilson  <bob.wilson@acm.org>
16635
16636         * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
16637
16638 2007-02-05  Richard Guenther  <rguenther@suse.de>
16639
16640         * tree-vectorizer.h (vectorizable_function): Add argument type
16641         argument, change return type.
16642         * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
16643         * tree-vect-transform.c (vectorizable_function): Handle extra
16644         argument, return vectorized function decl.
16645         (build_vectorized_function_call): Remove.
16646         (vectorizable_call): Handle calls with result and argument types
16647         differing.  Handle loop vectorization factor correctly.
16648         * targhooks.c (default_builtin_vectorized_function): Adjust for
16649         extra argument.
16650         * targhooks.h (default_builtin_vectorized_function): Likewise.
16651         * target.h (builtin_vectorized_function): Add argument type
16652         argument.
16653         * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
16654         extra argument, allow vectorizing of lrintf.
16655         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
16656         documentation of target hook.
16657
16658 2007-02-05  Hans-Peter Nilsson  <hp@axis.com>
16659
16660         PR target/30665
16661         * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
16662         ("*andhi_clear", andu (casesi+45)): For size-changed operand where
16663         memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
16664
16665 2007-02-05  Roger Sayle  <roger@eyesopen.com>
16666
16667         * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
16668         BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
16669         <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
16670         * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
16671         before canonicalizing sincos to cexpi.
16672         (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
16673
16674 2007-02-05  Roger Sayle  <roger@eyesopen.com>
16675
16676         * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
16677         Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
16678         (alpha_init_builtins): Use alpha_add_builtins to process tables.
16679
16680 2007-02-05  Roger Sayle  <roger@eyesopen.com>
16681
16682         * mips-tfile.c (initialize_init_file): Correct endianness test.
16683
16684 2007-02-05  Kazu Hirata  <kazu@codesourcery.com>
16685
16686         * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
16687         the 'y' constraint.
16688
16689 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
16690
16691         * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
16692         saves in a PARALLEL before the register assignments.
16693
16694 2007-02-05  Richard Sandiford  <richard@codesourcery.com>
16695
16696         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
16697         DWARF_FRAME_RETURN_COLUMN to be a general register.
16698         * dwarf2out.c (init_return_column_size): New function, split from...
16699         (expand_builtin_init_dwarf_reg_sizes): ...here.  Allow both
16700         DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
16701         to be nongeneral registers.
16702         * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
16703         integer registers.
16704         (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
16705         (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
16706
16707 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
16708
16709         * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
16710
16711 2007-02-04  Zdenek Dvorak <dvorakz@suse.cz>
16712
16713         * cfgloopmanip.c (loop_delete_branch_edge): Removed.
16714         (remove_path): Use can_remove_branch_p and remove_branch instead
16715         of loop_delete_branch_edge.
16716         * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
16717         (tree_transform_and_unroll_loop): Remove dead branches immediately.
16718         Update profile using scale_dominated_blocks_in_loop.
16719         * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
16720         * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
16721         (can_remove_branch_p, remove_branch): Declare.
16722         * tree-cfg.c (tree_can_remove_branch_p): New function.
16723         (tree_cfg_hooks): Add tree_can_remove_branch_p.
16724         * cfgrtl.c (rtl_can_remove_branch_p): New function.
16725         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
16726
16727 2007-02-05  Jan Hubicka  <jh@suse.cz>
16728
16729         PR middle-end/30696
16730         * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
16731         nodes in cgraph, don't remove offline copy of the function.
16732
16733 2007-02-04  Jan Hubicka  <jh@suse.cz>
16734
16735         * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
16736         vectors might cause maybe_lookup_element_for_expr to be called
16737         on non-sra-candidate.
16738
16739 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
16740
16741         * config/bfin/bfin-modes.def, config/bfin/bfin.c,
16742         config/bfin/bfin.md, config/bfin/predicates.md: Follow
16743         spelling conventions.
16744
16745 2007-02-04  Richard Guenther  <rguenther@suse.de>
16746
16747         PR middle-end/30636
16748         * fold-const.c (try_move_mult_to_index): Make sure to not
16749         overflow one dimension of a multi-dimensional array access.
16750
16751 2007-02-04  Jan Hubicka  <jh@suse.cz>
16752
16753         * passes.c (init_optimization_passes): Reindent.
16754
16755 2007-02-04  Jan Hubicka  <jh@suse.cz>
16756             Eric Botcazou  <ebotcazou@adacore.com>
16757
16758         * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
16759         (execute_fixup_cfg): Break out the abnormal goto code.
16760         * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
16761         (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
16762         (optimize_inline_calls): Call make_nonlocal_label_edges.
16763
16764 2007-02-04  Jan Hubicka  <jh@suse.cz>
16765
16766         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
16767         true when something was changed.
16768         (rename_ssa_copies): When something was changed, do
16769         TODO_remove_unused_locals.
16770         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
16771         add TODO_remove_unused_locals when instruction was removed.
16772
16773 2007-02-04  Jan Hubicka  <jh@suse.cz>
16774
16775         * ipa-inline.c (try_inline): Improve debug output; work on already
16776         inline edges too.
16777         (cgraph_decide_inlining_incrementally): Indent; improve debug output;
16778         call try_inline for already inlined edges too when flattening;
16779         inline also functions that make callee growth but overall unit size
16780         reduce.
16781
16782 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
16783
16784         * config/m32c/bitops.md, config/m32c/jump.md,
16785         config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
16786         config/m32r/m32r.h, config/m32r/m32r.md,
16787         config/m32r/predicates.md, config/m68hc11/larith.asm,
16788         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
16789         config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
16790         config/mips/mips-protos.h, config/mips/mips.c,
16791         config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
16792         config/mn10300/mn10300.h, config/mn10300/predicates.md,
16793         config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
16794         spelling conventions.
16795
16796         * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
16797         Follow spelling conventions.
16798
16799 2007-02-03  Douglas Gregor  <doug.gregor@gmail.com>
16800
16801         * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
16802         warn about C++0x compatibility.
16803
16804 2007-02-04  Kazu Hirata  <kazu@codesourcery.com>
16805
16806         * config/h8300/h8300.c, config/h8300/h8300.h,
16807         config/h8300/h8300.md: Follow spelling conventions.
16808
16809 2007-02-03  Uros Bizjak  <ubizjak@gmail.com>
16810
16811         PR middle-end/30667
16812         * combine.c (try_combine): Do not substitute source operand
16813         with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
16814
16815 2007-02-03  Jan Hubicka  <jh@suse.cz>
16816
16817         PR gcov-profile/30650
16818         * value-prof.c (stringop_block_profile): Fix handling of size counter;
16819         do not divide by zero for never executed counters.
16820         (tree_find_values_to_profile): Fix counters.
16821         * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
16822
16823 2007-02-03  Ian Lance Taylor  <iant@google.com>
16824
16825         * lower-subreg.c (simple_move_operand): New static function,
16826         broken out of simple_move.  Reject LABEL_REF, SYMBOL_REF, and HIGH
16827         operands.
16828         (simple_move): Call simple_move_operand.
16829         (find_decomposable_subregs): Add special handling of MEMs.
16830         (can_decompose_p): Rename from cannot_decompose_p.  Reverse
16831         meaning of return value.  If we see a hard register, test whether
16832         it can store a word_mode value.  Change all callers.
16833
16834 2007-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16835
16836         * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
16837         ftrapv insns and expanders.
16838         (subdi3): Change define_expand operand 1 to arith11_operand, and
16839         operand 2 to reg_or_0_operand.  Change constraints of 64-bit insn
16840         pattern to handle reg_or_0 operands.  Revise 32-bit insn pattern to
16841         handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
16842         respectively.
16843
16844         PR middle-end/30174
16845         * varasm.c (notice_global_symbol): Treat global objects as weak when
16846         flag_shlib is true.
16847
16848 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16849
16850         * emit-rtl.c (dconstpi): Delete.
16851         (dconstsqrt2): New.
16852         (init_emit_once): Delete dconstpi and init dconstsqrt2.
16853         * real.h (dconstpi): Delete.
16854         (dconstsqrt2): New.
16855         * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
16856         (fold_builtin_hypot): Likewise.
16857
16858 2007-02-03  Tom Tromey  <tromey@redhat.com>
16859
16860         PR driver/30246
16861         * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
16862         -gcoff3, -gxcoff3, -gvms3 implies -dD.
16863
16864 2007-02-03  Kazu Hirata  <kazu@codesourcery.com>
16865
16866         * c-decl.c, config/avr/avr.c, config/avr/avr.h,
16867         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
16868         config/mn10300/mn10300.c, config/pdp11/pdp11.h,
16869         config/rs6000/cell.md, config/rs6000/darwin.h,
16870         config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
16871         config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
16872         jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
16873         tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
16874         typos.  Follow spelling conventions.
16875         * doc/invoke.texi: Follow spelling conventions.
16876
16877 2007-02-03  Roger Sayle  <roger@eyesopen.com>
16878
16879         * simplify-rtx.c (simplify_relational_operation_1): Implement some
16880         canonicalization transformations that attempt to simplify integer
16881         constant comparisons to become comparisons against zero.
16882
16883 2007-02-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16884
16885         * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
16886         fabs(x)*sqrt(2).
16887         * fold-const.c (fold_binary): Fix comment typos.  Fold complex
16888         (x,0)-(0,y) into (x,-y).  Likewise (0,y)-(x,0) into (-x,y).
16889
16890 2007-02-02  Mike Stump  <mrs@apple.com>
16891
16892         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
16893         * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
16894         (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
16895         generate a branch island.
16896
16897 2007-02-02  Bob Wilson  <bob.wilson@acm.org>
16898
16899         * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
16900         (xtensa_legitimate_address_p): New.
16901         (xtensa_legitimize_address): New.
16902         (xtensa_output_addr_const_extra): New.
16903         * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
16904         (BASE_REG_P): New.
16905         (REG_OK_FOR_BASE_P): Use BASE_REG_P.
16906         (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
16907         (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
16908         (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
16909         * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
16910         (xtensa_legitimize_address): New.
16911         (xtensa_output_addr_const_extra): New.
16912
16913 2007-02-02  Steve Ellcey  <sje@cup.hp.com>
16914
16915         * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
16916
16917 2007-02-02  Ian Lance Taylor  <iant@google.com>
16918
16919         * expmed.c (expand_divmod): Add comment.
16920
16921 2007-02-02  Kazu Hirata  <kazu@codesourcery.com>
16922
16923         * emit-rtl.c (renumber_insns): Remove.
16924         * flags.h: Remove the extern for flag_renumber_insns.
16925         * rtl.h: Remove the prototype for renumber_insns.
16926         * toplev.c (flag_renumber_insns): Remove.
16927
16928 2007-02-02  Hui-May Chang  <hm.chang@apple.com>
16929
16930         Revert for x86 darwin:
16931         2005-06-19  Uros Bizjak  <uros@kss-loka.si>
16932
16933         * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
16934         code before the following patch under TARGET_MACHO.
16935         (ix86_function_value_regno_p): Likewise.
16936
16937 2007-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16938
16939         * fold-const.c (negate_expr_p, fold_negate_expr): Handle
16940         COMPLEX_EXPR.
16941
16942 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
16943
16944         PR target/29682
16945         * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory
16946         loads to general or fp registers.  Add comments.
16947         * config/ia64/ia64.md (reg_pred_prefix): Add comment.
16948
16949 2007-02-02  Paolo Bonzini  <bonzini@gnu.org>
16950
16951         * pointer-set.c (insert_aux): Only return insertion slot.
16952         (pointer_set_insert): Adjust.
16953         (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
16954         pointer_map_destroy, pointer_map_insert, pointer_map_contains,
16955         pointer_map_traverse): New.
16956         * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
16957         pointer_map_create,  pointer_map_destroy, pointer_map_insert,
16958         pointer_map_contains, pointer_map_traverse): Declare.
16959
16960 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
16961
16962         PR middle-end/30473
16963         * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
16964         sprintf (str, "%s").  Do not optimize sprintf (str, "nopercent", p++).
16965
16966 2007-02-02  Maxim Kuvyrkov  <mkuvyrkov@ispras.ru>
16967
16968         * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
16969
16970         (struct _dep): New type.
16971         (dep_t): New typedef.
16972         (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
16973         (DEP_STATUS): New access macro.  The macro with the same name was
16974         renamed to DEP_LINK_STATUS.
16975         (dep_init): Declare function
16976
16977         (struct _dep_link): New type.
16978         (dep_link_t): New typedef.
16979         (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
16980         (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
16981         (DEP_LINK_STATUS): New macro.
16982         (debug_dep_links): New debug function.
16983
16984         (struct _deps_list): New type.
16985         (deps_list_t): New typedef.
16986         (DEPS_LIST_FIRST): New access macro.
16987         (FOR_EACH_DEP_LINK): New cycle macro.
16988         (create_deps_list, free_deps_list, delete_deps_list): Declare
16989         functions.
16990         (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
16991         (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
16992         (copy_deps_list_change_con): Ditto.
16993
16994         (move_dep_link): Declare function.
16995
16996         (struct _dep_node): New type.
16997         (dep_node_t): New typedef.
16998         (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
16999
17000         (struct haifa_insn_data.back_deps): New field to hold backward
17001         dependencies of the insn.
17002         (struct haifa_insn_data.depend): Rename to forw_deps.  Change its type
17003         to deps_list_t.
17004         (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
17005         Change its type to deps_list_t.
17006         (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
17007         (INSN_DEPEND): Rename to INSN_FORW_DEPS.
17008         (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
17009
17010         (INSN_COST): Move to haifa-sched.c.  Use insn_cost () instead.
17011
17012         (DEP_STATUS): Rename to DEP_LINK_STATUS.  Fix typo in the comment.
17013
17014         (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration
17015         and all callers.
17016         (dep_cost): Declare.
17017
17018         * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
17019         (ds_to_dk, dk_to_ds): New functions.
17020
17021         (init_dep_1): New static function.
17022         (init_dep): New function.
17023         (copy_dep): New static function.
17024
17025         (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
17026         functions.
17027         (detach_dep_link): New static function.
17028         (move_dep_link): New function.
17029
17030         (dep_links_consistent_p, dump_dep_links): New static functions.
17031         (debug_dep_links): New debugging function.
17032
17033         (deps_obstack, dl_obstack, dn_obstack): New static variables.
17034
17035         (alloc_deps_list, init_deps_list): New static functions.
17036         (create_deps_list): New function.
17037         (clear_deps_list): New static function.
17038         (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
17039         (deps_list_consistent_p, dump_deps_list): New static functions.
17040         (debug_deps_list): New function.
17041         (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
17042         functions.
17043         (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
17044
17045         (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
17046         use new scheduler dependencies lists.
17047         (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
17048         (sched_analyze): Ditto.  Initialize dependencies lists.
17049         (add_forw_dep, compute_forward_dependences): Update to use new
17050         scheduler dependencies lists.
17051
17052         (init_dependency_caches): Init deps_obstack.
17053         (free_dependency_caches): Free deps_obstack.
17054
17055         (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
17056         new scheduler dependencies lists.
17057         (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
17058         (add_back_forw_dep, delete_back_forw_dep): Ditto.
17059
17060         * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
17061         Update to use new scheduler dependencies lists.
17062         (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
17063         (debug_dependencies): Ditto.
17064         (schedule_region): Update comments.
17065
17066         * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
17067         scheduler dependencies lists.
17068         (schedule_ebb): Update comments.
17069
17070         * rtl.def (DEPS_LIST): Remove.
17071
17072         * lists.c (unused_deps_list): Remove.
17073         (free_list): Update assertions.
17074
17075         (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
17076         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
17077
17078         * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
17079         (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
17080
17081         * haifa-sched.c (comments): Update.
17082         (insn_cost1): Remove.  Inline the code into insn_cost ().
17083         (insn_cost): Update to use new scheduler dependencies lists.  Move
17084         processing of the dependency cost to dep_cost ().
17085         (dep_cost): New function.  Use it instead of insn_cost () when
17086         evaluating cost of the dependency.  Use compatible interface to
17087         interact with the target.
17088         (priority): Update to use new scheduler dependencies lists.
17089         (rank_for_schedule): Ditto.  Optimize heuristic that prefers the insn
17090         with greater number of insns that depend on the insn.
17091         (schedule_insn): Update to use new scheduler dependencies lists.  Add
17092         code to free backward dependencies lists.  Inline and optimize code
17093         from resolve_dep () - see PR28071.
17094         (ok_for_early_queue_removal): Update to use new scheduler dependencies
17095         lists.  Update call to targetm.sched.is_costly_dependence hook.
17096
17097         (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
17098         scheduler dependencies lists.
17099
17100         (resolve_dep): Remove.  Move the logic to schedule_insn ().
17101         (init_h_i_d): Initialize dependencies lists.
17102
17103         (process_insn_depend_be_in_spec): Rename to
17104         process_insn_forw_deps_be_in_spec.  Update to use new scheduler
17105         dependencies lists.
17106         (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
17107         Update to use new scheduler dependencies lists.
17108         (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
17109
17110         * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
17111         new scheduler dependencies lists.
17112         (build_intra_loop_deps): Ditto.
17113
17114         * target.h (struct _dep): Declare to use in
17115         gcc_target.sched.is_costly_dependence.
17116         (struct gcc_target.sched.adjust_cost): Fix typo.
17117         (struct gcc_target.sched.is_costly_dependence): Change signature to
17118         use single dep_t parameter instead of an equivalent triad.
17119         (struct gcc_target.sched.adjust_cost_2): Remove.
17120
17121         * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
17122
17123         * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
17124
17125         * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
17126         documentation.
17127         (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
17128
17129         * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
17130         (REG_DEP_TRUE): Document.
17131
17132         * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
17133         Change signature to correspond to the targetm.sched.adjust_cost hook.
17134         Update use in TARGET_SCHED_ADJUST_COST_2.
17135         (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
17136         (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
17137         new scheduler dependencies lists.
17138         (ia64_gen_check): Ditto.
17139
17140         * config/mips/mips.c (vr4130_swap_insns_p): Update to use new
17141         scheduler dependencies lists.
17142
17143         * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
17144         signature to correspond to the targetm.sched.is_costly_dependence hook.
17145         (is_costly_group): Update to use new scheduler dependencies lists.
17146
17147         * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
17148         instead of INSN_COST () macro.
17149
17150 2007-02-01  Ian Lance Taylor  <iant@google.com>
17151
17152         * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
17153
17154 2007-02-01  Guy Martin  <gmsoft@gentoo.org>
17155
17156         * pa.md (tp_load): Correct mfctl instruction syntax.
17157
17158 2007-02-01  Geoffrey Keating  <geoffk@apple.com>
17159
17160         * config/rs6000/rs6000.c (rs6000_stack_info): Correct
17161         altivec_padding_size calculation on AIX.  Improve comment, add
17162         assert to verify that it's right.
17163
17164         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
17165         64-bit.
17166
17167 2007-2-01  Seongbae Park  <seongbae.park@gmail.com>
17168
17169         PR inline-asm/28686
17170         * global.c (global_alloc): Add mising initialization of
17171         ELIMINABLE_REGSET.
17172
17173 2007-02-01  Roger Sayle  <roger@eyesopen.com>
17174
17175         * alias.c (init_alias_analysis): Correct whitespace.
17176         * bb-reorder.c (fix_edges_for_rarely_executed_code,
17177         partition_hot_cold_basic_blocks): Likewise.
17178         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
17179         expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
17180         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
17181         fold_builtin_snprintf_chk, fold_builtin_printf,
17182         fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
17183         do_mpfr_arg3, do_mpfr_sincos): Likewise.
17184         * cfgcleanup.c (cleanup_cfg): Likewise.
17185         * cfgexpand.c (tree_expand_cfg): Likewise.
17186         * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
17187         * function.c (get_next_funcdef_no): Likewise.
17188         * gengtype.c (main): Likewise.
17189         * genmodes.c (main): Likewise.
17190         * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
17191         * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
17192         * ifcvt.c (noce_emit_move_insn): Likewise.
17193         * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
17194         Likewise.
17195         * stor-layout.c (get_best_mode): Likewise.
17196         * tree-ssa-loop-niter.c (get_val_for): Likewise.
17197         * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
17198         scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
17199         perform_var_substitution, solve_graph): Likewise.
17200         * tree-vrp.c (vrp_finalize): Likewise.
17201
17202 2007-02-01  Ian Lance Taylor  <iant@google.com>
17203
17204         * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
17205         high part of a paradoxical subreg, return a constant zero.
17206
17207 2007-02-01  Zdenek Dvorak <dvorakz@suse.cz>
17208
17209         * toplev.c (lang_dependent_init): Call init_set_costs.
17210         * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
17211
17212 2007-02-01  Richard Guenther  <rguenther@suse.de>
17213
17214         PR middle-end/30656
17215         * fold-const.c (fold_negate_expr): Allow negating a
17216         constant if overflow does not change.
17217
17218 2007-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17219
17220         * doc/c-tree.texi (Expression trees): Improve markup.
17221         * doc/tm.texi (Register Classes, Addressing Modes)
17222         (Floating Point): Fix spacing after abbreviations.  Fix some
17223         typos.
17224
17225 2007-02-01  Ben Elliston  <bje@au.ibm.com>
17226
17227         * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
17228         * doc/contrib.texi: Likewise.
17229         * doc/install.texi: Likewise.
17230
17231 2007-01-31  Richard Henderson  <rth@redhat.com>
17232             Ian Lance Taylor  <iant@google.com>
17233
17234         * lower-subreg.c: New file.
17235         * rtl.def (CONCATN): Define.
17236         * passes.c (init_optimization_passes): Add pass_lower_subreg and
17237         pass_lower_subreg2.
17238         * emit-rtl.c (update_reg_offset): New static function, broken out
17239         of gen_rtx_REG_offset.
17240         (gen_rtx_REG_offset): Call update_reg_offset.
17241         (gen_reg_rtx_offset): New function.
17242         * regclass.c: Revert patch of 2006-03-05, restoring
17243         reg_scan_update.
17244         (clear_reg_info_regno): New function.
17245         * dwarf2out.c (concatn_loc_descriptor): New static function.
17246         (loc_descriptor): Handle CONCATN.
17247         * common.opt (fsplit_wide_types): New option.
17248         * opts.c (decode_options): Set flag_split_wide_types when
17249         optimizing.
17250         * timevar.def (TV_LOWER_SUBREG): Define.
17251         * rtl.h (gen_reg_rtx_offset): Declare.
17252         (reg_scan_update): Declare.
17253         * regs.h (clear_reg_info_regno): Declare.
17254         * tree-pass.h (pass_lower_subreg): Declare.
17255         (pass_lower_subreg2): Declare.
17256         * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
17257         (Optimize Options): Add -fsplit-wide-types to -O1 list.  Document
17258         -fsplit-wide-types.
17259         * doc/rtl.texi (Regs and Memory): Document concat and concatn.
17260         * Makefile.in (OBJS-common): Add lower-subreg.o.
17261         (lower-subreg.o): New target.
17262
17263 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
17264
17265         * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
17266
17267 2007-01-31  Anatoly Sokolov <aesok@post.ru>
17268
17269         PR target/19087
17270         * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
17271
17272 2007-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17273
17274         PR middle-end/29335
17275         * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
17276
17277 2007-01-31  Zdenek Dvorak <dvorakz@suse.cz>
17278
17279         * cfgloop.h: Include vec-prim.h.
17280         (enum li_flags): Remove LI_ONLY_OLD.
17281         (loop_iterator): Changed.
17282         (fel_next, fel_init): Iterate over loop tree.
17283         (FOR_EACH_LOOP_BREAK): New macro.
17284         * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
17285         FOR_EACH_LOOP.
17286         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
17287         * modulo-sched.c (sms_schedule): Ditto.
17288         * tree-vectorizer.c (vectorize_loops): Ditto.
17289         * doc/loop.texi: Update information on loop numbering and behavior of
17290         FOR_EACH_LOOP wrto new loops.
17291         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
17292         add_to_evolution_1): Test nestedness of loops instead of comparing
17293         their numbers.
17294         * tree-chrec.c (chrec_fold_plus_poly_poly,
17295         chrec_fold_multiply_poly_poly, chrec_evaluate,
17296         hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
17297         reset_evolution_in_loop): Ditto.
17298         * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
17299
17300 2007-01-31  Dirk Mueller  <dmueller@suse.de>
17301
17302         * c-common.c (warn_about_parentheses): Separate warning about
17303         un-parenthized sequence of comparison operators from the one
17304         which is supposed to warn about x <= y <= z.
17305
17306 2007-01-31  Uros Bizjak  <ubizjak@gmail.com>
17307
17308         * optabs.h (enum optab_index): Add new OTI_isinf.
17309         (isinf_optab): Define corresponding macro.
17310         * optabs.c (init_optabs): Initialize isinf_optab.
17311         * genopinit.c (optabs): Implement isinf_optab using isinf?f2
17312         patterns.
17313         * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
17314         (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
17315         using isinf_optab.
17316         (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
17317         expand_builtin_interclass_mathfn.
17318         * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
17319         * config/i386/i386.md (UNSPEC_FXAM): New constant.
17320         (fxam<mode>2_i387): New insn pattern.
17321         (isinf<mode>2) New expander to implement isinf, isinff and isinfl
17322         built-in functions as x87 inline asm.
17323
17324 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
17325
17326         * config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
17327
17328 2007-01-30  Eric Christopher  <echristo@apple.com>
17329
17330         * config.gcc: Add geode.
17331
17332 2007-01-31  Kazu Hirata  <kazu@codesourcery.com>
17333
17334         * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
17335         ipa-inline.c, tree-profile.c, tree-ssa-live.c,
17336         tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
17337         value-prof.c: Fix comment typos.
17338
17339 2007-01-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17340
17341         PR c++/24745
17342         * doc/invoke.texi (Wpointer-arith): Document warning.
17343
17344 2007-01-30  Janis Johnson  <janis187@us.ibm.com>
17345
17346         * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
17347         the list of discrepancies from the draft TR.
17348
17349 2007-01-30  Dirk Mueller  <dmueller@suse.de>
17350
17351         PR c++/30601
17352         * doc/invoke.texi (-Wreturn-type): Update description to
17353         match new behavior.
17354
17355 2007-01-30  Richard Sandiford  <richard@codesourcery.com>
17356
17357         * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
17358
17359 2007-01-30  Uros Bizjak  <ubizjak@gmail.com>
17360
17361         * builtins.c (expand_builtin_int_interclass_roundingfn): New function
17362         to handle optabs that operate on floating point input argument and
17363         output to integer output.
17364         (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
17365         (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
17366         (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
17367         expand_builtin_interclass_mathfn ().
17368         * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
17369         (ilogbsi2): Remove.
17370         (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
17371         ilogbl built-in functions as x87 intrinsics.
17372
17373 2007-01-30  Richard Guenther  <rguenther@suse.de>
17374
17375         PR middle-end/27657
17376         * dwarf2out.c (reference_to_unused): Query varpool if the
17377         variable was output.
17378
17379 2007-01-30  Richard Guenther  <rguenther@suse.de>
17380
17381         PR middle-end/30313
17382         * passes.c (execute_one_pass): Reset in_gimple_form to not
17383         confuse non-unit-at-a-time mode.
17384
17385 2007-01-29  Roger Sayle  <roger@eyesopen.com>
17386             Richard Guenther  <rguenther@suse.de>
17387
17388         * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
17389         avoid undefined behaviour on overflow.  Use force_fit_type_double
17390         to construct the constant with the specified TREE_OVERFLOW.
17391
17392 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
17393
17394         * config/dfp-bit.c: Add parameterized support for fp exceptions.
17395         * config/dfp-bit.h: Ditto.
17396
17397 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17398
17399         * c-decl.c (pop_scope): Replace warnings with call to
17400         warn_for_unused_label.
17401         * c-common.h (warn_for_unused_label): Declare.
17402         * c-common.c (warn_for_unused_label): Define.
17403
17404 2007-01-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
17405
17406         * tree-optimize.c (update_inlined_to_pointers): Delete unused
17407         function.
17408
17409 2007-01-29  Janis Johnson  <janis187@us.ibm.com>
17410
17411         * Makefile.in (USER_H): Remove decfloat.h.
17412         * ginclude/decfloat.h: Delete, moving contents to ...
17413         * ginclude/float.h: Add support for decimal floating point,
17414         guarded by __STDC_WANT_DEC_FP__.
17415
17416 2007-01-29  Mike Stump  <mrs@apple.com>
17417
17418         * doc/gccint.texi (Top): Rename Loop Representation to Loop
17419         Analysis and Representation to resolve case insensitive conflict.
17420         * doc/loop.texi (Loop Analysis and Representation): Likewise.
17421
17422 2007-01-28  Daniel Berlin  <dberlin@dberlin.org>
17423
17424         * tree.h (struct tree_memory_tag): Add aliases member.
17425         (MTAG_ALIASES): New macro.
17426         * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
17427         (add_may_alias): Remove pointer-set. Update for may_aliases being
17428         a bitmap.
17429         (mark_aliases_call_clobbered): Update for may_aliases being a
17430         bitmap.
17431         (compute_tag_properties): Ditto.
17432         (create_partition_for): Ditto.
17433         (compute_memory_partitions): Ditto.
17434         (dump_may_aliases_for): Ditto.
17435         (is_aliased_with): Ditto.
17436         (add_may_alias_for_new_tag): Ditto.
17437         (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
17438         (compute_is_aliased): New function.
17439         (compute_may_aliases): Call compute_is_aliased).
17440         (init_alias_info): Initialize alias_bitmap_obstack.
17441         (union_alias_set_into): New function.
17442         (compute_flow_sensitive_aliasing): Use union_aliases_into.
17443         (have_common_aliases_p): Rewrite to take two bitmaps and use
17444         intersection.
17445         (compute_flow_insensitive_aliasing): Stop using pointer-sets.
17446         Update for bitmaps.
17447         (finalize_ref_all_pointers): Update for add_may_alias changes.
17448         (new_type_alias): Ditto.
17449         * tree-flow-inline.h (may_aliases): Return a bitmap.
17450         * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
17451         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
17452         may_aliases being a bitmap.
17453         * tree-flow.h (struct var_ann_d): Remove may_aliases member.
17454         may_aliases now returns a bitmap.
17455         * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
17456         being a bitmap.
17457         * tree-ssa-operands.c (add_virtual_operand): Update for
17458         may_aliases being a bitmap.
17459
17460 2007-01-29  Daniel Berlin  <dberlin@dberlin.org>
17461
17462         PR tree-optimization/30630
17463         * tree-ssa-structalias.c (do_complex_constraint): Mark correct
17464         variable as changed.
17465
17466 2007-01-29  Simon Martin  <simartin@users.sourceforge.net>
17467
17468         PR c++/28266
17469         * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
17470         expanded only once even if an error occurs.
17471
17472 2007-01-29  Ben Elliston  <bje@au.ibm.com>
17473
17474         * gcov-io.h (__gcov_indirect_call_profiler): Declare.
17475         (__gcov_average_profiler): Likewise.
17476         (__gcov_ior_profiler): Likewise.
17477         (__gcov_merge_ior): Likewise.
17478
17479 2007-01-28  Jan Hubicka  <jh@suse.cz>
17480
17481         * builtins.c (expand_builtin_memset): Fix typo in my last patch.
17482         * value-prof.c (stringop_block_profile): Likewise.
17483
17484 2007-01-28  Jan Hubicka  <jh@suse.cz>
17485
17486         * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall):
17487         Add variant handling histograms; add wrapper.
17488         (clear_storage_via_libcall): Export.
17489         (emit_block_move_hints): Break out from ...; add histograms.
17490         (emit_block_move): ... this one.
17491         (clear_storage_hints): Break out from ...; add histograms.
17492         (clear_storage): ... this one.
17493         (set_storage_via_memset): Handle histogram.
17494         * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
17495         (clear_storage_hints, clear_storage_via_libcall): Declare.
17496         (set_storage_via_setmem): Update prototype.
17497         * doc/md.texi (movmem, setmem): Document new arguments.
17498
17499         * value-prof.c (dump_histogram_value, tree_find_values_to_profile):
17500         Add new histograms.
17501         (stringop_block_profile): New global function.
17502         (tree_stringops_values_to_profile): Profile block size and alignment.
17503         * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
17504         HIST_TYPE_IOR.
17505         (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
17506         (stringop_block_profile): Declare.
17507         * builtins.c: Include value-prof.h.
17508         (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
17509         * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
17510         (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
17511         (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
17512         * profile.c (instrument_values): Add new counters.
17513         * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
17514         calls.
17515         * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
17516         (tree_init_edge_profiler): Build new profilers.
17517         (tree_gen_average_profiler, tree_gen_ior_profiler): New.
17518         (pass_tree_profile): Add dump.
17519         (tree_profile_hooks): Update.
17520         * Makefile.in (LIBGCOV): Add new constants.
17521         * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
17522         __gcov_ior_profiler): New.
17523         * i386.md (movmem/setmem expanders): Add new optional arguments.
17524
17525 2007-01-28  David Edelsohn  <edelsohn@gnu.org>
17526
17527         * doc/md.texi (Standard Pattern Names): Document blockage pattern.
17528
17529 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
17530
17531         * tree-ssa-loop-unswitch.c: Include tree-inline.h.
17532         (tree_unswitch_single_loop): Pass eni_size_weights to
17533         tree_num_loop_insns.
17534         * tree-ssa-loop-manip.c: Include tree-inline.h.
17535         (can_unroll_loop_p): Pass eni_size_weights to
17536         tree_num_loop_insns.
17537         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
17538         Pass eni_size_weights to estimate_num_insns.
17539         * tree.h (init_inline_once): Export.
17540         * toplev.c (backend_init): Call init_inline_once.
17541         * cgraphunit.c (cgraph_process_new_functions,
17542         cgraph_analyze_function): Pass eni_inlining_weights to
17543         estimate_num_insns.
17544         * ipa-inline.c (compute_inline_parameters): Ditto.
17545         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
17546         to estimate_num_insns.
17547         (try_unroll_loop_completely): Pass eni_size_weights to
17548         tree_num_loop_insns.
17549         * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
17550         ot estimate_num_insns.
17551         * tree-ssa-loop-prefetch.c: Include tree-inline.h.
17552         (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
17553         * tree-inline.c (eni_inlining_weights, eni_size_weights,
17554         eni_time_weights): New variables.
17555         (init_inline_once): Initialize them.
17556         (struct eni_data): Mew.
17557         (estimate_num_insns_1, estimate_num_insns): Use weights.
17558         * tree-inline.h (struct eni_weights_d): New.
17559         (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
17560         (estimate_num_insns): Declaration changed.
17561         * cfgloop.h (tree_num_loop_insns): Declaration changed.
17562         * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
17563         tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
17564
17565 2007-01-28  Zdenek Dvorak <dvorakz@suse.cz>
17566
17567         * tree-data-ref.c (conflict_fn): Assert that the number of affine
17568         relations in the conflict function is valid.
17569
17570 2007-01-27  Ian Lance Taylor  <iant@google.com>
17571
17572         * common.opt: Add fstrict-overflow.
17573         * opts.c (decode_options): Set flag_strict_overflow if -O2.
17574         * flags.h (TYPE_OVERFLOW_WRAPS): Define.
17575         (TYPE_OVERFLOW_UNDEFINED): Define.
17576         (TYPE_OVERFLOW_TRAPS): Define.  This replaces TYPE_TRAP_SIGNED.
17577         Replace all uses.
17578         * tree.h (TYPE_TRAP_SIGNED): Don't define.
17579         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
17580         (fold_negate_expr): Likewise.
17581         (make_range): Likewise.
17582         (extract_muldiv_1): Likewise.
17583         (maybe_canonicalize_comparison): Likewise.
17584         (fold_comparison): Likewise.
17585         (fold_binary): Likewise.
17586         (tree_expr_nonnegative_p): Likewise.
17587         (tree_expr_nonzero_p): Likewise.
17588         * tree-vrp.c (compare_values): Likewise.
17589         (extract_range_from_binary_expr): Likewise.
17590         (extract_range_from_unary_expr): Likewise.
17591         * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
17592         Likewise.
17593         (nowrap_type_p): Likewise.
17594         * tree-scalar-evolution.c (simple_iv): Likewise.
17595         * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
17596         (build_range_check): Likewise.
17597         (extract_muldiv_1): Likewise.
17598         (fold_comparison): Likewise.
17599         * tree-vrp.c (vrp_int_const_binop): Likewise.
17600         (extract_range_from_unary_expr): Likewise.
17601         * convert.c (convert_to_integer): Likewise.
17602         * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
17603         (fold_comparison): Likewise.
17604         (fold_binary): Likewise.
17605         * optabs.c (optab_for_tree_code): Likewise.
17606         * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
17607         * simplify-rtx.c (simplify_const_relational_operation): Check
17608         flag_strict_overflow and flag_trapv.
17609         (simplify_const_relational_operation): Likewise.
17610         * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
17611         (Optimize Options): Add -fstrict-overflow to -O2 list.  Document
17612         -fstrict-overflow.
17613
17614 2007-01-27  Roger Sayle  <roger@eyesopen.com>
17615
17616         * tree.c (tree_fold_gcd): Delete.
17617         * tree.h (tree_fold_gcd): Remove prototype.
17618         * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
17619         test whether one constant integer is a multiple of another.  Instead
17620         call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
17621         * fold-const.c (multiple_of_p):  We've determined both TOP and
17622         BOTTOM are integer constants so we can call int_const_binop directly
17623         instead of the more generic const_binop.
17624
17625 2007-01-27  Roger Sayle  <roger@eyesopen.com>
17626
17627         * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
17628         1*X check that the constant hasn't overflowed, to preserve the
17629         TREE_OVERFLOW bit.
17630         (round_up): Provide an efficient implementation when rouding-up an
17631         INTEGER_CST to a power-of-two.
17632
17633 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17634
17635         * doc/sourcebuild.texi: Add comma for clarity.
17636         * doc/extend.texi: Fix some typos.
17637         * doc/passes.texi: Likewise.
17638         * doc/cppinternals.texi: Likewise.
17639         * doc/c-tree.texi: Likewise.
17640         * doc/tree-ssa.texi: Likewise.
17641         * doc/install.texi: Likewise.
17642
17643 2007-01-27  Jan Hubicka  <jh@suse.cz>
17644
17645         * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
17646         (pass_sra): Do not require alias information.
17647         * passes.c (init_optimization_passes): Add SRA
17648
17649 2007-01-27  Steven Bosscher  <steven@gcc.gnu.org>
17650
17651         * tracer.c (rest_of_handle_tracer): We already cleaned
17652         up the CFG in tracer() so don't do it here again.
17653         * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
17654         cleanup_cfg here, either.  And don't call renumber_insns.
17655
17656         * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
17657         and BB_HEAD are in the insn stream here.  Instead make sure
17658         that BB_INSN is valid on all insns.  Also, do check here that
17659         there are no pending branch predictions...
17660         (rtl_verify_flow_info): ...instead of doing it here.  Checks
17661         for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
17662         here.
17663
17664 2007-01-26  Roger Sayle  <roger@eyesopen.com>
17665
17666         * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
17667         function to simplify/factorize operand order canonicalization.
17668         (ix86_fixup_binary_operands): Reorganize using the above function.
17669         (ix86_binary_operator_ok): Likewise.
17670
17671 2007-01-27  Jakub Jelinek  <jakub@redhat.com>
17672
17673         * genattrtab.c (struct attr_value_list, insn_code_values): Move to
17674         file scope from optimize_attrs.
17675         (simplify_test_exp): If insn_code_values is not NULL, use it to speed
17676         up search.
17677         (optimize_attrs): Clear insn_code_values after freeing it.
17678
17679 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
17680
17681         * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
17682         a parts.base assignment.
17683
17684 2007-01-26  Zdenek Dvorak <dvorakz@suse.cz>
17685
17686         * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
17687         (compute_subscript_distance, initialize_data_dependence_relation,
17688         finalize_ddr_dependent, analyze_ziv_subscript,
17689         analyze_siv_subscript_cst_affine,
17690         compute_overlap_steps_for_affine_univar,
17691         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
17692         analyze_siv_subscript, analyze_miv_subscript,
17693         analyze_overlapping_iterations, subscript_dependence_tester_1,
17694         compute_self_dependence, free_dependence_relation): Work
17695         with affine_fn instead of chrecs.
17696         (dump_affine_function, dump_conflict_function, affine_function_equal_p,
17697         common_affine_function, affine_function_base,
17698         affine_function_constant_p, affine_fn_op, affine_fn_plus,
17699         affine_fn_minus, affine_fn_free, conflict_fn_not_known,
17700         conflict_fn_no_dependence, free_conflict_function, free_subscripts,
17701         conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
17702         (all_chrecs_equal_p): Removed.
17703         * tree-data-ref.h (affine_fn, conflict_function): New types.
17704         (struct subscript): Change type of conflicting_iterations_in_a
17705         and conflicting_iterations_in_b.
17706
17707 2007-01-26  Steve Ellcey  <sje@cup.hp.com>
17708
17709         PR other/30182
17710         * config/pa/pa.h (TARGET_HPUX_11): New.
17711         * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
17712         * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
17713
17714 2007-01-26  Daniel Berlin  <dberlin@dberlin.org>
17715         Richard Guenther  <rguenther@suse.de>
17716
17717         * tree-ssa-structalias.c (solve_graph): Handle case
17718         we merged the variable to another.
17719
17720 2007-01-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17721
17722         * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
17723         functions.
17724
17725         * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
17726         catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
17727
17728 2007-01-25  DJ Delorie  <dj@redhat.com>
17729
17730         * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
17731         allow changes to modes which don't fit in those registers.
17732
17733         * reload1.c (choose_reload_regs): Check for invalid subregs before
17734         computing their locations, not after.
17735
17736 2007-01-25  Geoffrey Keating  <geoffk@apple.com>
17737
17738         PR 25127
17739         * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
17740         save Altivec registers in an eh_return function.
17741         (compute_vrsave_mask): Likewise.
17742         (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
17743         for saving Altivec registers.
17744         (rs6000_emit_prologue): Don't allocate stack twice in
17745         eh_return function.  Correct expected value of altivec_save_offset
17746         when using save_world.  Describe save of R0 to stack when using
17747         save_world.  Describe stack pointer adjustment when using
17748         save_world.  Remove duplicated eh_return parameter register saving.
17749         Update sp_offset variable after save_world.
17750         * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
17751         darwin-world.asm.
17752         (LIB2FUNCS_EXTRA): Add darwin-world.asm.
17753         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
17754         implies Altivec.
17755
17756 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
17757
17758         * config.gcc (ia64*-*-hpux*): Make posix threads the default.
17759
17760 2007-01-25  Steve Ellcey  <sje@cup.hp.com>
17761
17762         PR other/30182
17763         * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
17764         * config/ia64/ia64.c (ia64_init_builtins):  Ditto.
17765
17766 2007-01-25  Richard Guenther  <rguenther@suse.de>
17767
17768         * doc/invoke.texi (-Wcoverage-mismatch): Document.
17769         * common.opt (-Wcoverage-mismatch): New warning option.
17770         * coverage.c (get_coverage_counts): Ignore coverage mismatch
17771         if -Wcoverage-mismatch is given.
17772
17773 2007-01-25  Razya Ladelsky  <razya@il.ibm.com>
17774
17775         * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
17776         (ipcp_driver): Change to static definition.
17777         Add dumping of the ifunctions.
17778         (constant_val_insert): Remove unused parameter. Support for SSA.
17779         (ipcp_propagate_const): Support for SSA.
17780         (ipcp_profile_bb_print): Print only analyzed nodes.
17781         (ipcp_replace_map_create): Remove support for Fortran constant
17782         for now.
17783         * ipa-prop.c (ipa_method_modify_stmt,
17784         ipa_callsite_compute_param): Support for SSA.
17785         * ipa-prop.h (ipcp_driver): Remove declaration.
17786         (IS_VALID_TREE_MAP_INDEX): Add define.
17787
17788 2007-01-24  Geoffrey Keating  <geoffk@apple.com>
17789
17790         * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
17791
17792 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17793
17794         PR middle-end/30447
17795         * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
17796         constant argument to cabs and do it without checking for
17797         -funsafe-math-optimizations.
17798
17799 2007-01-24  Douglas Gregor  <dgregor@osl.iu.edu>
17800
17801         * c-common.h (RID_FIRST_CXX0X): New.
17802         (RID_LAST_CXX0X): New.
17803         * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
17804         by -Wall.
17805         * c.opt (Wc++0x-compat): New.
17806         * doc/invoke.texi (-Wc++0x-compat): Document.
17807
17808 2007-01-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17809
17810         * builtins.c (fold_builtin_carg): New.
17811         (fold_builtin_1): Use it.
17812
17813 2007-01-24  Jan Hubicka  <jh@suse.cz>
17814
17815         * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
17816
17817         * ipa-inline.c (initial_insns, max_insns): Delete.
17818         (compute_max_insns): New function.
17819         (cgraph_decide_inlining_of_small_function): Use it; take minimal
17820         amount of insns as base for code growth.
17821         (cgraph_decide_inlining): Make initial_insns local; do not compute
17822         max_insns.
17823         * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
17824         * doc/invoke.texi (inline-unit-growth): Update docs.
17825
17826 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
17827
17828         * config/i386/i386.h (x86_cmpxchg16b): Remove const.
17829         (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
17830         * config/i386/i386.c (x86_cmpxchg16b): Remove const.
17831         (override_options): Add PTA_CX16 flag.  Set x86_cmpxchg16b
17832         for CPUs that have PTA_CX16 set.
17833
17834         PR middle-end/27416
17835         * gimplify.c (omp_check_private): New function.
17836         (gimplify_scan_omp_clauses): Use it for
17837         firstprivate/lastprivate/reduction.
17838
17839         PR middle-end/30494
17840         * gimplify.c (omp_add_variable): Don't call omp_notice_variable
17841         on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
17842
17843         PR middle-end/30421
17844         * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
17845         If lower_lastprivate_clauses emits some statements, append them
17846         to dlist rather than body_p and to body_p append an initializer.
17847         (lower_omp_for): Adjust caller.
17848
17849 2007-01-24  Steve Ellcey  <sje@cup.hp.com>
17850
17851         * target.h (globalize_decl_name): New.
17852         * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
17853         * output.h (default_globalize_decl_name): New.
17854         * varasm.c (asm_output_bss): Use globalize_decl_name instead of
17855         globalize_label.
17856         (globalize_decl): Ditto.
17857         (default_globalize_decl_name): New.
17858         * config/ia64/ia64.c (ia64_globalize_decl_name): New.
17859         (ia64_handle_version_id_attribute): New.
17860         (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
17861         (ia64_asm_output_external): Use globalize_decl_name instead
17862         of globalize_label.
17863         * doc/extend.texi (version_id): New pragma.
17864         * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
17865
17866 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
17867
17868         * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
17869         _uleb128_t and _Unwind_SWord with _sleb128_t.
17870         * unwind-dw2.c (extract_cie_info, execute_stack_op,
17871         execute_cfa_program, uw_frame_state_for, uw_update_context_1):
17872         Likewise.
17873         * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
17874         * unwind-pe.h (read_uleb128, read_sleb128,
17875         read_encoded_value_with_base): Likewise.
17876         * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
17877
17878 2007-01-24  Richard Guenther  <rguenther@suse.de>
17879
17880         * builtins.c (expand_builtin_cexpi): Get the fndecl
17881         for cexp in the correct way.
17882
17883 2007-01-24  Jan Hubicka  <jh@suse.cz>
17884
17885         * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS
17886         of calls.
17887
17888 2007-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
17889
17890         * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
17891         (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
17892         __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
17893         __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
17894         __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
17895         __SIZEOF_PTRDIFF_T__.
17896         * doc/cpp.texi: Documentation for the new builtin macros added.
17897
17898 2007-01-24  Uros Bizjak  <ubizjak@gmail.com>
17899
17900         * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
17901         log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
17902         instead of operands[2] to avoid access past the end of array.
17903
17904 2007-01-24  Richard Sandiford  <richard@codesourcery.com>
17905
17906         * reload1.c (emit_reload_insns): Pass the reload register
17907         for a non-spill output reload through forget_old_reloads_1.
17908
17909 2007-01-23  Joseph Myers  <joseph@codesourcery.com>
17910
17911         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
17912         _SOFT_DOUBLE if doubles use software floating-point.
17913         * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
17914         double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
17915         * config/rs6000/darwin-ldouble.c: Also compile functions for
17916         hard-float without FPRs.  Use fmsub function for all __NO_FPRS__
17917         cases.  Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
17918         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
17919         commented-out long double override.
17920         (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
17921         * config/rs6000/eabispe.h: Likewise.
17922         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
17923         long double for non-SPE.
17924         (rs6000_handle_option): Likewise.
17925         (invalid_e500_subreg): Disallow more subregs involding DImode,
17926         DFmode, TImode or TFmode.
17927         (rs6000_legitimate_offset_address_p): Check TFmode offsets for
17928         E500 double.
17929         (legitimate_lo_sum_address_p): Also check for TFmode for E500
17930         double.
17931         (rs6000_legitimize_address): Also handle TFmode for E500 double.
17932         (rs6000_legitimize_reload_address): Also handle TFmode for E500
17933         double.
17934         (rs6000_legitimate_address): Also check for TFmode for E500
17935         double.
17936         (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
17937         (spe_build_register_parallel): Handle TFmode and TCmode.
17938         (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
17939         double.
17940         (function_arg): Handle TFmode and TCmode for E500 double.
17941         (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
17942         in general.
17943         (print_operand): Handle TFmode and TImode for %y.
17944         (rs6000_generate_compare): Handle TFmode comparisons for E500
17945         double.
17946         (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
17947         (rs6000_function_value): Handle TFmode and TCmode for E500 double.
17948         (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
17949         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
17950         TFmode for E500 double.
17951         * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
17952         (floatsidf2): Enable for E500 double.
17953         (movtf_softfloat): Use rs6000_nonimmediate_operand.
17954         (extenddftf2): Change to extenddftf2_fprs.
17955         (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
17956         depending on TARGET_E500_DOUBLE.
17957         (extendsftf2): Enable for E500 double.
17958         (trunctfdf2): Enable for E500 double.
17959         (trunctfsf2): Change to trunctfsf2_fprs.
17960         (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
17961         depending on TARGET_E500_DOUBLE.
17962         (floatsitf2): Enable for E500 double.
17963         (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
17964         (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
17965         gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
17966         (negtf2): Change to negtf2_internal.
17967         (negtf2): New expander.
17968         (abstf2): Enable for E500 double.  Call gen_spe_abstf2_tst,
17969         gen_spe_abstf2_cmp or gen_abstf2_internal depending on
17970         TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
17971         (movdi_internal32): Use rs6000_nonimmediate_operand.
17972         (unnamed splitter): Likewise.
17973         * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
17974         TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
17975         (SPE64TF, DITI): New mode macros.
17976         (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
17977         modes.
17978         (frob_tf_ti): New.
17979         (frob_<mode>_di_2): New.
17980         (frob_tf_di_8_2): New.
17981         (frob_di_df): Change to frob_di_<mode>; allow more modes.
17982         (frob_ti_tf): New.
17983         (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
17984         more modes.
17985         (frob_ti_<mode>_8_2): New.
17986         (frob_ti_tf_2): New.
17987         (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
17988         mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
17989         TFmode.
17990         (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
17991         mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
17992         (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
17993         spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
17994         spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
17995         (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
17996         tsttflt_gp): New.
17997
17998 2007-01-23  Ian Lance Taylor  <iant@google.com>
17999
18000         * Makefile.in (OBJS-common): Reformat, alphabetize, but put
18001         insn-*.o first.
18002         (OBJS-archive): Reformat, alphabetize.
18003         (OBJS): Change out_object_file to OBJS-md.
18004
18005 2007-01-23  Uros Bizjak  <ubizjak@gmail.com>
18006
18007         * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
18008         JUMP_P and CALL_P predicates where applicable.
18009         * config/i386/i386.c: Ditto.
18010         * config/i386/i386.md: Ditto.
18011         * config/i386/mmx.md: Ditto.
18012         * config/i386/predicates.md: Ditto.
18013
18014 2007-01-22  Andreas Schwab  <schwab@suse.de>
18015
18016         * config/m68k/m68k.h: Fix comment.
18017
18018 2007-01-22  Jan Hubicka  <jh@suse.cz>
18019
18020         * passes.c (init_optimization_passes): Do not rerun
18021         pass_early_warn_uninitialized.
18022
18023 2007-01-22  Richard Guenther  <rguenther@suse.de>
18024
18025         PR tree-optimization/30038
18026         * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
18027         function.
18028         (execute_cse_sincos_1): Likewise.
18029         (execute_cse_sincos): Likewise.
18030         (gate_cse_sincos): Likewise.
18031         (pass_cse_sincos): New pass CSEing sin() and cos() calls using
18032         the cexpi() canonicalization of sincos().
18033         * tree-pass.h (pass_cse_sincos): Declare.
18034         * passes.c (init_optimization_passes): New pass pas_cse_sincos.
18035
18036 2007-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
18037
18038         PR rtl-optimization/29329
18039         * combine.c (replaced_rhs_insn): Rename to i2mod.
18040         (replaced_rhs_value): Rename to i2mod_new_rhs.
18041         (i2mod_old_rhs): New global variable.
18042         (combine_instructions): Adjust for above change.  Save a copy of
18043         the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
18044         note are substituted in the second instruction.
18045         (distribute_notes) <REG_DEAD>: Adjust for above change.  Do not
18046         ditch the note if it pertains to the second eliminated register
18047         and this register is mentioned in i2mod_old_rhs.
18048
18049         Revert:
18050         2006-09-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
18051
18052         * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
18053         the insn to which the note was originally attached.
18054
18055 2007-01-21  Jan Hubicka  <jh@suse.cz>
18056
18057         * ipa-inline.c (inlining_mode): Comment, move up.
18058         (cgraph_decide_inlining_incrementally): Do not perform inlining
18059         itself; fix handling of flattening of self recursive functions.
18060         (cgraph_find_cycles): Remove.
18061         (cgraph_flatten_node): Remove.
18062         (cgraph_decide_inlining): Use incremental inliner to handle flattening.
18063         (try_inline): New function.
18064         (cgraph_early_inlining): Update call of
18065         cgraph_decide_inlining_incrementally.  Apply inlining here.
18066         (apply_inline): Update call of cgraph_decide_inlining_incrementally.
18067
18068 2007-01-21  Dirk Mueller  <dmueller@suse.de>
18069
18070         PR bootstrap/30511
18071         * tree-vrp.c (check_array_bounds): do not warn
18072         about ADDR_EXPR's of ARRAY_REF's which are immediately
18073         used in binary expressions.
18074
18075 2007-01-21  Ira Rosen  <irar@il.ibm.com>
18076
18077         * tree-vectorizer.h (struct _stmt_vec_info): Add new field
18078         read_write_dep and macros for its access.
18079         * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
18080         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
18081         argument, call vect_check_interleaving for every independent pair of
18082         data-refs. Mark loads that access the same memory location as a store
18083         in the loop.
18084         (vect_check_dependences): Remove.
18085         (vect_analyze_data_ref_dependences): Remove  vect_check_dependences
18086         call, fix the call to vect_analyze_data_ref_dependence.
18087         (vect_analyze_data_ref_access): For statements that access the same
18088         data-ref, check that they are not stores; for loads, check that there
18089         is no store that access the same location.
18090
18091 2007-01-20  Roger Sayle  <roger@eyesopen.com>
18092             Joseph Myers  <joseph@codesourcery.com>
18093
18094         * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
18095         (-fdump-rtl-stack): Likewise.
18096         (-fno-signed-zeros): Use @minus{} for a minus sign.  Correct typo.
18097         (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
18098         (-mpt-fixed): Use @minus{} for minus sign.
18099         (Using Precompiled Headers): Fix under/overfull hbox.
18100
18101 2007-01-20  Jan Hubicka  <jh@suse.cz>
18102
18103         * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
18104         place within annotation.
18105
18106 2007-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18107
18108         * pa.c (output_move_double): Change array size of xoperands to 4.
18109
18110 2007-01-20  Jan Hubicka  <jh@suse.cz>
18111
18112         * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
18113         as temporary.
18114
18115 2007-01-19  Ian Lance Taylor  <iant@google.com>
18116
18117         * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
18118         constant to unsigned HOST_WIDE_INT before negating.
18119
18120 2007-01-19  Ian Lance Taylor  <iant@google.com>
18121
18122         * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
18123         to unsigned.
18124         (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
18125         (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
18126         (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
18127         (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
18128         (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
18129         (realloc_vdef, realloc_vuse): Change second parameter to
18130         unsigned.
18131         (ssa_operand_iterator_d): Change vuse_index and mayuse_index
18132         fields to unsigned.
18133         * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
18134         unsigned. Change x and lim locals to unsigned.
18135         (realloc_vdef, realloc_vuse): Change num_elem parameter to
18136         unsigned.
18137         (finalize_ssa_vuse_ops): Change old_i local to unsigned.
18138         (copy_virtual_operands): Change i and n locals to unsigned.
18139
18140 2007-01-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18141
18142         PR middle-end/29335
18143         * builtins.c (fold_builtin_1): Handle builtin fdim.
18144
18145 2007-01-20  Jan Hubicka  <jh@suse.cz>
18146
18147         * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
18148         * tree-ssa-structalias.c (compute_points_to_sets): Do call
18149         init_alias_heapvars.
18150         (init_alias_heapvars): Initialize only when not already initialized.
18151         (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
18152
18153 2007-01-19  Roger Sayle  <roger@eyesopen.com>
18154
18155         * common.opt (fsigned-zeros): New command line option.
18156         * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
18157         of flag_unsafe_math_optimizations.
18158         * opts.c (set_fast_math_flags): The -ffast-math command line option
18159         implies -fno-signed-zeros.
18160         (fast_math_flags_set_p): Likewise.
18161
18162         * doc/invoke.texi: Document new -fno-signed-zeros option, and update
18163         the documentation of -ffast-math appropriately.  Wrap long lines.
18164
18165 2007-01-19  Steve Ellcey  <sje@cup.hp.com>
18166
18167         * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
18168         * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
18169
18170 2007-01-19  Tomas Bily  <tbily@suse.cz>
18171
18172         * cgraphunit.c (cgraph_finalize_function): Updating of pid
18173         * tree-profile.c:
18174         (tree_init_ic_make_global_vars): New function
18175         (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
18176         (tree_gen_ic_profiler): New function
18177         (tree_gen_ic_func_profiler): New function
18178         (tree_profiling): Added calling of tree_gen_ic_func_profiler
18179         (tree_profile_hooks): Added hook for indirec/virtual calls
18180         * value-prof.c (tree_find_values_to_profile): New case for
18181         indirect calls
18182         (tree_values_to_profile): Call for determining indirect/virtual
18183         counters
18184         (tree_indirect_call_to_profile): New function
18185         (tree_ic_transform): New function
18186         (tree_ic): New function
18187         (find_func_by_pid): New function
18188         (init_pid_map): New function
18189         (tree_value_profile_transformations): Added check for
18190         indirect/virtual call transformation
18191         * value-prof.h (enum hist_type): New counter type for
18192         indirect/virtual calls
18193         (profile_hooks): Added new hook for profiling indirect/virtual
18194         calls
18195         * profile.c (instrument_values): New case for indirect/virtual
18196         call added
18197         * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
18198         (GCOV_COUNTER_V_INDIR): New counter type
18199         (GCOV_COUNTER_NAMES): New name of counter "indirect" added
18200         (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
18201         call added
18202         * cgraph.c: Definition of cgraph_max_pid
18203         (cgraph_create_node): Default init of pid attribute
18204         * cgraph.h: Declaration of cgraph_max_pid
18205         (struct cgraph_node): Added pid attribute
18206         * libgcov.c (__gcov_indirect_call_profiler): New function
18207         (__gcov_one_value_profiler_body): New function
18208         (__gcov_one_value_profiler): Body was moved to
18209         __gcov_one_value_profiler_body and calls it
18210
18211 2007-01-19  Basile Starynkevitch  <basile@starynkevitch.net>
18212
18213         * doc/gty.texi (Options): Document the mark_hook option to GTY.
18214         * gengtype.c (write_types_data, write_func_for_structure,
18215         write_types, ggc_wtd, pch_wtd): Add skip_hooks to
18216         write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
18217         (walk_type, write_func_for_structure): Generate the mark_hook if
18218         needed.
18219
18220 2007-01-19  Jan Hubicka  <jh@suse.cz>
18221
18222         * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
18223         'early' argument take inlining mode argument specifying whether to
18224         inline for size/speeed or all functions; add support for flattening;
18225         improve dumpting.
18226         (cgraph_early_inlining): Update call of decide_inlining_incrementally.
18227
18228 2007-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
18229
18230         PR c++/17947
18231         * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
18232         the name of the declared identifier.
18233
18234 2007-01-19  Dirk Mueller  <dmueller@suse.de>
18235
18236         * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
18237         result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
18238         duplicate evaluation.
18239
18240 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
18241
18242         * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
18243         Macroize expander using X87MODEF12 mode macro.  Extend operand 1
18244         to XFMode, use acosxf2 and truncate result to requested mode.
18245         Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
18246         (asin<mode>2): Similarly, with asin expanders.
18247         (*fscalexf4_i387): Rename from *fscalexf4.
18248         (expNcorexf3): New expander.
18249         (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
18250         (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
18251         X87MODEF12 mode macro.  Extend operand 1 to XFMode, use expxf2 and
18252         truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
18253         patterns for SSE math.
18254         (exp10<mode>2): Similarly, with exp10 expanders.
18255         (exp2<mode>2): Similarly, with exp2 expanders.
18256         (expm1<mode>2): Similarly, with expm1 expanders.
18257         (ldexp<mode>3): Similarly, with ldexp expanders.
18258         (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
18259         Use gen_truncxf<mode>2_i387_noop to truncate result.
18260
18261 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
18262
18263         * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
18264         for ColdFire targets.
18265
18266 2007-01-19  Nathan Sidwell  <nathan@codesourcery.com>
18267             Richard Sandiford  <richard@codesourcery.com>
18268
18269         * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
18270         (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
18271         (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
18272         * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
18273         (M68K_STATIC_CHAIN_REG_NAME): Likewise.
18274         * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
18275
18276 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
18277
18278         * config/m68k/m68k.md (adddi_dilshr32): Rename to...
18279         (*adddi_dilshr32): ...this.  Fix formatting.  Remove commented-out
18280         non-canonical pattern.  Restrict to !TARGET_COLDFIRE.
18281         (*adddi_dilshr32_cf): New pattern.
18282         (adddi3, subdi3): Remove first alternatives.
18283
18284 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
18285
18286         * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
18287         implemented using move.l, do not use its cc result for floating-point
18288         comparisons.
18289
18290 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
18291
18292         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
18293         from accepting 's' constraints if flag_pic.
18294
18295 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
18296
18297         * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
18298         (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
18299         (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
18300         condition from TARGET_68881 to TARGET_HARD_FLOAT.
18301
18302 2007-01-19  Sandra Loosemore  <sandra@codesourcery.com>
18303
18304         * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
18305         ColdFire alternatives.
18306         * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
18307         * config/m68k/m68k.md (clzsi2):  Define for ColdFire
18308         architectures that support ff1 instruction.
18309
18310 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
18311             Julian Brown  <julian@codesourcery.com>
18312
18313         * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
18314         * config/m68k/m68k.md (*movsi_cfv4): Fold into...
18315         (*movsi_cf): ...here.  Remove unnecessary 'R' from 'Rg'.
18316         Add commentary.
18317
18318 2007-01-19  Richard Sandiford  <richard@codesourcery.com>
18319
18320         * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
18321         and return a bool.
18322         (output_move_const_into_data_reg, output_move_simode_const): Delete.
18323         * config/m68k/m68k.c (const_method, const_int_cost): Take a
18324         HOST_WIDE_INT instead of an rtx.
18325         (m68k_rtx_costs): Update call accordingly.
18326         (output_move_const_into_data_reg): Likewise.  Fix formatting.
18327         (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
18328         Return a bool.
18329         (output_move_simode_const): Update calls after above changes.
18330         Rework to use automatic variables and predicates like MEM_P.
18331         * config/m68k/m68k.md (pushexthisi_const): Update call to
18332         valid_mov3q_const.
18333
18334 2007-01-19  Dirk Mueller  <dmueller@suse.de>
18335
18336         * tree-ssa-alias.c (perform_var_substitution): Fix typo
18337         in dump_flags test.
18338
18339 2007-01-19  Richard Guenther  <rguenther@suse.de>
18340
18341         * builtins.c (expand_builtin_cexpi): Fall back to expanding
18342         via cexp in case sincos is not available.
18343
18344 2007-01-19  Richard Guenther  <rguenther@suse.de>
18345
18346         * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
18347         * defaults.h (TARGET_HAS_SINCOS): Default to off.
18348         * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
18349         * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
18350         * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
18351         * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
18352         * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
18353         * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
18354
18355 2007-01-19  Uros Bizjak  <ubizjak@gmail.com>
18356
18357         * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
18358         New insn patterns.
18359         (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
18360         (atan2xf3): Directly generate RTL pattern.
18361         (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
18362         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
18363         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
18364         disable patterns for SSE math.
18365         (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
18366         patterns using X87MODEF12 mode macro.  Use fpatan_extend<mode>xf3_i387
18367         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
18368         disable patterns for SSE math.
18369
18370 2007-01-19  Alexandre Oliva  <aoliva@redhat.com>
18371
18372         * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
18373
18374 2007-01-18  Roger Sayle  <roger@eyesopen.com>
18375
18376         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
18377         VIEW_CONVERT_EXPR to the same type as it's operand.
18378
18379 2007-01-18  David Edelsohn  <edelsohn@gnu.org>
18380
18381         * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
18382         configured for long double 128.
18383
18384 2007-01-18  Mike Stump  <mrs@apple.com>
18385
18386         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
18387         error.
18388
18389 2007-01-18  Michael Meissner  <michael.meissner@amd.com>
18390
18391         * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
18392         type correct.
18393
18394 2007-01-18  Jan Hubicka  <jh@suse.cz>
18395
18396         * tree-ssa-operands.c (vop_free_bucket_size): Never return value
18397         greater than NUM_VOP_FREE_BUCKETS.
18398
18399 2007-01-18  Daniel Berlin  <dberlin@dberlin.org>
18400
18401         * tree-ssa-structalias.c: Update comments.
18402         (ptabitmap_obstack): Removed.
18403         (pta_obstack): New.
18404         (oldpta_obstack): Ditto.
18405         (stats): Add a few members.
18406         (struct variable_info): Remove node, complex, address_taken, and
18407         indirect_target members. Add oldsolution member.
18408         (new_var_info): Do not initialize removed members.
18409         (constraint_expr_type): Remove INCLUDES.
18410         (constraint_graph): Add size, implicit_preds, rep,
18411         indirect_cycles, eq_rep, label, direct_nodes, and complex members.
18412         (FIRST_REF_NODE): New macro.
18413         (LAST_REF_NODE): Ditto.
18414         (FIRST_ADDR_NODE): Ditto.
18415         (find): New function.
18416         (unite): Ditto.
18417         (dump_constraint): Do not handle INCLUDES.
18418         (insert_into_complex): Do not insert duplicate constraints.
18419         (condense_varmap_nodes): Renamed and rewritten into ...
18420         (merge_node_constraints): This. Also fix bug in handling of
18421         offseted copy constraints.
18422         (clear_edges_for_node): No longer need to deal with preds at all,
18423         or removing associated preds/succs.
18424         (merge_graph_nodes): Deal with indirect_cycles.
18425         Don't deal with predecessors.
18426         (add_implicit_graph_edge): New function.
18427         (add_pred_graph_edge): Ditto.
18428         (add_graph_edge): Don't deal with predecessors.
18429         (build_constraint_graph): Removed.
18430         (build_pred_graph): New function.
18431         (build_succ_graph): Ditto.
18432         (struct scc_info): Removed in_component. Added roots, dfs, and
18433         node_mapping. Remove visited_index, unification_queue.
18434         (scc_visit): Deal with union-find we do now.
18435         Deal with cycles with REF nodes.
18436         (collapse_nodes): Renamed and rewritten to ...
18437         (unify_nodes): This.
18438         (process_unification_queue): Removed.
18439         (topo_visit): Cleanup
18440         (do_da_constraint): Use find.
18441         (do_sd_constraint): Ditto.
18442         (do_ds_constraint): Ditto.
18443         (do_complex_constraint): Ditto.
18444         (init_scc_info): Update for removed and added members.
18445         (find_and_collapse_graph_cycles): Renamed and rewritten into ...
18446         (find_indirect_cycles): This.
18447         (equivalence_class): New variable.
18448         (label_visit): New function.
18449         (perform_variable_substitution): Rewritten.
18450         (free_var_substitution_info): New function.
18451         (find_equivalent_node): Ditto.
18452         (move_complex_constraints): Ditto.
18453         (eliminate_indirect_cycles): Ditto.
18454         (solve_graph): Only propagate changed bits.
18455         Use indirect cycle elimination.
18456         Use find.
18457         (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
18458         (tree_id_eq): Renamed to ...
18459         (tree_vi_eq): This. Update for member change
18460         (insert_id_for_tree): Renamed and rewritten to ...
18461         (insert_vi_for_tree): This.
18462         (lookup_id_for_tree): Renamed and rewritten to ...
18463         (lookup_vi_for_tree): This.
18464         (get_id_for_tree): Renamed and rewritten to ...
18465         (get_vi_for_tree): Ditto.
18466         (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
18467         (process_constraint): Don't handle INCLUDES.
18468         Remove special ADDRESSOF case.
18469         (find_func_aliases): Rewrite to use vi functions instead of id
18470         ones.
18471         (create_function_info_for): Ditto.
18472         (create_variable_info_for): Ditto.
18473         (intra_create_variable_infos): Ditto.
18474         (merge_smts_into): Ditto.
18475         (find_what_p_points_to): Ditto.
18476         (init_base_vars): Ditto.
18477         (init_alias_vars): Ditto.
18478         (remove_preds_and_fake_succs): New function.
18479         (dump_sa_points_to_info): Dump new stats.
18480         (dump_solution_for_var): Use find.
18481         (set_used_smts): Fix formatting.
18482         (compute_points_to_sets): Updated for new functions.
18483         (ipa_pta_execute): Ditto.
18484
18485 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
18486             Richard Sandiford  <richard@codesourcery.com>
18487
18488         * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
18489         parallels.
18490         * calls.c (expand_call): If the return value is a PARALLEL,
18491         extract its first member.
18492         * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
18493         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
18494         use FUNCTION_EXTRA_EPILOGUE.
18495         (m68k_function_value): Return a PARALLEL if the return value
18496         is of a pointer type.
18497         * config/m68k/netbsd-elf.h (current_function_returns_pointer)
18498         (FUNCTION_EXTRA_EPILOGUE): Remove.
18499         * config/m68k/m68k.md (D0_REG): New constant.
18500
18501 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
18502
18503         * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
18504         output a NOP for empty epilogues.
18505
18506 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
18507
18508         * config/m68k/m68k.c (m68k_use_return_insn): Update comments
18509         before function.  Extend register save check to include all
18510         registers, not just integer ones.
18511
18512 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
18513
18514         * config/m68k/m68k-protos.h (use_return_insn): Rename to...
18515         (m68k_use_return_insn): ...this.
18516         * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
18517         * config/m68k/m68k.c (use_return_insn): Rename to...
18518         (m68k_use_return_insn): ...this.
18519         * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
18520         of USE_RETURN_INSN.
18521
18522 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
18523
18524         * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
18525         nearest even, fix denormal rounding overflow.
18526
18527 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
18528
18529         * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
18530         f%$smove and f%$move.
18531         (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
18532         (extendsfdf2_cf): Use fdmove instead of f%&move.
18533         (truncdfsf2_cf): Use fsmove instead of f%$smove.
18534         (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
18535
18536 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
18537
18538         * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
18539         GPR<-GPR moves.
18540
18541 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
18542
18543         * real.h (real_format): Add a canonical_nan_lsbs_set field.
18544         (coldfire_single_format): Declare.
18545         (coldfire_double_format): Likewise.
18546         * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
18547         of qnan_msb_set to determine the lower bits of a canonical
18548         NaN significand.
18549         (encode_ieee_double): Likewise.
18550         (encode_ieee_quad): Likewise.
18551         (ieee_single_format): Initialize canonical_nan_lsbs_set.
18552         (mips_single_format): Likewise.
18553         (ieee_double_format): Likewise.
18554         (mips_double_format): Likewise.
18555         (ieee_extended_motorola_format): Likewise.
18556         (ieee_extended_intel_96_format): Likewise.
18557         (ieee_extended_intel_128_format): Likewise.
18558         (ieee_extended_intel_96_round_53_format): Likewise.
18559         (ibm_extended_format): Likewise.
18560         (mips_extended_format): Likewise.
18561         (ieee_quad_format): Likewise.
18562         (mips_quad_format): Likewise.
18563         (vax_f_format): Likewise.
18564         (vax_d_format): Likewise.
18565         (vax_g_format): Likewise.
18566         (i370_single_format): Likewise.
18567         (i370_double_format): Likewise.
18568         (decimal_single_format): Likewise.
18569         (decimal_double_format): Likewise.
18570         (decimal_quad_format): Likewise.
18571         (c4x_single_format): Likewise.
18572         (c4x_extended_format): Likewise.
18573         (real_internal_format): Likewise.
18574         (coldfire_single_format): New real_format.
18575         (coldfire_double_format): Likewise.
18576         * config/pdp11/pdp11.c (pdp11_f_format): Initialize
18577         canonical_nan_lsbs_set.
18578         (pdp11_d_format): Likewise.
18579         * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
18580         if TARGET_COLDFIRE_CPU.
18581
18582 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
18583
18584         * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
18585         (output_call, m68k_legitimize_call_address): Declare.
18586         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
18587         parenthesees.  Add support for a 'W' constraint.
18588         (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
18589         (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
18590         (m68k_symbolic_call, m68k_symbolic_jump): Declare.
18591         * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
18592         variables.
18593         (override_options): Initialize them.  Do not set flag_no_function_cse
18594         for TARGET_ID_SHARED_LIBRARY.
18595         (m68k_output_pic_call): Delete.
18596         (m68k_legitimize_call_address): New function.
18597         (print_operand): Remove the %o prefix.  Handle the %p prefix.
18598         (output_call): New function.
18599         (m68k_output_mi_thunk): Use m68k_symbolic_jump.  Always load the
18600         target address from the GOT if symbolic jumps are not allowed.
18601         * config/m68k/m68k.md (call, general_operand): Do not set
18602         SYMBOL_REF_FLAG.  Use m68k_legitimize_call_address instead.
18603         Merge separate flag_pic and !flag_pic define_insns into...
18604         (*call, *call_value): ...these new patterns.  Match the address
18605         rather than the containing MEM and require it to be a call_operand.
18606         Use output_call to generate the asm template.
18607         * config/m68k/predicates.md (const_call_operand): New predicate.
18608         (call_operand): Likewise.
18609
18610 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
18611
18612         * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
18613         (STACK_GROWS_DOWNWARD): Define to 1.
18614         (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
18615         comments, emphasizing that these values are only defaults.
18616         * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
18617         * config/m68k/m68k.c (const_method): Remove trailing whitespace.
18618
18619 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
18620
18621         * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
18622
18623 2007-01-18  Kazu Hirata  <kazu@codesourcery.com>
18624             Richard Sandiford  <richard@codesourcery.com>
18625
18626         * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
18627         (FP_REGNO_P): New macros.
18628         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
18629         (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
18630         (EH_RETURN_STACKADJ_RTX): Use A0_REG.
18631         * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
18632
18633 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
18634
18635         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
18636         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
18637         to $tmake_file.
18638         * config/m68k/t-floatlib: New file, extracting common code from...
18639         * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
18640         * config/m68k/t-uclinux: Here.
18641         * config/m68k/fpgnulib.c: Do not compile extendeed precision
18642         routines on ColdFire targets.
18643
18644 2007-01-18  Nathan Sidwell  <nathan@codesourcery.com>
18645
18646         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
18647         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
18648         (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
18649         (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
18650         explicitly set MOTOROLA to 1.
18651         * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
18652
18653 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
18654             Nathan Sidwell  <nathan@codesourcery.com>
18655
18656         * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
18657         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
18658         * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
18659         * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
18660         * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
18661         * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
18662         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
18663         (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
18664         (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
18665         * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
18666         * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
18667         (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
18668         (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
18669         (DBX_REGISTER_NUMBER): Delete.
18670         * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
18671         (PCC_STATIC_STRUCT_RETURN): Don't undefine.
18672         * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
18673
18674 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
18675
18676         * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
18677         * config/flat.h: New file.
18678         * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
18679         OBJECT_FORMAT_FLAT.
18680         * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
18681         indirect references for -msep-data or -mid-shared-library.
18682         Do not use PC-relative code addresses either.
18683         * config/m68k/m68k.c (override_options): Restrict -fPIC error
18684         to -mpcrel.
18685         * config/m68k/uclinux.h (STARTFILE_SPEC): Define.  Use Scrt1.o
18686         for shared libraries and crt1.o for executables.  Use crti.o and
18687         crtbegin.o.
18688         (ENDFILE_SPEC): Use crtend.o and crtn.o.
18689         (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
18690         Do not add -elf2flt or -shared-lib-id options here.
18691         (LINK_SPEC): Define.  Pass -elf2flt if no -elf2flt option is given.
18692         Pass -shared-lib-id if -mid-shared-library, taking the library
18693         identifier from -mshared-library-id if given, otherwise
18694         defaulting to 0.
18695         (EH_FRAME_IN_DATA_SECTION): Do not undefine.
18696         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
18697         (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
18698         and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
18699         (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
18700         * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
18701         and crtend.o.
18702         * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
18703         jump sequence for ISA A and ISA A+.
18704         (PICJUMP): Likewise.
18705
18706 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
18707
18708         * config.gcc (m68k-*-uclinux*): Base the port on the common
18709         and m68k GNU/Linux files rather than on the generic ELF ones.
18710         * config/m68k/uclinux.h (TARGET_VERSION): Override.
18711         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
18712
18713 2007-01-18  Julian Brown  <julian@codesourcery.com>
18714             Richard Sandiford  <richard@codesourcery.com>
18715
18716         * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
18717         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
18718         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
18719         before redefining.
18720         * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
18721         80 unconditionally.
18722         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
18723
18724 2007-01-18  Richard Sandiford  <richard@codesourcery.com>
18725
18726         * doc/install.texi: Document m68k-uclinuxoldabi.
18727         * config.gcc (m68k-*-uclinuxoldabi): New configuration.
18728         * config/m68k/uclinux-oldabi.h: New file, copied from
18729         config/m68k/uclinux.h.
18730
18731 2007-01-18  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18732
18733         * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
18734         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
18735         (m32r_compute_frame_size): Use unsigned for regno.
18736         (m32r_reload_lr): Use gen_frame_mem.
18737         (pop): New.
18738         (m32r_output_function_epilogue): Don't output the function epilogue
18739         textually here.
18740         (m32r_expand_epilogue): New.
18741         (direct_return): Return false if the function has the interrupt
18742         attribute.
18743         (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
18744         * config/m32r/m32r.md (epilogue): New expander.
18745         (return_lr, return_rte): New insns.
18746         (return): Make it expander.
18747         (return_normal): New expander.
18748
18749 2007-01-18  Josh Conner  <jconner@apple.com>
18750
18751         PR target/30485
18752         * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
18753         support for UNLE, UNLT, UNGE, and UNGT.
18754
18755 2007-01-18  Jan Hubicka  <jh@suse.cz>
18756
18757         * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
18758         * tree-tailcall (add_virtual_phis): Likewise.
18759         (optimize_tail_call): Return TODOs.
18760         (execute_tail_calls): Return TODOs.
18761         * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
18762         * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
18763         changed.
18764         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
18765         Cleanup cfg using TODO.
18766         * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
18767         * passes.c (execute_function_todo): When cleanup did something, remove
18768         unused locals.
18769         * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
18770         (make_edges): Don't cleanup_cfg.
18771
18772 2007-01-18  Uros Bizjak  <ubizjak@gmail.com>
18773
18774         * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
18775         UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
18776         operate on the top of stack.
18777         [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
18778         register handling of instructions that output to the second
18779         stack slot.
18780         [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
18781         (move_for_stack_reg): Special-case check for dead destination
18782         stack slot for constant load of 1.0 inside UNSPEC_TAN.
18783
18784         * config/i386/i386.md (UNSPEC_TAN): New constant.
18785         (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
18786         (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
18787         to correctly model move of constant 1.0 to top stack slot.
18788         (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
18789         (unnamed peephole2 pattern): Remove corresponding peephole2
18790         pattern that optimizes tan insn and loading of constant 1.0.
18791         (tanxf2): Use fptanxf4_i387.
18792         (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
18793         patterns using X87MODEF12 mode macro.  Use fptan_extend<mode>xf4_i387
18794         and truncate result to requested mode.  Use SSE_FLOAT_MODE_P to
18795         disable patterns for SSE math.
18796         (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
18797         (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
18798
18799 2007-01-18  Dirk Mueller  <dmueller@suse.de>
18800             Richard Guenther <rguenther@suse.de>
18801
18802         PR diagnostic/8268
18803         * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
18804         * common.opt (Warray-bounds): Add new warning option.
18805         * c-opts.c (c_common_handle_option): Define -Warray-bounds
18806         if -Wall is given.
18807         * Makefile.in: make tree-vrp.o depend on toplev.h
18808         * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
18809         is enabled.
18810         (check_array_refs, check_array_bounds, check_array_ref): New.
18811
18812 2007-01-18  Jan Hubicka  <jh@suse.cz>
18813
18814         * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
18815         (execute_ssa_ccp): Return flags conditionally.
18816         * tree-ssa-propagate.c (substitue_and_fold): Return if something was
18817         changed.
18818         * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
18819
18820 2007-01-18  Steven Bosscher  <steven@gcc.gnu.org>
18821
18822         * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
18823         the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
18824
18825         * Makefile.c (GTFILES): Add cfglayout.h.
18826         * gengtype.c (open_base_files): Likewise.
18827         * cfglayout.c (cfg_layout_function_footer,
18828         cfg_layout_function_header) Reindent to make gengtype happy.
18829         * cfglayout.h (cfg_layout_function_footer,
18830         cfg_layout_function_header): Add GTY(()) marker.
18831
18832         * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
18833
18834 2007-01-18  Ben Elliston  <bje@au.ibm.com>
18835
18836         * genautomata.c (write_automata): Include xstrerror output in the
18837         error message if writing the DFA description file fails.
18838
18839 2007-01-17  H.J. Lu  <hongjiu.lu@intel.com>
18840
18841         * config/mips/mips-protos.h (mips_output_external): Make it
18842         return void.
18843         * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
18844         * config/mips/mips.c (irix_output_external_libcall): Likewise.
18845         (extern_list): Likewise.
18846         (extern_head): Likewise.
18847         (TARGET_ASM_FILE_END): Likewise.
18848         (mips_file_end): Likewise.
18849         (mips_output_external): Rewritten.
18850
18851 2007-01-18  Ben Elliston  <bje@au.ibm.com>
18852
18853         * genpreds.c (write_insn_preds_c): Only write out the function
18854         body for regclass_for_constraint if we have register constraints.
18855
18856 2007-01-17  Tom Tromey  <tromey@redhat.com>
18857
18858         * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
18859         * doc/install.texi (Testing): Use sourceware.org.
18860         (Binaries): Likewise.
18861         (Specific): Likewise.
18862         * doc/contrib.texi (Contributors): Use sourceware.org.
18863
18864 2007-01-17  Anatoly Sokolov <aesok@post.ru>
18865
18866         * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
18867         (AVR_ENHANCED): Rename to ...
18868         (AVR_HAVE_MUL): ... new.
18869         (avr_enhanced_p): Rename to ...
18870         (avr_have_mul_p): ... new.
18871         (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
18872         'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
18873         * config/avr/avr.c (avr_enhanced_p): Rename to ...
18874         (avr_have_mul_p): ... new.
18875         (base_arch_s): Rename 'enhanced' to 'have_mul'.
18876         (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
18877         'avr_enhanced_p' and 'enhanced'.
18878         (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
18879         AVR_HAVE_MUL instead of AVR_ENHANCED.
18880         * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
18881         (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
18882         *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
18883         instead of AVR_ENHANCED.
18884         (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
18885         * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
18886         (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
18887
18888 2007-01-17  Ian Lance Taylor  <iant@google.com>
18889
18890         * vec.h (VEC_reserve_exact): Define.
18891         (vec_gc_p_reserve_exact): Declare.
18892         (vec_gc_o_reserve_exact): Declare.
18893         (vec_heap_p_reserve_exact): Declare.
18894         (vec_heap_o_reserve_exact): Declare.
18895         (VEC_OP (T,A,reserve_exact)): New static inline function, three
18896         versions.
18897         (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
18898         negative parameter.
18899         (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
18900         (VEC_OP (T,A,copy)) [all versions]: Likewise.
18901         (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
18902         * vec.c (calculate_allocation): Add exact parameter.  Change all
18903         callers.
18904         (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
18905         (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
18906         (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
18907         (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
18908         (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
18909         (vec_heap_p_reserve_exact): New function.
18910         (vec_heap_o_reserve_exact): New function.
18911
18912 2007-01-17  Jan Hubicka  <jh@suse.cz>
18913
18914         * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
18915
18916 2007-01-17  Eric Christopher  <echristo@apple.com>
18917
18918         * config.gcc: Support core2 processor.
18919
18920 2007-01-16  Jan Hubicka  <jh@suse.cz>
18921
18922         * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
18923         the names, just unlink the chain so we don't crash on dangling
18924         pointers
18925         to dead SSA names.
18926
18927 2007-01-16  Jan Hubicka  <jh@suse.cz>
18928
18929         * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
18930         * tree-pass.h: Reorder to make IPA passes appear toegher.
18931         (pass_early_inline, pass_inline_parameters, pass_apply_inline):
18932         Declare.
18933         * cgraphunit.c (cgraph_finalize_function): Do not compute inling
18934         parameters, do not call early inliner.
18935         * ipa-inline.c: Update comments.  Include tree-flow.h
18936         (cgraph_decide_inlining): Do not compute inlining parameters.
18937         (cgraph_decide_inlining_incrementally): Return TODOs; assume to
18938         be called with function context set up.
18939         (pass_ipa_inline): Remove unreachable functions before pass.
18940         (cgraph_early_inlining): Simplify assuming to be called from the
18941         PM as local pass.
18942         (pass_early_inline): New pass.
18943         (cgraph_gate_ipa_early_inlining): New gate.
18944         (pass_ipa_early_inline): Turn into simple wrapper.
18945         (compute_inline_parameters): New function.
18946         (gate_inline_passes): New gate.
18947         (pass_inline_parameters): New pass.
18948         (apply_inline): Move here from tree-optimize.c
18949         (pass_apply_inline): New pass.
18950         * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
18951         transforming.
18952         * tree-inline.c (optimize_inline_calls): Return TODOs rather than
18953         doing them by hand.
18954         (tree_function_versioning): Do not allocate dummy struct function.
18955         * tree-inline.h (optimize_inline_calls): Update prototype.
18956         * tree-optimize.c (execute_fixup_cfg): Export.
18957         (pass_fixup_cfg): Remove
18958         (tree_rest_of_compilation): Do not apply inlines.
18959         * tree-flow.h (execute_fixup_cfg): Declare.
18960         * Makefile.in (gt-passes.c): New.
18961         * passes.c: Include gt-passes.h
18962         (init_optimization_passes): New passes.
18963         (nnodes, order): New static vars.
18964         (do_per_function_toporder): New function.
18965         (execute_one_pass): Dump current pass here.
18966         (execute_ipa_pass_list): Don't dump current pass here.
18967
18968 2007-01-16  Janis Johnson  <janis187@us.ibm.com>
18969
18970         * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
18971         (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
18972
18973 2007-01-16  David Edelsohn  <edelsohn@gnu.org>
18974
18975         * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
18976         (strong_alias): Define.
18977         (__gcc_qmul): Provide non-FMA for soft-float.
18978         (__gcc_qdiv): Same.
18979         (__gcc_qneg): New.
18980         (__gcc_qeq): New.
18981         (__gcc_qle): New.
18982         (__gcc_qge): New.
18983         (__gcc_qunord): New.
18984         (__gcc_stoq): New.
18985         (__gcc_dtoq): New.
18986         (__gcc_qtos): New.
18987         (__gcc_qtod): New.
18988         (__gcc_qtoi): New.
18989         (__gcc_qtou): New.
18990         (__gcc_itoq): New.
18991         (__gcc_utoq): New.
18992         (fmsub): New.
18993         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
18994         soft-float functions.
18995         * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
18996         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
18997         about long double soft float.
18998
18999 2007-01-16  Dorit Nuzman  <dorit@il.ibm.com>
19000             Tehila Meyzels  <tehila@il.ibm.com>
19001
19002         * tree-vectorizer.h (is_pattern_stmt_p): New.
19003         * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
19004         formatting (tabs instead of spaces). Cleanup and clarify setting
19005         of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
19006         * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
19007         (vectorizable_type_demotion): Check that types are integral.
19008         (vectorizable_type_promotion): Likewise.
19009         (vectorizable_store): Fix typo.  Eliminate new-line at end of
19010         comments.
19011
19012 2007-01-16  Jan Hubicka  <jh@suse.cz>
19013
19014         * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
19015         cgraph edges too.
19016
19017 2007-01-15  Eric Christopher  <echristo@apple.com>
19018
19019         * ifcvt.c: Include vec.h, vecprim.h.
19020         (check_cond_move_block): New argument regs.
19021         Reorganize. Add registers used to regs.
19022         (cond_move_process_if_block): Use regs set above as
19023         loop bounds.
19024
19025 2007-01-15  Eric Christopher  <echristo@apple.com>
19026
19027         * config/darwin.h: Update copyright.
19028         (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
19029         (LINK_COMMAND_SPEC): Add -u.
19030         (LINK_SPEC): Fix umbrella for above.
19031
19032 2007-01-15  Joseph S. Myers  <joseph@codesourcery.com>
19033
19034         * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
19035         glibc CVS.
19036
19037 2007-01-15  Tom Tromey  <tromey@redhat.com>
19038
19039         * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
19040         * doc/install.texi (Testing): Don't mention jacks.
19041         (Configuration): Document --enable-java-maintainer-mode.  Move
19042         --with-java-home to libgcj-specific section.  Document
19043         --with-ecj-jar.
19044         (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
19045
19046 2007-01-15  Jan Hubicka  <jh@suse.cz>
19047
19048         * tree-ssa-dce.c (DCE_TODOs): New.
19049         (propagate_necessity): Return if something changed.
19050         (eliminate_unnecessary_stmts): Likewise.
19051         (perform_tree_ssa_dce): Return TODO flags when needed.
19052         (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
19053
19054 2007-01-15  Uros Bizjak  <ubizjak@gmail.com>
19055
19056         * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
19057         (fyl2x_extend<mode>xf3_i387): New insn pattern.
19058         (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
19059         patterns using X87MODEF12 mode macro.  Extend operand 1
19060         to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
19061         (log10<mode>2): Ditto.
19062         (log2<mode>2): Ditto.
19063         (log1p<mode>2): Ditto.
19064         (logb<mode>2): Ditto.
19065         (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
19066         (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
19067         (*fxtractxf3_i387): Rename from *fxtractxf3.
19068         (fxtract_extend<mode>xf3_i387): New insn pattern.
19069         (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
19070         * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
19071         and gen_fyl2xxf3_i387().
19072
19073 2007-01-14  Zdenek Dvorak <dvorakz@suse.cz>
19074
19075         * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
19076         * cfgloopmanip.c (fix_loop_placement): Made static.  Use
19077         get_loop_exit_edges.  Changed return type to bool.
19078         * cfgloop.h (fix_loop_placement): Declaration removed.
19079
19080 2007-01-14  Dorit Nuzman  <dorit@il.ibm.com>
19081
19082         * param.h (MIN_VECT_LOOP_BOUND): New.
19083         * params.def (MIN_VECT_LOOP_BOUND): New.
19084         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
19085         argument - minimum threshold for number of iterations.
19086         * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
19087         argument to declaration.
19088         * tree-vect-analyze.c (vect_analyze_operations): Check value of
19089         MIN_VECT_LOOP_BOUND.
19090         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
19091         slpeel_tree_peel_loop_to_edge with additional argument.
19092         (vect_do_peeling_for_alignment): Likewise.
19093         * doc/invoke.texi (min-vect-loop-bound): Document new param option.
19094
19095 2007-01-14  Uros Bizjak  <ubizjak@gmail.com>
19096
19097         PR target/30413
19098         * config/i386/i386.c (print_operand) ['z']: Output 'b' for
19099         operands of size 1.
19100
19101 2007-01-14  Jan Hubicka  <jh@suse.cz>
19102
19103         * tree-dfa.c (remove_referenced_var): New function.
19104         * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
19105         prune referenced vars list too.
19106         * tree-flow.h (remove_referenced_var): Declare.
19107
19108 2007-01-14  Jan Hubicka  <jh@suse.cz>
19109
19110         * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
19111         separately.
19112         (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
19113         (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
19114         * except.h (verify_eh_throw_table_statements): Kill prototype.
19115         * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
19116         into call exrepssions.
19117         * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
19118         eh trhow verifier.
19119         * tree-cfg.c: Include pointer-set.h.
19120         (verify_node_sharing): Work on pointer set.
19121         (verify_eh_throw_stmt_node): New.
19122         (verify_stmts): Use pointers sets, verify throw_stmt.
19123
19124 2007-01-13  Zdenek Dvorak <dvorakz@suse.cz>
19125
19126         * ipa-reference.c (analyze_function): Consider also addresses taken
19127         in phi nodes.
19128
19129 2007-01-12  Roger Sayle  <roger@eyesopen.com>
19130
19131         * c-typeck.c (null_pointer_constant_p): Replace use of
19132         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
19133         (build_c_cast): Likewise.
19134
19135 2007-01-12  Roger Sayle  <roger@eyesopen.com>
19136
19137         * tree.h (force_fit_type_double): Remove unused final argument.
19138         * c-common.c (constant_expression_warning): Replace use of
19139         TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
19140         (convert_and_check): Likewise.
19141         (shorten_compare): Update call to force_fit_type_double.
19142         (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
19143         * convert.c (convert_to_pointer): Update call to
19144         force_fit_type_double.
19145         * fold-const.c (force_fit_type_double): Remove overflowed_const
19146         argument.
19147         (int_const_binop, fold_convert_const_int_from_int,
19148         fold_convert_const_int_from_real, fold_div_compare,
19149         fold_sign_changed_comparison, fold_unary, fold_negate_const,
19150         fold_abs_const, fold_not_const): Remove the final argument from
19151         calls to force_fit_type_double.
19152
19153 2007-01-12  Andrew Pinski  <andrew_pinski@playstation.sony.com>
19154
19155         * configure.ac: Set insn to "nop" for spu-*-* also.
19156         * configure: Regenerate.
19157
19158 2007-01-12  Olga Golovanevsky  <olga@il.ibm.com>
19159
19160         * builtins.def : Add BUILT_IN_FREE.
19161
19162 2007-01-12  Jan Hubicka  <jh@suse.cz>
19163
19164         PR tree-optimization/30443
19165         * tree-inline.c (tree_function_versioning): Do not optimize when
19166         cloning for inlining.
19167
19168 2007-01-12  Zdenek Dvorak <dvorakz@suse.cz>
19169
19170         * doc/loop.texi: Document recording of loop exits.
19171         * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
19172         (update_single_exits_after_duplication,
19173         update_single_exit_for_duplicated_loop,
19174         update_single_exit_for_duplicated_loops): Removed.
19175         (duplicate_loop_to_header_edge): Do not call
19176         update_single_exits_after_duplication and
19177         update_single_exit_for_duplicated_loops.
19178         (loop_version): Do not update single_exit information.
19179         (fix_loop_structure): Use record_loop_exits instead of
19180         mark_single_exit_loops.
19181         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
19182         the lists of loop exits.
19183         * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
19184         split_edge, merge_blocks): Update the lists of loop exits.
19185         * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
19186         loop_optimizer_init.
19187         * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
19188         of mark_single_exit_loops.
19189         (loop_optimizer_finalize): Call release_recorded_exits.
19190         * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
19191         LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
19192         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
19193         update single exit information.
19194         * lambda-code.c (perfect_nestify): Ditto.
19195         * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
19196         (mark_single_exit_loops): Removed.
19197         (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
19198         get_exit_descriptions, rescan_loop_exit, record_loop_exits,
19199         dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
19200         functions.
19201         (get_loop_exit_edges, single_exit): Use recorded exit lists.
19202         (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
19203         (verify_loop_structure): Verify consistency of the exit lists.
19204         (flow_loops_find): Use alloc_loop.  Initialize exits hash.
19205         (set_single_exit): Removed.
19206         * cfgloop.h (struct loop_exit): New function.
19207         (struct loop): single_exit_ field replaced by exits field.
19208         (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by
19209         LOOPS_HAVE_RECORDED_EXITS.
19210         (struct loops): Added exits hash.
19211         (mark_single_exit_loops, set_single_exit): Declaration removed.
19212         (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
19213
19214 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
19215
19216         * doc/invoke.texi: Avoid use of @headitem.
19217
19218 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
19219
19220         * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
19221
19222 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
19223
19224         * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
19225         list of targets.
19226
19227 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
19228             Richard Sandiford  <richard@codesourcery.com>
19229
19230         * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
19231         * config/m68k/m68k.opt: Resort options.
19232         (mbitfield, mrtd, mshort): Remove RejectNegative properties.
19233
19234 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
19235             Richard Sandiford  <richard@codesourcery.com>
19236
19237         * doc/invoke.texi: Document the macros that are defined by
19238         m68k's -mtune and -mhard-float options.
19239         * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
19240         (m68k_cpp_cpu_family): Likewise.
19241         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
19242         of __ucfv*__ macros.  Define __mcffpu__ if generating code for
19243         ColdFire FPUs.  Define __mcf_cpu_* and __mcf_family_* macros.
19244         * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
19245         (m68k_cpp_cpu_family): Likewise.
19246
19247 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
19248
19249         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
19250         macros besides mc68000 as tuning macros.  Use a switch statement
19251         to set them and mcpu32.
19252
19253 2007-01-12  Julian Brown  <julian@codesourcery.com>
19254
19255         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
19256         (TARGET_68040_ONLY): Rename to...
19257         (TARGET_68040): ...this.
19258         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
19259         * config/m68k/m68k.md: Likewise.
19260
19261 2007-01-12  Julian Brown  <julian@codesourcery.com>
19262             Nathan Sidwell  <nathan@codesourcery.com>
19263             Richard Sandiford  <richard@codesourcery.com>
19264
19265         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
19266         the -mcpu= argument associated with the --with-cpu setting.
19267         Define M68K_DEFAULT_TUNE to the default -mtune= option,
19268         if different from the one implied by the -mcpu setting.
19269         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
19270         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
19271         * doc/invoke.texi: Mention ColdFire in the introduction to the
19272         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
19273         -mno-div and -mhard-float options.  Make -m68881 a synonym for
19274         -mhard-float.  Document the previously-undocumented -m5206e,
19275         -m528x, -m5307 and -m5407 options.  Tweak the existing option
19276         documentation for consistency.
19277         * doc/install.texi: Mention new --with-cpu arguments.
19278         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
19279         default CPU if neither -mcpu nor -march are specified.
19280         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
19281         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
19282         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
19283         using m68k_tune to decide between families that implement the
19284         same ISA.  Use m68k_tune to set __mcfv4e__.
19285         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
19286         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
19287         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
19288         (FL_ISA_C, FL_ISA_MMU): New macros.
19289         (MASK_COLDFIRE): Delete.
19290         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
19291         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
19292         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
19293         (TARGET_HARD_FLOAT): Do not define here.
19294         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
19295         (TUNE_68000): New macro.
19296         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
19297         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
19298         (TUNE_CFV2): Redefine in terms of m68k_tune.
19299         (uarch_type, target_device, fpu_type): New enums.
19300         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
19301         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
19302         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
19303         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
19304         (FL_FOR_isa_c): New macros.
19305         (m68k_isa): New enum.
19306         (m68k_target_selection): New structure.
19307         (all_devices, all_isas, all_microarchs): New tables.
19308         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
19309         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
19310         (MASK_ALL_CPU_BITS): Delete.
19311         (m68k_find_selection): New function.
19312         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
19313         Map the legacy target options to a combination of the new ones.
19314         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
19315         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
19316         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
19317         settings.
19318         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
19319         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
19320         properties.
19321         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
19322         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
19323         * config/m68k/m68k-devices.def: New file.
19324
19325 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
19326             Nathan Sidwell  <nathan@codesourcery.com>
19327
19328         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
19329         (SUBTARGET_EXTRA_SPECS): New macros.
19330         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
19331         use %(asm_cpu_spec) instead.
19332         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
19333         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
19334         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
19335         (EXTRA_SPECS): Rename to...
19336         (SUBTARGET_EXTRA_SPECS): ...this.
19337
19338 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
19339             Richard Sandiford  <richard@codesourcery.com>
19340             Julian Brown  <julian@codesourcery.com>
19341
19342         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
19343         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
19344         to the configuration's default CPU.
19345         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
19346         Remove default masks.
19347         (m680[012]0-*-*): Set the default with_cpu to the first part of
19348         the target name.
19349         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
19350         (m68k*-*-linux): Extend the --with-cpu handling to...
19351         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
19352         and m68010.  Don't set target_cpu_default2.
19353         * doc/install.texi: Document --with-cpu for m68k.
19354         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
19355         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
19356         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
19357         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
19358         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
19359         (ASM_SPEC): Remove use of %(asm_cpu_default).
19360         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
19361         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
19362         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
19363         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
19364         __HAVE_FPU__ if TARGET_HARD_FLOAT.
19365         (TARGET_DEFAULT): Delete.
19366         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
19367         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
19368         (CPP_CPU_SPEC): Delete.
19369         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
19370         the appropriate string.
19371         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
19372         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
19373         (ASM_SPEC): Don't use %(asm_default_spec).
19374         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
19375         TARGET_DEFAULT and add MASK_68881.
19376         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
19377
19378 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
19379
19380         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
19381         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
19382         MASK_68010 alongside MASK_68020.
19383         * doc/invoke.texi: Document -m68010.
19384         * config/m68k/m68k.opt (m68010): New.
19385         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
19386         if TUNE_68010.
19387         (TUNE_68010): New macro.
19388         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
19389         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
19390         (M68K_CPU_m68332): Add MASK_68010.
19391         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
19392         fallback definition.
19393         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
19394         defines.
19395         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
19396         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
19397         to all entries that use MASK_68020.
19398         (output_move_simode_const, output_move_himode, output_move_qimode)
19399         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
19400         instead of TARGET_68020 to select clr behavior.  Remove comment
19401         about there being no TARGET_68010.
19402         * config/m68k/m68k.md: Likewise throughout.
19403
19404 2007-01-12  Julian Brown  <julian@codesourcery.com>
19405
19406         * config/m68k/m68k.h (TARGET_ISAB): New macro.
19407         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
19408         * config/m68k/m68k.md: Likewise.
19409
19410 2007-01-12  Julian Brown  <julian@codesourcery.com>
19411
19412         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
19413         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
19414
19415 2007-01-12  Julian Brown  <julian@codesourcery.com>
19416
19417         * config/m68k/m68k.h (TUNE_68040_60): New macro.
19418         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
19419         * config/m68k/m68k.md: Likewise.
19420
19421 2007-01-12  Julian Brown  <julian@codesourcery.com>
19422             Richard Sandiford  <richard@codesourcery.com>
19423
19424         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
19425         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
19426         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
19427         TARGET_CPU32.
19428         (TARGET_CPU32): Rename to...
19429         (TUNE_CPU32): ...this.
19430         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
19431         (TUNE_CFV2): New macros.
19432         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
19433         remove conditions that are implied by TARGET_68020.
19434         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
19435         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
19436         (m68k_output_function_epilogue): Likewise.
19437         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
19438         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
19439         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
19440         non-68000 timings.  Refactor multiplication and division costs.
19441         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
19442         TUNE_CPU32 instead of TARGET_CPU32.
19443         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
19444         and TUNE_68060 instead of TARGET_68060.
19445         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
19446         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
19447         TARGET_CPU32.
19448         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
19449         && !TARGET_COLDFIRE" to choose between moveq and clr.
19450         Likewise in the unnamed movsf pattern.
19451         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
19452         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
19453         ashiftrt pattern.
19454
19455 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
19456
19457         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
19458         of tabbing before backslashes.
19459
19460 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19461
19462         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
19463         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
19464         (ASM_OUTPUT_INTERNAL_LABEL): Define.
19465
19466 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
19467
19468         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
19469         find_interesting_uses_cond.
19470         (find_interesting_uses_cond): Use extract_cond_operands.
19471         (rewrite_use_compare): Use extract_cond_operands and
19472         force_gimple_operand_bsi.  Do not call update_stmt.
19473         (determine_use_iv_cost_condition): Use extract_cond_operands.
19474         Return cheaper of using original bound and changing the exit bound.
19475
19476 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
19477
19478         PR tree-optimization/29516
19479         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
19480         most_expensive_mult_to_index, addr_to_parts,
19481         create_mem_ref, maybe_fold_tmr): Make the type of
19482         fields of TARGET_MEM_REF sizetype.
19483         (move_fixed_address_to_symbol, move_pointer_to_base):
19484         New functions.
19485         * tree.def (TARGET_MEM_REF): Add comment on types of
19486         the operands.
19487
19488 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
19489
19490         * c-common.c (vector_types_convertible_p): Treat opaque types as
19491         always convertible if they have the same size, but not otherwise.
19492
19493 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
19494
19495         * ifcvt.c (struct noce_if_info): Add comments to the fields.
19496         Remove the b_unconditional field.
19497         (noce_try_sign_mask): Do not look at b_unconditional.
19498         (noce_process_if_block): Do not use merge_if_blocks.  Update
19499         the CFG here.  Do not set b_unconditional.
19500         (cond_move_process_if_block): Likewise.
19501         (find_cond_trap): Likewise.
19502         (check_cond_move_block): Require simple jump insns at the end
19503         of the basic block.
19504
19505 2007-01-11  Jan Hubicka  <jh@suse.cz>
19506
19507         PR tree-optimization/1046
19508         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
19509         when alias info is not ready.
19510         (pass_tail_recursion): Do not require aliasing.
19511         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
19512         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
19513         * tree-ssa-copy.c (pass_copy_prop): Likewise.
19514         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
19515         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
19516         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
19517         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
19518         before inlining.
19519         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
19520         When aliasing is not build, mark statement as volatile.
19521
19522 2007-01-11  Tom Tromey  <tromey@redhat.com>
19523
19524         PR preprocessor/15185, PR preprocessor/20989:
19525         * doc/cppopts.texi <-MT>: Update description of algorithm for
19526         computing default target.
19527         <-M, -MD>: Reword "basename" text.
19528
19529 2007-01-11  Roger Sayle  <roger@eyesopen.com>
19530
19531         * builtins.c (expand_builtin_pow, expand_builtin_powi,
19532         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
19533         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
19534         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
19535         fold_builtin_bswap, real_constp, fold_builtin_pow,
19536         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
19537         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
19538         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
19539         * convert.c (convert_to_pointer): Likewise.
19540         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
19541         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
19542         const_binop, fold_convert_const_int_from_int,
19543         fold_convert_const_int_from_real,
19544         fold_convert_const_real_from_real, sign_bit_p,
19545         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
19546         fold_sign_changed_comparison, fold_unary, fold_comparison,
19547         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
19548         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
19549         * print-tree.c (print_node_brief, print_node): Likewise.
19550         * stor-layout.c (place_field, layout_type): Likewise.
19551         * tree-chrec.c (keep_cast): Likewise.
19552         * tree.c (build_vector, build_real, build_real_from_int_cst,
19553         build_complex): Likewise.
19554
19555 2007-01-11  Roger Sayle  <roger@eyesopen.com>
19556
19557         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
19558         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
19559
19560 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
19561
19562         * configure.ac (strict1_warn): Rename to strict_warn.
19563         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
19564         cc_set_by_configure, quoted_cc_set_by_configure,
19565         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
19566         all_boot_languages, all_stagestuff): Remove.
19567         (target_list): Remove bootstrap targets.
19568         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
19569         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
19570         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
19571         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
19572         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
19573         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
19574         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
19575         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
19576         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
19577         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
19578         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
19579         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
19580         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
19581         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
19582         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
19583         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
19584         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
19585         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
19586         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
19587         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
19588         (mostlyclean): Adjust.
19589         (clean, distclean): Don't mention bootstrap stuff.
19590         * configure: Regenerate.
19591         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
19592         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
19593         treelang/config-lang.in (stagestuff): Remove.
19594         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
19595         stageprofile, stagefeedback, stagestuff): Remove mention.
19596
19597 2007-01-11  Nick Clifton  <nickc@redhat.com>
19598
19599         * config/mcore/predicates.md (mcore_general_movesrc_operand):
19600         Accept CONSTs.
19601         (mcore_general_movdst_operand): Do not accept CONST_INTs.
19602         (mcore_arith_K_S_operand): Run the test for the S constraint not
19603         the test for the M constraint.
19604         (mcore_addsub_operand): Do not accept integer values that are
19605         larger than 32 bits.
19606         * config/mcore/mcore.md: Remove unused constraints from split.
19607         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
19608         (addsi3): Likewise.
19609         (allocate_stack): Likewise.
19610         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
19611         operands to 32 bits.
19612         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
19613         INTVAL.
19614         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
19615         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
19616         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
19617         mcore_output_bclri, mcore_output_andn, output_inline_const,
19618         mcore_output_move, mcore_output_movedouble): Likewise.
19619         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
19620         (output_inline_const): Likewise.
19621         (output_inline_const): Fix format strings used in sprintf
19622         statements.
19623         * config/mcore/mcore-protos.h: Update prototypes for changed
19624         functions in mcore.c.
19625         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
19626         HOST_WIDE_INT and not int.
19627         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
19628         CONST_OK_FOR_N): Likewise.
19629         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
19630         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
19631         an INTVAL.
19632
19633 2007-01-10  Jan Hubicka  <jh@suse.cz>
19634
19635         * tree-vrp.c (remove_range_assertions): Release defs.
19636         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
19637         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
19638
19639 2007-01-10  Paul Brook  <paul@codesourcery.com>
19640
19641         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
19642         * config/arm/arm.md (mulsi3subsi): New insn.
19643
19644 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
19645
19646         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
19647         (tree_transform_and_unroll_loop): New.
19648         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
19649         Declare.
19650
19651 2007-01-10  Robert Kennedy <jimbob@google.com>
19652
19653         * fold-const.c (fold_comparison): Fold comparisons like (x *
19654         1000 < 0) to (x < 0).
19655
19656 2007-01-10  Ian Lance Taylor  <iant@google.com>
19657
19658         * tree-pretty-print.c (dump_generic_node): Print parentheses when
19659         operands have the same priority.
19660
19661 2007-01-10  Tom Tromey  <tromey@redhat.com>
19662
19663         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
19664         (fold_binary): Likewise.
19665         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
19666         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
19667         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
19668         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
19669         * langhooks.h (struct lang_hooks): Removed field
19670         'can_use_bit_fields_p'.
19671
19672 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
19673
19674         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
19675
19676 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
19677
19678         * function.c (get_last_funcdef_no): New function.
19679         * function.h (get_last_funcdef_no): Declare.
19680         * tree-inline.c (initialize_cfun): Add initialization.
19681         (tree_function_versioning): Cleanup.
19682
19683 2007-01-10  Jan Hubicka  <jh@suse.cz>
19684
19685         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
19686         PHIs.
19687
19688 2007-01-10  Sa Liu  <saliu@de.ibm.com>
19689             Ben Elliston  <bje@au.ibm.com>
19690
19691         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
19692         for SAVE_NONLOCAL and Pmode for any other save level.
19693         * spu-protos.h (spu_restore_stack_block): Declare.
19694         * spu.md (save_stack_block): Remove.
19695         (restore_stack_block): Call spu_restore_stack_block.
19696         * spu.c (spu_restore_stack_block): New function.
19697         (spu_expand_epilogue): Remove old comment.
19698
19699 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
19700
19701         PR tree-optimization/30322
19702         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
19703         (cand_value_at): Return the value as aff_tree.
19704         (may_eliminate_iv): Convert the bound from aff_tree to tree.
19705         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
19706         aff_combination_mult): New functions.
19707         (aff_combination_add): Use aff_combination_add_cst.
19708         (aff_combination_convert): Allow conversions to a wider type.
19709         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
19710         * tree-affine.h (aff_combination_mult): Declare.
19711
19712 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
19713
19714         * doc/tm.texi: Update documentation to reflect reality of exec
19715         and start file search behaviours. Update copyright year.
19716         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
19717         header file directories.
19718
19719 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
19720
19721         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
19722         (*cosxf2): Rename to cosxf2_i387.
19723         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
19724         using X87MODEF12 mode macro. Rename patterns to
19725         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
19726         for SSE math.
19727         (*cosdf2, *cossf2): Ditto.
19728         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
19729         to match extended input operands.
19730         (sincos<mode>3): New expander.
19731         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
19732         insn patterns and corresponding splitters.
19733
19734 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
19735
19736         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
19737         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
19738
19739 2007-01-09  Nicolas Pitre  <nico@cam.org>
19740
19741         PR target/30173
19742         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
19743
19744 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
19745
19746         * target.h (struct gcc_target): New field library_rtti_comdat.
19747         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
19748         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
19749         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
19750         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
19751
19752 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
19753
19754         * doc/invoke.texi (Optimize Options): Correct description of -O0.
19755
19756 2007-01-08  Richard Guenther  <rguenther@suse.de>
19757
19758         * tree.h (force_fit_type_double): Export.
19759         (force_fit_type): Remove.
19760         * fold-const.c (force_fit_type_double): New function.
19761         (force_fit_type): Remove.
19762         (int_const_binop): Use it.
19763         (fold_convert_const_int_from_int): Likewise.
19764         (fold_convert_const_int_from_real): Likewise.
19765         (fold_div_compare): Likewise.
19766         (fold_sign_changed_comparison): Likewise.
19767         (fold_unary): Likewise.
19768         (fold_negate_const): Likewise.
19769         (fold_abs_const): Likewise.
19770         (fold_not_const): Likewise.
19771         * c-common.c (shorten_compare): Use force_fit_type_double.
19772         * convert.c (convert_to_pointer): Likewise.
19773
19774 2007-01-08  Richard Guenther  <rguenther@suse.de>
19775
19776         * tree.h (build_int_cst_wide_type): Export.
19777         * tree.c (build_int_cst_wide_type): New function.
19778         (build_int_cst_wide): Fix comment.
19779         * builtins.c (fold_builtin_object_size): Use build_int_cst
19780         to build -1 or 0 of the correct type.  Use fit_double_type
19781         to check for overflow.
19782         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
19783         to build the mask.
19784         (decode_field_reference): Likewise.
19785         (all_ones_mask_p): Likewise.
19786         (native_interpret_int): Use build_int_cst_wide_type.
19787         (fold_binary): Use build_int_cst_type to build an all-ones
19788         value.
19789         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
19790
19791 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
19792
19793         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
19794
19795 2007-01-09  Ben Elliston  <bje@au.ibm.com>
19796
19797         * genautomata.c (STATS_OPTION): New option.
19798         (stats_flag): New flag.
19799         (gen_automata_option): Handle it.
19800         (initiate_automaton_gen): Ditto.
19801         (write_automata): Output statistics only if stats_flag is
19802         set. Likewise, output time statistics only if time_flag is set.
19803         * doc/md.texi (Processor pipeline description): Document new flag.
19804
19805 2007-01-08  Richard Guenther  <rguenther@suse.de>
19806
19807         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
19808         * tree.c (build_int_cst_type): Likewise.
19809         (size_in_bytes): Don't call force_fit_type on the result.
19810         (int_fits_type_p): Use fit_double_type.
19811         * fold-const.c (fit_double_type): New function.
19812         (force_fit_type): Use it.
19813         * tree.h (fit_double_type): Export.
19814
19815 2007-01-08  Jan Hubicka  <jh@suse.cz>
19816
19817         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
19818         * ipa.c (function_and_variable_visibility): Fix return type.
19819
19820 2007-01-08  Richard Guenther  <rguenther@suse.de>
19821
19822         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
19823         of offset to build the index.
19824         * tree-pretty-print.c (dump_generic_node): Don't build negated
19825         const just for printing.
19826         * c-pretty-print.c (pp_c_integer_constant): Likewise.
19827         * builtins.c (fold_builtin_int_roundingfn): Check if result
19828         fits the type by using force_fit_type and comparing the result.
19829         * predict.c (predict_loops): Use compare_tree_int for comparison.
19830         * tree.c (build_int_cst): Fall back to integer_type_node for
19831         NULL_TREE type.
19832         (build_int_cst_wide): Assert type is non-null.
19833
19834 2007-01-08  Roberto Costa  <roberto.costa@st.com>
19835
19836         * tree-vrp.c (extract_range_from_cond_expr): New.
19837         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
19838         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
19839         as expressions.
19840         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
19841         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
19842         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
19843         used as expressions.
19844         * tree-object-size.c (cond_expr_object_size): New.
19845         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
19846
19847 2007-01-08  Jan Hubicka  <jh@suse.cz>
19848
19849         * tree-ssa-forwprop.c (forward_propagate_into_cond,
19850         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
19851         statement.
19852
19853 2007-01-08  Richard Guenther  <rguenther@suse.de>
19854
19855         PR tree-optimization/23603
19856         * tree-vrp.c (set_value_range_to_truthvalue): New function.
19857         (extract_range_from_binary): Fall back to truthvalue instead of
19858         varying for TRUTH_*_EXPR.
19859         (extract_range_from_comparison): Fall back to truthvalue instead of
19860         varying.
19861         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
19862         if all visited PHI values were constant.
19863
19864 2007-01-08  Jan Hubicka  <jh@suse.cz>
19865
19866         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
19867         (cgraph_analyze_function): break out from ...
19868         (cgraph_finalize_compilation_unit): ... here.
19869         (cgraph_expand_function): Remove forgoten commented out line.
19870         (cgraph_optimize): Analyze functions.
19871
19872 2007-01-08  Jan Hubicka  <jh@suse.cz>
19873
19874         * tree-pas.h (TODO_remove_function): New flag.
19875         (TODO_update*): Renumber.
19876         (pass_ipa_increase_alignment,
19877         pass_ipa_function_and_variable_visibility): New passes.
19878         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
19879         (cgraph_function_and_variable_visibility): Move to ipa.c
19880         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
19881         cgraph_increase_alignment.
19882         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
19883         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
19884         calling tree-inline.
19885         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
19886         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
19887         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
19888         (gate_increase_alignment): New function.
19889         (pass_ipa_increase_alignment): New pass.
19890         * ipa.c: Inline tree-pass.h and timevar.h
19891         (function_and_variable_visibility): Move here from cgraphunit.c
19892         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
19893         * passes.c (init_optimization_passes): Add the two new passes.
19894         (execute_todo): Handle cgraph_remove_functions.
19895
19896 2007-01-08  Nick Clifton  <nickc@redhat.com>
19897
19898         * config/frv/predicates.md (reg_or_0_operand): Accept
19899         CONST_DOUBLEs.
19900
19901 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
19902
19903         * config/bfin/rtems.h, config/bfin/t-rtems: New.
19904         * config.gcc: Add bfin*-rtems*.
19905
19906 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
19907
19908         * c.opt: Add -flax-vector-conversions.
19909         * c-typeck.c (convert_for_assignment): Pass flag to
19910         vector_types_convertible_p to allow emission of note.
19911         (digest_init): Likewise.
19912         * c-opts.c: Handle -flax-vector-conversions.
19913         * c-common.c (flag_lax_vector_conversions): New.
19914         (vector_types_convertible_p): Unless -flax-vector conversions
19915         has been passed, disallow conversions between vectors with
19916         differing numbers of subparts and/or element types.  If such
19917         a conversion is disallowed, possibly emit a note on the first
19918         occasion only to inform the user of -flax-vector-conversions.
19919         The new last argument specifies this.
19920         * c-common.h (flag_lax_vector_conversions): New.
19921         (vector_types_convertible_p): Add extra argument.
19922         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
19923         char_type_node for V*QI type vectors.
19924         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
19925         Update to satisfy new typechecking rules.
19926         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
19927         C and C++ variants.
19928         * doc/invoke.texi (C Dialect Options): Document
19929         -flax-vector-conversions.
19930
19931 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
19932
19933         PR tree-optimization/29877
19934         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
19935         a register variable on the RHS to not be replaceable.
19936
19937 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
19938         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
19939         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
19940         const_simm15, const_pow2, const_npow2): Added.
19941         * config/score/misc.md (insv, extv, extzv, movmemsi,
19942         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
19943         * config/score/score.c (score_address_cost, score_select_cc_mode):
19944         Added.
19945         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
19946         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
19947         Update score_print_operand.
19948         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
19949         Adjust register allocate order and update some macro define.
19950         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
19951         mdx_block_move_straight, mdx_block_move_loop_head,
19952         mdx_block_move_loop_body, mdx_block_move_loop_foot,
19953         mdx_block_move_loop, mdx_block_move): Added.
19954         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
19955         mdp_limm): Updated and fix some bug and typo.
19956         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
19957         (movsf, movdf, doloop_end): Added.
19958
19959 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
19960
19961         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
19962         config/arm/thumb2.md: Fix comment typos.
19963         * doc/extend.texi: Fix a typo.
19964
19965 2007-01-07  Eric Christopher  <echristo@apple.com>
19966
19967         * configure.ac: Check for __stack_chk_fail for darwin.
19968         * configure: Regenerate.
19969
19970 2007-01-07  Richard Guenther  <rguenther@suse.de>
19971
19972         * tree-vrp.c (extract_range_from_assert): CSE calls to
19973         compare_values where possible.
19974         (extract_range_from_unary_expr): Likewise.
19975
19976 2007-01-07  Anatoly Sokolov <aesok@post.ru>
19977
19978         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
19979         * config/avr/avr.c (call_insn_operand): Delete function.
19980         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
19981         instead of register number. Use predicates.
19982         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
19983         call_insn_operand): Add.
19984
19985 2007-01-06  Jan Hubicka  <jh@suse.cz>
19986
19987         * tree-pass.h (pass_build_cgraph_edges): Declare.
19988         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
19989         (visited_nodes): Remove.
19990         (cgraph_create_edges): Move to cgraphbuild.c; rename to
19991         build_cgrpah_edges; make visited_nodes local.
19992         (cgraph_process_new_functions): DO not call initialize_inline_failed.
19993         (record_references_in_initializer): Move to cgraphbuild.c
19994         (initialize_inline_failed, rebuild_cgraph_edges,
19995         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
19996         (verify_cgraph_node): Make visited_nodes local.
19997         (cgraph_analyze_function): Do not call cgraph_create_edges and
19998         initialize_inline_failed.
19999         (cgraph_expand_function): Do not call cgraph_lower_function;
20000         assert that function is already lowered.
20001         * Makefile.in (cgraphbuild.o): New.
20002         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
20003         at the end of lowering passes.
20004
20005 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
20006
20007         * ifcvt.c (cond_move_convert_if_block): New function, code
20008         factored out from...
20009         (cond_move_process_if_block): ...here.  Call the new function
20010         on the THEN and ELSE blocks.
20011         (merge_if_block): Do not copy global_live_at_end, merge_blocks
20012         already takes care of this.
20013
20014 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20015
20016         PR c/19978
20017         * tree.h (TREE_OVERFLOW_P): New.
20018         * c-typeck.c (parser_build_unary_op): Warn only if result
20019         overflowed and operands did not.
20020         (parser_build_binary_op): Likewise.
20021         (convert_for_assignment): Remove redundant overflow_warning.
20022         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
20023
20024 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20025
20026         * c-typeck.c (store_init_value): Split over two lines to follow
20027         the GNU coding style.
20028
20029 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
20030
20031         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
20032         __GXX_EXPERIMENTAL_CXX0X__.
20033         * doc/cpp.texi: Same.
20034
20035 2007-01-05  Richard Guenther  <rguenther@suse.de>
20036
20037         PR middle-end/27826
20038         * tree.c (get_narrower): Do not construct COMPONENT_REFs
20039         with mismatched types.  Instead explicitly build a
20040         conversion NOP_EXPR.
20041
20042 2007-01-05  Ian Lance Taylor  <iant@google.com>
20043
20044         * c-common.c (decl_with_nonnull_addr_p): New function.
20045         (c_common_truthvalue_conversion): Call it.
20046         * c-typeck.c (build_binary_op): Likewise.
20047         * c-common.h (decl_with_nonnull_addr_p): Declare.
20048
20049 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
20050
20051         PR c/30360
20052         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
20053         denom against 0.0.
20054
20055 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
20056
20057         * doc/install.texi (Final install): Document the fact that
20058         the GNAT runtime should not be stripped.
20059
20060 2007-01-04  Jan Hubicka  <jh@suse.cz>
20061
20062         * tree-inline.c (fold_marked_statements): Update operand caches
20063         and EH after folding
20064
20065 2007-01-04  Ian Lance Taylor  <iant@google.com>
20066
20067         * c-common.c (check_function_nonnull): Whitespace fix.
20068
20069 2007-01-04  Jan Hubicka  <jh@suse.cz>
20070
20071         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
20072         comitted older version of patch.
20073         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
20074         function, celanup cfg and collect garbage.
20075
20076 2007-01-04  Mike Stump  <mrs@apple.com>
20077
20078         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
20079         (clean): Likewise.
20080
20081 2007-01-04  Eric Christopher  <echristo@apple.com>
20082
20083         * libgcc2.c (__bswapsi2): Use SItype.
20084         (__bswapdi2): Use DItype.
20085         * libgcc2.h: Update for above.
20086
20087 2007-01-04  Paul Brook  <paul@codesourcery.com>
20088
20089         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
20090         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
20091         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
20092         umulsidi3, umulsidi3adddi, smulsi3_highpart,
20093         umulsi3_highpart): Make conditional on !arm_arch6.
20094         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
20095         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
20096         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
20097         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
20098         umulsi3_highpart_v6): New insns.
20099
20100 2007-01-04  Roger Sayle  <roger@eyesopen.com>
20101
20102         * fold-const.c (fold_convert): When casting an expression to void,
20103         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
20104         have a type.  Instead of attempting to build a NOP_EXPR, return
20105         these "special" trees directly.
20106
20107 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
20108
20109         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
20110         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
20111         rs6000_cost->fp not 0 as adjustment for outer NEG.
20112
20113 2007-01-04  Jan Hubicka  <jh@suse.cz>
20114
20115         * cgraph.c (cgraph_release_function_body): New function.
20116         (cgraph_remove_node): Use it.
20117         * cgraph.h (cgraph_release_function_body): Declare.
20118         * cgraphunit.c (cgraph_expand_function): Use it.
20119         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
20120         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
20121         is initialized and while compilation of other function is running.
20122         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
20123         statement CFG annotations from here to ...
20124         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
20125
20126 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
20127
20128         * cfgloop.h (enum li_flags): Make the constants powers of two.
20129
20130 2007-01-04  Jan Hubicka  <jh@suse.cz>
20131
20132         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
20133         set.
20134         (fold_marked_statements): New function.
20135         (optimize_inline_calls, tree_function_versioning): Fold new statements.
20136         * tree-inline.h (copy_body_data): Add statements_to_fold.
20137
20138 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
20139
20140         * config.gcc: Mention libgcc/config.host.
20141         * Makefile.in: Update comments mentioning libgcc.
20142         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
20143         (all.cross, start.encap, rest.encap, rest.cross): Update
20144         dependencies for libgcc move.
20145         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
20146         (clean-target, clean-target-libgcc): Delete.
20147         (srcdirify, GCC_EXTRA_PARTS): New macros.
20148         (libgcc-support, libgcc.mvars): New rules.
20149         (distclean): Remove mention of mklibgcc.
20150         (install): Don't reference INSTALL_LIBGCC.
20151         (install-common): Don't reference EXTRA_PARTS.
20152         (install-libgcc, install-multilib): Delete rules.
20153         * mklibgcc.in: Delete file.
20154         * doc/configfiles.texi: Don't mention mklibgcc.
20155
20156         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
20157         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
20158         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
20159         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
20160         (mklibgcc, ldblspecs): Likewise.
20161
20162         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
20163         (posixpre.def): Use $(T).
20164         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
20165         (SHLIB_SRC, SHLIB_INSTALL): Delete.
20166         (SHLIB_LINK): Make dummy.
20167         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
20168
20169         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
20170
20171         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
20172         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
20173         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
20174         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
20175
20176         * configure.ac (all_outputs): Remove mklibgcc.
20177         * configure: Regenerated.
20178
20179 2007-01-03  Josh Conner  <jconner@apple.com>
20180
20181         PR middle-end/29683
20182         * calls.c (compute_argument_addresses): Set stack and stack_slot
20183         for partial args, too.
20184         (store_one_arg): Use locate.size.constant for the size when
20185         generating a save_area.
20186
20187 2007-01-03  Robert Kennedy <jimbob@google.com>
20188
20189         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
20190         whose definitions are deleted due to basic block merging.
20191
20192 2007-01-03  Paul Brook  <paul@codesourcery.com>
20193
20194         PR target/16634
20195         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
20196         functions.
20197         (use_return_insn): Return 0 for Thumb interrupt functions.
20198         (print_multi_reg): Add rfe argument for IRQ returns.
20199         (arm_output_epilogue): Pop interrupt return address directly into PC.
20200         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
20201
20202 2007-01-03  Paul Brook  <paul@codesourcery.com>
20203
20204         Merge from sourcerygxx-4_1.
20205         * config/arm/thumb2.md: New file.
20206         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
20207         Thumb-2.
20208         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
20209         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
20210         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
20211         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
20212         tables.
20213         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
20214         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
20215         comptibility.
20216         * config/arm/ieee754-sf.S: Ditto.
20217         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
20218         (thumb1_base_register_rtx_p): ... to this.
20219         (thumb_index_register_rtx_p): Rename...
20220         (thumb1_index_register_rtx_p): ... to this.
20221         (thumb_output_function_prologue): Rename...
20222         (thumb1_output_function_prologue): ... to this.
20223         (thumb_legitimate_address_p): Rename...
20224         (thumb1_legitimate_address_p): ... to this.
20225         (thumb_rtx_costs): Rename...
20226         (thumb1_rtx_costs): ... to this.
20227         (thumb_compute_save_reg_mask): Rename...
20228         (thumb1_compute_save_reg_mask): ... to this.
20229         (thumb_final_prescan_insn): Rename...
20230         (thumb1_final_prescan_insn): ... to this.
20231         (thumb_expand_epilogue): Rename...
20232         (thumb1_expand_epilogue): ... to this.
20233         (arm_unwind_emit_stm): Rename...
20234         (arm_unwind_emit_sequence): ... to this.
20235         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
20236         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
20237         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
20238         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
20239         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
20240         thumb2_output_casesi): New functions.
20241         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
20242         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
20243         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
20244         THUMB2_WORK_REGS): Define.
20245         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
20246         arm_condexec_mask, arm_condexec_masklen)): New variables.
20247         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
20248         (arm_override_options): Check new CPU capabilities.
20249         Set new architecture flag variables.
20250         (arm_isr_value): Handle v7m interrupt functions.
20251         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
20252         Thumb-2.
20253         (const_ok_for_arm): Handle Thumb-2 constants.
20254         (arm_gen_constant): Ditto.  Use movw when available.
20255         (arm_function_ok_for_sibcall): Return false for v7m interrupt
20256         functions.
20257         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
20258         (thumb_find_work_register, arm_load_pic_register,
20259         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
20260         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
20261         print_multi_reg, output_mov_long_double_fpa_from_arm,
20262         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
20263         output_mov_double_fpa_from_arm, output_move_double,
20264         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
20265         output_return_instruction, arm_output_function_prologue,
20266         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
20267         arm_output_mi_thunk, thumb_set_return_address): Ditto.
20268         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
20269         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
20270         (arithmetic_instr, shift_op): Use arm_shift_nmem.
20271         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
20272         '!' and 'L'.
20273         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
20274         (thumb_expand_prologue): Use thumb_set_frame_pointer.
20275         (arm_file_start): Output directive for unified syntax.
20276         (arm_unwind_emit_set): Handle stack alignment instruction.
20277         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
20278         Add v6t2, v7, v7a, v7r and v7m.
20279         (RETLDM): Add Thumb-2 code.
20280         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
20281         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
20282         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
20283         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
20284         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
20285         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
20286         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
20287         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
20288         ADJUST_INSN_LENGTH): Define.
20289         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
20290         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
20291         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
20292         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
20293         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
20294         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
20295         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
20296         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
20297         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
20298         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
20299         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
20300         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
20301         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
20302         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
20303         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
20304         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
20305         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
20306         cortex-m3.
20307         * config/arm/arm-tune.md: Regenerate.
20308         * config/arm/arm-protos.h: Update prototypes.
20309         * config/arm/vfp.md: Enable patterns for Thumb-2.
20310         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
20311         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
20312         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
20313         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
20314         * config/arm/libunwind.S: Add Thumb-2 code.
20315         * config/arm/constraints.md: Update include Thumb-2.
20316         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
20317         * config/arm/ieee754-df.S: Ditto.
20318         * config/arm/bpabi.S: Ditto.
20319         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
20320         * config/arm/predicates.md (low_register_operand,
20321         low_reg_or_int_operand, thumb_16bit_operator): New.
20322         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
20323         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
20324         * config/arm/t-arm-elf: Add armv7 multilib.
20325         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
20326         Include thumb2.md.
20327         (UNSPEC_STACK_ALIGN, ce_count): New.
20328         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
20329         arm_zero_extendsidi2, arm_zero_extendqidi2): New
20330         insns/expanders.
20331         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
20332         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
20333         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
20334         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
20335         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
20336         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
20337         insns.
20338         * doc/extend.texi: Document ARMv7-M interrupt functions.
20339         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
20340
20341 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
20342
20343         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
20344         (struct _Unwind_Context): Rename args_size to flags, remove
20345         signal_frame field, add a new args_size field and version field.
20346         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
20347         _Unwind_IsExtendedContext): New inline functions.
20348         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
20349         Assume by_value array is only present if _Unwind_IsExtendedContext.
20350         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
20351         _Unwind_IsSignalFrame.
20352         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
20353         (uw_update_context_1): Use _Unwind_SetSignalFrame.
20354         (uw_init_context_1): Initialize context->flags to
20355         EXTENDED_CONTEXT_BIT.
20356         * config/rs6000/linux-unwind.h (frob_update_context): Use
20357         _Unwind_SetSignalFrame.
20358
20359 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
20360
20361         PR middle-end/30353
20362         * gimplify.c (gimplify_modify_expr_complex_part): Move below
20363         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
20364         the value.
20365
20366 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
20367
20368         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
20369         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
20370         RET, AT_SP): Remove.
20371         * config/i386/i386.md (*sse_prologue_save_insn): Use return
20372         instead of RET.
20373
20374         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
20375         * cfgbuild.c (find_basic_blocks): Likewise.
20376         * cfgrtl.c (rtl_create_basic_block): Likewise.
20377         * function.c (temp_slots_at_level): Likewise.
20378         * reg-stack.c (stack_regs_mentioned): Likewise.
20379         * regclass.c (allocate_reg_info): Likewise.
20380         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
20381         set_bb_for_stmt, move_block_to_fn): Likewise.
20382         * tree-complex.c (tree_lower_complex): Likewise.
20383         * vec.h (VEC_safe_grow_cleared): New.
20384
20385         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
20386
20387 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
20388
20389         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
20390         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
20391         to loop_version.
20392         * cfgloopmanip.c (scale_loop_frequencies): Export.
20393         (loopify): Scale the frequencies by prescribed coefficients.
20394         (set_zero_probability): New function.
20395         (duplicate_loop_to_header_edge): Improve updating of frequencies.
20396         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
20397         and frequencies according to arguments.
20398         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
20399         correctly.
20400         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
20401         * modulo-sched.c (sms_schedule): Set probabilities for entering
20402         versioned loop correctly.
20403         * tree-vect-transform.c (vect_transform_loop): Ditto.
20404         * cfgloop.h (loopify, loop_version): Declaration changed.
20405         (scale_loop_frequencies): Declared.
20406
20407 2007-01-02  Jan Hubicka  <jh@suse.cz>
20408
20409         * cgraph.c: Include tree-flow.h
20410         (cgraph_add_new-function): Handle IPA_SSA mode; execute
20411         early_local_passes.
20412         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
20413         * tree-pass.h (pass_all_early_optimizations): Declare.
20414         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
20415         early_local_passes.
20416         (cgraph_analyze_function): Do early_local_passes.
20417         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
20418         Do not add referenced vars.
20419         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
20420         SSA form.
20421         (gate_all_early_local_passes): New gate.
20422         (pass_early_local_passes): Use new gate.
20423         (execute_early_local_optimizations): New functions.
20424         (gate_all_early_optimizations): New gate.
20425         (pass_all_early_optimizations): New pass.
20426         (execute_free_datastructures): Free SSA only when initialized.
20427         (gate_init_datastructures): Init only when optimizing.
20428         (tree_lowering_passes): Do early local passes when called late.
20429         * tree-profile.c (do_tree_profiling): Don't profile functions added
20430         late.
20431         (do_early_tree_profiling, pass_early_tree_profile): Kill.
20432         * tree-cfg.c (update_modified_stmts): Do not update when operands are
20433         not active.
20434         * passes.c (init_optimizations_passes): Reorder so we go into SSA
20435         during early_local_passes.
20436         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
20437
20438
20439 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
20440
20441         * Makefile.in: Update copyright year.
20442
20443 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
20444
20445         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
20446         in $(lang_checks) and check-consistency targets.
20447
20448 2007-01-02  Jan Hubicka  <jh@suse.cz>
20449
20450         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
20451         Do not add referenced vars.
20452         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
20453         are not active.
20454         * passes.c (init_optimization_passes): Put mudflap_2 after
20455         free_datastructures.
20456
20457 2007-01-02  Jan Hubicka  <jh@suse.cz>
20458
20459         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
20460         Set NOTHROW flag on call statements proved to be nothrow.
20461         Update statement of local calls so new pure/const functions are
20462         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
20463         goto receivers.
20464         (tree_rest_of_compilation): Register hooks and initialize bitmap
20465         early. Do not set after_inlining flag.
20466
20467 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
20468
20469         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
20470         HOST_BITS_PER_LONGLONG
20471
20472 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
20473
20474         PR c/19977
20475         * c-typeck.c (store_init_value): Don't emit pedantic overflow
20476         warning for non-static initializers.
20477
20478 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
20479
20480         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
20481         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
20482         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
20483         Always use set_unique_reg_note to add REG_EQUAL notes.
20484
20485 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
20486
20487         Revert:
20488         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
20489
20490         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
20491         * cfgbuild.c (find_basic_blocks): Likewise.
20492         * cfgrtl.c (rtl_create_basic_block): Likewise.
20493         * function.c (temp_slots_at_level): Likewise.
20494         * reg-stack.c (stack_regs_mentioned): Likewise.
20495         * regclass.c (allocate_reg_info): Likewise.
20496         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
20497         set_bb_for_stmt, move_block_to_fn): Likewise.
20498         * tree-complex.c (tree_lower_complex): Likewise.
20499         * vec.h (VEC_safe_grow_cleared): New.
20500
20501 2007-01-02  Ian Lance Taylor  <iant@google.com>
20502
20503         * c-common.c (c_common_truthvalue_conversion): When warning about
20504         using an assignment as a truth value, set TREE_NO_WARNING.
20505
20506 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20507
20508         PR middle-end/7651
20509         * c.opt (Wold-style-declaration): New.
20510         * doc/invoke.texi (C-only Warning Options): New.
20511         (Wold-style-declaration): Document it.
20512         (Wextra): Enabled by -Wextra.
20513         * c-opts.c (c_common_post_options): Enabled by -Wextra.
20514         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
20515         -Wold-style-declaration.
20516
20517 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
20518
20519         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
20520         * cfgbuild.c (find_basic_blocks): Likewise.
20521         * cfgrtl.c (rtl_create_basic_block): Likewise.
20522         * function.c (temp_slots_at_level): Likewise.
20523         * reg-stack.c (stack_regs_mentioned): Likewise.
20524         * regclass.c (allocate_reg_info): Likewise.
20525         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
20526         set_bb_for_stmt, move_block_to_fn): Likewise.
20527         * tree-complex.c (tree_lower_complex): Likewise.
20528         * vec.h (VEC_safe_grow_cleared): New.
20529
20530 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
20531
20532         * c-common.c (c_common_nodes_and_builtins): Since variants of
20533         void_type_node get built before it is given a name, we need to
20534         give those variants the name, too.
20535         (complete_array_type): We need to work with the canonical main
20536         type of the array, from which we will build the qualified version.
20537         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
20538         * print-tree.c (print_node): Display canonical type information
20539         for each type.
20540         * stor-layout.c (layout_type): When we don't know the
20541         alignment of a type for which we're building an array, we end up
20542         guessing wrong, so make the type require structural equality.
20543         * tree.c (make_node_stat): When we build a new type, it is its
20544         own canonical type.
20545         (build_type_attribute_qual_variant): When building an attribute
20546         variant, its canonical type is the non-attribute variant. However,
20547         if the attributes are target-dependent and they differ, we need to
20548         use structural equality checks for this type.
20549         (build_qualified_type): A qualified type is not equivalent to its
20550         unqualified variant; set the canonical type appropriately.
20551         (build_distinct_type_copy): When building a distinct type from
20552         another type, the new type is its own canonical type.
20553         (build_variant_type_copy): When building a new type variant, we
20554         assume that it is equivalent to the original type.
20555         (build_pointer_type_for_mode): When building a pointer type, also
20556         build a canonical type pointer.
20557         (build_reference_type_for_mode): When building a reference type,
20558         also build a canonical type reference.
20559         (build_index_type): When we can't hash an index type (e.g.,
20560         because its maximum value is negative), the index type requires
20561         structural equality tests.
20562         (build_array_type): Build the canonical form of an array type.
20563         (build_function_type): Function types require structural equality,
20564         because they contain default arguments, attributes, etc.
20565         (build_method_type_directly): Ditto for method types.
20566         (build_offset_type): Build the canonical offset type.
20567         (build_complex_type): Build the canonical vector type.
20568         (make_vector_type): Build the canonical vector type.
20569         * tree.h (TYPE_CANONICAL): New.
20570         (TYPE_STRUCTURAL_EQUALITY_P): New.
20571         (SET_TYPE_STRUCTURAL_EQUALITY): New.
20572         (struct tree_type): Added "canonical" field.
20573         * params.h (VERIFY_CANONICAL_TYPES): New.
20574         * doc/c-tree.texi (TYPE_CANONICAL): Document.
20575         (TYPE_STRUCTURAL_EQUALITY_P): Document.
20576         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
20577         * doc/invoke.texi (verify-canonical-types): Document --param
20578         parameter for verifying canonical types.
20579
20580 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
20581
20582         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
20583         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
20584         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
20585         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
20586         tm_file.
20587         * config/rs6000/e500.h: New.
20588         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
20589         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
20590         Remove.
20591         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
20592         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
20593         TARGET_E500_DOUBLE): Remove.
20594         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
20595         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
20596         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
20597         * config/rs6000/rs6000.c (rs6000_override_options): Use
20598         CHECK_E500_OPTIONS.
20599
20600 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
20601
20602         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
20603         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
20604         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
20605         rs6000_emit_cmove): Don't check TARGET_E500.
20606         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
20607         sordered): Don't check TARGET_E500.
20608
20609 2007-01-01  Eric Christopher  <echristo@apple.com>
20610
20611         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
20612         HARD_REGISTER_NUM_P.
20613
20614 2007-01-01  Roger Sayle  <roger@eyesopen.com>
20615
20616         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
20617         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
20618         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
20619         eq/ne Y".
20620
20621 2007-01-01  Mike Stump  <mrs@apple.com>
20622
20623         * configure.ac: Remove support for building with Apple's gcc-3.1.
20624
20625 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
20626
20627         PR middle-end/30311
20628         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
20629         REG is a hard register.  Do not modify REG before calling
20630         subreg_nregs.
20631         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
20632         multiple of the size of YMODE for certain lowpart cases.
20633
20634 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
20635
20636         PR middle-end/30253
20637         * gimplify (voidify_wrapper_expr): Update for
20638         GIMPLE_MODIFY_STMT.
20639
20640 2007-01-01  Andreas Schwab  <schwab@suse.de>
20641
20642         PR target/29166
20643         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
20644         save of BR0 in extra_spill_size instead of spill_size.
20645         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
20646         area.
20647         (ia64_expand_epilogue): Restore BR0 from its new location.
20648
20649 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
20650
20651         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
20652         Use a temporary variable if the left hand side is not a gimple
20653         register.
20654
20655 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
20656
20657         * gimplify.c (gimplify_return_expr): Make the temporary variable
20658         for the return expression, a gimple register variable.
20659
20660 2007-01-01  Jan Hubicka  <jh@suse.cz>
20661
20662         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
20663         INSN_LIST.
20664
20665 2007-01-01  Mike Stump  <mrs@apple.com>
20666
20667         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
20668         .literal16.
20669         * config/darwin.c (machopic_select_rtx_section): Use
20670         HAVE_GAS_LITERAL16.
20671         (darwin_mergeable_constant_section): Likewise.
20672         * configure: Regenerate.
20673         * config.in: Regenerate.
20674
20675 2007-01-01  Jan Hubicka  <jh@suse.cz>
20676             Andrew Pinski  <pinskia@gmail.com>
20677
20678         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
20679         before starting IPA passes.