1 2004-04-30 Paolo Bonzini <bonzini@gnu.org>
3 * config/altivec/altivec.h [__cplusplus] (vec_subsubs): Rename to
5 [__cplusplus] (vec_subsuhs): Rename to vec_subuhs, without
8 2004-04-30 Uros Bizjak <uros@kss-loka.si>
10 * config/i386/i386.md (atansf2, atandf2, atanxf2): Move near
13 2004-04-29 Nick Clifton <nickc@redhat.com>
16 * config/sh/sh-protos.h (sh_promote_prototypes): Declare.
17 * config/sh/sh.c (sh_promote_prototypes): Remove declaration.
18 Delete static from definition.
19 * config/sh/sh.h (FUNCTION_VALUE): Add sh_promote_prototypes call.
21 2004-04-30 Uros Bizjak <uros@kss-loka.si>
23 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
24 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
25 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
26 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
28 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
30 * commom.opt (Wfatal-errors): Add it.
31 * diagnostic.c (flag_fatal_errors): Define it.
32 (diagnostic_action_after_output): Check for flag_fatal_errors.
33 * flags.h (flag_fatal_errors): Declare it.
34 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
35 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
37 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
39 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
40 blocks which have kill flag set.
42 2004-04-29 Ben Elliston <bje@au.ibm.com>
44 * configure.ac (--with-as): Abort if user-supplied assembler
46 (--with-ld): Likewise for the linker.
47 * configure: Regenerate.
49 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
51 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
52 isn't NULL before using it.
54 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
57 * config/mips/mips.md (load_df_low): Use default length.
58 (load_df_high, store_df_high): Likewise.
60 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
62 * config/mips/mips.md, config/mips/sb1.md,
63 config/rs6000/rs6000.c: Fix comment typos.
65 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
67 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
70 2004-04-29 Douglas B Rupp <rupp@gnat.com>
72 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
73 (delete_if_ordinary): Use above macro.
74 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
76 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
78 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
80 * c-decl.c (get_parm_info): Use the correct tag keywords when
81 warning about type declarations in prototypes.
83 2004-04-29 Paul Brook <paul@codesourcery.com>
85 * config.gcc: Pull list of cores from arm-cores.def.
87 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
89 * combine.c (combine_simplify_rtx): Adjust call to use
90 simplify_relational_operation. Do not use SELECT_CC_MODE
91 when a comparison already has a MODE_CC mode.
93 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
95 (simplify_set): simplify_relational_operation may now
96 return another relational expression.
97 * cse.c (fold_rtx): simplify_relational_operation now
98 takes of computing the comparison mode.
99 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
101 (do_compare_rtx_and_jump): Likewise.
102 * integrate.c (subst_constants): simplify_relational_operation
103 may now return another relational expression.
104 * simplify-rtx.c (simplify_gen_relational): Move most code to
105 the new simplify_relational_operation and
106 simplify_relational_operation_1 functions.
107 (simplify_relational_operation): Rewritten.
108 (simplify_relational_operation_1): New function.
109 (simplify_ternary_operation): simplify_relational_operation
110 may now return another relational expression.
111 (simplify_rtx): Remove unnecessary temp variable.
113 2004-04-29 Uros Bizjak <uros@kss-loka.si>
115 * reg-stack.c (swap_to_top): New function.
116 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
118 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
119 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
122 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
123 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
124 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
126 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
127 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
130 2004-04-28 Serge Belyshev <1319@bot.ru>
133 * coverage.c (read_counts_file): Fix usage of warning () call.
134 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
136 2004-04-28 Ben Elliston <bje@au.ibm.com>
138 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
139 options with "-" in the option index.
140 (SPARC Options): Likewise.
141 (M32R/D Options): Likewise.
143 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
145 * convert.c (convert_to_integer): Convert (long)round -> lround,
148 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
150 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
151 Return false if we do not have fp register.
152 (addrs_ok_for_quad_peep): Rename to ...
153 (mems_ok_for_quad_peep): this.
154 Add check for volatile memory.
155 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
157 (mems_ok_for_quad_peep): this.
158 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
160 (lfq_power2): New instruction.
161 (stfq_power2): Likewise.
163 2004-04-28 Jan Hubicka <jh@suse.cz>
166 * function.c (do_warn_unused_parameter): Break out form ...
167 (expand_function_end): ... here; warn only when not using cgraphunit.
168 * function.h (do_warn_unused_parameter): Declare.
169 * cgraphunit.c: Include function.h.
170 (cgraph_finalize_function): Do unused parameter warning.
171 * Makefile.in (cgraphunit.o): Depend on function.h
173 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
175 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
176 calling install-info on $(DESTDIR)$(infodir)/dir already being
179 2004-04-28 Paul Brook <paul@codesourcery.com>
181 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
183 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
185 * gcse.c (find_moveable_store): Do not accept store insns with
188 2004-04-28 Paul Brook <paul@codesourcery.com>
190 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
191 * function.c (assign_temp): Ditto.
192 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
194 2004-04-28 Paul Brook <paul@codesourcery.com>
196 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
198 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
200 * var-tracking.c (variable_different_p): Add a parameter
201 compare_current_location, compare current location of variable parts
203 (dataflow_set_different_1): Pass compare_current_location == false.
204 (dataflow_set_different_2): Pass compare_current_location == false.
205 (emit_notes_for_differences_1): Pass compare_current_location == true.
207 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
209 * config/s390/s390.md ("casesi"): Mark jump table access as
210 non-trapping and unchanging.
212 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
215 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
217 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
218 number for indexing hard_regno_nregs array.
220 2004-04-27 Geoffrey Keating <geoffk@apple.com>
222 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
223 * config/darwin-crt2.c: Only have contents on __ppc__.
225 2004-04-27 Bob Wilson <bob.wilson@acm.org>
227 * config/xtensa/xtensa.c (call_insn_operand): Check
228 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
229 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
230 * config/xtensa/xtensa.md (call, call_value): Likewise.
232 2004-04-27 Wu Yongwei <adah@sh163.net>
234 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
235 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
236 (__gthread_mutex_init_function): Replace CreateMutex with
237 initialization of custom mutex using CreateSemaphore.
238 (__gthread_mutex_lock): Use InterlockedIncrement.
239 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
240 (__gthread_mutex_unlock): Use InterlockedDecrement and
241 ReleaseSemaphore to unlock
242 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
243 __gthread_mutex_lock, __gthread_mutex_trylock,
244 __gthread_mutex_unlock): Adjust to match inline versions in
247 2004-04-27 Paul Brook <paul@codesourcery.com>
249 * config/arm/arm.c (arm_promote_prototypes): New function.
250 (TARGET_PROMOTE_PROTOTYPES): Use it.
252 2004-04-27 Paul Brook <paul@codesourcery.com>
254 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
256 2004-04-26 Bernard Giroud <bgiroud@free.fr>
258 * config/alpha.c (alpha_end_function): For OpenVMS gas,
259 correctly output .pdesc directive before .end.
261 2004-04-26 James E Wilson <wilson@specifixinc.com>
264 * config/ia64/ia64.md (movxf): New local op0. Handle case where
265 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
267 2004-04-26 Zack Weinberg <zack@codesourcery.com>
269 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
270 * config/pa/pa-hpux10.h: Likewise.
271 * config/pa/pa-hpux11.h: Likewise.
273 2004-04-26 Geoffrey Keating <geoffk@apple.com>
275 * doc/invoke.texi (Overall Options): Document default for -o
278 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
280 * builtins.c (expand_builtin_update_setjmp_buf): New function.
281 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
282 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
284 2004-04-26 Paul Brook <paul@codesourcery.com>
286 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
288 2004-04-26 Paul Brook <paul@codesourcery.com>
290 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
292 2004-04-25 Roger Sayle <roger@eyesopen.com>
294 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
295 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
298 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
301 * except.c (connect_post_landing_pads): Delete insns after the
302 barrier when generating a unwind_resume_libfunc call.
304 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
307 * tree.c (substitute_placeholder_in_expr, case 4): New case,
310 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
312 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
313 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
314 inhibit_libc is defined.
316 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
318 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
319 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
320 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
321 (TARGET_SCHED_VARIABLE_ISSUE): Define.
322 (mips_adjust_cost): Move later in file, next to other sched hooks.
323 (mips_macc_chains_last_hilo): New variable.
324 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
325 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
326 * config/mips/mips.md (may_clobber_hilo): New attribute.
328 2004-04-24 Roger Sayle <roger@eyesopen.com>
329 Bruce Korb <bkorb@gnu.org>
331 * fixinc/inclhack.def (aix_syswait_2): New fix.
332 * fixinc/fixincl.x: Regenerate.
333 * fixinc/tests/base/sys/wait.h: Update for new test.
335 2004-04-24 Alan Modra <amodra@bigpond.net.au>
338 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
339 to non_fixed_size, and leave out fixed_size from the sum.
340 (generate_set_vrsave): Correct clobbers.
341 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
342 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
343 (rs6000_libcall_value): Likewise.
344 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
345 (FUNCTION_ARG_REGNO_P): Likewise.
347 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
349 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
351 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
352 with NARROW_OP1 instead of OP1.
354 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
356 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
359 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
361 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
362 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
363 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
364 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
365 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
366 * builtins.c (expand_builtin_fork_or_exec): New.
367 (expand_builtin): Call it.
368 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
369 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
370 * c-common.c (PID_TYPE): New macro.
371 (c_common_nodes_and_builtins): Initialize pid_type_node.
372 * calls.c (special_function_p): Do not handle fork and exec.
373 (expand_call): Do not handle ECF_FORK_OR_EXEC.
374 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
375 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
376 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
377 __gcov_execv, __gcov_execvp, __gcov_execve): New.
378 * tree.h (enum tree_index): Add TI_PID_TYPE.
379 (pid_type_node): New macro.
380 (ECF_FORK_OR_EXEC): Removed.
382 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
384 PR optimization/13985
385 * cfgloopmanip.c (fix_loop_placements): New prototype.
386 Call fix_bb_placements on the preheader of loops that have
388 (remove_path): Adjust call to fix_loop_placements.
390 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
392 * config/darwin7.h: New file.
393 * config.gcc (*-*-darwin*): Add darwin7.h if the
394 version is greater than 6.
395 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
396 (MATH_LIBRARY): Wrap in ifdefs.
398 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
400 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
401 loading iWMMXt registers with a frame pointer. Use post-increment
402 without a frame pointer.
403 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
405 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
407 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
408 mode" rather than "-funit-at-a-time" since -O2 enables it
409 without requiring -f* options. Refer to -fprofile-generate and
410 -fprofile-use correctly. Move -funit-at-a-time among options
411 enabled by -O. Add information about unit-at-a-time caveats.
413 2004-04-22 Per Bothner <per@bothner.com>
415 * line-map.h (struct line_maps): New field highest_line.
416 (linemap_position_for_column): Make non-inline function.
417 (LINEMAP_POSITION_FOR_COLUMN): New macro.
418 * line-map.c (linemap_init): Clear highest_line field.
419 (linemap_add): Set highest_line field.
420 (linemap_line_start): Minor optimization - use highest_line field.
421 Reduce maximum column hint to 10000. Update highest_line field.
422 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
423 * cpphash.h (struct cpp_reader): Remove line field - instead use
424 line_table->highest_line.
425 (saved_line): Remove unused field.
426 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
427 Use line_table's highest_line field instead of cpp_reader's line.
428 * cpplib.c (start_directive): Likewise use highest_line field.
429 (do_line, do_linemarker): Likewise just use newest map.
430 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
431 * cpperror.c (cpp_error): Likewise use highest_line field.
432 * cppfiles.c (open_file_failed: Likewise.
433 (cpp_make_system_header): Likewise use newest map and highest_line.
434 * cppinit.c (cpp_create_reader): Don't initialize removed field.
435 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
436 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
437 _cpp_lex_direct): Likewise use highest_line.
438 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
439 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
441 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
442 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
443 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
445 2004-04-23 Alan Modra <amodra@bigpond.net.au>
448 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
449 * config/linux.h (USE_LD_AS_NEEDED): Define.
450 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
451 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
452 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
453 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
454 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
455 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
456 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
458 2004-04-22 Per Bothner <per@bothner.com>
460 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
461 Fixes PR preprocessor/15067.
463 2004-04-23 Andreas Schwab <schwab@suse.de>
465 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
466 avoid aliasing warning.
468 2004-04-22 Jan Hubicka <jh@suse.cz>
469 Mostafa Hagog <mustafa@il.ibm.com>
471 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
472 * cfgloopanal.c (expected_loop_iterations): Change the return value
474 2004-04-22 Jakub Jelinek <jakub@redhat.com>
476 * cselib.h (struct elt_loc_list): Remove canon_loc field.
477 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
478 (cselib_invalidate_mem): Remove all canon_loc and canon_x
481 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
484 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
486 * var-tracking.c (variable_part_different_p): Variable parts
487 differ when the most recent locations differ.
489 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
491 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
492 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
493 (embedded_pic_offset): Delete.
494 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
496 (TARGET_EMBEDDED_PIC): Delete.
497 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
498 (ASM_SPEC): Remove -membedded-pic.
499 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
500 (ASM_OUTPUT_CASE_LABEL): Likewise.
501 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
502 * config/mips/windiss.h (ASM_SPEC): Likewise.
503 * config/mips/mips.c (struct machine_function): Remove
504 embedded_pic_fnaddr_rtx.
505 (TARGET_ENCODE_SECTION_INFO): Remove override.
506 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
507 (override_options): Remove -membedded-pic handling.
508 (print_operand): Remove handling of '%S'.
509 (mips_select_section: Remove -membedded-pic handling.
510 (mips_encode_section_info): Delete.
511 (mips_output_conditional_branch): Remove mention of -membedded-pic.
512 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
513 -membedded-pic handling.
514 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
516 2004-04-22 Alan Modra <amodra@bigpond.net.au>
518 * var-tracking.c (frame_base_decl): Remove useless GTY.
520 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
522 * config/rs6000/rs6000.c (rs6000_override_options): Error when
523 user wants altivec and e500 instructions.
525 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
528 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
529 in .init_array section to ...
530 * config/ia64/crtbegin.asm: Here.
532 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
533 and hidden if HAVE_INITFINI_ARRAY is defined.
535 2004-04-21 James E Wilson <wilson@specifixinc.com>
537 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
538 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
539 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
540 (fp_register_operand, lo_operand): New.
541 (mips_rtx_costs): Add TUNE_SB1 support.
542 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
543 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
544 (mips_multipass_dfa_lookahead): New.
545 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
547 (TARGET_SWITCHES): Add -mfp-exceptions support.
548 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
549 (BRANCH_COST): Fix whitespace.
550 * config/mips/mips.md: Include sb1.md.
551 * config/mips/sb1.md: New file.
552 * doc/invoke.texi: Document -mfp-exceptions.
554 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
556 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
557 (fixincl.o-warn): Delete.
559 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
561 * config/rs6000/rs6000 (print_operand) ['z']:
562 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
564 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
566 * config.gcc: Support --with-arch=iwmmxt for ARM.
568 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
570 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
571 in two more places; remove unneeded force_reg
573 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
575 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
577 (print_operand): For TARGET_MACHO check to see if we need a stub
578 and output one if we need it.
581 * dwarf2out.c (rtl_for_decl_location): Check for NULL
584 2004-04-20 James E Wilson <wilson@specifixinc.com>
586 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
587 (vall_value_gp): Likewise.
589 2004-04-20 DJ Delorie <dj@redhat.com>
591 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
592 variables stored in word registers, then in memory.
594 2004-04-20 Eric Christopher <echristo@redhat.com>
596 * cp/parser.c (cp_parser_declaration): Move translate
597 up before tokens are lexed.
599 2004-04-20 Uros Bizjak <uros@kss-loka.si>
601 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
602 (asin_optab, acos_optab): Define corresponding macros.
603 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
604 * genopinit.c (optabs): Implement asin_optab and acos_optab
605 using asin?f2 and acos?f2 patterns.
606 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
607 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
608 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
609 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
611 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
612 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
613 acos, acosf and acosl built-ins as inline x87 intrinsics.
615 2004-04-20 Paul Brook <paul@codesourcery.com>
617 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
619 2004-04-20 Paul Brook <paul@codesourcery.com>
621 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
623 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
625 Revert part of 2004-04-17 change that moved -frename-registers
626 to -O1. -frename-registers is buggy.
628 * toplev.c (flag_rename_registers): Initialize to 0.
629 * doc/invoke.texi (Optimize options): Move -frename-registers
630 to "Not triggered by any -O level" section. Adjust commentary
633 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
635 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
637 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
639 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
640 for mflo and mfhi instructions.
641 (mips_output_move): Remove mflo and mfhi handling.
642 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
643 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
644 Likewise various define_peephole2s.
645 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
647 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
648 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
649 (mfhilo_di, mfhilo_si): New patterns.
651 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
653 * function.c (assign_parms): Force
654 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
656 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
658 * var-tracking.c (variable_part_different_p): Variable parts differ
659 when the most recent locations differ.
661 2004-04-19 James E Wilson <wilson@specifixinc.com>
663 * rtl.h (reg_set_last): Delete declaration.
664 * rtlanal.c (reg_set_last): Delete.
666 2004-04-19 Roger Sayle <roger@eyesopen.com>
668 * fold-const.c (fold_convert): Make function extern/public.
669 * tree.h (fold_convert): Prototype here.
670 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
671 expand_builtin_strrchr, expand_builtin_strpbrk,
672 expand_builtin_mempcpy, expand_builtin_bcopy,
673 expand_builtin_bzero, expand_builtin_memcmp,
674 expand_builtin_strcmp, expand_builtin_strncmp,
675 stabilize_va_list, expand_builtin_sprintf,
676 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
677 fold_builtin_exponent, fold_builtin_mempcpy,
678 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
679 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
680 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
682 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
684 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
685 (move_from_CR_gt_bit): New.
686 (cceq_ior_compare): Name previously unnamed pattern. Disable for
688 (cceq_rev_compare): Name previously unnamed pattern. Allow for
691 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
697 (e500_cceq_ior_compare): New.
698 (e500_flip_gt_bit): New.
700 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
701 (print_operand): Add 'c' and 'D'.
702 (rs6000_generate_compare): Rewrite to generate correct rtl.
703 (rs6000_emit_sCOND): Handle E500.
704 (output_cbranch): Adjust for changes in rs6000_generate_compare.
705 (output_e500_flip_gt_bit): New.
707 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
710 2004-04-19 Eric Christopher <echristo@redhat.com>
712 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
714 2004-04-19 David Edelsohn <edelsohn@gnu.org>
716 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
719 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
721 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
724 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
726 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
727 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
729 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
731 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
732 (fold_builtin): Update caller to match.
735 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
738 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
740 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
742 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
744 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
745 (expand_mult_highpart_optab): Likewise.
746 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
748 2004-04-19 Paul Brook <paul@codesourcery.com>
750 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
751 floatunssisf2, floatunssidf2): New patterns.
753 2004-04-18 Mark Mitchell <mark@codesourcery.com>
756 * doc/invoke.texi (-fprofile-generate): Document requirement to
757 use -fprofile-generate when linking.
759 * doc/extend.texi (Strong Using): Warn users against using this
762 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
764 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
765 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
766 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
767 * config/mips/mips.c (struct mips16_constant): Renamed from struct
768 constant. Propogate change throughout file.
769 (struct machine_function): Remove insns_len.
770 (mips_string_length, mips16_strings, string_constants): Delete.
771 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
772 when generating mips16 code. Remove special mips16 treatment of
774 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
775 to have the form LABEL+CONSTANT.
776 (mips_symbolic_address_p): Fix comment.
777 (m16_usym8_4, m16_usym5_4): Delete.
778 (mips_output_function_epilogue): Remove mips16 string handling.
779 (mips_output_mi_thunk): Call mips16_lay_out_constants.
780 (mips_select_section, mips_encode_section_info): Remove mips16
782 (struct mips16_constant_pool): New.
783 (add_constant): Take a mips16_constant_pool structure. Keep pool
784 sorted into order of ascending mode size. Keep track of the highest
785 possible start address, taking padding and the masking of the base PC
787 (dump_constants_1): New function, split out from dump_constants.
788 Handle vector constants. Use gen_consttable_{int,float} rather than
789 separate functions for each mode.
790 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
791 rather than separate functions for each alignment.
792 (mips_find_symbol): Delete.
793 (mips16_insn_length): New function, split out from
794 mips16_lay_out_constants.
795 (mips16_rewrite_pool_refs): New function.
796 (mips16_lay_out_constants): Rework. Remove string handling.
797 Always create an inline constant pool.
798 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
799 (UNSPEC_ALIGN): New constants.
800 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
801 (UNSPEC_ALIGN_[248]): Delete.
802 (consttable_int, consttable_float, align): New patterns.
803 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
805 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
807 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
810 2004-04-17 Alan Modra <amodra@bigpond.net.au>
813 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
814 with STARTING_FRAME_OFFSET.
816 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
818 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
819 * config/mips/mips.c (macc_msac_operand): New function.
820 * config/mips/mips.md (*msac): Move after *macc.
821 (*msac2): New. Generalize macc-related peepholes so that they apply
824 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
826 * opts.c (decode_options): Do not enable flag_rename_registers
828 * toplev.c (flag_rename_registers): Initialize
829 flag_rename_registers and flag_web to
830 AUTODETECT_FLAG_VAR_TRACKING.
831 (default_debug_hooks): New global.
832 (process_options): Initialize default_debug_hooks. Warn if
833 -fvar-tracking specified but not supported by the current
834 debug format. Do not run var tracking at -O0 or if not
835 supported by the current debug format, even if
836 -fvar-tracking was given. If -fno-rename-registers
837 is not specified, always run register renaming if var
838 tracking is supported by the default debugging information
839 format for the target, and we are at -O1 or higher; similarly
840 for -fweb, but only at -O2 or higher.
841 * doc/invoke.texi (Optimize Options): Document this.
843 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
845 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
846 * configure: Regenerate.
848 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
850 * gcc.c (used_arg): Check whether an option has been removed.
852 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
854 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
855 debugging on Solaris 7 and up.
857 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
859 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
861 Remove -save-temps workaround, handled automatically.
862 Require GNU binutils 2.15 for debugging.
863 Remove SGI make warnings since GNU make is now required.
864 (Specific, mips-sgi-irix6): Some markup fixes.
865 Describe MIPSpro C problems and workarounds.
866 Mention working O32 ABI support.
867 Recommend GNU as 2.15 for O32 with debugging.
868 Remove description of fixed structure pass/return bug.
870 2004-04-16 DJ Delorie <dj@redhat.com>
872 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
874 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
876 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
878 * pa.md: Remove unnecessary declarations for asm_out_file.
880 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
881 SAR register. Fix comment.
882 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
885 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
887 2004-04-16 Nick Clifton <nickc@redhat.com>
889 * config/arm/arm.c (arm_override_options): Revert previous patch.
890 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
893 2004-04-16 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
895 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
897 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
898 TARGET_DEFAULT): Changed. Ditto.
899 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
900 TARGET_ENDIAN_DEFAULT): Added. Ditto.
901 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
902 (TARGET_ENDIAN_DEFAULT): Added.
904 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
906 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
907 ATTR_CONST_NOTHROW_LIST.
909 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
912 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
915 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
917 * ra-debug.c (ra_print_rtx): Add break's to case legs.
919 2004-04-14 James E Wilson <wilson@specifixinc.com>
921 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
923 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
925 * libada-mk.in: New file.
926 * configure.ac: Create libada-mk from libada-mk.in.
927 * configure: Regenerate.
929 2004-04-14 Uros Bizjak <uros@kss-loka.si>
931 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
932 (logb_optab, ilogb_optab): Define corresponding macros.
933 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
934 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
935 using logb?f2 and ilogb?i2 patterns.
936 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
937 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
938 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
939 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
941 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
942 and UNSPEC_XTRACT_EXP.
944 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
945 patterns to implement fxtract x87 instruction.
946 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
947 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
949 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
952 2004-04-14 Eric Christopher <echristo@redhat.com>
954 * config/mips/t-elf: Enable multilibs by default.
956 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
958 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
959 previous fix to check HAVE_return at runtime too.
961 2004-04-14 Nick Clifton <nickc@redhat.com>
963 * config/arm/arm.c (arm_override_options): If the user has not
964 specified an ABI, then default to AAPCS for the iWMMXt processor.
965 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
966 * config/arm/t-xscale-coff: Likewise.
968 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
970 * builtins.c (fold_builtin_isdigit): New.
971 (fold_builtin): Handle BUILT_IN_ISDIGIT.
972 * defaults.h: Add TARGET_DIGIT0 and sort.
973 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
975 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
977 * builtins.c (fold_builtin_cabs, fold_builtin): Use
978 `mathfn_built_in' to determine the new builtin.
979 * fold-const.c (fold): Likewise.
981 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
983 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
984 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
985 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
986 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
987 (ASM_SPEC): Update accordingly.
988 * config/mips/mips.c: Update after above renaming.
989 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
990 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
992 2004-04-13 James E Wilson <wilson@specifixinc.com>
994 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
995 increment errorcount and return false instead of true.
997 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
999 * optabs.c (expand_twoval_unop): Reorder function arguments.
1000 * builtins.c (expand_builtin_mathfn_3): Update calls to
1003 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
1004 and UNSPEC_TAN_TAN. Add missing comment.
1006 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
1007 patterns to implement fptan x87 instruction.
1008 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
1009 and tanl built-ins as inline x87 intrinsics. Define corresponding
1010 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
1011 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
1014 2004-03-13 Richard Henderson <rth@redhat.com>
1016 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
1019 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
1020 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
1021 * doc/invoke.texi: Update to match.
1023 * varasm.c (unlikely_text_section): Use assemble_align instead of
1024 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
1025 correct alignment argument.
1027 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
1029 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
1030 after setting reg_last_reload_reg for optional output reloads.
1032 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
1034 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
1035 Definition of these two macros are corrected by adding
1036 matchine right paren.
1038 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
1040 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
1042 2004-04-12 Roger Sayle <roger@eyesopen.com>
1044 * config/i386/i386.c (output_387_reg_move): New function.
1045 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
1046 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
1047 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
1048 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
1049 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
1051 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1053 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
1055 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
1056 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
1057 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
1058 Use skip_simple_arithmetic to find SAVE_EXPR.
1059 (force_type_save_exprs, force_type_save_exprs_1): New functions.
1060 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
1061 Properly chain multiple pointers.
1062 (copy_tree_r): Copy a TYPE_DECL.
1063 * tree.c (variably_modified_type_p): Add some missing tests and
1064 make some other minor changes.
1065 * tree.h (force_type_save_exprs): New declaration.
1067 2004-04-12 Roger Sayle <roger@eyesopen.com>
1069 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
1070 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
1071 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
1072 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
1073 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
1074 x%-1 into 0 (or x&0 if x has side-effects).
1076 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
1078 * config/rs6000/rs6000.md: Document why a pattern is not
1081 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
1082 of floats on the E500.
1083 (branch_positive_comparison_operator): Do not allow NE even on the
1086 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
1088 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
1089 in_text_unlikely_section to in_unlikely_text_section.
1091 2004-04-11 Roger Sayle <roger@eyesopen.com>
1093 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
1094 calling convention to allow a NULL_TREE to be returned. Factor
1095 sanity checks from callers, return NULL_TREE when appropriate.
1096 (fold): Handle COMPOUND_EXPR operands of binary expressions
1097 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
1098 whether a op (b,c) can be rewritten as (b, a op c). Simplify
1099 calls to fold_binary_op_with_conditional_arg.
1101 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1103 * config/mips/iris5.h (current_section_flags): Add
1104 in_unlikely_executed_text and default case.
1106 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
1108 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
1109 failure on solaris. Place ifdef HAVE_return around gen_ret call.
1110 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
1111 HAVE_return and place it around the place where it is needed.
1113 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
1115 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
1116 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
1117 and NORMAL_TEXT_SECTION_NAME.
1118 (unlikely_text_section): Check targetm.have_named_sections
1119 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
1120 instead of SECTION_FORMAT_STRING.
1121 * config/mips/iris5.h (current_section_name): Add
1122 in_unlikely_executed_text case and move the abort into the switch.
1123 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
1124 (NORMAL_TEXT_SECTION_NAME): Remove.
1125 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1126 (SECTION_FORMAT_STRING): Remove.
1127 * defaults.h (SECTION_FORMAT_STRING): Remove.
1128 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
1129 (SECTION_FORMAT_STRING): Remove.
1131 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
1133 * c-typeck.c (common_type): Prefer long long to long when same
1136 2004-04-09 Zack Weinberg <zack@codesourcery.com>
1139 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
1141 * config/ia64/ia64.c (ia64_hpux_file_end): Check
1142 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
1144 2004-04-09 Roger Sayle <roger@eyesopen.com>
1146 * simplify-rtx.c (mode_signbit_p): New function to check whether
1147 an RTX is an immediate constant that represents the most significant
1148 bit of a given machine mode.
1149 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
1151 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
1152 when C2 is the sign bit.
1153 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
1154 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
1157 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1159 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
1162 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
1164 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
1165 of TREE_READONLY for types.
1167 2004-04-09 Caroline Tice <ctice@apple.com>
1169 * basic-block.h (struct edge_def): Add new field, crossing_edge.
1170 (struct basic_block_def): Add new field, partition.
1171 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
1173 (partition_hot_cold_basic_blocks): Add extern function
1175 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
1177 (N_ROUNDS): Increase the maximum number of rounds by 1.
1178 (branch_threshold): Add array value for new round.
1179 (exec_threshold): Add array value for new round.
1180 (push_to_next_round_p): New function.
1181 (add_unlikely_executed_notes): New function.
1182 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
1183 (mark_bb_for_unlikely_executed_section): New function.
1184 (add_labels_and_missing_jumps): New function.
1185 (add_reg_crossing_jump_notes): New function.
1186 (fix_up_fall_thru_edges): New function.
1187 (find_jump_block): New function.
1188 (fix_crossing_conditional_branches): New function.
1189 (fix_crossing_unconditional_branches): New function.
1190 (fix_edges_for_rarely_executed_code): New function.
1191 (partition_hot_cold_basic_blocks): New function.
1192 (find_traces): Add an extra round for partitioning hot/cold
1194 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
1195 and only cold blocks, into the last (extra) round of collecting traces.
1196 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
1197 over crossing edges.
1198 (bb_to_key): Add code to correctly identify cold blocks when
1200 (connect_traces): Modify to connect all the non-cold traces first, then
1201 go back and connect up all the cold traces.
1202 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
1203 * cfg.c (entry_exit_blocks): Add initialization for partition field in
1204 entry and exit blocks.
1205 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
1206 if we are doing hot/cold partitioning.
1207 * cfgcleanup.c (cfglayout.h): Add new include statement.
1208 (try_simplify_condjump): Modify to not attempt on blocks with jumps
1209 that cross section boundaries.
1210 (try_forward_edges): Likewise.
1211 (merge_blocks_move_predecessor_nojumps): Likewise.
1212 (merge_blocks_move_successor_nojumps): Likewise.
1213 (merge_blocks_move): Likewise.
1214 (try_crossjump_to_edge): Modify to not attempt after we have done
1215 the block partitioning.
1216 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
1217 cross section boundaries.
1218 (try_optimize_cfg): Likewise.
1219 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
1220 jumps that cross section boundaries.
1221 * cfglayout.c (flags.h): Add new include statement.
1222 (update_unlikely_executed_notes): New function.
1223 (fixup_reorder_chain): Add code so when a new jumping basic block is
1224 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
1225 updated appropriately.
1226 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
1227 introduced by this optimization.
1228 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
1229 extern function declaration.
1230 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
1231 list of notes that can be deleted.
1232 (create_basic_block_structure): Add initialization for partition field.
1233 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
1235 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
1236 cross section boundaries.
1237 (commit_one_edge_insertion): Add code so newly created basic block
1238 ends up in correct (hot or cold) section. Modify to disallow
1239 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
1240 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
1241 crosses section boundaries.
1242 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
1243 cross section boundaries.
1244 (force_nonfallthru_and_redirect): Modify to make sure new basic block
1245 ends up in correct section, with correct notes attached.
1246 * common.opt (freorder-blocks-and-partition): Add new flag for this
1248 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
1249 the end of functions are written into the correct (hot or cold)
1251 (dbx_source_file): Add code so writing debug file information
1252 doesn't incorrectly change sections.
1253 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
1254 in partitioning hot/cold basic blocks into separate sections.
1255 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
1256 section partitioning.
1257 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
1258 conditional branches can span all of memory.
1259 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
1260 unconditional branches can span all of memory.
1261 * final.c (scan_ahead_for_unlikely_executed_note): New function.
1262 (final_scan_insn): Add code to check for NOTE instruction indicating
1263 whether basic block belongs in hot or cold section, and to make sure
1264 the current basic block is being written to the appropriate section.
1265 Also added code to ensure that jump table basic blocks end up in the
1267 * flags.h (flag_reorder_blocks_and_partition): New flag.
1268 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
1269 one of the branches has a jump that crosses between sections.
1270 (find_if_case_2): Likewise.
1271 (ifcvt): Modify to not attempt to mark loop exit edges after
1272 hot/cold partitioning has occurred.
1273 * opts.c (decode_options): Code to handle new flag,
1274 flag_reorder_blocks_and_partition; also to turn it off if
1275 flag_exceptions is on.
1276 (common_handle_option): Code to handle new flag,
1277 flag_reorder_blocks_and_partition.
1278 * output.h (unlikely_text_section): New extern function declaration.
1279 (in_unlikely_text_section): New extern function declaration.
1280 * passes.c (rest_of_handle_stack_regs): Add
1281 flag_reorder_blocks_and_partition as an 'or' condition for calling
1282 reorder_basic_blocks.
1283 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
1284 as an 'or' condition for calling reorder_basic_blocks.
1285 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
1286 * print-rtl.c (print_rtx): Add code for handling new note,
1287 NOTE_INSN_UNLIKELY_EXECUTED_CODE
1288 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
1289 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
1290 cross between section boundaries.
1291 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
1292 indicating the basic block containing it belongs in the cold section.
1293 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
1294 between hot and cold sections.
1295 * toplev.c (flag_reorder_blocks_and_partition): Add code to
1296 initialize this flag, and to tie it to the command-line option
1297 freorder-blocks-and-partition.
1298 * varasm.c (cfglayout.h): Add new include statement.
1299 (unlikely_section_label_printed): New global variable, used for
1300 determining when to output section name labels for cold sections.
1301 (in_section): Add in_unlikely_executed_text to enum data structure.
1302 (text_section): Modify code to use SECTION_FORMAT_STRING and
1303 NORMAL_TEXT_SECTION_NAME macros.
1304 (unlikely_text_section): New function.
1305 (in_unlikely_text_section): New function.
1306 (function_section): Add code to make sure beginning of function is
1307 written into correct section (hot or cold).
1308 (assemble_start_function): Add code to make sure stuff is written to
1309 the correct section.
1310 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
1311 to an if statement that was checking 'in_text_section'.
1312 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
1313 condition to an if statement that was checking 'in_text_section'.
1314 (default_section_type_flags_1): Add check: if in cold section
1315 flags = SECTION_CODE.
1316 * config/darwin.c (darwin_asm_named_section): Modify to use
1317 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
1318 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
1319 specifically for the i386.
1320 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
1321 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
1322 text string to something more informative.
1323 (NORMAL_TEXT_SECTION_NAME): Add new definition.
1324 (SECTION_FORMAT_STRING): Add new definition.
1325 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
1326 '!in_unlikely_text_section' as an 'and' condition to an if statement
1327 that was already checking '!in_text_section'.
1328 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
1329 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
1330 sure these are properly defined for linux on ppc.
1331 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
1333 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
1335 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
1336 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
1339 2004-04-08 Roger Sayle <roger@eyesopen.com>
1341 * function.c (gen_mem_addressof): When changing the RTX from a REG
1342 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
1344 2004-04-08 Roger Sayle <roger@eyesopen.com>
1347 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
1348 truncxfdf2_noop): Provide dummy "fmov" implementations.
1350 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
1352 * gcc.c (default_compilers): Add missing initializers.
1354 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1355 Return 1 if file was successfully mapped.
1357 2004-04-08 Geoffrey Keating <geoffk@apple.com>
1362 * doc/invoke.texi (Precompiled Headers): Suggest -o
1363 to put an output file in a particular place. Be more detailed
1364 about which options affect PCH validity and which options
1366 * c-pch.c (pch_matching): New.
1368 (struct c_pch_validity): New field 'match'.
1369 (pch_init): Handle pch_matching.
1370 (c_common_valid_pch): Check pch_matching.
1372 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
1374 2004-04-08 Mark Mitchell <mark@codesourcery.com>
1376 * doc/invoke.texi (Precompiled Headers): Warn about known
1379 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
1382 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
1383 to 1 if ASM_OUTPUT_DEF is defined.
1384 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
1385 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
1386 Set to non-zero iff not a one_only decl.
1388 2004-04-08 Paul Brook <paul@codesourcery.com>
1390 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
1392 2004-04-08 Paul Brook <paul@codesourcery.com>
1394 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
1395 PROMOTE_FOR_CALL_ONLY.
1396 * config/arm/arm-protos.h (arm_function_value): Declare.
1397 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
1398 (TARGET_PROMOTE_PROTOTYPES): Return false.
1399 (arm_function_value): New function.
1400 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
1401 (FUNCTION_VALUE): Call arm_function_value.
1402 * config/cris/cris.h (PROMOTE_MODE): Rename ...
1403 (PROMOTE_FUNCTION_MODE): ... to this.
1404 (PROMOTE_FOR_CALL_ONLY): Remove.
1405 * config/mmix/mmix.h: Likewise.
1406 * config/s390/s390.h: Likewise.
1407 * config/sparc/sparc.h: Likewise.
1408 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
1409 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
1410 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
1411 (PROMOTE_FOR_CALL_ONLY): Remove.
1413 2004-04-08 Joel Sherrill <joel@oarcorp.com>
1416 * ada/5rosinte.adb: Remove fake mprotect() body.
1417 * ada/5rosinte.ads: Add SA_SIGINFO.
1418 * ada/5rtpopsp.adb: Rewrite to use new interface.
1419 * ada/init.c: Reorder so the simple single OS conditional __rtems__
1420 is tested before more complex ones which mix UNIX and embedded
1421 systems in the conditional.
1423 2004-04-08 Joel Sherrill <joel@oarcorp.com>
1426 * ada/osint.adb (Find_Program_Name): Rework to properly handle
1427 filenames which end in .exe or have versioning suffixes like VMS.
1429 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
1432 * config/darwin.c (darwin_encode_section_info): When the decl has
1433 a DECL_INITIAL, it is only defined also when it is not a common.
1435 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1437 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
1438 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
1440 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
1442 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
1443 global register variables.
1445 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
1447 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
1448 rpc_xdr_lvalue_cast_b): New fixes.
1449 * fixinc/fixincl.x: Regenerate.
1450 * fixinc/tests/base/rpc/xdr.h: Add new tests.
1452 2004-04-07 David Edelsohn <edelsohn@gnu.org>
1454 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
1455 to power4 and power5 entries.
1457 2004-04-06 Geoffrey Keating <geoffk@apple.com>
1459 * c-common.h (pending_lang_change): Mark for PCH.
1461 2004-04-07 Caroline Tice <ctice@apple.com>
1463 * gcc.c (main): Move 'break' in main loops (on an error)
1464 to wait until error processing has occurred.
1466 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
1468 * config.gcc: Stop changing enable_threads midstream.
1469 Replace uses of enable_threads_flag with enable_threads.
1470 * configure.ac: Replace uses of enable_threads_flag with
1471 enable_threads. Improve autoconf quotation in one place.
1472 * configure: Regenerate.
1474 2004-04-06 Uros Bizjak <uros@kss-loka.si>
1476 * builtins.c: Implement support for sincos function.
1477 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
1479 (expand_builtin_mathfn_3): New function.
1480 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
1481 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
1482 flag_unsafe_math_optimization is set.
1484 * optabs.h (enum optab_index): Add new OTI_sincos.
1485 (sincos_optab): Define corresponding macro.
1487 * optabs.c (init_optabs): Initialize sincos_optab.
1488 (expand_twoval_unop): New function.
1490 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
1493 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
1494 and UNSPEC_SINCOS_SIN.
1496 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
1497 sincosxf3): New patterns to implement sincos, sincosf and sincosl
1498 built-ins as inline x87 intrinsics. Define splits for
1499 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
1500 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
1502 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
1503 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
1505 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
1508 2004-04-06 Devang Patel <dpatel@apple.com>
1511 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
1513 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1515 * doc/install.texi: Update HP-UX 11 installation procedure.
1517 2004-04-06 Paul Brook <paul@codesourcery.com>
1519 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
1521 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
1523 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
1524 when the TLS address is generated by a function call.
1525 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
1526 (tls_local_dynamic): Likewise.
1528 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
1530 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
1533 2004-04-05 Caroline Tice <ctice@apple.com>
1535 * gcc.c (combine_flag): New global variable, for new driver option.
1536 (struct compiler): Add two new fields, to be used when
1537 combining multiple input files in a single pass (IMA).
1538 (default_compilers): Add values for the new fields to all
1539 compiler entries. Modify the "@c" compiler entry for doing IMA
1540 properly with "-save-temps" and the "combine" flag.
1541 (option_map): Add new driver option, "--combine", to tell driver
1542 to pass multiple input files to compiler at one time.
1543 (have_o_argbuf_index): New global variable.
1544 (store_arg): Modify to assign value to have_o_argbuf_index.
1545 (struct infile): Add three new fields, to help with IMA.
1546 (display_help): Add help for new "combine" option.
1547 (process_command): Remove local variable have_o; add code to check
1548 for new "combine" option; remove assignment to combine_inputs.
1549 (do_spec_1): Modify to deal with IMA better.
1550 (main): Make variable 'lang_n_infiles' local to entire function
1551 rather than to a single block. Use flag combine_flag to
1552 determine whether to do IMA or not; Modify loop initializing
1553 infiles to deal properly with linker files.
1554 Add code for doing preprocessing in presence of
1555 IMA with "-save-temps" flag. Modify "main" loop to handle
1556 multiple input files, in multiple languages, with or without
1557 preprocessing, gracefully.
1558 * toplev.c (set_src_pwd): Modify to not complain if attempting to
1559 re-set it to same directory it's previously been set to (avoid
1560 irritating, meaningless warning messages when doing IMA with
1562 * doc/invoke.texi: Add "-combine" to list of Overall Options;
1563 remove documentation about IMA that is no longer accurate; Add
1564 documentation explaining what "-combine" does.
1565 * ada/lang-specs.h: Add initialization values for new fields in
1567 * cp/lang-specs.h: Likewise.
1568 * f/lang-specs.h: Likewise.
1569 * java/lang-specs.h: Likewise.
1570 * objc/lang-specs.h: Likewise.
1571 * treelang/lang-specs.h: Likewise.
1573 2004-04-05 David Edelsohn
1575 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
1578 2004-04-05 Jakub Jelinek <jakub@redhat.com>
1579 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1581 PR optimization/13424 (hppa), bootstrap/14462, c/14828
1582 * pa.md: Use replace_equiv_address to retain the attributes of the
1583 memory operands used in the split and peephole2 patterns for optimizing
1584 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
1586 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1588 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
1589 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1590 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
1591 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
1593 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
1595 * print-tree.c (print_node): Properly handle side-effects, readonly,
1597 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
1598 and TREE_CONSTANT if not a type.
1599 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
1600 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
1601 (NON_TYPE_CHECK): New macro.
1602 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
1604 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1606 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
1607 to DWARF2_DEBUG unconditionally.
1608 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
1610 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
1611 Nathanael Nerode <neroden@gcc.gnu.org>
1614 * config.host: Set the shell variable host_can_use_collect2.
1615 Set it to yes by default, and to no for alpha*-dec-*vms*,
1616 i[34567]86-*-mingw32*, and powerpc-*-beos*.
1617 * configure.ac: Set and substitute the shell variable collect2.
1618 Give an error if use_collect2 is yes and host_can_use_collect2 is
1620 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
1621 uses. Initialize to @collect2@.
1622 (STAGESTUFF): Remove $(USE_COLLECT2).
1623 * config/alpha/x-vms (USE_COLLECT2): Don't set.
1624 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
1625 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
1626 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
1627 * configure: Regenerate.
1629 2004-04-04 Roger Sayle <roger@eyesopen.com>
1631 * simplify-rtx.c (simplify_binary_operation): Constant fold
1632 DIV, MOD, UDIV and UMOD using div_and_round_double.
1634 2004-04-04 Mark Mitchell <mark@codesourcery.com>
1637 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
1640 2004-04-04 Mark Mitchell <mark@codesourcery.com>
1642 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
1645 2004-04-04 Roger Sayle <roger@eyesopen.com>
1647 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
1648 updating the REG_EQUAL note on an insn's libcall_insn.
1650 2004-04-04 Roger Sayle <roger@eyesopen.com>
1652 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
1654 2004-04-03 Roger Sayle <roger@eyesopen.com>
1656 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
1657 with reorder_operands_p.
1659 2004-04-03 Jan Hubicka <jh@suse.cz>
1661 * md.texi (vec_set, vec_extract, vec_init): Document.
1663 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
1665 * opts.c (decode_options): Do function inlining with very small
1666 max-inline-insns-* parameters when optimizing for size.
1668 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
1670 * config/i386/i386.h (TARGET_NOCONA): New macro.
1671 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
1672 (processor_type): Add PROCESSOR_NOCONA.
1674 * config/i386/i386.md (cpu): Add nocona to the attribute values.
1676 * config/i386/i386.c (nocona_cost): New variable.
1677 (m_NOCONA): New macro.
1678 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
1679 x86_branch_hints, x86_use_sahf, x86_single_stringop,
1680 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
1681 x86_integer_DFmode_moves, x86_partial_reg_dependency,
1682 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
1683 x86_decompose_lea, x86_arch_always_fancy_math_387,
1684 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
1685 x86_ext_80387_constants, x86_four_jump_limit):
1686 (override_options): Add nocona_cost to processor_target_table.
1687 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
1688 (incdec_operand): Prevent inc/dec generation for Nocona too.
1689 (ix86_issue_rate): Add PROCESSOR_NOCONA.
1691 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
1693 * rtlanal.c (find_reg_note): Manually
1696 2004-04-01 Mark Mitchell <mark@codesourcery.com>
1698 * genemit.c (gen_split): Change prototype of generated code.
1699 * genrecog.c (write_action): Adjust prototype for and calls to
1701 * gensupport.c (struct queue_elem): Add split field.
1702 (queue_pattern): Return a value. Clear the split field.
1703 (process_rtx): Maintain an association between an insn and the
1704 split generated from it for a define_insn_and_split.
1705 (process_one_cond_exec): Generate a new split for a
1706 define_insn_and_split.
1707 * config/arm/arm-protos.h (arm_split_constant): Add insn
1709 (emit_constant_insn): New function.
1710 (arm_gen_constant): Use it.
1711 * config/arm/arm.md: Adjust calls to arm_split_constant.
1713 2004-04-02 Jan Hubicka <jh@suse.cz>
1715 * cgraph.c: Add overall comment.
1716 (cgraph_inline_hash): New global variable.
1717 (cgraph_create_node): Break out from ...
1718 (cgraph_node): ... here.
1719 (cgraph_edge): New function.
1720 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
1721 (cgraph_remove_edge): Accept edge, intead of source and destination.
1722 (cgraph_redirect_edge_callee): New.
1723 (cgraph_remove_node): Update all new datastructures.
1724 (cgraph_record_call, cgraph_remove_call): Kill.
1725 (dump_cgraph_node): Break out from ... ; dump new datastructures.
1726 (dump_cgraph): ... here.
1727 (cgraph_function_possibly_inlined_p): Use new hashtable.
1728 (cgraph_clone_edge, cgraph_clone_node): New.
1729 * cgraph.h: Include hashtab.h
1730 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
1731 fields, add inlined_to pointer.
1732 (cgraph_node): Add pointer to next_clone.
1733 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
1734 (cgraph_remove_call, cgraph_record_call): Kill.
1735 (cgraph_inline_hash): Declare.
1736 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
1737 cgraph_redirect_edge_callee): Declare.
1738 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
1739 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
1740 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
1741 * cgraphunit.c: Add overall comment.
1742 (cgraph_optimize_function): Kill.
1743 (cgraph_assemble_pending_functions): Do not assemble inline clones.
1744 (cgraph_finalize_function): Update call of cgraph_remove_node
1745 (record_call_1): Record call sites.
1746 (cgraph_create_edges): Accept node instead of decl argument.
1747 (error_found): New static variable.
1748 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
1749 (cgraph_analyze_function): Update for new datastructures.
1750 (cgraph_finalize_compilation_unit): Plug memory leak.
1751 (cgraph_optimize_function): Kill.
1752 (cgraph_expand_function): Do not use cgraph_optimize_function.
1753 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
1754 cgraph_inlined_callees): Kill.
1755 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
1757 (estimate_growth): Simplify.
1758 (cgraph_clone_inlined_nodes): New function.
1759 (cgraph_mark_inline_edge): Re-implement.
1760 (cgraph_mark_inline): Likewise.
1761 (cgraph_check_inline_limits): Simplify.
1762 (cgraph_recursive_inlining_p): New.
1763 (update_callee_keys): Break out from ...
1764 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
1765 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
1767 (cgraph_expand_all_functions): Remove inline clones from the ordered
1769 (cgraph_preserve_function_body_p): New predicate.
1770 (cgraph_optimize): Verify cgraph.
1771 * function.h (struct function): Add fields saved_tree/saved_args.
1772 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
1773 * toplev.c (rest_of_compilation): Do not free cfun.
1774 * tree-inline.c: Include function.h
1775 (struct inline_data): Add saving_p field; replace decl/current_decl by
1777 (insert_decl_map): New function.
1778 (copy_body_r): Handle saving; update cgraph datastructure.
1779 (copy_body): Handle recursive inlining.
1780 (initialize_inlined_parameters): Likewise.
1781 (expand_call_inline): Propagate node attributes; update cgraph.
1782 (optimize_inline_calls): Verify that datastructure still match.
1783 (save_body): New function.
1784 * tree-inline.h (save_body): New.
1785 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
1786 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
1787 * langhooks.c (lang_hooks): Add update_decl_after_saving.
1789 2004-04-01 Serge Belyshev <1319@bot.ru>
1792 * config/i386/i386.md: fix source operand constraints in
1793 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
1795 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1797 * fold-const.c (folda): Preserve types of comparisons.
1799 2004-04-01 Richard Henderson <rth@redhat.com>
1801 * toplev.c (backend_init): Move init_optimization_passes call ...
1802 (lang_dependent_init): ... here.
1804 2004-04-01 Alan Modra <amodra@bigpond.net.au>
1805 Jakub Jelinek <jakub@redhat.com>
1807 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
1808 -lgcc --as-needed -lgcc_s --no-as-needed by default.
1809 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
1810 * configure: Rebuilt.
1811 * config.in: Rebuilt.
1812 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
1813 (stage2-start, stage3-start, stage4-start): Likewise.
1814 (stageprofile-start, stagefeedback-start): Likewise.
1816 2004-04-01 Jakub Jelinek <jakub@redhat.com>
1818 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
1819 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
1820 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
1821 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
1822 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
1823 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
1824 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
1825 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
1826 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
1827 * config/sparc/t-linux: Removed.
1829 2004-04-01 Jakub Jelinek <jakub@redhat.com>
1832 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
1833 "bitfld++ == const" to "++bitfld == const + incr" transformations.
1835 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1837 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
1838 * stor-layout.c (layout_decl): Likewise.
1839 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
1840 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
1841 * print-tree.c (print_node): Handle various used of unsigned_flag.
1842 * tree.def (BIT_FIELD_REF): Update comment.
1843 * tree.h (TREE_UNSIGNED): Deleted.
1844 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
1846 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1848 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
1849 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
1850 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
1851 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
1852 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
1853 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
1854 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
1855 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
1856 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
1857 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
1858 REAL_TYPE, not INTEGER_TYPE.
1859 (layout_type, case VECTOR_TYPE): Simplify code.
1860 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
1861 * tree.h: Update comments.
1862 (STRIP_NOPS): Use TYPE_UNSIGNED.
1863 (TYPE_UNSIGNED): New macro.
1864 (TYPE_TRAP_SIGNED): Remove now redundant check.
1865 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
1867 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1869 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
1871 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
1873 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
1874 Add darwin-fpsave.asm, darwin-vecsave.asm,
1875 and darwin-world.asm.
1876 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
1877 as the asm files contain altivec instructions.
1878 * config/rs6000/darwin-fpsave.asm: New file.
1879 * config/rs6000/darwin-vecsave.asm: New file.
1880 * config/rs6000/darwin-world.asm: New file.
1882 2004-03-31 Zack Weinberg <zack@codesourcery.com>
1884 * gengtype-yacc.y (option, stringseq): Add missing
1885 terminating semicolon.
1887 2004-03-30 David Edelsohn <edelsohn@gnu.org>
1889 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
1890 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
1891 tls_dtprel_ha_32, tls_dtprel_ha_64,
1892 tls_dtprel_lo_32, tls_dtprel_lo_64,
1893 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
1894 tls_tprel_ha_32, tls_tprel_ha_64,
1895 tls_tprel_lo_32, tls_tprel_lo_64,
1896 tls_got_tprel_32, tls_got_tprel_64,
1897 tls_tls_32, tls_tls_64): Replace register_operand with
1900 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
1902 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
1903 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
1904 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
1905 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
1906 *ctrdi_internal6): Replace register_operand with
1907 nonimmediate_operand.
1909 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
1911 * fold-const.c (fold): Reassociate multiply expression
1912 with an adjacent non-multiply expression to use
1913 architecture's multiply-add instruction.
1915 2004-03-30 Zack Weinberg <zack@codesourcery.com>
1917 * gengtype.c (create_option): New function.
1918 * gengtype.h: Prototype it.
1919 * gengtype-yacc.y (stringseq): New rule.
1920 (option): Use create_option. Add new bare ID production. Use
1921 stringseq, not STRING directly.
1923 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
1924 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
1925 * varray.h, config/alpha/alpha.c:
1926 Use new shorter form of GTY markers.
1928 * doc/gty.texi: Rewrite.
1930 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
1932 * config/darwin.c (machopic_function_base_name):
1933 Remove current_name and getting the name of the
1936 2004-03-30 Nick Clifton <nickc@redhat.com>
1938 * config/arm/arm.md (thumb_jump): Reduce the backward branch
1939 range, and increase the forward branch range, to allow for
1940 the fact that the PC will be off by 4.
1942 2004-03-30 Alan Modra <amodra@bigpond.net.au>
1944 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
1946 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
1948 * config/rs6000/rs6000.c (output_vec_const_move):
1949 Find all cases of EASY_VECTOR_15_ADD_SELF.
1950 (easy_vector_constant_add_self): Accept
1951 all vector constant loadable by vsplt* and vadd*.
1952 (easy_vector_same): Use easy_vector_splat_const.
1953 (easy_vector_const): Use easy_vector_splat_const.
1954 (easy_vector_splat_const): New function.
1955 (gen_easy_vector_constant_add_self): New function.
1957 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
1960 * config/rs6000/altivec.md (movv4si splitter): Change to
1961 emit move insn with halfed vector constant.
1962 (*movv8hi splitter): Likewise.
1963 (*movv16qi splitter): Likewise.
1965 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
1968 * config/rs6000/rs6000.c (rs6000_legitimate_address):
1969 Allow any offset to argument pointer in no-strict case.
1971 2004-03-30 Jan Hubicka <jh@suse.cz>
1973 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
1974 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
1975 dump file in non-unit-at-a-time mode.
1977 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
1979 * config/cris/cris.h: Correct #ifdef to test for
1980 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
1981 HAVE_AS_MUL_BUG_ABORT_OPTION.
1983 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1985 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
1986 the address inside the old RTL.
1988 2004-03-28 Zack Weinberg <zack@codesourcery.com>
1990 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
1991 (struct c_binding, struct c_scope): Add chain_next
1992 attributes to GTY markers.
1993 (struct lang_identifier, struct lang_tree_node): Define
1995 * c-tree.h: ... not here. No longer need to declare struct
1996 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
1997 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
1998 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
2001 * c-decl.c (get_parm_info): If error_mark_node is encountered
2002 in the bindings chain, unbind and discard it; don't abort.
2004 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
2005 Dorit Naishlos <dorit@il.ibm.com>
2007 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
2008 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
2010 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
2012 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
2014 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
2015 (m68hc11_attribute_table): New attribute "page0" to mark a global
2016 variable as being allocated from within page0 section.
2017 (m68hc11_encode_label): New function.
2018 (m68hc11_strip_name_encoding): New function.
2019 (m68hc11_page0_symbol_p): New function.
2020 (m68hc11_indirect_p): Accept global variables marked in page0.
2021 (m68hc11_encode_section_info): Lookup "page0" attribute.
2023 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
2024 represents access to page0 variables.
2026 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
2027 ("*logicalsi3_silshl16_zext"): Likewise.
2028 ("*ashldi3_const32"): Likewise.
2029 (peephole2 ashift): Likewise.
2031 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
2033 * c-tree.h (C_DECL_REGISTER): New.
2034 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
2035 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
2036 (build_array_ref, c_mark_addressable): Set and use it.
2037 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
2038 Allow structures with volatile fields to be declared register.
2039 Don't check TREE_ADDRESSABLE before warning about taking address
2041 * c-decl.c (finish_decl): Don't allow structures with volatile
2042 fields to be placed in named register.
2043 * doc/trouble.texi: Remove reference to structures with volatile
2044 fields in registers.
2046 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
2048 * function.c (thread_prologue_and_epilogue): Move
2049 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
2050 before the epilogue.
2052 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
2054 * expr.c (store_constructor): Use gen_int_mode to correctly
2055 sign-extend CONST_INT value.
2057 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2059 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
2060 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
2061 * doc/extend.texi: Likewise.
2063 2004-03-26 Diego Novillo <dnovillo@redhat.com>
2065 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
2066 with TYPE_ORIG_SIZE_TYPE.
2068 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
2071 * c-typeck.c (build_binary_op): Do not allow comparisons of
2074 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
2076 * config.gcc: Remove sparc-tti-*.
2077 * config/sparc/pbd.h: Delete.
2079 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
2080 * config/sparc/aout.h: Likewise.
2082 * config/sparc/sparc.h: Remove if 0'd code.
2083 * config/sparc/sparc.md (call): Remove if 0'd code.
2084 (call_value): Likewise.
2085 (nonlocal_goto): Likewise.
2086 (unimp_insn): Delete.
2088 2004-03-25 Roger Sayle <roger@eyesopen.com>
2090 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
2091 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
2093 2004-03-25 Richard Henderson <rth@redhat.com>
2096 * c-typeck.c (pop_init_level): Emit pending init elements earlier
2099 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2101 * builtins.c (fold_builtin): Fix error in last change.
2103 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
2105 * config/mips/mips.h: Formatting fix.
2107 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2109 * builtins.def: Add ctype builtins.
2110 * doc/extend.texi: Likewise.
2112 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2114 * builtins.c (fold_builtin): Add new builtin optimizations for
2116 * fold-const.c (fold): Likewise.
2118 2004-03-25 David Edelsohn <edelsohn@gnu.org>
2120 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
2121 (rs6000_sched_groups): New variable.
2122 (processor_target_table): Add power5.
2123 (rs6000_override_options): Set rs6000_sched_insert_nops,
2124 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
2125 from rs6000_sched_groups.
2126 (output_cbranch): Use rs6000_always_hint.
2127 (rs6000_variable_issue): Use rs6000_sched_groups.
2128 (rs6000_adjust_cost): Add CPU_POWER5.
2129 (is_microcoded_insn): Use rs6000_sched_groups.
2130 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
2131 Return 2 for POWER5 cracked instructions.
2132 (is_cracked_insn): Use rs6000_sched_groups.
2133 (is_branch_slot_insn): Use rs6000_sched_groups.
2134 (rs6000_issue_rate): Add CPU_POWER5.
2135 (rs6000_sched_finish): Use rs6000_sched_groups.
2136 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
2137 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
2138 (DEFAULT_SCHED_COSTLY_DEP): Delete.
2139 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
2140 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
2141 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
2142 * config/rs6000/power5.md: New file.
2143 * doc/invoke.texi: Add power5 option.
2145 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
2147 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
2148 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
2149 * doc/invoke.texi: Fix a typo.
2151 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
2153 PR optimization/9707.
2154 * stmt.c (emit_case_nodes): Emit equality comparisons instead
2155 of recursing if both children are single-valued cases with no
2158 2004-03-25 Paul Brook <paul@codesourcery.com>
2160 * config/arm/arm.c (vfp_print_multi): Remove.
2161 (arm_output_fldmx): New function.
2162 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
2163 (arm_expand_prologue): Update to match.
2164 (arm_get_vfp_saved_size): New Function.
2165 (arm_get_frame_offsets): Use it.
2166 (arm_output_epilogue): Use new functions.
2168 2004-03-24 Richard Henderson <rth@redhat.com>
2170 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
2171 (reg_known_value, reg_known_value_size): Likewise; make static.
2172 (reg_known_equiv_p): Make static.
2173 (clear_reg_alias_info): Update for new indexing.
2174 (get_reg_known_value, set_reg_known_value): New.
2175 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
2176 (canon_rtx): Use them.
2177 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
2178 Don't play queer offsetting games with reg_known_value and
2180 (end_alias_analysis): Free reg_known_value with gc.
2181 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
2182 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
2183 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
2186 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
2188 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
2189 config/i386/mmintrin.h: Update copyright.
2191 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
2193 * configure.ac: Add --enable-werror-always (for top level bootstrap
2195 * configure: Regenerate.
2197 2004-03-24 Ziemowit Laski <zlaski@apple.com>
2199 * objc/objc-act.c (objc_comptypes): Treat comparisons
2200 between 'Class' and '<class> *' as explicitly invalid.
2202 2004-03-24 David Edelsohn <edelsohn@gnu.org>
2204 * doc/invoke.texi (-frename-registers: Add enabled at -O3.
2205 (-fprofile-values): Add enabled with profile-{generate,use}.
2207 (-ftracer): Add enabled with profile-use.
2208 (-funit-at-a-time): Add enabled at -O2,-O3.
2209 (-funroll-loops): Add enabled with profile-use.
2210 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
2211 (max-gcse-passes): Mention default.
2212 (max-cse-path-length): Mention default.
2214 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
2216 * Makefile.in (STRICT2_WARN): Reorder.
2217 * configure.ac: Check for -Wold-style-definition, and use it
2218 in strict1_warn if it's available.
2219 * configure: Regnerate.
2221 2004-03-24 Paul Brook <paul@nowt.org>
2223 * config.gcc <arm>: Add --with-abi=
2224 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
2225 thumb_far_jump_used): Remove prototypes.
2226 (arm_needs_doubleword_align): Add prototype.
2227 (thumb_compute_initial_elimination_offset): Ditto.
2228 * config/arm/arm.c (arm_get_frame_offsets): New function.
2229 (use_return_insn, output_return_instruction, arm_output_epilogue,
2230 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
2231 arm_expand_prologue, thumb_expand_epilogue): Use it.
2232 (arm_abi, target_abi_name, all_arm_abis): New variables.
2233 (arm_override_options): Set them. Set structure padding for AAPCS.
2234 (arm_return_in_memory): Update ABI check.
2235 (arm_init_cumulative_args): Initialize can_split.
2236 (arm_needs_doubleword_align): New function.
2237 (arm_function_arg): Don't split args after pushing to stack. Handle
2238 doubleword/even reg alignment.
2239 (arm_va_arg): Handle all doubleword aligned args.
2240 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
2242 (arm_compute_save_reg0_reg12_mask): Fix comment.
2243 (thumb_get_frame_size, thumb_get_frame_size): Remove.
2244 (thumb_jump_far_used_p): Remove superfluous argument. Return save
2245 value for alignment.
2246 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
2248 (thumb_compute_initial_elimination_offset): New function.
2249 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
2250 unneccessary rounding.
2251 * config/arm/arm.h (target_abi_name): Declare.
2252 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
2253 arm_abi_type, ARM_DEFAULT_ABI): Define.
2254 (ARM_FLAG_ATPCS): Remove.
2255 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
2256 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
2257 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
2258 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
2259 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
2260 Contitionalize on ABI, not CPU.
2261 (struct arm_stack_offsets): Define.
2262 (struct machine_function): Add stack_offsets. Remove frame_size.
2263 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
2265 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
2266 doubleword alignment.
2267 (THUMB_INITIAL_ELIMINATION_OFFSET,
2268 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
2269 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
2270 * config/arm/arm.md (align_8): Enable for all targets.
2271 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
2272 (ARM_DEFAULT_ABI): Define.
2273 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
2274 -mstructure-size-boundary.
2276 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
2278 * configure.ac: Check for -Wno-variadic-macros; don't use
2279 -pedantic (in stage 1 or a simple 'make all') unless it's available,
2280 and if it's available, use it. Also, clean up check for
2282 * configure: Regenerate.
2284 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
2286 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
2287 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
2288 (MULTILIB_DEFAULTS): Use it.
2289 (MIPS_CPU_STRING_DEFAULT): Remove.
2290 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
2291 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
2292 EABI64 -mlong32 the default ABI. Enforce the default architecture.
2293 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
2294 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
2295 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
2296 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
2299 2004-03-24 DJ Delorie <dj@redhat.com>
2300 Richard Sandiford <rsandifo@redhat.com>
2302 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
2303 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
2304 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
2305 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
2306 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
2307 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
2308 if TARGET_FIX_VR4122.
2309 * config/mips/mips.md (define_attr length): Account for nops inserted
2310 after macc and dmult when using -mfix-vr4122-bugs.
2311 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
2312 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
2313 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
2314 * config/mips/vr4122-div.S: New file.
2315 * doc/invoke.texi: Document -mfix-vr4122-bugs.
2317 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
2319 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
2320 (TARGET_MIPS4130): New macro.
2321 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
2322 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
2323 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
2324 with PROCESSOR_R4130.
2325 * config/mips/mips.md (define_attr cpu): Add r4130.
2326 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
2328 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2329 Richard Sandiford <rsandifo@redhat.com>
2331 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
2333 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
2335 PR preprocessor/14438
2336 * cpplib.c (do_pragma): Remove line_change call after pragma
2339 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
2341 * doc/extend.texi (ARM Built-in Functions): Replace with correct
2344 2004-03-23 Roger Sayle <roger@eyesopen.com>
2346 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
2347 if flag_unsafe_math_optimizations.
2348 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
2349 and TARGET_80387 expand using truncdfsf2_noop pattern.
2350 (truncxfsf2): Likewise using truncxfsf2_noop.
2351 (truncxfdf2): Likewise using truncxfdf2_noop.
2352 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
2354 2004-03-23 Ziemowit Laski <zlaski@apple.com>
2356 * hooks.c (hook_constcharptr_tree_null): New hook.
2357 * hooks.h (hook_constcharptr_tree_null): New prototype.
2358 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
2359 * target.h (mangle_fundamental_type): New target hook.
2360 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
2361 target hook at rs6000_mangle_fundamental_type.
2362 (rs6000_mangle_fundamental_type): New function.
2363 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
2365 2004-03-23 Zack Weinberg <zack@codesourcery.com>
2367 PR 12267, 12391, 12560, 13129, 14114, 14133
2368 * c-tree.h: Forward declare struct c_binding. Declare
2369 c_override_bindings_to_false. Update prototypes.
2370 (struct lang_identifier): Update comments. Change fields to be
2372 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
2373 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
2374 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
2375 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
2376 * c-common.h: Update prototypes.
2377 * c-decl.c (struct c_scope): Update commentary. Remove names,
2378 names_last, parms, parms_last, tags, and shadowed fields. Add
2379 bindings and depth fields.
2380 (scope_freelist): Move to more appropriate location.
2381 (c_print_identifier): Update for changes to struct lang_identifier.
2382 (objc_mark_locals_volatile): Update for new bindings structures.
2383 (global_bindings_p): Honor c_override_global_bindings_to_false.
2384 (pushlevel): Rename to push_scope; take no arguments; use the
2385 scope_freelist; initialize scope->depth and check for overflow.
2386 (poplevel): Rename to pop_scope; totally rewritten for new bindings
2388 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
2389 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
2390 Improve some commentary. Adjust handling of forward parm decls.
2391 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
2392 Preserve C_DECL_IN_EXTERNAL_SCOPE.
2393 (warn_if_shadowing): Correct indentation. Improve diagnostics.
2394 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
2395 decls. Rewrite for new bindings structures. Improve commentary.
2396 Eliminate the copy_node call.
2397 (implicit_decl_warning): Use the "diag" idiom (as seen in
2398 locate_old_decl) to reduce code duplication; call locate_old_decl
2399 if appropriate. Relocate to remove need for forward declaration.
2400 (implicitly_declare): Adjust for new bindings structures. Kludge
2401 around Objective-C not-really-builtin functions.
2402 (undeclared_variable): Improve diagnostics. If current_function_decl
2403 is nonnull but current_function_scope is null, use current_scope.
2405 (lookup_tag): Adjust for new bindings structures. Kludge around
2406 Objective-C's tag declarations that wind up in the external scope.
2407 (lookup_name): Adjust for new bindings structures. Kludge around
2408 c-common.c's pseudo-typedefs that wind up in the external scope.
2409 (lookup_name_current_level): Rename lookup_name_in_scope; take a
2410 second argument indicating the scope to examine; rewrite for
2411 new bindings structures.
2412 (c_init_decl_processing): Adjust for renamed functions. Do not
2413 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
2414 First scope pushed is the external scope, not the global scope.
2415 (builtin_function): Use bind, not pushdecl. Adjust other bits
2416 for new data structures. Keep track of builtins that should be
2417 made visible automatically.
2418 (start_decl): Adjust diagnostics. Remove unnecessary call to
2420 (grokparms): Return 0 if arg_types is error_mark_node.
2421 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
2422 reversed sense. Rewrite for new bindings structures. Do not
2423 leave any decls in the scope, to prevent pop_scope from doing
2424 contradictory things with them.
2425 (finish_struct, finish_enum): Remove redundant diagnostics.
2426 (build_enumerator): Don't cascade diagnostics for error_mark_node.
2427 Mark location where -pedantic changes the meaning of the program.
2428 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
2429 parameter decls into the function's scope structure using bind.
2430 Warn here about function definitions in the wrong style.
2432 (store_parm_decls): Correct the determination of whether a
2433 function was defined with a prototype.
2434 (c_write_global_declarations): Operate on all file decls and on
2435 the external scope. Split body of the loop to...
2436 (c_write_global_declarations_1): ... this new function, to avoid
2438 (truly_local_externals, first_builtin_decl, last_builtin_decl)
2439 (make_scope, pop_scope, in_parm_level_p, set_block)
2440 (any_external_decl, record_external_decl, bind_label, getdecls)
2441 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
2442 (c_reset_state): Delete.
2443 (visible_builtins, c_override_global_bindings_to_false)
2444 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
2445 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
2446 (external_scope, binding_freelist, bind, free_binding_and_advance)
2447 (push_file_scope, pop_file_scope): New.
2448 (pushtag, pushdecl_top_level, lookup_label, declare_label)
2449 (define_label, c_make_fname_decl, finish_decl)
2450 (mark_forward_parm_decls, build_compound_literal)
2451 (grokdeclarator, start_function, check_for_loop_decls)
2452 (identifier_global_value, record_builtin_type): Minor adjustments
2453 for new bindings structures. Improve diagnostics and commentary.
2454 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
2455 pushlevel/poplevel respectively.
2456 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
2457 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
2458 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
2459 correct loop over multiple translation units; call fatal_error if
2460 requested to compile more than one file at once. (This disables
2461 IMA temporarily - an up-front error being preferable to a crash.)
2462 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
2463 (all actions): Adjust calls to pushlevel/poplevel.
2464 (parsing_iso_function_signature): Delete.
2465 (extdef_1): Fold into extdef.
2466 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
2467 warn here about function definitions in the wrong style.
2468 (after_tyle_declarator, parm_declarator_starttypename)
2469 (parm_declarator_nostarttypename, notype_declarator): Remove
2470 commented-out productions.
2471 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
2472 an empty TREE_LIST node. Adjust calls to get_parm_info.
2473 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
2474 to suppress -Wold-style-definition after this error.
2475 (c_parse_file): Don't clear the binding stack or call
2476 finish_fname_decls here. Correct comment.
2477 * c-typeck.c (same_translation_unit_p): Export.
2478 (common_type): Use c_override_global_bindings_to_false, not
2479 pushlevel/poplevel/declare_parm_level.
2480 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
2481 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
2482 and LANG_HOOKS_GETDECLS with do-nothing stubs.
2483 * objc/objc-lang.c: Likewise.
2484 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
2486 (OBJC_VOID_AT_END): Delete; replace all uses
2487 with void_list_node.
2488 (generate_forward_declaration_to_string_table): Delete.
2489 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
2491 * coverage.c (create_coverage): Don't pushdecl anything.
2492 * langhooks.c (lhd_clear_binding_stack): Call
2493 lang_hooks.decls.poplevel, not poplevel.
2494 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
2495 circular list rather than going into an infinite loop.
2497 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
2499 * optabs.c (expand_binop): When synthesizing double word rotates
2500 from single word shifts, use a new register target if the provided
2501 target is not a REG already.
2503 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2505 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
2506 * c-common.c (handle_mode_attribute): Add extra arg to
2507 build_pointer_type_for_mode and build_reference_type_for_mode.
2508 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
2510 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
2511 Chain pointers via TYPE_NEXT_PTR_TO.
2512 (build_reference_type_for_mode): Similarly.
2513 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
2514 and build_reference_type_for_mode.
2515 (tree_check4_failed): New function.
2516 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
2517 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
2518 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
2521 2004-03-23 Roger Sayle <roger@eyesopen.com>
2523 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
2524 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
2525 when both A and B are nonnegative.
2526 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
2529 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
2531 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
2532 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
2534 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
2536 PR optimization/14669
2537 * fold-const.c (fold): Only unwiden integer comparisons for equality
2538 and inequality operators, or when the signedness doesn't change.
2540 2004-03-23 Jakub Jelinek <jakub@redhat.com>
2542 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
2543 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
2544 * config/sparc/t-linux: New file.
2546 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
2548 * gcse.c (can_assign_to_reg_p): New function, split out from...
2549 (want_to_gcse_p): ...here.
2550 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
2553 2004-03-22 Diego Novillo <dnovillo@redhat.com>
2555 * c-typeck.c (same_translation_unit_p): Fix pasto.
2557 2004-03-22 David Edelsohn <edelsohn@gnu.org>
2559 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
2560 (PARAM_MAX_SCHED_REGION_INSNS): New.
2561 * sched-rgn.c: Include params.h
2562 (MAX_RGN_BLOCKS): Delete.
2563 (MAX_RGN_INSNS): Delete.
2564 (too_large): Return bool. Convert to PARAM_VALUE.
2565 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
2566 * doc/invoke.texi (param): Document max-sched-region-blocks and
2567 max-sched-region-insns.
2569 2004-03-22 Joel Brobecker <brobecker@gnat.com>
2571 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
2574 2004-03-22 Joel Brobecker <brobecker@gnat.com>
2576 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
2579 2004-03-22 Jakub Jelinek <jakub@redhat.com>
2582 * c-decl.c (finish_struct): Change type of incorrect flexible array
2583 field into error_mark_node.
2585 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
2588 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
2589 who are not local for Darwin PIC.
2591 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
2593 * regrename.c (regrename_optimize): Set regs_ever_live for all
2594 registers introduced as replacement.
2596 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2599 * expr.c (mark_queue): New function.
2600 (emit_insns_enqueued_after_mark): New function replacing
2601 emit_queue. Clear the body of emitted queued insns.
2602 (emit_queue): Call emit_insns_enqueued_after_mark.
2603 (store_expr): Mark the increment queue on entry. Emit
2604 only the incrementations queued when expanding the source.
2606 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
2608 * configure.ac: Allow --disable-coverage-flags (for the future benefit
2609 of top level bootstrap, and consistency). Reindent.
2610 * configure: Regenerate.
2612 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
2614 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
2615 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
2618 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
2621 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
2624 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2626 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
2627 to nonimmediate_operand.
2628 ("*doloop_di"): Likewise.
2630 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
2632 * real.h (struct real_value): Use the same type for all
2633 bitfields. Rename exp to uexp.
2634 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
2635 Adjust all uses of exp...
2636 * builtins.c: ... here, ...
2637 * emit-rtl.c: ... here, and ...
2638 * real.c: ... and here.
2640 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
2642 * pretty-print.c (pp_base_maybe_space): New function.
2643 * pretty-print.h (pp_base_maybe_space): Declare.
2644 (pp_maybe_space): New macro.
2646 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2648 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
2650 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2652 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
2653 of using register multiplication cost.
2654 (expand_mult): Adapt choose_mult_variant call.
2655 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
2656 of MODE; pass appropriate cost bound. Adjust result when
2657 performing signed multiplication by a negative constant.
2658 Don't use intermediate modes larger than word_mode.
2660 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2662 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
2663 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
2664 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
2665 * explow.c (expr_size): Likewise.
2666 * expr.h (placeholder_list, find_placeholder): Deleted.
2667 * expr.c (store_constructor): Likewise.
2668 (get_inner_reference): Likewise. Also don't call find_placeholder.
2669 (placeholder_list, find_placeholder): Deleted.
2670 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
2671 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
2672 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
2673 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
2674 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
2676 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
2677 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
2678 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
2679 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
2680 Clean up by using first_rtl_op.
2681 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
2682 (substitute_placeholder_in_expr): New function.
2683 * tree.def (WITH_RECORD_EXPR): Deleted.
2684 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
2685 (substitute_placeholder_in_expr): New.
2687 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
2689 * dojump.c (prefer_and_bit_test): Fix which part of
2690 the and_test is replaced.
2692 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
2694 * frontends.texi: Add missing line.
2696 2004-03-21 Zack Weinberg <zack@codesourcery.com>
2697 Chris Devers <cdevers@pobox.com>
2698 Joseph S. Myers <jsm@polyomino.org.uk>
2700 * doc/frontends.texi: Rewrite.
2701 * doc/gcc.texi: Update last modification date.
2703 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
2705 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
2706 message before redirecting the edge.
2708 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2710 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
2712 * explow.c (force_not_mem): Set REG_POINTER flag according to
2714 * rtl.h (MEM_POINTER): New macro.
2715 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
2718 2004-03-20 Roger Sayle <roger@eyesopen.com>
2721 * cse.c (fold_rtx): Avoid substituting constants into unary
2722 conversion operations.
2724 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2726 * fold-const.c (fold): Replace "expr" with "t".
2728 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
2731 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
2732 DECL_ORIGINAL_TYPE if there isn't one.
2734 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2736 * fold-const.c (fold): Replace "final_type" with "type".
2737 Remove variable "final_type".
2739 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2741 * fold-const.c (fold): Constify "type".
2742 Replace "TREE_TYPE (t)" with "type".
2744 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2746 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
2747 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
2748 via (*targetm.foo) () with targetm.foo ().
2750 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
2753 * doc/install.texi: Add info directory category and entry.
2755 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2757 * fold-const.c (fold): Replace "t" with "tem" where it is used
2758 as a temporary variable. Remove "orig_t" and all of its uses.
2760 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2762 * fold-const.c (fold): Remove variable "invert".
2763 Move the handling of relational expressions that can be folded
2765 (fold_relational_const): ... here.
2766 (tree_expr_nonzero_p): New.
2768 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
2771 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
2774 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
2776 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
2777 (GTFILES): Add $(srcdir)/dojump.h.
2778 (gt-dojump.h): New dependency.
2779 * dojump.c (and_reg, and_test, shift_test): New static variables.
2780 (prefer_and_bit_test): New function.
2781 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
2783 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2785 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
2786 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
2787 reorg.c, tree.h: Fix comment typos.
2789 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2791 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
2792 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
2793 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
2794 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
2795 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
2796 vmsdbgout.c: Replace calls via (*targetm.foo) () with
2799 2004-03-19 Ziemowit Laski <zlaski@apple.com>
2801 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
2802 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
2803 always_inline attribute.
2804 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
2805 Treat expansion as completed even if literal argument is
2806 invalid (so that other expansions are not tried in vain).
2808 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2810 * loop-doloop.c (add_test): Replace GEN_INT (0) with
2813 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2815 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
2817 (fold_abs_const): ... here.
2819 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2821 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
2823 2004-03-19 Denis Chertykov <denisc@overta.ru>
2826 * config/avr/avr.md ("call_insn"): Handle explicit integer
2828 (call_value_insn): Likewise.
2830 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2832 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
2834 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2836 * fold-const.c (negate_expr): Move the handling of constants
2838 (fold_negate_const): ... here.
2840 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2842 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
2843 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
2844 * tree.c (debug_no_type_hash): Deleted.
2845 (type_hash_canon): Abort if passed a variant.
2846 Check lang_hooks.types.hash_types.
2847 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
2848 (build_array_type): Remove unnecessary allocation of pointer type.
2849 (build_complex_type): Properly qualify resulting type.
2851 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
2853 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
2855 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
2857 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
2858 (expand_mult): ...here.
2859 (extract_high_half): New, split out from expand_mult_highpart.
2860 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
2861 (expand_highpart): Evaluate the cost of a shift/add sequence,
2862 then see if any of the specialized optabs are cheaper.
2864 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
2866 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
2868 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2870 * convert.c (convert_to_real): Add more math builtins.
2872 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2874 * convert.c (convert_to_real): Reformat using switch stmt.
2876 2004-03-18 Mark Mitchell <mark@codesourcery.com>
2878 * c-common.c (pointer_int_sum): Do not complain about using
2879 pointers to pointers-to-members.
2881 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
2883 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
2884 have moved to the target hooks structure".
2886 2004-03-18 James E Wilson <wilson@specifixinc.com>
2888 * config/mips/mips.md (type): Split move into arith and fmove. Split
2889 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
2890 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
2892 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
2894 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
2895 rm7_fp_quick): Likewise.
2896 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
2897 rm9k_fquick): Likewise.
2898 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
2900 (ir_sr70_icmp): Delete.
2902 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2904 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
2905 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
2906 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
2907 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
2908 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
2909 Protect with proper check.
2910 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
2911 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
2912 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
2913 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
2914 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
2915 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
2917 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
2919 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
2921 * gcse.c (eliminate_partially_redundant_loads): Reject change if
2922 dest is set between beginning and current insn.
2924 2004-03-18 Mark Mitchell <mark@codesourcery.com>
2926 * c-decl.c (grokdeclarator): Do not complain about redeclaring
2927 visible "static" identifiers "extern" in a local scope.
2928 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
2929 post-increments/decrements.
2931 2004-03-18 Bob Wilson <bob.wilson@acm.org>
2933 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
2934 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
2935 (xtensa_va_start): Remove assignment to current_function_arg_words.
2937 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
2939 * alias.c (record_set): Detect the case where a register is assigned
2940 a new value that has the same base term as the old one.
2942 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2944 * doloop.c: Removed.
2945 * loop-doloop.c: New file.
2946 * Makefile.in (doloop.o): Remove.
2947 (loop-doloop.o): New.
2948 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
2949 * cfgloopanal.c (get_loop_level): New function.
2950 * loop-iv.c (iv_number_of_iterations): Handle case when loop
2951 is leaved immediatelly.
2952 * loop.c (strength_reduce): Do not call doloop optimization.
2953 * loop.h (LOOP_BCT): Removed.
2954 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
2955 (rest_of_handle_loop2): Call doloop_optimize_loops.
2956 (rest_of_compilation): Test for optimizations moved to
2957 rest_of_handle_loop2.
2959 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
2961 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
2963 (rs6000_emit_prologue): Ditto.
2964 (rs6000_emit_epilogue): Ditto.
2965 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
2966 macro for mixed mode.
2968 2004-03-18 Jan Hubicka <jh@suse.cz>
2970 * predict.c (propagate_freq): Compute correctly frequency of
2973 2004-03-17 Eric Christopher <echristo@redhat.com>
2975 * builtins.c (apply_args_size): Use reg_raw_mode.
2976 (apply_result_size): Ditto.
2978 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2981 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
2983 2004-03-17 Jakub Jelinek <jakub@redhat.com>
2985 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
2986 32-bit builds when defaulting to 32-bit.
2988 2004-03-17 Jan Hubicka <jh@suse.cz>
2990 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
2993 2004-03-17 James E Wilson <wilson@specifixinc.com>
2995 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
2996 (hazard_nop): Change type to nop.
2997 (type): Split arith into arith, shift, slt, clz. Delete darith.
2998 Fix all uses. Change arith to multi if more than one insn emitted.
2999 * config/mips/5400.md (ir_vr54_arith): Likewise.
3000 * config/mips/5500.md (ir_vr55_arith): Likewise.
3001 * config/mips/7000.md (rm7_int_other): Likewise.
3002 * config/mips/9000.md (rm9k_int): Likewise.
3003 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
3005 2004-03-17 Joel Brobecker <brobecker@gnat.com>
3007 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
3008 to hold the subtype tree instead of recomputing it several times.
3010 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
3012 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
3014 * config/mn10300/mn10300.md (cc): Remove "invert".
3016 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3018 * builtins.c (integer_valued_real_p): Add builtin rint.
3019 (fold_builtin): Likewise.
3020 * convert.c (convert_to_real): Likewise.
3022 * convert.c (convert_to_real): Fix typos in `long double'
3025 2004-03-16 Mark Mitchell <mark@codesourcery.com>
3028 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
3029 generated COMPOUND_EXPRs.
3031 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3033 * config/h8300/t-rtems (h8300-*-rtems*): New.
3035 2004-03-16 Eric Christopher <echristo@redhat.com>
3037 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
3039 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
3041 * config/i386/i386-protos.h: Add a prototype for
3042 ix86_reverse_condition.
3043 * config/i386/i386.c (ix86_reverse_condition): New.
3044 * config/i386/i386.h (REVERSE_CONDITION): Use
3045 ix86_reverse_condition.
3046 * config/i386/i386.md: Use ix86_reverse_condition instead of
3049 2004-03-16 J. Brobecker <brobecker@gnat.com>
3051 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
3053 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
3056 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
3058 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
3060 * c-common.c (c_common_type_for_mode): Build vector types on
3062 (handle_mode_attribute): Deprecate using the mode attribute
3063 to create vector types. Fix indentation.
3064 (vector_type_node_list): Remove.
3065 (handle_vector_size_attribute): Create vector types on demand.
3066 Strip a NON_LVALUE_EXPR from the attribute if there is one.
3067 * c-typeck.c (comptypes): Make vector types compatible if they
3068 have the same underlying mode.
3069 (convert_for_assignment): Use comptypes to convert between
3071 * tree.c (build_common_tree_nodes_2): Do not create vector types.
3072 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
3074 * tree.h: Remove vector types.
3075 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
3076 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3077 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
3078 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
3079 * doc/extend.texi (Vector Types): Document how to use the
3080 vector_size attribute to create vectors, rather than mode.
3082 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
3083 * config/i386/emmintrin.h: Likewise.
3084 * config/i386/mmintrin.h: Likewise.
3085 * config/i386/xmmintrin.h: Likewise.
3086 * config/sh/ushmedia.h: Likewise.
3088 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
3090 * config/freebsd-spec.h, config/arc/arc-protos.h,
3091 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
3092 config/arm/linux-gas.h, config/arm/semi.h,
3093 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
3094 config/ia64/freebsd.h, config/mips/7000.md,
3095 config/mips/9000.md, config/ns32k/ns32k-protos.h,
3096 config/sparc/pbd.h: Update copyright.
3098 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3101 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
3103 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
3105 * combine.c (combine_simplify_rtx): Remove the "last"
3106 parameter and its documentation. Adjust recursive calls.
3107 (simplify_logical): Always perform the only simplification
3108 controlled by "last", if the simplified expression is
3110 (try_combine): Do not pass the "last" parameter to
3111 combine_simplify_rtx.
3113 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
3116 * config/mips/mips.md (UNSPEC_GP): New constant.
3117 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
3118 an UNSPEC instead of (reg $gp).
3119 (mips16_gp_pseudo_reg): Change accordingly.
3120 (print_operand): Print $gp directly when handling CONST_GP_P.
3122 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
3124 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
3125 * longlong.h: Make code 68060 clean when compiling for m68060.
3127 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
3129 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
3130 * doc/md.texi: Clarify description of "i" constraint.
3132 2004-03-15 James E Wilson <wilson@specifixinc.com>
3134 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
3135 Split store into store, fpstore, fpidxstore. Fix all uses.
3136 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
3138 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
3139 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
3140 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
3141 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
3142 ir_sr70_fstore): Likewise.
3144 2004-03-15 Richard Henderson <rth@redhat.com>
3147 * except.c (collect_one_action_chain): Record action for cleanup
3148 outer of exception spec.
3150 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
3152 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
3153 Fix the check for abort and only do the mmap if we can.
3155 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
3157 * config/sparc/sparc.h: Rework comments about the code model
3158 in 64-bit environment and the mode 'Pmode'.
3159 * doc/invoke.texi (SPARC options): Rework description of the
3160 different code models supported in 64-bit environment.
3162 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
3164 * defaults.h (REVERSIBLE_CC_MODE): Define.
3165 * jump.c (reversed_comparison_code_parts): Don't check if
3166 REVERSIBLE_CC_MODE is defined.
3168 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
3170 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
3171 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
3172 hosthooks.h, params.h, ra-colorize.c, web.c,
3173 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
3174 config/avr/avr-protos.h, config/avr/avr.md,
3175 config/fr30/fr30-protos.h, config/fr30/fr30.md,
3176 config/h8300/fixunssfsi.c, config/i386/darwin.h,
3177 config/i386/freebsd.h, config/i386/freebsd64.h,
3178 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
3179 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
3180 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
3181 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
3182 config/pa/pa64-regs.h, config/rs6000/aix41.h,
3183 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
3184 config/sparc/aout.h, config/sparc/freebsd.h,
3185 config/sparc/litecoff.h, config/vax/vax-protos.h,
3186 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
3189 2004-03-15 Paul Brook <paul@codesourcery.com>
3191 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
3193 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
3195 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
3196 (pp_c_cv_qualifier): Document.
3197 (pp_c_space_for_pointer_operator): Likewise.
3198 (pp_c_integer_constant): Likewise.
3199 (pp_c_identifier): Likewise.
3200 (pp_c_init_declarator): Don't print function body.
3202 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
3204 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
3205 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
3206 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
3207 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
3208 wording and grammar.
3210 2004-03-14 Roger Sayle <roger@eyesopen.com>
3212 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
3213 with lang_hooks.foo ().
3214 * builtins.c (expand_builtin_va_arg): Likewise.
3215 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
3216 c_common_type_for_mode, c_common_nodes_and_builtins,
3217 handle_mode_attribute, handle_vector_size_attribute): Likewise.
3218 * c-convert.c (convert): Likewise.
3219 * c-format.c (check_format_types): Likewise.
3220 * c-objc-common.c (c_tree_printer): Likewise.
3221 * c-typeck.c (build_unary_op, build_conditional_expr,
3222 build_binary_op): Likewise.
3223 * calls.c (try_to_integrate, expand_call,
3224 emit_library_call_value_1): Likewise.
3225 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
3227 * cgraphunit.c (record_call_1, cgraph_analyze_function,
3228 cgraph_expand_function): Likewise.
3229 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
3230 * coverage.c (build_fn_info_type, build_ctr_info_type,
3231 build_gcov_info, create_coverage): Likewise.
3232 * dbxout.c (dbxout_init): Likewise.
3233 * diagnostic.c (diagnostic_report_current_function): Likewise.
3234 * dojump.c (do_jump): Likewise.
3235 * dwarf2out.c (dwarf2_name): Likewise.
3236 * except.c (init_eh): Likewise.
3237 * explow.c (expr_size, int_expr_size): Likewise.
3238 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
3240 * expr.c (store_expr, store_constructor, safe_from_p,
3241 expand_expr_real, do_store_flag, try_casesi): Likewise.
3242 * function.c (push_function_context_to, pop_function_context_from,
3243 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
3244 put_var_into_stack, allocate_struct_function, current_function_name):
3246 * integrate.c (copy_decl_for_inlining, expand_inline_function):
3248 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
3249 lhd_print_error_function): Likewise.
3250 * opts.c (handle_option, decode_options): Likewise.
3251 * passes.c (open_dump_file): Likewise.
3252 * print-tree.c (print_node): Likewise.
3253 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
3254 expand_decl_cleanup, emit_case_nodes): Likewise.
3255 * stor-layout.c (variable_size): Likewise.
3256 * toplev.c (announce_function, wrapup_global_declarations,
3257 check_global_declarations, compile_file, default_tree_printer,
3258 process_options, lang_dependent_init, finalize): Likewise.
3259 * tree-dump.c (dequeue_and_dump): Likewise.
3260 * tree-inline.c (remap_decl, remap_block, copy_body_r,
3261 initialize_inlined_parameters, declare_return_variable,
3262 inlinable_function_p, expand_call_inline, optimize_inline_calls,
3263 walk_tree, copy_tree_r): Likewise.
3264 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3265 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
3266 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
3267 variably_modified_type_p, dump_tree_statistics): Likewise.
3268 * varasm.c (assemble_variable, compare_constant, copy_constant,
3269 force_const_mem, compute_reloc_for_constant, output_constant,
3270 output_addressed_constants, initializer_constant_valid_p): Likewise.
3272 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
3274 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
3276 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
3278 * doc/install.texi: Reflect autoconf and automake version for
3279 libffi. Update autoconf version to 2.59.
3281 2004-03-13 Roger Sayle <roger@eyesopen.com>
3283 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
3284 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
3285 make_range, build_range_check, fold_range_test, unextend,
3286 constant_boolean_node, fold_binary_op_with_conditional_arg,
3287 fold_truthop, fold_mathfn_compare, fold_inf_compare,
3288 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
3289 with lang_hooks.foo ().
3291 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
3293 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
3295 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
3297 * doc/install.texi: Note status of -fnew-ra.
3299 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3302 * expr.c (store_expr): Call emit_queue before generating the move
3303 from the temporary to the original target. Protect the temporary
3306 2004-03-13 Jakub Jelinek <jakub@redhat.com>
3309 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
3310 other than UNSPEC_GOTOFF.
3312 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
3314 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
3315 to arm_legitimate_index_p. Update all callers with SET as default
3317 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
3318 range if OUTER is a sign-extend operation on QImode. Correctly
3319 reject shift operations on sign-extended QImode addresses.
3320 (bad_signed_byte_operand): Delete.
3321 (arm_extendqisi_mem_op): New function.
3322 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
3323 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
3325 (CONSTRAINT_LEN): New.
3326 (EXTRA_CONSTRAINT): Delete. Replace with...
3327 (EXTRA_CONSTRAINT_STR): ... this.
3328 (PREDICATE_CODES): Remove bad_signed_byte_operand.
3329 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
3330 is now always default.
3331 (define_splits for bad sign-extend loads): Delete.
3332 (arm_extendqisi, arm_extendqisi_v5): Likewise.
3333 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
3334 Rework 'U' constraint to 'Uv'.
3335 * arm-protos.h: Remove bad_signed_byte_operand. Add
3336 arm_extendqisi_mem_op.
3337 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
3340 2004-03-13 Alan Modra <amodra@bigpond.net.au>
3342 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
3343 with targetm version.
3346 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
3347 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
3348 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
3349 Update all users of RS6000_ARG_SIZE.
3350 (function_arg_advance): Count fregno using mode size.
3351 (function_arg): Handle long double split over regs and memory.
3352 (function_arg_partial_nregs): Likewise.
3353 (rs6000_va_arg): Repackage complex args.
3355 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
3358 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
3359 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
3360 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
3362 2004-03-12 Jakub Jelinek <jakub@redhat.com>
3364 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
3366 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
3367 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
3369 2003-03-12 Andrew Pinski <apinski@apple.com>
3371 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
3372 Use ret instead of result. Use addr instead of base.
3374 2004-03-12 David Edelsohn <edelsohn@gnu.org>
3376 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
3377 fixes required by libstdc++ and update installation instructions
3380 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
3382 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
3383 leading '@' on fastcall symbols before stripping suffix.
3385 2004-03-12 Roger Sayle <roger@eyesopen.com>
3387 * combine.c (unmentioned_reg_p): New function to check whether an
3388 expression is a "specialization" of another, i.e. that there are
3389 no registers or memory references mentioned in the first that don't
3390 appear in the second.
3391 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
3392 (combine_instructions): Also try combining instructions using the
3393 REG_EQUAL note from a preceding log-linked instruction.
3395 2004-03-12 Roger Sayle <roger@eyesopen.com>
3397 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
3399 2004-03-12 Matt Austern <austern@apple.com>
3401 * target.h (struct gcc_target): New target hook, unwind_label.
3402 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
3403 * output.h (default_emit_unwind_label): New function.
3404 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
3405 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
3406 (TARGET_SUPPORTS_HIDDEN): New target macro.
3407 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
3408 that corresponds to this FDE.
3409 (FRAME_BEGIN_LABEL): Allow target to override default label.
3410 (output_call_frame_info): If FDEs are linknonce, then use extra
3411 indirection for FDE encoding, output a label for each FDE, and
3412 output an empty label for each function without an FDE.
3413 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
3414 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
3415 decls with DECL_ONE_ONLY set, if that macro is defined.
3416 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
3417 for a SUPPORTS_ONE_ONLY target.
3418 * config/darwin-protos.h (darwin_unique_section): Declare.
3419 (darwin_asm_named_section): Likewise.
3420 (darwin_section_type_flags): Likewise.
3421 (darwin_non_lazy_pcrel): Likewise.
3422 (darwin_emit_unwind_label): Likewise.
3423 (darwin_make_decl_one_only): Likewise.
3424 * config/darwin.c (machopic_finish): Get rid of tweak that
3425 eliminate stubs for symbols that are defined.
3426 (darwin_encode_section_info): Don't treat weak functions as defined.
3427 (darwin_make_decl_one_only): Define.
3428 (darwin_asm_named_section): Likewise.
3429 (darwin_section_type_flags): Likewise.
3430 (darwin_unique_section): Likewise.
3431 (darwin_emit_unwind_label): Likewise.
3432 (darwin_non_lazy_pcrel): Likewise.
3433 (darwin_asm_output_dwarf_delta): Difference between two labels is
3434 local only if both labels are local.
3435 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
3436 (ASM_MAKE_LABEL_LINKONCE): Likewise.
3437 (TARGET_SUPPORTS_HIDDEN): Likewise.
3438 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
3439 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
3440 (FRAME_BEGIN_LABEL): Likewise.
3441 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
3442 (ASM_DECLARE_FUNCTION_NAME): Likewise.
3443 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
3444 (TARGET_ASM_UNIQUE_SECTION): Define.
3445 (EH_FRAME_SECTION_NAME): Define.
3446 (EH_FRAME_SECTION_ATTR): Likewise.
3447 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
3448 (TARGET_ASM_NAMED_SECTION): Likewise.
3449 (TARGET_SECTION_TYPE_FLAGS): Likewise.
3450 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
3451 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
3452 TARGET_ASM_EMIT_UNWIND_LABEL.
3454 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3456 * builtins.c (expand_builtin_mathfn): Add pow10* to the
3457 existing exp10* case.
3458 (expand_builtin): Likewise.
3460 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
3462 * doc/tm.texi (registers) <Values in Registers>: Add
3463 entry for REGMODE_NATURAL_SIZE.
3465 2004-03-12 Richard Henderson <rth@redhat.com>
3468 * target.h (struct gcc_target): Move calls substructure before
3469 booleans. Add split_complex_arg.
3470 * function.c (assign_parms, split_complex_args): Use it.
3471 * calls.c (expand_call): Likewise.
3472 (split_complex_values): Likewise. Check for splittable types
3473 before allocating memory.
3474 (split_complex_types): Likewise.
3475 * system.h (SPLIT_COMPLEX_ARGS): Poison.
3476 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
3477 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
3478 * config/alpha/alpha.c (alpha_split_complex_arg): New.
3479 (TARGET_SPLIT_COMPLEX_ARG): New.
3480 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
3481 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
3482 (rs6000_override_options): Zap it for non-AIX.
3483 (rs6000_function_value): Use targetm.calls.split_complex_arg.
3484 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
3485 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
3486 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
3487 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
3488 SPLIT_COMPLEX_ARGS entry.
3490 2004-03-11 Richard Henderson <rth@redhat.com>
3492 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
3493 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
3494 (alpha_emit_xfloating_arith): Update to match.
3495 (alpha_emit_xfloating_compare): Likewise.
3496 (alpha_emit_xfloating_cvt): Likewise.
3497 (alpha_emit_xfloating_libcall): Take already built symbol,
3499 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
3502 2004-03-11 Richard Henderson <rth@redhat.com>
3505 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
3507 * simplify-rtx.c (simplify_relational_operation): Fix typo.
3509 2004-03-11 Richard Henderson <rth@redhat.com>
3512 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
3514 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3517 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
3518 defined, pass small BLKmode values in registers in the low-order part.
3520 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
3522 * combine.c (if_then_else_cond): Check for NULL return value of
3523 simplify_gen_subreg.
3525 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
3528 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
3529 TARGET_SINGLE_FLOAT.
3531 2004-03-11 Steve Ellcey <sje@cup.hp.com>
3533 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
3534 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
3535 * config/ia64/ia64.c (ia64_init_libfuncs): New.
3536 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
3538 2004-03-11 Roger Sayle <roger@eyesopen.com>
3540 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
3541 -((int)X>>C) where C is an integer constant one bit less than the
3542 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
3543 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
3545 * simplify-rtx.c (simplify_unary_operation): Also implement the
3546 above transformations at the RTL level.
3548 2004-03-11 Alan Modra <amodra@bigpond.net.au>
3550 * real.c (encode_ibm_extended): Do round low word.
3552 2004-03-11 Ben Elliston <bje@wasabisystems.com>
3554 * config/arm/arm.md (is_xscale): Comment this attribute and move
3555 it a bit further up in the file, closer to related attributes.
3557 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
3559 * config/host-solaris.c (sol_gt_pch_use_address): Add
3560 missing terminating marker to comment.
3562 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
3564 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
3565 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
3566 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
3567 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
3568 move_operand as source predicate in all cases.
3569 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
3570 Test reg_or_0_operand. Use move_operand as source predicate.
3571 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
3572 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
3573 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
3574 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
3575 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
3576 Use move_operand as source predicate. Remove 'K' constraint.
3577 (*movqi_internal): Likewise movqi_internal.
3578 (*movsf_hardfloat): Renamed from movsf_internal1. Test
3579 reg_or_0_operand. Use move_operand as source predicate.
3580 (*movsf_softfloat): Likewise movsf_internal2.
3581 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
3582 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
3583 (*movdf_softfloat): Likewise movdf_internal2.
3584 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
3585 for DImode if !TARGET_64BIT.
3586 (mips_legitimize_move): Simplify accordingly.
3588 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
3591 * var-tracking.c (struct variable_def): Added field refcount.
3592 (variable_htab_free): Decrease the refcount and delete variable
3593 only if there are no more references.
3594 (unshare_variable): New function.
3595 (vars_copy_1): Increase refcount instead of copying the variable.
3596 (variable_union): Share the variables where possible, unshare
3597 the variables if needed.
3598 (variable_different_p): Return false if var1 and var2 are
3600 (variable_was_changed): Init the refcount of new variable.
3601 (set_frame_base_location): Unshare variable if needed.
3602 (set_variable_part): Init the refcount of new variable.
3603 Unshare the variables if needed.
3604 (delete_variable_part): Unshare the variables if needed.
3605 (emit_notes_for_differences_1): Init the refcount of new variable.
3606 (vt_add_function_parameters): Do not add function parameters to
3607 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
3608 (vt_initialize): Do not add frame_base_decl to IN set of
3609 ENTRY_BLOCK_PTR because it is unused anyway.
3611 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
3613 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
3614 (vars_copy): Likewise.
3615 (variable_union): Likewise.
3616 (set_variable_part): Likewise.
3617 (delete_variable_part): Likewise.
3619 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
3621 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
3622 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
3623 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
3624 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
3625 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
3626 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
3627 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
3628 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
3629 config/stormy16/stormy16.c: Fix comment typos and formatting.
3631 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
3633 * configure: Regenerate, since I forgot to while committing Paolo's
3636 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
3639 Move language detection to the top level.
3640 * configure.ac: Remove code to detect languages,
3641 it now lives exclusively in the top level.
3642 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
3643 top level, renamed to ACX_PROG_GNAT.
3645 2004-03-10 Richard Henderson <rth@redhat.com>
3647 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
3649 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
3650 and host_xmake_file fragments.
3651 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
3652 (gt_pch_restore): Similarly for gt_pch_use_address.
3653 (default_gt_pch_get_address): New.
3654 (mmap_gt_pch_get_address): Split out of gt_pch_save.
3655 (default_gt_pch_use_address): Split out of gt_pch_restore.
3656 (mmap_gt_pch_use_address): Likewise.
3657 * hooks.c (hook_voidp_size_t_null): Remove.
3658 (hook_bool_voidp_size_t_false): Remove.
3659 * hooks.h: Likewise.
3660 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
3661 default_ or mmap_ definitions.
3662 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
3663 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
3664 and gt_pch_use_address.
3665 * config/host-linux.c, config/host-solaris.c: New files.
3666 * config/x-linux, config/x-solaris: New files.
3667 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
3668 Update for changed definition.
3669 (darwin_rs6000_gt_pch_use_address): Likewise.
3670 * doc/hostconfig.texi: Update docs.
3672 2004-03-10 Richard Henderson <rth@redhat.com>
3675 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
3676 except for pedantic c90 mode.
3678 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
3680 * configure.ac: Bump AC_PREREQ to 2.59.
3681 * configure: Regenerate.
3683 2004-03-10 Uros Bizjak <uros@kss-loka.si>
3685 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
3686 (exp10_optab, exp2_optab): Define corresponding macros.
3687 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
3688 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
3689 using exp10?f2 and exp2?f2 patterns.
3690 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
3691 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
3692 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
3693 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
3695 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
3696 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
3697 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
3699 2004-03-10 Anthony Green <green@redhat.com>
3701 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
3703 2004-03-10 David Edelsohn <edelsohn@gnu.org>
3705 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
3706 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
3708 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
3709 TARGET_OS_AIX_CPP_BUILTINS.
3710 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
3711 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
3712 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
3713 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
3716 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3718 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
3720 2004-03-10 David Edelsohn <edelsohn@gnu.org>
3722 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3723 __LONGDOUBLE128 on AIX.
3725 2004-03-10 Andrew Haley <aph@redhat.com>
3727 PR optimization/14381
3728 * function.c (expand_function_end): Emit a blockage insn before
3729 the epilogue when -fnon-call-exceptions is used.
3731 * except.c (expand_start_all_catch): Make comment more accurate.
3733 2004-03-08 Joel Sherrill <joel@oarcorp.com>
3736 * config/rs6000/t-rtems: Add missing file on branch.
3738 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
3740 * dbxout.c (dbxout_symbol_location): Do not output references
3741 to optimized-out constant pool symbols.
3743 2004-03-10 Andreas Schwab <schwab@suse.de>
3745 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
3748 2004-03-09 James E Wilson <wilson@specifixinc.com>
3750 * alias.c (alias_sets_might_conflict_p): New.
3751 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
3752 * common.opt (Wstrict-aliasing=): New.
3753 * flags.h (warn_strict_aliasing): Change type to int.
3754 * opts.c (warn_strict_aliasing): Change type to int.
3755 (common_handle_option): Handle OPT_Wstrict_aliasing_.
3756 * tree.h (alias_sets_might_conflict_p): Declare it.
3757 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
3759 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
3762 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
3763 (CALL_USED_REGISTERS): Likewise.
3764 (REG_CLASS_CONTENTS): Likewise.
3765 (REG_ALLOC_ORDER): New.
3766 (REGNO_REG_CLASS): Use regno_reg_class.
3767 * config/m68k/m68k.c: Add regno_reg_class array.
3769 2004-03-09 Steve Ellcey <sje@cup.hp.com>
3771 * config/ia64/ia64.md (divsi3): Fix algorithm.
3773 (setf_exp_xf): Remove '*' from name.
3774 * testsuite/gcc.dg/20040309-1.c: New test.
3776 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
3778 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
3779 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
3780 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
3781 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
3782 (sparc_aout_select_rtx_section): Don't check
3783 SUNOS4_SHARED_LIBRARIES.
3784 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
3786 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
3789 * doc/md.texi (Pattern Ordering, Dependent Patterns)
3790 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
3793 2004-03-09 Zack Weinberg <zack@codesourcery.com>
3795 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
3796 (LIBGCC_SPEC): Update to match.
3798 2004-03-09 Zack Weinberg <zack@codesourcery.com>
3800 * c-decl.c (last_function_parms, last_function_parm_tags)
3801 (last_function_parm_others, current_function_parms)
3802 (current_function_parm_tags, current_function_parm_others):
3804 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
3806 (grokdeclarator): For function definitions, save the arg-info
3807 block from the declarator in DECL_ARGUMENTS.
3808 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
3809 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
3810 contains only PARM_DECLs. Improve diagnostics.
3811 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
3812 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
3813 (store_parm_decls_newstyle): Take the function to operate on,
3814 and an arg-info block, as arguments; don't get anything from
3815 current_function_* globals.
3816 (store_parm_decls_oldstyle): Likewise.
3817 (store_parm_decls): Pass fndecl and its arg-info block down to
3818 store_parm_decls_newstyle/oldstyle. Send functions with empty
3819 argument lists through store_parm_decls_newstyle to reduce
3821 (pushdecl): Comment on the problems with the call to copy_node.
3822 Clear DECL_ARGUMENTS of the old node after copying it, if it
3823 is an arg-info block instead of a chain of decls.
3824 (start_function): Do not manipulate current_function_parm* or
3825 last_function_parm*.
3827 2004-03-09 Roger Sayle <roger@eyesopen.com>
3828 Andrew Pinski <pinskia@physics.uc.edu>
3830 * ifcvt.c (noce_try_sign_mask): New function to transform
3831 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
3832 (noce_process_if_block): Call noce_try_sign_mask.
3834 2004-03-09 Andrew Pinski <apinski@apple.com>
3836 * c-typeck.c (tagged_types_tu_compatible_p):
3839 2004-03-09 Roger Sayle <roger@eyesopen.com>
3841 * simplify-rtx.c (simplify_const_relational_operation): New function
3842 renamed from simplify_relational_operation.
3843 (simplify_relational_operation): Change prototype to accept an
3844 additional mode argument. Call simplify_const_relational_operation.
3845 (simplify_gen_relational): Update simplify_relational_operation call.
3846 (simplify_ternary_operation): Update simplify_relational_operation
3847 subroutine call to use simplify_const_relational_operation instead.
3849 * rtl.h (simplify_const_relational_operation): Prototype here.
3850 (simplify_relational_operation): Add addtional mode argument.
3852 * combine.c (combine_simplify_rtx): Update calls to
3853 simplify_relational_operation.
3854 (simplify_set): Likewise.
3855 (gen_binary): Likewise.
3856 * cse.c (fold_rtx): Likewise.
3857 * dojump.c (compare_from_rtx): Likewise.
3858 (do_compare_rtx_and_jump): Likewise.
3859 * integrate.c (subst_constants): Likewise.
3860 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
3862 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
3864 * config/m32r/m32r.md: Remove all define_peephole's.
3866 2004-03-09 Alan Modra <amodra@bigpond.net.au>
3868 * config/rs6000/rs6000.md: Remove trailing whitespace.
3870 2004-03-08 Eric Christopher <echristo@redhat.com>
3872 * Makefile.in (site.exp): Add libiconv variable definition.
3874 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
3876 * configure: Regenerate for config/accross.m4 correction.
3878 2004-03-08 Joel Sherrill <joel@oarcorp.com>
3881 * config/rs6000/t-rtems: Add missing file on branch.
3883 2004-03-08 Roger Sayle <roger@eyesopen.com>
3886 * c-typeck.c (c_mark_addressable): A register variable should
3887 be considered global if its not automatic, i.e. TREE_PUBLIC,
3888 TREE_STATIC or DECL_EXTERNAL.
3889 * function.c (put_var_into_stack): Call abort when placing a
3890 hard register into the stack, if x_parm_reg_stack_loc is NULL.
3892 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
3894 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
3895 ("*extendqisi2_short_displ"): Likewise.
3897 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
3899 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
3900 (comp_operator): Likewise.
3901 * config/pdp11/pdp11-protos.h: Remove corresponding
3904 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
3906 * expr.c (highest_pow2_factor_for_type): Rename into
3907 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
3908 TYPE_ALIGN when the target is a COMPONENT_REF.
3909 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
3911 2004-03-08 Alan Modra <amodra@bigpond.net.au>
3913 * config/rs6000/rs6000.c: Formatting fix.
3914 (legitimate_offset_address_p): Correct offset range check.
3916 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
3917 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
3920 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
3922 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
3924 ("ashrdi3_no_power"): Disable for little endian.
3927 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3929 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
3932 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
3935 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
3936 case, checking for -no-mul-bug-abort option.
3937 * configure, config.in: Regenerate.
3938 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
3939 and -mno-mul-bug-workaround.
3940 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
3941 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
3942 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
3943 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
3944 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
3945 sure mulu.d is not last on cache-line.
3946 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
3947 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
3948 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
3949 (TARGET_SWITCHES): New options -mmul-bug-workaround and
3950 -mno-mul-bug-workaround.
3951 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
3952 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
3953 * config/cris/cris.c (cris_operand_extend_operator): Clarify
3954 relation to MULT in head comment.
3955 (cris_op_str): Abort for MULT.
3956 (cris_print_operand) <case '!'>: New case.
3958 2004-03-08 Alan Modra <amodra@bigpond.net.au>
3961 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
3962 dw_val_class_vec. Replace use throughout file.
3963 (dw_float_const): Delete.
3964 (dw_vec_const): New.
3965 (dw_val_struct_union): Rename val_float to val_vec. Replace use
3967 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
3968 (same_dw_val_p): Adjust vec comparison. Use memcmp.
3969 (size_of_die): Adjust dw_val_class_vec sizing.
3970 (output_die): Output dw_val_class_vec.
3971 (insert_int, extract_int, insert_float): New functions.
3972 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
3973 Handle CONST_VECTOR.
3974 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
3976 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
3978 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
3979 AltiVec abi cannot co-exist.
3981 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
3983 2004-03-07 Jan Hubicka <jh@suse.cz>
3985 * except.c (emit_to_new_bb_before): Break fallthru edges.
3987 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
3989 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
3990 ("*lshrsi3"): Also accept an immediate for 68HC12.
3991 ("*ashrsi3_const"): Likewise.
3992 ("*ashrsi3"): Likewise.
3993 ("*ashlsi3_const"): Likewise.
3994 ("*ashlsi3"): Likewise.
3995 ("cmphi_1_hc12"): Compare two hard register by pushing them and
3996 comparing with a pop; don't use a split for that.
3997 ("cmphi split"): Disable compare split for 68HC12.
3999 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
4000 the status operands if they have side effects.
4002 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
4004 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
4006 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
4007 config/h8300/h8300.h, config/ia64/ia64.h,
4008 config/mcore/mcore.h, config/mmix/mmix.h,
4009 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
4010 config/stormy16/stormy16.h, config/v850/v850.h,
4011 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
4012 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
4015 2004-03-07 Roger Sayle <roger@eyesopen.com>
4017 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
4018 <XOR_EXPR>: Fold x ^ x as zero.
4019 <AND_EXPR>: Fold x & x as x.
4021 2004-03-07 Roger Sayle <roger@eyesopen.com>
4023 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
4024 "foo++ == const" into "++foo == const+incr".
4026 2004-03-07 Richard Sandifor