1 2003-12-08 Jason Merrill <jason@redhat.com>
2 Daniel Berlin <dberlin@dberlin.org>
5 Support namespaces in DWARF 2 output.
6 * dwarf2out.c (gen_namespace_die): New function.
7 (force_namespace_die, setup_namespace_context): New fns.
8 (declare_in_namespace): New fn.
9 (gen_decl_die): Call declare_in_namespace. Handle namespaces.
10 (dwarf2out_decl): Handle namespaces.
11 (scope_die_for): Pass through a namespace scope.
12 (class_scope_p): Rename to class_or_namespace_scope_p.
13 (gen_subprogram_die, gen_variable_die): Adjust.
14 (gen_struct_or_union_die): Always emit a declaration
15 if context_die is a namespace.
17 2003-12-08 Jan Hubicka <jh@suse.cz>
19 * unwind-pe.h (read_uleb128): Fix handling of large values
20 (read_sleb128): Fix handling of large values
22 2003-12-08 Andrew Pinski <pinskia@physics.uc.edu>
25 * emit-rtl.c (copy_rtx_if_shared): Split out into ...
26 (copy_rtx_if_shared_1): here and optimize the last one
27 in the sequence into tail-recursion.
28 (reset_used_flags): Optimize the last one
29 in the sequence into tail-recursion.
31 2003-12-08 Richard Earnshaw <rearnsha@arm.com>
33 * arm.md: New split to transform ((X << y) - 1) into ~(~(X-1) << y)
36 2003-12-08 Richard Sandiford <rsandifo@redhat.com>
38 * calls.c (expand_call): Don't try using tail or recursive calls
39 after the function body has been expanded.
41 2003-12-08 Jan Hubicka <jh@suse.cz>
43 * i386.md (cmpstr expander): Obey TARGET_INLINE_ALL_STRINGOPS
45 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
47 PR ada/13324, PR ada/12614
48 * doc/install.texi: Update requirements for building Ada.
50 2003-12-07 David Edelsohn <edelsohn@gnu.org>
51 Graham Reed <greed@pobox.com>
53 * collect2.c (GCC_OK_SYMBOL): Add support for AIX C_WEAKEXT.
54 (GCC_UNDEF_SYMBOL): Same.
56 2003-12-07 Kazu Hirata <kazu@cs.umass.edu>
58 * final.c (final_scan_insn): Don't use FINAL_PRESCAN_LABEL.
59 * system.h (FINAL_PRESCAN_LABEL): Poison.
60 * doc/tm.texi (FINAL_PRESCAN_LABEL): Remove.
62 2003-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
64 * Makefile.in (compare): Combine toplevel and $(SUBDIRS) cases.
66 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
68 * configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
69 * configure: Regenerate with autoconf 2.13.
71 * configure.in: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
72 with modern equivalents.
73 * configure: Regenerate.
75 * configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
76 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
77 * configure: Regenerate.
79 * configure: Regenerate with (preferred) autoconf 2.57.
80 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
82 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
85 * caller-save.c (save_call_clobbered_regs): Do not save/restore
86 registers around no-return calls.
88 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
90 * configure.in: Make minimum necessary changes for autoconf 2.5x.
91 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
92 * configure: Regenerate with autoconf 2.58.
94 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
97 * loop.c (express_from): Protect integer division from overflow.
99 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
101 PR optimization/13060
102 * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
103 replacement already exists. Fix again the whole insn if that fails.
105 2003-12-06 Andrew Pinski <pinskia@physics.uc.edu>
107 * config/rs6000/rs6000.c (macho_branch_islands): Use
108 HOST_WIDE_INT_PRINT_UNSIGNED.
110 2003-12-06 Richard Sandiford <rsandifo@redhat.com>
112 * varasm.c (incorporeal_function_p): New.
113 (assemble_external): Use it as a filter.
114 * config/mips/mips.c (mips_output_external): Don't check for builtin
117 2003-12-06 Richard Earnshaw <reanrsha@arm.com>
119 * arm.md (IOR (COMPARISON) (AND)): New define_splits.
121 2003-12-06 Kelley Cook <kcook@gcc.gnu.org>
123 * Makefile.in (program_transform_cross_name): Delete.
124 (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete.
125 (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete.
126 (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above.
127 (install_cpp, install_driver, install-man, uninstall): Likewise.
129 2003-12-06 Alan Modra <amodra@bigpond.net.au>
132 * basic-block.h (PROP_ASM_SCAN): Define.
133 * final.c (regs_asm_clobbered): New array.
134 * regs.h (regs_asm_clobbered): Declare.
135 * flow.c (life_analysis): Init it.
136 (mark_set_regs): Set PROP_ASM_SCAN for asms.
137 (mark_set_1): Set regs_asm_clobbered.
138 * global.c (global_alloc): Don't set eliminable_regset when
141 2003-12-05 Mark Mitchell <mark@codesourcery.com>
143 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Define.
146 * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify.
148 2003-12-05 Andrew Pinski <pinskia@physics.uc.edu>
151 * gcc.c (execute) Increment execution_count when returning
152 early because verbose_only_flag is true.
154 2003-12-05 Per Bothner <pbothner@apple.com>
156 * cppfiles.c (file_hash_hash): New static function.
157 (hash_string_eq): Renamed static function to file_hash_eq.
158 (_cpp_init_files): Create file_hash table with above callbacks.
159 (cpp_included): Must use htab_find_with_hash insead of htab_find.
160 (_cpp_find_find, make_cpp_dir): Must use htab_find_slot_with_hash.
162 2003-12-05 Per Bothner <pbothner@apple.com>
164 * line-map.h (source_location): New typedef.
165 (fileline): Redefined as source_location.
166 (struct line_map, linemap_add, linemap_lookup): Replace filefile
168 * line-map.c (linemap_add, linemap_lookup): Use source_location.
170 2003-12-05 Richard Henderson <rth@redhat.com>
172 * config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
173 field to suppress -Wpadded warnings.
175 2003-12-05 Stuart Hastings <stuart@apple.com>
177 * config/rs6000/rs6000.md: Correct macro test of TARGET_MACHO.
179 2003-12-05 Stuart Menefy <stuart.menefy@st.com>
180 J"orn Rennecke <joern.rennecke@superh.com>
183 * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
185 2003-12-05 Roger Sayle <roger@eyesopen.com>
187 * dojump.c (do_jump): If the expression being compared against
188 zero, is the subreg of a promoted variable, perform the comparison
189 in the promoted mode.
190 * simplify-rtx.c (simplify_unary_operation): Optimize sign and
191 zero-extensions of subregs of promoted variables where the
192 extension is identical to that used to promote the variable.
194 2003-12-05 Hans-Peter Nilsson <hp@axis.com>
197 * resource.h (enum mark_resource_type): Remove member MARK_DEST.
198 The only user changed as follows:
199 * resource.c (mark_set_resources) <case SET>: Always recurse for
201 <case SIGN_EXTRACT, case ZERO_EXTRACT>: Always recurse on
203 <case STRICT_LOW_PART>: Delete, deferring to default code.
205 2003-12-05 Waldek Hebisch <hebisch@math.uni.wroc.pl>
207 * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
208 and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
210 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
212 * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
213 for n32 & n64 abicalls.
215 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
218 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
219 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
220 (mips_load_got): Always create a constant MEM.
221 (mips_expand_call): Use load_callsi and load_calldi.
222 * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
223 (load_callsi, load_calldi): New patterns.
225 2003-12-05 Peter Gerwinski <peter@gerwinski.de>
227 * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
229 2003-12-05 Steven Bosscher <stevenb@suse.de>
231 * config/d30v/d30v-protos.h , config/d30v/d30v.c,
232 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
233 config/fr30/fr30-protos.h, config/fr30/fr30.c,
234 config/i370/i370-protos.h, config/i370/i370.c,
235 config/i960/i960-protos.h, config/i960/i960.c,
236 config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
237 config/m32r/m32r-protos.h, config/m32r/m32r.c,
238 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
239 config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
240 Convert to ISO C90 function declarations and definitions.
242 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
244 * doc/extend.texi (Constructing Calls): Add warning about
245 the limitations of the functions.
247 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
250 * function.h (struct function): New field 'x_naked_return_label'.
251 * function.c (free_after_compilation): Set it to NULL.
252 (expand_function_end): Emit 'naked_return_label' if it exists.
253 * rtl.h (expand_naked_return): Declare.
254 * stmt.c (expand_naked_return): New function to generate a
255 jump to 'naked_return_label'.
256 * builtins.c (expand_builtin_return): Call expand_naked_return
257 instead of expand_null_return.
258 * config/sparc/sparc.md (untyped_return): Likewise.
260 2003-12-04 Andrew Pinski <pinskia@physics.uc.edu>
263 * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
266 * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
268 2003-12-04 Stuart Hastings <stuart@apple.com>
270 * rs6000.c (output_call, macho_branch_islands,
271 add_compiler_branch_island, no_previous_def, get_previous_label)
272 Revisions of xx_stub functions for branch islands,
273 add -fPIC support for Darwin.
274 * rs6000-protos.h (output_call) Prototype.
275 * rs6000.md Use output_call.
276 * invoke.texi Explain Darwin semantics of -longcall.
277 * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
279 2003-12-04 Richard Henderson <rth@redhat.com>
281 * config/i386/i386.md (addqi3_carry): Use q not r constraints.
282 (subqi3_carry): Likewise.
284 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
286 PR optimization/13260
287 * sh-protos.h (sh_expand_t_scc): Declare.
288 * sh.h (PREDICATE_CODES): Add cmpsi_operand.
289 * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
290 * sh.md (cmpsi): Use cmpsi_operand. If T_REG is compared to
291 something that is not a CONST_INT, copy it into a pseudo register.
292 (subc): Fix description of new T value.
293 (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
294 (sltu, sleu, sgeu): Likewise.
295 (seq, sne): Likewise. Use sh_expand_t_scc.
297 2003-12-04 Nathanael Nerode <neroden@gcc.gnu.org>
299 * configure.in: Generalize the CONFIG_HEADERS pattern under which
301 * configure: Regenerate.
303 * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
304 to avoid trouble when updating to autoconf 2.5x.
305 * configure: Regenerate (with autoconf 2.13 still).
307 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
309 * sh.md (truncdiqi2): Use andi opcode for immediate.
310 (reload_outdf+1,reload_outdf+2): Remove constraints.
311 (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
312 (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
313 (fipr, ftrv): Add .s suffix to opcode.
315 2003-12-04 Richard Sandiford <rsandifo@redhat.com>
319 Revert all of the following patch, except the addition of
320 hook_bool_machine_mode_true:
322 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
324 * Makefile.in (targhooks.o, reload.o): Update dependencies.
325 (GTFILES): Add targhooks.c.
326 (gt-targhooks.h): New rule; depend on s-gtype.
327 * target.h (direct_pool_load_p): New hook.
328 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
329 (TARGET_INITIALIZER): Include it.
330 * targhooks.h (default_direct_pool_load_p): Declare.
331 (hook_bool_machine_mode_true): Declare.
332 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
334 (pool_symbol): New variable.
335 (default_direct_pool_load_p): New function.
336 (hook_bool_machine_mode_true): New function.
337 * reload.c: Include target.h.
338 (find_reloads): If an alternative will force a constant into memory,
339 count an extra reload if constant pool symbols are not valid
340 addresses. If an alternative uses memory to move values between
341 registers, count the move as two reloads rather than one.
342 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
343 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
345 2003-12-03 Mark Mitchell <mark@codesourcery.com>
347 * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
348 * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
350 * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
352 2003-12-03 James E Wilson <wilson@specifixinc.com>
354 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
356 * gcc-page.c (extra_order_size_tab): Correct comment.
358 2003-12-03 Kazu Hirata <kazu@cs.umass.edu>
360 * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
361 instead of gen_push_h8300hs.
362 (pop): Call gen_pop_h8300hs_advanced instead of
364 * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
365 * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
366 Tighten the predicate.
367 (*tablejump_h8300hs_normal): Tighten the predicate.
368 (push_h8300hs): Change to
369 push_h8300hs_advanced.
370 (pop_h8300hs): Change to pop_h8300hs_advanced.
372 2003-12-03 Eric Christopher <echristo@redhat.com>
375 * config/mips/mips.h: Ditto. Fix formatting.
377 2003-12-04 Ben Elliston <bje@wasabisystems.com>
379 * future.options: Remove. Move to gnu.org web pages.
381 2003-12-03 Eric Christopher <echristo@redhat.com>
383 * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
387 2003-12-03 Jan Hubicka <jh@suse.cz>
389 PR optimization/12324
390 * toplev.c (rest_of_decl_compilation): Do not deffer when compiling
391 in unit-at-a-time mode.
393 2003-12-03 Jakub Jelinek <jakub@redhat.com>
395 * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
396 read-only field if cleared is 0.
398 2003-12-03 Nathanael Nerode <neroden@gcc.gnu.org>
400 * config.gcc: Mark obsolete targets for GCC 3.4.
402 2003-12-03 Zack Weinberg <zack@codesourcery.com>
404 * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
405 * config.in, configure.in: Regenerate.
406 * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
409 2003-12-03 Alan Modra <amodra@bigpond.net.au>
412 * cse.c (cse_insn): Set classp using src_const_elt if
415 2003-12-03 Richard Earnshaw <rearnsha@arm.com>
417 * gcse.c (reg_clear_last_set): New function.
418 (reg_set_info): If data is non-null, treat it as an sbitmap of
419 registers, set the bit for the register being set.
420 (compute_store_table): Allocate last_set_in with xcalloc. Do not
421 memset this array on each iteration. Pass reg_set_in_block[bb->index]
422 to note_stores while computing last_set_in instead of scanning
423 last_set_in after the first pass through the insns.
424 Clear last_set_in using reg_clear_last_set instead of explicitly
425 rescanning after each insn. If checking is enabled, assert that
426 last_set_in is completely zeroed after each bb has been processed.
428 2003-12-02 Geoffrey Keating <geoffk@geoffk.org>
430 * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
432 <REG>: Delete incorrect comment.
433 <SET>: Remove 'use_flags' variable.
435 2003-12-03 David Edelsohn <edelsohn@gnu.org>
437 * function.c (assign_parms): Make sure parm PARALLEL combined
438 in reg is composed of more than one object and the mode really
441 2003-12-03 Jan Hubicka <jh@suse.cz>
443 * i386.c (classify_argument): Make it 64bit clean.
445 2003-12-02 Richard Sandiford <rsandifo@redhat.com>
447 * config/mips/mips.c (mips_output_external): Replace checks for
448 specific builtin-in functions with a check for DECL_BUILTIN_IN.
450 2003-12-02 Richard Henderson <rth@redhat.com>
452 * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
453 * tree.h (TREE_SET_CODE): Likewise.
454 * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
456 2003-12-02 Ben Elliston <bje@wasabisystems.com>
458 * dbxstclass.h: Rename from this ..
459 * xcoff.h: .. to this.
460 * xcoffout.c: Include xcoff.h.
462 2003-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
464 * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
466 2003-12-01 James Lemke <jim@wasabisystems.com>
468 * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
470 2003-12-01 Roger Sayle <roger@eyesopen.com>
472 PR optimization/11634
473 * recog.c (split_insn): Factor test of INSN_P and handling of
474 set_noop_p out of here into the two callers.
475 (split_all_insns): Add INSN_P test and set_noop_p handling here.
476 If deleting a no-op set after reload that has a REG_UNUSED note,
477 mark the basic block as changed and recalculate life information.
478 (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
481 2003-12-01 Roger Sayle <roger@eyesopen.com>
483 PR optimization/12322
484 * gcse.c (struct ls_expr): Change type of hash_index from int to
486 (hash_expr): Document hash_table_size parameter and wrap long line.
487 (ldst_entry): Calculate expression's hash_index and record in ptr.
488 (trim_ld_motion_mems): Use hash_index to search a single bucket
489 instead of scanning the entire hash_table. Remove the "del" local
490 variable and use the equivalent "expr == 0" instead. Change last
491 to be a pointer to the pointer to the current element, to simplify
492 and speed-up deleting from a linked list.
494 2003-12-01 James E Wilson <wilson@specifixinc.com>
496 * doc/contrib.texi: Update David Mosberger.
498 * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
502 * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
503 gen_rtx_REG to create new reg with argument mode.
505 2003-12-01 Steven Bosscher <stevenb@suse.de>
507 * ggc.h (struct alloc_zone): Move forward declaration up.
508 (new_ggc_zone): New function prototype.
509 (destroy_ggc_zone): Ditto.
510 * ggc-simple.c (new_ggc_zone): New function, does nothing.
511 (destroy_ggc_zone): Ditto.
512 * ggc-page.c (new_ggc_zone): New function, does nothing.
513 (destroy_ggc_zone): Ditto.
514 * ggc-zone.c (struct page_entry): Fix comment.
515 (ggc_alloc_typed): Use a switch statement instead of ifs.
516 (new_ggc_zone): New function to set up a new GC zone.
517 (destroy_ggc_zone): New function to remove a GC zone.
518 init_ggc): Use new_ggc_zone to set up the default zones.
519 (ggc_collect): Walk a list of zones, instead of just the
520 default zones. Report statistics using the zone name.
522 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
524 * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
526 2003-12-01 Roger Sayle <roger@eyesopen.com>
528 PR optimization/12628
529 * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
530 * regclass.c (reg_scan): Include allocate_reg_info time in
531 TV_REG_SCAN. Minor clean-ups.
532 (reg_scan_update): Minor clean-ups.
534 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
536 * config.gcc (s390x-ibm-tpf*): Add extra_parts.
538 2003-12-01 James E Wilson <wilson@specifixinc.com>
540 * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
543 2003-12-01 Zack Weinberg <zack@codesourcery.com>
545 * common.opt: Remove -fgnu-linker.
546 * flags.h: Remove flag_gnu_linker.
547 * opts.c: Don't handle OPT_fgnu_linker.
548 * toplev.c: Don't initialize flag_gnu_linker.
549 Remove gnu-linker entry from f_options.
550 * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
551 Don't reset flag_gnu_linker.
552 * config/mips/mips.c (override_options): Likewise.
553 * doc/invoke.texi: Remove all mention of -fgnu-linker.
555 2003-12-01 Daniel Berlin <dberlin@dberlin.org>
557 * ggc-zone.c (ggc_pch_write_object): Calculate object size using
558 ggc_get_size (which accounts for large objects properly).
560 2003-12-01 Jeff Sturm <jsturm@one-point.com>
562 PR optimization/13024
563 * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
565 (rest_of_handle_old_regalloc): Likewise. Add rebuild_notes
566 declaration. Rebuild jump labels following local_alloc if necessary.
567 (rest_of_compilation): Remove rebuild_label_notes_after_reload
568 declaration. Don't pass rebuild_notes parameter to
569 rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
570 Don't rebuild jump labels.
572 2003-12-01 Jeff Law <law@redhat.com>
574 * flow.c (count_or_remove_death_notes_bb): New. Extracted from
575 count_or_remove_death_notes.
576 (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
578 2003-12-01 Andreas Krebbel <krebbel1@de.ibm.com>
580 * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
582 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
584 * reload.c (find_reloads_address): Split addresses of type
585 (plus (plus (reg) (reg)) (const_int)) only if one register
586 is either a valid base register or else one of the stack
587 frame related registers (sp/fp/ap).
589 2003-12-01 Steven Bosscher <stevenb@suse.de>
591 * function.c (update_epilogue_consts): Don't use PARAMS.
592 * rtl.h (web_main): Ditto.
593 * target.h (is_costly_dependence): Ditto
595 2003-12-01 Eric Botcazou <ebotcazou@libertysurf.fr>
598 * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
599 do not recheck that 'op0' is a MEM. Move comment. When testing for
600 unaligned objects, take also into account the alignment of 'op0' and
601 'mode1' if 'op0' is a MEM.
603 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
605 * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
607 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
609 * doc/install.texi: Note that fastjar is built with automake 1.7.x
612 2003-12-01 Alan Modra <amodra@bigpond.net.au>
614 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
615 target_flags directly rather than using TARGET_* defines.
617 2003-11-30 Ben Elliston <bje@wasabisystems.com>
621 2003-11-30 Richard Sandiford <rsandifo@redhat.com>
624 * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
625 on 32-bit big-endian targets.
627 2003-11-30 Kazu Hirata <kazu@cs.umass.edu>
629 * genemit.c (register_constraints): Remove.
631 2003-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
633 * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
634 "iordi3"): Insns now use multiple letter constraints.
635 ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
636 covered by "*movdi_64".
637 ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
638 covered by "*movsi_zarch" and "*movsi_esa".
639 ("*movsi_zarch", "*movsi_!zarch"): New insns.
640 ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
641 by "*andsi3_zarch" and "anddi3".
642 ("*anddi3_ni"): Insn merged with "anddi3".
643 ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
644 ("*andsi3_zarch", "*andsi3_esa"): New insns.
645 ("*iordi3_oi"): Insn merged with "iordi3".
646 ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
647 ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
649 * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
650 merged to s390_single_part.
651 (s390_single_part): New function.
652 NOTE: Semantics have changed a bit. Now the value of the part must
653 be different from the others to get a non-negative return value.
654 (s390_extract_qi, s390_extract_hi): Functions merged to
656 (s390_extract_part, s390_extra_constraint_str,
657 s390_const_ok_for_constraint_p): New functions. The L constraint got a
658 new meaning and the N constraint was added as a multiple letter
660 (s390_extra_constraint): Function deleted.
661 (print_operand): New output modifier 'i' and 'j' added.
662 All uses of CONST_OK_FOR_LETTER_P were replaced by
663 CONST_OK_FOR_CONSTRAINT_P.
665 * config/s390/s390-protos.h: Function prototypes adapted.
666 * doc/md.texi: Documentation for new constraint letters added.
668 2003-11-30 Andreas Schwab <schwab@suse.de>
670 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
672 2003-11-29 James E Wilson <wilson@specifixinc.com>
674 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
675 instead of in shared_name.
677 * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
678 * reload1.c (reload): Re-add it here.
680 2003-11-30 Alan Modra <amodra@bigpond.net.au>
682 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
683 set SECTION_WRITE on TARGET_RELOCATABLE.
685 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
687 * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
689 2003-11-28 Gunther Nikl <gni@gecko.de>
691 * config/m68k/m68k.c (MOTOROLA): Move from here...
692 * config/m68k/m68k.h (MOTOROLA): ... to here.
693 (OUTPUT_JUMP): Use do {...} while (0).
694 * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
696 2003-11-28 Gunther Nikl <gni@gecko.de>
698 * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
699 m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
700 MOTOROLA and USE_GAS.
701 * config/m68k/rtemself.h (MOTOROLA): Delete.
702 * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
703 * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
705 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
707 * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
709 2003-11-29 Kelley Cook <kcook@gcc.gnu.org>
711 * Makefile.in (install-info): Install gccinstall.info too.
713 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
715 * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
717 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
719 * config/s390/s390.md ("movhi"): Do not emit extender pattern
720 when loading from a (MEM (ADDRESSOF ...)).
723 2003-11-29 Joseph S. Myers <jsm@polyomino.org.uk>
726 * c-parse.in (typespec_reserved_nonattr): Reject typeof on
729 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
731 * stmt.c (expand_asm_operands): Check whether force_const_mem
734 2003-11-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
736 * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
737 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
739 * config/alpha/gnu.h, config/alpha/linux.h,
740 config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
741 config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
742 config/i386/linux-aout.h, config/i386/linux.h,
743 config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
744 config/m68k/uclinux.h, config/mips/linux.h,
745 config/mn10300/linux.h, config/pa/pa-linux.h,
746 config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
747 config/sparc/linux.h, config/sparc/linux64.h,
748 config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
749 HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
750 all necessary assertions are included.
752 2003-11-28 Jan Hubicka <jh@suse.cz>
754 * emit-rtl.c (set_used_flags): New.
755 (verify_rtx_sharing, verify_rtl_sharing): New.
756 (unshare_all_rtl_1): Rename to....
757 (unshare_all_rtl_in_chain): ... this one; make static.
758 (copy_rtx_if_shared): LABEL_REF chan be shared.
759 * ifcvt.c (unshare_ifcvt_sequence): New.
760 (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
761 noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
762 noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
763 noce_try_abs, noce_process_if_block, find_cond_trap
764 * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
767 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
769 * config/h8300/h8300.md: Fix a comment typo.
771 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
773 * config/h8300/h8300.md (*movsf_h8300h): Change to
775 (addsi_h8300): Change to *addsi_h8300.
776 (addsi_h8300h): Change to *addsi_h8300hs.
777 (subsi3_h8300): Change to *subsi3_h8300.
778 (subsi3_h8300h): Change to *subsi3_h8300hs.
779 (neghi2_h8300h): Change to *neghi2_h8300hs.
780 (negsi2_h8300h): Change to *negsi2_h8300hs.
782 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
784 * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
786 (*subhi3_h8300hs): Likewise.
788 2003-11-28 David Edelsohn <edelsohn@gnu.org>
790 * config/rs6000/rs6000.h (MASK_MFCRF): New.
791 (TARGET_MFCRF): Test target_flags, not processor type.
792 (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
793 Change Don't to Do not.
794 * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
797 2003-11-27 J"orn Rennecke <joern.rennecke@superh.com>
799 * cse.c (cse_set_around_loop): When changing a constant load
800 to a register -register copy, add a REG_EQUAL note.
802 2003-11-27 Randolph Chung <tausq@debian.org>
803 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
805 * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
806 insns. Use the regular call expander for the call to the profiler.
807 * pa.md (call_profiler): Delete.
808 (load_offset_label_address): New insn to load the address of the
809 current function for the profiler.
810 (lcla1, lcla2): New insns to output a code label and load its address.
812 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
814 * final.c (final_scan_insn): Remove commented-out code.
816 2003-11-27 Nathanael Nerode <neroden@gcc.gnu.org>
818 * doc/install.texi: Remove ADAC reference and make accurate.
820 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
822 * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
823 (FUNCTION_VALUE_REGNO_P): Likewise.
824 * config/h8300/h8300.md: Define R0_REG.
826 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
828 * config/h8300/h8300.c: Fix formatting.
829 * config/h8300/h8300.md: Likewise.
831 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
833 * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
835 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
837 * config/h8300/h8300.md: Give names to anonymous insns.
839 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
841 * config/h8300/h8300.md (extendqisi2): Remove constraints.
843 2003-11-27 Gunther Nikl <gni@gecko.de>
845 * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
847 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
849 PR optimization/13041
850 * final.c (frame_pointer_needed): Fix comment.
851 * reload1.c (reload): Decrease alignment of the frame
852 pointer if it was used for register allocation.
854 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
857 * reg-stack (move_for_stack_reg): New prototype. Return
858 whether a control flow insn was deleted.
859 (subst_stack_regs_pat): Likewise, using the information provided
860 by move_for_stack_reg.
861 (subst_stack_regs): Likewise, using the information provided
862 by subst_stack_regs_pat.
863 (convert_regs_1): Record whether a control flow insn was deleted,
864 using the information provided by subst_stack_regs. Purge dead
865 edges only if a control flow insn was deleted.
867 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
875 * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
876 as the base address to copy the memory arguments to.
878 2003-11-26 Danny Smith <dannysmith@users.sourceforge.net>
880 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
881 function aliases as functions.
883 2003-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
885 * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
887 * configure: Regenerate.
889 * Makefile.in: Remove references to ADAC.
891 * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
892 * configure: Regenerate.
894 2003-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
895 Olivier Hainque <hainque@act-europe.fr>
898 * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
899 (sparc_flat_compute_frame_size): Likewise.
900 (sparc_flat_save_restore): Move prototype...
901 * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
902 (save_regs): New prototype.
903 (build_big_number): Likewise.
904 (apparent_fsize): Change type to HOST_WIDE_INT.
905 (actual_fsize): Likewise.
906 (frame_base_offset): Likewise.
907 (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
908 Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
909 [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
910 to load a 64-bit constant.
911 (sparc_nonflat_function_prologue): Change string descriptor to
912 HOST_WIDE_INT_PRINT_DEC. Change offset type to HOST_WIDE_INT.
913 (output_restore_regs): Change offset type to HOST_WIDE_INT.
914 (sparc_nonflat_function_epilogue): Change string descriptor to
915 HOST_WIDE_INT_PRINT_DEC. Use build_big_number.
916 (output_sibcall): Change size type to HOST_WIDE_INT. Use
917 build_big_number. Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
918 (sparc_frame_info): Change types for several components.
919 (sparc_flat_compute_frame_size): Update types according to previous
921 (sparc_flat_function_prologue): Change string descriptor to
922 HOST_WIDE_INT_PRINT_DEC. Change offset type to int. Use
924 (sparc_flat_function_epilogue): Change offset type to int.
925 Rename 'size1' into 'reg_offset1'. Change string descriptor to
926 HOST_WIDE_INT_PRINT_DEC. Use build_big_number. Change big number
927 limit to 4096 instead of 4095.
929 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
932 2003-11-24 Waldek Hebisch <hebisch@math.uni.wroc.pl>
934 * function.c: Make outer_function-chain external.
935 * function.h: Likewise.
937 2003-11-24 Richard Sandiford <rsandifo@redhat.com>
939 * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
941 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
942 whole of the previous STARTFILE_SPEC except crtbegin.o%s.
943 (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
944 (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
945 (SUBTARGET_EXTRA_SPECS): Define.
946 * config/mips/iris6gld.h (LINK_SPEC): Change -init function
947 to __gcc_init and -fini function to __gcc_fini.
948 (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
949 (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
950 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
951 * config/mips/t-iris6gld,
952 * config/mips/irix6-crti.asm,
953 * config/mips/irix6-crtn.asm: New files.
955 2003-11-24 Eric Christopher <echristo@redhat.com>
958 * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
959 (start_function): Use.
960 (c_push_function_context): Ditto.
961 (c-pop_function_context): Ditto.
962 (language_function): Move...
963 * c-tree.h: ... here. Add x_in_iteration_stmt, and
965 * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
966 c_in_iteration_stmt, c_in_case_stmt for parser state. Move
967 check for valid break or continue statment here...
968 * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
969 here. Change original errors to abort.
971 2003-11-24 Jan Hubicka <jh@suse.cz>
973 * fold-const.c (fold): Do not return early when optimizing
974 COMPONENT_REF and constant.
976 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
978 * config/h8300/h8300.md (tablejump_h8300): Change to
980 (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
981 (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
982 (indirect_jump_h8300): Change to *indirect_jump_h8300.
983 (indirect_jump_h8300h): Change to
984 *indirect_jump_h8300hs_advanced.
985 (indirect_jump_normal_mode): Change to
986 *indirect_jump_h8300hs_normal.
988 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
990 * config/h8300/h8300.md: Remove constraints from expanders.
992 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
994 * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
995 stm_h8300s_2_advanced.
996 (stm_h8300s_2_normal): New.
997 (stm_h8300s_2): Likewise.
998 (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
999 (stm_h8300s_3_normal): New.
1000 (stm_h8300s_3): Likewise.
1001 (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
1002 (stm_h8300s_4_normal): New.
1003 (stm_h8300s_4): Likewise.
1004 (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
1005 (ldm_h8300s_2_normal): New.
1006 (ldm_h8300s_2): Likewise.
1007 (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
1008 (ldm_h8300s_3_normal): New.
1009 (ldm_h8300s_3): Likewise.
1010 (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
1011 (ldm_h8300s_4_normal): New.
1012 (ldm_h8300s_4): Likewise.
1013 (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
1014 (two peephole2's): New.
1016 2003-11-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1018 * genattrtab.c (simplify_cond): Update indices correctly.
1019 (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
1020 attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
1021 (check_attr_test, encode_units_mask, compute_alternative_mask,
1022 make_alternative_compare, simplify_and_tree,
1023 attr_rtx_cost, simplify_test_exp, gen_attr,
1024 write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
1025 * rtl.def (EQ_ATTR_ALT): New.
1027 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1029 * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
1030 (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
1032 (main): Initialize them.
1033 (find_attr): Canonicalize the attribute name string.
1034 (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
1036 (attr_printf, attr_eq): Use DEF_ATTR_STRING.
1037 (check_attr_test, check_attr_value, make_length_attrs,
1038 write_length_unit_log, simplify_by_exploding, gen_attr,
1039 write_test_expr, write_attr_value, write_eligible_delay,
1040 write_complex_function, make_internal_attr,
1041 write_const_num_delay_slots): Changed due to change of type of
1043 (fill_attr, evaluate_eq_attr, simplify_and_tree,
1044 attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
1047 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
1050 * config/h8300/h8300.c (push): Call push_h8300hs_normal in
1052 (pop): Call pop_h8300hs_normal in normal mode.
1053 * config/h8300/h8300.md: Likewise.
1054 (pushqi1_h8300hs_normal): New.
1055 (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
1056 (pushhi1_h8300hs_normal): New.
1057 (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
1058 (push_h8300hs_normal): New.
1059 (pop_h8300hs_normal): Likewise.
1061 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1063 * genattrtab.c (count_sub_rtxs): Removed.
1065 2003-11-23 Richard Earnshaw <rearnsha@arm.com>
1067 * recog.c (preprocess_constraints): Only zero those elements of
1068 recog_op_alt that are needed for this insn.
1069 * arm.c (note_invalid_constants): A function can't contain invalid
1070 constants if it has no constraints.
1072 2003-11-22 Jan Hubicka <jh@suse.cz>
1074 * i386.c (classify_argument): Pass __float128 in memory.
1075 (ix86_return_in_memory): Likewise.
1076 (ix86_libcall_value): Likewsie.
1078 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
1080 * config/h8300/h8300.c (dosize): Convert to ISO-C.
1082 2003-11-22 J"orn Rennecke <joern.rennecke@superh.com>
1084 * flow.c (update_life_info): Amend comment about when a register
1087 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
1089 * doc/.cvsignore: Delete.
1091 2003-11-21 Daniel Berlin <dberlin@dberlin.org>
1092 David Edelsohn <edelsohn@gnu.org>
1094 * dwarf2out.c (add_location_or_const_value_attribute): Add support
1097 2003-11-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1099 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
1100 (TARGET_LIBGCC2_CFLAGS): Define.
1102 * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
1103 (__do_global_ctors): Likewise.
1105 2003-11-21 Mark Wielaard <mark@klomp.org>
1107 * doc/invoke.texi (-O2): Doesn't enable -fweb.
1109 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
1111 * doc/invoke.texi: Mention dV and dZ.
1113 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
1115 * doc/invoke.texi: Update dump file names.
1116 Remove de, dW, and dX.
1118 2003-11-20 James E Wilson <wilson@specifixinc.com>
1121 * reload1.c (reload): Delete special handling for setjmp.
1123 2003-11-21 Andreas Tobler <a.tobler@schweiz.ch>
1125 * mklibgcc.in: Evaluate shlib_slibdir_qual during link
1127 * config/t-slibgcc-darwin: Adjust install path.
1128 * config/rs6000/t-darwin: Revert multilib matches since
1129 it is not used on darwin.
1131 2003-11-20 Richard Henderson <rth@redhat.com>
1133 * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
1134 * Makefile.in (OBJS-common, GTFILES): Don't reference them.
1135 (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
1136 (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
1137 * flow.c: Don't include ssa.h.
1138 (set_phi_alternative_reg): Remove.
1139 (calculate_global_regs_live): Don't call it.
1140 (mark_used_regs): Don't handle PHI.
1141 * gengtype.c (open_base_files): Don't reference ssa.h.
1142 * rtl.def (PHI): Remove.
1143 * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
1144 * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
1145 * opts.c (common_handle_option): Likewise.
1146 * toplev.c (f_options): Likewise.
1147 (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
1148 (dump_file): Update to match.
1149 (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
1150 (rest_of_handle_ssa): Remove.
1151 (rest_of_compilation): Don't call it.
1152 * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
1153 * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
1154 * doc/passes.texi (SSA optimizations): Remove.
1156 2003-11-20 Bob Wilson <bob.wilson@acm.org>
1158 * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
1159 * configure: Regenerate.
1161 2003-11-20 Kelley Cook <kcook@gcc.gnu.org>
1163 * Makefile.in (Makefile): Pass along CONFIG_SHELL.
1165 2003-11-20 David Mosberger <davidm@hpl.hp.com>
1167 * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
1169 * unwind-libunwind.c (_Unwind_GetCFA): Implement.
1170 (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
1172 2003-11-20 Fariborz Jahanian <fjahanian@apple.com>
1173 David Edelsohn <edelsohn@gnu.org>
1175 * calls.c (expand_call): Allocate new temp in pass1.
1176 (store_one_arg): If PARALLEL, calculate excess using mode size of
1178 * expr.c (emit_push_insn): If PARALLEL, calculate offset using
1179 mode size of rtvec elt.
1180 * function.c (assign_parms): Use parm in register, if available.
1182 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
1184 * config/h8300/lib1funcs.asm (MOVP): Remove.
1188 2003-11-20 Richard Earnshaw <rearnsha@arm.com>
1190 * arm.c (use_return_insn): New argument, SIBLING. Support returning
1191 with a single instruction if the stack has been decremented by 4
1192 and we have a frame pointer. Update all callers.
1193 (output_return_instruction): Likewise.
1194 (arm_output_epilogue): Change argument to SIBLING. Calculate
1195 really_return from the new argument. Update all callers.
1196 * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
1197 * arm.md (sibcall_epilogue): Call use_return_insn directly, and
1198 pass the sibling call.
1199 * arm-protos.h (use_return_insn, arm_output_epilogue): Update
1202 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
1204 * Makefile.in (extraclean): Delete.
1205 * configure.in (target_list): Remove extraclean.
1206 * configure: Regenerate.
1207 * doc/makefile.texi, doc/sourcebuild.texi: Update.
1208 * objc/Make-lang.in (objc.extraclean): Delete.
1210 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
1212 * Makefile.in (lang_checks): Add.
1213 (check-c++, check-f77, check-java, check-g++, check-g77,
1214 check-objc): Remove hardcoded targets.
1215 * doc/sourcebuild.texi: Document testsuite hooks.
1216 * objc/Make-lang.in (check-objc, lang_checks): Add.
1218 2003-11-19 Scott Snyder <snyder@fnal.gov>
1221 * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
1222 flag, not a constant.
1224 2003-11-19 Kelley Cook <kcook@gcc.gnu.org>
1226 * config/arc/arc-protos.h: Update to C90 prototypes.
1227 * config/arc/arc.c: Likewise.
1228 * config/arc/initfini.c: Likewise.
1230 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
1232 * stmt.c (expand_goto): Memory clobbers added.
1234 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
1236 * reload.c (find_reloads): Added missing type casts.
1238 2003-11-19 James E Wilson <wilson@specifixinc.com>
1240 * combine.c (sets_function_arg_p): Delete unused function.
1242 2003-11-19 Eric Christopher <echristo@redhat.com>
1244 * reload1.c (reload): Revert 2 previous checkins.
1246 2003-11-19 Nathanael Nerode <neroden@gcc.gnu.org>
1248 * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
1249 whether directive begins at the beginning of a line.
1251 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
1253 * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
1255 2003-11-19 Gerald Pfeifer <gp@suse.de>
1257 * doc/install.texi (Specific): Remove information on old versions
1258 of glibc versus old versions of GCC.
1260 2003-11-19 Richard SAndiford <rsandifo@redhat.com>
1262 * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
1263 the register lowpart is a TRULY_NOOP_TRUNCATION.
1265 2003-11-19 Richard Henderson <rth@redhat.com>
1267 * config/i386/i386.c (print_reg): Handle QI and HI modes for
1270 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1272 * config/config.gcc (powerpc-*-darwin*): Add libgcc build
1274 * config/t-slibgcc-darwin: New file, libgcc build specification.
1275 * config/t-darwin: Add libgcc2 flag -fPIC.
1276 * config/rs6000/t-darwin: Multilib matches float.
1277 * libgcc-darwin.ver: New file, contains libgcc symbols.
1279 2003-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
1281 * config/ns32k/ns32k.h: Remove obsolete comment.
1283 2003-11-18 Roger Sayle <roger@eyesopen.com>
1286 * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
1287 size for calls to libgcc's div & mod subroutines when using -Os.
1289 2003-11-18 Jan Hubicka <jh@suse.cz>
1291 * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
1293 2003-11-18 Marc Espie <espie@openbsd.org>
1295 * config/rs6000/sysv4.h: OpenBSD hooks.
1297 2003-11-18 Richard Henderson <rth@redhat.com>
1299 * expr.c (expand_expr): Don't look through constant arrays if
1300 they don't bind locally.
1302 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1304 * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
1305 when seeing if truncation or extension.
1307 2003-11-17 Eric Christopher <echristo@redhat.com>
1309 * reload1.c (reload): Fix previous change.
1311 2003-11-17 Scott Snyder <snyder@fnal.gov>
1314 * dwarf2out.c (struct die_struct): Add die_definition field.
1315 (add_AT_specification): New.
1316 (gen_subprogram_die, gen_variable_die,
1317 gen_struct_or_union_type_die): Use it.
1318 (prune_unused_types_mark): If we're marking a forward declaration,
1319 also mark the full definition, if it exists.
1321 2003-11-16 Nick Clifton <nickc@redhat.com>
1323 * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
1324 * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
1326 * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
1327 to xstormy16_build_builtin_va_list and make static.
1328 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
1330 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1332 * config/h8300/h8300-protos.h: Add the prototype for
1333 same_cmp_following_p.
1334 * config/h8300/h8300.c (same_cmp_following_p): New.
1335 * config/h8300/h8300.md (peephole2): Use it.
1337 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1339 * config/h8300/h8300.md: Don't use REGNO when its operand is
1340 not guaranteed to be a REG.
1342 2003-11-16 Richard Sandiford <rsandifo@redhat.com>
1344 * Makefile.in (expr.o): Depend on $(TARGET_H).
1345 * target.h (return_in_msb): New target hook.
1346 * target-def.h (TARGET_RETURN_IN_MSB): New macro.
1347 (TARGET_CALLS): Include it.
1348 * calls.c (shift_returned_value): New function.
1349 (expand_call): Use it.
1350 * expr.c: Include target.h.
1351 (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
1352 deciding what padding is needed. Change the name of the local
1353 padding variable from big_endian_correction to padding_correction.
1354 * stmt.c (shift_return_value): New function.
1355 (expand_return): Use it. Adjust memory->register copy in the same
1356 way as copy_blkmode_from_reg. Only change the return register's
1357 mode if it was originally BLKmode.
1358 * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
1359 * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
1360 (mips_fpr_return_fields): New, split out from mips_function_value.
1361 (mips_return_in_msb, mips_return_fpr_pair): New functions.
1362 (mips_function_value): Rework to use the functions above.
1363 * config/mips/irix6-libc-compat.c: Delete.
1364 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
1366 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1368 * doc/install.texi (--enable-checking): Update valgrind's URL.
1370 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1372 * config/h8300/h8300.md: Fix warnings by replacing -2147483648
1373 with -2147483647 - 1.
1375 2003-11-16 Gerald Pfeifer <gerald@pfeifer.com>
1377 Fix links in online manuals.
1378 * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
1379 (Precompiled Headers): @pxref to cpp, not cpp.info.
1381 2003-11-16 Jason Merrill <jason@redhat.com>
1383 * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
1384 files in each directory and TAGS files that include them for each
1387 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
1389 * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
1391 (modnorm): Likewise.
1392 (exitdiv): Look at bit 3 of S2L only.
1394 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
1396 * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
1397 (DO_GLOBAL_DTORS_BODY): Likewise.
1399 2003-11-15 Joseph S. Myers <jsm@polyomino.org.uk>
1401 * doc/install.texi (Prerequisites): Refine documentation of
1402 autoconf, automake and perl requirements. Document required
1405 <2003-11-14 Jason Merrill <jason@redhat.com>
1407 * function.c (assign_parms): Use TREE_TYPE to determine the real
1408 type of the argument object.
1410 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
1412 * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
1415 2003-11-14 Fariborz Jahanian <fjahanian@apple.com>
1417 * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
1418 New routine to save vararg registers on stack. Support for
1419 -mpowerpc64 in mixed mode.
1421 2003-11-14 Bernardo Innocenti <bernie@develer.com>
1423 * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
1424 for MOTOROLA versus MIT syntax. Improves readability and provides
1425 better compile-time error checking for both code paths.
1427 2003-11-14 Kelley Cook <kcook@gcc.gnu.org>
1429 * config/frv/frv-protos.h: Update for C90.
1430 * config/frv/frv.h: Likewise.
1431 * config/frv/frvbegin.c: Likewise.
1432 * config/frv/frv.c: Likewise.
1433 (frv_adjust_field_align): Delete unused variable.
1435 2003-11-14 Geoffrey Keating <geoffk@apple.com>
1437 * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
1438 to each place where TARGET_LONG_DOUBLE_128 is used with
1439 DEFAULT_ABI == ABI_AIX.
1441 * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
1442 message comply with GNU standards.
1444 2003-11-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1447 * function.c (struct epi_info): New field const_equiv.
1448 (update_epilogue_consts): New function.
1449 (keep_stack_depressed): Clear new field and verify scratch register
1450 doesn't have it set.
1451 Call new function via note_stores.
1452 (handle_epilogue_set): Allow setting SP equiv reg in different mode.
1453 Allow PLUS where second operand is register known set to constant.
1454 (emit_equiv_load): Write load using proper mode if source different.
1455 * config/mips/mips.md (return_internal): Put (return) first.
1457 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
1459 * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
1461 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
1463 * config/h8300/lib1funcs.asm (modsi3): Don't save unused
1466 (reti): Don't restore unused registers.
1468 2003-11-14 Nick Clifton <nickc@redhat.com>
1470 * config/fr30/fr30.c: Include toplev.h
1472 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
1474 * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
1476 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
1478 * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
1479 function definition syntax.
1481 2003-11-14 Eric Christopher <echristo@redhat.com>
1483 * reload1.c (reload): Revert previous patch. Make
1484 check for assignment into reg_equiv_address stricter.
1486 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
1488 * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
1490 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
1492 * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
1495 2003-11-14 Jason Merrill <jason@redhat.com>
1498 * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
1499 * calls.c (call_expr_flags): New fn.
1500 * tree.h: Declare it.
1502 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
1504 * config/h8300/lib1funcs.asm (__udivsi3): Remove.
1505 (divmodsi3): Change the name to ___udivsi3.
1508 2003-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1510 * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
1511 __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
1512 __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
1513 __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
1514 __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
1515 __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
1516 Const-ify and/or initialize automatic variables at declaration.
1518 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
1520 * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
1521 of er4 with er3. Adjust all callers.
1523 2003-11-13 Andrew Pinski <apinski@apple.com>
1525 * config/darwin.c (machopic_output_possible_stub_label):
1526 Allow stub symbol be not defined when outputting possible
1529 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
1531 * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
1533 (___umodsi3): Likewise.
1534 (exitdiv): Do not restore any register.
1535 (reti): Restore registers.
1537 2003-11-13 Steven Bosscher <stevenb@suse.de>
1539 * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
1541 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
1543 * config/h8300/lib1funcs.asm: Fix comment typos.
1545 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
1547 * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
1548 unused registers. Don't jump to exitdiv.
1549 (umodsi3): Likewise.
1551 2003-11-13 Mark Mitchell <mark@codesourcery.com>
1552 Kean Johnston <jkj@sco.com>
1555 * toplev.c (check_global_declarations): Do not warn about unused
1558 2003-11-13 Pavel Pisa <pisa@cmp.felk.cvut.cz>
1559 Kazu Hirata <kazu@cs.umass.edu>
1561 * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
1562 the approximate quotient method.
1564 2003-11-13 Richard Earnshaw <rearnsha@arm.com>
1566 * combine.c (distribute_notes): When re-distributing the notes from
1567 an insn we are about to delete, ensure we can't end up with a cyclic
1570 2003-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1572 PR optimization/12926
1573 * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
1574 the UNCHANGING_RTX_P flag on memory references to read-only
1575 components that are not addressable.
1577 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
1579 * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
1582 2003-11-13 Jan Hubicka <jh@suse.cz>
1585 * c-decl.c (finish_decl): Use change_decl_assembler_name.
1586 * c-pragma.c (handle_pragma_redefine_extname): Likewise.
1587 * varasm.c (make_decl_rtl): Likewise.
1588 * cgraph.c (change_decl_assembler_name): New function.
1589 * tree.h (set_decl_assembler_name): Kill dead declaration.
1590 (change_decl_assembler_name): Declare.
1592 * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1593 * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1595 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
1597 * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
1600 2003-11-12 Richard Sandiford <rsandifo@redhat.com>
1603 * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
1604 (MULTILIB_OSDIRNAMES): Reorder accordingly.
1606 2003-11-12 Janis Johnson <janis187@us.ibm.com>
1608 * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
1609 (rs6000_stack_info): Remove. (debug_stack_info): Remove.
1610 (rs6000_emit_eh_reg_restore): Add
1611 * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
1612 of vars_size and total_size to HOST_WIDE_INT.
1613 (emit_frame_save): Change parameter size to HOST_WIDE_INT.
1614 (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
1615 (debug_stack_info): Make static; change output format of HOST_WIDE_INT
1617 (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
1618 (rs6000_initial_elimination_offset): New, with code formerly in
1619 INITIAL_ELIMINATION_OFFSET.
1620 * rs6000.h (rs6000_stack_t): Remove.
1621 (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
1622 rs6000_initial_elimination_offset.
1623 * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
1624 rs6000_emit_eh_reg_restore.
1626 2003-11-12 Mike Stump <mrs@apple.com>
1628 * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
1629 is the argumnt we are processing so that warnings and errors
1630 will have that information.
1631 * c-tree.h (c_convert_parm_for_inlining): Add argnum.
1633 (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
1634 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
1635 * langhooks.h (convert_parm_for_inlining): Likewise.
1636 * tree-inline.c (initialize_inlined_parameters): Compute and
1639 2003-11-12 Alexey Starovoytov <alexey.starovoytov@sun.com>
1640 Roger Sayle <roger@eyesopen.com>
1642 PR optimization/12953
1643 * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
1644 before switch by FUNCTION_CODE.
1646 2003-11-12 Richard Earnshaw <rearnsha@arm.com>
1648 * arm.md (storehi): Avoid use of explicit subreg.
1649 (storehi_bigend, storeinthi, movhi_bigend): Likewise.
1651 2003-11-12 J"orn Rennecke <joern.rennecke@superh.com>
1653 * config/sh/sh.md (prefetch): New pattern.
1655 2003-11-11 Eric Christopher <echristo@redhat.com>
1657 * reload1.c (reload): Verify that addresses for
1658 reg_equiv_* are valid for the architecture.
1660 2003-11-11 Eric Christopher <echristo@redhat.com>
1662 * function.c (purge_addressof_1): Add libcall check.
1663 Remove test for cached replacements on fallback case.
1664 Simplify mode comparisons. Add libcall test for
1665 paradoxical subregs.
1667 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
1669 * config/h8300/t-h8300: Fix an obsolete comment.
1671 2003-11-11 James E Wilson <wilson@specifixinc.com>
1673 * expmed.c (store_bit_field, extract_bit_field): Revert last two
1676 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
1678 * config/h8300/lib1funcs.asm: Replace DenHighZero with
1681 2003-11-11 Jan Hubicka <jh@suse.cz>
1683 * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
1686 2003-11-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1688 * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
1689 generating 64-bit code.
1691 2003-11-10 David Edelsohn <edelsohn@gnu.org>
1693 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
1694 accidental commit in previous change.
1696 2003-11-10 Fariborz Jahanian <fjahanian@apple.com>
1698 * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
1699 * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
1700 address recognition.
1701 (macho_lo_sum_memory_operand): Routine to recognize macho-style
1702 address recognition.
1704 2003-11-10 Richard Henderson <rth@redhat.com>
1706 * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
1708 2003-11-10 Matt Austern <austern@apple.com>
1710 * config/darwin-protos.h (darwin_assemble_visibility): Declare.
1711 * config/darwin.c (darwin_assemble_visibility): Define. Warn for
1712 anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
1713 * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
1714 darwin_assemble_visibility instead of default.
1716 2003-11-10 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1719 * config/sparc/sparc.c (sparc_initialize_trampoline): Call
1720 __enable_execute_stack only after writing onto the stack.
1721 (sparc64_initialize_trampoline): Likewise.
1723 2003-11-09 Roger Sayle <roger@eyesopen.com>
1725 * loop.c (check_dbra_loop): Try swapping the comparison operands
1726 of the loop condition to identify a suitable induction variable.
1727 * unroll.c (loop_iterations): Likewise.
1729 2003-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1731 * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
1732 sparc64 #cpu and #machine assertions.
1734 2003-11-09 Richard Henderson <rth@redhat.com>
1736 * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
1738 2003-11-09 Jan Hubicka <jh@suse.cz>
1740 * tree-optimize.c (tree_rest_of_compilation): Fix warning.
1742 * cgraphunit.c (cgraph_expand_function): Use
1743 cgraph_possibly_inlined_p.
1744 * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
1746 * opts.c (common_handle_option): Do not set max-inline-insns.
1747 * params.def: Update comments.
1748 (PARAM_MAX_INLINE_INSNS): Kill.
1749 * invoke.texi (max-inline-insns): Kill.
1751 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
1755 * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
1756 * invoke.texi: Update.
1758 2003-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1760 PR optimization/12630
1761 * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
1762 Handle length computation 64-bit moves.
1763 (compute_clrstr_length, output_block_clear): Implement block clear.
1764 (output_block_move): Handle 64-bit moves.
1765 (pa_adjust_insn_length): Use compute_movstr_length and
1766 compute_clrstr_length.
1767 * pa.md (movstrsi): Revise operand order and comments. Don't use
1769 (movstrsi_internal): Delete.
1770 (movstrsi_prereload, movstrsi_postreload): New insns. Define splitter
1771 and peephole2 patterns to transform prereload to postreload form.
1772 (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
1773 clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
1774 clrstrdi_postreload): New patterns for 64-bit block move, and block
1776 * pa-protos.h (output_block_clear): New prototype.
1778 2003-11-08 Andreas Schwab <schwab@suse.de>
1780 * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
1781 XCOFF_DEBUGGING_INFO.
1783 2003-11-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1785 * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
1787 2003-11-07 Geoffrey Keating <geoffk@apple.com>
1789 * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
1792 * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
1793 (find_file_in_dir): Likewise.
1794 (_cpp_find_file): Print message if no header file is found
1795 but an invalid PCH file was.
1797 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
1799 * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
1800 expressions as lvalues.
1801 (internal_build_compound_expr): Remove special handling for
1803 * doc/extend.texi: Document that all extended lvalues are now
1806 2003-11-07 Geoffrey Keating <geoffk@apple.com>
1809 * dbxout.c (struct dbx_file): Do not save for PCH.
1810 (current_file): Likewise.
1811 (dbxout_init): Don't allocate struct dbx_file using GC.
1812 (dbxout_start_source_file): Likewise.
1814 2003-11-07 Falk Hueffner <falk@debian.org>
1816 * config/alpha/elf.h, config/alpha/unicosmk.h,
1817 config/alpha/vms.h: Convert to ISO C90.
1819 2003-11-07 Nathanael Nerode <neroden@gcc.gnu.org>
1821 * config/arm/pe.h: Convert to ISO C90.
1823 2003-11-07 J"orn Rennecke <joern.rennecke@superh.com>
1825 * sh-protos.h (sh_pch_valid_p): Declare.
1826 * sh.c ("intl.h"): Include.
1827 (TARGET_PCH_VALID_P): Override.
1828 (sh_target_switches): New variable.
1829 (target_switches): Define.
1830 (sh_pch_valid_p): New function.
1832 * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
1834 2003-11-07 Jan Hubicka <jh@suse.cz>
1836 * i386.c (x86_64_sign_extended_value): Return false from tls variables.
1837 (x86_64_zero_extended_value): likewise.
1839 2003-11-07 Richard Sandiford <rsandifo@redhat.com>
1841 * config/mips/mips.md (loadgp): Take $25 as a second operand.
1842 * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
1844 2003-11-06 Matt Austern <austern@apple.com>
1846 * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
1847 field instead of hanging an attribute object off the decl.
1848 * tree.h (DECL_VISIBLITY): New accessor macro for
1849 symbol_visibility field in struct tree_decl.
1850 (enum symbol_visibility): Move definition to before tree_decl.
1851 (struct tree_decl): Define new two-bit field, symbol_visibility.
1852 (decl_visibility): Remove declaration.
1853 * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
1854 instead of decl_visibility.
1855 (default_binds_local_p_1): Use DECL_VISIBILITY instead of
1857 (decl_visibility): Remove.
1859 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1861 * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
1862 where register 14 will be saved.
1864 2003-11-06 Geoffrey Keating <geoffk@apple.com>
1866 * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
1867 (USE_ALTIVEC_FOR_ARG_P): Likewise.
1868 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
1869 Take a pointer as the CUM parameter. Update callers.
1870 (USE_ALTIVEC_FOR_ARG_P): Likewise. Also correct for Darwin/AIX
1872 (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P. Correct case
1873 of vector parameters as named arguments of stdarg function.
1874 (function_arg): Likewise.
1876 * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
1877 -maltivec is specified, not the non-existent -faltivec.
1879 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
1881 * config/s390/s390-protos.h (s390_function_value): Declare.
1882 * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
1883 (s390_return_in_memory): New function.
1884 (s390_function_value): New function.
1885 (s390_function_arg_float): Return false for all arguments larger
1887 (s390_function_arg_pass_by_reference): Likewise. Return true for
1888 all vector arguments.
1889 (s390_function_arg_integer): New function.
1890 (s390_function_arg_advance): Call it. Add sanity checks.
1891 (s390_function_arg): Likewise.
1892 * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
1893 (LIBCALL_VALUE): Likewise.
1895 (RETURN_IN_MEMORY): Remove.
1897 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
1899 * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
1900 return type to HOST_WIDE_INT.
1901 * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
1902 Make initialized a bool. Make register masks unsigned ints.
1903 (compute_frame_size): Make same mask change here. Use HOST_WIDE_INT
1905 (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
1906 (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
1908 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
1910 * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
1913 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
1915 * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
1917 2003-11-06 Momchil Velikov <velco@fadata.bg>
1919 * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
1922 2003-11-06 Jan Hubicka <jh@suse.cz>
1924 * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
1927 2003-11-06 Zack Weinberg <zack@codesourcery.com>
1929 * genmodes.c: Change the word "bitsize" to "precision" throughout.
1930 * machmode.def: Likewise.
1931 * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
1932 (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
1933 (GET_MODE_PRECISION): New macro.
1934 (mode_bitsize): Renamed mode_precision.
1935 * stor-layout.c (mode_for_size, smallest_mode_for_size):
1936 Use GET_MODE_PRECISION; clarify comments.
1938 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
1940 * doc/install-old.texi: Remove old documentation of building
1942 * doc/install.texi: Move some of it to here.
1944 2003-11-05 Per Bothner <pbothner@apple.com>
1946 PR preprocessor/12891
1947 * c-opts.c (finish_options): Set include_cursor to disable premature
1948 calls to push_command_line_include from cpp_scan_nooutput.
1949 Fixes bug reported by DJ Delorie.
1951 2003-11-05 Geoffrey Keating <geoffk@apple.com>
1953 * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
1954 code supporting old-style varargs.
1956 * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
1957 an intermediate register for better optimisation.
1959 2003-11-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1961 PR optimization/10080
1962 * cfgloopanal.c (variable_initial_value, variable_initial_values,
1963 simple_loop_exit_p): Record the fact that initial value is extended
1965 (count_strange_loop_iterations, count_loop_iterations): Handle
1966 ivs that iterate in a narrower mode. Fix handling of overflows.
1967 Improve handling of NE conditions.
1968 (inverse, fits_in_mode_p): New static functions.
1969 (simple_increment): Detect variables that iterate in a narrower mode.
1970 * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
1972 2003-11-05 Geoffrey Keating <geoffk@apple.com>
1974 * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
1977 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
1980 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
1982 * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
1983 conditional expressions as lvalues.
1985 2003-11-05 Kazu Hirata <kazu@cs.umass.edu>
1987 * tsystem.h: Add the prototype of strlen.
1988 * unwind-pe.h (read_encoded_value_with_base): Add an
1989 appropriate cast to handle a case where the pointer size is
1990 smaller than sizeof (int).
1992 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
1994 * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
1995 (mips_delegitimize_address): Delete.
1996 (mips_gotoff_global, mips_load_got_page): Declare.
1997 (mips_load_got_global, mips_rewrite_small_data): Declare.
1999 * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
2000 (DANGEROUS_FOR_LA25_P): Use global_got_operand.
2001 (PREDICATE_CODES): Add global_got_operand, local_got_operand and
2002 small_data_pattern. Remove CONST from const_arith_operand's entry.
2004 * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
2005 (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
2006 (mips_constant_type): Delete.
2007 (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
2008 SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
2009 (NUM_SYMBOL_TYPES): New macro.
2010 (mips_address_type): Remove ADDRESS_INVALID.
2011 (machine_function): Add has_gp_insn_p.
2012 (mips_constant_info): Delete.
2013 (mips_address_info): Add the address type as an extra field. Replace
2014 the c field with symbol_type.
2015 (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
2016 (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
2017 (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
2018 (mips_split_const, mips_symbolic_constant_p): New functions.
2019 (mips_symbolic_address_p): Take the symbol type and mode as arguments.
2020 (mips_classify_address): Return true if the address is valid, storing
2021 its type in INFO. Use mips_symbolic_constant_p. Use mips_lo_relocs[]
2022 to test whether a LO_SUM address is allowed.
2023 (mips_symbol_insns): Return 0 for general mips16 symbols.
2024 Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
2025 Handle the new SYMBOL_GOTOFF_*s.
2026 (mips_address_insns): Update call to mips_classify_address.
2027 (mips_const_insns): Be more fussy about HIGH constants. Remove use
2028 of mips_classify_constant. Be more accurate about CONSTs.
2029 (mips_global_pic_constant_p): Delete.
2030 (const_arith_operand): Only accept CONST_INTs.
2031 (call_insn_operand): Remove call to mips_classify_constant.
2032 Let mips_symbolic_constant_p check for invalid offsets.
2033 (move_operand): Check for general_operands first. Only accept symbolic
2034 constants if they satisfy mips_symbolic_constant_p and cannot be split.
2035 (symbolic_constant): Use mips_symbolic_constant_p.
2036 (global_got_operand, local_got_operand): New predicates.
2037 (stack_operand): Update call to mips_classify_address.
2038 (mips_legitimate_address_p): Likewise.
2039 (mips_reloc, mips_lui_reloc): Delete.
2040 (mips_force_temporary): Only use the given temporary if no_new_pseudos.
2042 (mips_split_symbol, mips_unspec_address): New functions.
2043 (mips_unspec_offset_high): New function.
2044 (mips_load_got): Replace reloc argument with a symbol_type.
2045 Use mips_unspec_address to create the address and put it in a
2046 LO_SUM with the base register.
2047 (mips_load_got16, mips_load_got32): Delete.
2048 (mips_emit_high, mips_legitimize_symbol): Delete.
2049 (mips_gotoff_global): New function.
2050 (mips_load_got_page, mips_load_got_global): New functions.
2051 (mips_legitimize_symbol): Inline handling of LO_SUM splits.
2052 (mips_legitimize_const_move): Likewise. Remove HIGH handling.
2053 Inline code to handle constants plus invalid offsets. Use
2054 mips_split_symbol to legitimize constant pool addresses.
2055 (mips_delegitimize_address): Delete.
2056 (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
2057 a cost of 1 insn. Give the rest a cost of CONSTANT_POOL_ADDRESS.
2058 (mips_subword): Pass memrefs through mips_rewrite_small_data.
2059 (mips_output_move): Remove use of mips_classify_constant.
2060 (mips_expand_call): Use mips_unspec_offset_high to calculate the
2061 high part of the GOT address for calls to global functions.
2062 (override_options): Initialize mips_split_p[], mips_lo_relocs[]
2063 and mips_hi_relocs[].
2064 (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
2065 Remove use of mips_classify_constant.
2066 (mips_reloc_string): Delete.
2067 (print_operand_reloc): New function.
2068 (print_operand_address): Update call to mips_classify_address.
2069 (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
2070 (small_data_pattern): New predicate.
2071 (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
2072 (mips_function_has_gp_insn): New function.
2073 (mips_global_pointer): Use it.
2074 (mips_gp_insn): Delete.
2075 (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
2076 single loadgp pattern to initialize $gp. Pass it the offset of _gp
2077 from the start of the current function.
2078 (mips16_gp_pseudo_reg): Revert last patch.
2080 * config/mips/mips.md (RELOC_*): Delete.
2081 (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
2082 (got): New insn attribute.
2083 (type): Set to "load" if got == load.
2084 (length): Set to 4 if got == load, 8 if got == xgot_high.
2086 (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
2087 (*got_disp[sd]i, *got_page[sd]i): Likewise.
2088 (*low[sd]i): Change constraints to "d". Add a new define_split to
2089 rewrite small data constants into LO_SUMs.
2090 (loadgp): New insns.
2092 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2094 * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
2096 2003-11-04 DJ Delorie <dj@redhat.com>
2098 * config/v850/v850.md (mulhisi3): Expand the const_int case
2099 separately to avoid trying to sign extend the const.
2101 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
2103 * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
2104 addresses to be shared.
2105 (force_const_mem): Return a copy of the pool entry.
2107 2003-11-03 Andreas Jaeger <aj@suse.de>
2109 * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
2111 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
2113 * Makefile.in (cpp.dvi): New target split from cpp.info.
2114 (gcc.dvi): New target split from gcc.info.
2115 (gccint.dvi): New target split from gccint.info.
2116 (cppinternals.dvi): New target split from cppinternals.info
2117 (gccinstall.info): New specific rule.
2118 (gccinstall.dvi): Likewise.
2119 (dvi): Move targets to $(docobjdir).
2120 ($(docobjdir)/%.dvi): New implicit rule.
2122 2003-11-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2124 * doc/gty.texi (tag, desc): Say more about role of desc values in
2125 selecting between tags.
2127 2003-11-03 Alexander Kabaev <ak03@gte.com>
2129 * real.c (encode_ieee_single): Ensure proper promotion.
2131 2003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2133 * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
2136 2003-11-03 Syd Polk <spolk@apple.com>
2138 * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
2139 marketing names to the list of supported processors.
2140 * config/rs6000/rs6000.h: Ditto.
2141 * doc/invoke.texi: Ditto.
2142 * config.gcc: Ditto.
2144 2003-11-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2146 * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
2147 Merge two substitutions.
2148 * fixinc/fixincl.x: Regenerate.
2149 Fixes PR bootstrap/12666.
2151 2003-11-03 Joseph S. Myers <jsm@polyomino.org.uk>
2153 * doc/install-old.texi: Remove VMS documentation.
2155 2003-11-03 Jan Hubicka <jh@suse.cz>
2157 * i386.c (override_options): Remove hack enabling 128bit long double
2158 commited by accident.
2160 2003-11-02 Per Bothner <per@bothner.com>
2162 * c-opts.c (needValue): Do cpp_find_main_file before processing
2163 any imacros flags, so pfile->main_file is set for the latter.
2165 2003-11-03 Andreas Jaeger <aj@suse.de>
2166 Zack Weinberg <zack@codesourcery.com>
2168 * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
2169 (SYSCALLS.c.X-warn): Suppress warnings.
2171 2003-11-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2173 PR optimization/12845
2174 * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
2176 2003-11-02 Zack Weinberg <zack@codesourcery.com>
2178 * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
2179 * config/i386/i386.c (print_reg): Abort on a virtual register
2180 if code != -1; not if file == asm_out_file.
2181 * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
2182 (DEBUG_PRINT_REG): Delete, unused.
2184 2003-11-02 Andreas Schwab <schwab@suse.de>
2186 * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
2187 empty to avoid conflict with the definition from configure.
2189 2003-11-02 Roger Sayle <roger@eyesopen.com>
2191 PR optimization/10817
2192 * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
2193 (noce_try_move): New function to optimize an if-the-else into an
2194 unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
2195 (noce_process_if_block): Attempt simplification with noce_try_move.
2197 * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
2198 and improvements to the optimizations of IF_THEN_ELSE expressions.
2199 (simplify_subreg): Silence signed/unsigned comparison warning.
2201 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
2203 * Makefile.in (targhooks.o, reload.o): Update dependencies.
2204 (GTFILES): Add targhooks.c.
2205 (gt-targhooks.h): New rule; depend on s-gtype.
2206 * target.h (direct_pool_load_p): New hook.
2207 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
2208 (TARGET_INITIALIZER): Include it.
2209 * targhooks.h (default_direct_pool_load_p): Declare.
2210 (hook_bool_machine_mode_true): Declare.
2211 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
2213 (pool_symbol): New variable.
2214 (default_direct_pool_load_p): New function.
2215 (hook_bool_machine_mode_true): New function.
2216 * reload.c: Include target.h.
2217 (find_reloads): If an alternative will force a constant into memory,
2218 count an extra reload if constant pool symbols are not valid
2219 addresses. If an alternative uses memory to move values between
2220 registers, count the move as two reloads rather than one.
2221 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
2222 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
2224 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2226 PR optimization/12799
2227 * postreload.c (reload_cse_move2add): Generate the add2
2230 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2232 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2233 Return 0 for all complex modes whose size is lesser or equal to
2234 a word. Add a ??? comment for the condition used with 16-byte
2237 2003-11-01 Kelley Cook <kcook@gcc.gnu.org>
2239 * .cvsignore: Remove c-parse* and tradcif.c.
2240 * objc/.cvsignore: Delete.
2242 2003-11-01 Roger Sayle <roger@eyesopen.com>
2244 * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
2247 2003-11-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2249 * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
2251 * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
2253 * collect2.c (scan_libraries): Fix typos.
2255 PR preprocessor/12847
2256 * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
2257 cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
2258 c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
2259 DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
2262 2003-11-01 Fariborz Jahanian <fjahanian@apple.com>
2264 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
2265 no_units calculation.
2267 2003-11-01 Andreas Jaeger <aj@suse.de>
2269 * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
2272 2003-11-01 Andreas Schwab <schwab@suse.de>
2274 * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
2276 (SBSS_SECTION_FUNCTION): Likewise.
2278 2003-11-01 Andreas Jaeger <aj@suse.de>
2280 * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
2282 2003-11-01 Andreas Tobler <a.tobler@schweiz.ch>
2284 * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
2287 2003-11-01 Andreas Jaeger <aj@suse.de>
2289 * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
2290 (uw_frame_state_for): Constify variables.
2291 (extract_cie_info): Constify first argument.
2293 * unwind-dw2-fde-darwin.c: Adjust prototype of
2294 _Unwind_Find_registered_FDE for recent changes.
2295 (examine_objects): Constify return value and local variable result.
2296 (_Unwind_Find_FDE): Constify return value and local variable ret.
2298 2003-10-31 Per Bothner <pbothner@apple.com>
2300 * c-opts.c (finish_options): Change to returns boolean - false iff
2301 the call to cpp_find_main_file fails.
2302 (c_common_init): Skip preprocess_file if finish_options failed.
2303 (c_common_parse_file): Break if finish_options failed.
2304 Fixes PR preprocessor/12545.
2306 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2308 * aclocal.m4: Blacklist ultrix* for mmap file.
2309 * configure: Rebuilt.
2311 * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
2312 reg_parm_stack_space.
2313 * toplev.c (default_get_pch_validity): Fix warning.
2315 * vax.c: Include toplev.h.
2316 (vax_init_libfuncs): Fix typo (umod).
2317 * vax.h (ASM_COMMENT_START): Define.
2318 (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
2320 2003-10-31 Roger Sayle <roger@eyesopen.com>
2323 * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
2324 confusing comment; distributivity isn't handled in expand_expr.
2325 * fold-const.c (extract_muldiv_1 <PLUS_EXPR>): Allow overflow
2326 in distributivity, if wrap-around semantics are specified with
2329 2003-11-01 Alan Modra <amodra@bigpond.net.au>
2332 * final.c (profile_function): Allow for NULL svrtx.
2334 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2336 * pa.c (pa_select_section): Use new style declaration.
2337 * som.h (readonly_data): Likewise.
2339 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
2341 * config/rs6000/rs6000.c: Update to C90 prototypes.
2343 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2346 * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
2349 2003-10-31 Andreas Jaeger <aj@suse.de>,
2350 Zack Weinberg <zack@codesourcery.com>
2353 * crtstuff.c (__register_frame_info, __register_frame_info_bases)
2354 (__deregister_frame_info, __deregister_frame_info_bases):
2355 Constify void * argument.
2356 * unwind-dw2-fde.h (struct fde_vector):
2357 Constify 'orig_data' and 'array' fields.
2358 (__register_frame_info, __register_frame_info_bases)
2359 (__deregister_frame_info, __deregister_frame_info_bases):
2360 Constify void * argument.
2361 (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
2362 return values, and casts of type fde *, struct dwarf_fde *,
2363 and struct dwarf_cie *.
2364 * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
2365 (__deregister_frame_info, __deregister_frame_info_bases):
2366 Constify void * argument.
2367 (get_cie_encoding, ): Constify struct dwarf_cie * argument.
2368 (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
2369 (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
2370 fde_split, SWAP, frame_downheap, frame_heapsort)
2371 (classify_object_over_fdes, add_fdes, linear_search_fdes,
2372 binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
2373 binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
2374 Constify arguments, local variables, return values, and casts
2375 of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
2376 Use const pointer types in sizeof expressions, for clarity.
2377 * unwind-dw2-fde-glibc.c
2378 (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
2379 (struct unw_eh_callback_data): Constify 'ret' field.
2381 2003-10-31 Fariborz Jahanian <fjahanian@apple.com>
2382 David Edelsohn <edelsohn@gnu.org>
2384 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
2385 (function_arg): Call it.
2386 (rs6000_function_value): Widen integral return value to mode based
2387 on TARGET_32BIT, not word_mode.
2388 * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
2389 (UNITS_PER_ARG): New.
2390 (RS6000_ARG_SIZE): Use it.
2392 2003-10-31 Gerald Pfeifer <gerald@pfeifer.com>
2394 * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
2395 and gengtype-yacc.h.
2397 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2399 PR optimization/8896
2400 * postreload.c (reload_combine): Check that REGY doesn't die in an
2401 insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
2403 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
2406 * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
2408 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
2411 * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
2412 immediatelly before BARRIER.
2414 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
2416 * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
2418 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2421 * reload.c (find_reloads_address): Handle any register in
2422 (PLUS (PLUS (REG) (REG)) (CONST_INT).
2424 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2426 * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
2427 ENABLE_GC_CHECKING not in GGC_POISON.
2429 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
2432 * configure.in: Bail out if awk is missing.
2433 * configure: Regenerate.
2436 * Makefile.in: Move default definitions of X_ADA_CFLAGS,
2437 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
2439 2003-10-30 Richard Henderson <rth@redhat.com>
2441 * c-objc-common.c (c_tree_printer): Handle types correctly.
2444 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
2446 * value-prof.c, web.c: Update to C90.
2448 2003-10-30 Eric Christopher <echristo@redhat.com>
2450 * function.c (purge_addressof_1): Add case for REG_RETVAL
2451 notes when modes are unequal.
2453 2003-10-31 Jan Hubicka <jh@suse.cz>
2455 * i386-modes.def: Add XFmode format adjustment.
2457 2003-10-30 Jan Hubicka <jh@suse.cz>
2459 * real.c (encode_ieee_extended): Back out previous patch.
2461 2003-10-30 Jan Hubicka <jh@suse.cz>
2463 * real.c (encode_ieee_extended): Initialize whole array.
2464 * reg-stack.c (move_for_stack_reg0: Use always XFmode.
2465 * i386-modes.def: Change definitions of TFmode and XFmode.
2466 * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
2468 (construct_container): Allow constructing of TFmode integer containers.
2469 (ix86_return_in_memory): XFmode is not returned in memory.
2470 (init_ext_80387_constants): Always use XFmode.
2471 (print_operand): Likewise.
2472 (ix86_prepare_fp_compare_regs): Likewise.
2473 (split_to_parts): Deal with TFmode.
2474 (split_long_move): Simplify.
2475 (ix86_init_mmx_sse_builtins): Add __float80, __float128.
2476 (ix86_memory_move_cost): Do not confuse TFmode.
2477 * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
2478 (IS_STACK_MODE): TFmode is not stack mode.
2479 (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
2480 (VALID_SSE_REG_MODE): Allow TFmode.
2481 (VALID_FP_MODE_P): Disallow TFmode.
2482 (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
2483 * i386.md (TFmode patterns): Kill.
2484 (movtf, motf_rex64): New patterns.
2486 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
2488 * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
2490 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
2492 * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
2493 (mov_lwr, mov_swl, mov_swr): Likewise.
2494 (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
2496 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
2498 * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
2500 2003-10-30 Richard Henderson <rth@redhat.com>
2502 * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
2503 test for irix6 rather than preprocessor test.
2505 2003-10-30 Richard Henderson <rth@redhat.com>
2507 * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
2509 2003-10-30 Ulrich Weigand <uweigand@de.ibm.com>
2511 * config/s390/s390.c (struct machine_function): Use save_return_addr_p
2512 as a general flag that the return address register needs to be saved,
2513 not necessarily because of __builtin_return_addr (0).
2514 (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
2515 remove special handling of zSeries machines.
2516 (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
2517 register as a regular register on zSeries machines.
2518 (s390_reorg): Adjust calls to s390_split_branches and
2519 s390_optimize_prolog.
2520 (s390_frame_info): On zSeries machines, do not assume the return
2521 register is always used. Update regs_ever_live with current data
2522 for the special registers.
2523 (s390_emit_epilogue): Use save_return_addr_p to determine whether
2524 the return register was saved.
2525 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
2526 RETURN_REGNUM fixed on zSeries machines.
2527 (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
2528 * config/s390/s390.md ("*doloop_si"): Handle branch overflow
2529 via ahi-jgne pair on zSeries machines.
2530 ("*doloop_di"): Likewise.
2531 ("*doloop_di_long"): Remove.
2533 2003-10-30 Richard Earnshaw <rearnsha@arm.com>
2535 * arm.c (arm_override_options): Revert change of arm_constant_limit
2536 when optimizing for size.
2538 2003-10-29 Richard Henderson <rth@redhat.com>
2540 * fold-const.c (fold_single_bit_test): Convert the input to the
2541 operational intermediate type.
2543 2003-10-29 Richard Henderson <rth@redhat.com>
2545 * builtins.c (std_build_builtin_va_list): New.
2546 * expr.h (std_build_builtin_va_list): Declare.
2547 * defaults.h (BUILD_VA_LIST_TYPE): New.
2548 * system.h (BUILD_VA_LIST_TYPE): Poison.
2549 * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
2550 * target.h (struct gcc_target): Add build_builtin_va_list.
2551 * tree.c (build_common_tree_nodes_2): Use it.
2553 * config/alpha/alpha-protos.h, config/alpha/alpha.c,
2554 config/alpha/alpha.h, config/alpha/unicosmk.h,
2555 config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
2556 config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
2557 config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
2558 config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
2559 config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
2560 config/mips/mips.h, config/rs6000/rs6000-protos.h,
2561 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2562 config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
2563 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2564 config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
2565 config/xtensa/xtensa.h: Rename foo_build_va_list to
2566 foo_build_builtin_va_list; make it static. Define
2567 TARGET_BUILD_BUILTIN_VA_LIST. Remove BUILD_VA_LIST_TYPE.
2570 * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
2571 * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
2573 2003-10-29 James E Wilson <wilson@specifixinc.com>
2575 * recog.c (asm_operand_ok): Add missing break after case 'X'.
2576 Change if statements to else if statements in default case.
2577 (extract_constrain_insn_cached): Fix misspelling of constrain_operands
2579 (constrain_operands_cached): Likewise.
2580 (constrain_operands): Change if statements to else if statements in
2582 * reload.c (find_reloads): Likewise.
2584 2003-10-29 Richard Henderson <rth@redhat.com>
2586 * config/m68k/m68k.c (notice_update_cc): Clear cc status for
2589 2003-10-30 Alan Modra <amodra@bigpond.net.au>
2591 * config/rs6000/rs6000.md: Remove duplicate pattern.
2593 2003-10-29 Hans-Peter Nilsson <hp@axis.com>
2595 * real.c (do_divide): Initialize result with a 0.
2597 * configure.in <enable-checking for valgrind>: Look for
2598 <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
2600 * configure, config.in: Regenerate.
2601 * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
2602 HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use
2603 #elif for other alternatives.
2604 * ggc-page.c: Ditto.
2605 * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
2606 include structure from ggc-common.c.
2608 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2610 * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
2611 (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
2612 * pa.c (pa_adjust_insn_length): Check for btable branches using
2613 attribute TYPE_BTABLE_BRANCH.
2614 (pa_reorg): Simplify.
2615 * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
2616 (ASM_OUTPUT_ADDR_VEC_ELT): As above.
2617 (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
2618 * pa.md (btable_branch): New instruction type.
2619 (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
2621 (define_delay): Add btable branches to insn types that may have an
2622 insn in the delay position.
2623 (Z2, Z3): Add btable branch to list.
2624 Simplify unamed pattern set copy pic_label_operand to register. Add
2626 (short_jump): New jump for use in branch tables.
2627 (casesi, casesi0): Revise for new branch table formats.
2628 (casesi32, casesi32p, casesi64p): New casesi patterns.
2629 (indirect_jump): Move.
2631 2003-10-29 David Edelsohn <edelsohn@gnu.org>
2633 * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
2635 (UNITS_PER_GPR_WORD): Delete.
2636 (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
2637 (HARD_REGNO_MODE_OK): Same.
2638 (CLASS_MAX_NREGS): Same.
2640 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2642 * pa.h (ASM_COMMENT_START): Define.
2644 2003-10-29 Zack Weinberg <zack@codesourcery.com>
2646 * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
2647 MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
2648 component, not zero.
2650 2003-10-29 Andreas Schwab <schwab@suse.de>
2652 * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
2654 2003-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
2656 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2657 Never return 1 for complex integral modes whose size is lesser or
2659 (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
2661 (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
2663 (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
2664 greater than 16 bytes by reference.
2666 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2668 * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
2670 (ia64_initialize_trampoline): Use globalize_label target call.
2672 2003-10-29 Andreas Schwab <schwab@suse.de>
2674 * doc/install.texi (Building): Add a sentence about building Ada
2675 for a canadian cross.
2677 2003-10-28 Zack Weinberg <zack@codesourcery.com>
2679 * config/ia64/ia64.c (cmptf_libfunc): New static.
2680 (ia64_expand_compare): Add logic to open-code calls to
2681 _U_Qfcmp for TFmode comparisons.
2682 (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
2683 Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
2684 never be generated anymore.
2685 * config/ia64/ia64.md (cmptf): New expander.
2687 2003-10-28 Zack Weinberg <zack@codesourcery.com>
2689 * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
2690 (*sqrt_approx): New instruction pattern for approximate square roots.
2691 (*setf_exp_xf): New instruction pattern for exponentiation.
2692 (*maddxf4_alts_truncsf): New instruction pattern for truncation.
2693 (sqrtsf2_internal_thr): New define_and_split implementing
2694 throughput-optimized inline calculation of SFmode square root.
2695 (sqrtdf2_internal_thr): Likewise for DFmode.
2696 (sqrtxf2_internal_thr): Likewise for XFmode.
2697 (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
2698 latency- and throughput-optimized square root algorithms.
2699 * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
2700 TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
2702 (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
2703 -minline-sqrt-max-throughput.
2704 * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
2705 and -minline-sqrt-max-throughput are given, notify the user
2706 that both options cannot be used simultaneously.
2707 If -minline-sqrt-min-latency is given, notify the user that
2708 this mode is not yet implemented.
2709 (rtx_needs_barrier): Reformat initial comment to obey
2710 72-character width limit. Support UNSPEC_SETF_EXP and
2711 UNSPEC_FR_SQRT_RECIP_APPROX.
2713 2003-10-29 Alan Modra <amodra@bigpond.net.au>
2715 * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
2718 2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2722 * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
2724 2003-10-28 Richard Earnshaw <rearnsha@arm.com>
2726 * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
2727 an extra stack adjustment insn if the stack pointer is already
2728 pointing at the right place.
2729 (use_return_insn): Allow a return insn to be used when we have a
2730 frame pointer if the stack pointer is in the right place.
2731 (output_return_instruction): Handle it.
2733 2003-10-28 Andreas Jaeger <aj@suse.de>
2735 * ggc-zone.c (check_cookies): Add missing variable.
2736 Add void to prototypes.
2738 2003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2740 * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
2741 * crtstuff.c (__do_global_ctors_1): Move prototype.
2742 * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
2744 * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
2745 Mark parameter with __attribute__((unused)).
2747 2003-10-27 Zack Weinberg <zack@codesourcery.com>
2749 * c-decl.c (pushdecl): Clarify comment.
2751 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
2753 * doc/install.texi: Update instructions for Ada cross builds
2756 * doc/sourcebuild.texi: Document Ada test suite.
2758 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
2760 * config/m68hc11/m68hc11.c: Convert to ISO C90.
2761 * config/m68hc11/m68hc11-protos.h: Likewise.
2763 2003-10-27 Jan Hubicka <jh@suse.cz>
2764 Eric Botcazou <ebotcazou@libertysurf.fr>
2766 * toplev.c (enum dump_file_index, dump_file): Fix ordering of
2769 2003-10-27 Jakub Jelinek <jakub@redhat.com>
2770 Jan Hubicka <jh@suse.cz>
2772 * reload1.c (struct elim_table): Change offset, initial_offset and
2773 previous_offset fields to HOST_WIDE_INT.
2774 (offsets_at): Change from int to HOST_WIDE_INT.
2775 (reload): Adjust offsets_at initialization.
2776 (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
2777 (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
2778 * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
2779 to HOST_WIDE_INT. Don't save regs using mov for huge frame sizes
2781 (pro_epilogue_adjust_stack): New function.
2782 (ix86_expand_prologue, ix86_expand_epilogue): Use it.
2783 * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
2784 (pro_epilogue_adjust_stack_1): Remove * in front of name.
2785 (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
2786 (pro_epilogue_adjust_stack_rex64_2): New insn.
2788 * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
2790 * config/i386/i386.c (ix86_expand_call): Replace 40 with
2791 FIRST_REX_INT_REG + 3 /* R11 */.
2793 2003-10-26 Richard Henderson <rth@redhat.com>
2795 * config/alpha/alpha.md (attr cannot_copy): New.
2796 (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
2797 prologue_ldgp_er_2, prologue_ldgp_1): Set it.
2798 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
2800 2003-10-26 Daniel Berlin <dberlin@dberlin.org>
2802 * ggc-zone.c: New file, zone allocating collector.
2803 * configure: Accept zone option for --with-gc
2804 * configure.in: Ditto.
2805 * ggc.h (ggc_pch_count_object): Pass bool indicating
2806 stringiness. Update all callers.
2807 (ggc_pch_alloc_object): Ditto.
2808 (ggc_pch_write_object): Ditto.
2809 (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
2811 (ggc_alloc_rtvec): Ditto.
2812 (ggc_alloc_tree): Use zone allocation, since some things using this macro
2813 aren't a single typecode.
2814 * ggc-none.c (ggc_alloc_typed): New function.
2815 (ggc_alloc_zone): Ditto.
2816 * ggc-page.c: Ditto on both functions.
2818 2003-10-26 Gunther Nikl <gni@gecko.de>
2820 * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
2821 frame information is always valid.
2822 (m68k_output_function_prologue): Remove superfluous TARGET_68881
2823 test; fix formatting.
2825 2003-10-26 Gunther Nikl <gni@gecko.de>
2827 * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
2828 reg_rev_mask computation.
2829 (m68k_output_function_prologue): Fix usage of current_frame (one typo
2830 and one missing); use reg_rev_mask not reg_mask.
2831 (m68k_output_function_epilogue): Fix usage of current_frame;
2832 use fpu_rev_mask not fpu_mask.
2834 2003-10-26 Bernardo Innocenti <bernie@develer.com>
2836 * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
2837 num_saved_regs, use current_frame.reg_no instead.
2839 2003-10-26 Bernardo Innocenti <bernie@develer.com>
2840 Paul Dale <pauli@snapgear.com>
2842 * doc/extend.texi (interrupt_handler): Add m68k to the
2843 list of processors implementing it.
2844 * doc/invoke.texi (-msep-data): Document new m68k option.
2845 (-mno-sep-data): Likewise.
2846 (-mid-shared-library): Likewise.
2847 (-mno-id-shared-library): Likewise.
2848 (-mshared-library-id): Likewise.
2850 2003-10-26 Andreas Jaeger <aj@suse.de>
2852 * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
2854 (_Unwind_SetGR): Likewise.
2856 2003-10-26 Ottavio Campana <ottavio@campana.vi.it>
2859 * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
2861 2003-10-26 Gunther Nikl <gni@gecko.de>
2863 * config/m68k/m68k.c (m68k_output_function_prologue): Move front
2864 comment from here to...
2865 (m68k_save_reg): ...here. Fix comment formatting.
2866 (m68k_output_function_prologue): Fix comment formatting.
2867 (m68k_output_function_epilogue): Likewise.
2868 (const_method): Likewise.
2870 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
2872 * toplev.c (default_get_pch_validity): Guard the use of
2873 target_options with #ifdef TARGET_OPTIONS.
2874 (default_pch_valid_p): Likewise.
2876 2003-10-26 Andreas Jaeger <aj@suse.de>
2877 Zack Weinberg <zack@codesourcery.com>
2878 Andreas Tobler <toa@pop.agri.ch>
2880 * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
2881 (output_die): Likewise.
2882 (print_die): Likewise.
2884 2003-10-26 Andreas Jaeger <aj@suse.de>
2886 * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
2887 dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
2890 * toplev.c (default_pch_valid_p): Fix warning.
2892 2003-10-25 Roger Sayle <roger@eyesopen.com>
2894 * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
2895 RTL nodes. If an operator's operands are unchanged, return the
2896 original argument unchanged.
2898 2003-10-26 Graham Stott <graham.stott@btinternet.com>
2900 Fix bootstrap failure.
2901 * expmed.c (store_bit_field): Don't compare bitsize against
2902 modes with zero bit-size.
2904 (extract_bit_field): Likewise
2906 2003-10-25 Jan Hubicka <jh@suse.cz>
2908 * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
2909 (cfa_loc): Likewise.
2910 (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
2912 (args_size, old_args_size): change type to HOST_WIDE_INT.
2913 (dwarf2out_def_cfa, dwarf2out_args_size,
2914 dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
2915 (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
2916 (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
2917 AT_offset): Use HOST_WIDE_INT.
2918 (based_loc_descr): offset is HOST_WIDE_INT.
2919 (add_data_member): Likewise.
2920 (add_const_value_attribute): Simplify.
2922 2003-10-25 Richard Henderson <rth@redhat.com>
2924 * config/i386/i386.c (ix86_eax_live_at_start_p): New.
2925 (ix86_expand_prologue): Save and restore eax around stack probe
2928 2003-10-25 Jan Hubicka <jh@suse.cz>
2930 * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
2932 2003-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
2935 * reg-stack.c (convert_regs_1): Create an arbitrary input stack
2936 if the block has no predecessors.
2937 (convert_regs_2): Document the problem with successors whose
2938 only predecessor is the block to be processed.
2939 (convert_regs): Don't create the arbitrary input stack here.
2941 2003-10-24 Zack Weinberg <zack@codesourcery.com>
2943 * genmodes.c (struct mode_data): Add contained and next_cont
2945 (complete_mode): Maintain linked list of modes that have a
2947 (emit_mode_unit_size): Delete.
2948 (emit_mode_nunits): New.
2949 (emit_insn_modes_c): Update to match.
2950 (emit_mode_adjustments): Propagate size and alignment
2951 adjustments from component modes to their containers.
2952 * machmode.h (mode_unit_size): Delete.
2954 (GET_MODE_NUNITS): Just return the value in the table.
2955 (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
2957 * expmed.c (store_bit_field, extract_bit_field): Can use a
2958 plain move instruction if bitsize >= GET_MODE_BITSIZE of
2959 destination/source mode, respectively.
2960 * varasm.c (assemble_real): Write out the full size of the
2961 constant, not just its bitsize.
2962 (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
2964 * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
2965 Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
2966 alignment of XF and TF modes in compliance with ia64 ABIs.
2967 Can now hardwire the format of both modes.
2968 * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
2969 (general_tfmode_operand, destination_tfmode_operand)
2970 (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
2971 general_xfmode_operand, destination_xfmode_operand,
2972 xfreg_or_fp01_operand, spill_xfmode_operand respectively.
2973 (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
2974 and float80_type be 96 so they get XFmode. Use !TARGET_HPUX,
2975 not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
2977 * config/ia64/ia64.h: Default TARGET_HPUX to 0.
2978 Change TFmode to XFmode wherever appropriate. Remove all
2979 references to INTEL_EXTENDED_IEEE_FORMAT.
2980 (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
2981 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
2982 (PREDICATE_CODES): Update to match function renames.
2983 * config/ia64/ia64.md: Change TF to XF throughout; rename all
2984 patterns to match. Remove all references to
2985 INTEL_EXTENDED_IEEE_FORMAT. Update predicate calls to match
2987 * config/ia64/ia64-protos.c: Update all prototypes to match
2989 * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
2990 Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
2991 * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
2992 __divtf3; keep old name for backward compatibility.
2993 (L__compat): New section providing forwarding stubs for
2994 __fixtfti, __fixunstfti, __floattitf.
2995 * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
2997 2003-10-24 Geoffrey Keating <geoffk@apple.com>
3000 * c-pch.c: Include target.h. Improve comments.
3001 (struct c_pch_validity): Add target_data_length.
3002 (pch_init): Add target's validity data.
3003 (c_common_valid_pch): Check target's validity data.
3004 * target-def.h (TARGET_GET_PCH_VALIDITY): New.
3005 (TARGET_PCH_VALID_P): New.
3006 (TARGET_INITIALIZER): Add new fields.
3007 * target.h: Include tm.h.
3008 (struct gcc_target): Add get_pch_validity, pch_valid_p.
3009 * toplev.h (default_get_pch_validity): New prototype.
3010 (default_pch_valid_p): New prototype.
3011 * toplev.c (default_get_pch_validity): New routine.
3012 (default_pch_valid_p): New routine.
3013 * Makefile.in (TARGET_H): Add TM_H. Replace all users of
3014 target.h with $(TARGET_H).
3015 (c-pch.o): Add TARGET_H.
3016 * doc/tm.texi (PCH Target): New node.
3017 (TARGET_GET_PCH_VALIDITY): Document.
3018 (TARGET_PCH_VALID_P): Document.
3020 2003-10-24 Kelley Cook <kcook@gcc.gnu.org>
3022 * Makefile.in: Define a vpath for %.texi. Remove explicit $(docdir)
3023 and $(docdir)/include from any *.texi dependencies.
3024 ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
3025 ($(docobjdir)/%.1): Depend on .pod instead of .texi.
3026 ($(docobjdir)/%.7): Likewise.
3027 (%.pod): New implicit rule.
3028 (cpp.pod): New dependency only rule.
3029 (gcc.pod): New intermediate rule with dependencies and commands.
3030 (gfdl.pod): Likewise.
3031 (fsf-funding.pod): Likewise.
3033 2003-10-24 Nathanael Nerode <neroden@gcc.gnu.org>
3035 * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
3037 * fixinc/fixinc.ptx: Remove.
3038 * fixinc/fixinc.svr4: Remove.
3040 2003-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3042 * config/s390/s390.c (load_multiple_operation): Allow both SImode
3043 and DImode if word_mode is DImode.
3044 (store_multiple_operation): Likewise.
3045 * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
3046 ("*load_multiple_di"): Allow only if word_mode == DImode.
3047 ("movqi"): Use LLGC whenever TARGET_ZARCH.
3048 ("fix_truncdfsi2"): Fix incorrect temporary size.
3049 ("fix_truncsfsi2"): Likewise.
3050 ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
3051 string for function return value operand.
3052 ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
3054 2003-10-24 Joseph S. Myers <jsm@polyomino.org.uk>
3056 * c-parse.in (array_declarator): Use expr_no_commas.
3059 2003-10-24 Richard Sandiford <rsandifo@redhat.com>
3061 * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
3062 associated includes in #ifndef inhibit_libc.
3064 2003-10-24 Roger Sayle <roger@eyesopen.com>
3066 * doc/libgcc.texi: Document some more of the libgcc API.
3068 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
3070 * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
3071 comparing a constant with small negative numbers and add costing
3072 for constants in conjunction with AND.
3073 (note_invalid_constants): Tidy previous change.
3074 (thumb_cmp_operand): Tidy.
3075 (thumb_cmpneg_operand): New function.
3076 * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
3078 (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
3079 (PREDICATE_CODES): Add thumb_cmpneg_operand.
3080 * arm.md (cbranchsi4): Convert to define_expand. Handle comparison
3081 with a negative constant.
3082 (cbranchsi4_insn): Matcher for cbranchsi4.
3083 (cbranchsi4_scratch): Similar, but a scratch is available for
3084 handling negative constants.
3085 (movsi_cbranchsi4): New pattern.
3086 (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
3087 and use the TST instruction.
3088 (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
3089 (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
3090 cannot see high regs or memory alternatives.
3091 (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
3093 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
3095 * arm.c (note_invalid_constants): Try to extract the constant
3096 pool value using avoid_constant_pool_reference; only use
3097 get_pool_constant if that returns the original reference.
3099 2003-10-24 Jan Hubicka <jh@suse.cz>
3102 * varasm.c (notice_global_symbol): Disqualify global registers.
3104 2003-10-23 Roger Sayle <roger@eyesopen.com>
3107 * loop.c (load_mems): Use redirect_jump to forward jumps from
3108 the original loop end label to the new "loop sink" block's label.
3110 2003-10-23 Roger Sayle <roger@eyesopen.com>
3113 * optabs.c (expand_binop): When expanding complex operations
3114 inline, always calculate result into a new temporary register.
3115 Minor code clean-ups.
3117 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3119 * objc/lang-specs.h: Handle -print-objc-runtime-info.
3120 * doc/invoke.texi (Objective-C Dialect Options): Document it.
3122 2003-10-24 Danny Smith <dannysmith@users.sourceforge.net>
3124 * config/i386/cygwin.asm: Add copyright notice. Add comment
3125 on why this code is needed.
3127 2003-10-23 Kazu Hirata <kazu@cs.umass.edu>
3129 * config/h8300/clzhi2.c: Fix warnings.
3130 * config/h8300/ctzhi2.c: Likewise.
3131 * config/h8300/fixunssfsi.c: Likewise.
3132 * config/h8300/parityhi2.c: Likewise.
3133 * config/h8300/popcounthi2.c: Likewise.
3135 2003-10-23 James E Wilson <wilson@specifixinc.com>
3137 * gcc.c (option_map): Delete --target and --use-version.
3139 2003-10-23 Fariborz Jahanian <fjahanian@apple.com>
3140 David Edelsohn <edelsohn@gnu.org>
3142 * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
3144 (UNITS_PER_GPR_WORD): Define.
3145 (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
3146 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
3147 (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
3148 (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
3149 * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
3150 DFmode and DImode in 32-bit ABI / 64-bit computation mode.
3151 (rs6000_emit_prologue): Select reg_mode and reg_size using
3152 TARGET_32BIT, not TARGET_POWERPC64.
3153 (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
3154 ABI / 64-bit computation mode
3156 2003-10-22 Andrew Haley <aph@redhat.com>
3158 * toplev.c (output_file_directive): Allow for null input_name.
3160 2003-10-22 Waldek Hebisch <hebisch@math.uni.wroc.pl>
3162 * config/i386/i386.c (classify_argument): Handle SET_TYPE.
3164 2003-10-22 Chris Demetriou <cgd@broadcom.com>
3166 * configure.in: In --enable-generated-files-in-srcdir option
3167 handling, fix default case handling.
3168 * configure: Regenerate.
3170 2003-10-22 Phil Edwards <phil@codesourcery.com>
3172 * config.gcc: Update *-*-vxworks* generic hook and comments.
3173 (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
3174 mips-wrs-windiss, sh-wrs-vxworks): New stanzas.
3175 * genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly.
3176 * config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it.
3177 * config/windiss.h: New file.
3178 * config/arm/t-vxworks: New file.
3179 * config/arm/vxworks.h: New file.
3180 * config/i386/t-vxworks: New file.
3181 * config/i386/vxworks.h: New file.
3182 * config/mips/t-vxworks: New file.
3183 * config/mips/vxworks.h: New file.
3184 * config/mips/windiss.h: New file.
3185 * config/sh/t-vxworks: New file.
3186 * config/sh/vxworks.h: New file.
3188 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
3190 * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
3191 (h8300_saveall_function_p): New.
3192 (h8300_insert_attributes): Insert the saveall attribute if
3193 #pragma saveall is specified.
3194 (h8300_attribute_table): Add saveall.
3195 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3196 * doc/extend.texi: Mention the saveall attribute.
3198 2003-10-22 Joseph S. Myers <jsm@polyomino.org.uk>
3200 * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
3201 deprecation of casts as lvalues.
3202 * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
3203 * fixinc/fixincl.x: Regenerate.
3204 * fixinc/tests/base/obstack.h: New test.
3206 2003-10-22 Andreas Schwab <schwab@suse.de>
3209 * config/m68k/m68k.c (output_addsi3): Fix range check to work on
3212 2003-10-22 Jan Hubicka <jh@suse.cz>
3214 * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
3215 presence of DW_AT_inline.
3216 (gen_subprogram_die): Likewise; do not abort instead of emitting
3219 2003-10-22 Jan Hubicka <jh@suse.cz>
3221 * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
3222 global info is not ready.
3224 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
3226 * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
3228 2003-10-22 Ulrich Weigand <uweigand@de.ibm.com>
3230 * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
3231 ("*movstr_short"): ... into this insn pattern.
3232 ("movstr_short"): New expander.
3233 ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
3234 ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
3235 ("movstr_long"): New expander.
3236 ("clrstr_short_64", "clrstr_short_31"): Merge ...
3237 ("*clrstr_short"): ... into this insn pattern.
3238 ("clrstr_short"): New expander.
3239 ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
3240 ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
3241 ("clrstr_long"): New expander.
3242 ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
3243 ("*cmpmem_short"): ... into this insn pattern.
3244 ("cmpmem_short"): New expander.
3245 ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
3246 ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
3247 ("cmpmem_long"): New expander.
3248 * config/s390/s390.c (s390_expand_movstr): Use new expanders.
3249 (s390_expand_clrstr): Likewise.
3250 (s390_expand_cmpmem): Likewise.
3252 2003-10-22 Mark Mitchell <mark@codesourcery.com>
3254 * c-pch.c (struct c_pch_validity): Add pch_init field.
3256 (c_common_valid_pch): Check it.
3258 2003-10-22 David Taylor <dtaylor@emc.com>
3261 * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
3263 2003-10-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3265 * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
3266 alpha_return_in_memory if no VALTYPE specified.
3268 2003-10-22 Jan Hubicka <jh@suse.cz>
3271 * Makefile.in (dwarf2out.o): Depend on cgraph.h.
3272 * cgraph.c (cgraph_function_possibly_inlined_p): New function.
3273 * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
3274 (cgraph_global_info): Add flag inlined
3275 * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
3276 cgraph_function_possibly_inded_p
3277 * cgraphunit.c (mark_inline): Set inlined flag.
3278 * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
3279 only for possibly inlined functions.
3280 * c-decl.c (duplicate_decls): Never output abstract DIE representing old
3283 2003-10-22 Andrew Haley <aph@redhat.com>
3285 * varasm.c (output_constructor): Make constructor annotation
3286 conditional on ASM_COMMENT_START.
3288 2003-10-21 Jason Merrill <jason@redhat.com>
3290 * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
3291 (get_narrower): Likewise.
3293 * stor-layout.c (layout_decl): Do packed field alignment for
3296 2003-10-21 Eric Christopher <echristo@redhat.com>
3298 * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
3300 2003-10-21 Geoffrey Keating <geoffk@apple.com>
3302 * c-pch.c: Add comments in various places.
3303 (struct c_pch_validity): Add the lengths of various strings.
3304 (host_machine): New static.
3305 (target_machine): New static.
3306 (get_ident): Bump version number.
3307 (pch_init): Write out version, host, target validity data.
3308 (c_common_valid_pch): Check version, host, target.
3309 * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
3312 2003-10-21 Jason Merrill <jason@redhat.com>
3314 * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
3315 (EXPR_P): New macro.
3317 2003-10-21 Zack Weinberg <zack@codesourcery.com>
3319 * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
3320 * config/ia64/ia64.c (ia64_expand_fetch_and_op,
3321 ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
3322 DImode. Use convert_move to load ar.ccv.
3323 (ia64_expand_compare_and_swap): Likewise.
3324 If expand_expr doesn't put 'old' and 'new' in the proper
3325 modes, run them through convert_to_mode.
3327 2003-10-21 Eric Christopher <echristo@redhat.com>
3329 * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
3330 for too large bitfields.
3332 2003-10-21 Mark Mitchell <mark@codesourcery.com>
3334 * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
3336 2003-10-21 Andrew Haley <aph@redhat.com>
3338 * varasm.c (output_constructor): Annotate constructor.
3340 2003-10-21 Mark Mitchell <mark@codesourcery.com>
3342 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
3343 on existence of destination file.
3345 2003-10-21 Jan Hubicka <jh@suse.cz>
3347 * haifa-sched.c (choose_ready): Initialize index.
3349 2003-10-21 Jason Merrill <jason@redhat.com>
3351 * tree.c (build1): Fix off-by-one error.
3353 2003-10-21 Robert Millan <robertmh@gnu.org>
3355 * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
3356 * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
3357 * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
3358 * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
3360 2003-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3362 * web.c: Fix various comments.
3364 2003-10-20 Nicolas Pitre <nico@cam.org>
3366 * config/arm/arm.c (arm_override_options): Set arm_constant_limit
3367 to 2 instead of 1 when optimize_size is true. Gather code based on
3368 optimize_size together. Add comment about XScale load latency.
3370 2003-10-21 Gunther Nikl <gni@gecko.de>
3372 * config/m68k/m68k.c (m68k_output_function_prologue): Remove
3375 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
3377 * Makefile.in: Get parsedir and docobjdir from configure.
3378 * configure.in: Recogonize --enable-generated-files-in-srcdir.
3379 Pass along parsedir and docobjdir.
3380 * configure: Regenerate.
3381 * doc/install.texi: Document --enable-generated-files-in-srcdir.
3383 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
3385 * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
3388 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
3390 * c-common.c (expand_tree_builtin): Ensure creal and cimag
3391 functions do not return lvalues.
3393 2003-10-20 Jason Merrill <jason@redhat.com>
3396 * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
3400 * stor-layout.c (layout_decl): Fix alignment handling.
3402 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
3404 * doc/extend.texi: Deprecate casts as lvalues.
3406 2003-10-20 Jan Hubicka <jh@suse.cz>
3408 * toplev.c (rest_of_compilation): Fix webizer pass ordering.
3410 * cgraphunit.c (decide_is_function_needed): Fix test dealing
3411 with functions implicitly made inline.
3413 * cgraphunit.c (cgraph_decide_inlining_incrementally): New function.
3414 (cgraph_finalize_function): Use it.
3415 (cgraph_mark_inline): Allow incrmental decisions
3416 * invoke.texi (max-inline-slope, min-inline-insns): Kill.
3417 * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
3418 * tree-inline.c (limits_allow_inlining): Kill.
3419 (expand_call_inline): Always use unit-at-a-time path.
3421 2003-10-20 Zack Weinberg <zack@codesourcery.com>
3423 * fixinc/inclhack.def (hpux11_snprintf): New edit.
3424 * fixinc/fixincl.x: Regenerate.
3425 * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
3427 2003-10-20 Mark Mitchell <mark@codesourcery.com>
3429 * Makefile.in (install-info): Simplify.
3430 ($(DESTDIR)$(infodir)/%.info): New rule.
3431 * configure.in (target_list): Remove install-info.
3432 * doc/.cvsignore (gcc.info*): Remove.
3433 (gccint.info*): Likewise.
3434 (gccinstall.info*): Likewise.
3435 (cpp.info*): Likewise.
3436 (cppinternals.info*): Likewise.
3438 * doc/sourcebuild.texi: Update description of install-info.
3439 * objc/Make-lang.in (objc.install-info): Remove.
3441 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3443 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
3444 Use it in _MIPS_SIM definition.
3445 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3447 2003-10-20 Zack Weinberg <zack@codesourcery.com>
3449 * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
3450 virtual register, but only if file == asm_out_file.
3451 * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
3452 for ARG_POINTER_REGNUM.
3454 2003-10-20 Zack Weinberg <zack@codesourcery.com>
3456 * c-common.c (registered_builtin_types): New static.
3457 (c_common_type_for_mode): Consult registered_builtin_types.
3458 (c_register_builtin_type): Add type to registered_builtin_types.
3459 * optabs.c (init_floating_libfuncs): Initialize libfuncs for
3460 all MODE_FLOAT modes, not just the ones corresponding to
3461 float_type_node, double_type_node, and long_double_type_node.
3463 2003-10-20 Richard Henderson <rth@redhat.com>
3465 * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
3466 * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
3468 2003-10-20 Dorit Naishlos <dorit@il.ibm.com>
3470 * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
3471 support new flag -minsert-sched-nops.
3472 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
3473 * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
3474 support new flag -minsert-sched-nops.
3475 (is_cracked_insn, is_microcoded_insn): New functions.
3476 (rs6000_sched_finish): New function.
3477 (rs6000_issue_rate): Return 5 for power4.
3478 (get_next_active_insn, insn_terminates_group_p): New
3480 (is_costly_group, force_new_group): New functions.
3481 (redefine_groups, pad_groups): New functions.
3482 (rs6000_variable_issue): Use new functions.
3483 * doc/invoke.texi (-minsert-sched-nops): Document new
3486 2003-10-20 David S. Miller <davem@redhat.com>
3488 * config/sparc/sparc.md (type attribute): Add new insn types
3489 fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
3490 (patterns emitting VIS insns): Use them.
3491 * config/sparc/ultra1_2.md: Add VIS scheduling rules.
3492 * config/sparc/ultra3.md: Likewise.
3494 2003-10-20 Falk Hueffner <falk@debian.org>
3497 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
3498 comparison against constant by adjusting the argument except for
3501 2003-10-19 Mark Mitchell <mark@codesourcery.com>
3503 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
3504 arm1136jfs, and armv6j.
3505 * config/arm/arm.c (FL_ARCH6J): New macro.
3506 (FL_VFPV2): Likewise.
3507 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
3509 (all_architectures): Add entry for armv6j.
3510 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
3511 arm1136js, and arm1136jfs.
3512 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
3513 (TARGET_CPU_arm1026ej_s): Likewise.
3514 (TARGET_CPU_arm1136j_s): Likewise.
3515 (TARGET_CPU_arm1136jf_s): Likewise.
3516 * doc/invoke.texi: Document new ARM cores and architecture
3519 2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3521 * Makefile.in (toplev.o): Add value-prof.h dependency.
3522 (value-prof.o): Add REGS_H dependency.
3523 * common.opt (fprofile-values, fvpt): New.
3524 * flags.h (flag_value_profile_transformations): Declare.
3525 * opts.c (common_handle_option): Handle -fprofile_values and
3527 * profile.c (branch_prob): Don't remove death notes here.
3528 * timevar.def (TV_VPT): New.
3529 * value-prof.c: Include regs.h.
3530 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
3531 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
3532 mod_subtract_transform, value_profile_transformations): New.
3533 (insn_values_to_profile): Call insn_divmod_values_to_profile.
3534 (find_values_to_profile): Add dumps.
3535 * value-prof.h (value_profile_transformations): Declare.
3536 * toplev.c: Include value-prof.h.
3537 (rest_of_handle_value_profile_transformations): New.
3538 (enum dump_file_index): Add DFI_vpt.
3539 (dump_file): Add vpt dump.
3540 (flag_value_profile_transformations): New.
3541 (lang_independent_options): Add flag_profile_values and
3542 flag_value_profile_transformations.
3543 (rest_of_compilation): Call
3544 rest_of_handle_value_profile_transformations.
3545 (process_options): Let -fvpt imply -fprofile-values.
3546 * doc/invoke.texi (-fvpt): Document.
3548 2003-10-19 Jan Hubicka <jh@suse.cz>
3550 * i386.c (print_reg): Do not abort on certain registers.
3552 PR optimization/12612
3553 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
3554 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
3555 match_scratch; avoid bogus paralles.
3558 * i386.c (ix86_function_regparm): Disable implicit register passing
3559 conventions when profiling.
3561 2003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
3562 Richard Henderson <rth@redhat.com>
3564 PR optimization/8178
3565 * config/i386/i386.md (*movsi_zero): Delete.
3566 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
3568 2003-10-19 Richard Henderson <rth@redhat.com>
3570 * config/alpha/alpha.c (fix_operator): New.
3571 (divmod_operator): Tidy.
3572 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
3573 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
3574 (PREDICATE_CODES): Update.
3575 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
3576 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
3577 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
3578 (fix_truncsfdi_ieee): Likewise.
3579 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
3580 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
3581 * config/alpha/alpha-protos.h: Update.
3583 2003-10-19 Richard Sandiford <rsandifo@redhat.com>
3585 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
3586 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
3587 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
3590 2003-10-18 Kazu Hirata <kazu@cs.umass.edu>
3592 * doc/extend.texi: Fix typos.
3593 * doc/invoke.texi: Likewise.
3595 2003-10-18 Nicolas Pitre <nico@cam.org>
3597 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
3598 XScale optimizations not arm_arch_xscale.
3599 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
3601 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3603 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
3604 * config/s390/s390.c (shift_count_operand): New function.
3605 (s390_extra_constraint): Use it to implement 'Y' constraint.
3606 (print_shift_count_operand): New function.
3607 (print_operand): Use it to implement '%Y'.
3608 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
3609 (PREDICATE_CODES): Add shift_count_operand.
3610 * config/s390/s390.md ("rotldi3"): Merge alternatives,
3611 using "shift_count_operand" predicate and "Y" constraint,
3612 and "%Y" to output the combined shift count.
3613 ("rotlsi3"): Likewise.
3614 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
3615 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
3616 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
3617 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
3618 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
3619 ("lshrsi3"): Likewise.
3621 2003-10-18 Gunther Nikl <gni@gecko.de>
3623 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
3624 argument to asm_fprintf statement.
3626 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
3628 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
3629 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
3630 a "long long" argument.
3632 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
3634 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
3637 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
3639 * rtl.h (rtl_size): Declare.
3640 (rtunion): Remove rtwint.
3641 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
3642 (RTX_HDR_SIZE, RTX_SIZE): New macros.
3643 (RTL_CHECK1): Adjust for new rtx_def layout.
3644 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
3645 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
3648 * rtl.def: Adjust comments for new rtx_def layout.
3649 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
3651 * rtl.c (rtx_size): New array.
3652 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
3653 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
3654 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
3655 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
3656 * emit-rtl.c (copy_most_rtx): Likewise.
3657 (copy_rtx_if_shared): Use RTX_SIZE.
3658 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
3659 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
3660 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
3661 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
3662 an array. Adjust output for new rtx_def layout.
3663 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
3664 * reload1.c (eliminate_regs): Use RTX_SIZE.
3665 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
3666 * gdbinit.in (pi): Likewise.
3668 2003-10-18 Jan Hubicka <jh@suse.cz>
3670 * integrate.c (copy_decl_for_inlining): Revert previous patch.
3672 2003-10-18 Jan Hubicka <jh@suse.cz>
3674 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
3676 2003-10-18 Roger Sayle <roger@eyesopen.com>
3678 * libgcc.texi: Group multi-word types, such as "long double" and
3679 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
3680 Document __unord?f2 as returning a non-zero value, not just one.
3682 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
3684 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
3685 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
3687 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3689 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
3692 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3694 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
3695 parameter packed_p. Search for a DECL_PACKED field only if
3696 packed_p is false. Pass packed_p recursively.
3697 (function_arg_record_value_2): Likewise.
3698 (function_arg_record_value): Update calls to
3699 function_arg_record_value_1 and function_arg_record_value_2.
3701 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3703 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
3704 was successfully forced to memory before using the result.
3706 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3708 PR optimization/8178
3709 * config/i386/i386.md (*movsi_zero): New insn to set
3710 a register to zero on TARGET_USE_MOV0 targets.
3712 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
3714 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
3715 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
3717 2003-10-17 David Edelsohn <edelsohn@gnu.org>
3719 * doc/invoke.texi (gcse-las): Fix typo.
3721 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
3723 * doc/install.texi: Remove first part of the sentence for
3724 zsh not working. Change gcc to GCC.
3727 * doc/install.texi: Document that zsh does not work when
3730 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
3732 * config/ptx4.h: Switch to DWARF 2; update comments.
3734 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
3735 Hartmut Penner <hpenner@de.ibm.com>
3737 PR 10404, partial 11591, partial 11601
3738 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
3739 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
3740 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
3741 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
3742 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
3743 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
3744 (altivec_expand_stv_builtin): Adjust for the memory_operand.
3745 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
3746 (altivec_init_builtins): Use `long int' for memory offsets.
3748 2003-10-17 Jan Hubicka <jh@suse.cz>
3750 * opts.c (common_handle_option): Handle OPT_fweb
3751 * invoke.texi (-fweb): Add missing parts of documentation.
3753 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3755 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
3756 before redefinition.
3758 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
3760 * common.opt: Add description of the new -fgcse-las flag.
3761 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
3762 * gcse.c (hash_scan_set): Handle the case of store expression and
3763 insert the memory expression to the hash table, this way we make it
3764 possible to discover redundant loads after stores and remove them.
3765 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
3766 to pre_insert_copies, it is not the correct place to call it after
3767 adding stores to be in the available expression hash table.
3768 (pre_insert_copies): Added the call to update_ld_motion_stores when
3769 one or more copies were inserted.
3770 * opts.c (common_handle_option): Handle the -fgcse-las flag.
3771 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
3773 * doc/invoke.tex: Document new -fgcse-las flag.
3775 2003-10-18 Alan Modra <amodra@bigpond.net.au>
3777 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
3778 for posterity, then remove it.
3780 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
3781 Nathan Sidwell <nathan@codesourcery.com>
3783 * config/arm/arm.c (use_return_insn): Not a single instruction, if
3784 there's a frame pointer.
3785 (arm_output_epilogue): Protect stack pointer from being corrupted
3788 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
3790 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
3792 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
3794 * combine.c (simplify_set): Do not clear out undobuf.other_insn
3795 already set elsewhere.
3797 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
3799 * config/i386/i386.c (ix86_expand_prologue): Use
3800 gen_allocate_stack_worker.
3802 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3804 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
3806 (mips-sgi-irix6*): Likewise.
3808 * config/mips/iris6gas.h: New file.
3809 * gcc/config.gcc (mips-sgi-irix6*): Use it.
3811 * config/mips/mips.h (TARGET_IRIX): Provide default.
3812 (TARGET_IRIX5): Likewise.
3813 (TARGET_SGI_O32_AS): Likewise.
3814 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
3815 (TARGET_IRIX5): Likewise.
3816 * config/mips/iris6.h (TARGET_IRIX6): Remove.
3817 (TARGET_IRIX5): Redefine as 0.
3819 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
3820 linker workaround with TARGET_IRIX and mips_abi instead of
3821 ASM_OUTPUT_UNDEF_FUNCTION.
3822 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
3823 testing TARGET_IRIX and mips_abi explicitly.
3824 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
3825 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
3827 * config/mips/mips.c (irix_output_external_libcall): Renamed from
3828 mips_output_external_libcall.
3829 Use new TARGET_IRIX in guard.
3830 * config/mips/mips-protos.h (irix_output_external_libcall): Match
3832 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
3834 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
3837 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
3838 depending on mips_abi.
3839 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
3840 * config/mips/mips.c (mips_output_function_prologue): Test
3841 FUNCTION_NAME_ALREADY_DECLARED at runtime.
3842 (mips_output_function_epilogue): Likewise.
3843 (build_mips16_function_stub): Likewise.
3844 (build_mips16_call_stub): Likewise.
3845 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
3848 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
3849 IRIX 6 O32 assembler.
3850 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
3851 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
3852 _MIPS_SIM for O32 ABI.
3853 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
3854 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
3855 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
3856 Integrate O32 version.
3857 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
3858 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
3860 (BSS_SECTION_ASM_OP_32): Define.
3861 (BSS_SECTION_ASM_OP_64): Likewise.
3862 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
3864 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
3865 Move up to allow override for O32 ABI without GNU as.
3866 (EH_FRAME_SECTION_NAME): Define explicitly.
3867 (MUST_USE_SJLJ_EXCEPTIONS): Define.
3868 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
3869 DTORS_SECTION_ASM_OP): Dummy definitions.
3870 (TARGET_ASM_NAMED_SECTION): Undef statically.
3871 (EH_FRAME_SECTION_NAME): Likewise.
3872 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
3873 (LINK_SPEC): Only use default options -call_shared -no_unresolved
3875 Don't pass -init, -fini with -mabi=32.
3876 (COLLECT_PARSE_FLAG): Define.
3878 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
3880 Renamed to use irix_ prefix.
3881 (iris6_asm_named_section): Likewise.
3882 (iris_section_align_entry_eq): Likewise.
3883 (iris_section_align_entry_hash): Likewise.
3884 (iris6_file_start): Likewise.
3885 (iris6_section_align_1): Likewise.
3886 (iris6_file_end): Likewise.
3887 (iris6_section_type_flags): Likewise.
3888 (iris_section_align_htab): Likewise.
3889 (iris_orig_asm_out_file): Likewise.
3890 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
3891 (TARGET_ASM_FILE_END): Likewise.
3892 (TARGET_SECTION_TYPE_FLAGS): Likewise.
3894 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
3895 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
3896 override_options instead.
3897 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
3898 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
3899 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
3900 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
3902 Likewise for constructor/destructor handling.
3903 (override_options): Handle IRIX O32 assembler quirks.
3904 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
3906 (mips_file_start): Use new TARGET_IRIX.
3907 (mips_declare_object_name): No special processing for IRIX O32
3909 (mips_finish_declare_object): Likewise.
3910 (irix_asm_output_align): Renamed from iris6_asm_output_align.
3911 Don't record alignment for O32 ABI.
3912 (irix_file_start): Renamed from iris6_file_start.
3913 Return early for O32 ABI.
3914 (irix_file_end): Renamed from iris6_file_end.
3915 Don't emit .section directives for O32 ABI.
3916 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
3917 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
3919 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
3920 (MULTILIB_OSDIRNAMES): Likewise.
3922 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3924 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
3926 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
3928 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
3930 * arm-modes.def (CC_Nmode): New condition code mode.
3931 * arm.c (thumb_condition_code): Delete.
3932 (arm_select_cc_mode): Handle single-bit test for Thumb.
3933 (arm_print_operand, cases 'd' and 'D'): Don't special case the
3934 condition code logic for Thumb.
3935 (get_arm_condition_code): Handle CC_Nmode.
3936 (thumb_cbrch_target_operand): New function.
3937 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
3938 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
3939 * arm.md: Add Thumb split patterns for zero_extract and
3941 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
3942 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
3943 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
3944 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
3945 (cbranchne_decr1): Re-work to use CC_Nmode.
3947 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
3948 by the return instruction. Add a use of the link register if it
3951 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
3953 * flow.c (init_propagate_block_info): Don't abort if a conditional
3954 jump is not a comparison of a register. Instead, just don't record
3955 conditional life information.
3957 2003-10-16 Jan Hubicka <jh@suse.cz>
3959 PR optimization/12630
3960 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
3961 for operands 7 and 8.
3963 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
3965 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
3967 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
3969 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
3971 * config/i386/winnt.c (gen_stdcall_suffix): Make static
3972 (gen_fastcall_suffix): Likewise.
3973 (i386_pe_dllexport_p): Likewise.
3974 (i386_pe_dllimport_p): Likewise.
3975 (i386_pe_mark_dllexport): Likewise.
3976 (i386_pe_mark_dllimport): Likewise.
3977 (i386_pe_asm_named_section): Fix formatting.
3979 2003-10-16 Zack Weinberg <zack@codesourcery.com>
3981 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
3982 * system.h: Declare snprintf if necessary.
3983 * configure, config.in: Regenerate.
3985 2003-10-15 David Edelsohn <edelsohn@gnu.org>
3987 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
3988 arguments if TARGET_ALTIVEC_ABI.
3990 2003-10-15 Roger Sayle <roger@eyesopen.com>
3992 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
3993 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
3994 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
3996 (expand_builtin_memcpy): Use integer_zerop instead of testing
3997 host_integerp and tree_low_cst directly. Move misapplied hunk
3998 for optimization wher SRC and DEST point to the same location.
3999 (expand_builtin_mempcpy): From here.
4000 (expand_builtin_memmove): Use integer_zerop instead of testing
4001 host_integerp and tree_low_cst_directly.
4002 (expand_builtin_memset): Likewise.
4003 (expand_builtin_memcmp): Likewise (and for integer_onep).
4004 (expand_builtin_strncmp): Likewise.
4005 (fold_builtin): Call the appropriate fold_builtin_foo functions
4006 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
4009 2003-10-15 Geoffrey Keating <geoffk@apple.com>
4011 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
4012 prototype. Clean up some whitespace.
4013 * config/darwin.c: Use gen_rtx_FOO (...) rather than
4015 (machopic_non_lazy_ptr_name): Make static.
4016 (name_needs_quotes): Allow '.' and '$' unquoted.
4017 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
4020 2003-10-15 Gábor Lóki <alga@rgai.hu>
4022 * fold-const.c (tree_swap_operands_p): Disable some features
4023 when optimizing for size.
4025 2003-10-15 David Daney <ddaney@avtrex.com>
4027 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
4028 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
4029 from leaf functions.
4030 (DWARF_FRAME_RETURN_COLUMN): Ditto.
4031 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
4032 by MD_FALLBACK_FRAME_STATE_FOR.
4033 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
4035 2003-10-15 Zack Weinberg <zack@codesourcery.com>
4037 * genmodes.c: Include hashtab.h.
4038 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
4039 (adj_bytesize, adj_alignment, adj_format, new_adjust)
4040 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
4041 (print_maybe_const_decl, emit_mode_adjustments): New.
4042 (known_modes): Rename to modes.
4043 (find_mode): Kill class argument; look up in hash table.
4044 (new_mode): Insert into hash table also.
4046 (reset_float_format, make_partial_integer_mode)
4047 (make_vector_mode): Tweak error reporting.
4048 (reset_float_format): Correct type of fourth argument.
4049 (emit_insn_modes_h): Add #defines to help make mode_size,
4050 mode_base_align, and real_format_for_mode conditionally const.
4051 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
4052 (emit_real_format_for_mode): Likewise, but temporarily disabled.
4053 (emit_insn_modes_c): Call emit_mode_adjustments.
4054 (main): Initialize modes_by_name.
4055 * Makefile.in: Update dependencies.
4056 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
4057 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
4058 declarations of mode_size and mode_base_align. Declare
4059 init_adjust_machine_modes.
4060 * toplev.c (backend_init): Call init_adjust_machine_modes.
4062 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
4064 * genmodes.c (calc_wider_mode): Allocate enough room for all the
4065 entries we'll possibly assign in the sort buffer.
4067 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
4069 * config.gcc (s390x-ibm-tpf*): New target.
4070 * doc/install.texi: Document it.
4071 * config/s390/t-tpf: New file.
4072 * config/s390/tpf.h: New file.
4074 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
4077 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
4078 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
4079 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
4080 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
4081 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
4082 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
4083 replace_equiv_address, not gen_rtx_MEM.
4084 * config/cris/cris.c (cris_mem_op): New match_operator function.
4085 (cris_notice_update_cc): Use replace_equiv_address, not
4087 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
4089 2003-10-15 Bernardo Innocenti <bernie@develer.com>
4091 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
4092 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
4093 definitions after the other flags.
4095 2003-10-14 Ziemowit Laski <zlaski@apple.com>
4097 * c-parse.in (methoddef, methodproto): Call objc_add_method()
4098 instead of add_method().
4099 * objc/objc-act.c (objc_check_decl): Do not check for
4100 constant_string_type.
4101 (add_method): Rename to objc_add_method().
4102 (really_start_method): Call objc_add_method() instead of
4104 * objc/objc-act.h (add_method): Rename to objc_add_method().
4106 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4108 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
4109 (s390_slb_comparison): Likewise.
4110 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
4112 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
4113 and s390_slb_comparison.
4114 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
4116 ("*adddi3_31z", "*subdi3_31z"): New insns.
4117 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
4118 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
4121 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
4123 * configure.in: Clean up some feedback echoes.
4124 * configure: Regenerate.
4126 * aclocal.m4: Properly quote names of macros being defined.
4128 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
4130 2003-10-14 Steve Ellcey <sje@cup.hp.com>
4132 * config/ia64/ia64.c (ia64_expand_call): Force function address
4134 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
4136 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4138 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
4139 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
4140 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
4141 "*divsf3_ibm"): Likewise.
4143 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
4145 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
4146 target_alias with target_noncanonical.
4148 2003-10-14 Geoffrey Keating <geoffk@apple.com>
4150 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
4151 and add case for machines where outgoing register parameters
4154 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
4155 register when generating indirect address.
4157 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
4159 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
4160 * arm.md (cbranchne_decr1): Fix bootstrap warning.
4162 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4164 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
4165 * fixinc/fixincl.x: Regenerate.
4166 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
4168 Fixes PR bootstrap/9330.
4170 2003-10-13 Eric Christopher <echristo@redhat.com>
4172 * config/frv/frv.c (frv_adjust_field_align): Redo check for
4174 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
4175 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
4176 (SBSS_SECTION_ASM_OP): Remove.
4177 (EXTRA_SECTIONS): Remove in_sbss.
4178 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
4179 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
4180 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
4183 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
4185 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
4186 uses of ${target_alias} for directory names (and other places which
4187 won't like the empty string) with ${target_noncanonical}. Introduce
4188 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
4190 * configure: Regenerate.
4192 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
4194 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
4195 * config/arm/arm.md: For splits which rely on conditional moves,
4196 remove ! TARGET_IWMMXT condition.
4198 2003-10-13 David S. Miller <davem@redhat.com>
4200 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
4201 (find_cond_trap): Always increment if we emit a conditional
4204 2003-10-13 Zack Weinberg <zack@codesourcery.com>
4206 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
4207 with min-insn-modes.o.
4208 (STAGESTUFF): Add min-insn-modes.c.
4209 (genobjs): Add genmodes.o.
4210 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
4211 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
4212 (min-insn-modes.c, min-insn-modes.o): New rules.
4213 (s-modes): Also generate min-insn-modes.c.
4214 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
4215 * genmodes.c (struct mode_data): Add format field.
4216 (blank_mode, validate_mode, complete_mode): Update to match.
4217 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
4218 (_SCALAR_MODE): Kill.
4219 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
4220 (emit_insn_modes_c_header): Adjust.
4221 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
4222 (emit_min_insn_modes_c): New functions.
4223 (emit_insn_modes_c): Call emit_real_format_for_mode.
4224 (main): Add -m option to generate min-insn-modes.c.
4225 * machmode.h: Update documentation. Add format argument to
4226 all uses of FLOAT_MODE.
4227 * real.c: Don't define real_format_for_mode here.
4229 * dwarfout.c: Move default definition of PRINT_REG...
4230 * defaults.h: ...here.
4231 * print-rtl.c: Include tm_p.h.
4232 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
4234 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
4235 this entire block with #ifndef GENERATOR_FILE.
4236 * regclass.c: Unconditionally define reg_names.
4237 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
4238 Don't define DEBUG_REGISTER_NAMES.
4239 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
4240 redefinition of REGISTER_NAMES.
4241 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
4243 * combine.c: Change all preprocessor conditionals on
4244 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
4246 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
4247 * configure.in: Don't define EXTRA_CC_MODES.
4248 * configure, config.in: Regenerate.
4249 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
4251 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
4252 May assume that GET_MODE_CLASS is accurate for extra CC modes
4255 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
4256 number of arguments to aggregate_value_p.
4258 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
4259 * machmode.def: Explain ARCH-modes.def. Document
4260 RESET_FLOAT_FORMAT. Improve commentary on various mode
4261 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
4262 XF, or TF modes here. Remove backward-compatibility
4265 * config/alpha/alpha-modes.def: New file; define TF mode.
4266 * config/arc/arm-modes.def: Define XF mode.
4267 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
4268 float format for SF and DF modes.
4269 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
4270 * config/i386/i386-modes.def: Define XF and TF modes.
4271 * config/i960/i960-modes.def: Define TF mode.
4272 * config/ia64/ia64-modes.def: Define TF and OI modes.
4273 * config/m68k/m68k-modes.def: New file; define XF mode.
4274 * config/mips/mips-modes.def: New file; define TF mode, reset
4275 formats for SF and DF modes.
4276 * config/pa/pa-modes.def: Define TF mode.
4277 * config/rs6000/rs6000.c: Define TF and PSI modes.
4278 * config/s390/s390-modes.def: Define OI mode.
4279 * config/sh/sh-modes.def: New file; define PSI mode.
4280 * config/sparc/sparc-modes.def: Define TF mode.
4281 * config/vax/vax-modes.def: New file; reset formats for SF and
4284 * config/c4x/c4x.c (c4x_override_options): No need to mess
4285 with real_format_for_mode or set REAL_MODE_FORMATs.
4286 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
4288 * config/i386/i386.c (override_options): No need to set
4289 REAL_MODE_FORMATs here.
4290 * config/i960/i960.c (i960_initialize): Likewise.
4291 * config/m68k/m68k.c (m68k_override_options): Likewise.
4292 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
4293 for TFmode only if not the default.
4294 * config/mips/mips.c (override_options): Likewise.
4295 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
4296 DFmode only if not the default.
4298 * config/i370/i370.h (RET_REG): Don't consider TFmode.
4299 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
4300 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
4301 of modes that don't appear anywhere in the machine description.
4303 * config/arc/arc-modes.def, config/arm/arm-modes.def
4304 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
4305 * config/i386/i386-modes.def, config/i960/i960-modes.def
4306 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
4307 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
4308 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
4309 * config/sparc/sparc-modes.def: Convert to new style for
4310 declaring extra CC modes.
4312 2003-10-13 Zack Weinberg <zack@codesourcery.com>
4314 * cpplex.c (_cpp_clean_line): In the common case of a line
4315 with no trigraphs and no \-newline, avoid writing to memory.
4316 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
4317 of the buffer member. Make c an uchar to avoid unnecessary
4320 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
4322 * configure.in: Remove unnecessary test.
4323 * configure: Regenerate.
4325 * configure.in: Fix grammatical error. Move UWIN host error to...
4326 * config.host: Here.
4327 * configure: Regenerate.
4329 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
4331 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
4332 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
4333 of flag_unsafe_math_optimizations.
4334 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
4335 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
4336 fused-madd and no-fused-madd.
4337 * doc/invoke.texi: Documented the new options fused-madd and
4338 no-fused-madd for S/390.
4340 2003-10-14 Alan Modra <amodra@bigpond.net.au>
4342 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
4343 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
4345 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
4346 * config/rs6000/rs6000.c: Formatting.
4347 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
4348 when rs6000_alignment_string given.
4350 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4353 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
4354 (sparc_flat_must_save_register_p): New function to decide whether
4355 a register must be saved/restored in the function prologue/epilogue.
4356 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
4358 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
4360 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
4361 ISO C90 function declarations and definitions.
4362 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
4364 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
4366 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
4367 config files which do the same thing.
4368 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
4369 config/freebsd6.h: Remove now unnecessary files.
4371 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
4373 * c-common.c (c_common_truthvalue_conversion): Warn if the
4374 address of a non-weak function is used as a truth value.
4376 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
4378 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
4380 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
4381 instead of a literal.
4383 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
4385 * doc/extend.texi (Function Attributes): Mention the exceptional
4386 path for noreturn-marked functions.
4388 2003-10-12 Jan Hubicka <jh@suse.cz>
4390 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
4393 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
4395 * config/i386/i386.c (x86_this_parameter): Fix typo.
4397 203-10-11 Jan Hubicka <jh@suse.cz>
4399 * Makefile.in (web.o): New.
4401 * rtl.h (web_main): Declare.
4402 * timervar.def (TV_WEB): New.
4403 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
4404 (rest_of_hanle_web): New.
4405 (flag_web): New static variable.
4406 (lang_independent_options): Add "web".
4407 (rest_of_compilation): Call rest_of_handle_web.
4408 * invoke.texi (-fweb): Document.
4409 * common.opt (fweb): New.
4410 * flags.h (flag_web): New.
4411 * opts.c (decode_options): Set flag_web at -O3.
4413 * passes.texi (web construction): Document.
4414 * invoke.texi (-O3): Document that -fweb is enabled.
4416 * regrename.c (regrename_optimize): Deal better with situation when
4419 * sched-ebb.c: Include params.h and profile.h
4420 (schedule_ebbs): Use tracer parameters to discover superblocks
4421 * Makefile.in (sched-ebb.o): Add dependencies.
4423 2003-10-11 Roger Sayle <roger@eyesopen.com>
4425 * fold-const.c (negate_mathfn_p): New function to determine whether
4426 a built-in mathematical function is sign preserving, f(-x) == -f(x).
4427 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
4428 (tree_swap_operands_p): Change API to take an additional argument
4429 indicating that the swapped operands evaluate in reverse order.
4430 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
4431 operand side-effects or we don't care about flag_evaluation_order.
4432 (reorder_operands_p): New function to check whether its safe to
4433 evaluate the given operands in reverse order.
4434 (negate_expr_p): We can always negate integer constants unless
4435 we honor -ftrapv and the signed type would overflow. Only allow
4436 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
4437 negation of COMPLEX_CST if both real and imaginary parts can be
4438 negated. Allow negation through floating point extensions and
4439 sign-preserving built-in functions.
4440 (negate_expr): Move the code to negate integers from "fold" to
4441 here. Always negate integer constants unless we honor -ftrapv
4442 and the signed type would overflow. Always negate real constants
4443 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
4444 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
4445 Optimize negation through floating point extensions and
4446 sign-preserving built-in functions (as defined by negate_mathfn_p).
4447 (fold): Adjust calls to tree_swap_operands_p.
4448 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
4449 to negate_expr_p/negate_expr.
4450 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
4451 allowed to convert (-A) - B into (-B) - A.
4453 2003-10-11 Roger Sayle <roger@eyesopen.com>
4455 * builtins.c (expand_builtin_strcmp): Defend against the possibility
4456 that gen_cmpstrsi may fail: Stabilize the argument list against
4457 re-evaluation and expand the library call directly using this saved
4458 argument list if a cmpstrsi sequence can't be generated.
4459 (expand_builtin_strncmp): Likewise.
4461 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
4463 2003-10-11 Roger Sayle <roger@eyesopen.com>
4465 PR optimization/12260
4466 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
4467 operations through CONST nodes. Optimize (neg (plus X C)) as
4468 (minus -C X) for constant values C.
4469 (simplify_binary_operation): Optimize (minus (neg X) C) as
4470 (minus -C X) for constant values C.
4471 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
4472 instead create (minus -C X).
4474 2003-10-11 Roger Sayle <roger@eyesopen.com>
4476 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
4477 safe_from_p for us, once it chooses an evaluation order.
4478 (expand_expr <MULT_EXPR>): Likewise.
4479 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
4480 places the second operand in "target", swap the operands.
4481 (do_store_flag): Let expand_operands call safe_from_p for us.
4483 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
4485 PR optimization/12544
4486 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
4487 for DECL_NONLOCAL decls.
4489 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
4491 * expr.c: Follow spelling conventions.
4492 * final.c: Likewise.
4493 * optabs.c: Likewise.
4494 * sched-deps.c: Likewise.
4495 * sdbout.c: Likewise.
4497 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
4499 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
4500 re-computing of variable.
4502 2003-10-11 Richard Henderson <rth@redhat.com>
4504 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
4505 return_in_memory, make static, change signature to match target hook.
4506 (alpha_setup_incoming_varargs): Make static, change signature to
4507 match target hook, add code for vms and unicos.
4508 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
4509 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
4510 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
4511 TARGET_STRICT_ARGUMENT_NAMING,
4512 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
4513 * config/alpha/alpha-protos.h: Update.
4514 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
4515 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
4516 SETUP_INCOMING_VARARGS): Remove.
4517 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
4518 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
4520 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
4522 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
4524 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
4526 * config/m68k/lb1sf68.asm: Follow spelling conventions.
4527 * config/m68k/m68k.c: Likewise.
4528 * config/m68k/m68k.h: Likewise.
4529 * config/m68k/m68k.md: Likewise.
4531 2003-10-11 Roger Sayle <roger@eyesopen.com>
4533 * builtins.c (expand_builtin_memcpy): Optimize case when the two
4534 pointer arguments are the equal, non-volatile and side-effect free.
4535 (expand_builtin_mempcpy): Likewise.
4536 (expand_builtin_memmove): Likewise.
4537 (expand_builtin_strcpy): Likewise.
4538 (expand_builtin_memcmp): Likewise.
4539 (expand_builtin_strcmp): Likewise.
4540 (expand_builtin_strncmp): Likewise.
4542 2003-10-11 Roger Sayle <roger@eyesopen.com>
4544 * combine.c (apply_distributive_law): Enable "distributive" floating
4545 point optimizations with -funsafe-math-optimizations.
4547 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
4549 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
4551 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
4553 * config/m68k/m68k-protos.h: Remove the prototype for
4556 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
4558 * config/m68k/m68k.c: Fix comment typos.
4560 2003-10-11 Bernardo Innocenti <bernie@develer.com>
4562 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
4564 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
4565 (current_frame): New global var.
4566 (m68k_compute_frame_layout): Cache computations in current_frame.
4567 (m68k_initial_elimination_offset): Use values from current_frame
4568 instead of recomputing them.
4569 (use_return_insn): Likewise.
4570 (m68k_output_function_prologue): Likewise.
4571 (m68k_output_function_epilogue): Likewise.
4572 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
4573 inside the block for __pic__.
4575 2003-10-11 Peter Barada <peter@baradas.org>
4576 Bernardo Innocenti <bernie@develer.com>
4578 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
4579 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
4580 (m68k_interrupt_function_p): New function.
4581 (m68k_handle_fndecl_attribute): Ditto.
4582 (m68k_compute_frame_layout): Ditto.
4583 (m68k_attribute_table): Define back-end specific attributes.
4584 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
4587 2003-10-11 Bernardo Innocenti <bernie@develer.com>
4589 * config/m68k/t-uclinux: New target Makefile fragment.
4590 * config/m68k/uclinux.h: New target macro file.
4591 * config.gcc (m68k-*-uclinux): New target definition.
4593 2003-10-10 Roger Sayle <roger@eyesopen.com>
4595 * builtins.c (builtin_mathfn_code): Generalize to check whether
4596 the call is to any built-in function by comparing the call's
4597 argument list against the builtin decl's function type.
4599 2003-10-10 Roger Sayle <roger@eyesopen.com>
4601 * cse.c (constant_pool_entries_regcost): New global variable to
4602 hold the register cost component of constant_pool_entries_cost.
4603 (fold_rtx): Calculate constant_pool_entries_regcost at the same
4604 time as constant_pool_entries_cost.
4605 (cse_insn): Set both src_folded_cost and src_folded_regcost from
4606 constant_pool_entries_cost and constant_pool_entries_regcost.
4607 (cse_main): Initialize constant_pool_entries_regcost to zero.
4609 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
4610 the semantics of the sequence of bit operations used to negate
4611 a floating-point value.
4612 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
4613 the semantics of the bit operations used to abs a floating point
4616 2003-10-11 Bernardo Innocenti <bernie@develer.com>
4617 Paul Dale <pauli@snapgear.com>
4619 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
4621 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
4622 -fpic, -fPIC, -msep-data and -mid-shared-library.
4623 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
4624 (override_options): Add -msep-data and -mshared-library-id support.
4625 (m68k_output_function_prologue): Generate code to load A5 for
4626 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
4627 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
4628 (m68k_output_pic_call): New function.
4629 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
4630 (TARGET_ID_SHARED_LIBRARY): Ditto.
4631 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
4632 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
4633 (call_value): Likewise.
4635 2003-10-10 Zack Weinberg <zack@codesourcery.com>
4637 * gengenrtl.c (find_formats, genheader): Make i an unsigned
4638 int, remove cast of NUM_RTX_CODE.
4639 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
4640 entire file. Remove the #ifs on GET_MODE_MASK etc and
4641 GET_MODE_WIDER_MODE etc.
4643 2003-10-10 Eric Christopher <echristo@redhat.com>
4645 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
4646 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
4648 * config/sh/sh.h (MODE_ENTRY): New macro.
4650 (MODE_AFTER): Ditto.
4651 * config/sh/sh.md: Change for MODE_AFTER. Add
4653 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
4655 2003-10-10 Zack Weinberg <zack@codesourcery.com>
4657 * genmodes.c, mode-classes.def: New files.
4658 * machmode.def: Rewritten to genmodes.c interface.
4659 * Makefile.in (extra_modes_file): New substitution variable.
4660 (MACHMODE_H): No longer includes machmode.def or
4661 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
4662 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
4663 (OBJS-common): Add insn-modes.o.
4664 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
4665 genmodes$(build_exeext).
4666 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
4667 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
4668 (s-genrtl): Don't depend on $(RTL_BASE_H).
4669 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
4670 or $(RTL_BASE_H); just rtl.def.
4671 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
4672 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
4673 substitute definition of NUM_RTX_CODE. Add casts to avoid
4675 * machmode.h: Include insn-modes.h, not machmode.def. Include
4676 mode-classes.def to define enum mode_class. Tweak definitions
4677 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
4678 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
4679 (inner_mode_array): Renamed mode_inner.
4680 (mode_base_align): New.
4681 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
4682 mode_unit_size, mode_wider_mode, mode_mask_array,
4683 inner_mode_array, class_narrowest_mode): Delete definitions.
4684 * stor-layout.c (get_mode_alignment): Use mode_base_align.
4685 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
4686 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
4688 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
4689 No need to define BITS_PER_UNIT.
4691 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4693 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
4694 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
4695 (ia64_initialize_trampoline): If not using GAS, declare trampoline
4697 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
4698 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
4700 * stor-layout.c (compute_record_mode): Don't force BLKmode if
4701 field is zero-length BLKmode.
4702 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
4703 zero-size references.
4705 * combine.c (distribute_links): Properly test for REG being set.
4707 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
4708 gen_lowpart and company except for REG.
4710 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4712 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
4714 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
4716 * config.gcc (mips*-*-netbsd*): Remove content-free line.
4718 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
4720 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
4721 gcov_position_t and gcov_type.
4723 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
4725 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
4726 * configure: Regenerate.
4728 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
4730 * config/h8300/h8300.md (define_asm_attributes): Specify
4731 the length of an asm insn more precisely.
4733 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4735 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
4737 2003-10-09 Bob Wilson <bob.wilson@acm.org>
4739 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
4740 FP register number to 48 and MAC16 accumulator to 0x210.
4742 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
4744 * config.gcc: Remove redundant thread_file setting clauses for
4745 various *-*-linux* targets.
4747 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
4749 * config/h8300/h8300.md (define_asm_attributes): New.
4751 2003-10-09 Roger Sayle <roger@eyesopen.com>
4753 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
4754 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
4756 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
4758 * haifa-sched.c (ok_for_early_schedule): New function.
4759 (early_queue_to_ready): New function.
4760 (schedule_block): Allow early removal of insns from Q.
4761 (schedule_insn): Update INSN_TICK in case of premature
4763 * common.opt (sched_stalled_insns): New flag.
4764 (sched_stalled_insns_dep): New flag.
4765 * flags.h: Same above flags.
4766 * opts.c: Same as above.
4767 * toplev.c: Same as above.
4768 * target.h (targetm.sched.is_costly_dependence): New
4770 * target-def.h: Same as above.
4771 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
4772 Support new flag -msched-costly-dep.
4773 (DEFAULT_SCHED_COSTLY_DEP): Define.
4774 * config/rs6000/rs6000.c:
4775 (rs6000_is_costly_dependence): New function.
4776 (is_load_insn, is_store_insn): New functions.
4777 (is_load_insn1, is_store_insn1, is_mem_ref): New
4779 * doc/invoke.texi (-fsched-stalled-insns-dep)
4780 (-fsched-stalled-insns, -msched-costly-dep): Document
4782 * doc/tm.texi (is_costly_dependence): Define new
4783 scheduler target hook.
4785 2003-10-09 Jason Merrill <jason@redhat.com>
4788 * c-common.c (c_build_qualified_type): Look through arrays first.
4789 (c_apply_type_quals_to_decl): Look through arrays.
4791 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
4792 types with constructors.
4794 * coverage.c (build_ctr_info_value): Use build_decl to make a
4796 (create_coverage): Likewise.
4798 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
4800 (expand_asm_operands): Not here.
4801 (parse_input_constraint): No longer static.
4802 * tree.h: Declare it.
4804 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
4806 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
4808 (SHLIB_INSTALL): Likewise.
4810 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
4812 * doc/install.texi: Remove reference to removed 'pthreads' thread
4815 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
4817 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
4820 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
4822 * config.gcc: Don't accept --enable-threads=pthreads. Clean
4823 up related case statements.
4824 * configure.in: Don't accept --enable-threads=pthreads,
4825 decosf1, mach, or os2 (none of which work anyway). Alphabetize
4826 supported thread files in case clause.
4827 * configure: Regenerate.
4829 2003-10-08 Geoffrey Keating <geoffk@apple.com>
4831 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
4832 definition to above SPARC_STACK_BOUNDARY_HACK.
4834 2003-10-08 Jason Merrill <jason@redhat.com>
4836 * c-pretty-print.c (pp_c_postfix_expression)
4837 <COMPOUND_LITERAL_EXPR>: Fix thinko.
4839 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4841 * mklibgcc.in: Don't hide undefined or typeless symbols.
4843 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4845 PR optimization/12142
4846 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
4847 uses of the register in the SET_SRC. Remove unnecessary argument.
4848 * pa.c (legitimize_pic_address): Before reload, use a scratch register
4849 for the intermediate result in loading the address of a SYMBOL_REF.
4850 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
4851 which loads the SYMBOL_REF address.
4853 2003-10-08 Timo Kokkonen <tjko@iki.fi>
4854 Eric Botcazou <ebotcazou@libertysurf.fr>
4857 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
4858 to define the size of the extern_C_braces array. Set it to 200.
4859 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
4861 2003-10-08 Carlo Wood <carlo@alinoe.com>
4863 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
4864 a space after the -o option. flex 2.5.31 understands both, with
4865 and without the space. Removed that space.
4867 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
4869 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
4870 (compute_frame_size): Initialize it. Remove the .cprestore slot
4872 (mips_output_function_prologue): Simplify accordingly.
4873 (mips_debugger_offset): Change the mips16 frame pointer offset from
4874 current_function_outgoing_args to cfun->machine->frame.args_size.
4875 (mips_initial_elimination_offset): Likewise.
4876 (mips_expand_prologue): Likewise.
4877 (mips_expand_epilogue): Likewise.
4879 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
4881 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
4882 (EXTRA_MEMORY_CONSTRAINT): Define.
4883 (CAN_ELIMINATE): Remove lwu workaround.
4884 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
4885 Use a 'W' constraint for the source operand.
4887 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
4889 * genopinit.c (main): Output code to declare undefined
4892 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
4894 * gengtype-lex.l: Remove -Wtraditional cruft.
4895 * Makefile.in (gengtype-lex.c): Likewise.
4897 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4899 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
4901 2003-10-07 Jason Merrill <jason@redhat.com>
4904 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
4907 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
4909 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
4911 Fixes PR bootstrap/12173.
4913 2003-10-07 Zack Weinberg <zack@codesourcery.com>
4915 * errors.c: Don't include coretypes.h or tm.h.
4916 (trim_filename): Use IS_DIR_SEPARATOR.
4917 * Makefile.in: Update dependencies of errors.o and
4918 $(BUILD_PREFIX_1)errors.o.
4920 2003-10-07 Geoffrey Keating <geoffk@apple.com>
4922 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
4923 account when aligning arguments.
4924 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
4925 * defaults.h (STACK_POINTER_OFFSET): ... to here.
4926 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
4927 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
4928 (SPARC_STACK_BOUNDARY_HACK): Define.
4929 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
4930 arrange for vector parameters to varargs functions to be passed
4931 in both memory and GPRs when appropriate.
4932 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
4935 * hooks.c (hook_bool_tree_true): New.
4936 (hook_rtx_tree_int_null): New.
4937 (hook_rtx_rtx_null): Use NULL, not 0.
4938 * hooks.h: Add 'extern' to everything.
4939 (hook_bool_tree_true): New.
4940 (hook_rtx_tree_int_null): New.
4941 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
4942 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
4943 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
4945 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
4946 (setup_incoming_varargs): Prototype.
4947 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
4948 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
4949 (TARGET_STRUCT_VALUE_RTX): Define.
4950 (TARGET_RETURN_IN_MEMORY): Define.
4951 (TARGET_SETUP_INCOMING_VARARGS): Define.
4952 (TARGET_STRICT_ARGUMENT_NAMING): Define.
4953 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
4954 (init_cumulative_args): Use rs6000_return_in_memory.
4955 (setup_incoming_varargs): Make 'static'.
4956 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
4957 (PROMOTE_FUNCTION_RETURN): Delete.
4958 (STRUCT_VALUE): Delete.
4959 (RETURN_IN_MEMORY): Delete.
4960 (SETUP_INCOMING_VARARGS): Delete.
4962 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
4964 * doc/invoke.texi (Warning Options): Simplify and clarify the
4965 descriptions of -Wnonnull and -Winit-self.
4967 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
4969 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
4970 indicees for floating-point conversersion libcalls.
4972 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
4974 * Makefile.in: Add more comments separating large conceptually
4977 * configure.in: Clean up thread file logic.
4978 * configure: Regenerate.
4980 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
4982 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
4983 (switch_to_section): Handle in_readonly_data.
4984 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
4987 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
4989 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
4991 (cbranchne_decr1): New Thumb pattern.
4992 * arm.c (arm_addimm_operand): New insn predicate.
4993 * arm-protos.h: Add a prototype for it.
4994 * arm.h (PREDICATE_CODES): Add it.
4996 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
4998 * sched-int.h (sched_info): New field
4999 sched_max_insns_priority.
5000 * sched-rgn.c (init_ready_list): Add invocations to
5001 targetm.sched.adjust_priority.
5002 (sched_max_insns_priority): Init new field.
5003 * sched-ebb.c (sched_max_insns_priority): Init new field.
5004 * haifa-sched.c (set_priorities): Set
5005 sched_info->sched_max_insns_priority.
5006 * config/rs6000/rs6000.h:
5007 (rs6000_sched_restricted_insns_priority_str): Support new
5008 flag -mprioritize-restricted-insns.
5009 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
5010 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
5012 (rs6000_adjust_priority): Change priority of restricted
5013 insns, using above new function and new flag.
5014 * doc/invoke.texi (-mprioritize-restricted-insns): Document
5017 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5019 * expr.c (cmpstr_optab, cmpmem_optab): New.
5020 * genopinit.c: Initialize them.
5021 * optabs.h: Declare them.
5022 * optabs.c (init_optabs): Clear them.
5023 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
5024 block memory compare insns, not conditional chains. Restructure
5025 the fallback generation of a call to memcmp/bcmp for better
5028 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5030 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
5031 (mips_save_restore_fn): New typedef.
5032 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
5033 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
5034 (save_restore_insns): Remove, replacing with...
5035 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
5036 (mips_save_reg, mips_restore_reg): New function.
5037 (mips_expand_prologue, mips_expand_epilogue): Rework.
5038 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
5039 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
5040 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
5042 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5044 * config/mips/mips.c (mips_expand_prologue): Remove unused
5045 traversal of function arguments.
5047 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5049 * doc/invoke.texi: Remove documentation of -mentry.
5050 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
5051 (override_options, mips_save_reg_p): Remove handling.
5052 (compute_frame_size, mips_output_function_prologue): Likewise.
5053 (mips_expand_prologue, mips_expand_epilogue): Likewise.
5054 * config/mips/mips.h (mips_entry_string): Remove declaration.
5055 (TARGET_OPTIONS): Remove -mentry.
5056 * config/mips/mips16.S: Remove mention of -mentry.
5058 2003-10-06 Zack Weinberg <zack@codesourcery.com>
5060 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
5061 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
5062 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
5063 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
5064 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
5065 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
5066 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
5067 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
5068 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
5069 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
5070 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
5071 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
5072 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
5073 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
5074 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
5075 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
5076 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
5077 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
5078 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
5079 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
5080 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
5081 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
5082 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
5083 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
5084 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
5085 (fixunstfti_libfunc): Delete.
5086 * optabs.h (struct optab_handlers): Break out of struct optab.
5087 (struct convert_optab, convert_optab, enum convert_optab_index,
5088 convert_optab_table, sext_optab, zext_optab, trunc_optab,
5089 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
5090 sfloat_optab, ufloat_optab): New.
5091 (set_conv_libfunc): Prototype.
5092 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
5093 (trunc_optab): Renamed btrunc_optab.
5094 * builtins.c (expand_builtin_mathfn): Update to match.
5095 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
5096 (convert_optab_table, new_convert_optab, init_convert_optab)
5097 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
5098 (set_conv_libfunc): New.
5099 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
5100 (expand_float, expand_fix): Use new conversion optabs,
5101 not old insn code tables or long chains of ifs.
5102 (init_optabs): No need to clear old insn code tables.
5103 Initialize the new optabs, not the old libfunc array entries.
5104 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5105 * genopinit.c: Initialize conversion optabs, not the
5106 former insn code tables. Remove unnecessary casts.
5107 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5108 * expr.c (convert_move): Remove redundant check that
5109 to_real==from_real. Use the conversion optabs instead
5110 of long chains of tests of modes. Move partial-integer-mode
5111 interconversion above all integer conversion. Do not recurse
5112 on a value forced into a register in the original mode.
5114 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
5115 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5116 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
5117 in new conversion optabs; do not reference the old libfunc
5118 array entries. No need to include libfuncs.h.
5120 2003-10-06 Roger Sayle <roger@eyesopen.com>
5122 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
5123 point comparison sequence with a REG_EQUAL note that describes
5124 the comparison's semantics.
5126 2003-10-06 Roger Sayle <roger@eyesopen.com>
5128 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
5129 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
5131 2003-10-06 Roger Sayle <roger@eyesopen.com>
5132 Zack Weinberg <zack@codesourcery.com>
5134 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
5135 instruction by using LCT_CONST and then calling emit_libcall_block
5138 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5140 PR optimization/11974
5141 * optabs.c (expand_unop): Promote libcall outmode according to
5144 2003-10-06 Zack Weinberg <zack@codesourcery.com>
5146 * real.h (REAL_MODE_FORMAT): New macro.
5147 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
5148 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
5149 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
5150 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
5151 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
5152 directly to real_format_for_mode array, wherever possible.
5154 2003-10-06 Devang Patel <dpatel@apple.com>
5156 * dwarf2out.c (is_main_source): Remove variable.
5157 (dwarf2out_start_source_file): Do not check is_main_source.
5158 Do not reset is_main_source.
5159 (dwarf2out_init): Do not initialize is_main_source.
5161 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5163 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
5164 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
5165 introduced some multi-line prototypes.
5166 * fixinc/fixincl.x: Regenerate.
5168 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5170 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
5171 * config/mips/mips.c (stack_operand): New predicate.
5172 * config/mips/mips.md: Use it for the destination of mips16 insns
5175 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5177 * config/mips/mips.md (*lowsi): Renamed from lowsi.
5178 (*lowdi): Likewise lowdi.
5179 (*lowsi_mips16, *lowdi_mips16): New patterns.
5180 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
5181 mips16 CONSTANT_RELOC handling.
5182 (mips_delegitimize_address): Adjust for new sdata representation.
5184 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5186 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
5187 skip any remaining register arguments.
5189 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
5191 * reload.c (find_reloads_subreg_address): Use correct offset for
5192 paradoxical MEM subregs on big-endian targets.
5194 2003-10-06 Andrew Haley <aph@redhat.com>
5196 * tree.c (get_callee_fndecl): Call
5197 lang_hooks.lang_get_callee_fndecl.
5198 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
5199 (lhd_get_callee_fndecl): New.
5201 2003-10-06 Andrew Pinski <apinski@apple.com>
5203 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5204 error in calculating the length of the string.
5205 (machopic_stub_name): Likewise.
5207 2003-10-06 Roger Sayle <roger@eyesopen.com>
5209 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
5210 describing the return value of the comparison libcall to the
5211 REG_RETVAL instruction of the emitted sequence.
5213 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5215 PR optimization/12215
5216 * cse.c (cse_set_around_loop): Emit the move at the beginning
5217 of the next basic block for trapping sets.
5219 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5221 PR optimization/11637
5222 * combine.c (adjust_for_new_dest): New function to adjust the
5223 notes and LOG_LINKS when the dest of an insn has changed.
5224 (try_combine): Use it when deleting the first insn of a two-insn
5225 parallel or splitting a two-load parallel.
5227 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5229 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
5230 if TARGET_EXPLICIT_RELOCS.
5232 2003-10-06 Mark Mitchell <mark@codesourcery.com>
5235 * Makefile.in (info): Use double-colon rules.
5237 (generated-manpages): Likewise.
5238 * configure.in: Do not create lang.info, lang.dvi, or
5239 lang.generated-manpages hooks.
5240 * configure: Regenerated.
5241 * objc/Make-lang.in (objc.info): Remove.
5243 (objc.generated-manpages): Remove.
5244 * doc/sourcebuild.texi: Update description of info, dvi, and
5245 generated-manpages hooks.
5247 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5249 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
5251 2003-10-05 Andrew Pinski <apinski@apple.com>
5253 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5254 errors in memcpy destinations.
5255 (machopic_stub_name): Likewise.
5257 2003-10-05 Andrew Pinski <apinski@apple.com>
5259 * config/darwin.c (machopic_non_lazy_ptr_name):
5260 Change strcat to memcpy and add length together.
5261 (machopic_stub_name): Likewise.
5263 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
5265 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
5266 signal trampoline codes.
5268 2003-10-05 Chris Demetriou <cgd@broadcom.com>
5270 * config/mips/mips.md (*divsf3): Move description of
5271 SB-1 F2 erratum from here to...
5272 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
5273 flag_unsafe_math_optimizations is not.
5275 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
5277 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
5278 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
5280 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5282 * c-pretty-print.c: Fix comment typos.
5283 * c-pretty-print.h: Likewise.
5284 * calls.c: Likewise.
5285 * cfgloopmanip.c: Likewise.
5286 * cgraphunit.c: Likewise.
5287 * cppfiles.c: Likewise.
5288 * final.c: Likewise.
5289 * function.c: Likewise.
5290 * gcov-io.h: Likewise.
5292 * genoutput.c: Likewise.
5294 * postreload.c: Likewise.
5295 * reg-stack.c: Likewise.
5296 * regmove.c: Likewise.
5297 * sched-int.h: Likewise.
5298 * sched-rgn.c: Likewise.
5299 * simplify-rtx.c: Likewise.
5300 * tree-inline.c: Likewise.
5301 * config/m68hc11/m68hc11.h: Likewise.
5302 * config/mmix/mmix.c: Likewise.
5303 * config/mn10300/mn10300.md: Likewise.
5304 * config/sh/sh.h: Likewise.
5306 2003-10-05 Richard Henderson <rth@redhat.com>
5308 * tree-inline.c (remap_type): New.
5309 (remap_decl): Use it. Remap DECL_SIZE*.
5310 (copy_body_r): Use it.
5311 (walk_tree): Walk TREE_TYPE too.
5312 (copy_tree_r): Don't walk subtrees of types.
5313 * tree.c (variably_modified_type_p): Restructure. Consider integer
5314 types with non-const bounds variably modified.
5316 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5318 * doc/invoke.texi: Fix typos.
5320 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5322 * fold-const.c: Follow spelling conventions.
5323 * function.c: Likewise.
5324 * config/c4x/c4x.h: Likewise.
5325 * config/c4x/c4x.md: Likewise.
5326 * config/frv/frv.md: Likewise.
5327 * config/rs6000/aix.h: Likewise.
5328 * config/rs6000/linux64.h: Likewise.
5329 * config/xtensa/xtensa.c: Likewise.
5331 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5333 * c-pretty-print.c: Fix comment formatting.
5334 * cfglayout.c: Likewise.
5335 * cfgloopanal.c: Likewise.
5336 * cppcharset.c: Likewise.
5337 * dbxout.c: Likewise.
5338 * ggc-page.c: Likewise.
5340 * target.h: Likewise.
5342 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
5344 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
5346 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
5348 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
5349 Convert to ISO C90 function declarations and definitions.
5351 2003-10-04 Zack Weinberg <zack@codesourcery.com>
5354 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
5355 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
5356 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
5357 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
5358 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
5359 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
5360 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
5361 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
5362 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
5363 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
5364 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
5365 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
5366 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
5367 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
5368 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
5369 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
5371 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
5372 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
5373 (le_optab, unord_optab): New.
5375 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
5376 from the code_to_optab table, not a giant switch; use
5377 swap_condition; do widening only if a comparison function that
5378 we can call exists in a wider mode, not if a cmp_optab insn or
5379 libfunc exists in a wider mode; call protect_from_queue
5380 exactly once on each operand.
5381 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
5383 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
5384 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
5385 Set floating point comparison libfuncs using set_optab_libfunc
5386 on the appropriate optab.
5388 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
5389 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
5390 selector conditionals.
5392 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
5394 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
5395 identical to m68hc12 as far as libraries are concerned.
5397 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5400 * c-typeck.c (convert_for_assignment): Issue an error for
5401 array to pointer assignment after default conversion.
5402 (digest_init): Likewise.
5404 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
5406 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
5408 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
5410 * doc/extend.texi (Function Attributes): Fix title of GNU C
5411 Preprocessor manual.
5412 (C++ Extensions): Fix reference to "Predefined Macros" in the
5413 GNU C Preprocessor manual.
5415 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
5417 * doc/extend.texi: Document how GCC estimates and relies on the size
5420 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
5422 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
5423 arguments downward for big-endian o64.
5425 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
5427 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
5428 PCH generation, avoiding too-frequent flushes when writing to NFS
5431 2003-10-03 Ziemowit Laski <zlaski@apple.com>
5433 * objc/objc-act.c (lookup_category): Mark as 'inline'.
5435 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
5436 Ziemowit Laski <zlaski@apple.com>
5438 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
5440 (lookup_method_in_hash_lists): New parameter indicating whether
5441 we are messaging 'Class' or 'id'.
5442 (check_duplicates): Likewise; do not assume all methods will
5443 be either class or instance methods.
5444 (generate_category, finish_class): Use lookup_category().
5445 (add_method): Use add_method_to_hash_list(); insert instance
5446 methods of root classes into the global class method hash table.
5447 (add_category): Use lookup_category(); avoid constructing
5448 duplicate categories.
5449 (really_start_method): Add method to corresponding @interface,
5450 if not already there (and if the @interface exists).
5451 (finish_message_expr, finish_objc): Adjust calls to
5454 2003-10-03 Roger Sayle <roger@eyesopen.com>
5456 PR optimization/9325, PR java/6391
5457 * fold-const.c (fold_convert): For floating point to integer
5458 conversions, return the maximum/minimum representable integer
5459 value if the real constant overflows the destination type.
5460 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
5461 meaning don't truncate the result to a floating point mode.
5462 Simplify the logic by calling real_from_integer directly.
5463 * simplify-rtx.c (simplify_unary_operation): Implement the
5464 same semantics for folding floating point to integer conversions
5467 2003-10-03 Chris Demetriou <cgd@broadcom.com>
5469 * config/mips/mips.c (mips_emit_prefetch): Restructure
5470 to avoid use of arrays, handle indexed prefetch.
5471 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
5472 (ISA_HAS_PREFETCHX): New deffine.
5473 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
5475 (prefetch_indexed_di, prefetch_indexed_si): New insns.
5477 2003-10-03 Jeff Sturm <jsturm@one-point.com>
5478 Roger Sayle <roger@eyesopen.com>
5480 PR optimization/12289
5481 * calls.c (emit_call_1): Pretend to have popped the arguments
5482 to noreturn and longjmp functions instead of ignoring them.
5483 (expand_call): Don't adjust stack_pointer_dela while
5484 inhibit_defer_pop is set.
5486 2003-10-03 Andreas Schwab <schwab@suse.de>
5489 * configure.in: Check for libunwind on the host only if building
5491 * configure: Regenerated.
5493 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
5495 * unwind-pe.h (read_encoded_value_with_base): Constify u and
5496 its inizialization cast.
5498 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
5501 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
5503 2003-10-02 Mark Mitchell <mark@codesourcery.com>
5505 PR optimization/12180
5506 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
5507 functions containing calls to __builtin_next_arg.
5509 2003-10-02 Chris Demetriou <cgd@broadcom.com>
5511 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
5512 in instructions being output.
5513 * config/mips/mips.md (prefetch_si_address): Change third
5514 operand's constraint letter to 'I'.
5515 (prefetch_di_address): Likewise.
5516 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
5518 2003-10-02 Zack Weinberg <zack@codesourcery.com>
5520 * system.h: Poison macros obsoleted by earlier patch.
5521 * config/cris/cris.c: C90-ify a function definition.
5523 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
5526 * combine.c (make_field_assignment): Check whether rtx's code
5527 is CONST_INT before using INTVAL.
5529 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
5531 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
5532 htab_find_slot_with_hash.
5533 (cgraph_node_for_identifier): Use NO_INSERT.
5534 (cgraph_remove_node): Use NO_INSERT.
5535 (cgraph_varpool_node): Use INSERT.
5536 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
5538 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
5540 Waldek Hebisch <hebisch@math.uni.wroc.pl>
5542 * varasm.c (compare_constant): Fix thinko.
5544 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
5546 * config/frv/frv.c (frv_issue_rate): New function.
5547 (frv_pack_insns): Use it.
5548 (TARGET_SCHED_ISSUE_RATE): Define.
5550 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
5552 * config/mcore/mcore.c: Convert to ISO C90 function declarations
5554 * config/mcore/mcore.h: Likewise.
5555 * config/mcore/mcore-protos.h: Likewise.
5557 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
5559 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
5560 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5562 2003-10-01 Per Bothner <pbothner@apple.com>
5564 * c-lex.c (src_line): Remove unneeded static variable.
5565 (cb_line_change): Set input_line directly, instead of src_line.
5566 (get_non_padding_token): We no longer need to compensate for the
5567 "horrible things" the C++ front-end does with the current line number,
5569 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
5570 callback even when popping the main file.
5571 * c-lex.c (fe_file_change): Handle a NULL new_map.
5572 * fix-header.c (cb_file_change): Likewise.
5573 * c-ppoutput.c (pp_file_change): Likewise.
5575 * cppinit.c (cpp_read_main_file): Split into two functions:
5576 Distribute _cpp_stack_file call over the two functions.
5577 (cpp_find_main_file): New function.
5578 Don't call _cpp_do_file_change even if working_directory flag set.
5579 (cpp_push_main_file): New function.
5580 * cppfiles.c (_cpp_find_failed): New helper function.
5581 (find_file): Made non-static and renamed to _cpp_find_file.
5582 (_cpp_stack_file): No longer needed. But note the following.
5583 (stack_file): Made non-static and renamed to _cpp_stack_file.
5584 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
5585 call with calls to cpp_find_main_file and cpp_push_main_file.
5586 (search_path_head): If there is no current buffer, use main_file.
5587 * cpphash.h: Update function declarations.
5588 * cpplib.h: Update function declarations.
5590 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
5591 (c_common_parse_file): No longer need to call cpp_read_main_file
5592 when file_index > 0 (as in multi-file or server compiation).
5593 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
5594 as this now happens before cpp_push_main_file.
5595 (push_command_line_include): When done with options, pass LC_LEAVE
5596 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
5597 (fe_file_change): Handle NULL new_map, and simplify.
5598 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
5599 08-28 change, since we're never called with a NULL buffer.
5600 (_cpp_lex_direct): Likewise.
5601 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
5602 Return false if buffer is NULL at end.
5604 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
5605 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
5606 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
5607 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
5608 remove the unused return_at_eof parameter.
5609 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
5610 Update callers of cpp_push_buffer.
5612 2003-10-01 Zack Weinberg <zack@codesourcery.com>
5614 * target.h (init_libfuncs): New hook.
5615 * target-def.h: Default TARGET_INIT_BUILTINS and
5616 TARGET_INIT_LIBFUNCS to hook_void_void. Add
5617 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
5618 * builtins.c (default_init_builtins): Delete.
5619 * expr.h (default_init_builtins): Delete prototype.
5620 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
5621 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
5622 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
5623 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
5624 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
5625 and UMODDI3_LIBCALL,
5627 * Makefile.in (optabs.o): Depends on target.h.
5628 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
5629 * optabs.c: Include target.h.
5630 (prepare_float_lib_cmp): No need for #ifdef around use of
5631 FLOAT_LIB_COMPARE_RETURNS_BOOL.
5632 (set_optab_libfunc): New function.
5633 (init_optabs): Delete use of all *_LIBCALL defines.
5634 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
5635 * optabs.h: Prototype set_optab_libfunc.
5637 * config.gcc: Remove all references to pa/long_double.h,
5638 ia64/hpux_longdouble.h, and gofast.h.
5639 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
5640 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
5642 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
5643 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
5644 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
5645 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5646 * config/sparc/sparc.c, config/vax/vax.c:
5647 Provide a definition for TARGET_INIT_LIBFUNCS. Where
5648 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
5650 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
5651 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
5652 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
5653 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
5654 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
5655 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
5656 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
5657 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
5658 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
5660 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
5661 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5662 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
5663 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5664 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
5666 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
5667 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
5668 SUN_INTEGER_MULTIPLY_64 to 0.
5669 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
5670 SUN_INTEGER_MULTIPLY_64 to 1.
5671 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
5672 SUN_INTEGER_MULTIPLY_64 to 0.
5673 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
5674 Define US_SOFTWARE_GOFAST.
5675 * config/vax/vax.h: Default TARGET_ELF to 0.
5676 * config/vax/elf.h: Redefine TARGET_ELF to 1.
5678 * config/gofast.h: Don't define any macros here. Provide one
5679 static function, gofast_maybe_init_libfuncs, which does what
5680 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
5681 is already defined. Do not clear negation libfuncs. Do
5682 not mess with HFmode, XFmode, or TFmode libfuncs.
5684 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
5686 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
5689 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
5691 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5693 * config/mips/xm-iris5.h: Remove, unnecessary.
5694 * config.build (mips-sgi-irix5*): Remove.
5695 (mips-sgi-irix6*o32): Likewise.
5696 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
5697 (mips-sgi-irix5cross64): Likewise.
5698 (mips-sgi-irix5*): Likewise.
5699 * config.host (mips-sgi-irix5*): Remove.
5700 (mips-sgi-irix6*o32): Likewise.
5702 2003-10-01 Zack Weinberg <zack@codesourcery.com>
5704 * dbxout.c (dbxout_fptype_value): Delete.
5705 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
5707 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
5709 * output.h (compute_reloc_for_constant): Declare.
5710 * varasm.c (compute_reloc_for_constant): Extract from...
5711 (output_addressed_constants): ... here. Adjust all callers.
5713 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5715 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
5716 * configure: Rebuilt.
5718 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5720 * fold-const.c (make_range): When handling unsigned, don't reverse
5721 range if high bound is zero.
5723 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
5725 * config/frv/frv.h (PREDICATE_CODES): Added
5726 condexec_si_media_operator, condexec_sf_add_operator and
5727 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
5728 and condexec_sf_unary_operator.
5730 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5732 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
5733 * configure: Rebuilt.
5735 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5737 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
5739 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
5741 2003-09-23 David S. Miller <davem@redhat.com>
5743 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
5745 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5747 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
5749 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
5750 C90 function declarations and definitions.
5752 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
5754 * config.gcc (cris-*-linux*): Revert mistaken commit.
5756 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
5758 PR optimization/11753
5759 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
5760 the length in the non-V9 case.
5762 2003-09-30 Richard Henderson <rth@redhat.com>
5764 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
5765 DWARF_ALT_FRAME_RETURN_COLUMN.
5766 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
5767 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
5768 (uw_frame_state_for): Return end-of-stack for null return address.
5769 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
5771 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
5772 (alpha_expand_prologue): Store a zero for it.
5773 (alpha_expand_epilogue): Don't reload it.
5774 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
5775 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
5776 for the sigframe return address.
5778 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
5780 * sdbout.c: Convert to ISO C90 prototypes.
5781 * objc/objc-act.c: Likewise.
5783 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
5785 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
5786 * config/i386/winnt.c: Likewise.
5787 * config/i386/cygming.h: Likewise.
5789 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
5791 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5792 (A ^ B) - B for any B.
5794 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
5796 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
5797 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
5799 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
5801 * arm/ieee754-sf.S: Tidy formatting.
5803 2003-09-30 Nicolas Pitre <nico@cam.org>
5805 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
5807 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
5808 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
5809 added better divisor alignment in the other case.
5810 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
5811 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
5812 macros above, add fast exits for divisor >= dividend, etc.
5814 2003-09-30 Nicolas Pitre <nico@cam.org>
5816 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
5818 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
5820 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
5822 * config.gcc: Default use_fixproto to 'no'.
5824 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
5826 PR optimization/12345
5827 * config/mips/mips-protos.h (mips_restore_gp): Remove.
5828 (mips_gp_save_slot): Declare.
5829 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
5830 (mips_gp_save_slot): ...this new function.
5831 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
5832 and mips_output_move to generate the output template.
5833 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
5834 a gp load after a noreturn call. Load the gp using a move rather
5835 than an exception_receiver pattern.
5836 (call_value_internal, call_value_multiple_internal): Likewise.
5837 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
5839 2003-09-30 Carlo Wood <carlo@alinoe.com>
5842 * cfglayout.c (insn_scope): Use prologue_locator and
5843 epilogue_locator; return the outer function scope for
5844 pro- and epilogue insns.
5846 2003-09-29 Zack Weinberg <zack@codesourcery.com>
5848 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
5849 REAL_TYPEs based on the bitsize of the type's mode, not the
5852 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5854 * dwarf2out.c (default_eh_frame_section): Split into ...
5855 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
5857 * output.h (named_section_eh_frame_section): Declare.
5858 (collect2_eh_frame_section): Likewise.
5860 2003-09-29 Zack Weinberg <zack@codesourcery.com>
5862 * real.c (real_sqrt): Use get_canonical_qnan directly.
5864 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
5866 * varasm.c (assemble_real): Use real_to_target directly,
5867 calculate the number of significant elements of the result
5868 array and write them out in a loop, instead of using a giant
5869 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
5872 2003-09-29 Jan Hubicka <jh@suse.cz>
5875 * varasm.c (notice_global_symbol): Discard external symbols.
5877 PR optimization/12286
5878 * gcov-io.c (gcov_read_words): Fix memmove call.
5879 * profile.c (compute_branch_probabilities): Add extra sanity checks.
5881 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5883 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
5886 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
5887 wildcards which explicitly match micro versions.
5888 * fixinc/fixincl.x: Regenerate.
5890 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
5892 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5893 (A ^ B) - B, where B is any power of 2 minus 1.
5895 2003-09-29 Jan Hubicka <jh@suse.cz>
5897 * libgcov.c (gcov_exit): Fix two pastos.
5899 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
5901 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
5902 define_split immediately below to form define_insn_and_split.
5904 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
5906 * config/h8300/h8300.md (*tstsi_variable_bit): New.
5907 (*tstsi_variable_bit_qi): Likewise.
5909 2003-09-28 Phil Edwards <phil@codesourcery.com>
5911 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
5914 2003-09-28 Richard Henderson <rth@redhat.com>
5916 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
5917 file and line separately.
5919 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
5921 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
5922 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
5923 "*subdi3_borrow_cconly"): New insns.
5924 ("*addsi3_sub", "*subsi3_sub"): Remove.
5925 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
5926 ("*subsi3_cc"): Fix op_type attribute.
5928 2003-09-28 Richard Henderson <rth@redhat.com>
5930 * stmt.c (expand_asm_operands): Take a location_t, instead of
5931 individual file and line.
5932 * c-typeck.c (c_expand_asm_operands): Likewise.
5933 * tree.h (expand_asm_operands): Update decl.
5934 * c-common.h (c_expand_asm_operands): Likewise.
5935 * c-semantics (genrtl_asm_stmt): Update call.
5937 2003-09-28 Philip Blundell <philb@gnu.org>
5939 * config/arm/arm.c (legitimize_pic_address): Check
5940 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
5941 (arm_assemble_integer): Likewise.
5943 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
5945 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
5946 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
5948 Convert to ISO C90 function declarations and definitions.
5950 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
5952 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
5953 Convert to ISO C90 function declarations and definitions.
5955 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
5957 * config/mips/mips.c (mips_constant_info): Add reloc field.
5958 (mips_classify_constant): Initialize it. Always set SYMBOL to the
5959 underlying symbol, not to an unspec.
5960 (mips_delegitimize_address, print_operand): Clean up accordingly.
5962 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
5964 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
5965 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
5966 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
5967 (mips_classify_constant): Use it.
5968 (mips_splittable_symbol_p): Add an offset argument.
5969 (mips_classify_address): Adjust call accordingly.
5970 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
5971 than a relocation unspec. Update call to mips_splittable_symbol_p.
5972 Generalize the code that copes with symbols + invalid offsets.
5973 (print_operand): Allow '%R' to be applied to small data addresses.
5974 (mips_reloc_string): Remove RELOC_GPREL16.
5975 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
5976 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
5977 relocation operators.
5978 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
5979 constants accordingly.
5981 2003-09-27 Roger Sayle <roger@eyesopen.com>
5983 * toplev.c (flag_evaluation_order): New global variable.
5984 * flags.h (flag_evaluation_order): Prototype here.
5985 * expr.c (expand_operands): If we need to preserve observable
5986 evaluation order, protect exp1 from clobbering exp0's result.
5988 2003-09-28 Andreas Jaeger <aj@suse.de>
5990 * c-decl.c (finish_function): Convert definition to ISO C90.
5991 * ifcvt.c (mark_loop_exit_edges): Likewise.
5992 * ra-rewrite.c (emit_colors): Likewise.
5994 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
5996 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
5997 * config.gcc (arm*-*-uclinux*): Disable fixproto.
5998 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
5999 powerpc-*-eabialtivec*): Disable fixproto.
6001 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
6003 PR optimization/12340
6004 * loop.h (struct induction): Document the new semantics
6005 of the 'same' field for bivs.
6006 * unroll.c (biv_total_increment): Don't count the same
6007 biv increment several times.
6008 (loop_iterations) [GENERAL_INDUCT]: Likewise.
6010 2003-09-27 Graham Stott <graham.stott@btinternet.com>
6012 * unroll.c (loop_interations)[GT]: Add missing break.
6014 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
6016 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
6017 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
6018 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
6019 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
6020 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
6021 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
6022 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
6023 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
6024 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
6025 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
6026 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
6027 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
6028 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
6029 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
6030 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
6031 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
6032 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
6033 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
6034 config/alpha/xm-vms.h, config/arc/arc-modes.def,
6035 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
6036 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
6037 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6038 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
6039 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
6040 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
6041 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
6042 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
6043 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
6044 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
6045 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
6046 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
6047 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
6048 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6049 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
6050 config/i960/i960-c.c, config/i960/i960-coff.h,
6051 config/i960/i960-modes.def, config/i960/i960-protos.h,
6052 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6053 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
6054 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6055 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
6056 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6057 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
6058 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
6059 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
6060 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
6061 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
6062 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
6063 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
6064 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
6065 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
6066 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
6067 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6068 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
6069 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
6070 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
6071 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
6072 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
6073 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
6074 config/mips/vr.h, config/mn10300/linux.h,
6075 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
6076 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
6077 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
6078 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
6079 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
6080 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
6081 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6082 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
6083 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
6084 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
6085 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
6086 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
6087 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
6088 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
6089 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
6090 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
6091 fixinc/fixinc.svr4: GNU CC -> GCC.
6093 2003-09-26 Loren James Rittle <ljrittle@acm.org>
6095 * objc/objc-act.c (tm_p.h): Tweak order.
6096 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
6098 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
6100 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
6101 Include t-slibgcc-elf-ver and t-linux in tmake_file.
6102 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
6104 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
6106 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
6107 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
6109 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
6111 2003-09-26 Loren James Rittle <ljrittle@acm.org>
6113 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
6114 * objc/objc-act.c (tm_p.h): Include.
6116 2003-09-26 Per Bothner <pbothner@apple.com>
6118 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
6119 No longer any need to reverse by recursion.
6121 2003-09-26 Roger Sayle <roger@eyesopen.com>
6122 Richard Henderson <rth@redhat.com>
6124 PR optimization/11741
6125 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
6126 appropriate set to match that in hash_scan_insn. Fall back to
6127 the original copy method, if we can't validate changing insn.
6128 (pre_delete): Only delete instructions that have a single_set,
6129 instead of aborting when we encounter an PARALLEL insn with more
6132 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
6134 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
6135 ("builtin_longjmp"): Insn deleted.
6136 ("save_stack_nonlocal"): Save literal pool base pointer behind
6137 backchain and stack pointer.
6138 ("restore_stack_nonlocal"): Restore literal pool base pointer.
6139 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
6140 the stack save area for the nonlocal goto case.
6142 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6145 * pa.c (output_bvb): Fix typo.
6147 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6149 * expmed.c (store_bit_field): Don't search for an integer mode
6150 unless we need the result.
6152 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6154 * expr.c (emit_move_insn_1): If there is no move pattern for the
6155 original mode, try using a pattern for the corresponding integer mode.
6157 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6160 * combine.c (if_then_else_cond): Tighten mode check.
6162 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6164 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
6165 'struct _cpp_strbuf'.
6167 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
6168 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
6169 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
6170 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
6171 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
6172 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
6173 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
6174 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
6175 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
6176 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
6177 * config/i386/i386-aout.h, config/i386/i386-coff.h,
6178 config/i386/i386-interix.h, config/i386/i386-interix3.h,
6179 config/i386/i386-modes.def, config/i386/i386-protos.h,
6180 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6181 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
6182 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
6183 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
6184 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
6185 "GNU compiler" -> GCC.
6186 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
6187 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
6188 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
6189 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
6190 config/i386/freebsd-aout.h, config/i386/freebsd.h,
6191 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
6193 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
6195 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
6196 "local" to the callgraph dump. Output "after inlining" earlier.
6197 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
6198 callgraph dumps. Correct misspellings.
6199 (cgraph_decide_inlining): Output number of insns before inlining.
6200 Output the calling function into which a function is inlined.
6201 (cgraph_decide_small_functions): Format dump file like always_inline.
6203 2003-09-25 Loren James Rittle <ljrittle@acm.org>
6205 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
6207 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
6209 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
6210 FPR slots in the save area.
6211 (s390_emit_epilogue): Likewise.
6213 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
6215 * cgraph.h (cgraph_remove_edge): Declare.
6216 * cgraph.c (cgraph_remove_edge): Make extern.
6217 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
6218 instead of cgraph_remove_call.
6220 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
6222 * objc/objc-act.c (gen_declaration_1): Fix printf format.
6224 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
6226 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
6229 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6231 * config/darwin-protos.h (objc_image_info_section):
6234 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6236 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
6238 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6240 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
6241 tsc701 as a --with-cpu, --with-tune setting for sparc.
6243 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6245 * c-parse.in (objc_try_stmt): Do not specify a %type.
6247 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6249 * config.gcc: New 'widely ported system' clause for rtems.
6250 Set thread file there, not in individual clauses.
6252 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
6255 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
6256 passed on the stack.
6258 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6260 * config.gcc (widely ported systems section): Mostly alphabetize
6261 by system. Comment the case where we can't.
6262 * config.gcc (widely ported systems section): Reindent and clean up.
6264 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
6265 Actually allow ep9312 as an arm --with-arch setting.
6267 * config.gcc (*-hpux11): Disable fixproto.
6269 2003-09-24 Phil Edwards <phil@codesourcery.com>
6272 * gcc/cppfiles.c (pch_open_file): Return based on combined
6273 result of all files.
6274 (validate_pch): Return validate flag for current file.
6276 2003-09-24 Roger Sayle <roger@eyesopen.com>
6279 * fold-const.c (tree_swap_operands_p): Only reorder operands when
6280 one of the operands is constant.
6282 2003-09-24 Ziemowit Laski <zlaski@apple.com>
6284 MERGE OF objc-improvements-branch into MAINLINE:
6285 * Makefile.in (C_OBJS): Add in stub-objc.o.
6286 (c-parse.y): Change sed demarcations to begin with '@@'.
6287 (stub-objc.o): New rule.
6288 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6289 flag_replace_objc_classes): New flags.
6290 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
6291 RID_AT_SYNCHRONIZED): New keywords.
6292 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6293 flag_replace_objc_classes): New flags.
6294 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
6295 objc_comptypes, objc_message_selector, lookup_objc_ivar,
6296 get_current_scope, objc_mark_locals_volatile): New prototypes,
6297 some moved from c-tree.h.
6298 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
6299 (finish_decl): Adjust where objc_check_decl() gets called.
6300 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
6301 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
6302 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
6303 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
6304 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
6305 '@@end_ifc', respectively.
6306 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
6307 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
6308 objc_finally_block): New rules.
6309 (component_decl_list2): Clean up semantic action for @defs construct.
6310 (component_decl, c99_block_start): Remove call to add_objc_decls().
6311 (poplevel): Add call to objc_clear_super_receiver().
6312 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
6314 (classdef, methodprotolist): Clean up/simplify.
6315 (methodprotolist2): Eliminate.
6316 (methodproto): Call add_method() instead of add_class_method() and
6317 add_instance_method().
6318 (receiver): Add TYPENAME production.
6319 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
6320 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
6322 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
6323 objc_comptypes, objc_message_selector)
6324 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
6325 struct and pointer types.
6326 (build_c_cast): Do not discard ObjC protocol qualifiers.
6327 (convert_for_assignment): Cache result of comp_target_types() instead
6328 of calling it more than once.
6329 * c.opt (fnext-runtime): Update description string.
6330 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
6331 New ObjC/ObjC++-specific flags.
6332 * function.h (GCC_FUNCTION_H): Header guard.
6333 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
6334 * stub-objc.c: New file, to be used to satisfy references to ObjC
6335 functions by the C and C++ front-ends.
6336 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
6337 * config/darwin.h (FUNCTION): Add in_objc_image_info.
6338 (SECTION_FUNCTION): Add objc_image_info_section.
6339 * doc/invoke.texi: Link to GCC web site for Objective-C information.
6340 (-fconstant-string-class): Update documentation.
6341 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
6342 -fzero-link): New documentation.
6343 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
6345 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
6346 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
6347 throughout; provide casts for return values from memory allocation
6348 functions (xmalloc, alloca, ggc_alloc, etc.).
6349 (OBJC_VOID_AT_END): New macro.
6350 (rtl.h): Do not #include any more.
6351 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
6352 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
6353 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
6354 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
6355 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
6356 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
6357 val_stack_pop): New.
6358 (objc_check_decl): Fix precondition for error message, along with
6360 (lookup_and_install_protocols): Remove nonexistent protocols from
6361 protocol list instead of returning error_mark_node.
6362 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
6363 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
6364 (synth_module_prologue): General clean-up; construct NeXT-specific
6365 runtime API prototypes if needed.
6366 (build_string_class_template): Remove.
6367 (check_string_class_template, string_layout_checked): New.
6368 (build_objc_string_object): Generalize to work with
6369 -fconstant-string-class.
6370 (build_objc_symtab_template): Fix layout for the NeXT runtime.
6371 (build_metadata_decl): New.
6372 (forward_declare_categories): Call build_metadata_decl() instead of
6373 create_builtin_decl() et al.
6374 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
6376 (build_selector_reference_decl, build_class_reference_decl,
6377 build_objc_string_decl): Do not set TREE_READONLY.
6378 (get_proto_encoding): Do not call hack_method_prototype().
6379 (get_class_reference): Add failure mode for invalid class names;
6380 support -fzero-link; defer if in an ObjC++ template declaration.
6381 (objc_declare_alias, objc_declare_class): Fix up duplicate name
6382 lookup; check for global scope if in ObjC++.
6383 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
6384 RECORD_TYPE, IDENTIFIER_NODE, etc.)
6385 (objc_is_id): Removed.
6386 (objc_is_object_ptr): New function.
6387 (get_class_ivars_from_name): New function, used for @defs construct.
6388 (get_class_ivars): Add option to return raw ivars; create a
6389 ClASS_OWN_IVARS list for each class as needed.
6390 (objc_enter_block, objc_exit_block, objc_declare_variable,
6391 objc_build_throw_stmt, val_stack_push, val_stack_pop,
6392 objc_build_try_enter_fragment, objc_build_extract_expr,
6393 objc_build_try_exit_fragment, objc_build_extract_fragment,
6394 objc_build_try_prologue, objc_build_try_epilogue,
6395 objc_build_catch_stmt, objc_build_catch_epilogue,
6396 objc_build_finally_prologue, objc_build_finally_epilogue,
6397 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
6398 objc_build_synchronized_epilogue, build_objc_exception_stuff):
6400 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
6402 (build_private_template): Fix up calls to get_class_ivars().
6403 (offset_is_register, forwarding_offset): Remove.
6404 (objc_method_parm_type, objc_encoded_type_size): New functions.
6405 (encode_method_prototype): Simplify to no longer depend on
6406 back-end information.
6407 (build_tmp_function_decl_xxx, build_tmp_function_decl,
6408 hack_method_prototype): Removed.
6409 (generate_protocol_references): Remove calls to
6410 build_tmp_function_decl().
6411 (generate_protocols): Adjust calls to encode_method_prototype().
6412 (build_class_template): Generate sel_id' and 'gc_object_type' fields
6413 for the NeXT runtime.
6414 (synth_forward_declarations): Call build_metadata_decl().
6415 (check_ivars): Check that the number of ivars matches also.
6416 (build_super_template): Modify super_type directly; disable debugging
6417 output while generating decl.
6418 (build_ivar_list_initializer): Skip list elements that are not
6420 (ivar_list_length): New function.
6421 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
6422 and encode_method_prototype() instead of encode_method_def().
6423 (build_shared_structure_initializer): Generate 'sel_id' field for
6425 (generate_category): Do not set TREE_USED.
6426 (build_keyword_selector): Ditto; transform into a function argument
6428 (get_arg_type_list): If there are no user-specified arguments, use
6429 '...'; use OBJC_VOID_AT_END.
6430 (check_duplicates): Add a parameter indicating whether methods or
6431 selectors are being checked.
6432 (receiver_is_class_object): Add parameters indicating whether
6433 receiver is 'self' or 'super'; robustify.
6434 (build_message_expr): Defer call to finish_message_expr() if
6435 inside an ObjC++ template.
6436 (lookup_method_in_hash_lists): New function.
6437 (finish_message_expr): Complete rewrite/fix.
6438 (build_objc_method_call): Ditto; factor out commonalities between
6439 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
6440 messenger variants on the NeXT.
6441 (lookup_instance_method_static, lookup_class_method_static):
6442 Fold into a single lookup_method_static() function with an
6443 additional parameter.
6444 (add_class_method, add_instance_method): Fold into a single
6445 add_method() function with an additional parameter.
6446 (add_category): Make duplicate categories a hard error in ObjC++.
6447 (add_instance_variable): Properly handle unnamed ivars, arrays of
6448 zero or no size and bitfields. In ObjC++, check for nontrivial
6449 C++ class instances.
6450 (is_public): Allow C functions to access non-@public ivars, with
6452 (start_class): Move common initializations to
6453 synth_module_prologue(); check for global scope if in ObjC++.
6454 (continue_class): Fix calls to finish_struct().
6455 (objc_declare_protocols, start_protocol): Check for global scope
6457 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
6458 (encode_aggregate_within): Rewrite to properly distinguish
6459 struct tags from typedefs in both ObjC and ObjC++.
6460 (encode_bitfield, encode_complete_bitfield): Remove.
6461 (encode_next_bitfield, encode_gnu_bitfield): New functions.
6462 (encode_field_decl): Call encode_next_bitfield() or
6463 encode_gnu_bitfield() as needed.
6464 (synth_self_and_ucmd_args): New function.
6465 (start_method_def): Use it.
6466 (objc_types_are_equivalent): New function.
6467 (comp_proto_with_proto): Use it instead of comptypes(), since
6469 (really_start_method): Use lookup_method_static() instead of
6470 lookup_class_method_static() and lookup_instance_method_static();
6471 Emit 'extern "C"' if in ObjC++ mode.
6472 (add_objc_decls): Removed.
6473 (UOBJC_SUPER_scope): New variable.
6474 (get_super_receiver): Move construction of 'super' from
6475 add_objc_decls(); remove dependency on struct objc_class.
6476 (encode_method_def): Removed; encode_method_prototype() is
6478 (objc_clear_super_receiver): New function.
6479 (objc_expand_function_end): Do not do anything for ordinary
6481 (finish_method_def): Mark ObjC methods as un-inlinable.
6482 (gen_declaration_1): Emit widths of bitfields.
6483 (finish_objc): Call generate_objc_image_info() if needed;
6484 use check_duplicates() when checking for selector duplicates.
6485 (generate_objc_image_info): New function.
6486 * objc/objc-act.h (add_instance_method, add_class_method,
6487 get_class_ivars): Remove prototypes.
6488 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
6489 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
6490 objc_build_catch_stmt, objc_build_catch_epilogue,
6491 objc_build_finally_prologue, objc_build_finally_epilogue,
6492 add_method, get_class_ivars_from_name): New prototypes.
6493 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
6494 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
6495 TRANSLATION_UNIT_DECLs.
6496 (OBJC_TYPE_NAME): New.
6497 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
6499 (IS_SUPER): Robustify.
6500 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
6501 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
6502 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
6503 objc_exception_match_decl, objc_exception_throw_decl,
6504 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
6505 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
6506 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
6507 objc_catch_type): New ObjC/ObjC++ roots.
6508 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
6509 ObjC/ObjC++ tree node codes.
6511 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
6513 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
6514 code path that calls a handler.
6516 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
6518 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
6521 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
6522 the section giving $with_cpu defaults by target.
6524 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
6525 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
6526 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
6527 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
6528 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
6529 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
6531 2003-09-24 David Edelsohn <edelsohn@gnu.org>
6533 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
6534 together. Protect load string instruction with TARGET_STRING.
6535 (movti_string): Collapse case 1 and 2 together.
6537 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
6539 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
6541 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
6543 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
6546 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
6548 * config.gcc: Move use_fixproto=no from generic vxworks clause to
6551 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
6552 (accidentally missed in last pass).
6554 2003-09-23 Andrew Pinski <apinski@apple.com>
6557 * configure: Regenerate.
6559 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
6561 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
6562 missed in last pass).
6564 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
6566 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
6569 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
6571 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
6573 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
6574 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
6575 powerpcle-*-eabi*): Disable fixproto.
6577 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
6578 specific FreeBSD clauses.
6579 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
6580 specific NetBSD clauses.
6581 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
6582 to specific OpenBSD clauses.
6584 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6586 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
6587 without adding a frame note.
6588 * pa.md (allocate_stack): Save pic register in new frame marker when
6589 generating pic code.
6591 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
6593 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
6594 cgraph_expand_functions.
6596 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6598 * Makefile.in (gnucompare*): Merge into ...
6599 (slowcompare*): ... here.
6600 (fastcompare*): New targets.
6601 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
6602 other "fast" cmp programs.
6603 * configure: Regenerate.
6605 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6607 * targhooks.c: Include output.h.
6608 * Makefile.in (targhooks.o): Add output.h to dependency list.
6610 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6612 * config.host: Removed superfluous newline.
6614 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
6616 * config.gcc: Use ${target}, not $machine.
6617 * configure.in: Don't set $machine.
6618 * configure: Regenerate.
6620 2003-09-23 Geoffrey Keating <geoffk@apple.com>
6622 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
6624 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
6625 pass zero-size arrays by reference.
6626 (rs6000_va_arg): Likewise.
6628 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
6630 * config.gcc: Set use_fixproto=no in each specific *-gnu*
6631 configuration, rather than the generic one.
6633 2003-09-23 Richard Henderson <rth@redhat.com>
6635 * tree-inline.c (remap_save_expr): Map new save_expr to identity
6636 rather than to error_mark_node.
6638 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6640 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
6642 * configure: Regenerate.
6643 * config.in: Likewise.
6644 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
6645 HAVE_GAS_SHF_MERGE value.
6646 * varasm.c (mergeable_string_section): Likewise.
6647 (mergeable_constant_section): Likewise.
6649 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6651 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
6654 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6656 * target.h (struct gcc_target): New member external_libcall.
6657 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
6658 (TARGET_ASM_OUT): Use it.
6659 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
6660 * targhooks.c: Convert to ISO C 90.
6661 (default_external_libcall): New function.
6662 * targhooks.h (default_external_libcall): Declare.
6663 * varasm.c (assemble_external_libcall): Use
6664 targetm.asm_out.external_libcall instead of
6665 ASM_OUTPUT_EXTERNAL_LIBCALL.
6666 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
6667 (mips_output_external_libcall): Declare.
6668 * config/mips/mips.c (mips_output_external_libcall): Change
6670 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
6671 Only operate for O32 ABI.
6672 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
6673 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
6674 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
6675 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
6677 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
6679 * config.gcc: Do per-target disabling of fixproto here in clauses,
6680 not in t- fragments.
6681 * configure.in: Adjust to set STMP_FIXPROTO correctly.
6682 * configure: Regenerate.
6683 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
6684 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
6685 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
6686 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
6687 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
6688 t-interix, t-linux-aout: Delete files consisting only of
6689 setting of STMP_FIXPROTO.
6691 * config.host: Allow unknown hosts (not targets). Allow
6692 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
6693 empty clauses. Remove useless obsolete-configuration clause.
6694 Prune unsupported configuration list. Collapse identical
6695 clauses for closely related systems. Rewrite comment for
6696 unsupported hosts list. Reorganize a little.
6698 2003-09-22 Richard Henderson <rth@redhat.com>
6700 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
6703 2003-09-22 David Edelsohn <edelsohn@gnu.org>
6704 Hartmut Penner <hpenner@de.ibm.com>
6705 Segher Boessenkool <boessen@de.ibm.com>
6707 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
6708 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
6709 (rs6000_split_altivec_in_gprs): Rename to ...
6710 (rs6000_split_multireg_move): Add support for update addressing.
6711 * config/rs6000/rs6000-protos.h: Same.
6712 * config/rs6000/altivec.md: Same.
6713 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
6715 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
6716 (movti_power): Use new splitter for multiple GPRs.
6717 (movti_string): Same.
6718 (movti_ppc64): Same.
6720 2003-09-22 Bob Wilson <bob.wilson@acm.org>
6722 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
6723 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
6725 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
6727 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
6728 (andsi3): Set attr cc to set_zn when using shifts or adds.
6730 2003-09-22 Bernardo Innocenti <bernie@develer.com>
6732 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
6734 2003-09-22 Bernardo Innocenti <bernie@develer.com>
6736 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
6737 Resurrect -mrtd option.
6739 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
6742 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
6743 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
6745 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
6748 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
6749 after potential deletion of trapping insn. Avoids later ICE
6750 from call to fixup_abnormal_edges.
6751 (convert_regs_2): Stack the current block successors before
6752 processing this block, that is, before the potential deletion of
6753 dead edges by convert_regs_1, because these edges have been used
6754 to initialize the predecessors count.
6756 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6758 * real.c: Fix several nits in the head comment.
6760 2003-09-21 Richard Henderson <rth@redhat.com>
6762 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6763 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6764 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6765 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6766 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
6768 2003-09-21 Richard Henderson <rth@redhat.com>
6770 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
6771 (TREE_FILENAME, TREE_LINENO): Likewise.
6772 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
6773 (TREE_LOCUS_SET_P): New.
6774 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6775 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6776 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6777 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6778 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
6780 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
6782 * config/vax/vax-protos.h: Convert to ISO C90.
6783 * config/vax/vax.c: Convert to ISO C90.
6785 2003-09-21 Graham Stott <grahams@btinternet.com>
6788 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
6790 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
6793 * reorg.c (stop_search_p): Return 1 for insns that can
6796 2003-09-20 Richard Henderson <rth@redhat.com>
6798 * c-format.c (gcc_diag_char_table): Add %J.
6799 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
6800 (check_format_types): Fix wanted_type name lookup.
6801 (init_dynamic_diag_info): Setup %J.
6802 * diagnostic.c (text_specifies_location): Implement %J.
6803 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
6804 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
6805 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
6806 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
6807 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
6809 * tree-inline.c: Include intl.h
6810 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
6811 * Makefile.in (tree-inline.o): Update.
6813 2003-09-20 Roger Sayle <roger@eyesopen.com>
6815 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
6816 transformation of a>=0 into (unsigned)a<0x80000000.
6818 2003-09-20 Andrew Pinski <apinski@apple.com>
6820 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
6822 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
6824 * Makefile.in: Don't set (unused) DLLTOOL.
6826 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
6827 Remove obsolete references to ENQUIRE.
6829 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
6831 * configure.in: Remove --with-elf, which doesn't work.
6832 * configure: Regenerate.
6833 * config.gcc: Remove references to $elf, which does nothing.
6835 * config/i386/xm-vsta.h: Remove xm-file believed useless.
6836 * config.build (i386-vsta): Remove reference to it.
6837 * config.host (i386-vsta): Remove reference to it.
6839 2003-09-19 Phil Edwards <phil@codesourcery.com>
6841 * doc/install.texi: Document the multiple testsuite options.
6843 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
6845 * doc/install.texi (Specific): Add the specific versions of GCC
6846 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
6847 version 3 and older was discontinued.
6849 2003-09-19 Joel Sherrill <joel@oarcorp.com>
6851 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
6854 2003-09-19 Bernardo Innocenti <bernie@develer.com>
6856 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
6857 for -m68030, -m68020-60 and -m68020-40.
6858 * config/m68k/m68k.h (TARGET_68030): New target flag.
6859 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
6860 TARGET_REGPARM): Remove.
6861 * config/m68k/m68k.h: Regroup and renumber target flags.
6862 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
6863 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
6864 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
6865 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
6866 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
6868 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6870 * config/m68k/t-rtems (m68k-*-rtems*): New.
6871 * config.gcc: Use config/m68k/t-rtems.
6873 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6875 * config/mips/t-rtems: New.
6876 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
6878 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
6880 * cgraph.c: Fix typo in debugging output.
6882 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6883 Eric Botcazou <ebotcazou@libertysurf.fr>
6886 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
6888 2003-09-18 Mike Stump <mrs@apple.com>
6890 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
6891 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
6892 cb_ident, cb_def_pragma): Use fileline typedef.
6893 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
6895 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
6897 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
6898 total parm size if a parm has incomplete type.
6899 (gen_fastcall_suffix): Likewise.
6901 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6903 * except.c (output_function_exception_table): Adjust last change
6904 to handle TYPE of INTEGER_CST.
6906 2003-09-18 Mark Mitchell <mark@codesourcery.com>
6909 * builtins.c (expand_builtin_apply): Use convert_memory_address
6910 before returning the value.
6912 * alias.c (find_base_value): Simplify use of
6913 convert_memory_address.
6914 (find_base_term): Likewise.
6915 * builtins.c (expand_builtin_stejmp_setup): Likewise.
6916 (expand_builtin_longjmp): Likewise.
6917 (expand_builtin_prefetch): Likewise.
6918 (get_memory_rtx): Likewise.
6919 (expand_builtin_return): Likewise.
6920 (expand_builtin_memcpy): Likewise.
6921 (expand_builtin_strncpy): Likewise.
6922 (expand_builtin_memset): Likewise.
6923 (expand_builtin_va_arg): Likewise.
6924 (expand_builtin_va_copy): Likewise.
6925 (expand_builtin_alloca): Likewise.
6926 * calls.c (expand_call): Likewise.
6927 * except.c (expand_builtin_extract_return_addr): Likewise.
6928 (expand_builtin_eh_return): Likewise.
6929 * explow.c (convert_memory_address): Define even when
6930 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
6931 is already in the right mode.
6932 * explow.c (memory_address): Simplify use of convert_memory_address.
6933 (probe_stack_range): Likewise.
6934 * expmed.c (make_tree): Likewise.
6935 * expr.c (emit_block_move_in_libcall): Likewise.
6936 (expand_assignment): Likewise.
6937 (expand_expr): Likewise.
6938 * function.c (assign_parms): Likewise.
6939 (expand_function_end): Likewise.
6940 * integrate.c (copy_rtx_and_substitute): Likewise.
6941 * stmt.c (expand_computed_goto): Likewise.
6943 2003-09-18 Roger Sayle <roger@eyesopen.com>
6945 * simplify-rtx.c (simplify_unary_operation): Only transform
6946 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
6947 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
6949 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6952 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
6954 2003-09-18 Roger Sayle <roger@eyesopen.com>
6956 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
6957 PARITY_EXPR): Delete unused tree codes.
6958 * c-common.c (c_common_truthvalue_conversion): Delete references
6959 to FFS_EXPR and POPCOUNT_EXPR.
6960 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
6961 (pp_c_expression): Likewise.
6962 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
6963 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
6964 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
6965 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
6966 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
6967 and long long variants.
6969 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
6971 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
6972 * c-pretty-print.c: Fix formatting.
6973 (pp_c_integer_constant): Append type annotation to literals. Tidy.
6974 (pp_c_type_specifier): Tidy.
6975 (pp_c_compound_literal): New function.
6976 (pp_c_initializer): Simplify..
6977 (pp_c_initializer_list): Likewise.
6978 (pp_c_brace_enclosed_initializer_list): New function.
6979 (pp_c_postfix_expression): Simplify.
6981 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
6983 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
6984 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
6986 2003-09-17 Richard Henderson <rth@redhat.com>
6988 * tree-optimize.c (tree_rest_of_compilation): Save and restore
6991 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
6993 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
6995 2003-09-17 Richard Henderson <rth@redhat.com>
6997 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
6999 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7001 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
7002 * configure: Regenerate.
7004 2003-09-17 Mark Mitchell <mark@codesourcery.com>
7007 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
7008 * langhooks-def.h (lhd_return_null_tree_v): New function.
7009 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
7010 (LANG_HOOKS_DECLS): Add it to the intializer.
7011 * langhooks.c (lhd_return_null_tree_v): New function.
7012 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
7014 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7016 * configure.in: Quote gcc_config_arguments for configargs.h.
7017 * configure: Regenerated.
7018 * gccbug.in: Don't shell-expand gcc_config_arguments.
7020 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
7023 * c-pretty-print.c (pp_c_floating_constant): Append
7024 type-annotation to floating constants.
7026 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7028 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
7030 Use it for _MIPS_SIM.
7031 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
7033 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
7035 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
7037 Fixes PR target/10190.
7039 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7041 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
7042 to shared libraries.
7044 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
7046 PR optimization/11646
7047 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
7048 EDGE_ABNORMAL flag for EH edges.
7049 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
7050 if dead edges were purged.
7052 2003-09-16 Bernardo Innocenti <bernie@develer.com>
7054 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
7055 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
7056 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
7057 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
7059 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
7061 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
7062 returned by tablejump_p.
7064 2003-09-16 Joel Brobecker <brobecker@gnat.com>
7066 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
7068 2003-09-16 Roger Sayle <roger@eyesopen.com>
7071 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
7072 argument to be VOIDmode, taking the mode of the comparison from
7073 the operands. Only call simplify_relational_operation if we
7074 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
7075 if comparison has a floating point result. Ensure that the
7076 result is always of the specified mode.
7077 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
7078 (simplify_unary_operation): Ensure the correct mode and cmp_mode
7079 are always passed to simplify_gen_relational. Simplify NOT of
7080 comparison operator in any mode, not just BImode.
7081 (simplify_ternary_operation): Correct tests on the return value
7082 of simplify_relational_operation to use const_true_rtx, not
7083 const1_rtx. Abort if it ever returns a non-constant result.
7085 * cfgloopanal.c (count_strange_loop_iterations): Use the function
7086 simplify_relational_operation, not simplify_gen_relational, if
7087 we're only interested in constant comparisons and will ignore
7088 non-constant results.
7090 2003-09-16 Roger Sayle <roger@eyesopen.com>
7092 * fold-const.c (tree_swap_operands_p): New function to determine
7093 the prefered ordering of operands.
7094 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
7095 operands to commutative, comparison or ternary operators. Replace
7096 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
7097 transformation of A ? B : C into !A ? C : B.
7099 2003-09-16 Jakub Jelinek <jakub@redhat.com>
7101 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7102 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7103 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7104 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7105 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7106 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7107 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7108 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7110 2003-09-16 Jason Merrill <jason@redhat.com>
7111 Jakub Jelinek <jakub@redhat.com>
7113 * c-common.c (handle_warn_unused_result_attribute): New function.
7114 (c_common_attribute_table): Add warn_unused_result.
7115 (c_expand_expr): Issue warning when result of inlined function
7116 with warn_unused_result attribute is ignored.
7117 * calls.c (expand_call): Issue warning when result of function
7118 with warn_unused_result attribute is ignored.
7119 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
7120 * expr.c (expr_wfl_stack): Define.
7121 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
7122 pass const0_rtx as target. Chain locations into expr_wfl_stack.
7123 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
7124 bit if inlined function has warn_unused_result attribute.
7125 * input.h (expr_wfl_stack): Declare.
7126 * doc/extend.texi: Document warn_unused_result attribute.
7128 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
7130 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
7132 2003-09-15 Bob Wilson <bob.wilson@acm.org>
7134 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
7136 (call_insn_operand): For PIC, don't allow a direct call to a
7137 function in a different section than the current one.
7139 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7141 * doc/invoke.texi (Warning Options): Add missing hyphen before
7142 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
7143 Move "-Wold-style-definition" to the C-only section.
7144 Fix the ordering of the warning options.
7146 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7147 Jeff Law <law@redhat.com>
7149 * gcse.c (remove_reachable_equiv_notes): New.
7150 replace_store_insn): Call it. Update antic list.
7151 (store_killed_in_insn): Take REG_EQUAL notes into account.
7152 (build_store_vectors, delete_store): Add parameter to
7153 replace_store_insn call.
7155 2003-09-15 Bob Wilson <bob.wilson@acm.org>
7157 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
7160 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
7162 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
7163 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
7164 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
7166 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
7168 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
7169 * config/sparc/sparc.c (function_arg_padding): Likewise.
7171 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
7173 * haifa-sched.c (schedule_block): Use ready_remove_first instead
7174 of choose_ready for non-dfa insn scheduling.
7176 2003-09-15 Andreas Jaeger <aj@suse.de>
7177 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7179 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
7180 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
7181 * c-parse.in: Warn about old-style parameter definition.
7182 * c-common.c: Define warn_old_style_defintion.
7183 * c-common.h: Declare it.
7184 * c.opt: Add Wold-style-defintion.
7186 2003-09-15 Andreas Jaeger <aj@suse.de>
7188 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
7189 * config/rs6000/rs6000.c: Likewise.
7191 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7193 PR optimization/10914
7194 * expr.h (get_condition, canonicalize_condition): Declaration changed.
7195 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
7196 and canonicalize_condition calls.
7197 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
7198 delete_null_pointer_checks): Ditto.
7199 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
7200 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
7201 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
7202 (canonicalize_condition, get_condition): Allow to return comparisons
7203 of cc mode registers.
7204 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
7205 cc mode registers comparison in condition.
7207 2003-09-12 Mark Mitchell <mark@codesourcery.com>
7209 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
7210 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
7212 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
7214 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
7216 * combine.c (simplify_comparison): Convert
7217 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
7218 (eq (and (lshiftrt X Y) 1) 0).
7220 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
7222 * alias.c: Follow spelling conventions.
7223 * cpphash.h: Likewise.
7224 * fold-const.c: Likewise.
7226 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
7228 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
7229 * c-lex.c (cb_line_change): Skip line changing whenever
7232 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
7234 * ra.c: Convert to ISO C90 prototypes.
7235 * ra-build.c: Likewise.
7236 * ra-colorize.c: Likewise.
7237 * ra-debug.c: Likewise.
7238 * ra-rewrite.c: Likewise.
7240 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
7242 * Makefile.in (%.dvi): Remove excess $(docdir).
7244 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
7246 * function.c (STACK_BYTES): Move definition to head of file.
7247 (assign_parms): Don't pass current_function_pretend_args_size
7248 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
7249 round current_function_pretend_args_size up to STACK_BYTES. Skip any
7250 excess before laying out the argument.
7252 2003-09-14 Andreas Jaeger <aj@suse.de>
7254 * objc/objc-act.c: Convert to ISO C90 prototypes.
7255 * objc/objc-act.h: Likewise.
7257 2003-09-14 Olaf Hering <olh@suse.de>
7259 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
7261 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
7264 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
7265 as they already are done in config/m68k/m68k.h.
7266 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
7268 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
7269 (machopic_output_stub): Only generate pic base symbols when using pic
7270 and generate them in the form L00000000$spb.
7272 2003-09-13 Richard Henderson <rth@redhat.com>
7274 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
7275 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
7278 2003-09-12 Dale Johannesen <dalej@apple.com>
7280 * config/rs6000/rs6000.c: Fix typos in previous.
7282 2003-09-12 Ziemowit Laski <zlaski@apple.com>
7284 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
7285 when allocating pp->buffer.
7287 2003-09-12 Geoffrey Keating <geoffk@apple.com>
7289 * config/darwin.c (machopic_select_rtx_section): Use
7290 const_data_section for things that might require relocation.
7292 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
7295 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
7297 2003-09-12 Bob Wilson <bob.wilson@acm.org>
7299 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
7300 * config/xtensa/linux.h (ASM_SPEC): Likewise.
7301 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
7302 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
7303 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
7304 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
7305 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
7306 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
7307 and redefine corresponding TARGET_* macros with constants from the
7308 xtensa-config.h header.
7309 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
7310 for the options listed above.
7312 2003-09-12 Dale Johannesen <dalej@apple.com>
7314 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
7315 * config/rs6000/rs6000-c.c: Ditto.
7316 * config/rs6000/rs6000.c: Ditto.
7317 * config/rs6000/ sysv4.h: Ditto.
7319 2003-09-12 Chris Lattner <sabre@nondot.org>
7321 * loop.c: Move comments describing BIV's and GIV's to top of file
7323 2003-09-12 Roger Sayle <roger@eyesopen.com>
7325 PR optimization/8967
7326 * alias.c (write_dependence_p): Modify to take an additional constp
7327 argument that controls whether the UNCHANGING_RTX_P flags are used.
7328 (anti_dependence, output_dependence): Adjust write_dependence_p
7329 callers to pass this additional argument, to return the same result.
7330 (unchanging_anti_dependence): New variant of anti_dependence that
7331 ignores the UNCHANGING_RTX_P property on memory references.
7332 * rtl.h (unchaning_anti_dependence): Prototype here.
7333 * flow.c (init_propagate_block): Place fake constant mem writes on
7334 the mem_set_list so that dead writes to const variables are deleted.
7335 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
7336 (mark_used_regs): Likewise.
7338 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
7340 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
7341 (mcore_secondary_reload_class): Declare.
7342 (mcore_output_inline_const_forced): Remove.
7343 * config/mcore/mcore.md (movsi): Remove the code that forced
7344 non-inlineable constants into a register if the target was r15
7345 or the stack pointer. Remove constant restrictions from the main
7346 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
7347 of an r <- P alternative. Remove fallback define_insn for reload.
7348 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
7349 define_insn. Use mcore_output_move in the remaining define_insn.
7350 Adjust condition and constraints in the way as for movsi.
7351 (movdi): Always split unacceptable constants into two. Use
7352 simplify_gen_subreg instead of operand_subword{,_force}.
7353 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
7354 (mcore_output_move): Support HImode and QImode moves as well.
7355 (mcore_m15_operand_p): New function.
7356 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
7357 (mcore_secondary_reload_class): New function.
7358 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
7359 terms of mcore_secondary_reload_class.
7361 2003-09-11 Mike Stump <mrs@apple.com>
7363 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
7365 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7367 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
7368 MODE exactly, then only convert logN(N) -> 1.0 if
7369 flag_unsafe_math_optimizations is set.
7371 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
7372 init_builtin_dconsts): Delete.
7373 * emit-rtl.c (dconstpi, dconste): Define.
7374 (init_emit_once): Initialize dconstpi & dconste.
7375 * real.h (dconstpi, dconste): Declare.
7377 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
7380 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
7381 for ultimate origin even if block is abstract.
7383 2003-09-11 Roger Sayle <roger@eyesopen.com>
7385 * combine.c (combine_simplify_rtx): Move several NOT and NEG
7386 optimizations from here...
7387 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
7388 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
7390 2003-09-11 Richard Henderson <rth@redhat.com>
7392 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
7393 Tweek tests for function already generated.
7394 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
7395 * cgraph.h (cgraph_finalize_function): Update for extra arg.
7396 * c-decl.c (finish_function): Likewise.
7398 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
7400 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
7402 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
7404 * real.c: Update URL to VAX floating point docs.
7405 (decode_vax_d): Extract 8 exponent bits instead of 7.
7407 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
7409 * combine.c (force_to_mode): Set fuller_mask based only on mask,
7412 2003-09-11 Jan Hubicka <jh@suse.cz>
7414 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
7415 on why function is not inlinable; do not check
7417 (inline_forbidden_p): Move to...
7418 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
7419 deal with alloca, longjmp.
7420 (inline_forbidden_p): New static function.
7421 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
7422 find_builtin_longjmp_call): Kill.
7424 2003-09-10 Richard Henderson <rth@redhat.com>
7426 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
7427 * cgraphunit.c: Update to match.
7428 (record_call_1): Rearrange. Call lang hook for language nodes.
7429 (cgraph_analyze_function): Don't call lower_function.
7430 * langhooks.h (struct lang_hooks_for_callgraph): Replace
7431 lower_function with analyze_expr.
7432 * langhooks-def.h: Update to match.
7433 * langhooks.c (lhd_callgraph_analyze_expr): New.
7435 2003-09-10 Martin Husemann <martin@duskware.de>
7438 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
7439 constants greater than 63.
7440 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
7441 against constants greater than 31.
7442 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
7443 constants greater than 63.
7445 2003-09-09 Richard Henderson <rth@redhat.com>
7447 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
7448 * cgraph.h (cgraph_finalize_function): Update.
7449 * c-decl.c (finish_function): Update.
7451 2003-09-09 Devang Patel <dpatel@apple.com>
7453 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
7454 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
7456 2003-09-09 Eric Christopher <echristo@redhat.com>
7458 * configure.in: Change usage of 'head' to 'sed 1q'.
7459 * configure: Regenerate.
7461 2003-09-09 Richard Henderson <rth@redhat.com>
7463 * except.c: Include cgraph.h.
7464 (output_function_exception_table): Invoke
7465 cgraph_varpool_mark_needed_node.
7466 * Makefile.in (except.o): Update.
7468 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
7470 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
7471 and use it throughout.
7473 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7475 * builtins.c (real_dconstp, fold_builtin_logarithm,
7476 fold_builtin_exponent): New, split out from fold_builtin. Also
7477 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
7478 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
7479 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
7480 of hardcoded array size.
7481 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
7482 (tree_expr_nonnegative_p): Likewise.
7483 * real.h (dconst3, dconst10, dconstthird): New.
7485 2003-09-09 Jan Hubicka <jh@suse.cz>
7487 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
7489 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
7492 2003-09-09 Roger Sayle <roger@eyesopen.com>
7494 * builtins.c (fold_builtin_cabs): Protect the complex argument
7495 against multiple evaluation when optimizing cabs* into sqrt*.
7497 2003-09-09 Jan Hubicka <jh@suse.cz>
7499 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
7501 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
7503 * Makefile.in: Revert yesterday's change.
7505 2003-09-08 Bernardo Innocenti <bernie@develer.com>
7506 Peter Barada <peter@baradas.org>
7508 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
7509 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
7510 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
7511 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
7512 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
7513 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
7514 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
7515 (m68k_compute_frame_layout): New function.
7516 (m68k_initial_elimination_offset): New function.
7517 (m68k_output_function_prologue): ColdFire-specific movem handling.
7518 (m68k_output_function_epilogue): Likewise.
7519 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
7520 (ARG_POINTER_REGNUM): Add new definition.
7521 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
7522 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
7523 (CAN_ELIMINATE): Likewise.
7524 (INITIAL_ELIMINATION_OFFSET): Likewise.
7526 2003-09-08 Bernardo Innocenti <bernie@develer.com>
7528 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
7529 by removing redundant variable cfa_store_offset.
7531 2003-09-08 Mark Mitchell <mark@codesourcery.com>
7533 * langhooks-def.h (lhd_register_builtin_type): New function.
7534 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
7535 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
7536 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
7537 * langhooks.c (lhd_register_builtin_type): New function.
7538 * c-common.h (c_register_builtin_type): Declare.
7539 * c-common.c (c_register_builtin_type): New function.
7540 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
7541 c_register_builtin_type.
7542 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
7543 __float80, and __float128 macros.
7544 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
7545 __float80, and __float128 types.
7547 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7550 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
7551 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
7552 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
7553 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
7554 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
7555 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
7556 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
7557 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
7558 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
7559 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
7560 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
7561 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
7562 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
7563 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
7564 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
7565 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
7566 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
7568 * doc/extend.texi: Document new builtins.
7570 2003-09-09 Jan Hubicka <jh@suse.cz>
7572 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
7574 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
7575 functions, check for COMDAT.
7576 (cgraph_assemble_pending_functions): Break out from...
7577 (cgraph_finalize_function): ... here; allow redefinig of extern inline
7579 (record_call_1): Record function references only in non-unit-at-a-time
7581 (cgraph_analyze_function): Reset current_function_decl.
7582 (cgraph_finalize_compilation_unit): Assemble pending functions.
7584 2003-09-08 Mark Mitchell <mark@codesourcery.com>
7586 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
7587 (libgov.a): Likewise.
7588 (libgcc_eh.a): Likewise.
7590 2003-09-08 Roger Sayle <roger@eyesopen.com>
7592 * fold-const.c (operand_equal_p): Clarify documentation.
7594 2003-09-08 Richard Henderson <rth@redhat.com>
7596 * c-decl.c (c_expand_body_1): Push and pop function context here.
7597 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
7598 nested argument instead of computing nesting ourselves.
7600 2003-09-08 Jakub Jelinek <jakub@redhat.com>
7602 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
7603 regstack if optimizing but not scheduling after reload.
7605 2003-09-08 Jakub Jelinek <jakub@redhat.com>
7607 * config/sparc/sparc.c (struct machine_function): New type.
7608 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7609 (sparc_override_options): Initialize init_machine_status.
7610 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
7611 tie_symbolic_operand, tle_symbolic_operand): New functions.
7612 (symbolic_operand): Disallow tls_symbolic_operand.
7613 (symbolic_memory_operand): Likewise.
7614 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
7615 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
7617 (sparc_tls_symbol): New variable.
7618 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
7619 legitimize_address): New functions.
7620 (print_operand): Handle %&.
7621 (sparc_init_machine_status, get_some_local_dynamic_name,
7622 get_some_local_dynamic_name_1): New functions.
7623 (sparc_output_dwarf_dtprel): New function.
7624 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
7626 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
7627 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
7628 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
7629 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
7630 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7631 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
7632 (ASM_OUTPUT_DWARF_DTPREL): Define.
7633 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
7634 tie_symbolic_operand, tle_symbolic_operand.
7635 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
7636 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
7637 (tls_call_delay): New attribute.
7638 (in_call_delay): Use it.
7639 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
7640 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
7641 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
7642 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
7643 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
7644 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
7645 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
7646 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
7647 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
7648 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
7649 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
7650 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
7651 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
7652 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
7654 * config/sparc/sparc-protos.h (legitimate_constant_p,
7655 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
7656 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
7657 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
7658 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7659 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
7660 * configure.in (sparc*-*-*): Add TLS check.
7661 * configure: Rebuilt.
7663 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
7666 * config/i386/i386.c (memory_address_length): Fix computation when
7667 the base is esp or ebp.
7669 2003-09-07 Mark Mitchell <mark@codesourcery.com>
7672 * varasm.c (initializer_constant_valid_p): Correct logic for
7675 2003-09-07 Roger Sayle <roger@eyesopen.com>
7677 * expr.c (expand_operands): New function to expand an operand pair.
7678 (expand_expr): Call expand_operands whenever we need to expand both
7679 operands of a binary operator.
7680 (do_store_flag): Likewise for operands of comparison operations.
7682 2003-09-07 Roger Sayle <roger@eyesopen.com>
7684 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
7685 (-A)*B if we care about sign-dependent rounding.
7687 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
7689 * c-pretty-print.h (pp_c_left_brace): Declare.
7690 (pp_c_right_brace): Likewise.
7691 * c-pretty-print.c (pp_c_left_brace): Now a function
7692 (pp_c_right_brace): Likewise.
7694 2003-09-07 Jan Hubicka <jh@suse.cz>
7696 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
7698 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
7700 * diagnostic.c (warn_deprecated_use): Move to toplev.c
7702 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
7704 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
7705 * Makefile.in (langhooks.o): Depend on diagnostic.h
7707 2003-09-06 James E Wilson <wilson@tuliptree.org>
7709 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
7712 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
7714 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
7715 and use it throughout.
7717 2003-09-07 Jan Hubicka <jh@suse.cz>
7719 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
7721 * toplev.c (rest_of_decl_compilation): Do not finalize external
7724 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
7726 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
7728 2003-09-06 Jan Hubicka <jh@suse.cz>
7731 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
7734 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
7736 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
7738 * diagnostic.c (announce_function): Move to toplev.c.
7740 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7742 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
7745 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7747 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
7748 when gc checking is enabled.
7750 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
7753 * c-decl.c (c_expand_body_1): Move return warning from here...
7754 (finish_function): ...to here.
7756 2003-09-05 Geoffrey Keating <geoffk@apple.com>
7758 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
7759 a subset of the input class.
7761 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
7763 * config/i860/i860.c: Follow spelling conventions.
7764 * config/i860/i860.h: Likewise.
7765 * config/sh/sh.h: Likewise.
7767 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
7769 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
7770 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
7771 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
7773 2003-09-05 Roger Sayle <roger@eyesopen.com>
7774 Richard Henderson <rth@redhat.com>
7776 PR optimization/1823
7777 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
7778 multiplication to implement division by constant integer.
7780 2003-09-05 Jan Hubicka <jh@suse.cz>
7782 * opts.c (decode_options): Enable unit-at-a-time at -O2.
7783 * params.def (max-inline-insns-single): Set to 500
7784 (max-inline-insns-auto): Set to 150
7785 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
7787 2003-09-04 Richard Henderson <rth@redhat.com>
7789 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
7790 (cgraph_mark_needed_node): Remove needed argument.
7791 * cgraph.h: Update to match.
7792 * cgraphunit.c (decide_is_function_needed): Split out from ...
7793 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
7794 if we generated the function.
7795 (record_call_1): Update for cgraph_mark_reachable_node.
7796 * varasm.c (mark_referenced): Likewise.
7797 * objc/objc-act.c (mark_referenced_methods): Likewise.
7799 2003-09-04 DJ Delorie <dj@redhat.com>
7801 * targhooks.c: Add comment explaining the migration process.
7803 2003-09-04 Eric Christopher <echristo@redhat.com>
7805 * config/frv/t-frv: Fix path for frv-abi.h.
7806 * config/frv/frv-asm.h: Fix string concatenation.
7808 2003-09-04 DJ Delorie <dj@redhat.com>
7810 * builtins.c (apply_args_size): Guard against a NULL cfun.
7811 (expand_builtin_apply_args_1): Likewise.
7812 (expand_builtin_apply): Likewise.
7813 Fixes PR bootstrap/12172.
7815 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7817 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
7818 assembler supports Sun syntax for cmov.
7819 * configure: Regenerate.
7820 * config.in: Likewise.
7821 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
7822 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
7823 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
7824 Fixes PR target/12101.
7826 2003-09-04 Matt Austern <austern@apple.com>
7828 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
7829 with verbosity 0, instead of DECL_NAME, for human-readable string.
7831 2003-09-04 Eric Christopher <echristo@redhat.com>
7833 * targhooks.c (default_return_in_memory): Allow
7836 2003-09-04 Eric Christopher <echristo@redhat.com>
7838 * targhooks.c (default_return_in_memory): Fix typo
7841 2003-09-04 Eric Christopher <echristo@redhat.com>
7843 * targhooks.c (default_return_in_memory): Fix default
7846 2003-09-04 Bernardo Innocenti <bernie@develer.com>
7848 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
7850 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
7851 enable coff-only code in m68k.c.
7853 2003-09-04 Nick Clifton <nickc@redhat.com>
7855 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
7857 * config/v850/v850.h: Accept v850e1 as a default CPU.
7858 Accept -mv850e1 as a command line option.
7859 * doc/invoke.texi: Document new -mv850e1 command line switch.
7860 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
7863 2003-09-04 Nick Clifton <nickc@redhat.com>
7865 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
7866 * config/v850/t-v850: Only produce one extra multilib - for
7868 * config/v850/t-v850e: New file: Only produce one extra
7869 multilib - for the v850.
7871 2003-09-04 Jakub Jelinek <jakub@redhat.com>
7873 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
7874 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
7875 * unwind.h (_Unwind_GetBSP): New prototype.
7876 * libgcc-std.ver: Add empty GCC_3.3.2 version.
7877 * mkmap-symver.awk: For symbol versions with no exported symbols,
7878 don't put anything into version script, just change all symbol
7879 versions which inherit from it to inherit from its ancestor.
7881 2003-09-04 Eric Christopher <echristo@redhat.com>
7883 * config/mips/mips.c (mips_expand_prologue): Convert to
7884 calls.struct_value_rtx hook.
7885 (reg_or_const_float_1_operand): New.
7886 * config/mips/mips.h: Update Comments.
7887 (mips_arg): Add reg_or_const_float_1_operand.
7888 * config/mips/mips.md (divdf3); Convert to expander.
7890 (*divdf3): New pattern.
7893 2003-09-04 Jan Hubicka <jh@suse.cz>
7895 * toplev.c (wrapup_global_declarations): Fix final pass in
7898 2003-09-04 Mark Mitchell <mark@codesourcery.com>
7900 * doc/extend.texi: Document removal of cast-as-lvalue extension in
7903 2003-09-04 Nicolas Roche <roche@act-europe.fr>
7905 * gcc.c (process_command): Fix typo.
7907 2003-09-03 David O'Brien <obrien@FreeBSD.org>
7910 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
7911 (PTRDIFF_TYPE): Likewise.
7912 (WCHAR_TYPE_SIZE): Likewise.
7914 2003-09-03 DJ Delorie <dj@redhat.com>
7916 * targhooks.c: New file.
7917 * targhooks.h: New file.
7918 * Makefile.in: Add targhooks.o support.
7919 (function.o): Depend on$(TARGET_H).
7921 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
7922 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
7923 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
7924 (expand_builtin_saveregs): Convert to
7925 calls.expand_builtin_saveregs hook.
7926 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
7927 here, instead of ...
7928 (get_parm_info) ... here.
7929 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
7931 (finish_function): Handle calls.promote_prototypes hook here too.
7932 * c-typeck.c (convert_arguments): Convert to
7933 calls.promote_prototypes hook.
7934 (c_convert_parm_for_inlining): Likewise.
7935 * calls.c (initialize_argument_information): Convert to
7936 calls.promote_function_args hook.
7937 (expand_call): Convert to calls.struct_value_rtx,
7938 calls.strict_argument_naming,
7939 calls.pretend_outgoing_varargs_named, and
7940 calls.promote_function_return hooks. Pass fndecl to
7941 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
7942 hooks, so they can use that.
7943 (emit_library_call_value_1): Likewise.
7944 * combine.c (setup_incoming_promotions): Convert to
7945 calls.promote_function_args hook.
7946 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
7947 * expr.c (expand_assignment): Pass call to aggregate_value_p.
7948 (expand_expr): Likewise.
7949 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
7950 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
7951 RETURN_IN_MEMORY macro defaults.
7952 * final.c (profile_function): Convert to calls.struct_value_rtx
7954 * function.c (aggregate_value_p): Accept function type tree as
7955 second parameter; try to deduce fntype from it. Convert to
7956 calls.return_in_memory hook.
7957 (assign_parms): Convert to calls.setup_incoming_varargs,
7958 calls.strict_argument_naming, calls.promote_function_args,
7959 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
7961 (expand_function_start): Likewise. Convert to
7962 calls.struct_value_rtx hook.
7963 (expand_function_end): Convert to calls.promote_function_return hook.
7964 (allocate_struct_function): Pass fndecl to aggregate_value_p.
7965 * hard-reg-set.h: Update comments to new hook names.
7966 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
7967 * reg-stack.c (stack_result): Likewise.
7968 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
7969 * stmt.c (expand_value_return): Convert to
7970 calls.promote_function_return hook.
7971 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
7972 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
7973 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
7974 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
7975 TARGET_STRICT_ARGUMENT_NAMING,
7976 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
7977 * target.h: Likewise.
7978 * tree.h (aggregate_value_p): Also takes a tree to deduce function
7979 attributes from (for target hooks).
7980 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
7981 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
7982 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
7983 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
7984 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
7987 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
7988 to aggregate_value_p.
7989 * config/arm/arm.c (arm_init_cumulative_args,
7990 arm_output_mi_thunk): Likewise.
7991 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
7993 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
7994 mips_can_use_return_insn): Likewise.
7995 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7996 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
7997 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
7999 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
8000 function to aggregate_value_p.
8001 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
8004 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
8005 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
8006 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
8007 (sh_handle_renesas_attribute, sh_promote_prototypes,
8008 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
8009 sh_setup_incoming_varargs, sh_strict_argument_naming,
8010 sh_pretend_outgoing_varargs_named): New decls.
8011 (targetm): Add new hooks.
8012 (calc_live_regs): Save MACL and MACH if the function has the
8014 (sh_expand_prologue): Support renesas attribute.
8015 (sh_builtin_saveregs): Make static.
8016 (sh_build_va_list): Support renesas attribute.
8017 (sh_va_start): Likewise.
8018 (sh_va_arg): Likewise.
8019 (sh_promote_prototypes): New.
8020 (sh_function_arg): New, moved from sh.h. Support renesas
8022 (sh_function_arg_advance): Likewise.
8023 (sh_return_in_memory): Likewise.
8024 (sh_strict_argument_naming): Likewise.
8025 (sh_pretend_outgoing_varargs_named): Likewise.
8026 (sh_struct_value_rtx): New.
8027 (sh_attribute): Add renesas attribute.
8028 (sh_handle_renesas_attribute): New.
8029 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
8030 (sh_ms_bitfield_layout_p): Support renesas attribute also.
8031 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
8032 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
8034 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
8036 (sh_args): Add renesas_abi flag.
8037 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
8038 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
8039 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
8040 stack for the renesas abi.
8041 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8042 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
8043 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
8044 call cookie to indicate renesas calls.
8046 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
8048 * gcse.c (replace_one_set): New function.
8049 (pre_insert_copy_insn): Change the order of copying
8050 to make copy propagation discover additional PRE opportunities.
8052 2003-09-03 Roger Sayle <roger@eyesopen.com>
8054 PR optimization/11700.
8055 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
8056 of a hard register is representable before trying to simplify it
8057 using subreg_hard_regno.
8059 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8061 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
8062 * configure: Regenerate.
8064 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8066 * intl.h (N_): Remove parentheses.
8068 2003-09-03 Bernardo Innocenti <bernie@develer.com>
8070 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
8071 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
8072 definition and code blocks compiled when not defined.
8073 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
8074 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
8075 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
8076 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
8078 2003-09-03 Jeff Sturm <jsturm@one-point.com>
8080 * cgraphunit.c (visited_nodes): New static variable.
8081 (record_call_1): Use walk_tree with visited_nodes.
8082 (cgraph_create_edges): Use walk_tree with visited_nodes.
8083 Setup/teardown visited_nodes hashtable.
8085 2003-09-03 Roger Sayle <roger@eyesopen.com>
8087 * toplev.c (flag_rounding_math): New global variable.
8088 (f_options): Add to the list of language independent options.
8089 * flags.h (flag_rounding_math): Prototype here.
8090 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
8091 * common.opt (frounding-math): New common command line option.
8092 * opts.c (common_handle_option): Handle OPT_frounding_math.
8093 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
8095 * doc/invoke.texi: Document this new command line option.
8097 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8099 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
8101 2003-09-03 Jan Hubicka <jh@suse.cz>
8103 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
8104 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
8105 * c-objc-common.c: Kill include of gt-c-objc-common.h
8106 (expand_deferred_fns, deffer_fn): Kill function.
8107 (deferred_fns): Kill variable.
8108 (finish_cdtor): Update finish_function call.
8109 (c_objc_common_finish_file): Always call cgraph code.
8110 * c-parse.c: Regenerate.
8111 * c-parse.y: Regenerate.
8112 * c-tree.h (finish_function): Update prototype.
8113 * objc-acct.c (build_module_descriptor, finish_method_def):
8114 Update call of finish_function.
8115 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
8117 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
8118 function and assemble it if needed.
8119 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
8121 (cgraph_optimize): Likewise.
8122 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
8123 even when it has no inline callees.
8124 * c-parse.in: Update calls to finish_function.
8126 2003-09-03 Nick Clifton <nickc@redhat.com>
8128 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
8129 Use #error to generate the message if TARGET_DEFAULT is not
8132 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
8134 * config/mips/mips.h (MASK_UNUSED1): Remove.
8135 (MASK_XGOT, TARGET_XGOT): Define.
8136 (TARGET_SWITCHES): Add an entry for -mxgot.
8137 (ASM_SPEC): Map -mxgot to -xgot.
8138 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
8139 whether we're using a big-GOT sequences.
8140 (mips_legitimize_const_move, mips_expand_call): Likewise.
8141 (override_options): Revert 2003-01-09 change.
8142 * doc/invoke.texi: Document -mxgot.
8144 2003-09-02 Jason Merrill <jason@redhat.com>
8146 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
8147 * config/sparc/sol2.h: Not here.
8149 2003-09-02 Roger Sayle <roger@eyesopen.com>
8151 * expr.c (expand_expr): The code following both_summands performs
8152 the same task as simplify_gen_binary. Replace all gotos to
8153 both_summands with a call to simplify_gen_binary and delete the
8156 2003-09-02 Jason Merrill <jason@redhat.com>
8159 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
8161 2003-09-02 Jeff Sturm <jsturm@one-point.com>
8163 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
8164 (cgraph_optimize_function): Set current_function_decl to the
8165 fndecl we're integrating from.
8167 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8169 * builtins.def: Break out _Complex math functions into their
8172 2003-09-02 Andreas Jaeger <aj@suse.de>
8174 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
8176 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
8178 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
8179 finding the note again.
8181 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
8183 * config.gcc: Remove host-specific rewrites of target_alias.
8185 2003-09-01 Mark Mitchell <mark@codesourcery.com>
8187 * Makefile.in (genprogs): Fix typo.
8189 * Makefile.in (gencheck.o): Remove build commands.
8190 (dummy-conditions.o): Likewise.
8191 (read-rtl.o): Likewise.
8192 (gensupport.o): Likewise.
8193 (genconfig$(build_exeext)): Remove rule.
8194 (genconfig.o): Remove build commands.
8195 (genflags$(build_exeext)): Remove rule.
8196 (genflags.o): Remove build commands.
8197 (gencodes$(build_exeext)): Remove rule.
8198 (gencodes.o): Remove build commands.
8199 (genconstants.o): Remove build commands.
8200 (genemit$(build_exeext)): Remove rule.
8201 (genemit.o): Remove build commands.
8202 (genrecog$(build_exeext)): Remove rule.
8203 (genrecog.o): Remove build commands.
8204 (genextract$(build_exeext)): Remove rule.
8205 (genextract.o): Remove build commands.
8206 (genpeep$(build_exeext)): Remove rule.
8207 (genpeep.o): Remove build commands.
8208 (genattr$(build_exeext)): Remove rule.
8209 (genattr.o): Remove build commands.
8210 (genprognames): New variable.
8211 (genprogs): Likewise.
8212 (genobjs): Likewise.
8213 (genprogs): New rule.
8214 (genobjs): Likewise.
8215 (genattrtab.o): Remove build commands.
8216 (genautomata.o): Likewise.
8217 (genoutput$(build_exeext)): Remove rule.
8218 (genoutput.o): Remove build commands.
8219 (gengenrtl.o): Likewise.
8220 (genpreds.o): Likewise.
8221 (gengtype.o): Likewise.
8222 (genconditions.o): Likewise.
8223 (gen-protos.o): Likewise.
8225 (fix-header.o): Likewise.
8226 (scan-decls.o): Likewise.
8227 (check-g++): Combine with other check targets.
8228 (check-gcc): Likewise.
8229 (check-g77): Likewise.
8230 (check-objc): Likewise.
8232 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
8234 * config.gcc: Remove host-specific stuff which is unused here
8235 since the introduction of config.host.
8237 * doc/fragments.texi: Mention config.host.
8238 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
8239 of config.build, config.host, and config.gcc.
8241 2003-09-01 Zack Weinberg <zack@codesourcery.com>
8243 * c-decl.c (pushdecl): Don't put variables on
8244 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
8247 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
8249 * config.host: New file.
8250 * config.gcc: Remove some host-specific stuff and some
8251 logic needed only for repeated invocation.
8252 * configure.in: Use config.host.
8253 * configure: Regenerate.
8255 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
8257 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
8258 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
8259 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
8260 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
8261 * tree.def (BIT_ANDTC_EXPR): Kill.
8263 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
8265 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
8266 * configure: Regenerate.
8268 * config.gcc: Remove references to install_headers_dir, now unused
8269 since introduction of config.build.
8270 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
8272 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
8275 * config.build: New file.
8276 * config.gcc: Remove some build-specific stuff.
8277 * configure.in: Use config.build.
8278 * configure: Regnerate.
8280 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
8281 Roger Sayle <roger@eyesopen.com>
8284 * stmt.c (expand_end_case_type): Only use jump tables for dense
8285 switch statements when optimizing for size.
8287 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
8289 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
8290 the != 0 case, which ensures pending stack adjustments are flushed.
8292 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8294 * configure.frag: Delete file.
8295 * configure.in: Rename the substitution variables
8296 dep_host_xmake_file and dep_tmake_file to xmake_file and
8297 tmake_file respectively. Do not expand $srcdir in the
8298 value of these; leave that for Make. Introduce a new
8299 substitution varaible, all_lang_makefrags, which lists
8300 subdirectory Make-lang.in files; exclude these from
8301 all_lang_makefiles, which is now only for subdirectory
8302 outputs. Do not invoke configure.frag. Do not set nor
8303 AC_SUBST_FILE target_overrides, host_overrides, or
8304 language_fragments. Create build subdirectories in
8305 config.status extra commands.
8306 * configure: Regenerate.
8307 * Makefile.in: Update substitutions to match changes to
8308 configure. Use include directives instead of @-insertions
8309 to read in host, target, and language fragments.
8310 (Makefile rule): Do not invoke configure.frag. Do not copy
8311 config.status to config.run before executing it. Set
8312 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
8314 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
8316 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8318 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
8319 * c-typeck.c (same_translation_unit_p): New function.
8320 (comptypes): Use it instead of flags parameter to identify
8321 structure types from different translation units.
8322 * c-decl.c (duplicate_decls): Always call comptypes with
8323 COMPTYPE_STRICT flags argument.
8324 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
8327 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8329 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
8330 * c-decl.c (struct c_scope): Remove "incomplete" field.
8331 (pushdecl): Attach variables with incomplete types to
8332 the TYPE_MAIN_VARIANT of the incomplete type in question.
8333 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
8334 to complete, not at current_scope->incomplete. All such
8335 variables do need completion.
8337 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
8338 Nicolas Pitre <nico@cam.org>
8340 * arm/lib1funcs.asm (RETCOND): Delete.
8341 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
8342 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
8343 (__ARM_ARCH__): Move here from ieee754-?f.S.
8344 (RET, RETc): Clean up definitions.
8345 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
8346 (FUNC_END): New macro that marks the end of any function.
8347 (ARM_FUNC_START): New macro that allows an assembler routine to be
8348 implemented in ARM code even if a Thumb-only build.
8349 Unconditionally include ieee754-?f.S.
8350 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
8351 Mark ends of functions.
8352 Split into separate conditionally-compiled units.
8353 Use RETLDM to return from routines.
8354 * arm/ieee754-sf.S: Similarly.
8355 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
8356 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
8357 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
8358 _fixsfsi and _fixunssfsi.
8360 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
8361 multiplication underflows to zero.
8362 (__adddf3): Fix bug when using VFP ordering on little-endian
8364 (__fixdfsi): Use rrx to extract the carry into a register instead of
8365 MRS instruction. Optimize later use of result.
8366 * arm/ieee754-sf.S (__fixsfsi): Likewise.
8367 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
8369 2003-08-29 Richard Henderson <rth@redhat.com>
8371 * tree-optimize.c: New file.
8372 * Makefile.in (OBJS-archive): Add tree-optimize.o.
8373 (tree-optimize.o): New.
8374 * c-decl.c (store_parm_decls): Use allocate_struct_function.
8375 (finish_function): Don't free_after_parsing or free_after_compilation.
8376 (set_save_expr_context): Move to tree-optimize.c.
8377 (c_expand_body_1): Use tree_rest_of_compilation.
8378 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8379 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8380 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
8381 iterate until closure.
8382 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
8383 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
8384 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
8385 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
8386 * toplev.h (tree_rest_of_compilation): Declare it.
8388 2003-08-29 Richard Henderson <rth@redhat.com>
8390 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
8391 * integrate.c (save_for_inline): Set saved_for_inline.
8392 * c-semantics.c (genrtl_scope_stmt): Check it.
8393 * toplev.c (wrapup_global_declarations): Check it.
8394 (rest_of_handle_inlining): Set and check rtl_inline_init.
8395 (rest_of_compilation): Remove out of date comment.
8397 2003-08-29 Richard Henderson <rth@redhat.com>
8399 * function.c (allocate_struct_function): New, split out of ...
8400 (prepare_function_start, init_function_start): ... here.
8401 * expr.c (init_expr): Use ggc_alloc_cleared.
8402 * stmt.c (init_stmt_for_function): Likewise.
8403 * tree.h (allocate_struct_function): Declare.
8405 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
8407 * config.gcc: Don't use negated character class in shell case
8410 2003-08-29 Richard Henderson <rth@redhat.com>
8412 * function.h (struct function): Move function_frequency and
8413 max_jumptable_ents before start of bit field members.
8415 2003-08-29 Richard Henderson <rth@redhat.com>
8417 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
8418 (fold_builtin_constant_p) ... not here.
8420 2003-08-29 Richard Henderson <rth@redhat.com>
8422 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
8423 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
8424 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
8426 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8428 * builtins.def: Fix typos.
8429 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
8430 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
8431 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
8432 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
8433 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
8435 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
8436 Use ATTR_MATHFN_FPROUNDING_ERRNO.
8438 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
8440 * config.gcc (i386-*-vsta): Fix obvious bogosity.
8442 * fixinc/inclhack.def: Remove special cases for unsupported
8443 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
8444 * fixinc/fixincl.x: Regenerate.
8446 2003-08-29 Mark Mitchell <mark@codesourcery.com>
8448 * Makefile.in (cpp.info): Just state dependencies.
8449 (gcc.info): Likewise.
8450 (gccint.info): Likewise.
8451 (gccinstall.info): Likewise.
8452 (cppinternals.info): Likewise.
8453 (cpp.dvi): Likewise.
8454 (gcc.dvi): Likewise.
8455 (gccint.dvi): Likewise.
8456 (gccinstall.dvi): Likewise.
8457 (cppinternals.dvi): Likewise.
8463 (fsf-funding.7): Likewise.
8464 ($(objdir)/%.info): New pattern rule.
8467 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
8469 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
8470 (restage2): Likewise.
8471 (restage3): Likewise.
8472 (restage4): Likewise.
8473 (restageprofile): Likewise.
8474 (restagefeedback): Likewise.
8475 (bubblestrap): Likewise.
8477 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
8479 * config.gcc: Narrow unsupported target match to avoid clobbering
8480 i?86-sequent-sysv4*.
8482 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8484 * builtins.c (mathfn_built_in): Handle new math builtins.
8486 2003-08-28 Per Bothner <per@bothner.com>
8488 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
8489 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
8490 (_cpp_lex_buffer): Likewise.
8491 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
8493 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
8495 * config/s390/s390.md ("*mulsi3_sign"): New insn.
8496 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
8497 ("mulsidi3"): ... this new insn.
8498 ("umulsidi3"): New insn.
8499 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
8500 mixed-mode matching constraints.
8501 ("udivmodsi4", "udivmoddisi3"): New insns.
8502 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
8504 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8506 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
8507 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
8508 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
8509 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
8510 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
8511 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
8512 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
8513 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
8514 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
8515 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
8516 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
8517 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
8518 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
8519 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
8520 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
8521 * tree.c: Assign new type_nodes.
8522 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
8523 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
8524 (float_ptr_type_node, double_ptr_type_node,
8525 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
8527 * doc/extend.texi: Document new builtins.
8529 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8531 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
8532 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
8534 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
8535 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
8536 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
8537 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
8538 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
8539 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
8540 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
8541 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
8542 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
8543 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
8545 * doc/extend.texi: Document new builtins.
8547 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
8549 * fixinc/mkfixinc.sh: Remove special case code for unsupported
8550 variants of i?86, powerpcle, and thumb.
8551 * fixinc/mkfixinc.sh: Remove special case code for unsupported
8552 arm and hppa variants.
8554 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8556 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
8557 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
8558 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
8559 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
8560 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
8561 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
8562 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
8563 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
8564 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
8565 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
8567 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
8568 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
8569 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
8570 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
8571 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
8572 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
8573 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
8574 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
8575 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
8576 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
8577 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
8578 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
8579 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
8580 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
8581 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
8582 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
8583 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
8584 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
8585 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
8586 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
8587 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
8588 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
8589 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
8590 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
8591 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
8592 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
8593 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
8594 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
8595 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
8596 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
8597 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
8599 * doc/extend.texi: Document new builtins.
8601 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
8603 * config/s390/s390.c (legitmate_constant_p): Use LARL on
8604 zSeries machines even in 31-bit addressing mode.
8605 (legitimate_reload_constant_p): Likewise.
8606 (legitimize_pic_address): Likewise.
8607 (legitimize_tls_address): Likewise.
8608 (s390_split_branches): Likewise.
8609 (s390_dump_pool): Likewise.
8610 (s390_mainpool_finish): Likewise.
8611 (s390_chunkify_start): Likewise.
8612 (s390_select_rtx_section): Likewise.
8613 * config/s390/s390.md ("doloop_si"): Likewise.
8614 ("pool_start_31", "pool_end_31"): Likewise.
8615 ("pool_start_64", "pool_end_64"): Likewise.
8616 ("main_base_31_small", "main_base_31_large"): Likewise.
8617 ("main_base_64"): Likewise.
8618 ("reload_base_31", "reload_base_64"): Likewise.
8619 ("*movsi_larl"): New insn.
8620 ("cjump", "icjump"): Use long branches on zSeries machines.
8622 ("call"): Use BRASL on zSeries machines.
8623 ("call_value", "call_value_tls"): Likewise.
8624 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
8626 ("*bras", "*brasl", "*basr") ... these new insns.
8627 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
8628 "bas_31_r"): Remove and replace by ...
8629 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
8630 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
8631 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
8632 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
8633 ("*return_si", "*return_di"): Remove and replace by ...
8634 ("*return"): ... this new insn.
8635 ("rotlsi3"): Allow on zSeries machines.
8637 * config/s390/s390.c (legitimize_reload_constant_p): Use
8638 LL/LH type instructions in z/Architecture mode.
8639 * config/s390/s390.md ("*movsi_lli"): Likewise.
8640 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
8641 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
8642 ("*extendqisi2"): Use LB in z/Architecture mode.
8643 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
8644 z/Architecture mode.
8645 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
8648 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
8650 ("ptr_extend"): Allow only in 64-bit mode.
8652 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
8654 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
8655 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
8657 (main): Only use standard_startfile_prefix if native.
8658 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
8660 2003-08-27 Per Bothner <pbothner@apple.com>
8662 * cpperror.c (print_location): Don't check for !pfile->buffer. That
8663 test fails following my 08-21 change, and it seems unnecessary anyway.
8664 (cpp_error): Likewise.
8666 2003-08-27 Jason Merrill <jason@redhat.com>
8668 * real.c (do_multiply): Initialize with memset.
8670 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8672 * gcov.c (typedef struct arc_info): New field cs_count.
8673 (accumulate_line_counts): Find cycles correctly.
8675 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
8677 * config/s390/s390.c (struct machine_function): Remove member
8679 (s390_optimize_prolog): Replace TEMP_REG argument with
8680 TEMP_USED and BASE_USED. Do not check get_pool_size ().
8681 (general_s_operand): Accept all immediates before reload if
8682 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
8684 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
8685 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
8686 (s390_alloc_pool): New function.
8687 (s390_new_pool): Call it.
8688 (s390_dump_pool): Add REMOTE_LABEL argument.
8689 (s390_chunkify_start): Add BASE_REG argument. Do not check
8691 (s390_chunkify_finish): Add BASE_REG argument. Adapt
8692 s390_dump_pool call.
8693 (s390_pool_count, s390_nr_constants): Remove.
8694 (s390_output_constant_pool): Remove.
8695 (s390_mainpool_start): New function.
8696 (s390_mainpool_finish): New function.
8697 (s390_mainpool_cancel): New function.
8698 (s390_reorg): Implement main literal pool handling.
8699 (s390_emit_prologue): Emit main_pool placeholder instead of
8700 literal_pool_31 / literal_pool_64 insns.
8701 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
8702 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
8703 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
8704 ("main_base_31_small", "main_base_31_large"): New insns.
8705 ("main_base_64", "main_pool"): New insns.
8706 ("literal_pool_31", "literal_pool_64"): Remove.
8708 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
8710 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
8712 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
8714 * fixinc/fixincl.x: Regenerate.
8716 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
8718 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
8719 (L_ieee754_dp): New. Include ieee754-df.S.
8720 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
8721 and compilation in apcs-26 mode.
8722 * arm/ieee754-df.S: Likewise.
8723 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
8724 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
8726 2003-08-27 Nicolas Pitre <nico@cam.org>
8728 * arm/ieee754-sf.S: New.
8729 * arm/ieee754-df.S: New.
8731 2003-08-27 Jakub Jelinek <jakub@redhat.com>
8733 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
8734 and restore it if returning NULL.
8736 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
8738 * calls.c (initialize_argument_information): If an argument has no
8739 stack space associated with it, and BLOCK_REG_PADDING is defined,
8740 use it to decide at which end the argument should be padded.
8741 * function.c (assign_parms): Allocate BLKmode stack slots.
8742 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
8743 (mips_pad_reg_upward): Declare.
8744 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
8745 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
8746 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
8747 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
8748 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
8749 (mips_expand_call): Remove code for generating structure shifts.
8750 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
8751 types unless using the EABI.
8752 (function_arg_advance): Don't generate shift instructions.
8753 (function_arg): Don't return them. Don't short-circuit the
8754 check for double structure chunks for DFmode arguments.
8755 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
8756 (mips_expand_prologue): Remove code to emit structure shifts.
8757 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
8758 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
8759 comments to say that only structure returns are a problem.
8761 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
8763 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
8764 Fix to match produced versions.
8765 * fixinc/inclhack.def (longlong_t): New disabled test, ported
8767 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
8769 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
8770 ported from fixinc.ptx.
8772 2003-08-26 Per Bothner <pbothner@apple.com>
8774 * cpplib.h (struct cpp_token): Change type of field line to fileline.
8775 (cpp_error_with_line): Use fileline for appropriate parameter.
8776 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
8777 (struct cpp_reader): Likewise for fields line and directive_line.
8778 (_cpp_begin_message): Use fileline for appropriate parameter.
8779 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
8780 cpp_error): Use fileline for appropriate parameters and variables.
8781 (print_location): New local lin, since it is not a fileline.
8783 2003-08-26 Roger Sayle <roger@eyesopen.com>
8786 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
8787 (FLOAT_TYPE_P): Define in terms of these two new macros.
8788 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
8789 for complex floating point types.
8791 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
8793 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
8794 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
8795 s390_output_pool_entry.
8797 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
8799 * fixinc/inclhack.def (svr4_preproc_lint_on,
8800 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
8801 fixes, ported from fixinc.svr4.
8803 2003-08-26 Mark Mitchell <mark@codesourcery.com>
8805 * doc/install.texi (Prerequisites): Mention GNU make requirement.
8807 * Makefile.in (AR_FOR_TARGET): Export it.
8808 (AR_CREATE_FOR_TARGET): Likewise.
8809 (AR_FLAGS_FOR_TARGET): Likewise.
8810 (AR_EXTRACT_FOR_TARGET): Likewise.
8812 (BUILD_PREFIX): Likewise.
8813 (BUILD_PREFIX_1): Likewise.
8814 (DESTDIR): Likewise.
8815 (GCC_FOR_TARGET): Likewise.
8816 (INCLUDES): Likewise.
8817 (INSTALL_DATA): Likewise.
8818 (LIB1ASMSRC): Likewise.
8819 (LIBGCC2_CFLAGS): Likewise.
8820 (MACHMODE_H): Likewise.
8821 (NM_FOR_TARGET): Likewise.
8822 (RANLIB_FOR_TARGET): Likewise.
8823 (libsubdir): Likewise.
8824 (slibdir): Likewise.
8825 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
8827 (libgcc.a): Don't pass them here.
8828 (stmp-multilib): Or here.
8829 (install-libgcc): Or here.
8830 (install-multilib): Or here.
8831 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
8832 (stage1_build): Or here.
8834 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
8836 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
8837 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
8839 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
8841 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
8842 "*fmaddsf", "*fmsubsf"): New insns.
8844 2003-08-26 Roger Sayle <roger@eyesopen.com>
8846 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
8847 (C1*C2)/X when unsafe math optimizations are allowed.
8848 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
8849 math optimizations. Minor code clean-ups. Recursively call
8850 fold when constructing sub-expressions.
8852 2003-08-26 Roger Sayle <roger@eyesopen.com>
8854 * builtins.c (fold_builtin_bitop): New function to perform constant
8855 folding of ffs, clz, ctz, popcount and parity builtin functions
8856 and their long and long long variants (such as ffsl and ffsll).
8857 (fold_builtin): fold_builtin_bitop when appropriate.
8858 * simplify-rtx.c (simplify_unary_operation): Honor both
8859 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
8860 evaluating clz and ctz at compile-time, for operands wider
8863 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
8865 * builtins.c (build_function_call_expr): Don't set
8866 TREE_SIDE_EFFECTS here.
8867 * expr.c (emit_block_move_via_libcall): Likewise.
8868 (clear_storage_via_libcall): Likewise.
8869 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
8872 * gcse.c (is_too_expensive): New function.
8873 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
8875 2003-08-25 Zack Weinberg <zack@codesourcery.com>
8877 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
8878 commented-out logic to use DCE threads (if present), add
8879 support for POSIX threads.
8880 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
8881 #defines for -pthread. Add -lpthread to LIB_SPEC when
8882 -pthread. In both cases take -mt as a synonym for -pthread
8883 for acc compatibility.
8884 Define GTHREAD_USE_WEAK to 0.
8885 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
8886 Remove old logic for DCE threads from LIB_SPEC.
8887 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
8889 2003-08-25 Roger Sayle <roger@eyesopen.com>
8891 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
8892 return 0 for invalid argument types. Instead drop through to a
8893 call of expand_call at the bottom of function. If op is SQRT,
8894 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
8896 2003-08-25 Richard Henderson <rth@redhat.com>
8898 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
8899 result when op0 is SImode.
8901 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
8903 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
8905 * fixinc/fixincl.x: Regenerate.
8906 * fixinc/tests/base/sys/signal.h: Regenerate.
8908 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
8910 * combine.c (simplify_comparison): Re-enable widening of comparisons
8911 with non-paradoxical subregs of non-REG expressions.
8913 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
8915 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
8917 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
8919 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
8921 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
8923 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
8924 * c-pretty-print.h (c_pretty_printer): Now typedef to the
8925 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
8926 (struct c_pretty_print_info): Document. Add new fields.
8927 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
8928 (pp_direct_abstract_declarator): New macro.
8929 (pp_ptr_operator): Likewise.
8930 (pp_simple_type_specifier): Likewise.
8931 (pp_expression): Likewise.
8932 (pp_parameter_list): Rename from pp_parameter_declaration.
8933 * c-pretty-print.c (pp_c_whitespace): Now a function.
8934 (pp_c_left_paren): Likewise.
8935 (pp_c_right_paren): Likewise.
8936 (pp_c_dot): Likewise.
8937 (pp_c_ampersand): Likewise.
8938 (pp_c_arrow): Likewise.
8939 (pp_c_semicolon): Likewise.
8940 (pp_c_type_cast): New function.
8941 (pp_c_space_for_pointer_operator): Likewise.
8942 (pp_c_call_argument_list): Likewise.
8943 (pp_c_cv_qualifier): Adjust prototype.
8944 (pp_c_type_qualifier_list): Likewise.
8945 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
8946 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
8947 Adjust to follow standard grammar.
8948 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
8949 REFERENCE_TYPE. Tidy.
8950 (pp_c_parameter_type_list): Adjust prototype. Tidy.
8951 (pp_c_parameter_declaration): Remove.
8952 (pp_c_abstract_declarator): Adjust prototype.
8953 (pp_c_direct_abstract_declarator): Likewise.
8954 (pp_c_type_id): Likewise.
8955 (pp_c_storage_class_specifier): Likewise.
8956 (pp_c_function_specifier): Likewise.
8957 (pp_c_declaration_specifiers): Likewise.
8958 (pp_c_direct_declarator): Likewise.
8959 (pp_c_declarator): Likewise.
8960 (pp_c_declarator): Likewise.
8961 (pp_c_declaration): Likewise.
8962 (pp_c_attributes): Likewise. Tidy.
8963 (pp_c_function_definition): Adjust prototype.
8964 (pp_c_char): Likewise.
8965 (pp_c_string_literal): Likewise.
8966 (pp_c_integer_constant): Likewise.
8967 (pp_c_character_constant): Likewise.
8968 (pp_c_bool_constant): Likewise.
8969 (pp_c_enumeration_constant): Likewise.
8970 (pp_c_floating_constant): Likewise.
8971 (pp_c_constant): Likewise.
8972 (pp_c_identifier): Likewise.
8973 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
8974 (pp_c_initializer): Adjust prototype.
8975 (pp_c_init_declarator): Likewise.
8976 (pp_c_initializer_list): Likewise.
8977 (pp_c_id_expression): Likewise.
8978 (pp_c_postfix_expression): Likewise.
8979 (pp_c_expression_list): Likewise.
8980 (pp_c_unary_expression): Likewise.
8981 (pp_c_cast_expression): Likewise.
8982 (pp_c_multiplicative_expression): Likewise.
8983 (pp_c_additive_expression): Likewise.
8984 (pp_c_shift_expression): Likewise.
8985 (pp_c_relational_expression): Likewise.
8986 (pp_c_equality_expression): Likewise.
8987 (pp_c_and_expression): Likewise.
8988 (pp_c_exclusive_or_expression): Likewise.
8989 (pp_c_inclusive_or_expression): Likewise.
8990 (pp_c_logical_and_expression): Likewise.
8991 (pp_c_logical_or_expression): Likewise.
8992 (pp_c_conditional_expression): Likewise.
8993 (pp_c_assignment_expression): Likewise.
8994 (pp_c_expression): Likewise. Tidy.
8995 (pp_c_statement): Likewise. Document.
8996 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
8998 * c-lang.c (c_initialize_diagnostics): Update.
8999 * c-common.h (strip_pointer_operator): Declare.
9000 * c-common.c (strip_pointer_operator): Define.
9002 2003-08-25 Mark Mitchell <mark@codesourcery.com>
9005 * tree.h (build_method_type_directly): Declare.
9006 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
9007 (vector_size_helper): Likewise.
9008 * tree.c (build_method_type_directly): New function.
9009 (build_method_type): Use it.
9011 2003-08-24 Richard Henderson <rth@redhat.com>
9013 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
9014 for 16-byte vector modes if sse not enabled; warn for abi change.
9015 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
9017 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
9019 * rtlanal.c (may_trap_p): Simplify an integer comparison.
9021 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
9023 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
9024 comment. Enable for DYNIX/ptx systems (when they switch to
9025 regular fixincludes).
9026 * fixinc/fixincl.x: Regenerate.
9028 2003-08-23 Jason Eckhardt <jle@rice.edu>
9030 * config/i860/t-i860: New.
9031 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
9033 2003-08-23 Jakub Jelinek <jakub@redhat.com>
9035 * c-decl.c (pushdecl): Only put decls which finish_struct will do
9036 something about onto incomplete chain.
9037 (finish_struct): If not removing type from incomplete
9040 2003-08-20 Jan Hubicka <jh@suse.cz>
9043 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
9046 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
9047 const_0_to_15_operand, const_0_to_255_operand): New predicates.
9048 * i386.h (PREDICATE_CODES): Add these.
9049 * i386.c (pinsrw and pextrw patterns): Use them.
9052 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
9055 * expr.c (convert_modes): Deal properly with integer to vector
9056 constant conversion.
9059 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
9061 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9063 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
9064 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
9065 ("*movhi"): ... this.
9066 ("movqi", "*movqi"): Likewise.
9067 ("movqi_64"): Remove.
9068 ("*zero_extendhisi2_31"): Change predicate to s_operand.
9070 2003-08-23 Dale Johannesen <dalej@apple.com>
9071 * calls.c (emit_library_call_value_1): Fix obvious errors in
9072 arguments to emit_group_store.
9074 2003-08-23 Jason Eckhardt <jle@rice.edu>
9076 * calls.c (emit_library_call_value_1): Remove code related
9077 to LIBGCC_NEEDS_DOUBLE.
9078 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
9079 * doc/tm.texi: Likewise.
9080 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
9082 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
9084 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
9086 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
9088 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
9089 as well. Put memory references in the varargs alias set.
9090 (mips_expand_prologue): Remove varargs handling from here.
9092 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9094 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
9095 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
9096 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
9097 for function pointer calls.
9098 * config/s390/s390.md ("*negdi2_31"): Likewise.
9100 2003-08-23 Roger Sayle <roger@eyesopen.com>
9102 * combine.c (apply_distributive_law): Correct comment.
9104 2003-08-23 Jason Eckhardt <jle@rice.edu>
9106 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
9108 2003-08-22 Jason Eckhardt <jle@rice.edu>
9110 * config/i860/i860.c (i860_build_va_list): Create the va_decl
9111 declaration. Document the va_list structure.
9112 (i860_va_start): Initialize the va_list structure.
9113 (i860_va_arg): Rewrite completely.
9114 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
9115 * config/i860/varargs.asm: Do not allocate or initialize
9116 a va_list. Return the address of the register save area.
9118 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9120 * config/iq2000/iq2000.c: Fix comment typos.
9121 * config/iq2000/iq2000.md: Likewise.
9123 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9125 * config/iq2000/iq2000.c: Follow spelling conventions.
9126 * config/iq2000/iq2000.h: Likewise.
9127 * config/mn10300/mn10300.c: Likewise.
9129 2003-08-22 Jason Eckhardt <jle@rice.edu>
9131 * config/i860/i860.c (output_move_double): Don't set latehalf
9132 to zero for CONST_INT (since it could be, e.g., -1).
9134 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
9135 (MODSI3_LIBCALL): ...with this one.
9136 (UREMSI3_LIBCALL): Replace this macro...
9137 (UMODSI3_LIBCALL): ...with this one.
9139 2003-08-22 Jason Eckhardt <jle@rice.edu>
9141 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
9142 (output_delayed_branch): Remove prototype.
9143 (single_insn_src_p): Remove prototype.
9144 * config/i860/i860.c (single_insn_src_p): Remove function.
9145 (output_delayed_branch): Remove function.
9146 (output_delay_insn): Remove function.
9147 (va_start): Remove unconditional test and dead code, re-format.
9148 Fix coding style and spelling problems in various comments.
9149 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
9150 (blockage pattern): ...and use it here.
9151 (all define_peephole patterns related to delayed branches): Remove.
9152 Fix coding style and spelling problems in various comments.
9154 2003-08-22 Jason Eckhardt <jle@rice.edu>
9156 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
9157 Remove all uses of the PARAMS macro. Remove superflous prototypes.
9158 Convert all function definitions from traditional to ISO C90 syntax.
9159 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
9160 with 'GCC'. Remove all uses of the PARAMS macro.
9161 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
9162 * config/i860/i860.md: Likewise.
9163 * config/i860/sysv4.h: Likewise.
9164 * config/i860/varargs.asm: Likewise.
9166 2003-08-22 Jason Eckhardt <jle@rice.edu>
9168 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
9170 (tdesc_section): Add prototype.
9171 Update copyright dates.
9172 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
9173 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
9174 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
9175 (targetm): Likewise.
9176 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
9177 for '%d' where necessary.
9178 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
9179 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
9180 by UNITS_PER_WORD when referencing (likewise for .floats).
9181 (I860_SVR4_VARARGS): Rename...
9182 (I860_SVR4_VA_LIST): ...to this.
9183 Call build() with 't' rather than 'field'.
9184 (i860_rtx_costs): New function.
9185 (TARGET_RTX_COSTS): Define.
9186 (i860_internal_label): New function.
9187 (TARGET_ASM_INTERNAL_LABEL): Define.
9188 (i860_file_start): New function.
9189 Update copyright dates.
9190 * config/i860/i860.h (CPP_PREDEFINES): Remove.
9191 (TARGET_CPU_CPP_BUILTINS): Define.
9192 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
9193 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
9194 (ASM_FILE_START): Remove.
9195 (ASM_FILE_START_1): Remove.
9196 (ASM_GLOBALIZE_LABEL): Remove.
9197 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
9198 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
9199 with targetm.asm_out.internal_label.
9200 Update copyright dates.
9201 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
9202 (CPP_PREDEFINES): Remove.
9203 (TARGET_OS_CPP_BUILTINS): Define.
9204 (GLOBAL_ASM_OP): Define.
9205 (ASM_FILE_START): Remove.
9206 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
9207 (TARGET_ASM_FILE_START): Define.
9208 Update copyright dates.
9210 2003-08-22 Jason Eckhardt <jle@rice.edu>
9212 * gcc/config.gcc (i860-*-sysv4*): Add target.
9213 * config/i860/i860-protos.h: New.
9214 * config/i860/i860.c: New.
9215 * config/i860/i860.h: New.
9216 * config/i860/i860.md: New.
9217 * config/i860/sysv4.h: New.
9218 * config/i860/varargs.asm: New.
9219 * config/i860/x-sysv4: New.
9221 2003-08-22 Jason Eckhardt <jle@rice.edu>
9223 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
9224 Remove all uses of PARAMS macro.
9225 Convert all function definitions to ISO C90 syntax.
9226 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
9227 * config/pa/fptr.c: Likewise.
9228 * config/pa/lib2funcs.asm: Likewise.
9229 * config/pa/long_double.h: Likewise.
9230 * config/pa/milli64.S: Likewise.
9231 * config/pa/pa-64.h: Likewise.
9232 * config/pa/pa-hpux.h: Likewise.
9233 * config/pa/pa-hpux10.h: Likewise.
9234 * config/pa/pa-hpux11.h: Likewise.
9235 * config/pa/pa-linux.h: Likewise.
9236 * config/pa/pa-modes.def: Likewise.
9237 * config/pa/pa-osf.h: Likewise.
9238 * config/pa/pa-pro-end.h: Likewise.
9239 * config/pa/pa.md: Likewise.
9240 * config/pa/pa32-linux.h: Likewise.
9241 * config/pa/pa64-linux.h: Likewise.
9242 * config/pa/pa64-hpux.h: Likewise.
9243 * config/pa/pa64-regs.h: Likewise.
9244 * config/pa/quadlib.c: Likewise.
9245 * config/pa/rtems.h: Likewise.
9246 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
9247 all uses of the PARAMS macro.
9248 * config/pa/pa.h: Likewise.
9249 * config/pa/som.h: Likewise.
9251 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
9252 Remove all uses of PARAMS macro.
9253 Convert all function definitions to ISO C90 syntax.
9254 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
9255 Remove all uses of PARAMS macro.
9256 * config/iq2000.h: Remove all uses of PARAMS macro.
9257 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
9259 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9261 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
9262 * config/s390/s390.c (gen_consttable): Remove.
9263 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
9264 (s390_output_pool_entry): New function.
9265 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
9266 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
9267 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
9268 (UNSPECV_POOL_ENTRY): ... this new constant.
9269 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
9270 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
9271 ("*pool_entry"): ... and replace by this new insn.
9272 ("literal_pool_31"): Do not emit anchor label if pool empty.
9274 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
9275 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
9276 (s390_fixup_clobbered_return_reg): Remove.
9277 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
9278 (s390_return_addr_rtx): Always retrieve return address from save area
9279 slot. Use save_return_addr_p to force slot to be filled.
9280 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
9282 2003-08-22 Chris Demetriou <cgd@broadcom.com>
9284 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
9285 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
9286 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
9287 around SB-1 errata if TARGET_FIX_SB1 is set.
9288 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
9289 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
9291 2003-08-22 Roger Sayle <roger@eyesopen.com>
9293 * hashtable.c (ht_expand): Avoid calculating rehash for the common
9294 case that the first probe hits an empty hash table slot.
9296 2003-08-22 Mark Mitchell <mark@codesourcery.com>
9298 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
9300 2003-08-22 Mark Mitchell <mark@codesourcery.com>
9302 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
9303 (ptr_extend_plus_imm): ... this.
9304 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
9305 optimization in C++.
9306 (ia64_output_mi_thunk): Support ILP32 mode.
9308 2003-08-22 Bernardo Innocenti <bernie@develer.com>
9310 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
9312 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
9314 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9316 * config/i386/i386.c (const_int_1_operand): Simplify an
9319 2003-08-22 Alan Modra <amodra@bigpond.net.au>
9321 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
9322 * config/rs6000/ppc64-fp.c: Likewise.
9324 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9326 * cfgcleanup.c: Fix comment typos.
9327 * emit-rtl.c: Likewise.
9328 * optabs.c: Likewise.
9329 * ra-build.c: Likewise.
9330 * rtlanal.c: Likewise.
9333 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9335 * c-decl.c: Fix comment formatting.
9336 * cfgrtl.c: Likewise.
9337 * combine.c: Likewise.
9338 * convert.c: Likewise.
9339 * dominance.c: Likewise.
9340 * dwarf2out.c: Likewise.
9341 * dwarfout.c: Likewise.
9342 * expmed.c: Likewise.
9343 * fold-const.c: Likewise.
9345 * genattrtab.c: Likewise.
9346 * ggc-common.c: Likewise.
9347 * mips-tfile.c: Likewise.
9348 * regmove.c: Likewise.
9350 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9352 * builtin-attrs.def: Fix comment formatting.
9353 * c-pretty-print.c: Likewise.
9354 * diagnostic.h: Likewise.
9355 * langhooks.h: Likewise.
9356 * recog.c: Likewise.
9357 * simplify-rtx.c: Likewise.
9358 * tree.def: Likewise.
9360 2003-08-22 Bernardo Innocenti <bernie@develer.com>
9362 * config/m68k/m68k-protos.h: Convert to ISO C90.
9363 * config/m68k/m68k.c: Likewise.
9365 2003-08-21 Bernardo Innocenti <bernie@develer.com>
9366 Paul Dale <pauli@snapgear.com>
9367 Peter Barada <peter@baradas.org>
9369 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
9372 2003-08-21 Zack Weinberg <zack@codesourcery.com>
9374 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
9375 * config.gcc (*-*-openbsd): Don't set tm_file.
9376 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
9377 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
9378 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
9379 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
9380 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
9381 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
9382 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
9383 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
9384 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
9385 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
9386 xscale-*-coff): Use explicit and complete lists of target headers
9387 to include. Move definitions to tm_defines where appropriate.
9388 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
9389 not-yet-contributed configuration.
9391 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
9392 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
9393 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
9394 * config/i386/nto.h, config/iq2000/iq2000.h,
9395 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
9396 * config/m68k/linux.h, config/m68k/m68k-aout.h
9397 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
9398 * config/m68k/netbsd.h, config/m68k/openbsd.h
9399 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
9400 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
9401 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
9402 Remove includes of other target config headers, and
9403 definitions of macros moved to tm_defines lists. Add #undefs
9404 where now necessary to prevent redefinition warnings.
9406 * config/h8300/coff.h: New file split out of...
9407 * config/h8300/elf.h: ...here.
9408 * config/m68k/hp320base.h: New file split out of...
9409 * config/m68k/hp320.h: ...here.
9410 * config/rs6000/lynxbase.h: New file split out of...
9411 * config/rs6000/lynx.h: ...here.
9413 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
9414 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
9416 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
9417 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
9418 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
9419 Remove unnecessary #ifndef.
9420 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
9421 [under IN_LIBGCC2] with config/.
9423 2003-08-21 Per Bothner <pbothner@apple.com>
9425 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
9427 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
9428 by return_at_eof check. Always call _cpp_pop_buffer at end.
9430 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
9433 * config/h8300/h8300.md (two anonymous patterns): Remove.
9435 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
9437 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
9438 * config/mips/mips.c (function_arg_pass_by_reference): Never return
9441 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
9443 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
9444 and similarly in (A | C) == D where C & ~D != 0.
9446 2003-08-20 Geoffrey Keating <geoffk@apple.com>
9449 * configure.in: When testing with_libs and with_headers, treat
9450 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
9451 * configure: Regenerate.
9453 2003-08-20 Peter Barada <peter@baradas.org>
9455 * longlong.h (umul_ppmm): Add ColdFire support.
9457 2003-08-20 Peter Barada <peter@baradas.org>
9458 Bernardo Innocenti <bernie@develer.com>
9460 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
9461 * config/m68k/m68k.h: Likewise.
9462 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
9463 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
9464 * config/m68k/linux.h: Likewise.
9465 * config/m68k/m68k.c: Likewise.
9466 * config/m68k/m68k.md: Likewise.
9467 * config/m68k/m68kelf.h: Likewise.
9468 * config/m68k/netbsd-elf.h: Likewise.
9469 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
9471 2003-08-20 Bernardo Innocenti <bernie@develer.com>
9473 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
9474 * config/m68k/m68k.md: Likewise.
9476 2003-08-20 Mark Mitchell <mark@codesourcery.com>
9480 2003-08-19 Mark Mitchell <mark@codesourcery.com>
9481 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9482 types with precisions other than those given by native machine
9485 2003-08-20 Gunther Nikl <gni@gecko.de>
9487 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
9488 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
9489 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
9490 * config/m68k/m68k.md (anonymous define_insn): Likewise
9491 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
9492 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
9493 code selected by NO_ASM_FMOVECR
9495 2003-08-20 Gunther Nikl <gni@gecko.de>
9497 * config/m68k/m68k.c (output_move_const_into_data_reg,
9498 output_move_himode): unify MOTOROLA/MIT handling of moveq
9499 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
9502 2003-08-20 Gunther Nikl <gni@gecko.de>
9504 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
9506 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
9507 HOST_WIDE_INT_PRINT_DEC with %wd
9509 2003-08-20 Loren James Rittle <ljrittle@acm.org>
9511 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
9514 2003-08-20 Roger Sayle <roger@eyesopen.com>
9517 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
9518 operands before calling tree_int_cst_lt when performing associative
9521 2003-08-20 Jason Merrill <jason@redhat.com>
9523 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
9524 (EXPR_CHECK): Don't check for 'r' or 's' if we're
9525 checking IS_EXPR_CODE_CLASS.
9526 * calls.c (calls_function_1): Likewise.
9527 * fold-const.c (fold): Likewise.
9528 * tree.c (iterative_hash_expr): Likewise.
9529 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
9531 2003-08-20 Gunther Nikl <gni@gecko.de>
9533 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
9534 depending on MOTOROLA_BSR
9535 * config/m68k/m68k.md (anonymous define_insn): Likewise
9537 2003-08-20 Jason Merrill <jason@redhat.com>
9539 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
9540 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
9541 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
9542 * dojump.c (do_jump): Likewise.
9543 * fold-const.c (operand_equal_p, fold): Likewise.
9544 (tree_expr_nonnegative_p): Likewise.
9546 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
9547 TYPE_USER_ALIGN for FIELD_DECLs.
9549 * attribs.c (decl_attributes): Rebuild the function pointer type after
9550 changing the target type.
9551 * tree.c (get_qualified_type): Also check that the attributes match.
9553 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
9555 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
9556 * objc/config-lang.in (stagestuff): ... to here.
9558 2003-08-19 Mark Mitchell <mark@codesourcery.com>
9561 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
9562 NOP_EXPR) when necessary.
9563 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9564 types with precisions other than those given by native machine
9567 2003-08-19 Geoffrey Keating <geoffk@apple.com>
9569 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
9570 because some macro is defined.
9572 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
9574 * config/i386/darwin.h (ASM_SPEC): New.
9575 (SUBTARGET_EXTRA_SPECS): New.
9576 * config/rs6000/darwin.h (ASM_SPEC): New.
9577 (SUBTARGET_EXTRA_SPECS): New.
9578 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
9579 a cross-compiler between two different processors on Darwin.
9580 * configure: Regenerate.
9582 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
9584 * builtins.c: Fix comment typos.
9585 * c-common.c: Likewise.
9586 * c-decl.c: Likewise.
9587 * c-pretty-print.c: Likewise.
9588 * cfgbuild.c: Likewise.
9589 * cfglayout.c: Likewise.
9590 * cfgloopanal.c: Likewise.
9591 * cgraphunit.c: Likewise.
9592 * cppfiles.c: Likewise.
9593 * dwarfout.c: Likewise.
9595 * fold-const.c: Likewise.
9597 * ggc-page.c: Likewise.
9598 * haifa-sched.c: Likewise.
9599 * pretty-print.c: Likewise.
9602 * value-prof.c: Likewise.
9604 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
9606 * c-decl.c: Follow spelling conventions.
9607 * cppfiles.c: Likewise.
9609 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
9611 * c-common.c: Fix comment formatting.
9612 * c-common.h: Likewise.
9613 * c-decl.c: Likewise.
9614 * cppinit.c: Likewise.
9615 * cpplib.h: Likewise.
9616 * emit-rtl.c: Likewise.
9617 * input.h: Likewise.
9618 * line-map.h: Likewise.
9621 * simplify-rtx.c: Likewise.
9623 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
9625 * unwind-c.c: Add libgcc-style exception.
9626 * unwind-dw2.c: Likewise.
9627 * unwind-pe.h: Likewise.
9628 * unwind-sjlj.c: Likewise.
9629 * unwind.inc: Likewise.
9631 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
9633 PR c/5582 PR c++/10538
9634 * langhooks-def.h (lhd_decl_uninit): Declare.
9635 (LANG_HOOKS_DECL_UNINIT): New macro.
9636 (LANG_HOOKS_INITIALIZER): Adjust.
9637 * langhooks.h (struct lang_hooks): Add new field
9639 * langhooks.c (lhd_decl_uninit): Define.
9640 * c-common.c (c_decl_uninit_1): New function.
9641 (c_decl_uninit): New function.
9642 (warn_init_self): Define.
9643 * c-common.h (c_decl_uninit): Declare.
9644 (warn_init_self): Declare.
9645 * c.opt: Introduce -Winit-self.
9646 * c-opts.c (c_common_handle_options): Set warn_init_self.
9647 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
9648 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
9649 * function.c (uninitialized_vars_warning): Call the language hook.
9650 * doc/invoke.texi: Document -Winit-self.
9652 2003-08-19 Chris Demetriou <cgd@broadcom.com>
9654 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
9655 to use better predicates and constraints. Define new
9656 instruction to handle "trap_if" with DI-mode arguments.
9657 (conditional_trap): FAIL if trap code is not 0.
9659 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
9661 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
9662 strstr with $pb to a strcompare with "<pic base>"
9663 (ix86_output_addr_diff_elt): Output the real pic base.
9665 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
9667 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
9668 (LANG_HOOKS_INITIALIZER): Correct.
9669 * c-lang.c: Likewise.
9671 2003-08-19 Jan Hubicka <jh@suse.cz>
9673 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
9674 (cgraph_varpool_mark_needed_node): Likewise.
9675 * cgraph.h (notice_global_symbol): Declare
9676 * varasm.c (notice_global_symbol): Break out from ...
9677 (assemble_start_function): ... here; update for variables.
9678 (assemble_variable): Use notice_global_symbol.
9680 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
9682 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
9683 expect SFmode and DFmode arguments to be passed in FPRs,
9684 regardless of the underlying type.
9686 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
9689 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
9690 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
9692 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
9695 * c-typeck.c (set_init_index): Check for negative index.
9697 2003-08-18 Bob Wilson <bob.wilson@acm.org>
9699 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
9701 * config/xtensa/crtn.asm (_init, _fini): Likewise.
9702 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
9703 __umodsi3, __modsi3): Likewise.
9704 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
9707 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
9709 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
9711 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
9713 * config/mips/mips.md: Quote C code in braces. Remove use of
9714 fake const0_rtx operands. Remove double backslashes. Use \;.
9715 Remove workarounds for bogus warnings.
9717 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
9719 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
9720 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
9721 rather than TARGET_MIPS4300.
9722 (mulsf3_internal, mulsf3_r4300): Likewise.
9724 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
9726 * config/mips/mips.md: Renumber unspecs. Clean up comments.
9728 2003-08-17 Roger Sayle <roger@eyesopen.com>
9730 * simplify-rtx.c (associative_constant_p): New function to test
9731 whether an RTX expression is an immediate constant.
9732 (simplify_associative_operation): New function to perform some
9733 reassociation optimizations of associative binary expressions.
9734 (simplify_binary_operation): Use simplify_associative_operation
9735 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
9736 Floating point expressions are only reassociated when unsafe
9737 math optimizations are permitted.
9739 2003-08-17 Andreas Jaeger <aj@suse.de>
9741 * config/alpha/alpha.md: Remove usage of PARAMS.
9743 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
9744 * config/i386/i386-interix.h: Likewise.
9745 * config/i386/winnt.c: Likewise.
9746 * config/i386/cygming.h: Likewise.
9747 * config/i386/cygwin2.c: Likewise.
9748 * config/darwin.c: Likewise.
9749 * config/darwin-c.c: Likewise.
9750 * config/darwin-protos.h: Likewise.
9751 * config/darwin.h: Likewise.
9752 * config/s390/s390-protos.h: Likewise.
9753 * config/s390/s390.c: Likewise.
9754 * config/ia64/ia64.c: Likewse
9755 * config/ia64/ia64-protos.h: Likewise.
9756 * config/ia64/ia64-c.c: Likewise.
9758 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9760 * config/sparc/sparc.c: Convert to ISO C.
9762 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
9763 * config/sparc/sparc.c: Likewise.
9765 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
9768 * stmt.c (expand_expr_stmt_value): Don't warn about any void
9771 2003-08-16 Jan Hubicka <jh@suse.cz>
9773 * i386.c (ix86_fntype_regparm): Rename from ...
9774 (ix86_function_regparm): ... this one; add fastcall and local
9776 (ix86_function_ok_for_sibcall): Update.
9777 (ix86_return_pops_args): Likewise.
9778 (init_cumulative_args): Likewise.
9779 (x86_can_output_mi_thunk): Likewise.
9780 (function_arg): Fix formating.
9781 (x86_this_parameter): Fix fastcall.
9782 (x86_output_mi_thunk): Likewise.
9784 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
9785 body as reachable; mark nested functions as needed too.
9786 (dump_cgraph): Do not output global.calls.
9787 * cgraph.h (cgraph_global_info): Kill.
9788 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
9789 (record_call_1): Speedup.
9790 (cgraph_analyze_function): Break out from ...; compute inlining
9792 (cgraph_finalize_compilation_unit): ... here.
9793 (cgraph_mark_inline): Kill computation of calls.
9794 (cgraph_decide_inlining): Do not compute most of initial values.
9796 2003-08-14 Roger Sayle <roger@eyesopen.com>
9798 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
9799 to negate if either operand is easy to negate, if we don't care
9800 about sign-dependent rounding.
9801 (negate_expr): Make the logic to negate a REAL_CST explicit.
9802 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
9803 that's easy to negate, if we don't honor sign-dependent rounding.
9804 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
9805 negate, and the symmetric A * -B as -A * B if A is easy to negate.
9806 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
9807 -C/D if B and C are cheap to negate. Add an explicit rule to
9808 optimize X/-1.0 as -X when we don't care about signaling NaNs.
9810 2003-08-14 Zack Weinberg <zack@codesourcery.com>
9812 * Makefile.in (tm_file): Rename tm_include_list.
9813 (tm_p_file): Rename tm_p_include_list.
9814 (build_xm_file): Rename build_xm_include_list.
9815 (host_xm_file): Rename host_xm_include_list.
9816 (xm_file): Rename xm_include_list.
9817 (xm_file_list): Add to be substituted.
9818 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
9820 (bt-load.o): Add missing dependency on $(TM_H).
9821 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
9822 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
9823 build_xm_file, generate both *_file_list and *_include_list
9824 values from it. (xm_file_list was formerly not being generated.)
9825 In *_include_list, prefix the names of all headers found in
9826 $(srcdir)/config with config/. In each loop, consider only
9827 the special case files that can actually appear in that list.
9828 AC_SUBST all *_file_list and all *_include_list variables; do
9829 not AC_SUBST the plain *_file variables.
9830 * configure: Regenerate.
9832 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9834 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
9836 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9838 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
9840 (attr_length_call): Include it here. Improve length estimate for
9842 (output_call): Use targetm.binds_local_p.
9844 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9846 * builtins.c (CASE_MATHFN): New helper macro.
9847 (mathfn_built_in): Simplify and sort.
9849 * protoize.c (substr): Delete, callers changed to `strstr'.
9851 2003-08-13 Zack Weinberg <zack@codesourcery.com>
9853 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
9854 * config/iq2000/xm-iq2000.h: Delete file.
9856 2003-08-13 Geoffrey Keating <geoffk@apple.com>
9858 * gengtype.c (walk_type): Process a subobject before processing
9859 the pointer that points to the subobject.
9861 2003-08-13 Per Bothner <pbothner@apple.com>
9863 * regclass.c (init_reg_modes): Make non-static.
9864 Rename to init_reg_modes_once per new naming convention.
9865 (init_regs): Don't call init_reg_modes here.
9866 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
9867 * rtl.h (init_reg_modes_once): New declaration.
9868 * toplev.c (backend_init): Call init_regs after init_emit_once.
9870 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
9872 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
9873 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
9875 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
9877 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
9878 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
9880 2003-08-13 Dale Johannesen <dalej@apple.com>
9882 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
9883 handling of decrement-and-branch farther than 32 bits.
9885 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
9887 * configure.in (make_compare_target): Move test to ...
9888 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
9889 * configure: Regenerate.
9891 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
9893 * config/mips/iris6.h: Convert to C90 prototypes.
9894 * config/mips/irix6-libc-compat.c: Likewise.
9895 * config/mips/mips-protos.h: Likewise.
9896 * config/mips/mips.c: Likewise.
9898 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
9900 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
9901 for selected machines. Comment heavily.
9902 fixinc/fixincl.x: Rebuild.
9903 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
9905 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
9907 * config/mips/mips.h: Tweak various comments.
9908 * config/mips/mips.c: Likewise.
9910 2003-08-11 James E Wilson <wilson@tuliptree.org>
9912 PR optimization/11319
9914 * alias.c (find_base_value, case REG): Return 0 not src if no base
9917 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9919 * gcse.c (gmalloc): Fix last change.
9921 2003-08-11 Roger Sayle <roger@eyesopen.com>
9923 * simplify-rtx.c (simplify_binary_operation): Replace calls to
9924 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
9925 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
9926 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
9928 2003-08-11 Roger Sayle <roger@eyesopen.com>
9930 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
9931 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
9932 typecode for an ABS_EXPR.
9934 * doc/c-tree.texi: Document ABS_EXPR.
9936 2003-08-11 Roger Sayle <roger@eyesopen.com>
9938 * fold-const.c (fold): Optimize any associative floating point
9939 operator with -funsafe-math-optimizations, not just MULT_EXPR.
9941 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
9943 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
9944 information in SHmedia case too.
9945 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
9947 (__set_fpscr): Use an access via GOT for PIC case.
9949 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
9951 * configure.in (intermodule): Make switch test more portable.
9952 * configure: Regenerate.
9954 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
9956 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
9957 (restrap): Likewise.
9959 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9961 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
9962 (grealloc): Size argument is a size_t.
9963 (gcalloc): New function. Use throughout in lieu of
9966 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
9968 * config/ia64/ia64.c (ia64_reorg): Likewise.
9969 * conflict.c (conflict_graph_new): Likewise.
9970 * fixinc/fixincl.c (run_compiles): Likewise.
9971 * genattrtab.c (optimize_attrs): Likewise.
9972 * genrecog.c (new_decision): Likewise.
9973 * haifa-sched.c (schedule_block): Likewise.
9974 * hashtable.c (ht_create): Likewise.
9976 2003-08-11 Bob Wilson <bob.wilson@acm.org>
9978 * config/xtensa/lib2funcs.S: Fix whitespace.
9979 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
9980 syntax where appropriate. Remove unnecessary backslash escapes.
9981 Reformat comments and fix some code formatting.
9982 (extendqisi2): Rearrange conditional.
9983 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
9984 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
9987 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
9989 * config/mips/mips.c: Various formatting fixes.
9990 (override_options): Resync -mtune handling with gas.
9991 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
9992 * config/mips/mips.h: More formatting fixes.
9993 (mips_abi): Move declaration.
9994 * config/mips/mips.md (exception_receiver): Add mode to
9997 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
9999 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
10001 (bdesc_1arg): Remove evsplati and evsplatfi.
10003 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
10005 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
10008 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10010 * builtins.c (expand_builtin_strcat): Optimize constant strings.
10012 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
10014 * pretty-print.c (pp_base_indent): Rename from pp_indent.
10015 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
10016 (struct c_pretty_print_info): Add more fields.
10017 (pp_c_left_paren): Move to c-pretty-print.c.
10018 (pp_c_right_paren): Likewise.
10019 (pp_c_left_brace): Likewise.
10020 (pp_c_right_brace): Likewise.
10021 (pp_c_left_bracket): Likewise.
10022 (pp_c_right_bracket): Likewise.
10023 (pp_c_declarator): Declare.
10024 (pp_c_direct_declarator): Likewise.
10025 (pp_c_specifier_qualifier_list): Likewise.
10026 (pp_c_type_id): Likewise.
10027 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
10028 (pp_c_type_qualifier_list): New.
10029 (pp_c_pointer): Likewise.
10030 (pp_c_parameter_type_list): Likewise.
10031 (pp_c_function_definition): Likewise.
10032 (pp_c_id_expression): Likewise.
10033 (pp_c_simple_type_specifier): Tidy.
10034 (pp_c_unary_expression): Likewise.
10035 (pp_c_expression): Likewise.
10036 (pp_c_pretty_printer_init): Likewise.
10037 (pp_c_specifier_qualifier_list): Rework..
10038 (pp_c_abstract_declarator): Likewise.
10039 (pp_c_postfix_expression): Likewise.
10040 (pp_c_primary_expression): Likewise.
10041 (pp_c_cast_expression): Likewise.
10042 (pp_c_direct_abstract_declarator): Likewise.
10043 (pp_c_storage_class_specifier): Likewise.
10044 (pp_c_function_specifier): Likewise.
10045 (pp_c_declaration_specifiers): Likewise.
10046 (pp_c_direct_declarator): Likewise.
10047 (pp_c_declarator): Likewise.
10048 (pp_c_declaration): Likewise.
10049 (pp_c_statement): Likewise.
10050 (pp_c_integer_constant): Rename from pp_c_integer_literal.
10051 (pp_c_character_constant): Rename from pp_c_character_literal.
10052 (pp_c_bool_constant): Rename from pp_c_bool_literal.
10053 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
10054 (pp_c_floating_constant): Rename from pp_c_real_literal.
10055 (pp_c_constant): Rename from pp_c_literal.
10056 * c-lang.c: Include diagnostic.h and c-pretty-print.h
10057 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
10058 (c_initialize_diagnostics): New.
10059 * Makefile.in (c-lang.o): Update dependency.
10061 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
10063 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
10065 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
10067 * config/mips/mips.c (mips_no_mips16_string): Remove.
10068 (override_options): Don't handle -mips16 as part of -mipsN.
10069 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
10070 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
10071 (TARGET_OPTIONS): Remove -mno-mips16.
10073 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
10075 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
10076 (coprocessor2_operand): Likewise.
10077 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
10078 (lookup_name): Remove declaration.
10079 (abort_with_insn): Remove. Replace all uses with fatal_insn.
10080 (mips16, mips_abicalls): Remove.
10081 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
10082 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
10083 (coprocessor_operand, coprocessor2_operand): Remove.
10084 (override_options): Don't set mips16 or mips_abicalls.
10085 (print_operand): Don't expect SIGN_EXTEND operands.
10086 (mips_secondary_reload_class): Likewise.
10087 (mips_output_conditional_branch): Remove disabled long-branch code.
10088 * config/mips/mips.h (call_used_regs): Remove declaration.
10089 (may_call_alloca): Likewise.
10090 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
10091 (mips_abicalls, mips16): Remove declarations.
10092 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
10093 (CC1_SPEC): Remove outdated comment.
10094 (MIPS_VERSION, MACHINE_TYPE): Remove.
10095 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10096 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
10097 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
10098 (PUSH_ROUNDING): Likewise.
10099 (ASSEMBLER_SCRATCH_REGNUM): Remove.
10100 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
10101 and mips16 with TARGET_MIPS16.
10103 2003-08-09 Per Bothner <pbothner@apple.com>
10105 * cppinit.c (cpp_read_main_file): Split out source-independent
10106 initialization to separate function ...
10107 (cpp_post_options): New function.
10108 * cppfiles.c (cpp_stack_file): Rename public name to ...
10109 (_cpp_stack_file): New internal function name.
10110 * cpplib.h: Update accordingly.
10111 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
10112 (cpp_read_main_file): Don't initialize line here.
10113 * c-opts.c (c_common_post_options): Call cpp_post_options.
10114 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
10115 * fix-header.c (read_scan_file): Call cpp_post_options.
10117 2003-08-09 Per Bothner <per@bothner.com>
10119 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
10121 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10123 * pa.c (pa_asm_output_mi_thunk): Fix typo.
10125 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
10127 PR preprocessor/11839
10128 * cppfiles.c (open_file): Handle ENOTDIR.
10130 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
10133 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
10135 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10137 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
10138 source/destination is not a register operand.
10140 2003-08-08 Richard Henderson <rth@redhat.com>
10143 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
10144 RETURN_ADDRESS_POINTER_REGNUM.
10145 (ia64_expand_prologue): Don't frob it.
10146 (ia64_output_function_epilogue): Likewise.
10147 (ia64_return_addr_rtx): New.
10148 (ia64_split_return_addr_rtx): New.
10149 * config/ia64/ia64-protos.h: Update.
10150 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
10151 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
10152 (GENERAL_REGNO_P): Don't check it.
10153 (AR_*_REGNUM): Renumber.
10154 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
10155 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
10156 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
10157 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
10158 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
10159 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
10160 (movdi_ret_addr): New.
10162 2003-08-08 Geoffrey Keating <geoffk@apple.com>
10164 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
10166 2003-08-08 Roger Sayle <roger@eyesopen.com>
10168 * tree.h (get_identifier) Define a macro form of get_identifier
10169 that calls get_identifier_with_length when the string is constant.
10170 (get_identifier_with_length): Change type of second argument to
10171 size_t in prototype.
10172 * stringpool.c (get_identifier): Undefine the macro before giving
10173 the function definition.
10174 (get_identifier_with_length): Change type of second argument to
10175 size_t in function definition.
10176 * hashtable.c (calc_hash): Change type of second argument to size_t.
10177 (ht_lookup): Change type of third argument to size_t. Reorganize
10178 to speed-up the cases where the hash table slot is empty, or the
10179 first probe matches (i.e. there isn't a collision).
10180 * hashtable.h (ht_lookup): Adjust function prototype.
10182 2003-08-08 Bernardo Innocenti <bernie@develer.com>
10186 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
10188 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
10190 * common.opt: Add debug switches.
10191 * flags.h (use_gnu_debug_info_extensions): Boolify.
10192 * opts.c (write_symbols, debug_info_level,
10193 use_gnu_debug_info_extensions): Move from toplev.c.
10194 (set_debug_level): New.
10195 (common_handle_options): Handle debug switches.
10196 (print_help): Display target options directly.
10197 * toplev.c (debug_hooks): Don't initialize.
10198 (write_symbols, debug_info_level,
10199 use_gnu_debug_info_extensions): Move to opts.c.
10200 (debug_args, display_help, decode_g_option): Remove.
10201 (process_options): Set no debug if level zero here,
10202 and no-debug-hooks. Error here if impossible debug format selected.
10203 * toplev.h (display_help, decode_g_option): Remove.
10205 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
10207 * tree.c (get_file_function_name_long): Fix size of alloca() area.
10209 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
10211 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
10212 and gcc_cv_prog_cmp_skip.
10213 * configure: Regenerate.
10215 2003-08-08 Stan Cox <scox@redhat.com>
10217 * config/iq2000: New port.
10218 * config.gcc (iq2000-*-elf): Added.
10219 * doc/install.texi (Specific): Add iq2000 description.
10221 2003-08-08 Andreas Schwab <schwab@suse.de>
10223 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
10224 and insert missing empty argument.
10225 * configure: Regenerate.
10227 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10229 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
10230 (attr_length_millicode_call): Likewise.
10231 (attr_length_call): Likewise. Revise some maximum insn lengths.
10232 (attr_length_indirect_call): Likewise.
10233 (output_call): Fix thinko that added extra nop.
10234 * pa.h (IN_NAMED_SECTION_P): Define.
10237 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
10238 __STDC_EXT__ when using C++ dialect.
10240 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
10242 * sh.c (calc_live_regs): If the return address pointer is live,
10244 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
10245 for saves / restores.
10246 (sh_expand_epilogue): If sh_media_register_for_return returns a
10247 register number, flag the instructions that restores PR_MEDIA_REG
10249 Remove dead update of offset.
10250 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
10251 we can use the result of get_hard_reg_initial_val.
10252 * sh.md (UNSPEC_RA): New constant.
10253 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
10254 (load_ra). Handle UNSPEC_RA.
10255 (sibcall_media): Use PR_MEDIA_REG.
10257 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
10258 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
10259 needs saving on SHmedia.
10261 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
10263 * config/s390/s390.md: Replace all occurrences of \\t with \t.
10265 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
10267 * local-alloc.c (combine_regs): Fix comment typo.
10269 2003-08-06 Zack Weinberg <zack@codesourcery.com>
10271 * c-decl.c (builtin_decls): Replace with first_builtin_decl
10272 and last_builtin_decl.
10273 (c_init_decl_processing): Initialize both.
10274 (c_reset_state): Iterate from first_builtin_decl to
10275 last_builtin_decl inclusive to reintroduce builtins.
10277 2003-08-06 David Mosberger <davidm@hpl.hp.com>
10279 * doc/extend.texi (Function Attributes): Document the IA-64 version
10280 of the "model" attribute.
10282 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
10283 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
10284 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
10286 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
10287 (ia64_encode_section_info): Likewise.
10288 (ia64_attribute_table): Add "model" attribute.
10289 (TARGET_ENCODE_SECTION_INFO): Define.
10290 (small_addr_symbolic_operand): New function.
10291 (got_symbolic_operand): Return 0 for a symbolref to an object
10292 in the small address area.
10293 (enum ia64_addr_area): New type.
10294 (small_ident1): New variable.
10295 (small_ident2): Likewise.
10296 (init_idents): New function.
10297 (ia64_get_addr_area): Likewise.
10298 (ia64_encode_addr_area): Likewise.
10299 (ia64_encode_section_info): Likewise.
10300 (ia64_expand_load_address): For symbolic references to objects in
10301 the small-address-area, load the address via gen_rtx_SET() (which,
10302 eventually, will expand into "addl").
10304 2003-08-06 Per Bothner <pbothner@apple.com>
10306 * line-map.h (fileline): New typedef.
10307 (struct line_map, linemap_add, linemap_lookup): Use it.
10308 * input.h (struct location_s): Comment notes that long-term we want
10309 to replace it by fileline.
10311 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
10313 Fix SHcompact exception handling:
10314 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
10315 by the prologue, return a MEM with return_address_pointer_rtx
10317 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
10318 (RETURN_ADDR_OFFSET): Don't define.
10319 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
10320 registers that are visible in compact mode. Show that SHmedia
10321 registers still exist in compact mode, even if there are not
10322 readily accessible.
10323 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
10324 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
10325 and DW_EH_PE_pcrel for pic data.
10326 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
10327 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
10328 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
10329 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
10330 * sh.md (movsi_media-1): New splitter.
10332 2003-08-06 Graeme Peterson <gp@qnx.com>
10334 * config/i386/nto.h: New.
10335 * config/i386/t-nto: New.
10336 * config.gcc (i[34567]86-*-nto-qnx*): New.
10338 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
10340 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
10342 2003-08-06 Alan Modra <amodra@bigpond.net.au>
10344 * calls.c (load_register_parameters): Arrange for call_fusage to
10345 report the whole register as used when shifting to the msb.
10347 2003-08-05 Roger Sayle <roger@eyesopen.com>
10349 * builtins.c (expand_builtin): When not optimizing, call the library
10350 function for all builtins that have library functions (except alloca).
10352 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
10354 * c.opt: Introduce -fworking-directory.
10355 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
10356 * c-common.h (flag_working_directory): Declare.
10357 * c-common.c (flag_working_directory): Define.
10358 * c-opts.c (c_common_handle_options): Set it.
10359 (sanitize_cpp_opts): Set...
10360 * cpplib.h (struct cpp_options): ... working_directory option.
10361 (struct cpp_callbacks): Add dir_change.
10362 * cppinit.c (read_original_filename): Call...
10363 (read_original_directory): New. Look for # 1 "directory//"
10365 (cpp_read_main_file): Call dir_change callback if working_directory
10367 * gcc.c (cpp_unique_options): Pass -g*.
10368 * c-lex.c (cb_dir_change): New.
10369 (init_c_lex): Set dir_change callback.
10370 * toplev.c (src_pwd): New static variable.
10371 (set_src_pwd, get_src_pwd): New functions.
10372 * toplev.h (get_src_pwd, set_src_pwd): Declare.
10373 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
10374 * dwarf2out.c (gen_compile_unit_die): Likewise.
10375 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
10377 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
10379 * pretty-print.h (pp_set_line_maximum_length): Make macro.
10380 (pp_set_prefix): Likewise.
10381 (pp_destroy_prefix): Likewise.
10382 (pp_remaining_character_count_for_line): Likewise.
10383 (pp_clear_output_area): Likewise.
10384 (pp_formatted_text): Likewise.
10385 (pp_last_position_in_text): Likewise.
10386 (pp_emit_prefix): Likewise.
10387 (pp_append_text): Likewise.
10388 (pp_flush): Likewise.
10389 (pp_format_text): Likewise.
10390 (pp_format_verbatim): Likewise.
10391 (pp_tree_identifier): Tidy.
10392 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
10393 (pp_base_format_verbatim): Rename from pp_format_verbatim.
10394 (pp_base_flush): Rename from pp_flush.
10395 (pp_base_set_line_maximum_length): Rename from
10396 pp_set_line_maximum_length.
10397 (pp_base_clear_output_area): Rename from pp_clear_output_area.
10398 (pp_base_set_prefix): Rename from pp_set_prefix.
10399 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
10400 (pp_base_emit_prefix): Rename from pp_emit_prefix.
10401 (pp_base_append_text): Rename from pp_append_text.
10402 (pp_base_formatted_text): Rename from pp_formatted_text.
10403 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
10404 (pp_base_remaining_character_count_for_line): Rename from
10405 pp_remaining_character_count_for_line.
10406 * diagnostic.h (diagnostic_format_decoder): Tidy.
10407 (diagnostic_flush_buffer): Likewise.
10408 * c-pretty-print.h: (pp_c_string_literal): Declare.
10409 (pp_c_real_literal): Likewise.
10410 (pp_c_integer_literal): Likewise.
10411 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
10413 (pp_c_character_literal): Tidy.
10414 (pp_c_string_literal): Make public.
10415 (pp_c_bool_literal): Likewise.
10416 (pp_c_integer_literal): Likewise.
10417 (pp_c_real_literal): Likewise.
10419 * Makefile.in (C_PRETTY_PRINT_H): New variable.
10420 (c-pretty-print.o): Update dependence.
10422 2003-08-05 Chris Demetriou <cgd@broadcom.com>
10424 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
10425 ".set nomacro" state.
10426 (fix_truncsfsi2_macro): Likewise.
10428 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
10430 * tree.h (DID_INLINE_FUNC): Remove macro.
10431 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
10432 add tree check for FUNCTION_DECL.
10433 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
10434 (struct tree_decl): Rename inlined_function_flag to
10435 declared_inline_flag.
10436 * c-common.h (c_lang_decl): Remove.
10437 (DECL_ESTIMATED_INSNS): Remove.
10438 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
10439 (DECL_DECLARED_INLINE_P): Remove.
10440 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
10441 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
10442 (finish_function): Make uninlinable a bool. Fixup call to
10443 tree_inlinable_function_p() and fix some code style issues.
10444 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
10445 * cgraph.c (dump_cgraph): Likewise.
10446 * cgraphunit.c (cgraph_decide_inlining): Likewise
10447 (cgraph_finalize_compilation_unit): Likewise.
10448 Also update call to tree_inlinable_function_p().
10449 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
10450 look at DECL_DECLARED_INLINE and reverse logic.
10451 * print-tree.c (print_node): Likewise.
10452 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
10453 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
10455 * tree-inline.c (inlinable_function_p): Split up in this function to
10456 check for basic inlining inhibiting conditions, and new
10457 limits_allow_inlining() function. Warn if inlining is impossible
10458 because the inline candidate calls alloca or uses sjlj exceptions.
10459 (limits_allow_inlining): this new function to check if the inlining
10460 limits are satisfied. Throttle from currfn_max_inline_insns, not from
10461 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
10462 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
10464 (tree_inlinable_function_p): Make a bool. Update call to
10465 inlinable_function_p
10466 (expand_call_inline): Use limits_allow_inlining() when not in
10467 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
10468 instead see if the function was declared `inline'.
10470 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
10472 * gcse.c (try_replace_reg): Fix updating of note.
10474 2003-08-04 Roger Sayle <roger@eyesopen.com>
10476 PR middle-end/11771
10477 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
10478 logic in negate_expr, i.e. we don't invert (A-B) for floating
10479 point types unless flag_unsafe_math_optimizations.
10481 2003-08-04 Roger Sayle <roger@eyesopen.com>
10483 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
10484 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
10485 for floating point expressions with -ffast-math.
10486 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
10487 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
10489 2003-08-04 Roger Sayle <roger@eyesopen.com>
10491 * c-common.c (flag_noniso_default_format_attributes): Delete.
10492 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
10493 (c_attrs_initialized): Delete.
10494 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
10495 always call c_init_attributes.
10496 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
10497 set c_attrs_initialized when done.
10498 (c_common_insert_default_attributes): Delete.
10499 * c-common.h (flag_noniso_default_format_attributes): Delete.
10500 (c_coomon_insert_default_attributes): Delete prototype.
10501 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
10502 flag_noniso_default_format_attributes.
10504 * c-decl.c (c_insert_default_attributes): Delete.
10505 * c-tree.h (c_insert_default_attributes): Delete prototype.
10507 * attribs.c (decl_attributes): Don't call insert_default_attributes
10508 langhook. Update function description comment.
10509 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
10510 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
10511 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
10512 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
10514 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
10517 2003-08-04 Richard Sandiford <rsandif@redhat.com>
10519 * config/mips/mips.c (override_options): Disable -G on targets that
10520 have no .section support.
10521 (mips_select_section): Use default_select_section for such targets.
10523 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
10525 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
10526 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
10527 * fixinc/fixincl.x: Rebuild.
10528 * fixinc/tests/base/regexp.h: New test.
10530 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
10532 * c-ppoutput.c (cb_line_change): Don't skip line changing while
10533 parsing macro arguments in the top-level context.
10535 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
10537 * config.in: Remove HAVE_LSTAT.
10538 * configure, configure.in: Don't test for lstat.
10540 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10542 * opts.c (decode_options): Do language-specific initialization for
10543 the global diagnostic context.
10544 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
10545 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
10546 (LANG_HOOKS_INITIALIZER): Adjust.
10547 * langhooks.h (struct lang_hooks): Add new field
10548 initialize_diagnostics.
10549 * langhooks.c (lhd_initialize_diagnostics): Define.
10551 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10553 * pretty-print.h: Adjust macro definitions.
10554 * pretty-print.c (pp_newline): Rename to pp_base_newline.
10555 (pp_character): Rename to pp_base_character.
10556 (pp_string): Rename to pp_base_string.
10557 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
10558 (pp_newline): Likewise. Adjust.
10559 (pp_c_char): Adjust.
10561 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10563 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
10564 BUILT_IN_LLABS): Move to miscellaneous section.
10566 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
10568 PR preprocessor/11534
10569 * cppexp.c (parse_defined): Warn only if -pedantic.
10571 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
10573 * cppfiles.c (stack_file): Use file path.
10575 2003-08-02 Roger Sayle <roger@eyesopen.com>
10577 * builtin-types.def (BT_SSIZE): New primitive type.
10578 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
10579 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
10580 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
10581 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
10582 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
10583 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
10584 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
10585 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
10586 few functions that define default attributes using it.
10587 * c-common.c (c_common_insert_default_attributes): Do nothing.
10589 * doc/extend.texi: Document these "new" builtins.
10591 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
10593 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
10594 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
10595 when -mieee-fp set and -shared not set.
10596 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
10598 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
10600 * cppfiles.c (struct _cpp_file): Rename once_only_next to
10601 next_file. Remove import and pragma_once, add once_only.
10602 (find_file): Add new file structures to the all_files list.
10603 (should_stack_file): Mark #import-ed files once-only, and
10604 don't stack them if the file has already been stacked.
10605 (_cp_mark_file_once_only): Simplify.
10606 * cpphash.h (struct cpp_reader): Rename once_only_files
10607 to all_files. Rename saw_pragma_once to seen_once_only.
10608 (_cpp_mark_file_once_only): Update prototype.
10609 * cpplib.c (do_pragma_once): Update.
10611 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
10613 * cppfiles.c (ENOTDIR): Remove.
10614 (open_file_in_dir): Rename find_file_in_dir. Handle errors
10615 other than ENOENT here.
10616 (once_only_file_p): Rename should_stack_file.
10617 (find_file, open_file_failed, read_file_guts): Report errors
10618 with full path name.
10619 (read_file): Move pch handling to should_stack_file.
10620 (should_stack_file): Handle PCH and once-only issues, and
10622 (stack_file): Don't do file reads.
10624 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10626 * libgcov.c (gcov_exit): Cleanup and fix.
10627 * profile.c (compute_value_histograms): Don't try to read profiles
10628 that are not present.
10630 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10632 * builtins.def: Categorize.
10634 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
10636 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
10638 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
10640 * config.gcc: Enable posix threads by default on darwin.
10642 2003-08-01 Jakub Jelinek <jakub@redhat.com>
10644 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
10645 even if nehedges1 is 0.
10647 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
10649 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
10650 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
10651 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
10654 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
10655 * fixinc/fixincl.x: Regenerate.
10656 * fixinc/tests/base/math.h: Regenerate to match test_text change.
10658 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10660 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
10662 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10664 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
10665 for accesses to exc_ptr.
10667 2003-08-01 Geoffrey Keating <geoffk@apple.com>
10669 * doc/sourcebuild.texi (Front End Directory): Don't make references
10670 to libsubdir, it's not part of the interface to frontends.
10671 * doc/install.texi (Configuration): Help users read faster by saying
10672 that GCC's configure options are the standard autoconf ones.
10673 Mention --libdir. Update the default rules for finding the
10674 assembler. Don't use libsubdir since we haven't said what it means.
10675 (Specific): In the Solaris 7 notes, update the place to put the
10677 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
10678 * doc/cpp.texi (Search Path): Actually, the search path
10679 depends on libdir, which can relocate with cpp.
10680 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
10681 now a private interface between the Makefile and the driver.
10683 2003-08-01 Richard Henderson <rth@redhat.com>
10685 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
10687 * varasm.c (lookup_constant_def): New function.
10688 * rtl.h (lookup_constant_def): Declare it.
10689 * dwarf2out.c (loc_descriptor_from_tree): Use it.
10690 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
10692 2003-08-01 Zack Weinberg <zack@codesourcery.com>
10694 * c-decl.c (gettags, pushdecl_function_level): Delete.
10695 (last_function_parm_vars): Rename last_function_parm_others.
10696 (current_function_parm_vars): Rename current_function_parm_others.
10697 (struct c_scope): Rewrite comment explaining this data structure.
10698 Add names_last, blocks_last, parms_last fields. Rename
10699 incomplete_list to incomplete.
10700 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
10701 (poplevel): Ignore second argument. No need to nreverse
10702 anything. Restructure such that each list is processed
10703 exactly once. Use 'const location_t *locus' syntactic sugar
10704 variable where useful. Issue unused variable warnings
10705 ourselves, do not rely on function.c.
10706 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
10707 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
10708 (implicitly_declare): decl cannot be error_mark_node.
10709 (undeclared_variable): Manipulate scope structure directly.
10710 (c_make_fname_decl): Likewise.
10711 (getdecls, c_init_decl_processing): Fix comment.
10712 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
10713 for 'last' variable.
10714 (grokparms): No need to nreverse parms list.
10715 (store_parm_decls_newstyle): Set up the parms_last and
10716 names_last fields of the new scope too.
10717 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
10718 on parms to begin with; check this under ENABLE_CHECKING. Set
10720 (check_for_loop_decls): Refer directly to current_scope->tags.
10721 Use consistent quote style in diagnostics.
10722 (c_write_global_declarations): The names list is not backward.
10724 * c-common.h: Don't prototype gettags.
10725 * c-parse.in: Call poplevel with second argument 0 always.
10727 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10729 * builtins.def: Resort builtins.
10731 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10733 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
10734 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
10735 Prepend "__builtin_" onto NAME with string concatenation. Remove
10736 explicit "__builtin_" from each macro call.
10738 Reformat entire file.
10740 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10742 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
10743 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
10745 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
10747 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
10748 CCL1, or CCL2 modes with floating point operations.
10750 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
10751 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
10752 "*subdf3_cconly"): New insns.
10753 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
10755 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
10757 * Makefile.in: Refine dependencies.
10758 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
10759 * c.opt: Update help for -Wimport.
10760 * cppfiles.c: Include hashtab.h. Update comments.
10761 (stack_file): Read the file before updating dependencies.
10762 (once_only_file_p): Be smarter about marking once-only files.
10763 (_cpp_mark_file_once_only): Correct the check for existence on
10765 (open_file_failed): Use name not path, which is NULL.
10766 * cpphash.h: Don't include hashtab.h.
10767 (struct _cpp_file): Remove.
10768 (struct cpp_reader): Update.
10769 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
10770 * cpplib.h (struct cpp_options): Remove warn_import.
10771 (cpp_simplify_path): Remove.
10773 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
10776 * doc/extend.texi (Statement Expressions): Document C++ semantics.
10778 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10780 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
10782 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10784 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
10786 * builtins.def: Likewise.
10788 2003-07-31 Jason Merrill <jason@redhat.com>
10790 * Makefile.in (bubblestrap): Don't require a previous full
10793 * expr.c (mostly_zeros_p): No longer static.
10794 * tree.h: Declare it.
10795 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
10796 unless we need to do substitutions.
10798 2003-07-31 Roger Sayle <roger@eyesopen.com>
10800 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
10801 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
10802 as pow(x,2.0) when the latter will be expanded back into x*x.
10803 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
10804 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
10805 pow can never set errno when used with an integer exponent.
10806 Always use expand_powi when exponent is -1, 0, 1 or 2.
10807 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
10808 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
10809 the pow forms of these expressions.
10811 2003-07-31 Geoffrey Keating <geoffk@apple.com>
10813 * Makefile.in (libexecdir): New.
10814 (libsubdir): Use gcc instead of gcc-lib.
10815 (libexecsubdir): New.
10816 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
10817 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
10819 (installdirs): Make libexecsubdir.
10820 (install-common): Put executables in libexecsubdir.
10821 (itoolsdir): Use libexecsubdir.
10822 (itoolsdatadir): New.
10823 (install-mkheaders): Separate data files and executables.
10824 (install-collect2): Put executables in libexecsubdir.
10825 (uninstall): Remove libexecsubdir.
10826 * mkheaders.in: Update for new arrangement of files.
10828 (libexecsubdir): New.
10829 (itoolsdir): Use libexecsubdir.
10830 (itoolsdatadir): New.
10831 * gcc.c (gcc_libexec_prefix): New.
10832 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
10833 (standard_exec_prefix_1): Use libexec.
10834 (standard_exec_prefix_2): New.
10835 (standard_libexec_prefix): New.
10836 (process_command): Update for new arrangement of files. Compute
10837 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
10839 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
10841 * inclhack.def (stdio_va_list): Avoid bogus replacement which
10842 triggers on Interix.
10843 * fixincl.x: Regenerate.
10845 2003-07-31 Jakub Jelinek <jakub@redhat.com>
10847 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
10848 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
10850 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10852 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
10854 2003-07-31 Per Bothner <pbothner@apple.com>
10856 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
10857 (add_input_filename): New function.
10858 (handle_options): Call add_input_filename directly instead of
10860 * opts.h (in_fnames, num_in_fnames): Moved here.
10861 (add_input_filename): Declare.
10862 * c-decl.c: Need to #include opts.h.
10863 * Makefile.in (c-decl.o): Also depends on opts.h.
10864 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
10865 (c_common_handle_filename): Replaced by add_input_filename.
10866 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
10868 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
10869 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
10870 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
10871 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
10873 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10875 * combine.c (try_combine): Set JUMP_LABEL for newly created
10876 unconditional jump.
10878 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10880 * fold-const.c (fold): Fold some comparisons of bit operations.
10882 2003-07-31 Jan Hubicka <jh@suse.cz>
10884 * cgraph.c (create_edge): Fix typo.
10885 * i386.c (pic_symbolic_operand): Reorder tests.
10887 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
10889 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
10891 (Gcov Data Files): Update.
10893 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10895 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
10898 * gthr-posix.c: New file.
10899 * gthr-posix.h: Define _REENTRANT if missing.
10900 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
10902 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
10904 * config/alpha/t-osf-pthread: New file.
10906 * fixinc/inclhack.def (alpha_pthread): New fix.
10907 * fixinc/fixincl.x: Regenerate.
10908 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
10910 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
10912 Fixes PR bootstrap/9330.
10914 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10916 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
10919 * configure: Regenerate.
10921 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
10923 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
10926 2003-07-30 Roger Sayle <roger@eyesopen.com>
10928 * builtins.def: Alphabetize.
10930 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
10932 * doc/c-tree.texi: Normalize spellings of "lowercase" and
10934 * doc/cpp.texi: Likewise.
10935 * doc/md.texi: Likewise.
10936 * doc/rtl.texi: Likewise.
10937 * doc/tm.texi: Likewise.
10939 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
10941 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
10942 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
10945 2003-07-30 Chris Demetriou <cgd@broadcom.com>
10947 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
10948 macros before defining them.
10950 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
10952 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
10953 UNSPECV_BLOCKAGE): New constants.
10954 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
10955 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
10956 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
10957 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
10959 (all insns and expanders): Write output control string as brace block
10960 where appropriate. Remove \-escapes for doublequote characters.
10962 2003-07-31 Jan Hubicka <jh@suse.cz>
10964 * gcse.c (insert_store): Fix typo in previous patch.
10966 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
10968 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
10970 2003-07-30 Andi Kleen <ak@muc.de>
10972 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
10974 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10976 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
10977 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
10978 GCOV_N_VALUE_COUNTERS): New.
10979 * profile.c (compute_value_histograms): New static function.
10980 (branch_prob): Read back the value histograms.
10981 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
10982 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
10983 * value-prof.c: Add comment on reading the profile.
10984 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
10985 * doc/invoke.texi (-fprofile-values): Document behavior with
10986 -fbranch-probabilities.
10988 2003-07-30 David Edelsohn <edelsohn@gnu.org>
10990 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
10992 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
10994 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
10997 2003-07-30 Jan Hubicka <jh@suse.cz>
10999 * gcse.c (insert_store): Ignore fake edges.
11001 * c-common.c (flag_vtable_gc): Kill.
11002 * c-common.g (flag_vtable_gc): Kill.
11003 * c-opts (c_common_handle_option): Kill.
11004 * c.opt (fvtable-gc): Kill.
11005 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
11006 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11007 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11009 * invoke.texi (-ftable-gc): Kill documentation.
11011 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
11012 just because function body is missing.
11014 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
11016 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
11018 * unwind-sjlj.c: Fix typo in file description.
11020 2003-07-30 Alan Modra <amodra@bigpond.net.au>
11022 * calls.c (load_register_parameters): When shifting reg sized values
11023 to the msb, move the value to a reg first.
11025 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11027 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
11028 * line-map.h (linemap_add): Update comments.
11029 * line-map.c (linemap_add): Update comments, interpret zero-length
11030 filename as "<stdin>".
11032 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
11034 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
11036 2003-07-29 Zack Weinberg <zack@codesourcery.com>
11038 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
11039 New static variables.
11040 (struct c_scope): Add parms and warned_forward_parm_decls
11041 fields; remove parm_order.
11042 (storedecls, storetags): Delete.
11043 (poplevel): Also clear bindings on the parms chain.
11044 (pushdecl): Handle forward declarations of parameters, and
11045 chain PARM_DECLs on the parms list, not the names list.
11046 (lookup_name_current_level): Check for PARM_DECLs on the parms
11048 (push_parm_decl): Don't update parm_order.
11049 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
11050 warning, only once per parameter list, and set TREE_ASM_WRITTEN
11051 on the decls here. Then move the forward decls to the names list.
11052 (grokparms): Set last_function_parm_vars.
11053 (get_parm_info): Don't use gettags or getdecls. No need to
11054 extract non-parms from the parms list, or reorganize the parms
11055 list. Feed nonparms back in the TREE_TYPE of the list node
11056 returned. Issue only one error per parameter list for "void"
11057 appearing more than once in said parameter list. Collapse
11058 parmlist_tags_warning into this function to avoid double scan
11060 (start_function): Set current_function_parm_vars.
11061 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
11062 directly. Get non-parms from current_function_parm_vars; no
11063 need to extract them from the parms chain. Properly bind tags
11065 (store_parm_decls_oldstyle): No need to extract non-parameters
11066 from the parms chain, nor to store them back afterward. Move
11067 declaration to top of function, restructure code reordering
11069 (store_parm_decls): No need to save and restore warn_shadow.
11070 * c-parse.in: Don't call parmlist_tags_warning nor
11071 clear_parm_order. Call mark_forward_parm_decls when forward
11072 parm decls are encountered.
11073 * c-tree.h: Prototype mark_forward_parm_decls; not
11074 clear_parm_order or parmlist_tags_warning.
11076 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11078 * c-common.c (allow_pch): Remove.
11079 * c-common.h (allow_pch): Remove.
11080 (c_common_no_more_pch): Declare.
11081 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
11082 * c-pch.c: Include hosthooks.h.
11083 (c_common_valid_pch): Don't check allow_pch.
11084 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
11085 (c_common_no_more_pch): New.
11086 * ggc-common.c: Include hosthooks.h.
11087 (gt_pch_save): Call gt_pch_get_address.
11088 (gt_pch_restore): Call gt_pch_use_address.
11089 * hooks.c (hook_voidp_size_t_null): New.
11090 (hook_bool_voidp_size_t_false): New.
11091 * hooks.h (hook_voidp_size_t_null): New.
11092 (hook_bool_voidp_size_t_false): New.
11093 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
11094 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
11095 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
11096 HOST_HOOKS_GT_PCH_USE_ADDRESS.
11097 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
11098 gt_pch_use_address.
11099 * doc/hostconfig.texi (Host Common): Document
11100 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
11101 * Makefile.in (c-pch.o): Depend on hosthooks.h.
11102 (ggc-common.o): Likewise.
11104 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
11105 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
11106 (pch_address_space): New.
11107 (darwin_rs6000_gt_pch_get_address): New.
11108 (darwin_rs6000_gt_pch_use_address): New.
11110 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
11112 PR preprocessor/11569
11113 PR preprocessor/11649
11114 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
11115 * cppfiles.c: Completely rewritten.
11116 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
11117 struct cpp_path is now struct cpp_dir.
11118 (remove_duplicates): Don't simplify path names.
11119 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
11121 * cpphash.h: Include hashtab.h.
11122 (_cpp_file): Declare.
11123 (struct cpp_buffer): struct include_file is now struct _cpp_file,
11124 and struct cpp_path is now struct cpp_dir. Rename members.
11125 (struct cpp_reader): Similarly. New members once_only_files,
11126 file_hash, file_hash_entries, quote_ignores_source_dir,
11127 no_search_path, saw_pragma_once. Remove all_include_files and
11128 max_include_len. Make some members bool.
11129 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
11130 (_cpp_stack_file): Renamed from _cpp_read_file.
11131 (_cpp_stack_include): Renamed from _cpp_execute_include.
11132 (_cpp_init_files): Renamed from _cpp_init_includes.
11133 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
11134 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
11135 (cpp_read_next_file): Rename and move to cppfiles.c.
11136 (cpp_read_main_file): Update.
11137 * cpplib.c (run_directive): Update for renamed members.
11138 (do_include_common, _cpp_pop_buffer): Update.
11139 (do_import): Undeprecate #import.
11140 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
11141 * cpplib.h: Remove file_name_map_list.
11142 (cpp_options): Remove map_list.
11143 (cpp_dir): Rename from cpp_path. New datatype for name_map.
11144 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
11146 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
11148 * Makefile.in: Make stamp-objdir safe for parallel builds.
11150 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
11152 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
11153 (info): Depend on stmp-docobjdir.
11155 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11157 * configure: Regenerate.
11159 2003-07-29 Jan Hubicka <jh@suse.cz>
11162 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
11163 in !unit-at-a-time mode.
11165 2003-07-28 Geoffrey Keating <geoffk@apple.com>
11167 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
11170 2003-07-28 Mark Mitchell <mark@codesourcery.com>
11173 * c-common.c (shorten_compare): Take into account differences
11174 between C and C++ representation for enumeration types.
11175 * tree.h (set_min_and_max_values_for_integral_type): Declare.
11176 * stor-layout.c (set_min_and_max_values_for_integral_type): New
11177 function, broken out from ...
11178 (fixup_signed_type): ... here and ...
11179 (fixup_unsigned_type): ... here.
11181 2003-07-28 Zack Weinberg <zack@codesourcery.com>
11183 * c-decl.c: Update commentary, adjust blank lines throughout.
11184 (struct c_scope): Fix indentation. Reorder members so
11185 outer-context pointers come first, booleans last.
11186 (duplicate_decls, define_label): Use a 'locus' variable for
11187 diagnostic locations in a few more places.
11188 (warn_if_shadowing): Un-split a conditional that fits on one line.
11189 (c_init_decl_processing): No need to clear current_scope and
11190 current_function_scope.
11191 (start_decl): Merge if/else if statements with same action.
11192 (push_parm_decl): Rename old_immediate_size_expand to use
11193 save_foo convention; save/restore around entire function.
11194 (grokdeclarator): Remove unnecessary braces.
11196 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
11197 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
11199 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
11200 when warn_declaration_after_statement. Call pedwarn_c90, not
11201 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
11202 * c-common.c (warn_declaration_after_statement): Define.
11203 * c-common.h (warn_declaration_after_statement): Declare.
11204 * c.opt (Wdeclaration-after-statement): New.
11205 * c-errors.c (pedwarn_c90): New function.
11206 * c-opts.c (c_common_handle_option) <case
11207 OPT_Wdeclaration_after_statement>: New.
11208 * c-tree.h (pedwarn_c90): Declare.
11209 * doc/invoke.texi (Option Summary): Document
11210 -Wdeclaration-after-statement.
11211 (Warning Options): Ditto.
11213 2003-07-28 Jan Hubicka <jh@suse.cz>
11215 * i386.md (memory attribute) Avoid accessing uninitialized memory
11216 for ishift1 type instructions.
11218 2003-07-28 Jakub Jelinek <jakub@redhat.com>
11220 * configure.in (--enable-checking): Add fold category.
11221 (ENABLE_FOLD_CHECKING): Define if requested.
11222 * configure: Rebuilt.
11223 * config.in: Rebuilt.
11224 * doc/install.texi: Document it.
11225 * fold-const.c: Include md5.h.
11226 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
11227 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
11228 print_fold_checksum): New functions.
11230 * fold-const.c (fold): Never modify argument passed to fold, instead
11231 change a copy and return it.
11232 * convert.c (convert_to_integer): Likewise.
11234 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
11236 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
11237 cleanup of junk after #else and #endif directives. Collapse repeated
11238 clauses into for statment.
11240 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
11242 2003-07-27 Zack Weinberg <zack@codesourcery.com>
11244 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
11245 (keep_next_if_subblocks): Rename next_is_function_body.
11246 (pushlevel): Adjust commentary. Always set ->keep on the
11247 outermost level of a function. Don't set ->keep_if_subblocks.
11248 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
11249 (store_parm_decls): Adjust to match.
11250 (finish_function): Adjust to match.
11251 Call poplevel with all three arguments zero.
11253 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
11254 New functions split out of store_parm_decls.
11255 Avoid unnecessary work. Use local variables consistently.
11256 (store_parm_decls): Likewise.
11258 (finish_function): No need to set functionbody flag on call to
11260 (struct language_function): Remove scope field.
11261 (c_push_function_context, c_pop_function_context): No need to
11262 save and restore current_scope.
11264 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
11266 * doc/extend.texi (Deprecated Features): Implicit typename is
11267 gone. Default args on types is going.
11269 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
11271 * Makefile.in (ifcvt.o): Depend on target.h
11272 * ifcvt.c (target.h): Include.
11273 (if_convert): Don't call mark_loop_exit_edges if we can't
11276 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11278 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
11280 2003-07-26 Richard Henderson <rth@redhat.com>
11282 PR inline-asm/11676
11283 * cse.c (count_reg_usage): Handle asm_operands properly.
11285 2003-07-26 Roger Sayle <roger@eyesopen.com>
11287 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
11288 (DEF_EXT_FALLBACK_BUILTIN): Delete.
11289 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
11290 the regular DEF_EXT_LIB_BUILTIN macro.
11291 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
11292 the regular DEF_LIB_BUILTIN macro.
11293 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
11294 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
11295 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
11296 DEF_EXT_LIB_BUILTIN macro.
11298 * c-decl.c (duplicate_decls): Remove code to handle builtin
11299 functions prototyped without an argument list.
11301 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
11303 * config/i386/winnt.c: Revert 2003-07-08 change.
11304 (i386_pe_section_type_flags): Remove error_with_decl here too.
11306 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
11308 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
11309 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
11310 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
11311 (v850_handle_data_area_attribute): Likewise.
11313 2003-07-26 Geoffrey Keating <geoffk@apple.com>
11315 * varasm.c (output_constant_def_contents): Use
11316 ASM_DECLARE_CONSTANT_NAME if defined.
11317 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
11318 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
11319 objects get at least one byte to prevent assembler problems.
11320 (ASM_DECLARE_CONSTANT_NAME): New.
11322 * Makefile.in (libbackend.o): Remove options_.h.
11323 (mostlyclean): Likewise.
11325 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
11326 insert a label at the end of an function under Mach-O.
11328 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
11330 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
11332 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
11334 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
11336 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
11338 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11340 * doc/passes.texi (Passes): Mention pretty-printing and
11343 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
11345 * doc/extend.texi (Function Attributes): GNU C++ does now allow
11346 unused parameter decls.
11347 (Attribute Syntax): GNU C++ does not allow label attributes to be
11350 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11352 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
11353 (objc_declare_class): Likewise.
11354 (error_with_ivar): Likewise.
11355 (start_class): Likewise.
11356 (warn_with_method): Likewise.
11358 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11360 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
11362 * calls.c (try_to_integrate): Don't use xxx_with_decl.
11363 (expand_call): Likewise.
11364 * dwarfout.c (output_reg_number): Likewise.
11365 * expr.c (expand_expr): Likewise.
11366 * function.c (assign_temp): Likewise.
11367 (uninitialized_vars_warning): Likewise.
11368 (setjmp_args_warning): Likewise.
11369 (expand_function_end): Likewise.
11370 * stmt.c (fixup_gotos): Likewise.
11371 (warn_about_unused_variables): Likewise.
11372 (expand_end_bindings): Likewise.
11373 * stor-layout.c (layout_decl): Likewise.
11374 (place_field): Likewise.
11375 * toplev.c (check_global_declarations): Likewise.
11376 (rest_of_handle_inlining): Likewise.
11377 (default_tree_printer): New function.
11378 (general_init): Initialize diagnostic machinery before routing
11379 signals to the ICE machinery. Set default tree printer.
11380 * toplev.h (pedwarn_with_decl): Remove declaration.
11381 (warning_with_decl): Likewise.
11382 (error_with_decl): Likewise.
11383 (pedwarn): Remove attribute for the time being.
11384 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
11385 * varasm.c (named_section): Likewise.
11386 (make_decl_rtl): Likewise.
11387 (assemble_variable): Likewise.
11388 (merge_weak): Likewise.
11389 (declare_weak): Likewise.
11391 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
11392 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
11393 (format_with_decl): Remove.
11394 (diagnostic_for_decl): Likewise.
11395 (pedwarn_with_decl): Likewise.
11396 (warning_with_decl): Likewise.
11397 (error_with_decl): Likewise.
11398 (diagnostic_initialize): Adjust.
11399 (diagnostic_count_diagnostic): Likewise.
11400 (announce_function): Likewise.
11401 (lhd_print_error_function): Likewise.
11402 (diagnostic_report_current_module): Likewise.
11403 (default_diagnostic_starter): Likewise.
11404 (diagnostic_report_diagnostic): Likewise.
11405 (default_diagnostic_finalizer): Likewise.
11406 (verbatim): Likewise.
11408 (warning): Likewise.
11409 * opts.c (common_handle_option): Likewise.
11410 * pretty-print.c: New file.
11411 * c-pretty-print.h (pp_base): Override.
11412 * c-pretty-print.c: Adjust use of macros throughout.
11413 (pp_buffer): New macro.
11414 (pp_newline): Likewise.
11415 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
11416 * Makefile.in (DIAGNOSTIC_H): New variable.
11417 (c-errors.o): Use it.
11418 (c-objc-common.o): Likewise.
11419 (c-common.o): Likewise.
11420 (c-opts.o): Likewise.
11421 (c-format.o): Likewise.
11422 (diagnostic.o): Likewise.
11423 (opts.o): Likewise.
11424 (toplev.o): Likewise.
11425 (rtl-error.o): Likewise.
11426 (dwarf2out.o): Likewise.
11427 (jump.o): Likewise.
11428 (pretty-print.o): New rule.
11430 2003-07-24 Roger Sayle <roger@eyesopen.com>
11432 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
11433 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
11434 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
11435 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
11436 (DEF_FRONT_END_LIB_BUILTIN): Delete.
11437 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
11438 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
11440 * builtins.c (build_string_literal): New function to construct
11441 a char* pointer to a string literal.
11442 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
11443 "rtx target" to be consistent with other expand_builtin_* functions.
11444 Change 3rd argument from "int unlocked" to "bool unlocked".
11445 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
11446 c-common.c to avoid front-end dependencies. Optimize printf("")
11447 as a no-op when the result isn't required. Handle embedded NULs
11449 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
11450 from c-common.c to avoid front-end dependencies. Likewise, optimize
11451 fprintf(fp,"") as a no-op when the result isn't required, evaluating
11452 fp for side-effects. Handle embedded NULs in format string.
11453 (expand_builtin_sprintf): Fix typo.
11454 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
11455 optimizing. Adjust calls of expand_builtin_fputs to match the API
11456 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
11457 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
11458 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
11460 * c-common.c (is_valid_printf_arglist): Delete.
11461 (c_expand_builtin): Delete.
11462 (c_expand_builtin_printf): Moved to builtins.c. Delete.
11463 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
11464 (c_expand_expr): No longer treat CALL_EXPRs specially.
11465 (CALLED_AS_BUILT_IN): Delete.
11467 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11469 PR optimization/11631
11470 * gcse.c (store_motion): Connect infinite loops to exit.
11472 2003-07-24 Jason Merrill <jason@redhat.com>
11474 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
11475 (boolean_true_node, boolean_false_node): Likewise.
11476 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
11477 * tree.c (build_common_tree_nodes): Init boolean_type_node.
11478 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
11479 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
11480 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
11481 (truthvalue_true_node): Renamed from boolean_true_node.
11482 (truthvalue_false_node): Renamed from boolean_false_node.
11483 * c-decl.c: Just set truthvalue_* to integer_*.
11484 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
11486 2003-07-24 Roger Sayle <roger@eyesopen.com>
11488 * c-decl.c (match_builtin_function_types): New subroutine of
11489 duplicate_decls to test whether a redeclaration of a builtin
11490 function is suitably close, i.e. the return type and all of
11491 the argument types have the same modes as the builtin expects.
11492 (duplicate_decls): Fuzzy type matching for builtin functions
11493 moved to match_builtin_function_types.
11495 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11497 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
11500 2003-07-24 Zack Weinberg <zack@codesourcery.com>
11502 * c-decl.c: Search-and-replace change 'binding level' to
11503 'scope' in commentary.
11504 (struct binding_level): Now struct c_scope.
11505 (current_binding_level): Now current_scope.
11506 (free_binding_level): Now scope_freelist.
11507 (current_function_level): Now current_function_scope.
11508 (global_binding_level): Now global_scope.
11509 (make_binding_level): Now make_scope.
11510 (pop_binding_level): Now pop_scope.
11512 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11514 * configure.in (libgcc_visibility): Add missing whitespace.
11516 2003-07-24 Richard Henderson <rth@redhat.com>
11518 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
11519 __gcc_personality_v0.
11521 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11523 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
11525 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
11527 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
11528 documentation missed from my 2003-07-09 patch.
11530 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
11532 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
11534 * configure: Rebuild.
11536 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
11539 * c-typeck.c (type_lists_compatible_p): Do not compare
11540 arguments if one of them is an error_mark_node
11542 2003-07-24 Alan Modra <amodra@bigpond.net.au>
11544 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
11545 if current_function_calls_eh_return.
11547 2003-07-23 Mark Mitchell <mark@codesourcery.com>
11549 * doc/c-tree.texi (OFFSET_TYPE): Update description.
11551 2003-07-23 Bob Wilson <bob.wilson@acm.org>
11553 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
11554 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
11555 __umodsi3, __modsi3): Increase frame size to 32.
11557 2003-07-23 Geoffrey Keating <geoffk@apple.com>
11559 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
11562 2003-07-23 Mark Mitchell <mark@codesourcery.com>
11564 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
11566 PR optimization/10679
11567 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
11569 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11571 PR target/11607 and PR target/11516
11572 * pa.md (extzv, extv, insv): Revert latter half of last patch.
11574 2003-07-22 Mark Mitchell <mark@codesourcery.com>
11576 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
11577 * varasam.c (output_constant): Likewise.
11579 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
11581 * alias.c: Fix comment formatting.
11582 * c-common.c: Likewise.
11583 * c-decl.c: Likewise.
11584 * c-opts.c: Likewise.
11585 * combine.c: Likewise.
11586 * cpplib.c: Likewise.
11587 * diagnostic.c: Likewise.
11588 * dojump.c: Likewise.
11589 * final.c: Likewise.
11590 * fold-const.c: Likewise.
11592 * gcse.c: Likewise.
11593 * ggc-page.c: Likewise.
11594 * jump.c: Likewise.
11595 * loop.c: Likewise.
11596 * mips-tfile.c: Likewise.
11597 * recog.c: Likewise.
11598 * regclass.c: Likewise.
11599 * regmove.c: Likewise.
11600 * tree.c: Likewise.
11601 * tree.h: Likewise.
11603 2003-07-22 Per Bothner <pbothner@apple.com>
11605 * line-map.c (add_line_map): Handle invalid LEAVE request.
11606 Fixes PR preprocessor/11361.
11608 2003-07-22 Per Bothner <pbothner@apple.com>
11610 * diagnostic.c.(diagnostic_report_current_module): Update to match
11611 2003-06-05 changes to push_srcloc and pop_srcloc.
11613 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
11615 * doc/trouble.texi: Better document two-stage name lookup.
11617 2003-07-22 Eric Christopher <echristo@redhat.com>
11619 * config/s390.c (s390_valid_pointer_mode): New.
11620 (TARGET_VALID_POINTER_MODE): Use.
11621 (s390_emit_prologue): Add tpf profiling hooks.
11622 (s390_emit_epilogue): Ditto.
11623 * config/s390.h (MASK_TPF): New.
11625 (POINTERS_EXTEND_UNSIGNED): Define.
11626 * config/s390.md (ptr_extend): New pattern.
11628 2003-07-22 Zack Weinberg <zack@codesourcery.com>
11630 * hashtable.c (approx_sqrt): Make static.
11631 * hashtable.h: Don't prototype approx_sqrt.
11632 * line-map.c (init_line_maps): Rename linemap_init.
11633 (free_line_maps): Rename linemap_free.
11634 (add_line_map): Rename linemap_add.
11635 (lookup_line): Rename linemap_lookup.
11636 (print_containing_files): Rename linemap_print_containing_files.
11637 * linemap.h: Update to match.
11639 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
11640 linemap routines to use new names.
11642 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
11644 * c-common.c (handle_packed_attribute): Don't pack a struct via a
11645 typedef. Propagate packedness from a main variant.
11647 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
11649 * Makefile.in (install-common): Add dependency on installdirs.
11651 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
11653 * c-common.c (c_common_type_for_mode): Return integer types for
11656 2003-07-22 Geoffrey Keating <geoffk@apple.com>
11658 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
11659 (finish_decl): Call maybe_apply_pragma_weak here.
11660 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
11661 TREE_PUBLIC and TREE_STATIC are decided.
11662 (start_function): Move call to maybe_apply_pragma_weak. Check that
11663 DECL_ASSEMBLER_NAME isn't set too early.
11665 * cpplex.c (_cpp_process_line_notes): Mention option name in
11668 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
11670 * combine.c (if_then_else_cond): Simplify the comparison of
11671 rtx against -1, 0, and 1.
11672 * loop.c (check_dbra_loop): Likewise.
11673 * optabs.c (emit_conditional_move): Likewise.
11674 (emit_conditional_add): Likewise.
11675 * config/i386/i386.md (*movsi_or): Likewise.
11676 (*movdi_or_rex6): Likewise.
11678 2003-07-22 Jan Hubicka <jh@suse.cz>
11680 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
11682 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
11684 * cppfiles.c (open_file_pch): Don't put unused entries in the
11685 splay tree. Remove dead code.
11687 2003-07-21 Geoffrey Keating <geoffk@apple.com>
11689 * c-common.h (num_in_fnames): Declare.
11690 (c_static_assembler_name): Move from here...
11691 * c-tree.h (c_static_assembler_name): ... to here.
11692 * c-opts.c: Don't include langhooks-def.h.
11693 (c_static_assembler_name): Move to c-decl.c.
11694 (num_in_fnames): Make externally visible.
11695 * c-decl.c: Include langhooks-def.h.
11696 (c_static_assembler_name): Move from c-opts.c.
11697 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
11698 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
11700 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
11701 when it's not needed.
11703 2003-07-21 Jakub Jelinek <jakub@redhat.com>
11705 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
11706 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
11707 (rs6000_emit_prologue): Save FPRs inline if set.
11709 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
11711 * config/ia64/ia64.md (prefetch): Support predicate.
11713 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
11715 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
11716 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
11719 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
11721 PR optimization/11536
11722 * unroll.c (loop_iterations): Do not replace a register holding
11723 the final value by its equivalent before the loop if it is not
11726 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
11728 * doc/extend.texi: Fixes to spelling, grammar, and diction.
11730 2003-07-21 Ben Elliston <bje@wasabisystems.com>
11732 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
11733 (V850 Options): Spelling fixes.
11735 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
11737 * doc/invoke.texi: Fixes to style, grammar and diction.
11739 2003-07-20 Roger Sayle <roger@eyesopen.com>
11741 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
11742 * system.h (SMALL_STACK): Poison obsolete target macro.
11743 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
11745 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
11747 * configure.in: Cache the results of testing for cmp's capabilities.
11748 * configure: Regenerate.
11750 2003-07-20 Mark Mitchell <mark@codesourcery.com>
11753 * dwarf2out.c (gen_enumeration_type_die): Remember that
11754 enumerators can be unsigned.
11756 2003-07-19 Zack Weinberg <zack@codesourcery.com>
11758 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
11759 (push_label_level, pop_label_level): Kill.
11760 (struct binding_level): Rename level_chain to outer.
11761 Add outer_function field. Change parm_flag, function_body,
11762 keep, keep_if_subblocks to 1-bit bitfields of type bool.
11763 (current_function_level): New variable.
11764 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
11765 (keep_next_level, declare_parm_level, warn_if_shadowing):
11767 (struct language_function): Kill named_labels, shadowed_labels fields.
11768 (c_init_decl_processing, start_function, c_push__function_context)
11769 (c_pop_function_context): No need to muck with named_labels nor
11772 (make_binding_level): No need to clear the structure here.
11773 (pop_binding_level): Always operate on current_binding_level.
11774 Update current_function_level if necessary.
11775 (pushlevel): Don't clear named_labels. Update current_function_level
11776 if necessary. Use "true" and "false" where appropriate.
11777 (poplevel): Diagnose labels defined but not used, or vice
11778 versa, and clear out label-meanings leaving scope, while
11779 walking down the decls list, for all binding levels.
11780 Handle LABEL_DECLs appearing in the shadowed list.
11781 pop_binding_level takes no arguments.
11782 (pushdecl_function_level): Use current_function_level.
11784 (make_label, bind_label): New static functions.
11785 (declare_label): New exported function.
11786 (lookup_label, define_label): Rewritten for new data structure.
11787 (shadow_label): Kill.
11789 * c-tree.h: Prototype declare_label; don't prototype
11790 push_label_level, pop_label_level, nor shadow_label.
11791 * c-parse.in: Remove all calls to push_label_level and
11792 pop_label_level. Use declare_label for __label__ decls.
11794 * doc/extend.texi: Clarify that __label__ can be used to
11795 declare labels with local scope in any nested block, not
11796 just statement expressions. Cross-reference nested functions
11797 section from local labels section.
11799 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11801 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
11803 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
11805 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
11807 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11809 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
11810 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
11812 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
11814 * config/s390/s390.c (legitimize_pic_address): Access local symbols
11815 relative to the GOT instead of relative to the literal pool base.
11816 (s390_output_symbolic_const): Handle new GOT-relative accesses.
11817 * config/s390/s390.md ("call"): Access local functions and PLT stubs
11818 relative to the GOT instead of relative to the literal pool base.
11819 ("call_value"): Likewise.
11820 ("call_value_tls"): Likewise.
11822 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
11823 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
11824 (s390_chunkify_finish): Likewise.
11825 (s390_chunkify_cancel): Likewise.
11826 (s390_reorg): Adapt caller.
11827 (find_base_register_in_addr,
11828 find_base_register_ref, replace_base_register_ref): Delete.
11829 (find_ltrel_base, replace_ltrel_base): New functions.
11830 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
11831 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
11832 base vs. index register usage.
11833 (struct constant_pool): Remove 'anchor'.
11834 (s390_add_anchor): Delete.
11835 (s390_dump_pool): Remove anchor handling.
11836 * config/s390/s390.md ("reload_anchor"): Remove.
11838 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
11839 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
11840 (s390_emit_prologue): Use it.
11841 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
11842 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
11843 hard-code register 14.
11844 * config/s390/s390-protos.h (s390_load_got): Declare.
11846 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
11847 Support TImode constants.
11848 * config/s390/s390.md ("consttable_ti"): New.
11849 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
11851 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
11852 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
11853 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
11854 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
11855 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
11856 New symbolic constants.
11857 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
11858 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
11859 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
11860 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
11861 symbolic UNSPEC values.
11862 * config/s390/s390.c (larl_operand, s390_short_displacement,
11863 bras_sym_operand, s390_cannot_force_const_mem,
11864 s390_delegitimize_address, s390_decompose_address,
11865 legitimize_pic_address, s390_output_symbolic_const,
11866 s390_function_profiler): Use symbolic UNSPEC values.
11868 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11870 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
11871 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
11872 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
11873 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
11874 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
11875 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
11876 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
11877 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
11878 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
11879 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
11880 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
11881 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
11882 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
11883 postreload.c prefix.c print-tree.c protoize.c ra-build.c
11884 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
11885 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
11886 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
11887 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
11888 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
11889 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
11892 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
11894 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
11895 * toplev.h (warning): Remove attribute.
11897 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
11899 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
11900 (pop_label_level): Likewise.
11901 (duplicate_decls): Likewise.
11902 (implicitly_declare): Likewise.
11903 (shadow_label): Likewise.
11904 (start_decl): Likewise.
11905 (finish_decl): Likewise.
11906 (grokdeclarator): Likewise.
11907 (get_parm_info): Likewise.
11908 (detect_field_duplicates): Likewise.
11909 (finish_struct): Likewise.
11910 (start_function): Likewise.
11911 (store_parm_decls): Likewise.
11912 (finish_function): Likewise.
11913 (c_expand_body_1): Likewise.
11914 (check_for_loop_decls): Likewise.
11915 (merge_translation_unit_decls): Likewise.
11917 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
11919 * common.opt: Document --param.
11920 * opts.c (columns, undocumented_msg): New.
11921 (print_help): Get number of columns from environment. Print
11922 --param help. Tweak newline handling.
11923 (print_param_help): New.
11924 (print_filtered_help): Better handling of duplicates. Complain
11925 about undocumented switches.
11926 (print_switch): New.
11927 (wrap_help): Improve wrapping, use COLUMNS.
11928 * opts.sh: Ignore comments in records.
11929 * params.def: Fix typos and remove trailing periods.
11930 * toplev.c (display_help): Don't dump --param help.
11931 * doc/sourcebuild.texi: Update.
11933 2003-07-18 Richard Henderson <rth@redhat.com>
11936 * optabs.c (prepare_operand): Fail gracefully instead of abort
11937 if the predicate doesn't satisfy.
11938 (gen_cond_trap): Allow prepare_operand to fail.
11940 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
11942 * c-common.c: Don't undefine GCC_DIAG_STYLE.
11943 (fname_decl): Don't use xxx_with_decl.
11944 (c_add_case_label): Likewise.
11945 (handle_section_attribute): Likewise.
11946 (handle_alias_attribute): Likewise.
11947 (handle_no_instrument_function_attribute): Likewise.
11948 (handle_no_limit_stack_attribute): Likewise.
11949 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
11950 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
11952 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11954 * Makefile.in (ifcvt.o): Add cfgloop.h.
11955 * basic-block.h (EDGE_LOOP_EXIT): New flag.
11956 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
11957 * ifcvt.c: Include cfgloop.h.
11958 (mark_loop_exit_edges): New static function.
11959 (if_convert): Call it.
11960 (find_if_header): Ignore branches out of loops.
11962 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
11964 * combine.c (simplify_comparison): Don't share rtx when converting
11965 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
11967 2003-07-18 David Edelsohn <edelsohn@gnu.org>
11969 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
11970 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
11971 (MUST_PASS_IN_STACK): Define.
11972 (BLOCK_REG_PADDING): Define.
11974 2003-07-18 Richard Henderson <rth@redhat.com>
11976 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
11977 to skip the addr_vec.
11979 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
11981 * combine.c (combinable_i3pat): Don't forbid occurrences of
11982 i2dest or i1dest in inner_dest if inner_dest is a mem.
11984 2003-07-18 Jan Hubicka <jh@suse.cz>
11986 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
11988 2003-07-17 Jakub Jelinek <jakub@redhat.com>
11991 * loop.c (basic_induction_var): Check if convert_modes emitted any
11992 instructions. Remove them and return 0 if so.
11994 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
11996 PR optimization/11083
11997 * toplev.c (rest_of_handle_addresof): Rename into
11998 rest_of_handle_addressof. Delete unreachable blocks
11999 if dead edges were purged after the addressof pass.
12001 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
12003 * Makefile.in, configure, configure.in: Remove handling of
12004 lang-options.h and options_.h.
12005 * toplev.c (struct lang_opt, documented_lang_options): Remove.
12006 (display_help): Don't use documented_lang_options.
12008 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12010 * c-decl.c (pushdecl_function_level): Make static, return nothing.
12011 (kept_level_p): Fold into poplevel.
12012 (undeclared_variable): Moved here from c-typeck.c. Export.
12013 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
12014 (undeclared_variable): Prototype here. Don't prototype
12015 kept_level_p nor pushdecl_function_level.
12016 * c-parse.in: Change first argument to poplevel from
12017 "kept_level_p()" to "KEEP_MAYBE".
12018 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
12020 2003-07-17 Roger Sayle <roger@eyesopen.com>
12022 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
12023 commutative operands instead of modifying the RTL in-place.
12025 2003-07-17 Mark Mitchell <mark@codesourcery.com>
12027 PR optimization/11557
12028 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
12029 unless we know which function is being called.
12031 2003-07-17 Roger Sayle <roger@eyesopen.com>
12033 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
12034 whether to reorder the operands of a commutative binary operator.
12036 2003-07-17 Roger Sayle <roger@eyesopen.com>
12038 * fold-const.c (const_binop): Avoid performing the FP operation at
12039 compile-time, if either operand is NaN and we honor signaling NaNs,
12040 or if we're dividing by zero and either flag_trapping_math is set
12041 or the desired mode doesn't support infinities.
12042 (fold_initializer): New function to fold an expression ignoring any
12043 potential run-time exceptions or traps.
12044 * tree.h (fold_initializer): Prototype here.
12045 * c-typeck.c (build_binary_op): Move to the end of the file so
12046 that intializer_stack is in scope. If constructing an initializer,
12047 i.e. when initializer_stack is not NULL, use fold_initializer to
12049 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
12050 performing FP operations at compile-time, if they would raise an
12051 exception at run-time.
12053 2003-07-17 Geoffrey Keating <geoffk@apple.com>
12056 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
12057 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
12058 (GTFILES): Add langhooks.c.
12059 (gt-langhooks.h): New.
12060 * c-common.h (c_static_assembler_name): Prototype.
12061 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12062 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12063 * c-opts.c: Include langhooks-def.h.
12064 (c_static_assembler_name): New.
12065 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
12066 (var_labelno): New.
12067 (lhd_set_decl_assembler_name): Give static objects with context
12069 * varasm.c (var_labelno): Delete.
12070 (make_decl_rtl): Don't change the assembler name once it's set.
12072 * c-opts.c (this_input_filename): New.
12073 (finish_options): Take new parameter, name of file being compiled.
12074 Update callers. Set this_input_filename.
12075 (push_command_line_include): Use this_input_filename not
12076 main_input_filename.
12078 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
12080 * Makefile.in: Depend .pot generation on options.c.
12081 * po/exgettext: Add an extra_files variable containing additional
12084 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12086 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
12087 c_write_global_declarations.
12089 * c-decl.c: Fix typos in several comments. Remove all
12090 #if 0 blocks; reindent as needed. Remove unused argument
12091 to declare_parm_level; all callers changed.
12092 * c-parse.in: Update calls to declare_parm_level. Avoid
12093 issuing a double warning in some circumstances.
12094 * c-typeck.c: Update calls to declare_parm_level.
12095 * c-tree.h: Update prototype of declare_parm_level.
12097 * c-pragma.c (apply_pragma_weak): Don't complain about a
12098 redundant #pragma weak.
12100 * objc/objc-act.c (forward_declare_categories,
12101 build_selector_reference_decl, build_class_reference_decl,
12102 build_objc_string_decl, synth_forward_declarations,
12103 build_protocol_reference): Set TREE_PUBLIC on synthetic
12104 forward decl to 0, consistent with eventual definition.
12105 Correct comments to match.
12107 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
12108 in regexp that don't form a range expression.
12109 * fixinc/fixincl.def: Regenerate.
12111 2003-07-17 Richard Henderson <rth@redhat.com>
12114 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
12115 even with !TARGET_CONST_GP.
12116 (ia64_function_ok_for_sibcall): Reject non-local functions.
12118 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
12120 * c-common.c (c_estimate_num_insns_1): Don't handle
12122 * expr.c (safe_from_p): Likewise.
12123 * gengtype.c (adjust_field_tree_exp): Likewise.
12124 * stmt.c (warn_if_unused_value): Likewise
12125 * tree.c (first_rtl_op): Likewise.
12126 * tree.def: Don't define METHOD_CALL_EXPR.
12127 * java/lang.c (java_estimate_num_insns_1): Don't handle
12130 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12133 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
12134 and its restrictions for the SPARC64 port.
12135 Move the entry of "-mimpure-text" before that of "-mv8".
12137 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12138 Phil Edwards <phil@jaj.com>
12140 * doc/install.texi (*-*-solaris2*): Document the step-by-step
12141 procedure to bootstrap and install.
12142 Document the preference for the legacy Sun tools in /usr/bin
12143 over the POSIX tools in /usr/xpg4/bin for the build process.
12145 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
12147 * c.opt: Document Uncodumented; use it. Document ObjC options.
12148 * opts.c (print_filtered_help): Skip undocumented switches.
12149 * opts.h (CL_UNDOCUMENTED): New.
12150 * opts.sh: Handle Undocumented.
12151 * toplev.c (documented_lang_options): Prevent its becoming empty.
12153 * lang-options.h: Remove.
12155 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
12157 * loop.c (check_ext_dependent_givs): Pass const struct loop *
12158 instead of struct loop_info * as argument. Accept BIVs with
12159 increment +/- 1 provided there is a friendly exit test against
12160 a loop-invariant value.
12161 (strength_reduce): Adapt call to check_ext_dependent_givs.
12163 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
12164 Con Bradley <con.bradley@superh.com>
12166 * sh-protos.h (sh_get_pr_initial_val): Declare.
12167 * sh.c (regno_reg_class): Make its elements type enum reg_class.
12168 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
12169 and live_regs_mask arguments. Changed all callers.
12170 (save_schedule_s): New structure.
12171 (save_schedule): New typedef.
12172 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
12173 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
12174 In interrupts handlers, also save registers that are usually
12175 partially saved, and make sure there is at least one general purpose
12176 register saved if a target register needs saving.
12177 Add casts in comparisons to avoid warnings.
12178 (sh_media_register_for_return): return -1 for interrupt handlers.
12179 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
12180 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
12181 registers used are available.
12182 Set RTX_FRAME_RELATED_P where appropriate.
12183 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
12184 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
12185 (initial_elimination_offset): Likewise.
12186 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
12187 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
12188 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
12189 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
12190 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
12191 and for target registers.
12192 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
12193 (regno_reg_class): Make its elements type enum reg_class.
12194 (CONSTRAINT_LEN): Don't use isdigit.
12195 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
12196 (FUNCTION_ARG): Add parentheses to avoid warnings.
12197 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
12198 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
12199 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
12200 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
12201 * sh.md (xordi3+1): Remove unused variable regno.
12202 (return_media): Check that tr0 is available before using it.
12204 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
12206 * c.opt: Document more options.
12208 2003-07-16 Roger Sayle <roger@eyesopen.com>
12210 * combine.c (subst): Also handle (subreg (const_double ...)) case
12211 if created by a substitution, by using the original inner mode.
12213 2003-07-16 Roger Sayle <roger@eyesopen.com>
12215 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
12216 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
12217 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
12219 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
12221 * doc/install.texi (--without-headers): New.
12223 Partial Fix PR/10129
12224 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
12225 (machopic_output_function_base_name): New; print the true pic label.
12226 (machopic_classify_ident): Pic Base is always a defined data.
12227 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
12228 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
12230 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
12231 if they are not floating point registers.
12234 * ggc.h: Add header guards.
12235 * c-decl.c (finish_struct): Sort fields if
12236 number greater than 15 and there are no
12237 anonymous structs/unions.
12238 * c-common.h: Include ggc.h.
12239 (sorted_fields_type): New struct.
12240 (field_decl_cmp): New prototype.
12241 (resort_sorted_fields): New prototype.
12242 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
12243 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
12244 as s, removing other fields.
12245 * c-typeck.c (lookup_field): Use s in lang_type.
12246 These were mostly moved from cp/class.c:
12247 * c-common.c (field_decl_cmp): New static function.
12248 (field_decl_cmp): New function.
12249 (resort_sorted_fields): New function.
12251 2003-07-16 Geoffrey Keating <geoffk@apple.com>
12253 * config/darwin.c (machopic_select_section): Use decl_readonly_section
12254 to do most of the work.
12256 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
12258 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
12259 * config/mmix/mmix.c: Convert functions to ISO C90.
12260 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
12262 (mmix_get_hard_reg_initial_val): Tweak section head comment.
12264 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
12266 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
12268 2003-07-16 Jakub Jelinek <jakub@redhat.com>
12270 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
12271 (uw_update_context_1): Use it.
12272 * config/rs6000/rs6000.c (insn_after_throw): Remove.
12273 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
12274 in parent frame if _Unwind_* called directly instead of through
12276 (rs6000_emit_eh_toc_restore): Remove.
12277 (rs6000_emit_prologue): Update stack pointer before doing any saving
12278 if current_function_calls_eh_return. Generate unwind info for $r2.
12279 (rs6000_emit_epilogue): Restore stack pointer after doing all
12280 restoring if current_function_calls_eh_return. Restore $r2.
12281 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
12282 * config/rs6000/rs6000.md (eh_return): Remove call to
12283 rs6000_emit_eh_toc_restore.
12284 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
12285 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
12287 2003-07-15 Jakub Jelinek <jakub@redhat.com>
12289 * expr.c (emit_block_move): Don't move anything if size is const 0.
12290 (clear_storage): Test against const0_rtx instead of comparing INTVAL
12293 2003-07-15 David S. Miller <davem@redhat.com>
12295 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
12296 emit nop if the last real insn is CALL_INSN.
12298 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
12300 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
12302 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
12304 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
12306 * config/i386/winnt.c (associated_type): Artificial methods are not
12307 affected by the import/export status of their class unless they are
12309 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
12311 * config/i386/winnt.c: Fix GCC copyright comment.
12313 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
12316 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
12317 not recursing on hard error.
12318 (diagnostic_for_decl): Likewise.
12319 * diagnostic.def: Rearrange.
12321 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
12323 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12324 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
12326 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
12327 Richard Henderson <rth@redhat.com>
12329 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
12330 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
12331 (_Unwind_SetGR): Likewise.
12332 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
12333 (Unwind_SpTmp): New typedef.
12334 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
12335 (uw_update_context): Use _Unwind_GetPtr.
12336 (init_dwarf_reg_size_table): Move above uw_init_context_1.
12337 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
12338 Use _Unwind_SetSpColumn.
12339 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
12340 Use _Unwind_GetPtr.
12342 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
12344 * c.opt: Document more options.
12345 * toplev.c (documented_lang_options): Remove all local help strings.
12347 2003-07-15 Mark Mitchell <mark@codesourcery.com>
12350 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
12353 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
12356 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
12357 swap comparison operands if doing so would generate an
12358 unrecognizable insn.
12360 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
12362 PR optimization/11320
12363 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
12364 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
12365 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
12366 current_sched_info->compute_jump_reg_dependencies. Record which
12367 registers are used and which registers are set by the jump.
12368 Clear deps->reg_conditional_sets after a barrier.
12369 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
12370 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
12371 (init_deps): Initialize reg_conditional_sets.
12372 (free_deps): Clear reg_conditional_sets.
12373 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
12374 Mark registers live on entry of the fallthrough block and conditionally
12375 set as set by the jump. Mark registers live on entry of non-fallthrough
12376 blocks as used by the jump.
12377 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
12378 Mark new parameters as unused.
12380 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
12382 * doc/invoke.texi: Resync MIPS -march documentation.
12384 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
12386 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
12387 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
12388 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
12389 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
12390 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
12391 (mips_issue_rate): Handle PROCESSOR_R9000.
12392 (mips_use_dfa_pipeline_interface): Likewise.
12393 * config/mips/9000.md: New file.
12394 * config/mips/mips.md: Include it.
12395 (define_attr cpu): Add r9000.
12396 (mulsi3_mult3): Use "mul" for rm9000 code.
12398 2003-07-15 Stan Cox <scox@redhat.com>
12400 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
12401 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
12402 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
12403 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
12404 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
12405 (mips_issue_rate): Handle PROCESSOR_R7000.
12406 (mips_use_dfa_pipeline_interface): Likewise.
12407 * config/mips/7000.md: New file.
12408 * config/mips/mips.md: Include it.
12409 (define_attr cpu): Add r7000.
12410 (mulsi3_mult3): Use "mul" for rm7000 code.
12412 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
12414 * config/mips/mips.md (define_attr type): Add condmove. Use it for
12415 the conditional move patterns.
12416 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
12417 Check for condmove type.
12418 (ir_vr54_arith): Add move type.
12419 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
12420 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
12422 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
12424 * c-opts.c (print_help): Remove.
12425 (c_common_handle_option): Don't handle --help.
12426 * c.opt: Document some options.
12428 * opts.c (print_filtered_help): New.
12429 (print_help): Use it.
12431 2003-07-14 Geoffrey Keating <geoffk@apple.com>
12433 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
12434 * tree.c: (build_common_tree_nodes_2): Likewise.
12435 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
12436 (V4DF_type_node): New.
12438 * c-opts.c (push_command_line_include): Don't free deferred_opts,
12440 (finish_options): Reset init_cursor.
12442 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
12444 * expr.c (expand_assignment): Remove an unused argument
12446 * expr.h: Update the prototype.
12447 * function.c: Update the callers.
12448 * stmt.c: Likewise.
12450 2003-07-14 Mark Mitchell <mark@codesourcery.com>
12453 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
12456 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
12458 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
12459 with __cplusplus, not "we must use the C++ compiler's type"
12460 * fixinc/inclhack.def (void_null): Note that Interix needs this.
12461 * fixinc/fixincl.x: Regenerate.
12463 2003-07-14 Geoffrey Keating <geoffk@apple.com>
12465 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
12466 and unseen_objects from the global data before calling
12467 __deregister_frame_info_bases.
12468 (examine_objects): Insert objects into the seen_objects list,
12469 not unseen_objects.
12470 (_Unwind_Find_FDE): Always unlock the global object lists, even if
12471 we couldn't allocate a data structure to put in it.
12473 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
12474 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
12475 (SET_TYPE_PROTOCOL_LIST): New.
12476 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
12477 (get_object_reference): Likewise.
12479 2003-07-14 Jan Hubicka <jh@suse.cz>
12481 * cfglayout.c (locator_file): Break out from ....
12482 (insn_file): ... here.
12483 (locator_line): Break out from ....
12484 (insn_line): ... here.
12485 * rtl.h (locator_file, locator_line): Declare.
12486 (final_start_function): Set proper line/file info.
12488 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
12490 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
12491 handled by pp_c_cast_expression.
12493 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
12495 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
12496 allocate 32768 bytes of stack. Use addition rather than subtraction
12497 when a single insn is enough.
12498 * config/mips/mips.md: Remove insns and splitters for subtracting
12500 (subsi3): Only accept register operands.
12501 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
12502 (subdi3_internal_3, subsi3_internal_2): Likewise.
12503 (casesi): Use expand_binop to subtract the lower bound.
12505 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
12507 * config/mips/mips.c (mips_in_small_data_p): Don't handle
12508 TARGET_MIPS16 specially.
12510 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
12512 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
12513 mips_output_aligned_bss.
12514 * config/mips/linux.h: Likewise.
12515 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
12516 * config/mips/mips.c (mips_output_aligned_bss): New function.
12518 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
12519 * config/mips/elf64.h: Likewise.
12521 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
12522 mips_declare_object_name.
12523 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
12524 * config/mips/elf64.h: As for elf.h.
12525 * config/mips/iris6.h: Likewise.
12526 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
12527 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
12528 do...while (0) block.
12529 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
12530 (mips_finish_declare_object): Declare.
12531 * config/mips/mips.c (mips_declare_object_name): New function.
12532 (mips_finish_declare_object): New function.
12534 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
12535 * config/mips/linux.h: Likewise.
12537 * config/mips/mips.c (inside_function): Delete.
12538 (file_in_function_warning, ignore_line_number): Delete.
12539 (mips_output_filename): Don't warn about changing filenames within
12541 (mips_output_lineno): Update accordingly.
12542 (mips_output_function_prologue): Don't reset the deleted variables.
12543 * config/mips/mips.h (inside_function): Delete.
12544 (file_in_function_warning, ignore_line_number): Delete.
12546 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
12547 * config/mips/elf64.h: Likewise.
12548 * config/mips/openbsd.h: Likewise.
12549 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
12550 * config/mips/linux.h: Likewise.
12551 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
12552 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
12554 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
12555 to the list of include files when using gas.
12556 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
12557 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
12558 * config/mips/elf64.h: Likewise.
12559 * config/mips/iris5.h: Likewise.
12560 * config/mips/linux.h: Likewise.
12561 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
12562 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12563 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
12564 * config/mips/sdb.h: ...this new file.
12566 2003-07-14 Douglas Rupp <rupp@gnat.com>
12568 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
12569 argument to getcwd; use fixed buffer instead.
12571 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
12573 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
12574 * fixinc/fixinc.wrap: Delete.
12576 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
12578 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
12581 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
12583 * ggc-page.c (struct globals): Add new fields to keep track of the
12584 total allocated memory and overhead.
12585 (ggc_print_statistics): Print them.
12586 (ggc_alloc): Keep track of the total allocated memory and the
12589 * tree.c (dump_tree_statistics): Increase spacing.
12590 (enum tree_node_kind): Move to ...
12591 * tree.h (enum tree_node_kind): ... here.
12592 (tree_node_counts, tree_node_sizes): Declare.
12594 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
12596 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
12598 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12600 PR optimization/11440
12601 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
12604 2003-07-14 Alan Modra <amodra@bigpond.net.au>
12606 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
12607 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
12608 (emit_group_load, emit_group_store): Adjust declarations.
12609 Remove most occurrences of #ifdef TREE_CODE.
12610 * expr.c (emit_group_load): Add "type" param, and use
12611 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
12612 aligned accesses if !SLOW_UNALIGNED_ACCESS.
12613 (emit_group_store): Likewise.
12614 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
12615 emit_group_load and emit_group_store calls.
12616 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
12617 BLOCK_REG_PADDING to determine whether we need endian_correction.
12618 (load_register_parameters): Localize vars. Handle shifting of
12619 small values to the correct end of regs. Adjust emit_group_load
12621 (expand_call, emit_library_call_value_1): Adjust emit_group_load
12622 and emit_group_store calls.
12623 * function.c (assign_parms): Set mem alignment for stack slots.
12624 Adjust emit_group_store call. Store values at the "wrong" end
12625 of regs to the stack. Use BLOCK_REG_PADDING.
12626 (locate_and_pad_parm): Save where_pad.
12627 (expand_function_end): Adjust emit_group_load call.
12628 * stmt.c (expand_value_return): Adjust emit_group_load call.
12629 * Makefile.in (calls.o): Depend on $(OPTABS_H).
12630 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
12631 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12632 (MUST_PASS_IN_STACK): Define.
12633 (BLOCK_REG_PADDING): Define.
12634 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
12635 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
12636 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
12637 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
12638 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
12640 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
12642 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
12644 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12646 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
12647 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
12649 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
12652 * toplev.c: Don't cut off option names.
12654 2003-07-13 Andreas Jaeger <aj@suse.de>
12656 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
12657 to integer of different size.
12659 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
12661 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
12662 to (eq (and X 1) 0).
12664 2003-07-13 Andreas Jaeger <aj@suse.de>
12666 * config.gcc: Add pmmintrin.h for x86_64-*-*.
12668 2003-07-13 Zack Weinberg <zack@codesourcery.com>
12670 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
12671 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
12672 list. Move these all together down by cpplib.
12674 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
12675 definition of CPPCHAR_SIGNED_T.
12677 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
12678 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
12679 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
12681 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
12682 * cppinit.c (cpp_create_reader): Likewise.
12684 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
12685 * cpptrad.c: Likewise. All callers changed.
12686 * cpplib.c: All callers changed.
12687 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
12688 * hashtable.h: Define GTY(x) to nothing here too.
12690 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12692 * stor-layout.c (compute_record_mode): Remove very obsolete test
12693 that forces BLKmode for records with fields crossing word boundary.
12695 2003-07-13 Zack Weinberg <zack@codesourcery.com>
12697 * Makefile.in: Remove orphan reference to acconfig.h.
12699 2003-07-13 Andreas Jaeger <aj@suse.de>
12701 * cgraphunit.c: Convert prototypes to ISO C90.
12703 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
12705 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
12707 * fixinc/fixincl.x: Rebuild.
12709 2003-07-12 Zack Weinberg <zack@codesourcery.com>
12711 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
12712 i?86-*-*. Use correct name of cache variable.
12713 * configure: Regenerate.
12715 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
12717 * config/alpha/alpha.c: Fix comment typos.
12718 * config/alpha/alpha.md: Likewise.
12719 * config/arm/arm.c: Likewise.
12720 * config/arm/arm.md: Likewise.
12721 * config/arm/lib1funcs.asm: Likewise.
12722 * config/avr/avr.md: Likewise.
12723 * config/arm/README-interworking: Fix typos.
12725 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
12727 * c-format.c: Fix comment formatting.
12728 * c-typeck.c: Likewise.
12729 * coverage.c: Likewise.
12730 * cppcharset.c: Likewise.
12731 * cpplib.c: Likewise.
12732 * dbxout.c: Likewise.
12733 * gcov-io.h: Likewise.
12734 * toplev.c: Likewise.
12736 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
12738 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
12741 2003-07-12 Zack Weinberg <zack@codesourcery.com>
12743 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
12744 uses three-argument AC_DEFINE so no acconfig.h entries are
12746 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
12747 which contains the GAS version number as a scaled integer.
12748 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
12749 ability to check for ELF assembler.
12750 (gcc_GAS_CHECK_FEATURE): New macro.
12751 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
12752 assembler feature checks using gcc_GAS_CHECK_FEATURE.
12753 Use three-argument AC_DEFINE everywhere.
12754 * acconfig.h: Deleted.
12755 * config.in, configure: Regenerate.
12757 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
12759 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
12761 * fixinc/fixincl.x: Regenerate.
12763 * fixinc/inclhack.def (gnu_types): Improve comment.
12765 2003-07-12 Andreas Jaeger <aj@suse.de>
12767 * fp-test.c (main): Use ISO C90 prototype.
12769 * version.c: Remove unneded include of ansidecl.h.
12771 * cgraph.h: Convert prototypes to ISO C90.
12772 * cgraph.c: Likewise.
12773 * fix-header.c: Likewise.
12775 * protoize.c: Likewise.
12777 2003-07-12 Jan Hubicka <jh@suse.cz>
12779 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
12782 2003-07-12 Jan Hubicka <jh@suse.cz>
12783 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12785 * cgraph.c (cgraph_max_uid): New global variable.
12786 (cgraph_node): Set uid field.
12787 (create_edge): Keep inline flags consistent.
12788 (dump_cgraph): Dump more info.
12789 * cgraph.h (struct cgraph_local_info): Remove inline_many and
12790 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
12791 (struct cgraph_global_info): Add insns, calls, cloned_times,
12793 (struct cgraph_node): Add uid.
12794 (struct cgraph_edge): Add inline_call.
12795 (cgraph_max_uid, cgraph_inline_p): Declare.
12796 * cgraph.c: Include params.h and fibheap.h
12797 (cgraph_mark_functions_to_inline_once): Kill.
12798 (INSNS_PER_CALL): New constant.
12799 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
12801 (cgraph_finalize_function): Do not analyze inlining.
12802 (cgraph_finalize_compilation_unit): Set inlining attributes.
12803 (cgraph_mark_functions_to_output): More consistency checks.
12804 (cgraph_optimize_function): Set current_function_decl to NULL.
12805 (cgraph_expand_function): Use new inline flags.
12806 (cgraph_postorder): Expand from cgraph_expand_functions.
12807 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
12808 (cgraph_inlined_into, cgraph_inlined_callees,
12809 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
12810 cgraph_mark_inline, cgraph_check_inline_limits,
12811 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
12812 cgraph_decide_inlining, cgraph_inline_p): New functions.
12813 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
12814 PARAM_INLINE_UNIT_GROWTH): New parameters.
12815 * tree-inline.c (struct inline_data): New field current_decl.
12816 (expand_call_inline): Avoid forward declarations; use
12817 inlinable_function_p.
12818 (optimize_inline_calls): Set id.current_decl.
12820 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
12822 * configure.in: Remove wrongly added definition of
12824 * configure: Regenerate.
12826 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
12828 * rtl.def (NOTE): Do not use padding.
12830 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
12832 * doc/install.tex: Update required binutils for i?86-*-linux*
12834 2003-07-11 Richard Henderson <rth@redhat.com>
12836 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
12838 2003-07-11 Mark Mitchell <mark@codesourcery.com>
12840 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
12841 TRANSLATION_UNIT_DECL as top_level.
12843 2003-07-11 Jakub Jelinek <jakub@redhat.com>
12845 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
12846 then fall back to cmpstrM.
12847 * builtins.c (expand_builtin_memcmp): Likewise.
12848 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
12849 (s390_expand_cmpmem): ... this.
12850 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
12851 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
12852 from cmpstr* patterns. Rename call to s390_expand_cmpstr
12853 to s390_expand_cmpmem.
12854 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
12855 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
12857 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
12859 * doc/md.texi (cmpstrM): Describe as String compare insn, not
12860 Block compare insn.
12863 2003-07-11 Loren James Rittle <ljrittle@acm.org>
12865 * config/i386/freebsd.h (SET_ASM_OP): Remove.
12866 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
12867 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
12868 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
12870 2003-07-11 Richard Henderson <rth@redhat.com>
12872 * function.c (assign_parms): Don't recombine complex args if
12873 fnargs is unchanged from orig_fnargs.
12874 (split_complex_args): Return args without complex before copying.
12875 Re-layout the modified parameters.
12877 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
12879 * regclass.c (choose_hard_reg_mode): Add third argument.
12880 Changed all callers.
12881 * rtl.h (choose_hard_reg_mode): Update declaration.
12882 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12883 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
12885 2003-07-11 Geoffrey Keating <geoffk@apple.com>
12887 * c-decl.c (finish_decl): Handle 'used' here...
12888 * cgraphunit.c (cgraph_finalize_function): ... and here ...
12889 * c-common.c: (handle_used_attribute): ... not here.
12891 * configure.in (onstep): Support --enable-intermodule.
12892 * Makefile.in (OBJS-common): New.
12894 (OBJS-archive): New.
12895 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
12896 (OBJS-onestep): New.
12897 (libbackend.a): Support @onestep@.
12898 (libbackend.o): New.
12899 * configure: Regenerate.
12901 * c-common.h (c_reset_state): New prototype.
12902 (c_parse_file): New prototype.
12903 (finish_file): Move prototype from c-tree.h.
12904 * c-decl.c: Include <hashtab.h>.
12905 (builtin_decls): New.
12906 (current_file_decl): New.
12907 (duplicate_decls): Add extra parameter. Change all callers. Don't
12908 output duplicate common symbols.
12909 (link_hash_hash): New.
12910 (link_hash_eq): New.
12911 (poplevel): Handle popping of the top level.
12912 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
12913 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
12914 (pushdecl_top_level): Likewise.
12915 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
12916 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
12917 (finish_decl): Handle TRANSLATION_UNIT_DECL.
12918 (merge_translation_unit_decls): New.
12919 (c_write_global_declarations): New.
12920 (c_reset_state): New.
12921 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
12922 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
12923 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
12924 TRANSLATION_UNIT_DECL.
12925 (c_objc_common_finish_file): Call merge_translation_unit_decls.
12926 * c-opts.c (in_fnames): Rename from in_fname.
12927 (c_common_decode_option): Handle multiple input filenames.
12928 (c_common_post_options): Likewise.
12929 (c_common_parse_file): Likewise; also, call c_parse_file rather than
12931 * c-parse.in: Move cleanup code to c_parse_file.
12932 (free_parser_stacks): Move contents to c_parse_file.
12933 (c_parse_file): New.
12934 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
12936 (C_DECL_FILE_SCOPE): New.
12937 (finish_file): Move prototype to c-common.h.
12938 (merge_translation_unit_decls): New prototype.
12939 (comptypes): Add extra parameter to prototype.
12940 (c_write_global_declarations): New prototype.
12941 * c-typeck.c (tagged_types_tu_compatible_p): New.
12942 (function_types_compatible_p): Add extra parameter, change all callers.
12943 (type_lists_compatible_p): Likewise.
12944 (comptypes): Likewise.
12945 (struct tagged_tu_seen): New.
12946 (tagged_tu_seen_base): New.
12947 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
12948 (c_mark_addressable): Remove #if 0 code.
12949 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
12950 comment explaining why it shouldn't have to.
12951 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
12953 * cppinit.c (cpp_read_next_file): New.
12954 (cpp_read_main_file): Use it.
12955 * cpplib.c (undefine_macros): New.
12956 (cpp_undef_all): New.
12957 * cpplib.h (cpp_read_next_file): Prototype.
12958 (cpp_undef_all): Prototype.
12959 * langhooks-def.h (write_global_declarations): Remove prototype.
12960 * toplev.h (write_global_declarations): Add prototype.
12961 * tree.c (decl_type_context): Use switch statement, handle
12962 TRANSLATION_UNIT_DECL.
12963 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
12964 (TRANSLATION_UNIT_DECL): New kind of tree.
12965 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
12966 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
12967 * doc/invoke.texi: Make attempt to document new functionality.
12969 2003-05-19 Per Bothner <bothner@apple.com>
12971 * gcc.c (combine_inputs): New.
12972 (process_command): Set combine_inputs.
12973 (do_spec_1): Handle combine_inputs.
12976 2003-07-10 James E Wilson <wilson@tuliptree.org>
12978 PR optimization/9745
12979 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
12980 loop_insn_emit_before.
12981 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
12983 2003-07-10 Zack Weinberg <zack@codesourcery.com>
12985 * cppcharset.c: Fix comment.
12986 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
12987 (EILSEQ): #define to EINVAL if not already defined.
12988 (convert_using_iconv): #if out when !HAVE_ICONV.
12989 (init_iconv_desc): Handle !HAVE_ICONV here...
12990 (cpp_init_iconv): ...not here.
12992 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
12994 * common.opt: More --help messages.
12995 * opts.c (print_help): Use puts().
12996 * toplev.c (f_options): Remove help text.
12997 (display_help): Don't dump f_options.
12999 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
13001 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
13002 Move i?86-*-interix* to the don't-fix list.
13003 * fixinc/fixinc.interix: Delete with extreme prejudice.
13005 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
13008 * doc/install.texi: Document requirements for ia64-*-hpux* target.
13010 2003-07-10 Roger Sayle <roger@eyesopen.com>
13012 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
13014 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13016 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
13017 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
13018 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
13019 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
13020 convert_no_conversion, convert_using_iconv): New functions.
13021 (APPLY_CONVERSION): New macro.
13022 (struct conversion, conversion_tab): New data structure.
13023 (init_iconv_desc): Check conversion_tab for a custom conversion
13024 primitive before trying to use iconv.
13025 (convert_cset): Deleted.
13026 (cpp_init_iconv): Use UTF- terminology, not UCS-.
13027 (_cpp_destroy_iconv): Update to match.
13028 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
13029 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
13030 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
13031 (_cpp_interpret_string_notranslate): New function, moved here
13034 * cpphash.h (convert_f, struct cset_converter): New types.
13035 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
13036 are now struct cset_converter, not bare iconv_t.
13038 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
13039 all callers changed.
13041 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
13043 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
13044 to opts.sh command line.
13045 * opts.sh: Write to temporary files with a move-if-change at the end.
13047 2003-07-10 Denis Chertykov <denisc@overta.ru>
13048 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13050 * combine.c (gen_binary): Handle the CLOBBER rtx and
13051 don't build a binary operation with it.
13053 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13055 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
13056 store_killed_after, store_killed_before): Keep track of the correct
13057 dependency function to use.
13059 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
13060 * toplev.c (do_compile): Don't try to open dump files before
13061 lang_dependent_init initializes dump_base_name.
13063 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13065 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
13067 * config/frv/frv.c (frv_expand_builtin): Likewise.
13068 * config/sh/sh.c (sh_media_init_builtins): Likewise.
13070 2003-07-09 Mark Mitchell <mark@codesourcery.com>
13073 * doc/invoke.texi (C++ Dialect Options): Change documentation of
13076 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
13078 * tm.texi (RETURN_ADDR_OFFSET): Document.
13080 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
13082 * gcov-io.h: Update documentation.
13083 (GCOV_UNSIGNED2STRING): New.
13084 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
13085 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
13086 GCOV_TAG_SUMMARY_LENGTH): Adjust.
13087 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
13088 GCOV_TAG_COUNTER_NUM): New.
13089 (GCOV_BLOCK_SIZE): Number of words.
13090 (gcov_var): Adjust buffer type.
13091 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
13092 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
13093 count, not byte count.
13094 (gcov_open): Adjust overread init.
13095 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
13096 gcov_write_string, gcov_write_tag, gcov_write_length,
13097 gcov_write_tag_length): Adjust.
13098 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
13099 (gcov_sync, gcov_seek): Adjust.
13100 * gcov-dump.c (print_usage): Show gcc version only.
13101 (dump_file): Use GCOV_UNSIGNED2STRING.
13102 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
13103 * gcov.c (print_version): Show gcc version only.
13104 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
13105 GCOV_TAG_*_NUM macros.
13106 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
13107 GCOV_TAG_COUNTER_LENGTH.
13108 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
13109 Use GCOV_TAG_COUNTER_NUM.
13110 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
13111 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
13113 2003-07-10 Andreas Schwab <schwab@suse.de>
13115 * gcov-dump.c (dump_file): Fix missing address operator.
13117 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
13120 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
13122 (fold_single_bit_test): If sign_bit_p() fails, assume that the
13123 bit being tested is not a sign bit.
13125 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
13127 * config/h8300/h8300.md (a peephole2): New.
13129 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
13131 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
13132 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
13133 from ld-linux.so.2 to ld.so.1.
13134 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
13135 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
13136 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
13137 nor -Wl,-rpath-link.
13138 (LIB_SPEC): Add -rpath-link if !static.
13139 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
13140 * config/mn10300/mn10300.c (mn10300_protect_label): New
13142 * config/mn10300/linux.h (PRINT_OPERAND,
13143 PRINT_OPERAND_ADDRESS): Set it during their execution.
13144 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
13145 mn10300_protect_label is set.
13146 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
13148 (LIB_SPEC, STARTFILE_SPEC): Define.
13149 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
13150 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
13151 FLOAT_BIT_ORDER_MISMATCH.
13152 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
13153 * config.gcc (am33_2.0-*-linux*): Added.
13154 * config/mn10300/linux.h: New.
13155 * config/mn10300/t-linux: New.
13157 2003-07-10 Andreas Jaeger <aj@suse.de>
13159 * fold-const.c: Properly wrap prototypes.
13161 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
13163 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
13164 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
13166 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
13167 * config/mn10300/mn10300.h: GTY-declare it.
13168 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
13169 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
13170 prototype. Use incoming RTL argument.
13171 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
13172 * config/mn10300/mn10300.md (int_label): Move C statements...
13173 (GOTaddr2picreg): ... here.
13174 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
13175 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
13176 * config/mn10300/mn10300.c (mn10300_encode_section_info):
13177 ... here. New function.
13178 (TARGET_ENCODE_SECTION_INFO): Define to it.
13179 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
13180 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
13182 (mn10300_loadPC): Define as insn splittable after reload.
13183 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
13184 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
13185 be defined in .rodata even in PIC, now that the assembler
13187 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
13188 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
13189 symbol take an underscore prefix.
13190 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13191 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
13192 legitimize_pic_address): Declare.
13193 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
13194 the PIC register as fixed.
13195 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
13196 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
13198 (LEGITIMATE_PIC_OPERAND_P): Define.
13199 (PIC_OFFSET_TABLE_REGNUM): Define.
13200 (GOT_SYMBOL_NAME): Define.
13201 (SYMBOLIC_CONST_P): Define.
13202 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
13204 (MN10300_GLOBAL_P): Test it.
13205 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
13206 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
13207 * config/mn10300/mn10300.c (print_operand): Handle unspec.
13208 (expand_prologue): Set PIC register.
13209 (call_address_operand): Don't match SYMBOL_REFs in PIC.
13210 (legitimize_address): Call legitimize_pic_address.
13211 (legitimize_pic_address): New fn.
13212 (legitimate_pic_operand_p): New fn.
13213 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
13214 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
13215 UNSPEC_PLT): New constants.
13216 (pop_pic_reg): New insn.
13217 (movsi): Adjust non-PIC addresses.
13218 (builtin_setjmp_receiver): Restore the PIC register.
13219 (casesi): New insn.
13220 (call): Adjust non-PIC addresses.
13221 (int_label, GOTaddr2picreg): New expands.
13222 (am33_loadPC): New insn.
13223 (mn10300_loadPC): New expand.
13224 (call_next_insn): New insn.
13225 (add_GOT_to_pic_reg): New expand.
13226 (symGOT2reg, symGOT2reg_i): New expands.
13227 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
13228 (sym2PIC, sym2PLT): New expands.
13230 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
13232 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
13233 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
13234 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
13235 to flag_unsafe_math_optimizations.
13236 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13237 * config/mn10300/mn10300.c (expand_prologue): Mark
13238 FP-register-saving insns as frame-related.
13239 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
13240 * config/mn10300/mn10300.c
13241 (mn10300_get_live_callee_saved_regs): Don't search past
13242 LAST_EXTENDED_REGNUM.
13243 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
13244 * config/mn10300/mn10300.md: Remove excessive line breaks from
13245 `@' output patterns that were accounted as additional
13247 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
13248 Re-introduce changes accidentally removed in Richard Sandiford's
13249 2000-12-05's patch.
13250 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
13251 Re-instate am33-2 lost in merge from net GCC.
13252 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
13253 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
13254 floating-point registers.
13255 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
13256 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
13257 pessimizations that had gone in on 2000-05-08.
13258 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
13259 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
13260 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
13261 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
13263 * (movhi): Likewise.
13264 * (movsi): Likewise.
13265 * (movsf): Likewise.
13266 * (movdi): Likewise.
13267 * (movdf): Likewise.
13268 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
13269 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
13270 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
13271 (expand_prologue, expand_epilogue): Save and restore FP regs.
13272 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
13273 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
13274 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
13275 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
13276 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
13277 Do not clobber cc0.
13278 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
13279 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
13280 Discourage the two-argument, longer opcodes.
13281 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
13283 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
13284 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
13285 * config/mn10300/mn10300.md (cmpsf): New pattern.
13286 (branch): Test mdep.fpCC and output fbCC.
13287 * config/mn10300/mn10300.c (print_operand): Output conditions.
13288 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
13289 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
13290 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
13291 mulsf3, divsf3): Use the `F' constraint for FP values.
13292 * config/mn10300/mn10300.c (const_1f_operand): New function.
13293 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
13294 * config/mn10300/mn10300.md (sqrtsf2): New expand.
13295 (rsqrtsf2): New insn.
13296 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
13297 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
13299 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
13300 * config/mn10300/mn10300.md (abssf2, negdf2): On
13301 TARGET_AM33_2, expand to...
13302 (abssf2_am33_2, negdf2_am33_2): New insns.
13303 (addsf3, subsf3, mulsf3, divsf3): Likewise.
13304 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
13305 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
13306 movdi, movdf): Added FP regs.
13307 * invoke.texi (-mam33-2, -mno-am33-2): Document.
13308 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
13309 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
13311 (REGNO_AM33_2_FP_P): Renamed to...
13312 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
13313 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
13314 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
13315 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
13316 regs from GENERAL_REGS.
13317 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
13318 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
13319 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
13320 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
13321 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
13322 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
13324 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
13325 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
13326 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
13327 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
13328 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
13329 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
13330 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
13331 AM33/2.0 floating-point registers.
13332 (CONDITIONAL_REGISTER_USAGE): Adjust.
13333 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
13334 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
13335 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
13336 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
13337 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
13338 (MULTILIB_DIRNAMES): Likewise.
13339 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
13340 `__AM33_2__' when `-mam33-2' is given.
13341 (TARGET_AM33_2): Define.
13342 (TARGET_SWITCHES): Adjust.
13343 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
13346 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
13348 * doc/install.texi: Add missing @.
13350 2003-07-09 Bob Wilson <bob.wilson@acm.org>
13352 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
13354 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
13357 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
13359 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
13362 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
13363 "x-crtfini.o" with "crtinit.o", "crtfini.o".
13365 * fixinc/inclhack.def (limits_ifndefs): Add select test.
13366 * fixinc/fixincl.x: Rebuild.
13368 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
13369 * fixinc/fixincl.x: Rebuild.
13371 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
13373 * doc/install.texi (Configuration): Document the valgrind option
13374 to --enable-checking.
13376 2003-07-09 Jan Hubicka <jh@suse.cz>
13378 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13380 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13382 * c-lex.c (cb_ident): Cast cstr.text to const char *.
13384 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
13386 * gcov-io.h: Update documentation.
13387 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
13389 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
13390 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
13391 (struct gcov_var): Change buffer's type. Add endian flag.
13392 (gcov_open): Remove mode in libgcov.
13393 (gcov_magic): Prototype.
13394 * gcov-io.c (from_file): New.
13395 (gcov_open): Clear endian flag.
13397 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
13399 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
13400 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
13401 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
13402 * gcov-iov.c (main): Correct cast.
13403 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
13405 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
13406 (coverage_init): Use GCOV_NOTE_SUFFIX.
13407 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
13408 Rename to gcov_version, and return flag.
13409 (gcov_exit): Use gcov_version.
13410 (__gcov_init): Use gcov_version.
13411 * Makefile.in (coverageexts): Update.
13412 * gcov.c (print_version): Remove endianness conversion.
13413 (create_file_names): Use GCOV_NOTE_SUFFIX.
13414 (read_graph_file): Use gcov_magic.
13415 (read_count_file): Likewise.
13416 * gcov-dump.c (dump_file): Remove endianness conversion, use
13419 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
13421 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
13423 * configure: Regenerated.
13424 * Makefile.in (ALL_CFLAGS): Correct its comment.
13426 2003-07-08 Mark Mitchell <mark@codesourcery.com>
13428 * fold-const.c (make_range): Do not access operand 1 for a
13429 zero-operand operator.
13431 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
13433 * toplev.c (warn_dummy, W_options): Die.
13434 (display_help): Don't print W_options.
13435 * common.opt: Add W_options help from toplev.c.
13437 2003-07-09 Andreas Jaeger <aj@suse.de>
13439 * opts.c (wrap_help): Only pass int arguments as arguments to
13440 printf's '*' modifier. Change argument of function.
13442 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
13444 * doc/invoke.texi: Fix misspelling of "@item".
13446 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
13448 * config/i386/i386.md: Remove an old comment about
13451 2003-07-09 Jan Hubicka <jh@suse.cz>
13453 * cgraph.c (cgraph_node_name): New function.
13454 (dump_cgraph): Use it.
13455 * cgraph.h (cgraph_dump_file): Declare.
13456 (cgraph_node_name): Declare.
13457 * cgraphunit.c: Include timevar.h
13458 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
13459 (cgraph_optimize_function): Use TV_INTEGRATION.
13460 (cgraph_mark_local_functions): reorganize dumps.
13461 (cgraph_mark_functions_to_inline_once): Likewise.
13462 (cgraph_optimize): Likewise; use timevar.
13463 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
13464 * toplev.c (dump_file_index): Add DFI_cgraph.
13465 (dump_file_info): Likewise.
13466 (cgraph_dump_file): New global variable.
13467 (do_compile): Open and close cgraph dump.
13468 * invoke.texi (-d): Document new flag; renumber.
13470 2003-07-08 Roger Sayle <roger@eyesopen.com>
13473 * calls.c (emit_call_1): Don't bother popping the arguments off of
13474 the stack after a noreturn function call; The adjustment is dead.
13475 (expand_call): Likewise.
13477 2003-07-08 Geoffrey Keating <geoffk@apple.com>
13479 * expr.c (MOVE_MAX_PIECES): Move from here...
13480 * defaults.h (MOVE_MAX_PIECES): ... to here.
13482 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
13484 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
13486 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13488 * genattr.c (internal_dfa_insn_code): Don't prototype.
13489 * genattrtab.c (attr_desc): Add `static_p' field.
13490 (expand_units): Make blockage range and ready cost functions
13492 (write_attr_get): Don't add extern prototypes in C file. Mark
13493 static functions as appropriate.
13494 (find_attr, make_internal_attr): Initialize static_p.
13495 * genattrtab.h (ATTR_STATIC): New macro.
13496 * genautomata.c (output_internal_reset_func): Mark output function
13498 (make_internal_dfa_insn_code_attr): Mark output function as static.
13500 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13502 * genattrtab.h: Add new macros for attr `special' flags.
13503 * genattrtab.c (attr_desc): Reorder/resize fields better.
13504 Use attr `special' macros in all calls to make_internal_attr.
13505 * genautomata.c: Likewise.
13507 2003-07-09 Jan Hubicka <jh@suse.cz>
13509 * c-common.c (c_estimate_num_insns_1): New static function.
13510 (c_estimate_num_insns): New global function.
13511 * c-common.h (DECL_NUM_STMTS): Rename to...
13512 (DECL_ESTIMATED_INSNS): ... this.
13513 (c_estimate_num_insns): Declare.
13514 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
13515 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13516 * c-semantics.c (add_stmt): Do not account statements.
13517 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
13519 * langhooks.h (lang_hooks_for_tree_inlining): Add
13521 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
13523 (max-inline-insns): set to 300.
13524 (min-inline-insns): set to 10.
13525 * tree-inline.c (struct inline_data): Rename inlined_stmts to
13527 (INSNS_PER_STMT): Kill.
13528 (inlinable_function_p): Compute and store body size.
13529 (expand_call_inline): Likewise.
13530 (optimize_inline_calls): Likewise.
13532 2003-07-08 James E Wilson <wilson@tuliptree.org>
13535 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
13536 loop over new variable t2 instead of t.
13538 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
13541 * config/i386/winnt.c: Replace use of error(), warning() with
13542 error_with_decl(), warning_with_decl(), throughout.
13544 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
13546 * opts.c (wrap_help): Use unsigned int, not size_t.
13548 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
13550 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
13551 as .file/.loc directives are incompatible with linker relaxation.
13553 2003-07-08 Zack Weinberg <zack@codesourcery.com>
13555 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
13556 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
13557 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
13558 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
13559 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
13560 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
13561 Escape { and } characters which are not part of range expressions.
13562 * fixinc/fixincl.x: Regenerate.
13563 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
13565 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
13568 * tree-inline.c (find_alloca_call): Use
13569 walk_tree_without_duplicates, instead of walk_tree.
13570 (find_builtin_longjmp_call): Likewise.
13571 * c-objc-common.c (c_cannot_inline_fn): Likewise.
13572 * c-semantics.c (find_reachable_label): Likewise.
13574 2003-07-08 Jakub Jelinek <jakub@redhat.com>
13577 * config/i386/i386.c (ix86_check_movabs): New function.
13578 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
13579 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
13580 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
13582 2003-07-08 Chris Demetriou <cgd@broadcom.com>
13584 * Makefile.in (install-po): Cope with empty CATALOGS.
13586 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
13588 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13589 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
13590 (SECTION_FUNCTION_TEMPLATE): Delete.
13591 * config/mips/elf.h: As for elf64.h.
13592 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
13593 * config/mips/linux.h: As for elf.h
13594 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13595 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
13596 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
13597 of in_sdata from current_section_name and current_section_flags.
13598 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13599 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
13600 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
13601 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
13602 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
13603 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13604 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
13605 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
13606 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
13607 (override_options): Remove setting of MASK_GPOPT.
13608 (mips_output_external): Use mips_in_small_data_p to check whether a
13609 symbol needs an .extern directive. Don't emit such directives for
13610 TARGET_EXPLICIT_RELOCS.
13611 (mips_declare_object): Update accordingly.
13612 (mips_select_rtx_section): Call named_section rather than
13613 SMALL_DATA_SECTION.
13614 (mips_select_section): Use default_elf_section_section for everything
13615 except .text string constants.
13616 (mips_in_small_data_p): New function.
13617 (mips_encode_section_info): Remove small data handling.
13618 (mips_unique_section): Delete.
13619 (iris6_section_type_flags): New function.
13620 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
13622 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13625 * pa.md: Disparage all mtsar constraints.
13626 (extzv, extv, insv): Don't fail on length of {32|64}.
13628 2003-07-08 Zack Weinberg <zack@codesourcery.com>
13630 * system.h: Poison MAP_CHARACTER.
13631 * config/i370/i370-protos.h (mvs_map_char): Delete.
13632 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
13633 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
13634 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
13636 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
13638 * toplev.c (randomize): Correct call to time().
13640 2003-07-08 Jakub Jelinek <jakub@redhat.com>
13642 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
13643 REG_EQUIV notes as well.
13645 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
13647 * doc/md.texi: Fix the description of addmodecc.
13649 2003-07-07 Zack Weinberg <zack@codesourcery.com>
13651 * Makefile.in (top_builddir): Set to "..", not ".".
13652 (INTLLIBS, INTLDEPS): Delete.
13653 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
13654 (LIBDEPS): Add $(LIBICONV_DEP).
13655 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
13656 (INCLUDES): Replace -I../intl with @INCINTL@.
13657 ($(top_builddir)/intl/libintl.a): Delete rule.
13658 (stage2-start, stage3-start, stage4-start, stageprofile-start,
13659 stagefeedback-start): Use $$ for variable to be evaluated by
13661 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
13662 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
13663 * aclocal.m4: sinclude ../config/progtest.m4. Add
13664 contents of lcmessage.m4 from gettext distro.
13665 * configure.in: Check for wchar.h and setlocale. Set
13666 LIBICONV_DEP to the empty string and substitute it.
13667 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
13668 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
13669 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
13670 in $LIBINTL, to avoid linking it twice.
13671 * configure, config.in: Regenerate.
13673 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
13675 * fixinc/mkfixinc.sh: Remove winnt support.
13676 * fixinc/fixinc.winnt: Delete with extreme prejudice.
13678 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
13680 * Makefile.in: Update.
13681 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
13682 * c.opt: Update documentation.
13683 * common.opt: Add some help text.
13684 * opts.c: Include intl.h.
13685 (wrap_help, print_help): New.
13686 (find_opt, handle_option, common_handle_option): opt_text now
13687 contains the '-'. Use print_help to output help.
13688 * opts.h (struct cl_option): New member "help".
13689 * opts.sh: Update to handle help text output and to prepend
13691 * toplev.c (display_help): Remove some help text.
13693 2003-07-07 David Edelsohn <edelsohn@gnu.org>
13694 Fariborz Jahanian <fjahanian@apple.com>
13696 * configure.in: Test for PowerPC mfcr field support in assembler.
13697 * config.in, configure: Regenderated.
13699 * config/rs6000/power4.md: Add mfcrf reservation.
13700 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
13701 * config/rs6000/rs6000.c (mfcr_operation): Define.
13702 (print_operand): Add 'Q' case for mfcrf.
13703 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
13704 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
13705 (movcc_internal1): Emit optional field operand for mfcr and set
13706 "type" attribute appropriately.
13707 (mfcr SCC): Likewise.
13708 (movesi_from_cr_one): New.
13710 2003-07-07 Roger Sayle <roger@eyesopen.com>
13712 * config/i386/i386.md: Correct check-in of incorrect version.
13714 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13716 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
13717 adjacent stdio calls.
13718 * c-decl.c (c_print_identifier): Likewise.
13719 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
13720 * print-rtl.c (print_rtx): Likewise.
13721 * print-tree.c (print_node_brief, print_node): Likewise.
13722 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
13724 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
13725 * config.in, configure: Regenerated.
13727 2003-07-07 Roger Sayle <roger@eyesopen.com>
13730 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
13731 Changed to define_expand patterns that copy operand[1] to prevent
13732 it from being clobbered before emitting an atan2?f3_1 insn.
13733 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
13734 patterns that actually specify the behaviour of x87's FPATAN.
13736 2003-07-07 Jakub Jelinek <jakub@redhat.com>
13738 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
13739 clearing of SYMBOL_FLAG_LOCAL bit.
13740 If vcall_offset fits into signed 16-bit immediate, use
13741 one instruction for both addition and load.
13743 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
13745 * opts.c (common_handle_option): Correct handling of the
13746 -falign- switches that do and don't take an argument.
13748 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
13750 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
13752 (pushhi1_h8300hs): Likewise.
13754 2003-07-07 Andreas Jaeger <aj@suse.de>
13756 * genextract.c: Convert remaining prototypes to ISO C90.
13758 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
13759 * fold-const.c (fold_single_bit_test): Likewise.
13760 * diagnostic.c (default_diagnostic_finalizer): Likewise.
13761 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
13763 * gengtype.c (write_array): Generate ISO C90 prototypes.
13765 * genflags.c (gen_proto): Generate ISO C90 prototypes.
13767 2003-07-07 Roger Sayle <roger@eyesopen.com>
13769 PR optimization/11059
13770 * expr.c (can_store_by_pieces): Return true if length is zero.
13771 (store_by_pieces): If length is zero and endp is two, abort,
13772 othwerise, if length is zero and endp is not two, return "to".
13773 (clear_by_pieces): Do nothing if length is zero.
13774 (clear_storage): Do nothing if length is zero.
13775 (store_constructor): Simplify code when size is zero, or the
13776 target has already been cleared. This avoids emitting a
13777 blockage instruction when initializing empty structures.
13779 2003-07-07 Andreas Jaeger <aj@suse.de>
13781 * mips-tfile.c: Convert prototypes to ISO C90.
13782 * mips-tdump.c: Convert prototypes to ISO C90.
13784 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
13786 * rtl.h (emit_line_note): Take a location_t.
13787 (emit_line_note_force): Remove.
13788 (set_file_and_line_for_statement): Take a location_t.
13789 * tree.g (emit_line_note): Take a location_t.
13790 * emit-rtl.c (emit_line_note): Take a location_t.
13791 (emit_line_note_force): Remove.
13792 * function.c (init_function_start): Adjust emit_line_note call.
13793 (expand_function_end): Use force_next_line_note, not
13794 emit_line_note_force.
13795 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
13796 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
13797 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
13798 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
13799 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
13800 genrtl_continue_stmt, genrtl_switch_stmt,
13801 genrtl_asm_stmt): Likewise.
13802 * expr.c (expand_expr): Likewise.
13803 * integrate.c (expand_inline_function): Likewise.
13804 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
13805 (expand_decl_init): Adjust emit_line_note call.
13807 2003-07-07 Dale Johannesen <dalej@apple.com>
13809 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
13811 2003-07-07 Andreas Jaeger <aj@suse.de>
13813 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
13814 * config/i386/i386.c: Likewise.
13816 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
13818 * config/h8300/h8300.md: Use gen_int_mode instead of
13819 GEN_INT (trunc_int_for_mode (...)).
13821 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
13823 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
13824 2 bytes and then subtract 2 from the stack pointer.
13825 (pushhi1_h8300hs): Likewise.
13827 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
13829 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
13831 * configure: Regenerated.
13832 * Makefile.in: Remove extraneous comment.
13833 * toplev.c (randomize): Protect against potential multiple calls.
13834 * doc/invoke.texi (-frandom-seed): Document use for in coverage
13837 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13838 Eric Botcazou <ebotcazou@libertysurf.fr>
13840 PR optimization/11198
13841 * alias.c (objects_must_conflict_p): Return 1 if the types have
13842 the same alias set, not if the alias sets only conflict.
13844 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
13846 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
13847 (convert_cset): Change inbuf to type ICONV_CONST char.
13848 * Makefile.in (LIBS): Add LIBICONV.
13850 * doc/invoke.texi (-falign-functions): Document that
13851 when n is zero then a machine-dependent default is used.
13852 (-falign-labels): Document that when n is zero then a
13853 machine-dependent default is used and that -falign-labels =1
13854 is equivalent to -fno-align-labels.
13855 (-falign-loops): Likewise.
13856 (-falign-jumps): Likewise.
13858 2003-07-06 Art Haas <ahaas@airmail.net>
13860 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
13861 initializer syntax.
13863 2003-07-06 James E Wilson <wilson@tuliptree.org>
13865 PR optimization/9812
13866 * rtl.h (mem_for_const_double): Delete prototype.
13867 * varasm.c (mem_for_const_double): Delete function.
13868 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
13869 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
13870 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
13871 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
13872 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
13873 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
13874 comment about confused support for XFmode constants.
13876 2003-07-07 Jan Hubicka <jh@suse.cz>
13878 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
13880 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
13882 * config/h8300/h8300.c: Fix comment typos.
13883 * config/h8300/h8300.md: Likewise.
13884 * config/i386/athlon.md: Likewise.
13885 * config/i386/i386.c: Likewise.
13886 * config/i386/pentium.md: Likewise.
13887 * config/ia64/ia64.c: Likewise.
13888 * config/ia64/itanium1.md: Likewise.
13889 * config/ia64/itanium2.md: Likewise.
13890 * config/m32r/m32r.md: Likewise.
13891 * config/m68hc11/m68hc11.c: Likewise.
13892 * config/mcore/mcore.c: Likewise.
13893 * config/mips/sr71k.md: Likewise.
13894 * config/mips/t-iris5-as: Likewise.
13895 * config/mmix/mmix.h: Likewise.
13896 * config/ns32k/ns32k.h: Likewise.
13897 * config/ns32k/NOTES: Fix a typo.
13899 2003-07-06 Andreas Jaeger <aj@suse.de>
13901 * stmt.c: Convert remaining prototypes to ISO C90.
13902 * cfglayout.c: Likewise.
13903 * dbxout.c: Likewise.
13905 * genemit.c: Likewise.
13907 * basic-block.h: Convert prototypes to ISO C90.
13908 * c-parse.in: Likewise.
13909 * c-pragma.h: Likewise.
13910 * c-typeck.c: Likewise.
13911 * cfghooks.h: Likewise.
13912 * cfgloopanal.c: Likewise.
13913 * dbxout.h: Likewise.
13914 * debug.h: Likewise.
13915 * dwarf2asm.h: Likewise.
13916 * gcov.c: Likewise.
13917 * gengtype-lex.l: Likewise.
13918 * sched-int.h: Likewise.
13919 * timevar.c: Likewise.
13921 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
13923 * c-common.h (c_comon_handle_filename,
13924 c_common_missing_arguement): New.
13925 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
13926 LANG_HOOKS_MISSING_ARGUMENT): New.
13927 * c-opts.c (missing_arg): Rename c_common_missing_argument,
13928 update to be an appropriate langhook.
13929 (c_common_handle_option): Don't handle filenames.
13930 (c_common_handle_filename): New.
13931 * hooks.c (hook_void_constcharptr,
13932 hook_bool_constcharptr_size_t_false): New.
13933 * hooks.h (hook_void_constcharptr,
13934 hook_bool_constcharptr_size_t_false): New.
13935 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
13936 LANG_HOOKS_MISSING_ARGUMENT): New.
13937 (LANG_HOOKS_INITIALIZER): Update.
13938 * langhooks.h (struct lang_hooks): Add handle_filename and
13940 * opts.c (handle_option): Don't handle filenames here, but ...
13941 (handle_options): ... here.
13942 (common_handle_option): Don't handle missing arguments here.
13943 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
13944 LANG_HOOKS_MISSING_ARGUMENT): New.
13946 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
13948 * Makfile.in: Remove traces of mbchar.
13949 * c-parse.in (MULTIBYTE_CHARS): Remove.
13950 * config.in (MULTIBYTE_CHARS): Remove.
13951 * configure: Remove --enable-mbchar.
13952 * configure.in: Remove --enable-mbchar.
13953 * mbchar.c, mbchar.h: Remove.
13954 * system.h: Poison MULTIBYTE_CHARS.
13955 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
13956 * config/linux.h (MULTIBYTE_CHARS): Remove.
13957 * config/svr4.h (MULTIBYTE_CHARS): Remove.
13958 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
13960 2003-07-06 Andreas Jaeger <aj@suse.de>
13962 * varray.c (varray_check_failed): Fix typo.
13964 * unroll.c: Convert prototypes to ISO C90.
13965 * varasm.c: Likewise.
13966 * varray.c: Likewise.
13967 * varray.h: Likewise.
13968 * vmsdbgout.c: Likewise.
13969 * xcoffout.c: Likewise.
13970 * xcoffout.h: Likewise.
13972 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
13974 * gcov-io.h: Add a local time stamp.
13975 (struct gcov_info): Add stamp field.
13976 (gcov_truncate): New.
13977 * coverage.c (read_counts_file): Skip the stamp.
13978 (coverage_begin_output): Write the stamp.
13979 (build_gcov_info): Declare and init the stamp.
13980 (coverage_finish): Only unlink data file, if stamp is zero.
13981 * gcov-dump.c (dump_file): Dump the stamp.
13982 * gcov.c (bbg_stamp): New.
13983 (release_structures): Clear bbg_stamp.
13984 (read_graph_file): Read stamp.
13985 (read_count_file): Check stamp.
13986 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
13988 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
13990 * tree.h (default_flag_random_seed): Remove.
13991 * toplev.h (local_tick): Declare.
13992 * tree.c (flag_random_seed, default_flag_random_seed): Move to
13994 (append_random_chars): Don't call default_flag_random_seed.
13995 * toplev.c (flag_random_seed): Define here. Set local_tick.
13996 (local_tick): Define.
13997 (randomize): New, moved from tree.c.
13998 (print_switch_values): Adjust.
13999 (toplev_main): Call randomize.
14001 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14003 * tree.h (crc32_string): Declare.
14004 * tree.c (append_random_chars): Remove.
14005 (crc32_string): New.
14006 (get_file_function_name_long): Use crc32_string here.
14008 2003-07-06 Andreas Jaeger <aj@suse.de>
14010 * gcc.c: Convert prototypes to ISO C90.
14012 * gcov-dump.c: Likewise.
14013 * gcov-iov.c: Likewise.
14014 * gcse.c: Likewise.
14015 * genattrtab.h: Likewise.
14017 * global.c: Likewise.
14018 * graph.c: Likewise.
14019 * graph.h: Likewise.
14020 * hosthooks.h: Likewise.
14021 * hooks.h: Likewise.
14022 * hooks.c: Likewise.
14023 * hashtable.h: Likewise.
14024 * hashtable.c: Likewise.
14025 * haifa-sched.c: Likewise.
14026 * integrate.h: Likewise.
14027 * integrate.c: Likewise.
14028 * input.h: Likewise.
14029 * ifcvt.c: Likewise.
14030 * jump.c: Likewise.
14031 * langhooks-def.h: Likewise. Add extern to prototypes.
14032 * langhooks.c: Likewise.
14033 * langhooks.h: Likewise.
14035 * local-alloc.c: Likewise.
14036 * loop-init.c: Likewise.
14037 * loop-unroll.c: Likewise.
14038 * loop-unswitch.c: Likewise.
14039 * loop.c: Likewise.
14040 * loop.h: Likewise. Add extern to prototypes.
14041 * machmode.h: Likewise.
14042 * main.c: Likewise.
14043 * mbchar.c: Likewise.
14044 * mbchar.h: Likewise.
14045 * mkdeps.c: Likewise.
14046 * mkdeps.h: Likewise.
14047 * optabs.c: Likewise.
14048 * optabs.h: Likewise.
14049 * output.h: Likewise.
14050 * gccspec.c: Likwise.
14051 * postreload.c: Likewise.
14052 * prefix.c: Likewise.
14053 * prefix.h: Likewise.
14054 * print-rtl.c: Likewise.
14055 * print-tree.c: Likewise.
14056 * profile.c: Likewise.
14057 * read-rtl.c: Likewise.
14058 * real.c: Likewise.
14059 * real.h: Likewise.
14060 * recog.c: Likewise.
14061 * recog.h: Likewise.
14062 * reg-stack.c: Likewise.
14063 * regclass.c: Likewise.
14064 * regmove.c: Likewise.
14065 * regrename.c: Likewise.
14066 * regs.h: Likewise.
14067 * reload.c: Likewise.
14068 * reload.h: Likewise.
14069 * reload1.c: Likewise.
14070 * reorg.c: Likewise.
14071 * resource.c: Likewise.
14072 * resource.h: Likewise.
14073 * rtl-error.c: Likewise.
14076 * rtlanal.c: Likewise.
14077 * sbitmap.c: Likewise.
14078 * sbitmap.h: Likewise.
14079 * scan-decls.c: Likewise.
14080 * scan.c: Likewise.
14081 * sched-deps.c: Likewise.
14082 * sched-ebb.c: Likewise.
14083 * sched-int.h: Likewise.
14084 * sched-rgn.c: Likewise.
14085 * sched-vis.c: Likewise.
14086 * sibcall.c: Likewise.
14087 * simplify-rtx.c: Likewise.
14088 * sreal.c: Likewise.
14089 * sreal.h: Likewise.
14090 * ssa-ccp.c: Likewise.
14091 * ssa-dce.c: Likewise.
14094 * stack.h: Likewise.
14095 * stmt.c: Likewise.
14096 * stor-layout.c: Likewise.
14097 * stringpool.c: Likewise.
14098 * target.h: Likewise.
14099 * timevar.c: Likewise.
14100 * timevar.h: Likewise.
14101 * tlink.c: Likewise.
14102 * tracer.c: Likewise.
14103 * tree-inline.c: Likewise.
14104 * tree-inline.h: Likewise.
14105 * tree.c: Likewise.
14106 * tree.h: Likewise.
14108 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14110 * combine.c (nonzero_bits1): Fix a warning.
14112 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14114 * config/h8300/h8300.c (compute_mov_length): Correct the
14115 length of loading CONST0_RTX (SFmode).
14117 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
14119 * toplev.c (output_clean_symbol_name): Remove.
14120 * toplev.h (output_clean_symbol_name): Remove.
14121 * config/alpha/alpha.c (unicosmk_output_module_name): Use
14122 lbasename & clean_symbol_name.
14124 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14126 * ggc.h: Follow spelling conventions.
14127 * config/i386/i386.c: Likewise.
14128 * config/i386/winnt.c: Likewise.
14129 * config/rs6000/rs6000.c: Likewise.
14131 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14133 * bt-load.c: Fix comment typos.
14134 * c-incpath.c: Likewise.
14136 * cfgcleanup.c: Likewise.
14137 * cfgloop.h: Likewise.
14138 * cfgloopmanip.c: Likewise.
14139 * cfgrtl.c: Likewise.
14140 * diagnostic.h: Likewise.
14141 * dwarfout.c: Likewise.
14142 * emit-rtl.c: Likewise.
14143 * et-forest.c: Likewise.
14144 * et-forest.h: Likewise.
14145 * expr.c: Likewise.
14146 * gcse.c: Likewise.
14147 * genattr.c: Likewise.
14148 * jump.c: Likewise.
14149 * langhooks.h: Likewise.
14150 * local-alloc.c: Likewise.
14151 * loop-unroll.c: Likewise.
14152 * loop-unswitch.c: Likewise.
14153 * ra-build.c: Likewise.
14154 * regclass.c: Likewise.
14155 * regmove.c: Likewise.
14156 * rtl.def: Likewise.
14157 * rtlanal.c: Likewise.
14158 * sched-ebb.c: Likewise.
14159 * sched-rgn.c: Likewise.
14160 * simplify-rtx.c: Likewise.
14162 * tracer.c: Likewise.
14163 * tree.c: Likewise.
14165 2003-07-05 Zack Weinberg <zack@codesourcery.com>
14167 * cppcharset.c: Use the correct return type for the fallback iconv
14170 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14172 Blame to Jan Hubicka <jh@suse.cz>
14173 * cfglayout.c (record_effective_endpoints): Split insns before
14174 first basic block correctly.
14176 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14178 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
14179 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
14180 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
14182 2003-07-05 Andreas Jaeger <aj@suse.de>
14184 * genattrtab.c (write_attr_get): Revert part of last patch to
14185 always write out a prototype.
14187 * genemit.c (gen_split): Readd lost unused attributes in last
14190 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14192 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
14193 different from header.
14195 2003-07-05 Andreas Schwab <schwab@suse.de>
14197 * config/m68k/m68k.c: Remove code protected by CRDS.
14198 * config/m68k/m68k.md: Likewise.
14200 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
14203 * c-opts.c (permit_fortran_options): New.
14204 (c_common_init_options): Accept fortran front end options if
14205 it looks like we might be preprocessing Fortran.
14206 (c_common_handle_option): Don't reject switch if permit_fotran_options.
14208 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14210 * genattr.c (internal_dfa_insn_code): Output prototype.
14211 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
14212 * genautomata.c: Likewise.
14213 * genconditions.c: Likewise.
14214 * genemit.c: Likewise.
14215 * genextract.c: Likewise.
14216 * gengenrtl.c: Likewise.
14217 * gengtype.c: Likewise.
14218 * genopinit.c: Likewise.
14219 * genoutput.c: Likewise.
14220 * genpeep.c: Likewise.
14221 * genrecog.c: Likewise.
14223 2003-07-04 Zack Weinberg <zack@codesourcery.com>
14225 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
14226 (struct cpp_options): Add narrow_charset, wide_charset,
14227 bytes_big_endian fields. Remove EBCDIC field.
14228 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
14230 * cpphash.h: Include <iconv.h> if we have it, otherwise
14231 provide a dummy definition of iconv_t.
14232 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
14233 (_cpp_valid_ucn): Update prototype.
14234 (_cpp_destroy_iconv): New prototype.
14236 * doc/cpp.texi: Document character set handling.
14237 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
14238 * doc/extend.texi: Delete entire section on multiline strings.
14239 Rewrite section on __FUNCTION__ etc now that these are
14242 * cppucnid.tab, cppucnid.pl: New files.
14243 * cppucnid.h: New generated file.
14244 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
14245 (iconv_open, iconv, iconv_close): Provide dummy definitions
14247 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
14248 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
14249 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
14250 cpp_interpret_string, narrow_str_to_charconst,
14251 wide_str_to_charconst): New.
14252 (ucn_valid_in_identifier): Use a binary search through the
14253 ucnranges table defined in cppucnid.h, not a long chain of if
14255 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
14256 character names are only valid in C++ and C99" to a warning.
14257 Issue the "meaning of \[uU] is different in traditional C"
14258 warning here. Take care not to let iconv see an invalid UCS
14259 value if we get a malformed UCN. Issue an error if we don't
14261 (cpp_interpret_charconst): Moved here from cpplex.c. Use
14262 cpp_interpret_string to do the heavy lifting.
14264 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
14265 narrow_charset, wide_charset fields of options structure.
14266 (cpp_destroy): Call _cpp_destroy_iconv.
14267 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
14268 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
14269 (cpp_interpret_charconst): Moved to cppcharset.c.
14270 * cpplib.c (dequote_string): Delete.
14271 (interpret_string_notranslate): New.
14272 (do_line, do_linemarker): Use interpret_string_notranslate.
14274 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
14276 * c-common.c (fname_string, combine_strings): Delete.
14277 * c-common.h (fname_string, combine_strings): Delete prototypes.
14278 * c-lex.c (ignore_escape_flag): Delete.
14279 (cb_ident): Use cpp_interpret_string, not lex_string.
14280 (get_nonpadding_token): New function.
14281 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
14282 Adjust calls to lex_string. Don't write *value twice.
14283 (lex_string): Now handles string constant concatenation.
14284 Most of the work handed off to cpp_interpret_string.
14285 Call fix_string_type here.
14286 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
14287 FUNC_NAME, throughout.
14288 (OBJC_STRING): New token type.
14289 (primary:STRING): No need to call fix_string_type here.
14290 (primary:objc_string): Make that OBJC_STRING.
14291 (objc_string nonterminal): Delete.
14292 (yylexname): Delete code to handle fake string constants.
14293 (yylexstring): Delete entirely.
14294 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
14295 to handle CPP_ATSIGN.
14297 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
14298 * c-opts.c (missing_arg, c_common_handle_option): Handle
14299 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
14300 (c_common_init): Set cpp_opts->bytes_big_endian, not
14301 cpp_opts->EBCDIC. Call cpp_init_iconv.
14302 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
14303 (TARGET_EBCDIC): Delete default definition.
14305 * objc/objc-act.c (build_objc_string_object): No need to
14306 handle string constant concatenation.
14308 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
14310 * doc/install.texi: Fix typos.
14311 * doc/invoke.texi: Likewise.
14312 * doc/tm.texi: Likewise.
14314 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
14316 * config/pa/fptr.c: Fix comment typos.
14317 * config/pa/pa-64.h: Likewise.
14318 * config/pa/pa.c: Likewise.
14319 * config/pa/pa.h: Likewise.
14320 * config/rs6000/603.md: Likewise.
14321 * config/rs6000/7xx.md: Likewise.
14322 * config/rs6000/darwin.h: Likewise.
14323 * config/rs6000/freebsd.h: Likewise.
14324 * config/rs6000/rs6000.c: Likewise.
14325 * config/rs6000/rs6000.md: Likewise.
14326 * config/rs6000/spe.h: Likewise.
14328 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
14330 * config/s390/2064.md: Change GNU CC to GCC.
14331 * config/s390/2084.md: Likewise.
14332 * config/s390/fixdfdi.h: Likewise.
14333 * config/s390/linux.h: Likewise.
14334 * config/s390/s390-modes.def: Likewise.
14335 * config/s390/s390-protos.h: Likewise.
14336 * config/s390/s390.c: Likewise.
14337 * config/s390/s390.h: Likewise.
14338 * config/s390/s390.md: Likewise.
14339 * config/s390/s390x.h: Likewise.
14341 2003-07-04 Jeff Law <law@redhat.com>
14344 * expr.c (do_store_flag): Pass in the correct result type
14345 when calling fold_single_bit_test.
14346 * fold-const.c (fold_single_bit_test): Use result_type for the
14347 result when folding a sign bit test.
14349 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
14351 * opts.c (common_handle_options): Negate sense of -falign- switches.
14353 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
14355 * Makefile.in: Replace PWD with PWD_COMMAND.
14357 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14359 * cfgloopanal.c (count_strange_loop_iterations): New static function.
14360 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
14361 Handle strange loops.
14363 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
14365 * install.texi: Even the g77 manpage is derived from
14366 the full g77 manual.
14368 2003-07-04 Zack Weinberg <zack@codesourcery.com>
14370 * ABOUT-NLS: Delete.
14371 * intl: Delete entire directory.
14372 * aclocal.m4: Include ../config/gettext.m4. Delete
14373 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
14374 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
14375 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
14376 Remove intl/Makefile from all_outputs.
14377 * configure, config.in: Regenerate.
14378 * Makefile.in: Expunge all references to intl subdirectory.
14379 Add -I../intl to INCLUDES.
14380 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
14382 2003-07-04 Roger Sayle <roger@eyesopen.com>
14384 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
14385 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
14387 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
14389 PR c++/5287, PR c++/7910, PR c++/11021
14390 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
14391 dllimport attribute if function is defined at declaration, but
14392 report error instead. Likewise for dllimport'd variable
14393 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
14394 declared within functions, Report error if dllimport or dllexport
14395 symbol is not global.
14396 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
14397 if defined after declaration or if inlined. Don't allow definition
14398 of static data members of C++ classes. Don't dllimport virtual
14400 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
14401 (i386_pe_mark_dllimport): Remove unnecessary checks.
14402 (i386_pe_encode_section_info): Warn if the dllimport attribute
14403 and symbol prefix have been instantiated and then overridden.
14405 * doc/extend.texi: Document dllimport and dllexport attributes.
14407 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
14409 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
14411 * config/kaos.h (CPP_PREDEFINES): Delete.
14412 (TARGET_OS_CPP_BUILTINS): New.
14414 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14416 * c-aux-info.c: Include toplev.h after c-tree.h.
14417 * c-common.c: Likewise.
14418 (GCC_DIAG_STYLE): Undef.
14419 * c-semantics.c (GCC_DIAG_STYLE): Define.
14420 * c-tree.h (GCC_DIAG_STYLE): Likewise.
14421 * diagnostic.h (inform): Move prototype to toplev.h.
14422 * jump.c: Include diagnostic.h before toplev.h.
14423 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
14424 (warning, error, fatal_error, pedwarn, sorry, inform,
14425 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
14427 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14429 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
14430 at all if edge is not specified.
14431 (can_copy_bbs_p, copy_bbs): New.
14432 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
14433 * cfgloop.c (get_loop_body): Comment more precisely.
14434 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
14435 (scale_bbs_frequencies): Fix comment typo.
14436 (can_duplicate_loop_p): Use can_copy_bbs_p.
14437 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
14439 2003-07-03 Devang Patel <dpatel@apple.com>
14441 * c-opts.c (c_common_parse_file): Remove extra
14442 debug_hooks->start_source_file call.
14444 2003-07-03 Roger Sayle <roger@eyesopen.com>
14446 * real.c (real_trunc, real_floor, real_ceil): New functions
14447 to implement trunc, floor and ceil respectively.
14448 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
14449 * builtins.c (integer_valued_real_p): New function to test if
14450 a floating point expression has an integer valued result.
14451 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
14452 foo(x) where foo is an integer rounding function. Similarly,
14453 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
14454 (double)(int)x when both foo and bar are integer rounding
14455 functions and we don't need to honor errno.
14456 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
14457 New functions to fold trunc, floor and ceil.
14458 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
14459 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
14460 to fold BUILT_IN_CEIL*.
14461 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
14462 the remaining integer rounding functions.
14464 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14466 * config/sparc/sparc.c (function_arg_partial_nregs): Use
14467 SPARC_INT_ARG_MAX to determine where to split unnamed
14468 complex FP arguments.
14470 2003-07-03 Jan Hubicka <jh@suse.cz>
14472 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
14473 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
14474 (merge_blocks_move_predecessor_nojumps,
14475 merge_blocks_move_successor_nojumps): Use merge_blocks.
14476 (try_optimize_cfg): Use merge_blocks_move.
14477 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
14478 (merge_blocks_nomove): Rename to rtl_merge_blocks.
14479 (cfg_layout_create_basic_block): New.
14480 (rtl_can_merge_blocks): New.
14481 (cfg_layout_split_block): Do not alloc aux by hand.
14482 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
14484 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
14485 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
14486 * cfgloopmanip.c (loop_split_edge_with): Likewise.
14487 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
14489 * basic-block.h (basic_block_def): Add field 'rbi'.
14490 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
14491 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
14492 * cfg.c (entry_exit_blocks): Add new field.
14493 * cfglayout.c: Include alloc-pool.h;
14494 (cfg_layout_pool): New.
14495 (record_effective_endpoints, fixup_reorder_chain,
14496 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
14498 (cfg_layout_initialize_rbi): New function.
14499 (cfg_layout_initialize): Use it.
14500 (cfg_layout_finalize): Clear rbi fields.
14501 * cfglayout.h (RBI): Kill.
14502 (cfg_layout_initialize_rbi): Declare.
14503 * cfgloopmanip.c (copy_bbs): Use rbi.
14504 (record_exit_edges): Likewise.
14505 (duplicate_loop_to_header_edge): Likewise.
14506 * cfgrtl.c (cfg_layout_create_basic_block): Use
14507 cfg_layout_initialize_rbi.
14508 (cfg_layout_split_block): Use rbi.
14509 (cfg_layout_delete_block): Likewise.
14510 * loop-init.c (loop_optimizer_finalize): Likewise.
14511 * loop-unswitch.c (unswitch_loop): Likewise.
14512 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
14514 * cfgrtl.c: Update comments.
14515 (try_redirect_by_replacing_jump): New argument.
14516 (redirect_branch_edge): Break out from ...
14517 (rtl_redirect_edge_and_branch): ... this one.
14518 (update_cfg_after_block_merging): Break out from ...
14519 (rtl_merge_blocks): ... this one.
14520 (cfg_layout_split_edge): New.
14521 (cfg_layout_merge_blocks): New.
14522 (cfg_layout_can_merge_blocks_p): New.
14523 (cfg_layout_redirect_edge_and_branch): Reorganize.
14524 (cfg_layout_rtl_cfg_hooks): Fill in.
14525 (cfg_layout_delete_block): Kill barriers.
14526 * cfganal.c (can_fallthru): Deal with exit blocks
14527 * cfglayout.c (cfg_layout_function_header): New function
14528 (record_effective_endpoints): Record function header.
14529 (fixup_reorder_chain): Fixup dead jumptables; place header
14531 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
14532 * bb-reorder.c (cfg_layout_initialize): Update call.
14533 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
14534 edges in cfglayout mode.
14535 * cfglayout.c (cleanup_unconditional_jumps): Kill.
14536 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
14537 * cfglayout.h (cfg_layout_initialize): Update prototype.
14538 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
14539 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
14540 * flow.c (propagate_block): Do not crash when basic block ends
14541 by first insn in the chain.
14542 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
14544 * tracer.c (tracer): Update call of cfg_layout_initialize.
14546 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14548 * Makefile.in: Use dependency variables in lieu of explicit
14551 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
14553 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
14554 * tree.h: ...to here.
14556 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
14558 * config/s390/2064.md: Fix comment typos.
14559 * config/s390/2084.md: Likewise.
14560 * config/s390/s390.c: Likewise.
14561 * config/s390/s390.md: Likewise.
14562 * config/sh/sh.c: Likewise.
14563 * config/sh/sh.h: Likewise.
14564 * config/sh/sh.md: Likewise.
14565 * config/sparc/sparc.c: Likewise.
14566 * config/sparc/sparc.h: Likewise.
14567 * config/sparc/sparc.md: Likewise.
14568 * config/stormy16/stormy16.c: Likewise.
14569 * config/stormy16/stormy16.h: Likewise.
14570 * config/stormy16/stormy-abi: Fix a typo.
14572 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
14574 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
14576 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14578 * config/mips/mips.h (save_argv): Delete.
14580 2003-07-03 Roger Sayle <roger@eyesopen.com>
14583 * fold-const.c (extract_muldiv_1): There's nothing that can be done
14584 if the expression is a SAVE_EXPR.
14586 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
14588 * config/m32r/m32r.c: Fix comment typos.
14589 * config/m68hc11/m68hc11.c: Likewise.
14590 * config/m68hc11/m68hc11.h: Likewise.
14591 * config/m68k/m68k.c: Likewise.
14592 * config/mcore/mcore.c: Likewise.
14593 * config/mcore/mcore.h: Likewise.
14594 * config/mcore/mcore.md: Likewise.
14595 * config/mips/mips.c: Likewise.
14596 * config/mips/mips.h: Likewise.
14597 * config/mips/mips.md: Likewise.
14598 * config/mips/netbsd.h: Likewise.
14599 * config/mn10300/mn10300.c: Likewise.
14601 2003-07-03 Andreas Schwab <schwab@suse.de>
14603 * dbxout.c (pending_bincls): Move decl down inside
14604 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
14606 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
14608 * rtl.h (NOTE_DATA): Refer to whole union.
14609 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
14611 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14613 PR optimization/11381
14614 * simplify-rtx.c (simplify_relational_operation): Check that
14615 two equal operands have no side-effects before simplifying
14618 2003-07-02 Jeff Law <law@redhat.com>
14620 * expr.c (do_store_flag): Remove special case folding for
14621 single bit tests. Instead call back into the commonized folder
14623 * fold-const.c (fold_single_bit_test): New function, mostly
14624 extracted from do_store_flag, with an additional case extracted
14626 (fold): Call fold_single_bit_test appropriately.
14627 * tree.h (fold_single_bit_test): Prototype.
14629 2003-07-02 Zack Weinberg <zack@codesourcery.com>
14631 * system.h: Include filenames.h.
14632 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
14633 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
14634 define based on HAVE_DOS_BASED_FILE_SYSTEM.
14635 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
14636 * config/i386/xm-mingw32.h: Don't define
14637 HAVE_DOS_BASED_FILE_SYSTEM,
14638 DIR_SEPARATOR, or DIR_SEPARATOR_2.
14639 * doc/hostconfig.texi: Update to match.
14641 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
14642 config/i386/cygwin.h:
14643 Use IS_ABSOLUTE_PATH throughout.
14644 * gcc.c (DIR_UP): Delete, unused.
14645 * protoize.c (IS_SAME_PATH): Define in terms of
14647 (is_abspath): Delete.
14649 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
14651 * config/i386/emmintrin.h: Fix comment typos.
14652 * config/i386/i386.c: Likewise.
14653 * config/i386/i386.h: Likewise.
14654 * config/i386/sco5.h: Likewise.
14655 * config/ia64/ia64.c: Likewise.
14656 * config/ia64/itanium2.md: Likewise.
14658 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
14660 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
14662 (emit_bincl_stab): Same.
14663 (emit_pending_bincls): Same.
14665 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
14667 * config/h8300/h8300.c (compute_mov_length): Fix the length of
14668 loading CONST0_RTX (SFmode).
14669 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
14670 'G' to CONST0_RTX (SFmode).
14671 * config/h8300/h8300.md (movsf_h8300): Change the first
14673 (movsf_h8300h): Likewise.
14675 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
14677 * c-common.h (c_common_init_options): New prototype.
14678 * c-opts.c (deferred_size): Remove.
14679 (defer_opt): Array is now pre-allocated.
14680 (c_common_init_options): Pre-allocate deferred_opts. Make
14681 lang_flags unsigned.
14682 (push_command_line_options): Free deferred_opts.
14683 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
14684 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
14685 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
14686 * langhooks.h (struct lang_hooks): New prototype for init_options.
14687 * main.c (main): Cast argv.
14688 * opts.c (handle_option, handle_options): Update prototypes.
14689 (decode_options): save_argc, save_argv are not global. Constify.
14690 * opts.h (decode_options): New prototype.
14691 * toplev.c (general_init): New protoype.
14692 (save_argv): Make static.
14693 (save_argc): Remove.
14694 (print_switch_values, general_init): Constify.
14695 (toplev_main): Save argv.
14696 * toplev.h (toplev_main): Update prototype.
14697 (save_argc, save_argv): Remove.
14699 2003-07-02 David Edelsohn <edelsohn@gnu.org>
14701 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
14702 (emit_bincl_stab): Same.
14703 (emit_pending_bincls): Same.
14705 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
14708 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
14710 2003-07-02 Andreas Schwab <schwab@suse.de>
14712 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
14714 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
14716 PR optimization/11210
14717 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
14718 about the behaviour with regard to bitfields.
14719 * fold-const (decode_field_reference): Record outermost type in
14720 case the expression is a NOP. Strip all NOPs. Set the signedness
14721 to that of the outermost type (if any) when the bitsize is equal
14722 to the size of the type.
14724 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
14726 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
14727 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
14728 (adddi3_internal_3, addsi3_internal_2): Likewise.
14730 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
14732 * config/mips/mips.c (machine_function): Add new fields:
14733 ignore_hazard_length_p and all_noreorder_p.
14734 (mips_flag_delayed_branch): New variable.
14735 (override_options): Treat '/' as an operand punctuation character.
14736 Set up mips_flag_delayed_branch.
14737 (print_operand): Handle '/'.
14738 (mips_output_function_prologue): Put the whole function in
14739 .set noreorder and .set nomacro if all_noreorder_p is true.
14740 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
14741 (mips16_optimize_gp): Remove "first insn" parameter.
14742 (mips16_lay_out_constants): New function, split out from mips_reorg.
14743 (mips_avoid_hazard, mips_avoid_hazards): New functions.
14744 (mips_reorg): For mips16 code, call mips16_lay_out_constant
14745 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
14746 do delayed-branch scheduling followed by hazard detection.
14747 (mips_adjust_insn_length): Only account for hazards if
14748 !ignore_hazard_length_p.
14749 (mips_output_load_label): Add a nop to the o32 sequence if
14750 the target suffers from load delays.
14751 (mips_output_conditional_branch): Add %/ to the end of branches.
14752 (mips_output_division): Fill the branch delay slot with %#.
14753 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
14754 instructions. End all other %* branches with %/.
14755 (ffssi2, ffsdi2): Fix lengths.
14756 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
14757 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
14758 (fix_truncsfsi2_macro): Likewise.
14759 (mov_lwl): Set hazard to "none".
14760 (ashldi3_internal): Fill the branch delay slot with %#.
14761 (ashrdi3_internal, lshrdi3_internal): Likewise.
14762 (exception_receiver): Explicitly set $28.
14763 (hazard_nop): New pattern.
14765 2003-07-02 Jan Hubicka <jh@suse.cz>
14767 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
14768 before calling tree_inlinable_function_p.
14770 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14772 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
14773 <internal/stdio_core.h> too.
14774 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
14775 <internal/wchar_core.h> too.
14776 Substitute va_list uses in inline definition.
14777 * fixinc/fixincl.x: Regenerate.
14779 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14781 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
14782 Undef before redefinition.
14783 (LABEL_AFTER_LOC): Likewise.
14784 (DEFAULT_SIGNED_CHAR): Likewise.
14785 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
14788 * config/mips/iris3.h: Remove, unused.
14789 * config/mips/iris4.h: Likewise.
14791 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
14793 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
14794 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
14795 target_cpu_default.
14797 * config/mips/iris5.h: Move explicit includes ...
14798 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
14800 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
14801 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
14804 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
14805 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
14806 target_cpu_default.
14808 * config/mips/iris6.h: Fix IRIX spelling.
14809 (MULTILIB_DEFAULTS): Undef before redefinition.
14811 * config/mips/iris6.h: Move explicit includes ...
14812 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
14814 2003-07-02 Jan Hubicka <jh@suse.cz>
14816 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
14817 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
14818 Use next_needed field instead of aux to maintain the queue.
14819 * cgraph.h (cgraph_node): Add next_needed.
14820 (cgraph_varpool_node): Add next_needed; remove aux.
14821 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
14823 2003-07-02 Jan Hubicka <jh@suse.cz>
14825 * cgraphunit.c (cgraph_finalize_function): Set finalized.
14826 (cgraph_finalize_function): Do not examine inlinablility.
14827 (cgraph_finalize_compilation_unit): Do it here.
14828 * cgraph.h (cgraph_local_info): Add finalized field.
14830 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14832 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
14833 (gt_pch_restore): Likewise.
14835 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
14837 * config/alpha/alpha.c: Fix comment typos.
14838 * config/alpha/elf.h: Likewise.
14839 * config/arm/arm.c: Likewise.
14840 * config/arm/arm.h: Likewise.
14841 * config/arm/arm.md: Likewise.
14842 * config/arm/t-arm-coff: Likewise.
14843 * config/arm/t-strongarm-pe: Likewise.
14844 * config/arm/xscale-elf.h: Likewise.
14845 * config/avr/avr.h: Likewise.
14847 2003-07-01 Jeff Law <law@redhat.com>
14849 * stmt.c (any_pending_cleanups): Remove another redundant test.
14851 2003-07-01 David Edelsohn <edelsohn@gnu.org>
14852 J"orn Rennecke <joern.rennecke@superh.com>
14854 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
14857 2003-07-01 Devang Patel <dpatel@apple.com>
14859 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
14860 (binclstatus): New.
14861 (struct dbx_file): New members - bincl_status, pending_bincl_name and
14863 (pending_bincls): New.
14864 (dbxout_init): Initialize new dbx_file members.
14865 (dbxout_start_source_file): Same.
14866 (emit_bincl_stab): New function.
14867 (emit_pending_bincls): Same.
14868 (emit_pending_bincls_if_required): Same.
14869 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
14871 (dbxout_begin_block): Emit pending BINCL stabs.
14872 (dbxout_end_block): Same.
14873 (dbxout_function_decl): Same.
14874 (dbxout_continue): Same.
14875 (dbxout_type): Same.
14876 (dbxout_class_name_qualifiers): Same.
14877 (dbxout_symbol): Same.
14878 (dbxout_symbol_location): Same.
14879 (dbxout_parms): Same.
14881 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14883 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
14884 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
14886 2003-07-01 Andreas Jaeger <aj@suse.de>
14888 * fold-const.c: Convert prototypes to ISO C90.
14889 * function.c: Likewise.
14890 * function.h: Likewise.
14892 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
14894 * doc/contrib.texi: Fix typos.
14895 * doc/invoke.texi: Likewise.
14896 * doc/passes.texi: Likewise.
14897 * doc/sourcebuild.texi: Likewise.
14898 * doc/tm.texi: Likewise.
14900 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
14902 * basic-block.h: Fix comment typos.
14903 * bb-reorder.c: Likewise.
14904 * c-format.c: Likewise.
14905 * cfgcleanup.c: Likewise.
14906 * cfghooks.h: Likewise.
14907 * cfgloop.c: Likewise.
14908 * cfgloopmanip.c: Likewise.
14909 * cfgrtl.c: Likewise.
14910 * cgraph.h: Likewise.
14911 * cgraphunit.c: Likewise.
14912 * combine.c: Likewise.
14913 * convert.c: Likewise.
14914 * dbxout.c: Likewise.
14917 * diagnostic.c: Likewise.
14918 * dwarf2out.c: Likewise.
14919 * et-forest.h: Likewise.
14920 * flow.c: Likewise.
14921 * fold-const.c: Likewise.
14922 * function.h: Likewise.
14923 * gcov-io.h: Likewise.
14924 * gcov.c: Likewise.
14925 * gcse.c: Likewise.
14926 * genautomata.c: Likewise.
14927 * ggc-common.c: Likewise.
14928 * ggc-page.c: Likewise.
14929 * loop-unroll.c: Likewise.
14930 * loop-unswitch.c: Likewise.
14931 * loop.c: Likewise.
14932 * mips-tfile.c: Likewise.
14933 * optabs.c: Likewise.
14934 * ra-build.c: Likewise.
14935 * ra-colorize.c: Likewise.
14936 * ra-rewrite.c: Likewise.
14938 * regmove.c: Likewise.
14939 * reload.c: Likewise.
14940 * rtlanal.c: Likewise.
14941 * sched-ebb.c: Likewise.
14942 * sched-int.h: Likewise.
14943 * sched-vis.c: Likewise.
14944 * sreal.c: Likewise.
14945 * ssa-ccp.c: Likewise.
14947 * toplev.c: Likewise.
14948 * tree-inline.c: Likewise.
14949 * value-prof.c: Likewise.
14950 * value-prof.h: Likewise.
14952 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
14954 * rtl.h (emit_line_note_after): Remove.
14955 (emit_note_copy_after, emit_note_copy): New.
14956 * emit-rtl.c (reorder_insns_with_line_notes): Replace
14957 emit_line_note_after with emit_note_copy_after.
14958 (emit_insn_after_with_line_notes): Likewise.
14959 (emit_line_note_after): Kill.
14960 (emit_note_copy_after): New.
14961 (emit_note_copy): New.
14962 * function.c (emit_return_into_block): Use emit_note_copy_after.
14963 (thread_prologue_and_epilogue_insns): Likewise.
14964 * integrate.c (expand_inline_function): Use emit_note_copy.
14965 (copy_insn_list): Likewise.
14966 * unroll.c (copy_loop_body): Likewise.
14967 * cfglayout.c (duplicate_insn_chain): Likewise.
14969 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
14971 * c-tree.h (define_label): Replace filename and lineno arguments
14973 * c-decl.c (poplevel): Adjust define_label call.
14974 (pop_label_level): Likewise.
14975 (define_label): Replace filename and lineno arguments with a
14977 (store_parm_decls): Use DECL_SOURCE_LOCATION.
14978 * c-parse.in (label): Adjust define_label call.
14980 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
14982 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
14983 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
14984 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
14985 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
14986 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
14988 2003-07-01 Andreas Jaeger <aj@suse.de>
14990 * final.c: Convert prototypes to ISO C90.
14991 * flow.c: Likewise.
14992 * flags.h: Likewise.
14993 * gcov-io.c: Likewise.
14994 * gcov-io.h: Likewise.
14996 See ChangeLog.9 for earlier changes.