OSDN Git Service

* config/rs6000/x-rs6000: New file.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-08-08  David Edelsohn  <edelsohn@gnu.org>
2
3         * config/rs6000/x-rs6000: New file.
4         * config/rs6000/darwin.h (CC1_SPEC): Add cc1_cpu.
5         * config/rs6000/rs6000.h (EXTRA_SPECS): Add cc1_cpu.
6         (EXTRA_SPEC_FUNCTIONS): Define.
7         (HAVE_LOCAL_CPU_DETECT): Define.
8         (CC1_CPU_SPEC): Define.
9         * config/rs6000/driver-rs6000.c: New file.
10         * config/rs6000/aix.h (CC1_SPEC): Define.
11         * config/rs6000/sysv4.h (CC1_SPEC): Add cc1_cpu.
12         * config.host: Add x-rs6000 to host_xmake_file if host and target
13         are rs6000 or powerpc.
14
15 2007-08-08  Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
16
17         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Use +=.
18
19 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
20             Sandra Loosemore  <sandra@codesourcery.com>
21             Chao-ying Fu  <fu@mips.com>
22             Nigel Stephens  <nigel@mips.com>
23             David Ung  <davidu@mips.com>
24
25         * doc/invoke.texi (-mcode-readable): Document.
26         * config/mips/mips.opt (mcode-readable): New option.
27         * config/mips/mips-protos.h (SYMBOL_32_HIGH): New symbol type.
28         * config/mips/mips.h (mips_code_readable_setting): New enum.
29         (mips_code_readable): Declare.
30         (TARGET_MIPS16_TEXT_LOADS, TARGET_MIPS16_PCREL_LOADS): New macros.
31         (TARGET_MIPS16_SHORT_JUMP_TABLES): New macro.
32         (JUMP_TABLES_IN_TEXT_SECTION): Use it.
33         (CASE_VECTOR_MODE, CASE_VECTOR_PC_RELATIVE): Likewise.  Remove
34         boiler-plate comments.
35         (ASM_OUTPUT_ADDR_DIFF_ELT): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
36         * config/mips/mips.c (mips_code_readable): New variable.
37         (mips_classify_symbol): Only return SYMBOL_PC_RELATIVE for
38         MIPS16 labels if TARGET_MIPS16_SHORT_JUMP_TABLES.  Use both the
39         context and -mcode-readable setting to restrict the use of
40         SYMBOL_PC_RELATIVE for MIPS16 constant pool references.
41         Only return TARGET_FORCE_TO_MEM if PC-relative loads are allowed.
42         (mips_symbolic_constant_p): Handle SYMBOL_32_HIGH.
43         (mips_blocks_for_constant_p): Only return false for
44         TARGET_MIPS16_PCREL_LOADS.
45         (mips_symbol_insns_1): Treat HIGHs as 2 extended instructions
46         for MIPS16.  Handle SYMBOL_32_HIGH.
47         (mips_const_insns): Allow HIGHs for MIPS16 too.
48         (mips_unspec_address_offset): New function, split out from...
49         (mips_unspec_address): ...here.
50         (mips_output_move): Handle MIPS16 HIGH moves.  Use "li" to load
51         16-bit symbolic constants.  Assert approropiate conditions for
52         using the "la" and "dla" macros.
53         (mips_handle_option): Handle -mcode-readable=.
54         (override_options): Use %hi/%lo relocations for TARGET_MIPS16 too.
55         Set up mips_lo_relocs[SYMBOL_32_HIGH].
56         (mips_strip_unspec_address): New function, split out from...
57         (print_operand_reloc): ...here.
58         (print_operand): Pass constants through mips_strip_unspec_address.
59         (print_operand_address): Likewise.
60         (mips_output_mi_thunk): Remove guard of mips16_lay_out_constants.
61         (mips_select_rtx_section): Remove MIPS16 handling.
62         (mips16_gp_pseudo_reg): Check currently_expanding_to_rtl.
63         (mips16_rewrite_pool_refs): Wrap the labels in an address UNSPEC.
64         (mips16_lay_out_constants): Do nothing unless
65         TARGET_MIPS16_PCREL_LOADS.
66         (mips_avoid_hazards): Remove guard of mips16_lay_out_constants.
67         * config/mips/mips.md: Split HIGHs for MIPS16.
68         (tablejump): Use TARGET_MIPS16_SHORT_JUMP_TABLES.
69
70 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
71
72         * config/mips/mips-protos.h (mips_emit_move): Declare.
73         * config/mips/mips.c (mips_emit_move): New function.
74         (mips_force_temporary): Use mips_emit_move instead of emit_move_insn.
75         (mips_legitimize_const_move): Likewise.
76         (mips_legitimize_move): Likewise.
77         (mips_split_64bit_move): Likewise.
78         (mips_restore_gp): Likewise.
79         (mips_load_call_address): Likewise.
80         (mips_emit_fcc_reload): Likewise.
81         (mips_set_return_address): Likewise.
82         (mips_block_move_straight): Likewise.
83         (mips_block_move_loop): Likewise.
84         (mips_setup_incoming_varargs): Likewise.
85         (mips_save_reg): Likewise.
86         (mips_expand_prologue): Likewise.
87         (mips_restore_reg): Likewise.
88         (mips_expand_epilogue): Likewise.
89         (mips_output_mi_thunk): Likewise.
90         (build_mips16_call_stub): Likewise.
91         (mips_builtin_branch_and_move): Likewise.
92         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Likewise.
93         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
94         (fixuns_truncdfdi2): Likewise.
95         (fixuns_truncsfsi2): Likewise.
96         (fixuns_truncsfdi2): Likewise.
97         (loadgp_absolute): Likewise.
98         (builtin_setjmp_setup): Likewise.
99         (builtin_longjmp): Likewise.
100         (untyped_call): Likewise.
101
102 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
103
104         * config/mips/mips-protos.h (mips_split_symbol): Add a mode and
105         an "rtx *" argument.  Return a bool.
106         * config/mips/mips.c (mips_split_symbol): Accept arbitrary source
107         values and return true if they can be split.  Take the same kind of
108         mode argument as mips_symbol_insns.  Add a "lo_sum_out" parameter
109         and store the lo_sum there if nonnull.  Use the symbol type to
110         determine whether a $gp or HIGH is needed.
111         (mips_legitimize_address): Update call to mips_split_symbol and
112         simplify accordingly.
113         (mips_legitimize_const_move): Likewise.
114         * config/mips/mips.md: In the combine define_split,
115         check mips_split_symbol instead of splittable_symbolic_operand.
116         Update use of mips_split_symbol in the generator code.
117         * config/mips/predicates.md (splittable_symbolic_operand): Delete.
118
119 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
120
121         * config/mips/mips.c (mips_symbolic_address_p): Delete.
122         (mips_symbol_insns_1): New function, split out from...
123         (mips_symbol_insns): ...here.  Take a mode argument.  Treat loads
124         and stores separately from load addresses.
125         (mips_classify_address): Replace uses of mips_symbolic_address_p
126         with uses of mips_symbol_insns.
127         (mips_address_insns): Update calls to mips_symbol_insns.
128         (mips_const_insns): Likewise.
129         (mips_legitimize_address): Likewise.
130
131 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
132
133         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): New symbol type.
134         * config/mips/mips.c (mips_classify_symbol): Skip TARGET_ABICALLS
135         block for locally-binding symbols if TARGET_ABSOLUTE_ABICALLS.
136         Return SYMBOL_FORCE_TO_MEM instead of SYMBOL_ABSOLUTE for
137         non-call contexts if TARGET_MIPS16.
138         (mips_symbolic_constant_p): Handle SYMBOL_FORCE_TO_MEM.
139         (mips_symbolic_address_p): Likewise.  Remove special TARGET_MIPS16
140         code for SYMBOL_ABSOLUTE.
141         (mips_symbol_insns): Likewise.
142
143 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
144
145         * config/mips/mips-protos.h (mips_symbol_context): New enumeration.
146         * config/mips/mips.c (mips_classify_symbol): Take a context argument.
147         (mips_symbolic_constant_p): Likewise.  Update the call to
148         mips_classify_symbol.
149         (mips_classify_address): Update the calls to mips_symbolic_constant_p.
150         (mips_const_insns): Likewise.  Update the call to mips_classify_symbol.
151         (mips_legitimize_address): Update the call to mips_symbolic_constant_p.
152         (print_operand_reloc): Add a context argument.  Update the call to
153         mips_symbolic_constant_p.
154         (print_operand): Update the calls to print_operand_reloc.
155         (print_operand_address): Use print_operand_reloc rather than
156         print_operand.
157         (mips_rewrite_small_data_p): Add a context argument.  Update the call
158         to mips_symbolic_constant_p.
159         (mips_small_data_pattern_1): Make DATA the containing mem.
160         Update the call to mips_rewrite_small_data_p.
161         (mips_rewrite_small_data_1): Likewise.
162         (mips_use_anchors_for_symbol_p): Update the call to
163         mips_symbolic_constant_p.
164         * config/mips/predicates.md (const_call_insn_operand): Likewise.
165         (splittable_symbolic_operand): Likewise.
166         (move_operand): Likewise.
167         (absolute_symbolic_operand): Likewise.
168         (got_disp_operand): Likewise.
169         (got_page_ofst_operand): Likewise.
170
171 2007-08-08  Richard Sandiford  <richard@codesourcery.com>
172
173         * config/mips/mips-protos.h (SYMBOL_GENERAL): Rename to...
174         (SYMBOL_ABSOLUTE): ...this.
175         (SYMBOL_SMALL_DATA): Rename to...
176         (SYMBOL_GP_RELATIVE): ...this.
177         (SYMBOL_CONSTANT_POOL): Rename to...
178         (SYMBOL_PC_RELATIVE): ...this.
179         * config/mips/mips.c (mips_classify_symbol, mips_symbolic_constant_p)
180         (mips_symbolic_address_p, mips_symbol_insns, override_options)
181         (mips_rewrite_small_data_p, mips_use_anchors_for_symbol_p): Update
182         after above changes.
183         * config/mips/predicates.md (const_call_insn_operand): Likewise.
184         (general_symbolic_operand): Rename to...
185         (absolute_symbolic_operand): ...this.
186         * config/mips/mips.md: Update after above changes.
187
188 2007-08-08  Vladimir Yanovsky  <yanov@il.ibm.com>
189             Revital Eres  <eres@il.ibm.com>
190
191         * ddg.c (print_ddg): Add dump information.
192         * modulo-sched.c (print_node_sched_params): Add parameter and
193         verbosity.
194         (calculate_maxii): Remove function.
195         (undo_generate_reg_moves): Likewise.
196         (undo_permute_partial_schedule): Likewise.
197         (kernel_number_of_cycles): Likewise.
198         (MAXII_FACTOR): New definition to calculate the upper bound of II.
199         (sms_schedule): Use it.  Remove profitability checks.
200         (sms_schedule_by_order): Fix order of nodes within the cycle.
201
202 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
203
204         * gcc/config/i386/gnu.h (STARTFILE_SPEC): Use gcrt0.o in profile mode, add
205         -profile option, add pie support.
206         (ENDFILE_SPEC): New spec.
207         * gcc/config/gnu.h (LIB_SPEC): Add -profile option.
208
209 2007-08-08  Samuel Thibault  <samuel.thibault@ens-lyon.org>
210
211         * gcc/config/i386/gnu.h (CPP_SPEC): Add -pthread option.
212         * gcc/config/gnu.h (LIB_SPEC): Likewise.
213
214 2007-08-07  Yaz Saito  <saito@google.com>
215             Ian Lance Taylor  <iant@google.com>
216
217         * common.opt (finstrument-functions-exclude-function-list): New
218         option.
219         (finstrument-functions-exclude-file-list): New option.
220         * opts.c (char_p): Define and DEF_VEC.
221         (flag_instrument_functions_exclude_functions): New static
222         variable.
223         (flag_instrument_functions_exclude_files): New static variable.
224         (add_instrument_functions_exclude_list): New static function.
225         (flag_instrument_functions_exclude_p): New function.
226         (common_handle_option): Handle new options.
227         * flags.h (flag_instrument_functions_exclude_p): Declare.
228         * gimplify.c (gimplify_function_tree): Call
229         flag_instrument_functions_exclude_p.
230         * doc/invoke.texi (Option Summary): Mention new options.
231         (Code Gen Options): Document new options.
232
233 2007-08-07  Ian Lance Taylor  <iant@google.com>
234
235         PR rtl-optimization/32776
236         * lower-subreg.c (resolve_clobber): Call resolve_reg_notes.
237         (resolve_use): Likewise.
238         (decompose_multiword_subregs): Remove "changed" local variable.
239
240 2007-08-07  Carlos O'Donell  <carlos@codesourcery.com>
241
242         * configure.ac: Define HAVE_GNU_AS if $gas_flag is yes.
243         * configure: Regenerate.
244         * config.in: Regenerate.
245         * gcc.c [HAVE_GNU_AS]: Add "%{v} %{w:-W} %{I*} " to asm_options
246         spec string.
247
248 2007-08-07  Ian Lance Taylor  <iant@google.com>
249
250         * lower-subreg.c (resolve_clobber): If the clobber has a LIBCALL
251         note, just delete the insn.
252
253 2007-08-07  Andreas Schwab  <schwab@suse.de>
254
255         PR bootstrap/32973
256         * gengtype-lex.l: Ignore backslash/newline pair while scanning a
257         struct definition.
258
259 2007-08-07  Andreas Krebbel  <krebbel1@de.ibm.com>
260
261         * lower-subreg.c (resolve_subreg_use): Remove assertion.
262         (find_decomposable_shift_zext, resolve_shift_zext): New functions.
263         (decompose_multiword_subregs): Use the functions above to decompose
264         multiword shifts and zero-extends.
265
266 2007-08-07  Rask Ingemann Lambertsen  <rask@sygehus.dk>
267
268         * doc/sourcebuild.texi (Test Directives): Fix "compile" and
269         "assemble" descriptions which were swapped.
270
271 2007-08-06  Chao-ying Fu  <fu@mips.com>
272
273         * fixed-value.h: New file.
274         * fixed-value.c: New file.
275         * Makefile.in (OBJS-common): Add fixed-value.o.
276         (fixed-value.o): New rule.
277         (GTFILES): Add fixed-value.h.
278         * double-int.c (double_int_scmp): We should use unsigned HOST_WIDE_INT
279         to compare a.low and b.low.
280         * gengtype.c (main): Handle FIXED_VALUE_TYPE type as scalar typedef.
281
282 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
283             Daniel Jacobowitz  <dan@codesourcery.com>
284
285         PR target/31868
286         * config.gcc (x86_64-*-freebsd*): Add i386/t-crtstuff to
287         tmake_file.
288         (x86_64-*-netbsd*): Likewise.
289         (x86_64-*-linux*): Likewise.
290         (x86_64-*-kfreebsd*-gnu): Likewise.
291         (x86_64-*-knetbsd*-gnu): Likewise.
292         (i[34567]86-*-solaris2.1[0-9]*): Likewise.
293
294         * config/i386/t-linux64 (CRTSTUFF_T_CFLAGS): Removed.
295
296         * config/i386/t-crtstuff (CRTSTUFF_T_CFLAGS): Update comments.
297         Add -fno-asynchronous-unwind-tables.
298
299         * config/t-freebsd (CRTSTUFF_T_CFLAGS_S): Add $(CRTSTUFF_T_CFLAGS).
300         * config/t-libc-ok (CRTSTUFF_T_CFLAGS_S): Likewise.
301         * config/t-lynx (CRTSTUFF_T_CFLAGS_S): Likewise.
302         * config/t-netbsd (CRTSTUFF_T_CFLAGS_S): Likewise.
303         * config/t-svr4 (CRTSTUFF_T_CFLAGS_S): Likewise.
304
305 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
306
307         * config/ia64/ia64.c (ia64_c_mode_for_suffix): New.
308         (TARGET_C_MODE_FOR_SUFFIX): New.
309
310 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
311
312         * config/ia64/div.md (m2subrf4_cond): Change 'g' to 'G'.
313
314 2007-08-06  Steve Ellcey  <sje@cup.hp.com>
315
316         * config/ia64/ia64.h (MODES_TIEABLE_P): Fix typo.
317
318 2007-08-06  H.J. Lu  <hongjiu.lu@intel.com>
319
320         * config/i386/i386.md: Check TARGET_ macros and optimize_size
321         before checking function returns in conditional expressions.
322
323 2007-08-06  Alfred Minarik  <a.minarik@aon.at>
324
325         PR pch/13676
326         * doc/invoke.texi: Add .hp, .hxx, .hpp, .h, .HPP, .tcc as c++ header.
327
328 2008-08-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
329
330         PR middle-end/32988
331         * tree.c (build2_stat): Instead of checking for INTEGER_TYPE, check
332         for INTEGRAL_TYPE_P.
333
334 2008-08-05  Paolo Bonzini  <bonzini@gnu.org>
335
336         * configure.ac: Remove --enable-checking=df from default settings.
337         * tree-pass.h (TODO_df_verify): New.  Shift TODO_mark_first_instance.
338         * df-core.c (df_finish_pass) [ENABLE_CHECKING]: Schedule verification
339         if the parameter is true.
340         (df_analyze) [!ENABLE_DF_CHECKING]: Also do verification if the
341         DF_VERIFY_SCHEDULED flag is true.
342         * df.h (enum df_changeable_flags): Add DF_VERIFY_SCHEDULED.
343         (df_finish_pass): Adjust prototype.
344         * passes.c (execute_todo): Schedule verification if TODO_df_verify is
345         true.
346
347         * see.c (pass_see): Add TODO_df_verify.
348         * loop-init.c (pass_rtl_move_loop_invariants): Add TODO_df_verify.
349         * global.c (rest_of_handle_global_alloc): Schedule verification
350         after the pass.
351         * local-alloc.c (rest_of_handle_local_alloc): Schedule verification
352         before the pass.
353         * function.c (pass_thread_prologue_and_epilogue): Add TODO_df_verify.
354         * gcse.c (rest_of_handle_gcse): Adjust call to df_finish_pass.
355         * loop-iv.c (iv_analysis_done): Schedule verification after the pass.
356
357         * config/sh/sh.c (sh_output_mi_thunk): Remove dead code.
358         * config/ia64/ia64.c (ia64_reorg): Adjust call to df_finish_pass.
359         * config/bfin/bfin.c (bfin_reorg): Adjust call to df_finish_pass.
360
361 2007-08-05  Vladimir Yanovsky  <yanov@il.ibm.com>
362             Revital Eres <eres@il.ibm.com>
363
364         * doc/invoke.texi (-fmodulo-sched-allow-regmoves): Document new
365         flag.
366         * ddg.c (create_ddg_dependence): Rename to...
367         (create_ddg_dep_from_intra_loop_link): This.  Do not check
368         for interloop edges.  Do not create anti dependence edge when
369         a true dependence edge exists in the opposite direction and
370         -fmodulo-sched-allow-regmoves is set.
371         (build_intra_loop_deps): Call create_ddg_dep_from_intra_loop_link.
372         (add_cross_iteration_register_deps): Create anti dependence edge
373         when -fno-modulo-sched-allow-regmoves is set.
374         * common.opt (-fmodulo-sched-allow-regmoves): New flag.
375
376 2007-08-04  Richard Sandiford  <richard@codesourcery.com>
377
378         * config/arm/arm.md (movsi): Add braces.
379
380 2007-08-04  Andrew Pinski  <andrew_pinski@playstation.sony.com>
381
382         PR middle-end/32780
383         * fold-const.c (fold_binary <case MINUS_EXPR>): Fix the type of operands
384         for the folding of "A - (A & B)" into "~B & A"; cast them to type.
385
386 2007-08-03  Zdenek Dvorak  <ook@ucw.cz>
387
388         * tree-ssa-threadupdate.c (thread_through_all_blocks): Use loops' state
389         accessor functions.
390         * cfgloopmanip.c (remove_path, create_preheaders,
391         force_single_succ_latches, fix_loop_structure): Ditto.
392         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
393         tree_duplicate_loop_to_header_edge): Ditto.
394         * cfgloopanal.c (mark_irreducible_loops): Ditto.
395         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize):
396         Ditto.
397         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures,
398         cleanup_tree_cfg): Ditto.
399         * tree-cfg.c (tree_merge_blocks): Ditto.
400         * cfgloop.c (rescan_loop_exit, record_loop_exits,
401         release_recorded_exits, get_loop_exit_edges, verify_loop_structure,
402         loop_preheader_edge, single_exit): Ditto.
403         (flow_loops_find): Do not clear loops->state.
404         * cfgloop.h (loops_state_satisfies_p, loops_state_set,
405         loops_state_clear): New functions.
406
407 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
408
409         PR middle-end/32399
410         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
411         when adding to the base and convert ELT to sizetype instead of type.
412
413 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
414
415         PR middle-end/32304
416         * ipa-reference.c (has_proper_scope_for_analysis): Return false when
417         the decl's type has TYPE_NEEDS_CONSTRUCTING set.
418
419 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
420
421         PR middle-end/32935
422         * fold-convert.c (fold_negate_expr <NOP_EXPR>): Convert back to the
423          correct type the negate expression.
424
425 2007-08-03  Jan Hubicka  <jh@suse.cz>
426
427         * i386.c (setup_incoming_varargs_64): Tolerate 64bit preferred
428         stack boundary.
429
430 2007-08-03  David Edelsohn  <edelsohn@gnu.org>
431
432         * config/rs6000/rs6000.c (struct processor_cost): Change
433         l1_cache_lines to l1_cache_size.  Add l2_cache_size.
434         (*_cost): Convert l1 cache information to kilobytes.  Add l2 cache
435         information.
436         (rios1_costs, rios2_cost): Correct cache line size.
437         (rs6000_override_options): Set l2-cache-size parameter.
438
439 2007-08-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
440             Diego Novillo  <dnovillo@google.com>
441
442         PR 31521
443         * tree-vrp.c (simplify_div_or_mod_using_ranges): Also simplify
444         if the range includes 0.
445
446 2007-08-03  Ben Elliston  <bje@au.ibm.com>
447
448         * config/spu/spu.md (dftsv, dftsv_celledp): Attach the appropriate
449         mode to unspec expressions to silence a warning from the generator
450         programs.
451         
452 2007-08-02  Steve Ellcey  <sje@cup.hp.com>
453
454         * config/ia64/constraints.md ("U"): Make constraint vector only.
455
456 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
457
458         PR middle-end/25446
459         * c-objc-common.c (c_cannot_inline_tree_fn): Check for an
460         always_inline attribute on the function decl.
461
462 2007-08-02  Nathan Froyd  <froydnj@codesourcery.com>
463
464         PR middle-end/25445
465         * varasm.c (default_binds_local_p_1): Consult flag_whole_program
466         if we are compiling with -fPIC.
467
468 2007-08-02  Sandra Loosemore  <sandra@codesourcery.com>
469             Nigel Stephens  <nigel@mips.com>
470
471         * longlong.h [__mips__] (count_leading_zeros, COUNT_LEADING_ZEROS_0):
472         Define for MIPS32 and MIPS64.
473
474 2007-08-02  Nick Clifton  <nickc@redhat.com>
475
476         * config/host-hpux.c: Change copyright header to refer to version
477         3 of the GNU General Public License and to point readers at the
478         COPYING3 file and the FSF's license web page.
479         * config/alpha/predicates.md, config/alpha/vms-ld.c,
480         config/alpha/linux.h, config/alpha/alpha.opt,
481         config/alpha/linux-elf.h, config/alpha/vms.h, config/alpha/elf.h,
482         config/alpha/vms-unwind.h, config/alpha/ev4.md,
483         config/alpha/ev6.md, config/alpha/alpha.c, config/alpha/vms-cc.c,
484         config/alpha/alpha.h, config/alpha/sync.md,
485         config/alpha/openbsd.h, config/alpha/alpha.md,
486         config/alpha/alpha-modes.def, config/alpha/ev5.md,
487         config/alpha/alpha-protos.h, config/alpha/freebsd.h,
488         config/alpha/osf5.h, config/alpha/netbsd.h, config/alpha/vms64.h,
489         config/alpha/constraints.md, config/alpha/osf.h,
490         config/alpha/xm-vms.h, config/alpha/unicosmk.h, config/linux.h,
491         config/frv/predicates.md, config/frv/frv.h, config/frv/linux.h,
492         config/frv/frv.md, config/frv/frv.opt, config/frv/frv-modes.def,
493         config/frv/frv-asm.h, config/frv/frv-protos.h,
494         config/frv/frv-abi.h, config/frv/frv.c, config/s390/tpf.h,
495         config/s390/s390.c, config/s390/predicates.md, config/s390/s390.h,
496         config/s390/linux.h, config/s390/tpf.md, config/s390/tpf.opt,
497         config/s390/2064.md, config/s390/2084.md, config/s390/s390.md,
498         config/s390/s390.opt, config/s390/s390-modes.def,
499         config/s390/fixdfdi.h, config/s390/constraints.md,
500         config/s390/s390-protos.h, config/s390/s390x.h, config/elfos.h,
501         config/dbxcoff.h, config/m32c/predicates.md, config/m32c/cond.md,
502         config/m32c/m32c.c, config/m32c/minmax.md, config/m32c/blkmov.md,
503         config/m32c/m32c-pragma.c, config/m32c/m32c.h,
504         config/m32c/prologue.md, config/m32c/m32c.abi,
505         config/m32c/muldiv.md, config/m32c/bitops.md, config/m32c/mov.md,
506         config/m32c/addsub.md, config/m32c/m32c.md, config/m32c/m32c.opt,
507         config/m32c/t-m32c, config/m32c/m32c-modes.def,
508         config/m32c/jump.md, config/m32c/shift.md,
509         config/m32c/m32c-protos.h, config/libgloss.h,
510         config/spu/spu-protos.h, config/spu/predicates.md,
511         config/spu/spu-builtins.h, config/spu/spu.c,
512         config/spu/spu-builtins.def, config/spu/spu-builtins.md,
513         config/spu/spu.h, config/spu/spu-elf.h, config/spu/constraints.md,
514         config/spu/spu.md, config/spu/spu-c.c, config/spu/spu.opt,
515         config/spu/spu-modes.def, config/spu/t-spu-elf, config/interix.h,
516         config/sparc/hypersparc.md, config/sparc/predicates.md,
517         config/sparc/linux.h, config/sparc/sp64-elf.h,
518         config/sparc/supersparc.md, config/sparc/cypress.md,
519         config/sparc/openbsd1-64.h, config/sparc/openbsd64.h,
520         config/sparc/niagara.md, config/sparc/sparc.md,
521         config/sparc/long-double-switch.opt, config/sparc/ultra3.md,
522         config/sparc/sparc.opt, config/sparc/sync.md,
523         config/sparc/sp-elf.h, config/sparc/sparc-protos.h,
524         config/sparc/ultra1_2.md, config/sparc/biarch64.h,
525         config/sparc/sparc.c, config/sparc/little-endian.opt,
526         config/sparc/sysv4-only.h, config/sparc/sparc.h,
527         config/sparc/linux64.h, config/sparc/freebsd.h,
528         config/sparc/sol2.h, config/sparc/rtemself.h,
529         config/sparc/netbsd-elf.h, config/sparc/vxworks.h,
530         config/sparc/sparc-modes.def, config/sparc/sparclet.md,
531         config/sparc/sysv4.h, config/vx-common.h, config/netbsd-aout.h,
532         config/flat.h, config/m32r/m32r.md, config/m32r/predicates.md,
533         config/m32r/little.h, config/m32r/m32r.c, config/m32r/m32r.opt,
534         config/m32r/linux.h, config/m32r/constraints.md,
535         config/m32r/m32r.h, config/m32r/m32r-protos.h, config/vxworks.opt,
536         config/darwin-c.c, config/darwin.opt, config/i386/i386.h,
537         config/i386/cygming.h, config/i386/linux.h, config/i386/cygwin.h,
538         config/i386/i386.md, config/i386/netware-crt0.c,
539         config/i386/sco5.h, config/i386/mmx.md, config/i386/vx-common.h,
540         config/i386/kaos-i386.h, config/i386/winnt-stubs.c,
541         config/i386/netbsd64.h, config/i386/djgpp.h, config/i386/gas.h,
542         config/i386/sol2.h, config/i386/constraints.md,
543         config/i386/netware-libgcc.c, config/i386/sysv5.h,
544         config/i386/predicates.md, config/i386/geode.md,
545         config/i386/x86-64.h, config/i386/kfreebsd-gnu.h,
546         config/i386/freebsd64.h, config/i386/vxworksae.h,
547         config/i386/pentium.md, config/i386/lynx.h, config/i386/i386elf.h,
548         config/i386/rtemself.h, config/i386/netbsd-elf.h,
549         config/i386/ppro.md, config/i386/k6.md, config/i386/netware.c,
550         config/i386/netware.h, config/i386/i386-modes.def,
551         config/i386/sysv4-cpp.h, config/i386/i386-interix.h,
552         config/i386/cygwin1.c, config/i386/djgpp.opt, config/i386/uwin.h,
553         config/i386/unix.h, config/i386/ptx4-i.h, config/i386/xm-djgpp.h,
554         config/i386/att.h, config/i386/winnt.c, config/i386/beos-elf.h,
555         config/i386/sol2-10.h, config/i386/darwin64.h, config/i386/sse.md,
556         config/i386/i386.opt, config/i386/bsd.h, config/i386/cygming.opt,
557         config/i386/xm-mingw32.h, config/i386/linux64.h,
558         config/i386/openbsdelf.h, config/i386/xm-cygwin.h,
559         config/i386/sco5.opt, config/i386/darwin.h, config/i386/mingw32.h,
560         config/i386/winnt-cxx.c, config/i386/i386-interix3.h,
561         config/i386/nwld.c, config/i386/nwld.h, config/i386/host-cygwin.c,
562         config/i386/cygwin2.c, config/i386/i386-protos.h,
563         config/i386/sync.md, config/i386/openbsd.h,
564         config/i386/host-mingw32.c, config/i386/i386-aout.h,
565         config/i386/nto.h, config/i386/biarch64.h,
566         config/i386/i386-coff.h, config/i386/freebsd.h,
567         config/i386/driver-i386.c, config/i386/knetbsd-gnu.h,
568         config/i386/host-i386-darwin.c, config/i386/vxworks.h,
569         config/i386/crtdll.h, config/i386/i386.c, config/i386/sysv4.h,
570         config/darwin-protos.h, config/linux.opt, config/sol2.c,
571         config/sol2.h, config/sh/symbian.c, config/sh/sh-protos.h,
572         config/sh/linux.h, config/sh/elf.h, config/sh/superh.h,
573         config/sh/sh4.md, config/sh/coff.h, config/sh/newlib.h,
574         config/sh/embed-elf.h, config/sh/symbian-pre.h, config/sh/rtems.h,
575         config/sh/kaos-sh.h, config/sh/sh4a.md, config/sh/constraints.md,
576         config/sh/sh64.h, config/sh/sh.opt, config/sh/symbian-post.h,
577         config/sh/sh-c.c, config/sh/predicates.md, config/sh/sh.c,
578         config/sh/sh.h, config/sh/shmedia.md, config/sh/sh-modes.def,
579         config/sh/little.h, config/sh/sh1.md, config/sh/sh4-300.md,
580         config/sh/superh64.h, config/sh/rtemself.h,
581         config/sh/netbsd-elf.h, config/sh/sh.md, config/sh/vxworks.h,
582         config/usegas.h, config/svr3.h, config/pdp11/pdp11-protos.h,
583         config/pdp11/2bsd.h, config/pdp11/pdp11.md, config/pdp11/pdp11.c,
584         config/pdp11/pdp11.opt, config/pdp11/pdp11-modes.def,
585         config/pdp11/pdp11.h, config/avr/rtems.h, config/avr/avr-protos.h,
586         config/avr/predicates.md, config/avr/constraints.md,
587         config/avr/avr.md, config/avr/avr.c, config/avr/avr.opt,
588         config/avr/avr.h, config/sol2-protos.h, config/dbxelf.h,
589         config/lynx.opt, config/crx/crx.h, config/crx/crx-protos.h,
590         config/crx/crx.md, config/crx/crx.c, config/crx/crx.opt,
591         config/c4x/c4x-c.c, config/c4x/c4x.c, config/c4x/c4x.opt,
592         config/c4x/c4x-modes.def, config/c4x/rtems.h,
593         config/c4x/predicates.md, config/c4x/c4x.h,
594         config/c4x/c4x-protos.h, config/c4x/c4x.md, config/kfreebsd-gnu.h,
595         config/xtensa/predicates.md, config/xtensa/xtensa.c,
596         config/xtensa/linux.h, config/xtensa/xtensa.h,
597         config/xtensa/elf.h, config/xtensa/xtensa.md,
598         config/xtensa/xtensa.opt, config/xtensa/constraints.md,
599         config/xtensa/xtensa-protos.h, config/dbx.h,
600         config/stormy16/predicates.md, config/stormy16/stormy16.md,
601         config/stormy16/stormy16.c, config/stormy16/stormy16.opt,
602         config/stormy16/stormy16.h, config/stormy16/stormy16-protos.h,
603         config/host-solaris.c, config/fr30/fr30.h,
604         config/fr30/predicates.md, config/fr30/fr30-protos.h,
605         config/fr30/fr30.md, config/fr30/fr30.c, config/fr30/fr30.opt,
606         config/vxworksae.h, config/sol2-c.c, config/lynx.h,
607         config/m68hc11/m68hc11-protos.h, config/m68hc11/predicates.md,
608         config/m68hc11/m68hc11.md, config/m68hc11/m68hc11.c,
609         config/m68hc11/m68hc11.opt, config/m68hc11/m68hc11.h,
610         config/m68hc11/m68hc12.h, config/openbsd-oldgas.h,
611         config/host-linux.c, config/interix3.h, config/cris/cris.c,
612         config/cris/predicates.md, config/cris/linux.h,
613         config/cris/cris.h, config/cris/aout.h, config/cris/cris.md,
614         config/cris/linux.opt, config/cris/cris.opt, config/cris/elf.opt,
615         config/cris/aout.opt, config/cris/cris-protos.h,
616         config/vxworks-dummy.h, config/netbsd.h, config/netbsd-elf.h,
617         config/iq2000/iq2000.h, config/iq2000/predicates.md,
618         config/iq2000/iq2000-protos.h, config/iq2000/iq2000.md,
619         config/iq2000/iq2000.c, config/iq2000/iq2000.opt,
620         config/host-darwin.c, config/mt/mt.md, config/mt/mt.c,
621         config/mt/mt.opt, config/mt/t-mt, config/mt/mt.h,
622         config/mt/mt-protos.h, config/svr4.h, config/host-darwin.h,
623         config/chorus.h, config/mn10300/mn10300.c,
624         config/mn10300/mn10300.opt, config/mn10300/predicates.md,
625         config/mn10300/mn10300.h, config/mn10300/linux.h,
626         config/mn10300/constraints.md, config/mn10300/mn10300-protos.h,
627         config/mn10300/mn10300.md, config/ia64/predicates.md,
628         config/ia64/itanium1.md, config/ia64/unwind-ia64.h,
629         config/ia64/ia64-c.c, config/ia64/sync.md, config/ia64/ia64.c,
630         config/ia64/itanium2.md, config/ia64/ia64.h, config/ia64/vect.md,
631         config/ia64/freebsd.h, config/ia64/ia64.md,
632         config/ia64/ia64-modes.def, config/ia64/constraints.md,
633         config/ia64/hpux.h, config/ia64/ia64-protos.h, config/windiss.h,
634         config/gofast.h, config/rtems.h, config/sol2-10.h,
635         config/m68k/predicates.md, config/m68k/m68k.md,
636         config/m68k/linux.h, config/m68k/m68k-modes.def,
637         config/m68k/print-sysroot-suffix.sh, config/m68k/m68k-protos.h,
638         config/m68k/coff.h, config/m68k/m68k-none.h, config/m68k/ieee.opt,
639         config/m68k/openbsd.h, config/m68k/m68k-aout.h,
640         config/m68k/m68k.opt, config/m68k/m68020-elf.h,
641         config/m68k/m68kelf.h, config/m68k/m68k-devices.def,
642         config/m68k/uclinux-oldabi.h, config/m68k/m68k.c,
643         config/m68k/constraints.md, config/m68k/rtemself.h,
644         config/m68k/netbsd-elf.h, config/m68k/m68k.h,
645         config/m68k/uclinux.h, config/rs6000/power4.md,
646         config/rs6000/host-darwin.c, config/rs6000/6xx.md,
647         config/rs6000/linux.h, config/rs6000/eabi.h,
648         config/rs6000/aix41.opt, config/rs6000/xcoff.h,
649         config/rs6000/secureplt.h, config/rs6000/linuxspe.h,
650         config/rs6000/eabialtivec.h, config/rs6000/8540.md,
651         config/rs6000/darwin8.h, config/rs6000/kaos-ppc.h,
652         config/rs6000/windiss.h, config/rs6000/603.md,
653         config/rs6000/aix41.h, config/rs6000/cell.md,
654         config/rs6000/mpc.md, config/rs6000/aix43.h, config/rs6000/beos.h,
655         config/rs6000/gnu.h, config/rs6000/rtems.h, config/rs6000/aix.opt,
656         config/rs6000/darwin.md, config/rs6000/darwin64.h,
657         config/rs6000/default64.h, config/rs6000/7xx.md,
658         config/rs6000/darwin.opt, config/rs6000/spe.md,
659         config/rs6000/rs6000.opt, config/rs6000/rs6000-c.c,
660         config/rs6000/rios2.md, config/rs6000/linuxaltivec.h,
661         config/rs6000/7450.md, config/rs6000/linux64.h,
662         config/rs6000/constraints.md, config/rs6000/440.md,
663         config/rs6000/darwin.h, config/rs6000/host-ppc64-darwin.c,
664         config/rs6000/rs6000.c, config/rs6000/aix52.h,
665         config/rs6000/rs6000.h, config/rs6000/power6.md,
666         config/rs6000/predicates.md, config/rs6000/altivec.md,
667         config/rs6000/aix64.opt, config/rs6000/rios1.md,
668         config/rs6000/rs6000-modes.def, config/rs6000/rs64.md,
669         config/rs6000/eabisim.h, config/rs6000/sysv4le.h,
670         config/rs6000/darwin7.h, config/rs6000/dfp.md,
671         config/rs6000/linux64.opt, config/rs6000/sync.md,
672         config/rs6000/vxworksae.h, config/rs6000/power5.md,
673         config/rs6000/lynx.h, config/rs6000/biarch64.h,
674         config/rs6000/rs6000.md, config/rs6000/sysv4.opt,
675         config/rs6000/eabispe.h, config/rs6000/e500.h,
676         config/rs6000/freebsd.h, config/rs6000/rs6000-protos.h,
677         config/rs6000/netbsd.h, config/rs6000/e500-double.h,
678         config/rs6000/aix.h, config/rs6000/vxworks.h,
679         config/rs6000/40x.md, config/rs6000/aix51.h,
680         config/rs6000/sysv4.h, config/arc/arc-protos.h, config/arc/arc.md,
681         config/arc/arc.c, config/arc/arc.opt, config/arc/arc-modes.def,
682         config/arc/arc.h, config/mcore/mcore-elf.h,
683         config/mcore/mcore-protos.h, config/mcore/predicates.md,
684         config/mcore/mcore.md, config/mcore/mcore.c,
685         config/mcore/mcore.opt, config/mcore/mcore.h,
686         config/mcore/mcore-pe.h, config/darwin.c, config/freebsd-nthr.h,
687         config/score/predicates.md, config/score/score-version.h,
688         config/score/score-protos.h, config/score/misc.md,
689         config/score/elf.h, config/score/score.c, config/score/mac.md,
690         config/score/score7.md, config/score/score.h,
691         config/score/score-conv.h, config/score/score-mdaux.c,
692         config/score/score.md, config/score/score.opt,
693         config/score/score-modes.def, config/score/score-mdaux.h,
694         config/score/mul-div.S, config/arm/uclinux-elf.h,
695         config/arm/semi.h, config/arm/ecos-elf.h, config/arm/arm1020e.md,
696         config/arm/symbian.h, config/arm/linux-elf.h,
697         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
698         config/arm/elf.h, config/arm/aout.h, config/arm/arm.c,
699         config/arm/thumb2.md, config/arm/vec-common.md, config/arm/coff.h,
700         config/arm/strongarm-pe.h, config/arm/arm.h,
701         config/arm/cortex-a8-neon.md, config/arm/semiaof.h,
702         config/arm/cortex-a8.md, config/arm/uclinux-eabi.h,
703         config/arm/arm-modes.def, config/arm/linux-eabi.h,
704         config/arm/rtems-elf.h, config/arm/neon-schedgen.ml,
705         config/arm/arm-cores.def, config/arm/arm-protos.h,
706         config/arm/vfp.md, config/arm/aof.h, config/arm/linux-gas.h,
707         config/arm/wince-pe.h, config/arm/neon.md,
708         config/arm/constraints.md, config/arm/neon.ml,
709         config/arm/xscale-elf.h, config/arm/strongarm-coff.h,
710         config/arm/arm.opt, config/arm/arm926ejs.md,
711         config/arm/predicates.md, config/arm/iwmmxt.md,
712         config/arm/arm_neon.h, config/arm/unknown-elf.h,
713         config/arm/kaos-arm.h, config/arm/bpabi.h, config/arm/pe.opt,
714         config/arm/neon-testgen.ml, config/arm/arm.md,
715         config/arm/xscale-coff.h, config/arm/pe.c,
716         config/arm/arm-generic.md, config/arm/pe.h,
717         config/arm/kaos-strongarm.h, config/arm/freebsd.h,
718         config/arm/neon-docgen.ml, config/arm/netbsd.h, config/arm/fpa.md,
719         config/arm/strongarm-elf.h, config/arm/cirrus.md,
720         config/arm/netbsd-elf.h, config/arm/vxworks.h,
721         config/arm/neon-gen.ml, config/kaos.h, config/darwin-driver.c,
722         config/pa/predicates.md, config/pa/pa64-hpux.h,
723         config/pa/pa-hpux.opt, config/pa/som.h, config/pa/pa-hpux1010.opt,
724         config/pa/pa-hpux1111.opt, config/pa/pa-pro-end.h,
725         config/pa/elf.h, config/pa/fptr.c, config/pa/pa64-linux.h,
726         config/pa/pa.md, config/pa/pa.opt, config/pa/pa-hpux.h,
727         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
728         config/pa/pa-hpux1010.h, config/pa/pa-protos.h,
729         config/pa/pa-osf.h, config/pa/pa-hpux1111.h, config/pa/pa-64.h,
730         config/pa/milli64.S, config/pa/pa.c, config/pa/pa-linux.h,
731         config/pa/pa.h, config/pa/pa32-linux.h, config/pa/pa64-hpux.opt,
732         config/pa/pa64-regs.h, config/pa/pa-modes.def,
733         config/pa/constraints.md, config/darwin9.h, config/mips/4100.md,
734         config/mips/linux.h, config/mips/elfoabi.h, config/mips/elf.h,
735         config/mips/sdb.h, config/mips/windiss.h, config/mips/rtems.h,
736         config/mips/3000.md, config/mips/iris5.h, config/mips/5000.md,
737         config/mips/7000.md, config/mips/9000.md, config/mips/4600.md,
738         config/mips/linux64.h, config/mips/elforion.h,
739         config/mips/constraints.md, config/mips/generic.md,
740         config/mips/predicates.md, config/mips/4300.md,
741         config/mips/mips-ps-3d.md, config/mips/iris.h, config/mips/24k.md,
742         config/mips/mips.md, config/mips/mips.opt, config/mips/4k.md,
743         config/mips/5k.md, config/mips/vr4120-div.S,
744         config/mips/openbsd.h, config/mips/iris6.h, config/mips/4000.md,
745         config/mips/mips-protos.h, config/mips/6000.md,
746         config/mips/mips.c, config/mips/mips.h, config/mips/r3900.h,
747         config/mips/74k.md, config/mips/netbsd.h, config/mips/vxworks.h,
748         config/mips/mips-modes.def, config/mips/vr.h,
749         config/soft-fp/t-softfp, config/openbsd.h, config/ptx4.h,
750         config/freebsd-spec.h, config/vax/vax.c, config/vax/openbsd.h,
751         config/vax/vax.h, config/vax/elf.h, config/vax/vax.md,
752         config/vax/bsd.h, config/vax/vax.opt, config/vax/vax-modes.def,
753         config/vax/openbsd1.h, config/vax/netbsd.h,
754         config/vax/vax-protos.h, config/vax/netbsd-elf.h,
755         config/vax/vaxv.h, config/vax/ultrix.h, config/freebsd.h,
756         config/h8300/rtems.h, config/h8300/predicates.md,
757         config/h8300/h8300.c, config/h8300/h8300.h, config/h8300/elf.h,
758         config/h8300/h8300.md, config/h8300/h8300.opt,
759         config/h8300/coff.h, config/h8300/h8300-protos.h,
760         config/v850/v850.md, config/v850/predicates.md,
761         config/v850/v850-c.c, config/v850/v850.c, config/v850/v850.opt,
762         config/v850/v850.h, config/v850/v850-protos.h, config/vxworks.c,
763         config/knetbsd-gnu.h, config/sol2-6.h, config/vxworks.h,
764         config/mmix/mmix.h, config/mmix/predicates.md,
765         config/mmix/mmix-protos.h, config/mmix/mmix.md,
766         config/mmix/mmix.c, config/mmix/mmix.opt,
767         config/mmix/mmix-modes.def, config/bfin/bfin.opt,
768         config/bfin/rtems.h, config/bfin/bfin-modes.def,
769         config/bfin/predicates.md, config/bfin/bfin-protos.h,
770         config/bfin/bfin.c, config/bfin/bfin.h, config/bfin/bfin.md:
771         Likewise.
772
773 2007-08-02  Richard Sandiford  <richard@codesourcery.com>
774
775         * emit-rtl.c (reset_used_decls): Rename to...
776         (set_used_decls): ...this.  Set the used flag rather than clearing it.
777         (unshare_all_rtl_again): Update accordingly.  Set flags on argument
778         DECL_RTLs rather than resetting them.
779
780 2007-08-02  Andreas Krebbel  <krebbel1@de.ibm.com>
781
782         * config/s390/s390.md ("*xordi3_cconly"): Change xr to xg.
783
784 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
785
786         * reload.c (find_reloads_address_part):  Pass correct MEMREFLOC
787         argument to find_reloads_address.
788
789 2007-08-01  Daniel Jacobowitz  <dan@codesourcery.com>
790
791         PR tree-optimization/32919
792         * tree-ssa-sccvn.c (visit_phi): Do not visit abnormal PHIs.
793         * tree-ssa-coalesce.c (ssa_conflicts_dump): New.
794         (coalesce_ssa_name): Call it.
795
796 2007-08-01  Sandra Loosemore  <sandra@codesourcery.com>
797             David Ung  <davidu@mips.com>
798
799         * config/mips/mips16.S (__mips16_unordsf2, __mips16_floatunsisf): New.
800         (__mips16_unorddf2, __mips16_floatunsidf): New.
801         * config/mips/mips.c (mips_init_libfuncs): Add optab entries for
802         above functions.
803         * config/mips/t-libgcc-mips16 (LIB1ASMFUNCS): Add new functions.
804
805 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
806
807         * tree-pretty-print.c (dump_generic_node): Dump OMP_SECTIONS_SWITCH.
808         Display new operands of OMP_SECTIONS and OMP_CONTINUE.
809         * tree.h (OMP_SECTIONS_CONTROL): New macro.
810         (OMP_DIRECTIVE_P): Add OMP_SECTIONS_SWITCH.
811         * omp-low.c (get_ws_args_for, determine_parallel_type,
812         expand_omp_for_generic, expand_omp_for_static_nochunk,
813         expand_omp_for_static_chunk, expand_omp_for, expand_omp_sections):
814         Work with more precise CFG.
815         (build_omp_regions_1): Handle OMP_SECTIONS_SWITCH.
816         (lower_omp_sections): Emit OMP_SECTIONS_SWITCH.  Add arguments to
817         OMP_CONTINUE.
818         * tree-gimple.c (is_gimple_stmt): Handle OMP_SECTIONS_SWITCH.
819         * gimple-low.c (lower_stmt): Ditto.
820         * tree-inline.c (estimate_num_insns_1): Ditto.
821         * tree.def (OMP_SECTIONS, OMP_CONTINUE): Added new operands.
822         (OMP_SECTIONS_SWITCH): New.
823         * tree-cfgcleanup.c (cleanup_omp_return): New.
824         (cleanup_tree_cfg_bb): Call cleanup_omp_return.
825         * tree-cfg.c (make_edges): Create back edges for OMP_CONTINUE
826         and exit edge for OMP_FOR.  Handle OMP_SECTIONS_SWITCH.
827         (tree_redirect_edge_and_branch): Handle omp constructs.
828
829         * fortran/trans-openmp.c (gfc_trans_omp_sections): Build OMP_SECTIONS
830         with three arguments.
831
832 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
833
834         * tree-cfg.c (tree_merge_blocks): Preserve loop exit phi nodes only
835         in loop closed ssa.
836
837 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
838
839         * tree-ssa-threadupdate.c (thread_through_all_blocks): Record that
840         the loop structures may need fixing.
841         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
842         New functions.
843         (cleanup_tree_cfg_loop): Removed.
844         (cleanup_tree_cfg): If loops need fixing, call repair_loop_structures.
845         * tree-predcom.c (tree_predictive_commoning): Return TODO_cleanup_cfg
846         instead of running cleanup_tree_cfg_loop.
847         * cfgloop.h (LOOPS_NEED_FIXUP): New constant.
848         * tree-flow.h (cleanup_tree_cfg_loop): Declaration removed.
849         (tree_predictive_commoning): Declaration changed.
850         * passes.c (execute_function_todo): Do not use cleanup_tree_cfg_loop.
851
852 2007-08-01  Zdenek Dvorak  <ook@ucw.cz>
853
854         * doc/invoke.texi (l1-cache-size): Update documentation.
855         (l2-cache-size): Document.
856         * params.h (L2_CACHE_SIZE): New macro.
857         * tree-ssa-loop-prefetch.c (L1_CACHE_SIZE_BYTES): Reflect
858         that L1_CACHE_SIZE is in kB now.
859         (L2_CACHE_SIZE_BYTES): New macro.
860         (tree_ssa_prefetch_arrays): Show size in kB.
861         * config/i386/i386.h (struct processor_costs): Add l1_cache_size
862         and l2_cache_size fields.
863         * config/i386/driver-i386.c (describe_cache): Detect cache size
864         in kB.
865         * config/i386/i386.c (size_cost, i386_cost, i486_cost,pentium_cost,
866         pentiumpro_cost, geode_cost, k6_cost, athlon_cost, k8_cost,
867         amdfam10_cost, pentium4_cost, nocona_cost, core2_cost,
868         generic64_cost, generic32_cost): Add l1_cache_size and l2_cache_size.
869         (override_options): Set l1-cache-size and l2-cache-size to default
870         values if not specified otherwise.
871         * params.def (PARAM_L1_CACHE_SIZE): Change to set in kB.
872         (PARAM_L2_CACHE_SIZE): New.
873
874 2007-08-01  Nigel Stephens  <nigel@mips.com>
875             David Ung  <davidu@mips.com>
876             Thiemo Seufer  <ths@mips.com>
877             Chris Dearman  <chris@mips.com>
878             Richard Sandiford  <richard@codesourcery.com>
879
880         * config.gcc (mips*-sde-elf*): New stanza.
881         (mipsisa32-*-elf*, mipsisa32el-*-elf*, mipsisa32r2-*-elf*)
882         (mipsisa32r2el-*-elf*, mipsisa64-*-elf*, mipsisa64el-*-elf*)
883         (mipsisa64sb1-*-elf*, mipsisa64sb1el-*-elf*, mips-*-elf*)
884         (mipsel-*-elf*, mips64-*-elf*, mips64el-*-elf*, mips64orion-*-elf*)
885         (mips64orionel-*-elf*, mips*-*-rtems*, mips-wrs-windiss)
886         (mipstx39-*-elf*, mipstx39el-*-elf*): Add mips/t-libgcc-mips16
887         to tmake_file.
888         * config/mips/sde.h: New file.
889         * config/mips/t-libgcc-mips16: Likewise.
890         * config/mips/t-sde: Likewise.
891         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Remove settings
892         of _ABIN32, _ABI64, _ABIO32, _MIPS_SIM, _MIPS_SZLONG, _MIPS_SZPTR,
893         _MIPS_FPSET and _MIPS_SZINT.
894         * config/mips/iris.h (TARGET_OS_CPP_BUILTINS): Likewise.
895         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Remove separate
896         insertion of a default -mips option.  Use MIPS_32BIT_OPTION_SPEC.
897         * config/mips/t-isa3264 (LIB1ASMSRC, LIB1ASMFUNCS): Delete.
898         * config/mips/t-r3900 (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
899         * config/mips/t-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
900         * config/mips/mips.h (TARGET_CPU_CPP_BUITINS): Define _ABIO32,
901         _ABIN32, _ABI64, _ABIO64, _MIPS_SIM, _MIPS_SZINT, _MIPS_SZLONG,
902         _MIPS_SZPTR and _MIPS_FPSET.
903         (MIPS_ISA_LEVEL_SPEC): Inject the default -mips option if no
904         architecture is specified.
905         (MIPS_32BIT_OPTION_SPEC): New macro.
906
907 2007-07-31  Dan Hipschman  <dsh@google.com>
908
909         * gcc.c (end_going_arg): New function.
910         (do_spec_2): Use it.
911         (do_spec_1): Use it.
912
913 2007-07-31  H.J. Lu  <hongjiu.lu@intel.com>
914
915         * ddg.c (add_cross_iteration_register_deps): Declare bb_info
916         only if ENABLE_CHECKING is defined.
917
918 2007-07-31  Kenneth Zadeck <zadeck@naturalbridge.com>
919
920         * df.h (DF_RU, DF_RU_BB_INFO, df_ru_bb_info, df_ru,
921         df_ru_add_problem, df_ru_get_bb_info): Removed.
922         (DF_RD, DF_UREC, DF_CHAIN, DF_NOTE): Renumbered.
923         * df-problems.c (df_ru_problem_data, df_ru_set_bb_info,
924         df_ru_free_bb_info, df_ru_alloc,
925         df_ru_bb_local_compute_process_def,
926         df_ru_bb_local_compute_process_use, df_ru_bb_local_compute,
927         df_ru_local_compute, df_ru_init_solution, df_ru_confluence_n,
928         df_ru_transfer_function, df_ru_free, df_ru_start_dump,
929         df_ru_top_dump, df_ru_bottom_dump, df_problem problem_RU,
930         df_ru_add_problem): Removed.
931
932 2007-07-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
933
934         PR target/32847
935         * pa.md (casesi32): Use match_scratch.  Revise insn condition.
936         (casesi32p, casesi64p): Likewise.
937         (casesi): Adjust for above.
938
939 2007-07-31  Richard Sandiford  <richard@codesourcery.com>
940
941         * mode-switching.c (create_pre_exit): Don't search past calls.
942
943 2007-07-31  Sandra Loosemore  <sandra@codesourcery.com>
944
945         * config/mips/mips.h (ISA_HAS_SYNCI):  Add !TARGET_MIPS16 test.
946
947 2007-07-31  Revital Eres  <eres@il.ibm.com>
948
949         * ddg.c (add_deps_for_def): Rename to...
950         (add_cross_iteration_register_deps): This.  Change implementation
951         to use only reaching def and def-use chains to construct the
952         inter loop dependencies.
953         (add_deps_for_use): Remove function.
954         (build_inter_loop_deps): Call add_cross_iteration_register_deps
955         function to build the inter loop dependencies.
956         * modulo-sched.c (sms_schedule): Build only
957         reaching def and def-use chains for the propose of the ddg
958         construction.
959
960 2007-07-31  Julian Brown  <julian@codesourcery.com>
961
962         * config/arm/neon.md (vec_set<mode>_internal, vec_setv2di_internal):
963         New define_insns. Use correct RTL.
964         (vec_set<mode>): Write as expander.
965
966 2007-07-31  Razya Ladelsky  <razya@il.ibm.com>
967
968         * matrix-reorg.c (analyze_matrix_allocation_site): Avoid referring 
969         to an unallocated space.
970
971 2007-07-30  Jan Sjodin  <jan.sjodin@amd.com>
972
973         * tree-data-ref.c
974         (split_constant_offset): Enable split_constant_offset to extract
975         constants from other statements.
976         * tree-vect-transform.c
977         (vect_create_addr_base_for_vector_ref): Generate data_ref_base
978         to a temp var. Force base_offset to be simple.
979
980 2007-07-30  Seongbae Park <seongbae.park@gmail.com>
981
982         * df-scan.c (df_scan_verify): Remove artificial limit on
983         the number of blocks for verification.
984         * df-problems.c (df_lr_bb_local_compute, df_simulate_find_defs,
985         df_simulate_defs): Avoid unnecessary insn checking for defs.
986
987 2007-07-29  Mark Mitchell  <mark@codesourcery.com>
988
989         gcc/
990         * config/m68k/lb1sf68.asm (FUNC): New macro.
991         (__mulsi3): Use it.
992         (__udivsi3): Likewise.
993         (__divsi3): Likewise.
994         (__umodsi3): Likewise.
995         (__modsi3): Likewise.
996         (__subdf3): Likewise.
997         (__adddf3): Likewise.
998         (__muldf3): Likewise.
999         (__divdf3): Likewise.
1000         (__negdf2): Likewise.
1001         (__cmpdf2): Likewise.
1002         (__subsf3): Likewise.
1003         (__addsf3): Likewise.
1004         (__mulsf3): Likewise.
1005         (__divsf3): Likewise.
1006         (__negsf2): Likewise.
1007         (__cmpsf2): Likewise.
1008         (__eqdf2): Likewise.
1009         (__nedf2): Likewise.
1010         (__gtdf2): Likewise.
1011         (__gedf2): Likewise.
1012         (__ltdf2): Likewise.
1013         (__ledf2): Likewise.
1014         (__eqsf2): Likewise.
1015         (__nesf2): Likewise.
1016         (__gtsf2): Likewise.
1017         (__gesf2): Likewise.
1018         (__ltsf2): Likewise.
1019         (__lesf2): Likewise.
1020
1021 2007-07-30  Ollie Wild  <aaw@google.com>
1022
1023         * c-ppoutput.c (print_lines_directives_only): New function.
1024         (scan_translation_unit_directives_only): New function.
1025         (preprocess_file): Add call to scan_translation_unit_directives_only.
1026         * c-opts.c (c_common_handle_option): Add OPT_fdirectives_only.
1027         (sanitize_cpp_opts): Add default flag_dump_macros setting for
1028         -fdirectives-only.  Add errors for -fdirectives-only conflict with
1029         -Wunused-macros and -traditional.
1030         (finish_options): Add builtin macro initialization for
1031         -fdirectives-only + -fpreprocessed.
1032         * c.opt (fdirectives-only): New.
1033         * doc/cppopts.texi (fdirectives-only): New.
1034
1035 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1036
1037         * alias.c (record_set, memory_modified_1): Constify.
1038         * bt-load.c (note_btr_set): Likewise.
1039         * caller-save.c (mark_set_regs, add_stored_regs): Likewise.
1040         * combine.c (set_nonzero_bits_and_sign_copies,
1041         expand_field_assignment, record_dead_and_set_regs_1,
1042         use_crosses_set_p, reg_dead_at_p_1, can_combine_p,
1043         likely_spilled_retval_1): Likewise.
1044         * config/frv/frv.c (frv_registers_update_1, frv_io_check_address,
1045         frv_io_handle_set): Likewise.
1046         * config/mips/mips.c (mips_sim_record_set,
1047         vr4130_true_reg_dependence_p_1): Likewise.
1048         * config/mt/mt.c (insn_dependent_p_1): Likewise.
1049         * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
1050         * config/sh/sh.c (flow_dependent_p_1): Likewise.
1051         * cselib.c (cselib_invalidate_rtx_note_stores): Likewise.
1052         * dce.c (mark_nonreg_stores_1, mark_nonreg_stores_2): Likewise.
1053         * ddg.c (mark_mem_store): Likewise.
1054         * df-problems.c (df_urec_mark_reg_change): Likewise.
1055         * function.c (update_epilogue_consts): Likewise.
1056         * gcse.c (record_set_info, record_last_set_info,
1057         mems_conflict_for_gcse_p, canon_list_insert, reg_set_info,
1058         reg_clear_last_set): Likewise.
1059         * global.c (mark_reg_store, mark_reg_clobber, reg_becomes_live):
1060         Likewise.
1061         * jump.c (reversed_comparison_code_parts): Likewise.
1062         * local-alloc.c (validate_equiv_mem_from_store, no_equiv,
1063         reg_is_set): Likewise.
1064         * loop-iv.c (mark_altered): Likewise.
1065         * mode-switching.c (reg_becomes_live): Likewise.
1066         * optabs.c (no_conflict_move_test): Likewise.
1067         * postreload-gcse.c (record_last_set_info, find_mem_conflicts):
1068         Likewise.
1069         * postreload.c (reload_combine_note_store, move2add_note_store):
1070         Likewise.
1071         * regmove.c (flags_set_1): Likewise.
1072         * regrename.c (note_sets, kill_clobbered_value, kill_set_value):
1073         Likewise.
1074         * reload1.c (mark_not_eliminable, forget_old_reloads_1):
1075         Likewise. 
1076         * resource.c (update_live_status): Likewise.
1077         * rtl.h (set_of, note_stores): Likewise.
1078         * rtlanal.c (set_of_1, parms_set, struct set_of_data, set_of,
1079         note_stores, parms_set): Likewise.
1080         * sched-rgn.c (sets_likely_spilled_1): Likewise.
1081         * stack-ptr-mod.c (notice_stack_pointer_modification_1):
1082         Likewise. 
1083         * var-tracking.c (count_stores, add_stores): Likewise.
1084
1085 2007-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1086
1087         * alias.c (mems_in_disjoint_alias_sets_p,
1088         fixed_scalar_and_varying_struct_p, aliases_everything_p,
1089         nonoverlapping_component_refs_p, nonoverlapping_memrefs_p,
1090         write_dependence_p, mems_in_disjoint_alias_sets_p,
1091         read_dependence, true_dependence, canon_true_dependence,
1092         anti_dependence, output_dependence): Constify.
1093         * combine.c (extended_count): Likewise.
1094         * cse.c (cse_rtx_varies_p, hash_rtx, exp_equiv_p): Likewise.
1095         * cselib.c (get_value_hash, references_value_p,
1096         cselib_reg_set_mode, cselib_rtx_varies_p): Likewise.
1097         * cselib.h (cselib_reg_set_mode, references_value_p): Likewise.
1098         * emit-rtl.c (mem_expr_equal_p, active_insn_p): Likewise.
1099         * function.c (contains, prologue_epilogue_contains,
1100         sibcall_epilogue_contains): Likewise. 
1101         * jump.c (simplejump_p, condjump_p, condjump_in_parallel_p,
1102         pc_set, any_uncondjump_p, any_condjump_p, onlyjump_p,
1103         only_sets_cc0_p, sets_cc0_p, rtx_renumbered_equal_p, true_regnum,
1104         reg_or_subregno): Likewise.
1105         * recog.c (asm_noperands): Likewise.
1106         * reload1.c (function_invariant_p): Likewise.
1107         * rtl.h (mem_expr_equal_p, active_insn_p, rtx_varies_p,
1108         rtx_addr_varies_p, asm_noperands, exp_equiv_p, hash_rtx,
1109         condjump_p, any_condjump_p, any_uncondjump_p, pc_set,
1110         simplejump_p, onlyjump_p, only_sets_cc0_p, sets_cc0_p,
1111         true_regnum, reg_or_subregno, condjump_in_parallel_p,
1112         extended_count, prologue_epilogue_contains,
1113         sibcall_epilogue_contains, function_invariant_p, true_dependence,
1114         canon_true_dependence, read_dependence, anti_dependence,
1115         output_dependence): Likewise.
1116         * rtlanal.c (rtx_varies_p, rtx_addr_varies_p): Likewise.
1117
1118 2007-07-30  Julian Brown  <julian@codesourcery.com>
1119
1120         * config/arm/neon.md (V_ext): New mode attribute.
1121         (neon_vget_lane<mode>): Replace with define_expand.
1122         (neon_vget_lane<mode>_sext_internal)
1123         (neon_vget_lane<mode>_zext_internal): New define_insns for double
1124         and quad precision vectors.
1125         (neon_vget_lanedi): Add bounds check. Remove dead comment.
1126         * config/arm/neon.ml (get_lane): Make 32-bit get-lane intrinsics
1127         have typeless 32-bit result.
1128
1129 2007-07-30  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1130
1131         PR tree-opt/32527
1132         * tree-affine.h (aff_tree): The type of rest is sizetype for types
1133         of pointers.
1134         * tree-affine.c (aff_combination_scale): If type is a pointer type,
1135         use sizetype for rest.
1136         (aff_combination_add_elt): Likewise. Don't specialize pointer types.
1137         (aff_combination_convert): Don't convert rest for pointer types.
1138
1139 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
1140
1141         * Makefile.in (tree-ssa-alias.o): Add alloc-pool.h
1142
1143         * tree-ssa-alias.c: Add alloc-pool.h.
1144         (init_alias_info): Free alias_bitmap_obstack.
1145         (delete_alias_info): Call delete_mem_ref_stats.
1146         (get_mem_sym_stats_for): Use alloc_pool.
1147         (init_mem_ref_stats): Do not delete mem_ref_stats here.
1148         (delete_mem_sym_stats): Removed.
1149         
1150 2007-07-29  Sebastian Pop  <sebpop@gmail.com>
1151
1152         * tree-data-ref.c (add_multivariate_self_dist): Parametric access
1153         functions cannot be represented as classical distance vectors.
1154
1155 2007-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1156
1157         * attribs.c (hash_attr, eq_attr, init_attributes): Constify.
1158         * builtins.c (validate_arg, builtin_mathfn_code,
1159         validate_arglist): Likewise.
1160         * calls.c (call_expr_flags): Likewise.
1161         * combine.c (reg_nonzero_bits_for_combine,
1162         reg_num_sign_bit_copies_for_combine, get_last_value,
1163         reg_truncated_to_mode): Likewise.
1164         * emit-rtl.c (subreg_lowpart_p): Likewise.
1165         * expr.c (highest_pow2_factor_for_target,
1166         categorize_ctor_elements_1, categorize_ctor_elements,
1167         count_type_elements, contains_packed_reference,
1168         highest_pow2_factor, highest_pow2_factor_for_target): Likewise.
1169         * fold-const.c (may_negate_without_overflow_p, int_const_binop,
1170         fold_convertible_p, operand_equal_p, tree_swap_operands_p,
1171         native_encode_int, native_encode_real, native_encode_complex,
1172         native_encode_vector, native_encode_expr, native_interpret_int,
1173         native_interpret_real, native_interpret_complex,
1174         native_interpret_vector, native_interpret_expr): Likewise.
1175         * function.c (use_register_for_decl): Likewise.
1176         * gimplify.c (get_name): Likewise.
1177         * langhooks-def.h (lhd_return_null_const_tree): New.
1178         (LANG_HOOKS_GET_CALLEE_FNDECL): Use it.
1179         * langhooks.c (lhd_return_null_const_tree): New.
1180         * langhooks.h (lang_get_callee_fndecl): Constify.
1181         * output.h (constructor_static_from_elts_p): Likewise.
1182         * rtl-factoring.c (gen_symbol_ref_rtx_for_label): Likewise.
1183         * rtl.h (nonzero_bits, num_sign_bit_copies, truncated_to_mode,
1184         subreg_lowpart_p, noop_move_p, struct rtl_hooks): Likewise.
1185         * rtlanal.c (cached_nonzero_bits, nonzero_bits1,
1186         cached_num_sign_bit_copies, num_sign_bit_copies1, noop_move_p,
1187         nonzero_bits, num_sign_bit_copies, truncated_to_mode): Likewise.
1188         * rtlhooks-def.h (reg_nonzero_bits_general,
1189         reg_num_sign_bit_copies_general, reg_truncated_to_mode_general):
1190         Likewise. 
1191         * rtlhooks.c (reg_num_sign_bit_copies_general,
1192         reg_nonzero_bits_general, reg_truncated_to_mode_general):
1193         Likewise. 
1194         * stmt.c (warn_if_unused_value, is_body_block): Likewise.
1195         * stor-layout.c (mode_for_size_tree): Likewise.
1196         * tree-ssa-loop-im.c (memref_eq): Likewise.
1197         * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): Likewise.
1198         * tree.c (contains_placeholder_p, type_list_equal,
1199         simple_cst_equal, get_callee_fndecl, operand_equal_for_phi_arg_p):
1200         Likewise. 
1201         * tree.h (tree_int_cst_sign_bit, may_negate_without_overflow_p,
1202         mode_for_size_tree, categorize_ctor_elements, count_type_elements,
1203         contains_placeholder_p, contains_packed_reference,
1204         get_callee_fndecl, operand_equal_for_phi_arg_p,
1205         warn_if_unused_value, is_body_block, native_encode_expr,
1206         native_interpret_expr, fold_convertible_p, operand_equal_p,
1207         int_const_binop, tree_swap_operands_p, builtin_mathfn_code,
1208         validate_arglist, simple_cst_equal, type_list_equal,
1209         use_register_for_decl, call_expr_flags, get_name,
1210         highest_pow2_factor): Likewise.
1211         (const_call_expr_arg_iterator_d,
1212         init_const_call_expr_arg_iterator, next_const_call_expr_arg,
1213         first_const_call_expr_arg, more_const_call_expr_args_p,
1214         FOR_EACH_CONST_CALL_EXPR_ARG): New.
1215         * varasm.c (constructor_static_from_elts_p): Constify.
1216
1217 2007-07-28  Kazu Hirata  <kazu@codesourcery.com>
1218
1219         * cfglayout.c, config/arm/arm.c, config/arm/cortex-a8.md,
1220         config/arm/neon-schedgen.ml, config/arm/neon.ml,
1221         config/arm/vec-common.md, config/ia64/div.md, cselib.c,
1222         df-core.c, df.h, dominance.c, optabs.c, opts.c, reg-stack.c,
1223         regstat.c, target.h, tree-ssa-live.c, tree-ssa-pre.c,
1224         tree-vect-transform.c, tree.def: Fix comment typos.  Follow
1225         spelling conventions.
1226         * doc/invoke.texi: Follow spelling conventions.
1227
1228 2007-07-29  Vladimir Yanovsky  <yanov@il.ibm.com>
1229             Revital Eres  <eres@il.ibm.com>
1230
1231         * modulo-sched.c (sms_schedule): Avoid loops which includes
1232         auto-increment instructions.
1233
1234 2007-07-28  Richard Guenther  <rguenther@suse.de>
1235
1236         PR middle-end/32920
1237         * fold-const.c (fold_cond_expr_with_comparison): Convert
1238         operand zero of MIN/MAX_EXPR to correct type.
1239
1240 2007-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1241
1242         * calls.c (special_function_p, setjmp_call_p, alloca_call_p,
1243         flags_from_decl_or_type): Constify.
1244         * gcc.c (do_spec_1): Likewise.
1245         * print-tree.c (dump_addr, print_node_brief): Likewise.
1246         * tree-cfg.c (stmt_starts_bb_p, is_ctrl_stmt, computed_goto_p,
1247         simple_goto_p, tree_can_make_abnormal_goto, stmt_starts_bb_p,
1248         tree_purge_all_dead_eh_edges): Likewise.
1249         * tree-flow.h (is_ctrl_stmt, computed_goto_p, simple_goto_p,
1250         tree_can_make_abnormal_goto, tree_purge_all_dead_eh_edges):
1251         Likewise. 
1252         * tree.c (expr_location, expr_has_location, expr_locus,
1253         expr_filename, expr_lineno, get_inner_array_type,
1254         fields_compatible_p): Likewise.
1255         * tree.h (get_inner_array_type, fields_compatible_p,
1256         expr_location, expr_has_location, expr_locus, expr_filename,
1257         expr_lineno, dump_addr, print_node_brief, flags_from_decl_or_type,
1258         setjmp_call_p, alloca_call_p): Likewise.
1259
1260 2007-07-28  Daniel Berlin  <dberlin@dberlin.org>
1261
1262         * timevar.def: Add TV_CALL_CLOBBER, TV_FLOW_SENSITIVE,
1263         TV_FLOW_INSENSITIVE.
1264
1265         * tree-ssa-alias.c (compute_call_clobbered): Push/pop
1266         TV_CALL_CLOBBER.
1267         (compute_flow_sensitive_aliasing): Ditto for TV_FLOW_SENSITIVE.
1268         (compute_flow_insensitive_aliasing): Ditto for
1269         TV_FLOW_INSENSITIVE.    
1270
1271 2007-07-27  Jan Hubicka  <jh@suse.cz>
1272
1273         * config/i386/i386.c (register_move_cost): Remove accidentally comitted
1274         #if 0 block.
1275
1276         * attribs.c: Include hashtab.h
1277         (attribute_hash): New.
1278         (substring): New structure.
1279         (extract_attribute_substring, substring_hash, hash_attr, eq_attr):
1280         New function.
1281         (init_attributes): Initialize attribute hash.
1282         (decl_attributes): Use attribute hash.
1283         * Makefile.in (attribs.c): Depend on hashtab.h.
1284
1285 2007-07-27  Steve Ellcey  <sje@cup.hp.com>
1286
1287         * config/ia64/vect.md (vec_initv2si): Remove bad BIG_ENDIAN test.
1288
1289 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
1290
1291         * doc/invoke.texi (mdsp, mdspr2): Document the __mips_dsp,
1292         __mips_dspr2 and __mips_dsp_rev macros.
1293         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dsp_rev.
1294
1295 2007-07-27  Douglas Gregor  <doug.gregor@gmail.com>
1296         
1297        * c-common.h (enum rid): Add RID_DECLTYPE, update RID_LAST_CXX0X.
1298
1299 2007-07-26  Kenneth Zadeck <zadeck@naturalbridge.com>
1300
1301         PR middle-end/32749
1302         
1303         * df-problems.c (df_create_unused_note): Removed do_not_gen parm
1304         and the updating of the live and do_not_gen sets.
1305         (df_note_bb_compute): Added updating of live and do_not_gen sets
1306         for regular defs so that the case of clobber inside conditional
1307         call is processed correctly.
1308         
1309 2007-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
1310
1311         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Generate the
1312         operands with compatible type.
1313
1314 2007-07-27  Richard Sandiford  <richard@codesourcery.com>
1315
1316         * expr.h (store_bit_field): Don't return a value.
1317         * expmed.c (check_predicate_volatile_ok): New function.
1318         (store_bit_field_1): New function, extracted from store_bit_field.
1319         Take a fallback_p argument and return true if the operation succeeded.
1320         Only use store_fixed_bit_field if fallback_p.  Don't recompute
1321         mode_for_extraction; use op_mode instead.  Try forcing memories
1322         into registers if the insv expander fails.
1323         (store_bit_field): Use store_bit_field_1 with fallback_p true.
1324         Don't return a value.
1325         (convert_extracted_bit_field): New function, extracted from
1326         store_bit_field.
1327         (extract_bit_field_1): Likewise.  Take a fallback_p argument
1328         and return NULL if the operation succeeded.  Only use
1329         extract_fixed_bit_field if fallback_p.  Only calculate one
1330         extraction mode.  Combine code for extv and extzv.  Try forcing
1331         memories into registers if the ext(z)v expander fails.
1332         (extract_bit_field): Use extract_bit_field_1 with fallback_p true.
1333
1334 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
1335
1336         * df.h (df_mw_hardreg): Turn df_ref_type and df_ref_flags
1337         into bitfields.
1338         (df_ref): Likewise.  Put regno with other integer fields.
1339
1340 2007-07-27  Richard Sandiford  <rsandifo@nildram.co.uk>
1341
1342         * df.h (df_mw_hardreg): Remove "loc" field.
1343         * df-scan.c (df_ref_record): Don't set it.  Remove redundant
1344         local variable.
1345         * df-problems.c (df_whole_mw_reg_unused_p): New function,
1346         split out from df_set_unused_notes_for_mw.  Return false for
1347         partial references.  Assert that mw_reg is a REG when returning true.
1348         (df_set_unused_notes_for_mw): Use it.  Use mw_reg instead of *loc.
1349         (df_whole_mw_reg_dead_p): New function, split out from
1350         df_set_dead_notes_for_mw.  Return false for partial references.
1351         Assert that mw_reg is a REG when returning true.
1352         (df_set_dead_notes_for_mw): Use it.  Use mw_reg instead of *loc.
1353         Remove redundant bitmap check.
1354
1355 2007-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1356
1357         * config/ia64/t-ia64 ($(T)crtbegin.o): Removed.
1358         ($(T)crtend.o): Likwise.
1359         ($(T)crtbeginS.o): Likwise.
1360         ($(T)crtendS.o): Likwise.
1361         ($(T)crtfastmath.o): Likwise.
1362
1363 2007-07-26  Zdenek Dvorak  <dvorakz@suse.cz>
1364
1365         * dominance.c (dom_computed, n_bbs_in_dom_tree): Removed.
1366         * function.h (dom_computed, n_bbs_in_dom_tree): New macros.
1367         * basic-block.h (struct control_flow_graph): Added x_dom_computed
1368         and x_n_bbs_in_dom_tree fields.
1369
1370 2007-07-26  Steve Ellcey  <sje@cup.hp.com>
1371
1372         PR tree-optimization/32087
1373         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
1374         Do not call scale_bbs_frequencies_int with prob of zero.
1375
1376 2007-07-26  Julian Brown  <julian@codesourcery.com>
1377
1378         * config/arm/arm-protos.h (neon_lane_bounds, neon_const_bounds)
1379         (neon_element_bits): Add prototypes.
1380         * config/arm/arm.c (bounds_check, neon_lane_bounds)
1381         (neon_const_bounds, neon_element_bits): New functions.
1382         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_lanedi)
1383         (neon_vget_lanev2di, neon_vset_lane<mode>, neon_vset_lanedi)
1384         (neon_vset_lanev2di, neon_vdup_lane<mode>, neon_vdup_lanedi)
1385         (neon_vdup_lanev2di, neon_vcvt_n<mode>, neon_vmul_lane<mode>)
1386         (neon_vmull_lane<mode>, neon_vqdmull_lane<mode>)
1387         (neon_vqdmulh_lane<mode>, neon_vmla_lane<mode>)
1388         (neon_vmlal_lane<mode>, neon_vqdmlal_lane<mode>)
1389         (neon_vmls_lane<mode>, neon_vmlsl_lane<mode>)
1390         (neon_vqdmlsl_lane<mode>, neon_vext<mode>, neon_vshr_n<mode>)
1391         (neon_vshrn_n<mode>, neon_vqshrn_n<mode>, neon_vqshrun_n<mode>)
1392         (neon_vshl_n<mode>, neon_vshl_n<mode>, neon_vqshl_n<mode>)
1393         (neon_vqshlu_n<mode>, neon_vshll_n<mode>, neon_vsra_n<mode>)
1394         (neon_vsri_n<mode>, neon_vsli_n<mode>): Add bounds checks.
1395
1396 2007-07-26  Nathan Froyd  <froydnj@codesourcery.com>
1397
1398         * config/vxworks.h (VXWORKS_LINK_SPEC): Fix typo.
1399         (HAVE_AS_GNU_ATTRIBUTE): Undefine.
1400
1401 2007-07-26  Mark Shinwell  <shinwell@codesourcery.com>
1402             Julian Brown  <julian@codesourcery.com>
1403
1404         * config/arm/arm.c (arm_mac_accumulator_is_mul_result): New.
1405         * config/arm/arm-protos.h (arm_mac_accumulator_is_mul_result): New.
1406         * config/arm/cortex-a8.md: New.
1407         * config/arm/cortex-a8-neon.md: New.
1408         * config/arm/neon-schedgen.ml: New.
1409         * config/arm/neon.md (vqh_mnem): New.
1410         (neon_type): New.
1411         (Is_float_mode): New.
1412         (Scalar_mul_8_16): New.
1413         (Is_d_reg): New.
1414         (V_mode_nunits): New.
1415         (All instruction patterns): Annotate with neon_type attribute
1416         values.
1417         * config/arm/arm.md: Include cortex-a8.md.
1418         (insn): Add smmla, umaal, smlald, smlsld, clz, mrs, msr and xtab
1419         values.
1420         Annotate instruction patterns accordingly.
1421         (generic_sched): Do not use generic scheduling for Cortex-A8.
1422         (generic_vfp): Do not use generic VFP scheduling for Cortex-A8.
1423
1424 2007-07-26  Daniel Jacobowitz  <dan@codesourcery.com>
1425
1426         * fold-const.c (fold_read_from_constant_string): Use
1427         build_int_cst_type.
1428         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
1429
1430 2007-07-26  Nick Clifton  <nickc@redhat.com>
1431
1432         * tree-ssa-operands.h: Change copyright header to refer to version
1433         3 of the GNU General Public License and to point readers at the
1434         COPYING3 file and the FSF's license web page.
1435         * tree-vrp.c, regrename.c, attribs.c, loop-unswitch.c,
1436         sched-ebb.c, fwprop.c, tree-loop-linear.c, dwarf2asm.c,
1437         tree-into-ssa.c, dwarf2asm.h, tree-ssa-loop-im.c, sbitmap.c,
1438         targhooks.c, tree-dump.c, tree-complex.c, sbitmap.h, targhooks.h,
1439         tree-dump.h, regstat.c, see.c, machmode.h, hooks.c, cgraphbuild.c,
1440         hooks.h, genrecog.c, tree-ssa-threadupdate.c, gen-protos.c,
1441         flags.h, rtlhooks.c, gencheck.c, tree-ssa-loop-niter.c,
1442         opts-common.c, dbgcnt.def, tree-pretty-print.c, tracer.c,
1443         gengtype.c, mkconfig.sh, gengtype.h, tree-ssa-loop-unswitch.c,
1444         cgraph.c, c-lex.c, cgraph.h, libfuncs.h, cfgloopmanip.c,
1445         rtl-error.c, optabs.c, postreload-gcse.c, tree-ssa-loop-manip.c,
1446         optabs.h, genmddeps.c, defaults.h, postreload.c, value-prof.c,
1447         tree-ssa-loop-ch.c, tree-tailcall.c, gengenrtl.c, value-prof.h,
1448         genopinit.c, tree.c, tree.h, reload.c, tree-pass.h, ipa-cp.c,
1449         reload.h, bitmap.c, bitmap.h, tree-scalar-evolution.c,
1450         c-config-lang.in, tree-scalar-evolution.h, target.h, cppspec.c,
1451         rtlanal.c, ddg.c, lambda-mat.c, mips-tdump.c, ddg.h,
1452         tree-phinodes.c, mips-tfile.c, pointer-set.c, pointer-set.h,
1453         diagnostic.c, final.c, diagnostic.h, builtins.c, genoutput.c,
1454         gcc.c, lists.c, tree-ssa-alias-warnings.c, gcc.h, cfghooks.c,
1455         input.h, gensupport.c, fold-const.c, cfghooks.h, insn-notes.def,
1456         gensupport.h, builtin-attrs.def, sync-builtins.def, params.c,
1457         cfgloopanal.c, params.h, graphds.c, omp-low.c, tree-ssa-dse.c,
1458         graphds.h, gcov.c, cfg.c, genextract.c, ipa-reference.c,
1459         genautomata.c, tree-ssa-uncprop.c, auto-inc-dec.c, toplev.c,
1460         tree-gimple.c, ipa-reference.h, vmsdbgout.c, errors.c, toplev.h,
1461         reorg.c, tree-gimple.h, tree-chrec.c, pretty-print.c, errors.h,
1462         real.c, tree-chrec.h, pretty-print.h, debug.c, real.h, genemit.c,
1463         omega.c, c-cppbuiltin.c, genmultilib, debug.h, omega.h,
1464         tree-ssa-sccvn.c, genconfig.c, tree-ssa-sccvn.h, cgraphunit.c,
1465         regs.h, df-scan.c, vec.c, hosthooks-def.h, vec.h,
1466         tree-ssa-copyrename.c, scan.c, builtin-types.def, tree-ssa-ccp.c,
1467         scan.h, mode-classes.def, haifa-sched.c, dominance.c, dojump.c,
1468         double-int.c, gcov-io.c, dbxout.c, builtins.def, double-int.h,
1469         dbxout.h, tree-ssa-loop-ivopts.c, df-core.c, mode-switching.c,
1470         gengtype-lex.l, tree-nomudflap.c, modulo-sched.c, c-objc-common.c,
1471         hosthooks.h, c-objc-common.h, caller-save.c, graph.c,
1472         ipa-pure-const.c, graph.h, c-format.c, cse.c, fix-header.c,
1473         c-format.h, web.c, tree-stdarg.c, genpeep.c, tree-stdarg.h,
1474         tree-ssa-math-opts.c, xcoffout.c, tree-ssa-dom.c, tree-nrv.c,
1475         xcoffout.h, tree-ssa-propagate.c, ipa-utils.c,
1476         tree-ssa-propagate.h, tree-ssa-alias.c, loop-init.c, ipa-utils.h,
1477         gimple-low.c, rtl.def, c-tree.h, tree-ssa-sink.c, ipa-inline.c,
1478         mkmap-symver.awk, machmode.def, c-pch.c, cfganal.c, global.c,
1479         alloc-pool.c, c-semantics.c, alloc-pool.h, jump.c, ifcvt.c,
1480         dwarf2out.c, expr.c, cfgbuild.c, tree-browser.c, dwarf2out.h,
1481         expr.h, longlong.h, opts.c, gcov-iov.c, opts.h, dwarf2.h,
1482         genattrtab.c, genconditions.c, genattr.c, optc-gen.awk,
1483         timevar.def, tree-ssa-loop-ivcanon.c, hard-reg-set.h, predict.c,
1484         tree-ssa-loop.c, host-default.c, predict.h, recog.c, dbgcnt.c,
1485         recog.h, dbgcnt.h, c-aux-info.c, tree-ssa-address.c, timevar.c,
1486         dse.c, lcm.c, tree-ssa-ifcombine.c, timevar.h, dse.h,
1487         matrix-reorg.c, tree-vn.c, treestruct.def, fp-test.c, c-decl.c,
1488         tree-eh.c, c-errors.c, c-pretty-print.c, regmove.c,
1489         lambda-trans.c, c-pretty-print.h, et-forest.c, et-forest.h,
1490         ebitmap.c, configure.ac, local-alloc.c, function.c, langhooks.c,
1491         ebitmap.h, cppdefault.c, tree-vectorizer.c, function.h,
1492         langhooks.h, print-rtl.c, cppdefault.h, df.h, tree-vectorizer.h,
1493         sdbout.c, stor-layout.c, sdbout.h, rtlhooks-def.h, read-rtl.c,
1494         gcse.c, ipa-type-escape.c, vmsdbg.h, alias.c, gengtype-parse.c,
1495         ipa-type-escape.h, domwalk.c, alias.h, tree-if-conv.c, profile.c,
1496         init-regs.c, domwalk.h, ipa.c, gccbug.in, tree-data-ref.c,
1497         loop-unroll.c, tree-data-ref.h, tree-flow-inline.h, tree-affine.c,
1498         mkmap-flat.awk, tree-affine.h, tree-vect-analyze.c, c.opt, ggc.h,
1499         opt-gather.awk, c-typeck.c, gimplify.c, coretypes.h, exec-tool.in,
1500         insn-addr.h, tree-ssa-phiopt.c, c-pragma.c, c-pragma.h, calls.c,
1501         tree-ssa-coalesce.c, genmodes.c, loop-doloop.c, predict.def,
1502         dwarf.h, tree.def, rtl-factoring.c, lower-subreg.c, expmed.c,
1503         bt-load.c, ggc-common.c, genflags.c, tree-dfa.c, except.c,
1504         coverage.c, except.h, emit-rtl.c, cfgexpand.c, coverage.h,
1505         stringpool.c, cselib.c, emit-rtl.h, tree-cfgcleanup.c, c-opts.c,
1506         cselib.h, cfgcleanup.c, simplify-rtx.c, tree-ssa-pre.c, explow.c,
1507         tree-ssa-live.c, tree-sra.c, tree-ssa-live.h, tree-predcom.c,
1508         loop-invariant.c, genpreds.c, protoize.c, opth-gen.awk, c-dump.c,
1509         lambda.h, loop-iv.c, tree-mudflap.c, ipa-prop.c, print-tree.c,
1510         tree-mudflap.h, tree-ssa-copy.c, ipa-prop.h, cfglayout.c,
1511         tree-ssa-forwprop.c, c-convert.c, cfglayout.h, common.opt,
1512         ggc-zone.c, ggc-page.c, c-omp.c, tree-ssa-dce.c, gencodes.c,
1513         varasm.c, tree-vect-patterns.c, libada-mk.in, tree-ssa-ter.c,
1514         sched-deps.c, tree-nested.c, c-ppoutput.c, tree-ssa.c,
1515         target-def.h, tree-ssa-loop-prefetch.c, lambda-code.c,
1516         omp-builtins.def, rtl.c, regclass.c, stab.def, intl.c, rtl.h,
1517         intl.h, tree-inline.c, conditions.h, tree-inline.h, integrate.c,
1518         sched-int.h, tree-iterator.c, integrate.h, tree-iterator.h,
1519         genchecksum.c, tree-optimize.c, output.h, tree-vect-transform.c,
1520         tree-object-size.c, combine.c, tree-outof-ssa.c, addresses.h,
1521         bb-reorder.c, stack-ptr-mod.c, resource.c, var-tracking.c,
1522         cfgloop.c, system.h, resource.h, ggc-none.c, tree-profile.c,
1523         cfgloop.h, c-gimplify.c, c-common.c, opt-functions.awk,
1524         tree-vect-generic.c, tree-flow.h, df-problems.c, scan-decls.c,
1525         c-common.h, config.gcc, reg-stack.c, tlink.c, main.c, stub-objc.c,
1526         fixproto, config.host, Makefile.in, gccspec.c, sched-rgn.c,
1527         vecprim.h, basic-block.h, tree-ssa-structalias.c,
1528         tree-ssa-structalias.h, c-common.def, sched-vis.c, tree-cfg.c,
1529         passes.c, genconstants.c, c-incpath.c, c-incpath.h,
1530         struct-equiv.c, c-parser.c, tree-ssa-reassoc.c, varray.c, sreal.c,
1531         varray.h, dfp.c, sreal.h, combine-stack-adj.c, dfp.h,
1532         reg-notes.def, cfgrtl.c, config.build, varpool.c, gengtype-yacc.y,
1533         stmt.c, dce.c, tree-browser.def, prefix.c, statistics.h,
1534         params.def, dce.h, c-lang.c, gcov-dump.c, prefix.h,
1535         tree-ssanames.c, collect2.c, collect2.h, tree-ssa-threadedge.c,
1536         convert.c, convert.h, langhooks-def.h, reload1.c,
1537         tree-ssa-operands.c: Likewise.
1538
1539 2007-07-26  Jan Hubicka  <jh@suse.cz>
1540
1541         * tree-ssa-live.c: Include debug.h and flags.h.
1542         (mark_scope_block_unused): New function.
1543         (remove_unused_scope_block_p): New function.
1544         (remove_unused_locals): Remove unused blocks too.
1545
1546 2007-07-25  Ian Lance Taylor  <iant@google.com>
1547
1548         * combine.c (combine_max_regno): Remove.  Remove all uses.
1549         (struct reg_stat_struct): Rename from struct reg_stat.
1550         (reg_stat_type): Define, and declare VECs.
1551         (reg_stat): Change from pointer to VEC.  Change all uses.
1552         (combine_split_insns): New static function.
1553         (try_combine, find_split_point): Call it instead of split_insns.
1554
1555 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
1556
1557         * cfghooks.c (split_block): Fix the information about loop latch.
1558
1559 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
1560
1561         * cfgloopmanip.c (fix_loop_structure): Call force_single_succ_latches.
1562
1563 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
1564
1565         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis):
1566         Scan the new edge for loop exit info.
1567
1568 2007-07-25  Andreas Tobler  <a.tobler@schweiz.org>
1569
1570         * config/darwin.c: Include debug.h.
1571
1572 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
1573
1574         PR target/32218
1575         * tree-vect-patterns.c (vect_pattern_recog_1): Check for valid type.
1576
1577 2007-07-25  Steve Ellcey  <sje@cup.hp.com>
1578
1579         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle RFmode.
1580         (HARD_REGNO_MODE_OK): Ditto.
1581         (MODES_TIEABLE_P): Ditto.
1582         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
1583         (CLASS_MAX_NREGS): Ditto.
1584         * config/ia64/ia64.c (ia64_print_operand_address): Add R format.
1585         * config/ia64/ia64.md (divsf3_internal_thr): Removed.
1586         (divdf3_internal_thr): Removed.
1587         * config/ia64/div.md: New file.
1588         * config/ia64/constraints.md: Add H constraint.
1589
1590 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1591
1592         * sbitmap.c (sbitmap_verify_popcount, sbitmap_alloc_with_popcount,
1593         sbitmap_copy, sbitmap_copy_n, sbitmap_equal, sbitmap_empty_p,
1594         sbitmap_union_of_diff_cg, sbitmap_union_of_diff, sbitmap_not,
1595         sbitmap_difference, sbitmap_any_common_bits, sbitmap_a_and_b_cg,
1596         sbitmap_a_and_b, sbitmap_a_xor_b_cg, sbitmap_a_xor_b,
1597         sbitmap_a_or_b_cg, sbitmap_a_or_b, sbitmap_a_subset_b_p,
1598         sbitmap_a_or_b_and_c_cg, sbitmap_a_or_b_and_c,
1599         sbitmap_a_and_b_or_c_cg, sbitmap_a_and_b_or_c,
1600         sbitmap_first_set_bit, sbitmap_last_set_bit, dump_sbitmap,
1601         dump_sbitmap_file, debug_sbitmap, popcount_table,
1602         sbitmap_popcount): Constify.
1603         * sbitmap.h (const_sbitmap, const_sbitmap_ptr): New.
1604         (sbitmap_iterator, sbitmap_iter_init, dump_sbitmap,
1605         dump_sbitmap_file, sbitmap_copy, sbitmap_copy_n, sbitmap_equal,
1606         sbitmap_empty_p, sbitmap_union_of_diff, sbitmap_union_of_diff_cg,
1607         sbitmap_difference, sbitmap_not, sbitmap_a_or_b_and_c,
1608         sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c,
1609         sbitmap_a_and_b_or_c_cg, sbitmap_any_common_bits, sbitmap_a_and_b,
1610         sbitmap_a_and_b_cg, sbitmap_a_or_b, sbitmap_a_or_b_cg,
1611         sbitmap_a_xor_b, sbitmap_a_xor_b_cg, sbitmap_a_subset_b_p,
1612         sbitmap_first_set_bit, sbitmap_last_set_bit, debug_sbitmap,
1613         sbitmap_popcount, sbitmap_verify_popcount): Constify.
1614
1615 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1616
1617         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_element_zerop,
1618         bitmap_copy, bitmap_clear_bit, popcount_table, bitmap_count_bits,
1619         bitmap_first_set_bit, bitmap_and, bitmap_and_into,
1620         bitmap_elt_copy, bitmap_and_compl, bitmap_and_compl_into,
1621         bitmap_compl_and_into, bitmap_elt_ior, bitmap_ior,
1622         bitmap_ior_into, bitmap_xor, bitmap_xor_into, bitmap_equal_p,
1623         bitmap_intersect_p, bitmap_intersect_compl_p,
1624         bitmap_ior_and_compl, bitmap_ior_and_compl_into,
1625         debug_bitmap_file, debug_bitmap, bitmap_print, bitmap_hash):
1626         Constify.
1627         * bitmap.h (bitmap_copy, bitmap_equal_p, bitmap_intersect_p,
1628         bitmap_intersect_compl_p, bitmap_count_bits, bitmap_and,
1629         bitmap_and_into, bitmap_and_compl, bitmap_and_compl_into,
1630         bitmap_compl_and_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
1631         bitmap_xor_into, bitmap_ior_and_compl, bitmap_ior_and_compl_into,
1632         debug_bitmap, debug_bitmap_file, bitmap_print,
1633         bitmap_first_set_bit, bitmap_hash, bmp_iter_set_init,
1634         bmp_iter_and_init, bmp_iter_and_compl_init): Likewise.
1635
1636 2007-07-25  Daniel Berlin  <dberlin@dberlin.org>
1637
1638         * config/darwin.c (darwin_override_options): Additional fix for
1639         debug info formats that don't support var tracking.
1640
1641 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1642
1643         * cselib.c (entry_and_rtx_equal_p): Constify.
1644         * gengtype.c (output_mangled_typename, write_types, write_local):
1645         Likewise.
1646         * gengtype.h (const_type_p): New.
1647         * see.c (eq_descriptor_extension, hash_descriptor_extension):
1648         Constify.
1649         * tlink.c (scan_linker_output): De-constify.
1650         * tree-ssa-loop-im.c (memref_eq): Constify.
1651         * tree-ssa-structalias.c (const_shared_bitmap_info_t): New.
1652         (shared_bitmap_hash, shared_bitmap_eq): Constify.
1653
1654 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1655
1656         * c-common.c (fname_as_string, c_type_hash): Constify.
1657         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
1658         * cgraph.c (edge_hash, edge_eq): Likewise.
1659         * dwarf2out.c (decl_die_table_eq, decl_loc_table_eq): Likewise.
1660         * emit-rtl.c (mem_attrs_htab_eq, reg_attrs_htab_hash,
1661         reg_attrs_htab_eq): Likewise.
1662         * except.c (t2r_eq, t2r_hash, ttypes_filter_eq, ehl_hash, ehl_eq):
1663         Likewise.
1664         * genautomata.c (const_reserv_sets_t, const_unit_decl_t,
1665         const_decl_t, const_state_t, const_automata_list_el_t): New.
1666         (first_out_arc, DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL,
1667         DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV,
1668         automaton_decl_hash, automaton_decl_eq_p, insn_decl_hash,
1669         insn_decl_eq_p, decl_hash, decl_eq_p, alt_state_cmp,
1670         reserv_sets_cmp, reserv_sets_eq, state_hash, state_eq_p,
1671         automata_list_hash, automata_list_eq_p, compare_states_for_equiv,
1672         compare_max_occ_cycle_nums, out_state_arcs_num,
1673         compare_transition_els_num, units_cmp, state_reservs_cmp):
1674         Constify.
1675         * genmodes.c (cmp_modes): Likewise.
1676         * ggc-common.c (saving_htab_hash, saving_htab_eq): Likewise.
1677         * gimplify.c (compare_case_labels): Likewise.
1678         * ipa-type-escape.c (get_name_of_type, type_brand_s): Likewise.
1679         * loop-unroll.c (si_info_hash, ve_info_hash): Likewise.
1680         * matrix-reorg.c (mtt_info_hash): Likewise.
1681         * postreload-gcse.c (hash_expr_for_htab, expr_equiv_p): Likewise.
1682         * rtl-factoring.c (const_p_hash_bucket, const_p_hash_elem): New.
1683         (htab_hash_bucket, htab_hash_elem): Constify.
1684         * tree-browser.c (TB_parent_eq): Likewise.
1685         * tree-scalar-evolution.c (hash_scev_info): Likewise.
1686         * tree-ssa-alias.c (sort_tags_by_id): Likewise.
1687         * tree-ssa-coalesce.c (const_coalesce_pair_p): New.
1688         (coalesce_pair_map_hash, coalesce_pair_map_eq, compare_pairs):
1689         Constify.
1690         * tree-ssa-dom.c (avail_expr_hash, avail_expr_eq): Likewise.
1691         * tree-ssa-pre.c (const_expr_pred_trans_t): New.
1692         (expr_pred_trans_hash, expr_pred_trans_eq): Constify.
1693         * tree-ssa-sccvn.c (const_vn_binary_op_t, const_vn_unary_op_t,
1694         const_vn_phi_t, const_vn_reference_op_t, const_vn_reference_t):
1695         New.
1696         (vn_reference_op_eq, vn_reference_hash, vn_reference_eq,
1697         vn_unary_op_hash, vn_unary_op_eq, vn_binary_op_hash,
1698         vn_binary_op_eq, vn_phi_hash, vn_phi_eq): Constify.
1699         * tree-ssa-threadupdate.c (redirection_data_hash,
1700         redirection_data_eq): Likewise. 
1701         * tree-ssa-uncprop.c (equiv_hash, equiv_eq): Likewise.
1702         * tree-ssa.c (var_ann_eq): Likewise.
1703         * tree-vrp.c (compare_case_labels): Likewise.
1704         * tree.c (int_cst_hash_hash, int_cst_hash_eq,
1705         tree_map_base_marked_p, type_hash_marked_p, tree_check_failed,
1706         tree_not_check_failed, tree_class_check_failed,
1707         tree_range_check_failed, tree_not_class_check_failed,
1708         omp_clause_check_failed, omp_clause_range_check_failed,
1709         tree_contains_struct_check_failed, tree_operand_check_failed):
1710         Likewise. 
1711         * tree.h (tree_contains_struct_check_failed, tree_check_failed,
1712         tree_not_check_failed, tree_class_check_failed,
1713         tree_range_check_failed, tree_not_class_check_failed,
1714         tree_operand_check_failed, omp_clause_operand_check_failed,
1715         tree_operand_length): Likewise. 
1716         * var-tracking.c (const_variable): New.
1717         (variable_htab_hash, variable_htab_eq): Constify.
1718         * varasm.c (const_desc_hash): Likewise.
1719
1720 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1721
1722         * expr.c (handled_component_p): Constify.
1723         * fold-const.c (fit_double_type): Likewise.
1724         * real.h (real_value_from_int_cst): Likewise.
1725         * tree-flow-inline.h (gimple_in_ssa_p,
1726         gimple_aliases_computed_p, gimple_addressable_vars,
1727         gimple_call_clobbered_vars, gimple_referenced_vars,
1728         gimple_global_var, gimple_nonlocal_all, gimple_var_anns,
1729         end_htab_p, end_referenced_vars_p, var_ann, function_ann,
1730         may_aliases, end_readonly_imm_use_p, has_zero_uses,
1731         has_single_use, single_imm_use, num_imm_uses, is_exec_stmt,
1732         is_label_stmt, is_global_var, phi_ssa_name_p,
1733         factoring_name_p, is_call_clobbered, tree_common_ann,
1734         op_iter_done, end_imm_use_stmt_p, end_imm_use_on_stmt_p,
1735         unmodifiable_var_p, array_ref_contains_indirect_ref,
1736         ref_contains_array_ref, lookup_subvars_for_var,
1737         var_can_have_subvars, overlap_subvar, gimple_ssa_operands,
1738         gimple_mem_ref_stats): Likewise.
1739         * tree-flow.h (tree_common_ann, var_ann, function_ann,
1740         may_aliases, is_exec_stmt, is_label_stmt,
1741         ref_contains_array_ref, array_ref_contains_indirect_ref,
1742         var_can_have_subvars, overlap_subvar, is_call_clobbered,
1743         unmodifiable_var_p): Likewise.
1744         * tree-gimple.c (is_gimple_min_invariant): Likewise.
1745         * tree-gimple.h (is_gimple_min_invariant): Likewise. 
1746         * tree.c (type_hash_list, attribute_hash_list, tree_size,
1747         cst_and_fits_in_hwi, real_value_from_int_cst,
1748         build_real_from_int_cst, integer_zerop, integer_onep,
1749         integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2,
1750         tree_floor_log2, real_zerop, real_onep, real_twop,
1751         real_minus_onep, really_constant_p, purpose_member, chain_member,
1752         list_length, fields_length, int_size_in_bytes, bit_position,
1753         int_bit_position, byte_position, int_byte_position, expr_align,
1754         array_type_nelts, tree_node_structure,
1755         type_contains_placeholder_1, iterative_hash_pointer,
1756         is_attribute_with_length_p, is_attribute_p, check_qualified_type,
1757         tree_map_base_eq, type_hash_list, type_hash_eq,
1758         attribute_hash_list, type_num_arguments, tree_int_cst_equal,
1759         tree_int_cst_lt, tree_int_cst_compare, host_integerp,
1760         tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
1761         simple_cst_list_equal, compare_tree_int, iterative_hash_expr,
1762         int_fits_type_p, get_containing_scope, decl_function_context,
1763         decl_type_context, omp_clause_operand_check_failed,
1764         initializer_zerop, int_cst_value, num_ending_zeros): Likewise.
1765         * tree.h (omp_clause_operand_check_failed, tree_size,
1766         build_real_from_int_cst, array_type_nelts, purpose_member,
1767         tree_int_cst_equal, tree_int_cst_lt, tree_int_cst_compare,
1768         host_integerp, tree_low_cst, tree_int_cst_msb, tree_int_cst_sgn,
1769         is_attribute_p, check_qualified_type, expr_align,
1770         int_size_in_bytes, bit_position, int_bit_position, byte_position,
1771         int_byte_position, list_length, fields_length, initializer_zerop,
1772         integer_zerop, integer_onep, integer_all_onesp, integer_pow2p,
1773         integer_nonzerop, cst_and_fits_in_hwi, num_ending_zeros,
1774         tree_node_structure, handled_component_p, get_containing_scope,
1775         decl_function_context, decl_type_context, real_zerop,
1776         type_num_arguments, fit_double_type, really_constant_p,
1777         int_fits_type_p, tree_log2, tree_floor_log2, iterative_hash_expr,
1778         compare_tree_int, chain_member, simple_cst_list_equal, real_onep,
1779         real_twop, real_minus_onep, int_cst_value): Likewise.
1780
1781 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1782
1783         * cfglayout.c (insn_scope, insn_line): Constify.
1784         * emit-rtl.c (const_int_htab_hash, const_int_htab_eq,
1785         const_double_htab_hash, const_double_htab_eq,
1786         mem_attrs_htab_hash): Likewise.
1787         * loop-iv.c (biv_eq): Likewise.
1788         * print-rtl.c (print_rtx, print_decl_name, print_mem_expr,
1789         print_inline_rtx, debug_rtx, debug_rtx_list, debug_rtx_range,
1790         debug_rtx_find, print_rtl, print_rtl_single, print_simple_rtl):
1791         Likewise. 
1792         * rtl-error.c (location_for_asm, diagnostic_for_asm,
1793         error_for_asm, warning_for_asm, _fatal_insn,
1794         _fatal_insn_not_found): Likewise. 
1795         * rtl.c (rtx_size, shared_const_p, shallow_copy_rtx_stat,
1796         rtx_equal_p, rtl_check_failed_bounds, rtl_check_failed_type1,
1797         rtl_check_failed_type2, rtl_check_failed_code1,
1798         rtl_check_failed_code2, rtl_check_failed_code_mode,
1799         rtvec_check_failed_bounds, rtl_check_failed_flag): Likewise.
1800         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
1801         rtl_check_failed_type2, rtl_check_failed_code1,
1802         rtl_check_failed_code2, rtl_check_failed_code_mode,
1803         rtvec_check_failed_bounds, rtl_check_failed_flag, LABEL_KIND,
1804         SET_LABEL_KIND, rhs_regno, subreg_lsb, subreg_regno, subreg_nregs,
1805         shared_const_p, rtx_size, shallow_copy_rtx_stat, rtx_equal_p,
1806         get_pool_mode, insn_line, insn_file, simplify_replace_rtx,
1807         mode_signbit_p, rtx_addr_can_trap_p, nonzero_address_p,
1808         rtx_unstable_p, get_integer_term, get_related_value,
1809         offset_within_block_p, reg_mentioned_p, count_occurrences,
1810         reg_referenced_p, reg_used_between_p, no_labels_between_p,
1811         single_set_2, multiple_sets, set_noop_p, refers_to_regno_p,
1812         reg_overlap_mentioned_p, dead_or_set_p, dead_or_set_regno_p,
1813         find_reg_note, find_regno_note, find_reg_equal_equiv_note,
1814         find_constant_src, find_reg_fusage, find_regno_fusage,
1815         pure_call_p, remove_note, side_effects_p, volatile_refs_p,
1816         volatile_insn_p, may_trap_p, may_trap_after_code_motion_p,
1817         may_trap_or_fault_p, inequality_comparisons_p, tablejump_p,
1818         computed_jump_p, auto_inc_p, in_expr_list_p,
1819         remove_node_from_expr_list, loc_mentioned_in_p,
1820         label_is_jump_target_p, reversed_comparison_code_parts,
1821         debug_rtx, debug_rtx_list, debug_rtx_range, debug_rtx_find,
1822         print_mem_expr, print_rtl, print_simple_rtl, print_rtl_single,
1823         print_inline_rtx): Likewise.
1824         * rtlanal.c (covers_regno_p, covers_regno_no_parallel_p,
1825         computed_jump_p_1, nonzero_bits1, rtx_unstable_p,
1826         rtx_addr_can_trap_p_1, rtx_addr_can_trap_p, nonzero_address_p,
1827         get_integer_term, get_related_value, offset_within_block_p,
1828         count_occurrences, reg_mentioned_p, no_labels_between_p,
1829         reg_used_between_p, reg_referenced_p, single_set_2,
1830         multiple_sets, set_noop_p, refers_to_regno_p,
1831         reg_overlap_mentioned_p, dead_or_set_p,
1832         covers_regno_no_parallel_p, covers_regno_p,
1833         dead_or_set_regno_p, find_reg_note, find_regno_note,
1834         find_reg_equal_equiv_note, find_constant_src, find_reg_fusage,
1835         find_regno_fusage, pure_call_p, remove_note, in_expr_list_p,
1836         remove_node_from_expr_list, volatile_insn_p, volatile_refs_p,
1837         side_effects_p, may_trap_p_1, may_trap_p,
1838         may_trap_after_code_motion_p, may_trap_or_fault_p,
1839         inequality_comparisons_p, tablejump_p, computed_jump_p_1,
1840         computed_jump_p, auto_inc_p, loc_mentioned_in_p, subreg_lsb,
1841         subreg_regno, subreg_nregs, label_is_jump_target_p): Likewise.
1842         * simplify-rtx.c (neg_const_int, plus_minus_operand_p,
1843         mode_signbit_p, simplify_replace_rtx, plus_minus_operand_p):
1844         Likewise. 
1845         * toplev.h (_fatal_insn_not_found, _fatal_insn, error_for_asm,
1846         warning_for_asm): Likewise.
1847         * tree.h (print_rtl): Likewise.
1848         * varasm.c (get_pool_mode): Likewise.
1849
1850 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1851
1852         * c-lex.c (c_lex_with_flags, lex_string): Constify.
1853         * c-ppoutput.c (print_line, pp_dir_change): Likewise.
1854         * c-typeck.c (free_all_tagged_tu_seen_up_to): Likewise.
1855         * cfg.c (bb_copy_original_hash, bb_copy_original_eq): Likewise.
1856         * cfgloop.c (loop_exit_hash, loop_exit_eq): Likewise.
1857         * ddg.c (compare_sccs): Likewise.
1858         * df-scan.c (df_ref_compare, df_mw_compare): Likewise.
1859         * dfp.c (decimal_real_from_string, decimal_to_decnumber,
1860         decimal_to_binary, decimal_do_compare, decimal_real_to_decimal,
1861         decimal_do_fix_trunc, decimal_real_to_integer,
1862         decimal_real_to_integer2, decimal_real_maxval): Likewise.
1863         * dse.c (const_group_info_t): New.
1864         (invariant_group_base_eq, invariant_group_base_hash): Constify.
1865         * dwarf2out.c (const_dw_die_ref): New.
1866         (decl_die_table_hash, decl_die_table_eq, file_info_cmp): Constify.
1867         * tree-browser.c (TB_parent_eq): Likewise.
1868         * unwind-dw2-fde.c (__register_frame_info_bases,
1869         __deregister_frame_info_bases, fde_unencoded_compare, fde_split,
1870         add_fdes, linear_search_fdes, binary_search_unencoded_fdes):
1871         Likewise.
1872         * unwind-dw2-fde.h (get_cie, next_fde): Likewise.
1873         * unwind-dw2.c (uw_frame_state_for): Likewise.
1874         * value-prof.c (histogram_hash, histogram_eq): Likewise.
1875         * value-prof.h (const_histogram_value): New.
1876
1877 2007-07-25  Richard Sandiford  <richard@codesourcery.com>
1878
1879         * config/mips/mips.c (machine_function): Add
1880         initialized_mips16_gp_pseudo_p.
1881         (mips16_gp_pseudo_reg): Do not emit the initialization of
1882         mips16_gp_pseudo_rtx when being called from the gimple cost-
1883         calculation routines; emit it on the first use outside those
1884         routines.
1885
1886 2007-07-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1887
1888         * coretypes.h (const_bitmap, const_rtx, const_rtvec, const_tree):
1889         New.
1890         
1891         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
1892         RTVEC_ELT, XWINT, XCWINT, XCMWINT, XCNMPRV, BLOCK_SYMBOL_CHECK,
1893         RTL_FLAG_CHECK1, RTL_FLAG_CHECK2, RTL_FLAG_CHECK3,
1894         RTL_FLAG_CHECK4, RTL_FLAG_CHECK5, RTL_FLAG_CHECK6,
1895         RTL_FLAG_CHECK7, RTL_FLAG_CHECK8, LABEL_KIND, SET_LABEL_KIND):
1896         Preserve const-ness of parameters through use of __typeof(),
1897         also constify and tidy.
1898         
1899         * tree.h (TREE_CHECK, TREE_NOT_CHECK, TREE_CHECK2,
1900         TREE_NOT_CHECK2, TREE_CHECK3, TREE_NOT_CHECK3, TREE_CHECK4,
1901         NON_TREE_CHECK4, TREE_CHECK5, TREE_NOT_CHECK5,
1902         CONTAINS_STRUCT_CHECK, TREE_CLASS_CHECK, TREE_RANGE_CHECK,
1903         OMP_CLAUSE_SUBCODE_CHECK, OMP_CLAUSE_RANGE_CHECK, EXPR_CHECK,
1904         GIMPLE_STMT_CHECK, NON_TYPE_CHECK, TREE_VEC_ELT_CHECK,
1905         PHI_NODE_ELT_CHECK, OMP_CLAUSE_ELT_CHECK, TREE_OPERAND_CHECK,
1906         TREE_OPERAND_CHECK_CODE, GIMPLE_STMT_OPERAND_CHECK,
1907         TREE_RTL_OPERAND_CHECK, TREE_CHAIN, TREE_TYPE): Likewise.
1908
1909 2007-07-25  Julian Brown  <julian@codesourcery.com>
1910             Mark Shinwell  <shinwell@codesourcery.com>
1911
1912         * config/alpha/alpha.c (alpha_mangle_fundamental_type): Rename to...
1913         (alpha_mangle_type): This.
1914         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
1915         (TARGET_MANGLE_TYPE): Define this instead.
1916         * config/arm/arm-protos.h (arm_mangle_type): Add prototype.
1917         * config/arm/arm.c (TARGET_MANGLE_TYPE): Define target hook.
1918         (arm_init_neon_builtins): Fix comment.
1919         (arm_mangle_map_entry): New.
1920         (arm_mangle_map): New.
1921         (arm_mangle_type): New.
1922         * config/i386/i386.c (ix86_mangle_fundamental_type): Rename to...
1923         (ix86_mangle_type): This. Use TYPE_MAIN_VARIANT and restrict
1924         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
1925         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
1926         (TARGET_MANGLE_TYPE): Define this instead.
1927         * config/ia64/ia64.c (ia64_mangle_fundamental_type): Rename to...
1928         (ia64_mangle_type): This. Use TYPE_MAIN_VARIANT  and restrict
1929         mangled types to VOID_TYPE, BOOLEAN_TYPE, INTEGER_TYPE, REAL_TYPE.
1930         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
1931         (TARGET_MANGLE_TYPE): Define this instead.
1932         * config/rs6000/rs6000.c (rs6000_mangle_fundamental_type): Rename
1933         to...
1934         (rs6000_mangle_type): This. Use TYPE_MAIN_VARIANT.
1935         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
1936         (TARGET_MANGLE_TYPE): Define this instead.
1937         * config/s390/s390.c (s390_mangle_fundamental_type): Rename to...
1938         (s390_mangle_type): This.
1939         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
1940         (TARGET_MANGLE_TYPE): Define this instead.
1941         * config/sparc/sparc.c (sparc_mangle_fundamental_type): Rename to...
1942         (sparc_mangle_type): This.
1943         (TARGET_MANGLE_FUNDAMENTAL_TYPE): Don't define.
1944         (TARGET_MANGLE_TYPE): Define this instead.
1945         * cp/mangle.c (write_type): Call mangle_type target hook on all
1946         types before mangling.  Use original type, not main variant, as
1947         argument.
1948         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename hook to...
1949         (TARGET_MANGLE_TYPE): This.
1950         * target.h (gcc_target): Rename mangle_fundamental_type to
1951         mangle_type.
1952         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Rename section to...
1953         (TARGET_MANGLE_TYPE): This. Note slightly different semantics.
1954
1955 2007-07-25  Julian Brown  <julian@codesourcery.com>
1956             Paul Brook  <paul@codesourcery.com>
1957             Joseph Myers  <joseph@codesourcery.com>
1958             Mark Shinwell  <shinwell@codesourcery.com>
1959
1960         * Makefile.in (TEXI_GCC_FILES): Add arm-neon-intrinsics.texi.
1961         * config.gcc (arm*-*-*): Add arm_neon.h to extra headers.
1962         (with_fpu): Allow --with-fpu=neon.
1963         * config/arm/aof.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
1964         * config/arm/aout.h (ADDITIONAL_REGISTER_NAMES): Add Q0-Q15.
1965         * config/arm/arm-modes.def (EI, OI, CI, XI): New modes.
1966         * config/arm/arm-protos.h (neon_immediate_valid_for_move)
1967         (neon_immediate_valid_for_logic, neon_output_logic_immediate)
1968         (neon_pairwise_reduce, neon_expand_vector_init, neon_reinterpret)
1969         (neon_emit_pair_result_insn, neon_disambiguate_copy)
1970         (neon_vector_mem_operand, neon_struct_mem_operand, output_move_quad)
1971         (output_move_neon): Add prototypes.
1972         * config/arm/arm.c (FL_NEON): New flag for NEON processor capability.
1973         (all_fpus): Add FPUTYPE_NEON.
1974         (fp_model_for_fpu): Add NEON field.
1975         (arm_return_in_memory): Return vectors <= 16 bytes in ARM registers.
1976         (arm_arg_partial_bytes): Allow NEON vectors to be passed partially
1977         in registers.
1978         (arm_legitimate_address_p): Don't support fancy addressing for NEON
1979         structure moves.
1980         (thumb2_legitimate_address_p): Likewise.
1981         (neon_valid_immediate): Recognize and prepare constants suitable for
1982         NEON instructions.
1983         (neon_immediate_valid_for_move): New function. Recognize and prepare
1984         immediates for NEON move instructions.
1985         (neon_immediate_valid_for_logic): New function. Recognize and
1986         prepare immediates for NEON logic instructions.
1987         (neon_output_logic_immediate): New function. Create asm string
1988         suitable for outputting immediate logic instructions.
1989         (neon_pairwise_reduce): New function. Implement reduction using
1990         pairwise operations.
1991         (neon_expand_vector_init): New function. Expand a (possibly
1992         non-constant) vector initialization.
1993         (neon_vector_mem_operand): New function. Memory operands supported
1994         for quad-word loads/stores to/from ARM or NEON registers. Don't
1995         allow base+offset addressing for core regs.
1996         (neon_struct_mem_operand): New function. Valid mems for NEON
1997         structure moves.
1998         (coproc_secondary_reload_class): Enable NEON registers to be loaded
1999         from neon_vector_mem_operand addresses without a secondary register.
2000         (add_minipool_forward_ref): Handle >8-byte minipool entries.
2001         (add_minipool_backward_ref): Likewise.
2002         (dump_minipool): Likewise.
2003         (push_minipool_fix): Likewise.
2004         (output_move_quad): New function. Output quad-word moves, loads and
2005         stores using ARM registers.
2006         (output_move_vfp): Add support for vectors in VFP (NEON) D
2007         registers.
2008         (output_move_neon): Output a NEON load/store to/from a quadword
2009         register.
2010         (arm_print_operand): Implement new codes:
2011         - 'c' for unadorned integers (without a # sign).
2012         - 'J', 'K' for reg+2/reg+3, reg+3/reg+2 in little/big-endian
2013         mode.
2014         - 'e', 'f' for the low and high D parts of a NEON Q register.
2015         - 'q' outputs a NEON Q register.
2016         - 'h' outputs ranges of D registers for VLDM/VSTM etc.
2017         - 'T' prints NEON opcode features from a coded bitmask.
2018         - 'F' is similar to T, but signed/unsigned codes both print as
2019         'i'.
2020         - 't' is similar to T, but 'u' is printed instead of 'p'.
2021         - 'O' prints 'r' if NEON instruction should perform rounding (as
2022         specified by bitmask), else prints nothing.
2023         - '#' is a punctuation character to stop operand numbers from
2024         running together with following digits in the assembler
2025         strings for instructions (when using mode attributes).
2026         (arm_assemble_integer): Handle extra NEON vector modes. Permute
2027         constant vectors in big-endian mode, where necessary.
2028         (arm_hard_regno_mode_ok): Allow vectors in VFP/NEON registers.
2029         Handle EI, OI, CI, XI modes.
2030         (ashlv4hi3, ashlv2si3, lshrv4hi3, lshrv2si3, ashrv4hi3)
2031         (ashrv2si3): Rename IWMMXT2_BUILTINs to...
2032         (ashlv4hi3_iwmmxt, ashlv2si3_iwmmxt, lshrv4hi3_iwmmxt)
2033         (lshrv2si3_iwmmxt, ashrv4hi3_iwmmxt, ashrv2si3_iwmmxt): New names.
2034         (neon_builtin_type_bits): Add enumeration, one bit for each vector
2035         type.
2036         (v8qi_UP, v4hi_UP, v2si_UP, v2sf_UP, di_UP, v16qi_UP, v8hi_UP)
2037         (v4si_UP, v4sf_UP, v2di_UP, ti_UP, ei_UP, oi_UP, UP): Define macros
2038         to turn v8qi, etc. into bits defined above.
2039         (neon_itype): New enumeration. Classifications of NEON builtins.
2040         (neon_builtin_datum): Define struct. Contains information about
2041         a single builtin (with multiple modes).
2042         (CF): Define helper macro for...
2043         (VAR1...VAR10): Define builtins with a type, name and 1-10 different
2044         modes.
2045         (neon_builtin_data): New array. Define information about builtins
2046         for use during initialization/expansion.
2047         (arm_init_neon_builtins): New function.
2048         (arm_init_builtins): Call arm_init_neon_builtins if TARGET_NEON is
2049         true.
2050         (neon_builtin_compare): New function.
2051         (locate_neon_builtin_icode): New function. Find an insn code for a
2052         builtin given a function code for that builtin. Also return type of
2053         builtin (NEON_BINOP, NEON_UNOP etc.).
2054         (builtin_arg): New enumeration. Types of arguments for builtins.
2055         (arm_expand_neon_args): New function. Expand a generic NEON builtin.
2056         Takes a variable argument list of builtin_arg types, terminated by
2057         NEON_ARG_STOP.
2058         (arm_expand_neon_builtin): New function. Expand a NEON builtin.
2059         (neon_reinterpret): New function. Expand NEON reinterpret intrinsic.
2060         (neon_emit_pair_result_insn): New function. Support returning pairs
2061         of vectors via a pointer.
2062         (neon_disambiguate_copy): New function. Set up operands for a
2063         multi-word copy such that registers do not get clobbered.
2064         (arm_expand_builtin): Call arm_expand_neon_builtin if fcode >=
2065         ARM_BUILTIN_NEON_BASE.
2066         (arm_file_start): Set float-abi attribute for NEON.
2067         (arm_vector_mode_supported_p): Enable NEON vector modes.
2068         (arm_mangle_map_entry): New.
2069         (arm_mangle_map): New.
2070         (arm_mangle_vector_type): New.
2071         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_NEON__
2072         when appropriate.
2073         (TARGET_NEON): New macro. Target supports NEON.
2074         (fputype): Add FPUTYPE_NEON.
2075         (UNITS_PER_SIMD_WORD): Define. Allow quad-word registers to be used
2076         for vectorization based on command-line arg.
2077         (NEON_REGNO_OK_FOR_NREGS): Define.
2078         (VALID_NEON_DREG_MODE, VALID_NEON_QREG_MODE)
2079         (VALID_NEON_STRUCT_MODE): Define.
2080         (PRINT_OPERAND_PUNCT_VALID_P): '#' is valid punctuation.
2081         (arm_builtins): Add ARM_BUILTIN_NEON_BASE.
2082         * config/arm/arm.md (VUNSPEC_POOL_16): Insert constant for unspec.
2083         (consttable_16): Add pattern for outputting 16-byte minipool
2084         entries.
2085         (movv2si, movv4hi, movv8qi): Remove blank expanders (redefined in
2086         vec-common.md).
2087         (vec-common.md, neon.md): Include md files.
2088         * config/arm/arm.opt (mvectorize-with-neon-quad): Add option.
2089         * config/arm/constraints.md (constraint "Dn", "Dl", "DL"): Define.
2090         (memory_constraint "Ut", "Un", "Us"): Define.
2091         * config/arm/iwmmxt.md (VMMX, VSHFT): New mode macros.
2092         (MMX_char): New mode attribute.
2093         (addv8qi3, addv4hi3, addv2si3): Remove. Replace with...
2094         (*add<mode>3_iwmmxt): New insn pattern.
2095         (subv8qi3, subv4hi3, subv2si3): Remove. Replace with...
2096         (*sub<mode>3_iwmmxt): New insn pattern.
2097         (mulv4hi3): Rename to...
2098         (*mulv4hi3_iwmmxt): This.
2099         (smaxv8qi3, smaxv4hi3, smaxv2si3, umaxv8qi3, umaxv4hi3)
2100         (umaxv2si3, sminv8qi3, sminv4hi3, sminv2si3, uminv8qi3)
2101         (uminv4hi3, uminv2si3): Remove. Replace with...
2102         (*smax<mode>3_iwmmxt, *umax<mode>3_iwmmxt, *smin<mode>3_iwmmxt)
2103         (*umin<mode>3_iwmmxt): These.
2104         (ashrv4hi3, ashrv2si3, ashrdi3_iwmmxt): Replace with...
2105         (ashr<mode>3_iwmmxt): This new pattern.
2106         (lshrv4hi3, lshrv2si3, lshrdi3_iwmmxt): Replace with...
2107         (lshr<mode>3_iwmmxt): This new pattern.
2108         (ashlv4hi3, ashlv2si3, ashldi3_iwmmxt): Replace with...
2109         (ashl<mode>3_iwmmxt): This new pattern.
2110         * config/arm/neon-docgen.ml: New file. Generate documentation for
2111         intrinsics.
2112         * config/arm/neon-gen.ml: New file. Generate arm_neon.h header.
2113         * config/arm/arm_neon.h: New (autogenerated).
2114         * config/arm/neon-testgen.ml: New file. Generate NEON tests
2115         automatically.
2116         * config/arm/neon.md: New file. Define NEON instructions.
2117         * config/arm/neon.ml: New file. Abstract description of NEON
2118         instructions, used to generate arm_neon.h header, documentation and
2119         tests.
2120         * config/arm/t-arm (MD_INCLUDES): Add vec-common.md, neon.md.
2121         * vec-common.md: New file. Shared parts for iWMMXt and NEON vector
2122         support.
2123         * doc/extend.texi (ARM Built-in Functions): Rename and remove
2124         extraneous comma.
2125         (ARM NEON Intrinsics): New subsection.
2126         * doc/arm-neon-intrinsics.texi: New (autogenerated).
2127
2128 2007-07-25  Danny Smith   <dannysmith@users.sourceforge.net>
2129
2130         * config/i386/i386-protos.h (i386_pe_asm_file_end): Remove
2131         prototype.
2132
2133 2007-07-24  Jan Hubicka  <jh@suse.cz>
2134
2135         * regclass.c (move_table): New type.
2136         (move_cost, may_move_in_cost, may_move_out_cost): Use it.
2137         (init_move_cost): Break out from ...
2138         (init_reg_sets_1): ... here; simplify computation of
2139         have_regs-of_mode and contains_reg_of_mode.
2140         (record_reg_classes): Unswitch internal loops.
2141         (copy_cost): Trigger lazy initialization of move cost
2142         (record_address_regs): Likewise.
2143
2144 2007-07-24  Daniel Berlin  <dberlin@dberlin.org>
2145
2146         * config/darwin.c (darwin_override_options): Don't force on
2147         flag_var_tracking_uninit when no debug info is requested.
2148
2149 2007-07-25  Zdenek Dvorak  <dvorakz@suse.cz>
2150
2151         * cfgloop.c (init_loops_structure): New function.
2152         (flow_loops_find): Create root of the loop tree unconditionally.
2153
2154 2007-07-24  Daniel Jacobowitz  <dan@codesourcery.com>
2155
2156         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use fold_convert.
2157
2158 2007-07-24  Jan Hubicka  <jh@suse.cz>
2159
2160         * caller-save.c: Include ggc.h, gt-caller-save.h
2161         (reg_save_code, reg_restore_code): Rename to ...
2162         (cached_reg_save_code, cached_reg_restore_code): ... those.
2163         (savepat, restpat, test_reg, test_mem, saveinsn, restinsn): New.
2164         (reg_save_code, reg_restore_code): New functions.
2165         (init_caller_save): Do not intialize
2166         reg_save_code/reg_restore_code tables.
2167         * Makefile.in: (gt-caller-save.h): New.
2168
2169 2007-07-24  Andreas Krebbel  <krebbel1@de.ibm.com>
2170
2171         * tree-ssa-ifcombine.c (ifcombine_ifandif): Use a ONE operand
2172         with the mode of the original operand instead of
2173         integer_one_node.
2174
2175 2007-07-23  Jan Hubicka  <jH@suse.cz>
2176
2177         * i386.c (ix86_secondary_memory_needed): Break out to...
2178         (inline_secondary_memory_needed): ... here.
2179         (ix86_memory_move_cost): Break out to ...
2180         (inline_memory_move_cost): ... here; add support for IN value of 2 for
2181         maximum of input and output; fix handling of Q_REGS on 64bit.
2182         (ix86_secondary_memory_needed): Microoptimize.
2183
2184 2007-07-23  Sebastian Pop  <sebpop@gmail.com>
2185
2186         * tree-data-ref.c (find_vertex_for_stmt, create_rdg_edge_for_ddr,
2187         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
2188         stmts_from_loop, known_dependences_p, build_rdg): New.
2189         * tree-data-ref.h: Depends on graphds.h.
2190         (rdg_vertex, RDGV_STMT, rdg_dep_type, rdg_edge, RDGE_TYPE): New.
2191         (build_rdg): Declared.
2192         * Makefile.in (TREE_DATA_REF_H): Depends on graphds.h.
2193
2194 2007-07-23  Daniel Berlin  <dberlin@dberlin.org>
2195
2196         * tree-ssa-propagate.c (valid_gimple_expression_p): Match up with
2197         ccp_min_invariant.
2198
2199 2007-07-23  Peter Bergner  <bergner@vnet.ibm.com>
2200             Jakub Jelinek  <jakub@redhat.com>
2201
2202         PR middle-end/PR28690
2203         * optabs.c (expand_binop): (emit_cmp_and_jump_insns): Allow EQ compares.
2204         * rtlanal.c (commutative_operand_precedence): Prefer both REG_POINTER
2205         and MEM_POINTER operands over REG and MEM operands.
2206         (swap_commutative_operands_p): Change return value to bool.
2207         * rtl.h: Update the corresponding prototype.
2208         * tree-ssa-address.c (gen_addr_rtx): Use simplify_gen_binary
2209         instead of gen_rtx_PLUS.
2210         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Change return
2211         value to bool.  Change function arguments to rtx's and update code
2212         to match.
2213         (simplify_plus_minus): Update the simplify_plus_minus_op_data_cmp
2214         calls to match the new declaration.
2215         * simplify-rtx.c (simplify_associative_operation): Don't
2216         reorder simplify_binary_operation arguments.
2217
2218 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
2219
2220         * config/mips/mips.c (override_options): Use mips_costs to derive
2221         the default branch cost.
2222         * config/mips/mips.h (BRANCH_COST): Use mips_branch_cost rather
2223         than mips_costs.
2224         * config/mips/mips.opt (mbranch-cost=): New option.
2225         * doc/invoke.texi (-mbranch-cost): Document new MIPS option.
2226
2227 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
2228
2229         * config/mips/mips.h (GR_REG_CLASS_P, COP_REG_CLASS_P): Delete.
2230         (SECONDARY_MEMORY_NEEDED): Delete commented-out definition.
2231         * config/mips/mips.c (mips_register_move_cost): Use reg_class_subset_p
2232         instead of GR_REG_CLASS_P and COP_REG_CLASS_P.
2233
2234 2007-07-23  Richard Sandiford  <richard@codesourcery.com>
2235
2236         * config/mips/constraints.md (ks): New constraint.
2237         * config/mips/mips.md (*add<mode>3_sp1, *add<mode>3_sp2): Fold into...
2238         (*add<mode>3_mips16): ...here.
2239
2240 2007-07-21  Uros Bizjak  <ubizjak@gmail.com>
2241
2242         * optabs.h (enum optab_index): Add new OTI_signbit.
2243         (signbit_optab): Define corresponding macro.
2244         (enum insn_code signbit_optab[]): Remove array.
2245         * optabs.c (init_optabs): Initialize signbit_optab using init_optab.
2246         (expand_copysign_absneg): If back end provides signbit insn, use it
2247         instead of bit operations on floating point argument.
2248         * builtins.c (enum insn_code signbit_optab[]): Remove array.
2249         (expand_builtin_signbit): Check signbit_optab->handlers[].insn_code for
2250         availability of signbit insn.
2251
2252         * config/i386/i386.md (signbit<mode>2): New insn pattern to implement
2253         signbitf, signbit and signbitl built-ins as inline x87 intrinsics when
2254         SSE mode is not active.
2255         (isinf<mode>2): Disable for mfpmath=sse,387.
2256
2257 2007-07-22  Ben Elliston  <bje@au.ibm.com>
2258
2259         * regclass.c (invalid_mode_change_p): Attach ATTRIBUTE_UNUSED to
2260         `class' parameter.
2261         * struct-equiv.c (note_local_live): Likewise for `y_regno'.
2262
2263 2007-07-20  Richard Guenther  <rguenther@suse.de>
2264
2265         * tree-cfg.c (verify_expr): COND_EXPRs can have any
2266         integral typed condition.
2267         * tree-ssa.c (useless_type_conversion_p): Do not preserve
2268         booleanness.  Only preserve conversions from a non-base
2269         type to a base type, not in general between types with
2270         different TYPE_MIN_VALUE or TYPE_MAX_VALUE.
2271         * tree.def (COND_EXPR): Document that the condition
2272         can be of any integral type.
2273
2274 2007-07-20  Nigel Stephens  <nigel@mips.com>
2275             Richard Sandiford  <richard@codesourcery.com>
2276
2277         * config/mips/mips.h (mips_dwarf_regno): Declare.
2278         (DBX_REGISTER_NUMBER): Remove redundant brackets.
2279         (HI_REGNUM, LO_REGNUM): Define in an endian-dependent way.
2280         (AC1HI_REGNUM, AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM)
2281         (AC3HI_REGNUM, AC3LO_REGNUM, ACC_HI_REG_P): Delete.
2282         (reg_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
2283         (REG_CLASS_NAMES): Update accordingly.
2284         * config/mips/mips.c (mips_dwarf_regno): New array.
2285         (mips_regno_to_class): Rename HI_REG to MD0_REG and LO_REG to MD1_REG.
2286         (mips_subword): Remove special handling for accumulator registers.
2287         (override_options): Initiailize mips_dwarf_regno.  Remove use
2288         of ACC_HI_REG_P.
2289         (mips_swap_registers): New function.
2290         (mips_conditional_register_usage): Swap accumulator registers
2291         around if TARGET_LITTLE_ENDIAN.
2292         (mips_cannot_change_mode_class): Remove special treatment of ACC_REGS.
2293         * config/mips/constraints.md (h, l): Use the endianness to choose
2294         between MD0_REG and MD1_REG.
2295         * config/mips/mips.md (*mfhilo_<mode>_macc): Use a fixed-string,
2296         alternative-dependent template.
2297
2298 2007-07-20  Richard Sandiford  <richard@codesourcery.com>
2299
2300         * config/arm/arm.md (movsi): Use can_create_pseudo_p instead of
2301         no_new_pseudos.
2302
2303 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
2304
2305         * function.c (thread_prologue_and_epilogue_insns): Fix exit
2306         predecessor fallthru flags.
2307
2308 2007-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
2309
2310         * tree-ssa-loop-niter.c (assert_loop_rolls_lt): Convert the operands
2311         of compare to the same type.
2312         * cfgloopmanip.c (add_loop): Update information about loop exits.
2313         (loop_version): Remove the innermost loop requirement.
2314         * tree-ssa-loop-manip.c (determine_exit_conditions): Convert bounds
2315         to sizetype for pointers.
2316
2317 2007-07-18  H.J. Lu  <hongjiu.lu@intel.com>
2318
2319         * Makefile.in (D32PBIT_FUNCS): Add _sd_to_tf and _tf_to_sd.
2320         (D64PBIT_FUNCS): Add _dd_to_tf and _tf_to_dd.
2321         (D128PBIT_FUNCS): Add _td_to_tf and _tf_to_td.
2322
2323         * config/dfp-bit.c: Empty for TFmode conversions.
2324
2325 2007-07-18  Caroline Tice  <ctice@apple.com>
2326         
2327         * var-tracking.c (find_src_status):  Check for  COND_EXEC insns
2328         and handle them correctly; check that src is not NULL before
2329         trying to use it.
2330         (find_src_set_src): Likewise.
2331         
2332 2007-07-18  Bob Wilson  <bob.wilson@acm.org>
2333         
2334         * config/xtensa/xtensa.c (xtensa_expand_mask_and_shift): New.
2335         (struct alignment_context, init_alignment_context): New.
2336         (xtensa_expand_compare_and_swap, xtensa_expand_atomic): New.
2337         * config/xtensa/xtensa.h (XCHAL_HAVE_RELEASE_SYNC): Add default.
2338         (XCHAL_HAVE_S32C1I): Likewise.
2339         (TARGET_RELEASE_SYNC, TARGET_S32C1I): New.
2340         * config/xtensa/xtensa.md (UNSPECV_MEMW): New constant.
2341         (UNSPECV_S32RI, UNSPECV_S32C1I): Likewise.
2342         (ATOMIC, HQI): New macros.
2343         (memory_barrier, *memory_barrier): New.
2344         (sync_lock_releasesi): New.
2345         (sync_compare_and_swapsi, sync_compare_and_swap<mode>): New.
2346         (sync_lock_test_and_set<mode>): New.
2347         (sync_<atomic><mode>): New.
2348         (sync_old_<atomic><mode>, sync_new_<atomic><mode>): New.
2349         * config/xtensa/xtensa-protos.h (xtensa_expand_compare_and_swap): New.
2350         (xtensa_expand_atomic): New.
2351         
2352 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2353
2354         PR target/30652
2355
2356         * builtins.c (expand_builtin_interclass_mathfn): Provide a generic
2357         transformation for builtin ISNORMAL.
2358         (expand_builtin): Handle BUILT_IN_ISNORMAL.
2359         * builtins.def (BUILT_IN_ISNORMAL): New.
2360         * doc/extend.texi: Document isnormal.
2361
2362 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2363
2364         PR target/30652
2365
2366         * builtins.c (expand_builtin_interclass_mathfn): Allow for missing
2367         optabs infrastructure.  Provide generic implementation for
2368         FINITE/ISFINITE.
2369         (expand_builtin): Handle FINITE/ISFINITE.
2370         (fold_builtin_classify): Make ISFINITE canonical instead of FINITE.
2371         (fold_builtin_1): Likewise.
2372
2373         * builtins.def (BUILT_IN_ISFINITE): New.
2374
2375         * doc/extend.texi: Document isfinite.
2376
2377 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2378
2379         PR target/30652
2380         PR middle-end/20558
2381
2382         * builtins.c (expand_builtin_interclass_mathfn): Provide a
2383         generic fallback for isinf.
2384         * c-cppbuiltin.c (builtin_define_float_constants): Move FP max
2385         calculation code ...
2386         * real.c (get_max_float): ... to here.
2387         * real.h (get_max_float): New.
2388
2389 2007-07-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2390
2391         PR middle-end/32668
2392
2393         * builtin-attrs.def (ATTR_TYPEGENERIC,
2394         ATTR_CONST_NOTHROW_TYPEGENERIC): New.
2395
2396         * builtins.def (BUILT_IN_ISINF, BUILT_IN_ISNAN,
2397         BUILT_IN_ISGREATER, BUILT_IN_ISGREATEREQUAL, BUILT_IN_ISLESS,
2398         BUILT_IN_ISLESSEQUAL, BUILT_IN_ISLESSGREATER,
2399         BUILT_IN_ISUNORDERED): Use ATTR_CONST_NOTHROW_TYPEGENERIC.
2400
2401         * c-common.c (handle_type_generic_attribute): New.
2402         (c_common_attribute_table): Add "type generic".
2403
2404         * c-typeck.c (convert_arguments): Handle "type generic" functions.
2405
2406 2007-07-18  Daniel Berlin  <dberlin@dberlin.org>
2407
2408         * tree-ssa-sccvn.c (try_to_simplify): Use valid_gimple_expression
2409         * tree-ssa-propagate (valid_gimple_expression): Handle ADDR_EXPR
2410         properly.
2411
2412 2007-07-18  Rask Ingemann Lambertsen  <rask@sygehus.dk>
2413
2414         PR target/32808
2415         * config/cris/cris.c (cris_print_index): Don't use XEXP before
2416         checking that the operand is an expression.
2417
2418 2007-07-19  Christoph von Wittich  <Christoph_vW@reactos.org>
2419             Danny Smith  <dannysmith@users.sourceforge.net>
2420
2421         PR/other 30335
2422         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Put
2423         file mapping object in local namespace if Windows version later
2424         than NT4
2425
2426 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
2427
2428         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Declare.
2429         * config/arm/arm.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
2430         arm_cannot_force_const_mem.
2431         (arm_cannot_force_const_mem): New function.
2432         * config/arm/arm.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macro.
2433         (LEGITIMATE_CONSTANT_P): Test arm_cannot_force_const_mem instead
2434         of arm_tls_referenced_p.
2435         * config/arm/arm.md (movsi): Split out-of-section constants when
2436         ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P.
2437         * config/arm/vxworks.h (ARM_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
2438
2439 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
2440
2441         * config/mips/mips.md (clear_cache): Treat the size argument as Pmode.
2442
2443 2007-07-18  Richard Sandiford  <richard@codesourcery.com>
2444
2445         * config/mips/mips.md (*extendqihi2): Convert the destination
2446         to SImode.
2447
2448 2007-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2449
2450         * config/pa/fptr.c: Update license header.
2451         * config/pa/milli64.S: Likewise.
2452
2453 2007-07-17  Nick Clifton  <nickc@redhat.com>
2454
2455         * COPYING_v3: New file.  Contains version 3 of the GNU General
2456         Public License.
2457         * COPYING.LIB_v3: New file.  Contains version 3 of the GNU
2458         Lesser General Public License.
2459         * doc/include/gpl_v3.texi: New file.  Contains version 3 of
2460         the GNU General Public License.
2461
2462 2007-07-17  Zdenek Dvorak  <dvorakz@suse.cz>
2463
2464         PR rtl-optimization/32773
2465         * cfglayout.c (force_one_exit_fallthru): New function.
2466         (cfg_layout_finalize): Use it.
2467
2468 2007-07-16  Richard Guenther  <rguenther@suse.de>
2469             Uros Bizjak  <ubizjak@gmail.com>
2470
2471         * tree-if-conv.c (find_phi_replacement_condition): Unshare "*cond"
2472         before forcing it to gimple operand.
2473
2474 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
2475             David Ung  <davidu@mips.com>
2476
2477         * config/mips/mips.h (TUNE_24K): Define.
2478         (TUNE_MACC_CHAINS): Add TUNE_24K.
2479         * config/mips/mips.md: (*mul_acc_si, *mul_sub_si): Change type to
2480         imadd.
2481         * config/mips/74k.md (r74k_int_mult): Split madd/msub to ..
2482         (r74k_int_madd): .. this new reservation.
2483         (define_bypass): Fixed bypasses for r74k_int_madd to use
2484         mips_linked_madd_p.
2485         * config/mips/24k.md (define_bypass): Define new
2486         r24k_int_mul3->r24k_int_madd bypass using mips_linked_madd_p.
2487
2488 2007-07-16  Sandra Loosemore  <sandra@codesourcery.com>
2489             Nigel Stephens  <nigel@mips.com>
2490
2491         * config/mips/mips.md:  Include 20kc.md.
2492         * config/mips/20kc.md: New file.
2493         * config/mips/mips.c (mips_rtx_cost_data): Fill in 20Kc costs.
2494         (mips_adjust_cost): Tweak for 20Kc.
2495         (mips_issue_rate): Likewise.
2496         * config/mips/mips.h (TUNE_20KC): Define.
2497
2498 2007-07-16  David Edelsohn  <edelsohn@gnu.og>
2499
2500         * config/rs6000/rs6000.c (struct processor_cost): Add
2501         cache_line_size, l1_cache_lines, and simultaneous_prefetches
2502         fields.
2503         (*_cost): Add cache information.
2504         (rs6000_override_options): Set cache parameters.
2505
2506 2007-07-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2507
2508         PR bootstrap/3456
2509         * config.gcc (mips-sgi-irix[56]*): Enable pthread support.
2510         * doc/install.texi (mips-sgi-irix6): pthread support works now.
2511
2512 2007-07-16  Paul Brook  <paul@codesourcery.com>
2513
2514         PR target/32753
2515         * config/arm/cirrus.md (cirrus_arm_movsi_insn): Remove dead insn.
2516         (cirrus_thumb2_movsi_insn): Ditto.
2517
2518 2007-07-15  Geoffrey Keating  <geoffk@apple.com>
2519
2520         * config/rs6000/darwin-fallback.c (interpret_libc): Change
2521         CR2_REGNO to R_CR2.
2522
2523 2007-07-15  Andrew Haley  <aph@redhat.com>
2524
2525         * unwind-sjlj.c (_Unwind_GetIPInfo): Check for context->fc != NULL
2526         before looking in the context.
2527
2528 2007-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2529
2530         PR middle-end/32398
2531         PR middle-end/32769
2532         * pa-protos.h (pa_eh_return_handler_rtx): Declare.
2533         * pa.c (pa_extra_live_on_entry, rp_saved): Declare.
2534         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2535         (pa_output_function_prologue): Use rp_saved and current_function_is_leaf
2536         to generate .CALLINFO statement.
2537         (hppa_expand_prologue): Set rp_saved.
2538         (hppa_expand_epilogue): Use rp_saved.
2539         (pa_extra_live_on_entry, pa_eh_return_handler_rtx): New functions.
2540         * pa.h (EH_RETURN_HANDLER_RTX): Use pa_eh_return_handler_rtx.
2541
2542 2007-07-14  Dirk Mueller  <dmueller@suse.de>
2543
2544         * omega.c (coalesce): Fix memory leak on early exit.
2545         * matrix-reorg.c (check_allocation_function): Likewise.
2546         * tree-vect-transform.c (vect_get_new_vect_var): free result
2547         of concat().
2548         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
2549         pass pointer to edge vector
2550         (partition_hot_cold_basic_blocks): Fix memory leak.
2551         * collect2.c (prefix_from_string): Free temporary storage.
2552         * reload1.c (fixup_abnormal_edges): Free sbitmap.
2553
2554 2007-07-14  Kaz Kojima  <kkojima@gcc.gnu.org>
2555
2556         * config/sh/sh.h (DO_GLOBAL_CTORS_BODY): Add void to prototype.
2557         (DO_GLOBAL_DTORS_BODY): Likewise.
2558
2559 2007-07-14  Sandra Loosemore  <sandra@codesourcery.com>
2560             Nigel Stephens  <nigel@mips.com>
2561
2562         * config/mips/mips.c (mips_classify_symbol): Don't return
2563         SYMBOL_SMALL_DATA for constant pool addresses if
2564         TARGET_EMBEDDED_DATA is true.
2565
2566 2007-07-14  Uros Bizjak  <ubizjak@gmail.com>
2567
2568         * config/i386/i386.c (init_mmx_sse_builtins): Define all builtins
2569         except __builtin_ia32_emms, __builtin_ia32_ldmxcsr,
2570         __builtin_ia32_stmxcsr, __builtin_ia32_maskmovq, __builtin_ia32_loadups,
2571         __builtin_ia32_storeups, __builtin_ia32_loadhps, __builtin_ia32_loadlps,
2572         __builtin_ia32_storehps, __builtin_ia32_storelps,
2573         __builtin_ia32_movntps, __builtin_ia32_movntq, __builtin_ia32_sfence,
2574         __builtin_ia32_femms, __builtin_ia32_maskmovdqu, __builtin_ia32_loadupd,
2575         __builtin_ia32_storeupd, __builtin_ia32_loadhpd, __builtin_ia32_loadlpd,
2576         __builtin_ia32_movnti, __builtin_ia32_movntpd, __builtin_ia32_movntdq,
2577         __builtin_ia32_clflush, __builtin_ia32_lfence, __builtin_ia32_mfence,
2578         __builtin_ia32_loaddqu, __builtin_ia32_storedqu, __builtin_ia32_monitor,
2579         __builtin_ia32_mwait, __builtin_ia32_lddqu, __builtin_ia32_movntdqa,
2580         __builtin_ia32_movntsd and __builtin_ia32_movntss as const builtins
2581         using def_builtin_const.
2582
2583 2007-07-14  Eric Botcazou  <ebotcazou@adacore.com>
2584
2585         PR tree-optimization/32705
2586         * tree-ssa-sccvn.c (set_ssa_val_to): Accept VN_TOP as value number.
2587         (simplify_binary_expression): Use SSA_VAL consistently.
2588
2589 2007-07-13  David Edelsohn  <edelsohn@gnu.org>
2590
2591         * config/rs6000/spe.md (SPE_ACC_REGNO): Delete definition.
2592         (SPEFSCR_REGNO): Delete definition.
2593         * config/rs6000/rs6000.c: LINK_REGISTER_REGNUM -> LR_REGNO.
2594         COUNT_REGISTER_REGNUM -> CTR_REGNO.
2595         * config/rs6000/rs6000.h: Do not define *_REGNO.
2596         LINK_REGISTER_REGNUM -> LR_REGNO.
2597         COUNT_REGISTER_REGNUM -> CTR_REGNO.
2598         * config/rs6000/predicates.md: LINK_REGISTER_REGNUM ->  LR_REGNO.
2599         COUNT_REGISTER_REGNUM -> CTR_REGNO.
2600         * config/rs6000/linux-unwind.h: Define R_LR, R_CR2, R_VR0,
2601         R_VRSAVE, R_VSCR. Use them.
2602         * config/rs6000/darwin-fallback.c: Define R_LR, R_CTR, R_CR2,
2603         R_XER, R_VR0, R_VRSAVE, R_VSCR, R_SPEFSCR.  Use them.
2604         * config/rs6000/rs6000.md: Define REGNO constants.  Use them.
2605         * config/rs6000/aix.h: Define R_LR.  Use it.
2606         
2607 2007-07-13  Caroline Tice  <ctice@apple.com>
2608         
2609         * toplev.c (process_options): Turn flag_var_tracking_uninit off when
2610         flag_var_tracking is explicitly turned off (i.e. when variable
2611         tracking is not feasible); otherwise, turn flag_var_tracking on when
2612         flag_var_tracking_uninit is on.
2613         * rtl.def (VAR_LOCATION): Add a new integer subfield to VAR_LOCATION
2614         note definitions, to allow recording of initialization status in the
2615         notes.
2616         * dwarf2out.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
2617         (add_var_loc_to_decl): Add comparison of NOTE_VAR_LOCATION_STATUS to
2618         determine if two note locations are equal.
2619         (output_loc_list): Don't output list entries whose start & end labels
2620         are the same.
2621         (reg_loc_descriptor): Add parameter for initialization status; pass it
2622         to other loc descriptor functions.
2623         (one_reg_loc_descriptor): Add parameter for initialization status;
2624         check its value and add DW_OP_GNU_uninit to returned loc descr if
2625         appropriate.
2626         (multiple_reg_loc_descriptor): Add parameter for initialization
2627         status;
2628         pass init status argument to other loc descriptor functions; check
2629         value of intialization parameter and add DW_OP_GNU_uninit to returned
2630         loc descr if appropriate.
2631         (based_loc_descr): Add parameter for initialization status; add new
2632         variable for return value; check value of initialization parameter and
2633         add DW_OP_GNU_uninit to returned loc descr if appropriate.
2634         (concatn_mem_loc_descriptor): Add parameter for initialization status;
2635         pass init status argument to other loc descriptor functions; check
2636         value of intialization parameter and add DW_OP_GNU_uninit to returned
2637         loc descr if appropriate.
2638         (mem_loc_descriptor): Likewise.
2639         (concat_loc_descriptor): Likewise.
2640         (concatn_loc_descriptor): Likewise.
2641         (loc_descriptor): Add parameter for initialization status; pass it as
2642         argument to other loc descriptor function calls.
2643         (loc_descriptor_from_tree_1): Add appropriate initialization status
2644         to loc descriptor function calls.
2645         (add_location_or_const_value_attribute): Get initialization status
2646         from VAR_LOCATION note; add initialization status to loc descriptor
2647         function calls.
2648         * dwarf2.h (enum dwarf_location_atom): New op, DW_OP_GNU_uninit.
2649         * print-rtl.c (print_rtx): When printing a VAR_LOCATION note, if
2650         status is uninitialized, add "[uninint]" to output.
2651         * common.opt (fvar-tracking-uninit): New option, similar to
2652         fvar-tracking, to turn on tracking of uninitialized variables; creates
2653         a new global flag, flag_var_tracking_uninit.
2654         * rtl.h (NOTE_VAR_LOCATION_STATUS): New macro for accessing new field.
2655         (enum var_init_status): New type, for var initialization status field.
2656         * var-tracking.c (struct location_chain_def): Two new fields, init,
2657         for initialization status, and set_src for the assignment value expr.
2658         (unshare_variable): New parameter for initialization status;
2659         initialize new init and set_src fields.
2660         (var_reg_set): New parameters for initialization status and value;
2661         pass them to set_variable_part.
2662         (var_mem_set): Likewise.
2663         (get_init_value): New function.
2664         (var_reg_delete_and_set): New initialization status & value
2665         parameters; add call to get_init_value if status is unknown; pass new
2666         parameters to clobber_variable_part and var_reg_set.
2667         (var_mem_delete_and_set): Likewise.
2668         (var_reg_delete): Pass null set_src value to clobber_variable_part.
2669         (var_mem_delete): Likewise.
2670         (variable_union): Pass status to unshare_variable; initialize new init
2671         and set_src fields. If flag_var_tracking_uninit is not set, force
2672         status to initialized.
2673         (add_stores): Store insn, rather than NEXT_INSN(insn), so it can be
2674         used later to get the set_src value.
2675         (find_src_status): New function.
2676         (find_src_set_src): New function.
2677         (compute_bb_dataflow): Pass init status to calls to var_reg_set,
2678         var_mem_set, var_reg_delete_and_set and var_mem_delete_and_set; for
2679         MO_SET, get set_src value and pass it to var_reg_delete_and_set
2680         and var_mem_delete_and_set.
2681         (dump_variable): Print out "[uninit]" if appropriate.
2682         (set_variable_part): Add new initialization and set_src parameters;
2683         pass status to unshare_variable; set node->init and node- >set_src
2684         fields and modify slot in hash table appropriately; save the init and
2685         set_src values if appropriate and assign to the new node.
2686         (clobber_variable_part): New set_src parameter; if two nodes have
2687         same variable and same location but different set_src (assignment)
2688         values, clobber old node.
2689         (delete_variable_part): Pass init status to unshare_variable.
2690         (emit_note_insn_var_location): Add initialized var; assign var's init
2691         status to new 'initialized'; pass new init status field to calls to
2692         gen_rtx_VAR_LOCATION. If flag_var_tracking_uninit is not set, force
2693         status to initialized.
2694         (emit_notes_in_bb): Pass initialization status to calls to
2695         var_reg_set, var_mem_set, var_reg_delete_and_set and
2696         var_mem_delete_and_set; for MO_SET, get set_src value and pass it to
2697         var_reg_delete_and_set and var_mem_delete_and_set; call
2698         emit_notes_for_changes on NEXT_INSN(insn) rather than on insn, to
2699         make up for change in add_stores.
2700         (vt_add_function_parameters): Add status to calls to
2701         set_variable_part.
2702         * config/darwin.c (darwin_override_options): Turn on uninitialized
2703         tracking automatically, if var_tracking is on and the system is
2704         10.5 or higher.
2705         
2706 2007-07-13  Sa Liu  <saliu@de.ibm.com>
2707
2708         * config.gcc: Add options for arch and tune on SPU.
2709         * config/spu/predicates.md: Add constant operands 0 and 1.
2710         * config/spu/spu-builtins.def: Add builtins for double precision 
2711         floating point comparison: si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, 
2712         si_dftsv, spu_cmpeq_13, spu_cmpabseq_1, spu_cmpgt_13, spu_cmpabsgt_1,
2713         spu_testsv.
2714         * config/spu/spu-c.c: Define __SPU_EDP__ when builtins invoked with 
2715         a CELLEDP target.
2716         * config/spu/spu-protos.h: Add new function prototypes. 
2717         * config/spu/spu.c (spu_override_options): Check options -march and
2718         -mtune.
2719         (spu_comp_icode): Add comparison code for DFmode and vector mode.
2720         (spu_emit_branch_or_set): Use the new code for DFmode and vector 
2721         mode comparison.
2722         (spu_const_from_int): New.  Create a vector constant from 4 ints.
2723         (get_vec_cmp_insn): New.  Get insn index of vector compare instruction.
2724         (spu_emit_vector_compare): New.  Emit vector compare.
2725         (spu_emit_vector_cond_expr): New.  Emit vector conditional expression.
2726         * config/spu/spu.h: Add options -march and -mtune.  Define processor
2727         types PROCESSOR_CELL and PROCESSOR_CELLEDP.  Define macro
2728         CANONICALIZE_COMPARISON.
2729         * config/spu/spu.md: Add new insns for double precision compare
2730         and double precision vector compare.  Add vcond and smax/smin patterns
2731         to enable DFmode vector conditional expression.
2732         * config/spu/spu.opt: Add options -march and -mtune.
2733         * config/spu/spu_internals.h: Add builtins for CELLEDP target:
2734         si_dfceq, si_dfcmeq, si_dfcgt, si_dfcmgt, si_dftsv.  Add builtin for
2735         both CELL and CELLEDP targets: spu_testsv.
2736         * config/spu/spu_intrinsics.h: Add flag mnemonics for test special 
2737         values.
2738
2739 2007-07-13  Richard Guenther  <rguenther@suse.de>
2740
2741         PR tree-optimization/32721
2742         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Preserve
2743         TREE_THIS_VOLATILE on the folded reference.
2744         * tree-ssa-operands.c (get_expr_operands): Set has_volatile_ops
2745         if the array reference has TREE_THIS_VOLATILE set.
2746
2747 2007-07-13  H.J. Lu  <hongjiu.lu@intel.com>
2748
2749         PR other/32188
2750         * doc/libgcc.texi: Update DFP intrinsics for DPD and BID.
2751
2752 2007-07-13  Andreas Schwab  <schwab@suse.de>
2753
2754         * gengtype-lex.l: Allow declarations to be indented.
2755
2756 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
2757
2758         * ginclude/tgmath.h: New.
2759         * config.gcc: Use GCC's tgmath.h on non-glibc systems.
2760         * doc/sourcebuild.texi (Headers): Document use_gcc_tgmath.
2761         * configure.ac (STMP_FIXPROTO): Honor use_gcc_tgmath.
2762         * configure: Regenerate.
2763
2764 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2765
2766         * config/sh/linux-unwind.h (sh_fallback_frame_state): Use
2767         correct index when setting register save state for xd
2768         registers.
2769
2770 2007-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2771
2772         * config/sh/sh.c (mark_use): Remove.
2773
2774 2007-07-12  Paul Brook  <paul@codesourcery.com>
2775
2776         * config/arm/arm.c (thumb1_compute_save_reg_mask): Make sure scratch
2777         reg does not overlap return value.
2778
2779 2007-07-12  Daniel Berlin  <dberlin@dberlin.org>
2780
2781         * tree-ssa-pre.c (get_expression_vuses): Move out side-effect.
2782         (set_expression_vuses): Ditto.
2783         (init_pre): Initialize expression_vuses.
2784
2785 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
2786
2787         * config/i386/sse.md (storentdf, storentsf): New.
2788
2789 2007-07-12  Geoffrey Keating  <geoffk@apple.com>
2790
2791         * builtins.c (get_pointer_alignment): Honor DECL_ALIGN on a
2792         FUNCTION_DECL.
2793         * tree.c (build_decl_stat): Move code from here...
2794         (make_node_stat): ... to here.  Don't uselessly clear DECL_USER_ALIGN.
2795         (expr_align): Honor DECL_ALIGN on a FUNCTION_DECL.  Add comment
2796         about using DECL_ALIGN of LABEL_DECL and CONST_DECL.
2797         * tree.h (DECL_USER_ALIGN): Fix misplaced comment.
2798         * varasm.c (assemble_start_function): Use DECL_ALIGN instead of
2799         FUNCTION_BOUNDARY.
2800
2801 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
2802             Devang Patel  <dpatel@apple.com>
2803
2804         PR tree-optimization/25413
2805         * targhooks.c (default_builtin_vector_alignment_reachable): New.
2806         * targhooks.h (default_builtin_vector_alignment_reachable): New.
2807         * tree.h (contains_packed_reference): New.
2808         * expr.c (contains_packed_reference): New.
2809         * tree-vect-analyze.c (vector_alignment_reachable_p): New.
2810         (vect_enhance_data_refs_alignment): Call
2811         vector_alignment_reachable_p.
2812         * target.h (vector_alignment_reachable): New builtin.
2813         * target-def.h (TARGET_VECTOR_ALIGNMENT_REACHABLE): New.
2814         * config/rs6000/rs6000.c (rs6000_vector_alignment_reachable): New.
2815         (TARGET_VECTOR_ALIGNMENT_REACHABLE): Define.
2816
2817 2007-07-12  Dorit Nuzman  <dorit@il.ibm.com>
2818
2819         * target.h (builtin_vectorization_cost): Add new target builtin.
2820         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
2821         * tree-vectorizer.h (TARG_SCALAR_STMT_COST): New.
2822         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST): New.
2823         * tree-vect-analyze.c (vect_analyze_slp_instance): Initisliaze
2824         uninitialized variables.
2825         * tree-vect-transform.c (cost_for_stmt): New function.
2826         (vect_estimate_min_profitable_iters): Call cost_for_stmt instead of
2827         using cost 1 for all scalar stmts. Be less conservative when
2828         estimating the number of prologue/epulogue iterations. Call
2829         targetm.vectorize.builtin_vectorization_cost. Return
2830         min_profitable_iters-1.
2831         (vect_model_reduction_cost): Use TARG_SCALAR_TO_VEC_COST for
2832         initialization cost instead of TARG_VEC_STMT_COST. Use
2833         TARG_VEC_TO_SCALAR_COST instead of TARG_VEC_STMT_COST for reduction
2834         epilogue code. Fix epilogue cost computation.
2835         * config/spu/spu.c (spu_builtin_vectorization_cost): New.
2836         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Implement.
2837         * config/spu/spu.h (TARG_COND_BRANCH_COST, TARG_SCALAR_STMT_COST):
2838         (TARG_SCALAR_LOAD_COST, TARG_SCALAR_STORE_COST, TARG_VEC_STMT_COST):
2839         (TARG_VEC_TO_SCALAR_COST, TARG_SCALAR_TO_VEC, TARG_VEC_LOAD_COST):
2840         (TARG_VEC_UNALIGNED_LOAD_COST, TARG_VEC_STORE_COST): Define.
2841
2842 2007-07-12  Richard Guenther  <rguenther@suse.de>
2843
2844         * gimplify.c (gimplify_conversion): Make sure that the result
2845         from maybe_fold_offset_to_reference is trivially convertible
2846         to the desired type before doing the simplification.
2847         (gimplify_expr): Likewise.
2848         * fold-const.c (fold_binary): Use the correct types for
2849         building the simplified expression.
2850
2851 2007-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
2852
2853         PR rtl-optimization/32729
2854         * cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
2855         that fallthru to exit.
2856
2857 2007-07-12  Kaz Kojima  <kkojima@gcc.gnu.org>
2858
2859         * config/sh/sh.md (symGOTOFF2reg): Add missing parenthesis.
2860         (symDTPOFF2reg): Likewise.
2861
2862 2007-07-11  Daniel Berlin  <dberlin@dberlin.org>
2863
2864         PR tree-optimization/32663
2865         
2866         * tree.h (VALUE_HANDLE_VUSES): Remove.
2867         (struct tree_value_handle): Remove vuses.
2868
2869         * tree-vn.c (create_value_handle_for_expr): Don't set
2870         VALUE_HANDLE_VUSES. 
2871
2872         * tree-ssa-pre.c (expression_vuses): New.
2873         (alloc_expression_id): Set up expression_vuses.
2874         (get_expression_vuses): New.
2875         (set_expression_vuses): Ditto.
2876         (clear_expression_ids): Modify for expression_vuses.
2877         (phi_translate_1): Ditto.
2878         (phi_translate_set): Ditto.
2879         (value_dies_in_block_x): Ditto
2880         (valid_in_sets): Ditto.
2881         (add_to_sets): Ditto.
2882         (find_existing_value_expr): Ditto.
2883         (create_value_handle_for_expr): Ditto.
2884         (make_values_for_stmt): Ditto.
2885         (vuse_equiv): Remove.
2886
2887 2007-07-11  Alexandre Oliva  <aoliva@redhat.com>
2888
2889         * Makefile.in (mostlyclean): Remove object files.
2890
2891 2007-07-11  Kenneth Zadeck <zadeck@naturalbridge.com>
2892
2893         * toplev.c (no_new_pseudos): Deleted.
2894         * rtl.h (no_new_pseudos): Deleted.
2895         * tree-pass.h (pass_no_new_pseudos): Deleted. 
2896         * passes.c (pass_no_new_pseudos): Deleted.
2897         * final.c (rest_of_clean_state): Removed no_new_pseudos.
2898         (rest_of_no_new_pseudos, pass_no_new_pseudos): Deleted.
2899         * struct-equiv.c (rtx_equiv_p): Replaced no_new_pseudos with 
2900         reload_completed.
2901         * cfgcleanup.c (try_crossjump_to_edge): Ditto. 
2902         * rtlhooks.c (gen_lowpart_general): Ditto.
2903         * optabs.c (prepare_operand): Ditto.
2904         * mode-switching.c (rest_of_handle_mode_switching): Deleted set of
2905         no_new_pseudos.
2906         * modulo-sched.c (rest_of_handle_sms): Ditto.
2907         * see.c (rest_of_handle_see): Ditto.
2908         * ifcvt.c (if_convert): Ditto.
2909         (gate_handle_if_after_combine): Replaced no_new_pseudos with 
2910         reload_completed.
2911         * init-regs.c (gate_initialize_regs): Deleted set of
2912         no_new_pseudos.
2913         * lower-subreg.c (decompose_multiword_subregs): Ditto. 
2914         * bb-reorder.c (rest_of_handle_partition_blocks): Ditto.
2915         * doc/md.texi: Changed no_new_pseudos to can_create_pseudo_p.
2916         
2917 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
2918
2919         PR target/32661
2920         * config/i386/sse.md (*sse2_storeq_rex64): Handle 64bit mem->reg moves.
2921         (*vec_extractv2di_1_sse2): Disable for TARGET_64BIT.
2922         (*vec_extractv2di_1_rex64): New insn pattern.
2923
2924 2007-07-11  David Daney  <ddaney@avtrex.com>
2925
2926         * config/mips/linux-unwind.h (mips_fallback_frame_state): Rewrite
2927         return address calculation.  Substitute DWARF_ALT_FRAME_RETURN_COLUMN
2928         for SIGNAL_UNWIND_RETURN_COLUMN.
2929         * config/mips/mips.h (SIGNAL_UNWIND_RETURN_COLUMN): Remove.
2930         (DWARF_FRAME_REGNUM): Rewrite.
2931         (DWARF_ALT_FRAME_RETURN_COLUMN) Define.
2932
2933 2007-07-11  Nick Clifton  <nickc@redhat.com>
2934
2935         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Revert previous
2936         delta and use gen_int_mode in place of GET_INT instead.
2937
2938 2007-07-11  Uros Bizjak  <ubizjak@gmail.com>
2939
2940         * reg-stack.c (struct tree_opt_pass pass_stack_regs): Nullify name
2941         and letter field.
2942
2943 2007-07-11  Douglas Gregor  <doug.gregor@gmail.com>
2944
2945         * params.def (PARAM_VERIFY_CANONICAL_TYPES): Remove.
2946         (PARAM_USE_CANONICAL_TYPES): New; decides whether to use canonical 
2947         types or not.
2948         * params.h (VERIFY_CANONICAL_TYPES): Remove.
2949         (USE_CANONICAL_TYPES): New.
2950         * doc/invoke.texi (verify-canonical-types): Remove.
2951         (use-canonical-types): Add.
2952
2953 2007-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
2954
2955         * config/spu/spu.c (spu_optimization_options): Remove setting of
2956         parameter PARAM_MAX_COMPLETELY_PEEL_TIMES.
2957         (spu_override_options): Move it here.
2958
2959 2007-07-11  Richard Sandiford  <richard@codesourcery.com>
2960
2961         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle -m4ksc and -m4ksd.
2962         * config/mips/mips.c (mips_cpu_info_table): Mention
2963         MIPS_ISA_LEVEL_SPEC in the comment.
2964
2965 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2966
2967         PR tree-optimization/32713
2968         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle REAL_CST.
2969
2970 2007-07-11  Paolo Carlini  <pcarlini@suse.de>
2971
2972         PR middle-end/30482
2973         * c-opts.c (c_common_post_options): Do not change flag_complex_method
2974         conditional to flag_isoc99.
2975         (c_common_init_options): Do it here, unconditionally.
2976
2977 2007-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2978
2979         PR tree-optimization/32589
2980         * doc/tree-ssa.texi (Rough GIMPLE Grammar): Add missing rule.
2981         * tree-gimple.c (is_gimple_min_invariant): Clarify head comment.
2982         * tree-ssa-propagate.c (valid_gimple_expression_p): New
2983         predicate, extracted from...
2984         (set_rhs): ...here.  Call it for the expression on entry.
2985         * tree-ssa-propagate.h (valid_gimple_expression_p): Declare.
2986         * tree-ssa-sccvn.c: Include tree-ssa-propagate.h.
2987         (simplify_binary_expression): Use valid_gimple_expression_p
2988         to validate the simplification.
2989         * Makefile.in (tree-ssa-sccvn.o): Depends on tree-ssa-propagate.h.
2990
2991 2007-07-11  Danny Smith  <dannysmith@users.sourceforge.net>
2992
2993         * config/i386/cygming.h (PREFERRED_DEBUGGING_TYPE): Define to
2994         DWARF2_DEBUG on 32 bit target too.
2995         (DWARF2_UNWIND_INFO): Reorganize 64-bit vs 32-bit definition. 
2996
2997 2007-07-11  Nick Clifton  <nickc@redhat.com>
2998
2999         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Provide alternative
3000         version for 64-bit hosts.
3001
3002 2007-07-10  David Daney  <ddaney@avtrex.com>
3003
3004         * config/mips/mips.h (ISA_HAS_SYNCI): New target capability
3005         predicate.
3006         (INITIALIZE_TRAMPOLINE): Emit clear_cache insn instead of  library
3007         call.
3008         * config/mips/mips.c (mips_expand_synci_loop): New function.
3009         * config/mips/mips.md (UNSPEC_CLEAR_HAZARD): New constant.
3010         (UNSPEC_RDHWR): Same.
3011         (UNSPEC_SYNCI): Same.
3012         (UNSPEC_SYNC): Same.
3013         (clear_cache): New expand.
3014         (sync): New insn.
3015         (synci): Same.
3016         (rdhwr): Same.
3017         (clear_hazard): Same.
3018         * config/mips/mips-protos.h (mips_expand_synci_loop): Declare
3019         function.
3020         * testsuite/gcc.target/mips/clear-cache-1.c: New test.
3021         * testsuite/gcc.target/mips/clear-cache-2.c: New test.
3022
3023 2007-07-10  Ian Lance Taylor  <iant@google.com>
3024
3025         * emit-rtl.c (gen_reg_rtx): Check can_create_pseudo_p rather than
3026         no_new_pseudos.
3027
3028 2007-07-10  David Daney  <ddaney@avtrex.com>
3029
3030         * builtins.def (BUILT_IN_CLEAR_CACHE): New builtin.
3031         * builtins.c (expand_builtin___clear_cache): New function.
3032         (expand_builtin): Call expand_builtin___clear_cache for
3033         BUILT_IN_CLEAR_CACHE case.
3034         * doc/extend.texi (__builtin___clear_cache): Document new builtin.
3035         * doc/md.texi (clear_cache): Document new instruction pattern.
3036         * testsuite/gcc.dg/builtins-64.c: New test.
3037
3038 2007-07-11  Hans-Peter Nilsson  <hp@axis.com>
3039
3040         * config/cris/cris.md ("movsi"): Fix typo in last change.
3041
3042 2007-07-09  Geoffrey Keating  <geoffk@apple.com>
3043
3044         PR 32617
3045         * c-common.c (c_alignof_expr): Look at DECL_ALIGN of
3046         FUNCTION_DECLs.
3047         (handle_aligned_attribute): Allow use on FUNCTION_DECLs.
3048         * varasm.c (assemble_start_function): Honor DECL_ALIGN
3049         for FUNCTION_DECLs.  Don't use align_functions_log if
3050         DECL_USER_ALIGN.
3051         * print-tree.c (print_node): Print DECL_ALIGN and DECL_USER_ALIGN
3052         even for FUNCTION_DECLs.
3053         * c-decl.c (merge_decls): Propagate DECL_ALIGN even for
3054         FUNCTION_DECLs.
3055         * tree.h (DECL_ALIGN): Update for new location of 'align'.
3056         (DECL_FUNCTION_CODE): Update for new location and name of
3057         'function_code'.
3058         (DECL_OFFSET_ALIGN): Update for new location of 'off_align'.
3059         (struct tree_decl_common): Move 'align' and 'off_align' out
3060         of union, ensure they're still on a 32-bit boundary.  Remove
3061         other fields in union 'u1'.
3062         (struct tree_function_decl): Add field 'function_code' replacing
3063         'u1.f' in tree_decl_common.
3064         * tree.c (build_decl_stat): Set initial value of DECL_ALIGN.
3065         * doc/extend.texi (Function Attributes): Add 'aligned' attribute.
3066         (Variable Attributes): Cross-reference 'aligned' attribute
3067         to Function Attributes.
3068         * flags.h (force_align_functions_log): Delete.
3069         * toplev.c (force_align_functions_log): Delete.
3070
3071 2007-07-10  Uros Bizjak  <ubizjak@gmail.com>
3072
3073         PR target/32708
3074         * config/i386/sse.md (vec_concatv2di): Disable for TARGET_64BIT.
3075         (*vec_concatv2di_rex): New insn pattern.
3076
3077 2007-07-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3078
3079         PR target/32538
3080         * config/mips/iris6.h (LIBGCC_SPEC): Add libm.
3081
3082 2007-07-10  Ian Lance Taylor  <iant@google.com>
3083
3084         Replace no_new_pseudos in backends.
3085         * rtl.h (can_create_pseudo_p): Define.
3086         * config/darwin.c (machopic_indirect_data_reference): Use
3087         can_create_pseudo_p () instead of no_new_pseudos.
3088         (machopic_indirect_data_reference): Likewise.
3089         (machopic_legitimize_pic_address): Likewise.
3090         * config/alpha/alpha.c (alpha_legitimize_address): Likewise.
3091         (alpha_emit_set_const_1): Likewise.
3092         (alpha_emit_set_const): Likewise.
3093         (alpha_emit_conditional_move): Likewise.
3094         (alpha_split_conditional_move): Likewise.
3095         * config/alpha/alpha.md (various splitters): Likewise.
3096         (movti): Likewise.
3097         * config/arm/arm.c (legitimize_pic_address): Likewise.
3098         (arm_load_pic_register): Likewise.
3099         * config/arm/arm.md (addsi3, subsi3, andsi3, iorsi3): Likewise.
3100         (movdi, movsi, movhi, movqi, movsf, movdf): Likewise.
3101         * config/bfin/bfin.c (legitimize_pic_address): Likewise.
3102         * config/cris/cris.c (cris_expand_pic_call_address): Likewise.
3103         * config/cris/cris.md (movsi): Likewise.
3104         * config/frv/frv.md (symGOT2reg_hilo): Likewise.
3105         (symGOTOFF2reg_hilo): Likewise.
3106         (symGPREL2reg, symGPREL2reg_hilo): Likewise.
3107         * config/h8300/h8300.md (insv, extzv): Likewise.
3108         * config/i386/i386.c (ix86_expand_move): Likewise.
3109         (ix86_expand_vector_move): Likewise.
3110         (ix86_prepare_fp_compare_args): Likewise.
3111         (ix86_expand_carry_flag_compare): Likewise.
3112         * config/i386/i386.md (tls_dynamic_gnu2_32): Likewise.
3113         (tls_dynamic_gnu2_combine_32): Likewise.
3114         (tls_dynamic_gnu2_64, tls_dynamic_gnu2_combine_64): Likewise.
3115         * config/ia64/ia64.c (ia64_expand_move): Likewise.
3116         (ia64_expand_movxf_movrf): Likewise.
3117         * config/m32c/m32c.c (m32c_prepare_move): Likewise.
3118         (m32c_split_move): Likewise.
3119         (m32c_expand_insv): Likewise.
3120         * config/m68k/m68k.md (movsi): Likewise.
3121         * config/mips/mips.c (mips_force_temporary): Likewise.
3122         (mips_split_symbol): Likewise.
3123         (mips_move_integer): Likewise.
3124         (mips_legitimize_const_move): Likewise.
3125         * config/mn10300/mn10300.md (movsi): Likewise.
3126         * config/pa/pa.c (emit_move_sequence): Likewise.
3127         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3128         (rs6000_got_register): Likewise.
3129         (create_TOC_reference): Likewise.
3130         (rs6000_machopic_legitimize_pic_address): Likewise.
3131         * config/rs6000/rs6000.md (add<mode>3): Likewise.
3132         (various splitters): Likewise.
3133         (iorsi3, xorsi3, iordi3, xordi3): Likewise.
3134         (movsi_got): Likewise.
3135         * config/s390/s390.c (emit_symbolic_move): Likewise.
3136         * config/s390/s390.md (movhi, movqi): Likewise.
3137         (load_multiple, store_multiple): Likewise.
3138         * config/score/score.c (score_force_temporary): Likewise.
3139         * config/sh/sh.c (prepare_move_operands): Likewise.
3140         (prepare_cbranch_operands): Likewise.
3141         (emit_fpu_switch): Likewise.
3142         (fpscr_set_from_mem): Likewise.
3143         * config/sh/sh.md (movdicc, movsicc, movsicc_umin): Likewise.
3144         (adddi3, subsi3): Likewise.
3145         (various splitters): Likewise.
3146         (divsi_inv_fp_combine): Likewise.
3147         (symGOT_load, symGOTOFF2reg, symDTPOFF2reg): Likewise.
3148         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu): Likewise.
3149         (sne): Likewise.
3150         * config/sh/predicates.md (xor_operand): Likewise.
3151         * config/sparc/sparc.c (legitimize_tls_address): Likewise.
3152         * config/sparc/sparc.md (movsi_pic_label_ref): Likewise.
3153         (movdi_pic_label_ref): Likewise.
3154         * config/spu/spu.c (spu_split_immediate): Likewise.
3155         * config/alpha/alpha.md (various splitters): Remove test
3156         !no_new_pseudos || reload_completed.
3157         * config/ia64/ia64.c (ia64_output_mi_thunk): Don't set
3158         no_new_pseudos.
3159         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
3160         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
3161         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3162         * config/score/score.c (th_output_mi_thunk): Likewise.
3163         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3164         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3165
3166 2007-07-10  Kaz Kojima  <kkojima@gcc.gnu.org>
3167
3168         PR rtl-optimization/32664
3169         * mode-switching.c (create_pre_exit): Skip barrier insns.
3170
3171 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
3172
3173         * tree-scalar-evolution.c (scev_const_prop): Add arguments to
3174         force_gimple_operand_bsi.
3175         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
3176         rewrite_use_compare): Ditto.
3177         * tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
3178         Ditto.
3179         * tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
3180         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
3181         * lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
3182         * tree-profile.c (prepare_instrumented_value,
3183         tree_gen_interval_profiler, tree_gen_pow2_profiler,
3184         tree_gen_one_value_profiler, tree_gen_ic_profiler,
3185         tree_gen_ic_func_profiler, tree_gen_average_profiler,
3186         tree_gen_ior_profiler): Ditto.
3187         * tree-ssa-reassoc.c (negate_value): Ditto.
3188         * matrix-reorg.c (transform_access_sites, transform_allocation_sites):
3189         Use force_gimple_operand_bsi.
3190         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
3191         * tree-if-conv.c (add_to_dst_predicate_list,
3192         find_phi_replacement_condition): Ditto.
3193         * gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
3194         Call mark_symbols_for_renaming for new statements.
3195         * tree-flow.h (force_gimple_operand_bsi): Declaration changed.
3196
3197 2007-07-10  Zdenek Dvorak  <dvorakz@suse.cz>
3198
3199         * cfghooks.c (remove_edge): New function.
3200         (redirect_edge_and_branch, remove_branch, merge_blocks): Updated
3201         loop exit rescans.
3202         * cfghooks.h (remove_edge): Declare.
3203         * cfg.c (remove_edge): Renamed to remove_edge_raw.
3204         * basic-block.h (remove_edge): Declaration changed to remove_edge_raw.
3205
3206 2007-07-09  Wolfgang Gellerich  <gellerich@de.ibm.com>
3207
3208         * optabs.h: Added declaration for signbit_optab.  
3209         * optabs.c: (init_optabs): Added initialization for signbit_optab.
3210         * genoptinit.c (optabs): Added entry for signbit insns.  
3211         * builtins.c (expand_builtin_signbit): Added code to use a signbit
3212         insn, if available.  
3213         * config/s390/s390.h (S390_TDC_SIGNBIT_SET): New constant.  
3214         * config/s390/s390.md (signbit<mode>2): New expander.  
3215
3216 2007-07-09  Richard Guenther  <rguenther@suse.de>
3217
3218         PR middle-end/32698
3219         * fold-const.c (fold_plusminus_mult_expr): Move constant
3220         arguments second to allow decomposing.
3221
3222 2007-07-09  Alexandre Oliva  <aoliva@oliva.athome.lsd.ic.unicamp.br>
3223
3224         Revert:
3225         2007-07-06  Alexandre Oliva  <aoliva@redhat.com>
3226         PR debug/23551
3227         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
3228         Disregard DECL_FROM_INLINE.
3229
3230 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
3231
3232         PR target/27855
3233         * doc/invoke.texi: Add ftree-reassoc flag.
3234         * common.opt (ftree-reassoc): New flag.
3235         * tree-ssa-reassoc.c (gate_tree_ssa_reassoc): New static function.
3236         (struct tree_opt_pass pass_reassoc): Use gate_tree_ssa_reassoc.
3237
3238 2007-07-09  Uros Bizjak  <ubizjak@gmail.com>
3239
3240         PR tree-optimization/32681
3241         * tree-if-conv.c (find_phi_replacement_condition): Use the condition
3242         saved in second_edge->aux when first_bb is a loop header.
3243
3244 2007-07-09  Jan HUbicka  <jh@suse.cz>
3245
3246         * cse.c (cse_insn): Avoid invalid sharing on trial replacement.
3247
3248 2007-07-09  Richard Guenther  <rguenther@suse.de>
3249
3250         * c-decl.c (start_function): Do not promote return type.
3251
3252 2007-07-08  Daniel Franke  <franke.daniel@gmail.com>
3253
3254         * function.c (do_warn_unused_parameter): Do not warn if
3255         TREE_NO_WARNING is set.
3256
3257 2007-07-08  Andreas Schwab  <schwab@suse.de>
3258
3259         * doc/invoke.texi (DEC Alpha/VMS Options): Fix typo.
3260
3261 2007-07-08  Sandra Loosemore  <sandra@codesourcery.com>
3262
3263         Revert this patch:
3264         2007-07-06  Sandra Loosemore  <sandra@codesourcery.com>
3265
3266         * c-opts.c (c_common_handle_option): Make DOLLARS_IN_IDENTIFIERS
3267         apply to assembly language, too.
3268         * doc/tm.texi (DOLLARS_IN_IDENTIFIERS): Update.
3269
3270 2007-07-07  Daniel Berlin  <dberlin@dberlin.org>
3271
3272         Revert (note the sccvn portions are *not* reverted)
3273         2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
3274
3275         Fix PR tree-optimization/23488
3276
3277         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
3278         handles.
3279         * tree-flow-inline.h (get_value_handle): Ditto.
3280         * tree-ssa-pre.c (decl_vh_map): New.
3281         (decl_node_pool): New.
3282         (can_value_number_operation): Support DECL_P.
3283         (can_PRE_operation): Ditto.
3284         (create_expression_by_pieces): Ditto.
3285         (find_existing_value_expr): Modify to differnetiate between
3286         addressing and top level.
3287         (create_value_handle_for_expr): Handle DECL's.
3288         (poolify_tree): Ditto.
3289         (make_values_for_phi): Don't insert into PHI_GEN during FRE.
3290         (make_values_for_stmt): Handle DECL's properly.
3291         (init_pre): Reorg to not init useless things during FRE.
3292         (fini_pre): Ditto.
3293         * tree-flow.h: Include pointer-set.h.
3294         (decl_vh_map): Declare.
3295         * Makefile.in (TREE_FLOW_H): Add pointer-set.h
3296
3297 2007-07-07 Eric Weddington  <eweddington@cso.atmel.com>
3298
3299         * config/avr/constraints.md (define_memory_constraint "Q"): Fix
3300         the constraint description.
3301         * doc/md.texi: Update documentation of AVR constraints.
3302
3303 2007-07-07  Kazu Hirata  <kazu@codesourcery.com>
3304
3305         * auto-inc-dec.c, config/arm/arm.c,
3306         config/m32r/constraints.md, config/mips/mips.md,
3307         config/rs6000/rs6000.c, cselib.c, dce.c, df-core.c,
3308         df-problems.c, df-scan.c, df.h, dse.c, gimplify.c,
3309         tree-if-conv.c, tree-ssa-sccvn.c, tree-ssa.c: Fix comment
3310         typos.  Follow spelling conventions.
3311         * doc/invoke.texi, doc/rtl.texi: Fix typos.
3312
3313         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
3314         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
3315
3316         * tree-ssa-operands.c (realloc_vop, realloc_vdef,
3317         realloc_vuse): Remove.
3318         * tree-ssa-operands.h: Remove the prototype for realloc_vdef
3319         and realloc_vuse.
3320
3321 2007-07-06  Daniel Berlin  <dberlin@dberlin.org>
3322
3323         Fix PR tree-optimization/23488
3324
3325         * tree-ssa-sccvn.c (expr_has_constants): Handle tcc_declaration.
3326         (try_to_simplify): Ditto.
3327         (visit_use): Ditto.
3328         * tree-vn.c (set_value_handle): Use decl_vh_map for decl value
3329         handles.
3330         * tree-flow-inline.h (get_value_handle): Ditto.
3331         * tree-ssa-pre.c (decl_vh_map): New.
3332         (decl_node_pool): New.
3333         (can_value_number_operation): Support DECL_P.
3334         (can_PRE_operation): Ditto.
3335         (create_expression_by_pieces): Ditto.
3336         (find_e