OSDN Git Service

d221bbf1c9b4fdecff9b37747ae2ad817f745803
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-04-08  Anatoly Sokolov <aesok@post.ru>
2
3         PR target/29932
4         * config/avr/predicates.md (io_address_operand): Delete predicate.
5         (low_io_address_operand): Don't use 'mode' argument.
6         (higth_io_address_operand): Rename ...
7         (high_io_address_operand): ... to this. Don't use 'mode' argument.
8         * config/avr/avr.md (*sbix_branch_tmp, *sbix_branch_tmp_bit7): Adjust
9         for above change.
10
11 2007-04-07  Daniel Berlin  <dberlin@dberlin.org>
12
13         Revert change removing staticp.
14
15 2007-04-07  Anatoly Sokolov <aesok@post.ru>
16
17         PR target/30289
18         * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as 
19         earlyclobber.
20
21 2007-04-07  Bruce Korb  <bkorb@gnu.org>
22
23         * c.opt: Add -Wformat-contains-nul.
24         * c-format.c (set_Wformat):  Set warn_format_contains_nul to the
25           -Wformat setting.
26         (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
27         the NUL byte warning.
28
29 2007-04-07  H.J. Lu  <hongjiu.lu@intel.com>
30
31         * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
32
33 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
34
35         * tree.c (staticp): No longer use staticp langhook.
36         * langhooks.c (lhd_staticp): Removed.
37         * langhooks.h (struct lang_hooks): Remove staticp.
38         * c-common.c (c_staticp): Remove.
39         * c-common.h (c_staticp): Ditto.
40         * langhooks-defs.h (lhd_staticp): Ditto.
41         (LHD_HOOKS_STATICP): Ditto
42         * tree.h (gcc_assert_lowered): New macro.
43
44 2007-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
45
46         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
47         argument "reliable".
48         (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
49         Add argument "reliable".  Propagate it through calls.
50         (infer_loop_bounds_from_undefined):  Derive number of iterations
51         estimates from references in blocks that do not dominate loop latch.
52         (gcov_type_to_double_int): New function.
53         (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
54         and expected_loop_iterations_unbounded.
55         * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
56         (expected_loop_iterations): Use expected_loop_iterations_unbounded.
57         * tree-data-ref.c (estimated_loop_iterations): Export.
58         (get_references_in_stmt): Fix -- do not return addresses of local
59         objects.
60         * cfgloop.h (expected_loop_iterations_unbounded,
61         estimated_loop_iterations): Declare.
62
63 2007-04-06  Andreas Tobler  <a.tobler@schweiz.org>
64
65         * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
66
67 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
68
69         * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
70         and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
71         (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
72         Use output_387_reg_move().
73         (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
74         expander using X87MODEF12 mode macro.
75         (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
76         choosing register preferences.  Use output_387_reg_move().
77         (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
78         instead of "x".  Use output_387_reg_move().
79         (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
80         *truncxfdf2_i387_noop.  Macroize insn using X87MODEF12 mode macro.
81         (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
82         *truncxfdf2_i387.  Macroize insn using X87MODEF12 mode macro.
83         Use output_387_reg_move().
84         (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
85         mode macro.
86         (*truncxf?f_i387 splitter): Ditto.
87
88 2007-04-06  Daniel Berlin  <dberlin@dberlin.org>
89
90         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
91         LANG_HOOKS_SAFE_FROM_P.
92         * expr.c (safe_from_p): Remove langhook call.
93         * langhooks.h (lang_hooks): Remove safe_from_p.
94         (lhd_safe_from_p): Remove prototype.
95         * langhooks.c (lhd_safe_from_p): Remove.
96         
97 2007-04-06  Jan Hubicka  <jh@suse.cz>
98
99         * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
100         functions.
101
102 2007-04-06  Uros Bizjak  <ubizjak@gmail.com>
103
104         * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
105         * config/i386/i386.md (*movsf_1, *movdf_nointeger,
106         *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
107         *movxf_integer): Use output_387_reg_move() for x87 reg->mem
108         alternative.
109         (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
110         *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
111
112 2007-04-05  Richard Henderson  <rth@redhat.com>
113
114         * config/alpha/alpha.c (print_operand) [+]: Remove.
115         (alpha_end_function): Print nop if call at end of function.
116         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
117         * config/alpha/alpha.md (UNSPEC_LDGP1): New.
118         (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
119         (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
120         (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
121         the call pattern. Update peepholes to match.
122
123 2007-04-05  Janis Johnson  <janis187@us.ibm.com>
124
125         * doc/extend.texi (Other Builtins): Add decimal float variants
126         of signbit.
127         * builtins.def: Ditto.
128         * builtins.c (expand_builtin): Ditto.
129
130 2007-04-05  Uros Bizjak  <ubizjak@gmail.com>
131             H.J. Lu  <hongjiu.lu@intel.com>
132
133         PR target/31478
134         * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
135         of V8HImode when calling ix86_binary_operator_ok.
136         (sse2_pmaddwd): Call ix86_binary_operator_ok.
137         (sdot_prodv8hi): Operands 1 and 2 must be register.
138
139 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
140
141         * tree-sra.c (try_instantiate_multiple_fields): Needlessly
142         initialize align to silence bogus warning.
143
144 2007-04-05  Alexandre Oliva  <aoliva@redhat.com>
145
146         PR middle-end/22156
147         * tree-sra.c (struct sra_elt): Add in_bitfld_block.  Remove
148         all_no_warning.
149         (struct sra_walk_fns): Remove use_all parameter from use.
150         (sra_hash_tree): Handle BIT_FIELD_REFs.
151         (sra_elt_hash): Don't hash bitfld blocks.
152         (sra_elt_eq): Skip them in parent compares as well.  Handle
153         BIT_FIELD_REFs.
154         (sra_walk_expr): Don't maintain or pass down use_all_p.
155         (scan_use): Remove use_all parameter.
156         (scalarize_use): Likewise.  Re-expand assignment to
157         BIT_FIELD_REF of gimple_reg.  De-scalarize before input or
158         output, and re-scalarize after output.  Don't mark anything
159         for no warning.
160         (scalarize_ldst): Adjust.
161         (scalarize_walk_gimple_modify_statement): Likewise.
162         (build_element_name_1): Handle BIT_FIELD_REFs.
163         (instantiate_element): Don't warn for any element whose parent
164         is used as a whole.
165         (instantiate_missing_elements_1): Return the sra_elt.
166         (canon_type_for_field): New.
167         (try_instantiate_multiple_fields): New.
168         (instantiate_missing_elemnts): Use them.
169         (mark_no_warning): Removed.
170         (generate_one_element_ref): Handle BIT_FIELD_REFs.
171         (REPLDUP, sra_build_elt_assignment): New.
172         (generate_copy_inout): Use them.
173         (generate_element_copy): Likewise.  Handle bitfld differences.
174         (generate_element_zero): Don't recurse for blocks.  Use
175         sra_build_elt_assignment.
176         (generate_one_element_int): Take elt instead of var.  Use
177         sra_build_elt_assignment.
178         (generate_element_init_1): Adjust.
179         (scalarize_use, scalarize_copy): Use REPLDUP.
180         (scalarize_ldst): Move assert before dereference.
181         (dump_sra_elt_name): Handle BIT_FIELD_REFs.
182
183 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
184
185         * regmove.c: Fix unused variable warnings due to previous commit.
186
187 2007-04-05  Steven Bosscher  <steven@gcc.gnu.org>
188
189         * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
190         (regmove_bb_head): Remove.
191         (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
192         (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
193         problems with fixup_match_1.
194         Don't initialize/free regmove_bb_head.
195
196         (reg_is_remote_constant_p): If an insn is in the same basic block
197         but not before INSN, consider it remote, too.
198
199 2007-04-05  Anatoly Sokolov <aesok@post.ru>
200
201         PR target/25448
202         * config/avr/avr.c (avr_handle_fndecl_attribute): Use the 
203         DECL_ASSEMBLER_NAME, not the DECL_NAME.
204
205 2007-04-05  H.J. Lu  <hongjiu.lu@intel.com>
206
207         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
208         (CONDITIONAL_REGISTER_USAGE): Likewise.
209
210 2007-04-04  Richard Henderson  <rth@redhat.com>
211
212         * config/alpha/lib1funcs.asm: Remove unused file.
213
214 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
215
216         PR other/31356
217         * opts.c (print_specific_help): Fix --help=<language>
218         header line.
219         (common_handle_option): Support --help=common.
220
221 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
222
223         PR other/31353
224         * gcc.c (main): Do not run the linker if
225         print_subprocess_help indicates that it shouldn't be
226         run.
227
228 2007-04-04  Brooks Moses  <brooks.moses@codesourcery.com>
229
230         PR doc/31355
231         * doc/invoke.texi (--help=): Document <languages> value, fix
232         formatting in tables of values.
233
234 2007-04-04  Danny Smith  <dannysmith.users.sourceforge.net>
235
236         * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
237         dllimport attribute of virtual methods.
238
239 2007-04-04  Chen Liqin  <liqin@sunnorth.com.cn>
240
241         * config/score/crti.asm: Change _bss_start to __bss_start.
242         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
243         (OUTGOING_REG_PARM_STACK_SPACE) update.
244         * config/score/score.opt: add options to make backend support
245         score5, score5u, score7 and score7d.
246         * config/score/score.md: Likewise.
247         * config/score/misc.md: Likewise.
248         * config/score/mac.md: Likewise.
249         * doc/invoke.texi: Likewise.
250         * doc/md.texi: update constraints define.
251
252 2007-04-03  Richard Henderson  <rth@redhat.com>
253
254         * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
255         an appropriate type, use the mode instead.
256
257 2007-04-03  Richard Sandiford  <richard@codesourcery.com>
258
259         * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
260         Set the default --with-arch setting to mips2.
261         * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
262         (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
263         (MULTILIB_OSDIRNAMES): Delete.
264         (MULTILIB_DIRNAMES): Define.
265         * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
266         (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
267         (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
268         definitions, except for _WRS_R3K_EXC_SUPPORT.  Call
269         VXWORKS_OS_CPP_BUILTINS.
270         (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
271         (MIPS_DEBUGGING_INFO): Undefine.
272         (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
273
274 2007-04-03  Jakub Jelinek  <jakub@redhat.com>
275
276         PR middle-end/30704
277         * fold-const.c (native_encode_real): Encode real.c provided longs
278         as a series of 32-bit native integers.
279         (native_interpret_real): Interpret buffer as a series of 32-bit
280         native integers.
281
282 2007-04-03  Richard Guenther  <rguenther@suse.de>
283
284         * genpreds.c (write_insn_constraint_len): Write function
285         optimized for CONSTRAINT_LEN implementation.
286         (write_tm_preds_h): Output insn_constraint_len inline and
287         use it for CONSTRAINT_LEN.
288         (write_insn_preds_c): Don't output insn_constraint_len.
289         * doc/md.texi (define_register_constraint): Document multi-letter
290         constraints shall have the same length if they start with the same
291         letter.
292
293 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
294
295         PR target/31175
296         * config/i386/i386.md (isinf<mode>2): Expand only when
297         TARGET_C99_FUNCTIONS is set.
298
299 2007-04-03  Uros Bizjak  <ubizjak@gmail.com>
300
301         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
302         (x86_64-*-linux*): Ditto.
303         * config/i386/i386.opt (mpc): New option.
304         * config/i386/i386.c (overrride_options): Handle
305         ix87_precision_string.
306         * config/i386/crtprec.c: New file.
307         * config/i386/t-crtpc: Ditto.
308         * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
309         and -mpc80 options.
310         * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
311         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
312         crtprec32.o, crtprec64.o and crtprec80.o.
313
314         * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
315         and -mpc80 options.
316         (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
317
318 2007-04-02  Eric Christopher  <echristo@apple.com>
319
320         * doc/invoke.texi (i386 and x86-64 Options): Document -m64
321         limitations on darwin.
322
323 2007-04-02  Anatoly Sokolov <aesok@post.ru>
324
325         PR target/31137
326         * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
327
328 2007-04-02  Dave Korn  <dave.korn@artimi.com>
329
330         * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
331
332 2007-04-02  Dave Korn  <dave.korn@artimi.com>
333
334         * libgcc2.h (exception_descriptor): Don't forward-declare.
335         (__get_eh_table_language, __get_eh_table_version): Delete
336         prototypes of long-dead functions.
337
338 2007-04-01  Daniel Berlin  <dberlin@dberlin.org>
339
340         * ebitmap.h: New file
341         * ebitmap.c: New file
342         * Makefile.in (ebitmap.o): New target.
343
344 2007-04-01  Jan Hubicka  <jh@suse.cz>
345
346         * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
347         before very first instruction.
348
349 2007-04-01  Jan Hubicka  <jh@suse.cz>
350
351         * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
352         waring on 64bit hosts.
353         * bitmap.h: Fix typo in bitmap_head_def.
354
355 2007-04-01  Steven Bosscher  <steven@gcc.gnu.org>
356
357         PR rtl-optimization/31391
358         * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
359         into a DELETED_LABEL note, and the label is in an empty basic
360         block, update BB_END as well as BB_HEAD.
361
362 2007-04-01  Richard Henderson  <rth@redhat.com>
363
364         PR tree-optimization/31169
365         * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
366         to varying if the range is outside [0,  prec-1].
367
368 2007-04-01  Richard Sandiford  <richard@codesourcery.com>
369
370         PR target/31388
371         * config/mips/mips.md (load_const_gp): New insn.
372         * config/mips/mips.c (mips_split_symbol): Avoid using or creating
373         the MIPS16 GP pseudo register if no_new_pseudos.
374         (mips16_gp_pseudo_reg): Use gen_load_const_gp.
375
376 2007-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
377
378         PR target/31364
379         * config/rs6000/rs6000.md (call): Convert to LR hard reg for
380         secureplt.
381         (call_value): Likewise.
382
383 2007-03-31  Wolfgang Bangerth  <bangerth@dealii.org>
384             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
385
386         PR 14737
387         * doc/invoke.texi: (optimization options): Reword description
388         of -ffast-math. Document its primary purpose.
389
390 2007-03-31  Richard Guenther  <rguenther@suse.de>
391
392         * omp-low.c (splay-tree.h): Include.
393         (lookup_decl): Replace splay-tree usage by pointer-map.
394         (maybe_lookup_decl): Likewise.
395         (new_omp_context): Likewise.
396         (delete_omp_context): Likewise.
397         * gimplify.c (splay-tree.h): Include.
398         * tree-inline.c (insert_decl_map): Replace splay-tree usage by
399         pointer-map.
400         (remap_ssa_name): Likewise.
401         (remap_decl): Likewise.
402         (remap_type_1): Likewise.
403         (remap_type): Likewise.
404         (copy_body_r): Likewise.
405         (expand_call_inline): Likewise.
406         (clone_body): Likewise.
407         (copy_tree_r): Likewise.
408         (remap_save_expr): Likewise.
409         (unsave_r): Likewise.
410         (unsave_expr_now): Likewise.
411         (tree_function_versioning): Likewise.
412         (build_duplicate_type): Likewise.
413         * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
414         (struct copy_body_data): Replace splay-tree by pointer-map.
415         * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
416         not $(SPLAY_TREE_H).
417         (gimplify.o): Depend on $(SPLAY_TREE_H).
418         (omp-low.p): Likewise.
419
420 2007-03-31  Anatoly Sokolov <aesok@post.ru>
421
422         * config/avr/predicates.md (even_register_operand,
423         odd_register_operand): New predicates.
424         * config/avr/avr.md (movw peephole2): New.
425         (movw_r peephole2): New.
426
427 2007-03-30  Rafael Avila de Espindola  <espindola@google.com>
428
429         * tree.h (get_signed_or_unsigned_type): New.
430         * fold-const.c (operand_equal_for_comparison_p): Use
431         get_signed_or_unsigned_type instead of
432         lang_hooks.types.signed_or_unsigned_type.
433         * expr.c (store_expr): Ditto.
434         * langhooks.c (get_signed_or_unsigned_type): New.
435         (lhd_signed_or_unsigned_type): New.
436         * langhooks.h (lhd_signed_or_unsigned_type): New.
437         * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
438
439 2007-03-30  Richard Henderson  <rth@redhat.com>
440
441         * tree-ssa-loop-ivopts.c: Include target.h.
442         (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
443         (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
444         (force_expr_to_var_cost): Use produce_memory_decl_rtl.
445         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
446
447 2007-03-30  Richard Henderson  <rth@redhat.com>
448             Kai Tietz  <kai.tietz@onevision.com>
449
450         * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
451         default for 64-bit.
452         (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
453         (TARGET_64BIT_MS_ABI): New.
454         (DBX_REGISTER_NUMBER): Handle 64-bit.
455         (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
456         (LONG_TYPE_SIZE): Force to 32.
457         (REG_PARM_STACK_SPACE): New.
458         (OUTGOING_REG_PARM_STACK_SPACE): New.
459         (REGPARM_MAX, SSE_REGPARM_MAX): New.
460         (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
461         (STACK_BOUNDARY): Use 128 for 64-bit.
462         * config/i386/cygwin.asm: Use push/ret to preserve call stack.
463         Add 64-bit implementation.
464         * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
465         argument unused.
466         * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
467         (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
468         Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
469         for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
470         (ix86_handle_cconv_attribute): Don't warn when ignoring if
471         TARGET_64BIT_MS_ABI.
472         (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
473         (ix86_pass_by_reference): Likewise.
474         (ix86_function_value_regno_p): Likewise.
475         (ix86_build_builtin_va_list): Likewise.
476         (ix86_va_start, ix86_gimplify_va_arg): Likewise.
477         (function_arg_advance_ms_64): New.
478         (function_arg_advance): Call it.
479         (function_arg_ms_64): New.
480         (function_arg): Call it.
481         (function_value_ms_64): New.
482         (ix86_function_value_1): Call it.
483         (return_in_memory_ms_64): New.
484         (ix86_return_in_memory): Call it.
485         (setup_incoming_varargs_ms_64): New.
486         (ix86_setup_incoming_varargs): Call it.
487         (ix86_expand_prologue): Handle 64-bit stack probing.
488         (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
489         (output_pic_addr_const): Likewise.
490         (x86_this_parameter): Likewise.
491         (x86_output_mi_thunk): Likewise.
492         (x86_function_profiler): Likewise.
493         (TARGET_STRICT_ARGUMENT_NAMING): New.
494         * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
495         (TARGET_64BIT_MS_ABI): New.
496         (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
497         * config/i386/i386.md (allocate_stack_worker): Remove.
498         (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
499         describe the clobber of eax without a match_scratch.
500         (allocate_stack_worker_postreload): Remove.
501         (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
502         describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
503         (allocate_stack_worker_rex64_postreload): Remove.
504         (allocate_stack): Handle 64-bit.
505         * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
506         * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
507         (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
508         (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
509         (STANDARD_STARTFILE_PREFIX_1): Likewise.
510         * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
511         * config.build (x86_64-*-mingw*): New host.
512         * config.host (x86_64-*-mingw*): New host.
513         * config.gcc (x86_64-*-mingw*): New target.
514         * gthr-win32.h (__gthread_key_create): Mark dtor unused.
515
516 2007-03-30  Richard Henderson  <rth@redhat.com>
517             Kai Tietz  <kai.tietz@onevision.com>
518
519         * c-pragma.c (struct def_pragma_macro_value): New.
520         (struct def_pragma_macro): New.
521         (pushed_macro_table): New.
522         (dpm_hash, dpm_eq): New.
523         (handle_pragma_push_macro, handle_pragma_pop_macro): New.
524         (init_pragma): Install them.
525         * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
526
527 2007-03-30  Anatoly Sokolov <aesok@post.ru>
528
529         * config/avr/avr.c (avr_override_options): Clear
530         'flag_delete_null_pointer_checks'.
531
532 2007-03-30  Paolo Carlini  <pcarlini@suse.de>
533
534         PR c++/26099
535         * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
536         RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
537         RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
538         RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
539         RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
540         RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
541         RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
542         C++ extensions.
543         * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
544
545 2007-03-30  Steven Bosscher  <steven@gcc.gnu.org>
546
547         * regmove.c: Move all of pass_stack_adjustments from here...
548         * combine-stack-adj.c: ...to this new file.
549         * Makefile.in: Add rules for combine-stack-adj.o.
550
551 2007-03-30  Zdenek Dvorak  <dvorakz@suse.cz>
552
553         PR tree-optimization/31383
554         * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
555         to have the same length.
556
557 2007-03-30  Jan Hubicka  <jh@suse.cz>
558
559         PR middle-end/30700
560         * dwarf2out.c (reference_to_unused): Ask cgraph for functions
561         availablility; add more sanity checking; ask varpool only about
562         VAR_DECL.
563
564 2007-03-29  Richard Henderson  <rth@redhat.com>
565
566         * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
567         to decide, but __SIZEOF_LONG_LONG__.
568
569 2007-03-29  Richard Henderson  <rth@redhat.com>
570
571         * emutls.c (struct __emutls_array): New.
572         (emutls_destroy): Use it instead of casting element 0 from void*.
573         (__emutls_get_address): Likewise.
574
575 2007-03-29  Richard Henderson  <rth@redhat.com>
576
577         * varasm.c (initializer_constant_valid_p): Don't deny
578         DECL_DLLIMPORT_P on functions.
579
580         * config/i386/cygming.h: Remove function declarations.
581         (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
582         (ASM_OUTPUT_LABELREF): Remove.
583         (COMMON_ASM_OP): Remove.
584         (ASM_OUTPUT_COMMON): Remove.
585         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
586         (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
587         (ASM_DECLARE_FUNCTION_NAME): Likewise.
588         * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
589         Rename from TARGET_ENCODE_SECTION_INFO.
590         * config/i386/netware.h: Likewise.
591         * config/i386/i386-protos.h: Update.
592         * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
593         of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
594         (legitimate_constant_p): Reject dllimports.
595         (dllimport_map, get_dllimport_decl): New.
596         (legitimize_dllimport_symbol): New.
597         (legitimize_address, ix86_expand_move): Use it.
598         (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
599         * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
600         (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
601         (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
602         * config/i386/predicates.md (constant_call_address_operand): Only
603         accept symbols; reject dllimport_p symbols.
604         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
605         i386_pe_maybe_record_exported_symbol.
606         * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
607         (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
608         (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
609         trust the setting of DECL_DLLIMPORT_P.
610         (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
611         (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
612         (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
613         tidy the argument scanning loop.
614         (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
615         SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
616         (i386_pe_strip_name_encoding): Remove.
617         (i386_pe_binds_local_p): New.
618         (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
619         (i386_pe_output_labelref): Remove.
620         (i386_pe_asm_output_aligned_decl_common): New.
621         (i386_pe_maybe_record_exported_symbol): Rename from
622         i386_pe_record_exported_symbol; check for dllexported symbols.
623
624 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
625
626         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
627         add comment explaining why vsnprintf cannot be used.
628
629 2007-03-29  Douglas Gregor  <doug.gregor@gmail.com>
630
631         PR tree-optimization/30666
632         * tree.c (build_complex_type): When creating type names for DWARF2
633         debug info, create TYPE_DECLs for TYPE_NAME instead of
634         IDENTIFIER_NODEs.
635         (build_common_tree_nodes_2): Use build_complex_type when building
636         predefined complex types, to preserve canonical types.
637
638 2007-03-29  Steven Bosscher  <steven@gcc.gnu.org>
639
640         * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
641         (noce_get_alt_condition): Look at it to determine whether to
642         reverse the condition or not.
643         (noce_get_condition): Substitute the truth for lies.
644         (noce_find_if_block): Set the then_else_reversed field.
645
646 2007-03-29  Lars Poeschel <larsi@wh2.tu-dresden.de>
647
648         * config/fr30/fr30.md (movdi): Do not accept immediates as the
649         destination of this insn.
650         * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
651         than calling gen_rtx_SET directly.  Use r0 to hold the value of
652         'address + 4' rather than a stack based temporary which can be
653         mis-optimized away.
654
655 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
656
657         * config/s390/s390.c (s390_secondary_input_reload_class,
658         s390_secondary_output_reload_class): Functions removed.
659         (s390_secondary_reload): New function.
660         (TARGET_SECONDARY_RELOAD): Target macro defined.
661         * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
662         SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
663         * config/s390/s390.md ("reload_outti", "reload_outdi",
664         "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
665         "reload_out<mode>"): Expanders removed.
666         ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
667         "reload<mode>_nonoffmem_out"): Expanders added.
668
669 2007-03-29  Andreas Krebbel  <krebbel1@de.ibm.com>
670
671         * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
672         SRC->DEST replacement failed anyway.
673
674 2007-03-28  Mike Stump  <mrs@apple.com>
675
676         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
677         * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
678         * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
679
680 2007-03-28  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
681
682         * config.gcc: Accept barcelona as a variant of amdfam10.
683         * config/i386/i386.c (override_options): Likewise.
684         * doc/invoke.texi: Likewise.
685
686 2007-03-28  Eric Botcazou  <ebotcazou@adacore.com>
687
688         * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
689         offsets for BIT_FIELD_REF and COMPONENT_REF.
690
691 2007-03-28  Richard Guenther  <rguenther@suse.de>
692
693         * tree.c (is_global_var): Move ...
694         * tree-flow-inline.h (is_global_var): ... here.
695         * tree.h (is_global_var): Remove declaration.
696
697 2007-03-28  Uros Bizjak  <ubizjak@gmail.com>
698
699         * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
700         option.
701         (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
702         * config/i386/i386.c (ix86_tune_features): Initialize new
703         tuning option.
704         * config/i386/predicates.md (promotable_binary_operator): Use
705         TARGET_TUNE_PROMOTE_HIMODE_IMUL.
706
707 2007-03-28  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
708
709         PR target/31380
710         * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
711
712 2007-03-28  Lars Poeschel <larsi@wh2.tu-dresden.de>
713
714         * config/fr30/fr30.md (movsi_internal): Change destination
715         constraint from m to V and add m to the end.
716
717 2007-03-28  Christian Bruel  <christian.bruel@st.com>
718
719         * config/sh/sh.md (movsi_i): Fix type attribute.
720
721 2007-03-28  Christian Bruel  <christian.bruel@st.com>
722
723         * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
724         (movsf_ie): Likewise.
725
726 2007-03-28  Christian Bruel  <christian.bruel@st.com>
727
728         * config.gcc: Add sh4-300 to multilib.
729         * config/sh/t-mlib-sh4-300: New file.
730
731 2007-03-28  Andreas Krebbel  <krebbel1@de.ibm.com>
732
733         * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
734         ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
735         fix_trunc<mode>di2.
736         ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
737         fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
738         ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
739         "fixuns_trunctddi2"): Whitespace fix.
740
741 2007-03-28  Kaz Kojima  <kkojima@gcc.gnu.org>
742
743         * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
744         the definition of struct sh_args.
745         (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
746         CALL_COOKIE_INT_REG_GET): Likewise.
747
748 2007-03-28  Steven Bosscher  <steven@gcc.gnu.org>
749
750         * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
751         transformations are applied successfully.
752
753 2007-03-27  Douglas Gregor  <doug.gregor@gmail.com>
754
755         * tree.c (tree_contains_struct): Permit 512 tree codes.
756         * tree.h (tree_contains_struct): Ditto.
757         (MAX_TREE_CODES): Ditto.
758         (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
759         SPARE member to store remaining padding bits.
760
761 2007-03-27  Anatoly Sokolov <aesok@post.ru>
762
763         * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
764         architecture.
765
766 2007-03-27  Janis Johnson  <janis187@us.ibm.com>
767
768         * configure.ac: Fix assembler test for powerpc*-linux decimal float.
769         * configure: Regenerate.
770
771         * configure: Regenerate using the correct version of autoconf.
772
773 2007-03-27  Anatoly Sokolov  <aesok@post.ru>
774
775         * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
776         pointer regs.
777         * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
778         regs to "__SP_L__" and "__SP_H__".
779
780 2007-03-27  Richard Guenther  <rguenther@suse.de>
781
782         * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
783         computations with it with a HOST_WIDE_INT variable.
784
785 2007-03-26  Mike Stump  <mrs@apple.com>
786
787         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
788         objective-c-header, objective-c++-header and objc++-cpp-output
789         support.
790         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
791
792 2007-03-26  Richard Henderson  <rth@redhat.com>
793
794         PR target/31361
795         * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
796         IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
797         IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
798         IX86_BUILTIN_PSRLQ128): New.
799         (ix86_init_mmx_sse_builtins): Add them.
800         (ix86_expand_builtin): Expand them.
801         * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
802         operand 2 be TImode.
803         * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
804         _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
805         _mm_srli_epi64): Mark __B const.
806         (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
807         (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
808         _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
809         new two-vector shift builtins.
810
811 2007-03-26  Ian Lance Taylor  <iant@google.com>
812
813         PR tree-optimization/31345
814         * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
815         [+INF, +INF(OVF)] into VARYING.
816
817 2007-03-26  Zack Weinberg  <zackw@panix.com>
818
819         * gengtype-parse.c: New file.
820         * gengtype-yacc.y: Delete.
821         * gengtype-lex.l: Don't include gengtype-yacc.h.
822         Define YY_DECL and yyterminate appropriately for recursive
823         descent parser.  yylval is now a string out-parameter to yylex.
824         (HWS, EOID): New shorthand.
825         (IWORD): Add a couple more types.
826         (yylex): Add a setup stanza.  Remove the complex rules for
827         detecting GTY'ed types and typedefs; replace with simple
828         keyword detectors.  Adjust everything for the changed
829         definition of yylval.  Ignore all pp-directives, not just #define.
830         (yyerror): Delete.
831         (parse_file): Rename yybegin; do not call yyparse.
832         (yyend): New.
833         * gengtype.c (xasprintf): Export again.
834         (this_file): New.  Use everywhere __FILE__ was being used.
835         (get_lang_bitmap): Special case types defined in gengtype.c.
836         (do_typedef, new_structure): Suppress definition of certain types.
837         (new_structure): Improve diagnostics of duplicate definitions.
838         Make sure location_s is associated with input.h.
839         (nreverse_pairs, define_location_structures): New functions.
840         (main): Improve tagging of kludge types.  Remove old kludges
841         for input.h types; use define_location_structures.
842         * gengtype.h: Update prototypes.  Define token codes here.
843         * Makefile.in: Remove all references to gengtype-yacc.
844         Add rules for gengtype-parse.o.  Adjust rules for gengtype-lex.o
845         and gengtype.
846         * bitmap.h (struct bitmap_head_def): Coalesce definitions,
847         add GTY((skip)) to the field that's only conditionally there.
848         * doc/install.texi: Document that Bison is no longer required
849         unless building treelang.
850
851         * gengtype.c: Don't include gtyp-gen.h.
852         (srcdir): Declare here.
853         (base_files, lang_dir_names): Allocate dynamically.
854         (gt_files, num_gt_files, num_lang_dirs): New globals.
855         (measure_input_list, read_input_line, read_input_list)
856         (set_lang_bitmap): New functions.
857         (get_base_file_bitmap): Rename get_lang_bitmap and drastically
858         simplify, relying on read_input_list to set up the bitmaps.
859         (main): Arguments are no longer unused.  Check for correct number
860         of command line arguments, set srcdir and srcdir_len, then call
861         read_input_list, before doing anything else.  No need to worry
862         about duplicates in main loop.
863         * configure.ac: Simplify the calculation of all_gtfiles.
864         Put language tags in there.  Don't set or substitute
865         all_gtfiles_files_langs or all_gtfiles_files_frags.
866         * Makefile.in: Revamp the way gengtype is invoked, now that it
867         takes a file on its command line with a much simpler format.
868         Remove or replace with gtyp-input.list all references to gtyp-gen.h.
869         (GTFILES): Remove duplicates and C source files.
870         * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
871         * objcp/config-lang.in: Add c-pragma.h to gtfiles.
872         * configure: Regenerate.
873
874         * gengtype.h: Remove all type definitions to gengtype.c; leave
875         only definitions of options_p, type_p, and pair_p as opaque
876         pointers.  Update prototypes.
877         * gengtype.c: Many type definitions moved here from gengtype.h.
878         Consolidate type definitions at the top of the file.
879         (xvasprintf): Delete.
880         (xasprintf): Make static.
881         (create_nested_pointer_option): Add 'next' parameter.
882         (create_field_all, create_field_at): New functions.
883         (create_field): Now a thin wrapper around create_field_all.
884         (create_optional_field): Rename create_optional_field_ and add
885         line argument.  Original name is now a macro which supplies
886         __LINE__.
887         (oprintf): Use vsnprintf directly.
888         (close_output_files): Use fatal rather than perror/exit.
889         (note_def_vec, note_def_vec_alloc): Use create_field_at.
890         (main): Set progname.  Don't use exit.
891         * gengtype-yacc.y (struct_fields): Use create_field_at.
892         (option, optionseqopt): Delete.
893         (optionseq): Consolidate productions from option here so we
894         can use the first argument to create_option.
895
896         * gengtype-lex.l: Distinguish unions from structures in the
897         token type.  Don't call find_structure; return the tag as a string.
898         * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
899         Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
900         Reorganize typedef_struct production accordingly.
901         Use create_nested_ptr_option.
902         * gengtype.c (create_nested_ptr_option): New function.
903         * gengtype.h: Declare it.
904
905         * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
906         (string_type): Don't declare.
907         (do_scalar_typedef): Declare.
908         (create_scalar_type): Update prototype.
909         * gengtype.c (string_type): Make static.
910         (scalar_nonchar, scalar_char): New.
911         (do_scalar_typedef): Export.  Always use scalar_nonchar for the type.
912         (resolve_typedef): Use scalar_nonchar for error recovery.
913         (create_scalar_type): Remove name_len field.  Return scalar_char
914         or scalar_nonchar as appropriate.
915         (adjust_field_type): Look at scalar_is_char boolean to decide whether
916         to use string_type.
917         (throughout): Use scalar_nonchar instead of calling create_scalar_type,
918         whenever possible.
919         (main): Initialize scalar_char and scalar_nonchar before calling
920         gen_rtx_next.
921         * gengtype-lex.l: Adjust for removal of second argument to
922         create_scalar_type.  Use yylval.s instead of yylval.t when
923         returning SCALAR.
924         * gengtype-yacc.y: Type of SCALAR is string.  Call
925         create_scalar_type from type:SCALAR rule.  Adjust for removal of
926         second argument to create_scalar_type.
927
928         * vec.h: Remove all #if IN_GENGTYPE blocks.
929         Add comment saying that changes may require adjustments to gengtype.
930         * gengtype.c: Don't include coretypes.h or tm.h.
931         Add comment to inclusion of errors.h.
932         (note_def_vec, note_def_vec_alloc): New functions.
933         * gengtype.h: Declare new functions.
934         * gengtype-lex.l: Don't include coretypes.h.
935         (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
936         Delete.
937         (update_lineno): Remove unnecessary prototype.
938         (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
939         (VEC rule): Just return VEC_TOKEN.
940         * gengtype-yacc.y (VEC_TOKEN): New token type.
941         (type): Add a production for VEC(a,b).
942         * Makefile.in: Update dependencies.
943
944         * gengtype-lex.l: Remove rules for parsing pointer-to-function
945         typedefs that use the old PARAMS macro.
946
947         * gengtype-lex.l: Remove all rules and states relating to yacc
948         input files.
949         * gengtype-yacc.y: Similarly.
950         * gengtype.c (note_yacc_type): Delete function.
951         * gengtype.h: Update prototypes.
952
953 2007-03-26  Joseph Myers  <joseph@codesourcery.com>
954
955         * tree-pretty-print.c (dump_generic_node): Report precision of
956         unnamed integer types.
957
958 2007-03-26  Steven Bosscher  <steven@gcc.gnu.org>
959
960         * ifcvt.c (noce_try_store_flag_constants): Don't check
961         no_new_pseudos here.
962         (noce_try_store_flag_constants): Don't check no_new_pseudos.
963         (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
964         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
965         noce_try_sign_mask): Likewise.
966         (if_convert): Check no_new_pseudos here.
967
968         (cond_exec_process_if_block, noce_process_if_block, find_if_block):
969         Remove prototypes.
970         (struct noce_if_info): Add then_bb, else_bb, join_bb members.
971         (noce_get_condition): Handle new then_else_reversed argument.
972         (noce_init_if_info): Remove, fold into noce_find_if_block.
973         (noce_process_if_block): Take a struct noce_if_info as the
974         argument.  Don't set up one based on ce_if_info.  Update pointer
975         references accordingly.
976         (cond_move_process_if_block): Likewise.
977         (process_if_block): Removed.
978         (find_if_block): Removed.  Move functionality two new functions,
979         noce_find_if_block and cond_exec_find_if_block.
980         (noce_find_if_block): New function.  Be aware of IF-THEN-JOIN
981         blocks and the symmetric IF-ELSE-JOIN case.
982         (cond_exec_find_if_block): Also new function mostly based on old
983         find_if_block and process_if_block.
984         (find_if_header): Replace find_if_block call with separately
985         guarded calls to noce_find_if_block and cond_exec_find_if_block.
986         (find_cond_trap): Update noce_get_condition call.
987         (dead_or_predicable): Likewise.
988
989 2007-03-26  Jakub Jelinek  <jakub@redhat.com>
990
991         * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
992         Remove.
993         (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
994         IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
995         IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
996         (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
997         v4si_ftype_v4si_v2di.  Remove __builtin_ia32_psllw128,
998         __builtin_ia32_pslld128, __builtin_ia32_psllq128,
999         __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
1000         __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
1001         __builtin_ia32_psrad128 builtins.
1002
1003 2007-03-26  Uros Bizjak  <ubizjak@gmail.com>
1004
1005         * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
1006         * config/i386/constraints.md
1007         (define_constraint "I"): Use IN_RANGE macro.
1008         (define_constraint "J"): Ditto.
1009         (define_constraint "K"): Ditto.
1010         (define_constraint "M"): Ditto.
1011         (define_constraint "N"): Ditto.
1012         (define_constraint "O"): Ditto.
1013         * config/i386/predicates.md
1014         (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
1015         (define_predicate "const_0_to_3_operand"): Ditto.
1016         (define_predicate "const_0_to_7_operand"): Ditto.
1017         (define_predicate "const_0_to_15_operand"): Ditto.
1018         (define_predicate "const_0_to_63_operand"): Ditto.
1019         (define_predicate "const_0_to_255_operand"): Ditto.
1020         (define_predicate "const_1_to_31_operand"): Ditto.
1021         (define_predicate "const_2_to_3_operand"): Ditto.
1022         (define_predicate "const_4_to_7_operand"): Ditto.
1023
1024 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
1025
1026         * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
1027         in SImode for save_world.
1028         * config/rs6000/altivec.md (save_world, restore_world): Convert to
1029         LR hard reg.
1030
1031 2007-03-25  Dorit Nuzman  <dorit@il.ibm.com>
1032
1033         PR tree-optimization/30784
1034         * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
1035         BIT_FIELD_REF.
1036
1037 2007-03-25  Revital Eres  <eres@il.ibm.com>
1038
1039         * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
1040           Fold movement_possibility function into it.
1041
1042 2007-03-25  David Edelsohn  <edelsohn@gnu.org>
1043
1044         * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
1045         (load_macho_picbase_{si,di}): Convert to LR hard reg.
1046         (call_indirect_nonlocal_darwin64): Same.
1047         (call_nonlocal_darwin64): Same.
1048         (call_value_indirect_nonlocal_darwin64): Same.
1049         (call_value_nonlocal_darwin64): Same.
1050         (sibcall_nonlocal_darwin64): Same.
1051         (sibcall_value_nonlocal_darwin64): Same.
1052         (sibcall_symbolic_64): Same.
1053         (sibcall_value_symbolic_64): Same.
1054         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
1055         LR pseudo.
1056         (rs6000_emit_load_toc_table): Same.
1057         * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
1058         * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
1059         (mull_call): Same.
1060         (divss_call): Same.
1061         (divus_call): Same.
1062         (quoss_call): Same.
1063         (quous_call): Same.
1064         (load_toc_v4_pic_si): Same
1065         (load_toc_v4_PIC_1): Same.
1066         (load_toc_v4_PIC_1b): Same.
1067         (call_indirect_aix{32,64}): Same.
1068         (call_value_indirect_aix{32,64}): Same.
1069         (call): Same.
1070         (call_value): Same.
1071         (call_local{32,64}): Same.
1072         (call_value_local{32,64}): Same.
1073         (call_indirect_nonlocal_aix{32,64}): Same.
1074         (call_nonlocal_aix{32,64}): Same.
1075         (call_value_indirect_nonlocal_aix{32,64}): Same.
1076         (call_value_nonlocal_aix{32,64}): Same.
1077         (call_indirect_nonlocal_sysv<mode>): Same.
1078         (call_nonlocal_sysv<mode>): Same.
1079         (call_value_indirect_nonlocal_sysv<mode>): Same.
1080         (call_value_nonlocal_sysv<mode>): Same.
1081         (sibcall): Same.
1082         (sibcall_local{32,64}): Same.
1083         (sibcall_value_local{32,64}): Same.
1084         (sibcall_nonlocal_aix{32,64}): Same.
1085         (sibcall_value_nonlocal_aix{32,64}): Same.
1086         (sibcall_nonlocal_sysv<mode>): Same.
1087         (sibcall_value): Same.
1088         (sibcall_value_nonlocal_sysv<mode>): Same.
1089
1090 2007-03-24  Paul Brook  <paul@codesourcery.com>
1091
1092         * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
1093         * config/arm/linux-eabi.h: Remove legacy syscall hack.
1094
1095 2007-03-24  Richard Henderson  <rth@redhat.com>
1096
1097         * config/ia64/constraints.md: New file.
1098         * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
1099         satisfies_constraint_?.
1100         * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
1101         ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
1102         ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
1103         ia64_output_mi_thunk): Likewise.
1104         (ia64_const_ok_for_letter_p): Remove.
1105         (ia64_const_double_ok_for_letter_p): Remove.
1106         (ia64_extra_constraint): Remove.
1107         * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
1108         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
1109         CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
1110         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
1111         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
1112         EXTRA_MEMORY_CONSTRAINT): Remove.
1113         * config/ia64/ia64.md: Include constriants.md.  Replace
1114         CONST_OK_FOR_? with satisfies_constraint_?.
1115
1116 2007-03-23  Michael Meissner  <michael.meissner@amd.com>
1117             H.J. Lu  <hongjiu.lu@intel.com>
1118
1119         * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
1120         DPD or BID name.
1121         (name macros): Use DPD_BID_NAME to convert names properly.
1122
1123         * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
1124         decimal floating point format.
1125         (init_floating_libfuncs): Change decimal functions so that they
1126         have a "bid_" prefix if the decimal system uses the BID format,
1127         and "dpd_" prefix if the decimal system uses the DPD format.
1128         (init_interclass_conv_libfuncs): Ditto.
1129         (init_intraclass_conv_libfuncs): Ditto.
1130
1131         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
1132         using the BID format.
1133
1134         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
1135         whether we are using the BID decimal format.
1136         * configure: Regenerate.
1137
1138         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
1139         the compiler has decimal floating point enabled.  Define
1140         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
1141         instead of DPD.
1142
1143         * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
1144         using the BID format.
1145
1146         * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
1147         whether we are using the BID decimal format.
1148         * configure: Regenerate.
1149
1150         * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
1151         the compiler has decimal floating point enabled.  Define
1152         __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
1153         instead of DPD.
1154
1155         * doc/install.texi (--enable-decimal-float): Document BID and DPD
1156         options, and that it is enabled for i386/x86_64 systems.
1157
1158         * Makefile.in (enable_decimal_float): New.
1159         (DECNUMFMT): New.
1160         (DECNUMINC): Add  -I$(DECNUMFMT).
1161         (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
1162         to $(DECNUMFMT) from $(DECNUM).
1163
1164         * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
1165         Substitute enable_decimal_float.
1166         * configure: Regenerated.
1167
1168         PR other/30529
1169         * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
1170         unsigned long.
1171
1172         * configure.ac: Enable decimal float for x86_64-*-linux*.
1173         * configure: Regenerated.
1174
1175         PR other/30530
1176         * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
1177         decimal128ClearSign to flip and clear the sign bit in decimal128.
1178         (decimal_real_maxval): Set decimal128SetSign to set the sign
1179         bit in decimal128.
1180
1181 2007-03-23  Ian Lance Taylor  <iant@google.com>
1182
1183         * fold-const.c (fold_binary): Correct warning for X - c >= X.
1184
1185 2007-03-23  Ian Lance Taylor  <iant@google.com>
1186
1187         * tree-dump.c (dump_files): Correct comment.
1188
1189 2007-03-23  Ian Lance Taylor  <iant@google.com>
1190
1191         * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
1192
1193 2007-03-23  Steven Bosscher  <steven@gcc.gnu.org>
1194
1195         * tracer.c (tracer): Don't take FLAGS argument.  Assert we are
1196         in cfglayout mode.  Don't go into and out of cfglayout mode.
1197         Link the blocks in the order of the constructed traces.
1198         (rest_of_handle_tracer): Adjust call to tracer.
1199         * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
1200         Don't go into cfglayout mode.
1201         (rtl_loop_done): Don't go out of cfglayout mode.
1202         * cfglayout.c (relink_block_chain): New function, split out from...
1203         (fixup_reorder_chain): ...here.  Remove redundant checking.
1204         (cfg_layout_finalize): Don't clear the header, footer, and aux
1205         fields here, move the code to do so to relink_block_chain.  Likewise
1206         for free_original_copy_tables.
1207         * rtl.h (tracer): Update prototype.
1208         * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
1209         Assert we are in cfglayout mode.  Don't go into and out of cfglayout
1210         mode.  Use relink_block_chain to serialize the CFG according to the
1211         new basic block order.  Move targetm.cannot_modify_jumps_p check from
1212         here...
1213         (gate_handle_reorder_blocks): ...to here.
1214         (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
1215         from here...
1216         (gate_duplicate_computed_gotos): ...to here.
1217         (rest_of_handle_reorder_blocks): Don't see if anything has changed,
1218         something always changes when going into and out of cfglayout mode.
1219         Perform an expensive cfg cleanup while going into cfglayout mode.
1220         Always update liveness information on HAVE_conditional_execution
1221         targets.  Reserialize the basic blocks and go out of cfglayout mode.
1222         * reg-stack.c: Include cfglayout.h.
1223         (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
1224         the call to reorder_basic_blocks.
1225         * basic-block.h (reorder_basic_blocks): Update prototype.
1226         (relink_block_chain): New prototype.
1227         * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
1228
1229 2007-03-23  Joseph Myers  <joseph@codesourcery.com>
1230
1231         * config/mips/mips.md (type, hazard, *movdi_32bit,
1232         *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
1233         *movhi_internal, *movqi_internal, *movsf_hardfloat,
1234         *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
1235         movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
1236         mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
1237         applicable.
1238         (movcc): Change first xfer to multi.
1239         * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
1240         config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
1241         config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
1242         config/mips/generic.md: Change reservations using "xfer" to use
1243         "mfc,mtc".
1244         * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
1245         using match_operand.
1246         (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
1247         * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
1248         examining mode.
1249         (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
1250
1251 2007-03-22  Richard Henderson  <rth@redhat.com>
1252
1253         * config/i386/i386.c: Remove unnecessary function declarations.
1254         Move targetm definition, and all related macros, to the end of
1255         the file.  Resort some functions to put definitions before uses.
1256         (ix86_attribute_table): Make static.  Move to end of file.
1257         (ix86_gimplify_va_arg): Make static.
1258
1259 2007-03-22  Richard Henderson  <rth@redhat.com>
1260
1261         * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
1262         don't increase local_regparm with force_align_arg_pointer check.
1263         (ix86_function_sseregparm): Assert 32-bit.
1264         (type_has_variadic_args_p): New.
1265         (ix86_return_pops_args): Early exit for 64-bit.  Reindent; use
1266         type_has_variadic_args_p.
1267         (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
1268         (init_cumulative_args): Remove TARGET_DEBUG_ARG.  Remove zero_cum;
1269         use memset instead.  Do maybe_vaarg check first; skip attribute
1270         tests if true; skip attribute tests for 64-bit.
1271         (construct_container): Remove TARGET_DEBUG_ARG.
1272         (function_arg_advance_32, function_arg_advance_64): Split out ...
1273         (function_arg_advance): ... from here.
1274         (function_arg_32, function_arg_64): Split out ...
1275         (function_arg): ... from here.
1276         (ix86_pass_by_reference): Tidy.
1277         (ix86_function_value_regno_p): Rearrange w/ switch on regno.
1278         (function_value_32): New, from parts of ix86_function_value
1279         and ix86_value_regno.
1280         (function_value_64): New, from parts of ix86_function_value
1281         and ix86_libcall_value.
1282         (ix86_function_value_1): New.
1283         (ix86_function_value, ix86_libcall_value): Use it.
1284         (return_in_memory_32, return_in_memory_64): Split out ...
1285         (ix86_return_in_memory): ... from here.
1286         (ix86_struct_value_rtx): Skip for 64-bit.
1287         (ix86_libcall_value, ix86_value_regno): Remove.
1288         (setup_incoming_varargs_64): Split out ...
1289         (ix86_setup_incoming_varargs): ... from here.
1290         (ix86_va_start): Remove TARGET_DEBUG_ARG.
1291         (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
1292         * config/i386/i386-protos.h (ix86_function_value): Remove.
1293         * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
1294
1295 2007-03-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1296
1297         PR other/23572
1298         * c-lex.c (interpret_float): On overflow, emit pedantic warning if
1299         infinities not supported, otherwise emit warning if -Woverflow. On
1300         underflow, emit warning if -Woverflow.
1301         * real.c (real_from_string): Return -1 if underflow, +1 if overflow
1302         and 0 otherwise.
1303         * real.h (real_from_string): Update declaration
1304
1305 2007-03-22  Kai Tietz  <kai.tietz@onevision.com>
1306             Richard Henderson  <rth@redhat.com>
1307
1308         * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
1309         * calls.c (compute_argument_block_size, expand_call,
1310         emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
1311         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1312         * function.c (STACK_DYNAMIC_OFFSET): Likewise.
1313         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
1314         * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
1315         config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
1316         config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
1317         config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
1318         Set to 1.
1319
1320 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
1321
1322         * c-incpath.c (add_sysroot_to_chain): New.
1323         (merge_include_chains): Add sysroot argument.  Call
1324         add_sysroot_to_chain if sysrooted.
1325         (register_include_chains): Update call to merge_include_chains.
1326         * doc/cppopts.texi: Document use of '=' in include directory
1327         arguments.
1328
1329 2007-03-22  Uros Bizjak  <ubizjak@gmail.com>
1330
1331         * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
1332         Macroize expander using SSEMODEF mode macro.  Use SSE_FLOAT_MODE_P.
1333         (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
1334         insn pattern using X87MODEF12 mode macro.
1335
1336 2007-03-21  Seongbae Park <seongbae.park@gmail.com>
1337
1338         * regmove.c (regmove_optimize): Use reg_mentioned_p
1339         instead of reg_overlap_mentioned_p for DST.
1340
1341 2007-03-21  Mike Stump  <mrs@apple.com>
1342
1343         * c.opt: Fixup for Objective-C/C++.
1344
1345 2007-03-21  Steve Ellcey  <sje@cup.hp.com>
1346
1347         * explow.c (convert_memory_address): Fold memory reference when
1348         POINTERS_EXTEND_UNSIGNED < 0
1349
1350 2007-03-21  Richard Henderson  <rth@redhat.com>
1351
1352         PR target/31245
1353         * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
1354         * config/i386/mmintrin.h (__m64): Likewise.
1355         * config/i386/xmmintrin.h (__m128): Likewise.
1356
1357 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
1358
1359         * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
1360         (VXWORKS_OS_CPP_BUILTINS): Define.
1361         * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
1362         (TARGET_OS_CPP_BUILTINS): ...here.  Use VXWORKS_OS_CPP_BUILTINS.
1363
1364 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
1365
1366         * rtl.h (constant_pool_reference_p): Delete.
1367         (find_constant_src): Declare.
1368         * rtlanal.c (find_constant_src): New function.
1369         * simplify-rtx.c (constant_pool_reference_p): Delete.
1370         * config/i386/i386.md: Use find_constant_src instead of
1371         constant_pool_reference_p/avoid_constant_pool_reference pairs.
1372
1373 2007-03-21  Richard Sandiford  <richard@codesourcery.com>
1374
1375         * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
1376         * c-cppbuiltin.c (c_cpp_builtins): Define them.
1377
1378 2007-03-20  Mark Mitchell  <mark@codesourcery.com>
1379
1380         * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
1381         * config/arm/arm.c (arm_elf_asm_cdtor): New function.
1382         (arm_elf_asm_constructor): Use it.
1383         (arm_elf_asm_destructor): New function.
1384
1385 2007-03-20  Bernd Schmidt  <bernd.schmidt@analog.com>
1386
1387         * jump.c (mark_jump_label): Treat SEQUENCE specially.
1388
1389 2007-03-20  Nathan Sidwell  <nathan@codesourcery.com>
1390
1391         * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
1392
1393 2007-03-19  Andrew Haley  <aph@redhat.com>
1394
1395         PR tree-optimization/31264
1396         * tree-vrp.c (register_edge_assert_for_1): Don't look though
1397         VIEW_CONVERT_EXPRs.
1398
1399 2007-03-19  Paolo Bonzini  <bonzini@gnu.org>
1400
1401         PR rtl-optimization/30907
1402         * fwprop.c (forward_propagate_into): Never propagate inside a loop.
1403         (fwprop_init): Always call loop_optimizer_initialize.
1404         (fwprop_done): Always call loop_optimizer_finalize.
1405         (fwprop): We always have loop info now.
1406         (gate_fwprop_addr): Remove.
1407         (pass_fwprop_addr): Use gate_fwprop as gate.
1408
1409         PR rtl-optimization/30841
1410         * df-problems.c (df_ru_local_compute, df_rd_local_compute,
1411         df_chain_alloc): Call df_reorganize_refs unconditionally.
1412         * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
1413         refs_organized to refs_organized_size.
1414         (df_ref_create_structure): Use refs_organized_size instead of
1415         bitmap_size if refs had been organized, and keep refs_organized_size
1416         up-to-date.
1417         * df.h (struct df_ref_info): Change refs_organized to
1418         refs_organized_size.
1419         (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
1420         bitmap_size.
1421
1422 2007-03-19  Mark Mitchell  <mark@codesourcery.com>
1423
1424         * except.c (output_function_exception_table): Do not reference the
1425         EH personality routine for functions that do not require an
1426         exception table.
1427
1428 2007-03-20  Jakub Jelinek  <jakub@redhat.com>
1429
1430         PR c/30762
1431         * c-typeck.c (convert_for_assignment): Call comptypes for
1432         RECORD_TYPE or UNION_TYPE.
1433
1434         PR inline-asm/30505
1435         * reload1.c (reload): Do invalid ASM checking after
1436         cleanup_subreg_operands.
1437
1438 2007-03-19  Jeff Law  <law@redhat.com>
1439
1440         * tree-cfg.c (find_taken_edge): Tighten conditions for
1441         optimizing computed gotos.
1442
1443 2007-03-19  Michael Matz  <matz@suse.de>
1444
1445         * builtins.c (expand_builtin_sync_operation,
1446         expand_builtin_compare_and_swap,
1447         expand_builtin_lock_test_and_set): Care for extending CONST_INTs
1448         correctly.
1449
1450         * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
1451         sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
1452         for operand 3.
1453
1454 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1455
1456         * doc/tm.texi: Add brackets around the return type of
1457         TARGET_SECONDARY_RELOAD.
1458
1459 2007-03-19  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1460         Richard Guenther  <rguenther@suse.de>
1461
1462         PR tree-optimization/31254
1463         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
1464         Use handled_component_p () where appropriate.  Continue
1465         propagating into the rhs if we propagated into an INDIRECT_REF
1466         on the lhs.
1467
1468 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1469
1470         * config/s390/s390.md (op_type attribute): RRR instruction type added.
1471         (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
1472         (xde, xdee): Mode attributes adjusted to support DFP modes.
1473         (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
1474         ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
1475         DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
1476         "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
1477         "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
1478         "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
1479         "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
1480         numbers.
1481         ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
1482         "movsf"): Insn definitions removed.
1483         ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
1484         "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
1485         "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
1486         definitions added.
1487         ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
1488         "reload_in<mode>", "reload_out<mode>"): Expander added.
1489         ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
1490         Expander removed.
1491
1492 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1493
1494         * config/s390/s390.md: Only non-functional changes.  Renamed
1495         FPR mode macro to BFP all over the file.
1496
1497 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1498
1499         * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
1500         (op_type attribute): RRF instruction type added.
1501         (fT0): New mode attribute.
1502         ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
1503         "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
1504         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
1505         no secondary memory is needed when moving DFmode values between GPRs
1506         and FPRs.
1507
1508 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1509
1510         * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
1511         inverted and documentation adjusted.
1512         ("mhard-dfp", "msoft-dfp"): New options.
1513         * config/s390/s390.c (s390_handle_arch_option): New architecture
1514         switch: z9-ec.
1515         (override_options): Sanity checks for the new options added.
1516         * config.gcc: New architecture switch: z9-ec.
1517         * config/s390/s390.h (processor_flags): PF_DFP added.
1518         (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
1519         (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
1520         when the bit is NOT set so remove it from the defaults.
1521
1522 2007-03-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1523
1524         * genemit.c (main): Print include statement for dfp.h.
1525         * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
1526         is not available.
1527
1528 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
1529
1530         * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
1531
1532 2007-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
1533
1534         PR target/31022
1535         * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
1536         instead of PATTERN.
1537
1538 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1539
1540         * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
1541         attr_length_call, output_call, output_indirect_call): Cleanup
1542         formatting of targetm calls.
1543
1544 2007-03-19  Hans-Peter Nilsson  <hp@axis.com>
1545
1546         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
1547
1548 2007-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1549
1550         * pa.md: Add fpstore_load and store_fpload instruction types.  Provide
1551         reservation, bypass and anti-bypass descriptions for these instructions.
1552         Update move patterns.
1553         * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
1554         TYPE_FPSTORE.
1555
1556 2007-03-18  Dorit Nuzman  <dorit@il.ibm.com>
1557
1558         * tree-vect-transform.c (get_initial_def_for_induction): Replace
1559         GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
1560         (get_initial_def_for_reduction): Likewise.
1561
1562 2007-03-16  Daniel Berlin  <dberlin@dberlin.org>
1563
1564         Fix PR tree-optimization/29922
1565         * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
1566         (get_representative): Removed.
1567         (value_dies_in_block_x): Update for rvuse removal.
1568         (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
1569         (compute_antic_aux): Handle when PHI nodes appear in
1570         non-single-successors.
1571         (dump_bitmap_of_names): Removed.
1572         (compute_antic_safe): Renamed and removed rvuse calculation.
1573         Calculate only antic safe.
1574         (insert_into_preds_of_block): Remove assert.
1575         (execute_pre): Update for renamed functions.
1576         (defer_or_phi_translate_block): New function.
1577
1578 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
1579
1580         * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
1581         config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
1582         typos.
1583         * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
1584         Follow spelling conventions.
1585
1586         * tree-data-ref.h: Remove the prototype for analyze_array.
1587
1588 2007-03-17  Dorit Nuzman  <dorit@il.ibm.com>
1589
1590         PR tree-optimization/31041
1591         * tree-vect-transform.c (get_initial_def_for_induction): Call
1592         force_gimple_operand.
1593
1594 2007-03-17  Olga Golovanevsky  <olga@il.ibm.com>
1595
1596         * ipa-type-escape.c (look_for_casts) : Revert code to use
1597         handled_component_p due to ada test a-numaux.adb.
1598
1599 2007-03-17  Kazu Hirata  <kazu@codesourcery.com>
1600
1601         * final.c (final_scan_insn): Alter the condition of a
1602         conditional trap if we have nonstandard CC.
1603
1604 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
1605
1606         * configure.ac: Remove excess quoting from asm line 0 test.
1607         * configure: Rebuilt.
1608
1609 2007-03-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1610
1611         * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
1612         * c-common.c (convert_and_check): Move warning logic to...
1613         (warnings_for_convert_and_check): ...here. Define.
1614         * c-common.h (warnings_for_convert_and_check): Declare.
1615
1616 2007-03-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1617
1618         * pa.c (attr_length_call): Partially revert change of 2007-03-09.
1619         (output_call): Likewise.
1620
1621 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
1622
1623         * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
1624
1625 2007-03-16  Richard Sandiford  <richard@codesourcery.com>
1626
1627         * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
1628
1629 2007-03-16  Uros Bizjak  <ubizjak@gmail.com>
1630
1631         * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
1632         opteron, athlon-64 and athlon-fx processor_alias_table entries.
1633
1634 2007-03-16  Sebastian Pop  <sebastian.pop@inria.fr>
1635
1636         PR tree-optimization/31183
1637         * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
1638         Use double_int instead of unsigned int for representing access_strides.
1639         * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
1640
1641 2007-03-16  Richard Guenther  <rguenther@suse.de>
1642
1643         PR tree-optimization/31146
1644         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
1645         to allow recursion of forward_propagate_addr_expr.
1646         (forward_propagate_addr_into_variable_array_index): Likewise.
1647         (forward_propagate_addr_expr): Likewise.
1648         (tree_ssa_forward_propagate_single_use_vars): Likewise.
1649         (forward_propagate_addr_expr_1): Recurse on simple copies
1650         instead of propagating into them.  Do so for useless conversions
1651         as well.
1652         (forward_propagate_addr_expr): Clean up unused statements after
1653         recursion.
1654
1655 2007-03-16  Richard Guenther  <rguenther@suse.de>
1656
1657         * builtins.c (expand_builtin_cexpi): Use the right argument
1658         for the expansion via cexp.
1659
1660 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
1661
1662         * configure.ac: Don't require ELF binutils to tolerate # 0 "".
1663         * configure: Rebuilt.
1664
1665 2007-03-16  Alexandre Oliva  <aoliva@redhat.com>
1666
1667         PR debug/29906
1668         * dwarf2out.c (force_type_die): Adjust comment.
1669         (dwarf2out_imported_module_or_decl): Handle base AT_import types.
1670
1671 2007-03-15  DJ Delorie  <dj@redhat.com>
1672
1673         * config/frv/predicates.md (minmax_operator): Don't check operands
1674         here.
1675
1676 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
1677
1678         * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
1679         Update constant estimates of number of iterations.
1680         (record_nonwrapping_iv): Add "upper" argument.  "data_size_bounds_p"
1681         argument renamed to "realistic".
1682         (compute_estimated_nb_iterations): Removed.
1683         (record_niter_bound): New function.
1684         (idx_infer_loop_bounds): For possible but unlikely tail arrays,
1685         call record_nonwrapping_iv with upper = false.
1686         (infer_loop_bounds_from_signedness): Pass upper argument to
1687         record_nonwrapping_iv.
1688         (estimate_numbers_of_iterations_loop): Do not call
1689         compute_estimated_nb_iterations.  Record estimate based on profile
1690         information.  Initialize the constant estimates of number of
1691         iterations.
1692         * tree-data-ref.c (estimated_loop_iterations): Return the recorded
1693         estimates.
1694         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
1695         number of iterations is too small.
1696         * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
1697         (EST_NOT_AVAILABLE): Removed.
1698         (struct loop): Replace estimated_nb_iterations by any_upper_bound,
1699         nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
1700         fields.
1701
1702 2007-03-15  Zdenek Dvorak  <dvorakz@suse.cz>
1703
1704         * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
1705         Handle NE_EXPR guards.
1706
1707 2007-03-15  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1708
1709         PR c++/24924
1710         * c-opts.c (c_common_post_options): Handle C++ post-processing here.
1711         Set also -pedantic-errors by default for the  preprocessor unless
1712         -fpermissive is given.
1713
1714 2007-03-15  Richard Guenther  <rguenther@suse.de>
1715
1716         PR middle-end/29719
1717         PR middle-end/31161
1718         * builtins.c (expand_builtin_cexpi): As a fallback if we
1719         don't have builtins for sincos or cexp create a function
1720         declaration for cexp and expand to a call to that.
1721         (expand_builtin_int_roundingfn): Always fall
1722         back to floor/ceil and its variants even if they may be
1723         not available.
1724
1725 2007-03-15  Steven Bosscher  <steven@gcc.gnu.org>
1726
1727         PR middle-end/31159
1728         * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
1729         jump tables, move the call to delete_dead_jumptables from here...
1730         (cfg_layout_finalize): ...to here.  But rebuild jump labels first.
1731         * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
1732         don't allow merging of blocks that try_redirect_by_replacing_jump
1733         also does not handle when not optimizing.
1734
1735 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
1736             Francois-Xavier Coudert  <coudert@clipper.ens.fr>
1737
1738         * config/i386/i386.md (x86_sahf_1): Correctly handle
1739         HAVE_AS_IX86_SAHF.
1740
1741 2007-03-15  Uros Bizjak  <ubizjak@gmail.com>
1742
1743         PR target/31167
1744         * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
1745         x86_64_general_operand as operand[2] predicate.  Remove "iF"
1746         from operand constraints and use "e" constraint instead.
1747         (*subti3_1, *subti3_1 splitter): Ditto.
1748         (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
1749         operand[1] predicate.
1750
1751 2007-03-14  Sebastian Pop  <sebastian.pop@inria.fr>
1752
1753         * tree-loop-linear.c (gather_interchange_stats): For multidimensional
1754         arrays, multiply the access strides by the size of the sub-array.
1755         * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
1756
1757 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
1758
1759         * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
1760         the configured assembler supports the sahf mnemonic.
1761         * configure: Regenerate.
1762         * config.in: Regenerate.
1763
1764         * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
1765         emit "sahf" or ".byte\t0x9e" as asm template.
1766
1767 2007-03-14  Michael Meissner  <michael.meissner@amd.com>
1768
1769         PR 31018
1770         * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
1771         option to replace hard coded TARGET_xxx in md file.
1772         (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
1773         (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1774         (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
1775         (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
1776         (X86_TUNE_NOT_UNPAIRABLE): Ditto.
1777         (X86_TUNE_NOT_VECTORMODE): Ditto.
1778         (TUNE_SHORTEN_X87_SSE): Use new tuning option.
1779         (TUNE_AVOID_VECTOR_DECODE): Ditto.
1780         (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1781         (TUNE_SLOW_IMUL_IMM8): Ditto.
1782         (TUNE_MOVE_M1_VIA_OR): Ditto.
1783         (TUNE_NOT_UNPAIRABLE): Ditto.
1784         (TUNE_NOT_VECTORMODE): Ditto.
1785
1786         * config/i386/i386.c (ix86_tune_features): Fill in new tuning
1787         options.
1788
1789         * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
1790         tuning options instead of hard coded TARGET_xxx.
1791         (fix ssemode peephole2's): Ditto.
1792         (imul peephole2's): Ditto.
1793         (movsi_or): Ditto.
1794         (movdi_or_rex64): Ditto.
1795         (move peephole2): Ditto.
1796         (not peephole2's): Ditto.
1797
1798 2007-03-14  Dirk Mueller  <dmueller@suse.de>
1799
1800         * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
1801         * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
1802         * c-parser.c (c_parser_if_body): Always add an empty statement in case
1803         of empty body.
1804         * c-parser.c (c_parser_do_statement): Warn about empty body in
1805         do/while statement.
1806         * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
1807         * doc/invoke.texi (-Wempty-body): Update documentation.
1808
1809 2007-03-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1810
1811         PR c/21438
1812         * c-common.h (warn_for_div_by_zero): Declare.
1813         * c-common.c (warn_for_div_by_zero): Define.
1814         * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
1815         warning.
1816
1817 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
1818
1819         * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
1820         to PREFIX and STANDARD_PREFIX.
1821
1822 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
1823             Phil Edwards  <phil@codesourcery.com>
1824
1825         * gthr-vxworks.h: Add an extern "C" wrapper for C++.
1826         (__gthread_once_t): Remove busy field for RTPs.
1827         (__GTHREAD_ONCE_INIT): Update accordingly.
1828
1829 2007-03-14  Richard Sandiford  <richard@codesourcery.com>
1830
1831         * doc/invoke.texi: Document VxWorks options.
1832
1833 2007-03-14  Uros Bizjak  <ubizjak@gmail.com>
1834
1835         * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
1836
1837 2007-03-13  Seongbae Park <seongbae.park@gmail.com>
1838
1839         PR tree-optimization/30590
1840         * tree-nrv.c (tree_nrv): Check for the partial update of the
1841         return value.
1842
1843 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
1844
1845         * flags.h (flag_random_seed): Remove declaration, in favor of...
1846         * toplev.h (get_random_seed, set_random_seed): ... these.
1847         * tree.c (get_file_function_name): Use the former.
1848         * opts.c (common_handle_option): Use the latter.
1849         * toplev.c
1850
1851 2007-03-13  Steven Bosscher  <steven@gcc.gnu.org>
1852
1853         PR middle-end/31127
1854         * cse.c (cse_find_path): Do not bail out if a basic block that
1855         we already visited now becomes part of a path that starts at a
1856         different basic block.  Just disallow this, to make sure we
1857         visit each basic block at most once.
1858
1859 2007-03-13  Jan Hubicka  <jh@suse.cz>
1860
1861         * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
1862         when profile esitmate is present, calls with very low frequency are
1863         cold.
1864
1865 2007-03-13  Zdenek Dvorak  <dvorakz@suse.cz>
1866
1867         PR tree-optimization/30730
1868         PR tree-optimization/26900
1869         * tree-ssa-loop-niter.c: Include gmp.h.
1870         (bounds): New type.
1871         (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
1872         split_to_var_and_offset, determine_value_range,
1873         bound_difference_of_offsetted_base, refine_bounds_using_guard,
1874         bound_difference, bounds_add, bounds_negate,
1875         number_of_iterations_ne_max, dump_affine_iv): New functions.
1876         (number_of_iterations_ne, number_of_iterations_lt_to_ne,
1877         assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
1878         difference of initial and final value of control iv to validate
1879         results.
1880         (number_of_iterations_cond): Add loop parameter.  Determine bounds
1881         on the difference of the extremes of the control iv.  Add dumps.
1882         (expand_simple_operations): Handle phi nodes.
1883         (simplify_using_initial_conditions): Do not record used conditions.
1884         (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
1885         Do not set additional_info.
1886         (implies_nonnegative_p, implies_ge_p): Removed.
1887         (derive_constant_upper_bound): Do not use parameter `additional'.
1888         (record_estimate): Parameter `additional' removed.  Parameter
1889         `i_bound' added.  Do not call derive_constant_upper_bound.
1890         (record_nonwrapping_iv): Use derive_constant_upper_bound to
1891         bound the number of iterations estimate.
1892         (estimate_numbers_of_iterations_loop): Pass the estimate from
1893         the number of iterations analysis to record_estimate.
1894         * tree.h (multiple_of_p): Declare.
1895         * tree-scalar-evolution.c (expression_expensive_p): Removed.
1896         (scev_const_prop): Do not check expression_expensive_p.
1897         * fold-const.c (multiple_of_p): Exported.
1898         * double-int.c (double_int_mask): Exported.
1899         * double-int.h (double_int_mask): Declare.
1900         * tree-flow.h (struct tree_niter_desc): Removed additional_info
1901         field.  Added max field.
1902
1903 2007-03-13  David Taylor  <taylor@candd.org>
1904
1905         PR driver/12448:
1906         * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
1907         default -MQ.
1908
1909 2007-03-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1910
1911         PR target/31123
1912         * pa.md (vdepi_ior): Don't allow zero length deposit.  Likewise for
1913         two unamed patterns.
1914
1915 2007-03-13  Uros Bizjak  <ubizjak@gmail.com>
1916
1917         * config/i386/i386.opt (mcx16, msahf): New options.
1918         * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
1919         (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
1920
1921         * config/i386/driver-i386.c (bit_LAHF_LM): New define.
1922         (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
1923         Output -mcx16 and -msahf options when corresponding bit is set.
1924
1925         * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
1926         and -msahf options.
1927
1928 2007-03-13  Alexandre Oliva  <aoliva@redhat.com>
1929
1930         * configure.ac: Test for assembler tolerance to # 0 "".
1931         * configure, config.in: Rebuilt.
1932         * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
1933
1934 2007-03-13  Geoffrey Keating  <geoffk@apple.com>
1935
1936         * doc/invoke.texi (Spec Files): Update for '%{,' spec.
1937
1938         * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
1939         (handle_syscall): Handle direct system calls.
1940         * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
1941
1942 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
1943
1944         * doc/invoke.texi: Fix cpp.info cross-reference.
1945         * doc/passes.texi: Fix gcc.info cross-reference.
1946
1947 2007-03-12  Zdenek Dvorak  <dvorakz@suse.cz>
1948
1949         PR tree-optimization/30835
1950         * lambda-code.c (can_convert_to_perfect_nest): Check whether
1951         bb_for_stmt is not NULL before accessing it.
1952
1953 2007-03-12  Joseph Myers  <joseph@codesourcery.com>
1954
1955         * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
1956         some multilibs.
1957
1958 2007-03-12  Brooks Moses  <brooks.moses@codesourcery.com>
1959
1960         PR 30635
1961         * doc/install.texi: Document --enable-stage1-languages
1962
1963 2007-03-12  Steven Bosscher  <steven@gcc.gnu.org>
1964
1965         * tree-pass.h (pass_into_cfg_layout_mode,
1966         pass_outof_cfg_layout_mode): Declare.
1967         * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
1968         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
1969         * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
1970         (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
1971
1972 2007-03-12  Seongbae Park <seongbae.park@gmail.com>
1973
1974         * c-decl.c (warn_variable_length_array): New function.
1975         Refactored from grokdeclarator to handle warn_vla
1976         and handle unnamed array case.
1977         (grokdeclarator): Refactored VLA warning case.
1978         * c.opt (Wvla): New flag.
1979         * doc/invoke.texi (Wvla): New warning.
1980
1981 2007-03-12  Richard Henderson  <rth@redhat.com>
1982
1983         * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
1984         (TARGET_SECTION_TYPE_FLAGS): New.
1985
1986 2007-03-12  Richard Henderson  <rth@redhat.com>
1987
1988         * config/darwin.c (machopic_reloc_rw_mask): New.
1989         * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
1990         * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
1991
1992 2007-03-12  Mark Mitchell  <mark@codesourcery.com>
1993
1994         * cppdefault.c (cpp_EXEC_PREFIX): New variable.
1995         * cppdefault.h (cpp_PREFIX): Document.
1996         (cpp_PREFIX_len): Likewise.
1997         (cpp_EXEC_PREFIX): New variable.
1998         * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
1999         * c-incpath.c (add_standard_paths): Correct logic for relocating
2000         paths within prefix.
2001
2002 2007-03-12  Uros Bizjak  <ubizjak@gmail.com>
2003
2004         * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
2005         fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
2006         mode macro.
2007         (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
2008         fix_truncdfdi_sse using SSEMODEF mode macro.
2009         (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
2010         fix_truncdfsi_sse using SSEMODEF mode macro.
2011         (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
2012         (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
2013
2014 2007-03-12  Richard Sandiford  <richard@codesourcery.com>
2015
2016         * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
2017         elfos.h to tm_file.
2018
2019 2007-03-12  Olga Golovanevsky  <olga@il.ibm.com>
2020
2021         * tree.h : Add multiple_of_p declaration.
2022         * fold-const.c (multiple_of_p): Make multiple_of_p public.
2023         * ipa-type-escape.c (results_of_malloc): Redundant.
2024         (visited_stmts): New. Visited stmt for walk_use_def_chains.
2025         (cast_type): Extended with new members.
2026         (check_cast): Returns cast_type.
2027         (cast): New structure for data of walk_use_def_chains.
2028         (is_malloc_result, is_cast_from_non_pointer_1,
2029         is_cast_from_non_pointer,
2030         is_array_access_through_pointer_and_index): New functions.
2031         (look_for_casts): Returns cast types.
2032         (check_call): Returns void.
2033         (okay_pointer_operation): Use support of pointer plus index,
2034         pointer plus constant and allow all multiplications.
2035
2036 2007-03-11  Richard Guenther  <rguenther@suse.de>
2037
2038         PR tree-optimization/31115
2039         * tree-vrp.c (extract_range_from_binary_expr): Make sure
2040         the shift count is positive and non-anti-range for RSHIFT_EXPR.
2041         A shift count of zero is not special as with *_DIV_EXPR.
2042         (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
2043         direction.
2044
2045 2007-03-11  Ian Lance Taylor  <iant@google.com>
2046
2047         * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
2048         the *_DIV_EXPR codes correctly with overflow infinities.
2049
2050 2007-03-11  Ira Rosen  <irar@il.ibm.com>
2051
2052         * tree-data-ref.c (analyze_offset): Add a return value (bool) to
2053         indicate success/failure of the analysis. Add negation to subtrahend
2054         in case of subtraction. Fail if both operands contain constants.
2055         (create_data_ref): Fail if analyze_offset fails.
2056
2057 2007-03-11  Uros Bizjak  <ubizjak@gmail.com>
2058
2059         * config/i386/i386.md (frndintxf2): Rename to ...
2060         (rintxf2): ... this. Remove expander having same name.
2061         (rintsf2, rintdf2): Implement using SSEMODEF macro.
2062         (roundsf2, rounddf2): Ditto.
2063         (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
2064         (lround<mode>di2, lround<mode>si2): Ditto.
2065
2066 2007-03-11  Steven Bosscher  <steven@gcc.gnu.org>
2067
2068         * lower-subreg.c: Include except.h.
2069         (decompose_multiword_subregs): Verify that the only control flow
2070         insns we can split are loads to multi-words pseudos.
2071         Handle breaking such blocks after splitting, instead of calling
2072         find_many_sub_basic_blocks.
2073
2074         * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
2075         on the new basic block.  Add a lengthy comment explaining why we
2076         thought this was necessary.
2077         * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
2078
2079 2007-03-10  Mark Mitchell  <mark@codesourcery.com>
2080
2081         PR c++/30924
2082         * tree.c (walk_type_fields): Recurse into the element type of
2083         ARRAY_TYPEs if there is a pointer set.
2084
2085 2007-03-10  Dirk Mueller  <dmueller@suse.de>
2086
2087         * c-common.c (warn_logical_operator): Fix condition.
2088
2089 2007-03-10  Tobias Schl├╝ter  <tobi@gcc.gnu.org>
2090
2091         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
2092         quotation mark.
2093         * config/darwin.c (machopic_select_section): Remove superfluous
2094         argument in call to categorize_decl_for_section.  Remove unused
2095         variable shlib.
2096
2097 2007-03-10  Joseph Myers  <joseph@codesourcery.com>
2098
2099         * configure.ac (glibc_header_dir): Set using with_build_sysroot if
2100         defined.
2101         * configure: Regenerate.
2102
2103 2007-03-10  Uros Bizjak  <ubizjak@gmail.com>
2104
2105         PR target/31101
2106         * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
2107         (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
2108         (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
2109         Add LABEL_NUSES to emitted label.
2110         * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
2111         branch probability value to emitted jump insn.
2112         * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
2113         Do not check life information and do not re-arrange input operands
2114         for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
2115
2116 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
2117
2118         * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
2119         the change of decode_asm_operands.
2120
2121 2007-03-10  Kaz Kojima  <kkojima@gcc.gnu.org>
2122
2123         * mode-switching.c (create_pre_exit): Skip blockage insn.
2124
2125 2007-03-09  Diego Novillo  <dnovillo@redhat.com>
2126
2127         * tree-pass.h (TODO_update_smt_usage): Remove.
2128         Update all users.
2129         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2130         argument SOME.
2131         Update all users.
2132
2133 2007-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2134
2135         * pa.c (attr_length_call): Revise condition for long pc-relative branch.
2136         (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
2137         calls on the SOM target.  Don't use "LONG_PIC_PCREL" call sequence on
2138         SOM target.
2139
2140 2007-03-09  Geoffrey Keating  <geoffk@apple.com>
2141
2142         * gcc.c: Document %{, in big comment at top.
2143         (input_suffix_matches): Remove special handling for .s and
2144         .S.
2145         (input_spec_matches): New.
2146         (handle_braces): Handle %{,.
2147         (validate_switches): ',' indicates a value which is not a switch.
2148         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
2149         to detect assembler input.
2150         * config/i386/sol2.h (CPP_SPEC): Likewise.
2151         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
2152         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2153         * config/rs6000/lynx.h (ASM_SPEC): Likewise.
2154         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
2155         * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
2156         -m64 causes deployment target to default to 10.5.
2157         * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
2158
2159 2007-03-09  Richard Henderson  <rth@redhat.com>
2160
2161         PR target/26090
2162         * target.h (targetm.asm.out.reloc_rw_mask): New.
2163         * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
2164         (TARGET_ASM_OUT): Use it.
2165         * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
2166         * varasm.c (categorize_decl_for_section): Remove shlib argument;
2167         use the new reloc_rw_mask target hook instead.
2168         (default_section_type_flags_1): Merge into...
2169         (default_section_type_flags): ... here.
2170         (decl_readonly_section_1): Merge into...
2171         (decl_readonly_section): ... here.
2172         (default_elf_select_section_1): Merge into...
2173         (default_elf_select_section): ... here.
2174         (default_unique_section_1): Merge into...
2175         (default_unique_section): ... here.
2176         (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
2177         (default_select_rtx_section): Use it.
2178         (default_elf_select_rtx_section): Likewise.
2179         * output.h: Update to match.
2180         * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
2181         * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
2182         (TARGET_ASM_RELOC_RW_MASK): New.
2183         * config/i386/i386.c (x86_64_elf_select_section): Adjust call
2184         to categorize_decl_for_section.
2185         (x86_64_elf_unique_section): Likewise.
2186         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
2187         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
2188         (TARGET_ASM_RELOC_RW_MASK): New.
2189         * config/ia64/ia64.c (ia64_rwreloc_select_section,
2190         ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
2191         (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
2192         (TARGET_RWRELOC): Remove.
2193         (ia64_section_type_flags): Adjust call to default_section_type_flags.
2194         * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
2195         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
2196         (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
2197         (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
2198         (rs6000_xcoff_select_section): Use decl_readonly_section.
2199         (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
2200         * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
2201         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
2202         (TARGET_SECTION_TYPE_FLAGS): Remove.
2203         * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
2204
2205 2007-03-09  Roger Sayle  <roger@eyesopen.com>
2206
2207         * fold-const.c (fold_comparison): Remove compile-time evaluation of
2208         complex constant equality/inequality comparisons for here.
2209         (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
2210         known at compile-time or can be simplified to a scalar comparison.
2211         (fold_relational_const): Move compile-time evaluation of complex
2212         constant equality/inequality comparisons to here.
2213
2214 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
2215
2216         PR rtl-optimization/30643
2217         * cse.c (cse_insn): Recompute dest_hash after insert_regs for
2218         dest_addr_elt.
2219         (fold_rtx): Recurse, like before 2006-11-03.
2220
2221 2007-03-09  DJ Delorie  <dj@redhat.com>
2222
2223         * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
2224         m32c-pragma.o.
2225
2226 2007-03-09  Aldy Hernandez  <aldyh@redhat.com>
2227
2228         PR tree-optimization/30375
2229         * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
2230         LHS of statements is not the same.
2231         * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
2232
2233 2007-03-09  Chao-ying Fu  <fu@mips.com>
2234
2235         * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
2236         REV 2.
2237         * doc/invoke.texi (-mdspr2): Document new option.
2238         * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
2239         New unspec for DSP REV 2.
2240         (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
2241         these instructions are extended in DSP REV 2.
2242         (mips-dspr2.md): Include.
2243         * config/mips/mips.opt (mdspr2): New option.
2244         * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
2245         MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
2246         MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
2247         (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
2248         (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
2249         (dsp_bdesc): Add DSP REV 2 builtins.  Remove 32-bit only DSP builtins.
2250         (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
2251         and 2 builtins.
2252         (bdesc_map): Add one field of unsupported_target_flags.
2253         (bdesc_arrays):  Update entries to have extra fields.  Add
2254         dsp_32only_bdesc.
2255         (mips_init_builtins): Initialize new function types.
2256         Check unsupported_target_fileds to filter out builtins.
2257         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
2258         TARGET_DSPR2.
2259         (ASM_SPEC): Pass mdspr2 to the assembler.
2260         * config/mips/mips-dspr2.md: New file.
2261
2262 2007-03-09  Sa Liu  <saliu@de.ibm.com>
2263
2264         * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
2265
2266 2007-03-09  Ian Lance Taylor  <iant@google.com>
2267
2268         * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
2269         argument) like -Wstrict-overflow=2.
2270         * doc/invoke.texi (Warning Options): Update documentation.
2271
2272 2007-03-09  Dirk Mueller  <dmueller@suse.de>
2273
2274         PR c++/17946
2275         * doc/invoke.texi (-Wlogical-op): Document.
2276         * common.opt (-Wlogical-op): New.
2277         * c-common.h (warn_logical_operator): Declare.
2278         * c-common.c (warn_logical_operator): Define.
2279         * c-typeck.c (parser_build_binary_op): Call
2280         warn_logical_operator.
2281
2282 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
2283
2284         * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
2285         * final.c (final_scan_insn): Test for non-"" file name.
2286
2287 2007-03-09  Sebastian Pop  <sebastian.pop@inria.fr>
2288
2289         * doc/loop.texi: Document the Omega linear constraints solver.
2290         * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
2291         omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
2292         omega-hash-table-size, omega-max-keys, and
2293         omega-eliminate-redundant-constraints.
2294         * tree-pass.h (pass_check_data_deps): Declared.
2295         * omega.c: New.
2296         * omega.h: New.
2297         * timevar.def (TV_CHECK_DATA_DEPS): Declared.
2298         * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
2299         pass_check_data_deps): New.
2300         * tree-data-ref.c (init_data_ref): Remove declaration.
2301         (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
2302         (analyze_array): Renamed init_array_ref, move up initializations.
2303         (init_data_ref): Renamed init_pointer_ref.  Moved before its call.
2304         Removed arguments that are set to NULL.
2305         (analyze_indirect_ref): Correct indentation, correct call to
2306         init_pointer_ref.
2307         (object_analysis): Call init_array_ref instead of analyze_array.
2308         (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
2309         (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
2310         of DR_ACCESS_FNS_ADDR.
2311         (init_omega_eq_with_af, omega_extract_distance_vectors,
2312         omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
2313         ddr_consistent_p): New.
2314         (compute_affine_dependence): Check consistency of ddrs when
2315         flag_check_data_deps is passed.
2316         (analyze_all_data_dependences): Uncomment.
2317         (tree_check_data_deps): New.
2318         * tree-data-ref.h: Include omega.h.
2319         (DR_ACCESS_FNS_ADDR): Removed.
2320         (data_dependence_relation): Add inner_loop.
2321         (DDR_INNER_LOOP): New.
2322         * common.opt (fcheck-data-deps): New.
2323         * tree-flow.h (tree_check_data_deps): Declare.
2324         * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
2325         (OBJS-common): Depend on omega.o.
2326         (omega.o): Define.
2327         * passes.c (pass_check_data_deps): Scheduled.
2328         * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2329         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2330         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
2331         PARAM_VECT_MAX_VERSION_CHECKS,
2332         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
2333
2334 2007-03-09  Richard Guenther  <rguenther@suse.de>
2335
2336         PR tree-optimization/30904
2337         PR middle-end/31058
2338         * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
2339         the same way as *_DIV_EXPR.
2340
2341 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
2342
2343         * recog.c (decode_asm_operands): No mixed declarations and code.
2344
2345 2007-03-09  Alexandre Oliva  <aoliva@redhat.com>
2346
2347         * rtl.def (ASM_INPUT): Add location.
2348         * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
2349         (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
2350         (decode_asm_operands): Add loc operand.
2351         (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
2352         * stmt.c (expand_asm): Rename to...
2353         (expand_asm_loc): ... this.  Add locus argument.  Pass it on to
2354         gen_rtx_ASM_INPUT_loc.
2355         (expand_asm_expr): Adjust.
2356         * recog.c (decode_asm_operands): Add loc operand.
2357         (check_asm_operands, extract_insn): Adjust.
2358         * reload1.c (maybe_fix_stack_asms): Likewise.
2359         * final.c (asm_insn_count): Likewise.
2360         (final_scan_insn): Output # line before and after asm.
2361
2362 2007-03-09  Daniel Berlin  <dberlin@dberlin.org>
2363
2364         * tree-ssa-structalias.c (variable_info): Remove
2365         finished_solution.
2366         (new_var_info): Ditto.
2367         (shared_bitmap_info_t): New structure.
2368         (shared_bitmap_table): New variable.
2369         (shared_bitmap_hash): New function.
2370         (shared_bitmap_eq): Ditto
2371         (shared_bitmap_lookup): Ditto.
2372         (shared_bitmap_add): Ditto.
2373         (merge_smts_into): Change to take bitmap directly.
2374         (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
2375         (init_alias_vars): Init shared bitmap hashtable.
2376         (delete_points_to_sets): Delete shared bitmap hashtable.
2377         * tree-ssa-operands.c (add_virtual_operand): Partially revert the
2378         is_aliased removal as a change that was still necessary was
2379         deleted.
2380
2381 2007-03-09  Uros Bizjak  <ubizjak@gmail.com>
2382
2383         * config/i386/i386.h (override_options): Conditionally disable
2384         x86_sahf for 64bit targets only.
2385
2386 2007-03-08  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2387
2388         PR C/31072
2389         * c-decl.c (merge_decls): Don't call make_var_volatile.
2390         * varasm.c (make_var_volatile): Remove.
2391         * output.h (make_var_volatile): Remove.
2392
2393 2007-03-08  Zdenek Dvorak  <dvorakz@suse.cz>
2394
2395         PR tree-optimization/31085
2396         * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
2397
2398 2007-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2399
2400         * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
2401         llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
2402         ATTR_CONST_NOTHROW_LIST.
2403
2404         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
2405         FIX_TRUNC_EXPR.
2406
2407 2007-03-08  Diego Novillo  <dnovillo@redhat.com>
2408
2409         * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
2410
2411 2007-03-08  Geoffrey Keating  <geoffk@apple.com>
2412
2413         PR 31013
2414         * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
2415         is declared.
2416         * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
2417         passed, use shared libgcc.
2418
2419 2007-03-08  Roger Sayle  <roger@eyesopen.com>
2420
2421         * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
2422         instead of calling build2 with a GIMPLE_MODIFY_STMT.
2423         (honor_protect_cleanup_actions, lower_try_finally_switch):
2424         Likewise.
2425         * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
2426         ifc_temp_var): Likewise.
2427         * tree-inline.c (setup_one_parameter): Likewise.
2428         * tree-mudflap.c (mf_decl_cache_locals,
2429         mf_build_check_statement_for): Likewise.
2430         * tree-nested.c (init_tmp_var, save_tmp_var,
2431         finalize_nesting_tree_1): Likewise.
2432         * tree-outof-ssa.c (insert_copy_on_edge,
2433         insert_backedge_copies): Likewise.
2434         * tree-profile.c (tree_gen_edge_profiler,
2435         tree_gen_ic_profiler): Likewise.
2436         * tree-scalar-evolution.c (scev_const_prop): Likewise.
2437         * tree-sra.c (sra_build_assignment): Likewise.
2438         * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
2439         * tree-ssa-math-opts.c (insert_reciprocals,
2440         execute_cse_sincos_1): Likewise.
2441         * tree-tailcall.c (adjust_accumulator_values,
2442         adjust_return_value): Likewise.
2443         * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
2444         * tree-vect-transform.c (vect_create_data_ref_ptr,
2445         bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
2446         vect_create_epilog_for_reduction, vectorizable_reduction,
2447         vectorizable_call, vectorizable_conversion,
2448         vectorizable_assignment, vectorizable_operation,
2449         vectorizable_type_demotion, vect_gen_widened_results_half,
2450         vect_permute_store_chain, vectorizable_store,
2451         vect_setup_realignment, vect_permute_load_chain,
2452         vectorizable_load, vectorizable_condition,
2453         vect_create_cond_for_align_checks): Likewise.
2454         * tree-vrp.c (build_assert_expr_for): Likewise.
2455
2456 2007-03-08  Ian Lance Taylor  <iant@google.com>
2457
2458         * tree-vrp.c: Include "intl.h".
2459         (usable_range_p): New static function.
2460         (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
2461         overflowed values, juts set *strict_overflow_p.
2462         (compare_values): Only return -2 if one of the operands is not a
2463         constant.
2464         (compare_ranges): Call usable_range_p.
2465         (compare_range_with_value): Likewise.
2466         (vrp_evaluate_conditional_warnv): Rename from
2467         vrp_evaluate_conditional.  Make static.  Change all callers.
2468         (vrp_evaluate_conditional): New function.
2469         (simplify_div_or_mod_using_ranges): Issue warning about reliance
2470         on signed overflow.
2471         (simplify_abs_using_ranges): Likewise.
2472         (simplify_stmt_for_jump_threading): Add within_stmt parameter.
2473         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
2474         within_stmt parameter.
2475         * tree-ssa-propagate.c (fold_predicate_in): Update call to
2476         vrp_evaluate_conditional.
2477         * tree-ssa-threadedge.c
2478         (record_temporary_equivalences_from_stmts_at_dest): Change
2479         simplify parameter to take a second tree parameter.
2480         (simplify_control_stmt_condition): Likewise.
2481         (thread_across_edge): Likewise.
2482         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
2483         (thread_across_edge): Likewise.
2484         * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
2485
2486 2007-03-08  Uros Bizjak  <ubizjak@gmail.com>
2487
2488         * config/i386/i386.h (TARGET_SAHF): New define.
2489         * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
2490         Also enable for m_K8, m_AMDFAM10 and m_CORE2.
2491         (x86_sahf): New global variable.
2492         (override_options): Add PTA_NO_SAHF to pta_flags enum.  Recode
2493         pta_flags masks using shifts.  Add PTA_NO_SAHF to x86_64 and
2494         nocona processor flags.  Set x86_sahf when PTA_NO_SAHF is not set
2495         in processor flags.  Do not unconditionally disable TARGET_USE_SAHF
2496         for 64-bit.
2497         (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
2498         (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
2499         when expanding fcomi/sahf based tests.
2500         (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
2501         expanding sahf based alternative. Emit sahf based sequence when
2502         optimizing for code size.
2503         * config/i386/i386.md (x86_sahf_1): Do not disable for
2504         TARGET_64BIT, enable for TARGET_SAHF.
2505
2506 2007-03-08  Martin Michlmayr  <tbm@cyrius.com>
2507
2508         * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
2509         spurious whitespace from error message.
2510
2511 2007-03-08  Volker Reichelt  <reichelt@netcologne.de>
2512
2513         PR c++/30852
2514         * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
2515
2516 2007-03-08  Alexandre Oliva  <aoliva@redhat.com>
2517
2518         * c-decl.c (grokdeclarator): Disable warnings for anonymous
2519         bitfields.
2520         * tree-sra.c (instantiate_element): Propagate disabled warnings
2521         from the element itself to the created variable.
2522
2523 2007-03-07  Richard Henderson  <rth@redhat.com>
2524
2525         PR target/30848
2526         * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
2527         silently fix up the stack in the case of a missing register.
2528
2529 2007-03-07  Paul Brook  <paul@codesourcery.com>
2530
2531         * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
2532
2533 2007-03-07  Joseph Myers  <joseph@codesourcery.com>
2534
2535         * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
2536         New.
2537         (phase1_vrs): Use them.
2538         (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
2539         (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
2540         __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
2541         (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
2542         __gnu_Unwind_Restore_WMMXC if required.
2543         (_Unwind_VRS_Pop): Implement iWMMXt support.
2544         * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
2545         gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
2546         gnu_Unwind_Save_WMMXC): Define.
2547
2548 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
2549
2550         * config/vxworks.h (vxworks_override_options): Declare.
2551         (VXWORKS_OVERRIDE_OPTIONS): Use it.
2552         * config/vxworks.c: Include target.h and toplev.h.
2553         (vxworks_override_options): New function.
2554         * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
2555
2556 2007-03-07  Andreas Krebbel  <krebbel1@de.ibm.com>
2557
2558         * config/s390/s390.c (override_options): Don't emit an error when
2559         -mstack-size is used without providing -mstack-guard.
2560         (s390_emit_prologue): Choose stack_guard value automatically if not
2561         provided via command line.
2562         * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
2563
2564 2007-03-07  Richard Sandiford  <richard@codesourcery.com>
2565
2566         * config/i386/i386.c (output_set_got): Add a GOT initialization
2567         sequence for VxWorks PIC.
2568         (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
2569         around labels as well as symbols.  Use gotoff_operand instead
2570         of local_symbolic_operand.
2571         (legitimize_pic_address): Use gotoff_operand instead of
2572         local_symbolic_operand.  Use @GOT accesses for labels as
2573         well as symbols.
2574         (ix86_output_addr_diff_elt): Use PC-relative rather than
2575         GP-relative offsets for VxWorks PIC.
2576         (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
2577         no_new_pseudos.  Check whether the returned register is op0.
2578         * config/i386/i386.md (tablejump): Use PC-relative rather than
2579         GP-relative offsets for VxWorks PIC.
2580         * config/i386/predicates.md (gotoff_operand): New predicate.
2581
2582 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2583
2584         * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
2585         before defining.
2586         * config/vxworks-dummy.h: New file.
2587         * config/i386/i386.h: Include it.
2588
2589 2007-03-07  Alexandre Oliva  <aoliva@redhat.com>
2590
2591         * dwarf2out.c (is_inlined_entry_point): New
2592         (add_high_low_attributes): Emit DW_AT_entry_pc along with
2593         DW_AT_ranges if the first subblock is the entry point.
2594
2595 2007-03-06  David Daney  <ddaney@avtrex.com>
2596
2597         * doc/install.texi (mips-*-*): Change recommended binutils
2598         version.
2599
2600 2007-03-06  Anatoly Sokolov <aesok@post.ru>
2601
2602         * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
2603         ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
2604         devices.
2605         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2606         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2607
2608 2007-03-06  Jan Hubicka  <jh@suse.cz>
2609
2610         * errors.h (warning, error, fatal, internal_error): Mark as cold.
2611         * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
2612         are hot.
2613         (probably_cold_bb_p): Cold functions are cold.
2614         (probably_never_executed_bb_p): Cold functions are cold.
2615         (tree_bb_level_predictions): Predict calls to cold functions as not
2616         taken.
2617         (compute_function_frequency): Check hot/cold attributes.
2618         * function.h (function_frequency): Update comments.
2619         * predict.def (PRED_COLD_FUNCTION): Predict cold function.
2620         * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
2621         (c_common_att): Add cold and hot.
2622
2623         * doc/extend.texi (hot,cold attributes): Document.
2624
2625 2007-03-06  Andrew Haley  <aph@redhat.com>
2626
2627         * function.c (expand_function_end): Move blockage to just after we
2628         emit the label for the naked return from the function.
2629
2630 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2631
2632         * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
2633         before redefining.
2634
2635 2007-03-06  Jan Hubicka  <jh@suse.cz>
2636
2637         * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
2638         loaded for constant large models.  Non-large 64bit PIC can do.
2639         * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
2640         * cmodel.h: Add LARGE PIC.
2641         * i386.md (UNSPEC_PLTOFF): New.
2642         (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
2643         needed.
2644         (*call_1_rex64): Disable for large models.
2645         (*call_1_rex64_large): New.
2646         (*call_value_1_rex64): Disable for large models.
2647         (*call_value_1_rex64_large): New.
2648         (set_rip_rex4): New.
2649         (set_got_offset_rex64): New.
2650         * predicates.md (constant_call_address_operand): For large model
2651         constant calls are not possible.
2652         * i386-protos.h (construct_plt_address): Declare.
2653         * i386.c (override_options): Accept large models.
2654         (ix86_expand_prologue): Expand large PIC GOT pointer load.
2655         (legitimate_constant_p): Add new UNSPECs.
2656         (legitimate_pic_operand_p): Likewise.
2657         (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
2658         (legitimize_pic_address): Do easy RIP relative way for TLS only for
2659         non-large model.
2660         (output_pic_addr_const): Add PLTOFF.
2661         (ix86_output_addr_diff_elt): Output 64bit tables when needed.
2662         (ix86_expand_move): Legitimize pic address when in PIC mode.
2663         (construct_plt_address): New function.
2664         (ix86_expand_call): Offload the address to register and use GOT pointer
2665         for large model.
2666         * invoke.texi (mcmodel=large): Update documentation.
2667
2668 2007-03-06  Richard Henderson  <rth@redhat.com>
2669
2670         * config/i386/i386.c (x86_use_leave, x86_push_memory,
2671         x86_zero_extend_with_and, x86_movx, x86_double_with_add,
2672         x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
2673         x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
2674         x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
2675         x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
2676         x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
2677         x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
2678         x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
2679         x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
2680         x86_partial_reg_dependency, x86_memory_mismatch_stall,
2681         x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
2682         x86_sse_partial_reg_dependency, x86_sse_split_regs,
2683         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
2684         x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
2685         x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
2686         x86_schedule, x86_use_bt, x86_pad_returns,
2687         x86_use_xchgb): Merge into ...
2688         (ix86_tune_features): ... here.  New array.
2689         (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
2690         x86_bswap): Merge into ...
2691         (ix86_arch_features): ... here.  New array.
2692         (x86_3dnow_a): Remove.
2693         (x86_accumulate_outgoing_args): Make static.
2694         (x86_arch_always_fancy_math_387): Make static.
2695         (ix86_tune_mask, ix86_arch_mask): Move ...
2696         (override_options): ... to local variables here.  Apply the
2697         appropriate mask to each element of ix86_arch_features and
2698         ix86_tune_features.  Adjust TARGET_CMOVE and TARGET_USE_SAHF
2699         as were done in the old macros.
2700         (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
2701         * config/i386/i386.h (x86_use_leave, x86_push_memory,
2702         x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
2703         x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
2704         x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
2705         x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
2706         x86_read_modify_write, x86_read_modify, x86_split_long_moves,
2707         x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
2708         x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
2709         x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
2710         x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
2711         x86_partial_reg_dependency, x86_memory_mismatch_stall,
2712         x86_accumulate_outgoing_args, x86_prologue_using_move,
2713         x86_epilogue_using_move, x86_decompose_lea,
2714         x86_arch_always_fancy_math_387, x86_shift1,
2715         x86_sse_partial_reg_dependency, x86_sse_split_regs,
2716         x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
2717         x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
2718         x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
2719         x86_use_incdec, x86_pad_returns, x86_bswap,
2720         x86_partial_flag_reg_stall): Remove.
2721         (enum ix86_tune_indices): New.
2722         (ix86_tune_features): New.
2723         (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
2724         TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
2725         TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
2726         TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
2727         TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
2728         TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
2729         TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
2730         TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
2731         TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
2732         TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
2733         TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
2734         TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
2735         TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
2736         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
2737         TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
2738         TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
2739         TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
2740         TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
2741         TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
2742         TARGET_EXT_80387_CONSTANTS): Use it.
2743         (enum ix86_arch_indices): New.
2744         (ix86_arch_features): New.
2745         (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
2746         TARGET_BSWAP): Use it.
2747         (ix86_tune_mask, ix86_arch_mask): Remove.
2748
2749 2007-03-06  Joseph Myers  <joseph@codesourcery.com>
2750
2751         PR bootstrap/31020
2752         * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
2753         Define using $${sysroot_headers_suffix}.
2754         * configure: Regenerate.
2755         * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
2756         multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
2757         defined.
2758         * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
2759         * gcc.c (print_sysroot_headers_suffix): New.
2760         (option_map): Include --print-sysroot-headers-suffix.
2761         (display_help): Mention -print-sysroot-headers-suffix.
2762         (process_command): Handle -print-sysroot-headers-suffix.
2763         (do_spec_1): Append multilib directory to include-fixed path if
2764         sysroot suffixes in use.
2765         (main): Handle -print-sysroot-headers-suffix.
2766         * Makefile.in (start.encap): Don't depend on xlimits.h
2767         (xlimits.h): Remove.
2768         (stmp-int-hdrs): Don't depend on xlimits.h.  Inline generation of
2769         limits.h for each multilib in fixinc_list.
2770         (fixinc_list, s-fixinc_list): New.
2771         (stmp-fixinc): Depend on fixinc_list.  If not copying headers,
2772         generate them for each multilib in fixinc_list.
2773         (stmp-fixproto): Use include-fixed.  Run fixproto for each
2774         multilib in fixinc_list.
2775         (mostlyclean): Don't remove xlimits.h.
2776         (clean): Remove include-fixed.
2777         (real-install-headers-tar, real-install-headers-cpio,
2778         real-install-headers-cp): Don't copy include, only include-fixed.
2779         (install-mkheaders): Depend on fixinc_list.  Don't depend on
2780         xlimits.h.  Save limits.h files for each multilib in fixinc_list.
2781         Always save mkinstalldirs.  Preserve ${sysroot_headers_suffix} in
2782         SYSTEM_HEADER_DIR setting in mkheaders.conf.
2783
2784 2007-03-06  Jan Hubicka  <jh@suse.cz>
2785
2786         * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
2787         NANs easilly.
2788
2789 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2790
2791         * configure.ac: Allow tm_file to contain build-directory files.
2792         * configure: Regenerate.
2793         * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
2794         * config/m68k/t-uclinux (sysroot-suffix.h): New target.
2795         * config/m68k/print-sysroot-suffix.sh: New file.
2796
2797 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2798
2799         * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
2800         of pic_offset_table_rtx if reload_completed.
2801         (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
2802         PIC_OFFSET_TABLE_REGNUM.
2803         * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
2804         return true.
2805         (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
2806         (m68k_output_mi_thunk): Rewrite to use RTL.  Honor vcall_offset.
2807
2808 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2809
2810         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2811         functions that call eh_return.
2812
2813 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2814
2815         * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2816         functions that need a constant pool.
2817
2818 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2819
2820         PR target/28181
2821         * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
2822         (m68k_preferred_reload_class): Likewise.
2823         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
2824         (SECONDARY_RELOAD_CLASS): Define.
2825         (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
2826         (LIMIT_RELOAD_CLASS): Delete.
2827         * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
2828         registers from storing bytes.
2829         (m68k_secondary_reload_class): New function.
2830         (m68k_preferred_reload_class): Likewise.
2831
2832 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2833
2834         * config/m68k/m68k.c (m68k_save_reg): Remove special case for
2835         leaf functions.
2836         (m68k_expand_prologue): Likewise.
2837
2838 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2839
2840         * config/m68k/m68k-protos.h (output_sibcall): Declare.
2841         (mips_expand_epilogue): Add a bool parameter.
2842         (m68k_legitimize_sibcall_address): Declare.
2843         * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
2844         (m68k_expand_epilogue): Add a parameter to select between sibling
2845         and normal epilogues.  Only generate a return for the latter.
2846         (m68k_ok_for_sibcall_p): New function.
2847         (m68k_legitimize_sibcall_address, output_sibcall): New functions.
2848         * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
2849         (sibcall_value, *sibcall_value): Likewise.
2850         (*call, *call_value): Require !SIBLING_CALL_P.
2851         (epilogue): Update call to m68k_expand_epilogue.
2852         (sibcall_epilogue): New pattern.
2853         * config/m68k/predicates.md (const_call_operand): Say that this
2854         predicate applies to sibling calls too.
2855         (sibcall_operand): New predicate.
2856
2857 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2858
2859         * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
2860         alternatives as movsi_cf.
2861         (movsf_cf_hard): Add commentary.
2862
2863 2007-03-06  Kazu Hirata  <kazu@codesourcery.com>
2864             Richard Sandiford  <richard@codesourcery.com>
2865
2866         * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
2867         (m68k_movem_pattern_p, m68k_output_movem): Likewise.
2868         (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
2869         * config/m68k/m68k.h (EPILOGUE_USES): Define.  Treat all registers
2870         as being live on exit from an interrupt function.
2871         (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
2872         * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
2873         (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
2874         (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
2875         (m68k_interrupt_function_p): Globalize.
2876         (m68k_compute_frame_layout): Remove reverse mask code.
2877         (m68k_emit_movem, m68k_set_frame_related): New functions.
2878         (m68k_output_function_prologue): Delete in favor of...
2879         (m68k_expand_prologue): ...this new function.
2880         (m68k_output_function_epilogue): Delete in favor of...
2881         (m68k_expand_epilogue): ...this new function.
2882         (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
2883         functions.
2884         (print_operand): Handle %?.
2885         * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
2886         (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
2887         (prologue, epilogue): New patterns.
2888         (return): Turn into a define_expand.
2889         (*return): New pattern, derived from old "return" pattern.  Use rte
2890         rather than rts for interrupt functions.  Only use rtd if the pop
2891         count is nonzero.
2892         (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
2893         (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
2894         (link, *link, unlink, *unlink, load_got): Likewise.
2895
2896 2007-03-06  Richard Sandiford  <richard@codesourcery.com>
2897
2898         PR target/23482
2899         PR target/17114
2900         * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
2901         (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
2902         (m68k_matches_q_p, m68k_matches_u_p): Likewise.
2903         * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
2904         and m68k_matches_u_p.
2905         (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
2906         (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
2907         (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
2908         (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
2909         (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
2910         (REG_STRICT_P): New macro.
2911         (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
2912         PCREL_GENERAL_OPERAND_OK.
2913         (REG_OK_FOR_BASE_P): Merge definitions.  Use REG_STRICT_P and
2914         m68k_legitimate_base_reg_p.
2915         (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
2916         (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
2917         (PIC_CASE_VECTOR_ADDRESS): Update comment.
2918         * config/m68k/m68k.c (m68k_address): New structure.
2919         (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
2920         (m68k_decompose_index, m68k_legitimate_constant_address_p)
2921         (m68k_jump_table_ref_p, m68k_decompose_address)
2922         (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
2923         (m68k_matches_u_p): New functions.
2924         (print_operand_address): Rewrite to use m68k_decompose_index.
2925
2926 2007-03-05  David Taylor  <dtaylor@emc.com>
2927
2928         * gcc.c: Correct copyright date in --version output.
2929
2930 2007-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2931
2932         * pa.md: In unamed move patterns, disparge copies between general
2933         and floating point registers using '?' modifier.  Don't include 'f'
2934         constraint for register preferences in DImode, SImode, HImode and
2935         QImode patterns.  Likewise for 'r' in DFmode and SFmode patterns.
2936         Remove constraints for copies between general and floating registers
2937         in soft-float DFmode pattern.
2938         (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
2939         floating register.
2940         (movsf): Likewise.
2941
2942 2007-03-05  Mike Stump  <mrs@apple.com>
2943
2944         * c-common.c (targetcm): Add.
2945         * c-opts.c (c_common_handle_option): Handle language specific
2946         target options.
2947         * opts.c (handle_option): Verify language for target options, if
2948         any are given.
2949         * opth-gen.awk: Add CL_LANG_ALL.
2950         * target-def.h (TARGET_HANDLE_C_OPTION): Add.
2951         (TARGETCM_INITIALIZER): Add.
2952         * target.h (struct gcc_targetcm): Add.
2953         (targetcm): Add.
2954         * targhooks.c (default_handle_c_option): Add.
2955         * targhooks.h (default_handle_c_option): Add.
2956         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
2957
2958         * config/darwin.opt (iframework): Add.
2959         * config/darwin.h (TARGET_HAS_TARGETCM): Add.
2960         * config/darwin-c.c (handle_c_option): Add.
2961         (TARGET_HANDLE_C_OPTION): Add.
2962         (targetcm): Add.
2963         * doc/invoke.texi (Darwin Options): Add -iframework.
2964
2965 2007-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2966
2967         * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
2968         conversion.
2969
2970 2007-03-05  Ian Lance Taylor  <iant@google.com>
2971
2972         * c.opt (fgnu89-inline): New option.
2973         * c-opts.c (c_common_post_options): Set default value for
2974         flag_gnu89_inline.
2975         * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
2976         (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
2977         inline functions.
2978         (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
2979         (grokdeclarator, start_function): Likewise.
2980         * c-cppbuiltin.c (c_cpp_builtins): Define either
2981         __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
2982         * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
2983         (C Dialect Options): Document -fgnu89-inline.
2984         * doc/extend.texi (Function Attributes): Explain what the
2985         gnu_inline attribute does.
2986         * doc/cpp.texi (Common Predefined Macros): Document
2987         __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
2988
2989 2007-03-05  Ian Lance Taylor  <iant@google.com>
2990
2991         PR tree-optimization/31034
2992         * tree-vrp.c (extract_range_from_assert): Don't try to handle a
2993         half-range if the other side is an overflow infinity.
2994
2995 2007-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
2996
2997         * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
2998         (bfin*-linux-uclibc*): New configuration.
2999         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
3000         defining.
3001         * config/bfin/linux.h: New file.
3002         * config/bfin/libgcc-bfin.ver: New file.
3003         * config/bfin/t-bfin-uclinux: New file.
3004         * config/bfin/t-bfin-linux: New file.
3005         * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
3006         (TARGET_OS_CPP_BUILTINS): New macro.
3007
3008 2007-03-05  Richard Guenther  <rguenther@suse.de>
3009
3010         * fold-const.c (fold_binary): Remove duplicate folding
3011         of comparison of non-null ADDR_EXPR against null.
3012
3013 2007-03-05  Richard Guenther  <rguenther@suse.de>
3014             Dorit Nuzman  <dorit@il.ibm.com>
3015
3016         PR tree-optimization/26420
3017         * tree-vectorizer.c (vectorize_loops): Bail out early if there
3018         are no loops in the function.  Only print the number of
3019         vectorized loops if it is greater than zero or we are supposed
3020         to print information about unvectorized loops.
3021
3022 2007-03-05  Revital Eres  <eres@il.ibm.com>
3023
3024         * gcc.dg/var-expand1.c: New test.
3025         * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
3026         when an accumulator is expanded.
3027
3028 2007-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3029
3030         PR other/30465
3031         * c-common.c (convert_and_check): Don't give warnings for
3032         conversion if 'expr' already overflowed.
3033
3034 2007-03-04  Roger Sayle  <roger@eyesopen.com>
3035
3036         PR middle-end/30744
3037         * fold-const.c (fold_comparison): Enforce type consistency when
3038         transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
3039
3040 2007-03-04  Zdenek Dvorak  <dvorakz@suse.cz>
3041
3042         * tree-ssa-address.c (create_mem_ref): Do not put an expression
3043         containing a cast to the base of TARGET_MEM_REF.
3044
3045 2007-03-04  Martin Michlmayr  <tbm@cyrius.com>
3046
3047         * tree.c (tree_contains_struct_check_failed): Remove spurious
3048         whitespace from error message.
3049
3050 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
3051
3052         PR target/30406
3053         * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
3054         instead of precision.
3055
3056 2007-03-04  Roman Zippel <zippel@linux-m68k.org>
3057             Nathan Sidwell  <nathan@codesourcery.com>
3058
3059         * emit-rtl.c (find_auto_inc): New.
3060         (try_split): recreate REG_INC notes,
3061         Use regular for loops rather than whiles.
3062
3063 2007-03-03  Andreas Schwab  <schwab@suse.de>
3064
3065         * configure.ac (HAVE_AS_REL16): Move test back to correct place.
3066         * configure: Regenerate.
3067
3068 2007-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3069
3070         * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
3071         flag_rounding_math, not flag_unsafe_math_optimizations.
3072
3073         * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
3074         fold_build2.
3075         * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
3076         alpha_fold_vector_minmax): Likewise.
3077         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
3078         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
3079
3080 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
3081
3082         * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
3083         (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
3084         if the lhs has side-effects.
3085         <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
3086
3087 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
3088
3089         * config/i386/i386.h (TUNEMASK): Remove define.
3090         (ARCHMASK): Remove define.
3091         (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
3092          Use ix86_arch_mask variable instead of ARCHMASK.
3093         * config/i386/i386.c (override_options): Ditto.
3094         (standard_80387_constant_p): Ditto.
3095
3096 2007-03-02  Ian Lance Taylor  <iant@google.com>
3097
3098         Used signed infinities in VRP.
3099         * tree-vrp.c (uses_overflow_infinity): New static function.
3100         (supports_overflow_infinity): New static function.
3101         (make_overflow_infinity): New static function.
3102         (negative_overflow_infinity): New static function.
3103         (positive_overflow_infinity): New static function.
3104         (is_negative_overflow_infinity): New static function.
3105         (is_positive_overflow_infinity): New static function.
3106         (is_overflow_infinity): New static function.
3107         (overflow_infinity_range_p): New static function.
3108         (compare_values_warnv): New function split out of compare_values.
3109         (compare_value): Call it.
3110         (set_value_range_to_nonnegative): Add overflow_infinity
3111         parameter.  Change caller.
3112         (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
3113         Change callers.
3114         (vrp_expr_computes_nonzero): Likewise.
3115         (compare_ranges, compare_range_with_value): Likewise.
3116         (compare_name_with_value, compare_names): Likewise.
3117         (vrp_evaluate_conditional): Likewise.
3118         (set_value_range): Handle infinity
3119         (vrp_operand_equal_p, operand_less_p): Likewise.
3120         (extract_range_from_assert): Likewise.
3121         (vrp_int_const_binop): Likewise.
3122         (extract_range_from_binary_expr): Likewise.
3123         (extract_range_from_unary_expr): Likewise.
3124         (extract_range_from_comparison): Likewise.
3125         (extract_range_from_expr): Likewise.
3126         (dump_value_range): Likewise.
3127         (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
3128         (test_for_singularity): Likewise.
3129         (vrp_int_const_binop): Remove inline qualifier.
3130         (adjust_range_with_scev): Add comment.
3131         * tree-flow.h (vrp_evaluate_conditional): Update declaration.
3132
3133 2007-03-02  Diego Novillo  <dnovillo@redhat.com>
3134
3135         * tree-ssa-structalias.c (could_have_pointers): Tidy.
3136         (get_constraint_for): Likewise.
3137         (do_structure_copy): Likewise.
3138         (find_func_aliases): Fix references to MODIFY_EXPR.
3139         (intra_create_variable_infos): Tidy.
3140         * tree-ssa-operands.c (add_virtual_operand): Add argument
3141         IS_CALL_SITE.
3142         When adding members of alias sets, if IS_CALL_SITE is true and
3143         the symbol is not call-clobbered, skip it.
3144         Adjust all callers.
3145
3146 2007-03-02  Eric Botcazou  <ebotcazou@adacore.com>
3147
3148         * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
3149         entry by means of emit_insn_at_entry.
3150
3151 2007-03-02  Richard Henderson  <rth@redhat.com>
3152
3153         * expr.h (promoted_input_arg): Remove decl.
3154         * function.c (promoted_input_arg): Merge into ...
3155         * combine.c (setup_incoming_promotions): ... only caller.
3156         Rearrange to avoid double loop.
3157
3158 2007-03-02  Ben Elliston  <bje@au.ibm.com>
3159             Peter Bergner  <bergner@vnet.ibm.com>
3160             Janis Johnson  <janis187@us.ibm.com>
3161
3162         * config/rs6000/dfp.md: New file.
3163         * config/rs6000/rs6000.md: Include dfp.md.
3164         (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
3165         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
3166         and TDmode decimal float modes in FP registers.
3167         (num_insns_constant): Likewise.
3168         (rs6000_legitimate_offset_address_p): Likewise.
3169         (rs6000_legitimize_address): Likewise.
3170         (rs6000_legitimize_reload_address): Likewise.
3171         (rs6000_legitimate_address): Likewise.
3172         (rs6000_emit_move): Likewise.
3173         (function_arg_boundary): Likewise.
3174         (function_arg_advance): Likewise.
3175         (rs6000_darwin64_record_arg_recurse): Likewise.
3176         (function_arg): Likewise.
3177         (rs6000_gimplify_va_arg): Likewise.
3178         (rs6000_split_multireg_move): Likewise.
3179         (rs6000_output_function_epilogue): Likewise.
3180         (rs6000_output_function_epilogue): Likewise.
3181         (rs6000_register_move_cost): Likewise.
3182         (rs6000_function_value): Likewise.
3183         (rs6000_libcall_value): Likewise.
3184
3185 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
3186
3187         * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
3188
3189 2007-03-02  Richard Sandiford  <richard@codesourcery.com>
3190
3191         * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
3192         Use $MULTIDIR to choose between the kernel and RTP headers,
3193         and use $WIND_BASE and $WIND_USR to locate them.
3194
3195 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
3196
3197         * config/i386/i386.c (override_options): Put initialization of
3198         ix86_tune_mask and ix86_arch_mask to the correct place.
3199
3200 2007-03-02  Uros Bizjak  <ubizjak@gmail.com>
3201             Michael Meissner  <michael.meissner@amd.com>
3202
3203         PR target/31019
3204         * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
3205         (ARCHMASK): Define.
3206         (TARGET_CMOVE): Use ARCHMASK.
3207         (TARGET_CMPXCHG): Ditto.
3208         (TARGET_CMPXCHG8B): Ditto.
3209         (TARGET_XADD): Ditto.
3210         (TARGET_BSWAP): Ditto.
3211         * config/i386/i386.c (ix86_tune_mask): New global variable.
3212         (ix86_arch_mask): Ditto.
3213         (override_options): Initialize ix86_tune_mask and
3214         ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
3215         target_flags.
3216
3217 2007-03-02  Ben Elliston  <bje@au.ibm.com>
3218
3219         PR 30992
3220         * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
3221
3222 2007-03-02  Joseph Myers  <joseph@codesourcery.com>
3223
3224         * target.h (init_dwarf_reg_sizes_extra): New target hook.
3225         * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
3226         * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
3227         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
3228         hook.
3229         * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
3230         rs6000_init_dwarf_reg_sizes_extra): New.
3231         * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
3232         SPE register high parts.
3233
3234 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
3235
3236         * Makefile.in: Add install-pdf target as
3237         copied from automake v1.10 rules.
3238         * configure.ac: Add install-pdf to target list.
3239         * configure: Regenerate.
3240
3241 2007-03-01  Paul Brook  <paul@codesourcery.com>
3242
3243         * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
3244         modes to LDRD for DImode.
3245         (output_move_double): Fixup out of range ldrd/strd.
3246         (vfp_secondary_reload_class): Rename...
3247         (coproc_secondary_reload_class): ... to this.  Add wb argument.
3248         * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
3249         coproc_secondary_reload_class for CLASS_IWMMXT.
3250         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
3251         * arm-protos.h (coproc_secondary_reload_class): Update prototype.
3252
3253 2007-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
3254
3255         * tree-ssa-loop-prefetch.c (determine_unroll_factor):  Bound the unroll
3256         factor by the estimated number of iterations.
3257         (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
3258         prefetch latency.
3259
3260         * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
3261         decode_caches_intel, detect_caches_intel): New functions.
3262         (host_detect_local_cpu): Use detect_caches_amd and
3263         detect_caches_intel.
3264
3265 2007-03-01  Richard Henderson  <rth@redhat.com>
3266
3267         * expr.c (emit_move_complex_push): Export.
3268         (emit_move_complex_parts): Split out from ...
3269         (emit_move_complex): ... here.
3270         * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
3271         * config/i386/i386.md (movcdi): New.
3272
3273 2007-03-01  Uros Bizjak  <ubizjak@gmail.com>
3274
3275         * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
3276         size of mode1 to check for tieable modes in MMX case.
3277
3278 2007-03-01  Richard Sandiford  <richard@codesourcery.com>
3279
3280         * Makefile.in (rtlanal.o): Depend on tree.h.
3281         * rtl.h (offset_within_section_p, split_const): Declare.
3282         * rtlanal.c: Include tree.h.
3283         (offset_within_block_p): New function, taken from
3284         mips_offset_within_object_p.
3285         (split_const): New function, taken from mips_split_const.
3286         * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
3287         Declare.
3288         * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
3289         (CONSTANT_ADDRESS_P): Only accept legitimate constants.
3290         (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
3291         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3292         (m68k_illegitimate_symbolic_constant_p): New function.
3293         * config/m68k/m68k.md (movsi): Remove misleading predicates.
3294         If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
3295         symbolic constant that might be outside the symbol's section,
3296         move the symbol first and then add the offset.
3297         * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
3298         Override.
3299         * config/mips/mips.c (mips_split_const): Delete.
3300         (mips_offset_within_object_p): Delete.
3301         (mips_symbolic_constant_p): Use offset_within_section_p and
3302         split_const instead of mips_offset_within_object_p and
3303         mips_split_const.
3304         (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
3305         (mips_legitimize_const_move, print_operand_reloc)
3306         (mips_dangerous_for_la25_p): Use split_const instead of
3307         mips_split_const.
3308
3309 2007-02-28  Eric Christopher  <echristo@apple.com>
3310
3311         * Makefile.in (install-include-dir): Don't rm -rf include.
3312
3313 2007-02-28  Richard Guenther  <rguenther@suse.de>
3314
3315         PR middle-end/30364
3316         * fold-const.c (fold_binary): Do not associate expressions
3317         with more than one variable for integer types that do not wrap.
3318
3319 2007-02-28  Sandra Loosemore  <sandra@codesourcery.com>
3320
3321         * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
3322         Delete, and replace with...
3323         (fold_builtin_call_array): This.  Update callers to use it.
3324         * fold-const.c (fold_build_call_list): Delete, and replace with...
3325         (fold_build_call_array): This.
3326         (fold_build_call_list_initializer): Delete, and replace with...
3327         (fold_build_call_array_initializer): This.
3328         * tree.h: Update declarations to reflect above changes.
3329
3330         * c-typeck.c (build_function_call): Store converted arguments
3331         in a stack-allocated array instead of building a list.
3332         (convert_arguments): Store arguments in the array passed in as an
3333         argument, and return the actual number of arguments.
3334         * c-format.c: (check_function_format): Pass arguments in an
3335         array instead of a list.
3336         * c-common.c (check_function_nonnull): Likewise.
3337         (check_function_sentinel): Likewise.
3338         (check_function_arguments): Likewise.
3339         * c-common.h: Update declarations to reflect above changes.
3340
3341 2007-02-28  Jan Hubicka  <jh@suse.cz>
3342
3343         * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
3344         PRED_NEGATIVE_RETURN): Update outcomes.
3345
3346 2007-02-28  Bernd Schmidt  <bernd.schmidt@analog.com>
3347
3348         * calls.c (emit_library_call_value_1): Handle partial registers
3349         correctly when building up CALL_INSN_FUNCTION_USAGE.
3350
3351 2007-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3352
3353         * pa/predicates.md (move_src_operand): Allow zero for mode.
3354         * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
3355         move pattern.
3356
3357 2007-02-27  Uros Bizjak  <ubizjak@gmail.com>
3358
3359         PR target/30970
3360         * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
3361         *movv2df_internal): Enable pattern only for valid operand
3362         combinations.
3363         * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
3364         tie only 128bit modes. For MMX registers, tie only 64bit modes.
3365
3366 2007-02-27  Mike Stump  <mrs@apple.com>
3367
3368         * config/darwin-crt3.c: Avoid compilation when compiling for a
3369         kext multilib.
3370
3371 2007-02-27  Joseph Myers  <joseph@codesourcery.com>
3372
3373         * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
3374         FIXED_INCLUDE_DIR.
3375         (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
3376         for fixed headers and limits.h.
3377         (install-include-dir, install-headers-tar, install-headers-cpio,
3378         install-headers-cp, real-install-headers-tar,
3379         real-install-headers-cpio, real-install-headers-cp): Handle
3380         include-fixed as well as include.
3381         (install-mkheaders): Don't install files that go only in include
3382         not include-fixed.
3383         * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
3384         from GCC_INCLUDE_DIR.
3385         * gcc.c (process_command): Remove special -BstageN/ handling.
3386         (do_spec_1): Add include-fixed directories.
3387
3388 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
3389
3390         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
3391         _smulsi3_highpart.
3392         * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
3393         New functions.
3394         * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
3395         patterns.
3396
3397 2007-02-27  Mark Mitchell  <mark@codesourcery.com>
3398
3399         * c-common.c (get_priority): Add check for
3400         SUPPORTS_INIT_PRIORITY.
3401
3402 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
3403
3404         * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
3405
3406         * config/bfin/bfin.c: Include "cfglayout.h".
3407         (MAX_LSETUP_DISTANCE): New macro.
3408         (struct loop_info): New members incoming, incoming_src and
3409         incoming_dest.  Delete member predecessor.
3410         (length_for_loop): New function.
3411         (bfin_optimize_loop): Handle more different loop structures.
3412         (bfin_discover_loop): Rework detection of predecessor blocks by
3413         examining incoming edges.
3414         (bfin_discover_loops, bfin_free_loops): New functions, broken out of
3415         bfin_reorg_loops.
3416         (bfin_reorder_loops): New function.
3417         (bfin_reorg_loops): Use these three new functions.
3418
3419         * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
3420         REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
3421         (CONSTRAINT_LEN): Add entry for 'q'.
3422         (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
3423         Add 'q' constraints.
3424         (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
3425         (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
3426
3427         * config/bfin/bfin.md (add_with_carry): New pattern.
3428         (s_or_u, su_optab, su_modifier): New code macros/attrs.
3429         (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
3430         <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
3431         support unsigned multiplies too.  Removed incorrect commutativity from
3432         operand 1 constraint where appropriate.
3433         (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
3434         patterns.
3435         (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
3436         <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
3437         New patterns.
3438         (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
3439         usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
3440         usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
3441         usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
3442         usmulhisi_hh_huh): New patterns.
3443
3444         * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
3445         lshifthi3): Fix output template to use half reg for operand 2.
3446
3447         * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
3448         instead of R2.
3449
3450         * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
3451
3452 2007-02-27  Andreas Schwab  <schwab@suse.de>
3453
3454         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
3455
3456 2007-02-27  Jan Hubicka  <jh@suse.cz>
3457
3458         * predict.c (last_basic_block_p): Remove.
3459         (tree_estimate_probability): Update return heuristic for commonized
3460         return blocks.
3461
3462 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
3463
3464         * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
3465
3466 2007-02-26  Brooks Moses  <brooks.moses@codesourcery.com>
3467
3468         * doc/include/gcc-common.texi (versionsubtitle): New macro.
3469         * doc/cpp.texi: Standardize title page.
3470         * doc/cppinternals.texi: Likewise.
3471         * doc/gcc.texi: Standardize title page, remove version number
3472         from copyright page.
3473         * doc/gccint.texi: Likewise.
3474         * doc/install.texi: Standardize title page, add table of
3475         contents.
3476
3477 2007-02-26  Jan Hubicka  <jh@suse.cz>
3478
3479         * predict.def: Set outcomes according to more recent results.
3480         (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
3481         Remove dead predictors.
3482         * predict.c (return_prediction): Fix pasto.
3483
3484 2007-02-27  Bernd Schmidt  <bernd.schmidt@analog.com>
3485
3486         * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
3487         change; avoid a memory leak when returning early.
3488
3489 2007-02-26  Mark Mitchell  <mark@codesourcery.com>
3490
3491         * c-decl.c (static_ctors): Move to c-common.c.
3492         (static_dtors): Likewise.
3493         (finish_function): Use c_record_cdtor_fn.
3494         (build_cdtor): Move to c-common.c.
3495         (c_write_global_declarations): Use c_build_cdtor_fns.
3496         * c-common.h (static_ctors): Declare.
3497         (static_dtors): Likewise.
3498         (c_record_cdtor_fn): Likewise.
3499         (c_build_cdtor_fns): Likewise.
3500         * c-common.c (static_ctors): New variable.
3501         (static_dtors): Likewise.
3502         (c_record_cdtor_fn): New function.
3503         (build_cdtor): Move from c-decl.c
3504         (c_build_cdtor_fns): New function.
3505
3506         * output.h (assemble_addr_to_section): Declare.
3507         (get_cdtor_priority_section): Likewise.
3508         * varasm.c (assemble_addr_to_section): New function.
3509         (get_cdtor_priority_section): Likewise.
3510         (default_named_section_asm_out_destructor): Use them.
3511         (destor_dtor_section_asm_out_destructor): Likewise.
3512         (default_named_section_asm_out_constructor): Likewise.
3513         (default_ctor_section_asm_out_constructor): Likewise.
3514         * config.gcc (*-*-vxworks*): Include vxworks.o.
3515         * config/t-vxworks (vxworks.o): New target.
3516         * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
3517         (TARGET_ASM_CONSTRUCTOR): Define.
3518         (TARGET_ASM_DESTRUCTOR): Likewise.
3519         (vxworks_asm_out_constructor): Declare.
3520         (vxworks_asm_out_destructor): Likewise.
3521
3522         * c-common.c (get_priority): Check that we have not just an
3523         INTEGER_CST, but an integer constant with integeral type.
3524
3525 2007-02-25  Uros Bizjak  <ubizjak@gmail.com>
3526
3527         PR tree-optimization/30938
3528         * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
3529         use &dt[nargs-1] instead of &dt[nargs] in the call to
3530         vect_is_simple_use().
3531
3532 2007-02-25  Ulrich Weigand  <uweigand@de.ibm.com>
3533
3534         * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
3535         from register elimination as PRE_MODIFY / POST_MODIFY increments.
3536         Do not attempt to handle MEM inside auto-inc expressions.
3537         * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
3538         of a register modified by an auto-inc expression.  However, do handle
3539         elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
3540         (elimination_effects): Prohibit elimination of a register modified
3541         by an auto-inc expression.  Disable register elimination rules whose
3542         target register is modified by an auto-inc expression with variable
3543         increment.
3544
3545 2007-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
3546
3547         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
3548         off-by-one error.
3549         (array_at_struct_end_p): New function.
3550         (idx_infer_loop_bounds): Use it.
3551         (estimate_numbers_of_iterations_loop): Export.
3552         * predict.c (predict_loops): Use estimated_loop_iterations_int.
3553         Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
3554         (tree_estimate_probability): Call record_loop_exits.
3555         * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
3556         (estimated_loop_iterations, estimated_loop_iterations_int,
3557         estimated_loop_iterations_tree): New functions.
3558         (analyze_siv_subscript_cst_affine,
3559         compute_overlap_steps_for_affine_1_2,
3560         analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
3561         (analyze_miv_subscript): Use estimated_loop_iterations_tree.
3562         * predict.def (PRED_LOOP_ITERATIONS): Update comment.
3563         (PRED_LOOP_ITERATIONS_GUESSED): New.
3564         * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
3565         * cfgloop.h (estimate_numbers_of_iterations_loop,
3566         estimated_loop_iterations_int): Declare.
3567
3568 2007-02-25  Mark Mitchell  <mark@codesourcery.com>
3569
3570         * doc/extend.texi: Document optional priority argument to
3571         constructors and destructors.
3572         * tree.c (init_priority_for_decl): Adjust GTY markers.
3573         (init_ttree): Use priority-info hash functions for
3574         init_priority_for_decl.
3575         (tree_map_eq): Rename to ...
3576         (tree_map_base_eq): ... this.
3577         (tree_map_marked_p): Rename to ...
3578         (tree_map_base_marked_p): ... this.
3579         (tree_map_base_hash): New function.
3580         (decl_init_priority_lookup): Rework.
3581         (decl_fini_priority_lookup): New function.
3582         (decl_priority_info): New function.
3583         (decl_init_priority_insert): Use it.
3584         (decl_fini_priority_insert): Likewise.
3585         (decl_restrict_base_lookup): Adjust for refactoring of tree_map
3586         hierarchy.
3587         (decl_restrict_base_insert): Likewise.
3588         (decl_debug_expr_insert): Likewise.
3589         (decl_value_expr_lookup): Likewise.
3590         (decl_value_expr_insert): Likewise.
3591         * tree.h (priority_type): New type.
3592         (decl_init_priority_lookup): Use priority_type.
3593         (decl_fini_priority_lookup): New function.
3594         (decl_init_priority_insert): Use priority_type.
3595         (decl_fini_priority_insert): New function.
3596         (DECL_HAS_INIT_PRIORITY): Tweak comments.
3597         (DECL_INIT_PRIORITY): Likewise.
3598         (SET_DECL_INIT_PRIORITY): Add comment.
3599         (DECL_FINI_PRIORITY): New macro.
3600         (SET_DECL_FINI_PRIORITY): Likewise.
3601         (DEFAULT_INIT_PRIORITY): Document.
3602         (MAX_INIT_PRIORITY): Likewise.
3603         (MAX_RESERVED_INIT_PRIORITY): Likewise.
3604         (tree_map_base): New type.
3605         (tree_map_base_eq): New function.
3606         (tree_map_base_hash): Likewise.
3607         (tree_map_base_marked_p): Likewise.
3608         (tree_map): Inherit from tree_map_base.
3609         (tree_map_eq): Make it a macro.
3610         (tree_map_marked_p): Likewise.
3611         (tree_int_map): Inherit from tree_map_base.
3612         (tree_int_map_eq): Make it a macro.
3613         (tree_int_map_hash): Likewise.
3614         (tree_int_map_marked_p): Likewise.
3615         (tree_priority_map): New type.
3616         (tree_priority_map_eq): New macro.
3617         (tree_priority_map_hash): Likewise.
3618         (tree_priority_map_marked_p): Likewise.
3619         * varasm.c (emults_decl): Adjust for refactoring of tree_map
3620         hierarchy.
3621         (emutls_common_1): Likewise.
3622         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
3623         * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
3624         of tree_map hierarchy.
3625         * tree-cfg.c (move_stmt_r): Likewise.
3626         (new_label_mapper): Likewise.
3627         * c-tree.h (c_expand_body): Move to ...
3628         * c-common.h (c_expand_body): ... here.
3629         * c-decl.c (c_expand_body): Move to ...
3630         * c-common.c (c_expand_body): ... here.
3631         (c_common_attribute_table): Allow 1 argument for the constructor
3632         and destructor attributes.
3633         (get_priority): New function.
3634         (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
3635         (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
3636
3637 2007-02-24  Jan Hubicka  <jh@suse.cz>
3638
3639         PR middle-end/30509
3640         * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
3641
3642 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
3643             Jan Hubicka  <jh@suse.cz>
3644
3645         PR target/30778
3646         * i386.c (counter_mode): New function.
3647         (expand_set_or_movmem_via_loop): Use it.
3648         (expand_movmem_epilogue): Likewise; fix pasto.
3649         (ix86_expand_movmem): Do emit guard even for constant counts.
3650         (ix86_expand_setmem): Likewise.
3651
3652 2007-02-25  Nick Clifton  <nickc@redhat.com>
3653
3654         * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
3655         (JUMP_TABLES_IN_TEXT_SECTION): Define.
3656
3657 2007-02-24  Uros Bizjak  <ubizjak@gmail.com>
3658
3659         PR target/30770
3660         * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
3661         count argument with 0x10, not with 0x16.
3662         (expand_setmem_epilogue): Ditto.
3663
3664 2007-02-24  Mike Stump  <mrs@apple.com>
3665
3666         * config/i386/i386.c (output_pic_addr_const): Stubify optimized
3667         symbols.
3668
3669 2007-02-24  Richard Guenther  <rguenther@suse.de>
3670
3671         PR middle-end/30951
3672         * fold-const.c (fold_binary): Fold x +- CST op x for
3673         EQ_EXPR and NE_EXPR.
3674
3675 2007-02-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3676
3677         * pa.md (muldi3): Force subregs to registers in 64-bit expander.
3678
3679 2007-02-24  Jan Hubicka  <jh@suse.cz>
3680
3681         * cgraphunit.c (decide_is_function_needed): Honor
3682         -fkeep-inline-functions.
3683
3684 2007-02-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3685
3686         * builtins.c (fold_builtin_modf): New.
3687         (fold_builtin_2): Use it.
3688
3689 2007-02-24  Bernd Schmidt  <bernd.schmidt@analog.com>
3690
3691         * loop-iv.c (implies_p): Detect additional cases where A implies B.
3692         (determine_max_iter): Take additional LOOP arg; all callers changed.
3693         Lose broken logic dealing with PLUS.  Try to limit the upper bound by
3694         one using simplifications.
3695         (simplify_using_initial_values): Return if the expression becomes
3696         invalid due to altered regs.
3697
3698 2007-02-23  DJ Delorie  <dj@redhat.com>
3699
3700         * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
3701
3702 2007-02-23  Mike Stump  <mrs@apple.com>
3703
3704         * tlink.c (scan_linker_output): Parse linker messages from
3705         darwin9's linker better.
3706
3707 2007-02-23  Steve Ellcey  <sje@cup.hp.com>
3708
3709         PR debug/29614
3710         * varpool.c (varpool_assemble_pending_decls):  Set
3711         varpool_last_needed_node to null.
3712
3713 2007-02-23  DJ Delorie  <dj@redhat.com>
3714
3715         * config/i386/i386.c (ix86_data_alignment): Don't specify an
3716         alignment bigger than the object file can handle.
3717
3718 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
3719
3720         PR target/30825
3721         * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
3722         zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
3723         (*movsf_1): Penalize MMX moves.
3724
3725 2007-02-23  Bernd Schmidt  <bernd.schmidt@analog.com>
3726
3727         * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
3728         2^32-1 or more times unless flag_unsafe_loop_optimizations.
3729
3730         * loop-iv.c (determine_max_iter): Moved in front of its sole user.
3731
3732 2007-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3733
3734         * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
3735         (fold_builtin_1): Use them.
3736         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
3737         BUILT_IN_SIGNIFICAND.
3738
3739 2007-02-23  H.J. Lu  <hongjiu.lu@intel.com>
3740
3741         * config/i386/i386.c (bdesc_1arg): Initialize
3742         IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
3743         "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
3744         (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
3745         and IX86_BUILTIN_MOVSLDUP.
3746
3747 2007-02-22  Paolo Bonzini  <bonzini@gnu.org>
3748
3749         PR rtl-optimization/30841
3750         * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
3751
3752 2007-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3753
3754         * builtins.c (fold_builtin_frexp): New.
3755         (fold_builtin_2): Use it.
3756
3757 2007-02-22  Mark Mitchell  <mark@codesourcery.com>
3758
3759         * doc/invoke.texi (Spec Files): Document getenv spec function.
3760
3761         * gcc.c (getenv_spec_function): New function.
3762         (static_spec_functions): Add it.
3763         * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
3764         (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
3765         header files.
3766
3767 2007-02-22  Michael Matz  <matz@suse.de
3768
3769         PR c++/29433
3770         * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
3771         (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
3772
3773 2007-02-22  Ian Lance Taylor  <iant@google.com>
3774
3775         PR debug/30898
3776         * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
3777         (mem_loc_descriptor): Call it.
3778
3779 2007-02-22  Zdenek Dvorak  <dvorakz@suse.cz>
3780             Ira Rosen  <irar@il.ibm.com>
3781
3782         * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
3783
3784 2007-02-22  Ira Rosen  <irar@il.ibm.com>
3785
3786         PR tree-optimization/30843
3787         * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
3788         stores only after all the group is vectorized.
3789
3790 2007-02-22  Dorit Nuzman  <dorit@il.ibm.com>
3791
3792         PR tree-optimization/30858
3793         * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
3794         in the reduction cycle have a single use in the loop.
3795         * tree-vectorizer.h (relevant): Add documentation.
3796
3797 2007-02-20  Mike Stump  <mrs@apple.com>
3798
3799         * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
3800         * configure: Regenerate.
3801
3802 2007-02-21  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
3803
3804         Change the defaults of some parameters and options.
3805         * config/spu/spu-protos.h (spu_optimization_options): Declare.
3806         * config/spu/spu.c (spu_optimization_options): Add.
3807         (spu_override_options): Change params in spu_optimization_options.
3808         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
3809
3810         Register 127 is only 16 byte aligned when used as a frame pointer.
3811         * config/spu/spu-protos.h (spu_init_expanders): Declare.
3812         * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
3813         HARD_FRAME_POINTER_REGNUM.
3814         (spu_legitimate_address):  Use regno_aligned_for_reload.
3815         (regno_aligned_for_load):  HARD_FRAME_POINTER_REGNUM is only 16 byte
3816         aligned when frame_pointer_needed is true.
3817         (spu_init_expanders): New.  Set alignment of HARD_FRAME_POINTER_REGNUM
3818         to 8 bits.
3819         * config/spu/spu.h (INIT_EXPANDERS): Define.
3820
3821         Make sure shift and rotate instructions have valid immediate operands.
3822         * config/spu/predicates.md (spu_shift_operand): Remove.
3823         * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
3824         * config/spu/constraints.md (W, O): Extend range.
3825         * config/spu/spu.md (umask, nmask): Define.
3826         (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
3827         lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
3828         rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
3829         rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
3830         spu_nonmem_operand instead of spu_shift_operands.  Use new modifiers.
3831         (lshr<mode>3_reg):  Fix rtl description.
3832
3833         Make sure mulhisi immediate operands are valid.
3834         * config/spu/predicates.md (imm_K_operand): Add.
3835         * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
3836
3837         Generate constants using fsmbi and andi.
3838         * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
3839         (print_operand, spu_split_immediate, classify_immediate,
3840         fsmbi_const_p): Handle IC_FSMBI2.
3841
3842         Correctly handle a CONST_VECTOR containing symbols.
3843         * config/spu/spu.c (print_operand): Handle HIGH correctly.
3844         (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
3845         (immediate_load_p): Allow symbols that use 2 instructions to create.
3846         (classify_immediate, spu_builtin_splats):  Don't accept a CONST_VECTOR
3847         with symbols when flag_pic is set.
3848         (const_vector_immediate_p): New.
3849         (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
3850         accept a CONST_VECTOR with symbols.
3851         (spu_legitimate_constant_p): Use const_vector_immediate_p.  Don't
3852         accept a CONST_VECTOR with symbols when flag_pic is set.  Handle HIGH
3853         correctly.
3854         * config/spu/spu.md (high, low): Delete.
3855         (low_<mode>): Define.
3856
3857         Remove INTRmode and INTR_REGNUM, which didn't work.
3858         * config/spu/spu.c (spu_conditional_register_usage): Remove reference
3859         of INTR_REGNUM.
3860         * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
3861         set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
3862         peephole2 pattern): Don't use INTR or 131.
3863         (movintrcc): Delete.
3864         * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
3865         CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
3866         * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
3867         (UNSPEC_SET_INTR): Add.
3868         * config/spu/spu-modes.def (INTR): Remove.
3869
3870         More accurate warnings about run-time relocations.
3871         * config/spu/spu.c (reloc_diagnostic): Test in_section.
3872
3873         Correctly warn about immediate arguments to specific intrinsics.
3874         * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
3875         (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
3876         the instruction predicate.
3877
3878         Fix tree check errors with latest update.
3879         * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
3880         CALL_EXPR_ARG.
3881         (spu_expand_builtin): Use CALL_EXPR_FN.
3882
3883         Add missing specific intrinsics.
3884         * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
3885         si_bislede.
3886         * config/spu/spu_internals.h: Ditto.
3887
3888         Fix incorrect operand modifiers.
3889         * config/spu/spu-builtins.md (spu_mpy, spu_mpyu):  Remove use of %H.
3890         * config/spu/spu.md (xor<mode>3):  Change %S to %J.
3891
3892         Optimize one case of zero_extend of a vec_select.
3893         * config/spu/spu.md (_vec_extractv8hi_ze):  Add.
3894
3895         Accept any immediate for hbr.
3896         * config/spu/spu.md (hbr):  Change s constraints to i.
3897
3898 2007-02-21  Paul Brook  <paul@codesourcery.com>
3899
3900         * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
3901         condexec_count when skipping USE and CLOBBER.
3902
3903 2007-02-21  Nick Clifton  <nickc@redhat.com>
3904
3905         * common.opt (Warray-bounds): Add Warning attribute.
3906         (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
3907         Likewise.
3908         (fsized-zeroes): Add Optimization attribute.
3909         (fsplit-wide-types, ftree-scev-cprop): Likewise.
3910         * c.opt (Wc++0x-compat): Add Warning attribute.
3911
3912 2007-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
3913
3914         PR middle-end/30761
3915         * reload1.c (eliminate_regs_in_insn): In the single_set special
3916         case, attempt to re-recognize the insn before falling back to
3917         having reload fix it up.
3918
3919 2007-02-20  Eric Christopher  <echristo@gmail.com>
3920
3921         * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
3922         Rewrite accordingly.
3923         (frv_read_iacc_argument): Ditto.
3924         (frv_expand_set_builtin): Take a call instead of arglist, update for
3925         above changes.
3926         (frv_expand_unop_builtin): Ditto.
3927         (frv_expand_binop_builtin): Ditto.
3928         (frv_expand_cut_builtin): Ditto.
3929         (frv_expand_binopimm_builtin): Ditto.
3930         (frv_expand_voidbinop_builtin): Ditto.
3931         (frv_expand_int_void2arg): Ditto.
3932         (frv_expand_prefetches): Ditto.
3933         (frv_expand_voidtriop_builtin): Ditto.
3934         (frv_expand_voidaccop_builtin): Ditto.
3935         (frv_expand_load_builtin): Ditto.
3936         (frv_expand_store_builtin): Ditto.
3937         (frv_expand_mdpackh_builtin): Ditto.
3938         (frv_expand_mclracc_builtin): Ditto.
3939         (frv_expand_mrdacc_builtin): Ditto.
3940         (frv_expand_mwtacc_builtin): Ditto.
3941         (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
3942         calls for above.
3943
3944 2007-02-20  Janis Johnson  <janis187@us.ibm.com>
3945
3946         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
3947         * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
3948         cmpb instruction.
3949         (HAVE_GAS_DFP): Check for assembler support of decimal floating
3950         point instructions.
3951         * configure: Regenerate.
3952         * config.in: Regenerate.
3953         * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
3954         * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
3955         masks to power6 and power6x and to POWERPC_MASKS.
3956         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3957         _ARCH_PWR6.
3958         * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
3959         * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
3960         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3961         Access PROTOTYPE as variable, not mask.
3962
3963 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
3964
3965         * rtl.h (remove_reg_equal_equiv_notes): New prototype.
3966         * rtlanal.c (remove_reg_equal_equiv_notes): New function.
3967         * combine.c (adjust_for_new_dest): Use it.
3968         * postreload.c (reload_combine): Likewise.
3969
3970 2007-02-20  Steven Bosscher  <steven@gcc.gnu.org>
3971
3972         * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
3973         notes on an insn with multiple sets, even if single_set returns
3974         non-NULL for that insn.
3975
3976 2007-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3977
3978         * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
3979         scalbn and scalbln.
3980
3981 2007-02-20  Geoffrey Keating  <geoffk@apple.com>
3982
3983         * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
3984         if user didn't pass it.
3985         * config/i386/darwin.h (CC1_SPEC): Likewise.
3986         * config/rs6000/darwin.h (CC1_SPEC): Likewise.
3987         (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
3988         -mmacosx-version-min.
3989