1 2004-04-26 Bernard Giroud <bgiroud@free.fr>
3 * config/alpha.c (alpha_end_function): For OpenVMS gas,
4 correctly output .pdesc directive before .end.
6 2004-04-26 James E Wilson <wilson@specifixinc.com>
9 * config/ia64/ia64.md (movxf): New local op0. Handle case where
10 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
12 2004-04-26 Zack Weinberg <zack@codesourcery.com>
14 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
15 * config/pa/pa-hpux10.h: Likewise.
16 * config/pa/pa-hpux11.h: Likewise.
18 2004-04-26 Geoffrey Keating <geoffk@apple.com>
20 * doc/invoke.texi (Overall Options): Document default for -o
23 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25 * builtins.c (expand_builtin_update_setjmp_buf): New function.
26 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
27 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
29 2004-04-26 Paul Brook <paul@codesourcery.com>
31 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
33 2004-04-26 Paul Brook <paul@codesourcery.com>
35 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
37 2004-04-25 Roger Sayle <roger@eyesopen.com>
39 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
40 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
43 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
46 * except.c (connect_post_landing_pads): Delete insns after the
47 barrier when generating a unwind_resume_libfunc call.
49 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
52 * tree.c (substitute_placeholder_in_expr, case 4): New case,
55 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
57 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
58 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
59 inhibit_libc is defined.
61 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
63 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
64 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
65 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
66 (TARGET_SCHED_VARIABLE_ISSUE): Define.
67 (mips_adjust_cost): Move later in file, next to other sched hooks.
68 (mips_macc_chains_last_hilo): New variable.
69 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
70 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
71 * config/mips/mips.md (may_clobber_hilo): New attribute.
73 2004-04-24 Roger Sayle <roger@eyesopen.com>
74 Bruce Korb <bkorb@gnu.org>
76 * fixinc/inclhack.def (aix_syswait_2): New fix.
77 * fixinc/fixincl.x: Regenerate.
78 * fixinc/tests/base/sys/wait.h: Update for new test.
80 2004-04-24 Alan Modra <amodra@bigpond.net.au>
83 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
84 to non_fixed_size, and leave out fixed_size from the sum.
85 (generate_set_vrsave): Correct clobbers.
86 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
87 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
88 (rs6000_libcall_value): Likewise.
89 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
90 (FUNCTION_ARG_REGNO_P): Likewise.
92 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
94 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
96 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
97 with NARROW_OP1 instead of OP1.
99 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
101 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
104 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
106 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
107 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
108 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
109 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
110 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
111 * builtins.c (expand_builtin_fork_or_exec): New.
112 (expand_builtin): Call it.
113 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
114 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
115 * c-common.c (PID_TYPE): New macro.
116 (c_common_nodes_and_builtins): Initialize pid_type_node.
117 * calls.c (special_function_p): Do not handle fork and exec.
118 (expand_call): Do not handle ECF_FORK_OR_EXEC.
119 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
120 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
121 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
122 __gcov_execv, __gcov_execvp, __gcov_execve): New.
123 * tree.h (enum tree_index): Add TI_PID_TYPE.
124 (pid_type_node): New macro.
125 (ECF_FORK_OR_EXEC): Removed.
127 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
129 PR optimization/13985
130 * cfgloopmanip.c (fix_loop_placements): New prototype.
131 Call fix_bb_placements on the preheader of loops that have
133 (remove_path): Adjust call to fix_loop_placements.
135 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
137 * config/darwin7.h: New file.
138 * config.gcc (*-*-darwin*): Add darwin7.h if the
139 version is greater than 6.
140 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
141 (MATH_LIBRARY): Wrap in ifdefs.
143 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
145 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
146 loading iWMMXt registers with a frame pointer. Use post-increment
147 without a frame pointer.
148 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
150 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
152 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
153 mode" rather than "-funit-at-a-time" since -O2 enables it
154 without requiring -f* options. Refer to -fprofile-generate and
155 -fprofile-use correctly. Move -funit-at-a-time among options
156 enabled by -O. Add information about unit-at-a-time caveats.
158 2004-04-22 Per Bothner <per@bothner.com>
160 * line-map.h (struct line_maps): New field highest_line.
161 (linemap_position_for_column): Make non-inline function.
162 (LINEMAP_POSITION_FOR_COLUMN): New macro.
163 * line-map.c (linemap_init): Clear highest_line field.
164 (linemap_add): Set highest_line field.
165 (linemap_line_start): Minor optimization - use highest_line field.
166 Reduce maximum column hint to 10000. Update highest_line field.
167 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
168 * cpphash.h (struct cpp_reader): Remove line field - instead use
169 line_table->highest_line.
170 (saved_line): Remove unused field.
171 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
172 Use line_table's highest_line field instead of cpp_reader's line.
173 * cpplib.c (start_directive): Likewise use highest_line field.
174 (do_line, do_linemarker): Likewise just use newest map.
175 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
176 * cpperror.c (cpp_error): Likewise use highest_line field.
177 * cppfiles.c (open_file_failed: Likewise.
178 (cpp_make_system_header): Likewise use newest map and highest_line.
179 * cppinit.c (cpp_create_reader): Don't initialize removed field.
180 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
181 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
182 _cpp_lex_direct): Likewise use highest_line.
183 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
184 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
186 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
187 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
188 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
190 2004-04-23 Alan Modra <amodra@bigpond.net.au>
193 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
194 * config/linux.h (USE_LD_AS_NEEDED): Define.
195 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
196 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
197 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
198 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
199 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
200 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
201 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
203 2004-04-22 Per Bothner <per@bothner.com>
205 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
206 Fixes PR preprocessor/15067.
208 2004-04-23 Andreas Schwab <schwab@suse.de>
210 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
211 avoid aliasing warning.
213 2004-04-22 Jan Hubicka <jh@suse.cz>
214 Mostafa Hagog <mustafa@il.ibm.com>
216 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
217 * cfgloopanal.c (expected_loop_iterations): Change the return value
219 2004-04-22 Jakub Jelinek <jakub@redhat.com>
221 * cselib.h (struct elt_loc_list): Remove canon_loc field.
222 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
223 (cselib_invalidate_mem): Remove all canon_loc and canon_x
226 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
229 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
231 * var-tracking.c (variable_part_different_p): Variable parts
232 differ when the most recent locations differ.
234 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
236 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
237 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
238 (embedded_pic_offset): Delete.
239 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
241 (TARGET_EMBEDDED_PIC): Delete.
242 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
243 (ASM_SPEC): Remove -membedded-pic.
244 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
245 (ASM_OUTPUT_CASE_LABEL): Likewise.
246 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
247 * config/mips/windiss.h (ASM_SPEC): Likewise.
248 * config/mips/mips.c (struct machine_function): Remove
249 embedded_pic_fnaddr_rtx.
250 (TARGET_ENCODE_SECTION_INFO): Remove override.
251 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
252 (override_options): Remove -membedded-pic handling.
253 (print_operand): Remove handling of '%S'.
254 (mips_select_section: Remove -membedded-pic handling.
255 (mips_encode_section_info): Delete.
256 (mips_output_conditional_branch): Remove mention of -membedded-pic.
257 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
258 -membedded-pic handling.
259 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
261 2004-04-22 Alan Modra <amodra@bigpond.net.au>
263 * var-tracking.c (frame_base_decl): Remove useless GTY.
265 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
267 * config/rs6000/rs6000.c (rs6000_override_options): Error when
268 user wants altivec and e500 instructions.
270 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
273 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
274 in .init_array section to ...
275 * config/ia64/crtbegin.asm: Here.
277 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
278 and hidden if HAVE_INITFINI_ARRAY is defined.
280 2004-04-21 James E Wilson <wilson@specifixinc.com>
282 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
283 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
284 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
285 (fp_register_operand, lo_operand): New.
286 (mips_rtx_costs): Add TUNE_SB1 support.
287 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
288 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
289 (mips_multipass_dfa_lookahead): New.
290 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
292 (TARGET_SWITCHES): Add -mfp-exceptions support.
293 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
294 (BRANCH_COST): Fix whitespace.
295 * config/mips/mips.md: Include sb1.md.
296 * config/mips/sb1.md: New file.
297 * doc/invoke.texi: Document -mfp-exceptions.
299 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
301 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
302 (fixincl.o-warn): Delete.
304 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
306 * config/rs6000/rs6000 (print_operand) ['z']:
307 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
309 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
311 * config.gcc: Support --with-arch=iwmmxt for ARM.
313 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
315 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
316 in two more places; remove unneeded force_reg
318 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
320 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
322 (print_operand): For TARGET_MACHO check to see if we need a stub
323 and output one if we need it.
326 * dwarf2out.c (rtl_for_decl_location): Check for NULL
329 2004-04-20 James E Wilson <wilson@specifixinc.com>
331 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
332 (vall_value_gp): Likewise.
334 2004-04-20 DJ Delorie <dj@redhat.com>
336 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
337 variables stored in word registers, then in memory.
339 2004-04-20 Eric Christopher <echristo@redhat.com>
341 * cp/parser.c (cp_parser_declaration): Move translate
342 up before tokens are lexed.
344 2004-04-20 Uros Bizjak <uros@kss-loka.si>
346 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
347 (asin_optab, acos_optab): Define corresponding macros.
348 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
349 * genopinit.c (optabs): Implement asin_optab and acos_optab
350 using asin?f2 and acos?f2 patterns.
351 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
352 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
353 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
354 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
356 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
357 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
358 acos, acosf and acosl built-ins as inline x87 intrinsics.
360 2004-04-20 Paul Brook <paul@codesourcery.com>
362 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
364 2004-04-20 Paul Brook <paul@codesourcery.com>
366 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
368 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
370 Revert part of 2004-04-17 change that moved -frename-registers
371 to -O1. -frename-registers is buggy.
373 * toplev.c (flag_rename_registers): Initialize to 0.
374 * doc/invoke.texi (Optimize options): Move -frename-registers
375 to "Not triggered by any -O level" section. Adjust commentary
378 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
380 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
382 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
384 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
385 for mflo and mfhi instructions.
386 (mips_output_move): Remove mflo and mfhi handling.
387 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
388 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
389 Likewise various define_peephole2s.
390 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
392 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
393 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
394 (mfhilo_di, mfhilo_si): New patterns.
396 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
398 * function.c (assign_parms): Force
399 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
401 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
403 * var-tracking.c (variable_part_different_p): Variable parts differ
404 when the most recent locations differ.
406 2004-04-19 James E Wilson <wilson@specifixinc.com>
408 * rtl.h (reg_set_last): Delete declaration.
409 * rtlanal.c (reg_set_last): Delete.
411 2004-04-19 Roger Sayle <roger@eyesopen.com>
413 * fold-const.c (fold_convert): Make function extern/public.
414 * tree.h (fold_convert): Prototype here.
415 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
416 expand_builtin_strrchr, expand_builtin_strpbrk,
417 expand_builtin_mempcpy, expand_builtin_bcopy,
418 expand_builtin_bzero, expand_builtin_memcmp,
419 expand_builtin_strcmp, expand_builtin_strncmp,
420 stabilize_va_list, expand_builtin_sprintf,
421 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
422 fold_builtin_exponent, fold_builtin_mempcpy,
423 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
424 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
425 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
427 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
429 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
430 (move_from_CR_gt_bit): New.
431 (cceq_ior_compare): Name previously unnamed pattern. Disable for
433 (cceq_rev_compare): Name previously unnamed pattern. Allow for
436 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
442 (e500_cceq_ior_compare): New.
443 (e500_flip_gt_bit): New.
445 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
446 (print_operand): Add 'c' and 'D'.
447 (rs6000_generate_compare): Rewrite to generate correct rtl.
448 (rs6000_emit_sCOND): Handle E500.
449 (output_cbranch): Adjust for changes in rs6000_generate_compare.
450 (output_e500_flip_gt_bit): New.
452 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
455 2004-04-19 Eric Christopher <echristo@redhat.com>
457 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
459 2004-04-19 David Edelsohn <edelsohn@gnu.org>
461 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
464 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
466 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
469 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
471 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
472 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
474 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
476 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
477 (fold_builtin): Update caller to match.
480 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
483 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
485 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
487 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
489 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
490 (expand_mult_highpart_optab): Likewise.
491 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
493 2004-04-19 Paul Brook <paul@codesourcery.com>
495 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
496 floatunssisf2, floatunssidf2): New patterns.
498 2004-04-18 Mark Mitchell <mark@codesourcery.com>
501 * doc/invoke.texi (-fprofile-generate): Document requirement to
502 use -fprofile-generate when linking.
504 * doc/extend.texi (Strong Using): Warn users against using this
507 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
509 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
510 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
511 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
512 * config/mips/mips.c (struct mips16_constant): Renamed from struct
513 constant. Propogate change throughout file.
514 (struct machine_function): Remove insns_len.
515 (mips_string_length, mips16_strings, string_constants): Delete.
516 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
517 when generating mips16 code. Remove special mips16 treatment of
519 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
520 to have the form LABEL+CONSTANT.
521 (mips_symbolic_address_p): Fix comment.
522 (m16_usym8_4, m16_usym5_4): Delete.
523 (mips_output_function_epilogue): Remove mips16 string handling.
524 (mips_output_mi_thunk): Call mips16_lay_out_constants.
525 (mips_select_section, mips_encode_section_info): Remove mips16
527 (struct mips16_constant_pool): New.
528 (add_constant): Take a mips16_constant_pool structure. Keep pool
529 sorted into order of ascending mode size. Keep track of the highest
530 possible start address, taking padding and the masking of the base PC
532 (dump_constants_1): New function, split out from dump_constants.
533 Handle vector constants. Use gen_consttable_{int,float} rather than
534 separate functions for each mode.
535 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
536 rather than separate functions for each alignment.
537 (mips_find_symbol): Delete.
538 (mips16_insn_length): New function, split out from
539 mips16_lay_out_constants.
540 (mips16_rewrite_pool_refs): New function.
541 (mips16_lay_out_constants): Rework. Remove string handling.
542 Always create an inline constant pool.
543 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
544 (UNSPEC_ALIGN): New constants.
545 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
546 (UNSPEC_ALIGN_[248]): Delete.
547 (consttable_int, consttable_float, align): New patterns.
548 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
550 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
552 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
555 2004-04-17 Alan Modra <amodra@bigpond.net.au>
558 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
559 with STARTING_FRAME_OFFSET.
561 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
563 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
564 * config/mips/mips.c (macc_msac_operand): New function.
565 * config/mips/mips.md (*msac): Move after *macc.
566 (*msac2): New. Generalize macc-related peepholes so that they apply
569 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
571 * opts.c (decode_options): Do not enable flag_rename_registers
573 * toplev.c (flag_rename_registers): Initialize
574 flag_rename_registers and flag_web to
575 AUTODETECT_FLAG_VAR_TRACKING.
576 (default_debug_hooks): New global.
577 (process_options): Initialize default_debug_hooks. Warn if
578 -fvar-tracking specified but not supported by the current
579 debug format. Do not run var tracking at -O0 or if not
580 supported by the current debug format, even if
581 -fvar-tracking was given. If -fno-rename-registers
582 is not specified, always run register renaming if var
583 tracking is supported by the default debugging information
584 format for the target, and we are at -O1 or higher; similarly
585 for -fweb, but only at -O2 or higher.
586 * doc/invoke.texi (Optimize Options): Document this.
588 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
590 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
591 * configure: Regenerate.
593 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
595 * gcc.c (used_arg): Check whether an option has been removed.
597 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
599 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
600 debugging on Solaris 7 and up.
602 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
604 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
606 Remove -save-temps workaround, handled automatically.
607 Require GNU binutils 2.15 for debugging.
608 Remove SGI make warnings since GNU make is now required.
609 (Specific, mips-sgi-irix6): Some markup fixes.
610 Describe MIPSpro C problems and workarounds.
611 Mention working O32 ABI support.
612 Recommend GNU as 2.15 for O32 with debugging.
613 Remove description of fixed structure pass/return bug.
615 2004-04-16 DJ Delorie <dj@redhat.com>
617 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
619 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
621 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
623 * pa.md: Remove unnecessary declarations for asm_out_file.
625 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
626 SAR register. Fix comment.
627 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
630 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
632 2004-04-16 Nick Clifton <nickc@redhat.com>
634 * config/arm/arm.c (arm_override_options): Revert previous patch.
635 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
638 2004-04-16 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
640 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
642 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
643 TARGET_DEFAULT): Changed. Ditto.
644 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
645 TARGET_ENDIAN_DEFAULT): Added. Ditto.
646 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
647 (TARGET_ENDIAN_DEFAULT): Added.
649 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
651 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
652 ATTR_CONST_NOTHROW_LIST.
654 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
657 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
660 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
662 * ra-debug.c (ra_print_rtx): Add break's to case legs.
664 2004-04-14 James E Wilson <wilson@specifixinc.com>
666 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
668 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
670 * libada-mk.in: New file.
671 * configure.ac: Create libada-mk from libada-mk.in.
672 * configure: Regenerate.
674 2004-04-14 Uros Bizjak <uros@kss-loka.si>
676 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
677 (logb_optab, ilogb_optab): Define corresponding macros.
678 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
679 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
680 using logb?f2 and ilogb?i2 patterns.
681 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
682 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
683 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
684 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
686 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
687 and UNSPEC_XTRACT_EXP.
689 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
690 patterns to implement fxtract x87 instruction.
691 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
692 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
694 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
697 2004-04-14 Eric Christopher <echristo@redhat.com>
699 * config/mips/t-elf: Enable multilibs by default.
701 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
703 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
704 previous fix to check HAVE_return at runtime too.
706 2004-04-14 Nick Clifton <nickc@redhat.com>
708 * config/arm/arm.c (arm_override_options): If the user has not
709 specified an ABI, then default to AAPCS for the iWMMXt processor.
710 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
711 * config/arm/t-xscale-coff: Likewise.
713 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
715 * builtins.c (fold_builtin_isdigit): New.
716 (fold_builtin): Handle BUILT_IN_ISDIGIT.
717 * defaults.h: Add TARGET_DIGIT0 and sort.
718 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
720 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
722 * builtins.c (fold_builtin_cabs, fold_builtin): Use
723 `mathfn_built_in' to determine the new builtin.
724 * fold-const.c (fold): Likewise.
726 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
728 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
729 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
730 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
731 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
732 (ASM_SPEC): Update accordingly.
733 * config/mips/mips.c: Update after above renaming.
734 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
735 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
737 2004-04-13 James E Wilson <wilson@specifixinc.com>
739 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
740 increment errorcount and return false instead of true.
742 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
744 * optabs.c (expand_twoval_unop): Reorder function arguments.
745 * builtins.c (expand_builtin_mathfn_3): Update calls to
748 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
749 and UNSPEC_TAN_TAN. Add missing comment.
751 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
752 patterns to implement fptan x87 instruction.
753 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
754 and tanl built-ins as inline x87 intrinsics. Define corresponding
755 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
756 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
759 2004-03-13 Richard Henderson <rth@redhat.com>
761 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
764 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
765 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
766 * doc/invoke.texi: Update to match.
768 * varasm.c (unlikely_text_section): Use assemble_align instead of
769 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
770 correct alignment argument.
772 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
774 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
775 after setting reg_last_reload_reg for optional output reloads.
777 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
779 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
780 Definition of these two macros are corrected by adding
781 matchine right paren.
783 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
785 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
787 2004-04-12 Roger Sayle <roger@eyesopen.com>
789 * config/i386/i386.c (output_387_reg_move): New function.
790 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
791 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
792 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
793 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
794 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
796 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
798 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
800 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
801 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
802 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
803 Use skip_simple_arithmetic to find SAVE_EXPR.
804 (force_type_save_exprs, force_type_save_exprs_1): New functions.
805 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
806 Properly chain multiple pointers.
807 (copy_tree_r): Copy a TYPE_DECL.
808 * tree.c (variably_modified_type_p): Add some missing tests and
809 make some other minor changes.
810 * tree.h (force_type_save_exprs): New declaration.
812 2004-04-12 Roger Sayle <roger@eyesopen.com>
814 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
815 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
816 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
817 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
818 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
819 x%-1 into 0 (or x&0 if x has side-effects).
821 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
823 * config/rs6000/rs6000.md: Document why a pattern is not
826 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
827 of floats on the E500.
828 (branch_positive_comparison_operator): Do not allow NE even on the
831 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
833 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
834 in_text_unlikely_section to in_unlikely_text_section.
836 2004-04-11 Roger Sayle <roger@eyesopen.com>
838 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
839 calling convention to allow a NULL_TREE to be returned. Factor
840 sanity checks from callers, return NULL_TREE when appropriate.
841 (fold): Handle COMPOUND_EXPR operands of binary expressions
842 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
843 whether a op (b,c) can be rewritten as (b, a op c). Simplify
844 calls to fold_binary_op_with_conditional_arg.
846 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
848 * config/mips/iris5.h (current_section_flags): Add
849 in_unlikely_executed_text and default case.
851 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
853 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
854 failure on solaris. Place ifdef HAVE_return around gen_ret call.
855 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
856 HAVE_return and place it around the place where it is needed.
858 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
860 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
861 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
862 and NORMAL_TEXT_SECTION_NAME.
863 (unlikely_text_section): Check targetm.have_named_sections
864 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
865 instead of SECTION_FORMAT_STRING.
866 * config/mips/iris5.h (current_section_name): Add
867 in_unlikely_executed_text case and move the abort into the switch.
868 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
869 (NORMAL_TEXT_SECTION_NAME): Remove.
870 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
871 (SECTION_FORMAT_STRING): Remove.
872 * defaults.h (SECTION_FORMAT_STRING): Remove.
873 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
874 (SECTION_FORMAT_STRING): Remove.
876 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
878 * c-typeck.c (common_type): Prefer long long to long when same
881 2004-04-09 Zack Weinberg <zack@codesourcery.com>
884 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
886 * config/ia64/ia64.c (ia64_hpux_file_end): Check
887 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
889 2004-04-09 Roger Sayle <roger@eyesopen.com>
891 * simplify-rtx.c (mode_signbit_p): New function to check whether
892 an RTX is an immediate constant that represents the most significant
893 bit of a given machine mode.
894 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
896 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
897 when C2 is the sign bit.
898 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
899 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
902 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
904 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
907 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
909 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
910 of TREE_READONLY for types.
912 2004-04-09 Caroline Tice <ctice@apple.com>
914 * basic-block.h (struct edge_def): Add new field, crossing_edge.
915 (struct basic_block_def): Add new field, partition.
916 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
918 (partition_hot_cold_basic_blocks): Add extern function
920 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
922 (N_ROUNDS): Increase the maximum number of rounds by 1.
923 (branch_threshold): Add array value for new round.
924 (exec_threshold): Add array value for new round.
925 (push_to_next_round_p): New function.
926 (add_unlikely_executed_notes): New function.
927 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
928 (mark_bb_for_unlikely_executed_section): New function.
929 (add_labels_and_missing_jumps): New function.
930 (add_reg_crossing_jump_notes): New function.
931 (fix_up_fall_thru_edges): New function.
932 (find_jump_block): New function.
933 (fix_crossing_conditional_branches): New function.
934 (fix_crossing_unconditional_branches): New function.
935 (fix_edges_for_rarely_executed_code): New function.
936 (partition_hot_cold_basic_blocks): New function.
937 (find_traces): Add an extra round for partitioning hot/cold
939 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
940 and only cold blocks, into the last (extra) round of collecting traces.
941 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
943 (bb_to_key): Add code to correctly identify cold blocks when
945 (connect_traces): Modify to connect all the non-cold traces first, then
946 go back and connect up all the cold traces.
947 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
948 * cfg.c (entry_exit_blocks): Add initialization for partition field in
949 entry and exit blocks.
950 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
951 if we are doing hot/cold partitioning.
952 * cfgcleanup.c (cfglayout.h): Add new include statement.
953 (try_simplify_condjump): Modify to not attempt on blocks with jumps
954 that cross section boundaries.
955 (try_forward_edges): Likewise.
956 (merge_blocks_move_predecessor_nojumps): Likewise.
957 (merge_blocks_move_successor_nojumps): Likewise.
958 (merge_blocks_move): Likewise.
959 (try_crossjump_to_edge): Modify to not attempt after we have done
960 the block partitioning.
961 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
962 cross section boundaries.
963 (try_optimize_cfg): Likewise.
964 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
965 jumps that cross section boundaries.
966 * cfglayout.c (flags.h): Add new include statement.
967 (update_unlikely_executed_notes): New function.
968 (fixup_reorder_chain): Add code so when a new jumping basic block is
969 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
970 updated appropriately.
971 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
972 introduced by this optimization.
973 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
974 extern function declaration.
975 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
976 list of notes that can be deleted.
977 (create_basic_block_structure): Add initialization for partition field.
978 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
980 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
981 cross section boundaries.
982 (commit_one_edge_insertion): Add code so newly created basic block
983 ends up in correct (hot or cold) section. Modify to disallow
984 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
985 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
986 crosses section boundaries.
987 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
988 cross section boundaries.
989 (force_nonfallthru_and_redirect): Modify to make sure new basic block
990 ends up in correct section, with correct notes attached.
991 * common.opt (freorder-blocks-and-partition): Add new flag for this
993 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
994 the end of functions are written into the correct (hot or cold)
996 (dbx_source_file): Add code so writing debug file information
997 doesn't incorrectly change sections.
998 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
999 in partitioning hot/cold basic blocks into separate sections.
1000 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
1001 section partitioning.
1002 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
1003 conditional branches can span all of memory.
1004 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
1005 unconditional branches can span all of memory.
1006 * final.c (scan_ahead_for_unlikely_executed_note): New function.
1007 (final_scan_insn): Add code to check for NOTE instruction indicating
1008 whether basic block belongs in hot or cold section, and to make sure
1009 the current basic block is being written to the appropriate section.
1010 Also added code to ensure that jump table basic blocks end up in the
1012 * flags.h (flag_reorder_blocks_and_partition): New flag.
1013 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
1014 one of the branches has a jump that crosses between sections.
1015 (find_if_case_2): Likewise.
1016 (ifcvt): Modify to not attempt to mark loop exit edges after
1017 hot/cold partitioning has occurred.
1018 * opts.c (decode_options): Code to handle new flag,
1019 flag_reorder_blocks_and_partition; also to turn it off if
1020 flag_exceptions is on.
1021 (common_handle_option): Code to handle new flag,
1022 flag_reorder_blocks_and_partition.
1023 * output.h (unlikely_text_section): New extern function declaration.
1024 (in_unlikely_text_section): New extern function declaration.
1025 * passes.c (rest_of_handle_stack_regs): Add
1026 flag_reorder_blocks_and_partition as an 'or' condition for calling
1027 reorder_basic_blocks.
1028 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
1029 as an 'or' condition for calling reorder_basic_blocks.
1030 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
1031 * print-rtl.c (print_rtx): Add code for handling new note,
1032 NOTE_INSN_UNLIKELY_EXECUTED_CODE
1033 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
1034 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
1035 cross between section boundaries.
1036 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
1037 indicating the basic block containing it belongs in the cold section.
1038 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
1039 between hot and cold sections.
1040 * toplev.c (flag_reorder_blocks_and_partition): Add code to
1041 initialize this flag, and to tie it to the command-line option
1042 freorder-blocks-and-partition.
1043 * varasm.c (cfglayout.h): Add new include statement.
1044 (unlikely_section_label_printed): New global variable, used for
1045 determining when to output section name labels for cold sections.
1046 (in_section): Add in_unlikely_executed_text to enum data structure.
1047 (text_section): Modify code to use SECTION_FORMAT_STRING and
1048 NORMAL_TEXT_SECTION_NAME macros.
1049 (unlikely_text_section): New function.
1050 (in_unlikely_text_section): New function.
1051 (function_section): Add code to make sure beginning of function is
1052 written into correct section (hot or cold).
1053 (assemble_start_function): Add code to make sure stuff is written to
1054 the correct section.
1055 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
1056 to an if statement that was checking 'in_text_section'.
1057 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
1058 condition to an if statement that was checking 'in_text_section'.
1059 (default_section_type_flags_1): Add check: if in cold section
1060 flags = SECTION_CODE.
1061 * config/darwin.c (darwin_asm_named_section): Modify to use
1062 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
1063 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
1064 specifically for the i386.
1065 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
1066 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
1067 text string to something more informative.
1068 (NORMAL_TEXT_SECTION_NAME): Add new definition.
1069 (SECTION_FORMAT_STRING): Add new definition.
1070 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
1071 '!in_unlikely_text_section' as an 'and' condition to an if statement
1072 that was already checking '!in_text_section'.
1073 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
1074 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
1075 sure these are properly defined for linux on ppc.
1076 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
1078 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
1080 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
1081 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
1084 2004-04-08 Roger Sayle <roger@eyesopen.com>
1086 * function.c (gen_mem_addressof): When changing the RTX from a REG
1087 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
1089 2004-04-08 Roger Sayle <roger@eyesopen.com>
1092 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
1093 truncxfdf2_noop): Provide dummy "fmov" implementations.
1095 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
1097 * gcc.c (default_compilers): Add missing initializers.
1099 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1100 Return 1 if file was successfully mapped.
1102 2004-04-08 Geoffrey Keating <geoffk@apple.com>
1107 * doc/invoke.texi (Precompiled Headers): Suggest -o
1108 to put an output file in a particular place. Be more detailed
1109 about which options affect PCH validity and which options
1111 * c-pch.c (pch_matching): New.
1113 (struct c_pch_validity): New field 'match'.
1114 (pch_init): Handle pch_matching.
1115 (c_common_valid_pch): Check pch_matching.
1117 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
1119 2004-04-08 Mark Mitchell <mark@codesourcery.com>
1121 * doc/invoke.texi (Precompiled Headers): Warn about known
1124 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
1127 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
1128 to 1 if ASM_OUTPUT_DEF is defined.
1129 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
1130 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
1131 Set to non-zero iff not a one_only decl.
1133 2004-04-08 Paul Brook <paul@codesourcery.com>
1135 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
1137 2004-04-08 Paul Brook <paul@codesourcery.com>
1139 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
1140 PROMOTE_FOR_CALL_ONLY.
1141 * config/arm/arm-protos.h (arm_function_value): Declare.
1142 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
1143 (TARGET_PROMOTE_PROTOTYPES): Return false.
1144 (arm_function_value): New function.
1145 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
1146 (FUNCTION_VALUE): Call arm_function_value.
1147 * config/cris/cris.h (PROMOTE_MODE): Rename ...
1148 (PROMOTE_FUNCTION_MODE): ... to this.
1149 (PROMOTE_FOR_CALL_ONLY): Remove.
1150 * config/mmix/mmix.h: Likewise.
1151 * config/s390/s390.h: Likewise.
1152 * config/sparc/sparc.h: Likewise.
1153 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
1154 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
1155 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
1156 (PROMOTE_FOR_CALL_ONLY): Remove.
1158 2004-04-08 Joel Sherrill <joel@oarcorp.com>
1161 * ada/5rosinte.adb: Remove fake mprotect() body.
1162 * ada/5rosinte.ads: Add SA_SIGINFO.
1163 * ada/5rtpopsp.adb: Rewrite to use new interface.
1164 * ada/init.c: Reorder so the simple single OS conditional __rtems__
1165 is tested before more complex ones which mix UNIX and embedded
1166 systems in the conditional.
1168 2004-04-08 Joel Sherrill <joel@oarcorp.com>
1171 * ada/osint.adb (Find_Program_Name): Rework to properly handle
1172 filenames which end in .exe or have versioning suffixes like VMS.
1174 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
1177 * config/darwin.c (darwin_encode_section_info): When the decl has
1178 a DECL_INITIAL, it is only defined also when it is not a common.
1180 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1182 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
1183 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
1185 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
1187 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
1188 global register variables.
1190 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
1192 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
1193 rpc_xdr_lvalue_cast_b): New fixes.
1194 * fixinc/fixincl.x: Regenerate.
1195 * fixinc/tests/base/rpc/xdr.h: Add new tests.
1197 2004-04-07 David Edelsohn <edelsohn@gnu.org>
1199 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
1200 to power4 and power5 entries.
1202 2004-04-06 Geoffrey Keating <geoffk@apple.com>
1204 * c-common.h (pending_lang_change): Mark for PCH.
1206 2004-04-07 Caroline Tice <ctice@apple.com>
1208 * gcc.c (main): Move 'break' in main loops (on an error)
1209 to wait until error processing has occurred.
1211 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
1213 * config.gcc: Stop changing enable_threads midstream.
1214 Replace uses of enable_threads_flag with enable_threads.
1215 * configure.ac: Replace uses of enable_threads_flag with
1216 enable_threads. Improve autoconf quotation in one place.
1217 * configure: Regenerate.
1219 2004-04-06 Uros Bizjak <uros@kss-loka.si>
1221 * builtins.c: Implement support for sincos function.
1222 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
1224 (expand_builtin_mathfn_3): New function.
1225 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
1226 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
1227 flag_unsafe_math_optimization is set.
1229 * optabs.h (enum optab_index): Add new OTI_sincos.
1230 (sincos_optab): Define corresponding macro.
1232 * optabs.c (init_optabs): Initialize sincos_optab.
1233 (expand_twoval_unop): New function.
1235 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
1238 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
1239 and UNSPEC_SINCOS_SIN.
1241 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
1242 sincosxf3): New patterns to implement sincos, sincosf and sincosl
1243 built-ins as inline x87 intrinsics. Define splits for
1244 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
1245 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
1247 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
1248 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
1250 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
1253 2004-04-06 Devang Patel <dpatel@apple.com>
1256 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
1258 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1260 * doc/install.texi: Update HP-UX 11 installation procedure.
1262 2004-04-06 Paul Brook <paul@codesourcery.com>
1264 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
1266 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
1268 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
1269 when the TLS address is generated by a function call.
1270 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
1271 (tls_local_dynamic): Likewise.
1273 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
1275 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
1278 2004-04-05 Caroline Tice <ctice@apple.com>
1280 * gcc.c (combine_flag): New global variable, for new driver option.
1281 (struct compiler): Add two new fields, to be used when
1282 combining multiple input files in a single pass (IMA).
1283 (default_compilers): Add values for the new fields to all
1284 compiler entries. Modify the "@c" compiler entry for doing IMA
1285 properly with "-save-temps" and the "combine" flag.
1286 (option_map): Add new driver option, "--combine", to tell driver
1287 to pass multiple input files to compiler at one time.
1288 (have_o_argbuf_index): New global variable.
1289 (store_arg): Modify to assign value to have_o_argbuf_index.
1290 (struct infile): Add three new fields, to help with IMA.
1291 (display_help): Add help for new "combine" option.
1292 (process_command): Remove local variable have_o; add code to check
1293 for new "combine" option; remove assignment to combine_inputs.
1294 (do_spec_1): Modify to deal with IMA better.
1295 (main): Make variable 'lang_n_infiles' local to entire function
1296 rather than to a single block. Use flag combine_flag to
1297 determine whether to do IMA or not; Modify loop initializing
1298 infiles to deal properly with linker files.
1299 Add code for doing preprocessing in presence of
1300 IMA with "-save-temps" flag. Modify "main" loop to handle
1301 multiple input files, in multiple languages, with or without
1302 preprocessing, gracefully.
1303 * toplev.c (set_src_pwd): Modify to not complain if attempting to
1304 re-set it to same directory it's previously been set to (avoid
1305 irritating, meaningless warning messages when doing IMA with
1307 * doc/invoke.texi: Add "-combine" to list of Overall Options;
1308 remove documentation about IMA that is no longer accurate; Add
1309 documentation explaining what "-combine" does.
1310 * ada/lang-specs.h: Add initialization values for new fields in
1312 * cp/lang-specs.h: Likewise.
1313 * f/lang-specs.h: Likewise.
1314 * java/lang-specs.h: Likewise.
1315 * objc/lang-specs.h: Likewise.
1316 * treelang/lang-specs.h: Likewise.
1318 2004-04-05 David Edelsohn
1320 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
1323 2004-04-05 Jakub Jelinek <jakub@redhat.com>
1324 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1326 PR optimization/13424 (hppa), bootstrap/14462, c/14828
1327 * pa.md: Use replace_equiv_address to retain the attributes of the
1328 memory operands used in the split and peephole2 patterns for optimizing
1329 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
1331 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1333 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
1334 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1335 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
1336 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
1338 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
1340 * print-tree.c (print_node): Properly handle side-effects, readonly,
1342 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
1343 and TREE_CONSTANT if not a type.
1344 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
1345 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
1346 (NON_TYPE_CHECK): New macro.
1347 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
1349 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1351 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
1352 to DWARF2_DEBUG unconditionally.
1353 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
1355 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
1356 Nathanael Nerode <neroden@gcc.gnu.org>
1359 * config.host: Set the shell variable host_can_use_collect2.
1360 Set it to yes by default, and to no for alpha*-dec-*vms*,
1361 i[34567]86-*-mingw32*, and powerpc-*-beos*.
1362 * configure.ac: Set and substitute the shell variable collect2.
1363 Give an error if use_collect2 is yes and host_can_use_collect2 is
1365 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
1366 uses. Initialize to @collect2@.
1367 (STAGESTUFF): Remove $(USE_COLLECT2).
1368 * config/alpha/x-vms (USE_COLLECT2): Don't set.
1369 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
1370 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
1371 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
1372 * configure: Regenerate.
1374 2004-04-04 Roger Sayle <roger@eyesopen.com>
1376 * simplify-rtx.c (simplify_binary_operation): Constant fold
1377 DIV, MOD, UDIV and UMOD using div_and_round_double.
1379 2004-04-04 Mark Mitchell <mark@codesourcery.com>
1382 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
1385 2004-04-04 Mark Mitchell <mark@codesourcery.com>
1387 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
1390 2004-04-04 Roger Sayle <roger@eyesopen.com>
1392 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
1393 updating the REG_EQUAL note on an insn's libcall_insn.
1395 2004-04-04 Roger Sayle <roger@eyesopen.com>
1397 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
1399 2004-04-03 Roger Sayle <roger@eyesopen.com>
1401 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
1402 with reorder_operands_p.
1404 2004-04-03 Jan Hubicka <jh@suse.cz>
1406 * md.texi (vec_set, vec_extract, vec_init): Document.
1408 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
1410 * opts.c (decode_options): Do function inlining with very small
1411 max-inline-insns-* parameters when optimizing for size.
1413 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
1415 * config/i386/i386.h (TARGET_NOCONA): New macro.
1416 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
1417 (processor_type): Add PROCESSOR_NOCONA.
1419 * config/i386/i386.md (cpu): Add nocona to the attribute values.
1421 * config/i386/i386.c (nocona_cost): New variable.
1422 (m_NOCONA): New macro.
1423 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
1424 x86_branch_hints, x86_use_sahf, x86_single_stringop,
1425 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
1426 x86_integer_DFmode_moves, x86_partial_reg_dependency,
1427 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
1428 x86_decompose_lea, x86_arch_always_fancy_math_387,
1429 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
1430 x86_ext_80387_constants, x86_four_jump_limit):
1431 (override_options): Add nocona_cost to processor_target_table.
1432 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
1433 (incdec_operand): Prevent inc/dec generation for Nocona too.
1434 (ix86_issue_rate): Add PROCESSOR_NOCONA.
1436 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
1438 * rtlanal.c (find_reg_note): Manually
1441 2004-04-01 Mark Mitchell <mark@codesourcery.com>
1443 * genemit.c (gen_split): Change prototype of generated code.
1444 * genrecog.c (write_action): Adjust prototype for and calls to
1446 * gensupport.c (struct queue_elem): Add split field.
1447 (queue_pattern): Return a value. Clear the split field.
1448 (process_rtx): Maintain an association between an insn and the
1449 split generated from it for a define_insn_and_split.
1450 (process_one_cond_exec): Generate a new split for a
1451 define_insn_and_split.
1452 * config/arm/arm-protos.h (arm_split_constant): Add insn
1454 (emit_constant_insn): New function.
1455 (arm_gen_constant): Use it.
1456 * config/arm/arm.md: Adjust calls to arm_split_constant.
1458 2004-04-02 Jan Hubicka <jh@suse.cz>
1460 * cgraph.c: Add overall comment.
1461 (cgraph_inline_hash): New global variable.
1462 (cgraph_create_node): Break out from ...
1463 (cgraph_node): ... here.
1464 (cgraph_edge): New function.
1465 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
1466 (cgraph_remove_edge): Accept edge, intead of source and destination.
1467 (cgraph_redirect_edge_callee): New.
1468 (cgraph_remove_node): Update all new datastructures.
1469 (cgraph_record_call, cgraph_remove_call): Kill.
1470 (dump_cgraph_node): Break out from ... ; dump new datastructures.
1471 (dump_cgraph): ... here.
1472 (cgraph_function_possibly_inlined_p): Use new hashtable.
1473 (cgraph_clone_edge, cgraph_clone_node): New.
1474 * cgraph.h: Include hashtab.h
1475 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
1476 fields, add inlined_to pointer.
1477 (cgraph_node): Add pointer to next_clone.
1478 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
1479 (cgraph_remove_call, cgraph_record_call): Kill.
1480 (cgraph_inline_hash): Declare.
1481 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
1482 cgraph_redirect_edge_callee): Declare.
1483 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
1484 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
1485 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
1486 * cgraphunit.c: Add overall comment.
1487 (cgraph_optimize_function): Kill.
1488 (cgraph_assemble_pending_functions): Do not assemble inline clones.
1489 (cgraph_finalize_function): Update call of cgraph_remove_node
1490 (record_call_1): Record call sites.
1491 (cgraph_create_edges): Accept node instead of decl argument.
1492 (error_found): New static variable.
1493 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
1494 (cgraph_analyze_function): Update for new datastructures.
1495 (cgraph_finalize_compilation_unit): Plug memory leak.
1496 (cgraph_optimize_function): Kill.
1497 (cgraph_expand_function): Do not use cgraph_optimize_function.
1498 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
1499 cgraph_inlined_callees): Kill.
1500 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
1502 (estimate_growth): Simplify.
1503 (cgraph_clone_inlined_nodes): New function.
1504 (cgraph_mark_inline_edge): Re-implement.
1505 (cgraph_mark_inline): Likewise.
1506 (cgraph_check_inline_limits): Simplify.
1507 (cgraph_recursive_inlining_p): New.
1508 (update_callee_keys): Break out from ...
1509 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
1510 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
1512 (cgraph_expand_all_functions): Remove inline clones from the ordered
1514 (cgraph_preserve_function_body_p): New predicate.
1515 (cgraph_optimize): Verify cgraph.
1516 * function.h (struct function): Add fields saved_tree/saved_args.
1517 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
1518 * toplev.c (rest_of_compilation): Do not free cfun.
1519 * tree-inline.c: Include function.h
1520 (struct inline_data): Add saving_p field; replace decl/current_decl by
1522 (insert_decl_map): New function.
1523 (copy_body_r): Handle saving; update cgraph datastructure.
1524 (copy_body): Handle recursive inlining.
1525 (initialize_inlined_parameters): Likewise.
1526 (expand_call_inline): Propagate node attributes; update cgraph.
1527 (optimize_inline_calls): Verify that datastructure still match.
1528 (save_body): New function.
1529 * tree-inline.h (save_body): New.
1530 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
1531 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
1532 * langhooks.c (lang_hooks): Add update_decl_after_saving.
1534 2004-04-01 Serge Belyshev <1319@bot.ru>
1537 * config/i386/i386.md: fix source operand constraints in
1538 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
1540 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1542 * fold-const.c (folda): Preserve types of comparisons.
1544 2004-04-01 Richard Henderson <rth@redhat.com>
1546 * toplev.c (backend_init): Move init_optimization_passes call ...
1547 (lang_dependent_init): ... here.
1549 2004-04-01 Alan Modra <amodra@bigpond.net.au>
1550 Jakub Jelinek <jakub@redhat.com>
1552 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
1553 -lgcc --as-needed -lgcc_s --no-as-needed by default.
1554 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
1555 * configure: Rebuilt.
1556 * config.in: Rebuilt.
1557 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
1558 (stage2-start, stage3-start, stage4-start): Likewise.
1559 (stageprofile-start, stagefeedback-start): Likewise.
1561 2004-04-01 Jakub Jelinek <jakub@redhat.com>
1563 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
1564 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
1565 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
1566 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
1567 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
1568 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
1569 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
1570 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
1571 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
1572 * config/sparc/t-linux: Removed.
1574 2004-04-01 Jakub Jelinek <jakub@redhat.com>
1577 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
1578 "bitfld++ == const" to "++bitfld == const + incr" transformations.
1580 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1582 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
1583 * stor-layout.c (layout_decl): Likewise.
1584 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
1585 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
1586 * print-tree.c (print_node): Handle various used of unsigned_flag.
1587 * tree.def (BIT_FIELD_REF): Update comment.
1588 * tree.h (TREE_UNSIGNED): Deleted.
1589 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
1591 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1593 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
1594 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
1595 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
1596 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
1597 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
1598 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
1599 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
1600 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
1601 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
1602 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
1603 REAL_TYPE, not INTEGER_TYPE.
1604 (layout_type, case VECTOR_TYPE): Simplify code.
1605 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
1606 * tree.h: Update comments.
1607 (STRIP_NOPS): Use TYPE_UNSIGNED.
1608 (TYPE_UNSIGNED): New macro.
1609 (TYPE_TRAP_SIGNED): Remove now redundant check.
1610 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
1612 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1614 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
1616 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
1618 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
1619 Add darwin-fpsave.asm, darwin-vecsave.asm,
1620 and darwin-world.asm.
1621 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
1622 as the asm files contain altivec instructions.
1623 * config/rs6000/darwin-fpsave.asm: New file.
1624 * config/rs6000/darwin-vecsave.asm: New file.
1625 * config/rs6000/darwin-world.asm: New file.
1627 2004-03-31 Zack Weinberg <zack@codesourcery.com>
1629 * gengtype-yacc.y (option, stringseq): Add missing
1630 terminating semicolon.
1632 2004-03-30 David Edelsohn <edelsohn@gnu.org>
1634 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
1635 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
1636 tls_dtprel_ha_32, tls_dtprel_ha_64,
1637 tls_dtprel_lo_32, tls_dtprel_lo_64,
1638 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
1639 tls_tprel_ha_32, tls_tprel_ha_64,
1640 tls_tprel_lo_32, tls_tprel_lo_64,
1641 tls_got_tprel_32, tls_got_tprel_64,
1642 tls_tls_32, tls_tls_64): Replace register_operand with
1645 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
1647 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
1648 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
1649 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
1650 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
1651 *ctrdi_internal6): Replace register_operand with
1652 nonimmediate_operand.
1654 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
1656 * fold-const.c (fold): Reassociate multiply expression
1657 with an adjacent non-multiply expression to use
1658 architecture's multiply-add instruction.
1660 2004-03-30 Zack Weinberg <zack@codesourcery.com>
1662 * gengtype.c (create_option): New function.
1663 * gengtype.h: Prototype it.
1664 * gengtype-yacc.y (stringseq): New rule.
1665 (option): Use create_option. Add new bare ID production. Use
1666 stringseq, not STRING directly.
1668 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
1669 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
1670 * varray.h, config/alpha/alpha.c:
1671 Use new shorter form of GTY markers.
1673 * doc/gty.texi: Rewrite.
1675 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
1677 * config/darwin.c (machopic_function_base_name):
1678 Remove current_name and getting the name of the
1681 2004-03-30 Nick Clifton <nickc@redhat.com>
1683 * config/arm/arm.md (thumb_jump): Reduce the backward branch
1684 range, and increase the forward branch range, to allow for
1685 the fact that the PC will be off by 4.
1687 2004-03-30 Alan Modra <amodra@bigpond.net.au>
1689 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
1691 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
1693 * config/rs6000/rs6000.c (output_vec_const_move):
1694 Find all cases of EASY_VECTOR_15_ADD_SELF.
1695 (easy_vector_constant_add_self): Accept
1696 all vector constant loadable by vsplt* and vadd*.
1697 (easy_vector_same): Use easy_vector_splat_const.
1698 (easy_vector_const): Use easy_vector_splat_const.
1699 (easy_vector_splat_const): New function.
1700 (gen_easy_vector_constant_add_self): New function.
1702 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
1705 * config/rs6000/altivec.md (movv4si splitter): Change to
1706 emit move insn with halfed vector constant.
1707 (*movv8hi splitter): Likewise.
1708 (*movv16qi splitter): Likewise.
1710 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
1713 * config/rs6000/rs6000.c (rs6000_legitimate_address):
1714 Allow any offset to argument pointer in no-strict case.
1716 2004-03-30 Jan Hubicka <jh@suse.cz>
1718 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
1719 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
1720 dump file in non-unit-at-a-time mode.
1722 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
1724 * config/cris/cris.h: Correct #ifdef to test for
1725 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
1726 HAVE_AS_MUL_BUG_ABORT_OPTION.
1728 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1730 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
1731 the address inside the old RTL.
1733 2004-03-28 Zack Weinberg <zack@codesourcery.com>
1735 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
1736 (struct c_binding, struct c_scope): Add chain_next
1737 attributes to GTY markers.
1738 (struct lang_identifier, struct lang_tree_node): Define
1740 * c-tree.h: ... not here. No longer need to declare struct
1741 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
1742 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
1743 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
1746 * c-decl.c (get_parm_info): If error_mark_node is encountered
1747 in the bindings chain, unbind and discard it; don't abort.
1749 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
1750 Dorit Naishlos <dorit@il.ibm.com>
1752 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
1753 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
1755 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
1757 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
1759 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
1760 (m68hc11_attribute_table): New attribute "page0" to mark a global
1761 variable as being allocated from within page0 section.
1762 (m68hc11_encode_label): New function.
1763 (m68hc11_strip_name_encoding): New function.
1764 (m68hc11_page0_symbol_p): New function.
1765 (m68hc11_indirect_p): Accept global variables marked in page0.
1766 (m68hc11_encode_section_info): Lookup "page0" attribute.
1768 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
1769 represents access to page0 variables.
1771 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
1772 ("*logicalsi3_silshl16_zext"): Likewise.
1773 ("*ashldi3_const32"): Likewise.
1774 (peephole2 ashift): Likewise.
1776 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
1778 * c-tree.h (C_DECL_REGISTER): New.
1779 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
1780 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
1781 (build_array_ref, c_mark_addressable): Set and use it.
1782 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
1783 Allow structures with volatile fields to be declared register.
1784 Don't check TREE_ADDRESSABLE before warning about taking address
1786 * c-decl.c (finish_decl): Don't allow structures with volatile
1787 fields to be placed in named register.
1788 * doc/trouble.texi: Remove reference to structures with volatile
1789 fields in registers.
1791 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1793 * function.c (thread_prologue_and_epilogue): Move
1794 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
1795 before the epilogue.
1797 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1799 * expr.c (store_constructor): Use gen_int_mode to correctly
1800 sign-extend CONST_INT value.
1802 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1804 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
1805 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
1806 * doc/extend.texi: Likewise.
1808 2004-03-26 Diego Novillo <dnovillo@redhat.com>
1810 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
1811 with TYPE_ORIG_SIZE_TYPE.
1813 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
1816 * c-typeck.c (build_binary_op): Do not allow comparisons of
1819 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
1821 * config.gcc: Remove sparc-tti-*.
1822 * config/sparc/pbd.h: Delete.
1824 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
1825 * config/sparc/aout.h: Likewise.
1827 * config/sparc/sparc.h: Remove if 0'd code.
1828 * config/sparc/sparc.md (call): Remove if 0'd code.
1829 (call_value): Likewise.
1830 (nonlocal_goto): Likewise.
1831 (unimp_insn): Delete.
1833 2004-03-25 Roger Sayle <roger@eyesopen.com>
1835 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
1836 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
1838 2004-03-25 Richard Henderson <rth@redhat.com>
1841 * c-typeck.c (pop_init_level): Emit pending init elements earlier
1844 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1846 * builtins.c (fold_builtin): Fix error in last change.
1848 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
1850 * config/mips/mips.h: Formatting fix.
1852 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1854 * builtins.def: Add ctype builtins.
1855 * doc/extend.texi: Likewise.
1857 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1859 * builtins.c (fold_builtin): Add new builtin optimizations for
1861 * fold-const.c (fold): Likewise.
1863 2004-03-25 David Edelsohn <edelsohn@gnu.org>
1865 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
1866 (rs6000_sched_groups): New variable.
1867 (processor_target_table): Add power5.
1868 (rs6000_override_options): Set rs6000_sched_insert_nops,
1869 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
1870 from rs6000_sched_groups.
1871 (output_cbranch): Use rs6000_always_hint.
1872 (rs6000_variable_issue): Use rs6000_sched_groups.
1873 (rs6000_adjust_cost): Add CPU_POWER5.
1874 (is_microcoded_insn): Use rs6000_sched_groups.
1875 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
1876 Return 2 for POWER5 cracked instructions.
1877 (is_cracked_insn): Use rs6000_sched_groups.
1878 (is_branch_slot_insn): Use rs6000_sched_groups.
1879 (rs6000_issue_rate): Add CPU_POWER5.
1880 (rs6000_sched_finish): Use rs6000_sched_groups.
1881 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
1882 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
1883 (DEFAULT_SCHED_COSTLY_DEP): Delete.
1884 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
1885 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
1886 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
1887 * config/rs6000/power5.md: New file.
1888 * doc/invoke.texi: Add power5 option.
1890 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
1892 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
1893 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
1894 * doc/invoke.texi: Fix a typo.
1896 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
1898 PR optimization/9707.
1899 * stmt.c (emit_case_nodes): Emit equality comparisons instead
1900 of recursing if both children are single-valued cases with no
1903 2004-03-25 Paul Brook <paul@codesourcery.com>
1905 * config/arm/arm.c (vfp_print_multi): Remove.
1906 (arm_output_fldmx): New function.
1907 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
1908 (arm_expand_prologue): Update to match.
1909 (arm_get_vfp_saved_size): New Function.
1910 (arm_get_frame_offsets): Use it.
1911 (arm_output_epilogue): Use new functions.
1913 2004-03-24 Richard Henderson <rth@redhat.com>
1915 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
1916 (reg_known_value, reg_known_value_size): Likewise; make static.
1917 (reg_known_equiv_p): Make static.
1918 (clear_reg_alias_info): Update for new indexing.
1919 (get_reg_known_value, set_reg_known_value): New.
1920 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
1921 (canon_rtx): Use them.
1922 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
1923 Don't play queer offsetting games with reg_known_value and
1925 (end_alias_analysis): Free reg_known_value with gc.
1926 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
1927 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
1928 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
1931 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
1933 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
1934 config/i386/mmintrin.h: Update copyright.
1936 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
1938 * configure.ac: Add --enable-werror-always (for top level bootstrap
1940 * configure: Regenerate.
1942 2004-03-24 Ziemowit Laski <zlaski@apple.com>
1944 * objc/objc-act.c (objc_comptypes): Treat comparisons
1945 between 'Class' and '<class> *' as explicitly invalid.
1947 2004-03-24 David Edelsohn <edelsohn@gnu.org>
1949 * doc/invoke.texi (-frename-registers: Add enabled at -O3.
1950 (-fprofile-values): Add enabled with profile-{generate,use}.
1952 (-ftracer): Add enabled with profile-use.
1953 (-funit-at-a-time): Add enabled at -O2,-O3.
1954 (-funroll-loops): Add enabled with profile-use.
1955 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
1956 (max-gcse-passes): Mention default.
1957 (max-cse-path-length): Mention default.
1959 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
1961 * Makefile.in (STRICT2_WARN): Reorder.
1962 * configure.ac: Check for -Wold-style-definition, and use it
1963 in strict1_warn if it's available.
1964 * configure: Regnerate.
1966 2004-03-24 Paul Brook <paul@nowt.org>
1968 * config.gcc <arm>: Add --with-abi=
1969 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
1970 thumb_far_jump_used): Remove prototypes.
1971 (arm_needs_doubleword_align): Add prototype.
1972 (thumb_compute_initial_elimination_offset): Ditto.
1973 * config/arm/arm.c (arm_get_frame_offsets): New function.
1974 (use_return_insn, output_return_instruction, arm_output_epilogue,
1975 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
1976 arm_expand_prologue, thumb_expand_epilogue): Use it.
1977 (arm_abi, target_abi_name, all_arm_abis): New variables.
1978 (arm_override_options): Set them. Set structure padding for AAPCS.
1979 (arm_return_in_memory): Update ABI check.
1980 (arm_init_cumulative_args): Initialize can_split.
1981 (arm_needs_doubleword_align): New function.
1982 (arm_function_arg): Don't split args after pushing to stack. Handle
1983 doubleword/even reg alignment.
1984 (arm_va_arg): Handle all doubleword aligned args.
1985 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
1987 (arm_compute_save_reg0_reg12_mask): Fix comment.
1988 (thumb_get_frame_size, thumb_get_frame_size): Remove.
1989 (thumb_jump_far_used_p): Remove superfluous argument. Return save
1990 value for alignment.
1991 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
1993 (thumb_compute_initial_elimination_offset): New function.
1994 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
1995 unneccessary rounding.
1996 * config/arm/arm.h (target_abi_name): Declare.
1997 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
1998 arm_abi_type, ARM_DEFAULT_ABI): Define.
1999 (ARM_FLAG_ATPCS): Remove.
2000 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
2001 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
2002 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
2003 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
2004 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
2005 Contitionalize on ABI, not CPU.
2006 (struct arm_stack_offsets): Define.
2007 (struct machine_function): Add stack_offsets. Remove frame_size.
2008 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
2010 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
2011 doubleword alignment.
2012 (THUMB_INITIAL_ELIMINATION_OFFSET,
2013 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
2014 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
2015 * config/arm/arm.md (align_8): Enable for all targets.
2016 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
2017 (ARM_DEFAULT_ABI): Define.
2018 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
2019 -mstructure-size-boundary.
2021 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
2023 * configure.ac: Check for -Wno-variadic-macros; don't use
2024 -pedantic (in stage 1 or a simple 'make all') unless it's available,
2025 and if it's available, use it. Also, clean up check for
2027 * configure: Regenerate.
2029 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
2031 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
2032 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
2033 (MULTILIB_DEFAULTS): Use it.
2034 (MIPS_CPU_STRING_DEFAULT): Remove.
2035 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
2036 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
2037 EABI64 -mlong32 the default ABI. Enforce the default architecture.
2038 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
2039 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
2040 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
2041 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
2044 2004-03-24 DJ Delorie <dj@redhat.com>
2045 Richard Sandiford <rsandifo@redhat.com>
2047 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
2048 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
2049 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
2050 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
2051 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
2052 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
2053 if TARGET_FIX_VR4122.
2054 * config/mips/mips.md (define_attr length): Account for nops inserted
2055 after macc and dmult when using -mfix-vr4122-bugs.
2056 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
2057 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
2058 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
2059 * config/mips/vr4122-div.S: New file.
2060 * doc/invoke.texi: Document -mfix-vr4122-bugs.
2062 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
2064 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
2065 (TARGET_MIPS4130): New macro.
2066 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
2067 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
2068 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
2069 with PROCESSOR_R4130.
2070 * config/mips/mips.md (define_attr cpu): Add r4130.
2071 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
2073 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2074 Richard Sandiford <rsandifo@redhat.com>
2076 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
2078 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
2080 PR preprocessor/14438
2081 * cpplib.c (do_pragma): Remove line_change call after pragma
2084 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
2086 * doc/extend.texi (ARM Built-in Functions): Replace with correct
2089 2004-03-23 Roger Sayle <roger@eyesopen.com>
2091 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
2092 if flag_unsafe_math_optimizations.
2093 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
2094 and TARGET_80387 expand using truncdfsf2_noop pattern.
2095 (truncxfsf2): Likewise using truncxfsf2_noop.
2096 (truncxfdf2): Likewise using truncxfdf2_noop.
2097 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
2099 2004-03-23 Ziemowit Laski <zlaski@apple.com>
2101 * hooks.c (hook_constcharptr_tree_null): New hook.
2102 * hooks.h (hook_constcharptr_tree_null): New prototype.
2103 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
2104 * target.h (mangle_fundamental_type): New target hook.
2105 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
2106 target hook at rs6000_mangle_fundamental_type.
2107 (rs6000_mangle_fundamental_type): New function.
2108 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
2110 2004-03-23 Zack Weinberg <zack@codesourcery.com>
2112 PR 12267, 12391, 12560, 13129, 14114, 14133
2113 * c-tree.h: Forward declare struct c_binding. Declare
2114 c_override_bindings_to_false. Update prototypes.
2115 (struct lang_identifier): Update comments. Change fields to be
2117 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
2118 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
2119 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
2120 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
2121 * c-common.h: Update prototypes.
2122 * c-decl.c (struct c_scope): Update commentary. Remove names,
2123 names_last, parms, parms_last, tags, and shadowed fields. Add
2124 bindings and depth fields.
2125 (scope_freelist): Move to more appropriate location.
2126 (c_print_identifier): Update for changes to struct lang_identifier.
2127 (objc_mark_locals_volatile): Update for new bindings structures.
2128 (global_bindings_p): Honor c_override_global_bindings_to_false.
2129 (pushlevel): Rename to push_scope; take no arguments; use the
2130 scope_freelist; initialize scope->depth and check for overflow.
2131 (poplevel): Rename to pop_scope; totally rewritten for new bindings
2133 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
2134 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
2135 Improve some commentary. Adjust handling of forward parm decls.
2136 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
2137 Preserve C_DECL_IN_EXTERNAL_SCOPE.
2138 (warn_if_shadowing): Correct indentation. Improve diagnostics.
2139 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
2140 decls. Rewrite for new bindings structures. Improve commentary.
2141 Eliminate the copy_node call.
2142 (implicit_decl_warning): Use the "diag" idiom (as seen in
2143 locate_old_decl) to reduce code duplication; call locate_old_decl
2144 if appropriate. Relocate to remove need for forward declaration.
2145 (implicitly_declare): Adjust for new bindings structures. Kludge
2146 around Objective-C not-really-builtin functions.
2147 (undeclared_variable): Improve diagnostics. If current_function_decl
2148 is nonnull but current_function_scope is null, use current_scope.
2150 (lookup_tag): Adjust for new bindings structures. Kludge around
2151 Objective-C's tag declarations that wind up in the external scope.
2152 (lookup_name): Adjust for new bindings structures. Kludge around
2153 c-common.c's pseudo-typedefs that wind up in the external scope.
2154 (lookup_name_current_level): Rename lookup_name_in_scope; take a
2155 second argument indicating the scope to examine; rewrite for
2156 new bindings structures.
2157 (c_init_decl_processing): Adjust for renamed functions. Do not
2158 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
2159 First scope pushed is the external scope, not the global scope.
2160 (builtin_function): Use bind, not pushdecl. Adjust other bits
2161 for new data structures. Keep track of builtins that should be
2162 made visible automatically.
2163 (start_decl): Adjust diagnostics. Remove unnecessary call to
2165 (grokparms): Return 0 if arg_types is error_mark_node.
2166 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
2167 reversed sense. Rewrite for new bindings structures. Do not
2168 leave any decls in the scope, to prevent pop_scope from doing
2169 contradictory things with them.
2170 (finish_struct, finish_enum): Remove redundant diagnostics.
2171 (build_enumerator): Don't cascade diagnostics for error_mark_node.
2172 Mark location where -pedantic changes the meaning of the program.
2173 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
2174 parameter decls into the function's scope structure using bind.
2175 Warn here about function definitions in the wrong style.
2177 (store_parm_decls): Correct the determination of whether a
2178 function was defined with a prototype.
2179 (c_write_global_declarations): Operate on all file decls and on
2180 the external scope. Split body of the loop to...
2181 (c_write_global_declarations_1): ... this new function, to avoid
2183 (truly_local_externals, first_builtin_decl, last_builtin_decl)
2184 (make_scope, pop_scope, in_parm_level_p, set_block)
2185 (any_external_decl, record_external_decl, bind_label, getdecls)
2186 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
2187 (c_reset_state): Delete.
2188 (visible_builtins, c_override_global_bindings_to_false)
2189 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
2190 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
2191 (external_scope, binding_freelist, bind, free_binding_and_advance)
2192 (push_file_scope, pop_file_scope): New.
2193 (pushtag, pushdecl_top_level, lookup_label, declare_label)
2194 (define_label, c_make_fname_decl, finish_decl)
2195 (mark_forward_parm_decls, build_compound_literal)
2196 (grokdeclarator, start_function, check_for_loop_decls)
2197 (identifier_global_value, record_builtin_type): Minor adjustments
2198 for new bindings structures. Improve diagnostics and commentary.
2199 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
2200 pushlevel/poplevel respectively.
2201 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
2202 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
2203 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
2204 correct loop over multiple translation units; call fatal_error if
2205 requested to compile more than one file at once. (This disables
2206 IMA temporarily - an up-front error being preferable to a crash.)
2207 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
2208 (all actions): Adjust calls to pushlevel/poplevel.
2209 (parsing_iso_function_signature): Delete.
2210 (extdef_1): Fold into extdef.
2211 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
2212 warn here about function definitions in the wrong style.
2213 (after_tyle_declarator, parm_declarator_starttypename)
2214 (parm_declarator_nostarttypename, notype_declarator): Remove
2215 commented-out productions.
2216 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
2217 an empty TREE_LIST node. Adjust calls to get_parm_info.
2218 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
2219 to suppress -Wold-style-definition after this error.
2220 (c_parse_file): Don't clear the binding stack or call
2221 finish_fname_decls here. Correct comment.
2222 * c-typeck.c (same_translation_unit_p): Export.
2223 (common_type): Use c_override_global_bindings_to_false, not
2224 pushlevel/poplevel/declare_parm_level.
2225 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
2226 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
2227 and LANG_HOOKS_GETDECLS with do-nothing stubs.
2228 * objc/objc-lang.c: Likewise.
2229 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
2231 (OBJC_VOID_AT_END): Delete; replace all uses
2232 with void_list_node.
2233 (generate_forward_declaration_to_string_table): Delete.
2234 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
2236 * coverage.c (create_coverage): Don't pushdecl anything.
2237 * langhooks.c (lhd_clear_binding_stack): Call
2238 lang_hooks.decls.poplevel, not poplevel.
2239 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
2240 circular list rather than going into an infinite loop.
2242 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
2244 * optabs.c (expand_binop): When synthesizing double word rotates
2245 from single word shifts, use a new register target if the provided
2246 target is not a REG already.
2248 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2250 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
2251 * c-common.c (handle_mode_attribute): Add extra arg to
2252 build_pointer_type_for_mode and build_reference_type_for_mode.
2253 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
2255 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
2256 Chain pointers via TYPE_NEXT_PTR_TO.
2257 (build_reference_type_for_mode): Similarly.
2258 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
2259 and build_reference_type_for_mode.
2260 (tree_check4_failed): New function.
2261 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
2262 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
2263 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
2266 2004-03-23 Roger Sayle <roger@eyesopen.com>
2268 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
2269 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
2270 when both A and B are nonnegative.
2271 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
2274 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
2276 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
2277 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
2279 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
2281 PR optimization/14669
2282 * fold-const.c (fold): Only unwiden integer comparisons for equality
2283 and inequality operators, or when the signedness doesn't change.
2285 2004-03-23 Jakub Jelinek <jakub@redhat.com>
2287 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
2288 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
2289 * config/sparc/t-linux: New file.
2291 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
2293 * gcse.c (can_assign_to_reg_p): New function, split out from...
2294 (want_to_gcse_p): ...here.
2295 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
2298 2004-03-22 Diego Novillo <dnovillo@redhat.com>
2300 * c-typeck.c (same_translation_unit_p): Fix pasto.
2302 2004-03-22 David Edelsohn <edelsohn@gnu.org>
2304 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
2305 (PARAM_MAX_SCHED_REGION_INSNS): New.
2306 * sched-rgn.c: Include params.h
2307 (MAX_RGN_BLOCKS): Delete.
2308 (MAX_RGN_INSNS): Delete.
2309 (too_large): Return bool. Convert to PARAM_VALUE.
2310 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
2311 * doc/invoke.texi (param): Document max-sched-region-blocks and
2312 max-sched-region-insns.
2314 2004-03-22 Joel Brobecker <brobecker@gnat.com>
2316 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
2319 2004-03-22 Joel Brobecker <brobecker@gnat.com>
2321 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
2324 2004-03-22 Jakub Jelinek <jakub@redhat.com>
2327 * c-decl.c (finish_struct): Change type of incorrect flexible array
2328 field into error_mark_node.
2330 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
2333 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
2334 who are not local for Darwin PIC.
2336 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
2338 * regrename.c (regrename_optimize): Set regs_ever_live for all
2339 registers introduced as replacement.
2341 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2344 * expr.c (mark_queue): New function.
2345 (emit_insns_enqueued_after_mark): New function replacing
2346 emit_queue. Clear the body of emitted queued insns.
2347 (emit_queue): Call emit_insns_enqueued_after_mark.
2348 (store_expr): Mark the increment queue on entry. Emit
2349 only the incrementations queued when expanding the source.
2351 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
2353 * configure.ac: Allow --disable-coverage-flags (for the future benefit
2354 of top level bootstrap, and consistency). Reindent.
2355 * configure: Regenerate.
2357 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
2359 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
2360 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
2363 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
2366 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
2369 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2371 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
2372 to nonimmediate_operand.
2373 ("*doloop_di"): Likewise.
2375 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
2377 * real.h (struct real_value): Use the same type for all
2378 bitfields. Rename exp to uexp.
2379 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
2380 Adjust all uses of exp...
2381 * builtins.c: ... here, ...
2382 * emit-rtl.c: ... here, and ...
2383 * real.c: ... and here.
2385 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
2387 * pretty-print.c (pp_base_maybe_space): New function.
2388 * pretty-print.h (pp_base_maybe_space): Declare.
2389 (pp_maybe_space): New macro.
2391 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2393 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
2395 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2397 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
2398 of using register multiplication cost.
2399 (expand_mult): Adapt choose_mult_variant call.
2400 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
2401 of MODE; pass appropriate cost bound. Adjust result when
2402 performing signed multiplication by a negative constant.
2403 Don't use intermediate modes larger than word_mode.
2405 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2407 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
2408 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
2409 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
2410 * explow.c (expr_size): Likewise.
2411 * expr.h (placeholder_list, find_placeholder): Deleted.
2412 * expr.c (store_constructor): Likewise.
2413 (get_inner_reference): Likewise. Also don't call find_placeholder.
2414 (placeholder_list, find_placeholder): Deleted.
2415 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
2416 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
2417 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
2418 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
2419 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
2421 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
2422 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
2423 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
2424 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
2425 Clean up by using first_rtl_op.
2426 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
2427 (substitute_placeholder_in_expr): New function.
2428 * tree.def (WITH_RECORD_EXPR): Deleted.
2429 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
2430 (substitute_placeholder_in_expr): New.
2432 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
2434 * dojump.c (prefer_and_bit_test): Fix which part of
2435 the and_test is replaced.
2437 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
2439 * frontends.texi: Add missing line.
2441 2004-03-21 Zack Weinberg <zack@codesourcery.com>
2442 Chris Devers <cdevers@pobox.com>
2443 Joseph S. Myers <jsm@polyomino.org.uk>
2445 * doc/frontends.texi: Rewrite.
2446 * doc/gcc.texi: Update last modification date.
2448 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
2450 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
2451 message before redirecting the edge.
2453 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2455 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
2457 * explow.c (force_not_mem): Set REG_POINTER flag according to
2459 * rtl.h (MEM_POINTER): New macro.
2460 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
2463 2004-03-20 Roger Sayle <roger@eyesopen.com>
2466 * cse.c (fold_rtx): Avoid substituting constants into unary
2467 conversion operations.
2469 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2471 * fold-const.c (fold): Replace "expr" with "t".
2473 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
2476 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
2477 DECL_ORIGINAL_TYPE if there isn't one.
2479 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2481 * fold-const.c (fold): Replace "final_type" with "type".
2482 Remove variable "final_type".
2484 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2486 * fold-const.c (fold): Constify "type".
2487 Replace "TREE_TYPE (t)" with "type".
2489 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2491 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
2492 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
2493 via (*targetm.foo) () with targetm.foo ().
2495 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
2498 * doc/install.texi: Add info directory category and entry.
2500 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2502 * fold-const.c (fold): Replace "t" with "tem" where it is used
2503 as a temporary variable. Remove "orig_t" and all of its uses.
2505 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2507 * fold-const.c (fold): Remove variable "invert".
2508 Move the handling of relational expressions that can be folded
2510 (fold_relational_const): ... here.
2511 (tree_expr_nonzero_p): New.
2513 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
2516 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
2519 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
2521 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
2522 (GTFILES): Add $(srcdir)/dojump.h.
2523 (gt-dojump.h): New dependency.
2524 * dojump.c (and_reg, and_test, shift_test): New static variables.
2525 (prefer_and_bit_test): New function.
2526 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
2528 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2530 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
2531 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
2532 reorg.c, tree.h: Fix comment typos.
2534 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2536 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
2537 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
2538 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
2539 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
2540 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
2541 vmsdbgout.c: Replace calls via (*targetm.foo) () with
2544 2004-03-19 Ziemowit Laski <zlaski@apple.com>
2546 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
2547 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
2548 always_inline attribute.
2549 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
2550 Treat expansion as completed even if literal argument is
2551 invalid (so that other expansions are not tried in vain).
2553 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2555 * loop-doloop.c (add_test): Replace GEN_INT (0) with
2558 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2560 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
2562 (fold_abs_const): ... here.
2564 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2566 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
2568 2004-03-19 Denis Chertykov <denisc@overta.ru>
2571 * config/avr/avr.md ("call_insn"): Handle explicit integer
2573 (call_value_insn): Likewise.
2575 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2577 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
2579 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2581 * fold-const.c (negate_expr): Move the handling of constants
2583 (fold_negate_const): ... here.
2585 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2587 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
2588 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
2589 * tree.c (debug_no_type_hash): Deleted.
2590 (type_hash_canon): Abort if passed a variant.
2591 Check lang_hooks.types.hash_types.
2592 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
2593 (build_array_type): Remove unnecessary allocation of pointer type.
2594 (build_complex_type): Properly qualify resulting type.
2596 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
2598 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
2600 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
2602 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
2603 (expand_mult): ...here.
2604 (extract_high_half): New, split out from expand_mult_highpart.
2605 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
2606 (expand_highpart): Evaluate the cost of a shift/add sequence,
2607 then see if any of the specialized optabs are cheaper.
2609 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
2611 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
2613 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2615 * convert.c (convert_to_real): Add more math builtins.
2617 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2619 * convert.c (convert_to_real): Reformat using switch stmt.
2621 2004-03-18 Mark Mitchell <mark@codesourcery.com>
2623 * c-common.c (pointer_int_sum): Do not complain about using
2624 pointers to pointers-to-members.
2626 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
2628 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
2629 have moved to the target hooks structure".
2631 2004-03-18 James E Wilson <wilson@specifixinc.com>
2633 * config/mips/mips.md (type): Split move into arith and fmove. Split
2634 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
2635 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
2637 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
2639 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
2640 rm7_fp_quick): Likewise.
2641 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
2642 rm9k_fquick): Likewise.
2643 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
2645 (ir_sr70_icmp): Delete.
2647 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2649 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
2650 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
2651 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
2652 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
2653 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
2654 Protect with proper check.
2655 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
2656 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
2657 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
2658 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
2659 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
2660 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
2662 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
2664 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
2666 * gcse.c (eliminate_partially_redundant_loads): Reject change if
2667 dest is set between beginning and current insn.
2669 2004-03-18 Mark Mitchell <mark@codesourcery.com>
2671 * c-decl.c (grokdeclarator): Do not complain about redeclaring
2672 visible "static" identifiers "extern" in a local scope.
2673 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
2674 post-increments/decrements.
2676 2004-03-18 Bob Wilson <bob.wilson@acm.org>
2678 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
2679 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
2680 (xtensa_va_start): Remove assignment to current_function_arg_words.
2682 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
2684 * alias.c (record_set): Detect the case where a register is assigned
2685 a new value that has the same base term as the old one.
2687 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2689 * doloop.c: Removed.
2690 * loop-doloop.c: New file.
2691 * Makefile.in (doloop.o): Remove.
2692 (loop-doloop.o): New.
2693 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
2694 * cfgloopanal.c (get_loop_level): New function.
2695 * loop-iv.c (iv_number_of_iterations): Handle case when loop
2696 is leaved immediatelly.
2697 * loop.c (strength_reduce): Do not call doloop optimization.
2698 * loop.h (LOOP_BCT): Removed.
2699 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
2700 (rest_of_handle_loop2): Call doloop_optimize_loops.
2701 (rest_of_compilation): Test for optimizations moved to
2702 rest_of_handle_loop2.
2704 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
2706 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
2708 (rs6000_emit_prologue): Ditto.
2709 (rs6000_emit_epilogue): Ditto.
2710 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
2711 macro for mixed mode.
2713 2004-03-18 Jan Hubicka <jh@suse.cz>
2715 * predict.c (propagate_freq): Compute correctly frequency of
2718 2004-03-17 Eric Christopher <echristo@redhat.com>
2720 * builtins.c (apply_args_size): Use reg_raw_mode.
2721 (apply_result_size): Ditto.
2723 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2726 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
2728 2004-03-17 Jakub Jelinek <jakub@redhat.com>
2730 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
2731 32-bit builds when defaulting to 32-bit.
2733 2004-03-17 Jan Hubicka <jh@suse.cz>
2735 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
2738 2004-03-17 James E Wilson <wilson@specifixinc.com>
2740 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
2741 (hazard_nop): Change type to nop.
2742 (type): Split arith into arith, shift, slt, clz. Delete darith.
2743 Fix all uses. Change arith to multi if more than one insn emitted.
2744 * config/mips/5400.md (ir_vr54_arith): Likewise.
2745 * config/mips/5500.md (ir_vr55_arith): Likewise.
2746 * config/mips/7000.md (rm7_int_other): Likewise.
2747 * config/mips/9000.md (rm9k_int): Likewise.
2748 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
2750 2004-03-17 Joel Brobecker <brobecker@gnat.com>
2752 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
2753 to hold the subtype tree instead of recomputing it several times.
2755 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
2757 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
2759 * config/mn10300/mn10300.md (cc): Remove "invert".
2761 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2763 * builtins.c (integer_valued_real_p): Add builtin rint.
2764 (fold_builtin): Likewise.
2765 * convert.c (convert_to_real): Likewise.
2767 * convert.c (convert_to_real): Fix typos in `long double'
2770 2004-03-16 Mark Mitchell <mark@codesourcery.com>
2773 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
2774 generated COMPOUND_EXPRs.
2776 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2778 * config/h8300/t-rtems (h8300-*-rtems*): New.
2780 2004-03-16 Eric Christopher <echristo@redhat.com>
2782 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
2784 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
2786 * config/i386/i386-protos.h: Add a prototype for
2787 ix86_reverse_condition.
2788 * config/i386/i386.c (ix86_reverse_condition): New.
2789 * config/i386/i386.h (REVERSE_CONDITION): Use
2790 ix86_reverse_condition.
2791 * config/i386/i386.md: Use ix86_reverse_condition instead of
2794 2004-03-16 J. Brobecker <brobecker@gnat.com>
2796 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
2798 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
2801 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
2803 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
2805 * c-common.c (c_common_type_for_mode): Build vector types on
2807 (handle_mode_attribute): Deprecate using the mode attribute
2808 to create vector types. Fix indentation.
2809 (vector_type_node_list): Remove.
2810 (handle_vector_size_attribute): Create vector types on demand.
2811 Strip a NON_LVALUE_EXPR from the attribute if there is one.
2812 * c-typeck.c (comptypes): Make vector types compatible if they
2813 have the same underlying mode.
2814 (convert_for_assignment): Use comptypes to convert between
2816 * tree.c (build_common_tree_nodes_2): Do not create vector types.
2817 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
2819 * tree.h: Remove vector types.
2820 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
2821 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2822 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
2823 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
2824 * doc/extend.texi (Vector Types): Document how to use the
2825 vector_size attribute to create vectors, rather than mode.
2827 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
2828 * config/i386/emmintrin.h: Likewise.
2829 * config/i386/mmintrin.h: Likewise.
2830 * config/i386/xmmintrin.h: Likewise.
2831 * config/sh/ushmedia.h: Likewise.
2833 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
2835 * config/freebsd-spec.h, config/arc/arc-protos.h,
2836 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
2837 config/arm/linux-gas.h, config/arm/semi.h,
2838 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
2839 config/ia64/freebsd.h, config/mips/7000.md,
2840 config/mips/9000.md, config/ns32k/ns32k-protos.h,
2841 config/sparc/pbd.h: Update copyright.
2843 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2846 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
2848 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
2850 * combine.c (combine_simplify_rtx): Remove the "last"
2851 parameter and its documentation. Adjust recursive calls.
2852 (simplify_logical): Always perform the only simplification
2853 controlled by "last", if the simplified expression is
2855 (try_combine): Do not pass the "last" parameter to
2856 combine_simplify_rtx.
2858 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
2861 * config/mips/mips.md (UNSPEC_GP): New constant.
2862 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
2863 an UNSPEC instead of (reg $gp).
2864 (mips16_gp_pseudo_reg): Change accordingly.
2865 (print_operand): Print $gp directly when handling CONST_GP_P.
2867 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
2869 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
2870 * longlong.h: Make code 68060 clean when compiling for m68060.
2872 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
2874 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
2875 * doc/md.texi: Clarify description of "i" constraint.
2877 2004-03-15 James E Wilson <wilson@specifixinc.com>
2879 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
2880 Split store into store, fpstore, fpidxstore. Fix all uses.
2881 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
2883 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
2884 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
2885 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
2886 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
2887 ir_sr70_fstore): Likewise.
2889 2004-03-15 Richard Henderson <rth@redhat.com>
2892 * except.c (collect_one_action_chain): Record action for cleanup
2893 outer of exception spec.
2895 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
2897 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
2898 Fix the check for abort and only do the mmap if we can.
2900 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
2902 * config/sparc/sparc.h: Rework comments about the code model
2903 in 64-bit environment and the mode 'Pmode'.
2904 * doc/invoke.texi (SPARC options): Rework description of the
2905 different code models supported in 64-bit environment.
2907 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
2909 * defaults.h (REVERSIBLE_CC_MODE): Define.
2910 * jump.c (reversed_comparison_code_parts): Don't check if
2911 REVERSIBLE_CC_MODE is defined.
2913 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
2915 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
2916 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
2917 hosthooks.h, params.h, ra-colorize.c, web.c,
2918 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
2919 config/avr/avr-protos.h, config/avr/avr.md,
2920 config/fr30/fr30-protos.h, config/fr30/fr30.md,
2921 config/h8300/fixunssfsi.c, config/i386/darwin.h,
2922 config/i386/freebsd.h, config/i386/freebsd64.h,
2923 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
2924 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
2925 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
2926 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
2927 config/pa/pa64-regs.h, config/rs6000/aix41.h,
2928 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
2929 config/sparc/aout.h, config/sparc/freebsd.h,
2930 config/sparc/litecoff.h, config/vax/vax-protos.h,
2931 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
2934 2004-03-15 Paul Brook <paul@codesourcery.com>
2936 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
2938 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
2940 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
2941 (pp_c_cv_qualifier): Document.
2942 (pp_c_space_for_pointer_operator): Likewise.
2943 (pp_c_integer_constant): Likewise.
2944 (pp_c_identifier): Likewise.
2945 (pp_c_init_declarator): Don't print function body.
2947 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
2949 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
2950 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
2951 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
2952 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
2953 wording and grammar.
2955 2004-03-14 Roger Sayle <roger@eyesopen.com>
2957 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
2958 with lang_hooks.foo ().
2959 * builtins.c (expand_builtin_va_arg): Likewise.
2960 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
2961 c_common_type_for_mode, c_common_nodes_and_builtins,
2962 handle_mode_attribute, handle_vector_size_attribute): Likewise.
2963 * c-convert.c (convert): Likewise.
2964 * c-format.c (check_format_types): Likewise.
2965 * c-objc-common.c (c_tree_printer): Likewise.
2966 * c-typeck.c (build_unary_op, build_conditional_expr,
2967 build_binary_op): Likewise.
2968 * calls.c (try_to_integrate, expand_call,
2969 emit_library_call_value_1): Likewise.
2970 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
2972 * cgraphunit.c (record_call_1, cgraph_analyze_function,
2973 cgraph_expand_function): Likewise.
2974 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
2975 * coverage.c (build_fn_info_type, build_ctr_info_type,
2976 build_gcov_info, create_coverage): Likewise.
2977 * dbxout.c (dbxout_init): Likewise.
2978 * diagnostic.c (diagnostic_report_current_function): Likewise.
2979 * dojump.c (do_jump): Likewise.
2980 * dwarf2out.c (dwarf2_name): Likewise.
2981 * except.c (init_eh): Likewise.
2982 * explow.c (expr_size, int_expr_size): Likewise.
2983 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
2985 * expr.c (store_expr, store_constructor, safe_from_p,
2986 expand_expr_real, do_store_flag, try_casesi): Likewise.
2987 * function.c (push_function_context_to, pop_function_context_from,
2988 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
2989 put_var_into_stack, allocate_struct_function, current_function_name):
2991 * integrate.c (copy_decl_for_inlining, expand_inline_function):
2993 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
2994 lhd_print_error_function): Likewise.
2995 * opts.c (handle_option, decode_options): Likewise.
2996 * passes.c (open_dump_file): Likewise.
2997 * print-tree.c (print_node): Likewise.
2998 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
2999 expand_decl_cleanup, emit_case_nodes): Likewise.
3000 * stor-layout.c (variable_size): Likewise.
3001 * toplev.c (announce_function, wrapup_global_declarations,
3002 check_global_declarations, compile_file, default_tree_printer,
3003 process_options, lang_dependent_init, finalize): Likewise.
3004 * tree-dump.c (dequeue_and_dump): Likewise.
3005 * tree-inline.c (remap_decl, remap_block, copy_body_r,
3006 initialize_inlined_parameters, declare_return_variable,
3007 inlinable_function_p, expand_call_inline, optimize_inline_calls,
3008 walk_tree, copy_tree_r): Likewise.
3009 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3010 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
3011 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
3012 variably_modified_type_p, dump_tree_statistics): Likewise.
3013 * varasm.c (assemble_variable, compare_constant, copy_constant,
3014 force_const_mem, compute_reloc_for_constant, output_constant,
3015 output_addressed_constants, initializer_constant_valid_p): Likewise.
3017 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
3019 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
3021 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
3023 * doc/install.texi: Reflect autoconf and automake version for
3024 libffi. Update autoconf version to 2.59.
3026 2004-03-13 Roger Sayle <roger@eyesopen.com>
3028 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
3029 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
3030 make_range, build_range_check, fold_range_test, unextend,
3031 constant_boolean_node, fold_binary_op_with_conditional_arg,
3032 fold_truthop, fold_mathfn_compare, fold_inf_compare,
3033 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
3034 with lang_hooks.foo ().
3036 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
3038 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
3040 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
3042 * doc/install.texi: Note status of -fnew-ra.
3044 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3047 * expr.c (store_expr): Call emit_queue before generating the move
3048 from the temporary to the original target. Protect the temporary
3051 2004-03-13 Jakub Jelinek <jakub@redhat.com>
3054 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
3055 other than UNSPEC_GOTOFF.
3057 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
3059 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
3060 to arm_legitimate_index_p. Update all callers with SET as default
3062 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
3063 range if OUTER is a sign-extend operation on QImode. Correctly
3064 reject shift operations on sign-extended QImode addresses.
3065 (bad_signed_byte_operand): Delete.
3066 (arm_extendqisi_mem_op): New function.
3067 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
3068 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
3070 (CONSTRAINT_LEN): New.
3071 (EXTRA_CONSTRAINT): Delete. Replace with...
3072 (EXTRA_CONSTRAINT_STR): ... this.
3073 (PREDICATE_CODES): Remove bad_signed_byte_operand.
3074 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
3075 is now always default.
3076 (define_splits for bad sign-extend loads): Delete.
3077 (arm_extendqisi, arm_extendqisi_v5): Likewise.
3078 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
3079 Rework 'U' constraint to 'Uv'.
3080 * arm-protos.h: Remove bad_signed_byte_operand. Add
3081 arm_extendqisi_mem_op.
3082 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
3085 2004-03-13 Alan Modra <amodra@bigpond.net.au>
3087 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
3088 with targetm version.
3091 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
3092 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
3093 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
3094 Update all users of RS6000_ARG_SIZE.
3095 (function_arg_advance): Count fregno using mode size.
3096 (function_arg): Handle long double split over regs and memory.
3097 (function_arg_partial_nregs): Likewise.
3098 (rs6000_va_arg): Repackage complex args.
3100 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
3103 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
3104 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
3105 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
3107 2004-03-12 Jakub Jelinek <jakub@redhat.com>
3109 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
3111 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
3112 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
3114 2003-03-12 Andrew Pinski <apinski@apple.com>
3116 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
3117 Use ret instead of result. Use addr instead of base.
3119 2004-03-12 David Edelsohn <edelsohn@gnu.org>
3121 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
3122 fixes required by libstdc++ and update installation instructions
3125 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
3127 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
3128 leading '@' on fastcall symbols before stripping suffix.
3130 2004-03-12 Roger Sayle <roger@eyesopen.com>
3132 * combine.c (unmentioned_reg_p): New function to check whether an
3133 expression is a "specialization" of another, i.e. that there are
3134 no registers or memory references mentioned in the first that don't
3135 appear in the second.
3136 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
3137 (combine_instructions): Also try combining instructions using the
3138 REG_EQUAL note from a preceding log-linked instruction.
3140 2004-03-12 Roger Sayle <roger@eyesopen.com>
3142 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
3144 2004-03-12 Matt Austern <austern@apple.com>
3146 * target.h (struct gcc_target): New target hook, unwind_label.
3147 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
3148 * output.h (default_emit_unwind_label): New function.
3149 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
3150 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
3151 (TARGET_SUPPORTS_HIDDEN): New target macro.
3152 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
3153 that corresponds to this FDE.
3154 (FRAME_BEGIN_LABEL): Allow target to override default label.
3155 (output_call_frame_info): If FDEs are linknonce, then use extra
3156 indirection for FDE encoding, output a label for each FDE, and
3157 output an empty label for each function without an FDE.
3158 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
3159 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
3160 decls with DECL_ONE_ONLY set, if that macro is defined.
3161 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
3162 for a SUPPORTS_ONE_ONLY target.
3163 * config/darwin-protos.h (darwin_unique_section): Declare.
3164 (darwin_asm_named_section): Likewise.
3165 (darwin_section_type_flags): Likewise.
3166 (darwin_non_lazy_pcrel): Likewise.
3167 (darwin_emit_unwind_label): Likewise.
3168 (darwin_make_decl_one_only): Likewise.
3169 * config/darwin.c (machopic_finish): Get rid of tweak that
3170 eliminate stubs for symbols that are defined.
3171 (darwin_encode_section_info): Don't treat weak functions as defined.
3172 (darwin_make_decl_one_only): Define.
3173 (darwin_asm_named_section): Likewise.
3174 (darwin_section_type_flags): Likewise.
3175 (darwin_unique_section): Likewise.
3176 (darwin_emit_unwind_label): Likewise.
3177 (darwin_non_lazy_pcrel): Likewise.
3178 (darwin_asm_output_dwarf_delta): Difference between two labels is
3179 local only if both labels are local.
3180 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
3181 (ASM_MAKE_LABEL_LINKONCE): Likewise.
3182 (TARGET_SUPPORTS_HIDDEN): Likewise.
3183 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
3184 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
3185 (FRAME_BEGIN_LABEL): Likewise.
3186 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
3187 (ASM_DECLARE_FUNCTION_NAME): Likewise.
3188 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
3189 (TARGET_ASM_UNIQUE_SECTION): Define.
3190 (EH_FRAME_SECTION_NAME): Define.
3191 (EH_FRAME_SECTION_ATTR): Likewise.
3192 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
3193 (TARGET_ASM_NAMED_SECTION): Likewise.
3194 (TARGET_SECTION_TYPE_FLAGS): Likewise.
3195 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
3196 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
3197 TARGET_ASM_EMIT_UNWIND_LABEL.
3199 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3201 * builtins.c (expand_builtin_mathfn): Add pow10* to the
3202 existing exp10* case.
3203 (expand_builtin): Likewise.
3205 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3207 * doc/tm.texi (registers) <Values in Registers>: Add
3208 entry for REGMODE_NATURAL_SIZE.
3210 2004-03-12 Richard Henderson <rth@redhat.com>
3213 * target.h (struct gcc_target): Move calls substructure before
3214 booleans. Add split_complex_arg.
3215 * function.c (assign_parms, split_complex_args): Use it.
3216 * calls.c (expand_call): Likewise.
3217 (split_complex_values): Likewise. Check for splittable types
3218 before allocating memory.
3219 (split_complex_types): Likewise.
3220 * system.h (SPLIT_COMPLEX_ARGS): Poison.
3221 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
3222 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
3223 * config/alpha/alpha.c (alpha_split_complex_arg): New.
3224 (TARGET_SPLIT_COMPLEX_ARG): New.
3225 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
3226 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
3227 (rs6000_override_options): Zap it for non-AIX.
3228 (rs6000_function_value): Use targetm.calls.split_complex_arg.
3229 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
3230 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
3231 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
3232 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
3233 SPLIT_COMPLEX_ARGS entry.
3235 2004-03-11 Richard Henderson <rth@redhat.com>
3237 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
3238 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
3239 (alpha_emit_xfloating_arith): Update to match.
3240 (alpha_emit_xfloating_compare): Likewise.
3241 (alpha_emit_xfloating_cvt): Likewise.
3242 (alpha_emit_xfloating_libcall): Take already built symbol,
3244 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
3247 2004-03-11 Richard Henderson <rth@redhat.com>
3250 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
3252 * simplify-rtx.c (simplify_relational_operation): Fix typo.
3254 2004-03-11 Richard Henderson <rth@redhat.com>
3257 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
3259 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3262 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
3263 defined, pass small BLKmode values in registers in the low-order part.
3265 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3267 * combine.c (if_then_else_cond): Check for NULL return value of
3268 simplify_gen_subreg.
3270 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
3273 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
3274 TARGET_SINGLE_FLOAT.
3276 2004-03-11 Steve Ellcey <sje@cup.hp.com>
3278 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
3279 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
3280 * config/ia64/ia64.c (ia64_init_libfuncs): New.
3281 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
3283 2004-03-11 Roger Sayle <roger@eyesopen.com>
3285 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
3286 -((int)X>>C) where C is an integer constant one bit less than the
3287 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
3288 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
3290 * simplify-rtx.c (simplify_unary_operation): Also implement the
3291 above transformations at the RTL level.
3293 2004-03-11 Alan Modra <amodra@bigpond.net.au>
3295 * real.c (encode_ibm_extended): Do round low word.
3297 2004-03-11 Ben Elliston <bje@wasabisystems.com>
3299 * config/arm/arm.md (is_xscale): Comment this attribute and move
3300 it a bit further up in the file, closer to related attributes.
3302 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
3304 * config/host-solaris.c (sol_gt_pch_use_address): Add
3305 missing terminating marker to comment.
3307 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
3309 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
3310 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
3311 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
3312 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
3313 move_operand as source predicate in all cases.
3314 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
3315 Test reg_or_0_operand. Use move_operand as source predicate.
3316 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
3317 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
3318 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
3319 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
3320 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
3321 Use move_operand as source predicate. Remove 'K' constraint.
3322 (*movqi_internal): Likewise movqi_internal.
3323 (*movsf_hardfloat): Renamed from movsf_internal1. Test
3324 reg_or_0_operand. Use move_operand as source predicate.
3325 (*movsf_softfloat): Likewise movsf_internal2.
3326 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
3327 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
3328 (*movdf_softfloat): Likewise movdf_internal2.
3329 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
3330 for DImode if !TARGET_64BIT.
3331 (mips_legitimize_move): Simplify accordingly.
3333 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
3336 * var-tracking.c (struct variable_def): Added field refcount.
3337 (variable_htab_free): Decrease the refcount and delete variable
3338 only if there are no more references.
3339 (unshare_variable): New function.
3340 (vars_copy_1): Increase refcount instead of copying the variable.
3341 (variable_union): Share the variables where possible, unshare
3342 the variables if needed.
3343 (variable_different_p): Return false if var1 and var2 are
3345 (variable_was_changed): Init the refcount of new variable.
3346 (set_frame_base_location): Unshare variable if needed.
3347 (set_variable_part): Init the refcount of new variable.
3348 Unshare the variables if needed.
3349 (delete_variable_part): Unshare the variables if needed.
3350 (emit_notes_for_differences_1): Init the refcount of new variable.
3351 (vt_add_function_parameters): Do not add function parameters to
3352 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
3353 (vt_initialize): Do not add frame_base_decl to IN set of
3354 ENTRY_BLOCK_PTR because it is unused anyway.
3356 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
3358 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
3359 (vars_copy): Likewise.
3360 (variable_union): Likewise.
3361 (set_variable_part): Likewise.
3362 (delete_variable_part): Likewise.
3364 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
3366 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
3367 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
3368 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
3369 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
3370 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
3371 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
3372 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
3373 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
3374 config/stormy16/stormy16.c: Fix comment typos and formatting.
3376 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
3378 * configure: Regenerate, since I forgot to while committing Paolo's
3381 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
3384 Move language detection to the top level.
3385 * configure.ac: Remove code to detect languages,
3386 it now lives exclusively in the top level.
3387 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
3388 top level, renamed to ACX_PROG_GNAT.
3390 2004-03-10 Richard Henderson <rth@redhat.com>
3392 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
3394 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
3395 and host_xmake_file fragments.
3396 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
3397 (gt_pch_restore): Similarly for gt_pch_use_address.
3398 (default_gt_pch_get_address): New.
3399 (mmap_gt_pch_get_address): Split out of gt_pch_save.
3400 (default_gt_pch_use_address): Split out of gt_pch_restore.
3401 (mmap_gt_pch_use_address): Likewise.
3402 * hooks.c (hook_voidp_size_t_null): Remove.
3403 (hook_bool_voidp_size_t_false): Remove.
3404 * hooks.h: Likewise.
3405 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
3406 default_ or mmap_ definitions.
3407 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
3408 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
3409 and gt_pch_use_address.
3410 * config/host-linux.c, config/host-solaris.c: New files.
3411 * config/x-linux, config/x-solaris: New files.
3412 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
3413 Update for changed definition.
3414 (darwin_rs6000_gt_pch_use_address): Likewise.
3415 * doc/hostconfig.texi: Update docs.
3417 2004-03-10 Richard Henderson <rth@redhat.com>
3420 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
3421 except for pedantic c90 mode.
3423 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3425 * configure.ac: Bump AC_PREREQ to 2.59.
3426 * configure: Regenerate.
3428 2004-03-10 Uros Bizjak <uros@kss-loka.si>
3430 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
3431 (exp10_optab, exp2_optab): Define corresponding macros.
3432 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
3433 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
3434 using exp10?f2 and exp2?f2 patterns.
3435 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
3436 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
3437 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
3438 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
3440 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
3441 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
3442 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
3444 2004-03-10 Anthony Green <green@redhat.com>
3446 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
3448 2004-03-10 David Edelsohn <edelsohn@gnu.org>
3450 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
3451 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
3453 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
3454 TARGET_OS_AIX_CPP_BUILTINS.
3455 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
3456 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
3457 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
3458 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
3461 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3463 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
3465 2004-03-10 David Edelsohn <edelsohn@gnu.org>
3467 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3468 __LONGDOUBLE128 on AIX.
3470 2004-03-10 Andrew Haley <aph@redhat.com>
3472 PR optimization/14381
3473 * function.c (expand_function_end): Emit a blockage insn before
3474 the epilogue when -fnon-call-exceptions is used.
3476 * except.c (expand_start_all_catch): Make comment more accurate.
3478 2004-03-08 Joel Sherrill <joel@oarcorp.com>
3481 * config/rs6000/t-rtems: Add missing file on branch.
3483 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
3485 * dbxout.c (dbxout_symbol_location): Do not output references
3486 to optimized-out constant pool symbols.
3488 2004-03-10 Andreas Schwab <schwab@suse.de>
3490 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
3493 2004-03-09 James E Wilson <wilson@specifixinc.com>
3495 * alias.c (alias_sets_might_conflict_p): New.
3496 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
3497 * common.opt (Wstrict-aliasing=): New.
3498 * flags.h (warn_strict_aliasing): Change type to int.
3499 * opts.c (warn_strict_aliasing): Change type to int.
3500 (common_handle_option): Handle OPT_Wstrict_aliasing_.
3501 * tree.h (alias_sets_might_conflict_p): Declare it.
3502 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
3504 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
3507 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
3508 (CALL_USED_REGISTERS): Likewise.
3509 (REG_CLASS_CONTENTS): Likewise.
3510 (REG_ALLOC_ORDER): New.
3511 (REGNO_REG_CLASS): Use regno_reg_class.
3512 * config/m68k/m68k.c: Add regno_reg_class array.
3514 2004-03-09 Steve Ellcey <sje@cup.hp.com>
3516 * config/ia64/ia64.md (divsi3): Fix algorithm.
3518 (setf_exp_xf): Remove '*' from name.
3519 * testsuite/gcc.dg/20040309-1.c: New test.
3521 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
3523 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
3524 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
3525 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
3526 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
3527 (sparc_aout_select_rtx_section): Don't check
3528 SUNOS4_SHARED_LIBRARIES.
3529 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
3531 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
3534 * doc/md.texi (Pattern Ordering, Dependent Patterns)
3535 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
3538 2004-03-09 Zack Weinberg <zack@codesourcery.com>
3540 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
3541 (LIBGCC_SPEC): Update to match.
3543 2004-03-09 Zack Weinberg <zack@codesourcery.com>
3545 * c-decl.c (last_function_parms, last_function_parm_tags)
3546 (last_function_parm_others, current_function_parms)
3547 (current_function_parm_tags, current_function_parm_others):
3549 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
3551 (grokdeclarator): For function definitions, save the arg-info
3552 block from the declarator in DECL_ARGUMENTS.
3553 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
3554 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
3555 contains only PARM_DECLs. Improve diagnostics.
3556 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
3557 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
3558 (store_parm_decls_newstyle): Take the function to operate on,
3559 and an arg-info block, as arguments; don't get anything from
3560 current_function_* globals.
3561 (store_parm_decls_oldstyle): Likewise.
3562 (store_parm_decls): Pass fndecl and its arg-info block down to
3563 store_parm_decls_newstyle/oldstyle. Send functions with empty
3564 argument lists through store_parm_decls_newstyle to reduce
3566 (pushdecl): Comment on the problems with the call to copy_node.
3567 Clear DECL_ARGUMENTS of the old node after copying it, if it
3568 is an arg-info block instead of a chain of decls.
3569 (start_function): Do not manipulate current_function_parm* or
3570 last_function_parm*.
3572 2004-03-09 Roger Sayle <roger@eyesopen.com>
3573 Andrew Pinski <pinskia@physics.uc.edu>
3575 * ifcvt.c (noce_try_sign_mask): New function to transform
3576 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
3577 (noce_process_if_block): Call noce_try_sign_mask.
3579 2004-03-09 Andrew Pinski <apinski@apple.com>
3581 * c-typeck.c (tagged_types_tu_compatible_p):
3584 2004-03-09 Roger Sayle <roger@eyesopen.com>
3586 * simplify-rtx.c (simplify_const_relational_operation): New function
3587 renamed from simplify_relational_operation.
3588 (simplify_relational_operation): Change prototype to accept an
3589 additional mode argument. Call simplify_const_relational_operation.
3590 (simplify_gen_relational): Update simplify_relational_operation call.
3591 (simplify_ternary_operation): Update simplify_relational_operation
3592 subroutine call to use simplify_const_relational_operation instead.
3594 * rtl.h (simplify_const_relational_operation): Prototype here.
3595 (simplify_relational_operation): Add addtional mode argument.
3597 * combine.c (combine_simplify_rtx): Update calls to
3598 simplify_relational_operation.
3599 (simplify_set): Likewise.
3600 (gen_binary): Likewise.
3601 * cse.c (fold_rtx): Likewise.
3602 * dojump.c (compare_from_rtx): Likewise.
3603 (do_compare_rtx_and_jump): Likewise.
3604 * integrate.c (subst_constants): Likewise.
3605 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
3607 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
3609 * config/m32r/m32r.md: Remove all define_peephole's.
3611 2004-03-09 Alan Modra <amodra@bigpond.net.au>
3613 * config/rs6000/rs6000.md: Remove trailing whitespace.
3615 2004-03-08 Eric Christopher <echristo@redhat.com>
3617 * Makefile.in (site.exp): Add libiconv variable definition.
3619 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
3621 * configure: Regenerate for config/accross.m4 correction.
3623 2004-03-08 Joel Sherrill <joel@oarcorp.com>
3626 * config/rs6000/t-rtems: Add missing file on branch.
3628 2004-03-08 Roger Sayle <roger@eyesopen.com>
3631 * c-typeck.c (c_mark_addressable): A register variable should
3632 be considered global if its not automatic, i.e. TREE_PUBLIC,
3633 TREE_STATIC or DECL_EXTERNAL.
3634 * function.c (put_var_into_stack): Call abort when placing a
3635 hard register into the stack, if x_parm_reg_stack_loc is NULL.
3637 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
3639 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
3640 ("*extendqisi2_short_displ"): Likewise.
3642 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
3644 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
3645 (comp_operator): Likewise.
3646 * config/pdp11/pdp11-protos.h: Remove corresponding
3649 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
3651 * expr.c (highest_pow2_factor_for_type): Rename into
3652 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
3653 TYPE_ALIGN when the target is a COMPONENT_REF.
3654 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
3656 2004-03-08 Alan Modra <amodra@bigpond.net.au>
3658 * config/rs6000/rs6000.c: Formatting fix.
3659 (legitimate_offset_address_p): Correct offset range check.
3661 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
3662 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
3665 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
3667 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
3669 ("ashrdi3_no_power"): Disable for little endian.
3672 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3674 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
3677 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
3680 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
3681 case, checking for -no-mul-bug-abort option.
3682 * configure, config.in: Regenerate.
3683 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
3684 and -mno-mul-bug-workaround.
3685 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
3686 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
3687 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
3688 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
3689 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
3690 sure mulu.d is not last on cache-line.
3691 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
3692 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
3693 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
3694 (TARGET_SWITCHES): New options -mmul-bug-workaround and
3695 -mno-mul-bug-workaround.
3696 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
3697 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
3698 * config/cris/cris.c (cris_operand_extend_operator): Clarify
3699 relation to MULT in head comment.
3700 (cris_op_str): Abort for MULT.
3701 (cris_print_operand) <case '!'>: New case.
3703 2004-03-08 Alan Modra <amodra@bigpond.net.au>
3706 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
3707 dw_val_class_vec. Replace use throughout file.
3708 (dw_float_const): Delete.
3709 (dw_vec_const): New.
3710 (dw_val_struct_union): Rename val_float to val_vec. Replace use
3712 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
3713 (same_dw_val_p): Adjust vec comparison. Use memcmp.
3714 (size_of_die): Adjust dw_val_class_vec sizing.
3715 (output_die): Output dw_val_class_vec.
3716 (insert_int, extract_int, insert_float): New functions.
3717 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
3718 Handle CONST_VECTOR.
3719 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
3721 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
3723 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
3724 AltiVec abi cannot co-exist.
3726 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
3728 2004-03-07 Jan Hubicka <jh@suse.cz>
3730 * except.c (emit_to_new_bb_before): Break fallthru edges.
3732 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
3734 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
3735 ("*lshrsi3"): Also accept an immediate for 68HC12.
3736 ("*ashrsi3_const"): Likewise.
3737 ("*ashrsi3"): Likewise.
3738 ("*ashlsi3_const"): Likewise.
3739 ("*ashlsi3"): Likewise.
3740 ("cmphi_1_hc12"): Compare two hard register by pushing them and
3741 comparing with a pop; don't use a split for that.
3742 ("cmphi split"): Disable compare split for 68HC12.
3744 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
3745 the status operands if they have side effects.
3747 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
3749 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
3751 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
3752 config/h8300/h8300.h, config/ia64/ia64.h,
3753 config/mcore/mcore.h, config/mmix/mmix.h,
3754 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
3755 config/stormy16/stormy16.h, config/v850/v850.h,
3756 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
3757 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
3760 2004-03-07 Roger Sayle <roger@eyesopen.com>
3762 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
3763 <XOR_EXPR>: Fold x ^ x as zero.
3764 <AND_EXPR>: Fold x & x as x.
3766 2004-03-07 Roger Sayle <roger@eyesopen.com>
3768 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
3769 "foo++ == const" into "++foo == const+incr".
3771 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
3773 * config/mips/mips.c (mips_in_small_data_p): Return false if
3776 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
3778 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
3780 (expand_prologue): Don't make an interrupt or a trap handler a far
3782 (m68hc11_initial_elimination_offset): Likewise.
3784 2004-03-06 Richard Henderson <rth@redhat.com>
3786 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
3788 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
3790 * config/ns32k/ns32k-protos.h: Add a prototype for
3791 ns32k_notice_update_cc.
3792 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
3793 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
3794 ns32k_notice_update_cc.
3796 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3798 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
3799 "*load_multiple_si"): Allow only if reload_completed.
3800 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
3803 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
3805 * config/vax/vax-protos.h: Add a prototype for
3806 vax_notice_update_cc.
3807 * config/vax/vax.c (vax_notice_update_cc): New.
3808 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
3809 vax_notice_update_cc.
3811 2004-03-06 David Edelsohn <edelsohn@gnu.org>
3813 * collect2.c (main): Only export initfunc and finifunc if
3814 LD_INIT_SWITCH not defined.
3815 (scan_prog_file): Only export constructors and destructors if
3816 LD_INIT_SWITCH not defined. Only export symbols not found in
3819 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3821 * pa.md (icacheflush): Reorder operands to make match_scratch operand
3823 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
3824 from calls to gen_icacheflush.
3826 2004-03-06 Richard Henderson <rth@redhat.com>
3828 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
3829 (TARGET_LONG_DOUBLE_128): New.
3830 (TARGET_SWITCHES): Add long-double-{128,64}.
3831 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
3832 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
3833 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
3834 (WIDEST_HARDWARE_FP_SIZE): New.
3835 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
3836 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
3837 if TARGET_VAX_FLOAT.
3838 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
3839 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
3841 2004-03-06 Richard Henderson <rth@redhat.com>
3843 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
3844 botched rtx class conversion.
3846 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3848 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
3849 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
3851 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
3853 * fold-const.c (fold_mathfn_compare, fold): Likewise.
3855 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3858 * config/i386/i386.md (movv2di_internal): Conditionalize on
3859 TARGET_SSE, not TARGET_SSE2.
3861 2004-03-05 Chris Demetriou <cgd@broadcom.com>
3863 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
3866 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3868 * builtins.c: Consistently use logN not log* in comments.
3870 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
3872 * rtl.h (mem_expr_equal_p): Function prototype added.
3873 * cfgcleanup.c (merge_memattrs): New function.
3874 (flow_find_cross_jump): Call merge_memattrs for matching insns.
3875 * emit-rtl.c (mem_expr_equal_p): New function.
3877 2004-03-05 Ziemowit Laski <zlaski@apple.com>
3879 * objc/objc-act.c (synth_module_prologue): Const-qualify
3880 objc_selector type if using the GNU runtime; fix generated
3881 signatures for objc_msg_lookup and objc_msg_lookup_super
3882 to match what GNU ObjC headers provide; reformat and clean up.
3883 (synth_self_and_ucmd_args): Use previously constructed (and
3884 hence possibly const-qualified) objc_selector type.
3886 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
3888 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
3890 2004-03-05 Jason Merrill <jason@redhat.com>
3892 * tree.h (TYPE_HASH): Use TYPE_UID.
3893 (TREE_HASH): New macro with old definition of TYPE_HASH.
3894 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
3895 (build_array_type, build_function_type): Likewise.
3896 (build_method_type_directly): Likewise.
3897 (build_offset_type, build_complex_type): Likewise.
3898 (type_hash_list, attribute_hash_list): Likewise. Now static.
3899 * except.c: s/TYPE_HASH/TREE_HASH/.
3901 2004-03-05 Bob Wilson <bob.wilson@acm.org>
3903 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
3904 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
3905 __va_ndx by 2 words when referencing an argument on the stack.
3906 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
3907 words when an arg on the stack is first seen.
3909 2004-03-05 Paul Brook <paul@codesourcery.com>
3911 * arm.h (ARM_FLAG_VFP): Remove.
3912 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
3913 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
3915 2004-03-05 Paul Brook <paul@codesourcery.com>
3917 * function.c (assign_parms): Include pretend alignment offset.
3919 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3921 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
3922 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
3924 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
3926 * configure.ac: When passing --enable-languages to subdir
3927 configure when host != build, make sure we don't pass an empty
3929 * configure: Regenerate.
3931 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
3934 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
3937 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
3939 * simplify-rtx.c (simplify_relational_operation): If
3940 flag_wrapv is set, do not move terms between the two
3941 side of a relational operator.
3943 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
3945 * rtlanal.c: Include target.h and output.h
3946 (rtx_cost, address_cost, default_address_cost): Move from...
3947 * cse.c (rtx_cost, address_cost, default_address_cost):
3949 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
3950 * Makefile.in: Adjust dependencies.
3952 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
3954 * cse.c (cse_end_of_basic_block): Make static.
3955 * local-alloc.c (function_invariant_p): Move to
3957 * loop.c (libcall_other_reg, record_excess_regs):
3959 * reload1.c (function_invariant_p): Moved here
3960 from local-alloc.c, made static.
3961 * rtl.h (cse_end_of_basic_block, function_invariant_p,
3962 libcall_other_reg, record_excess_regs): Remove
3965 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
3967 * config/m32r/m32r.c (signed_comparison_operator): Add a
3968 missing parenthesis.
3970 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
3972 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
3973 going to call mmap again. Read the file into the right place.
3974 Give a fatal error if we have to relocate.
3976 2004-03-04 Bob Wilson <bob.wilson@acm.org>
3978 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
3979 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
3981 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
3984 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
3985 round the same. When rounding, clear bits that would cause a
3986 second rounding in pack_d.
3987 (_fpmul_parts): Ditto. Remove #if 0:d code.
3989 2004-03-04 Ziemowit Laski <zlaski@apple.com>
3991 PR c++/14425, c++/14426
3992 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
3993 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
3994 Change C++ definitions to accept a 'const int' argument;
3995 the prototypes already do.
3996 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
3997 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
3998 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
3999 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
4000 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
4001 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
4002 end in ..._int; change them to accept an int instead of a char
4003 as the last parameter.
4005 2004-03-04 Phil Edwards <phil@codesourcery.com>
4007 * genmultilib: Change '=' to '-' when translating option names
4010 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4012 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
4013 stack slot for temp used for result of BLKmode but in integral mode.
4015 2004-03-04 Jan Hubicka <jh@suse.cz>
4017 * reload.c (find_reloads): Reorganize if seqeunce to switch.
4019 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
4020 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
4022 2004-03-04 Steve Ellcey <sje@cup.hp.com>
4024 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
4025 * testsuite/gcc.dg/20040303-1.c: New test.
4027 2004-03-04 Steven Bosscher <stevenb@suse.de>
4029 * ppro.md: Rewrite as a DFA pipeline description.
4030 * i386.md: Remove all uses of the ppro_uops attribute.
4031 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
4032 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
4033 ix86_sched_reorder, ix86_variable_issue,
4034 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
4035 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
4036 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
4037 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
4038 * athlon.md (athlon_ssecmp_load): Fix comment
4040 2004-03-04 Stuart Hastings <stuart@apple.com>
4042 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
4044 2004-03-04 Stuart Hastings <stuart@apple.com>
4046 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
4047 686, tell Darwin assembler to allow prefetch insns, non-empty def
4048 of SUBTARGET_OPTION_TRANSLATE_TABLE.
4050 2004-03-04 DJ Delorie <dj@redhat.com>
4052 PR optimization/14282
4053 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
4054 between a call and the assignment of its return value.
4056 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
4058 * config/h8300/h8300.c: Put a comment for every function.
4060 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
4062 * config/h8300/h8300.md: Add comments about peephole2's.
4064 2004-03-04 Steven Bosscher <stevenb@suse.de>
4066 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
4068 2004-03-04 Jan Hubicka <jh@suse.cz>
4070 * cfgcleanup.c (thread_jump): Update call of cselib_init.
4071 * cselib.c (cselib_record_memory): New static variable.
4072 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
4073 Give up on memories when asked for.
4074 (cselib_init): Accept new argument.
4075 * cselib.h (cselib_init): Update prototype.
4076 * gcse.c (local_cprop_pass): Update call of cselib_init.
4077 * loop.c (load_mems): Update call of cselib_init.
4078 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
4079 * sched-deps.c (sched_analyze): Update call of cselib_init.
4081 2004-03-04 David Edelsohn <edelsohn@gnu.org>
4084 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
4087 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
4090 * var-tracking.c (track_expr_p): Do not track variables which
4091 should be ignored for debugging purposes.
4093 2004-03-04 Alan Modra <amodra@bigpond.net.au>
4095 * real.c (encode_ibm_extended): Don't bother rounding low double.
4096 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
4097 when fmt->pnan < fmt->p.
4099 2004-03-04 Eric Christopher <echristo@redhat.com>
4101 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
4102 only range of valid arg registers and fixed_regs.
4104 2004-03-04 Alan Modra <amodra@bigpond.net.au>
4107 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
4108 (abstf2, abstf2_internal): New define_expand.
4110 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
4112 PR optimization/14235
4113 * expr.c (convert_move): Copy the source to a new pseudo
4114 when converting from a sub-word source to a larger-than-word
4115 register which conflicts with the source.
4117 2004-03-03 Zack Weinberg <zack@codesourcery.com>
4120 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
4121 parameters with the same name, unless one is a forward decl.
4122 Do not issue a redundant-redeclaration warning for forward
4123 decls of parameters.
4125 2004-03-04 David Edelsohn <edelsohn@gnu.org>
4127 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
4130 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
4132 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
4134 2004-03-04 Alan Modra <amodra@bigpond.net.au>
4136 * target-def.h (TARGET_OPTF): Delete.
4137 * c-opts.c (TARGET_OPTF): Define.
4139 2004-03-04 Jan Hubicka <jh@suse.cz>
4141 * cselib.c (cselib_finish): Fix another miss-application of my previous
4144 2004-03-03 Mike Stump <mrs@apple.com>
4146 Add framework support for darwin.
4148 * c-incpath.c: Include target.h and machmode.h.
4149 (add_path): Use a consistent style for cpp_dir. Initialize
4151 (add_cpp_dir_path): New.
4152 (register_include_chains): Add use of extra_includes callback.
4153 (hook_void_int): Add.
4154 (target_c_incpath): Add.
4155 * c-incpath.h (add_cpp_dir_path): New.
4156 (target_c_incpath_s): Add.
4157 (target_c_incpath): Add.
4158 (C_INCPATH_INIT): Add.
4159 * c-opts.c (c_common_missing_argument,
4160 c_common_handle_option): Add -F argument processing.
4161 * c.opt: Add -F argument processing.
4162 * gcc.c (trad_capable_cpp): Add -F argument processing.
4163 * cppfiles.c (find_file_in_dir): Update to use construct
4165 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
4167 (_cpp_find_file): Use search_path_exhausted.
4168 (make_cpp_dir): Initialize construct to 0.
4169 * cpplib.h (missing_header_cb
4170 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
4171 (cpp_callbacks): Add missing_header
4172 (cpp_dir): Add construct.
4173 * target-def.h: (TARGET_OPTF): New.
4174 * hooks.c (hook_void_int, hook_void_charptr): Add.
4175 * hooks.h (hook_void_int, hook_void_charptr): Add.
4176 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
4177 $(MACHMODE_H) dependencies.
4178 * doc/invoke.texi (Darwin Options): Document -F.
4179 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
4181 * fix-header.c (target_c_incpath): Add.
4183 * config/darwin-c.c: Add c-incpath.h include.
4184 (using_frameworks, find_subframework_file,
4185 find_subframework_header, add_system_framework_path,
4186 frameworks_in_use, num_frameworks, max_frameworks,
4187 add_framework, find_framework, struct framework_header,
4188 framework_header_dirs, framework_construct_pathname,
4189 find_subframework_file, add_system_framework_path,
4190 add_framework_path, framework_defaults,
4191 darwin_register_frameworks, find_subframework_header): Add.
4192 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
4193 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
4194 (CPP_SPEC): Add __APPLE_CC__ support.
4195 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
4197 2004-03-04 Jan Hubicka <jh@suse.cz>
4199 * cselib.c (cselib_finish): Fix miss-application of my previous
4202 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
4204 * hooks.c (hook_tree_tree_identity): New.
4205 * hooks.h: Add a prototype for hook_tree_tree_identity.
4206 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
4207 instead of MD_ASM_CLOBBERS.
4208 * system.h (MD_ASM_CLOBBERS): Poison.
4209 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
4210 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
4211 * target.h (gcc_target): Add md_asm_clobbers.
4212 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
4213 (ix86_md_asm_clobbers): New.
4214 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
4215 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
4216 TARGET_MD_ASM_CLOBBERS.
4218 2004-03-03 Stuart Hastings <stuart@apple.com>
4220 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
4222 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4224 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
4226 * config/sparc/sparc.h (ASM_FLOAT): Delete.
4227 (ASM_DOUBLE): Likewise.
4228 (ASM_LONGDOUBLE): Likewise.
4229 * config/sparc/pbd.h (ASM_INT_OP): Delete.
4231 2003-03-03 Richard Henderson <rth@redhat.com>
4234 * cselib.c (cselib_record_sets): Don't record multiple sets in
4237 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
4239 * common.opt: Add description of the new -fgcse-after-reload flag.
4241 * flags.h (flag_gcse_after_reload): Declaration of global variable.
4243 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
4244 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
4245 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
4246 get_bb_avail_insn, hash_scan_set_after_reload,
4247 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
4248 gcse_after_reload, get_bb_avail_insn): New functions to implement
4250 (gcse_after_reload_main): New function, the main entry point to
4253 * rtl.h (gcse_after_reload_main): Declaration of the new function.
4255 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
4257 * toplev.c (flag_gcse_after_reload): Initialization.
4259 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
4261 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
4262 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
4263 the gcse after reload optimization.
4265 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
4266 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
4269 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
4271 2004-03-03 Nicolas Pitre <nico@cam.org>
4273 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
4274 small negative values.
4276 2004-03-03 Jan Hubicka <jh@suse.cz>
4278 * cselib.c (hash_table): Remove GTY marker.
4279 (reg_values): Turn into array.
4280 (used_regs): Likewise.
4281 (n_used_regs): New static variable.
4282 (reg_values_old): Kill.
4283 (clear_table): Update uses of arrays.
4284 (cselib_lookup): Likewise.
4285 (cselib_record_set): Likewise.
4286 (cselib_init): Likewise.
4287 (cselib_finish): Likewise.
4288 (cselib_udpate_varray_sizes): Kill.
4289 * cselib.h (cselib_update_varray_sizes): Kill.
4291 2004-03-03 Paul Brook <paul@codesourcery.com>
4293 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
4295 2004-03-03 Jan Hubicka <jh@suse.cz>
4297 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
4298 Rename from ...; make statistics transparent.
4299 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
4300 (loc_descriptor): New structure.
4301 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
4303 New static function.
4304 (ggc_record_overhead, dump_statistics): New global function.
4305 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
4306 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
4307 from ...; accept locations
4308 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
4309 ggc_realloc, ggc_alloc_typed): ... this one.
4310 from ...; accept locations
4311 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
4312 ggc_alloc_stat): Rename from ... ; pass locations
4313 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
4315 (ggc_alloc_stat): Record overehead.
4316 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
4317 ggc_realloc, ggc_alloc_typed): Turn to macros
4318 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
4319 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
4320 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
4321 * langhooks.h (lhd_make_node): Declare.
4322 (LANG_HOOKS_MAKE_TYPE): Default to new function,
4323 * langhooks.c (lhd_make_node): New.
4324 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
4326 (rtx_alloc, swallow_copy_rtx): ... this one.
4327 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
4328 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
4329 * toplpev.c (finalize): Dump stats.
4330 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
4331 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
4332 Rename from ... ; pass locators.
4333 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
4334 build?, build_decl): Declare.
4335 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
4336 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
4338 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
4339 build?, build_decl): New macros.
4340 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
4341 * statistics.h: New file.
4343 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4344 Richard Sandiford <rsandifo@redhat.com>
4346 * config/mips/mips.h (MASK_FIX_SB1): Bump.
4347 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
4348 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
4349 * config/mips/mips.c (mips_output_division): Fill the branch delay
4350 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
4352 (mips_output_division): Adjust accordingly.
4353 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
4354 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
4356 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
4358 * alias.c (rtx_equal_for_memref_p): Use predicates
4359 to test rtx classes and new rtx class codes, possibly
4360 splitting conditionals that tested against '<' and 'o'.
4361 * caller-save.c (save_call_clobbered_regs): Likewise.
4362 * combine.c (contains_muldiv, find_split_point, subst,
4363 combine_simplify_rtx, simplify_if_then_else,
4364 simplify_set, simplify_logical, expand_compound_operation,
4365 make_compound_operation, if_then_else_cond, known_cond,
4366 apply_distributive_law, cached_nonzero_bits,
4367 cached_num_sign_bit_copies, simplify_shift_const,
4368 gen_binary, simplify_comparison, update_table_tick,
4369 record_value_for_reg, get_lsat_value_validate): Likewise.
4370 * cse.c (mention_regs, find_best_addr, find_comparison_args,
4371 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
4373 * emit-rtl.c (copy_insn_1): Likewise.
4374 * expr.c (force_operand): Likewise.
4375 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
4376 * flow.c (notice_stack_pointer_modification_1,
4377 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
4378 and_reg_cond, elim_reg_cond): Likewise.
4379 * function.c (update_epilogue_consts): Likewise.
4380 * genattrtab.c (attr_rtx_1): Likewise.
4381 * genopinit.c (gen_insn): Likewise.
4382 * integrate.c (subst_constants): Likewise.
4383 * jump.c (reversed_comparison_code_parts,
4384 reversed_comparison_code, delete_related_insns,
4385 rtx_renumbered_equal_p): Likewise.
4386 * local-alloc.c (block_alloc): Likewise.
4387 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
4388 canonicalize_condition): Likewise.
4389 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
4391 * optabs.c (add_equal_node, expand_binop): Likewise.
4392 * predict.c (estimate_probability): Likewise.
4393 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
4394 * recog.c (validate_replace_rtx_1, comparison_operator,
4395 offsettable_address_p, constrain_operands): Likewise.
4396 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
4398 * regclass.c (scan_one_insn): Likewise.
4399 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
4400 * regrename.c (kill_autoinc_value): Likewise.
4401 * reload.c (find_reusable_reload, find_reloads,
4402 reg_overlap_mentioned_for_reload_p): Likewise.
4403 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
4404 * rtl.c (copy_rtx): Likewise.
4405 * rtl.h (CONSTANT_P, INSN_P): Likewise.
4406 * rtlanal.c (commutative_operand_precedence): Likewise.
4407 * sched-deps.c (conditions_mutex_p): Likewise.
4408 * sched-rgn.c (is_cfg_nonregular): Likewise.
4409 * simplify-rtx.c (simplify_gen_binary,
4410 simplify_gen_relational, simplify_replace_rtx,
4411 simplify_unary_operation, simplify_binary_operation,
4412 simplify_ternary_operation, simplify_rtx): Likewise.
4413 * unroll.c (reg_dead_after_loop): Likewise.
4414 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
4415 print_operand): Likewise.
4416 * config/arc/arc.c (proper_comparison_operator): Likewise.
4417 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
4419 * config/avr/avr.c (_reg_unused_after): Likewise.
4420 * config/frv/frv.c (frv_ifcvt_modify_tests,
4421 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
4422 * config/i386/i386.c (ix86_comparison_operator,
4423 ix86_carry_flag_operator, fcmov_comparison_operator,
4424 arith_or_logical_operator, print_operand,
4425 ix86_expand_binary_operator, ix86_binary_operator_ok):
4427 * config/i386/i386.md: Likewise.
4428 * config/ia64/ia64.c (not_postinc_memory_operand,
4429 ia64_print_operand, update_set_flags, errata_emit_nops):
4431 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
4432 CONSTRAINT_OK_FOR_S): Likewise.
4433 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
4434 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
4435 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
4436 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
4438 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
4439 eqne_comparison_operator, signed_comparison_operator):
4441 * config/mips/mips.c (cmp_op, symbolic_expression_p):
4443 * config/mmix/mmix (mmix_foldable_comparison_operator,
4444 mmix_comparison_operator): Likewise.
4445 * config/pa/pa.c (hppa_legitimize_address): Likewise.
4446 * config/rs6000/rs6000.c (stmw_operation,
4447 branch_comparison_operator, trap_comparison_operator,
4449 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
4450 * config/s390/s390.c (s390_alc_comparison,
4451 s390_slb_comparison):L Likewise.
4452 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
4454 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
4455 noov_compare_op, noov_compare64_op, v9_regcmp_op,
4456 emit_hard_tfmode_operation, reg_unused_after)
4457 * doc/md.texi, doc/rtl.texi: Likewise.
4459 * ra-debug.c: Add 2004 to list of copyright years.
4460 * unroll.c: Likewise.
4462 * combine.c (simplify_logical): Remove dummy test,
4463 (apply_distributive_law): Fix typo in comment.
4464 GET_CODE (x) == AND so x is a commutative binary op.
4465 * jump.c (delete_related_insns): simplify loop
4466 condition, move testing of RTX codes inside the loop.
4467 (rtx_renumbered_equal_p): do not use RTX_CODE.
4468 * rtl.c (rtx_class): Declare as enum rtx_class.
4469 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
4470 Move to RTX_COMM_COMPARE class.
4471 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
4472 Move to RTX_CONST_OBJ class.
4473 * rtl.h (enum rtx_class): New declaration,
4474 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
4475 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
4476 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
4477 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
4478 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
4479 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
4480 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
4481 OBJECT_P): New macros.
4482 * config/sparc/sparc.c (noov_compare_op): Remove register
4485 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
4487 * target.h: Remove texi jargons in comments.
4489 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
4491 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
4495 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
4496 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
4498 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
4499 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
4501 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
4503 * doc/md.texi (cbranchmode4): New.
4505 2004-03-02 Eric Christopher <echristo@redhat.com>
4507 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
4509 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
4510 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
4511 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
4512 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
4514 2004-03-02 Richard Henderson <rth@redhat.com>
4517 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
4518 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
4519 before the compare, if flag_non_call_exceptions.
4521 2004-03-02 Richard Henderson <rth@redhat.com>
4524 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
4525 emitting the label, not after.
4527 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
4529 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
4530 (m68hc11_mov_addr_mode): Likewise.
4531 (m68hc11_override_options): Initialize them based on target.
4532 (register_indirect_p): Allow a MEM for indirect addressing modes and
4533 use flags to control what is allowed.
4534 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
4535 supported addressing modes.
4536 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
4537 (go_if_legitimate_address_internal): Likewise.
4538 (m68hc11_indirect_p): Likewise and check the mode.
4539 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
4541 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
4543 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
4544 (expand_builtin_setjmp_setup): Use
4545 targetm.builtin_setjmp_frame_value instead of
4546 BUILTIN_SETJMP_FRAME_VALUE.
4547 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
4548 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
4549 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
4550 * target.h (gcc_target): Add builtin_setjmp_frame_value.
4551 * targhooks.c (default_builtin_setjmp_frame_value): New.
4552 * targhooks.h: Add a prototype for
4553 default_builtin_setjmp_frame_value.
4554 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
4555 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
4557 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
4559 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
4561 (add peepholes): New peepholes to optimize sequences adding small
4563 (bset peepholes): New peepholes to transform an OR in a bset form
4564 (bclr peepholes): Likewise for bclr form.
4565 (cmp peepholes): New peepholes to avoid register copies when comparing.
4567 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
4569 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
4570 to separate push from moves.
4571 ("*pushdf_internal"): Likewise.
4572 ("*pushsf_internal"): Likewise.
4573 ("*pushsi_internal"): Likewise.
4574 ("movdi_internal"): Use define_insn_and_split; non push operand.
4575 ("movdf_internal"): Likewise.
4576 ("movsf_internal"): Likewise.
4577 ("movsi_internal"): Likewise.
4578 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
4579 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
4580 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
4582 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
4584 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
4585 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
4586 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
4587 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
4588 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
4589 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
4590 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
4591 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
4592 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
4593 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
4594 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
4596 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
4598 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
4599 (SOFT_XY_REGNUM): Define.
4600 (cmp split): Use the above instead of hard coded numbers.
4601 (8-bit op split): No need to check the mode; allow Q_REG.
4602 (ashift split): Adjust the first operand if it uses the SP and we
4603 are pushing the shifted value.
4604 (plus shift split): Fix when a source is in register D+X.
4605 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
4607 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
4609 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
4610 comparing with Z register.
4612 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4614 * cfgloop.h (struct loop_desc): Removed.
4615 (struct loop): Fields simple, desc and has_desc removed.
4616 (simple_loop_p, count_loop_iterations): Declaration removed.
4617 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
4618 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
4619 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
4620 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
4621 simple_loop_exit_p, variable_initial_value, variable_initial_values,
4622 simple_condition_p, simple_increment, count_strange_loop_iterations,
4623 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
4625 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
4627 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
4629 * genattrtab.c: Don't handle MATCH_INSN.
4630 * genrecog.c: Likewise.
4631 * gensupport.c: Likewise.
4632 * rtl.def (match_insn): Remove.
4633 * doc/md.texi (match_insn, match_insn2): Remove.
4635 2004-03-02 Mark Mitchell <mark@codesourcery.com>
4637 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
4638 macro results in memory allocation.
4640 2004-03-02 David O'Brien <obrien@FreeBSD.org>
4642 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
4643 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
4644 %(fbsd_dynamic_linker),
4645 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
4646 config/i386/freebsd.h
4647 * config/arm/freebsd.h: Ditto.
4648 * config/i386/freebsd.h: Ditto.
4649 * config/i386/freebsd64.h: Ditto.
4650 * config/ia64/freebsd.h: Ditto.
4651 * config/rs6000/sysv4.h: Ditto.
4652 * config/sparc/freebsd.h: Ditto.
4654 2004-03-02 Loren James Rittle <ljrittle@acm.org>
4656 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
4658 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
4660 * rtl.def (define_combine): Remove.
4662 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
4664 * config/h8300/h8300.md: Tweak formatting.
4666 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
4668 * config/h8300/h8300.md (*cmphi_h8300): Rename to
4670 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
4672 2004-03-01 Mark Mitchell <mark@codesourcery.com>
4675 * gcc.c (process_command): Remove const-qualification from argv.
4678 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
4680 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
4681 pushqi1_h8300hs_advanced. Adjust its caller.
4682 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
4685 2004-03-02 Nicolas Roche <roche@act-europe.fr>
4687 * Makefile.in (install-libgcc, install-multilib): Pass
4688 mkinstalldirs var to libgcc.mk.
4690 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
4692 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
4693 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
4695 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
4697 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
4698 * config/h8300/h8300.md: Split several peephole2's, each into
4701 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4703 * dominance.c (recount_dominator): Handle postdominators.
4705 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
4707 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
4708 (NUM_SYMBOL_TYPES): Likewise.
4709 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
4710 (mips_unspec_address): Declare.
4711 (mips_gotoff_page, mips_gotoff_global): Delete.
4712 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
4713 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
4714 (mips_symbolic_constant_p, mips_symbolic_address_p)
4715 (mips_symbol_insns): Handle new symbol types.
4716 (general_symbolic_operand): New predicate.
4717 (mips_unspec_address): Make extern.
4718 (mips_gotoff_page, mips_gotoff_global): Delete.
4719 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
4720 Handle new symbol types.
4721 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
4722 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
4723 mips_unspec_address directly.
4724 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
4725 the documentation of -mexplicit-relocs.
4727 2004-03-01 Jeff Law <law@redhat.com>
4729 * fold-const.c (fold): An equality comparison of a non-weak object
4730 against zero has a known result. Similarly an equality comparison
4731 of the address of two non-weak, unaliased symbols has a known result.
4733 * ggc-page.c (struct page_entry): New field PREV.
4734 (ggc_alloc): Update PREV field appropriately.
4735 (sweep_pages): Likewise.
4736 (ggc_free): Likewise. Use PREV field rather than loop to
4737 improve ggc_free performance.
4739 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
4741 * config/mips/mips.c (mips_output_division): Use the division
4742 instruction to fill the delay slot of a zero check.
4743 (mips_idiv_insns): Adjust accordingly.
4745 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
4747 * config.gcc: Create a default tmake_file for linux, and use
4748 it in all but two linux clauses. Comment those two.
4750 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
4752 * combine.c (try_combine): Do not refer to is_replaced.
4753 (gen_lowpart_for_combine): Perverse subregs now have a
4754 more politically correct name.
4755 * cse.c (cse_insn): Likewise.
4756 * jump.c: Fix bogus reference to delete_insn.
4758 2004-02-29 Mark Mitchell <mark@codesourcery.com>
4761 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
4762 constants as signed values.
4765 * c-tree.h (readonly_warning): Rename to ...
4766 (readonly_error): ... this.
4767 * c-typeck.c (build_unary_op): Adjust accordingly.
4768 (readonly_warning): Rename to ...
4769 (readonly_error): ... this and issue errors, not warnings.
4770 (build_modify_expr): Call readonly_error, not readonly_warning.
4771 (c_expand_asm_operands): Likewise.
4772 * tree-inline.c (optimize_inline_calls): Do not inline functions
4773 after errors have occurred.
4775 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
4777 * configure.ac: Rearrange some threading code for clarity;
4778 add section comment.
4779 * configure: Regenerate.
4781 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
4783 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
4785 * doc/cppopts.texi: Fix a typo.
4787 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
4789 * config/i386/i386.md: Fix formatting.
4791 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
4793 * configure.ac: Add some comments delineating sections of code.
4795 * doc/install.texi: Note that libada uses autoconf 2.57 also.
4797 * doc/install.texi: Fix idiot typo in previous commit.
4799 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
4801 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
4803 * config/h8300/h8300.md: Add comments about peephole2's.
4805 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
4807 * config/h8300/h8300.md: Tweak operand numbers of some
4810 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
4812 * config/h8300/h8300.md: Tweak comments about peephole2's.
4814 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
4817 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
4818 instead of testing whether DECL_RTL is not NULL.
4820 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
4822 * config/sh/sh.c: Fix formatting.
4824 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
4826 * config/sh/sh.c: Convert to ISO-C.
4828 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
4830 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
4833 * config/darwin.h (machopic_finish): Output stub even if the
4834 symbol is already defined.
4836 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4838 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
4840 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
4842 * genattr.c (main): Don't define
4843 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
4844 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
4845 (DFA_PIPELINE_INTERFACE): Likewise.
4846 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
4847 (DFA_PIPELINE_INTERFACE): Likewise.
4849 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
4851 * config/mips/mips.md (tstsi, tstdi): Delete.
4853 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4855 * config/mips/mips.c (override_options): Remove an obsolete
4856 duplicate definition of the "e" constraint.
4857 * config/mips/mips.h: Update a comment accordingly.
4859 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4861 * config/mips/mips.md: Complete the unfinished R4000
4862 multiply/shift errata workaround. Improve documentation.
4863 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
4865 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
4866 (muldi3, muldi3_internal): Likewise.
4867 (muldi3_internal2): Remove, replacing with...
4868 (muldi3_mult3, muldi3_r4000): ...these new patterns.
4869 (mulsidi3): Take the errata into account.
4870 (mulsidi3_32bit): Remove, replacing with...
4871 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
4872 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
4873 (umulsidi3): Take the errata into account.
4874 (umulsidi3_32bit): Remove, replacing with..
4875 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
4876 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
4878 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
4879 (smuldi3_highpart, umuldi3_highpart): Likewise.
4880 * doc/invoke.texi: Document the errata workaround.
4882 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4884 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
4885 * config/mips/mips.h (MASK_FIX_SB1): Bump.
4886 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
4887 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
4888 * config/mips/mips.c (mips_idiv_insns): New function.
4889 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
4890 (mips_output_division): Add a workaround for the R4000 divide/shift
4892 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
4893 the length of an "idiv" instruction.
4894 * doc/invoke.texi: Document the new switches.
4896 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
4898 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
4899 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
4901 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4903 PR optimization/14229
4904 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
4906 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
4908 * fold-const.c (fold): Strip NOPs that change the signedness
4909 for RSHIFT too. Expand comment.
4911 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
4913 PR optimization/7871
4914 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
4915 from or to call insns.
4917 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
4919 PR optimization/7871
4920 * flow.c (propagate_one_insn): Interpret calls as setting global
4921 registers, not merely clobbering them.
4923 2004-02-27 Dale Johannesen <dalej@apple.com>
4925 * config/darwin.c (machopic_output_possible_stub_label): Remove.
4926 config/darwin-protos.h: Ditto.
4927 config/darwin.h: Remove call to it.
4928 * combine.c (distribute_notes): Do not place a REG_DEAD note
4929 when value is both set and used.
4931 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
4933 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
4935 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
4936 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
4938 2004-02-27 Andrew Pinski <apinski@apple.com>
4940 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
4941 Speedup common case of the type values being in the same order.
4943 2004-02-27 Steve Ellcey <sje@cup.hp.com>
4945 * config/ia64/ia64.h (no-inline-float-divide): New option.
4946 * config/ia64/ia64.h (no-inline-int-divide): New option.
4947 * config/ia64/ia64.h (no-inline-sqrt): New option.
4948 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
4949 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
4950 * config/ia64/ia64.c (ia64_override_options): Modify error
4951 checking for inlined division/sqrt.
4953 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
4955 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
4956 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
4957 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
4958 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
4961 2004-02-27 Paul Brook <paul@codesourcery.com>
4963 * function.c (assign_parms): Don't count pretend args for alignment.
4965 2004-02-27 Richard Henderson <rth@redhat.com>
4967 * passes.c: New file.
4968 * Makefile.in (OBJS-common): Add it.
4969 * diagnostic.c (rtl_dump_and_exit): Move decl ...
4970 * flags.h (rtl_dump_and_exit): ... here.
4971 * output.h (size_directive_output, last_assemble_variable_decl):
4973 * rtl.h (reg_alloc): Move from toplev.c.
4974 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
4975 struct dump_file_info, enum dump_file_index, dump_file_tbl,
4976 open_dump_file, close_dump_file, rest_of_decl_compilation,
4977 rest_of_type_compilation, rest_of_handle_final,
4978 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
4979 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
4980 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
4981 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
4982 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
4983 rest_of_handle_tracer, rest_of_handle_if_conversion,
4984 rest_of_handle_if_after_combine, rest_of_handle_web,
4985 rest_of_handle_branch_prob,
4986 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
4987 rest_of_handle_addressof, rest_of_handle_sibling_calls,
4988 rest_of_handle_jump_bypass, rest_of_handle_inlining,
4989 rest_of_handle_null_pointer, rest_of_handle_combine,
4990 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
4991 rest_of_handle_gcse, rest_of_handle_loop_optimize,
4992 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
4993 (decode_d_option): Use enable_rtl_dump_file.
4994 (compile_file, finalize, do_compile): Move profile+combine+graph
4995 cleanup to finish_optimization_passes.
4996 * toplev.h (init_optimization_passes, finish_optimization_passes,
4997 enable_rtl_dump_file): Declare.
4999 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
5000 Roger Sayle <roger@eyesopen.com>
5002 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
5003 operands to build a tree with swapped operands.
5004 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
5005 'unsignedp' predicate to specify the signedness.
5007 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
5009 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
5010 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
5011 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
5012 comment typos and formatting. Follow spelling conventions.
5014 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
5016 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
5019 * config/rs6000/spe.md: Delete spe_efsctuiz.
5020 Add spe_fixuns_truncsfsi2.
5021 Add spe_fix_truncsfsi2.
5023 2004-02-26 Eric Christopher <echristo@redhat.com>
5025 * c-lex.c (c_lex_string_translate): New variable.
5026 (lex_string): Use to determine string translation.
5027 * c-pragma.h: Prototype.
5028 * c-parse.in (start_string_translation): New. Set above.
5029 (stop_string_translation): Ditto.
5030 (attribute, attribute_list, asm_def, asm_stmt,
5031 asm_operand): Use above functions.
5032 * cp/parser.c (cp_parser_declaration): Translate strings
5033 unless token is RID_EXTERN. Set c_lex_string_translate
5035 (cp_parser_asm_definition): Only translate argument strings
5037 (cp_parser_asm_operand_list): Ditto.
5038 (cp_parser_attribute_list): Do not translate attribute strings.
5040 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
5042 * stmt.c (expand_start_case_dummy): Remove.
5043 * tree.h: Remove the corresponding prototype.
5045 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
5047 * builtins.c (apply_args_register_offset): Remove.
5048 * tree.h: Remove the corresponding prototype.
5050 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
5052 * stor-layout.c (is_pending_size): Remove.
5053 * tree.h: Remove the corresponding prototype.
5055 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
5057 * recog.c (validate_replace_src): Remove.
5058 * recog.h: Remove the corresponding prototype.
5060 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
5062 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
5063 MAYBE_REG_PARM_STACK_SPACE.
5064 * function.c: Likewise.
5065 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
5066 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
5067 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
5068 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
5070 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
5072 * c-decl.c (c_expand_deferred_function): Remove.
5073 * c-tree.h: Remove the corresponding prototype.
5075 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
5077 * postreload.c (reload_cse_move2add): Generate just a PLUS
5078 instead of an entire SET.
5080 2004-02-26 Jan Hubicka <jh@suse.cz>
5082 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
5084 * i386.c (override_options): Add support for new CPUs.
5085 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
5086 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
5088 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
5090 2004-02-26 Bob Wilson <bob.wilson@acm.org>
5092 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
5094 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
5096 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
5097 (sparc_emit_fixunsdi): New prototype.
5098 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
5099 (sparc_emit_fixunsdi): New function.
5100 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
5101 operand 1. Pass SFmode to sparc_emit_floatunsdi.
5102 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
5103 to sparc_emit_floatunsdi.
5104 (fixuns_truncsfdi2): New expander.
5105 (fixuns_truncdfdi2): Likewise.
5107 2004-02-26 Alan Modra <amodra@bigpond.net.au>
5109 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
5112 2004-02-25 Richard Henderson <rth@redhat.com>
5114 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
5115 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
5116 use (op0-op1) == 0 if op0 is a pointer.
5117 * config/alpha/alpha.md (cmpdi): Use some_operand.
5118 (three comparison combine splits): Remove.
5120 2004-02-25 Richard Henderson <rth@redhat.com>
5123 * c-common.c (handle_alias_attribute): Reject the attribute if
5124 current_function_decl is set.
5126 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
5128 * config.gcc: Add comment describing extra_gcc_objs.
5129 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
5130 * configure.ac (extra_gcc_objs): New substitution variable.
5131 (host_extra_gcc_objs): Don't substitute.
5132 * configure: Regenerate.
5133 * Makefile.in: Use extra_gcc_objs.
5135 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
5137 * doc/contrib.texi: Add an entry for myself.
5139 2004-02-25 Jan Hubicka <jh@suse.cz>
5141 * basic-block.h (make_eh_edge, break_superblocks): Declare.
5142 * cfgbuild.c (make_eh_edge): Make global.
5143 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
5144 * except.c (build_post_landing_pads, connect_post_landing_pads,
5145 dw2_build_landing_pads, sjlj_emit_function_enter,
5146 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
5147 sjlj_build_landing_pads): Update CFG.
5148 (emit_to_new_bb_before): New function.
5149 (finish_eh_generation): Do not rebuild the CFG.
5151 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5153 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
5154 target_cpu_default defines.
5155 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
5156 * pa.h (TARGET_DEFAULT): Likewise.
5158 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
5160 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
5161 comparisons with regard to signedness.
5163 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
5165 * arm.c (thumb_legitimize_address): New function.
5166 * arm-protos.h: Prototype it.
5167 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
5168 (LEGITIMIZE_ADDRESS): Use it.
5170 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
5172 * reload1.c (reload): Only spill eliminable register with multiple
5173 adjacent elimination alternatives if all alternatives fail.
5175 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
5177 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
5178 is -4095...+4095 inclusive.
5180 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
5182 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
5183 the bootstrap failure with Sun CC 5.4 and 5.5.
5185 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
5187 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
5188 which modifies NEWREG.
5189 (cse_condition_code_reg): Update the mode of CC_REG in
5190 CC_SRC_INSN on our own.
5192 2004-02-24 Michael Matz <matz@suse.de>
5194 * config/i386/i386.c (ix86_comp_type_attributes): Check for
5197 2004-02-24 Richard Henderson <rth@redhat.com>
5199 * toplev.c (dump_file_tbl): Rename from dump_file.
5200 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
5201 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
5202 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
5203 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
5204 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
5205 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
5206 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
5207 s/rtl_dump_file/dump_file/g.
5209 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
5211 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
5212 (spe_fixuns_truncsfsi2): Delete.
5214 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
5215 (fixuns_truncsfsi2): Delete.
5217 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
5220 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
5222 2004-02-24 Geoffrey Keating <geoffk@apple.com>
5224 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
5226 2004-02-24 Jason Merrill <jason@redhat.com>
5228 * tree.c (check_qualified_type): New fn.
5229 (get_qualified_type): Use it. If type already has the desired
5230 quals, just return it.
5231 * tree.h: Declare it.
5233 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
5235 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
5236 TARGET_SCHED_FINISH_GLOBAL): New macros.
5238 * target.h (md_init_global, md_finish_global): Function
5239 declarations corresponding to new target macros.
5241 * haifa-sched.c (sched_init, sched_finish): Allow target to
5242 call the new schedular hooks.
5244 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
5245 call to update_life_info.
5247 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
5248 flag_schedule_insns for SH4.
5250 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
5251 find_set_regmode_weight, find_insn_regmode_weight,
5252 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
5253 sh_variable_issue, high_pressure, ready_reorder,
5254 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
5255 functions used to throttle the insn movement in first
5256 scheduling pass for SH.
5258 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
5259 TARGET_SCHED_FINISH_GLOBAL.
5261 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
5263 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
5264 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
5265 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
5266 symbols in sections named by the user.
5267 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
5268 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
5269 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
5270 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
5271 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
5273 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
5274 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
5275 one more pseudo to further improve code generation.
5276 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
5277 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
5279 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
5280 * config/frv/frv.c (frv_legitimate_address_p): Added
5281 allow_double_reg_p argument. Adjust all callers. Use it to
5282 decide whether to enable double-register indirect addressing.
5283 (frv_funcdesc_alias_set): Remove.
5284 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
5285 register. Emit movdi_ldd.
5286 (ldd_address_operand): New.
5287 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
5288 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
5289 (PREDICATE_CODES): Add ldd_address_operand.
5290 * config/frv/frv.md (movdi_ldd): New.
5291 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
5292 intermediate computations if possible.
5293 (symGOTOFF2reg_i): Fix harmless typo.
5294 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
5295 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
5296 relocated p_vaddr to vaddr type.
5297 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
5298 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
5299 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
5300 MEM, or use a funcdesc alias set. Use regular move instead of
5302 (dbl_memory_one_insn_operand): Recognize function descriptors by
5303 type or by alias set, and don't split them.
5304 * config/frv/frv.md (call, call_value): Never use call_internal
5306 (call_internal, call_value_internal): Never match for FDPIC.
5307 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
5308 call_value_fdpicsi): Require FDPIC.
5310 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
5311 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
5312 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
5313 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
5314 FDPIC. Compute data base address.
5315 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
5316 before the other self-specs are processed.
5317 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
5319 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
5320 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
5321 inhibit_libc is defined.
5322 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
5323 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
5325 (__RELOC_POINTER): Define.
5326 (_Unwind_IteratePhdrCallback): Use it.
5327 * config/frv/frv.h (Twrite): Define.
5328 (TRANSFER_FROM_TRAMPOLINE): Use it.
5329 * config/frv/linux.h (INVOKE__main): Undefine.
5331 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
5332 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
5333 (-mlibrary-pic): Emphasize that this option generates EABI code.
5336 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
5337 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
5338 and CONSTs in FDPIC mode.
5339 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
5340 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
5341 * config/frv/frv.c (move_source_operand): Don't accept symbolic
5343 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
5344 rather than 'i' constraint for the 2-instruction alternative.
5345 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
5346 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
5347 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
5348 EXTRA_CONSTRAINT_FOR_Y.
5349 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
5350 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
5351 (addsi3): Change 'Y' constraint to 'Q'.
5352 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
5353 * reload.c (CONST_POOL_OK_P): New macro.
5354 (find_reloads): Use it to decide whether a constant can be forced
5356 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
5357 constant satisfies got12_operand.
5358 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
5359 (frv_legitimate_address_p): Check for valid unspec offsets using
5360 got12_operand rather than frv_legitimate_fdpic_operand_p.
5361 (frv_legitimate_fdpic_operand_p): Delete.
5362 (frv_emit_movsi): Abort if we try to use the FDPIC register during
5364 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
5366 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
5367 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
5368 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
5369 (frv_fdpic_fptr_operand): Don't declare here.
5370 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
5371 rather than fdpic_got12_operand.
5372 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
5373 got12_operand and const_unspec_operand.
5374 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
5375 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
5376 (symbolic_operand): Remove.
5377 (const_unspec_operand): New predicate.
5378 * config/frv/frv.md (*movsi_got): Use got12_operand.
5379 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
5380 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
5381 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
5382 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
5383 * config/frv/frv.c (frv_unspec): New structure.
5384 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
5385 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
5386 validate CONST indices. Use frv_output_const_unspec to print them.
5387 (frv_print_operand): Update call to unspec_got_name. Use
5388 frv_output_const_unspec to print constant unspecs.
5389 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
5390 Reject UNSPECs otherwise.
5391 (unspec_got_name): Take the relocation number as argument, not an
5393 (frv_output_addr_const_extra): Remove, replacing with...
5394 (frv_output_const_unspec): ...this new function.
5395 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
5396 (gpr_or_int12_operand): Use fdpic_got12_operand.
5397 (dbl_memory_one_insn_operand): Likewise.
5398 (fdpic_got12_operand): Use frv_const_unspec_p.
5399 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
5400 are already legitimate. Use frv_small_data_reloc_p when deciding
5401 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
5402 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
5403 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
5404 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
5405 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
5406 label, for real this time.
5407 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
5408 representation of visibility.
5409 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
5411 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
5412 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
5413 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
5414 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
5415 it was explicitly disabled.
5416 (frv_stack_info): There is no need to save the link register in every
5417 frame unless TARGET_LINKED_FP is true.
5418 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
5419 frame pointer if the stack pointer might change value.
5420 (frv_return_addr_rtx): Check and process "count" argument.
5421 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
5422 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
5423 (frv_find_base_term): Declare.
5424 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
5425 (FIND_BASE_TERM): Define.
5426 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
5427 small_data_register_operand, small_data_symbolic_operand. Add
5429 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
5430 (frv_print_operand_memory_reference, output_move_single): Remove
5431 special handling for unlegitimized sdata addresses.
5432 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
5433 and symbolic addresses.
5434 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
5435 (frv_find_base_term): New function.
5436 (int_2word_operand): Check specifically for symbolic address constants.
5437 (pic_register_operand, pic_symbolic_operand): Delete.
5438 (small_data_register_operand, small_data_symbolic_operand): Delete.
5439 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
5440 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
5441 (move_source_operand): Only accept CONSTs if they're a two-insn
5443 (fdpic_got12_operand): Don't require TARGET_FDPIC.
5444 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
5445 using gen_symGOTOFF2reg*.
5446 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
5447 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
5448 themselves a cost of 3 insns.
5449 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
5450 Change predicate to symbolic_operand.
5451 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
5452 (*movsi_lda_sdata): Delete.
5453 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
5454 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
5455 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
5457 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
5459 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
5460 -multilib-library-pic.
5461 (LINK_SPEC): Add -z text for -mfdpic.
5462 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
5463 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
5464 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
5466 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
5467 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
5468 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
5469 crtstuff-generated files.
5470 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
5471 * config.gcc: Add frv-*-*linux*.
5472 * config/frv/linux.h, config/frv/t-linux: New.
5473 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
5474 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
5475 when -mfdpic even if a linker script is explicitly listed.
5476 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
5477 * config/frv/frv.c (frv_override_options): Clear asm_out
5478 unaligned_op for SImode on FDPIC.
5479 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
5480 argument passed to decl_readonly_section.
5481 (frv_assemble_integer): Revert 2003-09-30's change, but make the
5482 whole block run with FDPIC even with -fno-PIC.
5483 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
5484 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
5485 symbol or label plus offset to memory.
5486 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
5487 GOTOFF and GPREL for LABEL_REF.
5488 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
5489 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
5490 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
5491 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
5492 * doc/invoke.texi: Document them.
5493 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
5494 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
5495 (frv_splittable_got_operand): Removed.
5496 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
5497 LO_SUM. Add comments.
5498 (frv_override_options): Moved enabling of FDPIC to
5499 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
5500 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
5501 (frv_legitimize_fdpic_address): Don't duplicate logic in
5503 (frv_gen_GPsym2reg): New.
5504 (unspec_got_name): Added gprel.
5505 (frv_expand_fdpic_call): Add support for inlining PLTs.
5506 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
5507 (gpr_or_int12_operand): Added GPREL12.
5508 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
5509 (small_data_symbolic_operand): Fail if FDPIC.
5510 (fdpic_splittable_got_operand): Removed.
5511 (fdpic_got12_operand): Added GPREL12.
5512 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
5513 when appropriate. Fix sdata GOTOFF.
5514 (frv_legitimate_constant_p): Require legitimate PIC operand for
5515 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
5516 (frv_assemble_integer): Move FDPIC funcdesc handling out of
5518 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
5519 frv_assemble_integer fails.
5520 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
5521 (SUBTARGET_DRIVER_SELF_SPECS): New.
5522 (ASM_SPEC): Don't pass -mno-fdpic.
5523 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
5524 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
5525 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
5526 -multilib-library-pic.
5527 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
5528 condexec_si_media_operator, condexec_sf_add_operator and
5529 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
5530 and condexec_sf_unary_operator.
5531 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
5533 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
5534 movsi_internal. Give them internal names. movsi_got has type
5536 (fdpic got splitters): Remove.
5537 (symGPREL2reg, symGPREL2reg_hilo): New.
5538 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
5539 to -mlibrary-pic. Map -multilib-library-pic to it.
5540 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
5542 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
5543 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
5544 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
5545 (frv_cannot_force_const_mem): New function.
5546 (const_small_data_p, plus_small_data_p): Update comments on sdata
5548 (frv_override_options): Set flag_pie for FDPIC too.
5549 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
5550 call-saved registers on FDPIC.
5551 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
5552 don't force LR to be preserved.
5553 (frv_expand_prologue): Likewise.
5554 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
5555 (frv_frame_pointer_required): Don't force it just because the
5556 FDPIC register is used.
5557 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
5558 operand only if !condexec_p.
5559 (frv_legitimize_address): Return the FDPIC-legitimized address.
5560 Don't match small data here on FDPIC.
5561 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
5562 symbols. Use TRUE/FALSE instead of 1/0.
5563 (frv_local_funcdesc_p): New.
5564 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
5565 immediates when possible.
5566 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
5567 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
5569 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
5570 12-bit immediates when possible.
5571 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
5572 are not legitimate pic operands.
5573 (frv_in_small_data_p): Re-enable for FDPIC.
5574 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
5575 (FRV_GLOBAL_P): Removed.
5576 * config/frv/frv.md: Add modes to CONSTs.
5578 (movsi_lo_sum_got): Use separate matches instead of match_dup.
5579 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
5580 (fdpic splittable operations): Match on flag_pic != 1.
5581 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
5582 * config/frv/frv.c (frv_asm_out_constructor,
5583 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
5585 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
5586 * config/frv/frv.c (frv_assemble_integer): Reject complex
5587 expressions referencing function SYMBOL_REFs.
5588 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
5589 (move_source_operand): Reject CONSTs that reference function
5590 SYMBOL_REFs on FDPIC.
5591 (frv_emit_movsi): If we get such a CONST, break it up.
5592 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
5593 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
5594 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
5596 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
5597 (frv_trampoline_size): Increase for FDPIC.
5598 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
5599 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
5600 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
5601 Disable use of GOTOFF for now.
5602 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
5603 Disable use of small data in FDPIC for now.
5604 (frv_asm_output_mi_thunk): Implement for FDPIC.
5605 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
5606 * config/frv/frv.c (frv_asm_out_constructor): Use
5607 frv_assemble_integer for FDPIC pointers.
5608 (frv_asm_out_destructor): Likewise.
5609 * config/frv/frv.md (ldd): Fix order of operands. Use
5610 address_operand for input.
5611 2003-09-18 DJ Delorie <dj@redhat.com>
5612 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
5613 (unspec_got_name): Correct typo.
5614 (frv_emit_movsi): Pre-expand splittable GOTs.
5615 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
5616 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
5617 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
5618 * config/frv/t-frv: Add -mfdpic multilibs.
5619 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
5620 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
5621 * config/frv/frv.c (frv_override_options): -mfdpic assumes
5622 flag_pic, default to 32-bit pics, require DWORD ops.
5623 (frv_override_options): Add W and Z constraints.
5624 (frv_expand_prologue): No pic prologue for -mfdpic.
5625 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
5626 (frv_print_operand_memory_reference): Handle GOT constants.
5627 (frv_legitimate_address_p): Allow GOT constants.
5628 (frv_legitimize_address): Handle GOT addresses too.
5629 (frv_legitimate_fdpic_operand_p): New.
5630 (frv_legitimize_fdpic_address): New.
5631 (unspec_got_name): New.
5632 (frv_output_addr_const_extra): New.
5633 (frv_expand_fdpic_call): New.
5634 (frv_fdpic_fptr_operand): New.
5635 (gpr_or_int12_operand): Handle GOT operands.
5636 (int_2word_operand): Handle GOT operands.
5637 (fdpic_operand): New.
5638 (fdpic_splittable_got_operand): New.
5639 (fdpic_got12_operand): New.
5640 (frv_emit_movsi): Handle GOT operands.
5641 (frv_assemble_integer): -mfdpic doesn't use rofixups.
5642 (frv_print_operand): Support 'g' code for GOT operands.
5643 * config/frv/frv-protos.h: Add prototypes as needed.
5644 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
5645 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
5646 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
5647 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
5648 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
5649 R_FRV_GOTOFFLO): New.
5650 (movsi_high_got, movsi_lo_sum_got): New.
5651 (*movsi_pic): Don't use this splitter for -mfdpic.
5652 (addsi3): Allow GOT references also.
5653 (call, call_value): Handle -mfdpic separately.
5654 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
5655 call_value_fdpicsi): New.
5656 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
5657 symGOTOFF2reg_i): New.
5658 * config/frv/frv.h (MASK_FDPIC): New.
5659 (TARGET_FDPIC): New.
5660 (TARGET_SWITCHES): Add -mfdpic.
5661 (FDPIC_FPTR_REGNO): New.
5663 (OUR_FDPIC_REG): New.
5664 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
5666 (REG_CLASS_NAMES): Likewise.
5667 (REG_CLASS_CONTENTS): Likewise.
5668 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
5669 (EXTRA_CONSTRAINT): Add it here.
5670 (FRV_GLOBAL_P): New.
5671 (OUTPUT_ADDR_CONST_EXTRA): New.
5673 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
5675 * config/sparc/sparc.h: Remove commented-out definitions of
5676 TARGET_EDOM and GEN_ERRNO_RTX.
5678 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
5680 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
5681 df_analyse with df_analyze.
5683 2004-02-24 Alan Modra <amodra@bigpond.net.au>
5685 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
5688 2004-02-23 James E Wilson <wilson@specifixinc.com>
5690 * calls.c (precompute_arguments): Update comment.
5692 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
5694 * et-forest.c: Replace et_occurences with et_occurrences.
5696 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
5698 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
5701 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
5703 * config/i386/i386.c: Rename pni to sse3.
5704 * config/i386/i386.h: Likewise.
5705 * config/i386/i386.md: Likewise.
5706 * config/i386/pmmintrin.h: Likewise.
5707 * doc/extend.texi: Likewise.
5708 * doc/invoke.texi: Likewise.
5710 2004-02-23 Zack Weinberg <zack@codesourcery.com>
5711 Kazu Hirata <kazu@cs.umass.edu>
5713 Remove -fwritable-strings.
5714 * c-common.c (fix_string_type): Don't check
5715 flag_writable_strings.
5716 (fix_string_type): Likewise.
5717 * c-opts.c (set_std_c89): Don't initialize
5718 flag_writable_strings.
5719 (set_std_c99): Likewise.
5720 * common.opt (fwritable-strings): Remove.
5721 * flags.h: Remove the external declaration of
5722 flag_writable_strings.
5723 * opts.c (common_handle_option) <OPT_fwritable_strings>:
5725 * toplev.c (flag_writable_strings): Remove.
5726 (f_options): Remove an entry for writable-strings.
5727 * varasm.c (const_hash_1) <STRING_CST>: Don't check
5728 flag_writable_strings.
5729 (compare_constant) <STRING_CST>: Likewise.
5730 (build_constant_desc): Likewise.
5731 * config/darwin.c (machopic_select_section): Likewise.
5732 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
5733 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
5734 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
5735 * config/mips/mips.c (mips_select_section): Likewise.
5736 (mips_encode_section_info): Likewise.
5737 * config/pa/pa.c (pa_select_section): Likewise.
5738 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
5739 * config/v850/v850.c (v850_select_section): Likewise.
5740 * doc/invoke.texi (-fwritable-strings): Remove.
5741 (-fno-const-strings): Don't mention -fwritable-strings.
5742 * doc/trouble.texi: Don't mention -fwritable-strings.
5744 2003-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
5746 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
5748 2004-02-23 Dale Johannesen <dalej@apple.com>
5750 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
5751 (movdf_hardfloat64): Ditto.
5752 (movdf_softfloat64): Ditto.
5754 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
5755 * config/rs6000/rs6000.c (function_arg): call to
5756 rs6000_mixed_function_arg for DFmode moved to allow
5757 normal DFmode incoming register assignment.
5759 2004-02-23 Dale Johannesen <dalej@apple.com>
5761 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
5762 (movdf_hardfloat64): Ditto.
5764 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
5766 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
5767 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
5770 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
5773 * c-typeck.c (c_expand_return): Change check for VAR_DECL
5774 to use DECL_P instead.
5776 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
5777 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
5779 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
5781 * Makefile.in (opts.o): Depend on target.h.
5782 * opts.c (decode_options): Use targetm.default_short_enums
5783 instead of DEFAULT_SHORT_ENUMS.
5784 * system.h (DEFAULT_SHORT_ENUMS): Poison.
5785 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
5786 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
5787 * target.h (gcc_target): Add default_short_enums.
5788 * config/cris/cris.h: Remove a comment about
5789 DEFAULT_SHORT_ENUMS.
5790 * config/ip2k/ip2k.h: Likewise.
5791 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
5792 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
5794 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
5795 Falk Hueffner <falk@debian.org>
5798 * builtins.c (expand_builtin_va_arg): Emit an informative message
5799 if a trap is generated.
5800 * c-typeck.c (build_function_call): Likewise.
5802 2004-02-22 Jakub Jelinek <jakub@redhat.com>
5804 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
5806 * libgcov.c: Include sys/stat.h.
5807 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
5808 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
5809 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
5810 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
5812 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
5814 * reorg.c: Remove comments about dead ports.
5816 2004-02-22 Christopher Faylor <cgf@redhat.com>
5818 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
5819 extra host object file when targetting cygwin rather than generic
5822 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
5824 Merge from tree-ssa:
5825 2003-11-20 Richard Henderson <rth@redhat.com>
5827 * tree-inline.c (insert_decl_map): New.
5828 (remap_decl, remap_type, remap_block, copy_body_r,
5829 initialize_inlined_parameters, declare_return_variable,
5830 remap_save_expr): Use it.
5832 * function.c (copy_body_r): Add mapping from id->ret_label to
5833 id->ret_label. Revert test for ret_label.
5835 2004-02-22 Jakub Jelinek <jakub@redhat.com>
5837 * genoutput.c (process_template): Strip trailing whitespace in @
5838 templates and issue a warning if there was any.
5840 2004-02-21 Christopher Faylor <cgf@redhat.com>
5842 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
5843 object file when targetting cygwin.
5844 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
5845 overridden by top-level Makefile.
5847 2004-02-21 Roger Sayle <roger@eyesopen.com>
5849 * config/i386/i386.c (standard_80387_constant_p): Also prefer
5850 the x87's load constant instructions when optimizing for size.
5852 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
5854 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
5855 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
5856 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
5857 * fold-const.c: Likewise.
5858 * simplify-rtx.c: Likewise.
5860 2004-02-21 Alan Modra <amodra@bigpond.net.au>
5862 * combine.c (can_combine_p): Don't ignore SETs marked with
5863 REG_EH_REGION notes.
5864 (try_combine): When attemting to fix unrecognized insns, don't
5865 split a PARALLEL that contains the original i2.
5867 2004-02-21 Ziemowit Laski <zlaski@apple.com>
5869 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
5870 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
5871 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
5872 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
5873 (vector, pixel, bool): #define to __vector, __pixel and __bool.
5874 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
5876 (__altivec_link_error_invalid_argument): Remove prototype; will use
5877 __builtin_altivec_compiletime_error("vec_*") instead.
5878 (vec_*): Fix/complete set of available operation overloads given the
5879 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
5880 cv-correctness of pointer arguments; in C, always check for correct
5881 argument types before macro expansion.
5882 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
5883 defining Darwin/PowerPC-specific '-f[no-]altivec' and
5884 '-W[no-]altivec-long-deprecated' switches.
5885 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
5886 '__vector', '__pixel' and '__bool' macros using
5887 '__attribute__((altivec(...)))' types.
5888 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
5889 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
5890 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
5892 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
5893 handling '-W[no-]altivec-long-deprecated'.
5894 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
5895 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
5896 altivec_expand_dst_builtin): Remove casts from integer literals.
5897 (altivec_expand_builtin): Likewise; handle expansion of new
5898 '__builtin_altivec_compiletime_error' function.
5899 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
5900 types, and make them distinct from other vector types; register
5901 '__builtin_altivec_compiletime_error' function.
5902 (print_operand): For 'P', print a full target register name instead of
5904 (rs6000_attribute_table): Add "altivec" attribute.
5905 (rs6000_handle_altivec_attribute): New function.
5906 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
5907 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
5909 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
5911 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
5913 2004-02-20 James E Wilson <wilson@specifixinc.com>
5915 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
5917 (shift_mix4left+2): Delete redundant pattern.
5919 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
5921 * alias.c (OUTGOING_REGNO): Don't define the default.
5922 * builtins.c (OUTGOING_REGNO): Likewise.
5923 (INCOMING_REGNO): Likewise.
5924 (apply_args_register_offset): Always use OUTGOING_REGNO.
5925 * combine.c (OUTGOING_REGNO): Likewise.
5926 * sibcall.c (OUTGOING_REGNO): Likewise.
5927 * defaults.h (INCOMING_REGNO): Provide the default.
5928 (OUTGOING_REGNO): Likewise.
5930 2004-02-21 Jan Hubicka <jh@suse.cz>
5932 * params.def (max-peeled-insns, max-completely-peeled-insns,
5933 max-once-peeled-insns): Set to 400.
5935 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5938 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
5939 are set for parameters before outputing debugging information.
5941 2004-02-20 Falk Hueffner <falk@debian.org>
5944 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
5947 2004-02-20 Per Bothner <per@bothner.com>
5949 * input.h: Don't #include line-map.h. It may cause link problems
5950 with undefined linemap_line_start when line-map.h is included but
5951 line-map.o is not linked, as currently happens with gengtype on
5952 compilers that don't support inline.
5953 * toplev.c: So we do have to explicitly #include line-map.h here.
5955 2004-02-20 Richard Henderson <rth@redhat.com>
5957 * doc/invoke.texi: Add -Wvariadic-macros.
5959 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
5961 * haifa-sched.c (sched_emit_insn): Remove.
5962 * sched-int.h: Remove the corresponding prototype.
5964 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
5967 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
5968 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
5969 * system.h (DEFAULT_SHORT_ENUMS): Poison.
5970 * config/cris/cris.h: Remove a comment about
5971 DEFAULT_SHORT_ENUMS.
5972 * config/ip2k/ip2k.h: Likewise.
5973 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
5975 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
5976 Tom Tromey <tromey@redhat.com>
5978 * doc/install.texi: Moved --disable-libgcj and
5979 --with-system-zlib documentation to new section for
5980 Java-specific options.
5981 Added explicit Cross-Compiler-Specific Options subheading.
5982 Added section for Java-specific options.
5984 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
5986 * doc/install.texi (Building the Ada compiler): Remove
5989 2004-02-20 James E Wilson <wilson@specifixinc.com>
5991 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
5993 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
5995 * gcc.c (process_command): Allow translation of the copyright
5996 symbol but not the rest of the copyright message.
5997 * gcov.c (print_version): Likewise. Allow translation of the
5998 message about warranty.
6000 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
6002 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
6004 ("*andsi_clear"): Tweak constraints to not match postincrement.
6005 Adjust the predicate to exclude a volatile memory reference.
6006 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
6007 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
6009 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
6011 * move-if-change: Remove.
6012 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
6013 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
6014 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
6015 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
6016 (s-gtyp-gen, s-iov): Use the top level move-if-change.
6017 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
6019 2004-02-19 James E Wilson <wilson@specifixinc.com>
6021 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
6022 for operand2. Add condition that requires register_operand operand2
6025 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
6026 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6028 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
6029 * config/mips/mips.md: Expand comment above unaligned loads and stores.
6031 2004-02-19 Richard Henderson <rth@redhat.com>
6033 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
6034 * tree.c (build0, build1, build2, build3, build4): Split out from...
6035 (build): ... here. Call them.
6036 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
6038 * convert.c (convert_to_integer): Remove extra build argument.
6039 * tree-inline.c (expand_call_inline): Likewise.
6041 2004-02-19 Richard Henderson <rth@redhat.com>
6043 * c-opts.c (warn_variadic_macros): New.
6044 (c_common_handle_option): Set it.
6045 (sanitize_cpp_opts): Copy it to cpp_opts.
6046 * c.opt (Wvariadic-macros): New.
6047 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
6048 * cppinit.c (cpp_create_reader): Initialize it.
6049 * cppmacro.c (parse_params): Check it.
6051 2004-02-19 David Daney <ddaney@avtrex.com>
6053 PR preprocessor/14198
6054 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
6055 builtin_assert ("machine=mips")
6057 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
6059 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
6060 * system.h (DEFAULT_SHORT_ENUMS): Poison.
6061 * config/cris/cris.h: Remove a comment about
6062 DEFAULT_SHORT_ENUMS.
6063 * config/ip2k/ip2k.h: Likewise.
6064 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
6066 2004-02-19 Zack Weinberg <zack@codesourcery.com>
6068 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
6069 when passing single SFmode quantities in general registers,
6070 put them in the high half.
6072 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
6074 * doc/md.texi (Standard Names): Document additional dependency on
6077 * optabs.c (ftruncify): Remove.
6078 (expand_fix): Manually inline ftruncify above.
6079 (can_fix_p): Add FIXME note.
6081 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
6083 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
6084 spe_fixuns_truncsfsi2.
6086 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
6089 2004-02-19 Steve Ellcey <sje@cup.hp.com>
6091 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
6092 * testsuite/gcc.dg/20040219-1.c: New test.
6094 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
6096 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
6097 "*subsf3_cconly"): Subtraction is not commutative.
6099 2004-02-19 Zack Weinberg <zack@codesourcery.com>
6101 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
6102 (sdbout_symbol): If called before sdbout_init, queue DECL for
6104 (sdbout_init): Set sdbout_initialized true, process decls
6105 queued earlier by sdbout_symbol.
6106 (sdbout_finish): Use size_t for index variable.
6108 2004-02-19 Jeff Law <law@redhat.com>
6110 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
6111 for unordered comparison codes.
6113 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
6115 * reload1.c (reload): Correct comment.
6116 (scan_paradoxical_subregs): Remove #if 0 and old comment.
6117 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
6118 register variables are not used by reload.
6120 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
6123 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
6124 constraints to not match postincrement. Adjust the predicate to
6125 exclude a volatile memory reference.
6127 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
6129 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
6131 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
6133 * hooks.c (hook_void_tree_int): Remove.
6134 (hook_void_constcharptr): Likewise.
6135 (hook_int_void_0): Likewise.
6136 * hooks.h: Remove the prototypes for the above three
6138 * targhooks.c (hook_bool_machine_mode_true): Remove.
6139 * targhooks.h: Remove the prototype for
6140 hook_bool_machine_mode_true.
6142 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
6144 * emit-rtl.c (subreg_realpart_p): Remove.
6145 (reorder_insns_with_line_notes): Likewise.
6146 (end_full_sequence): Likewise.
6147 * rtl.h: Remove the prototype for the above functions.
6149 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
6151 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
6152 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
6153 config/iq2000/iq2000.h, config/m32r/m32r.h,
6154 config/pdp11/pdp11.h, config/sparc/sparc.h,
6155 config/xtensa/xtensa.h: Remove commented-out or useless
6156 definitions of CASE_VECTOR_PC_RELATIVE.
6158 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
6160 * loop.c (all_sets_invariant_p): Remove.
6162 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
6165 * config/sparc/sparc.h (NPARM_REGS): Delete.
6166 (BASE_RETURN_VALUE_REG): Likewise.
6167 (BASE_OUTGOING_VALUE_REG): Likewise.
6168 (BASE_PASSING_ARG_REG): Likewise.
6169 (BASE_INCOMING_ARG_REG): Likewise.
6170 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
6171 TARGET_ARCH64, not TARGET_V9.
6172 (function_arg_slotno): Dispatch based on the mode class.
6173 Handle vector modes like floating-point modes.
6174 (function_arg_record_value_1): Handle vector types like
6175 floating-point types.
6176 (function_arg_record_value_2): Likewise.
6177 Calculate regno after mode transformation.
6178 (function_arg): Handle vector modes like floating-point modes.
6179 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
6180 If ARCH64, do not recheck alignment.
6181 (function_arg_pass_by_reference): Reorder the conditions.
6182 (sparc_return_in_memory): Move after function_arg_padding.
6183 Implement calling conventions for vector modes.
6184 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
6185 (function_value): Move scope of 'regbase'.
6186 Implement calling conventions for vector modes.
6187 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
6188 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
6189 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
6190 the argument is passed by reference.
6191 (sparc_type_code): Handle vector types.
6193 2004-02-19 Alan Modra <amodra@bigpond.net.au>
6195 * function.c (assign_parms): When building decl_rtl for
6196 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
6198 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
6200 * expr.c (is_aligning_offset): Check if we are aligning the
6201 expressions's address over BIGGEST_ALIGNMENT in bytes, not
6204 2003-02-18 Matt Austern <austern@apple.com>
6206 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
6207 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
6208 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
6209 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
6211 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
6213 2004-02-18 Zack Weinberg <zack@codesourcery.com>
6215 * dwarf2out.c (loclabel_num): Move outside #ifdef
6216 DWARF2_DEBUGGING_INFO and mark with GTY(()).
6217 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
6219 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
6220 Allocate memory with ggc_alloc. No need to copy anything.
6221 (ia64_hpux_file_end): Update to match.
6223 2004-02-18 Jakub Jelinek <jakub@redhat.com>
6225 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
6228 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
6230 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
6231 ("divmodtisi3"): Likewise.
6232 ("udivmoddi4", "udivmodtidi3"): Likewise.
6233 ("divmodsi4", "divmoddisi3"): Likewise.
6234 ("udivmodsi4", "udivmoddisi3"): Likewise.
6235 ("udivsi3", "umodsi3"): Likewise.
6237 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
6239 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
6240 placeholder insn when chunkifying the pool.
6242 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6244 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
6245 generating PIC code.
6247 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
6249 * config/h8300/h8300-protos.h: Add a prototype for
6250 h8300_expand_branch.
6251 * config/h8300/h8300.c (h8300_expand_branch): New.
6252 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
6253 bgtu, beq, bne): Call h8300_expand_branch().
6255 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
6257 * config/h8300/h8300-protos.h: Add prototypes for
6258 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
6259 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
6260 (h8300_hard_regno_mode_ok): Likewise.
6261 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
6262 h8300_hard_regno_nregs().
6263 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
6265 2004-02-18 Per Bothner <per@bothner.com>
6267 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
6268 partly reverts my 2003-10-01 change, because we're back to logically
6269 including <command line> inside the main line.
6270 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
6271 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
6272 Fixes PR preprocessor/14103.
6274 * cppfiles.c (_cpp_stack_include): When appropriate decrement
6275 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
6276 (cpp_push_include): Don't need to increment pfile's line field.
6277 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
6279 * c-ppoutput.c (print struct): New first_time field.
6280 (init_pp_output): Set print.first_time.
6281 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
6282 which is set also for (say) <command line>. Clear print.first_time.
6284 * cppfiles.c (struct _cpp_file): Comment and type for pch field
6285 does not match the code, so fix both.
6286 (should_stack_file): Inline include_pch_p function.
6287 (include_pch_p): Remove pointless function.
6289 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
6291 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
6293 * config/h8300/h8300.md (four define_peephole2's): Use
6294 h8300_regs_ok_for_stm().
6296 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
6298 * config/h8300/h8300-protos.h: Update the prototype for
6300 * config/h8300/h8300.c (expand_a_rotate): Remove the first
6302 * config/h8300/h8300.md: Update all callers.
6304 2004-02-18 Jan Hubicka <jh@suse.cz>
6306 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
6308 (simplify_binary_operation): Deal with logicals on floats.
6310 * i386.md (SSE fabs splitters): Emit new patterns.
6311 (SSE cmov splitters): Likewise.
6312 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
6313 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
6315 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
6316 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
6318 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
6320 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
6322 (output_a_rotate): Tweak a comment.
6323 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
6324 (*rotlhi3_1): Change to rotlhi3_1.
6325 (*rotlsi3_1): Change to rotlsi3_1.
6327 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
6330 * arm.c (load_multiple_operation): Don't insist that the source reg
6331 of a post-increment component is the same as the destination.
6332 (store_multiple_operation): Likewise.
6334 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
6336 * config/h8300/h8300.md: Move movsf patterns into one section
6339 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
6341 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
6342 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
6343 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
6344 config/mips/linux64.h, config/pa/pa-64.h,
6345 config/rs6000/aix51.h, config/rs6000/aix52.h,
6346 config/rs6000/spe.md, config/sparc/linux.h,
6347 config/sparc/linux64.h: Update copyright.
6349 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
6351 * config/h8300/h8300.md: Move push patterns into one
6352 section of the file.
6354 2004-02-18 Mark Mitchell <mark@codesourcery.com>
6357 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
6360 2004-02-18 Paul Brook <paul@codesourcery.com>
6362 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
6364 2004-02-18 Paul Brook <paul@codesourcery.com>
6367 * dwarf2out.c (loc_descriptor_from_tree): Handle
6368 EXPR_WITH_FILE_LOCATION.
6370 2004-02-18 Jakub Jelinek <jakub@redhat.com>
6372 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
6373 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
6374 trailing whitespace from instructions.
6376 2004-02-17 Geoffrey Keating <geoffk@apple.com>
6378 * configure.ac: When generating auto-build.h, pass
6379 --enable-languages to the sub-configure.
6380 Put quotes around ${program_transform_name} when generating
6381 name of as, ld, nm, objdump.
6382 * configure: Regenerate.
6384 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
6386 * Makefile.in (s-check, s-config, s-conditions, s-flags)
6387 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
6388 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
6389 (s-preds, s-iov): Do not depend on move-if-change.
6391 2004-02-17 James E Wilson <wilson@specifixinc.com>
6393 * caller-save.c (insert_restore): Pass mem through copy_rtx.
6394 (insert_save): Likewise.
6396 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6398 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
6401 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6403 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
6405 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
6407 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6409 * config/h8300/h8300-protos.h: Update the prototype of
6411 * config/h8300/h8300.c (fix_bit_operand): Remove the second
6413 * config/h8300/h8300.md: Update all callers.
6415 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6417 * config/h8300/h8300.c (fix_bit_operand): Change the name of
6418 the last argument to "code" from "type".
6420 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6422 * config/h8300/h8300.c: Remove an extern declaration of
6423 rtx_equal_function_value_matters.
6425 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6427 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
6429 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
6430 (*iorqi3_1): Change to iorqi3_1.
6431 (*xorqi3_1): Change to xorqi3_1.
6433 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6435 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
6438 2004-02-17 Jan Hubicka <jh@suse.cz>
6440 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
6442 2004-02-18 Alan Modra <amodra@bigpond.net.au>
6444 PR optimization/14119
6445 * combine.c (try_combine): When attemting to fix unrecognized insns,
6446 don't delete SETs marked with REG_EH_REGION notes.
6448 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
6450 * combine.c (simplify_if_then_else): Do not replace
6451 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
6454 2004-02017 Steven Bosscher <stevenb@suse.de>
6456 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
6457 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
6458 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
6459 * ada/utils.c: Likewise.
6460 * cp/decl.c: Likewise.
6461 * f/com.c: Likewise.
6462 * java/class.c: Likewise.
6464 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6466 * config/h8300/h8300.md: Fix comment typos.
6468 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6470 * config/mips/t-iris6gld: Renamed to ...
6471 * config/mips/t-irix-gld: ... this.
6472 * config.gcc (mips-sgi-irix6*): Reflect this
6473 (mips-sgi-irix5*): Use it with GNU ld.
6475 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
6477 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
6478 * config/mips/t-irix-gld: Reflect this.
6479 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6481 * config/mips/iris5gld.h: New file.
6482 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
6483 Only use collect2 without gas.
6485 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
6486 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
6487 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
6488 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
6490 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
6491 * config/mips/iris5.h: ... here.
6493 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
6494 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
6495 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
6497 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
6498 using irix_startfile_spec, irix_endfile_spec.
6500 2004-02-16 Gunther Nikl <gni@gecko.de>
6502 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
6504 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6506 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
6509 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6511 * cfghooks.c (split_edge): Speed up updating of dominators.
6513 2004-02-17 Mark Mitchell <mark@codesourcery.com>
6516 * c-common.c (flag_abi_version): Remove.
6517 * c-common.h (flag_abi_version): Likewise.
6518 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
6519 * c.opt (fabi-version): Remove.
6520 * calls.c (expand_call): Always pass a function type to
6521 struct_value_rtx. Use convert_memory_address.
6522 * common.opt (fabi-version): Add it.
6523 * flags.h (flag_abi_version): Likewise.
6524 (abi_version_at_least): New macro.
6525 * opts.c (common_handle_option): Add OPT_fabi_version.
6526 * toplev.c (flag_abi_version): Define it.
6527 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
6529 (ia64_output_mi_thunk): Use it.
6530 (ia64_struct_value_rtx): Likewise.
6532 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6534 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
6535 Don't generate insns by hand.
6537 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
6540 * doc/invoke.texi (fabi-version): The default is 2 now.
6542 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6544 * loop-iv.c: New file.
6545 * Makefile.in (loop-iv.o): New.
6546 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
6547 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
6548 num_loop_branches): New functions.
6549 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
6550 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
6551 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
6552 get_simple_loop_desc, free_simple_loop_desc): Declare.
6553 (simple_loop_desc): New inline function.
6554 (struct rtx_iv, struct niter_desc): New.
6555 * cfgloopmanip.c (loopify): Specify semantics more precisely.
6556 * expr.c (force_operand): Handle subregs of expressions created by
6558 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
6559 parts of the initialization to toplev.c
6560 * loop-unroll.c (loop_exit_at_end_p): New.
6561 (unroll_and_peel_loops): Call iv_analysis_done.
6562 (decide_peel_once_rolling, decide_peel_completely,
6563 decide_unroll_stupid, decide_unroll_constant_iterations,
6564 decide_unroll_runtime_iterations, decide_peel_simple,
6565 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
6566 unroll_loop_runtime_iterations): Use new simple loop analysis.
6567 * loop-unswitch.c (compare_and_jump_seq): New.
6568 (may_unswitch_on_p): Renamed to ...
6569 (may_unswitch_on): Use new iv analysis.
6570 (reversed_condition): Export.
6571 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
6572 * predict.c (estimate_probability): Use new simple loop analysis.
6573 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
6574 canon_condition, simplify_using_condition): Declare.
6575 * stor-layout.c (get_mode_bounds): New.
6576 * toplev.c (rest_of_handle_loop2): Some parts of
6577 initialization/finalization moved here from loop-init.c.
6579 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
6581 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
6583 (CALL_USED_REGISTERS): Likewise.
6584 (REG_ALLOC_ORDER): Likewise.
6585 (REG_CLASS) <GENERAL_REGS>: Likewise.
6587 2004-02-16 Geoffrey Keating <geoffk@apple.com>
6589 * doc/md.texi (Insn Canonicalizations): Document left-chaining
6590 in associative operators.
6591 * rtlanal.c (commutative_operand_precedence): Create some new
6592 variables. Prefer a commutative operand on the left, then
6593 binary expressions, then NEG and NOT.
6595 2004-02-16 Matthias Klose <doko@debian.org>
6597 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
6598 in terms of SHLIB_SOVERSION.
6599 * config/m68k/t-slibgcc-elf-ver: New file.
6600 * config/pa/t-slibgcc-elf-ver: New file.
6601 * config.gcc (m68k-linux, parisc-linux): Use them when not
6602 sjlj exceptions are not configured.
6604 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
6606 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
6608 2004-02-16 Zack Weinberg <zack@codesourcery.com>
6610 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
6612 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
6614 * doc/sourcebuild.texi: Mention backends.html.
6616 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
6618 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
6619 line-map.c, line-map.h, var-tracking.c: Fix comment
6622 2004-02-16 Richard Henderson <rth@redhat.com>
6624 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
6626 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
6628 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
6630 * config/h8300/h8300.md: Remove unnecessary parallels from
6631 all define_insn and define_split patterns.
6633 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
6635 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
6638 2004-02-15 Bernardo Innocenti <bernie@develer.com>
6640 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
6643 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
6645 * config/ia64/ia64.c, config/mips/mips.c,
6646 config/mmix/mmix-modes.def: Fix comment typos.
6648 2004-02-15 Roger Sayle <roger@eyesopen.com>
6650 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
6651 (get_directive_line): Remove unused function prototype.
6653 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
6655 * tree-inline.c (copy_body_r): Do not replace ret_label.
6657 2004-02-14 Jan Hubicka <jh@suse.cz>
6659 * i386.c (x86_four_jump_limit): New variable.
6660 (k8_avoid_jump_misspredicts): Rename to ...
6661 (ix86_avoid_jump_misspredicts): .. this one.
6662 (ix86_pad_returns): Break out from ...
6663 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
6665 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
6667 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
6669 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
6672 2004-02-14 Per Bothner <per@bothner.com>
6674 * fix-header.c (line_table): Move local variable in main to global.
6675 * scan.h (line_table): Use it.
6676 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
6677 line (recently renamed to src_loc) before calling recognized_function.
6679 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
6681 * Makefile.in: Fix comment typos.
6683 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
6685 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
6686 for start_value when it is directly moved into reg, and factorize
6687 the retrieval of GET_MODE (reg).
6689 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
6691 * config/mips/mips-protos.h (mips_load_got_page): Delete.
6692 (mips_load_got_global): Delete.
6693 (mips_gotoff_page): Declare.
6694 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
6695 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
6696 UNSPEC_LOAD_GOT pattern rather than a MEM.
6697 (*load_got[sd]i): New patterns.
6698 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
6699 (mips_load_got_page, mips_load_got_global): Delete.
6700 (mips_gotoff_page): New function.
6701 (override_options): Don't initialize mips_got_alias_set.
6703 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
6705 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
6706 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
6707 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
6708 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
6709 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
6710 * config/mips/mips.c: Fix some overly-long lines.
6711 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
6712 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
6714 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6716 * configure.ac: Search for as, ld below libexec/gcc.
6717 * configure: Regenerate.
6719 2004-02-14 Ben Elliston <bje@wasabisystems.com>
6721 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
6722 __builtin_arm_setwcx ().
6723 * config/arm/arm.c (arm_expand_builtin): Generate operands
6724 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
6726 2004-02-14 Ben Elliston <bje@wasabisystems.com>
6728 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
6729 and "wmuluh" to "wmulsm" and "wmulum", respectively.
6730 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
6731 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
6732 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
6733 (_mm_mulhi_pu16): Likewise.
6735 2004-02-13 Zack Weinberg <zack@codesourcery.com>
6737 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
6738 DECL_NAME != 0 before dereferencing.
6740 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
6742 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
6743 (s390_output_addr_const_extra): Declare.
6744 (s390_output_pool_entry): Remove FILE * argument.
6745 * config/s390/s390.c (s390_output_symbolic_const): Remove.
6746 (s390_output_addr_const_extra): New function.
6747 (print_operand_address): Call output_addr_const instead of
6748 s390_output_symbolic_const.
6749 (print_operand): Likewise.
6750 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
6751 Remove FILE * argument.
6752 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
6753 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
6756 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6758 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
6759 (struct edge, struct vertex, struct graph): New.
6760 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
6761 free_graph): New functions.
6763 2004-02-12 Chris Demetriou <cgd@broadcom.com>
6765 * config/mips/mips.md (casesi_internal, casesi_internal_di):
6766 Use ".set macro" to avoid warnings about multi-instruction
6767 macros, since they're intentional.
6769 2004-02-12 Geoffrey Keating <geoffk@apple.com>
6771 * config/darwin.h: Add include guards. Remove old, now incorrect,
6772 comment about STANDARD_EXEC_PREFIX.
6774 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
6775 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
6776 for installing .1 manpages. Add rules for installing cpp
6777 and gcov manpages under their installed names.
6779 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
6781 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
6782 host, but try LD_FOR_TARGET first.
6783 * configure: Rebuilt.
6785 2004-02-12 Zack Weinberg <zack@codesourcery.com>
6787 * dbxout.c: Move declaration of dbxout_type_decl outside
6788 #ifdef DBX_DEBUGGING_INFO.
6789 * c-parse.in: Don't give the asmdef production a type.
6791 2004-02-12 Zack Weinberg <zack@codesourcery.com>
6793 * debug.h (struct gcc_debug_hooks): Add type_decl field.
6794 (debug_nothing_tree_int): Prototype.
6795 (dwarf_debug_hooks): Delete, unused.
6796 * debug.c (do_nothing_debug_hooks): Update.
6797 (debug_nothing_tree_int): New function.
6798 * langhooks.h (struct lang_hooks_for_decls):
6799 Remove builtin_type_decls field.
6800 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
6801 (LANG_HOOKS_DECLS): Update.
6802 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
6803 Use debug_hooks->type_decl.
6804 * dbxout.c (preinit_symbols): New static.
6805 (dbx_debug_hooks, xcoff_debug_hooks): Update.
6806 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
6807 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
6808 for symbols to output.
6809 (dbxout_type_decl): New function.
6810 (dbxout_symbol): If called before dbxout_init has run, queue
6811 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
6812 to TYPE_DECLs before emitting them.
6813 * xcoffout.c (assign_type_number): Delete.
6814 (xcoff_type_numbers): New static table.
6815 (xcoff_assign_fundamental_type_number): New function.
6816 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
6817 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
6818 * sdbout.c: Include varray.h.
6819 (deferred_global_decls): New static.
6820 (sdb_debug_hooks): Update.
6821 (sdbout_global_decl): If we can't emit something right now,
6822 remember it in deferred_global_decls.
6823 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
6824 (sdbout_init): Initialize deferred_global_decls.
6825 * Makefile.in: Update dependencies of sdbout.o.
6826 * dwarf2out.c (dwarf2out_type_decl): New function.
6827 (dwarf2_debug_hooks): Update.
6828 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
6829 * c-decl.c (getdecls): Just return 0.
6830 (check_for_loop_decls): Don't use getdecls.
6831 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
6832 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
6834 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
6836 * config/s390/s390.c (s390_sched_reorder2): Remove.
6837 (TARGET_SCHED_REORDER2): Do not redefine.
6839 2004-02-12 Zack Weinberg <zack@codesourcery.com>
6841 * c-parse.in (maybe_type_qual): Delete.
6842 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
6843 (asm_argument): New grammar rules.
6844 (extdef_1): Use asmdef.
6845 (maybeasm): Move down with other asm rules; use simple_asm_expr.
6846 (xexpr): Move up with other expression rules.
6847 (stmt): Use asm_stmt.
6849 * c-typeck.c (build_asm_expr): New function - body mostly
6850 pulled from build_asm_stmt.
6851 (build_asm_stmt): Just handle tacking on the volatile qualifier.
6852 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
6854 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
6857 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
6858 (mips_declare_object): Make variadic.
6859 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
6860 mips_output_aligned_decl_common.
6861 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
6862 (mips_declare_object): Make variadic.
6864 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6866 * function.c (update_epilogue_consts): Teach about binary operations.
6868 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
6869 previous MEM_VOLATILE in REF.
6870 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
6871 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
6873 2004-02-12 Gunther Nikl <gni@gecko.de>
6875 * config.gcc: Restore support for m68k-openbsd.
6877 2004-02-12 Jan Hubicka <jh@suse.cz>
6879 * tree-optimize.c (tree_rest_of_compilation): Do not release
6882 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
6884 * doc/install.texi: Fix the spelling of "explicitly".
6886 2004-02-11 Eric Christopher <echristo@redhat.com>
6888 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
6889 duplicate argument structure of cpp_interpret_string.
6890 * cpphash.h: Move prototype...
6892 * cpplib.c: Fix calls to match new function signature.
6894 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
6897 * cppexp.c (num_binary_op): Don't allow comma operators in #if
6898 constant expressions at all outside C99 mode if pedantic.
6900 2004-02-11 Uros Bizjak <uros@kss-loka.si>
6902 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
6903 (log10_optab, log2_optab): Define corresponding macros.
6904 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
6905 * genopinit.c (optabs): Implement log10_optab and log2_optab
6906 using log10?f2 and log2?f2 patterns.
6907 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
6908 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
6909 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
6910 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6912 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
6913 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
6914 log2, log2f and log2l built-ins as inline x87 intrinsics.
6916 2004-02-11 Richard Henderson <rth@redhat.com>
6919 * flow.c (insn_dead_p): A clobber of a dead hard register is a
6920 dead insn after reload.
6922 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
6924 * tree.h (frame_base_decl): Add GTY marker.
6925 * var-tracking.c (frame_base_decl): Likewise.
6927 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
6929 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
6931 (add_location_or_const_value_attribute): Use text_section_label,
6932 not TEXT_SECTION_NAME.
6934 2004-02-11 Per Bothner <per@bothner.com>
6936 Represent column numbers using line-map's source_location.
6937 The "next available source_location" is now managed internally by
6938 line-maps.c rather than by clients.
6939 * line-map.h (struct line_map): New field column_bits.
6940 <from_line>: Rename field to start_location.
6941 (struct line_maps): New fields highest_location and max_column_hint.
6942 (linemap_check_files_exited): New declaration.
6943 (linemap_line_start): New declaration.
6944 (linemap_add): Remove from_line parameter; use highest_location field.
6945 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
6946 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
6947 (CURRENT_LINE_MAP): Remove macro.
6948 (linemap_position_for_column): New inline function.
6949 * line-map.c (linemap_init): Clear new fields.
6950 (linemap_check_files_exited): New function, extracted from ...
6951 (linemap_free): Use linemap_check_files_exited.
6952 (linemap_add): Remove from_line parameter. Various updates.
6953 (linemap_line_start): New function.
6954 (linemap_lookeup): Update for new field names.
6955 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
6956 linemap_position_for_column may unpredictably change the current map,
6957 it is cleaner and simpler for us to not cache it in cpp_reader.
6958 (struct cpp_buffer): New sysp field.
6959 Changed warned_cplusplus_comments and from_stage3 to bitfields.
6960 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
6961 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
6962 current map using linemap_lookup.
6963 (do_linemarker): Also set buffer's sysp field.
6964 (destringize_and_run): No longer need to decrement current line.
6965 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
6966 (search_path_head, open_file_failed): Use buffer's sysp.
6967 (cpp_make_system_header): Get current map using linemap_lookup.
6968 Also set buffer's sysp flag.
6969 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
6970 * cpphash.h (CPP_INCREMENT_LINE): New macro.
6971 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
6972 (struct cpp_reader): ... and adding saved_line_base field.
6973 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
6974 Update accordingly. Don't adjust line.
6975 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
6976 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
6977 (cpp_in_system_header): ... new inline function, using buffer's sysp.
6978 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
6979 * cpplex.c (_cpp_lex_direct): Likewise.
6980 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
6981 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
6982 * cpplib.h (struct cpp_token): Rename line field to src_loc.
6983 Remove col field as it is now subsumed by src_loc.
6984 * cpperror.c: Update various field, parameter, and macro names.
6985 (print_location): If col==0, try SOURCE_COLUMN of line.
6986 (cpp_error): Use cur_token's src_loc field, rather than line+col.
6987 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
6988 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
6989 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
6990 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
6991 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
6992 (_cpp_lex_direct): Use linemap_position_for_column.
6993 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
6994 parameter. Instead get it from the line_table global. Adjust callers.
6995 (print): Remove map field. Replace line field to src_line.
6996 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
6997 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
6998 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
6999 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
7000 * cpptrad.c (copy_comment): Rename variable.
7001 * c-lex.c (map): Remove static variable, for same reason we removed
7002 cpp_reader's map field.
7003 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
7004 to call linemap_lookup.
7005 (cb_line_change): Token's line field replaced by src_loc.
7006 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
7009 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
7012 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
7014 * config/rs6000/altivec.md (*movv4si_internal): At least one
7015 operand must be register_operand.
7016 (*movv8hi_internal1): Likewise.
7017 (*movv16qi_internal1): Likewise.
7018 (*movv4sf_internal1): Likewise.
7020 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
7022 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
7024 (movv4hi_internal): Same.
7025 (movv2sf_internal): Same.
7026 (movv1di_internal): Same.
7028 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7030 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
7031 TARGET_OLDABI consistently.
7032 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
7033 mips_va_arg,override_options,compute_frame_size,
7034 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
7035 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
7036 and TARGET_OLDABI consistently.
7037 * config/mips/mips.md (exception_receiver): Likewise.
7038 * config/mips/linux64.h: Likewise.
7040 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
7042 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
7043 Set AltiVec ABI and vrsave as default for ppc64 linux.
7044 (init_cumulative_args): Post error, if try to return
7045 value in AltiVec register without enable AltiVec.
7046 (function_arg_advance): Ditto for passing arguments.
7048 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
7050 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
7051 a label before updating its usage count.
7053 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
7055 * doc/install.texi: Remove extra cd.
7057 2004-02-10 Ziemowit Laski <zlaski@apple.com>
7059 * c-common.c (vector_size_helper): Remove; call
7060 reconstruct_complex_type() instead.
7061 * tree.c (reconstruct_complex_type): New function
7062 (formerly vector_size_helper() in c-common.c).
7063 (make_vector): Make externally visible.
7064 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
7066 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
7068 * config/h8300/h8300-protos.h: Add a prototype for
7069 h8300_regs_ok_for_stm.
7070 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
7071 * config/h8300/h8300.md (stm_h8300s_2_advanced,
7072 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
7073 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
7074 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
7075 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
7076 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
7077 ldm_h8300s_4_normal, ldm_h8300s_4): Use
7078 h8300_regs_ok_for_stm().
7080 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
7083 * real.c (real_from_string): Look for 'X' as well as 'x' in
7086 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
7088 * config/h8300/h8300.md: Remove an incorrect comment about
7089 peephole2. Add comments.
7091 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
7094 * emit-rtl.c (set_decl_incoming_rtl): New.
7095 * tree.h (set_decl_incoming_rtl): New.
7096 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
7098 * ada/misc.c (adjust_decl_rtl): Likewise.
7100 2004-02-10 Per Bothner <per@bothner.com>
7102 * c-opts.c (c_common_post_options): Don't emit working directory
7103 in cpp output if -P was specified.
7105 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
7108 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
7109 negate_expr back to the original type.
7111 2004-02-10 Alan Modra <amodra@bigpond.net.au>
7113 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
7116 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
7118 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
7119 gen_lowpart_SUBREG): Move under the file in which they
7120 are actually declared.
7122 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
7124 * doc/sourcebuild.texi: Add libada documentation.
7126 * doc/install.texi: Update documentation on Ada build, now
7127 that the GNAT lib and tools are built automatically.
7129 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
7131 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
7134 2004-02-09 Ziemowit Laski <zlaski@apple.com>
7136 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
7137 boundaries outside build_component_ref() call (a macro in ObjC++).
7139 2004-02-09 Bob Wilson <bob.wilson@acm.org>
7141 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
7142 (init_cumulative_args): Likewise.
7143 (a7_overlap_mentioned_p): Delete prototype.
7144 * config/xtensa/xtensa.c (struct machine_function): Replace
7145 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
7146 Add set_frame_ptr_insn field.
7147 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
7148 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
7149 if the operand is an argument in a7. If so, copy a7 to a new pseudo
7150 at the function entry and replace the operand with the pseudo.
7151 (init_cumulative_args): Remove unused arguments. Add new "incoming"
7152 argument and record this flag in CUMULATIVE_ARGS.
7153 (function_arg): Remove result_mode and special-case code to handle
7154 arguments in a7. Instead, set need_a7_copy flag when there is an
7155 incoming argument in a7.
7156 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
7157 and use the value recorded in cfun->machine->set_frame_ptr_insn.
7158 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
7159 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
7161 (a7_overlap_mentioned_p): Delete.
7162 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
7163 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
7164 arguments to init_cumulative_args and pass "incoming" flag instead.
7165 (BLOCK_REG_PADDING): Delete.
7166 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
7167 checks for reload_in_progress and reload_completed. Update calls to
7168 xtensa_copy_incoming_a7.
7169 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
7170 to call xtensa_copy_incoming_a7.
7172 2004-02-09 DJ Delorie <dj@redhat.com>
7174 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
7175 longer modify standard_exec_prefix, standard_bindir_prefix, or
7176 standard_startfile_prefix.
7178 2004-02-09 James E Wilson <wilson@specifixinc.com>
7181 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
7182 to expand_expr_real call, and pass in alt_rtl as last argument.
7185 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
7186 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
7187 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
7188 * except.c (expand_builtin_extend_pointer): New.
7189 * except.h (expand_builtin_extend_pointer): Declare.
7191 2004-02-09 David Edelsohn <edelsohn@gnu.org>
7193 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
7194 unaligned loads and stores.
7196 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7198 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
7199 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
7201 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
7202 * config/mips/iris5.h: ... here.
7203 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
7205 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
7206 * config/mips/iris5.h: ... here.
7208 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7210 * configure.ac: Remove default executable files before AC_PROG_CC.
7211 * configure: Regenerate.
7213 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
7216 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
7217 print a operand other than a register.
7219 2004-02-09 Roger Sayle <roger@eyesopen.com>
7221 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
7222 tree code rather than call fold_convert, which doesn't specify a
7223 default floating point to integer conversion.
7225 2004-02-08 Bernardo Innocenti <bernie@develer.com>
7227 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
7228 code to support SGS assembler. Reformat adjacent code where possible.
7229 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
7231 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
7233 * config/m68k/linux.h, config/m68k/m68k.c,
7234 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
7235 macros and asm_printf() format strings.
7236 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
7237 * config/m68k/linux.h: Update copyright.
7238 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
7240 2004-02-08 Andreas Schwab <schwab@suse.de>
7241 Bernardo Innocenti <bernie@develer.com>
7243 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
7245 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
7246 frame pointer register, overridable by OS targets.
7247 * (M68K_REGNAME): Macro to obtain register name for asm output,
7248 eventually replacing %a6 with M68K_FP_REG_NAME.
7249 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
7250 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
7251 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
7252 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
7253 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
7255 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
7257 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
7258 hook_rtx_tree_int_null.
7259 * targhooks.c (default_struct_value_rtx): Remove.
7260 * targhooks.h: Remove the prototype for
7261 default_struct_value_rtx.
7262 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
7263 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
7264 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
7265 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
7266 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
7267 config/rs6000/rs6000.c, config/s390/s390.c,
7268 config/stormy16/stormy16.c, config/v850/v850.c,
7269 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
7270 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
7272 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
7274 * README.Portability: Change "ISO C89" to "ISO C90".
7275 * c-parse.in (primary, initelt): Likewise.
7277 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
7279 * real.c (encode_ibm_extended): Normalize the input value before
7280 converting it to a double. Handle the case where a normal value
7283 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
7285 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
7287 * cse.c (preferrable): Change to preferable. Update all of its
7289 * genautomata.c (ainsn): Change
7290 first_ainsn_with_given_equialence_num to
7291 first_ainsn_with_given_equivalence_num. Update all of its
7294 2004-02-08 Jan Hubicka <jh@suse.cz>
7296 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
7298 2004-02-07 David Edelsohn <edelsohn@gnu.org>
7300 * function.c (assign_parms): Fix formatting.
7302 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
7304 * default.h (PROMOTE_PROTOTYPES): Remove.
7305 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
7306 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
7307 EXPAND_BUILTIN_SAVEREGS): Poison.
7308 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
7309 hook_bool_tree_false.
7310 (TARGET_PROMOTE_PROTOTYPES): Likewise.
7311 * target.h: Replace SETUP_INCOMING_VARARGS with
7312 targetm.calls.setup_incoming_varargs().
7313 * targhooks.c (default_promote_function_return): Remove.
7314 (default_promote_prototypes): Likewise.
7315 (default_struct_value_rtx): Always abort().
7316 (default_expand_builtin_saveregs): Always print an error
7318 (default_setup_incoming_varargs): Do nothing.
7319 (default_pretend_outgoing_varargs_named): Don't depend on
7320 SETUP_INCOMING_VARARGS.
7321 * targhooks.h: Remove the prototype for
7322 default_promote_function_return and
7323 default_promote_prototypes.
7325 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
7327 * system.h (SHARED_SECTION_ASM_OP): Poison.
7328 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
7329 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
7331 2004-02-07 Zack Weinberg <zack@codesourcery.com>
7334 * c-decl.c (diagnose_mismatched_decls): Only give special
7335 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
7337 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
7338 DECL_FUNCTION_CODE when defining a built-in function.
7339 Don't update DECL_ESTIMATED_INSNS.
7340 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
7342 * tree.h: Delete DECL_ESTIMATED_INSNS.
7343 * tree-inline.c (struct inline_data): Delete inlined_insns field.
7344 (expand_call_inline, optimize_inline_calls): Don't update
7345 DECL_ESTIMATED_INSNS nor inlined_insns.
7346 * cgraphunit.c (cgraph_analyze_function): Don't update
7347 DECL_ESTIMATED_INSNS.
7349 2004-02-07 Zack Weinberg <zack@codesourcery.com>
7351 * c-common.c (shadow_warning): Delete.
7352 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
7353 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
7354 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
7355 * c-parse.in (free_parser_stacks): Delete.
7357 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
7359 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
7360 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
7361 Use the top level mkinstalldirs, not the one in the gcc subdir.
7362 * mkinstalldirs: Remove (from the gcc subdir).
7364 2004-02-07 Roger Sayle <roger@eyesopen.com>
7367 * fold-const.c (fold_convert): New function to provide type
7368 conversion to the middle-end without using convert.
7369 (negate_expr, associate_trees, size_diffop, omit_one_operand,
7370 operand_equal_for_comparison_p, pedantic_omit_one_operand,
7371 invert_truthvalue, optimize_bit_field_compare, range_binop,
7372 decode_field_reference, make_range, build_range_check, unextend,
7373 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
7374 fold_binary_op_with_conditional_arg, fold_inf_compare,
7375 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
7376 convert with calls to fold_convert.
7378 2004-02-07 Jan Hubicka <jh@suse.cz>
7380 * genrecog.c (find_operand): add extra argument stop.
7381 (validate_pattern): Verify that mach_dup is duplicating operand
7382 defined lexically earlier.
7384 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
7386 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
7387 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
7388 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
7389 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
7390 config/ia64/ia64.h, config/ip2k/ip2k.h,
7391 config/iq2000/iq2000.h, config/mips/iris5.h,
7392 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
7393 config/rs6000/aix51.h, config/rs6000/aix52.h,
7394 config/rs6000/darwin.h, config/rs6000/rs6000.h,
7395 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
7396 config/sparc/linux.h, config/sparc/linux64.h,
7397 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
7398 config/xtensa/xtensa.h: Remove the definitions of
7399 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
7400 MAX_WCHAR_TYPE_SIZE.
7401 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
7402 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
7404 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
7407 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
7410 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
7412 * var-tracking.c (vt_add_function_parameters): Surround checkings by
7413 #ifdef ENABLE_CHECKING and #endif.
7415 2004-02-07 Roger Sayle <roger@eyesopen.com>
7417 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
7418 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
7419 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
7420 integer types and floating point with unsafe_math_optimizations.
7421 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
7422 Optimize A - B as A + (-B), if B is easily negated.
7424 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
7426 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
7427 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
7428 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
7429 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
7432 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
7434 * c-ppoutput.c, var-tracking.c: Fix comment typos.
7436 2004-02-06 James E Wilson <wilson@specifixinc.com>
7438 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
7439 glibc 2.3 or better.
7441 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
7443 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
7444 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
7446 2004-02-07 Alan Modra <amodra@bigpond.net.au>
7448 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
7449 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
7450 (SHLIB_MKMAP_OPTS): Delete.
7451 (TARGET_LIBGCC2_CFLAGS): Add -specs.
7452 (bispecs): Add rule.
7453 * config/rs6000/libgcc-ppc64.ver: New file.
7454 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
7455 (__floatdidf, __floatdisf): Optimize multiply.
7456 (__fixunstfdi): New function.
7457 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
7458 real and imag parts larger than one register.
7459 (function_arg): Correct type of reg used when fp arg split partially
7461 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
7462 and __MACH__ or __powerpc64__.
7464 2004-02-06 Roger Sayle <roger@eyesopen.com>
7465 Ulrich Weigand <uweigand@de.ibm.com>
7467 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
7468 of gen_highpart or gen_lowpart when the floating point format is
7469 wider than the result mode.
7471 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
7473 * dwarf2out.c (loclabel_num): Move into #ifdef
7474 DWARF2_DEBUGGING_INFO.
7476 2004-02-06 Ziemowit Laski <zlaski@apple.com>
7478 * objc/objc-act.c (build_super_template) the 'class' field of
7479 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
7480 (get_super_receiver): Likewise.
7482 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
7484 * reload1.c (check_eliminable_occurrences): Optimize the reset
7486 (eliminate_regs_in_insn): Likewise.
7488 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
7489 Josef Zlomek <zlomekj@suse.cz>
7491 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
7492 at the beginning of function, call dwarf2out_var_location for
7493 NOTE_INSN_VAR_LOCATION note.
7494 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
7495 decl_loc_table): New.
7496 (lookup_decl_loc): New function.
7497 (add_var_loc_to_decl): New function.
7498 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
7499 only if can_use_fbreg.
7500 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
7502 (loc_descriptor): Likewise. Process VAR_LOCATION.
7503 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
7504 (loc_descriptor_from_tree): Call mem_loc_descriptor with
7505 can_use_fbreg == true.
7506 (add_location_or_const_value_attribute): Added parameter enum
7507 dwarf_attribute attr, generate attribute ATTR. Create the location list.
7508 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
7509 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
7510 with attr == DW_AT_location.
7511 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
7512 if frame_base_decl is defined and has a location list.
7513 (gen_variable_die): Call add_location_or_const_value_attribute with
7514 attr == DW_AT_location.
7515 (dwarf2out_var_location): New function.
7516 (dwarf2out_begin_function): New function.
7517 (dwarf2out_init): Create decl_loc_table.
7519 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7521 * loop.c (force_movables): Transitively increase the priorities of
7522 all insns forces by an insn, not just the first one.
7524 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
7525 Daniel Berlin <dberlin@dberlin.org>
7527 Josef Zlomek <zlomekj@suse.cz>
7528 * Makefile.in (var-tracking.o): New.
7529 * common.opt (fvar-tracking): New.
7530 * flags.h (flag_var_tracking): New.
7531 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
7532 * opts.c (common_handle_option): Add OPT_fvar_tracking.
7533 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
7534 * rtl.c (note_insn_name): Likewise.
7535 * rtl.def (VAR_LOCATION): New.
7536 * rtl.h (NOTE_VAR_LOCATION): New.
7537 (NOTE_VAR_LOCATION_DECL): New.
7538 (NOTE_VAR_LOCATION_LOC): New.
7539 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
7540 (variable_tracking_main): New exported function.
7541 * timevar.def (TV_VAR_TRACKING): New.
7542 * toplev.c (enum dump_file_index): Added DFI_vartrack.
7543 (dump_file): "vartrack" was added (-dV).
7544 (flag_var_tracking): New.
7545 (f_options): "var-tracking" was added.
7546 (rest_of_handle_variable_tracking): New function.
7547 (rest_of_compilation): Run variable tracking.
7548 (process_options): If user has not specified flag_var_tracking set it
7549 according to optimize, debug_info_level and debug_hooks.
7550 * tree.h (frame_base_decl): New.
7551 * var-tracking.c: New file.
7552 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
7553 (ia64_override_options): Set flags to run variable tracking in machine
7554 dependent reorg instead of toplev.c.
7555 (ia64_reorg): Run variable tracking if wanted.
7556 * doc/invoke.texi: Mention variable tracking in -dV,
7557 add and -fvar-tracking.
7558 * doc/passes.texi: Added variable tracking pass.
7560 Daniel Berlin <dberlin@dberlin.org>
7561 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
7562 * dbxout.c (dbx_debug_hooks): Likewise.
7563 (xcoff_debug): Likewise.
7564 * debug.c (do_nothing_debug_hooks): Likewise.
7565 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7566 * dwarfout.c (dwarf_debug_hooks): Likewise.
7567 * sdbout.c (sdb_debug_hooks): Likewise.
7568 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7569 * final.c (final_scan_insn): Call var_location debug hook for each
7570 NOTE_INSN_VAR_LOCATION.
7572 2004-02-06 Jan Hubicka <jh@suse.cz>
7574 * flow.c (update_life_info): Allocate reg_deaths when called from
7576 (attempt_auto_inc): Update life ranges accordingly.
7578 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7581 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
7583 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
7585 * cfganal.c (flow_call_edges_add): Never split a libcall block.
7587 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
7589 * dwarf2out.c (output_loc_list): Don't use deltas if we have
7590 a separate line info table in use.
7591 Use the correct size for terminators.
7592 (output_die): Use offset, not delta.
7594 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
7596 * doc/invoke.texi: Remove the pni option from -mfpmath=.
7598 2004-02-06 Jan Hubicka <jh@suse.cz>
7600 * recog.c (split_all_insns): Do not update reg info.
7601 * regrename.c (regrename_optimize): Likewise.
7602 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
7603 * flow.c (struct propagate_block_info): Add insn_num field.
7604 (reg_deaths): New array.
7605 (life_analysis): Free reg_deaths info.
7606 (allocate_reg_life_data): Allocate reg_deaths array.
7607 (propagate_one_insn): Use new array.
7608 (init_propagate_block): Initialize it.
7609 (free_propagate_block_info): Finish compuation of
7611 (attempt_auto_inc): Sanity check that REG_INFO is not
7612 computed at same time.
7613 (mark_used_regs): Update new array.
7615 * reg-stack.c (subst_stack_regs): Unshare clobbers before
7618 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
7620 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
7621 *extendqisi2_short_displ.
7623 2004-02-06 Alan Modra <amodra@bigpond.net.au>
7625 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
7626 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
7627 (emit_library_call_value_1): Likewise pass nargs.
7628 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
7629 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
7630 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
7631 parameter instead of scanning TYPE_ARGS_TYPES to count args.
7632 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
7634 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
7635 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
7636 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
7637 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
7638 INIT_CUMULATIVE_ARGS.
7639 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
7640 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
7641 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
7642 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
7643 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
7644 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
7645 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
7646 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
7647 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
7648 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
7649 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
7650 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
7652 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
7654 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
7657 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
7659 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
7660 note containing (plus (reg) (const_int)), where reg is an
7661 eliminable reg, then perform the register elimination without
7662 depending on eliminate_regs().
7664 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
7666 * config/arc/arc.c (arc_return_in_memory): Check the return
7667 value of int_size_in_bytes against -1. Don't check
7669 * config/avr/avr.c (avr_return_in_memory): Check the return
7670 value of int_size_in_bytes against -1.
7671 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
7672 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
7674 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
7675 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
7678 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
7680 * config/frv/frv-protos.h: Remove the prototype for
7681 frv_setup_incoming_varargs.
7682 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
7683 (frv_setup_incoming_varargs): Make it static.
7684 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
7686 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
7688 * config/fr30/fr30-protos.h: Remove the prototype for
7689 fr30_setup_incoming_varargs.
7690 Update the prototypes for fr30_num_arg_regs and
7691 fr30_function_arg_partial_nregs.
7692 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
7693 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7694 (fr30_setup_incoming_varargs): Make it static.
7695 Add argument second_time. Don't do anything when second_time
7697 (fr30_num_arg_regs): Change the type of the first argument to
7699 (fr30_function_arg_partial_nregs): Change the type of the
7700 second argument to enum machine_mode.
7701 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
7702 (SETUP_INCOMING_VARARGS): Remove.
7704 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
7706 * config/arc/arc-protos.h: Remove the prototype for
7707 arc_setup_incoming_varargs.
7708 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
7709 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7710 (arc_setup_incoming_varargs): Make it static.
7711 (arc_external_libcall): Likewise.
7712 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
7713 Remove the commented-out definition of
7714 ASM_OUTPUT_EXTERNAL_LIBCALL.
7716 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7718 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
7719 to $$(slibdir) in the installation commands.
7721 2004-02-05 David Edelsohn <edelsohn@gnu.org>
7723 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
7724 with inner_regno, not regno.
7725 * rtlanal.c (refers_to_regno_p): Same.
7727 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7729 * config.gcc: Remove i370 support.
7731 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
7733 * doc/install.texi: Update automake and autoconf version
7734 requirements. Note where to find gcj automake version.
7736 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
7738 * Makefile.in (generate-manpages): Move dependencies to ...
7740 * doc/makefile.texi: Document new targets.
7741 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
7743 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
7746 Makefile.in (srcextra): Add a level of indirection to ...
7747 (gcc.srcextra): ... here.
7748 (po-generated): Delete.
7749 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
7751 (start.encap): Remove superfluous lang.srcextra dependency.
7752 objc/Make-lang.in (po-generated): Delete.
7754 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7756 * config/ia64/ia64.c (REG_GP): Remove.
7758 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7760 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
7762 2004-02-05 Devang Patel <dpatel@apple.com>
7764 * dwarf2out.c (force_type_die): Look up input type itself
7765 instead of root_type() of type.
7767 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
7769 * config/s390/s390.md ("*tmqidi_ext"): New insn.
7770 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
7771 pre-reload splitters are transformed to post-reload
7772 define_insn_and_split patterns.
7773 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
7775 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7777 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
7778 TARGET_PROMOTE_PROTOTYPES.
7780 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7784 2004-01-15 Geoffrey Keating <geoffk@apple.com>
7786 * c-typeck.c (constructor_asmspec): Delete.
7787 (struct initializer_stack): Delete field 'asmspec'.
7788 (start_init): Delete saving of asmspec.
7789 (finish_init): Don't update constructor_asmspec.
7790 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
7791 * stmt.c (expand_asm): Duplicate strings from tree.
7792 (expand_asm_operands): Likewise.
7793 * tree.c (tree_size): Update computation of size of STRING_CST.
7794 (make_node): Don't make STRING_CST nodes.
7795 (build_string): Allocate string with tree node.
7796 * tree.def (STRING_CST): Update comment.
7797 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
7798 (tree_string): Place contents of string in tree node.
7799 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
7802 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
7804 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
7807 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
7809 * config/rs6000/altivec.md (*movv4si_internal): At least one
7810 operand must be altivec_register_operand.
7811 (*movv8hi_internal1): Likewise.
7812 (*movv16qi_internal1): Likewise.
7813 (*movv4sf_internal1): Likewise.
7815 2004-02-05 David Edelsohn <edelsohn@gnu.org>
7817 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
7818 * configure: Regenerate.
7820 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
7822 * doc/install.texi: Update description of --gxx-include-dir to
7823 give correct default value.
7825 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7827 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
7830 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7832 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
7835 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7837 * emit-rtl.c: Update the comment about the file.
7839 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
7841 * sourcebuild.texi (Test Idioms): Update testcase naming
7844 2004-02-04 Per Bothner <per@bothner.com>
7846 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
7847 * c-ppoutput.c (pp_dir_change): New function.
7848 * c-common.h (pp_dir_change): New declaration.
7849 * cpplib.h (struct cpp_options): Remove working_directory field.
7850 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
7851 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
7852 Don't handle -fworking_directory here, but in c_common_post_options.
7853 (read_original_directory): Don't back up when done.
7854 Don't clear no-longer used working_directory flag.
7855 * cpplib.h: Update declarations to match.
7856 * c-lex.c (cb_dir_change): Move to c-opts.c.
7857 (init_c_lex): Don't set dir_change callback here, since we want
7858 to set it even if flag_preprocess_only.
7859 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
7860 (c_common_post_options): Set dir_change callback.
7861 Call pp_dir_change if approporiate.
7862 (finish_options): Don't call cpp_find_main_file here. Hence remove
7863 unneeded parameter and result. Do LC_RENAME for <built-in>.
7864 (c_common_post_options): Call cpp_read_main_file here instead.
7865 (c_common_init): Update accordingly.
7866 (push_command_line_include): Don't cpp_push_main_file.
7867 Do LC_RENAME rather than LC_LEASE to get back to main file.
7868 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
7869 (c_common_parse_file): Call cpp_read_main_file for subsequent main
7870 files, but call finish_options for all files.
7871 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
7872 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
7873 cpp_find_main_file + cpp_push_main_file.
7874 * c-lex.c (fe_file_change): Don't set main_input_filename here.
7875 * opts.c (handle_options): Only set main_input_filename first time.
7877 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
7879 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
7881 2004-02-04 Geoffrey Keating <geoffk@apple.com>
7883 * reload.c (find_equiv_reg): When checking for register overlap,
7884 don't index hard_regno_nregs with a pseudo-reg.
7886 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7888 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
7890 2004-02-04 David Edelsohn <edelsohn@gnu.org>
7892 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
7893 against FIRST_PSEUDO_REGISTER.
7895 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7897 * Makefile.in: Move target, host overrides after per-language
7900 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
7901 (GNATLIBCFLAGS): Remove -g.
7903 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7905 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
7906 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
7907 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
7908 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
7909 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
7910 config/sparc/sparc.c, config/vax/vax.c: Revert the
7911 replacements of "FALLTHRU" with "Fall through" done in the
7914 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7916 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
7917 config/arm/arm.c, config/arm/arm.md,
7918 config/cris/cris-protos.h, config/fr30/fr30.c,
7919 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
7920 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
7921 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
7922 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
7923 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
7924 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
7925 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
7926 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
7927 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
7928 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
7929 config/s390/s390.md, config/sparc/netbsd-elf.h,
7930 config/sparc/openbsd.h, config/sparc/sparc.c,
7931 config/xtensa/lib2funcs.S: Fix comment formatting.
7933 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7935 * config/alpha/alpha.c, config/arc/arc.c,
7936 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
7937 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
7938 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
7939 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
7940 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
7941 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
7942 config/iq2000/iq2000.c, config/m32r/m32r.c,
7943 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
7944 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
7945 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
7946 config/rs6000/rs6000.h, config/sparc/sparc.c,
7947 config/vax/vax.c: Fix comment typos. Follow spelling
7950 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7952 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
7953 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
7954 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
7955 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
7956 config/arm/fpa.md, config/arm/iwmmxt.md,
7957 config/arm/netbsd-elf.h, config/arm/netbsd.h,
7958 config/m68hc11/m68hc11.md, config/mips/iris5.h,
7959 config/mn10300/mn10300.md, config/rs6000/altivec.md,
7960 config/sparc/netbsd-elf.h: Update copyright.
7962 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7964 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
7965 for all modes whose size is greater than 8 bytes if ARCH32.
7966 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
7967 by reference if ARCH32.
7969 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
7971 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
7973 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7975 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
7976 to before adddi3 insn patterns.
7977 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
7978 "reload_insi"): Move to before addsi3 insn patterns.
7980 2004-02-04 Mark Mitchell <mark@codesourcery.com>
7982 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
7983 parameter. Use it instead of current_function_is_thunk.
7984 * function.h (struct function): Update documentation for is_thunk.
7985 * tree.h (CALL_FROM_THUNK_P): New macro.
7986 * config/alpha/alpha.c (alpha_sa_mask): Do not check
7987 no_new_pseudos when testing current_function_is_thunk.
7988 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
7990 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7992 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
7993 TARGET_SETUP_INCOMING_VARARGS.
7995 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7997 * emit-rtl.c (gen_rtx): Remove.
7998 * genattrtab.c: Don't mention gen_rtx in a comment.
7999 * rtl.h: Remove the prototype for gen_rtx.
8000 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
8002 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
8004 * config/arc/arc.h, config/fr30/fr30.h
8005 (SETUP_INCOMING_VARARGS): Remove the target-independent
8007 * doc/tm.texi: Don't mention deprecated target macros.
8009 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
8011 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
8012 target-independent comment.
8014 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
8016 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
8017 mention deprecated target macros.
8019 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
8021 * config.gcc: Remove obsolete ports and configurations.
8022 * config/linux-aout.h, config/netware.h,
8023 config/t-linux-gnulibc1, config/d30v/abi,
8024 config/d30v/d30v-protos.h, config/d30v/d30v.c,
8025 config/d30v/d30v.h, config/d30v/d30v.md,
8026 config/d30v/libgcc1.asm, config/d30v/t-d30v,
8027 config/dsp16xx/dsp16xx-modes.def,
8028 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
8029 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
8030 config/i370/README, config/i370/i370-c.c,
8031 config/i370/i370-protos.h, config/i370/i370.c,
8032 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
8033 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
8034 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
8035 config/i386/moss.h, config/i386/netware.h,
8036 config/i386/svr3.ifile, config/i386/svr3dbx.h,
8037 config/i386/svr3gas.h, config/i386/svr3z.ifile,
8038 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
8039 config/i960/i960-c.c, config/i960/i960-coff.h,
8040 config/i960/i960-modes.def, config/i960/i960-protos.h,
8041 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
8042 config/i960/rtems.h, config/i960/t-960bare,
8043 config/m68k/hp310.h, config/m68k/hp320.h,
8044 config/m68k/hp320base.h, config/m68k/m68kv4.h,
8045 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
8047 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
8048 doc/md.texi: Remove mentions of obsolete ports.
8050 2004-02-04 Jan Hubicka <jh@suse.cz>
8052 * alias.c (find_base_term, get_addr): Do not dereference NULL
8053 pointer when all VALUE's locations has been invalidated.
8054 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
8056 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
8058 * doc/invoke.texi (x86 options): Fix spelling/wording.
8060 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
8062 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
8063 put the original string in a comment.
8064 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
8065 * config/mips/mips.c (mips_output_ascii): Likewise.
8066 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
8068 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
8070 * system.h (GIV_SORT_CRITERION): Poison.
8071 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
8072 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
8074 2004-02-03 Roger Sayle <roger@eyesopen.com>
8077 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
8078 multiplies with a multiplication of the wrong signedness, its the
8079 signedness of the multiplication that we've performed that needs to
8080 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
8081 if expand_mult_highpart_adjust places the result in target.
8083 2004-02-03 Richard Henderson <rth@redhat.com>
8085 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
8087 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
8089 * config.gcc (sh[234]l): Use little endian fragments.
8091 2004-02-03 Paul Koning <pkoning@equallogic.com>
8093 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
8094 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
8095 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
8096 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
8097 floating point format.
8098 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
8099 the above functions.
8100 (output_move_quad): Output float values in correct target format.
8101 (legitimate_const_double_p): New function.
8102 * config/pdp11/pdp11.h: Fix typos.
8103 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
8104 (TARGET_FLOAT_FORMAT): Ditto.
8105 (pdp11_f_format, pdp11_d_format): Add external declarations.
8106 (MAX_REGS_PER_ADDRESS): Corrected.
8107 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
8108 (PRINT_OPERAND): Output float literals in target format.
8110 2004-02-03 Mark Mitchell <mark@codesourcery.com>
8113 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
8115 (access_public_node): Redefine.
8116 (access_protected_node): Likewise.
8117 (access_private_node): Likewise.
8118 * tree.c (build_common_tree_nodes): Create access_public_node,
8119 access_protected_node, and access_private_node.
8121 2004-02-03 Steve Ellcey <sje@cup.hp.com>
8123 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
8124 (MASK_INLINE_INT_DIV_THR): Ditto.
8125 (MASK_INLINE_SQRT_LAT): Ditto.
8126 (MASK_INLINE_SQRT_THR): Ditto.
8127 (MASK_DWARF2_ASM): Ditto.
8128 (MASK_EARLY_STOP_BITS): Ditto.
8130 2004-02-02 Paul Brook <paul@codesourcery.com>
8132 Merge from csl-arm-branch.
8134 2004-01-30 Paul Brook <paul@codesourcery.com>
8136 * aof.h (REGISTER_NAMES): Add vfp reg names
8137 (ADDITIONAL_REGISTER_NAMES): Ditto.
8138 * aout.h (REGISTER_NAMES): Ditto.
8139 (ADDITIONAL_REGISTER_NAMES): Ditto.
8140 * arm-protos.h: Update/Add Prototypes.
8141 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
8142 Only allow 0.0 for VFP.
8143 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
8144 (values_fp): Rename from values_fpa. Update Users.
8145 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
8146 Update users. Only check valid constants for this hardware.
8147 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
8148 Only allow consts for FPA.
8149 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
8150 Only allow consts for FPA.
8151 (use_return_insn): Check for saved VFP regs.
8152 (arm_legitimate_address_p): Handle VFP DFmode addressing.
8153 (arm_legitimize_address): Ditto.
8154 (arm_general_register_operand): New function.
8155 (vfp_mem_operand): New function.
8156 (vfp_compare_operand): New function.
8157 (vfp_secondary_reload_class): New function.
8158 (arm_float_compare_operand): New function.
8159 (vfp_print_multi): New function.
8160 (vfp_output_fstmx): New function.
8161 (vfp_emit_fstm): New function.
8162 (arm_output_epilogue): Output VPF reg restore code.
8163 (arm_expand_prologue): Output VFP reg save code.
8164 (arm_print_operand): Add 'P'.
8165 (arm_hard_regno_mode_ok): Return modes for VFP regs.
8166 (arm_regno_class): Return classes for VFP regs.
8167 (arm_compute_initial_elimination_offset): Include space for VFP regs.
8168 (arm_get_frame_size): Ditto.
8169 * arm.h (FIXED_REGISTERS): Add VFP regs.
8170 (CALL_USED_REGISTERS): Ditto.
8171 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
8172 (FIRST_VFP_REGNUM): Define.
8173 (LAST_VFP_REGNUM): Define.
8174 (IS_VFP_REGNUM): Define.
8175 (FIRST_PSEUDO_REGISTER): Include VFP regs.
8176 (HARD_REGNO_NREGS): Handle VFP regs.
8177 (REG_ALLOC_ORDER): Add VFP regs.
8178 (enum reg_class): Add VFP_REGS.
8179 (REG_CLASS_NAMES): Ditto.
8180 (REG_CLASS_CONTENTS): Ditto.
8181 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
8182 (REG_CLASS_FROM_LETTER): Add 'w'.
8183 (EXTRA_CONSTRAINT_ARM): Add 'U'.
8184 (EXTRA_MEMORY_CONSTRAINT): Define.
8185 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
8186 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
8187 (REGISTER_MOVE_COST): Ditto.
8188 (PREDICATE_CODES): Add arm_general_register_operand,
8189 arm_float_compare_operand and vfp_compare_operand.
8190 * arm.md (various): Rename as above.
8191 (divsf3): Enable when TARGET_VFP.
8196 (arm_movdi): Disable when TARGET_VFP.
8197 (arm_movsi_insn): Ditto.
8198 (movsi): Only split with general regs.
8199 (cmpsf): Use arm_float_compare_operand.
8200 (push_fp_multi): Restrict to TARGET_FPA.
8203 * fpa.md (various): Rename as above.
8204 * doc/md.texi: Document ARM w and U constraints.
8206 2004-01-15 Paul Brook <paul@codesourcery.com>
8208 * config.gcc: Add with_fpu. Allow with-float=softfp.
8209 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
8210 Break out of loop when we find a float-abi. Fix typo.
8211 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
8213 * doc/install.texi: Document --with-fpu.
8215 2003-01-14 Paul Brook <paul@codesourcery.com>
8217 * config.gcc (with_arch): Add armv6.
8218 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
8219 * config/arm/arm.c (arm_overrride_options): Ditto.
8221 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
8223 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
8224 (FL_ARCH6): Renamed from FL_ARCH6J.
8225 (arm_arch3m): Renamed from arm_fast_multiply.
8226 (arm_arch6): Renamed from arm_arch6j.
8227 * arm.h: Update all uses of above.
8228 * arm-cores.def: Likewise.
8231 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
8232 not arm6j. Add entry for arch armv6.
8234 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
8236 * arm.c (arm_emit_extendsi): Delete.
8237 * arm-protos.h (arm_emit_extendsi): Delete.
8238 * arm.md (zero_extendhisi2): Also handle zero-extension of
8240 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
8241 (thumb_zero_extendhisi2): Only match if not v6.
8242 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
8243 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
8244 (thumb_extendqisi2): Likewise.
8245 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
8246 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
8247 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
8248 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
8249 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
8250 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
8251 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
8252 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
8253 (arm_extendqisi2addsi): Likewise.
8255 2003-12-31 Mark Mitchell <mark@codesourcery.com>
8258 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
8259 + REG addressing modes.
8261 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
8262 + REG addressing modes.
8264 2003-12-30 Mark Mitchell <mark@codesourcery.com>
8266 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
8269 2003-30-12 Paul Brook <paul@codesourcery.com>
8271 * longlong.h: protect arm inlines with !defined (__thumb__)
8273 2003-30-12 Paul Brook <paul@codesourcery.com>
8275 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
8277 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
8279 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
8282 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
8284 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
8285 to the virtual incoming args pointer for downward stacks.
8287 2003-12-29 Paul Brook <paul@codesourcery.com>
8289 * config/arm/arm-cores.def: Add cost function.
8290 * config/arm/arm.c (arm_*_rtx_costs): New functions.
8291 (arm_rtx_costs): Remove
8292 (struct processors): Add rtx_costs field.
8293 (all_cores, all_architectures): Ditto.
8294 (arm_override_options): Set targetm.rtx_costs.
8295 (thumb_rtx_costs): New function.
8296 (arm_rtx_costs_1): Remove cases handled elsewhere.
8297 * config/arm/arm.h (processor_type): Add COSTS parameter.
8299 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
8301 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
8302 (arm926ejs.md): Include it.
8303 * config/arm/arm926ejs.md: New pipeline description.
8305 2003-12-24 Paul Brook <paul@codesourcery.com>
8307 * config/arm/arm.c (arm_arch6j): New variable.
8308 (arm_override_options): Set it.
8309 (arm_emit_extendsi): New function.
8310 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
8311 * config/arm/arm.h (arm_arch6j): Declare.
8312 * config/arm/arm.md: Add sign/zero extend insns.
8314 2003-12-23 Paul Brook <paul@codesourcery.com>
8316 * config/arm/arm.c (all_architectures): Add armv6.
8317 * doc/invoke.texi: Document it.
8319 2003-12-19 Paul Brook <paul@codesourcery.com>
8321 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
8322 insn patterns to match.
8323 * config/arm/arm-generic.md: Ditto.
8324 * config/arm/cirrus.md: Ditto.
8325 * config/arm/fpa.md: Ditto.
8326 * config/amm/iwmmxt.md: Ditto.
8327 * config/arm/arm1026ejs.md: Ditto.
8328 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
8331 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
8333 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
8334 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
8335 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
8336 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
8337 arm_no_early_mul_dep): Correctly deal with conditional execution,
8338 parallels and single shift operations.
8339 (arm_no_early_alu_shift_value_dep): Define.
8340 * arm.md (attr type): Replace 'normal' with 'alu',
8341 'alu_shift' and 'alu_shift_reg'.
8342 (attr core_cycles): Adjust.
8343 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
8344 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
8345 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
8346 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
8347 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
8348 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
8349 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
8350 attribute appropriately.
8351 * config/arm/arm1026ejs.md (alu_op): Adjust.
8352 (alu_shift_op, alu_shift_reg_op): New.
8353 * config/arm/arm1136.md: Add better bypasses for early
8354 registers. Remove load[234] and store[234] bypasses.
8355 (11_alu_op): Adjust.
8356 (11_alu_shift_op, 11_alu_shift_reg_op): New.
8358 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
8360 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
8361 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
8362 * config/arm/arm.c (arm_no_early_store_addr_dep,
8363 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
8364 * config/arm/arm1026ejs.md: Add load-store bypass.
8365 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
8366 Add bypasses between instructions.
8368 2003-12-10 Paul Brook <paul@codesourcery.com>
8370 * config/arm/arm.c (arm_fpu_model): New variable.
8371 (arm_fload_abi): New variable.
8372 (target_fpe_name): Rename from target_fp_name.
8373 (target_fpu_name): New variable.
8374 (arm_is_cirrus): Remove.
8375 (fpu_desc): New struct.
8377 (pf_model_for_fpu): Define.
8378 (all_loat_abis): Define.
8379 (arm_override_options): Set fp arch flags based on -mfpu=
8381 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
8382 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
8383 (*): Use new TARGET_* flags.
8384 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
8385 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
8386 (TARGET_SOFT_FLOAT): Ditto.
8387 (TARGET_SOFT_FLOAT_ABI): New.
8388 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
8390 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
8391 (TARGET_OPTIONS): Add -mfpu=.
8392 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
8393 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
8394 (arm_pf_model): Define.
8395 (arm_float_abi_type): Define.
8396 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
8397 * config/arm/arm.md: Use new TARGET_* flags.
8398 * config/arm/cirrus.md: Ditto.
8399 * config/arm/fpa.md: Ditto.
8400 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
8401 * config/arm/semi.h (ASM_SPEC): Ditto.
8402 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
8403 (FPUTYPE_DEFAULT): Set to VFP.
8404 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
8406 2003-11-22 Phil Edwards <phil@codesourcery.com>
8409 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
8410 'bx' instead of 'b' to avoid branch range restrictions. Output
8411 the thunk immediately before the thunked-to function.
8412 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
8413 .thumb_func if a thunk is being generated. Emit .code 16 along
8414 with .thumb_func if a thunk is not being generated.
8416 2003-11-15 Nicolas Pitre <nico@cam.org>
8418 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
8419 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
8420 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
8421 (lshrdi3_iwmmxt): Renamed from lshrdi3.
8422 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
8424 2003-11-12 Steve Woodford <scw@wasabisystems.com>
8425 Ian Lance Taylor <ian@wasabisystems.com>
8427 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
8428 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
8430 2003-11-05 Phil Edwards <phil@codesourcery.com>
8432 * config/arm/arm.md (insn): Add new V6 instruction names.
8433 (generic_sched): New attr.
8434 * config/arm/arm-generic.md: Use generic_sched here.
8435 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
8436 stages of pipeline. Adjust latency counts accordingly.
8437 * config/arm/arm1136jfs.md: New file.
8439 2003-10-28 Mark Mitchell <mark@codesourcery.com>
8441 * config/arm/arm.h (processor_type): New enumeration type.
8442 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
8443 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
8444 (CPP_CPU_ARCH_SPEC): Likewise.
8445 * config/arm/arm.c (arm_tune): New variable.
8446 (all_cores): Use cores.def.
8447 (all_architectures): Add representative processor.
8448 (arm_override_options): Restructure way in which tuning
8449 information is deduced.
8450 * arm.md: Update "insn" and "type" attributes throughout.
8451 (insn): New attribute.
8452 (type): Compute "mult" from "insn" attribute. Add load2,
8453 load3, load4 alternatives.
8454 (arm automaton): Move to arm-generic.md.
8455 * config/arm/arm-cores.def: New file.
8456 * config/arm/arm-generic.md: Likewise.
8457 * config/arm/arm1026ejs.md: Likewise.
8459 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
8461 * doc/invoke.texi (SPARC options): Remove -mflat and
8462 all -mxxx (xxx:chip) options.
8463 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
8464 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
8465 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
8466 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
8467 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
8468 * config/sparc/sparc.c: Likewise.
8469 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
8470 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
8471 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
8472 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
8473 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
8474 (sparc_flat_must_save_register_p): Likewise.
8475 (sparc_flat_compute_frame_size): Likewise.
8476 (sparc_flat_save_restore): Likewise.
8477 (sparc_flat_function_prologue): Likewise.
8478 (sparc_flat_function_epilogue): Likewise.
8479 (sparc_flat_epilogue_delay_slots): Likewise.
8480 (sparc_flat_eligible_for_epilogue_delay): Likewise.
8481 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
8482 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
8483 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
8484 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
8485 (CONDITIONAL_REGISTER_USAGE): Likewise.
8486 (FRAME_POINTER_REQUIRED): Likewise.
8487 (INITIAL_ELIMINATION_OFFSET): Likewise.
8488 (BASE_RETURN_VALUE_REG): Likewise.
8489 (BASE_OUTGOING_VALUE_REG): Likewise.
8490 (BASE_PASSING_ARG_REG): Likewise.
8491 (BASE_INCOMING_ARG_REG): Likewise.
8492 (INCOMING_REGNO): Likewise.
8493 (OUTGOING_REGNO): Likewise.
8494 (LOCAL_REGNO): Likewise.
8495 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
8496 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
8497 (EPILOGUE_USES): Likewise.
8498 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
8499 ("flat" attribute): Delete.
8500 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
8502 (call followed by jump define_peephole's): Delete.
8503 (exception_receiver): Likewise.
8504 (builtin_setjmp_receiver): Likewise.
8505 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
8507 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
8511 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
8513 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
8514 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
8515 Include langhooks.h. Replace c_common_truthvalue_conversion
8516 with the truthvalue_conversion language hook throughout.
8517 (expr_no_commas): Call default_conversion before save_expr
8518 for the first term of the production 'x ? : y'.
8519 * c-common.c (c_common_truthvalue_conversion): Remove
8520 obsolete block. Invoke recursively the hook instead
8522 * c-convert.c (convert): handle ERROR_MARK_NODE.
8523 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
8524 returned by the truthvalue_conversion language hook.
8525 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
8526 c_objc_common_truthvalue_conversion.
8527 * c-objc-common.c (c_objc_common_truthvalue_conversion):
8529 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
8530 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
8531 c_objc_common_truthvalue_conversion.
8533 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
8535 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
8537 (LIBCALL_VALUE): Likewise.
8538 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
8539 gen_rtx_CC0 instead of gen_rtx.
8540 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
8541 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
8542 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
8544 (m68hc11_emit_logical): Likewise.
8546 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
8548 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
8549 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
8550 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
8551 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
8552 config/mips/mips.md, config/mmix/mmix.c,
8553 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
8554 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
8555 config/rs6000/altivec.md, config/s390/s390.c,
8556 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
8557 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
8558 Use const0_rtx instead of GEN_INT (0). Do the same for other
8559 constants that are readily available.
8561 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
8563 * doloop.c, optabs.c, regmove.c, sched-deps.c,
8564 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
8565 instead of GEN_INT (0). Do the same for other constants that
8566 are readily available.
8568 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
8570 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
8572 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
8574 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
8576 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
8577 gen_rtx_ASHIFT instead of gen_rtx.
8578 (udivmodqi4): Likewise.
8580 2004-02-02 Richard Henderson <rth@redhat.com>
8583 * expr.c (store_expr): Use force_operand before emit_move_insn.
8585 2004-02-02 Jeff Law <law@redhat.com>
8586 Roger Sayle <roger@eyesopen.com>
8588 * tree.c (commutative_tree_code, associative_tree_code): New
8590 (iterative_hash_expr): Use commutative_tree_code.
8591 * tree.h (commutative_tree_code, associative_tree_code): Declare.
8592 * fold-const.c (operand_equal_p): Use commutative_tree_code
8593 rather than inlining the commutativity check.
8596 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
8598 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
8599 * config/frv/frv-protos.h: Remove the prototype for
8600 frv_function_arg_keep_as_reference.
8601 * config/frv/frv.c (frv_function_arg_keep_as_reference):
8603 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
8604 * config/stormy16/stormy16.h: Remove the commented-out
8605 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
8607 2004-02-03 Alan Modra <amodra@bigpond.net.au>
8610 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
8613 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
8615 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
8618 2004-02-02 Eric Christopher <echristo@redhat.com>
8619 Zack Weinberg <zack@codesourcery.com>
8621 * c-opts.c (c_common_handle_option): Add -finput-charset.
8623 * cppcharset.c (one_iso88591_to_utf8): Remove.
8624 (convert_iso88591_utf8): Ditto.
8625 (conversion_tab): Remove 8859-1 converter.
8626 (_cpp_input_to_utf8): Remove.
8627 (_cpp_init_iconv_buffer): Ditto.
8628 (_cpp_close_iconv_buffer): Ditto.
8629 (_cpp_convert_input): New function.
8630 (_cpp_default_encoding): Ditto.
8631 * cpphash.h: Add/remove prototypes for above.
8632 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
8633 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
8634 for narrow execution and input character sets.
8635 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
8636 * doc/cppopts.texi: Document -finput-charset.
8638 2004-02-02 David Edelsohn <edelsohn@gnu.org>
8640 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
8641 against FIRST_PSEUDO_REGISTER.
8643 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
8645 * doc/invoke.texi (SPARC options): Further improve.
8647 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
8649 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
8650 config/h8300/h8300.c, config/ip2k/ip2k.md,
8651 config/iq2000/iq2000.c, config/mips/mips.c,
8652 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
8653 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
8654 config/v850/v850.md: Fix indentation.
8656 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
8658 * config/sparc/sparc.c (function_arg_slotno): Align TImode
8659 arguments on a 16-byte boundary in the parameter array if ARCH64.
8660 Split handling of TFmode.
8662 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
8664 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
8665 Don't test CONSTANT_P (x).
8666 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
8667 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
8670 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
8672 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
8674 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
8676 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
8677 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
8678 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
8679 config/iq2000/iq2000.c, config/m32r/m32r.c,
8680 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
8681 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
8682 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
8683 config/stormy16/stormy16.c, config/v850/v850.md,
8684 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
8686 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
8688 * config/mcore/mcore.c (block_move_sequence): Replace
8689 gen_rtx_CONST_INT with GEN_INT.
8691 2004-02-02 Jan Hubicka <jh@suse.cz>
8693 * alias.c (record_set): Use hard_regno_nregs.
8694 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
8695 * builtins.c (apply_args_size): Likewise.
8696 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
8697 mark_set_regs, add_stored_regs, mark_referenced_regs,
8698 insert_restore, insert_save, insert_one_insn): Likewise.
8699 * cfgcleanup.c: Include regs.h
8700 (mark_effect, mentions_nonequal_regs): Likewise.
8701 * cfgrtl.c (mark_killed_regs): Likewise
8702 * combine.c (update_table_tick, record_value_for_reg,
8703 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
8704 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
8705 reg_bitfield_target_p, distribute_notes): Likewise.
8706 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
8707 exp_equiv_p, cse_insn): Likewise.
8708 * cselib.c (cselib_lookup): Likewise.
8709 (cselib_invalidate_regno, cselib_record_set): Likewise.
8710 * df.c (df_ref_record): Likewise.
8711 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
8713 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
8714 count_or_remove_death_notes_bb): Likewise.
8715 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
8716 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
8717 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
8718 * integrate.c (mark_stores): Likewise.
8719 * jump.c (delete_prior_computation): Likewise.
8720 * lcm.c (reg_dies, reg_becomes_live): Likewise.
8721 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
8722 * loop.c (LOOP_REGNO_NREGS): Likewise.
8723 * postreload.c (reload_combine, reload_combine_note_store,
8724 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
8725 * ra-colorize.c (combine, color_usable_p, get_free_reg,
8726 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
8727 try_recolor_web, insert_coalesced_conflicts, check_colors,
8728 break_precolored_alias): Likewise.
8729 * ra-debug.c: Include regs.h
8730 (ra_print_rtx_object): Likewise.
8731 * ra-rewrite (choose_spill_colors): Likewise.
8732 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
8733 * ra.c (init_ra): Likewise.
8734 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
8735 peep2_find_free_register): Likewise.
8736 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
8737 * regclass.c (hard_regno_nregs): New array.
8738 (init_reg_modes_once): Initialize it.
8739 (choose_hard_reg_mode): Use it.
8740 (record_reg_classes): Likewise.
8741 * regmove.c (mark_flags_life_zones): Likewise.
8742 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
8743 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
8744 copy_value, maybe_mode_change, find_oldest_value_reg,
8745 copyprop_hardreg_forward_1):
8746 * regs.h (hard_regno_nregs): Declare.
8747 * realod.c (reload_inner_reg_of_subreg): Use it.
8748 (push_reload, combine_reloads, find_dummy_reload,
8749 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
8750 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
8751 reload_adjust_reg_for_mode): Likewise.
8752 * reload1.c (compute_use_by_pseudos, count_pseudo,
8753 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
8754 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
8755 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
8756 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
8757 delete_output_reload): Likewise.
8758 * resource.c (update_live_status, mark_referenced_resources,
8759 mark_set_resources, mark_target_live_regs): Likewise.
8760 * rtlanal.c: Include regs.h
8761 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
8762 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
8763 subreg_regno_offset, subreg_offset_representable_p,
8764 hoist_test_store): Likewise.
8765 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
8766 * sched-rgn.c (check_live_1, update_live_1): Likewise.
8767 * stmt.c: Include regs.h
8768 (decl_conflicts_with_clobbers_p): Likewise.
8769 * varasm.c (make_decl_rtl): Likewise.
8770 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
8772 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
8774 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
8775 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
8776 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
8777 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
8778 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
8779 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
8780 config/iq2000/iq2000.h, config/m32r/m32r.c,
8781 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
8782 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
8783 config/mcore/mcore.c, config/mcore/mcore.h,
8784 config/mcore/mcore.md, config/mips/mips.c,
8785 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
8786 config/rs6000/rs6000.c, config/s390/s390.c,
8787 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
8788 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
8789 "gen_rtx (FOO, " with "gen_rtx_FOO (".
8791 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
8793 * config/h8300/h8300.md (two peephole2's): New.
8795 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
8797 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
8798 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
8799 (ASM_CPU_SPEC): Likewise
8800 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
8801 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
8803 2004-02-01 Roger Sayle <roger@eyesopen.com>
8805 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
8806 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
8807 (expand_builtin): Always call expand_builtin_pow.
8809 2004-02-01 Roger Sayle <roger@eyesopen.com>
8811 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
8812 BUILT_IN_SIGNBITL): New GCC builtins.
8813 * builtins.c (expand_builtin_signbit): New function to RTL expand
8814 calls to signbit, signbitf and signbitl as inline intrinsics.
8815 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
8816 (fold_builtin_signbit): New function to perform constant folding
8817 of signbit, signbitf and signbitl.
8818 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
8820 * doc/extend.texi: Document new signbit{,f,l} builtins.
8822 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
8824 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
8826 2004-02-01 Chris Demetriou <cgd@broadcom.com>
8828 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
8829 "mips_const_double_ok" and "simple_memory_operand", which were
8830 removed from the MIPS port with the mips-3_4-rewrite branch merge.
8831 * config/mips/mips.c (mips16_lay_out_constants): Update comment
8832 for removal of simple_memory_operand.
8834 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8836 * config/c4x/c4x.md: Use GEN_INT instead of
8837 gen_rtx (CONST_INT, ...).
8839 2004-01-31 Richard Henderson <rth@redhat.com>
8841 * varasm.c (output_constant_pool): Don't zap the pool.
8843 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8845 * genrecog.c (decision_type): Add DT_const_int.
8846 (write_cond) [DT_const_int]: Print a comparison against small
8848 (write_node): Simplify comparisons against small constants
8849 before printing tests.
8851 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8853 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
8854 instead of gen_rtx_CONST_INT.
8856 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8858 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
8859 instead of gen_rtx_CONST_INT.
8861 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8863 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
8864 hook_bool_CUMULATIVE_ARGS_false.
8865 * targhooks.c (default_strict_argument_naming): Rename to
8866 hook_bool_CUMULATIVE_ARGS_false.
8867 * targhooks.h: Update the prototype for
8868 default_strict_argument_naming.
8870 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8872 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
8873 * config/sh/sh.h: Likewise.
8874 * config/sh/sh.md: Likewise.
8876 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
8878 * doc/invoke.texi (SPARC options): Restructure and update.
8880 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8882 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
8883 STRICT_ARGUMENT_NAMING): Poison.
8884 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
8885 hook_bool_tree_false.
8886 * targhooks.c (default_promote_function_args): Remove.
8887 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
8888 Don't check incoming.
8889 (default_strict_argument_naming): Don't use
8890 STRICT_ARGUMENT_NAMING.
8891 * targhooks.h: Remove the prototype for
8892 default_promote_function_args.
8894 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8896 * config/i386/i386-protos.h: Remove the prototype for
8897 ix86_setup_incoming_varargs.
8898 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
8899 (ix86_setup_incoming_varargs): Make it static.
8900 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
8902 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8904 * alloc-pool.c: Fix comment typos.
8905 * builtin-types.def: Likewise.
8906 * builtins.def: Likewise.
8907 * c-pretty-print.c: Likewise.
8909 * reload1.c: Likewise.
8911 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8913 * doc/invoke.texi: Follow spelling conventions.
8914 * doc/tm.texi: Likewise.
8916 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8918 * doc/install.texi: Fix typos.
8919 * doc/invoke.texi: Likewise.
8921 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
8923 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
8924 registers as pointers.
8925 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
8927 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
8929 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
8930 and restore it to gen_lowpart_general on exit.
8931 (gen_lowpart_for_combine): Adjust all callers to go through
8933 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
8934 and restore it to gen_lowpart_general on exit.
8935 (gen_lowpart_if_possible): Adjust all callers to go through
8937 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
8938 (gen_lowpart): Declare as pointer to function, initialized to
8939 gen_lowpart_general.
8940 * rtl.h (gen_lowpart): Declare as pointer to function.
8942 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8944 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
8945 * calls.c: Likewise.
8946 * emit-rtl.c: Likewise.
8947 * function.c: Likewise.
8948 * reload1.c: Likewise.
8949 * config/i386/cygming.h: Likewise.
8950 * config/i386/i386.c: Likewise.
8951 * config/i386/winnt.c: Likewise.
8953 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
8956 * doc/install.texi: document --enable-__cxa_atexit option.
8957 * configure.ac: Disable __cxa_atexit if not supported.
8958 * configure: Regenerate.
8960 2003-01-30 Daniel Berlin <dberlin@dberlin.org>
8962 * ggc-zone.c (ggc_free): New function.
8964 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
8966 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
8967 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
8968 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
8969 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
8970 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
8971 config/alpha/alpha.c, config/alpha/alpha.h,
8972 config/alpha/alpha.md, config/alpha/unicosmk.h,
8973 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
8974 config/c4x/c4x-protos.h, config/c4x/c4x.md,
8975 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
8976 config/frv/frvend.c, config/i386/cygming.h,
8977 config/i386/djgpp.h, config/i386/emmintrin.h,
8978 config/i386/gthr-win32.c, config/i386/i386-interix.h,
8979 config/i386/i386-protos.h, config/i386/openbsd.h,
8980 config/i386/winnt.c, config/i386/xm-mingw32.h,
8981 config/i386/xmmintrin.h, config/ia64/ia64.md,
8982 config/iq2000/iq2000.md, config/m32r/m32r.md,
8983 config/m68k/m68k.md, config/mcore/mcore-elf.h,
8984 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
8985 config/mips/iris5gas.h, config/mips/iris6.h,
8986 config/mips/iris6gas.h, config/mips/linux.h,
8987 config/mips/mips.md, config/mips/netbsd.h,
8988 config/mips/openbsd.h, config/mips/windiss.h,
8989 config/pa/fptr.c, config/rs6000/aix.h,
8990 config/rs6000/altivec.h, config/rs6000/darwin.h,
8991 config/rs6000/xcoff.h, config/s390/s390-protos.h,
8992 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
8993 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
8994 config/sparc/sol2.h: Update copyright.
8996 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
8998 * Makefile.in (abs_docdir, abs_srcdir): Define.
8999 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
9001 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
9003 * genconfig.c (main): Have CC0_P check its operand even on a
9006 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
9008 * config/alpha/alpha.c: Remove mentions of deprecates macros
9009 in comments, remove some target-independent comments about target
9010 macros, and/or add minimal function comments for target hook
9012 * config/avr/avr.c: Likewise.
9013 * config/ia64/ia64.h: Likewise.
9014 * config/ip2k/ip2k.c: Likewise.
9015 * config/iq2000/iq2000.c: Likewise.
9016 * config/m32r/m32r.h: Likewise.
9017 * config/m68hc11/m68hc11.c: Likewise.
9018 * config/mcore/mcore.c: Likewise.
9019 * config/mmix/mmix.c: Likewise.
9020 * config/mn10300/mn10300.c: Likewise.
9021 * config/pa/pa.c: Likewise.
9022 * config/pdp11/pdp11.c: Likewise.
9023 * config/rs6000/rs6000.h: Likewise.
9024 * config/sh/sh.c: Likewise.
9025 * config/sh/sh.h: Likewise.
9026 * config/sparc/sparc.c: Likewise.
9027 * config/sparc/sparc.h: Likewise.
9028 * config/stormy16/stormy16.c: Likewise.
9029 * config/xtensa/xtensa.c: Likewise.
9031 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9033 PR optimization/12147
9034 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
9035 RELOAD_FOR_OPADDR_ADDR.
9036 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
9037 might be reused as RELOAD_FOR_OPADDR_ADDR register.
9039 2004-01-30 Jan Hubicka <jh@suse.cz>
9041 * reload.c (get_secondary_mem): Fix updating of
9042 secondary_memlocs_elim_used.
9044 2004-01-30 Richard Henderson <rth@redhat.com>
9046 * varasm.c (struct rtx_const, struct pool_constant): Remove.
9047 (MAX_RTX_HASH_TABLE): Remove.
9048 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
9049 (first_pool, last_pool, pool_offset): Remove.
9050 (struct rtx_constant_pool): Split out from ...
9051 (struct varasm_status): ... here. Reference one via pointer.
9052 (struct constant_descriptor_rtx): Merge struct pool_constant.
9054 (decode_rtx_const): Remove.
9055 (const_hash_rtx, compare_constant_rtx): Remove.
9056 (record_constant_rtx): Remove.
9057 (const_desc_rtx_hash, const_desc_rtx_eq): New.
9058 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
9059 (const_rtx_hash_1, const_rtx_hash): New.
9060 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
9061 (simplify_subtraction): Use simplify_rtx.
9062 (force_const_mem): Rewrite to use new data structures.
9063 (find_pool_constant): Likewise.
9064 (get_pool_constant, get_pool_constant_mark,
9065 get_pool_constant_for_function, get_pool_mode,
9066 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
9067 (output_constant_pool_2): Split out from output_constant_pool.
9068 (output_constant_pool_1): Likewise. Use new pool datastructures.
9069 (output_constant_pool): Zap entire pool datastructure.
9070 (mark_constant): Use new pool datastructures.
9071 (mark_constants): Use for_each_rtx.
9072 (mark_constant_pool): Use new pool datastructures.
9074 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
9076 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
9077 Copy operands[1] to pseudo for simplify_gen_subreg.
9079 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
9081 * gcse.c (bypass_block): Fix a typo in the previous check-in
9084 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
9086 * toplev.c: Include alloc-pool.h.
9087 * Makefile.in (toplev.c): Update dependencies.
9089 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9091 * combine.c (simplify_shift_const, case XOR): Be careful when
9092 commuting XOR with ASHIFTRT.
9094 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
9095 Eric Botcazou <ebotcazou@libertysurf.fr>
9097 * config/sparc/sparc-protos.h: Remove the prototype for
9098 sparc_builtin_saveregs.
9099 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9100 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9101 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9102 (TARGET_STRUCT_VALUE_RTX): Likewise.
9103 (TARGET_RETURN_IN_MEMORY): Likewise.
9104 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
9105 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
9106 (sparc_builtin_saveregs): Make it static.
9107 (sparc_promote_prototypes): New.
9108 (sparc_struct_value_rtx): Likewise.
9109 (sparc_return_in_memory): Likewise.
9110 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
9111 (PROMOTE_FUNCTION_RETURN): Likewise.
9112 (RETURN_IN_MEMORY): Likewise.
9113 (STRUCT_VALUE): Likewise.
9114 (STRUCT_VALUE_INCOMING): Likewise.
9115 (EXPAND_BUILTIN_SAVEREGS): Likewise.
9116 (STRICT_ARGUMENT_NAMING): Likewise.
9117 (PROMOTE_PROTOTYPES): Likewise.
9119 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
9121 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
9124 * varasm.c (const_hash_1) <STRING_CST>: Use the
9125 address to compute the hash value if flag_writable_strings.
9126 (compare_constant) <STRING_CST>: Compare the addresses
9127 if flag_writable_strings.
9128 (build_constant_desc): Do not copy the expression for a
9129 STRING_CST if flag_writable_strings.
9131 2004-01-30 Jan Hubicka <jh@suse.cz>
9133 * alloc-pool.c: Include hashtab.h
9134 (alloc_pool_descriptor): New structure
9135 (alloc_pool_hash): New global variable.
9136 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
9137 (create_alloc_pool): Update statistics.
9138 (free_alloc_pool): Likewise.
9139 (pool_alloc): Likewise.
9140 (output_info): New structure
9141 (print_statistics, dump_alloc_pool_statistics): New function.
9142 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
9143 (dump_alloc_pool_statistics): Declare.
9144 * toplev.c (finalize): Dump statistics.
9146 * reload.c (secondary_memlocs_elim_used): New static variable.
9147 (get_secondary_mem): Update it.
9148 (find_reloads): Use it.
9150 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
9152 * toplev.c: Fix broken checkin of 2003-12-30, again.
9154 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9156 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
9157 s390*-*-* targets by specifying a 'nop' insn.
9158 * configure: Regenerate.
9160 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
9163 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
9165 2004-01-29 Jakub Jelinek <jakub@redhat.com>
9167 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
9168 of addr when creating MEM copy.
9170 2004-01-29 Devang Patel <dpatel@apple.com>
9172 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
9174 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
9177 * reload.c (find_reloads): Only support one pair of commutative
9180 2004-01-29 Roger Sayle <roger@eyesopen.com>
9183 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
9184 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
9187 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
9189 * config/frv/frv.c: Don't mention deprecated macros in
9190 comments. Remove some target-independent comments about
9192 * config/frv/frv.h: Likewise.
9194 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9196 * cfghooks.c (split_block): Set probability and count of the
9199 2005-01-29 Josef Zlomek <zlomekj@suse.cz>
9201 * dwarf2out.c (struct die_struct): Added field decl_id.
9202 (decl_die_table): Changed to hash table.
9203 (decl_die_table_allocated): Deleted.
9204 (decl_die_table_in_use): Deleted.
9205 (DECL_DIE_TABLE_INCREMENT): Deleted.
9206 (decl_die_table_hash): New function.
9207 (decl_die_table_eq): New function.
9208 (lookup_decl_die): Lookup in a hash table.
9209 (equate_decl_number_to_die): Insert into a hash table.
9210 (dwarf2out_init): Init hash table decl_die_table.
9212 2004-01-29 Jakub Jelinek <jakub@redhat.com>
9214 PR optimization/13424
9215 * expr.c (store_constructor): Revert 2003-12-03 change.
9217 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
9218 expected before returning early. Avoid sharing RTL if they
9221 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
9222 handling so that memory attributes are preserved. Don't call
9223 ix86_set_move_mem_attrs.
9224 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
9225 (ix86_expand_clrstr): Rename src argument to
9226 dst. Rework rep_stos and strset handling so that memory attributes
9228 (ix86_expand_strlen): Pass src argument to
9229 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
9230 memory attributes are preserved.
9231 (ix86_expand_strlensi_unroll_1): Add src argument. Use
9232 change_address instead of gen_rtx_MEM.
9233 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
9235 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
9236 strmovqi, strmovqi_rex64): Remove.
9237 (rep_mov*, strmov*): Prefix insn names with *.
9238 (strset, strset_singleop, rep_stos): New expanders.
9239 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
9240 strsetqi, strsetqi_rex64): Remove.
9241 (rep_stos*, strset*): Prefix insn names with *.
9242 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
9244 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
9246 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
9247 Prefix insn names with *.
9248 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
9249 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
9250 (strlenqi_1): New expander.
9251 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
9253 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9255 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
9256 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
9257 verify_flow_info): Declaration removed.
9258 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
9259 (debug_bb, debug_bb_n): Add argument to dump_bb call.
9260 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
9261 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
9262 instead of delete_block.
9263 * cfghooks.c: Include timevar.h and toplev.h.
9264 (cfg_hooks): Define here.
9265 (verify_flow_info, dump_bb): Moved from cfg.c.
9266 (redirect_edge_and_branch, redirect_edge_and_branch_force,
9267 split_block, split_block_after_labels, move_block_after,
9268 delete_basic_block, split_edge, create_basic_block,
9269 create_empty_bb, can_merge_blocks_p, merge_blocks,
9270 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
9272 * cfghooks.h (struct cfg_hooks): Added fields name,
9273 make_forwarder_block, tidy_fallthru_edge and
9274 move_block_after. Changed type of verify_flow_info, dump_bb,
9275 split_block fields. Renamed cfgh_split_edge and delete_block
9277 (redirect_edge_and_branch, redirect_edge_and_branch_force,
9278 split_block, delete_block, split_edge, create_basic_block,
9279 can_merge_blocks_p, merge_blocks): Macros removed.
9280 (cfg_hooks): Do not export.
9281 (verify_flow_info, dump_bb, redirect_edge_and_branch,
9282 redirect_edge_and_branch_force, split_block, split_block_after_labels,
9283 move_block_after, delete_basic_block, split_edge, create_basic_block,
9284 create_empty_bb, can_merge_blocks_p, merge_blocks,
9285 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
9287 (cfg_layout_rtl_cfg_hooks): Declare.
9288 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
9290 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
9291 (redirect_edge_with_latch_update): Removed.
9292 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
9293 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
9294 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
9295 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
9296 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
9297 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
9299 (rtl_create_basic_block): Coding style fix.
9300 (rtl_tidy_fallthru_edge, rtl_move_block_after,
9301 rtl_make_forwarder_block): New functions.
9302 (update_cfg_after_block_merging): Removed.
9303 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
9304 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
9306 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
9307 find_if_case_2): Don't update dominators.
9308 * timevar.def (TV_CFG_VERIFY): New.
9309 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
9310 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
9311 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
9312 (remove_bbs): Don't call remove_bbs.
9313 (create_preheader): Use make_forwarder_block.
9314 (mfb_keep_just, mfb_update_loops): New static functions.
9316 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
9318 * config/avr/avr.h: Remove target-independent comments about
9321 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
9323 * timevar.c (timevar_print): Mention when checking is enabled.
9325 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
9327 * c-lex.c (c_lex): Rename to...
9328 (c_lex_with_flags): Add new parameter to get CPP flags.
9329 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
9330 * c-pragma.h (c_lex_with_flags): Declare.
9332 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9334 * config/mcore/mcore.c (mcore_external_libcall): Add a
9336 (mcore_return_in_memory): Likewise.
9338 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9340 * config/mcore/mcore-protos.h: Remove the prototype for
9341 mcore_setup_incoming_varargs.
9342 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
9343 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
9344 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9345 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9346 (TARGET_STRUCT_VALUE_RTX): Likewise.
9347 (TARGET_RETURN_IN_MEMORY): Likewise.
9348 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
9349 (mcore_setup_incoming_varargs): Make it static. Receive the
9350 first argument by reference. Add argument second_time.
9351 (mcore_external_libcall): New.
9352 (mcore_return_in_memory): Likewise.
9353 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
9354 (PROMOTE_FUNCTION_RETURN): Likewise.
9355 (STRUCT_VALUE): Likewise.
9356 (RETURN_IN_MEMORY): Likewise.
9357 (SETUP_INCOMING_VARARGS): Likewise.
9358 (PROMOTE_PROTOTYPES): Likewise.
9359 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
9361 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9363 * config/m32r/m32r-protos.h: Remove the prototype for
9364 m32r_setup_incoming_varargs.
9365 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
9366 (TARGET_STRUCT_VALUE_RTX): Likewise.
9367 (TARGET_RETURN_IN_MEMORY): Likewise.
9368 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
9369 (m32r_return_in_memory): New.
9370 (m32r_setup_incoming_varargs): Make it static.
9371 * config/m32r/m32r.h: Remove #undef of
9372 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
9373 definitions of PROMOTE_FUNCTION_ARGS and
9374 PROMOTE_FUNCTION_RETURN.
9375 (PROMOTE_PROTOTYPES): Remove.
9376 (RETURN_IN_MEMORY): Likewise.
9377 (STRUCT_VALUE): Likewise.
9379 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9381 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
9382 (TARGET_STRUCT_VALUE_RTX): Likewise.
9383 (m68k_struct_value_rtx): Likewise.
9384 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
9385 STRUCT_VALUE_REGNUM.
9386 (PROMOTE_PROTOTYPES): Remove.
9387 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
9388 STRUCT_VALUE_REGNUM.
9389 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
9390 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
9392 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9394 * config/stormy16/stormy16.c
9395 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
9396 TARGET_BUILD_BUILTIN_VA_LIST.
9398 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9400 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
9401 (TARGET_STRUCT_VALUE_RTX): Likewise.
9402 (TARGET_RETURN_IN_MEMORY): Likewise.
9403 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
9404 (v850_return_in_memory): Likewise.
9405 (v850_setup_incoming_varargs): Likewise.
9406 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
9407 (SETUP_INCOMING_VARARGS): Likewise.
9408 (RETURN_IN_MEMORY): Likewise.
9409 (STRUCT_VALUE): Likewise.
9411 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9413 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
9414 (fr30_setup_incoming_varargs): Don't use
9415 STRICT_ARGUMENT_NAMING.
9416 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
9417 (STRICT_ARGUMENT_NAMING): Likewise.
9419 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9421 * config/frv/frv-protos.h: Remove the prototype for
9422 frv_expand_builtin_saveregs.
9423 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
9424 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
9425 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
9426 STRUCT_VALUE_REGNUM.
9427 (frv_expand_builtin_saveregs): Make it static.
9428 (frv_struct_value_rtx): New.
9429 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
9431 2004-01-29 Jan Hubicka <jh@suse.cz>
9434 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
9436 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
9437 for functions that will be only inlined.
9438 (cgraph_mark_function_to_output): Likewise.
9439 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
9440 do not clear function body.
9441 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
9442 (tree_rest_of_compilation): Reorganize the logic releasing function
9443 body to use callgraph datastructure.
9445 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9447 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
9448 to register_operand.
9450 2004-01-28 Zack Weinberg <zack@codesourcery.com>
9452 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
9453 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
9454 match_operand expressions so that all match_dups appear
9455 lexically after their corresponding match_operands.
9457 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9459 * config/h8300/h8300.c (WORD_REG_USED): Use
9460 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
9461 (compute_saved_regs): Likewise.
9462 (h8300_expand_prologue): Likewise. Allocate locals after
9464 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
9465 of FRAME_POINTER_REGNUM. Deallocate locals before saving
9467 (h8300_initial_elimination_offset): Adjust for the new frame
9468 layout, which swaps flips the order of locals and saved
9470 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
9471 (HARD_FRAME_POINTER_REGNUM): New.
9472 (ELIMINABLE_REGS): Add an elimination rule from
9473 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
9474 (REGISTER_NAMES): Add fp.
9475 * config/h8300/h8300.md (FP_REG): Change to 11.
9478 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9480 * genrecog.c (write_node): Remove a useless local variable.
9482 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
9484 * Makefile.in (options.c options.h): Use stamp file s-options to
9485 avoid unnecessary rebuilds.
9486 (options.o): New target listing dependencies.
9487 (gtyp-gen.h): Use stamp file s-gtyp-gen.
9488 (STAGESTUFF): Add s-gtyp-gen.
9490 2004-01-28 Richard Henderson <rth@redhat.com>
9492 * ggc.h (ggc_free): Declare.
9493 * ggc-common.c (ggc_realloc): Use it.
9494 * ggc-page.c: Remove lots of inline markers.
9495 (globals): Add free_object_list.
9497 (ggc_free, validate_free_objects): New.
9498 (poison_pages): Provide default.
9499 (ggc_collect): Call validate_free_objects; emit markers to
9502 2004-01-28 Zack Weinberg <zack@codesourcery.com>
9503 Jim Wilson <wilson@specifixinc.com>
9505 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
9506 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
9508 (ia64_secondary_reload_class): Delete case GR_REGS.
9509 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
9510 Do not allocate a scratch register.
9511 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
9513 2004-01-28 Jan Hubicka <jh@suse.cz>
9515 * gcse.c (bypass_block): Prevent edges to be unified when we are
9516 about to emit compenstation code.
9518 2004-01-28 Nick Clifton <nickc@redhat.com>
9520 * config/arm/arm.c (arm_expand_builtin): Force second argument of
9521 the setcwx insn into a register.
9523 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
9525 * config/fp-bit.c (pack_d): When using paired doubles to implement
9526 a long double, round the high part separately.
9527 (unpack_d): Fix the case in which the high part is a power of two
9528 and the low part is a nonzero value of the opposite sign.
9530 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9532 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
9533 (TARGET_STRUCT_VALUE_RTX): Likewise.
9534 (c4x_external_libcall): Likewise.
9535 (c4x_struct_value_rtx): Likewise.
9536 * config/c4x/c4x.h: Remove.
9537 (STRUCT_VALUE_REGNUM): Likewise.
9538 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
9540 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
9542 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
9543 (TARGET_STRUCT_VALUE_RTX): Likewise.
9544 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
9545 (STRUCT_VALUE): Likewise.
9546 (PROMOTE_PROTOTYPES): Likewise.
9548 2004-01-27 Roger Sayle <roger@eyesopen.com>
9550 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
9551 CONST_INT before using INTVAL.
9553 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
9555 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
9556 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
9557 frame if !TARGET_BACKCHAIN.
9558 * config/s390/s390.md ("allocate_stack"): Use pattern only if
9560 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
9562 2004-01-27 Zack Weinberg <zack@codesourcery.com>
9564 * ia64.c (ia64_function_arg): When placing HFAs in integer
9565 registers, do not special case the mode used for complex
9566 types. Do not advance int_regs until the current register
9569 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
9572 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
9574 2004-01-27 David Edelsohn <edelsohn@gnu.org>
9576 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
9577 slow, unaligned loads and stores while debugging. Fix formatting.
9579 2004-01-27 David Edelsohn <edelsohn@gnu.org>
9581 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
9583 (restore_stack_nonlocal): Same.
9585 2004-01-27 Devang Patel <dpatel@apple.com>
9587 * Makefile.in (dwarf2out.o): Depend on input.h
9588 * dbxout.c (dbx_debug_hooks): Add new empty hook for
9589 imported_module_or_decl.
9590 (xcoff_debug_hooks): Same.
9591 * sdbout.c (sdb_debug_hooks): Same.
9592 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
9593 * debug.c (do_nothing_debug_hooks): Same.
9594 (debug_nothing_tree_tree): New function.
9595 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
9596 * dwarf2out.c: Include input.h.
9597 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
9598 (remove_child_TAG): New function.
9599 (dwarf_tag_name): Handle DW_TAG_imported_module.
9600 (gen_subprogram_die): Equate decl number to declaration die. Do not
9601 remove all children dies while reusing declaration die for definition.
9602 Instead, selectively remove only formal parameters.
9603 (gen_variable_die): Equate variable decl to declaration die.
9604 (gen_field_die): Equate field decl to line number.
9605 (force_namespace_die): Replace it with ...
9606 (force_decl_die): ... this.
9607 (force_type_die): New function.
9608 (setup_namespace_context): Replace use of force_namespace_die() with
9610 (gen_namespace_die): Same.
9611 (dwarf2out_imported_module_or_decl): New function.
9613 2004-01-27 Bob Wilson <bob.wilson@acm.org>
9615 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
9616 on CQImode and CHImode incoming arguments in register a7.
9617 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
9618 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
9619 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
9620 xtensa_copy_incoming_a7 before reload.
9622 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
9624 * coverage.c (get_coverage_counts): Give a different message
9625 if flag_guess_branch_prob is set.
9626 * predict.c (counts_to_freqs): Return an int.
9627 (estimate_bb_frequencies): If counts_to_freqs returns zero,
9628 calculate estimates.
9630 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
9632 * config/iq2000/iq2000-protos.h: Remove the prototype for
9633 iq2000_setup_incoming_varargs.
9634 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9635 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9636 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9637 (TARGET_STRUCT_VALUE_RTX): Likewise.
9638 (TARGET_RETURN_IN_MEMORY): Likewise.
9639 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
9640 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
9641 (iq2000_return_in_memory): Likewise.
9642 (iq2000_setup_incoming_varargs): Make it static. Receive the
9643 first argument by reference.
9644 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
9645 (PROMOTE_FUNCTION_RETURN): Likewise.
9646 (PROMOTE_PROTOTYPES): Likewise.
9647 (RETURN_IN_MEMORY): Likewise.
9648 (STRUCT_VALUE): Likewise.
9649 (SETUP_INCOMING_VARARGS): Likewise.
9650 (STRICT_ARGUMENT_NAMING): Likewise.
9652 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
9654 * fixinc/fixinc.c (test_test): Initialize res.
9655 (start_flexer): Initialize pz_cmd_save.
9657 2004-01-27 Zack Weinberg <zack@codesourcery.com>
9659 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
9660 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
9662 2004-01-27 Zack Weinberg <zack@codesourcery.com>
9665 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
9666 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
9667 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
9668 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
9669 Possibly rename pattern for consistency.
9670 Remove ??? comments suggesting that this be done.
9671 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
9673 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
9674 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
9675 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
9676 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
9679 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
9681 * config/arm/arm.c (output_return_instruction): Only restore IP
9682 into SP if frame_pointer_needed.
9684 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
9686 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
9687 for SCmode and DCmode if ARCH32.
9688 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
9689 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
9691 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
9693 (BASE_OUTGOING_VALUE_REG): Likewise.
9695 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
9699 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
9700 Forbid mode changes from SImode for lower FP regs if ARCH64.
9702 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
9704 * Makefile.in (bt-load.o): Depend on except.h.
9705 * bt-load.c (except.h): #include.
9706 (compute_defs_uses_and_gen): If insn at end of BB can throw
9707 within this function, consider registers used by it unavailable for
9709 (move_btr_def): If insn at end of BB can throw, insert before rather
9712 * flags.h (flag_btr_bb_exclusive): Declare.
9713 * toplev.c (flag_btr_bb_exclusive): New variable.
9714 (f_options): Add btr-bb-exclusive.
9715 * bt-load.c (augment_live_range): Restore old behaviour if
9716 flag_btr_bb_exclusive is set.
9717 * common.opt: Add entry for -fbtr-bb-exclusive.
9718 * opts.c (common_handle_options): Same.
9719 * doc/invoke.texi: Document -fbtr-bb-exclusive.
9721 * bt-load.c (btrs_live_at_end): New variable.
9722 (compute_defs_uses_and_gen): Compute its pointed-to array.
9723 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
9724 (augment_live_range): When augmenting with a new dominator,
9725 use only its btrs_live_at_end set, but also add in the full set
9726 of the old dominator.
9727 (btr_def_live_range): Use btrs_live_at_end.
9728 (move_btr_def): Set other_btr_uses_before_def, and move new set
9729 to the end of the basic block, if appropriate.
9730 (migrate_btr_defs): Allocate and free btrs_live_at_end.
9732 * bt-load.c (basic_block_freq): Remove outdated comment.
9734 2004-01-27 Alan Modra <amodra@bigpond.net.au>
9736 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
9737 (PREDICATE_CODES): Remove duplicate.
9738 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
9739 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
9740 (MASK_PROFILE_KERNEL): Adjust define.
9742 2004-01-27 Jakub Jelinek <jakub@redhat.com>
9744 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
9745 of long string literals from 32 bytes to sizeof (void *) when !-Os
9748 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9750 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
9751 constant addresses in the normal mode.
9753 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9755 * system.h (CHAR_BITFIELD): Delete.
9756 (BOOL_BITFIELD): New.
9757 * c-decl.c (c_scope): Use BOOL_BITFIELD.
9758 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
9760 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9762 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9763 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9764 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9765 (TARGET_STRUCT_VALUE_RTX): Likewise.
9766 (TARGET_RETURN_IN_MEMORY): Likewise.
9767 (arc_return_in_memory): Likewise.
9768 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
9769 (PROMOTE_FUNCTION_RETURN): Likewise.
9770 (RETURN_IN_MEMORY): Likewise.
9771 (STRUCT_VALUE): Likewise.
9773 2004-01-26 Richard Henderson <rth@redhat.com>
9775 * c-parse.in (extension): Use itype.
9776 (SAVE_EXT_FLAGS): Don't allocate a tree.
9777 (RESTORE_EXT_FLAGS): Don't read a tree.
9779 2004-01-26 Jan Hubicka <jh@suse.cz>
9781 * cselib.c (discard_useless_values): Clear out value pointer pointing
9782 to datastructure to be recycled.
9784 2004-01-25 Jan Hubicka <jh@suse.cz>
9786 * genextract.c (main): Do not output the memset when not checking.
9788 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9790 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
9791 switch statement instead of a chain of if statements.
9793 2004-01-26 Jeff Law <law@redhat.com>
9795 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
9796 acute accents for Petur Runolfsson's entry.
9798 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9800 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
9801 (TARGET_RETURN_IN_MEMORY): Likewise.
9802 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
9803 (RETURN_IN_MEMORY): Likewise.
9805 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
9807 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
9808 unaligned load/store into smaller loads and stores.
9810 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
9812 * function.c (assign_parms): Do not assign
9813 long long argument to memory in prologue if
9814 is it loaded into register.
9816 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
9819 * expr.c (emit_group_load): split constant
9820 correctly into register components of PARALLEL insn.
9822 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
9824 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
9825 Use adjust_address_nv directly with appropriate mode.
9826 (restore_stack_nonlocal): Ditto.
9828 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9830 * config/xtensa/xtensa-protos.h: Remove the prototype for
9831 xtensa_builtin_saveregs.
9832 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9833 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9834 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9835 (TARGET_STRUCT_VALUE_RTX): Likewise.
9836 (TARGET_RETURN_IN_MEMORY): Likewise.
9837 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
9838 (xtensa_builtin_saveregs): Make it static.
9839 (xtensa_return_in_memory): New.
9840 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
9841 (PROMOTE_FUNCTION_RETURN): Likewise.
9842 (PROMOTE_PROTOTYPES): Likewise.
9843 (STRUCT_VALUE): Likewise.
9844 (RETURN_IN_MEMORY): Likewise.
9845 (EXPAND_BUILTIN_SAVEREGS): Likewise.
9847 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9849 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
9850 (arm_setup_incoming_varargs): Likewise.
9851 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
9853 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9855 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
9856 (cris_setup_incoming_varargs): Likewise.
9857 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
9859 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9861 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
9862 (ns32k_struct_value_rtx): Likewise.
9863 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
9864 NS32K_STRUCT_VALUE_REGNUM.
9866 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9868 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9869 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9870 (TARGET_STRUCT_VALUE_RTX): Likewise.
9871 (arm_struct_value_rtx): Likewise.
9872 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
9873 (STRUCT_VALUE): Likewise.
9874 (STRUCT_VALUE_REGNUM): Likewise.
9875 (PROMOTE_PROTOTYPES): Likewise.
9877 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9879 * config/ia64/ia64-protos.h: Remove the prototype for
9880 ia64_setup_incoming_varargs and ia64_return_in_memory.
9881 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
9882 (TARGET_RETURN_IN_MEMORY): Likewise.
9883 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
9884 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
9885 (ia64_setup_incoming_varargs): Adjust the arguments to meet
9886 the requirement of TARGET_SETUP_INCOMING_VARARGS.
9887 (ia64_return_in_memory): Make it static. Change the return
9888 type to bool from int. Add an argument.
9889 (ia64_struct_value_rtx): New.
9890 * config/ia64/ia64.h: Remove commented-out definitions of
9891 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
9893 (RETURN_IN_MEMORY): Remove.
9894 (STRUCT_VALUE_REGNUM): Likewise.
9895 (STRICT_ARGUMENT_NAMING): Likewise.
9897 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
9900 * config/sparc/sparc.c (function_arg_union_value): New function.
9901 (function_arg): Use it to deal with unions.
9902 (function_value): Likewise. Define 'regbase' only for ARCH64.
9903 Replace a conditional statement by a simpler one.
9905 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
9907 * config/mips/mips.c (mips16_optimize_gp): Delete.
9908 (mips_reorg): Don't call it.
9910 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9912 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
9913 (floatunsqihf2): Remove operand 6.
9914 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
9916 (ldi_conditional, ldf_conditional): Validate operands.
9918 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9920 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
9921 (HAVE_GAS_HIDDEN): Undefine as interim measure.
9923 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9925 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
9926 memory references if TARGET_EXPOSE_LDP nonzero.
9928 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9930 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
9932 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9934 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
9935 invalid operand combinations.
9937 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9939 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
9940 c4x_legitimate_address_p. Fix post_modify check.
9942 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
9943 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
9945 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9947 * config/pa/pa-protos.h: Remove the prototype for
9948 hppa_builtin_saveregs. Add a prototype for
9949 pa_return_in_memory.
9950 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
9951 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9952 (TARGET_STRUCT_VALUE_RTX): Likewise.
9953 (TARGET_RETURN_IN_MEMORY): Likewise.
9954 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
9955 (pa_struct_value_rtx): Likewise.
9956 (pa_return_in_memory): Likewise.
9957 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
9958 PA_STRUCT_VALUE_REGNUM.
9959 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
9960 (EXPAND_BUILTIN_SAVEREGS): Remove.
9961 (PROMOTE_PROTOTYPES): Likewise.
9962 (PROMOTE_FUNCTION_RETURN): Likewise.
9964 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9966 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
9967 (TARGET_STRUCT_VALUE_RTX): Likewise.
9968 (vax_struct_value_rtx): Likewise.
9969 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
9970 VAX_STRUCT_VALUE_REGNUM.
9971 (PROMOTE_PROTOTYPES): Remove.
9973 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9975 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
9977 2003-04-25 Chris Demetriou <cgd@broadcom.com>
9979 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
9980 and MIPS64 have HI/LO interlocks. Update comment.
9982 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9984 * config/stormy16/stormy16-protos.h: Remove the prototype for
9985 xstormy16_setup_incoming_varargs.
9986 * config/stormy16/stormy16.c
9987 (xstormy16_setup_incoming_varargs): Remove.
9988 (xstormy16_return_in_memory): New.
9989 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
9990 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9991 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9992 (TARGET_STRUCT_VALUE_RTX): Likewise.
9993 (TARGET_RETURN_IN_MEMORY): Likewise.
9994 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
9995 (PROMOTE_FUNCTION_RETURN): Likewise
9996 (PROMOTE_PROTOTYPES): Likewise
9997 (RETURN_IN_MEMORY): Likewise
9998 (STRUCT_VALUE): Likewise
9999 (SETUP_INCOMING_VARARGS): Likewise
10001 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
10003 * config/mips/mips.c (mips_offset_within_object_p): New function.
10004 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
10005 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
10006 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
10008 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
10010 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
10011 (PROMOTE_FUNCTION_RETURN): Likewise.
10013 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
10015 * config/mn10300/mn10300-protos.h: Remove the prototype for
10016 mn10300_builtin_saveregs.
10017 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
10018 (TARGET_STRUCT_VALUE_RTX): Likewise.
10019 (TARGET_RETURN_IN_MEMORY): Likewise.
10020 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
10021 (mn10300_return_in_memory): Likewise.
10022 (mn10300_builtin_saveregs): Make it static.
10023 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
10024 (RETURN_IN_MEMORY): Likewise.
10025 (STRUCT_VALUE): Likewise.
10026 (EXPAND_BUILTIN_SAVEREGS): Likewise.
10028 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
10031 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
10033 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
10035 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
10038 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
10040 * config/i860/i860-protos.h: Remove the prototype for
10042 * config/i860/i860.c (i860_saveregs): Make it static.
10043 (i860_struct_value_rtx): New.
10044 (TARGET_STRUCT_VALUE_RTX): Likewise.
10045 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
10046 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
10047 I860_STRUCT_VALUE_REGNUM.
10048 (EXPAND_BUILTIN_SAVEREGS): Remove.
10050 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
10052 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
10053 (TARGET_RETURN_IN_MEMORY): Likewise.
10054 (m68hc11_struct_value_rtx): Likewise.
10055 (m68hc11_return_in_memory): Likewise.
10056 * config/m68hc11/m68hc11.h: Remove a commented-out definition
10057 of PROMOTE_PROTOTYPES.
10058 (RETURN_IN_MEMORY): Remove.
10059 (STRUCT_VALUE_REGNUM): Likewise.
10061 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
10063 * config/mmix/mmix-protos.h: Remove the prototype for
10064 mmix_setup_incoming_varargs.
10065 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
10066 (TARGET_STRUCT_VALUE_RTX): Likewise.
10067 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
10068 (mmix_setup_incoming_varargs): Make it static.
10069 (mmix_struct_value_rtx): New.
10070 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
10071 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
10072 (STRUCT_VALUE_REGNUM): Remove.
10073 (SETUP_INCOMING_VARARGS): Likewise.
10075 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
10077 * config/mips/mips-protos.h: Remove the prototypes for
10078 mips_setup_incoming_varargs and mips_return_in_memory.
10079 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
10080 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
10081 (TARGET_PROMOTE_PROTOTYPES): Likewise.
10082 (TARGET_STRUCT_VALUE_RTX): Likewise.
10083 (TARGET_RETURN_IN_MEMORY): Likewise.
10084 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
10085 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
10086 (mips_setup_incoming_varargs): Match the prototype for
10087 TARGET_SETUP_INCOMING_VARARGS.
10088 (mips_return_in_memory): Make it static. Add argument fntype.
10089 (mips_strict_argument_naming): New.
10090 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
10091 (PROMOTE_FUNCTION_ARGS): Likewise.
10092 (PROMOTE_FUNCTION_RETURN): Likewise.
10093 (STRUCT_VALUE): Likewise.
10094 (RETURN_IN_MEMORY): Likewise.
10095 (SETUP_INCOMING_VARARGS): Likewise.
10096 (STRICT_ARGUMENT_NAMING): Likewise.
10098 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
10100 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
10101 (TARGET_RETURN_IN_MEMORY): Likewise.
10102 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
10103 (ip2k_return_in_memory): Likewise.
10104 (ip2k_setup_incoming_varargs): Likewise.
10105 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
10106 (STRUCT_VALUE): Likewise.
10107 (STRUCT_VALUE_INCOMING): Likewise.
10108 (SETUP_INCOMING_VARARGS): Likewise.
10110 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
10112 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
10113 (TARGET_RETURN_IN_MEMORY): Likewise.
10114 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
10115 (avr_return_in_memory): Remove.
10116 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
10117 (STRUCT_VALUE): Likewise.
10118 (STRUCT_VALUE_INCOMING): Likewise.
10119 (STRICT_ARGUMENT_NAMING): Likewise.
10121 2004-01-25 Jan Hubicka <jh@suse.cz>
10123 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
10125 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
10127 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
10128 (mips_regno_mode_ok_for_base_p): Declare.
10129 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
10130 (FRAME_POINTER_REGNUM): Renumber to 78.
10131 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
10132 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
10133 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
10134 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
10135 (REG_MODE_OK_FOR_BASE_P): Likewise.
10136 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
10137 entry for 77 to "$arg" and entry for 78 to "$frame".
10138 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
10139 (mips_reg_mode_ok_for_base_p): Remove.
10140 (mips_regno_mode_ok_for_base_p): New function, derived from old
10141 BASE_REG_P macro. Don't enforce the mips16 stack pointer
10142 restrictions unless we're being strict.
10143 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
10145 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
10147 * c-common.h: Fix comment typos.
10148 * c-decl.c: Likewise.
10149 * cgraphunit.c: Likewise.
10150 * combine.c: Likewise.
10151 * et-forest.c: Likewise.
10152 * flow.c: Likewise.
10153 * function.c: Likewise.
10154 * ifcvt.c: Likewise.
10155 * integrate.c: Likewise.
10156 * jump.c: Likewise.
10157 * postreload.c: Likewise.
10158 * varray.c: Likewise.
10160 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
10162 * doc/frontends.texi: Update copyright.
10163 * doc/gcov.texi: Likewise.
10164 * doc/gty.texi: Likewise.
10165 * doc/sourcebuild.texi: Likewise.
10166 * doc/standards.texi: Likewise.
10168 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
10171 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
10172 Remove movstrqi_small because it conflicts with movstrqi_large.
10174 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
10176 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
10177 (TARGET_STRUCT_VALUE_RTX): Likewise.
10178 (cris_struct_value_rtx): Likewise.
10179 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
10180 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
10181 STRUCT_VALUE_REGNUM.
10182 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
10184 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
10187 * cse.c (cse_cc_succs): Change the mode of the source expression
10188 as soon as decide we need a new mode. Don't permit changing modes
10189 if we found a match in a successor block.
10190 (cse_condition_code_reg): Save original mode of source expression
10191 so that we know whether we have to change the mode in other
10194 2004-01-24 Jan Hubicka <jh@suse.cz>
10196 * emit-rtl.c (change_address, adjust_address_1, offset_address,
10197 widen_memory_access): Return early when there is nothing to change.
10199 2004-01-24 Jakub Jelinek <jakub@redhat.com>
10201 * simplify-rtx.c (simplify_relational_operation): Don't
10202 simplify address == constant into address + -constant == 0.
10204 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
10206 * gcc.c (process_command): Don't internationalize the
10208 * mips-tfile.c (main): Likewise.
10210 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
10212 * cse.c: (cse_cc_succs) Fix comparison warning.
10214 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
10216 * config/h8300/h8300.md: Remove extraneous USE in expanders.
10218 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
10220 * config/h8300/h8300-protos.h: Provide prototypes for
10221 h8300_legitimate_constant_p and h8300_legitimate_address_p.
10222 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
10223 (h8300_rtx_ok_for_base_p): Likewise.
10224 (h8300_legitimate_address_p): Likewise.
10225 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
10226 h8300_legitimate_constant_p.
10227 (RTX_OK_FOR_BASE_P): Remove.
10228 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
10230 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
10232 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
10233 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
10234 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
10235 (REG_OK_FOR_BASE_STRICT_P): Likewise.
10236 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
10237 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
10238 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
10239 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
10241 2004-01-24 Jan Hubicka <jh@suse.cz>
10243 * cselib.c (remove_useless_values): Do not access discarded values.
10245 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
10247 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
10250 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
10252 * recog.c: Fix a typo in copyright.
10254 2004-01-23 Andrew Pinski <apinski@apple.com>
10256 * config/rs6000/rs6000.md (call): Fix misappiled patch.
10257 (call_value): Likewise.
10259 2004-01-23 Richard Henderson <rth@redhat.com>
10262 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
10263 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
10264 if SHIFT_COUNT_TRUNCATED is set.
10266 2004-01-23 Bob Wilson <bob.wilson@acm.org>
10268 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
10269 separate real and imaginary parts.
10270 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
10272 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
10275 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
10278 2004-01-23 Jan Hubicka <jh@suse.cz>
10280 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
10283 * alloc-pool.c (align_four): Kill.
10284 (create_alloc_pool): Align size to eight.
10285 (free_alloc_pool, free_pool): Invalidate deallocated data.
10287 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
10290 * cse.c (cse_change_cc_mode): New static function.
10291 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
10292 (cse_condition_code_reg): New function.
10293 * rtl.h (cse_condition_code_reg): Declare.
10294 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
10295 * target.h (struct gcc_target): Add fixed_condition_code_regs and
10296 cc_modes_compatible.
10297 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10298 (TARGET_CC_MODES_COMPATIBLE): Define.
10299 (TARGET_INITIALIZER): Add new initializers.
10300 * targhooks.c (default_cc_modes_compatible): New function.
10301 * targhooks.c (default_cc_modes_compatible): Declare.
10302 * hooks.c (hook_bool_intp_intp_false): New function.
10303 * hooks.h (hook_bool_intp_intp_false): Declare.
10304 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
10305 (TARGET_CC_MODES_COMPATIBLE): Define.
10306 (ix86_fixed_condition_code_regs): New static function.
10307 (ix86_cc_modes_compatible): Likewise.
10308 * doc/tm.texi (Condition Code): Document new hooks.
10310 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10312 * fixinc/inclhack.def (bad_lval): Renamed to ...
10313 (alpha_bad_lval): ... this.
10315 Restrict to alpha*-dec-osf*.
10316 * fixinc/fixincl.x: Regenerate.
10317 * fixinc/tests/base/dirent.h: Remove, moving test ...
10318 * fixinc/tests/base/testing.h: ... here, reflecting new name.
10320 2004-01-23 Zack Weinberg <zack@codesourcery.com>
10323 * c-decl.c (diagnose_mismatched_decls): Also discard a
10324 built-in if we encounter an old-style definition with the
10327 2004-01-23 Jakub Jelinek <jakub@redhat.com>
10329 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
10330 set to default{32,64}.
10332 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10334 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
10335 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
10337 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
10338 Olivier Hainque <hainque@act-europe.fr>
10340 * fold-const.c (fold_binary_op_with_conditional_arg): Only
10341 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
10343 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
10345 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
10346 size for minipool references.
10348 2004-01-23 Roger Sayle <roger@eyesopen.com>
10350 * real.c (real_floor, real_ceil): Tweak to allow input and output
10351 arguments to overlap.
10352 (real_round): New function to implement round(3m) semantics.
10353 * real.h (real_round): Prototype here.
10354 * builtins.c (fold_builtin_round): New function to constant fold
10355 round, roundf and roundl.
10356 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
10358 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
10360 PR optimization/13819
10361 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
10362 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
10363 (sh_handle_sp_switch_attribute): Remove warning.
10365 2003-11-30 Jan Hubicka <jh@suse.cz>
10367 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
10369 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
10371 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
10372 may or may not return non-NIL.
10373 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
10374 check CANNOT_CHANGE_MODE_CLASS
10376 2004-01-23 Jan Hubicka <jh@suse.cz>
10378 * basic-block.h (PROP_POSTRELOAD): New macro.
10379 (CLEANUP_LOG_LINKS): New.
10380 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
10381 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
10383 * cselib.c (value_pool): New.
10384 (new_cselib_val): Use pool.
10385 (cselib_init): Initialize value_pool
10386 (cselib_finish): Free pool.
10388 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
10390 * config/sparc/sparc.c (scan_record_type): New function.
10391 (function_arg_slotno): Use it to determine which kinds of
10392 registers the record can be passed in.
10394 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
10396 * config/pa/fptr.c: Fix old-style definition.
10398 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
10400 PR optimization/13724
10401 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
10402 represents the zero bits produced by a ZERO_EXTEND operation.
10404 2004-01-22 Roger Sayle <roger@eyesopen.com>
10406 PR optimization/13821
10407 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
10408 correctly calculate the lowpart offset of the contracted subreg.
10410 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
10412 * doc/invoke.texi (Optimize Options): Note that --param arguments
10413 are subject to change without notice.
10415 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10417 * config.gcc (mips-sgi-irix6*o32): Removed.
10418 * config/mips/iris6-o32-as.h: Likewise.
10419 * config/mips/iris6-o32-gas.h: Likewise.
10420 * config/mips/iris6-o32.h: Likewise.
10422 2004-01-22 Jan Hubicka <jh@suse.cz>
10424 * cfgcleanup.c (first_pass): New static variable.
10425 (try_forward_edges): Add work limiting check for threading.
10426 (try_crossjump_bb): Add work limiting check for crossjumping.
10427 (try_optimize_cfg): Maintain first pass variable.
10429 2004-01-22 Bob Wilson <bob.wilson@acm.org>
10431 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
10432 handles complex and vector modes.
10434 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
10436 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
10437 (REG_OK_FOR_BASE_P_STRICT): Likewise.
10438 (STRICT): Likewise.
10440 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
10442 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
10443 (genrtl_for_stmt): Remove emit_nop calls.
10445 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10449 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
10450 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
10451 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
10453 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
10455 * config/arm/arm.c: Include "debug.h".
10456 (thumb_pushpop): Take two new arguments. Add some commentary.
10457 Output frame information when pushing.
10458 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
10460 (thumb_output_function_prologue): Likewise. Accumulate a CFA
10461 offset, and pass it to thumb_pushpop. Output CFI information.
10462 (thumb_expand_prologue): Add some frame-related markers and notes.
10464 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
10466 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
10468 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
10469 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
10471 2004-01-22 Roger Sayle <roger@eyesopen.com>
10472 Paolo Bonzini <bonzini@gnu.org>
10474 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
10475 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
10476 * rtl.h (subreg_lsb_1): Prototype here.
10477 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
10480 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
10482 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
10483 macro need not be defined if jump-tables should contain
10484 relative addresses only when -fPIC or -fPIC is in effect.
10486 2004-01-22 Jan Hubicka <jh@suse.cz>
10488 * alias.c (reg_base_value): Turn into varray.
10489 (reg_base_value_size): Kill.
10490 (old_reg_base_value): New deletable varray.
10491 (alias_invariant_size): New variable.
10492 (REG_BASE_VALUE): Update to use varray.
10493 (find_base_value): Likewise.
10494 (record_set): Likewise.
10495 (record_base_value): Likewise.
10496 (memrefs_conflict_p): Likewise.
10497 (record_set): Likewise
10498 (record_base_value): Likewise.
10499 (memrefs_conflict_p): Use alias_invariant_size.
10500 (init_alias_analysis): Use varray; set alias_invariant_size;
10501 rescale other arrays to be sized by maxreg.
10502 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
10504 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
10506 * config/sparc/sparc.c (function_arg_slotno): Use
10507 FLOAT_TYPE_P to detect FP fields in structures.
10508 (function_arg_record_value_1): Likewise.
10509 (function_arg_record_value_2): Likewise.
10511 2004-01-22 Jan Hubicka <jh@suse.cz>
10513 * function.c (allocate_struct_function): Do not initialize expr, emit
10515 (prepare_function_start): Do it here.
10516 * c-parse.in (maybe_type_qual): Do not produce line number notes.
10518 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
10521 * config/sparc/sparc.c (function_arg_record_value_3): Revert
10522 to 'word_mode' once the first slot has been filled.
10524 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
10526 * config/sparc/sparc.c (function_arg_record_value_1): Fix
10527 computation of the number of integer registers required.
10529 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
10531 * config/i386/i386.md: Simplify certain comparisons of
10534 2004-01-21 Andrew Pinski <apinski@apple.com>
10537 * config/rs6000/rs6000.md (call_value): Force operand
10538 1 not operand 0 into a register.
10540 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
10542 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
10543 unwind-dw2-fde.h: Update copyright.
10545 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10547 * pa-protos.h: Update copyright.
10551 2004-01-21 Caroline Tice <ctice@apple.com>
10554 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
10556 (fix_truncdfdi2): Likewise.
10557 (fix_truncsfdi2): Likewise.
10558 (*fix_truncdi_1): Likewise.
10559 (fix_truncxfsi2): Likewise.
10560 (fix_truncdfsi2): Likewise.
10561 (fix_truncsfsi2): Likewise.
10562 (*fix_truncsi_1): Likewise.
10563 (fix_truncxfhi2): Likewise.
10564 (fix_truncdfhi2): Likewise.
10565 (fix_truncsfhi2): Likewise.
10566 (*fix_trunchi_1): Likewise.
10568 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
10570 * alias.c, basic-block.h, c-common.c, c-common.h,
10571 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
10572 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
10573 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
10574 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
10575 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
10576 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
10577 genautomata.c, genconditions.c, genemit.c, genflags.c,
10578 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
10579 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
10580 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
10581 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
10582 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
10583 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
10584 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
10585 unwind.h, varray.c, varray.h: Update copyright.
10587 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
10589 * config/h8300/coff.h: Update copyright.
10590 * config/h8300/elf.h: Likewise.
10591 * config/h8300/h8300-protos.h: Likewise.
10592 * config/h8300/h8300.c: Likewise.
10593 * config/h8300/h8300.h: Likewise.
10594 * config/h8300/h8300.md: Likewise.
10596 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10598 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
10599 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
10600 ultrix_unistd): New hacks.
10601 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
10602 ULTRIX_CONST2_CHECK): Add checks.
10603 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
10604 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
10605 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
10606 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
10607 * fixinc/tests/base/locale.h: New file.
10608 * fixinc/fixincl.x: Rebuilt.
10610 2004-01-21 Andreas Jaeger <aj@suse.de>
10611 Michael Matz <matz@suse.de>
10613 * doc/extend.texi (Extended Asm): Clarify memory clobber.
10615 2004-01-21 Jakub Jelinek <jakub@redhat.com>
10617 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
10618 _Jv_RegisterClasses through a function pointer.
10620 2004-01-21 Falk Hueffner <falk@debian.org>
10623 * config/alpha/alpha.c (alpha_emit_set_const_1): If
10624 no_new_pseudos, use gen_rtx_SET directly for SImode constants
10625 which need multiple instructions to emit.
10627 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
10629 * config/m32r/m32r.h (CPP_SPEC): Define.
10631 2004-01-21 Zack Weinberg <zack@codesourcery.com>
10633 * c-decl.c (merge_decls): Kill different_binding_level and
10634 different_tu arguments; simplify throughout.
10635 (duplicate_decls): Likewise.
10636 (pushdecl, merge_translation_unit_decls): Update calls to
10639 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10641 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
10643 (print-rtl1.o): Depend on $(SYSTEM_H).
10645 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
10648 * configure.ac: Delete definition and subsitution of docdir.
10649 Add info, man, srcman and srcinfo to target hooks. Create doc/
10651 * configure: Regenerate.
10652 * Makefile.in: Don't substitute docdir and delete all references
10654 (MAKEINFOFLAGS): Define.
10655 (stmp-docobjdir): Delete.
10656 (INFOFILES, MANFILES): Define.
10657 (info): Call lang.info, srcinfo and lang.srcinfo.
10658 (generated-manpages): Call lang.man, srcman and lang.srcman.
10659 (srcinfo, srcman): New rules to copy back files to source directory.
10660 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
10661 (install-man): Revamp rule.
10662 (clean): Update dvi directory.
10663 (distclean): Delete TAGS from front end directorys.
10664 (maintainer-clean): Delete all document files in source directory.
10666 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
10667 (objc.srcman, objc.srcinfo): Likewise.
10669 2004-01-20 Bruce Korb <bkorb@gnu.org>
10671 * fixinc/inclhack.def(math_exception): bypass only for glibc.
10672 (matherr_decl): rename & relocate as exception_structure.
10673 This fix must precede the math_exception fix.
10675 2004-01-20 Roger Sayle <roger@eyesopen.com>
10677 * fold-const.c (fold_convert): Rename to fold_convert_const.
10678 (fold_convert_const): Change arguments to take a tree_code,
10679 a type and the operand/expression to be converted. Return
10680 NULL_TREE if no simplification is possible. Add support for
10681 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
10682 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
10683 Adjust call to fold_convert to match new fold_convert_const.
10684 Avoid modifying the tree passed to fold in-place.
10686 2004-01-21 Alan Modra <amodra@bigpond.net.au>
10688 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
10689 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
10690 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
10692 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10694 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
10695 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
10696 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
10697 (emit_move_sequence): Check scratch_reg first in various if statements.
10698 Extend source simplification to handle all 64-bit CONST_INTs.
10699 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
10701 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
10702 frame offset calculations.
10703 * pa.h (NEW_HP_ASSEMBLER): Add comment.
10704 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
10705 LEGITIMATE_64BIT_CONST_INT_P): Define.
10706 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
10707 any CONST_INT as legitimate during and after reload.
10708 (VAL_32_BITS_P, INT_32_BITS): Define.
10709 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
10711 2004-01-20 Jan Hubicka <jh@suse.cz>
10713 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
10714 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
10715 containing hard regs are shared.
10716 (gen_hard_reg_clobber): New function.
10717 (hard_reg_clobbers): New array.
10718 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
10719 (copy_rtx): Do not copy clobbers containing hard regs.
10720 * rtl.h (gen_hard_reg_clobber): Declare.
10722 2004-01-20 Jan Hubicka <jh@suse.cz>
10724 * varray.c: Include hashtab.h
10725 (varray_descriptor): New structure.
10726 (hash_descriptor, eq_descriptor, varray_descriptor,
10727 print_statistics): New static functions
10728 (varray_init, varray_grow): Update statistics
10729 (dump_varray_statistics): New function.
10730 * varray.h (dump_varray_statistics): Declare.
10731 * toplev.c (finalize): Call it.
10732 * Makefile.in (varray.o): Add dependency.
10734 2004-01-20 Jan Hubicka <jh@suse.cz>
10736 * cselib.c: Include alloc-pool.h
10737 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
10738 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
10739 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
10740 unchain_one_elt_loc_list_pool, unchain_one_value,
10741 new_cselib_val): Simplify using allocpool.
10742 (cselib_init): Initialize allocpools.
10743 (cselib_finish): Finish allocpools.
10744 * Makefile.in (cselib.o): Depend on alloc-pool.h
10746 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
10748 * config/mips/mips.c (mips_load_call_address): Make the call insn
10749 use $gp if it could be calling a lazy binding stub.
10751 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
10753 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
10754 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
10755 (TARGET_STRUCT_VALUE_RTX): Likewise.
10756 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
10757 (PROMOTE_FUNCTION_RETURN): Remove.
10758 (STRUCT_VALUE): Remove.
10760 2004-01-20 Denis Chertykov <denisc@overta.ru>
10763 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
10764 register as pointer after reload.
10766 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10768 PR optimization/12440
10769 * loop.c: Include ggc.h.
10770 (loop_optimize): Run garbage collector between optimization of loops.
10771 * Makefile.in (loop.o): Add GGC_H dependency.
10773 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
10775 * gcc/config/rs6000/rs6000.c (function_arg) Handle
10776 vector register special in function without prototype.
10777 (function_arg_advance): Vector parameters get always
10778 GPRs allocated for the linux64 target.
10780 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10782 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
10783 not TARGET_M32RX_MASK.
10785 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
10788 * config/sparc/sparc.c (function_arg): Reorder the cases.
10790 2004-01-19 Per Bothner <per@bothner.com>
10792 Move cpp_reader's line_maps field to a shared global.
10793 * cpphash.h (cpp_reader): Rename line_maps field to line_table
10794 and change the type to a pointer rather than a struct.
10795 * cppinit.c (cpp_push_main_field): Adjust accordingly.
10796 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
10798 * cppfiles.c (validate_pch): Likewise.
10799 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
10801 * cpperror.c (print_location): Likewise.
10802 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
10803 * cppinit.c (cpp_create_reader): Handle new parameter.
10804 (cpp_destroy): Don't free line_maps - that's no longer our job.
10805 * input.h (line_table): New variable.
10806 * toplev.c (line_table): Declare variable.
10807 (general_init): Initialize line_table.
10808 * c-opts.c (c_common_init_options): Pass line_table to
10810 * fix-header.c (read_scan_file): New local variable line_table.
10811 Initialize, and pass it to cpp_create_reader.
10812 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
10813 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
10815 2004-01-19 Per Bothner <per@bothner.com>
10817 Implement a cache for linemap_lookup.
10818 * line-map.h (struct_line_maps): Add cache field.
10819 * line-map.c (linemap_init): Zero cache field.
10820 (linemap_add): Set cache field to offset of newly allocated map.
10821 (linemap_lookup): Use and set cache field.
10823 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
10825 PR optimization/13567
10826 * cse.c (cse_basic_block): Call cse_insn with a non-null
10827 libcall_insn for the last SET insn of a no-confilict block.
10829 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
10831 * Makefile.in (target_noncanonical, program_transform_name): Use
10832 immediate define instead of deferred.
10833 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
10834 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
10835 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
10836 deferred backquote.
10838 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
10840 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
10841 true unconditionally.
10842 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
10844 (build_unary_op, build_modify_expr): Don't handle extended
10846 (build_component_ref, build_conditional_expr): Call non_lvalue
10847 instead of pedantic_non_lvalue.
10848 (build_c_cast): Don't condition use of non_lvalue on pedantic.
10849 * fold-const.c (fold): Don't check pedantic directly for
10850 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
10851 passed to pedantic_non_lvalue.
10852 * doc/extend.texi: Remove documentation of extended lvalues.
10854 2004-01-19 Roger Sayle <roger@eyesopen.com>
10856 PR optimization/5263
10857 * simplify-rtx.c (associative_constant_p): Delete.
10858 (simplify_associative_operation): Rewrite to linearize terms, and
10859 attempt to simplify new term against both left and right subterms.
10860 (simplify_binary_operation): Call swap_commutative_operands_p on
10861 op0 and op1, not trueop0 and trueop1. Move the initialization of
10862 trueop0 and trueop1 down to where first needed.
10863 (simplify_relational_operation): Likewise.
10864 * rtlanal.c (commutative_operand_precedence): Also order constant
10865 operands using avoid_constant_pool_reference.
10867 2004-01-19 Richard Henderson <rth@redhat.com>
10869 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
10870 don't check memory mode.
10871 (unaligned_memory_operand): Likewise.
10872 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
10873 abort for op0 not MEM.
10875 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
10876 is not a reg, copy to a scratch first.
10877 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
10878 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
10879 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
10880 (reload_inqi, reload_inhi): Fix mode of op0.
10881 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
10882 reload_outhi_help): Likewise. Use define_insn_and_split.
10884 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
10885 as well as $29 dead.
10887 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
10889 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
10890 "tls_object" for thread-local objects.
10891 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
10892 "#tls" for thread-local sections.
10893 * configure.ac (thread-local checks): Specify --fatal-warnings in
10894 every binutils-specific checks. For sparc*-*-*, test whether the
10895 OS is Solaris and the tools are native and act accordingly.
10896 * configure: Rebuild.
10898 2004-01-19 Jeff Law <law@redhat.com>
10900 * contrib.texi: Update Paolo Carlini's entry. New entries for
10901 Jerry Quinn and Petur Runolfsson.
10903 2004-01-19 Roger Sayle <roger@eyesopen.com>
10905 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
10906 size, don't use the larger zero-extending loads.
10908 2004-01-19 Richard Henderson <rth@redhat.com>
10910 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
10911 * alpha.md (UNSPEC_NT_LDA): Remove.
10912 (UNSPEC_CVTLQ, cvtlq): New.
10913 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
10914 (extendsidi2_fix): Remove.
10915 (extendsidi2 splitter): Use cvtlq.
10916 (extendsidi2 fp peepholes): Remove.
10917 (cvtql): Use SFmode instead of SImode.
10918 (fix_trunc?fsi): Update to match.
10919 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
10920 (movsi): Rename from movsi_nofix, remove f alternatives.
10921 (movsi_nt_vms): Similarly.
10922 (movsi_fix, movsi_nt_vms_fix): Remove.
10924 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
10926 2004-01-19 Jan Hubicka <jh@suse.cz>
10928 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
10929 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
10931 (cgraph_remove_unreachable_nodes): New function
10932 (cgraph_decide_inlining_of_small_function): Fix pasto.
10933 (cgraph_decide_inlining_incrementally): Fix pasto.
10934 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
10936 2004-01-19 Steven Bosscher <stevenb@suse.de>
10938 * gengtype.c (header_file): Make it static.
10939 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
10940 * gengtype.h (header_file): No longer extern.
10942 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
10944 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
10945 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
10946 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
10948 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
10950 * stmt.c (HAVE_casesi): Define it not already defined.
10951 (HAVE_tablejump): Likewise.
10952 (expand_end_case_type): Resort to the binary tree method if
10953 neither casesi or tablejump is available.
10955 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
10957 * final.c (final_scan_insn): Make non-static again.
10958 * output.h (final_scan_insn): Re-add prototype.
10959 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
10960 to final_scan_insn call.
10961 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
10962 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
10963 * config/pa/pa.c (output_lbranch, output_call): Likewise.
10964 * config/sh/sh.c (print_slot): Likewise.
10965 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
10966 (output_sibcall, sparc_flat_function_epilogue): Likewise.
10968 2004-01-18 Jan Hubicka <jh@suse.cz>
10970 * basic-block.h (try_redirect_by_replacing_jump): Declare.
10971 * cfgcleanup.c (try_optimize_cfg): Use it.
10972 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
10973 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
10975 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
10978 2004-01-16 Geoffrey Keating <geoffk@apple.com>
10980 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
10981 even after reload, just don't remove the actual jump tables.
10983 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
10985 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
10987 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
10989 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
10990 the size of a pointer in bytes.
10992 2004-01-18 Roger Sayle <roger@eyesopen.com>
10994 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
10995 live "next" variable, which could lead to an infinite loop.
10997 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
10999 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
11002 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
11003 Check for NULL in the chain and remove repeated code.
11005 2004-01-18 Jan Hubicka <jh@suse.cz>
11007 * coverage.c (checksum_string): Rename to ...
11008 (coverage_checksum_string): ... this one, Use crc32_string; recognize
11009 names containing random number and zero the number out in order to get
11012 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
11014 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
11016 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
11018 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
11019 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
11020 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
11021 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
11022 doc/trouble.texi: Remove trailing whitespace.
11024 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
11027 * config/mips/mips.c: Include cfglayout.h.
11028 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
11029 (mips_unspec_offset_high): Add temporary register argument.
11030 (mips_load_call_address): New function, split out from...
11031 (mips_expand_call): ...here.
11032 (mips_output_cplocal): New function.
11033 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
11034 (mips_emit_loadgp): New function, split out from...
11035 (mips_expand_prologue): ...here.
11036 (mips_output_mi_thunk): New function.
11038 2004-01-17 Bernardo Innocenti <bernie@develer.com>
11040 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
11041 mcpu32): Remove redundant checks for implied target predefines.
11043 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
11045 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
11046 Return type is unsigned int not int.
11047 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
11050 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
11052 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
11053 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
11054 "GNU/Linux" and "Microsoft Windows" terminology.
11056 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
11058 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
11059 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
11060 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
11061 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
11062 @smallexample instead of @example.
11064 2004-01-17 Ziemowit Laski <zlaski@apple.com>
11066 * objc/objc-act.c (build_objc_method_call): Use target
11067 hooks instead of macros to determine if ..._stret
11068 dispatchers should be used (NeXT runtime only).
11070 2004-01-17 Roger Sayle <roger@eyesopen.com>
11072 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
11073 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
11075 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11077 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
11078 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
11079 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
11081 * reload1.c (emit_reload_insns): Use them.
11082 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
11083 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
11086 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
11088 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
11089 (final_scan_insn): Update to take an additional SEEN argument. Emit
11090 a line note after the prologue. Make static.
11091 (line_note_exists): Remove.
11092 (final): Don't initialize line_note_exists. Update call to
11094 * output.h (final_scan_insn): Remove prologue.
11095 * function.c (set_insn_locators): Update comment.
11096 (thread_prologue_and_epilogue_insns): Add a comment.
11098 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
11101 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
11103 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
11105 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
11106 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
11107 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
11109 2004-01-17 Jan Hubicka <jh@suse.cz>
11111 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
11114 * toplev.c (HAVE_conditional_execution): Provide default.
11115 (rest_of_handle_reorder_blocks): For conditional_execution target
11116 update liveness once after all transformations
11117 (rest_of_compilation): Do crossjumping before ce3.
11119 2004-01-17 Geoffrey Keating <geoffk@apple.com>
11121 * alias.c (new_alias_set): Mark last_alias_set for PCH.
11122 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
11124 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
11125 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
11126 (get_TOC_alias_set): Mark 'set' for PCH.
11128 2004-01-16 Geoffrey Keating <geoffk@apple.com>
11130 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
11131 even after reload, just don't remove the actual jump tables.
11133 2004-01-17 J. Brobecker <brobecker@gnat.com>
11135 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
11136 Remove checks for is_ada() and TREE_UNSIGNED.
11137 (subrange_type_die): Emit a byte_size attribute if the subrange
11138 type size is different from the base type size.
11139 (modified_type_die): Replace call to is_ada_subrange_type() by
11140 call to is_subrange_type().
11142 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
11144 * config/sh/sh.c: Include ggc.h.
11146 2004-01-16 Geoffrey Keating <geoffk@apple.com>
11148 * Makefile.in (MD5_H): New.
11149 (fold-const.o): Depend on md5.h.
11150 (dwarf2out.o): Likewise.
11151 (cppfiles.o): Likewise.
11152 * cppfiles.c: Include md5.h.
11153 (should_stack_file): Check against list read from PCH file.
11154 (struct pchf_data): New.
11155 (pchf): New variable.
11156 (struct pchf_adder_info): New.
11158 (pchf_save_compare): New.
11159 (_cpp_save_file_entries): New.
11160 (_cpp_read_file_entries): New.
11161 (struct pchf_compare_data): New.
11162 (pchf_compare): New.
11163 (check_file_against_entries): New.
11164 * cpphash.h (_cpp_save_file_entries): Prototype.
11165 (_cpp_read_file_entries): Prototype.
11166 * cpppch.c (cpp_write_pch_state): Write the list of headers.
11167 (cpp_read_state): Read the list of headers.
11169 2004-01-17 Jan Hubicka <jh@suse.cz>
11171 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
11172 builtin_expect specially.
11173 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
11174 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
11175 * invoke.texi (max-inline-insns-single): Set to 100.
11176 (large-function-insns): Set to 3000.
11178 2004-01-16 Eric Christopher <echristo@redhat.com>
11179 Chandrakala Chavva <cchavva@redhat.com>
11181 * cppcharset.c (one_iso88591_to_utf8): New function.
11182 (convert_iso88591_utf8): Ditto. Use.
11183 (conversion_tab): Use.
11184 (_cpp_input_to_utf8): New function.
11185 (_cpp_init_iconv_buffer): Ditto.
11186 (_cpp_close_iconv_buffer): Ditto.
11187 * cpphash.h: Prototype new functions.
11188 (cpp_buffer): Add input_cset_desc.
11189 * cppinit.c: Add input_charset default.
11190 * cpplib.c (cpp_push_buffer): Support init and
11192 * cpplib.h (cpp_options): Add input_charset.
11194 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
11196 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
11197 * config/alpha/unicosmk.h: Remove a commented-out definition
11198 of ASM_OUTPUT_SECTION_NAME.
11199 * config/stormy16/stormy16.h: Likewise.
11201 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11203 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
11204 (alpha___extern_prefix_sys_stat): ... this.
11205 Apply to <sys/mount.h>, too.
11206 Tweak to match more variations.
11207 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
11209 * fixinc/inclhack.def (alpha___extern_prefix,
11210 alpha___extern_prefix_standards): New hacks to obey
11211 __PRAGMA_EXTERN_PREFIX.
11212 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
11214 * fixinc/tests/base/standards.h: Likewise.
11216 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
11219 * fixinc/tests/base/pthread.h: Handle it.
11221 * fixincl/inclhack.def (bad_lval): Sort file list.
11222 Add many missing files up to Tru64 UNIX V5.1B.
11223 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
11224 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
11227 * fixinc/fixincl.x: Regenerate.
11229 2004-01-16 Mark Mitchell <mark@codesourcery.com>
11231 * version.c (version_string): Change to 3.5.0.
11232 * doc/include/gcc-common.texi (version-GCC): Likewise.
11234 2004-01-16 Jan Hubicka <jh@suse.cz>
11236 * i386.md (load_tp_di): Fix pasto.
11239 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
11241 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
11242 pp_c_character_constant, pp_c_floating_constant,
11243 pp_c_additive_expression, pp_c_shift_expression,
11244 pp_c_equality_expression, pp_c_and_expression,
11245 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
11246 pp_c_logical_and_expression): Remove inline modifier.
11247 * dwarf2out.c (get_AT): Likewise.
11248 * et-forest.c (et_splay): Likewise.
11249 * ra.h (ra_alloc, ra_calloc): Likewise
11251 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
11253 * config/frv/frv-protos.h: Fix comment formatting.
11254 * config/frv/frv.c: Likewise.
11255 * config/frv/frv.h: Likewise.
11256 * config/frv/frv.md: Likewise.
11257 * config/frv/frvbegin.c: Likewise.
11258 * config/frv/frvend.c: Likewise.
11260 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
11262 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
11263 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
11264 LINKER_DOES_NOT_WORK_WITH_DWARF2.
11265 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
11267 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
11270 * postreload.c (reload_cse_simplify_operands): Don't remove
11271 implicit extension from LOAD_EXTEND_OP.
11273 2004-01-16 Jan Hubicka <jh@suse.cz>
11276 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
11278 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
11279 rtl_try_redirect_by_replacing_branch): Likewise.
11281 2004-01-15 Geoffrey Keating <geoffk@apple.com>
11284 * alias.c (struct alias_set_entry): Mark for GC.
11285 (alias_sets): Make static, mark for GC.
11286 (record_alias_subset): Use GC to allocate alias structures.
11287 * varray.c (element): Make generic varrays GCed.
11290 * c-typeck.c (constructor_asmspec): Delete.
11291 (struct initializer_stack): Delete field 'asmspec'.
11292 (start_init): Delete saving of asmspec.
11293 (finish_init): Don't update constructor_asmspec.
11294 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
11295 * stmt.c (expand_asm): Duplicate strings from tree.
11296 (expand_asm_operands): Likewise.
11297 * tree.c (tree_size): Update computation of size of STRING_CST.
11298 (make_node): Don't make STRING_CST nodes.
11299 (build_string): Allocate string with tree node.
11300 * tree.def (STRING_CST): Update comment.
11301 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
11302 (tree_string): Place contents of string in tree node.
11303 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
11306 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
11309 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
11311 * c-common.h: Fix comment formatting.
11312 * c-cppbuiltin.c: Likewise.
11313 * c-pragma.c: Likewise.
11314 * calls.c: Likewise.
11315 * collect2.c: Likewise.
11316 * cppcharset.c: Likewise.
11317 * cpptrad.c: Likewise.
11318 * dbxout.c: Likewise.
11319 * defaults.h: Likewise.
11320 * dwarf2out.c: Likewise.
11321 * fold-const.c: Likewise.
11322 * genautomata.c: Likewise.
11323 * genconditions.c: Likewise.
11324 * genflags.c: Likewise.
11325 * gengtype.c: Likewise.
11326 * integrate.c: Likewise.
11327 * loop.c: Likewise.
11328 * predict.c: Likewise.
11329 * sdbout.c: Likewise.
11331 2004-01-15 Zack Weinberg <zack@codesourcery.com>
11333 * config/ia64/ia64.md (*movti_internal): C output template
11334 extracted to ia64.c.
11335 (*movti_internal_reg): Delete.
11336 (reload_inti, reload_outti): Use the correct mode on operand 2
11337 in the first place, don't fix it up in the output template.
11338 (movtf, reload_ointf, reload_outtf): New expanders.
11339 (*movtf_internal): New define_insn_and_split.
11340 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
11341 make static; do not hand TFmode CONST_DOUBLEs to split_double.
11342 (ia64_split_tmode_move): New function, body mostly pulled
11343 from ia64.md:*movti_internal.
11344 (ia64_function_arg_words): New function, extracted common
11345 logic from ia64_function_arg et seq.
11346 (ia64_function_arg_offset): Likewise. Handle correctly the
11347 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
11348 (ia64_function_arg, ia64_function_arg_partial_nregs)
11349 (ia64_function_arg_advance): Use ia64_function_arg_words and
11350 ia64_function_arg_offset.
11351 (ia64_function_value): TCmode does not go in float regs.
11352 (ia64_secondary_reload_class): Also handle TFmode.
11353 * config/ia64/ia64-protos.h: Remove prototype for
11354 ia64_split_timode; add prototype for ia64_split_tmode_move.
11356 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
11358 * Makefile.in (MAINT): Make it an immediate assignment.
11360 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
11362 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
11364 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
11366 * config/h8300/coff.h: Replace Hitachi with Renesas.
11367 * config/h8300/elf.h: Likewise.
11368 * config/h8300/h8300-protos.h: Likewise.
11369 * config/h8300/h8300.c: Likewise.
11370 * config/h8300/h8300.h: Likewise.
11371 * config/h8300/h8300.md: Likewise.
11372 * config/h8300/lib1funcs.asm: Likewise.
11374 2004-01-15 Andrew Pinski <apinski@apple.com>
11376 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
11379 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
11381 * config/h8300/h8300.c (h8300_return_in_memory): New.
11382 (TARGET_STRUCT_VALUE_RTX): Likewise.
11383 (TARGET_RETURN_IN_MEMORY): Likewise.
11384 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
11385 (RETURN_IN_MEMORY): Likewise.
11387 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
11389 PR optimization/13375
11390 * gcse.c (handle_avail_expr): Just return if the source is not a
11393 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
11394 Daniel Jacobowitz <drow@mvista.com>
11396 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
11398 (ARM_FUNC_ALIAS): New macro.
11399 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
11400 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
11402 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11404 PR optimization/12372
11405 * calls.c (expand_call): Add call_fusage data for stack arguments in
11408 2004-01-15 Alan Modra <amodra@bigpond.net.au>
11410 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
11411 (rs6000_elf_declare_function_name): Formatting.
11412 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
11414 2004-01-15 Jan Hubicka <jh@suse.cz>
11417 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
11420 2004-01-15 Richard Henderson <rth@redhat.com>
11422 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
11423 integer regs of the same call-savedness.
11425 2004-01-15 Andreas Schwab <schwab@suse.de>
11428 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
11429 status for NOTB/NOTW/NEGW methods.
11431 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
11433 * doc/invoke.texi: Update dump file names. Fix a typo.
11435 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
11437 * builtins.c (expand_builtin_va_end): Don't use
11438 EXPAND_BUILTIN_VA_END.
11439 * system.h (EXPAND_BUILTIN_VA_END): Poison.
11440 * config/d30v/d30v.h: Remove a commented-out definition of
11441 EXPAND_BUILTIN_VA_END.
11442 * config/stormy16/stormy16.h: Likewise.
11444 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
11446 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
11447 * targhooks.c (default_struct_value_rtx): Don't use
11448 STRUCT_VALUE_INCOMING_REGNUM.
11450 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
11453 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
11454 GENINSRC and not parsedir. Define srcextra as a langhook.
11455 * configure: Regenerate.
11456 * Makefile.in: Suppress default .l.c rule. Don't substitute
11457 parsedir and delete all references throughout. Conditionally define
11458 rule for srcextra dependent on GENINSRC.
11459 (stmp-docobjdir): Delete.
11460 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
11461 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
11462 and gengtype-yacc.h back to source directory.
11463 (maintainer-clean): Delete all parse files in source directory.
11464 (distclean): Delete generated files.
11466 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
11467 (objc-parse.c, objc-parse.y): Don't use parsedir.
11468 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
11469 directory if requested.
11470 (po-generated): Don't use parsedir.
11471 (objc.maintainer-clean): Delete above files from source directory.
11473 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
11475 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
11477 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
11479 * doc/tm.texi: Replace RETURN_IN_MEMORY with
11480 TARGET_RETURN_IN_MEMORY.
11482 2004-01-15 Jan Hubicka <jh@suse.cz>
11484 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
11485 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
11486 functions accepting SSE arguments
11487 (function_arg): Warn only when asked to warn.
11488 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
11490 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
11492 * c-parse.in (stmts_and_decls): Make label at end of compound
11493 statement a hard error.
11495 2004-01-14 Jan Hubicka <jh@suse.cz>
11497 * cgraph.c (create_edge): Use local.redefined_extern_inline.
11498 * cgraph.h (cgraph_local_info): Sort fields by size; add
11499 redefined_extern_inline
11500 (cgraph_global_info): Sort fields by size.
11501 (cgraph_node): Likewise.
11502 * cgraphunit.c (cgraph_finalize_function): Se
11503 local.redefined_extern_inline on redefinition.
11504 (cgraph_analyze_function): Use it; fix formating.
11506 2004-01-14 Jan Hubicka <jh@suse.cz>
11509 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
11510 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
11512 (cache_size): New variable
11513 (add_dependence): Update use; canonize early memory locations
11514 (sched_analyze_1): Likewise.
11515 (sched_analyze_2): Likewise.
11516 (init_dependency_caches): Initialize bitmaps.
11517 (free_dependency_caches): Free bitmaps
11519 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
11521 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
11522 targetm.calls.strict_argument_naming().
11523 * target.h: Likewise.
11525 2004-01-14 Richard Henderson <rth@redhat.com>
11528 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
11531 2004-01-14 Richard Henderson <rth@redhat.com>
11534 * except.c (struct eh_region): Add u.fixup.resolved.
11535 (resolve_one_fixup_region): Split out from ...
11536 (resolve_fixup_regions): ... here.
11538 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
11540 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
11542 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
11544 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
11545 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
11546 (STRUCT_VALUE): Remove.
11548 2004-01-14 Steven Bosscher <stevenb@suse.de>
11550 * system.h: Poison PROMOTED_MODE
11551 * integrate.c (expand_inline_function): Don't mention the
11553 * loop.c (update_giv_derive): Same.
11554 * tree.h (DECL_RTL): Same.
11556 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
11559 * sh.c (gen_block_redirect): Add special handling of RETURN.
11560 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
11561 far branch target (i.e. it's a return).
11563 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
11565 * regrename.c (find_oldest_value_reg): Fix a warning.
11567 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
11570 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
11571 Move linux-gas.h and linux-elf.h before aout.h.
11572 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
11573 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
11575 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
11577 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
11578 (CONST_INT, VOIDmode, ...).
11580 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
11582 * regrename.c (find_oldest_value_reg): If the replacement uses
11583 multiple hard registers, check that all of them are in CLASS.
11585 2004-01-14 Jan Hubicka <jh@suse.cz>
11587 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
11590 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
11592 * Makefile.in: Define MAINT from --enable-maintainer-mode.
11594 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
11596 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
11597 Calculate always vrsave_mask if TARGET_ALTIVEC.
11598 (rs6000_emit_prologue): Emit code for vrsave
11599 only if TARGET_ALTIVEC_VRSAVE.
11600 (rs6000_emit_epilogue): Likewise.
11602 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
11604 * config/sparc/sparc.md (tie_add32): Fix pasto.
11605 (tie_add64): Likewise.
11607 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11609 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
11611 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
11613 * config/iq2000/iq2000-protos.h: Fix comment formatting.
11614 * config/iq2000/iq2000.c: Likewise.
11615 * config/iq2000/iq2000.md: Likewise.
11617 2004-01-14 J. Brobecker <brobecker@gnat.com>
11619 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
11620 (subrange_type_die): Add handle for nameless subrange types.
11622 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
11624 * config/h8300/h8300-protos.h: Replace do_movsi with
11625 h8300_expand_movsi.
11626 * config/h8300/h8300.c (do_movsi): Change to
11627 h8300_expand_movsi.
11628 * config/h8300/h8300.md (movsi): Replace do_movsi with
11629 h8300_expand_movsi.
11632 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
11634 * config/h8300/h8300.c (dosize): Change to
11635 h8300_emit_stack_adjustment. Update callers.
11637 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
11639 * config/h8300/h8300.md (movstrictqi): Add an alternative with
11640 the source being post_inc. Tighten the predicate for the
11641 destination to register_operand.
11642 (movstricthi): Likewise.
11644 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
11646 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
11647 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
11648 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
11650 2004-01-14 Jan Hubicka <jh@suse.cz>
11652 Partial fix PR c++/12850
11653 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
11654 at zero nest level.
11656 2004-01-13 Bernardo Innocenti <bernie@develer.com>
11658 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
11661 2004-01-13 Devang Patel <dpatel@apple.com
11664 * dbxout.c (dbxout_symbol_name): Emit mangled names for
11665 NAMESPACE_DECL memebers.
11667 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
11670 * c-common.c (finish_fname_decls): Use the chain only if the
11671 tree is an expr_stmt.
11673 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
11675 * rtl.def: Add comment about new option in automata_option.
11677 * genautomata.c (PROGRESS_OPTION): New macro.
11678 (progress_flag): New global variable.
11679 (gen_automata_option): Process `progress'.
11680 (transform_insn_regexps, check_unit_distributions_to_automata,
11681 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
11682 expand_automata, write_automata): Print about the progress only if
11683 progress_flag. Remove fflush.
11684 (initiate_automaton_gen): Process command line flag `-progress'.
11686 * doc/md.texi: Describe the new option.
11688 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11690 * cfg.c (dump_bb): Dump entry edges.
11692 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
11694 * arm.c (thumb_legitimate_address_p): Only allow constant pool
11695 references from SImode.
11696 * arm.md (thumb_movhi_insn): Don't allow minipool references.
11698 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
11700 * system.h (TEXT_SECTION): Poison.
11701 * varasm.c (text_section): Don't use TEXT_SECTION.
11702 * config/sh/sh.c (sh_file_start): Fix a comment typo.
11703 * doc/tm.texi (TEXT_SECTION): Remove.
11705 2004-01-13 Ben Elliston <bje@wasabisystems.com>
11707 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
11709 2004-01-12 James E Wilson <wilson@specifixinc.com>
11711 * unwind-libunwind.c: Delete.
11713 2004-01-12 Zack Weinberg <zack@codesourcery.com>
11716 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
11717 oldtype is set, set *newtypep or *oldtypep too. Do not set
11718 them at the very end.
11719 (validate_proto_after_old_defn): Restructure for comprehensibility;
11720 make error messages clearer.
11722 2004-01-12 Zack Weinberg <zack@codesourcery.com>
11724 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
11725 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
11726 * varray.c: No need to prototype error.
11727 (varray_check_failed): Wrap long string onto two lines.
11728 (varray_underflow): New function.
11730 2004-01-13 Steven Bosscher <stevenb@suse.de>
11733 * function.h (struct function): Kill `name' field.
11734 (current_function_name): Make it an extern function.
11735 * function.c (current_function_name): New function.
11736 * graph.c: Update all uses of current_function_name.
11737 * gcse.c: Likewise.
11738 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
11739 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
11740 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
11741 instead of a strcmp with "main".
11743 2004-01-13 Jan Hubicka <jh@suse.cz>
11745 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
11747 * cgraphunit.c (cgraph_optimize_function): Always do
11748 optimize_inline_calls when there is always_inline callee.
11749 (cgraph_decide_inlining): Fix formating.
11750 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
11752 (expand_call_inline): Likewise.
11753 * toplev.h (sorry): Fix prototype.
11755 2004-01-12 Roger Sayle <roger@eyesopen.com>
11757 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
11758 conditional jumps that drop through to unconditional jumps or the
11759 end of the sequence.
11761 2004-01-13 Jan Hubicka <jh@suse.cz>
11763 * alias.c (new_alias_set): Construct the alias_set varray.
11764 (init_alias_once): Don't do it here.
11766 2004-01-12 Marc Espie <espie@openbsd.org>
11768 * system.h: handle YYBYACC like YYBISON.
11770 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
11773 * config.gcc: No longer includes conflicting header sparc/sol2.h when
11774 building on sparc64-*-openbsd*.
11776 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
11779 * dbxout.c (dbxout_type): Protected inheritance is not
11780 private but protected.
11782 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
11784 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
11786 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
11788 PR optimization/12508.
11789 * combine.c (try_combine): Remove a dead set in a parallel
11790 even if its destination is a subreg.
11793 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
11794 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
11795 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
11797 2004-01-12 Geoffrey Keating <geoffk@apple.com>
11799 * real.c: Update copyright date.
11800 * emit-rtl.c: Likewise.
11802 * dwarf2out.c: Likewise.
11803 * config/rs6000/darwin-ldouble.c: Likewise.
11804 * config/rs6000/rs6000.md: Likewise.
11806 2004-01-12 David Edelsohn <edelsohn@gnu.org>
11808 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
11809 TFmode to SImode libfuncs.
11811 2004-01-12 Roger Sayle <roger@eyesopen.com>
11813 PR middle-end/11397
11814 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
11816 2004-01-12 Jan Hubicka <jh@suse.cz>
11819 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
11823 * cfgcleanup.c (label_is_jump_target_p): Move to...
11824 * rtlanal.c (label_is_jump_target_p): ... here.
11825 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
11826 edges unified with branch edges.
11828 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
11830 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
11831 high word of an integral CONST_DOUBLE.
11833 2004-01-12 Paul Brook <paul@codesourcery.com>
11835 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
11837 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
11840 * sh-protos.h (check_use_sfunc_addr): Declare.
11841 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
11842 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
11844 2004-01-12 Jan Hubicka <jh@suse.cz>
11846 * alias.c: Invlude varray.h
11847 (alias_sets): Turn into varray.
11848 (get_alias_set_entry): Use VARRAY; mark inline.
11849 (mems_in_disjoint_alias_sets_p): Mark inline.
11850 (record_alias_subset): Use varray.
11851 (init_alias_once): Initialize varray.
11852 (new_alias_set): Grow array.
11853 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
11855 2004-01-12 Jan Hubicka <jh@suse.cz>
11857 Partial fix for PR opt/10776 II
11858 * cselib.c: Include params.h
11859 (cselib_invalidate_mem): Limit amount of nonconflicting memory
11861 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
11862 * Makefile.in (cselib.o): Depend on params.h
11864 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
11866 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
11867 simplify_unary_operation if the operand has a known mode.
11869 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
11872 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
11873 predicate to handle 'ld' conform addresses.
11874 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
11876 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
11877 are memory contraints.
11878 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
11880 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
11881 Change 'o' to 'Y' constraint.
11882 (*movdf_softfloat64): Ditto.
11884 2004-01-12 Bernardo Innocenti <bernie@develer.com>
11886 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
11887 brace-enclosed syntax in all C output statements.
11889 2004-01-12 David Edelsohn <edelsohn@gnu.org>
11892 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
11893 Objective-C language type value is 14.
11895 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
11898 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
11899 `int' in a number of places to make sure we always have a SImode
11900 and not a HImode. Add a 'L' suffix to a number of constants.
11902 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11904 * pa.c: Don't include obstack.h.
11906 * pa.md: Correct constraint in pattern for loading PIC label address.
11908 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
11910 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
11913 2004-01-11 Steven Bosscher <stevenb@suse.de>
11916 * toplev.c (rest_of_handle_inline): Also consider functions
11917 for deferral if the language is GNU F77.
11919 2004-01-11 Zack Weinberg <zack@codesourcery.com>
11921 * c-decl.c (diagnose_arglist_conflict): Add missing space to
11922 diagnostic messages.
11924 2004-01-11 Jakub Jelinek <jakub@redhat.com>
11926 PR middle-end/13392
11927 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
11928 to drop through label. Don't fall back to SCC even when conditional
11929 jump has not been found.
11931 2004-01-11 Jan Hubicka <jh@suse.cz>
11933 * invoke.texi: Fix syntax error in previous patch.
11935 Partial fix for PR opt/10776
11936 * Makefile.in (reload.o): Include param.h
11937 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
11938 * reload.c: Include params.h.
11939 (find_equiv_reg): Work limiting check.
11940 * invoke.texi: Document.
11942 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
11944 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
11945 out-of-bounds accesses to string constants. Simplify mips16
11948 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
11950 PR optimization/13469
11951 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
11952 reload_cse_regs (-fnon-call-exceptions only).
11954 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
11956 * config/mcore/lib1.asm: Fix comment formatting.
11957 * config/mcore/mcore-elf.h: Likewise.
11958 * config/mcore/mcore.c: Likewise.
11959 * config/mcore/mcore.h: Likewise.
11960 * config/mcore/mcore.md: Likewise.
11962 2004-01-10 Zack Weinberg <zack@codesourcery.com>
11964 * c-decl.c (duplicate_decls): Break apart into...
11965 (diagnose_arglist_conflict, validate_proto_after_old_defn)
11966 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
11967 ... these new functions. Restructure for comprehensibility.
11968 Remove various archaic special cases. Always report the
11969 location of the previous declaration when a diagnostic is issued.
11970 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
11971 (match_builtin_function_types): Delete unnecessary forward declaration.
11973 2004-01-10 Zack Weinberg <zack@codesourcery.com>
11975 * genautomata.c (make_automaton, NDFA_to_DFA):
11976 Print progress bars with '.' characters instead of '*'.
11977 (build_automaton): Change notes to match.
11979 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
11981 * config/m32r/m32r.md: Use define_constants for unspec and
11984 2004-01-10 Jan Hubicka <jh@suse.cz>
11987 * expr.c (expand_expr_real): More curefully expand union casts.
11989 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
11991 * config/m32r/m32r.md (flush_icache): Use 1 for
11994 2004-01-10 David Edelsohn <edelsohn@gnu.org>
11995 James E Wilson <wilson@specifixinc.com>
11998 * dbxout.c (dbxout_symbol): Remove initialization of
11999 current_sym_code, current_sym_value, and current_sym_addr.
12000 (dbxout_symbol_location): Same.
12001 (dbxout_prepare_symbol): Zero current_sym_code,
12002 current_sym_value, and current_sym_addr.
12004 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
12006 * tree.c (get_unwidened): Reorder conditions so that the null pointer
12007 check is done first.
12009 2004-01-09 Eric Christopher <echristo@redhat.com>
12011 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
12012 if we're running mark_constant_function.
12014 2004-01-09 Jeff Bailey <jbailey@nisa.net>
12017 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
12019 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
12022 * dbxout.c (dbxout_type_fields): Return if any item is
12023 error_mark_node or the type is error_mark_node.
12025 2004-01-09 Geoffrey Keating <geoffk@apple.com>
12027 * config/rs6000/darwin-ldouble.c: Add big comment explaining
12028 exactly what is expected as a 'long double'.
12029 (_xlqadd): When a value to be returned is representable as a
12030 'double', just return it directly, do not construct it using a union.
12031 Also, correct final fixup.
12032 (_xlqmul): Likewise.
12033 (_xlqdiv): Likewise.
12034 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
12036 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
12038 2004-01-09 Richard Henderson <rth@redhat.com>
12040 * recog.c (constrain_operands): Validate mem operands.
12042 2004-01-09 James E Wilson <wilson@specifixinc.com>
12044 * gcc.c (init_spec): Remove -lunwind from shared case.
12045 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
12047 2004-01-09 Steve Ellcey <sje@cup.hp.com>
12049 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
12050 * configure: Regenerate
12052 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
12055 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
12056 between function and object pointers.
12057 (digest_init): When comparing a pointer to function type to the
12058 target type, only apply TREE_TYPE once to the pointer to function
12060 * except.c (for_each_eh_label_1): Treat data as a pointer to a
12061 function pointer rather than casting it to a function pointer.
12062 (for_each_eh_label): Update caller.
12063 * recog.h (struct insn_data): Use a struct or union for output.
12064 * genoutput.c (output_insn_data): Update.
12065 * final.c (get_insn_template): Update.
12067 2004-01-09 Mark Mitchell <mark@codesourcery.com>
12069 * expr.h (expand_expr): Make it a macro, not a function.
12070 (expand_expr_real): New function.
12071 * expr.c (store_expr): Adjust logic for deciding whether or not to
12072 copy the value returned by expand_expr.
12073 (expand_expr): Rename to ...
12074 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
12075 calls to language hooks.
12076 * c-common.h (c_expand_expr): Adjust prototype.
12077 * c-common.c (c_expand_expr): Add alt_rtl parameter.
12078 * langhooks-def.h (lhd_expand_expr): Change prototype.
12079 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
12080 * langhooks.h (lang_hooks): Change type of expand_expr.
12081 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
12082 (last_expr_alt_rtl): Likewise.
12083 (expand_expr_stmt_value): Set last_expr_alt_rtl.
12084 (clear_last_expr): Clear it.
12085 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
12086 (expand_end_bindings): Save and restor last_expr_alt_rtl.
12087 * tree.def (RTL_EXPR): Give it an additional operand.
12088 * tree.h (RTL_EXPR_ALT_RTL): New macro.
12090 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12092 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
12093 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
12095 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
12098 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
12099 or (ne:SI (reg:CC 17) (const_int 0)).
12100 Be specific about modes wherever possible.
12102 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
12104 * config/m32r/m32r.c (m32r_expand_block_move): Call
12105 gen_movestrsi_internal with two more arguments.
12106 (m32r_output_block_move): Adjust operand numbers.
12107 Properly update the source and destination pointers.
12108 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
12109 'r+'. Change the set detinations to match_operand.
12111 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
12113 * final.c (FIRST_INSN_ADDRESS): Remove.
12114 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
12115 * system.h (FIRST_INSN_ADDRESS): Poison.
12116 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
12117 * config/m32r/m32r-protos.h: Remove the prototype for
12118 m32r_first_insn_address.
12119 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
12120 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
12121 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
12123 2004-01-09 J. Brobecker <brobecker@gnat.com>
12125 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
12127 (is_ada_subrange_type): DIEs for enumeration subtypes should be
12128 emitted as subrange types too.
12129 (subrange_type_die): Add handling of enumeration subtypes.
12131 2004-01-08 Richard Henderson <rth@redhat.com>
12134 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
12135 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
12136 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
12137 (ix86_address_cost): Be prepared for SUBREGed registers.
12138 (legitimate_address_p): Accept SUBREGed registers.
12140 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
12142 * Makefile.in: Rename configure.in to configure.ac
12143 * doc/sourcebuild.texi: Likewise.
12144 * configure: Regenerate.
12145 * config.in: Regenerate.
12147 2004-01-08 Stuart Hastings <stuart@apple.com>
12149 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
12151 2004-01-08 Jan Hubicka <jh@suse.cz>
12153 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
12155 2004-01-08 Geoffrey Keating <geoffk@apple.com>
12157 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
12158 (UNSPEC_FIX_TRUNC_TF): New constant.
12159 (movtf_internal): Make splitter active only when insn is active.
12160 (extenddftf2): Rewrite to properly load zero into low part.
12161 (extenddftf2_internal): New.
12162 (extendsftf2): Rewrite.
12163 (truncdftf2): Correct length.
12164 (floatditf2): Delete.
12165 (fix_trunc_helper): New.
12166 (fix_trunctfdi2): Use fix_trunc_helper.
12167 (fix_trunctfsi2): Likewise.fix_trunc
12168 (fix_trunctfsi2_internal): New.
12170 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
12171 addresses are legitimate on Darwin even when flag_pic.
12172 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
12173 non-offsettable addresses for loads of TFmode constants.
12175 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12177 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
12178 variables in the appropriate bss section.
12180 2004-01-09 Alan Modra <amodra@bigpond.net.au>
12182 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
12183 target_flags has MASK_POWERPC64 when -m64.
12184 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
12185 to 620, 630, power3, power4 and rs64a entries.
12186 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
12188 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
12190 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
12191 floating-point constants.
12193 2004-01-08 J. Brobecker <brobecker@gnat.com>
12195 * dwarf2out.c (subrange_type_die): Add context_die parameter.
12196 Create the subrange_type DIE using the given context DIE.
12197 (modified_type_die): Update call to subrange_type_die.
12199 2004-01-08 Zack Weinberg <zack@codesourcery.com>
12201 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
12202 Add multiple-include guard.
12204 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
12206 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
12207 all vector constant loadable by vsplt*.
12208 (output_vec_const_move): Likewise.
12210 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
12213 * c-typeck.c (comptypes): Only treat enumerated types in the same
12214 translation unit as compatible with each other when they are the
12216 * doc/extend.texi: Update.
12218 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
12221 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
12222 array type from the array element type.
12224 2004-01-07 Alan Modra <amodra@bigpond.net.au>
12226 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
12227 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
12228 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
12229 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
12230 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
12232 2004-01-06 Eric Christopher <echristo@redhat.com>
12234 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
12235 (DWARF2_DEBUGGING_INFO): Define.
12236 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
12237 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
12238 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
12240 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
12241 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
12242 * config/mips/iris5gas.h: Ditto.
12243 (DBX_DEBUGGING_INFO): Remove.
12244 (DWARF2_DEBUGGING_INFO): Ditto.
12245 (MIPS_DEBUGGING_INFO): Ditto.
12246 (PREFERRED_DEBUGGING_TYPE): Ditto.
12247 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
12248 (PREFERRED_DEBUGGING_TYPE): Ditto.
12249 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
12250 * config/mips/elf64.h: Ditto.
12252 2004-01-06 Jan Hubicka <jh@suse.cz>
12254 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
12255 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
12257 2004-01-06 Geoffrey Keating <geoffk@apple.com>
12259 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
12260 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
12261 * config/rs6000/darwin-ldouble.c: New.
12263 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
12265 (constant_subword): Delete.
12266 * rtl.h (constant_subword): Delete prototype.
12267 (immed_double_const): Is not in varasm.c.
12268 * simplify-rtx.c (simplify_immed_subreg): New.
12269 (simplify_subreg): Use simplify_immed_subreg.
12271 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
12272 than trying to generate RTL directly.
12273 (fix_trunctfsi2): Use expand_fix rather than trying to generate
12276 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
12278 2004-01-06 David Edelsohn <edelsohn@gnu.org>
12280 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
12281 function into a separate macro.
12282 (read_only_data_section): Add void argument.
12283 (private_data_section): Same.
12284 (read_only_private_data_section): Same.
12285 (toc_section): Same.
12287 2004-01-06 Jan Hubicka <jh@suse.cz>
12289 * invoke.texi: Remove typo in last change.
12292 * config.gcc: Accept opteron and athlon-64 as variants
12294 * i386.c (override_options): Likewise.
12295 * invoke.texi (i386 -mtune): Expand documentation.
12297 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
12299 * alias.c: Fix comment typos.
12300 * builtins.c: Likewise.
12303 * dominance.c: Likewise.
12304 * dwarf2out.c: Likewise.
12305 * emit-rtl.c: Likewise.
12306 * expr.c: Likewise.
12307 * final.c: Likewise.
12308 * fold-const.c: Likewise.
12309 * gcse.c: Likewise.
12310 * genattrtab.c: Likewise.
12311 * genrecog.c: Likewise.
12312 * gensupport.c: Likewise.
12313 * ggc-zone.c: Likewise.
12314 * integrate.c: Likewise.
12315 * local-alloc.c: Likewise.
12316 * loop.c: Likewise.
12317 * recog.c: Likewise.
12318 * regmove.c: Likewise.
12319 * reg-stack.c: Likewise.
12320 * reorg.c: Likewise.
12321 * rtlanal.c: Likewise.
12323 * sched-ebb.c: Likewise.
12324 * simplify-rtx.c: Likewise.
12325 * toplev.c: Likewise.
12326 * varasm.c: Likewise.
12328 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
12330 * doc/install.texi: Fix typos.
12331 * doc/invoke.texi: Likewise.
12332 * doc/md.texi: Likewise.
12334 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
12336 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
12338 2004-01-06 Jan Hubicka <jh@suse.cz>
12340 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
12341 (function_arg_advance): Do not pass aggregates in SSE; deal handling
12343 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
12345 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
12346 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
12347 (MMX_REGPARM_MAX): Similarly for -mmmx.
12349 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
12351 * config/sh/linux.h: Fix comment formatting.
12352 * config/sh/netbsd-elf.h: Likewise.
12353 * config/sh/sh.c: Likewise.
12354 * config/sh/sh.h: Likewise.
12355 * config/sh/vxworks.h: Likewise.
12357 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
12359 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
12360 * toplev.c (output_file_directive): Don't use
12361 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
12363 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
12365 * toplev.c: Fix broken checkin of 2003-12-30.
12367 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
12369 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
12370 (USING_MMAP): We don't support non-mmap.
12371 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
12373 (struct page_entry): Remove bytes_free.
12374 (struct page_table_chain): Remove.
12375 (struct globals): Remove page_table member.
12376 (loookup_page_table_entry): Function deleted.
12377 (set_page_table_entry): Ditto.
12378 (ggc_allocated_p): No longer need page table lookups.
12379 (ggc_marked_p): Ditto.
12380 (alloc_small_page): Don't care about bytes_free anymore.
12381 (alloc_large_page): Round up size.
12382 (ggc_alloc_zone_1): Mark large objects as such, and calculate
12383 their size the new way.
12384 Remove page table lookups and setting.
12385 (ggc_get_size): Calculate large object size the new way.
12386 (sweep_pages): Redo to account for fact that we no longer have
12388 (ggc_collect): No longer need to reincrement bytes_free.
12389 (ggc_pch_alloc_object): Handle new large objects properly.
12390 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
12392 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
12394 * doc/invoke.texi: Remove a page break.
12396 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
12398 * config/avr/avr.c (avr_output_function_prologue): Remove an
12399 extra pair of curly braces.
12401 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
12403 * config/mn10300/mn10300.c: Fix comment formatting.
12404 * config/mn10300/mn10300.h: Likewise.
12406 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12408 * tree.h: Update documentation on nothrow_flag.
12409 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
12412 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
12414 * doc/invoke.texi: Remove traces of dead ports.
12416 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
12418 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
12421 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
12424 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
12426 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
12427 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
12428 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
12429 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
12430 (mips_symbol_insns): Don't trust the local/global classification.
12431 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
12432 (override_options): Make -mabicalls -fno-unit-at-a-time imply
12433 -mno-explicit-relocs.
12434 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
12435 between local and global symbols.
12437 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
12439 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
12440 (mips_preferred_reload_class): Declare.
12441 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
12442 (EXTRA_CONSTRAINT): Update accordingly.
12443 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
12444 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
12445 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
12446 mips_dangerous_for_la25_p.
12447 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
12448 if mips_dangerous_for_la25_p.
12450 2004-01-05 Bernardo Innocenti <bernie@develer.com>
12452 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
12455 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
12457 * configure.ac: Use AC_PROG_CPP_WERROR.
12458 * configure: Regenerate.
12460 2004-01-04 Zack Weinberg <zack@codesourcery.com>
12462 * .cvsignore: Add autom4te.cache.
12464 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
12466 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
12467 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
12468 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
12469 then architecture options, then ABI options. General rewording.
12471 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
12474 * doc/extend.texi: Clarify definition of malloc attribute.
12476 2004-01-04 Jan Hubicka <jh@suse.cz>
12478 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
12479 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
12480 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
12481 (cgraph_inline_p): Add extra argument reason.
12482 * cgraphunit.c: Minor formating fixes.
12483 cgraph_first_inlined_callee): New functions.
12484 (record_call_1): Record builtins too.
12485 (cgraph_analyze_function): Update inline_failed messages.
12486 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
12487 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
12488 (cgraph_check_inline_limits): Likewise; Add argument reason.
12489 (cgraph_set_inline_failed): New static function.
12490 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
12492 (cgraph_inline_p): Add new argument reason.
12493 * tree-inline.c (expand_call_inline): Update warning.
12495 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
12497 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
12498 with modern equivalents.
12499 * configure: Regenerate.
12501 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
12502 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
12503 * configure: Regenerate.
12505 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
12507 * configure.in: Rename to configure.ac.
12508 * configure.ac: Renamed from configure.in; make minimum necessary
12509 changes for autoconf 2.5x.
12510 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
12511 * configure: Regenerate with autoconf 2.57.
12513 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
12515 * config/mips/linux.h: Fix comment formatting.
12516 * config/mips/mips.c: Likewise.
12517 * config/mips/mips.h: Likewise.
12518 * config/mips/mips.md: Likewise.
12519 * config/mips/netbsd.h: Likewise.
12520 * config/mips/windiss.h: Likewise.
12522 2004-01-02 Richard Henderson <rth@redhat.com>
12524 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
12525 for sse and 387; add suppression for mmx.
12527 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
12529 * loop.c (loop_optimize): Free all loops_info's mems.
12531 * c-typeck.c (finish_init): Free spelling_base before
12534 * cfgloop.c (flow_loops_find): Always free the sbitmap
12537 * predict.c (estimate_probability): Free bbs after being
12540 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
12542 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
12543 const_8bit_operand and call_address_operand.
12545 2004-01-02 Jan Hubicka <jh@suse.cz>
12547 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
12548 when there is nothing to inline but warnings are requested.
12549 (cgraph_decide_inlining): Fix memory leak.
12551 2004-01-02 Jan Hubicka <jh@suse.cz>
12553 * expr.c (store_constructor): Fix pasto in previous patch.
12555 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
12557 * config/i386/cygming.h: Fix comment formatting.
12558 * config/i386/djgpp.h: Likewise.
12559 * config/i386/gthr-win32.c: Likewise.
12560 * config/i386/i386-interix.h: Likewise.
12561 * config/i386/i386.c: Likewise.
12562 * config/i386/i386.h: Likewise.
12563 * config/i386/openbsd.h: Likewise.
12564 * config/i386/winnt.c: Likewise.
12565 * config/i386/xm-mingw32.h: Likewise.
12567 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
12569 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
12570 copyright and last modification dates.
12572 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
12574 * doc/install.texi (Specific): Mention x86_64.
12576 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
12578 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
12579 Call force_operand on plus_constant result.
12581 2004-01-01 Jan Hubicka <jh@suse.cz>
12583 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
12584 * expr.c (store_constructor): Use vec_init pattern.
12585 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
12586 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
12587 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
12588 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
12590 (sse2_unpc?pd): Fix pattern.
12591 (sse2_movlpd): Kill.
12592 (sse2_movsd): Deal with movlpd too.
12593 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
12594 (ix86_expand_vector_init): New.
12595 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
12596 * md.texi (vec_set, vec_extract): Document
12598 2003-12-31 Jan Hubicka <jh@suse.cz>
12601 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
12605 * toplev.c (dump_file_index): Reorder ce3 and bbro.
12606 (dump_file): Likewise.
12607 (rest_of_compilation): Likewise.
12610 * cgraph.c (cgraph_function_possibly_inlined): Even with
12611 flag_really_no_inline we inline always_inline functions.
12612 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
12613 for non-always_inline functions when there is flag_really_no_inline.
12614 (cgraph_decide_inlining): Limit work done when not inlining.
12615 (cgraph_decide_inlining_incrementally): Likewise.
12616 (cgraph_optimize_function): Check whether something got inlined.
12617 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
12618 extern inline functions when not inlining.
12620 * opts.c (decode_options): Disable crossjumping at -O1
12621 * invoke.texi (-O1): Document change.
12623 See ChangeLog.10 for earlier changes.