OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-01-12  Julian Brown  <julian@codesourcery.com>
2
3         * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
4         (TARGET_68040_ONLY): Rename to...
5         (TARGET_68040): ...this.
6         * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
7         * config/m68k/m68k.md: Likewise.
8
9 2007-01-12  Julian Brown  <julian@codesourcery.com>
10             Nathan Sidwell  <nathan@codesourcery.com>
11             Richard Sandiford  <richard@codesourcery.com>
12
13         * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
14         the -mcpu= argument associated with the --with-cpu setting.
15         Define M68K_DEFAULT_TUNE to the default -mtune= option,
16         if different from the one implied by the -mcpu setting.
17         Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
18         using mcpu=FOO as the default CPU option.  Set target_cpu_default2.
19         * doc/invoke.texi: Mention ColdFire in the introduction to the
20         m68k options.  Document the new -march, -mcpu, -mtune, -mdiv,
21         -mno-div and -mhard-float options.  Make -m68881 a synonym for
22         -mhard-float.  Document the previously-undocumented -m5206e,
23         -m528x, -m5307 and -m5407 options.  Tweak the existing option
24         documentation for consistency.
25         * doc/install.texi: Mention new --with-cpu arguments.
26         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
27         default CPU if neither -mcpu nor -march are specified.
28         (ASM_CPU_SPEC): Pass down -mcpu and -march options.
29         (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
30         TARGET_ISA*.  Set the legacy __mcf*__ cpu macros in the same way,
31         using m68k_tune to decide between families that implement the
32         same ISA.  Use m68k_tune to set __mcfv4e__.
33         (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
34         (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
35         (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
36         (FL_ISA_C, FL_ISA_MMU): New macros.
37         (MASK_COLDFIRE): Delete.
38         (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
39         (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
40         (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
41         (TARGET_HARD_FLOAT): Do not define here.
42         (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
43         (TUNE_68000): New macro.
44         (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
45         (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
46         (TUNE_CFV2): Redefine in terms of m68k_tune.
47         (uarch_type, target_device, fpu_type): New enums.
48         (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
49         * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
50         (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
51         (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
52         (FL_FOR_isa_c): New macros.
53         (m68k_isa): New enum.
54         (m68k_target_selection): New structure.
55         (all_devices, all_isas, all_microarchs): New tables.
56         (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
57         (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
58         (MASK_ALL_CPU_BITS): Delete.
59         (m68k_find_selection): New function.
60         (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
61         Map the legacy target options to a combination of the new ones.
62         (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
63         m68k_cpu_flags.  Handle M68K_DEFAULT_TUNE.  Use m68k_cpu_flags
64         to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
65         settings.
66         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
67         (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
68         properties.
69         (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
70         (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
71         * config/m68k/m68k-devices.def: New file.
72
73 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
74             Nathan Sidwell  <nathan@codesourcery.com>
75
76         * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
77         (SUBTARGET_EXTRA_SPECS): New macros.
78         * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
79         use %(asm_cpu_spec) instead.
80         * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
81         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
82         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
83         (EXTRA_SPECS): Rename to...
84         (SUBTARGET_EXTRA_SPECS): ...this.
85
86 2007-01-12  Nathan Sidwell  <nathan@codesourcery.com>
87             Richard Sandiford  <richard@codesourcery.com>
88             Julian Brown  <julian@codesourcery.com>
89
90         * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
91         (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
92         to the configuration's default CPU.
93         (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
94         Remove default masks.
95         (m680[012]0-*-*): Set the default with_cpu to the first part of
96         the target name.
97         (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
98         (m68k*-*-linux): Extend the --with-cpu handling to...
99         (m680[012]0-*-*, m68k*-*-*): ...these configurations.  Allow m68000
100         and m68010.  Don't set target_cpu_default2.
101         * doc/install.texi: Document --with-cpu for m68k.
102         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
103         * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
104         (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
105         (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
106         (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
107         (ASM_SPEC): Remove use of %(asm_cpu_default).
108         (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
109         * config/m68k/linux.h (TARGET_DEFAULT): Delete.
110         (CPP_SPEC): Merge definitions.  Do not handle __HAVE_68881__ here.
111         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
112         __HAVE_FPU__ if TARGET_HARD_FLOAT.
113         (TARGET_DEFAULT): Delete.
114         (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
115         cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
116         (CPP_CPU_SPEC): Delete.
117         (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
118         the appropriate string.
119         (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
120         (CPP_SPEC): Define to NETBSD_CPP_SPEC.
121         (ASM_SPEC): Don't use %(asm_default_spec).
122         * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
123         TARGET_DEFAULT and add MASK_68881.
124         * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
125
126 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
127
128         * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
129         (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
130         MASK_68010 alongside MASK_68020.
131         * doc/invoke.texi: Document -m68010.
132         * config/m68k/m68k.opt (m68010): New.
133         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
134         if TUNE_68010.
135         (TUNE_68010): New macro.
136         * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
137         (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
138         (M68K_CPU_m68332): Add MASK_68010.
139         * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
140         fallback definition.
141         * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
142         defines.
143         * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
144         (m68k_handle_option): Handle OPT_m68010.  Add MASK_68010
145         to all entries that use MASK_68020.
146         (output_move_simode_const, output_move_himode, output_move_qimode)
147         (output_move_stricthi, output_move_strictqi): Use TARGET_68010
148         instead of TARGET_68020 to select clr behavior.  Remove comment
149         about there being no TARGET_68010.
150         * config/m68k/m68k.md: Likewise throughout.
151
152 2007-01-12  Julian Brown  <julian@codesourcery.com>
153
154         * config/m68k/m68k.h (TARGET_ISAB): New macro.
155         * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
156         * config/m68k/m68k.md: Likewise.
157
158 2007-01-12  Julian Brown  <julian@codesourcery.com>
159
160         * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
161         TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
162
163 2007-01-12  Julian Brown  <julian@codesourcery.com>
164
165         * config/m68k/m68k.h (TUNE_68040_60): New macro.
166         * config/m68k/m68k.c (standard_68881_constant_p): Use it.
167         * config/m68k/m68k.md: Likewise.
168
169 2007-01-12  Julian Brown  <julian@codesourcery.com>
170             Richard Sandiford  <richard@codesourcery.com>
171
172         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
173         instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
174         TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
175         TARGET_CPU32.
176         (TARGET_CPU32): Rename to...
177         (TUNE_CPU32): ...this.
178         (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
179         (TUNE_CFV2): New macros.
180         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
181         remove conditions that are implied by TARGET_68020.
182         * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
183         instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
184         (m68k_output_function_epilogue): Likewise.
185         (m68k_rtx_costs): Likewise.  Use TUNE_68060 instead of TARGET_68060
186         and TUNE_CFV2 instead of TARGET_5200.  Use TUNE_68000_10 instead of
187         "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
188         non-68000 timings.  Refactor multiplication and division costs.
189         (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
190         TUNE_CPU32 instead of TARGET_CPU32.
191         (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
192         and TUNE_68060 instead of TARGET_68060.
193         * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
194         TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
195         TARGET_CPU32.
196         (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
197         && !TARGET_COLDFIRE" to choose between moveq and clr.
198         Likewise in the unnamed movsf pattern.
199         (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
200         "!TARGET_68020 && !TARGET_COLDFIRE".  Likewise the unnamed
201         ashiftrt pattern.
202
203 2007-01-12  Richard Sandiford  <richard@codesourcery.com>
204
205         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
206         of tabbing before backslashes.
207
208 2007-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
209
210         * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
211         * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
212         (ASM_OUTPUT_INTERNAL_LABEL): Define.
213
214 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
215
216         * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
217         find_interesting_uses_cond.
218         (find_interesting_uses_cond): Use extract_cond_operands.
219         (rewrite_use_compare): Use extract_cond_operands and
220         force_gimple_operand_bsi.  Do not call update_stmt.
221         (determine_use_iv_cost_condition): Use extract_cond_operands.
222         Return cheaper of using original bound and changing the exit bound.
223
224 2007-01-11  Zdenek Dvorak <dvorakz@suse.cz>
225
226         PR tree-optimization/29516
227         * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
228         most_expensive_mult_to_index, addr_to_parts,
229         create_mem_ref, maybe_fold_tmr): Make the type of
230         fields of TARGET_MEM_REF sizetype.
231         (move_fixed_address_to_symbol, move_pointer_to_base):
232         New functions.
233         * tree.def (TARGET_MEM_REF): Add comment on types of
234         the operands.
235
236 2007-01-11  Joseph Myers  <joseph@codesourcery.com>
237
238         * c-common.c (vector_types_convertible_p): Treat opaque types as
239         always convertible if they have the same size, but not otherwise.
240
241 2007-01-11  Steven Bosscher  <steven@gcc.gnu.org>
242
243         * ifcvt.c (struct noce_if_info): Add comments to the fields.
244         Remove the b_unconditional field.
245         (noce_try_sign_mask): Do not look at b_unconditional.
246         (noce_process_if_block): Do not use merge_if_blocks.  Update
247         the CFG here.  Do not set b_unconditional.
248         (cond_move_process_if_block): Likewise.
249         (find_cond_trap): Likewise.
250         (check_cond_move_block): Require simple jump insns at the end
251         of the basic block.
252
253 2007-01-11  Jan Hubicka  <jh@suse.cz>
254
255         PR tree-optimization/1046
256         * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
257         when alias info is not ready.
258         (pass_tail_recursion): Do not require aliasing.
259         * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
260         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
261         * tree-ssa-copy.c (pass_copy_prop): Likewise.
262         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
263         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
264         * passes.c (init_optimization_passes): Execute rename_ssa_copies,
265         ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
266         before inlining.
267         * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
268         When aliasing is not build, mark statement as volatile.
269
270 2007-01-11  Tom Tromey  <tromey@redhat.com>
271
272         PR preprocessor/15185, PR preprocessor/20989:
273         * doc/cppopts.texi <-MT>: Update description of algorithm for
274         computing default target.
275         <-M, -MD>: Reword "basename" text.
276
277 2007-01-11  Roger Sayle  <roger@eyesopen.com>
278
279         * builtins.c (expand_builtin_pow, expand_builtin_powi,
280         fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
281         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
282         fold_builtin_int_int_roundingfn, fold_builtin_bitop,
283         fold_builtin_bswap, real_constp, fold_builtin_pow,
284         fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
285         do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
286         uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
287         * convert.c (convert_to_pointer): Likewise.
288         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
289         * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
290         const_binop, fold_convert_const_int_from_int,
291         fold_convert_const_int_from_real,
292         fold_convert_const_real_from_real, sign_bit_p,
293         optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
294         fold_sign_changed_comparison, fold_unary, fold_comparison,
295         fold_binary, multiple_of_p, tree_Expr_non_zero_p,
296         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
297         * print-tree.c (print_node_brief, print_node): Likewise.
298         * stor-layout.c (place_field, layout_type): Likewise.
299         * tree-chrec.c (keep_cast): Likewise.
300         * tree.c (build_vector, build_real, build_real_from_int_cst,
301         build_complex): Likewise.
302
303 2007-01-11  Roger Sayle  <roger@eyesopen.com>
304
305         * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete.  For the time being,
306         treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
307
308 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
309
310         * configure.ac (strict1_warn): Rename to strict_warn.
311         (WERROR, --enable-werror, symlink hacks, stage1_cflags,
312         cc_set_by_configure, quoted_cc_set_by_configure,
313         stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
314         all_boot_languages, all_stagestuff): Remove.
315         (target_list): Remove bootstrap targets.
316         * Makefile.in (quickstrap): Unconditionally make a synonym of all.
317         (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
318         REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
319         SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
320         VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
321         STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
322         stage1_copy, stage2_build, stage2_copy, stageprofile_build,
323         stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
324         stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
325         bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
326         bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
327         unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
328         restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
329         cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
330         *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
331         stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
332         stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
333         risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
334         (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
335         (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
336         (mostlyclean): Adjust.
337         (clean, distclean): Don't mention bootstrap stuff.
338         * configure: Regenerate.
339         * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
340         java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
341         treelang/config-lang.in (stagestuff): Remove.
342         * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
343         stageprofile, stagefeedback, stagestuff): Remove mention.
344
345 2007-01-11  Nick Clifton  <nickc@redhat.com>
346
347         * config/mcore/predicates.md (mcore_general_movesrc_operand):
348         Accept CONSTs.
349         (mcore_general_movdst_operand): Do not accept CONST_INTs.
350         (mcore_arith_K_S_operand): Run the test for the S constraint not
351         the test for the M constraint.
352         (mcore_addsub_operand): Do not accept integer values that are
353         larger than 32 bits.
354         * config/mcore/mcore.md: Remove unused constraints from split.
355         (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
356         (addsi3): Likewise.
357         (allocate_stack): Likewise.
358         * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
359         operands to 32 bits.
360         (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
361         INTVAL.
362         (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
363         mcore_const_ok_for_inline, mcore_const_trick_uses_not,
364         try_constant_tricks, mcore_num_ones, mcore_num_zeros,
365         mcore_output_bclri, mcore_output_andn, output_inline_const,
366         mcore_output_move, mcore_output_movedouble): Likewise.
367         (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
368         (output_inline_const): Likewise.
369         (output_inline_const): Fix format strings used in sprintf
370         statements.
371         * config/mcore/mcore-protos.h: Update prototypes for changed
372         functions in mcore.c.
373         * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
374         HOST_WIDE_INT and not int.
375         (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
376         CONST_OK_FOR_N): Likewise.
377         (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
378         (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
379         an INTVAL.
380
381 2007-01-10  Jan Hubicka  <jh@suse.cz>
382
383         * tree-vrp.c (remove_range_assertions): Release defs.
384         * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
385         * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
386
387 2007-01-10  Paul Brook  <paul@codesourcery.com>
388
389         * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
390         * config/arm/arm.md (mulsi3subsi): New insn.
391
392 2007-01-10  Zdenek Dvorak <dvorakz@suse.cz>
393
394         * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
395         (tree_transform_and_unroll_loop): New.
396         * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
397         Declare.
398
399 2007-01-10  Robert Kennedy <jimbob@google.com>
400
401         * fold-const.c (fold_comparison): Fold comparisons like (x *
402         1000 < 0) to (x < 0).
403
404 2007-01-10  Ian Lance Taylor  <iant@google.com>
405
406         * tree-pretty-print.c (dump_generic_node): Print parentheses when
407         operands have the same priority.
408
409 2007-01-10  Tom Tromey  <tromey@redhat.com>
410
411         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
412         (fold_binary): Likewise.
413         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
414         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
415         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
416         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
417         * langhooks.h (struct lang_hooks): Removed field
418         'can_use_bit_fields_p'.
419
420 2007-01-10  Ralf Corsépius <ralf.corsepius@rtems.org>
421
422         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
423
424 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
425
426         * function.c (get_last_funcdef_no): New function.
427         * function.h (get_last_funcdef_no): Declare. 
428         * tree-inline.c (initialize_cfun): Add initialization.
429         (tree_function_versioning): Cleanup.
430         
431 2007-01-10  Jan Hubicka  <jh@suse.cz>
432
433         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
434         PHIs.
435
436 2007-01-10  Sa Liu  <saliu@de.ibm.com>
437             Ben Elliston  <bje@au.ibm.com>
438
439         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
440         for SAVE_NONLOCAL and Pmode for any other save level.
441         * spu-protos.h (spu_restore_stack_block): Declare.
442         * spu.md (save_stack_block): Remove.
443         (restore_stack_block): Call spu_restore_stack_block.
444         * spu.c (spu_restore_stack_block): New function.
445         (spu_expand_epilogue): Remove old comment.
446
447 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
448
449         PR tree-optimization/30322
450         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
451         (cand_value_at): Return the value as aff_tree.
452         (may_eliminate_iv): Convert the bound from aff_tree to tree.
453         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
454         aff_combination_mult): New functions.
455         (aff_combination_add): Use aff_combination_add_cst.
456         (aff_combination_convert): Allow conversions to a wider type.
457         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
458         * tree-affine.h (aff_combination_mult): Declare.
459
460 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
461
462         * doc/tm.texi: Update documentation to reflect reality of exec
463         and start file search behaviours. Update copyright year.
464         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
465         header file directories.
466
467 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
468
469         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
470         (*cosxf2): Rename to cosxf2_i387.
471
472         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
473         using X87MODEF12 mode macro. Rename patterns to
474         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
475         for SSE math.
476         (*cosdf2, *cossf2): Ditto.
477         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
478         to match extended input operands.
479
480         (sincos<mode>3): New expander.
481
482         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
483         insn patterns and corresponding splitters.
484
485 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
486
487         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
488         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
489
490 2007-01-09  Nicolas Pitre  <nico@cam.org>
491
492         PR target/30173
493         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
494
495 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
496
497         * target.h (struct gcc_target): New field library_rtti_comdat.
498         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
499         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
500         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
501         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
502
503 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
504
505         * doc/invoke.texi (Optimize Options): Correct description of -O0.
506
507 2007-01-08  Richard Guenther  <rguenther@suse.de>
508
509         * tree.h (force_fit_type_double): Export.
510         (force_fit_type): Remove.
511         * fold-const.c (force_fit_type_double): New function.
512         (force_fit_type): Remove.
513         (int_const_binop): Use it.
514         (fold_convert_const_int_from_int): Likewise.
515         (fold_convert_const_int_from_real): Likewise.
516         (fold_div_compare): Likewise.
517         (fold_sign_changed_comparison): Likewise.
518         (fold_unary): Likewise.
519         (fold_negate_const): Likewise.
520         (fold_abs_const): Likewise. 
521         (fold_not_const): Likewise.
522         * c-common.c (shorten_compare): Use force_fit_type_double.
523         * convert.c (convert_to_pointer): Likewise.
524
525 2007-01-08  Richard Guenther  <rguenther@suse.de>
526
527         * tree.h (build_int_cst_wide_type): Export.
528         * tree.c (build_int_cst_wide_type): New function.
529         (build_int_cst_wide): Fix comment.
530         * builtins.c (fold_builtin_object_size): Use build_int_cst
531         to build -1 or 0 of the correct type.  Use fit_double_type
532         to check for overflow.
533         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
534         to build the mask.
535         (decode_field_reference): Likewise.
536         (all_ones_mask_p): Likewise.
537         (native_interpret_int): Use build_int_cst_wide_type.
538         (fold_binary): Use build_int_cst_type to build an all-ones
539         value.
540         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
541
542 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
543
544         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
545
546 2007-01-09  Ben Elliston  <bje@au.ibm.com>
547
548         * genautomata.c (STATS_OPTION): New option.
549         (stats_flag): New flag.
550         (gen_automata_option): Handle it.
551         (initiate_automaton_gen): Ditto.
552         (write_automata): Output statistics only if stats_flag is
553         set. Likewise, output time statistics only if time_flag is set.
554         * doc/md.texi (Processor pipeline description): Document new flag.
555
556 2007-01-08  Richard Guenther  <rguenther@suse.de>
557
558         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
559         * tree.c (build_int_cst_type): Likewise.
560         (size_in_bytes): Don't call force_fit_type on the result.
561         (int_fits_type_p): Use fit_double_type.
562         * fold-const.c (fit_double_type): New function.
563         (force_fit_type): Use it.
564         * tree.h (fit_double_type): Export.
565
566 2007-01-08  Jan Hubicka  <jh@suse.cz>
567
568         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
569         * ipa.c (function_and_variable_visibility): Fix return type.
570
571 2007-01-08  Richard Guenther  <rguenther@suse.de>
572
573         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
574         of offset to build the index.
575         * tree-pretty-print.c (dump_generic_node): Don't build negated
576         const just for printing.
577         * c-pretty-print.c (pp_c_integer_constant): Likewise.
578         * builtins.c (fold_builtin_int_roundingfn): Check if result
579         fits the type by using force_fit_type and comparing the result.
580         * predict.c (predict_loops): Use compare_tree_int for comparison.
581         * tree.c (build_int_cst): Fall back to integer_type_node for
582         NULL_TREE type.
583         (build_int_cst_wide): Assert type is non-null.
584
585 2007-01-08  Roberto Costa  <roberto.costa@st.com>
586
587         * tree-vrp.c (extract_range_from_cond_expr): New.
588         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
589         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
590         as expressions.
591         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
592         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
593         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
594         used as expressions.
595         * tree-object-size.c (cond_expr_object_size): New.
596         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
597
598 2007-01-08  Jan Hubicka  <jh@suse.cz>
599
600         * tree-ssa-forwprop.c (forward_propagate_into_cond,
601         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
602         statement.
603
604 2007-01-08  Richard Guenther  <rguenther@suse.de>
605
606         PR tree-optimization/23603
607         * tree-vrp.c (set_value_range_to_truthvalue): New function.
608         (extract_range_from_binary): Fall back to truthvalue instead of
609         varying for TRUTH_*_EXPR.
610         (extract_range_from_comparison): Fall back to truthvalue instead of
611         varying.
612         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
613         if all visited PHI values were constant.
614
615 2007-01-08  Jan Hubicka  <jh@suse.cz>
616
617         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
618         (cgraph_analyze_function): break out from ...
619         (cgraph_finalize_compilation_unit): ... here.
620         (cgraph_expand_function): Remove forgoten commented out line.
621         (cgraph_optimize): Analyze functions.
622
623 2007-01-08  Jan Hubicka  <jh@suse.cz>
624
625         * tree-pas.h (TODO_remove_function): New flag.
626         (TODO_update*): Renumber.
627         (pass_ipa_increase_alignment,
628         pass_ipa_function_and_variable_visibility): New passes.
629         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
630         (cgraph_function_and_variable_visibility): Move to ipa.c
631         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
632         cgraph_increase_alignment.
633         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
634         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
635         calling tree-inline.
636         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
637         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
638         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
639         (gate_increase_alignment): New function.
640         (pass_ipa_increase_alignment): New pass.
641         * ipa.c: Inline tree-pass.h and timevar.h
642         (function_and_variable_visibility): Move here from cgraphunit.c
643         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
644         * passes.c (init_optimization_passes): Add the two new passes.
645         (execute_todo): Handle cgraph_remove_functions.
646
647 2007-01-08  Nick Clifton  <nickc@redhat.com>
648
649         * config/frv/predicates.md (reg_or_0_operand): Accept
650         CONST_DOUBLEs.
651
652 2007-01-08  Ralf Corsépius <ralf.corsepius@rtems.org>
653
654         * config/bfin/rtems.h, config/bfin/t-rtems: New.
655         * config.gcc: Add bfin*-rtems*.
656
657 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
658
659         * c.opt: Add -flax-vector-conversions.
660         * c-typeck.c (convert_for_assignment): Pass flag to
661         vector_types_convertible_p to allow emission of note.
662         (digest_init): Likewise.
663         * c-opts.c: Handle -flax-vector-conversions.
664         * c-common.c (flag_lax_vector_conversions): New.
665         (vector_types_convertible_p): Unless -flax-vector conversions
666         has been passed, disallow conversions between vectors with
667         differing numbers of subparts and/or element types.  If such
668         a conversion is disallowed, possibly emit a note on the first
669         occasion only to inform the user of -flax-vector-conversions.
670         The new last argument specifies this.
671         * c-common.h (flag_lax_vector_conversions): New.
672         (vector_types_convertible_p): Add extra argument.
673         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
674         char_type_node for V*QI type vectors.
675         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
676         Update to satisfy new typechecking rules.
677         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
678         C and C++ variants.
679         * doc/invoke.texi (C Dialect Options): Document
680         -flax-vector-conversions.
681
682 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
683
684         PR tree-optimization/29877
685         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
686         a register variable on the RHS to not be replaceable.
687
688 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
689         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
690         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
691         const_simm15, const_pow2, const_npow2): Added.
692         * config/score/misc.md (insv, extv, extzv, movmemsi, 
693         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
694         * config/score/score.c (score_address_cost, score_select_cc_mode): 
695         Added.
696         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
697         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
698         Update score_print_operand.
699         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
700         Adjust register allocate order and update some macro define.
701         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
702         mdx_block_move_straight, mdx_block_move_loop_head,
703         mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
704         mdx_block_move): Added.
705         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
706         mdp_limm): Updated and fix some bug and typo.
707         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
708         (movsf, movdf, doloop_end): Added.
709
710 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
711
712         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
713         config/arm/thumb2.md: Fix comment typos.
714         * doc/extend.texi: Fix a typo.
715
716 2007-01-07  Eric Christopher  <echristo@apple.com>
717
718         * configure.ac: Check for __stack_chk_fail for darwin.
719         * configure: Regenerate.
720
721 2007-01-07  Richard Guenther  <rguenther@suse.de>
722
723         * tree-vrp.c (extract_range_from_assert): CSE calls to
724         compare_values where possible.
725         (extract_range_from_unary_expr): Likewise.
726
727 2007-01-07  Anatoly Sokolov <aesok@post.ru>
728
729         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
730         * config/avr/avr.c (call_insn_operand): Delete function.
731         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
732         instead of register number. Use predicates.
733         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
734         call_insn_operand): Add.
735
736 2007-01-06  Jan Hubicka  <jh@suse.cz>
737
738         * tree-pass.h (pass_build_cgraph_edges): Declare.
739         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
740         (visited_nodes): Remove.
741         (cgraph_create_edges): Move to cgraphbuild.c; rename to
742         build_cgrpah_edges; make visited_nodes local.
743         (cgraph_process_new_functions): DO not call initialize_inline_failed.
744         (record_references_in_initializer): Move to cgraphbuild.c
745         (initialize_inline_failed, rebuild_cgraph_edges,
746         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
747         (verify_cgraph_node): Make visited_nodes local.
748         (cgraph_analyze_function): Do not call cgraph_create_edges and
749         initialize_inline_failed.
750         (cgraph_expand_function): Do not call cgraph_lower_function;
751         assert that function is already lowered.
752         * Makefile.in (cgraphbuild.o): New.
753         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
754         at the end of lowering passes.
755
756 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
757
758         * ifcvt.c (cond_move_convert_if_block): New function, code
759         factored out from...
760         (cond_move_process_if_block): ...here.  Call the new function
761         on the THEN and ELSE blocks.
762         (merge_if_block): Do not copy global_live_at_end, merge_blocks
763         already takes care of this.
764
765 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
766
767         PR c/19978
768         * tree.h (TREE_OVERFLOW_P): New.
769         * c-typeck.c (parser_build_unary_op): Warn only if result
770         overflowed and operands did not.
771         (parser_build_binary_op): Likewise.
772         (convert_for_assignment): Remove redundant overflow_warning.
773         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
774
775 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
776
777         * c-typeck.c (store_init_value): Split over two lines to follow
778         the GNU coding style.
779
780 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
781
782         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
783         __GXX_EXPERIMENTAL_CXX0X__.
784         * doc/cpp.texi: Same.
785
786 2007-01-05  Richard Guenther  <rguenther@suse.de>
787
788         PR middle-end/27826
789         * tree.c (get_narrower): Do not construct COMPONENT_REFs
790         with mismatched types.  Instead explicitly build a
791         conversion NOP_EXPR.
792
793 2007-01-05  Ian Lance Taylor  <iant@google.com>
794
795         * c-common.c (decl_with_nonnull_addr_p): New function.
796         (c_common_truthvalue_conversion): Call it.
797         * c-typeck.c (build_binary_op): Likewise.
798         * c-common.h (decl_with_nonnull_addr_p): Declare.
799
800 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
801
802         PR c/30360
803         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
804         denom against 0.0.
805
806 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
807
808         * doc/install.texi (Final install): Document the fact that
809         the GNAT runtime should not be stripped.
810
811 2007-01-04  Jan Hubicka  <jh@suse.cz>
812
813         * tree-inline.c (fold_marked_statements): Update operand caches
814         and EH after folding
815
816 2007-01-04  Ian Lance Taylor  <iant@google.com>
817
818         * c-common.c (check_function_nonnull): Whitespace fix.
819
820 2007-01-04  Jan Hubicka  <jh@suse.cz>
821
822         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
823         comitted older version of patch.
824         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
825         function, celanup cfg and collect garbage.
826
827 2007-01-04  Mike Stump  <mrs@apple.com>
828
829         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
830         (clean): Likewise.
831
832 2007-01-04  Eric Christopher  <echristo@apple.com>
833
834         * libgcc2.c (__bswapsi2): Use SItype.
835         (__bswapdi2): Use DItype.
836         * libgcc2.h: Update for above.
837
838 2007-01-04  Paul Brook  <paul@codesourcery.com>
839
840         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
841         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
842         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
843         umulsidi3, umulsidi3adddi, smulsi3_highpart,
844         umulsi3_highpart): Make conditional on !arm_arch6.
845         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
846         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
847         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
848         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
849         umulsi3_highpart_v6): New insns.
850
851 2007-01-04  Roger Sayle  <roger@eyesopen.com>
852
853         * fold-const.c (fold_convert): When casting an expression to void,
854         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
855         have a type.  Instead of attempting to build a NOP_EXPR, return
856         these "special" trees directly.
857
858 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
859
860         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
861         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
862         rs6000_cost->fp not 0 as adjustment for outer NEG.
863
864 2007-01-04  Jan Hubicka  <jh@suse.cz>
865
866         * cgraph.c (cgraph_release_function_body): New function.
867         (cgraph_remove_node): Use it.
868         * cgraph.h (cgraph_release_function_body): Declare.
869         * cgraphunit.c (cgraph_expand_function): Use it.
870         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
871         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
872         is initialized and while compilation of other function is running.
873         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
874         statement CFG annotations from here to ...
875         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
876
877 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
878
879         * cfgloop.h (enum li_flags): Make the constants powers of two.
880
881 2007-01-04  Jan Hubicka  <jh@suse.cz>
882
883         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
884         set.
885         (fold_marked_statements): New function.
886         (optimize_inline_calls, tree_function_versioning): Fold new statements.
887         * tree-inline.h (copy_body_data): Add statements_to_fold.
888
889 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
890
891         * config.gcc: Mention libgcc/config.host.
892         * Makefile.in: Update comments mentioning libgcc.
893         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
894         (all.cross, start.encap, rest.encap, rest.cross): Update
895         dependencies for libgcc move.
896         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
897         (clean-target, clean-target-libgcc): Delete.
898         (srcdirify, GCC_EXTRA_PARTS): New macros.
899         (libgcc-support, libgcc.mvars): New rules.
900         (distclean): Remove mention of mklibgcc.
901         (install): Don't reference INSTALL_LIBGCC.
902         (install-common): Don't reference EXTRA_PARTS.
903         (install-libgcc, install-multilib): Delete rules.
904         * mklibgcc.in: Delete file.
905         * doc/configfiles.texi: Don't mention mklibgcc.
906
907         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
908         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
909         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
910         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
911         (mklibgcc, ldblspecs): Likewise.
912
913         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
914         (posixpre.def): Use $(T).
915         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
916         (SHLIB_SRC, SHLIB_INSTALL): Delete.
917         (SHLIB_LINK): Make dummy.
918         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
919
920         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
921
922         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
923         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
924         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
925         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
926
927         * configure.ac (all_outputs): Remove mklibgcc.
928         * configure: Regenerated.
929
930 2007-01-03  Josh Conner  <jconner@apple.com>
931
932         PR middle-end/29683
933         * calls.c (compute_argument_addresses): Set stack and stack_slot
934         for partial args, too.
935         (store_one_arg): Use locate.size.constant for the size when
936         generating a save_area.
937
938 2007-01-03  Robert Kennedy <jimbob@google.com>
939
940         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
941         whose definitions are deleted due to basic block merging.
942
943 2007-01-03  Paul Brook  <paul@codesourcery.com>
944
945         PR target/16634
946         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
947         functions.
948         (use_return_insn): Return 0 for Thumb interrupt functions.
949         (print_multi_reg): Add rfe argument for IRQ returns.
950         (arm_output_epilogue): Pop interrupt return address directly into PC.
951         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
952
953 2007-01-03  Paul Brook  <paul@codesourcery.com>
954
955         Merge from sourcerygxx-4_1.
956         * config/arm/thumb2.md: New file.
957         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
958         Thumb-2.
959         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
960         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
961         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
962         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
963         tables.
964         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
965         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
966         comptibility.
967         * config/arm/ieee754-sf.S: Ditto.
968         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
969         (thumb1_base_register_rtx_p): ... to this.
970         (thumb_index_register_rtx_p): Rename...
971         (thumb1_index_register_rtx_p): ... to this.
972         (thumb_output_function_prologue): Rename...
973         (thumb1_output_function_prologue): ... to this.
974         (thumb_legitimate_address_p): Rename...
975         (thumb1_legitimate_address_p): ... to this.
976         (thumb_rtx_costs): Rename...
977         (thumb1_rtx_costs): ... to this.
978         (thumb_compute_save_reg_mask): Rename...
979         (thumb1_compute_save_reg_mask): ... to this.
980         (thumb_final_prescan_insn): Rename...
981         (thumb1_final_prescan_insn): ... to this.
982         (thumb_expand_epilogue): Rename...
983         (thumb1_expand_epilogue): ... to this.
984         (arm_unwind_emit_stm): Rename...
985         (arm_unwind_emit_sequence): ... to this.
986         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
987         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
988         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
989         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
990         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
991         thumb2_output_casesi): New functions.
992         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
993         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
994         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
995         THUMB2_WORK_REGS): Define.
996         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
997         arm_condexec_mask, arm_condexec_masklen)): New variables.
998         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
999         (arm_override_options): Check new CPU capabilities.
1000         Set new architecture flag variables.
1001         (arm_isr_value): Handle v7m interrupt functions.
1002         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
1003         Thumb-2.
1004         (const_ok_for_arm): Handle Thumb-2 constants.
1005         (arm_gen_constant): Ditto.  Use movw when available.
1006         (arm_function_ok_for_sibcall): Return false for v7m interrupt
1007         functions.
1008         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
1009         (thumb_find_work_register, arm_load_pic_register,
1010         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
1011         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
1012         print_multi_reg, output_mov_long_double_fpa_from_arm,
1013         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
1014         output_mov_double_fpa_from_arm, output_move_double,
1015         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
1016         output_return_instruction, arm_output_function_prologue,
1017         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
1018         arm_output_mi_thunk, thumb_set_return_address): Ditto.
1019         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
1020         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
1021         (arithmetic_instr, shift_op): Use arm_shift_nmem.
1022         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
1023         '!' and 'L'.
1024         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
1025         (thumb_expand_prologue): Use thumb_set_frame_pointer.
1026         (arm_file_start): Output directive for unified syntax.
1027         (arm_unwind_emit_set): Handle stack alignment instruction.
1028         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
1029         Add v6t2, v7, v7a, v7r and v7m.
1030         (RETLDM): Add Thumb-2 code.
1031         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
1032         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
1033         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
1034         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
1035         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
1036         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
1037         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
1038         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
1039         ADJUST_INSN_LENGTH): Define.
1040         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
1041         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
1042         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
1043         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
1044         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
1045         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
1046         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
1047         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
1048         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
1049         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
1050         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
1051         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
1052         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
1053         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
1054         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
1055         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
1056         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
1057         cortex-m3.
1058         * config/arm/arm-tune.md: Regenerate.
1059         * config/arm/arm-protos.h: Update prototypes.
1060         * config/arm/vfp.md: Enable patterns for Thumb-2.
1061         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
1062         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
1063         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
1064         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
1065         * config/arm/libunwind.S: Add Thumb-2 code.
1066         * config/arm/constraints.md: Update include Thumb-2.
1067         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
1068         * config/arm/ieee754-df.S: Ditto.
1069         * config/arm/bpabi.S: Ditto.
1070         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
1071         * config/arm/predicates.md (low_register_operand,
1072         low_reg_or_int_operand, thumb_16bit_operator): New.
1073         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
1074         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
1075         * config/arm/t-arm-elf: Add armv7 multilib.
1076         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
1077         Include thumb2.md.
1078         (UNSPEC_STACK_ALIGN, ce_count): New.
1079         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
1080         arm_zero_extendsidi2, arm_zero_extendqidi2): New
1081         insns/expanders.
1082         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
1083         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
1084         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
1085         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
1086         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
1087         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
1088         insns.
1089         * doc/extend.texi: Document ARMv7-M interrupt functions.
1090         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
1091
1092 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
1093
1094         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
1095         (struct _Unwind_Context): Rename args_size to flags, remove
1096         signal_frame field, add a new args_size field and version field.
1097         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
1098         _Unwind_IsExtendedContext): New inline functions.
1099         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
1100         Assume by_value array is only present if _Unwind_IsExtendedContext.
1101         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
1102         _Unwind_IsSignalFrame.
1103         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
1104         (uw_update_context_1): Use _Unwind_SetSignalFrame.
1105         (uw_init_context_1): Initialize context->flags to
1106         EXTENDED_CONTEXT_BIT.
1107         * config/rs6000/linux-unwind.h (frob_update_context): Use
1108         _Unwind_SetSignalFrame.
1109
1110 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1111
1112         PR middle-end/30353
1113         * gimplify.c (gimplify_modify_expr_complex_part): Move below
1114         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
1115         the value.
1116
1117 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
1118
1119         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
1120         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
1121         RET, AT_SP): Remove.
1122         * config/i386/i386.md (*sse_prologue_save_insn): Use return
1123         instead of RET.
1124
1125         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
1126         * cfgbuild.c (find_basic_blocks): Likewise.
1127         * cfgrtl.c (rtl_create_basic_block): Likewise.
1128         * function.c (temp_slots_at_level): Likewise.
1129         * reg-stack.c (stack_regs_mentioned): Likewise.
1130         * regclass.c (allocate_reg_info): Likewise.
1131         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
1132         set_bb_for_stmt, move_block_to_fn): Likewise.
1133         * tree-complex.c (tree_lower_complex): Likewise.
1134         * vec.h (VEC_safe_grow_cleared): New.
1135
1136         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
1137
1138 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
1139
1140         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
1141         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
1142         to loop_version.
1143         * cfgloopmanip.c (scale_loop_frequencies): Export.
1144         (loopify): Scale the frequencies by prescribed coefficients.
1145         (set_zero_probability): New function.
1146         (duplicate_loop_to_header_edge): Improve updating of frequencies.
1147         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
1148         and frequencies according to arguments.
1149         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
1150         correctly.
1151         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
1152         * modulo-sched.c (sms_schedule): Set probabilities for entering
1153         versioned loop correctly.
1154         * tree-vect-transform.c (vect_transform_loop): Ditto.
1155         * cfgloop.h (loopify, loop_version): Declaration changed.
1156         (scale_loop_frequencies): Declared.
1157
1158 2007-01-02  Jan Hubicka  <jh@suse.cz>
1159
1160         * cgraph.c: Include tree-flow.h
1161         (cgraph_add_new-function): Handle IPA_SSA mode; execute
1162         early_local_passes.
1163         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
1164         * tree-pass.h (pass_all_early_optimizations): Declare.
1165         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
1166         early_local_passes.
1167         (cgraph_analyze_function): Do early_local_passes.
1168         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
1169         Do not add referenced vars.
1170         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
1171         SSA form.
1172         (gate_all_early_local_passes): New gate.
1173         (pass_early_local_passes): Use new gate.
1174         (execute_early_local_optimizations): New functions.
1175         (gate_all_early_optimizations): New gate.
1176         (pass_all_early_optimizations): New pass.
1177         (execute_free_datastructures): Free SSA only when initialized.
1178         (gate_init_datastructures): Init only when optimizing.
1179         (tree_lowering_passes): Do early local passes when called late.
1180         * tree-profile.c (do_tree_profiling): Don't profile functions added
1181         late.
1182         (do_early_tree_profiling, pass_early_tree_profile): Kill.
1183         * tree-cfg.c (update_modified_stmts): Do not update when operands are
1184         not active.
1185         * passes.c (init_optimizations_passes): Reorder so we go into SSA
1186         during early_local_passes.
1187         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
1188
1189
1190 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
1191
1192         * Makefile.in: Update copyright year.
1193
1194 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
1195
1196         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
1197         in $(lang_checks) and check-consistency targets.
1198
1199 2007-01-02  Jan Hubicka  <jh@suse.cz>
1200
1201         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
1202         Do not add referenced vars.
1203         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
1204         are not active.
1205         * passes.c (init_optimization_passes): Put mudflap_2 after
1206         free_datastructures.
1207
1208 2007-01-02  Jan Hubicka  <jh@suse.cz>
1209
1210         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
1211         Set NOTHROW flag on call statements proved to be nothrow.
1212         Update statement of local calls so new pure/const functions are
1213         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
1214         goto receivers.
1215         (tree_rest_of_compilation): Register hooks and initialize bitmap
1216         early. Do not set after_inlining flag.
1217
1218 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
1219
1220         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
1221         HOST_BITS_PER_LONGLONG
1222
1223 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1224
1225         PR c/19977
1226         * c-typeck.c (store_init_value): Don't emit pedantic overflow
1227         warning for non-static initializers.
1228
1229 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
1230
1231         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
1232         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
1233         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
1234         Always use set_unique_reg_note to add REG_EQUAL notes.
1235
1236 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
1237
1238         Revert:
1239         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
1240
1241         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
1242         * cfgbuild.c (find_basic_blocks): Likewise.
1243         * cfgrtl.c (rtl_create_basic_block): Likewise.
1244         * function.c (temp_slots_at_level): Likewise.
1245         * reg-stack.c (stack_regs_mentioned): Likewise.
1246         * regclass.c (allocate_reg_info): Likewise.
1247         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
1248         set_bb_for_stmt, move_block_to_fn): Likewise.
1249         * tree-complex.c (tree_lower_complex): Likewise.
1250         * vec.h (VEC_safe_grow_cleared): New.
1251
1252 2007-01-02  Ian Lance Taylor  <iant@google.com>
1253
1254         * c-common.c (c_common_truthvalue_conversion): When warning about
1255         using an assignment as a truth value, set TREE_NO_WARNING.
1256
1257 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1258
1259         PR middle-end/7651
1260         * c.opt (Wold-style-declaration): New.
1261         * doc/invoke.texi (C-only Warning Options): New.
1262         (Wold-style-declaration): Document it.
1263         (Wextra): Enabled by -Wextra.
1264         * c-opts.c (c_common_post_options): Enabled by -Wextra.
1265         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
1266         -Wold-style-declaration.
1267
1268 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
1269
1270         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
1271         * cfgbuild.c (find_basic_blocks): Likewise.
1272         * cfgrtl.c (rtl_create_basic_block): Likewise.
1273         * function.c (temp_slots_at_level): Likewise.
1274         * reg-stack.c (stack_regs_mentioned): Likewise.
1275         * regclass.c (allocate_reg_info): Likewise.
1276         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
1277         set_bb_for_stmt, move_block_to_fn): Likewise.
1278         * tree-complex.c (tree_lower_complex): Likewise.
1279         * vec.h (VEC_safe_grow_cleared): New.
1280
1281 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
1282
1283         * c-common.c(c_common_nodes_and_builtins): Since variants of
1284         void_type_node get built before it is given a name, we need to
1285         give those variants the name, too.
1286         (complete_array_type): We need to work with the canonical main
1287         type of the array, from which we will build the qualified version.
1288         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
1289         * print-tree.c (print_node): Display canonical type information
1290         for each type.
1291         * stor-layout.c (layout_type): When we don't know the
1292         alignment of a type for which we're building an array, we end up
1293         guessing wrong, so make the type require structural equality.
1294         * tree.c (make_node_stat): When we build a new type, it is its
1295         own canonical type.
1296         (build_type_attribute_qual_variant): When building an attribute
1297         variant, its canonical type is the non-attribute variant. However,
1298         if the attributes are target-dependent and they differ, we need to
1299         use structural equality checks for this type.
1300         (build_qualified_type): A qualified type is not equivalent to its
1301         unqualified variant; set the canonical type appropriately.
1302         (build_distinct_type_copy): When building a distinct type from
1303         another type, the new type is its own canonical type.
1304         (build_variant_type_copy): When building a new type variant, we
1305         assume that it is equivalent to the original type.
1306         (build_pointer_type_for_mode): When building a pointer type, also
1307         build a canonical type pointer.
1308         (build_reference_type_for_mode): When building a reference type,
1309         also build a canonical type reference.
1310         (build_index_type): When we can't hash an index type (e.g.,
1311         because its maximum value is negative), the index type requires
1312         structural equality tests.
1313         (build_array_type): Build the canonical form of an array type.
1314         (build_function_type): Function types require structural equality,
1315         because they contain default arguments, attributes, etc.
1316         (build_method_type_directly): Ditto for method types.
1317         (build_offset_type): Build the canonical offset type.
1318         (build_complex_type): Build the canonical vector type.
1319         (make_vector_type): Build the canonical vector type.
1320         * tree.h (TYPE_CANONICAL): New.
1321         (TYPE_STRUCTURAL_EQUALITY_P): New.
1322         (SET_TYPE_STRUCTURAL_EQUALITY): New.
1323         (struct tree_type): Added "canonical" field.
1324         * params.h (VERIFY_CANONICAL_TYPES): New.
1325         * doc/c-tree.texi (TYPE_CANONICAL): Document.
1326         (TYPE_STRUCTURAL_EQUALITY_P): Document.
1327         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
1328         * doc/invoke.texi (verify-canonical-types): Document --param
1329         parameter for verifying canonical types.
1330
1331 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
1332
1333         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
1334         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
1335         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
1336         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
1337         tm_file.
1338         * config/rs6000/e500.h: New.
1339         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
1340         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
1341         Remove.
1342         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
1343         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
1344         TARGET_E500_DOUBLE): Remove.
1345         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
1346         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
1347         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
1348         * config/rs6000/rs6000.c (rs6000_override_options): Use
1349         CHECK_E500_OPTIONS.
1350
1351 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
1352
1353         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
1354         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
1355         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
1356         rs6000_emit_cmove): Don't check TARGET_E500.
1357         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
1358         sordered): Don't check TARGET_E500.
1359
1360 2007-01-01  Eric Christopher  <echristo@apple.com>
1361
1362         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
1363         HARD_REGISTER_NUM_P.
1364
1365 2007-01-01  Roger Sayle  <roger@eyesopen.com>
1366
1367         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
1368         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
1369         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
1370         eq/ne Y".
1371
1372 2007-01-01  Mike Stump  <mrs@apple.com>
1373
1374         * configure.ac: Remove support for building with Apple's gcc-3.1.
1375
1376 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
1377
1378         PR middle-end/30311
1379         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
1380         REG is a hard register.  Do not modify REG before calling
1381         subreg_nregs.
1382         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
1383         multiple of the size of YMODE for certain lowpart cases.
1384
1385 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
1386
1387         PR middle-end/30253
1388         * gimplify (voidify_wrapper_expr): Update for
1389         GIMPLE_MODIFY_STMT.
1390
1391 2007-01-01  Andreas Schwab  <schwab@suse.de>
1392
1393         PR target/29166
1394         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
1395         save of BR0 in extra_spill_size instead of spill_size.
1396         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
1397         area.
1398         (ia64_expand_epilogue): Restore BR0 from its new location.
1399
1400 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
1401
1402         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
1403         Use a temporary variable if the left hand side is not a gimple
1404         register.
1405
1406 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
1407
1408         * gimplify.c (gimplify_return_expr): Make the temporary variable
1409         for the return expression, a gimple register variable.
1410
1411 2007-01-01  Jan Hubicka  <jh@suse.cz>
1412
1413         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
1414         INSN_LIST.
1415
1416 2007-01-01  Mike Stump  <mrs@apple.com>
1417
1418         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
1419         .literal16.
1420         * config/darwin.c (machopic_select_rtx_section): Use
1421         HAVE_GAS_LITERAL16.
1422         (darwin_mergeable_constant_section): Likewise.
1423         * configure: Regenerate.
1424         * config.in: Regenerate.
1425
1426 2007-01-01  Jan Hubicka  <jh@suse.cz>
1427             Andrew Pinski  <pinskia@gmail.com>
1428
1429         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
1430         before starting IPA passes.