OSDN Git Service

./:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2007-01-10  Robert Kennedy <jimbob@google.com>
2
3         * fold-const.c (fold_comparison): Fold comparisons like (x *
4         1000 < 0) to (x < 0).
5
6 2007-01-10  Ian Lance Taylor  <iant@google.com>
7
8         * tree-pretty-print.c (dump_generic_node): Print parentheses when
9         operands have the same priority.
10
11 2007-01-10  Tom Tromey  <tromey@redhat.com>
12
13         * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
14         (fold_binary): Likewise.
15         * langhooks.c (lhd_can_use_bit_fields_p): Removed.
16         * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
17         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
18         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
19         * langhooks.h (struct lang_hooks): Removed field
20         'can_use_bit_fields_p'.
21
22 2007-01-10  Ralf Cors├ępius <ralf.corsepius@rtems.org>
23
24         * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
25
26 2007-01-10  Razya Ladelsky  <razya@il.ibm.com>
27         
28         * function.c (get_last_funcdef_no): New function.
29         * function.h (get_last_funcdef_no): Declare. 
30         * tree-inline.c (initialize_cfun): Add initialization.
31         (tree_function_versioning): Cleanup.
32         
33 2007-01-10  Jan Hubicka  <jh@suse.cz>
34
35         * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
36         PHIs.
37
38 2007-01-10  Sa Liu  <saliu@de.ibm.com>
39             Ben Elliston  <bje@au.ibm.com>
40
41         * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
42         for SAVE_NONLOCAL and Pmode for any other save level.
43         * spu-protos.h (spu_restore_stack_block): Declare.
44         * spu.md (save_stack_block): Remove.
45         (restore_stack_block): Call spu_restore_stack_block.
46         * spu.c (spu_restore_stack_block): New function.
47         (spu_expand_epilogue): Remove old comment.
48
49 2007-01-09  Zdenek Dvorak <dvorakz@suse.cz>
50
51         PR tree-optimization/30322
52         * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
53         (cand_value_at): Return the value as aff_tree.
54         (may_eliminate_iv): Convert the bound from aff_tree to tree.
55         * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
56         aff_combination_mult): New functions.
57         (aff_combination_add): Use aff_combination_add_cst.
58         (aff_combination_convert): Allow conversions to a wider type.
59         (tree_to_aff_combination): Handle BIT_NOT_EXPR.
60         * tree-affine.h (aff_combination_mult): Declare.
61
62 2007-01-09  Carlos O'Donell  <carlos@codesourcery.com>
63
64         * doc/tm.texi: Update documentation to reflect reality of exec
65         and start file search behaviours. Update copyright year.
66         * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
67         header file directories.
68
69 2007-01-09  Uros Bizjak  <ubizjak@gmail.com>
70
71         * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
72         (*cosxf2): Rename to cosxf2_i387.
73
74         (*sindf2, *sinsf2): Extend operand 1 to XFmode.  Macroize patterns
75         using X87MODEF12 mode macro. Rename patterns to
76         *sin_extend<mode>xf2_i387.  Use SSE_FLOAT_MODE_P to disable patterns
77         for SSE math.
78         (*cosdf2, *cossf2): Ditto.
79         (sincosdf3, sincossf3): Ditto.  Rewrite corresponding splitters
80         to match extended input operands.
81
82         (sincos<mode>3): New expander.
83
84         (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
85         insn patterns and corresponding splitters.
86
87 2007-01-09  Kaz Kojima  <kkojima@gcc.gnu.org>
88
89         * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
90         (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
91
92 2007-01-09  Nicolas Pitre  <nico@cam.org>
93
94         PR target/30173
95         * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
96
97 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
98
99         * target.h (struct gcc_target): New field library_rtti_comdat.
100         * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
101         (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
102         * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
103         * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
104
105 2007-01-08  Geoffrey Keating  <geoffk@apple.com>
106
107         * doc/invoke.texi (Optimize Options): Correct description of -O0.
108
109 2007-01-08  Richard Guenther  <rguenther@suse.de>
110
111         * tree.h (force_fit_type_double): Export.
112         (force_fit_type): Remove.
113         * fold-const.c (force_fit_type_double): New function.
114         (force_fit_type): Remove.
115         (int_const_binop): Use it.
116         (fold_convert_const_int_from_int): Likewise.
117         (fold_convert_const_int_from_real): Likewise.
118         (fold_div_compare): Likewise.
119         (fold_sign_changed_comparison): Likewise.
120         (fold_unary): Likewise.
121         (fold_negate_const): Likewise.
122         (fold_abs_const): Likewise. 
123         (fold_not_const): Likewise.
124         * c-common.c (shorten_compare): Use force_fit_type_double.
125         * convert.c (convert_to_pointer): Likewise.
126
127 2007-01-08  Richard Guenther  <rguenther@suse.de>
128
129         * tree.h (build_int_cst_wide_type): Export.
130         * tree.c (build_int_cst_wide_type): New function.
131         (build_int_cst_wide): Fix comment.
132         * builtins.c (fold_builtin_object_size): Use build_int_cst
133         to build -1 or 0 of the correct type.  Use fit_double_type
134         to check for overflow.
135         * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
136         to build the mask.
137         (decode_field_reference): Likewise.
138         (all_ones_mask_p): Likewise.
139         (native_interpret_int): Use build_int_cst_wide_type.
140         (fold_binary): Use build_int_cst_type to build an all-ones
141         value.
142         * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
143
144 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
145
146         * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
147
148 2007-01-09  Ben Elliston  <bje@au.ibm.com>
149
150         * genautomata.c (STATS_OPTION): New option.
151         (stats_flag): New flag.
152         (gen_automata_option): Handle it.
153         (initiate_automaton_gen): Ditto.
154         (write_automata): Output statistics only if stats_flag is
155         set. Likewise, output time statistics only if time_flag is set.
156         * doc/md.texi (Processor pipeline description): Document new flag.
157
158 2007-01-08  Richard Guenther  <rguenther@suse.de>
159
160         * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
161         * tree.c (build_int_cst_type): Likewise.
162         (size_in_bytes): Don't call force_fit_type on the result.
163         (int_fits_type_p): Use fit_double_type.
164         * fold-const.c (fit_double_type): New function.
165         (force_fit_type): Use it.
166         * tree.h (fit_double_type): Export.
167
168 2007-01-08  Jan Hubicka  <jh@suse.cz>
169
170         * tree-vectorizer.c (gate_increase_alignment): Fix return type.
171         * ipa.c (function_and_variable_visibility): Fix return type.
172
173 2007-01-08  Richard Guenther  <rguenther@suse.de>
174
175         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
176         of offset to build the index.
177         * tree-pretty-print.c (dump_generic_node): Don't build negated
178         const just for printing.
179         * c-pretty-print.c (pp_c_integer_constant): Likewise.
180         * builtins.c (fold_builtin_int_roundingfn): Check if result
181         fits the type by using force_fit_type and comparing the result.
182         * predict.c (predict_loops): Use compare_tree_int for comparison.
183         * tree.c (build_int_cst): Fall back to integer_type_node for
184         NULL_TREE type.
185         (build_int_cst_wide): Assert type is non-null.
186
187 2007-01-08  Roberto Costa  <roberto.costa@st.com>
188
189         * tree-vrp.c (extract_range_from_cond_expr): New.
190         (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
191         * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
192         as expressions.
193         (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
194         * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
195         tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
196         used as expressions.
197         * tree-object-size.c (cond_expr_object_size): New.
198         (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
199
200 2007-01-08  Jan Hubicka  <jh@suse.cz>
201
202         * tree-ssa-forwprop.c (forward_propagate_into_cond,
203         tree_ssa_forward_propagate_single_use_va): Release defs of propagated
204         statement.
205
206 2007-01-08  Richard Guenther  <rguenther@suse.de>
207
208         PR tree-optimization/23603
209         * tree-vrp.c (set_value_range_to_truthvalue): New function.
210         (extract_range_from_binary): Fall back to truthvalue instead of
211         varying for TRUTH_*_EXPR.
212         (extract_range_from_comparison): Fall back to truthvalue instead of
213         varying.
214         (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
215         if all visited PHI values were constant.
216
217 2007-01-08  Jan Hubicka  <jh@suse.cz>
218
219         * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
220         (cgraph_analyze_function): break out from ...
221         (cgraph_finalize_compilation_unit): ... here.
222         (cgraph_expand_function): Remove forgoten commented out line.
223         (cgraph_optimize): Analyze functions.
224
225 2007-01-08  Jan Hubicka  <jh@suse.cz>
226
227         * tree-pas.h (TODO_remove_function): New flag.
228         (TODO_update*): Renumber.
229         (pass_ipa_increase_alignment,
230         pass_ipa_function_and_variable_visibility): New passes.
231         * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
232         (cgraph_function_and_variable_visibility): Move to ipa.c
233         (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
234         cgraph_increase_alignment.
235         * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
236         (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
237         calling tree-inline.
238         (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
239         (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
240         * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
241         (gate_increase_alignment): New function.
242         (pass_ipa_increase_alignment): New pass.
243         * ipa.c: Inline tree-pass.h and timevar.h
244         (function_and_variable_visibility): Move here from cgraphunit.c
245         * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
246         * passes.c (init_optimization_passes): Add the two new passes.
247         (execute_todo): Handle cgraph_remove_functions.
248
249 2007-01-08  Nick Clifton  <nickc@redhat.com>
250
251         * config/frv/predicates.md (reg_or_0_operand): Accept
252         CONST_DOUBLEs.
253
254 2007-01-08  Ralf Cors├ępius <ralf.corsepius@rtems.org>
255
256         * config/bfin/rtems.h, config/bfin/t-rtems: New.
257         * config.gcc: Add bfin*-rtems*.
258
259 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
260
261         * c.opt: Add -flax-vector-conversions.
262         * c-typeck.c (convert_for_assignment): Pass flag to
263         vector_types_convertible_p to allow emission of note.
264         (digest_init): Likewise.
265         * c-opts.c: Handle -flax-vector-conversions.
266         * c-common.c (flag_lax_vector_conversions): New.
267         (vector_types_convertible_p): Unless -flax-vector conversions
268         has been passed, disallow conversions between vectors with
269         differing numbers of subparts and/or element types.  If such
270         a conversion is disallowed, possibly emit a note on the first
271         occasion only to inform the user of -flax-vector-conversions.
272         The new last argument specifies this.
273         * c-common.h (flag_lax_vector_conversions): New.
274         (vector_types_convertible_p): Add extra argument.
275         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
276         char_type_node for V*QI type vectors.
277         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
278         Update to satisfy new typechecking rules.
279         * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
280         C and C++ variants.
281         * doc/invoke.texi (C Dialect Options): Document
282         -flax-vector-conversions.
283
284 2007-01-08  Mark Shinwell  <shinwell@codesourcery.com>
285
286         PR tree-optimization/29877
287         * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
288         a register variable on the RHS to not be replaceable.
289
290 2007-01-08  Chen Liqin  <liqin@sunnorth.com.cn>
291         * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
292         * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
293         const_simm15, const_pow2, const_npow2): Added.
294         * config/score/misc.md (insv, extv, extzv, movmemsi, 
295         move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
296         * config/score/score.c (score_address_cost, score_select_cc_mode): 
297         Added.
298         Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
299         Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
300         Update score_print_operand.
301         * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
302         Adjust register allocate order and update some macro define.
303         * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
304         mdx_block_move_straight, mdx_block_move_loop_head,
305         mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
306         mdx_block_move): Added.
307         (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
308         mdp_limm): Updated and fix some bug and typo.
309         * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
310         (movsf, movdf, doloop_end): Added.
311
312 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
313
314         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
315         config/arm/thumb2.md: Fix comment typos.
316         * doc/extend.texi: Fix a typo.
317
318 2007-01-07  Eric Christopher  <echristo@apple.com>
319
320         * configure.ac: Check for __stack_chk_fail for darwin.
321         * configure: Regenerate.
322
323 2007-01-07  Richard Guenther  <rguenther@suse.de>
324
325         * tree-vrp.c (extract_range_from_assert): CSE calls to
326         compare_values where possible.
327         (extract_range_from_unary_expr): Likewise.
328
329 2007-01-07  Anatoly Sokolov <aesok@post.ru>
330
331         * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
332         * config/avr/avr.c (call_insn_operand): Delete function.
333         * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
334         instead of register number. Use predicates.
335         * config/avr/predicates.md (const0_operand, reg_or_0_operand,
336         call_insn_operand): Add.
337
338 2007-01-06  Jan Hubicka  <jh@suse.cz>
339
340         * tree-pass.h (pass_build_cgraph_edges): Declare.
341         * cgraphunit.c (record_refernece): Move to cgraphbuild.c
342         (visited_nodes): Remove.
343         (cgraph_create_edges): Move to cgraphbuild.c; rename to
344         build_cgrpah_edges; make visited_nodes local.
345         (cgraph_process_new_functions): DO not call initialize_inline_failed.
346         (record_references_in_initializer): Move to cgraphbuild.c
347         (initialize_inline_failed, rebuild_cgraph_edges,
348         pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
349         (verify_cgraph_node): Make visited_nodes local.
350         (cgraph_analyze_function): Do not call cgraph_create_edges and
351         initialize_inline_failed.
352         (cgraph_expand_function): Do not call cgraph_lower_function;
353         assert that function is already lowered.
354         * Makefile.in (cgraphbuild.o): New.
355         * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
356         at the end of lowering passes.
357
358 2007-01-06  Steven Bosscher  <steven@gcc.gnu.org>
359
360         * ifcvt.c (cond_move_convert_if_block): New function, code
361         factored out from...
362         (cond_move_process_if_block): ...here.  Call the new function
363         on the THEN and ELSE blocks.
364         (merge_if_block): Do not copy global_live_at_end, merge_blocks
365         already takes care of this.
366
367 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
368
369         PR c/19978
370         * tree.h (TREE_OVERFLOW_P): New.
371         * c-typeck.c (parser_build_unary_op): Warn only if result
372         overflowed and operands did not.
373         (parser_build_binary_op): Likewise.
374         (convert_for_assignment): Remove redundant overflow_warning.
375         * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
376
377 2007-01-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
378
379         * c-typeck.c (store_init_value): Split over two lines to follow
380         the GNU coding style.
381
382 2007-01-05  Benjamin Kosnik  <bkoz@redhat.com>
383
384         * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
385         __GXX_EXPERIMENTAL_CXX0X__.
386         * doc/cpp.texi: Same.
387
388 2007-01-05  Richard Guenther  <rguenther@suse.de>
389
390         PR middle-end/27826
391         * tree.c (get_narrower): Do not construct COMPONENT_REFs
392         with mismatched types.  Instead explicitly build a
393         conversion NOP_EXPR.
394
395 2007-01-05  Ian Lance Taylor  <iant@google.com>
396
397         * c-common.c (decl_with_nonnull_addr_p): New function.
398         (c_common_truthvalue_conversion): Call it.
399         * c-typeck.c (build_binary_op): Likewise.
400         * c-common.h (decl_with_nonnull_addr_p): Declare.
401
402 2007-01-05  Jakub Jelinek  <jakub@redhat.com>
403
404         PR c/30360
405         * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
406         denom against 0.0.
407
408 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
409
410         * doc/install.texi (Final install): Document the fact that
411         the GNAT runtime should not be stripped.
412
413 2007-01-04  Jan Hubicka  <jh@suse.cz>
414
415         * tree-inline.c (fold_marked_statements): Update operand caches
416         and EH after folding
417
418 2007-01-04  Ian Lance Taylor  <iant@google.com>
419
420         * c-common.c (check_function_nonnull): Whitespace fix.
421
422 2007-01-04  Jan Hubicka  <jh@suse.cz>
423
424         * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
425         comitted older version of patch.
426         (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
427         function, celanup cfg and collect garbage.
428
429 2007-01-04  Mike Stump  <mrs@apple.com>
430
431         * Makefile.in (mostlyclean): Don't remove libgcc anymore.
432         (clean): Likewise.
433
434 2007-01-04  Eric Christopher  <echristo@apple.com>
435
436         * libgcc2.c (__bswapsi2): Use SItype.
437         (__bswapdi2): Use DItype.
438         * libgcc2.h: Update for above.
439
440 2007-01-04  Paul Brook  <paul@codesourcery.com>
441
442         * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
443         mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
444         mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
445         umulsidi3, umulsidi3adddi, smulsi3_highpart,
446         umulsi3_highpart): Make conditional on !arm_arch6.
447         (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
448         mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
449         mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
450         umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
451         umulsi3_highpart_v6): New insns.
452
453 2007-01-04  Roger Sayle  <roger@eyesopen.com>
454
455         * fold-const.c (fold_convert): When casting an expression to void,
456         fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
457         have a type.  Instead of attempting to build a NOP_EXPR, return
458         these "special" trees directly.
459
460 2007-01-04  Joseph Myers  <joseph@codesourcery.com>
461
462         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
463         MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
464         rs6000_cost->fp not 0 as adjustment for outer NEG.
465
466 2007-01-04  Jan Hubicka  <jh@suse.cz>
467
468         * cgraph.c (cgraph_release_function_body): New function.
469         (cgraph_remove_node): Use it.
470         * cgraph.h (cgraph_release_function_body): Declare.
471         * cgraphunit.c (cgraph_expand_function): Use it.
472         * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
473         * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
474         is initialized and while compilation of other function is running.
475         * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
476         statement CFG annotations from here to ...
477         * tree-cfg.c (delete_tree_cfg_annotations): ... here.
478
479 2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>
480
481         * cfgloop.h (enum li_flags): Make the constants powers of two.
482
483 2007-01-04  Jan Hubicka  <jh@suse.cz>
484
485         * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
486         set.
487         (fold_marked_statements): New function.
488         (optimize_inline_calls, tree_function_versioning): Fold new statements.
489         * tree-inline.h (copy_body_data): Add statements_to_fold.
490
491 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
492
493         * config.gcc: Mention libgcc/config.host.
494         * Makefile.in: Update comments mentioning libgcc.
495         (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
496         (all.cross, start.encap, rest.encap, rest.cross): Update
497         dependencies for libgcc move.
498         (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
499         (clean-target, clean-target-libgcc): Delete.
500         (srcdirify, GCC_EXTRA_PARTS): New macros.
501         (libgcc-support, libgcc.mvars): New rules.
502         (distclean): Remove mention of mklibgcc.
503         (install): Don't reference INSTALL_LIBGCC.
504         (install-common): Don't reference EXTRA_PARTS.
505         (install-libgcc, install-multilib): Delete rules.
506         * mklibgcc.in: Delete file.
507         * doc/configfiles.texi: Don't mention mklibgcc.
508
509         * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
510         * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
511         * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
512         * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
513         (mklibgcc, ldblspecs): Likewise.
514
515         * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
516         (posixpre.def): Use $(T).
517         (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
518         (SHLIB_SRC, SHLIB_INSTALL): Delete.
519         (SHLIB_LINK): Make dummy.
520         * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
521
522         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
523
524         * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
525         * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
526         config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
527         config/rs6000/t-newas, config/sparc/t-elf: Likewise.
528
529         * configure.ac (all_outputs): Remove mklibgcc.
530         * configure: Regenerated.
531
532 2007-01-03  Josh Conner  <jconner@apple.com>
533
534         PR middle-end/29683
535         * calls.c (compute_argument_addresses): Set stack and stack_slot
536         for partial args, too.
537         (store_one_arg): Use locate.size.constant for the size when
538         generating a save_area.
539
540 2007-01-03  Robert Kennedy <jimbob@google.com>
541
542         * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
543         whose definitions are deleted due to basic block merging.
544
545 2007-01-03  Paul Brook  <paul@codesourcery.com>
546
547         PR target/16634
548         * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
549         functions.
550         (use_return_insn): Return 0 for Thumb interrupt functions.
551         (print_multi_reg): Add rfe argument for IRQ returns.
552         (arm_output_epilogue): Pop interrupt return address directly into PC.
553         (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
554
555 2007-01-03  Paul Brook  <paul@codesourcery.com>
556
557         Merge from sourcerygxx-4_1.
558         * config/arm/thumb2.md: New file.
559         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
560         Thumb-2.
561         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
562         * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
563         (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
564         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
565         tables.
566         (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
567         * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
568         comptibility.
569         * config/arm/ieee754-sf.S: Ditto.
570         * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
571         (thumb1_base_register_rtx_p): ... to this.
572         (thumb_index_register_rtx_p): Rename...
573         (thumb1_index_register_rtx_p): ... to this.
574         (thumb_output_function_prologue): Rename...
575         (thumb1_output_function_prologue): ... to this.
576         (thumb_legitimate_address_p): Rename...
577         (thumb1_legitimate_address_p): ... to this.
578         (thumb_rtx_costs): Rename...
579         (thumb1_rtx_costs): ... to this.
580         (thumb_compute_save_reg_mask): Rename...
581         (thumb1_compute_save_reg_mask): ... to this.
582         (thumb_final_prescan_insn): Rename...
583         (thumb1_final_prescan_insn): ... to this.
584         (thumb_expand_epilogue): Rename...
585         (thumb1_expand_epilogue): ... to this.
586         (arm_unwind_emit_stm): Rename...
587         (arm_unwind_emit_sequence): ... to this.
588         (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
589         thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
590         thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
591         arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
592         thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
593         thumb2_output_casesi): New functions.
594         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
595         (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
596         FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
597         THUMB2_WORK_REGS): Define.
598         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
599         arm_condexec_mask, arm_condexec_masklen)): New variables.
600         (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
601         (arm_override_options): Check new CPU capabilities.
602         Set new architecture flag variables.
603         (arm_isr_value): Handle v7m interrupt functions.
604         (user_return_insn): Return 0 for v7m interrupt functions.  Handle
605         Thumb-2.
606         (const_ok_for_arm): Handle Thumb-2 constants.
607         (arm_gen_constant): Ditto.  Use movw when available.
608         (arm_function_ok_for_sibcall): Return false for v7m interrupt
609         functions.
610         (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
611         (thumb_find_work_register, arm_load_pic_register,
612         legitimize_tls_address, arm_address_cost, load_multiple_sequence,
613         emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
614         print_multi_reg, output_mov_long_double_fpa_from_arm,
615         output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
616         output_mov_double_fpa_from_arm, output_move_double,
617         arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
618         output_return_instruction, arm_output_function_prologue,
619         arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
620         arm_output_mi_thunk, thumb_set_return_address): Ditto.
621         (arm_expand_prologue): Handle Thumb-2.  Use arm_save_coproc_regs.
622         (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
623         (arithmetic_instr, shift_op): Use arm_shift_nmem.
624         (arm_print_operand): Use arm_print_condition.  Handle '(', ')', '.',
625         '!' and 'L'.
626         (arm_final_prescan_insn): Use extract_constrain_insn_cached.
627         (thumb_expand_prologue): Use thumb_set_frame_pointer.
628         (arm_file_start): Output directive for unified syntax.
629         (arm_unwind_emit_set): Handle stack alignment instruction.
630         * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
631         Add v6t2, v7, v7a, v7r and v7m.
632         (RETLDM): Add Thumb-2 code.
633         (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
634         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
635         (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
636         TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
637         THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
638         ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
639         THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
640         CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
641         ADJUST_INSN_LENGTH): Define.
642         (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
643         STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
644         BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
645         PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
646         SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
647         TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
648         HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
649         HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
650         REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
651         REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
652         LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
653         GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
654         ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
655         FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
656         PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
657         (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
658         * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
659         cortex-m3.
660         * config/arm/arm-tune.md: Regenerate.
661         * config/arm/arm-protos.h: Update prototypes.
662         * config/arm/vfp.md: Enable patterns for Thumb-2.
663         (arm_movsi_vfp): Add movw alternative.  Use output_move_vfp.
664         (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
665         (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
666         thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
667         * config/arm/libunwind.S: Add Thumb-2 code.
668         * config/arm/constraints.md: Update include Thumb-2.
669         * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
670         * config/arm/ieee754-df.S: Ditto.
671         * config/arm/bpabi.S: Ditto.
672         * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
673         * config/arm/predicates.md (low_register_operand,
674         low_reg_or_int_operand, thumb_16bit_operator): New.
675         (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
676         (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
677         * config/arm/t-arm-elf: Add armv7 multilib.
678         * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
679         Include thumb2.md.
680         (UNSPEC_STACK_ALIGN, ce_count): New.
681         (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
682         arm_zero_extendsidi2, arm_zero_extendqidi2): New
683         insns/expanders.
684         * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
685         (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
686         thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
687         * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
688         (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
689         thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
690         insns.
691         * doc/extend.texi: Document ARMv7-M interrupt functions.
692         * doc/invoke.texi: Document Thumb-2 new cores+architectures.
693
694 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
695
696         * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
697         (struct _Unwind_Context): Rename args_size to flags, remove
698         signal_frame field, add a new args_size field and version field.
699         (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
700         _Unwind_IsExtendedContext): New inline functions.
701         (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
702         Assume by_value array is only present if _Unwind_IsExtendedContext.
703         (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
704         _Unwind_IsSignalFrame.
705         (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
706         (uw_update_context_1): Use _Unwind_SetSignalFrame.
707         (uw_init_context_1): Initialize context->flags to
708         EXTENDED_CONTEXT_BIT.
709         * config/rs6000/linux-unwind.h (frob_update_context): Use
710         _Unwind_SetSignalFrame.
711
712 2007-01-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
713
714         PR middle-end/30353
715         * gimplify.c (gimplify_modify_expr_complex_part): Move below
716         tree_to_gimple_tuple.  Call tree_to_gimple_tuple when we need
717         the value.
718
719 2007-01-03  Kazu Hirata  <kazu@codesourcery.com>
720
721         * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
722         REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
723         RET, AT_SP): Remove.
724         * config/i386/i386.md (*sse_prologue_save_insn): Use return
725         instead of RET.
726
727         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
728         * cfgbuild.c (find_basic_blocks): Likewise.
729         * cfgrtl.c (rtl_create_basic_block): Likewise.
730         * function.c (temp_slots_at_level): Likewise.
731         * reg-stack.c (stack_regs_mentioned): Likewise.
732         * regclass.c (allocate_reg_info): Likewise.
733         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
734         set_bb_for_stmt, move_block_to_fn): Likewise.
735         * tree-complex.c (tree_lower_complex): Likewise.
736         * vec.h (VEC_safe_grow_cleared): New.
737
738         * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
739
740 2007-01-03  Zdenek Dvorak <dvorakz@suse.cz>
741
742         * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
743         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
744         to loop_version.
745         * cfgloopmanip.c (scale_loop_frequencies): Export.
746         (loopify): Scale the frequencies by prescribed coefficients.
747         (set_zero_probability): New function.
748         (duplicate_loop_to_header_edge): Improve updating of frequencies.
749         (lv_adjust_loop_entry_edge, loop_version): Set probabilities
750         and frequencies according to arguments.
751         * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
752         correctly.
753         * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
754         * modulo-sched.c (sms_schedule): Set probabilities for entering
755         versioned loop correctly.
756         * tree-vect-transform.c (vect_transform_loop): Ditto.
757         * cfgloop.h (loopify, loop_version): Declaration changed.
758         (scale_loop_frequencies): Declared.
759
760 2007-01-02  Jan Hubicka  <jh@suse.cz>
761
762         * cgraph.c: Include tree-flow.h
763         (cgraph_add_new-function): Handle IPA_SSA mode; execute
764         early_local_passes.
765         * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
766         * tree-pass.h (pass_all_early_optimizations): Declare.
767         * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
768         early_local_passes.
769         (cgraph_analyze_function): Do early_local_passes.
770         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
771         Do not add referenced vars.
772         * tree-optimize.c (gate_all_optimizations): Do not execute when not in
773         SSA form.
774         (gate_all_early_local_passes): New gate.
775         (pass_early_local_passes): Use new gate.
776         (execute_early_local_optimizations): New functions.
777         (gate_all_early_optimizations): New gate.
778         (pass_all_early_optimizations): New pass.
779         (execute_free_datastructures): Free SSA only when initialized.
780         (gate_init_datastructures): Init only when optimizing.
781         (tree_lowering_passes): Do early local passes when called late.
782         * tree-profile.c (do_tree_profiling): Don't profile functions added
783         late.
784         (do_early_tree_profiling, pass_early_tree_profile): Kill.
785         * tree-cfg.c (update_modified_stmts): Do not update when operands are
786         not active.
787         * passes.c (init_optimizations_passes): Reorder so we go into SSA
788         during early_local_passes.
789         * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
790
791
792 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
793
794         * Makefile.in: Update copyright year.
795
796 2007-01-02  Carlos O'Donell  <carlos@codesourcery.com>
797
798         * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
799         in $(lang_checks) and check-consistency targets.
800
801 2007-01-02  Jan Hubicka  <jh@suse.cz>
802
803         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
804         Do not add referenced vars.
805         * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
806         are not active.
807         * passes.c (init_optimization_passes): Put mudflap_2 after
808         free_datastructures.
809
810 2007-01-02  Jan Hubicka  <jh@suse.cz>
811
812         * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
813         Set NOTHROW flag on call statements proved to be nothrow.
814         Update statement of local calls so new pure/const functions are
815         updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
816         goto receivers.
817         (tree_rest_of_compilation): Register hooks and initialize bitmap
818         early. Do not set after_inlining flag.
819
820 2007-01-02  Steve Ellcey  <sje@cup.hp.com>
821
822         * sbitmap.c (HOST_BITS_PER_LONG_LONG):  Change to
823         HOST_BITS_PER_LONGLONG
824
825 2007-01-02  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
826
827         PR c/19977
828         * c-typeck.c (store_init_value): Don't emit pedantic overflow
829         warning for non-static initializers.
830
831 2007-01-02  Steven Bosscher  <steven@gcc.gnu.org>
832
833         * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
834         m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
835         rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
836         Always use set_unique_reg_note to add REG_EQUAL notes.
837
838 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
839
840         Revert:
841         2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
842
843         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
844         * cfgbuild.c (find_basic_blocks): Likewise.
845         * cfgrtl.c (rtl_create_basic_block): Likewise.
846         * function.c (temp_slots_at_level): Likewise.
847         * reg-stack.c (stack_regs_mentioned): Likewise.
848         * regclass.c (allocate_reg_info): Likewise.
849         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
850         set_bb_for_stmt, move_block_to_fn): Likewise.
851         * tree-complex.c (tree_lower_complex): Likewise.
852         * vec.h (VEC_safe_grow_cleared): New.
853
854 2007-01-02  Ian Lance Taylor  <iant@google.com>
855
856         * c-common.c (c_common_truthvalue_conversion): When warning about
857         using an assignment as a truth value, set TREE_NO_WARNING.
858
859 2007-01-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
860
861         PR middle-end/7651
862         * c.opt (Wold-style-declaration): New.
863         * doc/invoke.texi (C-only Warning Options): New.
864         (Wold-style-declaration): Document it.
865         (Wextra): Enabled by -Wextra.
866         * c-opts.c (c_common_post_options): Enabled by -Wextra.
867         * c-decl.c (declspecs_add_scspec): Replace -Wextra with
868         -Wold-style-declaration.
869
870 2007-01-02  Kazu Hirata  <kazu@codesourcery.com>
871
872         * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
873         * cfgbuild.c (find_basic_blocks): Likewise.
874         * cfgrtl.c (rtl_create_basic_block): Likewise.
875         * function.c (temp_slots_at_level): Likewise.
876         * reg-stack.c (stack_regs_mentioned): Likewise.
877         * regclass.c (allocate_reg_info): Likewise.
878         * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
879         set_bb_for_stmt, move_block_to_fn): Likewise.
880         * tree-complex.c (tree_lower_complex): Likewise.
881         * vec.h (VEC_safe_grow_cleared): New.
882
883 2007-01-02  Douglas Gregor  <doug.gregor@gmail.com>
884
885         * c-common.c(c_common_nodes_and_builtins): Since variants of
886         void_type_node get built before it is given a name, we need to
887         give those variants the name, too.
888         (complete_array_type): We need to work with the canonical main
889         type of the array, from which we will build the qualified version.
890         * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
891         * print-tree.c (print_node): Display canonical type information
892         for each type.
893         * stor-layout.c (layout_type): When we don't know the
894         alignment of a type for which we're building an array, we end up
895         guessing wrong, so make the type require structural equality.
896         * tree.c (make_node_stat): When we build a new type, it is its
897         own canonical type.
898         (build_type_attribute_qual_variant): When building an attribute
899         variant, its canonical type is the non-attribute variant. However,
900         if the attributes are target-dependent and they differ, we need to
901         use structural equality checks for this type.
902         (build_qualified_type): A qualified type is not equivalent to its
903         unqualified variant; set the canonical type appropriately.
904         (build_distinct_type_copy): When building a distinct type from
905         another type, the new type is its own canonical type.
906         (build_variant_type_copy): When building a new type variant, we
907         assume that it is equivalent to the original type.
908         (build_pointer_type_for_mode): When building a pointer type, also
909         build a canonical type pointer.
910         (build_reference_type_for_mode): When building a reference type,
911         also build a canonical type reference.
912         (build_index_type): When we can't hash an index type (e.g.,
913         because its maximum value is negative), the index type requires
914         structural equality tests.
915         (build_array_type): Build the canonical form of an array type.
916         (build_function_type): Function types require structural equality,
917         because they contain default arguments, attributes, etc.
918         (build_method_type_directly): Ditto for method types.
919         (build_offset_type): Build the canonical offset type.
920         (build_complex_type): Build the canonical vector type.
921         (make_vector_type): Build the canonical vector type.
922         * tree.h (TYPE_CANONICAL): New.
923         (TYPE_STRUCTURAL_EQUALITY_P): New.
924         (SET_TYPE_STRUCTURAL_EQUALITY): New.
925         (struct tree_type): Added "canonical" field.
926         * params.h (VERIFY_CANONICAL_TYPES): New.
927         * doc/c-tree.texi (TYPE_CANONICAL): Document.
928         (TYPE_STRUCTURAL_EQUALITY_P): Document.
929         (SET_TYPE_STRUCTURAL_EQUALITY): Document.
930         * doc/invoke.texi (verify-canonical-types): Document --param
931         parameter for verifying canonical types.
932
933 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
934
935         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
936         powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
937         powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
938         powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
939         tm_file.
940         * config/rs6000/e500.h: New.
941         * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
942         TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
943         Remove.
944         * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
945         TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
946         TARGET_E500_DOUBLE): Remove.
947         * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
948         TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
949         * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
950         * config/rs6000/rs6000.c (rs6000_override_options): Use
951         CHECK_E500_OPTIONS.
952
953 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
954
955         * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
956         TARGET_E500_DOUBLE), not TARGET_E500, for %y.
957         (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
958         rs6000_emit_cmove): Don't check TARGET_E500.
959         * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
960         sordered): Don't check TARGET_E500.
961
962 2007-01-01  Eric Christopher  <echristo@apple.com>
963
964         * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
965         HARD_REGISTER_NUM_P.
966
967 2007-01-01  Roger Sayle  <roger@eyesopen.com>
968
969         * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
970         "X eq/ne (C1^C2)".  Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
971         has no side-effects.  Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
972         eq/ne Y".
973
974 2007-01-01  Mike Stump  <mrs@apple.com>
975
976         * configure.ac: Remove support for building with Apple's gcc-3.1.
977
978 2007-01-02  Joseph Myers  <joseph@codesourcery.com>
979
980         PR middle-end/30311
981         * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
982         REG is a hard register.  Do not modify REG before calling
983         subreg_nregs.
984         * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
985         multiple of the size of YMODE for certain lowpart cases.
986
987 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
988
989         PR middle-end/30253
990         * gimplify (voidify_wrapper_expr): Update for
991         GIMPLE_MODIFY_STMT.
992
993 2007-01-01  Andreas Schwab  <schwab@suse.de>
994
995         PR target/29166
996         * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
997         save of BR0 in extra_spill_size instead of spill_size.
998         (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
999         area.
1000         (ia64_expand_epilogue): Restore BR0 from its new location.
1001
1002 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
1003
1004         * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
1005         Use a temporary variable if the left hand side is not a gimple
1006         register.
1007
1008 2007-01-01  Andrew Pinski  <pinskia@gmail.com>
1009
1010         * gimplify.c (gimplify_return_expr): Make the temporary variable
1011         for the return expression, a gimple register variable.
1012
1013 2007-01-01  Jan Hubicka  <jh@suse.cz>
1014
1015         * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
1016         INSN_LIST.
1017
1018 2007-01-01  Mike Stump  <mrs@apple.com>
1019
1020         * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
1021         .literal16.
1022         * config/darwin.c (machopic_select_rtx_section): Use
1023         HAVE_GAS_LITERAL16.
1024         (darwin_mergeable_constant_section): Likewise.
1025         * configure: Regenerate.
1026         * config.in: Regenerate.
1027
1028 2007-01-01  Jan Hubicka  <jh@suse.cz>
1029             Andrew Pinski  <pinskia@gmail.com>
1030
1031         * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
1032         before starting IPA passes.