OSDN Git Service

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