PR target/6077
[official-gcc.git] / gcc / ChangeLog
blob9c8a86183895cfffbfca0a12ec0b26695212a141
1 2005-01-06  Roger Sayle  <roger@eyesopen.com>
3         PR target/6077
4         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
5         and %{.S:...} (and their negative variants) to test whether the
6         input file is assembler or pre-processed-assembler independent of
7         the actual filename extension.
9 2005-01-06  Roger Sayle  <roger@eyesopen.com>
11         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
12         of sign or zero extended values.
14 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
16         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
17         for IBM long double format correctly.
19 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
20         
21         Fix PR tree-optimization/18792
23         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
24         to first_loop_depth, and use loop depth instead of loop number.
25         (build_classic_dir_vector): Ditto.
26         (compute_data_dependences_for_loop): Use depth, not loop number.
27         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop 
28         number. Pass in loops, instead of loop numbers.
29         (gather_interchange_stats): Ditto.
30         (linear_transform_loops): Ditto.
32 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
34         PR rtl-opt/13299
35         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
36         biv_fits_mode_p, extension_within_bounds_p): New functions.
37         (check_ext_dependent_givs): Use them.
39 2005-01-06  Roger Sayle  <roger@eyesopen.com>
41         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
42         more than one barrier, in which case we should delete them all.
44 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
46         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
48 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
49         
50         Fix PR middle-end/19286
51         Fix PR debug/19267
52         * dwarf2out.c (gen_subprogram_die): If we've already tried to
53         output this subprogram, simply ignore this attempt to do it again.
54         (add_abstract_origin_attribute): Don't abort trying to add the abstract
55         origin attribute if it's not possible.
56         (gen_block_die): Don't ignore subblocks of "unused" blocks.
57         (decls_for_scope): Ditto.
58         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
59         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
60         
61 2005-01-05  Richard Henderson  <rth@redhat.com>
63         PR target/11327
64         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
65         (bdesc_2arg): Use it.
66         (ix86_expand_binop_builtin): Force operands into registers
67         when optimizing.
68         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
69         ix86_expand_sse_compare, ix86_expand_sse_comi, 
70         ix86_expand_builtin): Likewise.
72 2005-01-05  Richard Henderson  <rth@redhat.com>
74         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
75         and VEC_SELECT.
76         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
77         (mulv4hi3): Set itanium_class mmmul.
78         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
79         (fpack): Rename from fpack_sfsf.
81 2005-01-05  Richard Henderson  <rth@redhat.com>
83         PR rtl-opt/10692
84         * reload1.c (do_input_reload): Restrict the optimization deleteing
85         a previous output reload to RELOAD_FOR_INPUT.
87 2005-01-05  Steven Bosscher  <stevenb@suse.de>
89         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
90         comment that we fall through after case.
91         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
92         (distribute_links): Likewise.
93         * cse.c (cse_insn): Likewise.
94         * cselib.c (cselib_invalidate_mem): Likewise.
95         * df.c: Update comments at the top of the file.
96         (read_modify_subreg_p): Update comments here too.
97         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
98         * flow.c (mark_set_1): Likewise.
99         (mark_used_regs): Likewise.
100         * gcse.c (mems_conflict_for_gcse_p): Likewise.
101         (canon_list_insert): Likewise.
102         (mark_set): Likewise.
103         (try_replace_reg): Likewise.
104         (store_killed_in_insn): Likewise.
105         * loop.c (count_one_set): Likewise.
106         (basic_induction_var): Likewise.
107         * postreload-gcse.c (find_mem_conflicts): Likewise.
108         * postreload.c (reload_combine_note_store): Likewise.
109         (move2add_note_store): Likewise.
110         * reload.c (find_equiv_reg): Likewise.
111         (mark_referenced_resources): Likewise.
112         * rtlanal.c (set_noop_p): Likewise.
113         (note_stores): Likewise.
114         (note_uses): Likewise.
115         * sched-deps.c (sched_analyze_1): Likewise.
116         * sched-rgn.c (check_live_1): Likewise.
117         (update_live_1): Likewise.
118         * config/i860/i860.c: Likewise.
120         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
121         an lvalue.
122         (ZERO_EXTRACT): Mention that this one can be an lvalue.
124         * doc/rtl.texi: Update documentation for bit-fields and SET.
126 2005-01-05  Roger Sayle  <roger@eyesopen.com>
128         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
130 2005-01-05  Jan Hubicka  <jh@suse.cz>
131             Richard Henderson  <rth@redhat.com>
133         PR target/18910
134         * config/i386/i386.c (ix86_expand_move): Handle tls symbols 
135         with an offset.
137 2005-01-05  Richard Henderson  <rth@redhat.com>
139         PR target/12902
140         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
141         (sse_shufps): Change operand 3 to const_int_operand.
142         (sse2_storelps): Fix typo in template.
143         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
144         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
145         (ix86_expand_builtin): Likewise.
147 2005-01-05  Julian Brown  <julian@codesourcery.com>
149         * config/arm/arm.c (arm_return_in_memory): Treat complex types
150         as aggregates for AAPCS ABIs.
152 2005-01-05  Stan Shebs  <shebs@apple.com>
154         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
155         Mach-O getters if ppc64.
156         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
157         size argument.
158         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
159         signed four-byte field for global code case.
160         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
162 2005-01-05  Roger Sayle  <roger@eyesopen.com>
164         PR middle-end/19100
165         * c-common.c: Include real.h.
166         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
167         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
168         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
169         * Makefile.in (c-common.o): Update dependencies.
171 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
173         * c-parse.in (asm_string): Add trailing semicolon.
175 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
177         * c-parse.in (asm_string): New.  Don't allow wide strings in
178         'asm'.
179         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
180         asm_string instead of STRING.
182 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
184         * c-typeck.c (constructor_no_implicit): Remove.
185         (set_designator, process_init_element): Don't check
186         constructor_no_implicit.
188 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
189             Kaz Kojima  <kkojima@gcc.gnu.org>
191         PR target/16482
192         * lcm.c (create_pre_exit): New.
193         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
194         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
196 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
198         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
199         -msoft-float in target_float_switch.
200         * arm.c (arm_override_options): Fix processing of target_float_switch.
202 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
204         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
205         preferencing.
207 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
209         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
210         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
212 2005-01-04  Roger Sayle  <roger@eyesopen.com>
214         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
215         if deleting the then-block allows the test-block to fallthru to the
216         else-block.
218 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
220         PR c/19152
221         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
222         after the full declaration if the are in two different TUs.
224 2005-01-04  Richard Henderson  <rth@redhat.com>
226         PR tree-opt/19158
227         * tree-sra.c (generate_one_element_init): Just
228         call gimplify_and_add.
229         (generate_element_init): Record the
230         new referenced variables and mark them for renaming
231         and split out to ...
232         (generate_element_init_1): This.
233         (scalarize_init): Don't call push_gimplify_context/
234         pop_gimplify_context.
236 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
238         * toplev.c (get_src_pwd): Handle failure of getpwd().
240 2005-01-04  Roger Sayle  <roger@eyesopen.com>
242         * fold-const.c (fold_single_bit_test): Delete unreachable handling
243         of TRUTH_NOT_EXPR.
244         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
245         all the cases handled by it are inverted by invert_truthvalue.
247 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
249         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
250         (save_register_windowsi): Likewise.
252 2005-01-04  Richard Henderson  <rth@redhat.com>
254         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
256 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
258         PR middle-end/17767
259         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
260         any simplifications of vector mode comparison operators.
261         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
263 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
264             Devang Patel  <dpatel@apple.com>
266         PR tree-optimization/18308
267         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
268         the operands before creating a new expression.
269         * dojump.c (do_jump): Make drop_through_label available
270         for all cases.  Add expansion of COND_EXPR.
272 2005-01-04  Ira Rosen  <irar@il.ibm.com>
274         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
275         INTEGER_CST instead of TREE_CONSTANT.
276         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
277         instead of TREE_CONSTANT.
278         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
279         instead of TREE_CONSTANT.
281 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
283         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
285 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
287         PR target/19240
288         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
289         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
291 2005-01-03  Richard Henderson  <rth@redhat.com>
293         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
294         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
295         fold_convert_const_real_from_real): Split out from ...
296         (fold_convert_const): ... here.
298 2005-01-03  Richard Henderson  <rth@redhat.com>
300         PR target/19235
301         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
302         (mov<MMXMODEI>_internal): Likewise.
303         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
304         Add V2SF case; use it for SSE1; don't use TI.
305         (movdf_integer): Likewise.
306         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
308 2005-01-03  Ira Rosen  <irar@il.ibm.com>
310         * tree-vectorizer.c (vect_strip_conversions): New function.
311         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
312         check for binary class. 
314 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
316         Fix PR debug/17924
317         Fix PR debug/19191
318         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
319         is a decl.
320         * gimple-low.c (mark_blocks_with_used_vars): New function.
321         (mark_blocks_with_used_subblocks): Ditto.
322         (mark_used_blocks): Ditto.
323         (pass_mark_used_blocks): New pass.
324         * tree-inline.c: Include debug.h.
325         (expand_call_inline): Call outlining_inline_function here.
326         * tree-optimize.c (init_tree_optimization_passes): Add
327         pass_mark_used_blocks. 
328         * tree-pass.h (pass_mark_used_blocks): New.
329         * Makefile.in (tree-inline.o): Add debug.h dependency.
331 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
333         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
334         VAR_DECLs to have weak_import attribute.
336         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
337         'struct ucontext'.
339 2004-01-03  Steven Bosscher  <stevenb@suse.de>
341         * passes.c (rest_of_compilation): Don't run regmove if only
342         flag_expensive_optimizations, require flag_regmove instead.
344 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
346         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
347         register "sparc".
348         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
349         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
350         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
351         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
353 2005-01-03  Richard Henderson  <rth@redhat.com>
355         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
356         (ia64_const_ok_for_letter_p): New.
357         (ia64_const_double_ok_for_letter_p): New.
358         (ia64_extra_constraint): New.
359         (ia64_expand_vecint_compare): New.
360         (ia64_expand_vcondu_v2si): New.
361         (ia64_expand_vecint_cmov): New.
362         (ia64_expand_vecint_minmax): New.
363         (ia64_print_operand): Add 'v'.
364         (ia64_preferred_reload_class): New.
365         (ia64_vector_mode_supported_p): New.
366         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
367         (PREFERRED_RELOAD_CLASS): Move to function.
368         (CONST_OK_FOR_LETTER_P): Move to function.
369         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
370         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
371         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
372         (EXTRA_CONSTRAINT): Move to function.
373         * config/ia64/ia64.md: Include vect.md.
374         (itanium_class): Add mmalua.
375         (type): Handle it.
376         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
377         (1b_mmalua): New.
378         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
379         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
380         CONST0_RTX.
381         (const_int_2bit_operand): New.
382         (fr_reg_or_0_operand): New.
383         * config/ia64/ia64-modes.def: Add vector modes.
384         * config/ia64/ia64-protos.h: Update.
385         * config/ia64/vect.md: New file.
387 2005-01-03  Richard Henderson  <rth@redhat.com>
389         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
391 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
393         PR target/19236
394         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
395         to SFmode.
396         (log1pdf2): Change mode of operands[0,1] to DFmode.
398 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
400         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
401         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
402         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
403         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
404         SPARC_RELAXED_ORDERING.
406 2005-01-03  Richard Henderson  <rth@redhat.com>
407             Uros Bizjak  <uros@kss-loka.si>
409         PR target/14631
410         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
411         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
412         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
413         handling.
414         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
415         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
416         const_pow2_1_to_128_operand): New predicates.
418 2005-01-02  Greg McGary  <greg@mcgary.org>
420         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
421         anonymous decls.
422         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
423         object.  [ptr_type]: Remove unused variable.
424         Remember nearest addressable array-element or record-component
425         when checking bitfield components.  Tolerate empty BIND_EXPR.
427 2005-01-01  Richard Henderson  <rth@redhat.com>
429         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
430         that don't narrow the value.  Fail for other conversions.
432 2005-01-01  Richard Henderson  <rth@redhat.com>
434         PR c/19031
435         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
436         * c-lang.c (finish_file): Don't do it here.
437         * objc/objc-act.c (objc_finish_file): Likewise.
439         * cgraph.c (decl_assembler_name_equal): New.
440         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
441         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
442         * cgraph.h (struct cgraph_varpool_node): Add next.
443         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
444         * varasm.c (assemble_alias): Mark the target as needed.
446 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
448         PR middle-end/19221
449         * function.c (get_arg_pointer_save_area): Use entry_of_function
450         instead of get_insns.
452 2005-01-01  Roger Sayle  <roger@eyesopen.com>
453             Andrew Pinski  <pinskia@physics.uc.edu>
454             James E. Wilson  <wilson@specifixinc.com>
456         PR rtl-optimization/12092
457         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
458         is zero.
460 2005-01-01  Roger Sayle  <roger@eyesopen.com>
461             Olivier Hainque  <hainque@act-europe.fr>
463         * tree.c (int_fits_type_p): A narrower type always fits in a
464         wider one, except for negative values into unsigned types.
466 2005-01-01  Roger Sayle  <roger@eyesopen.com>
468         * tree.c (int_fits_type_p): Compare the result of force_fit_type
469         with the original constant rather than require TREE_OVERFLOW.
471 2005-01-01  Steven Bosscher  <stevenb@suse.de>
473         PR middle-end/17544
474         * c-decl.c (finish_function): If compiling C99, annotate the
475         compiler generated return with the current file name and line 0.
476         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
477         the source line is greater than 0.
478         (remove_bb): Likewise.
480 See ChangeLog.12 for earlier changes.