OSDN Git Service

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